configure revision 2b51a0806db1a717090cb2a2afc3e9634d536f09
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for LLVM 1.3.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291       echo_test_string="`eval $cmd`" &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
426PACKAGE_VERSION='1.3'
427PACKAGE_STRING='LLVM 1.3'
428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430ac_subdirs_all="$ac_subdirs_all projects/${i}"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
469ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
470ac_subst_files=''
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513  # If the previous option needs an argument, assign it.
514  if test -n "$ac_prev"; then
515    eval "$ac_prev=\$ac_option"
516    ac_prev=
517    continue
518  fi
519
520  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522  # Accept the important Cygnus configure options, so we can diagnose typos.
523
524  case $ac_option in
525
526  -bindir | --bindir | --bindi | --bind | --bin | --bi)
527    ac_prev=bindir ;;
528  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529    bindir=$ac_optarg ;;
530
531  -build | --build | --buil | --bui | --bu)
532    ac_prev=build_alias ;;
533  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534    build_alias=$ac_optarg ;;
535
536  -cache-file | --cache-file | --cache-fil | --cache-fi \
537  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538    ac_prev=cache_file ;;
539  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541    cache_file=$ac_optarg ;;
542
543  --config-cache | -C)
544    cache_file=config.cache ;;
545
546  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547    ac_prev=datadir ;;
548  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549  | --da=*)
550    datadir=$ac_optarg ;;
551
552  -disable-* | --disable-*)
553    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557   { (exit 1); exit 1; }; }
558    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559    eval "enable_$ac_feature=no" ;;
560
561  -enable-* | --enable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    case $ac_option in
569      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570      *) ac_optarg=yes ;;
571    esac
572    eval "enable_$ac_feature='$ac_optarg'" ;;
573
574  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576  | --exec | --exe | --ex)
577    ac_prev=exec_prefix ;;
578  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580  | --exec=* | --exe=* | --ex=*)
581    exec_prefix=$ac_optarg ;;
582
583  -gas | --gas | --ga | --g)
584    # Obsolete; use --with-gas.
585    with_gas=yes ;;
586
587  -help | --help | --hel | --he | -h)
588    ac_init_help=long ;;
589  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590    ac_init_help=recursive ;;
591  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592    ac_init_help=short ;;
593
594  -host | --host | --hos | --ho)
595    ac_prev=host_alias ;;
596  -host=* | --host=* | --hos=* | --ho=*)
597    host_alias=$ac_optarg ;;
598
599  -includedir | --includedir | --includedi | --included | --include \
600  | --includ | --inclu | --incl | --inc)
601    ac_prev=includedir ;;
602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603  | --includ=* | --inclu=* | --incl=* | --inc=*)
604    includedir=$ac_optarg ;;
605
606  -infodir | --infodir | --infodi | --infod | --info | --inf)
607    ac_prev=infodir ;;
608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609    infodir=$ac_optarg ;;
610
611  -libdir | --libdir | --libdi | --libd)
612    ac_prev=libdir ;;
613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
614    libdir=$ac_optarg ;;
615
616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617  | --libexe | --libex | --libe)
618    ac_prev=libexecdir ;;
619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620  | --libexe=* | --libex=* | --libe=*)
621    libexecdir=$ac_optarg ;;
622
623  -localstatedir | --localstatedir | --localstatedi | --localstated \
624  | --localstate | --localstat | --localsta | --localst \
625  | --locals | --local | --loca | --loc | --lo)
626    ac_prev=localstatedir ;;
627  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630    localstatedir=$ac_optarg ;;
631
632  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633    ac_prev=mandir ;;
634  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635    mandir=$ac_optarg ;;
636
637  -nfp | --nfp | --nf)
638    # Obsolete; use --without-fp.
639    with_fp=no ;;
640
641  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642  | --no-cr | --no-c | -n)
643    no_create=yes ;;
644
645  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647    no_recursion=yes ;;
648
649  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651  | --oldin | --oldi | --old | --ol | --o)
652    ac_prev=oldincludedir ;;
653  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656    oldincludedir=$ac_optarg ;;
657
658  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659    ac_prev=prefix ;;
660  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661    prefix=$ac_optarg ;;
662
663  -program-prefix | --program-prefix | --program-prefi | --program-pref \
664  | --program-pre | --program-pr | --program-p)
665    ac_prev=program_prefix ;;
666  -program-prefix=* | --program-prefix=* | --program-prefi=* \
667  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668    program_prefix=$ac_optarg ;;
669
670  -program-suffix | --program-suffix | --program-suffi | --program-suff \
671  | --program-suf | --program-su | --program-s)
672    ac_prev=program_suffix ;;
673  -program-suffix=* | --program-suffix=* | --program-suffi=* \
674  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675    program_suffix=$ac_optarg ;;
676
677  -program-transform-name | --program-transform-name \
678  | --program-transform-nam | --program-transform-na \
679  | --program-transform-n | --program-transform- \
680  | --program-transform | --program-transfor \
681  | --program-transfo | --program-transf \
682  | --program-trans | --program-tran \
683  | --progr-tra | --program-tr | --program-t)
684    ac_prev=program_transform_name ;;
685  -program-transform-name=* | --program-transform-name=* \
686  | --program-transform-nam=* | --program-transform-na=* \
687  | --program-transform-n=* | --program-transform-=* \
688  | --program-transform=* | --program-transfor=* \
689  | --program-transfo=* | --program-transf=* \
690  | --program-trans=* | --program-tran=* \
691  | --progr-tra=* | --program-tr=* | --program-t=*)
692    program_transform_name=$ac_optarg ;;
693
694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695  | -silent | --silent | --silen | --sile | --sil)
696    silent=yes ;;
697
698  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699    ac_prev=sbindir ;;
700  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701  | --sbi=* | --sb=*)
702    sbindir=$ac_optarg ;;
703
704  -sharedstatedir | --sharedstatedir | --sharedstatedi \
705  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706  | --sharedst | --shareds | --shared | --share | --shar \
707  | --sha | --sh)
708    ac_prev=sharedstatedir ;;
709  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712  | --sha=* | --sh=*)
713    sharedstatedir=$ac_optarg ;;
714
715  -site | --site | --sit)
716    ac_prev=site ;;
717  -site=* | --site=* | --sit=*)
718    site=$ac_optarg ;;
719
720  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721    ac_prev=srcdir ;;
722  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723    srcdir=$ac_optarg ;;
724
725  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726  | --syscon | --sysco | --sysc | --sys | --sy)
727    ac_prev=sysconfdir ;;
728  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730    sysconfdir=$ac_optarg ;;
731
732  -target | --target | --targe | --targ | --tar | --ta | --t)
733    ac_prev=target_alias ;;
734  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735    target_alias=$ac_optarg ;;
736
737  -v | -verbose | --verbose | --verbos | --verbo | --verb)
738    verbose=yes ;;
739
740  -version | --version | --versio | --versi | --vers | -V)
741    ac_init_version=: ;;
742
743  -with-* | --with-*)
744    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package| sed 's/-/_/g'`
750    case $ac_option in
751      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752      *) ac_optarg=yes ;;
753    esac
754    eval "with_$ac_package='$ac_optarg'" ;;
755
756  -without-* | --without-*)
757    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package | sed 's/-/_/g'`
763    eval "with_$ac_package=no" ;;
764
765  --x)
766    # Obsolete; use --with-x.
767    with_x=yes ;;
768
769  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770  | --x-incl | --x-inc | --x-in | --x-i)
771    ac_prev=x_includes ;;
772  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774    x_includes=$ac_optarg ;;
775
776  -x-libraries | --x-libraries | --x-librarie | --x-librari \
777  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778    ac_prev=x_libraries ;;
779  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781    x_libraries=$ac_optarg ;;
782
783  -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785   { (exit 1); exit 1; }; }
786    ;;
787
788  *=*)
789    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790    # Reject names that are not valid shell variable names.
791    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793   { (exit 1); exit 1; }; }
794    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795    eval "$ac_envvar='$ac_optarg'"
796    export $ac_envvar ;;
797
798  *)
799    # FIXME: should be removed in autoconf 3.0.
800    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804    ;;
805
806  esac
807done
808
809if test -n "$ac_prev"; then
810  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811  { echo "$as_me: error: missing argument to $ac_option" >&2
812   { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828	      localstatedir libdir includedir oldincludedir infodir mandir
829do
830  eval ac_val=$`echo $ac_var`
831  case $ac_val in
832    [\\/$]* | ?:[\\/]* ) ;;
833    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834   { (exit 1); exit 1; }; };;
835  esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847  if test "x$build_alias" = x; then
848    cross_compiling=maybe
849    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850    If a cross compiler is detected then cross compile mode will be used." >&2
851  elif test "x$build_alias" != "x$host_alias"; then
852    cross_compiling=yes
853  fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864  ac_srcdir_defaulted=yes
865  # Try the directory containing this script, then its parent.
866  ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868	 X"$0" : 'X\(//\)[^/]' \| \
869	 X"$0" : 'X\(//\)$' \| \
870	 X"$0" : 'X\(/\)' \| \
871	 .     : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875  	  /^X\(\/\/\)$/{ s//\1/; q; }
876  	  /^X\(\/\).*/{ s//\1/; q; }
877  	  s/.*/./; q'`
878  srcdir=$ac_confdir
879  if test ! -r $srcdir/$ac_unique_file; then
880    srcdir=..
881  fi
882else
883  ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886  if test "$ac_srcdir_defaulted" = yes; then
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888   { (exit 1); exit 1; }; }
889  else
890    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891   { (exit 1); exit 1; }; }
892  fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896   { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955  # Omit some internal or obsolete options to make the list less imposing.
956  # This message is too long to be a string in the A/UX 3.1 sh.
957  cat <<_ACEOF
958\`configure' configures LLVM 1.3 to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968  -h, --help              display this help and exit
969      --help=short        display options specific to this package
970      --help=recursive    display the short help of all the included packages
971  -V, --version           display version information and exit
972  -q, --quiet, --silent   do not print \`checking...' messages
973      --cache-file=FILE   cache test results in FILE [disabled]
974  -C, --config-cache      alias for \`--cache-file=config.cache'
975  -n, --no-create         do not create output files
976      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980  cat <<_ACEOF
981Installation directories:
982  --prefix=PREFIX         install architecture-independent files in PREFIX
983			  [$ac_default_prefix]
984  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985			  [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995  --bindir=DIR           user executables [EPREFIX/bin]
996  --sbindir=DIR          system admin executables [EPREFIX/sbin]
997  --libexecdir=DIR       program executables [EPREFIX/libexec]
998  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002  --libdir=DIR           object code libraries [EPREFIX/lib]
1003  --includedir=DIR       C header files [PREFIX/include]
1004  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005  --infodir=DIR          info documentation [PREFIX/info]
1006  --mandir=DIR           man documentation [PREFIX/man]
1007_ACEOF
1008
1009  cat <<\_ACEOF
1010
1011System types:
1012  --build=BUILD     configure for building on BUILD [guessed]
1013  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014  --target=TARGET   configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019  case $ac_init_help in
1020     short | recursive ) echo "Configuration of LLVM 1.3:";;
1021   esac
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --enable-shared[=PKGS]
1028                          build shared libraries [default=yes]
1029  --enable-static[=PKGS]
1030                          build static libraries [default=yes]
1031  --enable-fast-install[=PKGS]
1032                          optimize for fast installation [default=yes]
1033  --disable-libtool-lock  avoid locking (might break parallel builds)
1034  --enable-optimized      Compile with optimizations enabled (default is NO)
1035  --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1036  --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1037  --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1038  --enable-precompiled_bytecode
1039                          Use pre-compiled bytecode (default is NO)
1040  --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041  --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043Optional Packages:
1044  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047  --with-pic              try to use only PIC/non-PIC objects [default=use
1048                          both]
1049  --with-tags[=TAGS]
1050                          include additional configurations [automatic]
1051  --with-llvmgccdir       Location of LLVM GCC front-end
1052  --with-bcrepos          Location of Bytecode Repository
1053  --with-papi             Location of PAPI
1054
1055Some influential environment variables:
1056  CXX         C++ compiler command
1057  CXXFLAGS    C++ compiler flags
1058  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059              nonstandard directory <lib dir>
1060  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061              headers in a nonstandard directory <include dir>
1062  CC          C compiler command
1063  CFLAGS      C compiler flags
1064  CPP         C preprocessor
1065  CXXCPP      C++ preprocessor
1066  F77         Fortran 77 compiler command
1067  FFLAGS      Fortran 77 compiler flags
1068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077  # If there are subdirs, report their specific --help.
1078  ac_popdir=`pwd`
1079  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080    test -d $ac_dir || continue
1081    ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085  # A "../" for each directory in $ac_dir_suffix.
1086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088  ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092  .)  # No --srcdir option.  We are building in place.
1093    ac_srcdir=.
1094    if test -z "$ac_top_builddir"; then
1095       ac_top_srcdir=.
1096    else
1097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098    fi ;;
1099  [\\/]* | ?:[\\/]* )  # Absolute path.
1100    ac_srcdir=$srcdir$ac_dir_suffix;
1101    ac_top_srcdir=$srcdir ;;
1102  *) # Relative path.
1103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112  case "$ac_dir" in
1113  .) ac_abs_builddir=`pwd`;;
1114  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116  esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121  case ${ac_top_builddir}. in
1122  .) ac_abs_top_builddir=$ac_abs_builddir;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130  case $ac_srcdir in
1131  .) ac_abs_srcdir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139  case $ac_top_srcdir in
1140  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143  esac;;
1144esac
1145
1146    cd $ac_dir
1147    # Check for guested configure; otherwise get Cygnus style configure.
1148    if test -f $ac_srcdir/configure.gnu; then
1149      echo
1150      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151    elif test -f $ac_srcdir/configure; then
1152      echo
1153      $SHELL $ac_srcdir/configure  --help=recursive
1154    elif test -f $ac_srcdir/configure.ac ||
1155	   test -f $ac_srcdir/configure.in; then
1156      echo
1157      $ac_configure --help
1158    else
1159      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160    fi
1161    cd $ac_popdir
1162  done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167  cat <<\_ACEOF
1168LLVM configure 1.3
1169generated by GNU Autoconf 2.59
1170
1171Copyright (C) 2003 Free Software Foundation, Inc.
1172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175  exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
1182It was created by LLVM $as_me 1.3, which was
1183generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185  $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216  IFS=$as_save_IFS
1217  test -z "$as_dir" && as_dir=.
1218  echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
1235# Strip out --silent because we don't want to record it for future runs.
1236# Also quote any args containing shell meta-characters.
1237# Make two passes to allow for proper duplicate-argument suppression.
1238ac_configure_args=
1239ac_configure_args0=
1240ac_configure_args1=
1241ac_sep=
1242ac_must_keep_next=false
1243for ac_pass in 1 2
1244do
1245  for ac_arg
1246  do
1247    case $ac_arg in
1248    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250    | -silent | --silent | --silen | --sile | --sil)
1251      continue ;;
1252    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254    esac
1255    case $ac_pass in
1256    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257    2)
1258      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259      if test $ac_must_keep_next = true; then
1260	ac_must_keep_next=false # Got value, back to normal.
1261      else
1262	case $ac_arg in
1263	  *=* | --config-cache | -C | -disable-* | --disable-* \
1264	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266	  | -with-* | --with-* | -without-* | --without-* | --x)
1267	    case "$ac_configure_args0 " in
1268	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269	    esac
1270	    ;;
1271	  -* ) ac_must_keep_next=true ;;
1272	esac
1273      fi
1274      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275      # Get rid of the leading space.
1276      ac_sep=" "
1277      ;;
1278    esac
1279  done
1280done
1281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log.  We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290  # Save into config.log some information that might help in debugging.
1291  {
1292    echo
1293
1294    cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299    echo
1300    # The following way of writing the cache mishandles newlines in values,
1301{
1302  (set) 2>&1 |
1303    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304    *ac_space=\ *)
1305      sed -n \
1306	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308      ;;
1309    *)
1310      sed -n \
1311	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312      ;;
1313    esac;
1314}
1315    echo
1316
1317    cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322    echo
1323    for ac_var in $ac_subst_vars
1324    do
1325      eval ac_val=$`echo $ac_var`
1326      echo "$ac_var='"'"'$ac_val'"'"'"
1327    done | sort
1328    echo
1329
1330    if test -n "$ac_subst_files"; then
1331      cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336      echo
1337      for ac_var in $ac_subst_files
1338      do
1339	eval ac_val=$`echo $ac_var`
1340	echo "$ac_var='"'"'$ac_val'"'"'"
1341      done | sort
1342      echo
1343    fi
1344
1345    if test -s confdefs.h; then
1346      cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351      echo
1352      sed "/^$/d" confdefs.h | sort
1353      echo
1354    fi
1355    test "$ac_signal" != 0 &&
1356      echo "$as_me: caught signal $ac_signal"
1357    echo "$as_me: exit $exit_status"
1358  } >&5
1359  rm -f core *.core &&
1360  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361    exit $exit_status
1362     ' 0
1363for ac_signal in 1 2 13 15; do
1364  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403  if test "x$prefix" != xNONE; then
1404    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405  else
1406    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407  fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410  if test -r "$ac_site_file"; then
1411    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413    sed 's/^/| /' "$ac_site_file" >&5
1414    . "$ac_site_file"
1415  fi
1416done
1417
1418if test -r "$cache_file"; then
1419  # Some versions of bash will fail to source /dev/null (special
1420  # files actually), so we avoid doing that.
1421  if test -f "$cache_file"; then
1422    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424    case $cache_file in
1425      [\\/]* | ?:[\\/]* ) . $cache_file;;
1426      *)                      . ./$cache_file;;
1427    esac
1428  fi
1429else
1430  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432  >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
1439	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441  eval ac_new_set=\$ac_env_${ac_var}_set
1442  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443  eval ac_new_val="\$ac_env_${ac_var}_value"
1444  case $ac_old_set,$ac_new_set in
1445    set,)
1446      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448      ac_cache_corrupted=: ;;
1449    ,set)
1450      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452      ac_cache_corrupted=: ;;
1453    ,);;
1454    *)
1455      if test "x$ac_old_val" != "x$ac_new_val"; then
1456	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459echo "$as_me:   former value:  $ac_old_val" >&2;}
1460	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461echo "$as_me:   current value: $ac_new_val" >&2;}
1462	ac_cache_corrupted=:
1463      fi;;
1464  esac
1465  # Pass precious variables to config.status.
1466  if test "$ac_new_set" = set; then
1467    case $ac_new_val in
1468    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470    *) ac_arg=$ac_var=$ac_new_val ;;
1471    esac
1472    case " $ac_configure_args " in
1473      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475    esac
1476  fi
1477done
1478if $ac_cache_corrupted; then
1479  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483   { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519ac_aux_dir=
1520for ac_dir in autoconf $srcdir/autoconf; do
1521  if test -f $ac_dir/install-sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install-sh -c"
1524    break
1525  elif test -f $ac_dir/install.sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install.sh -c"
1528    break
1529  elif test -f $ac_dir/shtool; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/shtool install -c"
1532    break
1533  fi
1534done
1535if test -z "$ac_aux_dir"; then
1536  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544
1545if test ${srcdir} != "."
1546then
1547	if test -f ${srcdir}/include/Config/config.h
1548	then
1549		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551   { (exit 1); exit 1; }; }
1552	fi
1553fi
1554
1555for i in `ls ${srcdir}/projects`
1556do
1557  if test ${i} != "CVS"
1558  then
1559    if test -f ${srcdir}/projects/${i}/configure
1560    then
1561
1562
1563subdirs="$subdirs projects/${i}"
1564
1565    fi
1566  fi
1567done
1568
1569          ac_config_headers="$ac_config_headers include/Config/config.h"
1570
1571
1572                                                            ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1573
1574
1575          ac_config_commands="$ac_config_commands Makefile"
1576
1577
1578          ac_config_commands="$ac_config_commands Makefile.common"
1579
1580
1581          ac_config_commands="$ac_config_commands lib/Makefile"
1582
1583
1584          ac_config_commands="$ac_config_commands runtime/Makefile"
1585
1586
1587          ac_config_commands="$ac_config_commands test/Makefile"
1588
1589
1590          ac_config_commands="$ac_config_commands test/Makefile.tests"
1591
1592
1593          ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1594
1595
1596          ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1597
1598
1599          ac_config_commands="$ac_config_commands test/Programs/Makefile"
1600
1601
1602          ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1603
1604
1605          ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1606
1607
1608          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1609
1610
1611          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1612
1613
1614          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1615
1616
1617          ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1618
1619
1620          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1621
1622
1623          ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1624
1625
1626          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1627
1628
1629          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1630
1631
1632          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1633
1634
1635          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1636
1637
1638          ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1639
1640
1641          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1642
1643
1644          ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1645
1646
1647          ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1648
1649
1650          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1651
1652
1653          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1654
1655
1656          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1657
1658
1659          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1660
1661
1662          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1663
1664
1665          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1666
1667
1668          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1669
1670
1671          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1672
1673
1674          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1675
1676
1677          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1678
1679
1680          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1681
1682
1683          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1684
1685
1686          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1687
1688
1689          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1690
1691
1692          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1693
1694
1695          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1696
1697
1698          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1699
1700
1701          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1702
1703
1704          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1705
1706
1707          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1708
1709
1710          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1711
1712
1713          ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1714
1715
1716          ac_config_commands="$ac_config_commands tools/Makefile"
1717
1718
1719          ac_config_commands="$ac_config_commands utils/Makefile"
1720
1721
1722          ac_config_commands="$ac_config_commands projects/Makefile"
1723
1724
1725
1726# Find a good install program.  We prefer a C program (faster),
1727# so one script is as good as another.  But avoid the broken or
1728# incompatible versions:
1729# SysV /etc/install, /usr/sbin/install
1730# SunOS /usr/etc/install
1731# IRIX /sbin/install
1732# AIX /bin/install
1733# AmigaOS /C/install, which installs bootblocks on floppy discs
1734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1735# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1737# OS/2's system install, which has a completely different semantic
1738# ./install, which can be erroneously created by make from ./install.sh.
1739echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1740echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1741if test -z "$INSTALL"; then
1742if test "${ac_cv_path_install+set}" = set; then
1743  echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748  IFS=$as_save_IFS
1749  test -z "$as_dir" && as_dir=.
1750  # Account for people who put trailing slashes in PATH elements.
1751case $as_dir/ in
1752  ./ | .// | /cC/* | \
1753  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1754  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1755  /usr/ucb/* ) ;;
1756  *)
1757    # OSF1 and SCO ODT 3.0 have their own names for install.
1758    # Don't use installbsd from OSF since it installs stuff as root
1759    # by default.
1760    for ac_prog in ginstall scoinst install; do
1761      for ac_exec_ext in '' $ac_executable_extensions; do
1762	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1763	  if test $ac_prog = install &&
1764	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1765	    # AIX install.  It has an incompatible calling convention.
1766	    :
1767	  elif test $ac_prog = install &&
1768	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1769	    # program-specific install script used by HP pwplus--don't use.
1770	    :
1771	  else
1772	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1773	    break 3
1774	  fi
1775	fi
1776      done
1777    done
1778    ;;
1779esac
1780done
1781
1782
1783fi
1784  if test "${ac_cv_path_install+set}" = set; then
1785    INSTALL=$ac_cv_path_install
1786  else
1787    # As a last resort, use the slow shell script.  We don't cache a
1788    # path for INSTALL within a source directory, because that will
1789    # break other packages using the cache if that directory is
1790    # removed, or if the path is relative.
1791    INSTALL=$ac_install_sh
1792  fi
1793fi
1794echo "$as_me:$LINENO: result: $INSTALL" >&5
1795echo "${ECHO_T}$INSTALL" >&6
1796
1797# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1798# It thinks the first close brace ends the variable substitution.
1799test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1800
1801test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1802
1803test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1804
1805
1806# Make sure we can run config.sub.
1807$ac_config_sub sun4 >/dev/null 2>&1 ||
1808  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1809echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1810   { (exit 1); exit 1; }; }
1811
1812echo "$as_me:$LINENO: checking build system type" >&5
1813echo $ECHO_N "checking build system type... $ECHO_C" >&6
1814if test "${ac_cv_build+set}" = set; then
1815  echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817  ac_cv_build_alias=$build_alias
1818test -z "$ac_cv_build_alias" &&
1819  ac_cv_build_alias=`$ac_config_guess`
1820test -z "$ac_cv_build_alias" &&
1821  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1822echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1823   { (exit 1); exit 1; }; }
1824ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1825  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1826echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1827   { (exit 1); exit 1; }; }
1828
1829fi
1830echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1831echo "${ECHO_T}$ac_cv_build" >&6
1832build=$ac_cv_build
1833build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1834build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1835build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1836
1837
1838echo "$as_me:$LINENO: checking host system type" >&5
1839echo $ECHO_N "checking host system type... $ECHO_C" >&6
1840if test "${ac_cv_host+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  ac_cv_host_alias=$host_alias
1844test -z "$ac_cv_host_alias" &&
1845  ac_cv_host_alias=$ac_cv_build_alias
1846ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1847  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1848echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1849   { (exit 1); exit 1; }; }
1850
1851fi
1852echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853echo "${ECHO_T}$ac_cv_host" >&6
1854host=$ac_cv_host
1855host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1856host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1857host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1858
1859
1860echo "$as_me:$LINENO: checking target system type" >&5
1861echo $ECHO_N "checking target system type... $ECHO_C" >&6
1862if test "${ac_cv_target+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  ac_cv_target_alias=$target_alias
1866test "x$ac_cv_target_alias" = "x" &&
1867  ac_cv_target_alias=$ac_cv_host_alias
1868ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1869  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1870echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1871   { (exit 1); exit 1; }; }
1872
1873fi
1874echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1875echo "${ECHO_T}$ac_cv_target" >&6
1876target=$ac_cv_target
1877target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1878target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1879target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1880
1881
1882# The aliases save the names the user supplied, while $host etc.
1883# will get canonicalized.
1884test -n "$target_alias" &&
1885  test "$program_prefix$program_suffix$program_transform_name" = \
1886    NONENONEs,x,x, &&
1887  program_prefix=${target_alias}-
1888
1889case $build in
1890	*-*-linux*)
1891             OS=Linux
1892
1893			 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1894			 then
1895			   LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1896
1897			 fi
1898	         ;;
1899	*-*-solaris*)
1900             OS=SunOS
1901
1902			 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1903			 then
1904	           LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1905
1906			 fi
1907	         ;;
1908	*-*-cygwin*)
1909             OS=Cygwin
1910
1911	         ;;
1912	*-*-darwin*)
1913             OS=Darwin
1914
1915	         ;;
1916	*-*-aix*)
1917             OS=AIX
1918
1919	         ;;
1920	*)       OS=Unknown
1921
1922	         ;;
1923esac
1924
1925case $target in
1926	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1927
1928	                    ;;
1929esac
1930
1931case $target in
1932	i*86-*)           ARCH=x86
1933
1934	                  ;;
1935	sparc*-*)         ARCH=Sparc
1936
1937	                  ;;
1938	powerpc*-*)       ARCH=PowerPC
1939
1940	                  ;;
1941	*)                ARCH=Unknown
1942
1943	                  ;;
1944esac
1945
1946ac_ext=cc
1947ac_cpp='$CXXCPP $CPPFLAGS'
1948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1951if test -n "$ac_tool_prefix"; then
1952  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1953  do
1954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_CXX+set}" = set; then
1959  echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961  if test -n "$CXX"; then
1962  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973    break 2
1974  fi
1975done
1976done
1977
1978fi
1979fi
1980CXX=$ac_cv_prog_CXX
1981if test -n "$CXX"; then
1982  echo "$as_me:$LINENO: result: $CXX" >&5
1983echo "${ECHO_T}$CXX" >&6
1984else
1985  echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989    test -n "$CXX" && break
1990  done
1991fi
1992if test -z "$CXX"; then
1993  ac_ct_CXX=$CXX
1994  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1995do
1996  # Extract the first word of "$ac_prog", so it can be a program name with args.
1997set dummy $ac_prog; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$ac_ct_CXX"; then
2004  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011  for ac_exec_ext in '' $ac_executable_extensions; do
2012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013    ac_cv_prog_ac_ct_CXX="$ac_prog"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020fi
2021fi
2022ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2023if test -n "$ac_ct_CXX"; then
2024  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2025echo "${ECHO_T}$ac_ct_CXX" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031  test -n "$ac_ct_CXX" && break
2032done
2033test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2034
2035  CXX=$ac_ct_CXX
2036fi
2037
2038
2039# Provide some information about the compiler.
2040echo "$as_me:$LINENO:" \
2041     "checking for C++ compiler version" >&5
2042ac_compiler=`set X $ac_compile; echo $2`
2043{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044  (eval $ac_compiler --version </dev/null >&5) 2>&5
2045  ac_status=$?
2046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047  (exit $ac_status); }
2048{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049  (eval $ac_compiler -v </dev/null >&5) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054  (eval $ac_compiler -V </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058
2059cat >conftest.$ac_ext <<_ACEOF
2060/* confdefs.h.  */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h.  */
2065
2066int
2067main ()
2068{
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074ac_clean_files_save=$ac_clean_files
2075ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076# Try to create an executable without -o first, disregard a.out.
2077# It will help us diagnose broken compilers, and finding out an intuition
2078# of exeext.
2079echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2080echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2081ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083  (eval $ac_link_default) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }; then
2087  # Find the output, starting from the most likely.  This scheme is
2088# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089# resort.
2090
2091# Be careful to initialize this variable, since it used to be cached.
2092# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2093ac_cv_exeext=
2094# b.out is created by i960 compilers.
2095for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2096do
2097  test -f "$ac_file" || continue
2098  case $ac_file in
2099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100	;;
2101    conftest.$ac_ext )
2102	# This is the source file.
2103	;;
2104    [ab].out )
2105	# We found the default executable, but exeext='' is most
2106	# certainly right.
2107	break;;
2108    *.* )
2109	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110	# FIXME: I believe we export ac_cv_exeext for Libtool,
2111	# but it would be cool to find out if it's true.  Does anybody
2112	# maintain Libtool? --akim.
2113	export ac_cv_exeext
2114	break;;
2115    * )
2116	break;;
2117  esac
2118done
2119else
2120  echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: C++ compiler cannot create executables
2126See \`config.log' for more details." >&2;}
2127   { (exit 77); exit 77; }; }
2128fi
2129
2130ac_exeext=$ac_cv_exeext
2131echo "$as_me:$LINENO: result: $ac_file" >&5
2132echo "${ECHO_T}$ac_file" >&6
2133
2134# Check the compiler produces executables we can run.  If not, either
2135# the compiler is broken, or we cross compile.
2136echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2137echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2138# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139# If not cross compiling, check that we can run a simple program.
2140if test "$cross_compiling" != yes; then
2141  if { ac_try='./$ac_file'
2142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143  (eval $ac_try) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }; }; then
2147    cross_compiling=no
2148  else
2149    if test "$cross_compiling" = maybe; then
2150	cross_compiling=yes
2151    else
2152	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2153If you meant to cross compile, use \`--host'.
2154See \`config.log' for more details." >&5
2155echo "$as_me: error: cannot run C++ compiled programs.
2156If you meant to cross compile, use \`--host'.
2157See \`config.log' for more details." >&2;}
2158   { (exit 1); exit 1; }; }
2159    fi
2160  fi
2161fi
2162echo "$as_me:$LINENO: result: yes" >&5
2163echo "${ECHO_T}yes" >&6
2164
2165rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166ac_clean_files=$ac_clean_files_save
2167# Check the compiler produces executables we can run.  If not, either
2168# the compiler is broken, or we cross compile.
2169echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172echo "${ECHO_T}$cross_compiling" >&6
2173
2174echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177  (eval $ac_link) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; then
2181  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2183# work properly (i.e., refer to `conftest.exe'), while it won't with
2184# `rm'.
2185for ac_file in conftest.exe conftest conftest.*; do
2186  test -f "$ac_file" || continue
2187  case $ac_file in
2188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190	  export ac_cv_exeext
2191	  break;;
2192    * ) break;;
2193  esac
2194done
2195else
2196  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest$ac_cv_exeext
2204echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205echo "${ECHO_T}$ac_cv_exeext" >&6
2206
2207rm -f conftest.$ac_ext
2208EXEEXT=$ac_cv_exeext
2209ac_exeext=$EXEEXT
2210echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212if test "${ac_cv_objext+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215  cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h.  */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h.  */
2221
2222int
2223main ()
2224{
2225
2226  ;
2227  return 0;
2228}
2229_ACEOF
2230rm -f conftest.o conftest.obj
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232  (eval $ac_compile) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; then
2236  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237  case $ac_file in
2238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240       break;;
2241  esac
2242done
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250See \`config.log' for more details." >&2;}
2251   { (exit 1); exit 1; }; }
2252fi
2253
2254rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257echo "${ECHO_T}$ac_cv_objext" >&6
2258OBJEXT=$ac_cv_objext
2259ac_objext=$OBJEXT
2260echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2261echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2262if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2263  echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265  cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h.  */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h.  */
2271
2272int
2273main ()
2274{
2275#ifndef __GNUC__
2276       choke me
2277#endif
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285  (eval $ac_compile) 2>conftest.er1
2286  ac_status=$?
2287  grep -v '^ *+' conftest.er1 >conftest.err
2288  rm -f conftest.er1
2289  cat conftest.err >&5
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); } &&
2292	 { ac_try='test -z "$ac_cxx_werror_flag"
2293			 || test ! -s conftest.err'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; } &&
2299	 { ac_try='test -s conftest.$ac_objext'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; }; then
2305  ac_compiler_gnu=yes
2306else
2307  echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310ac_compiler_gnu=no
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2314
2315fi
2316echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2317echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2318GXX=`test $ac_compiler_gnu = yes && echo yes`
2319ac_test_CXXFLAGS=${CXXFLAGS+set}
2320ac_save_CXXFLAGS=$CXXFLAGS
2321CXXFLAGS="-g"
2322echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2323echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2324if test "${ac_cv_prog_cxx_g+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333
2334int
2335main ()
2336{
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>conftest.er1
2345  ac_status=$?
2346  grep -v '^ *+' conftest.er1 >conftest.err
2347  rm -f conftest.er1
2348  cat conftest.err >&5
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); } &&
2351	 { ac_try='test -z "$ac_cxx_werror_flag"
2352			 || test ! -s conftest.err'
2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354  (eval $ac_try) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; } &&
2358	 { ac_try='test -s conftest.$ac_objext'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; }; then
2364  ac_cv_prog_cxx_g=yes
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369ac_cv_prog_cxx_g=no
2370fi
2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372fi
2373echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2374echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2375if test "$ac_test_CXXFLAGS" = set; then
2376  CXXFLAGS=$ac_save_CXXFLAGS
2377elif test $ac_cv_prog_cxx_g = yes; then
2378  if test "$GXX" = yes; then
2379    CXXFLAGS="-g -O2"
2380  else
2381    CXXFLAGS="-g"
2382  fi
2383else
2384  if test "$GXX" = yes; then
2385    CXXFLAGS="-O2"
2386  else
2387    CXXFLAGS=
2388  fi
2389fi
2390for ac_declaration in \
2391   '' \
2392   'extern "C" void std::exit (int) throw (); using std::exit;' \
2393   'extern "C" void std::exit (int); using std::exit;' \
2394   'extern "C" void exit (int) throw ();' \
2395   'extern "C" void exit (int);' \
2396   'void exit (int);'
2397do
2398  cat >conftest.$ac_ext <<_ACEOF
2399/* confdefs.h.  */
2400_ACEOF
2401cat confdefs.h >>conftest.$ac_ext
2402cat >>conftest.$ac_ext <<_ACEOF
2403/* end confdefs.h.  */
2404$ac_declaration
2405#include <stdlib.h>
2406int
2407main ()
2408{
2409exit (42);
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416  (eval $ac_compile) 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423	 { ac_try='test -z "$ac_cxx_werror_flag"
2424			 || test ! -s conftest.err'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; } &&
2430	 { ac_try='test -s conftest.$ac_objext'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; }; then
2436  :
2437else
2438  echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441continue
2442fi
2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444  cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h.  */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h.  */
2450$ac_declaration
2451int
2452main ()
2453{
2454exit (42);
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468	 { ac_try='test -z "$ac_cxx_werror_flag"
2469			 || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475	 { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  break
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488done
2489rm -f conftest*
2490if test -n "$ac_declaration"; then
2491  echo '#ifdef __cplusplus' >>confdefs.h
2492  echo $ac_declaration      >>confdefs.h
2493  echo '#endif'             >>confdefs.h
2494fi
2495
2496ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
2502ac_ext=c
2503ac_cpp='$CPP $CPPFLAGS'
2504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507if test -n "$ac_tool_prefix"; then
2508  for ac_prog in gcc
2509  do
2510    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512echo "$as_me:$LINENO: checking for $ac_word" >&5
2513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514if test "${ac_cv_prog_CC+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  if test -n "$CC"; then
2518  ac_cv_prog_CC="$CC" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523  IFS=$as_save_IFS
2524  test -z "$as_dir" && as_dir=.
2525  for ac_exec_ext in '' $ac_executable_extensions; do
2526  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529    break 2
2530  fi
2531done
2532done
2533
2534fi
2535fi
2536CC=$ac_cv_prog_CC
2537if test -n "$CC"; then
2538  echo "$as_me:$LINENO: result: $CC" >&5
2539echo "${ECHO_T}$CC" >&6
2540else
2541  echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6
2543fi
2544
2545    test -n "$CC" && break
2546  done
2547fi
2548if test -z "$CC"; then
2549  ac_ct_CC=$CC
2550  for ac_prog in gcc
2551do
2552  # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557  echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559  if test -n "$ac_ct_CC"; then
2560  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567  for ac_exec_ext in '' $ac_executable_extensions; do
2568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569    ac_cv_prog_ac_ct_CC="$ac_prog"
2570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574done
2575
2576fi
2577fi
2578ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579if test -n "$ac_ct_CC"; then
2580  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581echo "${ECHO_T}$ac_ct_CC" >&6
2582else
2583  echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6
2585fi
2586
2587  test -n "$ac_ct_CC" && break
2588done
2589
2590  CC=$ac_ct_CC
2591fi
2592
2593
2594test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2595See \`config.log' for more details." >&5
2596echo "$as_me: error: no acceptable C compiler found in \$PATH
2597See \`config.log' for more details." >&2;}
2598   { (exit 1); exit 1; }; }
2599
2600# Provide some information about the compiler.
2601echo "$as_me:$LINENO:" \
2602     "checking for C compiler version" >&5
2603ac_compiler=`set X $ac_compile; echo $2`
2604{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2605  (eval $ac_compiler --version </dev/null >&5) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }
2609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2610  (eval $ac_compiler -v </dev/null >&5) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }
2614{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2615  (eval $ac_compiler -V </dev/null >&5) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }
2619
2620echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2622if test "${ac_cv_c_compiler_gnu+set}" = set; then
2623  echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625  cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631
2632int
2633main ()
2634{
2635#ifndef __GNUC__
2636       choke me
2637#endif
2638
2639  ;
2640  return 0;
2641}
2642_ACEOF
2643rm -f conftest.$ac_objext
2644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645  (eval $ac_compile) 2>conftest.er1
2646  ac_status=$?
2647  grep -v '^ *+' conftest.er1 >conftest.err
2648  rm -f conftest.er1
2649  cat conftest.err >&5
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); } &&
2652	 { ac_try='test -z "$ac_c_werror_flag"
2653			 || test ! -s conftest.err'
2654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655  (eval $ac_try) 2>&5
2656  ac_status=$?
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; } &&
2659	 { ac_try='test -s conftest.$ac_objext'
2660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661  (eval $ac_try) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; }; then
2665  ac_compiler_gnu=yes
2666else
2667  echo "$as_me: failed program was:" >&5
2668sed 's/^/| /' conftest.$ac_ext >&5
2669
2670ac_compiler_gnu=no
2671fi
2672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673ac_cv_c_compiler_gnu=$ac_compiler_gnu
2674
2675fi
2676echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2678GCC=`test $ac_compiler_gnu = yes && echo yes`
2679ac_test_CFLAGS=${CFLAGS+set}
2680ac_save_CFLAGS=$CFLAGS
2681CFLAGS="-g"
2682echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2684if test "${ac_cv_prog_cc_g+set}" = set; then
2685  echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693
2694int
2695main ()
2696{
2697
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711	 { ac_try='test -z "$ac_c_werror_flag"
2712			 || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718	 { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  ac_cv_prog_cc_g=yes
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729ac_cv_prog_cc_g=no
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732fi
2733echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2735if test "$ac_test_CFLAGS" = set; then
2736  CFLAGS=$ac_save_CFLAGS
2737elif test $ac_cv_prog_cc_g = yes; then
2738  if test "$GCC" = yes; then
2739    CFLAGS="-g -O2"
2740  else
2741    CFLAGS="-g"
2742  fi
2743else
2744  if test "$GCC" = yes; then
2745    CFLAGS="-O2"
2746  else
2747    CFLAGS=
2748  fi
2749fi
2750echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2751echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2752if test "${ac_cv_prog_cc_stdc+set}" = set; then
2753  echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755  ac_cv_prog_cc_stdc=no
2756ac_save_CC=$CC
2757cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763#include <stdarg.h>
2764#include <stdio.h>
2765#include <sys/types.h>
2766#include <sys/stat.h>
2767/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2768struct buf { int x; };
2769FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770static char *e (p, i)
2771     char **p;
2772     int i;
2773{
2774  return p[i];
2775}
2776static char *f (char * (*g) (char **, int), char **p, ...)
2777{
2778  char *s;
2779  va_list v;
2780  va_start (v,p);
2781  s = g (p, va_arg (v,int));
2782  va_end (v);
2783  return s;
2784}
2785
2786/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2787   function prototypes and stuff, but not '\xHH' hex character constants.
2788   These don't provoke an error unfortunately, instead are silently treated
2789   as 'x'.  The following induces an error, until -std1 is added to get
2790   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2791   array size at least.  It's necessary to write '\x00'==0 to get something
2792   that's true only with -std1.  */
2793int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2794
2795int test (int i, double x);
2796struct s1 {int (*f) (int a);};
2797struct s2 {int (*f) (double a);};
2798int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2799int argc;
2800char **argv;
2801int
2802main ()
2803{
2804return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2805  ;
2806  return 0;
2807}
2808_ACEOF
2809# Don't try gcc -ansi; that turns off useful extensions and
2810# breaks some systems' header files.
2811# AIX			-qlanglvl=ansi
2812# Ultrix and OSF/1	-std1
2813# HP-UX 10.20 and later	-Ae
2814# HP-UX older versions	-Aa -D_HPUX_SOURCE
2815# SVR4			-Xc -D__EXTENSIONS__
2816for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2817do
2818  CC="$ac_save_CC $ac_arg"
2819  rm -f conftest.$ac_objext
2820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821  (eval $ac_compile) 2>conftest.er1
2822  ac_status=$?
2823  grep -v '^ *+' conftest.er1 >conftest.err
2824  rm -f conftest.er1
2825  cat conftest.err >&5
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); } &&
2828	 { ac_try='test -z "$ac_c_werror_flag"
2829			 || test ! -s conftest.err'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; } &&
2835	 { ac_try='test -s conftest.$ac_objext'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; }; then
2841  ac_cv_prog_cc_stdc=$ac_arg
2842break
2843else
2844  echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847fi
2848rm -f conftest.err conftest.$ac_objext
2849done
2850rm -f conftest.$ac_ext conftest.$ac_objext
2851CC=$ac_save_CC
2852
2853fi
2854
2855case "x$ac_cv_prog_cc_stdc" in
2856  x|xno)
2857    echo "$as_me:$LINENO: result: none needed" >&5
2858echo "${ECHO_T}none needed" >&6 ;;
2859  *)
2860    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2861echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2862    CC="$CC $ac_cv_prog_cc_stdc" ;;
2863esac
2864
2865# Some people use a C++ compiler to compile C.  Since we use `exit',
2866# in C++ we need to declare it.  In case someone uses the same compiler
2867# for both compiling C and C++ we need to have the C++ compiler decide
2868# the declaration of exit, since it's the most demanding environment.
2869cat >conftest.$ac_ext <<_ACEOF
2870#ifndef __cplusplus
2871  choke me
2872#endif
2873_ACEOF
2874rm -f conftest.$ac_objext
2875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876  (eval $ac_compile) 2>conftest.er1
2877  ac_status=$?
2878  grep -v '^ *+' conftest.er1 >conftest.err
2879  rm -f conftest.er1
2880  cat conftest.err >&5
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); } &&
2883	 { ac_try='test -z "$ac_c_werror_flag"
2884			 || test ! -s conftest.err'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; } &&
2890	 { ac_try='test -s conftest.$ac_objext'
2891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892  (eval $ac_try) 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }; }; then
2896  for ac_declaration in \
2897   '' \
2898   'extern "C" void std::exit (int) throw (); using std::exit;' \
2899   'extern "C" void std::exit (int); using std::exit;' \
2900   'extern "C" void exit (int) throw ();' \
2901   'extern "C" void exit (int);' \
2902   'void exit (int);'
2903do
2904  cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h.  */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h.  */
2910$ac_declaration
2911#include <stdlib.h>
2912int
2913main ()
2914{
2915exit (42);
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920rm -f conftest.$ac_objext
2921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922  (eval $ac_compile) 2>conftest.er1
2923  ac_status=$?
2924  grep -v '^ *+' conftest.er1 >conftest.err
2925  rm -f conftest.er1
2926  cat conftest.err >&5
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); } &&
2929	 { ac_try='test -z "$ac_c_werror_flag"
2930			 || test ! -s conftest.err'
2931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932  (eval $ac_try) 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }; } &&
2936	 { ac_try='test -s conftest.$ac_objext'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; }; then
2942  :
2943else
2944  echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947continue
2948fi
2949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950  cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h.  */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h.  */
2956$ac_declaration
2957int
2958main ()
2959{
2960exit (42);
2961  ;
2962  return 0;
2963}
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  break
2988else
2989  echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992fi
2993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994done
2995rm -f conftest*
2996if test -n "$ac_declaration"; then
2997  echo '#ifdef __cplusplus' >>confdefs.h
2998  echo $ac_declaration      >>confdefs.h
2999  echo '#endif'             >>confdefs.h
3000fi
3001
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006fi
3007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013
3014ac_ext=c
3015ac_cpp='$CPP $CPPFLAGS'
3016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3020echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3021# On Suns, sometimes $CPP names a directory.
3022if test -n "$CPP" && test -d "$CPP"; then
3023  CPP=
3024fi
3025if test -z "$CPP"; then
3026  if test "${ac_cv_prog_CPP+set}" = set; then
3027  echo $ECHO_N "(cached) $ECHO_C" >&6
3028else
3029      # Double quotes because CPP needs to be expanded
3030    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3031    do
3032      ac_preproc_ok=false
3033for ac_c_preproc_warn_flag in '' yes
3034do
3035  # Use a header file that comes with gcc, so configuring glibc
3036  # with a fresh cross-compiler works.
3037  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038  # <limits.h> exists even on freestanding compilers.
3039  # On the NeXT, cc -E runs the code through the compiler's parser,
3040  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
3048# include <limits.h>
3049#else
3050# include <assert.h>
3051#endif
3052		     Syntax error
3053_ACEOF
3054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } >/dev/null; then
3062  if test -s conftest.err; then
3063    ac_cpp_err=$ac_c_preproc_warn_flag
3064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065  else
3066    ac_cpp_err=
3067  fi
3068else
3069  ac_cpp_err=yes
3070fi
3071if test -z "$ac_cpp_err"; then
3072  :
3073else
3074  echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077  # Broken: fails on valid input.
3078continue
3079fi
3080rm -f conftest.err conftest.$ac_ext
3081
3082  # OK, works on sane cases.  Now check whether non-existent headers
3083  # can be detected and how.
3084  cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h.  */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h.  */
3090#include <ac_nonexistent.h>
3091_ACEOF
3092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } >/dev/null; then
3100  if test -s conftest.err; then
3101    ac_cpp_err=$ac_c_preproc_warn_flag
3102    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103  else
3104    ac_cpp_err=
3105  fi
3106else
3107  ac_cpp_err=yes
3108fi
3109if test -z "$ac_cpp_err"; then
3110  # Broken: success on invalid input.
3111continue
3112else
3113  echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116  # Passes both tests.
3117ac_preproc_ok=:
3118break
3119fi
3120rm -f conftest.err conftest.$ac_ext
3121
3122done
3123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124rm -f conftest.err conftest.$ac_ext
3125if $ac_preproc_ok; then
3126  break
3127fi
3128
3129    done
3130    ac_cv_prog_CPP=$CPP
3131
3132fi
3133  CPP=$ac_cv_prog_CPP
3134else
3135  ac_cv_prog_CPP=$CPP
3136fi
3137echo "$as_me:$LINENO: result: $CPP" >&5
3138echo "${ECHO_T}$CPP" >&6
3139ac_preproc_ok=false
3140for ac_c_preproc_warn_flag in '' yes
3141do
3142  # Use a header file that comes with gcc, so configuring glibc
3143  # with a fresh cross-compiler works.
3144  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3145  # <limits.h> exists even on freestanding compilers.
3146  # On the NeXT, cc -E runs the code through the compiler's parser,
3147  # not just through cpp. "Syntax error" is here to catch this case.
3148  cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h.  */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h.  */
3154#ifdef __STDC__
3155# include <limits.h>
3156#else
3157# include <assert.h>
3158#endif
3159		     Syntax error
3160_ACEOF
3161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3162  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3163  ac_status=$?
3164  grep -v '^ *+' conftest.er1 >conftest.err
3165  rm -f conftest.er1
3166  cat conftest.err >&5
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); } >/dev/null; then
3169  if test -s conftest.err; then
3170    ac_cpp_err=$ac_c_preproc_warn_flag
3171    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172  else
3173    ac_cpp_err=
3174  fi
3175else
3176  ac_cpp_err=yes
3177fi
3178if test -z "$ac_cpp_err"; then
3179  :
3180else
3181  echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184  # Broken: fails on valid input.
3185continue
3186fi
3187rm -f conftest.err conftest.$ac_ext
3188
3189  # OK, works on sane cases.  Now check whether non-existent headers
3190  # can be detected and how.
3191  cat >conftest.$ac_ext <<_ACEOF
3192/* confdefs.h.  */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h.  */
3197#include <ac_nonexistent.h>
3198_ACEOF
3199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3201  ac_status=$?
3202  grep -v '^ *+' conftest.er1 >conftest.err
3203  rm -f conftest.er1
3204  cat conftest.err >&5
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); } >/dev/null; then
3207  if test -s conftest.err; then
3208    ac_cpp_err=$ac_c_preproc_warn_flag
3209    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210  else
3211    ac_cpp_err=
3212  fi
3213else
3214  ac_cpp_err=yes
3215fi
3216if test -z "$ac_cpp_err"; then
3217  # Broken: success on invalid input.
3218continue
3219else
3220  echo "$as_me: failed program was:" >&5
3221sed 's/^/| /' conftest.$ac_ext >&5
3222
3223  # Passes both tests.
3224ac_preproc_ok=:
3225break
3226fi
3227rm -f conftest.err conftest.$ac_ext
3228
3229done
3230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231rm -f conftest.err conftest.$ac_ext
3232if $ac_preproc_ok; then
3233  :
3234else
3235  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3238See \`config.log' for more details." >&2;}
3239   { (exit 1); exit 1; }; }
3240fi
3241
3242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
3248
3249if test "$GCC" != "yes"
3250then
3251	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3252echo "$as_me: error: gcc required but not found" >&2;}
3253   { (exit 1); exit 1; }; }
3254fi
3255if test "$GXX" != "yes"
3256then
3257	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3258echo "$as_me: error: g++ required but not found" >&2;}
3259   { (exit 1); exit 1; }; }
3260fi
3261
3262gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3263if test "$gccmajor" -lt "3"
3264then
3265	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3266echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3267   { (exit 1); exit 1; }; }
3268fi
3269
3270 echo "$as_me:$LINENO: checking for GNU make" >&5
3271echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3272if test "${_cv_gnu_make_command+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  _cv_gnu_make_command='' ;
3276                for a in "$MAKE" make gmake gnumake ; do
3277                        if test -z "$a" ; then continue ; fi ;
3278                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3279                                _cv_gnu_make_command=$a ;
3280                                break;
3281                        fi
3282                done ;
3283
3284fi
3285echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3286echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3287        if test  "x$_cv_gnu_make_command" != "x"  ; then
3288                ifGNUmake='' ;
3289        else
3290                ifGNUmake='#' ;
3291                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3292echo "${ECHO_T}\"Not found\"" >&6;
3293        fi
3294
3295
3296if test -z "$_cv_gnu_make_command"
3297then
3298	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3299echo "$as_me: error: GNU Make required but not found" >&2;}
3300   { (exit 1); exit 1; }; }
3301fi
3302
3303
3304echo "$as_me:$LINENO: checking " >&5
3305echo $ECHO_N "checking ... $ECHO_C" >&6
3306if test "${ac_cv_has_flex+set}" = set; then
3307  echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309  for ac_prog in flex lex
3310do
3311  # Extract the first word of "$ac_prog", so it can be a program name with args.
3312set dummy $ac_prog; ac_word=$2
3313echo "$as_me:$LINENO: checking for $ac_word" >&5
3314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315if test "${ac_cv_prog_LEX+set}" = set; then
3316  echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318  if test -n "$LEX"; then
3319  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326  for ac_exec_ext in '' $ac_executable_extensions; do
3327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_LEX="$ac_prog"
3329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333done
3334
3335fi
3336fi
3337LEX=$ac_cv_prog_LEX
3338if test -n "$LEX"; then
3339  echo "$as_me:$LINENO: result: $LEX" >&5
3340echo "${ECHO_T}$LEX" >&6
3341else
3342  echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344fi
3345
3346  test -n "$LEX" && break
3347done
3348test -n "$LEX" || LEX=":"
3349
3350if test -z "$LEXLIB"
3351then
3352  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3353echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3354if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  ac_check_lib_save_LIBS=$LIBS
3358LIBS="-lfl  $LIBS"
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h.  */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h.  */
3365
3366/* Override any gcc2 internal prototype to avoid an error.  */
3367#ifdef __cplusplus
3368extern "C"
3369#endif
3370/* We use char because int might match the return type of a gcc2
3371   builtin and then its argument prototype would still apply.  */
3372char yywrap ();
3373int
3374main ()
3375{
3376yywrap ();
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext conftest$ac_exeext
3382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383  (eval $ac_link) 2>conftest.er1
3384  ac_status=$?
3385  grep -v '^ *+' conftest.er1 >conftest.err
3386  rm -f conftest.er1
3387  cat conftest.err >&5
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); } &&
3390	 { ac_try='test -z "$ac_c_werror_flag"
3391			 || test ! -s conftest.err'
3392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393  (eval $ac_try) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }; } &&
3397	 { ac_try='test -s conftest$ac_exeext'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; }; then
3403  ac_cv_lib_fl_yywrap=yes
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408ac_cv_lib_fl_yywrap=no
3409fi
3410rm -f conftest.err conftest.$ac_objext \
3411      conftest$ac_exeext conftest.$ac_ext
3412LIBS=$ac_check_lib_save_LIBS
3413fi
3414echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3415echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3416if test $ac_cv_lib_fl_yywrap = yes; then
3417  LEXLIB="-lfl"
3418else
3419  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3420echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3421if test "${ac_cv_lib_l_yywrap+set}" = set; then
3422  echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424  ac_check_lib_save_LIBS=$LIBS
3425LIBS="-ll  $LIBS"
3426cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h.  */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h.  */
3432
3433/* Override any gcc2 internal prototype to avoid an error.  */
3434#ifdef __cplusplus
3435extern "C"
3436#endif
3437/* We use char because int might match the return type of a gcc2
3438   builtin and then its argument prototype would still apply.  */
3439char yywrap ();
3440int
3441main ()
3442{
3443yywrap ();
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext conftest$ac_exeext
3449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450  (eval $ac_link) 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } &&
3457	 { ac_try='test -z "$ac_c_werror_flag"
3458			 || test ! -s conftest.err'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; } &&
3464	 { ac_try='test -s conftest$ac_exeext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470  ac_cv_lib_l_yywrap=yes
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475ac_cv_lib_l_yywrap=no
3476fi
3477rm -f conftest.err conftest.$ac_objext \
3478      conftest$ac_exeext conftest.$ac_ext
3479LIBS=$ac_check_lib_save_LIBS
3480fi
3481echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3482echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3483if test $ac_cv_lib_l_yywrap = yes; then
3484  LEXLIB="-ll"
3485fi
3486
3487fi
3488
3489fi
3490
3491if test "x$LEX" != "x:"; then
3492  echo "$as_me:$LINENO: checking lex output file root" >&5
3493echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3494if test "${ac_cv_prog_lex_root+set}" = set; then
3495  echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497  # The minimal lex program is just a single line: %%.  But some broken lexes
3498# (Solaris, I think it was) want two %% lines, so accommodate them.
3499cat >conftest.l <<_ACEOF
3500%%
3501%%
3502_ACEOF
3503{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3504  (eval $LEX conftest.l) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }
3508if test -f lex.yy.c; then
3509  ac_cv_prog_lex_root=lex.yy
3510elif test -f lexyy.c; then
3511  ac_cv_prog_lex_root=lexyy
3512else
3513  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3514echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3515   { (exit 1); exit 1; }; }
3516fi
3517fi
3518echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3519echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3520rm -f conftest.l
3521LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3522
3523echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3524echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3525if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3526  echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528  # POSIX says lex can declare yytext either as a pointer or an array; the
3529# default is implementation-dependent. Figure out which it is, since
3530# not all implementations provide the %pointer and %array declarations.
3531ac_cv_prog_lex_yytext_pointer=no
3532echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3533ac_save_LIBS=$LIBS
3534LIBS="$LIBS $LEXLIB"
3535cat >conftest.$ac_ext <<_ACEOF
3536`cat $LEX_OUTPUT_ROOT.c`
3537_ACEOF
3538rm -f conftest.$ac_objext conftest$ac_exeext
3539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540  (eval $ac_link) 2>conftest.er1
3541  ac_status=$?
3542  grep -v '^ *+' conftest.er1 >conftest.err
3543  rm -f conftest.er1
3544  cat conftest.err >&5
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); } &&
3547	 { ac_try='test -z "$ac_c_werror_flag"
3548			 || test ! -s conftest.err'
3549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550  (eval $ac_try) 2>&5
3551  ac_status=$?
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); }; } &&
3554	 { ac_try='test -s conftest$ac_exeext'
3555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556  (eval $ac_try) 2>&5
3557  ac_status=$?
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); }; }; then
3560  ac_cv_prog_lex_yytext_pointer=yes
3561else
3562  echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565fi
3566rm -f conftest.err conftest.$ac_objext \
3567      conftest$ac_exeext conftest.$ac_ext
3568LIBS=$ac_save_LIBS
3569rm -f "${LEX_OUTPUT_ROOT}.c"
3570
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3573echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3574if test $ac_cv_prog_lex_yytext_pointer = yes; then
3575
3576cat >>confdefs.h <<\_ACEOF
3577#define YYTEXT_POINTER 1
3578_ACEOF
3579
3580fi
3581
3582fi
3583
3584fi
3585echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3586echo "${ECHO_T}$ac_cv_has_flex" >&6
3587if test "$LEX" != "flex"; then
3588  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3589echo "$as_me: error: flex not found but required" >&2;}
3590   { (exit 1); exit 1; }; }
3591fi
3592
3593echo "$as_me:$LINENO: checking " >&5
3594echo $ECHO_N "checking ... $ECHO_C" >&6
3595if test "${ac_cv_has_bison+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  for ac_prog in 'bison -y' byacc
3599do
3600  # Extract the first word of "$ac_prog", so it can be a program name with args.
3601set dummy $ac_prog; ac_word=$2
3602echo "$as_me:$LINENO: checking for $ac_word" >&5
3603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604if test "${ac_cv_prog_YACC+set}" = set; then
3605  echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607  if test -n "$YACC"; then
3608  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613  IFS=$as_save_IFS
3614  test -z "$as_dir" && as_dir=.
3615  for ac_exec_ext in '' $ac_executable_extensions; do
3616  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617    ac_cv_prog_YACC="$ac_prog"
3618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619    break 2
3620  fi
3621done
3622done
3623
3624fi
3625fi
3626YACC=$ac_cv_prog_YACC
3627if test -n "$YACC"; then
3628  echo "$as_me:$LINENO: result: $YACC" >&5
3629echo "${ECHO_T}$YACC" >&6
3630else
3631  echo "$as_me:$LINENO: result: no" >&5
3632echo "${ECHO_T}no" >&6
3633fi
3634
3635  test -n "$YACC" && break
3636done
3637test -n "$YACC" || YACC="yacc"
3638
3639
3640fi
3641echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3642echo "${ECHO_T}$ac_cv_has_bison" >&6
3643if test "$YACC" != "bison -y"; then
3644  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3645echo "$as_me: error: bison not found but required" >&2;}
3646   { (exit 1); exit 1; }; }
3647else
3648  BISON=bison
3649
3650fi
3651
3652# Check whether --enable-shared or --disable-shared was given.
3653if test "${enable_shared+set}" = set; then
3654  enableval="$enable_shared"
3655  p=${PACKAGE-default}
3656    case $enableval in
3657    yes) enable_shared=yes ;;
3658    no) enable_shared=no ;;
3659    *)
3660      enable_shared=no
3661      # Look at the argument we got.  We use all the common list separators.
3662      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3663      for pkg in $enableval; do
3664	IFS="$lt_save_ifs"
3665	if test "X$pkg" = "X$p"; then
3666	  enable_shared=yes
3667	fi
3668      done
3669      IFS="$lt_save_ifs"
3670      ;;
3671    esac
3672else
3673  enable_shared=yes
3674fi;
3675
3676# Check whether --enable-static or --disable-static was given.
3677if test "${enable_static+set}" = set; then
3678  enableval="$enable_static"
3679  p=${PACKAGE-default}
3680    case $enableval in
3681    yes) enable_static=yes ;;
3682    no) enable_static=no ;;
3683    *)
3684     enable_static=no
3685      # Look at the argument we got.  We use all the common list separators.
3686      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687      for pkg in $enableval; do
3688	IFS="$lt_save_ifs"
3689	if test "X$pkg" = "X$p"; then
3690	  enable_static=yes
3691	fi
3692      done
3693      IFS="$lt_save_ifs"
3694      ;;
3695    esac
3696else
3697  enable_static=yes
3698fi;
3699
3700# Check whether --enable-fast-install or --disable-fast-install was given.
3701if test "${enable_fast_install+set}" = set; then
3702  enableval="$enable_fast_install"
3703  p=${PACKAGE-default}
3704    case $enableval in
3705    yes) enable_fast_install=yes ;;
3706    no) enable_fast_install=no ;;
3707    *)
3708      enable_fast_install=no
3709      # Look at the argument we got.  We use all the common list separators.
3710      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3711      for pkg in $enableval; do
3712	IFS="$lt_save_ifs"
3713	if test "X$pkg" = "X$p"; then
3714	  enable_fast_install=yes
3715	fi
3716      done
3717      IFS="$lt_save_ifs"
3718      ;;
3719    esac
3720else
3721  enable_fast_install=yes
3722fi;
3723
3724echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3725echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3726if test "${lt_cv_path_SED+set}" = set; then
3727  echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729  # Loop through the user's path and test for sed and gsed.
3730# Then use that list of sed's as ones to test for truncation.
3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734  IFS=$as_save_IFS
3735  test -z "$as_dir" && as_dir=.
3736  for lt_ac_prog in sed gsed; do
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3739        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3740      fi
3741    done
3742  done
3743done
3744lt_ac_max=0
3745lt_ac_count=0
3746# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3747# along with /bin/sed that truncates output.
3748for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3749  test ! -f $lt_ac_sed && break
3750  cat /dev/null > conftest.in
3751  lt_ac_count=0
3752  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3753  # Check for GNU sed and select it if it is found.
3754  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3755    lt_cv_path_SED=$lt_ac_sed
3756    break
3757  fi
3758  while true; do
3759    cat conftest.in conftest.in >conftest.tmp
3760    mv conftest.tmp conftest.in
3761    cp conftest.in conftest.nl
3762    echo >>conftest.nl
3763    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3764    cmp -s conftest.out conftest.nl || break
3765    # 10000 chars as input seems more than enough
3766    test $lt_ac_count -gt 10 && break
3767    lt_ac_count=`expr $lt_ac_count + 1`
3768    if test $lt_ac_count -gt $lt_ac_max; then
3769      lt_ac_max=$lt_ac_count
3770      lt_cv_path_SED=$lt_ac_sed
3771    fi
3772  done
3773done
3774SED=$lt_cv_path_SED
3775
3776fi
3777
3778echo "$as_me:$LINENO: result: $SED" >&5
3779echo "${ECHO_T}$SED" >&6
3780
3781echo "$as_me:$LINENO: checking for egrep" >&5
3782echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3783if test "${ac_cv_prog_egrep+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3787    then ac_cv_prog_egrep='grep -E'
3788    else ac_cv_prog_egrep='egrep'
3789    fi
3790fi
3791echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3792echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3793 EGREP=$ac_cv_prog_egrep
3794
3795
3796
3797# Check whether --with-gnu-ld or --without-gnu-ld was given.
3798if test "${with_gnu_ld+set}" = set; then
3799  withval="$with_gnu_ld"
3800  test "$withval" = no || with_gnu_ld=yes
3801else
3802  with_gnu_ld=no
3803fi;
3804ac_prog=ld
3805if test "$GCC" = yes; then
3806  # Check if gcc -print-prog-name=ld gives a path.
3807  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3808echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3809  case $host in
3810  *-*-mingw*)
3811    # gcc leaves a trailing carriage return which upsets mingw
3812    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3813  *)
3814    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3815  esac
3816  case $ac_prog in
3817    # Accept absolute paths.
3818    [\\/]* | ?:[\\/]*)
3819      re_direlt='/[^/][^/]*/\.\./'
3820      # Canonicalize the path of ld
3821      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3822      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3823	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3824      done
3825      test -z "$LD" && LD="$ac_prog"
3826      ;;
3827  "")
3828    # If it fails, then pretend we aren't using GCC.
3829    ac_prog=ld
3830    ;;
3831  *)
3832    # If it is relative, then search for the first ld in PATH.
3833    with_gnu_ld=unknown
3834    ;;
3835  esac
3836elif test "$with_gnu_ld" = yes; then
3837  echo "$as_me:$LINENO: checking for GNU ld" >&5
3838echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3839else
3840  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3841echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3842fi
3843if test "${lt_cv_path_LD+set}" = set; then
3844  echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846  if test -z "$LD"; then
3847  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3848  for ac_dir in $PATH; do
3849    IFS="$lt_save_ifs"
3850    test -z "$ac_dir" && ac_dir=.
3851    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3852      lt_cv_path_LD="$ac_dir/$ac_prog"
3853      # Check to see if the program is GNU ld.  I'd rather use --version,
3854      # but apparently some GNU ld's only accept -v.
3855      # Break only if it was the GNU/non-GNU ld that we prefer.
3856      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3857      *GNU* | *'with BFD'*)
3858	test "$with_gnu_ld" != no && break
3859	;;
3860      *)
3861	test "$with_gnu_ld" != yes && break
3862	;;
3863      esac
3864    fi
3865  done
3866  IFS="$lt_save_ifs"
3867else
3868  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3869fi
3870fi
3871
3872LD="$lt_cv_path_LD"
3873if test -n "$LD"; then
3874  echo "$as_me:$LINENO: result: $LD" >&5
3875echo "${ECHO_T}$LD" >&6
3876else
3877  echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879fi
3880test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3881echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3882   { (exit 1); exit 1; }; }
3883echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3884echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3885if test "${lt_cv_prog_gnu_ld+set}" = set; then
3886  echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3889case `"$LD" -v 2>&1 </dev/null` in
3890*GNU* | *'with BFD'*)
3891  lt_cv_prog_gnu_ld=yes
3892  ;;
3893*)
3894  lt_cv_prog_gnu_ld=no
3895  ;;
3896esac
3897fi
3898echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3899echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3900with_gnu_ld=$lt_cv_prog_gnu_ld
3901
3902
3903echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3904echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3905if test "${lt_cv_ld_reload_flag+set}" = set; then
3906  echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908  lt_cv_ld_reload_flag='-r'
3909fi
3910echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3911echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3912reload_flag=$lt_cv_ld_reload_flag
3913case $reload_flag in
3914"" | " "*) ;;
3915*) reload_flag=" $reload_flag" ;;
3916esac
3917reload_cmds='$LD$reload_flag -o $output$reload_objs'
3918
3919echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3920echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3921if test "${lt_cv_path_NM+set}" = set; then
3922  echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924  if test -n "$NM"; then
3925  # Let the user override the test.
3926  lt_cv_path_NM="$NM"
3927else
3928  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3929  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3930    IFS="$lt_save_ifs"
3931    test -z "$ac_dir" && ac_dir=.
3932    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3933    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3934      # Check to see if the nm accepts a BSD-compat flag.
3935      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3936      #   nm: unknown option "B" ignored
3937      # Tru64's nm complains that /dev/null is an invalid object file
3938      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3939      */dev/null* | *'Invalid file or object type'*)
3940	lt_cv_path_NM="$tmp_nm -B"
3941	break
3942        ;;
3943      *)
3944	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3945	*/dev/null*)
3946	  lt_cv_path_NM="$tmp_nm -p"
3947	  break
3948	  ;;
3949	*)
3950	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3951	  continue # so that we can try to find one that supports BSD flags
3952	  ;;
3953	esac
3954      esac
3955    fi
3956  done
3957  IFS="$lt_save_ifs"
3958  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3959fi
3960fi
3961echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3962echo "${ECHO_T}$lt_cv_path_NM" >&6
3963NM="$lt_cv_path_NM"
3964
3965echo "$as_me:$LINENO: checking whether ln -s works" >&5
3966echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3967LN_S=$as_ln_s
3968if test "$LN_S" = "ln -s"; then
3969  echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
3971else
3972  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3973echo "${ECHO_T}no, using $LN_S" >&6
3974fi
3975
3976echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3977echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3978if test "${lt_cv_deplibs_check_method+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  lt_cv_file_magic_cmd='$MAGIC_CMD'
3982lt_cv_file_magic_test_file=
3983lt_cv_deplibs_check_method='unknown'
3984# Need to set the preceding variable on all platforms that support
3985# interlibrary dependencies.
3986# 'none' -- dependencies not supported.
3987# `unknown' -- same as none, but documents that we really don't know.
3988# 'pass_all' -- all dependencies passed with no checks.
3989# 'test_compile' -- check by making test program.
3990# 'file_magic [[regex]]' -- check by looking for files in library path
3991# which responds to the $file_magic_cmd with a given extended regex.
3992# If you have `file' or equivalent on your system and you're not sure
3993# whether `pass_all' will *always* work, you probably want this one.
3994
3995case $host_os in
3996aix4* | aix5*)
3997  lt_cv_deplibs_check_method=pass_all
3998  ;;
3999
4000beos*)
4001  lt_cv_deplibs_check_method=pass_all
4002  ;;
4003
4004bsdi4*)
4005  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4006  lt_cv_file_magic_cmd='/usr/bin/file -L'
4007  lt_cv_file_magic_test_file=/shlib/libc.so
4008  ;;
4009
4010cygwin* | mingw* | pw32*)
4011  # win32_libid is a shell function defined in ltmain.sh
4012  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4013  lt_cv_file_magic_cmd='win32_libid'
4014  ;;
4015
4016darwin* | rhapsody*)
4017  # this will be overwritten by pass_all, but leave it in just in case
4018  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4019  lt_cv_file_magic_cmd='/usr/bin/file -L'
4020  case "$host_os" in
4021  rhapsody* | darwin1.[012])
4022    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4023    ;;
4024  *) # Darwin 1.3 on
4025    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4026    ;;
4027  esac
4028  lt_cv_deplibs_check_method=pass_all
4029  ;;
4030
4031freebsd*)
4032  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4033    case $host_cpu in
4034    i*86 )
4035      # Not sure whether the presence of OpenBSD here was a mistake.
4036      # Let's accept both of them until this is cleared up.
4037      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4038      lt_cv_file_magic_cmd=/usr/bin/file
4039      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4040      ;;
4041    esac
4042  else
4043    lt_cv_deplibs_check_method=pass_all
4044  fi
4045  ;;
4046
4047gnu*)
4048  lt_cv_deplibs_check_method=pass_all
4049  ;;
4050
4051hpux10.20* | hpux11*)
4052  lt_cv_file_magic_cmd=/usr/bin/file
4053  case "$host_cpu" in
4054  ia64*)
4055    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4056    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4057    ;;
4058  hppa*64*)
4059    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]'
4060    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4061    ;;
4062  *)
4063    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4064    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4065    ;;
4066  esac
4067  ;;
4068
4069irix5* | irix6* | nonstopux*)
4070  case $host_os in
4071  irix5* | nonstopux*)
4072    # this will be overridden with pass_all, but let us keep it just in case
4073    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4074    ;;
4075  *)
4076    case $LD in
4077    *-32|*"-32 ") libmagic=32-bit;;
4078    *-n32|*"-n32 ") libmagic=N32;;
4079    *-64|*"-64 ") libmagic=64-bit;;
4080    *) libmagic=never-match;;
4081    esac
4082    # this will be overridden with pass_all, but let us keep it just in case
4083    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4084    ;;
4085  esac
4086  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4087  lt_cv_deplibs_check_method=pass_all
4088  ;;
4089
4090# This must be Linux ELF.
4091linux*)
4092  case $host_cpu in
4093  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4094    lt_cv_deplibs_check_method=pass_all ;;
4095  *)
4096    # glibc up to 2.1.1 does not perform some relocations on ARM
4097    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4098  esac
4099  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4100  ;;
4101
4102netbsd*)
4103  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4104    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4105  else
4106    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4107  fi
4108  ;;
4109
4110newos6*)
4111  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4112  lt_cv_file_magic_cmd=/usr/bin/file
4113  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4114  ;;
4115
4116nto-qnx)
4117  lt_cv_deplibs_check_method=unknown
4118  ;;
4119
4120openbsd*)
4121  lt_cv_file_magic_cmd=/usr/bin/file
4122  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4123  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4124    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4125  else
4126    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4127  fi
4128  ;;
4129
4130osf3* | osf4* | osf5*)
4131  # this will be overridden with pass_all, but let us keep it just in case
4132  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4133  lt_cv_file_magic_test_file=/shlib/libc.so
4134  lt_cv_deplibs_check_method=pass_all
4135  ;;
4136
4137sco3.2v5*)
4138  lt_cv_deplibs_check_method=pass_all
4139  ;;
4140
4141solaris*)
4142  lt_cv_deplibs_check_method=pass_all
4143  lt_cv_file_magic_test_file=/lib/libc.so
4144  ;;
4145
4146sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4147  case $host_vendor in
4148  motorola)
4149    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]'
4150    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4151    ;;
4152  ncr)
4153    lt_cv_deplibs_check_method=pass_all
4154    ;;
4155  sequent)
4156    lt_cv_file_magic_cmd='/bin/file'
4157    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4158    ;;
4159  sni)
4160    lt_cv_file_magic_cmd='/bin/file'
4161    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4162    lt_cv_file_magic_test_file=/lib/libc.so
4163    ;;
4164  siemens)
4165    lt_cv_deplibs_check_method=pass_all
4166    ;;
4167  esac
4168  ;;
4169
4170sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4171  lt_cv_deplibs_check_method=pass_all
4172  ;;
4173esac
4174
4175fi
4176echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4177echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4178file_magic_cmd=$lt_cv_file_magic_cmd
4179deplibs_check_method=$lt_cv_deplibs_check_method
4180test -z "$deplibs_check_method" && deplibs_check_method=unknown
4181
4182
4183
4184
4185# If no C compiler was specified, use CC.
4186LTCC=${LTCC-"$CC"}
4187
4188# Allow CC to be a program name with arguments.
4189compiler=$CC
4190
4191# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4192if test "${enable_libtool_lock+set}" = set; then
4193  enableval="$enable_libtool_lock"
4194
4195fi;
4196test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4197
4198# Some flags need to be propagated to the compiler or linker for good
4199# libtool support.
4200case $host in
4201ia64-*-hpux*)
4202  # Find out which ABI we are using.
4203  echo 'int i;' > conftest.$ac_ext
4204  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205  (eval $ac_compile) 2>&5
4206  ac_status=$?
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); }; then
4209    case `/usr/bin/file conftest.$ac_objext` in
4210    *ELF-32*)
4211      HPUX_IA64_MODE="32"
4212      ;;
4213    *ELF-64*)
4214      HPUX_IA64_MODE="64"
4215      ;;
4216    esac
4217  fi
4218  rm -rf conftest*
4219  ;;
4220*-*-irix6*)
4221  # Find out which ABI we are using.
4222  echo '#line 4222 "configure"' > conftest.$ac_ext
4223  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224  (eval $ac_compile) 2>&5
4225  ac_status=$?
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); }; then
4228   if test "$lt_cv_prog_gnu_ld" = yes; then
4229    case `/usr/bin/file conftest.$ac_objext` in
4230    *32-bit*)
4231      LD="${LD-ld} -melf32bsmip"
4232      ;;
4233    *N32*)
4234      LD="${LD-ld} -melf32bmipn32"
4235      ;;
4236    *64-bit*)
4237      LD="${LD-ld} -melf64bmip"
4238      ;;
4239    esac
4240   else
4241    case `/usr/bin/file conftest.$ac_objext` in
4242    *32-bit*)
4243      LD="${LD-ld} -32"
4244      ;;
4245    *N32*)
4246      LD="${LD-ld} -n32"
4247      ;;
4248    *64-bit*)
4249      LD="${LD-ld} -64"
4250      ;;
4251    esac
4252   fi
4253  fi
4254  rm -rf conftest*
4255  ;;
4256
4257x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4258  # Find out which ABI we are using.
4259  echo 'int i;' > conftest.$ac_ext
4260  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261  (eval $ac_compile) 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }; then
4265    case "`/usr/bin/file conftest.o`" in
4266    *32-bit*)
4267      case $host in
4268        x86_64-*linux*)
4269          LD="${LD-ld} -m elf_i386"
4270          ;;
4271        ppc64-*linux*)
4272          LD="${LD-ld} -m elf32ppclinux"
4273          ;;
4274        s390x-*linux*)
4275          LD="${LD-ld} -m elf_s390"
4276          ;;
4277        sparc64-*linux*)
4278          LD="${LD-ld} -m elf32_sparc"
4279          ;;
4280      esac
4281      ;;
4282    *64-bit*)
4283      case $host in
4284        x86_64-*linux*)
4285          LD="${LD-ld} -m elf_x86_64"
4286          ;;
4287        ppc*-*linux*|powerpc*-*linux*)
4288          LD="${LD-ld} -m elf64ppc"
4289          ;;
4290        s390*-*linux*)
4291          LD="${LD-ld} -m elf64_s390"
4292          ;;
4293        sparc*-*linux*)
4294          LD="${LD-ld} -m elf64_sparc"
4295          ;;
4296      esac
4297      ;;
4298    esac
4299  fi
4300  rm -rf conftest*
4301  ;;
4302
4303*-*-sco3.2v5*)
4304  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4305  SAVE_CFLAGS="$CFLAGS"
4306  CFLAGS="$CFLAGS -belf"
4307  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4308echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4309if test "${lt_cv_cc_needs_belf+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318     cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h.  */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h.  */
4324
4325int
4326main ()
4327{
4328
4329  ;
4330  return 0;
4331}
4332_ACEOF
4333rm -f conftest.$ac_objext conftest$ac_exeext
4334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335  (eval $ac_link) 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342	 { ac_try='test -z "$ac_c_werror_flag"
4343			 || test ! -s conftest.err'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; } &&
4349	 { ac_try='test -s conftest$ac_exeext'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  lt_cv_cc_needs_belf=yes
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360lt_cv_cc_needs_belf=no
4361fi
4362rm -f conftest.err conftest.$ac_objext \
4363      conftest$ac_exeext conftest.$ac_ext
4364     ac_ext=c
4365ac_cpp='$CPP $CPPFLAGS'
4366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369
4370fi
4371echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4372echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4373  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4374    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4375    CFLAGS="$SAVE_CFLAGS"
4376  fi
4377  ;;
4378
4379esac
4380
4381need_locks="$enable_libtool_lock"
4382
4383
4384
4385echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4387if test "${ac_cv_header_stdc+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  cat >conftest.$ac_ext <<_ACEOF
4391/* confdefs.h.  */
4392_ACEOF
4393cat confdefs.h >>conftest.$ac_ext
4394cat >>conftest.$ac_ext <<_ACEOF
4395/* end confdefs.h.  */
4396#include <stdlib.h>
4397#include <stdarg.h>
4398#include <string.h>
4399#include <float.h>
4400
4401int
4402main ()
4403{
4404
4405  ;
4406  return 0;
4407}
4408_ACEOF
4409rm -f conftest.$ac_objext
4410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411  (eval $ac_compile) 2>conftest.er1
4412  ac_status=$?
4413  grep -v '^ *+' conftest.er1 >conftest.err
4414  rm -f conftest.er1
4415  cat conftest.err >&5
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); } &&
4418	 { ac_try='test -z "$ac_c_werror_flag"
4419			 || test ! -s conftest.err'
4420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421  (eval $ac_try) 2>&5
4422  ac_status=$?
4423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424  (exit $ac_status); }; } &&
4425	 { ac_try='test -s conftest.$ac_objext'
4426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427  (eval $ac_try) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; }; then
4431  ac_cv_header_stdc=yes
4432else
4433  echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436ac_cv_header_stdc=no
4437fi
4438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439
4440if test $ac_cv_header_stdc = yes; then
4441  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4442  cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h.  */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h.  */
4448#include <string.h>
4449
4450_ACEOF
4451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452  $EGREP "memchr" >/dev/null 2>&1; then
4453  :
4454else
4455  ac_cv_header_stdc=no
4456fi
4457rm -f conftest*
4458
4459fi
4460
4461if test $ac_cv_header_stdc = yes; then
4462  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4463  cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h.  */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h.  */
4469#include <stdlib.h>
4470
4471_ACEOF
4472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473  $EGREP "free" >/dev/null 2>&1; then
4474  :
4475else
4476  ac_cv_header_stdc=no
4477fi
4478rm -f conftest*
4479
4480fi
4481
4482if test $ac_cv_header_stdc = yes; then
4483  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4484  if test "$cross_compiling" = yes; then
4485  :
4486else
4487  cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h.  */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h.  */
4493#include <ctype.h>
4494#if ((' ' & 0x0FF) == 0x020)
4495# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4497#else
4498# define ISLOWER(c) \
4499		   (('a' <= (c) && (c) <= 'i') \
4500		     || ('j' <= (c) && (c) <= 'r') \
4501		     || ('s' <= (c) && (c) <= 'z'))
4502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4503#endif
4504
4505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4506int
4507main ()
4508{
4509  int i;
4510  for (i = 0; i < 256; i++)
4511    if (XOR (islower (i), ISLOWER (i))
4512	|| toupper (i) != TOUPPER (i))
4513      exit(2);
4514  exit (0);
4515}
4516_ACEOF
4517rm -f conftest$ac_exeext
4518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519  (eval $ac_link) 2>&5
4520  ac_status=$?
4521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524  (eval $ac_try) 2>&5
4525  ac_status=$?
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); }; }; then
4528  :
4529else
4530  echo "$as_me: program exited with status $ac_status" >&5
4531echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534( exit $ac_status )
4535ac_cv_header_stdc=no
4536fi
4537rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4538fi
4539fi
4540fi
4541echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4542echo "${ECHO_T}$ac_cv_header_stdc" >&6
4543if test $ac_cv_header_stdc = yes; then
4544
4545cat >>confdefs.h <<\_ACEOF
4546#define STDC_HEADERS 1
4547_ACEOF
4548
4549fi
4550
4551# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4562		  inttypes.h stdint.h unistd.h
4563do
4564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4565echo "$as_me:$LINENO: checking for $ac_header" >&5
4566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4567if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568  echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570  cat >conftest.$ac_ext <<_ACEOF
4571/* confdefs.h.  */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h.  */
4576$ac_includes_default
4577
4578#include <$ac_header>
4579_ACEOF
4580rm -f conftest.$ac_objext
4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582  (eval $ac_compile) 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } &&
4589	 { ac_try='test -z "$ac_c_werror_flag"
4590			 || test ! -s conftest.err'
4591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592  (eval $ac_try) 2>&5
4593  ac_status=$?
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); }; } &&
4596	 { ac_try='test -s conftest.$ac_objext'
4597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598  (eval $ac_try) 2>&5
4599  ac_status=$?
4600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601  (exit $ac_status); }; }; then
4602  eval "$as_ac_Header=yes"
4603else
4604  echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607eval "$as_ac_Header=no"
4608fi
4609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610fi
4611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4613if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614  cat >>confdefs.h <<_ACEOF
4615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616_ACEOF
4617
4618fi
4619
4620done
4621
4622
4623
4624for ac_header in dlfcn.h
4625do
4626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4627if eval "test \"\${$as_ac_Header+set}\" = set"; then
4628  echo "$as_me:$LINENO: checking for $ac_header" >&5
4629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4630if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632fi
4633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4635else
4636  # Is the header compilable?
4637echo "$as_me:$LINENO: checking $ac_header usability" >&5
4638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4639cat >conftest.$ac_ext <<_ACEOF
4640/* confdefs.h.  */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h.  */
4645$ac_includes_default
4646#include <$ac_header>
4647_ACEOF
4648rm -f conftest.$ac_objext
4649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650  (eval $ac_compile) 2>conftest.er1
4651  ac_status=$?
4652  grep -v '^ *+' conftest.er1 >conftest.err
4653  rm -f conftest.er1
4654  cat conftest.err >&5
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); } &&
4657	 { ac_try='test -z "$ac_c_werror_flag"
4658			 || test ! -s conftest.err'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; } &&
4664	 { ac_try='test -s conftest.$ac_objext'
4665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666  (eval $ac_try) 2>&5
4667  ac_status=$?
4668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669  (exit $ac_status); }; }; then
4670  ac_header_compiler=yes
4671else
4672  echo "$as_me: failed program was:" >&5
4673sed 's/^/| /' conftest.$ac_ext >&5
4674
4675ac_header_compiler=no
4676fi
4677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679echo "${ECHO_T}$ac_header_compiler" >&6
4680
4681# Is the header present?
4682echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690#include <$ac_header>
4691_ACEOF
4692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4693  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4694  ac_status=$?
4695  grep -v '^ *+' conftest.er1 >conftest.err
4696  rm -f conftest.er1
4697  cat conftest.err >&5
4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699  (exit $ac_status); } >/dev/null; then
4700  if test -s conftest.err; then
4701    ac_cpp_err=$ac_c_preproc_warn_flag
4702    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4703  else
4704    ac_cpp_err=
4705  fi
4706else
4707  ac_cpp_err=yes
4708fi
4709if test -z "$ac_cpp_err"; then
4710  ac_header_preproc=yes
4711else
4712  echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715  ac_header_preproc=no
4716fi
4717rm -f conftest.err conftest.$ac_ext
4718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4719echo "${ECHO_T}$ac_header_preproc" >&6
4720
4721# So?  What about this header?
4722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4723  yes:no: )
4724    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4726    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4728    ac_header_preproc=yes
4729    ;;
4730  no:yes:* )
4731    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4733    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4734echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4735    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4737    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4738echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4739    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4741    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4743    (
4744      cat <<\_ASBOX
4745## ----------------------------------- ##
4746## Report this to llvmbugs@cs.uiuc.edu ##
4747## ----------------------------------- ##
4748_ASBOX
4749    ) |
4750      sed "s/^/$as_me: WARNING:     /" >&2
4751    ;;
4752esac
4753echo "$as_me:$LINENO: checking for $ac_header" >&5
4754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  eval "$as_ac_Header=\$ac_header_preproc"
4759fi
4760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762
4763fi
4764if test `eval echo '${'$as_ac_Header'}'` = yes; then
4765  cat >>confdefs.h <<_ACEOF
4766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4767_ACEOF
4768
4769fi
4770
4771done
4772
4773ac_ext=cc
4774ac_cpp='$CXXCPP $CPPFLAGS'
4775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4778echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4779echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4780if test -z "$CXXCPP"; then
4781  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4782  echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784      # Double quotes because CXXCPP needs to be expanded
4785    for CXXCPP in "$CXX -E" "/lib/cpp"
4786    do
4787      ac_preproc_ok=false
4788for ac_cxx_preproc_warn_flag in '' yes
4789do
4790  # Use a header file that comes with gcc, so configuring glibc
4791  # with a fresh cross-compiler works.
4792  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4793  # <limits.h> exists even on freestanding compilers.
4794  # On the NeXT, cc -E runs the code through the compiler's parser,
4795  # not just through cpp. "Syntax error" is here to catch this case.
4796  cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h.  */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h.  */
4802#ifdef __STDC__
4803# include <limits.h>
4804#else
4805# include <assert.h>
4806#endif
4807		     Syntax error
4808_ACEOF
4809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811  ac_status=$?
4812  grep -v '^ *+' conftest.er1 >conftest.err
4813  rm -f conftest.er1
4814  cat conftest.err >&5
4815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816  (exit $ac_status); } >/dev/null; then
4817  if test -s conftest.err; then
4818    ac_cpp_err=$ac_cxx_preproc_warn_flag
4819    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4820  else
4821    ac_cpp_err=
4822  fi
4823else
4824  ac_cpp_err=yes
4825fi
4826if test -z "$ac_cpp_err"; then
4827  :
4828else
4829  echo "$as_me: failed program was:" >&5
4830sed 's/^/| /' conftest.$ac_ext >&5
4831
4832  # Broken: fails on valid input.
4833continue
4834fi
4835rm -f conftest.err conftest.$ac_ext
4836
4837  # OK, works on sane cases.  Now check whether non-existent headers
4838  # can be detected and how.
4839  cat >conftest.$ac_ext <<_ACEOF
4840/* confdefs.h.  */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h.  */
4845#include <ac_nonexistent.h>
4846_ACEOF
4847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849  ac_status=$?
4850  grep -v '^ *+' conftest.er1 >conftest.err
4851  rm -f conftest.er1
4852  cat conftest.err >&5
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); } >/dev/null; then
4855  if test -s conftest.err; then
4856    ac_cpp_err=$ac_cxx_preproc_warn_flag
4857    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4858  else
4859    ac_cpp_err=
4860  fi
4861else
4862  ac_cpp_err=yes
4863fi
4864if test -z "$ac_cpp_err"; then
4865  # Broken: success on invalid input.
4866continue
4867else
4868  echo "$as_me: failed program was:" >&5
4869sed 's/^/| /' conftest.$ac_ext >&5
4870
4871  # Passes both tests.
4872ac_preproc_ok=:
4873break
4874fi
4875rm -f conftest.err conftest.$ac_ext
4876
4877done
4878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4879rm -f conftest.err conftest.$ac_ext
4880if $ac_preproc_ok; then
4881  break
4882fi
4883
4884    done
4885    ac_cv_prog_CXXCPP=$CXXCPP
4886
4887fi
4888  CXXCPP=$ac_cv_prog_CXXCPP
4889else
4890  ac_cv_prog_CXXCPP=$CXXCPP
4891fi
4892echo "$as_me:$LINENO: result: $CXXCPP" >&5
4893echo "${ECHO_T}$CXXCPP" >&6
4894ac_preproc_ok=false
4895for ac_cxx_preproc_warn_flag in '' yes
4896do
4897  # Use a header file that comes with gcc, so configuring glibc
4898  # with a fresh cross-compiler works.
4899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900  # <limits.h> exists even on freestanding compilers.
4901  # On the NeXT, cc -E runs the code through the compiler's parser,
4902  # not just through cpp. "Syntax error" is here to catch this case.
4903  cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#ifdef __STDC__
4910# include <limits.h>
4911#else
4912# include <assert.h>
4913#endif
4914		     Syntax error
4915_ACEOF
4916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918  ac_status=$?
4919  grep -v '^ *+' conftest.er1 >conftest.err
4920  rm -f conftest.er1
4921  cat conftest.err >&5
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); } >/dev/null; then
4924  if test -s conftest.err; then
4925    ac_cpp_err=$ac_cxx_preproc_warn_flag
4926    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4927  else
4928    ac_cpp_err=
4929  fi
4930else
4931  ac_cpp_err=yes
4932fi
4933if test -z "$ac_cpp_err"; then
4934  :
4935else
4936  echo "$as_me: failed program was:" >&5
4937sed 's/^/| /' conftest.$ac_ext >&5
4938
4939  # Broken: fails on valid input.
4940continue
4941fi
4942rm -f conftest.err conftest.$ac_ext
4943
4944  # OK, works on sane cases.  Now check whether non-existent headers
4945  # can be detected and how.
4946  cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h.  */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h.  */
4952#include <ac_nonexistent.h>
4953_ACEOF
4954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } >/dev/null; then
4962  if test -s conftest.err; then
4963    ac_cpp_err=$ac_cxx_preproc_warn_flag
4964    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4965  else
4966    ac_cpp_err=
4967  fi
4968else
4969  ac_cpp_err=yes
4970fi
4971if test -z "$ac_cpp_err"; then
4972  # Broken: success on invalid input.
4973continue
4974else
4975  echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978  # Passes both tests.
4979ac_preproc_ok=:
4980break
4981fi
4982rm -f conftest.err conftest.$ac_ext
4983
4984done
4985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4986rm -f conftest.err conftest.$ac_ext
4987if $ac_preproc_ok; then
4988  :
4989else
4990  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4991See \`config.log' for more details." >&5
4992echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4993See \`config.log' for more details." >&2;}
4994   { (exit 1); exit 1; }; }
4995fi
4996
4997ac_ext=cc
4998ac_cpp='$CXXCPP $CPPFLAGS'
4999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5002
5003
5004ac_ext=f
5005ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5006ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5008if test -n "$ac_tool_prefix"; then
5009  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5010  do
5011    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013echo "$as_me:$LINENO: checking for $ac_word" >&5
5014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015if test "${ac_cv_prog_F77+set}" = set; then
5016  echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018  if test -n "$F77"; then
5019  ac_cv_prog_F77="$F77" # Let the user override the test.
5020else
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024  IFS=$as_save_IFS
5025  test -z "$as_dir" && as_dir=.
5026  for ac_exec_ext in '' $ac_executable_extensions; do
5027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030    break 2
5031  fi
5032done
5033done
5034
5035fi
5036fi
5037F77=$ac_cv_prog_F77
5038if test -n "$F77"; then
5039  echo "$as_me:$LINENO: result: $F77" >&5
5040echo "${ECHO_T}$F77" >&6
5041else
5042  echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044fi
5045
5046    test -n "$F77" && break
5047  done
5048fi
5049if test -z "$F77"; then
5050  ac_ct_F77=$F77
5051  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5052do
5053  # Extract the first word of "$ac_prog", so it can be a program name with args.
5054set dummy $ac_prog; ac_word=$2
5055echo "$as_me:$LINENO: checking for $ac_word" >&5
5056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060  if test -n "$ac_ct_F77"; then
5061  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068  for ac_exec_ext in '' $ac_executable_extensions; do
5069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070    ac_cv_prog_ac_ct_F77="$ac_prog"
5071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075done
5076
5077fi
5078fi
5079ac_ct_F77=$ac_cv_prog_ac_ct_F77
5080if test -n "$ac_ct_F77"; then
5081  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5082echo "${ECHO_T}$ac_ct_F77" >&6
5083else
5084  echo "$as_me:$LINENO: result: no" >&5
5085echo "${ECHO_T}no" >&6
5086fi
5087
5088  test -n "$ac_ct_F77" && break
5089done
5090
5091  F77=$ac_ct_F77
5092fi
5093
5094
5095# Provide some information about the compiler.
5096echo "$as_me:5096:" \
5097     "checking for Fortran 77 compiler version" >&5
5098ac_compiler=`set X $ac_compile; echo $2`
5099{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5100  (eval $ac_compiler --version </dev/null >&5) 2>&5
5101  ac_status=$?
5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103  (exit $ac_status); }
5104{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5105  (eval $ac_compiler -v </dev/null >&5) 2>&5
5106  ac_status=$?
5107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108  (exit $ac_status); }
5109{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5110  (eval $ac_compiler -V </dev/null >&5) 2>&5
5111  ac_status=$?
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); }
5114rm -f a.out
5115
5116# If we don't use `.F' as extension, the preprocessor is not run on the
5117# input file.  (Note that this only needs to work for GNU compilers.)
5118ac_save_ext=$ac_ext
5119ac_ext=F
5120echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5121echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5122if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  cat >conftest.$ac_ext <<_ACEOF
5126      program main
5127#ifndef __GNUC__
5128       choke me
5129#endif
5130
5131      end
5132_ACEOF
5133rm -f conftest.$ac_objext
5134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135  (eval $ac_compile) 2>conftest.er1
5136  ac_status=$?
5137  grep -v '^ *+' conftest.er1 >conftest.err
5138  rm -f conftest.er1
5139  cat conftest.err >&5
5140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141  (exit $ac_status); } &&
5142	 { ac_try='test -z "$ac_f77_werror_flag"
5143			 || test ! -s conftest.err'
5144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145  (eval $ac_try) 2>&5
5146  ac_status=$?
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); }; } &&
5149	 { ac_try='test -s conftest.$ac_objext'
5150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151  (eval $ac_try) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); }; }; then
5155  ac_compiler_gnu=yes
5156else
5157  echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160ac_compiler_gnu=no
5161fi
5162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5164
5165fi
5166echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5167echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5168ac_ext=$ac_save_ext
5169ac_test_FFLAGS=${FFLAGS+set}
5170ac_save_FFLAGS=$FFLAGS
5171FFLAGS=
5172echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5173echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5174if test "${ac_cv_prog_f77_g+set}" = set; then
5175  echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177  FFLAGS=-g
5178cat >conftest.$ac_ext <<_ACEOF
5179      program main
5180
5181      end
5182_ACEOF
5183rm -f conftest.$ac_objext
5184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185  (eval $ac_compile) 2>conftest.er1
5186  ac_status=$?
5187  grep -v '^ *+' conftest.er1 >conftest.err
5188  rm -f conftest.er1
5189  cat conftest.err >&5
5190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191  (exit $ac_status); } &&
5192	 { ac_try='test -z "$ac_f77_werror_flag"
5193			 || test ! -s conftest.err'
5194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195  (eval $ac_try) 2>&5
5196  ac_status=$?
5197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198  (exit $ac_status); }; } &&
5199	 { ac_try='test -s conftest.$ac_objext'
5200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201  (eval $ac_try) 2>&5
5202  ac_status=$?
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); }; }; then
5205  ac_cv_prog_f77_g=yes
5206else
5207  echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
5210ac_cv_prog_f77_g=no
5211fi
5212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213
5214fi
5215echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5216echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5217if test "$ac_test_FFLAGS" = set; then
5218  FFLAGS=$ac_save_FFLAGS
5219elif test $ac_cv_prog_f77_g = yes; then
5220  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5221    FFLAGS="-g -O2"
5222  else
5223    FFLAGS="-g"
5224  fi
5225else
5226  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5227    FFLAGS="-O2"
5228  else
5229    FFLAGS=
5230  fi
5231fi
5232
5233G77=`test $ac_compiler_gnu = yes && echo yes`
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241
5242# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5243
5244# find the maximum length of command line arguments
5245echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5246echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5247if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5248  echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250    i=0
5251  testring="ABCD"
5252
5253  case $build_os in
5254  msdosdjgpp*)
5255    # On DJGPP, this test can blow up pretty badly due to problems in libc
5256    # (any single argument exceeding 2000 bytes causes a buffer overrun
5257    # during glob expansion).  Even if it were fixed, the result of this
5258    # check would be larger than it should be.
5259    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5260    ;;
5261
5262  gnu*)
5263    # Under GNU Hurd, this test is not required because there is
5264    # no limit to the length of command line arguments.
5265    # Libtool will interpret -1 as no limit whatsoever
5266    lt_cv_sys_max_cmd_len=-1;
5267    ;;
5268
5269  cygwin* | mingw*)
5270    # On Win9x/ME, this test blows up -- it succeeds, but takes
5271    # about 5 minutes as the teststring grows exponentially.
5272    # Worse, since 9x/ME are not pre-emptively multitasking,
5273    # you end up with a "frozen" computer, even though with patience
5274    # the test eventually succeeds (with a max line length of 256k).
5275    # Instead, let's just punt: use the minimum linelength reported by
5276    # all of the supported platforms: 8192 (on NT/2K/XP).
5277    lt_cv_sys_max_cmd_len=8192;
5278    ;;
5279
5280 *)
5281    # If test is not a shell built-in, we'll probably end up computing a
5282    # maximum length that is only half of the actual maximum length, but
5283    # we can't tell.
5284    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5285	       = "XX$testring") >/dev/null 2>&1 &&
5286	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5287	    lt_cv_sys_max_cmd_len=$new_result &&
5288	    test $i != 17 # 1/2 MB should be enough
5289    do
5290      i=`expr $i + 1`
5291      testring=$testring$testring
5292    done
5293    testring=
5294    # Add a significant safety factor because C++ compilers can tack on massive
5295    # amounts of additional arguments before passing them to the linker.
5296    # It appears as though 1/2 is a usable value.
5297    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5298    ;;
5299  esac
5300
5301fi
5302
5303if test -n $lt_cv_sys_max_cmd_len ; then
5304  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5305echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5306else
5307  echo "$as_me:$LINENO: result: none" >&5
5308echo "${ECHO_T}none" >&6
5309fi
5310
5311
5312
5313
5314# Check for command to grab the raw symbol name followed by C symbol from nm.
5315echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5316echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5317if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5318  echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320
5321# These are sane defaults that work on at least a few old systems.
5322# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5323
5324# Character class describing NM global symbol codes.
5325symcode='[BCDEGRST]'
5326
5327# Regexp to match symbols that can be accessed directly from C.
5328sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5329
5330# Transform the above into a raw symbol and a C symbol.
5331symxfrm='\1 \2\3 \3'
5332
5333# Transform an extracted symbol line into a proper C declaration
5334lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5335
5336# Transform an extracted symbol line into symbol name and symbol address
5337lt_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'"
5338
5339# Define system-specific variables.
5340case $host_os in
5341aix*)
5342  symcode='[BCDT]'
5343  ;;
5344cygwin* | mingw* | pw32*)
5345  symcode='[ABCDGISTW]'
5346  ;;
5347hpux*) # Its linker distinguishes data from code symbols
5348  if test "$host_cpu" = ia64; then
5349    symcode='[ABCDEGRST]'
5350  fi
5351  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5352  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'"
5353  ;;
5354irix* | nonstopux*)
5355  symcode='[BCDEGRST]'
5356  ;;
5357osf*)
5358  symcode='[BCDEGQRST]'
5359  ;;
5360solaris* | sysv5*)
5361  symcode='[BDT]'
5362  ;;
5363sysv4)
5364  symcode='[DFNSTU]'
5365  ;;
5366esac
5367
5368# Handle CRLF in mingw tool chain
5369opt_cr=
5370case $build_os in
5371mingw*)
5372  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5373  ;;
5374esac
5375
5376# If we're using GNU nm, then use its standard symbol codes.
5377case `$NM -V 2>&1` in
5378*GNU* | *'with BFD'*)
5379  symcode='[ABCDGISTW]' ;;
5380esac
5381
5382# Try without a prefix undercore, then with it.
5383for ac_symprfx in "" "_"; do
5384
5385  # Write the raw and C identifiers.
5386  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5387
5388  # Check to see that the pipe works correctly.
5389  pipe_works=no
5390
5391  rm -f conftest*
5392  cat > conftest.$ac_ext <<EOF
5393#ifdef __cplusplus
5394extern "C" {
5395#endif
5396char nm_test_var;
5397void nm_test_func(){}
5398#ifdef __cplusplus
5399}
5400#endif
5401int main(){nm_test_var='a';nm_test_func();return(0);}
5402EOF
5403
5404  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405  (eval $ac_compile) 2>&5
5406  ac_status=$?
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); }; then
5409    # Now try to grab the symbols.
5410    nlist=conftest.nm
5411    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5412  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); } && test -s "$nlist"; then
5416      # Try sorting and uniquifying the output.
5417      if sort "$nlist" | uniq > "$nlist"T; then
5418	mv -f "$nlist"T "$nlist"
5419      else
5420	rm -f "$nlist"T
5421      fi
5422
5423      # Make sure that we snagged all the symbols we need.
5424      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5425	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5426	  cat <<EOF > conftest.$ac_ext
5427#ifdef __cplusplus
5428extern "C" {
5429#endif
5430
5431EOF
5432	  # Now generate the symbol file.
5433	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5434
5435	  cat <<EOF >> conftest.$ac_ext
5436#if defined (__STDC__) && __STDC__
5437# define lt_ptr_t void *
5438#else
5439# define lt_ptr_t char *
5440# define const
5441#endif
5442
5443/* The mapping between symbol names and symbols. */
5444const struct {
5445  const char *name;
5446  lt_ptr_t address;
5447}
5448lt_preloaded_symbols[] =
5449{
5450EOF
5451	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5452	  cat <<\EOF >> conftest.$ac_ext
5453  {0, (lt_ptr_t) 0}
5454};
5455
5456#ifdef __cplusplus
5457}
5458#endif
5459EOF
5460	  # Now try linking the two files.
5461	  mv conftest.$ac_objext conftstm.$ac_objext
5462	  lt_save_LIBS="$LIBS"
5463	  lt_save_CFLAGS="$CFLAGS"
5464	  LIBS="conftstm.$ac_objext"
5465	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5466	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467  (eval $ac_link) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5471	    pipe_works=yes
5472	  fi
5473	  LIBS="$lt_save_LIBS"
5474	  CFLAGS="$lt_save_CFLAGS"
5475	else
5476	  echo "cannot find nm_test_func in $nlist" >&5
5477	fi
5478      else
5479	echo "cannot find nm_test_var in $nlist" >&5
5480      fi
5481    else
5482      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5483    fi
5484  else
5485    echo "$progname: failed program was:" >&5
5486    cat conftest.$ac_ext >&5
5487  fi
5488  rm -f conftest* conftst*
5489
5490  # Do not use the global_symbol_pipe unless it works.
5491  if test "$pipe_works" = yes; then
5492    break
5493  else
5494    lt_cv_sys_global_symbol_pipe=
5495  fi
5496done
5497
5498fi
5499
5500if test -z "$lt_cv_sys_global_symbol_pipe"; then
5501  lt_cv_sys_global_symbol_to_cdecl=
5502fi
5503if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5504  echo "$as_me:$LINENO: result: failed" >&5
5505echo "${ECHO_T}failed" >&6
5506else
5507  echo "$as_me:$LINENO: result: ok" >&5
5508echo "${ECHO_T}ok" >&6
5509fi
5510
5511echo "$as_me:$LINENO: checking for objdir" >&5
5512echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5513if test "${lt_cv_objdir+set}" = set; then
5514  echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516  rm -f .libs 2>/dev/null
5517mkdir .libs 2>/dev/null
5518if test -d .libs; then
5519  lt_cv_objdir=.libs
5520else
5521  # MS-DOS does not allow filenames that begin with a dot.
5522  lt_cv_objdir=_libs
5523fi
5524rmdir .libs 2>/dev/null
5525fi
5526echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5527echo "${ECHO_T}$lt_cv_objdir" >&6
5528objdir=$lt_cv_objdir
5529
5530
5531
5532
5533
5534case $host_os in
5535aix3*)
5536  # AIX sometimes has problems with the GCC collect2 program.  For some
5537  # reason, if we set the COLLECT_NAMES environment variable, the problems
5538  # vanish in a puff of smoke.
5539  if test "X${COLLECT_NAMES+set}" != Xset; then
5540    COLLECT_NAMES=
5541    export COLLECT_NAMES
5542  fi
5543  ;;
5544esac
5545
5546# Sed substitution that helps us do robust quoting.  It backslashifies
5547# metacharacters that are still active within double-quoted strings.
5548Xsed='sed -e s/^X//'
5549sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5550
5551# Same as above, but do not quote variable references.
5552double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5553
5554# Sed substitution to delay expansion of an escaped shell variable in a
5555# double_quote_subst'ed string.
5556delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5557
5558# Sed substitution to avoid accidental globbing in evaled expressions
5559no_glob_subst='s/\*/\\\*/g'
5560
5561# Constants:
5562rm="rm -f"
5563
5564# Global variables:
5565default_ofile=mklib
5566can_build_shared=yes
5567
5568# All known linkers require a `.a' archive for static linking (except M$VC,
5569# which needs '.lib').
5570libext=a
5571ltmain="$ac_aux_dir/ltmain.sh"
5572ofile="$default_ofile"
5573with_gnu_ld="$lt_cv_prog_gnu_ld"
5574
5575if test -n "$ac_tool_prefix"; then
5576  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5577set dummy ${ac_tool_prefix}ar; ac_word=$2
5578echo "$as_me:$LINENO: checking for $ac_word" >&5
5579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580if test "${ac_cv_prog_AR+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  if test -n "$AR"; then
5584  ac_cv_prog_AR="$AR" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589  IFS=$as_save_IFS
5590  test -z "$as_dir" && as_dir=.
5591  for ac_exec_ext in '' $ac_executable_extensions; do
5592  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593    ac_cv_prog_AR="${ac_tool_prefix}ar"
5594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595    break 2
5596  fi
5597done
5598done
5599
5600fi
5601fi
5602AR=$ac_cv_prog_AR
5603if test -n "$AR"; then
5604  echo "$as_me:$LINENO: result: $AR" >&5
5605echo "${ECHO_T}$AR" >&6
5606else
5607  echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609fi
5610
5611fi
5612if test -z "$ac_cv_prog_AR"; then
5613  ac_ct_AR=$AR
5614  # Extract the first word of "ar", so it can be a program name with args.
5615set dummy ar; ac_word=$2
5616echo "$as_me:$LINENO: checking for $ac_word" >&5
5617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5619  echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621  if test -n "$ac_ct_AR"; then
5622  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627  IFS=$as_save_IFS
5628  test -z "$as_dir" && as_dir=.
5629  for ac_exec_ext in '' $ac_executable_extensions; do
5630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631    ac_cv_prog_ac_ct_AR="ar"
5632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633    break 2
5634  fi
5635done
5636done
5637
5638  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5639fi
5640fi
5641ac_ct_AR=$ac_cv_prog_ac_ct_AR
5642if test -n "$ac_ct_AR"; then
5643  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5644echo "${ECHO_T}$ac_ct_AR" >&6
5645else
5646  echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6
5648fi
5649
5650  AR=$ac_ct_AR
5651else
5652  AR="$ac_cv_prog_AR"
5653fi
5654
5655if test -n "$ac_tool_prefix"; then
5656  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5657set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5658echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660if test "${ac_cv_prog_RANLIB+set}" = set; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  if test -n "$RANLIB"; then
5664  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671  for ac_exec_ext in '' $ac_executable_extensions; do
5672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678done
5679
5680fi
5681fi
5682RANLIB=$ac_cv_prog_RANLIB
5683if test -n "$RANLIB"; then
5684  echo "$as_me:$LINENO: result: $RANLIB" >&5
5685echo "${ECHO_T}$RANLIB" >&6
5686else
5687  echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689fi
5690
5691fi
5692if test -z "$ac_cv_prog_RANLIB"; then
5693  ac_ct_RANLIB=$RANLIB
5694  # Extract the first word of "ranlib", so it can be a program name with args.
5695set dummy ranlib; ac_word=$2
5696echo "$as_me:$LINENO: checking for $ac_word" >&5
5697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  if test -n "$ac_ct_RANLIB"; then
5702  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707  IFS=$as_save_IFS
5708  test -z "$as_dir" && as_dir=.
5709  for ac_exec_ext in '' $ac_executable_extensions; do
5710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711    ac_cv_prog_ac_ct_RANLIB="ranlib"
5712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713    break 2
5714  fi
5715done
5716done
5717
5718  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5719fi
5720fi
5721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5722if test -n "$ac_ct_RANLIB"; then
5723  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5724echo "${ECHO_T}$ac_ct_RANLIB" >&6
5725else
5726  echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728fi
5729
5730  RANLIB=$ac_ct_RANLIB
5731else
5732  RANLIB="$ac_cv_prog_RANLIB"
5733fi
5734
5735if test -n "$ac_tool_prefix"; then
5736  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5737set dummy ${ac_tool_prefix}strip; ac_word=$2
5738echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740if test "${ac_cv_prog_STRIP+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  if test -n "$STRIP"; then
5744  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751  for ac_exec_ext in '' $ac_executable_extensions; do
5752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755    break 2
5756  fi
5757done
5758done
5759
5760fi
5761fi
5762STRIP=$ac_cv_prog_STRIP
5763if test -n "$STRIP"; then
5764  echo "$as_me:$LINENO: result: $STRIP" >&5
5765echo "${ECHO_T}$STRIP" >&6
5766else
5767  echo "$as_me:$LINENO: result: no" >&5
5768echo "${ECHO_T}no" >&6
5769fi
5770
5771fi
5772if test -z "$ac_cv_prog_STRIP"; then
5773  ac_ct_STRIP=$STRIP
5774  # Extract the first word of "strip", so it can be a program name with args.
5775set dummy strip; ac_word=$2
5776echo "$as_me:$LINENO: checking for $ac_word" >&5
5777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781  if test -n "$ac_ct_STRIP"; then
5782  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789  for ac_exec_ext in '' $ac_executable_extensions; do
5790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_ac_ct_STRIP="strip"
5792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796done
5797
5798  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5799fi
5800fi
5801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5802if test -n "$ac_ct_STRIP"; then
5803  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5804echo "${ECHO_T}$ac_ct_STRIP" >&6
5805else
5806  echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808fi
5809
5810  STRIP=$ac_ct_STRIP
5811else
5812  STRIP="$ac_cv_prog_STRIP"
5813fi
5814
5815
5816old_CC="$CC"
5817old_CFLAGS="$CFLAGS"
5818
5819# Set sane defaults for various variables
5820test -z "$AR" && AR=ar
5821test -z "$AR_FLAGS" && AR_FLAGS=cru
5822test -z "$AS" && AS=as
5823test -z "$CC" && CC=cc
5824test -z "$LTCC" && LTCC=$CC
5825test -z "$DLLTOOL" && DLLTOOL=dlltool
5826test -z "$LD" && LD=ld
5827test -z "$LN_S" && LN_S="ln -s"
5828test -z "$MAGIC_CMD" && MAGIC_CMD=file
5829test -z "$NM" && NM=nm
5830test -z "$SED" && SED=sed
5831test -z "$OBJDUMP" && OBJDUMP=objdump
5832test -z "$RANLIB" && RANLIB=:
5833test -z "$STRIP" && STRIP=:
5834test -z "$ac_objext" && ac_objext=o
5835
5836# Determine commands to create old-style static archives.
5837old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5838old_postinstall_cmds='chmod 644 $oldlib'
5839old_postuninstall_cmds=
5840
5841if test -n "$RANLIB"; then
5842  case $host_os in
5843  openbsd*)
5844    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5845    ;;
5846  *)
5847    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5848    ;;
5849  esac
5850  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5851fi
5852
5853# Only perform the check for file, if the check method requires it
5854case $deplibs_check_method in
5855file_magic*)
5856  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5857    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5858echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5859if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862  case $MAGIC_CMD in
5863[\\/*] |  ?:[\\/]*)
5864  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5865  ;;
5866*)
5867  lt_save_MAGIC_CMD="$MAGIC_CMD"
5868  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5870  for ac_dir in $ac_dummy; do
5871    IFS="$lt_save_ifs"
5872    test -z "$ac_dir" && ac_dir=.
5873    if test -f $ac_dir/${ac_tool_prefix}file; then
5874      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5875      if test -n "$file_magic_test_file"; then
5876	case $deplibs_check_method in
5877	"file_magic "*)
5878	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5879	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5880	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5881	    $EGREP "$file_magic_regex" > /dev/null; then
5882	    :
5883	  else
5884	    cat <<EOF 1>&2
5885
5886*** Warning: the command libtool uses to detect shared libraries,
5887*** $file_magic_cmd, produces output that libtool cannot recognize.
5888*** The result is that libtool may fail to recognize shared libraries
5889*** as such.  This will affect the creation of libtool libraries that
5890*** depend on shared libraries, but programs linked with such libtool
5891*** libraries will work regardless of this problem.  Nevertheless, you
5892*** may want to report the problem to your system manager and/or to
5893*** bug-libtool@gnu.org
5894
5895EOF
5896	  fi ;;
5897	esac
5898      fi
5899      break
5900    fi
5901  done
5902  IFS="$lt_save_ifs"
5903  MAGIC_CMD="$lt_save_MAGIC_CMD"
5904  ;;
5905esac
5906fi
5907
5908MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909if test -n "$MAGIC_CMD"; then
5910  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5911echo "${ECHO_T}$MAGIC_CMD" >&6
5912else
5913  echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
5915fi
5916
5917if test -z "$lt_cv_path_MAGIC_CMD"; then
5918  if test -n "$ac_tool_prefix"; then
5919    echo "$as_me:$LINENO: checking for file" >&5
5920echo $ECHO_N "checking for file... $ECHO_C" >&6
5921if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5922  echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924  case $MAGIC_CMD in
5925[\\/*] |  ?:[\\/]*)
5926  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5927  ;;
5928*)
5929  lt_save_MAGIC_CMD="$MAGIC_CMD"
5930  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5932  for ac_dir in $ac_dummy; do
5933    IFS="$lt_save_ifs"
5934    test -z "$ac_dir" && ac_dir=.
5935    if test -f $ac_dir/file; then
5936      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5937      if test -n "$file_magic_test_file"; then
5938	case $deplibs_check_method in
5939	"file_magic "*)
5940	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5941	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5942	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5943	    $EGREP "$file_magic_regex" > /dev/null; then
5944	    :
5945	  else
5946	    cat <<EOF 1>&2
5947
5948*** Warning: the command libtool uses to detect shared libraries,
5949*** $file_magic_cmd, produces output that libtool cannot recognize.
5950*** The result is that libtool may fail to recognize shared libraries
5951*** as such.  This will affect the creation of libtool libraries that
5952*** depend on shared libraries, but programs linked with such libtool
5953*** libraries will work regardless of this problem.  Nevertheless, you
5954*** may want to report the problem to your system manager and/or to
5955*** bug-libtool@gnu.org
5956
5957EOF
5958	  fi ;;
5959	esac
5960      fi
5961      break
5962    fi
5963  done
5964  IFS="$lt_save_ifs"
5965  MAGIC_CMD="$lt_save_MAGIC_CMD"
5966  ;;
5967esac
5968fi
5969
5970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971if test -n "$MAGIC_CMD"; then
5972  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5973echo "${ECHO_T}$MAGIC_CMD" >&6
5974else
5975  echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6
5977fi
5978
5979  else
5980    MAGIC_CMD=:
5981  fi
5982fi
5983
5984  fi
5985  ;;
5986esac
5987
5988enable_dlopen=no
5989enable_win32_dll=no
5990
5991# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5992if test "${enable_libtool_lock+set}" = set; then
5993  enableval="$enable_libtool_lock"
5994
5995fi;
5996test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5997
5998
5999# Check whether --with-pic or --without-pic was given.
6000if test "${with_pic+set}" = set; then
6001  withval="$with_pic"
6002  pic_mode="$withval"
6003else
6004  pic_mode=default
6005fi;
6006test -z "$pic_mode" && pic_mode=default
6007
6008# Use C for the default configuration in the libtool script
6009tagname=
6010lt_save_CC="$CC"
6011ac_ext=c
6012ac_cpp='$CPP $CPPFLAGS'
6013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
6017
6018# Source file extension for C test sources.
6019ac_ext=c
6020
6021# Object file extension for compiled C test sources.
6022objext=o
6023objext=$objext
6024
6025# Code to be used in simple compile tests
6026lt_simple_compile_test_code="int some_variable = 0;\n"
6027
6028# Code to be used in simple link tests
6029lt_simple_link_test_code='int main(){return(0);}\n'
6030
6031
6032# If no C compiler was specified, use CC.
6033LTCC=${LTCC-"$CC"}
6034
6035# Allow CC to be a program name with arguments.
6036compiler=$CC
6037
6038
6039#
6040# Check for any special shared library compilation flags.
6041#
6042lt_prog_cc_shlib=
6043if test "$GCC" = no; then
6044  case $host_os in
6045  sco3.2v5*)
6046    lt_prog_cc_shlib='-belf'
6047    ;;
6048  esac
6049fi
6050if test -n "$lt_prog_cc_shlib"; then
6051  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6052echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6053  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6054  else
6055    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6056echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6057    lt_cv_prog_cc_can_build_shared=no
6058  fi
6059fi
6060
6061
6062#
6063# Check to make sure the static flag actually works.
6064#
6065echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6066echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6067if test "${lt_prog_compiler_static_works+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070  lt_prog_compiler_static_works=no
6071   save_LDFLAGS="$LDFLAGS"
6072   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6073   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6074   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6075     # The compiler can only warn and ignore the option if not recognized
6076     # So say no if there are warnings
6077     if test -s conftest.err; then
6078       # Append any errors to the config.log.
6079       cat conftest.err 1>&5
6080     else
6081       lt_prog_compiler_static_works=yes
6082     fi
6083   fi
6084   $rm conftest*
6085   LDFLAGS="$save_LDFLAGS"
6086
6087fi
6088echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6089echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6090
6091if test x"$lt_prog_compiler_static_works" = xyes; then
6092    :
6093else
6094    lt_prog_compiler_static=
6095fi
6096
6097
6098
6099## CAVEAT EMPTOR:
6100## There is no encapsulation within the following macros, do not change
6101## the running order or otherwise move them around unless you know exactly
6102## what you are doing...
6103
6104lt_prog_compiler_no_builtin_flag=
6105
6106if test "$GCC" = yes; then
6107  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6108
6109  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6110echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6111if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  lt_cv_prog_compiler_rtti_exceptions=no
6115  ac_outfile=conftest.$ac_objext
6116   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6117   lt_compiler_flag="-fno-rtti -fno-exceptions"
6118   # Insert the option either (1) after the last *FLAGS variable, or
6119   # (2) before a word containing "conftest.", or (3) at the end.
6120   # Note that $ac_compile itself does not contain backslashes and begins
6121   # with a dollar sign (not a hyphen), so the echo should work correctly.
6122   # The option is referenced via a variable to avoid confusing sed.
6123   lt_compile=`echo "$ac_compile" | $SED \
6124   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6125   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6126   -e 's:$: $lt_compiler_flag:'`
6127   (eval echo "\"\$as_me:6127: $lt_compile\"" >&5)
6128   (eval "$lt_compile" 2>conftest.err)
6129   ac_status=$?
6130   cat conftest.err >&5
6131   echo "$as_me:6131: \$? = $ac_status" >&5
6132   if (exit $ac_status) && test -s "$ac_outfile"; then
6133     # The compiler can only warn and ignore the option if not recognized
6134     # So say no if there are warnings
6135     if test ! -s conftest.err; then
6136       lt_cv_prog_compiler_rtti_exceptions=yes
6137     fi
6138   fi
6139   $rm conftest*
6140
6141fi
6142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6143echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6144
6145if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6146    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6147else
6148    :
6149fi
6150
6151fi
6152
6153lt_prog_compiler_wl=
6154lt_prog_compiler_pic=
6155lt_prog_compiler_static=
6156
6157echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6158echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6159
6160  if test "$GCC" = yes; then
6161    lt_prog_compiler_wl='-Wl,'
6162    lt_prog_compiler_static='-static'
6163
6164    case $host_os in
6165      aix*)
6166      # All AIX code is PIC.
6167      if test "$host_cpu" = ia64; then
6168	# AIX 5 now supports IA64 processor
6169	lt_prog_compiler_static='-Bstatic'
6170      fi
6171      ;;
6172
6173    amigaos*)
6174      # FIXME: we need at least 68020 code to build shared libraries, but
6175      # adding the `-m68020' flag to GCC prevents building anything better,
6176      # like `-m68040'.
6177      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6178      ;;
6179
6180    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6181      # PIC is the default for these OSes.
6182      ;;
6183
6184    mingw* | pw32* | os2*)
6185      # This hack is so that the source file can tell whether it is being
6186      # built for inclusion in a dll (and should export symbols for example).
6187      lt_prog_compiler_pic='-DDLL_EXPORT'
6188      ;;
6189
6190    darwin* | rhapsody*)
6191      # PIC is the default on this platform
6192      # Common symbols not allowed in MH_DYLIB files
6193      lt_prog_compiler_pic='-fno-common'
6194      ;;
6195
6196    msdosdjgpp*)
6197      # Just because we use GCC doesn't mean we suddenly get shared libraries
6198      # on systems that don't support them.
6199      lt_prog_compiler_can_build_shared=no
6200      enable_shared=no
6201      ;;
6202
6203    sysv4*MP*)
6204      if test -d /usr/nec; then
6205	lt_prog_compiler_pic=-Kconform_pic
6206      fi
6207      ;;
6208
6209    hpux*)
6210      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6211      # not for PA HP-UX.
6212      case "$host_cpu" in
6213      hppa*64*|ia64*)
6214	# +Z the default
6215	;;
6216      *)
6217	lt_prog_compiler_pic='-fPIC'
6218	;;
6219      esac
6220      ;;
6221
6222    *)
6223      lt_prog_compiler_pic='-fPIC'
6224      ;;
6225    esac
6226  else
6227    # PORTME Check for flag to pass linker flags through the system compiler.
6228    case $host_os in
6229    aix*)
6230      lt_prog_compiler_wl='-Wl,'
6231      if test "$host_cpu" = ia64; then
6232	# AIX 5 now supports IA64 processor
6233	lt_prog_compiler_static='-Bstatic'
6234      else
6235	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6236      fi
6237      ;;
6238
6239    mingw* | pw32* | os2*)
6240      # This hack is so that the source file can tell whether it is being
6241      # built for inclusion in a dll (and should export symbols for example).
6242      lt_prog_compiler_pic='-DDLL_EXPORT'
6243      ;;
6244
6245    hpux9* | hpux10* | hpux11*)
6246      lt_prog_compiler_wl='-Wl,'
6247      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248      # not for PA HP-UX.
6249      case "$host_cpu" in
6250      hppa*64*|ia64*)
6251	# +Z the default
6252	;;
6253      *)
6254	lt_prog_compiler_pic='+Z'
6255	;;
6256      esac
6257      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258      lt_prog_compiler_static='${wl}-a ${wl}archive'
6259      ;;
6260
6261    irix5* | irix6* | nonstopux*)
6262      lt_prog_compiler_wl='-Wl,'
6263      # PIC (with -KPIC) is the default.
6264      lt_prog_compiler_static='-non_shared'
6265      ;;
6266
6267    newsos6)
6268      lt_prog_compiler_pic='-KPIC'
6269      lt_prog_compiler_static='-Bstatic'
6270      ;;
6271
6272    linux*)
6273      case $CC in
6274      icc|ecc)
6275	lt_prog_compiler_wl='-Wl,'
6276	lt_prog_compiler_pic='-KPIC'
6277	lt_prog_compiler_static='-static'
6278        ;;
6279      ccc)
6280        lt_prog_compiler_wl='-Wl,'
6281        # All Alpha code is PIC.
6282        lt_prog_compiler_static='-non_shared'
6283        ;;
6284      esac
6285      ;;
6286
6287    osf3* | osf4* | osf5*)
6288      lt_prog_compiler_wl='-Wl,'
6289      # All OSF/1 code is PIC.
6290      lt_prog_compiler_static='-non_shared'
6291      ;;
6292
6293    sco3.2v5*)
6294      lt_prog_compiler_pic='-Kpic'
6295      lt_prog_compiler_static='-dn'
6296      ;;
6297
6298    solaris*)
6299      lt_prog_compiler_wl='-Wl,'
6300      lt_prog_compiler_pic='-KPIC'
6301      lt_prog_compiler_static='-Bstatic'
6302      ;;
6303
6304    sunos4*)
6305      lt_prog_compiler_wl='-Qoption ld '
6306      lt_prog_compiler_pic='-PIC'
6307      lt_prog_compiler_static='-Bstatic'
6308      ;;
6309
6310    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311      lt_prog_compiler_wl='-Wl,'
6312      lt_prog_compiler_pic='-KPIC'
6313      lt_prog_compiler_static='-Bstatic'
6314      ;;
6315
6316    sysv4*MP*)
6317      if test -d /usr/nec ;then
6318	lt_prog_compiler_pic='-Kconform_pic'
6319	lt_prog_compiler_static='-Bstatic'
6320      fi
6321      ;;
6322
6323    uts4*)
6324      lt_prog_compiler_pic='-pic'
6325      lt_prog_compiler_static='-Bstatic'
6326      ;;
6327
6328    *)
6329      lt_prog_compiler_can_build_shared=no
6330      ;;
6331    esac
6332  fi
6333
6334echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6336
6337#
6338# Check to make sure the PIC flag actually works.
6339#
6340if test -n "$lt_prog_compiler_pic"; then
6341  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6342echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6343if test "${lt_prog_compiler_pic_works+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  lt_prog_compiler_pic_works=no
6347  ac_outfile=conftest.$ac_objext
6348   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6350   # Insert the option either (1) after the last *FLAGS variable, or
6351   # (2) before a word containing "conftest.", or (3) at the end.
6352   # Note that $ac_compile itself does not contain backslashes and begins
6353   # with a dollar sign (not a hyphen), so the echo should work correctly.
6354   # The option is referenced via a variable to avoid confusing sed.
6355   lt_compile=`echo "$ac_compile" | $SED \
6356   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358   -e 's:$: $lt_compiler_flag:'`
6359   (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6360   (eval "$lt_compile" 2>conftest.err)
6361   ac_status=$?
6362   cat conftest.err >&5
6363   echo "$as_me:6363: \$? = $ac_status" >&5
6364   if (exit $ac_status) && test -s "$ac_outfile"; then
6365     # The compiler can only warn and ignore the option if not recognized
6366     # So say no if there are warnings
6367     if test ! -s conftest.err; then
6368       lt_prog_compiler_pic_works=yes
6369     fi
6370   fi
6371   $rm conftest*
6372
6373fi
6374echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6375echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6376
6377if test x"$lt_prog_compiler_pic_works" = xyes; then
6378    case $lt_prog_compiler_pic in
6379     "" | " "*) ;;
6380     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6381     esac
6382else
6383    lt_prog_compiler_pic=
6384     lt_prog_compiler_can_build_shared=no
6385fi
6386
6387fi
6388case "$host_os" in
6389  # For platforms which do not support PIC, -DPIC is meaningless:
6390  *djgpp*)
6391    lt_prog_compiler_pic=
6392    ;;
6393  *)
6394    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6395    ;;
6396esac
6397
6398echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6399echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6400if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6401  echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
6403  lt_cv_prog_compiler_c_o=no
6404   $rm -r conftest 2>/dev/null
6405   mkdir conftest
6406   cd conftest
6407   mkdir out
6408   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6409
6410   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6411   # that will create temporary files in the current directory regardless of
6412   # the output directory.  Thus, making CWD read-only will cause this test
6413   # to fail, enabling locking or at least warning the user not to do parallel
6414   # builds.
6415   chmod -w .
6416
6417   lt_compiler_flag="-o out/conftest2.$ac_objext"
6418   # Insert the option either (1) after the last *FLAGS variable, or
6419   # (2) before a word containing "conftest.", or (3) at the end.
6420   # Note that $ac_compile itself does not contain backslashes and begins
6421   # with a dollar sign (not a hyphen), so the echo should work correctly.
6422   lt_compile=`echo "$ac_compile" | $SED \
6423   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6425   -e 's:$: $lt_compiler_flag:'`
6426   (eval echo "\"\$as_me:6426: $lt_compile\"" >&5)
6427   (eval "$lt_compile" 2>out/conftest.err)
6428   ac_status=$?
6429   cat out/conftest.err >&5
6430   echo "$as_me:6430: \$? = $ac_status" >&5
6431   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6432   then
6433     # The compiler can only warn and ignore the option if not recognized
6434     # So say no if there are warnings
6435     if test ! -s out/conftest.err; then
6436       lt_cv_prog_compiler_c_o=yes
6437     fi
6438   fi
6439   chmod u+w .
6440   $rm conftest* out/*
6441   rmdir out
6442   cd ..
6443   rmdir conftest
6444   $rm conftest*
6445
6446fi
6447echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6448echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6449
6450
6451hard_links="nottested"
6452if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6453  # do not overwrite the value of need_locks provided by the user
6454  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6455echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6456  hard_links=yes
6457  $rm conftest*
6458  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459  touch conftest.a
6460  ln conftest.a conftest.b 2>&5 || hard_links=no
6461  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6462  echo "$as_me:$LINENO: result: $hard_links" >&5
6463echo "${ECHO_T}$hard_links" >&6
6464  if test "$hard_links" = no; then
6465    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6466echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6467    need_locks=warn
6468  fi
6469else
6470  need_locks=no
6471fi
6472
6473echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6474echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6475
6476  runpath_var=
6477  allow_undefined_flag=
6478  enable_shared_with_static_runtimes=no
6479  archive_cmds=
6480  archive_expsym_cmds=
6481  old_archive_From_new_cmds=
6482  old_archive_from_expsyms_cmds=
6483  export_dynamic_flag_spec=
6484  whole_archive_flag_spec=
6485  thread_safe_flag_spec=
6486  hardcode_libdir_flag_spec=
6487  hardcode_libdir_flag_spec_ld=
6488  hardcode_libdir_separator=
6489  hardcode_direct=no
6490  hardcode_minus_L=no
6491  hardcode_shlibpath_var=unsupported
6492  link_all_deplibs=unknown
6493  hardcode_automatic=no
6494  module_cmds=
6495  module_expsym_cmds=
6496  always_export_symbols=no
6497  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6498  # include_expsyms should be a list of space-separated symbols to be *always*
6499  # included in the symbol list
6500  include_expsyms=
6501  # exclude_expsyms can be an extended regexp of symbols to exclude
6502  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6503  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6504  # as well as any symbol that contains `d'.
6505  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6506  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6507  # platforms (ab)use it in PIC code, but their linkers get confused if
6508  # the symbol is explicitly referenced.  Since portable code cannot
6509  # rely on this symbol name, it's probably fine to never include it in
6510  # preloaded symbol tables.
6511  extract_expsyms_cmds=
6512
6513  case $host_os in
6514  cygwin* | mingw* | pw32*)
6515    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6516    # When not using gcc, we currently assume that we are using
6517    # Microsoft Visual C++.
6518    if test "$GCC" != yes; then
6519      with_gnu_ld=no
6520    fi
6521    ;;
6522  openbsd*)
6523    with_gnu_ld=no
6524    ;;
6525  esac
6526
6527  ld_shlibs=yes
6528  if test "$with_gnu_ld" = yes; then
6529    # If archive_cmds runs LD, not CC, wlarc should be empty
6530    wlarc='${wl}'
6531
6532    # See if GNU ld supports shared libraries.
6533    case $host_os in
6534    aix3* | aix4* | aix5*)
6535      # On AIX/PPC, the GNU linker is very broken
6536      if test "$host_cpu" != ia64; then
6537	ld_shlibs=no
6538	cat <<EOF 1>&2
6539
6540*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6541*** to be unable to reliably create shared libraries on AIX.
6542*** Therefore, libtool is disabling shared libraries support.  If you
6543*** really care for shared libraries, you may want to modify your PATH
6544*** so that a non-GNU linker is found, and then restart.
6545
6546EOF
6547      fi
6548      ;;
6549
6550    amigaos*)
6551      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)'
6552      hardcode_libdir_flag_spec='-L$libdir'
6553      hardcode_minus_L=yes
6554
6555      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6556      # that the semantics of dynamic libraries on AmigaOS, at least up
6557      # to version 4, is to share data among multiple programs linked
6558      # with the same dynamic library.  Since this doesn't match the
6559      # behavior of shared libraries on other platforms, we can't use
6560      # them.
6561      ld_shlibs=no
6562      ;;
6563
6564    beos*)
6565      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6566	allow_undefined_flag=unsupported
6567	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6568	# support --undefined.  This deserves some investigation.  FIXME
6569	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6570      else
6571	ld_shlibs=no
6572      fi
6573      ;;
6574
6575    cygwin* | mingw* | pw32*)
6576      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6577      # as there is no search path for DLLs.
6578      hardcode_libdir_flag_spec='-L$libdir'
6579      allow_undefined_flag=unsupported
6580      always_export_symbols=no
6581      enable_shared_with_static_runtimes=yes
6582      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6583
6584      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6585        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6586	# If the export-symbols file already is a .def file (1st line
6587	# is EXPORTS), use it as is; otherwise, prepend...
6588	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6589	  cp $export_symbols $output_objdir/$soname.def;
6590	else
6591	  echo EXPORTS > $output_objdir/$soname.def;
6592	  cat $export_symbols >> $output_objdir/$soname.def;
6593	fi~
6594	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6595      else
6596	ld_shlibs=no
6597      fi
6598      ;;
6599
6600    netbsd*)
6601      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6603	wlarc=
6604      else
6605	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6606	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6607      fi
6608      ;;
6609
6610    solaris* | sysv5*)
6611      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6612	ld_shlibs=no
6613	cat <<EOF 1>&2
6614
6615*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6616*** create shared libraries on Solaris systems.  Therefore, libtool
6617*** is disabling shared libraries support.  We urge you to upgrade GNU
6618*** binutils to release 2.9.1 or newer.  Another option is to modify
6619*** your PATH or compiler configuration so that the native linker is
6620*** used, and then restart.
6621
6622EOF
6623      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6624	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6625	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6626      else
6627	ld_shlibs=no
6628      fi
6629      ;;
6630
6631    sunos4*)
6632      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6633      wlarc=
6634      hardcode_direct=yes
6635      hardcode_shlibpath_var=no
6636      ;;
6637
6638    *)
6639      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6640	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6642      else
6643	ld_shlibs=no
6644      fi
6645      ;;
6646    esac
6647
6648    if test "$ld_shlibs" = yes; then
6649      runpath_var=LD_RUN_PATH
6650      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6651      export_dynamic_flag_spec='${wl}--export-dynamic'
6652      # ancient GNU ld didn't support --whole-archive et. al.
6653      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6654 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6655      else
6656  	whole_archive_flag_spec=
6657      fi
6658    fi
6659  else
6660    # PORTME fill in a description of your system's linker (not GNU ld)
6661    case $host_os in
6662    aix3*)
6663      allow_undefined_flag=unsupported
6664      always_export_symbols=yes
6665      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'
6666      # Note: this linker hardcodes the directories in LIBPATH if there
6667      # are no directories specified by -L.
6668      hardcode_minus_L=yes
6669      if test "$GCC" = yes && test -z "$link_static_flag"; then
6670	# Neither direct hardcoding nor static linking is supported with a
6671	# broken collect2.
6672	hardcode_direct=unsupported
6673      fi
6674      ;;
6675
6676    aix4* | aix5*)
6677      if test "$host_cpu" = ia64; then
6678	# On IA64, the linker does run time linking by default, so we don't
6679	# have to do anything special.
6680	aix_use_runtimelinking=no
6681	exp_sym_flag='-Bexport'
6682	no_entry_flag=""
6683      else
6684	# If we're using GNU nm, then we don't want the "-C" option.
6685	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6686	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6687	  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'
6688	else
6689	  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'
6690	fi
6691	aix_use_runtimelinking=no
6692
6693	# Test if we are trying to use run time linking or normal
6694	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6695	# need to do runtime linking.
6696	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6697	  for ld_flag in $LDFLAGS; do
6698  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6699  	    aix_use_runtimelinking=yes
6700  	    break
6701  	  fi
6702	  done
6703	esac
6704
6705	exp_sym_flag='-bexport'
6706	no_entry_flag='-bnoentry'
6707      fi
6708
6709      # When large executables or shared objects are built, AIX ld can
6710      # have problems creating the table of contents.  If linking a library
6711      # or program results in "error TOC overflow" add -mminimal-toc to
6712      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6713      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6714
6715      archive_cmds=''
6716      hardcode_direct=yes
6717      hardcode_libdir_separator=':'
6718      link_all_deplibs=yes
6719
6720      if test "$GCC" = yes; then
6721	case $host_os in aix4.012|aix4.012.*)
6722	# We only want to do this on AIX 4.2 and lower, the check
6723	# below for broken collect2 doesn't work under 4.3+
6724	  collect2name=`${CC} -print-prog-name=collect2`
6725	  if test -f "$collect2name" && \
6726  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6727	  then
6728  	  # We have reworked collect2
6729  	  hardcode_direct=yes
6730	  else
6731  	  # We have old collect2
6732  	  hardcode_direct=unsupported
6733  	  # It fails to find uninstalled libraries when the uninstalled
6734  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6735  	  # to unsupported forces relinking
6736  	  hardcode_minus_L=yes
6737  	  hardcode_libdir_flag_spec='-L$libdir'
6738  	  hardcode_libdir_separator=
6739	  fi
6740	esac
6741	shared_flag='-shared'
6742      else
6743	# not using gcc
6744	if test "$host_cpu" = ia64; then
6745  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6746  	# chokes on -Wl,-G. The following line is correct:
6747	  shared_flag='-G'
6748	else
6749  	if test "$aix_use_runtimelinking" = yes; then
6750	    shared_flag='${wl}-G'
6751	  else
6752	    shared_flag='${wl}-bM:SRE'
6753  	fi
6754	fi
6755      fi
6756
6757      # It seems that -bexpall does not export symbols beginning with
6758      # underscore (_), so it is better to generate a list of symbols to export.
6759      always_export_symbols=yes
6760      if test "$aix_use_runtimelinking" = yes; then
6761	# Warning - without using the other runtime loading flags (-brtl),
6762	# -berok will link without error, but may produce a broken library.
6763	allow_undefined_flag='-berok'
6764       # Determine the default libpath from the value encoded in an empty executable.
6765       cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h.  */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h.  */
6771
6772int
6773main ()
6774{
6775
6776  ;
6777  return 0;
6778}
6779_ACEOF
6780rm -f conftest.$ac_objext conftest$ac_exeext
6781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782  (eval $ac_link) 2>conftest.er1
6783  ac_status=$?
6784  grep -v '^ *+' conftest.er1 >conftest.err
6785  rm -f conftest.er1
6786  cat conftest.err >&5
6787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788  (exit $ac_status); } &&
6789	 { ac_try='test -z "$ac_c_werror_flag"
6790			 || test ! -s conftest.err'
6791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792  (eval $ac_try) 2>&5
6793  ac_status=$?
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); }; } &&
6796	 { ac_try='test -s conftest$ac_exeext'
6797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798  (eval $ac_try) 2>&5
6799  ac_status=$?
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); }; }; then
6802
6803aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6804}'`
6805# Check for a 64-bit object if we didn't find anything.
6806if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6807}'`; fi
6808else
6809  echo "$as_me: failed program was:" >&5
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812fi
6813rm -f conftest.err conftest.$ac_objext \
6814      conftest$ac_exeext conftest.$ac_ext
6815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6816
6817       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6818	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6819       else
6820	if test "$host_cpu" = ia64; then
6821	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6822	  allow_undefined_flag="-z nodefs"
6823	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6824	else
6825	 # Determine the default libpath from the value encoded in an empty executable.
6826	 cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h.  */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h.  */
6832
6833int
6834main ()
6835{
6836
6837  ;
6838  return 0;
6839}
6840_ACEOF
6841rm -f conftest.$ac_objext conftest$ac_exeext
6842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843  (eval $ac_link) 2>conftest.er1
6844  ac_status=$?
6845  grep -v '^ *+' conftest.er1 >conftest.err
6846  rm -f conftest.er1
6847  cat conftest.err >&5
6848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849  (exit $ac_status); } &&
6850	 { ac_try='test -z "$ac_c_werror_flag"
6851			 || test ! -s conftest.err'
6852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853  (eval $ac_try) 2>&5
6854  ac_status=$?
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); }; } &&
6857	 { ac_try='test -s conftest$ac_exeext'
6858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859  (eval $ac_try) 2>&5
6860  ac_status=$?
6861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862  (exit $ac_status); }; }; then
6863
6864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6865}'`
6866# Check for a 64-bit object if we didn't find anything.
6867if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6868}'`; fi
6869else
6870  echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873fi
6874rm -f conftest.err conftest.$ac_objext \
6875      conftest$ac_exeext conftest.$ac_ext
6876if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6877
6878	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6879	  # Warning - without using the other run time loading flags,
6880	  # -berok will link without error, but may produce a broken library.
6881	  no_undefined_flag=' ${wl}-bernotok'
6882	  allow_undefined_flag=' ${wl}-berok'
6883	  # -bexpall does not export symbols beginning with underscore (_)
6884	  always_export_symbols=yes
6885	  # Exported symbols can be pulled into shared objects from archives
6886	  whole_archive_flag_spec=' '
6887	  archive_cmds_need_lc=yes
6888	  # This is similar to how AIX traditionally builds it's shared libraries.
6889	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6890	fi
6891      fi
6892      ;;
6893
6894    amigaos*)
6895      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)'
6896      hardcode_libdir_flag_spec='-L$libdir'
6897      hardcode_minus_L=yes
6898      # see comment about different semantics on the GNU ld section
6899      ld_shlibs=no
6900      ;;
6901
6902    bsdi4*)
6903      export_dynamic_flag_spec=-rdynamic
6904      ;;
6905
6906    cygwin* | mingw* | pw32*)
6907      # When not using gcc, we currently assume that we are using
6908      # Microsoft Visual C++.
6909      # hardcode_libdir_flag_spec is actually meaningless, as there is
6910      # no search path for DLLs.
6911      hardcode_libdir_flag_spec=' '
6912      allow_undefined_flag=unsupported
6913      # Tell ltmain to make .lib files, not .a files.
6914      libext=lib
6915      # Tell ltmain to make .dll files, not .so files.
6916      shrext=".dll"
6917      # FIXME: Setting linknames here is a bad hack.
6918      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6919      # The linker will automatically build a .lib file if we build a DLL.
6920      old_archive_From_new_cmds='true'
6921      # FIXME: Should let the user specify the lib program.
6922      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6923      fix_srcfile_path='`cygpath -w "$srcfile"`'
6924      enable_shared_with_static_runtimes=yes
6925      ;;
6926
6927    darwin* | rhapsody*)
6928    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6929      archive_cmds_need_lc=no
6930      case "$host_os" in
6931      rhapsody* | darwin1.[012])
6932	allow_undefined_flag='-undefined suppress'
6933	;;
6934      *) # Darwin 1.3 on
6935	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6936	;;
6937      esac
6938      # FIXME: Relying on posixy $() will cause problems for
6939      #        cross-compilation, but unfortunately the echo tests do not
6940      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6941      #	       `"' quotes if we put them in here... so don't!
6942    	lt_int_apple_cc_single_mod=no
6943    	output_verbose_link_cmd='echo'
6944    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6945    	  lt_int_apple_cc_single_mod=yes
6946    	fi
6947    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6948    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6949    	else
6950        archive_cmds='$CC -r ${wl}-bind_at_load -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'
6951      fi
6952      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6953      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6954        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6955          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6956        else
6957          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6958        fi
6959          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6960      hardcode_direct=no
6961      hardcode_automatic=yes
6962      hardcode_shlibpath_var=unsupported
6963      whole_archive_flag_spec='-all_load $convenience'
6964      link_all_deplibs=yes
6965    fi
6966      ;;
6967
6968    dgux*)
6969      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970      hardcode_libdir_flag_spec='-L$libdir'
6971      hardcode_shlibpath_var=no
6972      ;;
6973
6974    freebsd1*)
6975      ld_shlibs=no
6976      ;;
6977
6978    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6979    # support.  Future versions do this automatically, but an explicit c++rt0.o
6980    # does not break anything, and helps significantly (at the cost of a little
6981    # extra space).
6982    freebsd2.2*)
6983      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6984      hardcode_libdir_flag_spec='-R$libdir'
6985      hardcode_direct=yes
6986      hardcode_shlibpath_var=no
6987      ;;
6988
6989    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6990    freebsd2*)
6991      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6992      hardcode_direct=yes
6993      hardcode_minus_L=yes
6994      hardcode_shlibpath_var=no
6995      ;;
6996
6997    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6998    freebsd*)
6999      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7000      hardcode_libdir_flag_spec='-R$libdir'
7001      hardcode_direct=yes
7002      hardcode_shlibpath_var=no
7003      ;;
7004
7005    hpux9*)
7006      if test "$GCC" = yes; then
7007	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'
7008      else
7009	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'
7010      fi
7011      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7012      hardcode_libdir_separator=:
7013      hardcode_direct=yes
7014
7015      # hardcode_minus_L: Not really in the search PATH,
7016      # but as the default location of the library.
7017      hardcode_minus_L=yes
7018      export_dynamic_flag_spec='${wl}-E'
7019      ;;
7020
7021    hpux10* | hpux11*)
7022      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7023	case "$host_cpu" in
7024	hppa*64*|ia64*)
7025	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7026	  ;;
7027	*)
7028	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7029	  ;;
7030	esac
7031      else
7032	case "$host_cpu" in
7033	hppa*64*|ia64*)
7034	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7035	  ;;
7036	*)
7037	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7038	  ;;
7039	esac
7040      fi
7041      if test "$with_gnu_ld" = no; then
7042	case "$host_cpu" in
7043	hppa*64*)
7044	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7045	  hardcode_libdir_flag_spec_ld='+b $libdir'
7046	  hardcode_libdir_separator=:
7047	  hardcode_direct=no
7048	  hardcode_shlibpath_var=no
7049	  ;;
7050	ia64*)
7051	  hardcode_libdir_flag_spec='-L$libdir'
7052	  hardcode_direct=no
7053	  hardcode_shlibpath_var=no
7054
7055	  # hardcode_minus_L: Not really in the search PATH,
7056	  # but as the default location of the library.
7057	  hardcode_minus_L=yes
7058	  ;;
7059	*)
7060	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7061	  hardcode_libdir_separator=:
7062	  hardcode_direct=yes
7063	  export_dynamic_flag_spec='${wl}-E'
7064
7065	  # hardcode_minus_L: Not really in the search PATH,
7066	  # but as the default location of the library.
7067	  hardcode_minus_L=yes
7068	  ;;
7069	esac
7070      fi
7071      ;;
7072
7073    irix5* | irix6* | nonstopux*)
7074      if test "$GCC" = yes; then
7075	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'
7076      else
7077	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'
7078	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7079      fi
7080      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7081      hardcode_libdir_separator=:
7082      link_all_deplibs=yes
7083      ;;
7084
7085    netbsd*)
7086      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7087	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7088      else
7089	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7090      fi
7091      hardcode_libdir_flag_spec='-R$libdir'
7092      hardcode_direct=yes
7093      hardcode_shlibpath_var=no
7094      ;;
7095
7096    newsos6)
7097      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7098      hardcode_direct=yes
7099      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7100      hardcode_libdir_separator=:
7101      hardcode_shlibpath_var=no
7102      ;;
7103
7104    openbsd*)
7105      hardcode_direct=yes
7106      hardcode_shlibpath_var=no
7107      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7108	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7109	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7110	export_dynamic_flag_spec='${wl}-E'
7111      else
7112       case $host_os in
7113	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7114	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7115	   hardcode_libdir_flag_spec='-R$libdir'
7116	   ;;
7117	 *)
7118	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7119	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7120	   ;;
7121       esac
7122      fi
7123      ;;
7124
7125    os2*)
7126      hardcode_libdir_flag_spec='-L$libdir'
7127      hardcode_minus_L=yes
7128      allow_undefined_flag=unsupported
7129      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'
7130      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7131      ;;
7132
7133    osf3*)
7134      if test "$GCC" = yes; then
7135	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7136	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'
7137      else
7138	allow_undefined_flag=' -expect_unresolved \*'
7139	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'
7140      fi
7141      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7142      hardcode_libdir_separator=:
7143      ;;
7144
7145    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7146      if test "$GCC" = yes; then
7147	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7148	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'
7149	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7150      else
7151	allow_undefined_flag=' -expect_unresolved \*'
7152	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'
7153	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7154	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7155
7156	# Both c and cxx compiler support -rpath directly
7157	hardcode_libdir_flag_spec='-rpath $libdir'
7158      fi
7159      hardcode_libdir_separator=:
7160      ;;
7161
7162    sco3.2v5*)
7163      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7164      hardcode_shlibpath_var=no
7165      export_dynamic_flag_spec='${wl}-Bexport'
7166      runpath_var=LD_RUN_PATH
7167      hardcode_runpath_var=yes
7168      ;;
7169
7170    solaris*)
7171      no_undefined_flag=' -z text'
7172      if test "$GCC" = yes; then
7173	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7174	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7175	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7176      else
7177	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7179  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7180      fi
7181      hardcode_libdir_flag_spec='-R$libdir'
7182      hardcode_shlibpath_var=no
7183      case $host_os in
7184      solaris2.[0-5] | solaris2.[0-5].*) ;;
7185      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7186	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7187      esac
7188      link_all_deplibs=yes
7189      ;;
7190
7191    sunos4*)
7192      if test "x$host_vendor" = xsequent; then
7193	# Use $CC to link under sequent, because it throws in some extra .o
7194	# files that make .init and .fini sections work.
7195	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7196      else
7197	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7198      fi
7199      hardcode_libdir_flag_spec='-L$libdir'
7200      hardcode_direct=yes
7201      hardcode_minus_L=yes
7202      hardcode_shlibpath_var=no
7203      ;;
7204
7205    sysv4)
7206      case $host_vendor in
7207	sni)
7208	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7209	  hardcode_direct=yes # is this really true???
7210	;;
7211	siemens)
7212	  ## LD is ld it makes a PLAMLIB
7213	  ## CC just makes a GrossModule.
7214	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7215	  reload_cmds='$CC -r -o $output$reload_objs'
7216	  hardcode_direct=no
7217        ;;
7218	motorola)
7219	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7220	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7221	;;
7222      esac
7223      runpath_var='LD_RUN_PATH'
7224      hardcode_shlibpath_var=no
7225      ;;
7226
7227    sysv4.3*)
7228      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7229      hardcode_shlibpath_var=no
7230      export_dynamic_flag_spec='-Bexport'
7231      ;;
7232
7233    sysv4*MP*)
7234      if test -d /usr/nec; then
7235	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236	hardcode_shlibpath_var=no
7237	runpath_var=LD_RUN_PATH
7238	hardcode_runpath_var=yes
7239	ld_shlibs=yes
7240      fi
7241      ;;
7242
7243    sysv4.2uw2*)
7244      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7245      hardcode_direct=yes
7246      hardcode_minus_L=no
7247      hardcode_shlibpath_var=no
7248      hardcode_runpath_var=yes
7249      runpath_var=LD_RUN_PATH
7250      ;;
7251
7252   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7253      no_undefined_flag='${wl}-z ${wl}text'
7254      if test "$GCC" = yes; then
7255	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7256      else
7257	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7258      fi
7259      runpath_var='LD_RUN_PATH'
7260      hardcode_shlibpath_var=no
7261      ;;
7262
7263    sysv5*)
7264      no_undefined_flag=' -z text'
7265      # $CC -shared without GNU ld will not create a library from C++
7266      # object files and a static libstdc++, better avoid it by now
7267      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7269  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7270      hardcode_libdir_flag_spec=
7271      hardcode_shlibpath_var=no
7272      runpath_var='LD_RUN_PATH'
7273      ;;
7274
7275    uts4*)
7276      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277      hardcode_libdir_flag_spec='-L$libdir'
7278      hardcode_shlibpath_var=no
7279      ;;
7280
7281    *)
7282      ld_shlibs=no
7283      ;;
7284    esac
7285  fi
7286
7287echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7288echo "${ECHO_T}$ld_shlibs" >&6
7289test "$ld_shlibs" = no && can_build_shared=no
7290
7291variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7292if test "$GCC" = yes; then
7293  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7294fi
7295
7296#
7297# Do we need to explicitly link libc?
7298#
7299case "x$archive_cmds_need_lc" in
7300x|xyes)
7301  # Assume -lc should be added
7302  archive_cmds_need_lc=yes
7303
7304  if test "$enable_shared" = yes && test "$GCC" = yes; then
7305    case $archive_cmds in
7306    *'~'*)
7307      # FIXME: we may have to deal with multi-command sequences.
7308      ;;
7309    '$CC '*)
7310      # Test whether the compiler implicitly links with -lc since on some
7311      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7312      # to ld, don't add -lc before -lgcc.
7313      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7314echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7315      $rm conftest*
7316      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7317
7318      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319  (eval $ac_compile) 2>&5
7320  ac_status=$?
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } 2>conftest.err; then
7323        soname=conftest
7324        lib=conftest
7325        libobjs=conftest.$ac_objext
7326        deplibs=
7327        wl=$lt_prog_compiler_wl
7328        compiler_flags=-v
7329        linker_flags=-v
7330        verstring=
7331        output_objdir=.
7332        libname=conftest
7333        lt_save_allow_undefined_flag=$allow_undefined_flag
7334        allow_undefined_flag=
7335        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7336  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7337  ac_status=$?
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); }
7340        then
7341	  archive_cmds_need_lc=no
7342        else
7343	  archive_cmds_need_lc=yes
7344        fi
7345        allow_undefined_flag=$lt_save_allow_undefined_flag
7346      else
7347        cat conftest.err 1>&5
7348      fi
7349      $rm conftest*
7350      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7351echo "${ECHO_T}$archive_cmds_need_lc" >&6
7352      ;;
7353    esac
7354  fi
7355  ;;
7356esac
7357
7358echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7359echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7360hardcode_action=
7361if test -n "$hardcode_libdir_flag_spec" || \
7362   test -n "$runpath_var " || \
7363   test "X$hardcode_automatic"="Xyes" ; then
7364
7365  # We can hardcode non-existant directories.
7366  if test "$hardcode_direct" != no &&
7367     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7368     # have to relink, otherwise we might link with an installed library
7369     # when we should be linking with a yet-to-be-installed one
7370     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7371     test "$hardcode_minus_L" != no; then
7372    # Linking always hardcodes the temporary library directory.
7373    hardcode_action=relink
7374  else
7375    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7376    hardcode_action=immediate
7377  fi
7378else
7379  # We cannot hardcode anything, or else we can only hardcode existing
7380  # directories.
7381  hardcode_action=unsupported
7382fi
7383echo "$as_me:$LINENO: result: $hardcode_action" >&5
7384echo "${ECHO_T}$hardcode_action" >&6
7385
7386if test "$hardcode_action" = relink; then
7387  # Fast installation is not supported
7388  enable_fast_install=no
7389elif test "$shlibpath_overrides_runpath" = yes ||
7390     test "$enable_shared" = no; then
7391  # Fast installation is not necessary
7392  enable_fast_install=needless
7393fi
7394
7395striplib=
7396old_striplib=
7397echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7398echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7399if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7400  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7401  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7402  echo "$as_me:$LINENO: result: yes" >&5
7403echo "${ECHO_T}yes" >&6
7404else
7405# FIXME - insert some real tests, host_os isn't really good enough
7406  case $host_os in
7407   darwin*)
7408       if test -n "$STRIP" ; then
7409         striplib="$STRIP -x"
7410         echo "$as_me:$LINENO: result: yes" >&5
7411echo "${ECHO_T}yes" >&6
7412       else
7413  echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415fi
7416       ;;
7417   *)
7418  echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420    ;;
7421  esac
7422fi
7423
7424echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7425echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7426library_names_spec=
7427libname_spec='lib$name'
7428soname_spec=
7429shrext=".so"
7430postinstall_cmds=
7431postuninstall_cmds=
7432finish_cmds=
7433finish_eval=
7434shlibpath_var=
7435shlibpath_overrides_runpath=unknown
7436version_type=none
7437dynamic_linker="$host_os ld.so"
7438sys_lib_dlsearch_path_spec="/lib /usr/lib"
7439if test "$GCC" = yes; then
7440  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7441  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7442    # if the path contains ";" then we assume it to be the separator
7443    # otherwise default to the standard path separator (i.e. ":") - it is
7444    # assumed that no part of a normal pathname contains ";" but that should
7445    # okay in the real world where ";" in dirpaths is itself problematic.
7446    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7447  else
7448    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7449  fi
7450else
7451  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7452fi
7453need_lib_prefix=unknown
7454hardcode_into_libs=no
7455
7456# when you set need_version to no, make sure it does not cause -set_version
7457# flags to be left without arguments
7458need_version=unknown
7459
7460case $host_os in
7461aix3*)
7462  version_type=linux
7463  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7464  shlibpath_var=LIBPATH
7465
7466  # AIX 3 has no versioning support, so we append a major version to the name.
7467  soname_spec='${libname}${release}${shared_ext}$major'
7468  ;;
7469
7470aix4* | aix5*)
7471  version_type=linux
7472  need_lib_prefix=no
7473  need_version=no
7474  hardcode_into_libs=yes
7475  if test "$host_cpu" = ia64; then
7476    # AIX 5 supports IA64
7477    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7478    shlibpath_var=LD_LIBRARY_PATH
7479  else
7480    # With GCC up to 2.95.x, collect2 would create an import file
7481    # for dependence libraries.  The import file would start with
7482    # the line `#! .'.  This would cause the generated library to
7483    # depend on `.', always an invalid library.  This was fixed in
7484    # development snapshots of GCC prior to 3.0.
7485    case $host_os in
7486      aix4 | aix4.[01] | aix4.[01].*)
7487      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7488	   echo ' yes '
7489	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7490	:
7491      else
7492	can_build_shared=no
7493      fi
7494      ;;
7495    esac
7496    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7497    # soname into executable. Probably we can add versioning support to
7498    # collect2, so additional links can be useful in future.
7499    if test "$aix_use_runtimelinking" = yes; then
7500      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7501      # instead of lib<name>.a to let people know that these are not
7502      # typical AIX shared libraries.
7503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7504    else
7505      # We preserve .a as extension for shared libraries through AIX4.2
7506      # and later when we are not doing run time linking.
7507      library_names_spec='${libname}${release}.a $libname.a'
7508      soname_spec='${libname}${release}${shared_ext}$major'
7509    fi
7510    shlibpath_var=LIBPATH
7511  fi
7512  ;;
7513
7514amigaos*)
7515  library_names_spec='$libname.ixlibrary $libname.a'
7516  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7517  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'
7518  ;;
7519
7520beos*)
7521  library_names_spec='${libname}${shared_ext}'
7522  dynamic_linker="$host_os ld.so"
7523  shlibpath_var=LIBRARY_PATH
7524  ;;
7525
7526bsdi4*)
7527  version_type=linux
7528  need_version=no
7529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7530  soname_spec='${libname}${release}${shared_ext}$major'
7531  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7532  shlibpath_var=LD_LIBRARY_PATH
7533  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7534  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7535  # the default ld.so.conf also contains /usr/contrib/lib and
7536  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7537  # libtool to hard-code these into programs
7538  ;;
7539
7540cygwin* | mingw* | pw32*)
7541  version_type=windows
7542  shrext=".dll"
7543  need_version=no
7544  need_lib_prefix=no
7545
7546  case $GCC,$host_os in
7547  yes,cygwin* | yes,mingw* | yes,pw32*)
7548    library_names_spec='$libname.dll.a'
7549    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7550    postinstall_cmds='base_file=`basename \${file}`~
7551      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7552      dldir=$destdir/`dirname \$dlpath`~
7553      test -d \$dldir || mkdir -p \$dldir~
7554      $install_prog $dir/$dlname \$dldir/$dlname'
7555    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7556      dlpath=$dir/\$dldll~
7557       $rm \$dlpath'
7558    shlibpath_overrides_runpath=yes
7559
7560    case $host_os in
7561    cygwin*)
7562      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7563      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7564      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7565      ;;
7566    mingw*)
7567      # MinGW DLLs use traditional 'lib' prefix
7568      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7569      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7570      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7571        # It is most probably a Windows format PATH printed by
7572        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7573        # path with ; separators, and with drive letters. We can handle the
7574        # drive letters (cygwin fileutils understands them), so leave them,
7575        # especially as we might pass files found there to a mingw objdump,
7576        # which wouldn't understand a cygwinified path. Ahh.
7577        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7578      else
7579        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7580      fi
7581      ;;
7582    pw32*)
7583      # pw32 DLLs use 'pw' prefix rather than 'lib'
7584      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7585      ;;
7586    esac
7587    ;;
7588
7589  *)
7590    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7591    ;;
7592  esac
7593  dynamic_linker='Win32 ld.exe'
7594  # FIXME: first we should search . and the directory the executable is in
7595  shlibpath_var=PATH
7596  ;;
7597
7598darwin* | rhapsody*)
7599  dynamic_linker="$host_os dyld"
7600  version_type=darwin
7601  need_lib_prefix=no
7602  need_version=no
7603  # FIXME: Relying on posixy $() will cause problems for
7604  #        cross-compilation, but unfortunately the echo tests do not
7605  #        yet detect zsh echo's removal of \ escapes.
7606  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7607  soname_spec='${libname}${release}${major}$shared_ext'
7608  shlibpath_overrides_runpath=yes
7609  shlibpath_var=DYLD_LIBRARY_PATH
7610  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7611  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7612  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7613  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7614  fi
7615  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7616  ;;
7617
7618dgux*)
7619  version_type=linux
7620  need_lib_prefix=no
7621  need_version=no
7622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7623  soname_spec='${libname}${release}${shared_ext}$major'
7624  shlibpath_var=LD_LIBRARY_PATH
7625  ;;
7626
7627freebsd1*)
7628  dynamic_linker=no
7629  ;;
7630
7631freebsd*)
7632  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7633  version_type=freebsd-$objformat
7634  case $version_type in
7635    freebsd-elf*)
7636      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7637      need_version=no
7638      need_lib_prefix=no
7639      ;;
7640    freebsd-*)
7641      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7642      need_version=yes
7643      ;;
7644  esac
7645  shlibpath_var=LD_LIBRARY_PATH
7646  case $host_os in
7647  freebsd2*)
7648    shlibpath_overrides_runpath=yes
7649    ;;
7650  freebsd3.01* | freebsdelf3.01*)
7651    shlibpath_overrides_runpath=yes
7652    hardcode_into_libs=yes
7653    ;;
7654  *) # from 3.2 on
7655    shlibpath_overrides_runpath=no
7656    hardcode_into_libs=yes
7657    ;;
7658  esac
7659  ;;
7660
7661gnu*)
7662  version_type=linux
7663  need_lib_prefix=no
7664  need_version=no
7665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7666  soname_spec='${libname}${release}${shared_ext}$major'
7667  shlibpath_var=LD_LIBRARY_PATH
7668  hardcode_into_libs=yes
7669  ;;
7670
7671hpux9* | hpux10* | hpux11*)
7672  # Give a soname corresponding to the major version so that dld.sl refuses to
7673  # link against other versions.
7674  version_type=sunos
7675  need_lib_prefix=no
7676  need_version=no
7677  case "$host_cpu" in
7678  ia64*)
7679    shrext='.so'
7680    hardcode_into_libs=yes
7681    dynamic_linker="$host_os dld.so"
7682    shlibpath_var=LD_LIBRARY_PATH
7683    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7684    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7685    soname_spec='${libname}${release}${shared_ext}$major'
7686    if test "X$HPUX_IA64_MODE" = X32; then
7687      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7688    else
7689      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7690    fi
7691    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7692    ;;
7693   hppa*64*)
7694     shrext='.sl'
7695     hardcode_into_libs=yes
7696     dynamic_linker="$host_os dld.sl"
7697     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7698     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7700     soname_spec='${libname}${release}${shared_ext}$major'
7701     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7702     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7703     ;;
7704   *)
7705    shrext='.sl'
7706    dynamic_linker="$host_os dld.sl"
7707    shlibpath_var=SHLIB_PATH
7708    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7709    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7710    soname_spec='${libname}${release}${shared_ext}$major'
7711    ;;
7712  esac
7713  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7714  postinstall_cmds='chmod 555 $lib'
7715  ;;
7716
7717irix5* | irix6* | nonstopux*)
7718  case $host_os in
7719    nonstopux*) version_type=nonstopux ;;
7720    *)
7721	if test "$lt_cv_prog_gnu_ld" = yes; then
7722		version_type=linux
7723	else
7724		version_type=irix
7725	fi ;;
7726  esac
7727  need_lib_prefix=no
7728  need_version=no
7729  soname_spec='${libname}${release}${shared_ext}$major'
7730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7731  case $host_os in
7732  irix5* | nonstopux*)
7733    libsuff= shlibsuff=
7734    ;;
7735  *)
7736    case $LD in # libtool.m4 will add one of these switches to LD
7737    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7738      libsuff= shlibsuff= libmagic=32-bit;;
7739    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7740      libsuff=32 shlibsuff=N32 libmagic=N32;;
7741    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7742      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7743    *) libsuff= shlibsuff= libmagic=never-match;;
7744    esac
7745    ;;
7746  esac
7747  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7748  shlibpath_overrides_runpath=no
7749  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7750  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7751  hardcode_into_libs=yes
7752  ;;
7753
7754# No shared lib support for Linux oldld, aout, or coff.
7755linux*oldld* | linux*aout* | linux*coff*)
7756  dynamic_linker=no
7757  ;;
7758
7759# This must be Linux ELF.
7760linux*)
7761  version_type=linux
7762  need_lib_prefix=no
7763  need_version=no
7764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7765  soname_spec='${libname}${release}${shared_ext}$major'
7766  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7767  shlibpath_var=LD_LIBRARY_PATH
7768  shlibpath_overrides_runpath=no
7769  # This implies no fast_install, which is unacceptable.
7770  # Some rework will be needed to allow for fast_install
7771  # before this can be enabled.
7772  hardcode_into_libs=yes
7773
7774  # We used to test for /lib/ld.so.1 and disable shared libraries on
7775  # powerpc, because MkLinux only supported shared libraries with the
7776  # GNU dynamic linker.  Since this was broken with cross compilers,
7777  # most powerpc-linux boxes support dynamic linking these days and
7778  # people can always --disable-shared, the test was removed, and we
7779  # assume the GNU/Linux dynamic linker is in use.
7780  dynamic_linker='GNU/Linux ld.so'
7781  ;;
7782
7783netbsd*)
7784  version_type=sunos
7785  need_lib_prefix=no
7786  need_version=no
7787  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7788    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7789    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7790    dynamic_linker='NetBSD (a.out) ld.so'
7791  else
7792    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7793    soname_spec='${libname}${release}${shared_ext}$major'
7794    dynamic_linker='NetBSD ld.elf_so'
7795  fi
7796  shlibpath_var=LD_LIBRARY_PATH
7797  shlibpath_overrides_runpath=yes
7798  hardcode_into_libs=yes
7799  ;;
7800
7801newsos6)
7802  version_type=linux
7803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804  shlibpath_var=LD_LIBRARY_PATH
7805  shlibpath_overrides_runpath=yes
7806  ;;
7807
7808nto-qnx)
7809  version_type=linux
7810  need_lib_prefix=no
7811  need_version=no
7812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813  soname_spec='${libname}${release}${shared_ext}$major'
7814  shlibpath_var=LD_LIBRARY_PATH
7815  shlibpath_overrides_runpath=yes
7816  ;;
7817
7818openbsd*)
7819  version_type=sunos
7820  need_lib_prefix=no
7821  need_version=no
7822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7823  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7824  shlibpath_var=LD_LIBRARY_PATH
7825  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826    case $host_os in
7827      openbsd2.[89] | openbsd2.[89].*)
7828	shlibpath_overrides_runpath=no
7829	;;
7830      *)
7831	shlibpath_overrides_runpath=yes
7832	;;
7833      esac
7834  else
7835    shlibpath_overrides_runpath=yes
7836  fi
7837  ;;
7838
7839os2*)
7840  libname_spec='$name'
7841  shrext=".dll"
7842  need_lib_prefix=no
7843  library_names_spec='$libname${shared_ext} $libname.a'
7844  dynamic_linker='OS/2 ld.exe'
7845  shlibpath_var=LIBPATH
7846  ;;
7847
7848osf3* | osf4* | osf5*)
7849  version_type=osf
7850  need_lib_prefix=no
7851  need_version=no
7852  soname_spec='${libname}${release}${shared_ext}$major'
7853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854  shlibpath_var=LD_LIBRARY_PATH
7855  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7856  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7857  ;;
7858
7859sco3.2v5*)
7860  version_type=osf
7861  soname_spec='${libname}${release}${shared_ext}$major'
7862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863  shlibpath_var=LD_LIBRARY_PATH
7864  ;;
7865
7866solaris*)
7867  version_type=linux
7868  need_lib_prefix=no
7869  need_version=no
7870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871  soname_spec='${libname}${release}${shared_ext}$major'
7872  shlibpath_var=LD_LIBRARY_PATH
7873  shlibpath_overrides_runpath=yes
7874  hardcode_into_libs=yes
7875  # ldd complains unless libraries are executable
7876  postinstall_cmds='chmod +x $lib'
7877  ;;
7878
7879sunos4*)
7880  version_type=sunos
7881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7882  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7883  shlibpath_var=LD_LIBRARY_PATH
7884  shlibpath_overrides_runpath=yes
7885  if test "$with_gnu_ld" = yes; then
7886    need_lib_prefix=no
7887  fi
7888  need_version=yes
7889  ;;
7890
7891sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7892  version_type=linux
7893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894  soname_spec='${libname}${release}${shared_ext}$major'
7895  shlibpath_var=LD_LIBRARY_PATH
7896  case $host_vendor in
7897    sni)
7898      shlibpath_overrides_runpath=no
7899      need_lib_prefix=no
7900      export_dynamic_flag_spec='${wl}-Blargedynsym'
7901      runpath_var=LD_RUN_PATH
7902      ;;
7903    siemens)
7904      need_lib_prefix=no
7905      ;;
7906    motorola)
7907      need_lib_prefix=no
7908      need_version=no
7909      shlibpath_overrides_runpath=no
7910      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7911      ;;
7912  esac
7913  ;;
7914
7915sysv4*MP*)
7916  if test -d /usr/nec ;then
7917    version_type=linux
7918    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7919    soname_spec='$libname${shared_ext}.$major'
7920    shlibpath_var=LD_LIBRARY_PATH
7921  fi
7922  ;;
7923
7924uts4*)
7925  version_type=linux
7926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927  soname_spec='${libname}${release}${shared_ext}$major'
7928  shlibpath_var=LD_LIBRARY_PATH
7929  ;;
7930
7931*)
7932  dynamic_linker=no
7933  ;;
7934esac
7935echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7936echo "${ECHO_T}$dynamic_linker" >&6
7937test "$dynamic_linker" = no && can_build_shared=no
7938
7939if test "x$enable_dlopen" != xyes; then
7940  enable_dlopen=unknown
7941  enable_dlopen_self=unknown
7942  enable_dlopen_self_static=unknown
7943else
7944  lt_cv_dlopen=no
7945  lt_cv_dlopen_libs=
7946
7947  case $host_os in
7948  beos*)
7949    lt_cv_dlopen="load_add_on"
7950    lt_cv_dlopen_libs=
7951    lt_cv_dlopen_self=yes
7952    ;;
7953
7954  mingw* | pw32*)
7955    lt_cv_dlopen="LoadLibrary"
7956    lt_cv_dlopen_libs=
7957   ;;
7958
7959  cygwin*)
7960    lt_cv_dlopen="dlopen"
7961    lt_cv_dlopen_libs=
7962   ;;
7963
7964  darwin*)
7965  # if libdl is installed we need to link against it
7966    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7967echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7968if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7969  echo $ECHO_N "(cached) $ECHO_C" >&6
7970else
7971  ac_check_lib_save_LIBS=$LIBS
7972LIBS="-ldl  $LIBS"
7973cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979
7980/* Override any gcc2 internal prototype to avoid an error.  */
7981#ifdef __cplusplus
7982extern "C"
7983#endif
7984/* We use char because int might match the return type of a gcc2
7985   builtin and then its argument prototype would still apply.  */
7986char dlopen ();
7987int
7988main ()
7989{
7990dlopen ();
7991  ;
7992  return 0;
7993}
7994_ACEOF
7995rm -f conftest.$ac_objext conftest$ac_exeext
7996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997  (eval $ac_link) 2>conftest.er1
7998  ac_status=$?
7999  grep -v '^ *+' conftest.er1 >conftest.err
8000  rm -f conftest.er1
8001  cat conftest.err >&5
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); } &&
8004	 { ac_try='test -z "$ac_c_werror_flag"
8005			 || test ! -s conftest.err'
8006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007  (eval $ac_try) 2>&5
8008  ac_status=$?
8009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010  (exit $ac_status); }; } &&
8011	 { ac_try='test -s conftest$ac_exeext'
8012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013  (eval $ac_try) 2>&5
8014  ac_status=$?
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); }; }; then
8017  ac_cv_lib_dl_dlopen=yes
8018else
8019  echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022ac_cv_lib_dl_dlopen=no
8023fi
8024rm -f conftest.err conftest.$ac_objext \
8025      conftest$ac_exeext conftest.$ac_ext
8026LIBS=$ac_check_lib_save_LIBS
8027fi
8028echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8029echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8030if test $ac_cv_lib_dl_dlopen = yes; then
8031  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8032else
8033
8034    lt_cv_dlopen="dyld"
8035    lt_cv_dlopen_libs=
8036    lt_cv_dlopen_self=yes
8037
8038fi
8039
8040   ;;
8041
8042  *)
8043    echo "$as_me:$LINENO: checking for shl_load" >&5
8044echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8045if test "${ac_cv_func_shl_load+set}" = set; then
8046  echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048  cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h.  */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h.  */
8054/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8056#define shl_load innocuous_shl_load
8057
8058/* System header to define __stub macros and hopefully few prototypes,
8059    which can conflict with char shl_load (); below.
8060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8061    <limits.h> exists even on freestanding compilers.  */
8062
8063#ifdef __STDC__
8064# include <limits.h>
8065#else
8066# include <assert.h>
8067#endif
8068
8069#undef shl_load
8070
8071/* Override any gcc2 internal prototype to avoid an error.  */
8072#ifdef __cplusplus
8073extern "C"
8074{
8075#endif
8076/* We use char because int might match the return type of a gcc2
8077   builtin and then its argument prototype would still apply.  */
8078char shl_load ();
8079/* The GNU C library defines this for functions which it implements
8080    to always fail with ENOSYS.  Some functions are actually named
8081    something starting with __ and the normal name is an alias.  */
8082#if defined (__stub_shl_load) || defined (__stub___shl_load)
8083choke me
8084#else
8085char (*f) () = shl_load;
8086#endif
8087#ifdef __cplusplus
8088}
8089#endif
8090
8091int
8092main ()
8093{
8094return f != shl_load;
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099rm -f conftest.$ac_objext conftest$ac_exeext
8100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8101  (eval $ac_link) 2>conftest.er1
8102  ac_status=$?
8103  grep -v '^ *+' conftest.er1 >conftest.err
8104  rm -f conftest.er1
8105  cat conftest.err >&5
8106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107  (exit $ac_status); } &&
8108	 { ac_try='test -z "$ac_c_werror_flag"
8109			 || test ! -s conftest.err'
8110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111  (eval $ac_try) 2>&5
8112  ac_status=$?
8113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114  (exit $ac_status); }; } &&
8115	 { ac_try='test -s conftest$ac_exeext'
8116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117  (eval $ac_try) 2>&5
8118  ac_status=$?
8119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); }; }; then
8121  ac_cv_func_shl_load=yes
8122else
8123  echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126ac_cv_func_shl_load=no
8127fi
8128rm -f conftest.err conftest.$ac_objext \
8129      conftest$ac_exeext conftest.$ac_ext
8130fi
8131echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8132echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8133if test $ac_cv_func_shl_load = yes; then
8134  lt_cv_dlopen="shl_load"
8135else
8136  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8137echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8138if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8139  echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141  ac_check_lib_save_LIBS=$LIBS
8142LIBS="-ldld  $LIBS"
8143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h.  */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h.  */
8149
8150/* Override any gcc2 internal prototype to avoid an error.  */
8151#ifdef __cplusplus
8152extern "C"
8153#endif
8154/* We use char because int might match the return type of a gcc2
8155   builtin and then its argument prototype would still apply.  */
8156char shl_load ();
8157int
8158main ()
8159{
8160shl_load ();
8161  ;
8162  return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167  (eval $ac_link) 2>conftest.er1
8168  ac_status=$?
8169  grep -v '^ *+' conftest.er1 >conftest.err
8170  rm -f conftest.er1
8171  cat conftest.err >&5
8172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173  (exit $ac_status); } &&
8174	 { ac_try='test -z "$ac_c_werror_flag"
8175			 || test ! -s conftest.err'
8176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177  (eval $ac_try) 2>&5
8178  ac_status=$?
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); }; } &&
8181	 { ac_try='test -s conftest$ac_exeext'
8182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183  (eval $ac_try) 2>&5
8184  ac_status=$?
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); }; }; then
8187  ac_cv_lib_dld_shl_load=yes
8188else
8189  echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192ac_cv_lib_dld_shl_load=no
8193fi
8194rm -f conftest.err conftest.$ac_objext \
8195      conftest$ac_exeext conftest.$ac_ext
8196LIBS=$ac_check_lib_save_LIBS
8197fi
8198echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8199echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8200if test $ac_cv_lib_dld_shl_load = yes; then
8201  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8202else
8203  echo "$as_me:$LINENO: checking for dlopen" >&5
8204echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8205if test "${ac_cv_func_dlopen+set}" = set; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208  cat >conftest.$ac_ext <<_ACEOF
8209/* confdefs.h.  */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h.  */
8214/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8215   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8216#define dlopen innocuous_dlopen
8217
8218/* System header to define __stub macros and hopefully few prototypes,
8219    which can conflict with char dlopen (); below.
8220    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8221    <limits.h> exists even on freestanding compilers.  */
8222
8223#ifdef __STDC__
8224# include <limits.h>
8225#else
8226# include <assert.h>
8227#endif
8228
8229#undef dlopen
8230
8231/* Override any gcc2 internal prototype to avoid an error.  */
8232#ifdef __cplusplus
8233extern "C"
8234{
8235#endif
8236/* We use char because int might match the return type of a gcc2
8237   builtin and then its argument prototype would still apply.  */
8238char dlopen ();
8239/* The GNU C library defines this for functions which it implements
8240    to always fail with ENOSYS.  Some functions are actually named
8241    something starting with __ and the normal name is an alias.  */
8242#if defined (__stub_dlopen) || defined (__stub___dlopen)
8243choke me
8244#else
8245char (*f) () = dlopen;
8246#endif
8247#ifdef __cplusplus
8248}
8249#endif
8250
8251int
8252main ()
8253{
8254return f != dlopen;
8255  ;
8256  return 0;
8257}
8258_ACEOF
8259rm -f conftest.$ac_objext conftest$ac_exeext
8260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261  (eval $ac_link) 2>conftest.er1
8262  ac_status=$?
8263  grep -v '^ *+' conftest.er1 >conftest.err
8264  rm -f conftest.er1
8265  cat conftest.err >&5
8266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267  (exit $ac_status); } &&
8268	 { ac_try='test -z "$ac_c_werror_flag"
8269			 || test ! -s conftest.err'
8270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271  (eval $ac_try) 2>&5
8272  ac_status=$?
8273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274  (exit $ac_status); }; } &&
8275	 { ac_try='test -s conftest$ac_exeext'
8276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277  (eval $ac_try) 2>&5
8278  ac_status=$?
8279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280  (exit $ac_status); }; }; then
8281  ac_cv_func_dlopen=yes
8282else
8283  echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286ac_cv_func_dlopen=no
8287fi
8288rm -f conftest.err conftest.$ac_objext \
8289      conftest$ac_exeext conftest.$ac_ext
8290fi
8291echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8292echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8293if test $ac_cv_func_dlopen = yes; then
8294  lt_cv_dlopen="dlopen"
8295else
8296  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8297echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8298if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8299  echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301  ac_check_lib_save_LIBS=$LIBS
8302LIBS="-ldl  $LIBS"
8303cat >conftest.$ac_ext <<_ACEOF
8304/* confdefs.h.  */
8305_ACEOF
8306cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF
8308/* end confdefs.h.  */
8309
8310/* Override any gcc2 internal prototype to avoid an error.  */
8311#ifdef __cplusplus
8312extern "C"
8313#endif
8314/* We use char because int might match the return type of a gcc2
8315   builtin and then its argument prototype would still apply.  */
8316char dlopen ();
8317int
8318main ()
8319{
8320dlopen ();
8321  ;
8322  return 0;
8323}
8324_ACEOF
8325rm -f conftest.$ac_objext conftest$ac_exeext
8326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327  (eval $ac_link) 2>conftest.er1
8328  ac_status=$?
8329  grep -v '^ *+' conftest.er1 >conftest.err
8330  rm -f conftest.er1
8331  cat conftest.err >&5
8332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333  (exit $ac_status); } &&
8334	 { ac_try='test -z "$ac_c_werror_flag"
8335			 || test ! -s conftest.err'
8336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337  (eval $ac_try) 2>&5
8338  ac_status=$?
8339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340  (exit $ac_status); }; } &&
8341	 { ac_try='test -s conftest$ac_exeext'
8342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343  (eval $ac_try) 2>&5
8344  ac_status=$?
8345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346  (exit $ac_status); }; }; then
8347  ac_cv_lib_dl_dlopen=yes
8348else
8349  echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
8352ac_cv_lib_dl_dlopen=no
8353fi
8354rm -f conftest.err conftest.$ac_objext \
8355      conftest$ac_exeext conftest.$ac_ext
8356LIBS=$ac_check_lib_save_LIBS
8357fi
8358echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8359echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8360if test $ac_cv_lib_dl_dlopen = yes; then
8361  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8362else
8363  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8364echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8365if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8366  echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368  ac_check_lib_save_LIBS=$LIBS
8369LIBS="-lsvld  $LIBS"
8370cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h.  */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h.  */
8376
8377/* Override any gcc2 internal prototype to avoid an error.  */
8378#ifdef __cplusplus
8379extern "C"
8380#endif
8381/* We use char because int might match the return type of a gcc2
8382   builtin and then its argument prototype would still apply.  */
8383char dlopen ();
8384int
8385main ()
8386{
8387dlopen ();
8388  ;
8389  return 0;
8390}
8391_ACEOF
8392rm -f conftest.$ac_objext conftest$ac_exeext
8393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394  (eval $ac_link) 2>conftest.er1
8395  ac_status=$?
8396  grep -v '^ *+' conftest.er1 >conftest.err
8397  rm -f conftest.er1
8398  cat conftest.err >&5
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); } &&
8401	 { ac_try='test -z "$ac_c_werror_flag"
8402			 || test ! -s conftest.err'
8403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404  (eval $ac_try) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }; } &&
8408	 { ac_try='test -s conftest$ac_exeext'
8409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410  (eval $ac_try) 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; }; then
8414  ac_cv_lib_svld_dlopen=yes
8415else
8416  echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419ac_cv_lib_svld_dlopen=no
8420fi
8421rm -f conftest.err conftest.$ac_objext \
8422      conftest$ac_exeext conftest.$ac_ext
8423LIBS=$ac_check_lib_save_LIBS
8424fi
8425echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8426echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8427if test $ac_cv_lib_svld_dlopen = yes; then
8428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8429else
8430  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8431echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8432if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8433  echo $ECHO_N "(cached) $ECHO_C" >&6
8434else
8435  ac_check_lib_save_LIBS=$LIBS
8436LIBS="-ldld  $LIBS"
8437cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h.  */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h.  */
8443
8444/* Override any gcc2 internal prototype to avoid an error.  */
8445#ifdef __cplusplus
8446extern "C"
8447#endif
8448/* We use char because int might match the return type of a gcc2
8449   builtin and then its argument prototype would still apply.  */
8450char dld_link ();
8451int
8452main ()
8453{
8454dld_link ();
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461  (eval $ac_link) 2>conftest.er1
8462  ac_status=$?
8463  grep -v '^ *+' conftest.er1 >conftest.err
8464  rm -f conftest.er1
8465  cat conftest.err >&5
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); } &&
8468	 { ac_try='test -z "$ac_c_werror_flag"
8469			 || test ! -s conftest.err'
8470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471  (eval $ac_try) 2>&5
8472  ac_status=$?
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); }; } &&
8475	 { ac_try='test -s conftest$ac_exeext'
8476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477  (eval $ac_try) 2>&5
8478  ac_status=$?
8479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); }; }; then
8481  ac_cv_lib_dld_dld_link=yes
8482else
8483  echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486ac_cv_lib_dld_dld_link=no
8487fi
8488rm -f conftest.err conftest.$ac_objext \
8489      conftest$ac_exeext conftest.$ac_ext
8490LIBS=$ac_check_lib_save_LIBS
8491fi
8492echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8493echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8494if test $ac_cv_lib_dld_dld_link = yes; then
8495  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8496fi
8497
8498
8499fi
8500
8501
8502fi
8503
8504
8505fi
8506
8507
8508fi
8509
8510
8511fi
8512
8513    ;;
8514  esac
8515
8516  if test "x$lt_cv_dlopen" != xno; then
8517    enable_dlopen=yes
8518  else
8519    enable_dlopen=no
8520  fi
8521
8522  case $lt_cv_dlopen in
8523  dlopen)
8524    save_CPPFLAGS="$CPPFLAGS"
8525    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8526
8527    save_LDFLAGS="$LDFLAGS"
8528    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8529
8530    save_LIBS="$LIBS"
8531    LIBS="$lt_cv_dlopen_libs $LIBS"
8532
8533    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8534echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8535if test "${lt_cv_dlopen_self+set}" = set; then
8536  echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538  	  if test "$cross_compiling" = yes; then :
8539  lt_cv_dlopen_self=cross
8540else
8541  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8542  lt_status=$lt_dlunknown
8543  cat > conftest.$ac_ext <<EOF
8544#line 8544 "configure"
8545#include "confdefs.h"
8546
8547#if HAVE_DLFCN_H
8548#include <dlfcn.h>
8549#endif
8550
8551#include <stdio.h>
8552
8553#ifdef RTLD_GLOBAL
8554#  define LT_DLGLOBAL		RTLD_GLOBAL
8555#else
8556#  ifdef DL_GLOBAL
8557#    define LT_DLGLOBAL		DL_GLOBAL
8558#  else
8559#    define LT_DLGLOBAL		0
8560#  endif
8561#endif
8562
8563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8564   find out it does not work in some platform. */
8565#ifndef LT_DLLAZY_OR_NOW
8566#  ifdef RTLD_LAZY
8567#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8568#  else
8569#    ifdef DL_LAZY
8570#      define LT_DLLAZY_OR_NOW		DL_LAZY
8571#    else
8572#      ifdef RTLD_NOW
8573#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8574#      else
8575#        ifdef DL_NOW
8576#          define LT_DLLAZY_OR_NOW	DL_NOW
8577#        else
8578#          define LT_DLLAZY_OR_NOW	0
8579#        endif
8580#      endif
8581#    endif
8582#  endif
8583#endif
8584
8585#ifdef __cplusplus
8586extern "C" void exit (int);
8587#endif
8588
8589void fnord() { int i=42;}
8590int main ()
8591{
8592  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8593  int status = $lt_dlunknown;
8594
8595  if (self)
8596    {
8597      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8598      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8599      /* dlclose (self); */
8600    }
8601
8602    exit (status);
8603}
8604EOF
8605  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606  (eval $ac_link) 2>&5
8607  ac_status=$?
8608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8610    (./conftest; exit; ) 2>/dev/null
8611    lt_status=$?
8612    case x$lt_status in
8613      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8614      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8615      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8616    esac
8617  else :
8618    # compilation failed
8619    lt_cv_dlopen_self=no
8620  fi
8621fi
8622rm -fr conftest*
8623
8624
8625fi
8626echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8627echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8628
8629    if test "x$lt_cv_dlopen_self" = xyes; then
8630      LDFLAGS="$LDFLAGS $link_static_flag"
8631      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8632echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8633if test "${lt_cv_dlopen_self_static+set}" = set; then
8634  echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636  	  if test "$cross_compiling" = yes; then :
8637  lt_cv_dlopen_self_static=cross
8638else
8639  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8640  lt_status=$lt_dlunknown
8641  cat > conftest.$ac_ext <<EOF
8642#line 8642 "configure"
8643#include "confdefs.h"
8644
8645#if HAVE_DLFCN_H
8646#include <dlfcn.h>
8647#endif
8648
8649#include <stdio.h>
8650
8651#ifdef RTLD_GLOBAL
8652#  define LT_DLGLOBAL		RTLD_GLOBAL
8653#else
8654#  ifdef DL_GLOBAL
8655#    define LT_DLGLOBAL		DL_GLOBAL
8656#  else
8657#    define LT_DLGLOBAL		0
8658#  endif
8659#endif
8660
8661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8662   find out it does not work in some platform. */
8663#ifndef LT_DLLAZY_OR_NOW
8664#  ifdef RTLD_LAZY
8665#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8666#  else
8667#    ifdef DL_LAZY
8668#      define LT_DLLAZY_OR_NOW		DL_LAZY
8669#    else
8670#      ifdef RTLD_NOW
8671#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8672#      else
8673#        ifdef DL_NOW
8674#          define LT_DLLAZY_OR_NOW	DL_NOW
8675#        else
8676#          define LT_DLLAZY_OR_NOW	0
8677#        endif
8678#      endif
8679#    endif
8680#  endif
8681#endif
8682
8683#ifdef __cplusplus
8684extern "C" void exit (int);
8685#endif
8686
8687void fnord() { int i=42;}
8688int main ()
8689{
8690  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8691  int status = $lt_dlunknown;
8692
8693  if (self)
8694    {
8695      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8696      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8697      /* dlclose (self); */
8698    }
8699
8700    exit (status);
8701}
8702EOF
8703  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704  (eval $ac_link) 2>&5
8705  ac_status=$?
8706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8708    (./conftest; exit; ) 2>/dev/null
8709    lt_status=$?
8710    case x$lt_status in
8711      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8712      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8713      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8714    esac
8715  else :
8716    # compilation failed
8717    lt_cv_dlopen_self_static=no
8718  fi
8719fi
8720rm -fr conftest*
8721
8722
8723fi
8724echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8725echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8726    fi
8727
8728    CPPFLAGS="$save_CPPFLAGS"
8729    LDFLAGS="$save_LDFLAGS"
8730    LIBS="$save_LIBS"
8731    ;;
8732  esac
8733
8734  case $lt_cv_dlopen_self in
8735  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8736  *) enable_dlopen_self=unknown ;;
8737  esac
8738
8739  case $lt_cv_dlopen_self_static in
8740  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8741  *) enable_dlopen_self_static=unknown ;;
8742  esac
8743fi
8744
8745
8746# Report which librarie types wil actually be built
8747echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8748echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8749echo "$as_me:$LINENO: result: $can_build_shared" >&5
8750echo "${ECHO_T}$can_build_shared" >&6
8751
8752echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8753echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8754test "$can_build_shared" = "no" && enable_shared=no
8755
8756# On AIX, shared libraries and static libraries use the same namespace, and
8757# are all built from PIC.
8758case "$host_os" in
8759aix3*)
8760  test "$enable_shared" = yes && enable_static=no
8761  if test -n "$RANLIB"; then
8762    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8763    postinstall_cmds='$RANLIB $lib'
8764  fi
8765  ;;
8766
8767aix4*)
8768  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8769    test "$enable_shared" = yes && enable_static=no
8770  fi
8771  ;;
8772  darwin* | rhapsody*)
8773  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8774    archive_cmds_need_lc=no
8775    case "$host_os" in
8776    rhapsody* | darwin1.[012])
8777      allow_undefined_flag='-undefined suppress'
8778      ;;
8779    *) # Darwin 1.3 on
8780      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8781      ;;
8782    esac
8783    # FIXME: Relying on posixy $() will cause problems for
8784    #        cross-compilation, but unfortunately the echo tests do not
8785    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8786    #	       `"' quotes if we put them in here... so don't!
8787		output_verbose_link_cmd='echo'
8788    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8789    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8790    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8791		  archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8792		  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8793    hardcode_direct=no
8794    hardcode_automatic=yes
8795    hardcode_shlibpath_var=unsupported
8796    whole_archive_flag_spec='-all_load $convenience'
8797    link_all_deplibs=yes
8798    fi
8799    ;;
8800esac
8801echo "$as_me:$LINENO: result: $enable_shared" >&5
8802echo "${ECHO_T}$enable_shared" >&6
8803
8804echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8805echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8806# Make sure either enable_shared or enable_static is yes.
8807test "$enable_shared" = yes || enable_static=yes
8808echo "$as_me:$LINENO: result: $enable_static" >&5
8809echo "${ECHO_T}$enable_static" >&6
8810
8811# The else clause should only fire when bootstrapping the
8812# libtool distribution, otherwise you forgot to ship ltmain.sh
8813# with your package, and you will get complaints that there are
8814# no rules to generate ltmain.sh.
8815if test -f "$ltmain"; then
8816  # See if we are running on zsh, and set the options which allow our commands through
8817  # without removal of \ escapes.
8818  if test -n "${ZSH_VERSION+set}" ; then
8819    setopt NO_GLOB_SUBST
8820  fi
8821  # Now quote all the things that may contain metacharacters while being
8822  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8823  # variables and quote the copies for generation of the libtool script.
8824  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8825    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8826    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8827    deplibs_check_method reload_flag reload_cmds need_locks \
8828    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8829    lt_cv_sys_global_symbol_to_c_name_address \
8830    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8831    old_postinstall_cmds old_postuninstall_cmds \
8832    compiler \
8833    CC \
8834    LD \
8835    lt_prog_compiler_wl \
8836    lt_prog_compiler_pic \
8837    lt_prog_compiler_static \
8838    lt_prog_compiler_no_builtin_flag \
8839    export_dynamic_flag_spec \
8840    thread_safe_flag_spec \
8841    whole_archive_flag_spec \
8842    enable_shared_with_static_runtimes \
8843    old_archive_cmds \
8844    old_archive_from_new_cmds \
8845    predep_objects \
8846    postdep_objects \
8847    predeps \
8848    postdeps \
8849    compiler_lib_search_path \
8850    archive_cmds \
8851    archive_expsym_cmds \
8852    postinstall_cmds \
8853    postuninstall_cmds \
8854    old_archive_from_expsyms_cmds \
8855    allow_undefined_flag \
8856    no_undefined_flag \
8857    export_symbols_cmds \
8858    hardcode_libdir_flag_spec \
8859    hardcode_libdir_flag_spec_ld \
8860    hardcode_libdir_separator \
8861    hardcode_automatic \
8862    module_cmds \
8863    module_expsym_cmds \
8864    lt_cv_prog_compiler_c_o \
8865    exclude_expsyms \
8866    include_expsyms; do
8867
8868    case $var in
8869    old_archive_cmds | \
8870    old_archive_from_new_cmds | \
8871    archive_cmds | \
8872    archive_expsym_cmds | \
8873    module_cmds | \
8874    module_expsym_cmds | \
8875    old_archive_from_expsyms_cmds | \
8876    export_symbols_cmds | \
8877    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8878    postinstall_cmds | postuninstall_cmds | \
8879    old_postinstall_cmds | old_postuninstall_cmds | \
8880    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8881      # Double-quote double-evaled strings.
8882      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8883      ;;
8884    *)
8885      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8886      ;;
8887    esac
8888  done
8889
8890  case $lt_echo in
8891  *'\$0 --fallback-echo"')
8892    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8893    ;;
8894  esac
8895
8896cfgfile="${ofile}T"
8897  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8898  $rm -f "$cfgfile"
8899  { echo "$as_me:$LINENO: creating $ofile" >&5
8900echo "$as_me: creating $ofile" >&6;}
8901
8902  cat <<__EOF__ >> "$cfgfile"
8903#! $SHELL
8904
8905# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8906# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8907# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8908#
8909# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8910# Free Software Foundation, Inc.
8911#
8912# This file is part of GNU Libtool:
8913# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8914#
8915# This program is free software; you can redistribute it and/or modify
8916# it under the terms of the GNU General Public License as published by
8917# the Free Software Foundation; either version 2 of the License, or
8918# (at your option) any later version.
8919#
8920# This program is distributed in the hope that it will be useful, but
8921# WITHOUT ANY WARRANTY; without even the implied warranty of
8922# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8923# General Public License for more details.
8924#
8925# You should have received a copy of the GNU General Public License
8926# along with this program; if not, write to the Free Software
8927# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8928#
8929# As a special exception to the GNU General Public License, if you
8930# distribute this file as part of a program that contains a
8931# configuration script generated by Autoconf, you may include it under
8932# the same distribution terms that you use for the rest of that program.
8933
8934# A sed program that does not truncate output.
8935SED=$lt_SED
8936
8937# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8938Xsed="$SED -e s/^X//"
8939
8940# The HP-UX ksh and POSIX shell print the target directory to stdout
8941# if CDPATH is set.
8942if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8943
8944# The names of the tagged configurations supported by this script.
8945available_tags=
8946
8947# ### BEGIN LIBTOOL CONFIG
8948
8949# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8950
8951# Shell to use when invoking shell scripts.
8952SHELL=$lt_SHELL
8953
8954# Whether or not to build shared libraries.
8955build_libtool_libs=$enable_shared
8956
8957# Whether or not to build static libraries.
8958build_old_libs=$enable_static
8959
8960# Whether or not to add -lc for building shared libraries.
8961build_libtool_need_lc=$archive_cmds_need_lc
8962
8963# Whether or not to disallow shared libs when runtime libs are static
8964allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8965
8966# Whether or not to optimize for fast installation.
8967fast_install=$enable_fast_install
8968
8969# The host system.
8970host_alias=$host_alias
8971host=$host
8972
8973# An echo program that does not interpret backslashes.
8974echo=$lt_echo
8975
8976# The archiver.
8977AR=$lt_AR
8978AR_FLAGS=$lt_AR_FLAGS
8979
8980# A C compiler.
8981LTCC=$lt_LTCC
8982
8983# A language-specific compiler.
8984CC=$lt_compiler
8985
8986# Is the compiler the GNU C compiler?
8987with_gcc=$GCC
8988
8989# An ERE matcher.
8990EGREP=$lt_EGREP
8991
8992# The linker used to build libraries.
8993LD=$lt_LD
8994
8995# Whether we need hard or soft links.
8996LN_S=$lt_LN_S
8997
8998# A BSD-compatible nm program.
8999NM=$lt_NM
9000
9001# A symbol stripping program
9002STRIP=$STRIP
9003
9004# Used to examine libraries when file_magic_cmd begins "file"
9005MAGIC_CMD=$MAGIC_CMD
9006
9007# Used on cygwin: DLL creation program.
9008DLLTOOL="$DLLTOOL"
9009
9010# Used on cygwin: object dumper.
9011OBJDUMP="$OBJDUMP"
9012
9013# Used on cygwin: assembler.
9014AS="$AS"
9015
9016# The name of the directory that contains temporary libtool files.
9017objdir=$objdir
9018
9019# How to create reloadable object files.
9020reload_flag=$lt_reload_flag
9021reload_cmds=$lt_reload_cmds
9022
9023# How to pass a linker flag through the compiler.
9024wl=$lt_lt_prog_compiler_wl
9025
9026# Object file suffix (normally "o").
9027objext="$ac_objext"
9028
9029# Old archive suffix (normally "a").
9030libext="$libext"
9031
9032# Shared library suffix (normally ".so").
9033shrext='$shrext'
9034
9035# Executable file suffix (normally "").
9036exeext="$exeext"
9037
9038# Additional compiler flags for building library objects.
9039pic_flag=$lt_lt_prog_compiler_pic
9040pic_mode=$pic_mode
9041
9042# What is the maximum length of a command?
9043max_cmd_len=$lt_cv_sys_max_cmd_len
9044
9045# Does compiler simultaneously support -c and -o options?
9046compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9047
9048# Must we lock files when doing compilation ?
9049need_locks=$lt_need_locks
9050
9051# Do we need the lib prefix for modules?
9052need_lib_prefix=$need_lib_prefix
9053
9054# Do we need a version for libraries?
9055need_version=$need_version
9056
9057# Whether dlopen is supported.
9058dlopen_support=$enable_dlopen
9059
9060# Whether dlopen of programs is supported.
9061dlopen_self=$enable_dlopen_self
9062
9063# Whether dlopen of statically linked programs is supported.
9064dlopen_self_static=$enable_dlopen_self_static
9065
9066# Compiler flag to prevent dynamic linking.
9067link_static_flag=$lt_lt_prog_compiler_static
9068
9069# Compiler flag to turn off builtin functions.
9070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9071
9072# Compiler flag to allow reflexive dlopens.
9073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9074
9075# Compiler flag to generate shared objects directly from archives.
9076whole_archive_flag_spec=$lt_whole_archive_flag_spec
9077
9078# Compiler flag to generate thread-safe objects.
9079thread_safe_flag_spec=$lt_thread_safe_flag_spec
9080
9081# Library versioning type.
9082version_type=$version_type
9083
9084# Format of library name prefix.
9085libname_spec=$lt_libname_spec
9086
9087# List of archive names.  First name is the real one, the rest are links.
9088# The last name is the one that the linker finds with -lNAME.
9089library_names_spec=$lt_library_names_spec
9090
9091# The coded name of the library, if different from the real name.
9092soname_spec=$lt_soname_spec
9093
9094# Commands used to build and install an old-style archive.
9095RANLIB=$lt_RANLIB
9096old_archive_cmds=$lt_old_archive_cmds
9097old_postinstall_cmds=$lt_old_postinstall_cmds
9098old_postuninstall_cmds=$lt_old_postuninstall_cmds
9099
9100# Create an old-style archive from a shared archive.
9101old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9102
9103# Create a temporary old-style archive to link instead of a shared archive.
9104old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9105
9106# Commands used to build and install a shared archive.
9107archive_cmds=$lt_archive_cmds
9108archive_expsym_cmds=$lt_archive_expsym_cmds
9109postinstall_cmds=$lt_postinstall_cmds
9110postuninstall_cmds=$lt_postuninstall_cmds
9111
9112# Commands used to build a loadable module (assumed same as above if empty)
9113module_cmds=$lt_module_cmds
9114module_expsym_cmds=$lt_module_expsym_cmds
9115
9116# Commands to strip libraries.
9117old_striplib=$lt_old_striplib
9118striplib=$lt_striplib
9119
9120# Dependencies to place before the objects being linked to create a
9121# shared library.
9122predep_objects=$lt_predep_objects
9123
9124# Dependencies to place after the objects being linked to create a
9125# shared library.
9126postdep_objects=$lt_postdep_objects
9127
9128# Dependencies to place before the objects being linked to create a
9129# shared library.
9130predeps=$lt_predeps
9131
9132# Dependencies to place after the objects being linked to create a
9133# shared library.
9134postdeps=$lt_postdeps
9135
9136# The library search path used internally by the compiler when linking
9137# a shared library.
9138compiler_lib_search_path=$lt_compiler_lib_search_path
9139
9140# Method to check whether dependent libraries are shared objects.
9141deplibs_check_method=$lt_deplibs_check_method
9142
9143# Command to use when deplibs_check_method == file_magic.
9144file_magic_cmd=$lt_file_magic_cmd
9145
9146# Flag that allows shared libraries with undefined symbols to be built.
9147allow_undefined_flag=$lt_allow_undefined_flag
9148
9149# Flag that forces no undefined symbols.
9150no_undefined_flag=$lt_no_undefined_flag
9151
9152# Commands used to finish a libtool library installation in a directory.
9153finish_cmds=$lt_finish_cmds
9154
9155# Same as above, but a single script fragment to be evaled but not shown.
9156finish_eval=$lt_finish_eval
9157
9158# Take the output of nm and produce a listing of raw symbols and C names.
9159global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9160
9161# Transform the output of nm in a proper C declaration
9162global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9163
9164# Transform the output of nm in a C name address pair
9165global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9166
9167# This is the shared library runtime path variable.
9168runpath_var=$runpath_var
9169
9170# This is the shared library path variable.
9171shlibpath_var=$shlibpath_var
9172
9173# Is shlibpath searched before the hard-coded library search path?
9174shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9175
9176# How to hardcode a shared library path into an executable.
9177hardcode_action=$hardcode_action
9178
9179# Whether we should hardcode library paths into libraries.
9180hardcode_into_libs=$hardcode_into_libs
9181
9182# Flag to hardcode \$libdir into a binary during linking.
9183# This must work even if \$libdir does not exist.
9184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9185
9186# If ld is used when linking, flag to hardcode \$libdir into
9187# a binary during linking. This must work even if \$libdir does
9188# not exist.
9189hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9190
9191# Whether we need a single -rpath flag with a separated argument.
9192hardcode_libdir_separator=$lt_hardcode_libdir_separator
9193
9194# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9195# resulting binary.
9196hardcode_direct=$hardcode_direct
9197
9198# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9199# resulting binary.
9200hardcode_minus_L=$hardcode_minus_L
9201
9202# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9203# the resulting binary.
9204hardcode_shlibpath_var=$hardcode_shlibpath_var
9205
9206# Set to yes if building a shared library automatically hardcodes DIR into the library
9207# and all subsequent libraries and executables linked against it.
9208hardcode_automatic=$hardcode_automatic
9209
9210# Variables whose values should be saved in libtool wrapper scripts and
9211# restored at relink time.
9212variables_saved_for_relink="$variables_saved_for_relink"
9213
9214# Whether libtool must link a program against all its dependency libraries.
9215link_all_deplibs=$link_all_deplibs
9216
9217# Compile-time system search path for libraries
9218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9219
9220# Run-time system search path for libraries
9221sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9222
9223# Fix the shell variable \$srcfile for the compiler.
9224fix_srcfile_path="$fix_srcfile_path"
9225
9226# Set to yes if exported symbols are required.
9227always_export_symbols=$always_export_symbols
9228
9229# The commands to list exported symbols.
9230export_symbols_cmds=$lt_export_symbols_cmds
9231
9232# The commands to extract the exported symbol list from a shared archive.
9233extract_expsyms_cmds=$lt_extract_expsyms_cmds
9234
9235# Symbols that should not be listed in the preloaded symbols.
9236exclude_expsyms=$lt_exclude_expsyms
9237
9238# Symbols that must always be exported.
9239include_expsyms=$lt_include_expsyms
9240
9241# ### END LIBTOOL CONFIG
9242
9243__EOF__
9244
9245
9246  case $host_os in
9247  aix3*)
9248    cat <<\EOF >> "$cfgfile"
9249
9250# AIX sometimes has problems with the GCC collect2 program.  For some
9251# reason, if we set the COLLECT_NAMES environment variable, the problems
9252# vanish in a puff of smoke.
9253if test "X${COLLECT_NAMES+set}" != Xset; then
9254  COLLECT_NAMES=
9255  export COLLECT_NAMES
9256fi
9257EOF
9258    ;;
9259  esac
9260
9261  # We use sed instead of cat because bash on DJGPP gets confused if
9262  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9263  # text mode, it properly converts lines to CR/LF.  This bash problem
9264  # is reportedly fixed, but why not run on old versions too?
9265  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9266
9267  mv -f "$cfgfile" "$ofile" || \
9268    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9269  chmod +x "$ofile"
9270
9271else
9272  # If there is no Makefile yet, we rely on a make rule to execute
9273  # `config.status --recheck' to rerun these tests and create the
9274  # libtool script then.
9275  test -f Makefile && make "$ltmain"
9276fi
9277
9278
9279ac_ext=c
9280ac_cpp='$CPP $CPPFLAGS'
9281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283ac_compiler_gnu=$ac_cv_c_compiler_gnu
9284
9285CC="$lt_save_CC"
9286
9287
9288# Check whether --with-tags or --without-tags was given.
9289if test "${with_tags+set}" = set; then
9290  withval="$with_tags"
9291  tagnames="$withval"
9292fi;
9293
9294if test -f "$ltmain" && test -n "$tagnames"; then
9295  if test ! -f "${ofile}"; then
9296    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9297echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9298  fi
9299
9300  if test -z "$LTCC"; then
9301    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9302    if test -z "$LTCC"; then
9303      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9304echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9305    else
9306      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9307echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9308    fi
9309  fi
9310
9311  # Extract list of available tagged configurations in $ofile.
9312  # Note that this assumes the entire list is on one line.
9313  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9314
9315  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9316  for tagname in $tagnames; do
9317    IFS="$lt_save_ifs"
9318    # Check whether tagname contains only valid characters
9319    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9320    "") ;;
9321    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9322echo "$as_me: error: invalid tag name: $tagname" >&2;}
9323   { (exit 1); exit 1; }; }
9324	;;
9325    esac
9326
9327    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9328    then
9329      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9330echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9331   { (exit 1); exit 1; }; }
9332    fi
9333
9334    # Update the list of available tags.
9335    if test -n "$tagname"; then
9336      echo appending configuration tag \"$tagname\" to $ofile
9337
9338      case $tagname in
9339      CXX)
9340	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9341	  ac_ext=cc
9342ac_cpp='$CXXCPP $CPPFLAGS'
9343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9346
9347
9348
9349
9350archive_cmds_need_lc_CXX=no
9351allow_undefined_flag_CXX=
9352always_export_symbols_CXX=no
9353archive_expsym_cmds_CXX=
9354export_dynamic_flag_spec_CXX=
9355hardcode_direct_CXX=no
9356hardcode_libdir_flag_spec_CXX=
9357hardcode_libdir_flag_spec_ld_CXX=
9358hardcode_libdir_separator_CXX=
9359hardcode_minus_L_CXX=no
9360hardcode_automatic_CXX=no
9361module_cmds_CXX=
9362module_expsym_cmds_CXX=
9363link_all_deplibs_CXX=unknown
9364old_archive_cmds_CXX=$old_archive_cmds
9365no_undefined_flag_CXX=
9366whole_archive_flag_spec_CXX=
9367enable_shared_with_static_runtimes_CXX=no
9368
9369# Dependencies to place before and after the object being linked:
9370predep_objects_CXX=
9371postdep_objects_CXX=
9372predeps_CXX=
9373postdeps_CXX=
9374compiler_lib_search_path_CXX=
9375
9376# Source file extension for C++ test sources.
9377ac_ext=cc
9378
9379# Object file extension for compiled C++ test sources.
9380objext=o
9381objext_CXX=$objext
9382
9383# Code to be used in simple compile tests
9384lt_simple_compile_test_code="int some_variable = 0;\n"
9385
9386# Code to be used in simple link tests
9387lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9388
9389# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9390
9391# If no C compiler was specified, use CC.
9392LTCC=${LTCC-"$CC"}
9393
9394# Allow CC to be a program name with arguments.
9395compiler=$CC
9396
9397
9398# Allow CC to be a program name with arguments.
9399lt_save_CC=$CC
9400lt_save_LD=$LD
9401lt_save_GCC=$GCC
9402GCC=$GXX
9403lt_save_with_gnu_ld=$with_gnu_ld
9404lt_save_path_LD=$lt_cv_path_LD
9405if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9406  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9407else
9408  unset lt_cv_prog_gnu_ld
9409fi
9410if test -n "${lt_cv_path_LDCXX+set}"; then
9411  lt_cv_path_LD=$lt_cv_path_LDCXX
9412else
9413  unset lt_cv_path_LD
9414fi
9415test -z "${LDCXX+set}" || LD=$LDCXX
9416CC=${CXX-"c++"}
9417compiler=$CC
9418compiler_CXX=$CC
9419cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9420
9421# We don't want -fno-exception wen compiling C++ code, so set the
9422# no_builtin_flag separately
9423if test "$GXX" = yes; then
9424  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9425else
9426  lt_prog_compiler_no_builtin_flag_CXX=
9427fi
9428
9429if test "$GXX" = yes; then
9430  # Set up default GNU C++ configuration
9431
9432
9433# Check whether --with-gnu-ld or --without-gnu-ld was given.
9434if test "${with_gnu_ld+set}" = set; then
9435  withval="$with_gnu_ld"
9436  test "$withval" = no || with_gnu_ld=yes
9437else
9438  with_gnu_ld=no
9439fi;
9440ac_prog=ld
9441if test "$GCC" = yes; then
9442  # Check if gcc -print-prog-name=ld gives a path.
9443  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9444echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9445  case $host in
9446  *-*-mingw*)
9447    # gcc leaves a trailing carriage return which upsets mingw
9448    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9449  *)
9450    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9451  esac
9452  case $ac_prog in
9453    # Accept absolute paths.
9454    [\\/]* | ?:[\\/]*)
9455      re_direlt='/[^/][^/]*/\.\./'
9456      # Canonicalize the path of ld
9457      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9458      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9459	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9460      done
9461      test -z "$LD" && LD="$ac_prog"
9462      ;;
9463  "")
9464    # If it fails, then pretend we aren't using GCC.
9465    ac_prog=ld
9466    ;;
9467  *)
9468    # If it is relative, then search for the first ld in PATH.
9469    with_gnu_ld=unknown
9470    ;;
9471  esac
9472elif test "$with_gnu_ld" = yes; then
9473  echo "$as_me:$LINENO: checking for GNU ld" >&5
9474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9475else
9476  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9478fi
9479if test "${lt_cv_path_LD+set}" = set; then
9480  echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482  if test -z "$LD"; then
9483  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9484  for ac_dir in $PATH; do
9485    IFS="$lt_save_ifs"
9486    test -z "$ac_dir" && ac_dir=.
9487    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9488      lt_cv_path_LD="$ac_dir/$ac_prog"
9489      # Check to see if the program is GNU ld.  I'd rather use --version,
9490      # but apparently some GNU ld's only accept -v.
9491      # Break only if it was the GNU/non-GNU ld that we prefer.
9492      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9493      *GNU* | *'with BFD'*)
9494	test "$with_gnu_ld" != no && break
9495	;;
9496      *)
9497	test "$with_gnu_ld" != yes && break
9498	;;
9499      esac
9500    fi
9501  done
9502  IFS="$lt_save_ifs"
9503else
9504  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9505fi
9506fi
9507
9508LD="$lt_cv_path_LD"
9509if test -n "$LD"; then
9510  echo "$as_me:$LINENO: result: $LD" >&5
9511echo "${ECHO_T}$LD" >&6
9512else
9513  echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515fi
9516test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9517echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9518   { (exit 1); exit 1; }; }
9519echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9520echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9521if test "${lt_cv_prog_gnu_ld+set}" = set; then
9522  echo $ECHO_N "(cached) $ECHO_C" >&6
9523else
9524  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9525case `"$LD" -v 2>&1 </dev/null` in
9526*GNU* | *'with BFD'*)
9527  lt_cv_prog_gnu_ld=yes
9528  ;;
9529*)
9530  lt_cv_prog_gnu_ld=no
9531  ;;
9532esac
9533fi
9534echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9535echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9536with_gnu_ld=$lt_cv_prog_gnu_ld
9537
9538
9539
9540  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9541  # archiving commands below assume that GNU ld is being used.
9542  if test "$with_gnu_ld" = yes; then
9543    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544    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'
9545
9546    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9547    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9548
9549    # If archive_cmds runs LD, not CC, wlarc should be empty
9550    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9551    #     investigate it a little bit more. (MM)
9552    wlarc='${wl}'
9553
9554    # ancient GNU ld didn't support --whole-archive et. al.
9555    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9556	grep 'no-whole-archive' > /dev/null; then
9557      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9558    else
9559      whole_archive_flag_spec_CXX=
9560    fi
9561  else
9562    with_gnu_ld=no
9563    wlarc=
9564
9565    # A generic and very simple default shared library creation
9566    # command for GNU C++ for the case where it uses the native
9567    # linker, instead of GNU ld.  If possible, this setting should
9568    # overridden to take advantage of the native linker features on
9569    # the platform it is being used on.
9570    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9571  fi
9572
9573  # Commands to make compiler produce verbose output that lists
9574  # what "hidden" libraries, object files and flags are used when
9575  # linking a shared library.
9576  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9577
9578else
9579  GXX=no
9580  with_gnu_ld=no
9581  wlarc=
9582fi
9583
9584# PORTME: fill in a description of your system's C++ link characteristics
9585echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9586echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9587ld_shlibs_CXX=yes
9588case $host_os in
9589  aix3*)
9590    # FIXME: insert proper C++ library support
9591    ld_shlibs_CXX=no
9592    ;;
9593  aix4* | aix5*)
9594    if test "$host_cpu" = ia64; then
9595      # On IA64, the linker does run time linking by default, so we don't
9596      # have to do anything special.
9597      aix_use_runtimelinking=no
9598      exp_sym_flag='-Bexport'
9599      no_entry_flag=""
9600    else
9601      aix_use_runtimelinking=no
9602
9603      # Test if we are trying to use run time linking or normal
9604      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9605      # need to do runtime linking.
9606      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9607	for ld_flag in $LDFLAGS; do
9608	  case $ld_flag in
9609	  *-brtl*)
9610	    aix_use_runtimelinking=yes
9611	    break
9612	    ;;
9613	  esac
9614	done
9615      esac
9616
9617      exp_sym_flag='-bexport'
9618      no_entry_flag='-bnoentry'
9619    fi
9620
9621    # When large executables or shared objects are built, AIX ld can
9622    # have problems creating the table of contents.  If linking a library
9623    # or program results in "error TOC overflow" add -mminimal-toc to
9624    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9625    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9626
9627    archive_cmds_CXX=''
9628    hardcode_direct_CXX=yes
9629    hardcode_libdir_separator_CXX=':'
9630    link_all_deplibs_CXX=yes
9631
9632    if test "$GXX" = yes; then
9633      case $host_os in aix4.012|aix4.012.*)
9634      # We only want to do this on AIX 4.2 and lower, the check
9635      # below for broken collect2 doesn't work under 4.3+
9636	collect2name=`${CC} -print-prog-name=collect2`
9637	if test -f "$collect2name" && \
9638	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9639	then
9640	  # We have reworked collect2
9641	  hardcode_direct_CXX=yes
9642	else
9643	  # We have old collect2
9644	  hardcode_direct_CXX=unsupported
9645	  # It fails to find uninstalled libraries when the uninstalled
9646	  # path is not listed in the libpath.  Setting hardcode_minus_L
9647	  # to unsupported forces relinking
9648	  hardcode_minus_L_CXX=yes
9649	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9650	  hardcode_libdir_separator_CXX=
9651	fi
9652      esac
9653      shared_flag='-shared'
9654    else
9655      # not using gcc
9656      if test "$host_cpu" = ia64; then
9657	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9658	# chokes on -Wl,-G. The following line is correct:
9659	shared_flag='-G'
9660      else
9661	if test "$aix_use_runtimelinking" = yes; then
9662	  shared_flag='${wl}-G'
9663	else
9664	  shared_flag='${wl}-bM:SRE'
9665	fi
9666      fi
9667    fi
9668
9669    # It seems that -bexpall does not export symbols beginning with
9670    # underscore (_), so it is better to generate a list of symbols to export.
9671    always_export_symbols_CXX=yes
9672    if test "$aix_use_runtimelinking" = yes; then
9673      # Warning - without using the other runtime loading flags (-brtl),
9674      # -berok will link without error, but may produce a broken library.
9675      allow_undefined_flag_CXX='-berok'
9676      # Determine the default libpath from the value encoded in an empty executable.
9677      cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h.  */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h.  */
9683
9684int
9685main ()
9686{
9687
9688  ;
9689  return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694  (eval $ac_link) 2>conftest.er1
9695  ac_status=$?
9696  grep -v '^ *+' conftest.er1 >conftest.err
9697  rm -f conftest.er1
9698  cat conftest.err >&5
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); } &&
9701	 { ac_try='test -z "$ac_cxx_werror_flag"
9702			 || test ! -s conftest.err'
9703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704  (eval $ac_try) 2>&5
9705  ac_status=$?
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); }; } &&
9708	 { ac_try='test -s conftest$ac_exeext'
9709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710  (eval $ac_try) 2>&5
9711  ac_status=$?
9712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); }; }; then
9714
9715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9716}'`
9717# Check for a 64-bit object if we didn't find anything.
9718if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9719}'`; fi
9720else
9721  echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724fi
9725rm -f conftest.err conftest.$ac_objext \
9726      conftest$ac_exeext conftest.$ac_ext
9727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9730
9731      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9732     else
9733      if test "$host_cpu" = ia64; then
9734	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9735	allow_undefined_flag_CXX="-z nodefs"
9736	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9737      else
9738	# Determine the default libpath from the value encoded in an empty executable.
9739	cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h.  */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h.  */
9745
9746int
9747main ()
9748{
9749
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext conftest$ac_exeext
9755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756  (eval $ac_link) 2>conftest.er1
9757  ac_status=$?
9758  grep -v '^ *+' conftest.er1 >conftest.err
9759  rm -f conftest.er1
9760  cat conftest.err >&5
9761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); } &&
9763	 { ac_try='test -z "$ac_cxx_werror_flag"
9764			 || test ! -s conftest.err'
9765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766  (eval $ac_try) 2>&5
9767  ac_status=$?
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); }; } &&
9770	 { ac_try='test -s conftest$ac_exeext'
9771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772  (eval $ac_try) 2>&5
9773  ac_status=$?
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); }; }; then
9776
9777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9778}'`
9779# Check for a 64-bit object if we didn't find anything.
9780if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9781}'`; fi
9782else
9783  echo "$as_me: failed program was:" >&5
9784sed 's/^/| /' conftest.$ac_ext >&5
9785
9786fi
9787rm -f conftest.err conftest.$ac_objext \
9788      conftest$ac_exeext conftest.$ac_ext
9789if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9790
9791	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9792	# Warning - without using the other run time loading flags,
9793	# -berok will link without error, but may produce a broken library.
9794	no_undefined_flag_CXX=' ${wl}-bernotok'
9795	allow_undefined_flag_CXX=' ${wl}-berok'
9796	# -bexpall does not export symbols beginning with underscore (_)
9797	always_export_symbols_CXX=yes
9798	# Exported symbols can be pulled into shared objects from archives
9799	whole_archive_flag_spec_CXX=' '
9800	archive_cmds_need_lc_CXX=yes
9801	# This is similar to how AIX traditionally builds it's shared libraries.
9802	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9803      fi
9804    fi
9805    ;;
9806  chorus*)
9807    case $cc_basename in
9808      *)
9809	# FIXME: insert proper C++ library support
9810	ld_shlibs_CXX=no
9811	;;
9812    esac
9813    ;;
9814
9815  cygwin* | mingw* | pw32*)
9816    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9817    # as there is no search path for DLLs.
9818    hardcode_libdir_flag_spec_CXX='-L$libdir'
9819    allow_undefined_flag_CXX=unsupported
9820    always_export_symbols_CXX=no
9821    enable_shared_with_static_runtimes_CXX=yes
9822
9823    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9824      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9825      # If the export-symbols file already is a .def file (1st line
9826      # is EXPORTS), use it as is; otherwise, prepend...
9827      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9828	cp $export_symbols $output_objdir/$soname.def;
9829      else
9830	echo EXPORTS > $output_objdir/$soname.def;
9831	cat $export_symbols >> $output_objdir/$soname.def;
9832      fi~
9833      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9834    else
9835      ld_shlibs_CXX=no
9836    fi
9837  ;;
9838
9839  darwin* | rhapsody*)
9840   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9841    archive_cmds_need_lc_CXX=no
9842    case "$host_os" in
9843    rhapsody* | darwin1.[012])
9844      allow_undefined_flag_CXX='-undefined suppress'
9845      ;;
9846    *) # Darwin 1.3 on
9847      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9848      ;;
9849    esac
9850    	lt_int_apple_cc_single_mod=no
9851    	output_verbose_link_cmd='echo'
9852    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9853    	  lt_int_apple_cc_single_mod=yes
9854    	fi
9855    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9856    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9857    	else
9858        archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9859      fi
9860      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9861
9862    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9863      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9864        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9865      else
9866        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9867      fi
9868        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9869    hardcode_direct_CXX=no
9870    hardcode_automatic_CXX=yes
9871    hardcode_shlibpath_var_CXX=unsupported
9872    whole_archive_flag_spec_CXX='-all_load $convenience'
9873    link_all_deplibs_CXX=yes
9874   fi
9875    ;;
9876
9877  dgux*)
9878    case $cc_basename in
9879      ec++)
9880	# FIXME: insert proper C++ library support
9881	ld_shlibs_CXX=no
9882	;;
9883      ghcx)
9884	# Green Hills C++ Compiler
9885	# FIXME: insert proper C++ library support
9886	ld_shlibs_CXX=no
9887	;;
9888      *)
9889	# FIXME: insert proper C++ library support
9890	ld_shlibs_CXX=no
9891	;;
9892    esac
9893    ;;
9894  freebsd12*)
9895    # C++ shared libraries reported to be fairly broken before switch to ELF
9896    ld_shlibs_CXX=no
9897    ;;
9898  freebsd-elf*)
9899    archive_cmds_need_lc_CXX=no
9900    ;;
9901  freebsd*)
9902    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9903    # conventions
9904    ld_shlibs_CXX=yes
9905    ;;
9906  gnu*)
9907    ;;
9908  hpux9*)
9909    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9910    hardcode_libdir_separator_CXX=:
9911    export_dynamic_flag_spec_CXX='${wl}-E'
9912    hardcode_direct_CXX=yes
9913    hardcode_minus_L_CXX=yes # Not in the search PATH,
9914				# but as the default
9915				# location of the library.
9916
9917    case $cc_basename in
9918    CC)
9919      # FIXME: insert proper C++ library support
9920      ld_shlibs_CXX=no
9921      ;;
9922    aCC)
9923      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'
9924      # Commands to make compiler produce verbose output that lists
9925      # what "hidden" libraries, object files and flags are used when
9926      # linking a shared library.
9927      #
9928      # There doesn't appear to be a way to prevent this compiler from
9929      # explicitly linking system object files so we need to strip them
9930      # from the output so that they don't get included in the library
9931      # dependencies.
9932      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9933      ;;
9934    *)
9935      if test "$GXX" = yes; then
9936        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'
9937      else
9938        # FIXME: insert proper C++ library support
9939        ld_shlibs_CXX=no
9940      fi
9941      ;;
9942    esac
9943    ;;
9944  hpux10*|hpux11*)
9945    if test $with_gnu_ld = no; then
9946      case "$host_cpu" in
9947      hppa*64*)
9948	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9949	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9950	hardcode_libdir_separator_CXX=:
9951        ;;
9952      ia64*)
9953	hardcode_libdir_flag_spec_CXX='-L$libdir'
9954        ;;
9955      *)
9956	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9957	hardcode_libdir_separator_CXX=:
9958	export_dynamic_flag_spec_CXX='${wl}-E'
9959        ;;
9960      esac
9961    fi
9962    case "$host_cpu" in
9963    hppa*64*)
9964      hardcode_direct_CXX=no
9965      hardcode_shlibpath_var_CXX=no
9966      ;;
9967    ia64*)
9968      hardcode_direct_CXX=no
9969      hardcode_shlibpath_var_CXX=no
9970      hardcode_minus_L_CXX=yes # Not in the search PATH,
9971					      # but as the default
9972					      # location of the library.
9973      ;;
9974    *)
9975      hardcode_direct_CXX=yes
9976      hardcode_minus_L_CXX=yes # Not in the search PATH,
9977					      # but as the default
9978					      # location of the library.
9979      ;;
9980    esac
9981
9982    case $cc_basename in
9983      CC)
9984	# FIXME: insert proper C++ library support
9985	ld_shlibs_CXX=no
9986	;;
9987      aCC)
9988	case "$host_cpu" in
9989	hppa*64*|ia64*)
9990	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9991	  ;;
9992	*)
9993	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9994	  ;;
9995	esac
9996	# Commands to make compiler produce verbose output that lists
9997	# what "hidden" libraries, object files and flags are used when
9998	# linking a shared library.
9999	#
10000	# There doesn't appear to be a way to prevent this compiler from
10001	# explicitly linking system object files so we need to strip them
10002	# from the output so that they don't get included in the library
10003	# dependencies.
10004	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'
10005	;;
10006      *)
10007	if test "$GXX" = yes; then
10008	  if test $with_gnu_ld = no; then
10009	    case "$host_cpu" in
10010	    ia64*|hppa*64*)
10011	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10012	      ;;
10013	    *)
10014	      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'
10015	      ;;
10016	    esac
10017	  fi
10018	else
10019	  # FIXME: insert proper C++ library support
10020	  ld_shlibs_CXX=no
10021	fi
10022	;;
10023    esac
10024    ;;
10025  irix5* | irix6*)
10026    case $cc_basename in
10027      CC)
10028	# SGI C++
10029	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 ${objdir}/so_locations -o $lib'
10030
10031	# Archives containing C++ object files must be created using
10032	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10033	# necessary to make sure instantiated templates are included
10034	# in the archive.
10035	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10036	;;
10037      *)
10038	if test "$GXX" = yes; then
10039	  if test "$with_gnu_ld" = no; then
10040	    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}${objdir}/so_locations -o $lib'
10041	  else
10042	    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'
10043	  fi
10044	fi
10045	link_all_deplibs_CXX=yes
10046	;;
10047    esac
10048    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10049    hardcode_libdir_separator_CXX=:
10050    ;;
10051  linux*)
10052    case $cc_basename in
10053      KCC)
10054	# Kuck and Associates, Inc. (KAI) C++ Compiler
10055
10056	# KCC will only create a shared library if the output file
10057	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10058	# to its proper name (with version) after linking.
10059	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'
10060	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'
10061	# Commands to make compiler produce verbose output that lists
10062	# what "hidden" libraries, object files and flags are used when
10063	# linking a shared library.
10064	#
10065	# There doesn't appear to be a way to prevent this compiler from
10066	# explicitly linking system object files so we need to strip them
10067	# from the output so that they don't get included in the library
10068	# dependencies.
10069	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'
10070
10071	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10072	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10073
10074	# Archives containing C++ object files must be created using
10075	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10076	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10077	;;
10078      icpc)
10079	# Intel C++
10080	with_gnu_ld=yes
10081	archive_cmds_need_lc_CXX=no
10082	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10083	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'
10084	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10085	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10086	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10087	;;
10088      cxx)
10089	# Compaq C++
10090	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091	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'
10092
10093	runpath_var=LD_RUN_PATH
10094	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10095	hardcode_libdir_separator_CXX=:
10096
10097	# Commands to make compiler produce verbose output that lists
10098	# what "hidden" libraries, object files and flags are used when
10099	# linking a shared library.
10100	#
10101	# There doesn't appear to be a way to prevent this compiler from
10102	# explicitly linking system object files so we need to strip them
10103	# from the output so that they don't get included in the library
10104	# dependencies.
10105	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'
10106	;;
10107    esac
10108    ;;
10109  lynxos*)
10110    # FIXME: insert proper C++ library support
10111    ld_shlibs_CXX=no
10112    ;;
10113  m88k*)
10114    # FIXME: insert proper C++ library support
10115    ld_shlibs_CXX=no
10116    ;;
10117  mvs*)
10118    case $cc_basename in
10119      cxx)
10120	# FIXME: insert proper C++ library support
10121	ld_shlibs_CXX=no
10122	;;
10123      *)
10124	# FIXME: insert proper C++ library support
10125	ld_shlibs_CXX=no
10126	;;
10127    esac
10128    ;;
10129  netbsd*)
10130    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10131      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10132      wlarc=
10133      hardcode_libdir_flag_spec_CXX='-R$libdir'
10134      hardcode_direct_CXX=yes
10135      hardcode_shlibpath_var_CXX=no
10136    fi
10137    # Workaround some broken pre-1.5 toolchains
10138    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10139    ;;
10140  osf3*)
10141    case $cc_basename in
10142      KCC)
10143	# Kuck and Associates, Inc. (KAI) C++ Compiler
10144
10145	# KCC will only create a shared library if the output file
10146	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10147	# to its proper name (with version) after linking.
10148	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'
10149
10150	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10151	hardcode_libdir_separator_CXX=:
10152
10153	# Archives containing C++ object files must be created using
10154	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10155	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10156
10157	;;
10158      RCC)
10159	# Rational C++ 2.4.1
10160	# FIXME: insert proper C++ library support
10161	ld_shlibs_CXX=no
10162	;;
10163      cxx)
10164	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10165	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 ${objdir}/so_locations -o $lib'
10166
10167	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10168	hardcode_libdir_separator_CXX=:
10169
10170	# Commands to make compiler produce verbose output that lists
10171	# what "hidden" libraries, object files and flags are used when
10172	# linking a shared library.
10173	#
10174	# There doesn't appear to be a way to prevent this compiler from
10175	# explicitly linking system object files so we need to strip them
10176	# from the output so that they don't get included in the library
10177	# dependencies.
10178	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'
10179	;;
10180      *)
10181	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10182	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10183	  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}${objdir}/so_locations -o $lib'
10184
10185	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10186	  hardcode_libdir_separator_CXX=:
10187
10188	  # Commands to make compiler produce verbose output that lists
10189	  # what "hidden" libraries, object files and flags are used when
10190	  # linking a shared library.
10191	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10192
10193	else
10194	  # FIXME: insert proper C++ library support
10195	  ld_shlibs_CXX=no
10196	fi
10197	;;
10198    esac
10199    ;;
10200  osf4* | osf5*)
10201    case $cc_basename in
10202      KCC)
10203	# Kuck and Associates, Inc. (KAI) C++ Compiler
10204
10205	# KCC will only create a shared library if the output file
10206	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10207	# to its proper name (with version) after linking.
10208	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'
10209
10210	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10211	hardcode_libdir_separator_CXX=:
10212
10213	# Archives containing C++ object files must be created using
10214	# the KAI C++ compiler.
10215	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10216	;;
10217      RCC)
10218	# Rational C++ 2.4.1
10219	# FIXME: insert proper C++ library support
10220	ld_shlibs_CXX=no
10221	;;
10222      cxx)
10223	allow_undefined_flag_CXX=' -expect_unresolved \*'
10224	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 ${objdir}/so_locations -o $lib'
10225	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10226	  echo "-hidden">> $lib.exp~
10227	  $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 $objdir/so_locations -o $lib~
10228	  $rm $lib.exp'
10229
10230	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10231	hardcode_libdir_separator_CXX=:
10232
10233	# Commands to make compiler produce verbose output that lists
10234	# what "hidden" libraries, object files and flags are used when
10235	# linking a shared library.
10236	#
10237	# There doesn't appear to be a way to prevent this compiler from
10238	# explicitly linking system object files so we need to strip them
10239	# from the output so that they don't get included in the library
10240	# dependencies.
10241	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'
10242	;;
10243      *)
10244	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10245	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10246	 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}${objdir}/so_locations -o $lib'
10247
10248	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10249	  hardcode_libdir_separator_CXX=:
10250
10251	  # Commands to make compiler produce verbose output that lists
10252	  # what "hidden" libraries, object files and flags are used when
10253	  # linking a shared library.
10254	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10255
10256	else
10257	  # FIXME: insert proper C++ library support
10258	  ld_shlibs_CXX=no
10259	fi
10260	;;
10261    esac
10262    ;;
10263  psos*)
10264    # FIXME: insert proper C++ library support
10265    ld_shlibs_CXX=no
10266    ;;
10267  sco*)
10268    archive_cmds_need_lc_CXX=no
10269    case $cc_basename in
10270      CC)
10271	# FIXME: insert proper C++ library support
10272	ld_shlibs_CXX=no
10273	;;
10274      *)
10275	# FIXME: insert proper C++ library support
10276	ld_shlibs_CXX=no
10277	;;
10278    esac
10279    ;;
10280  sunos4*)
10281    case $cc_basename in
10282      CC)
10283	# Sun C++ 4.x
10284	# FIXME: insert proper C++ library support
10285	ld_shlibs_CXX=no
10286	;;
10287      lcc)
10288	# Lucid
10289	# FIXME: insert proper C++ library support
10290	ld_shlibs_CXX=no
10291	;;
10292      *)
10293	# FIXME: insert proper C++ library support
10294	ld_shlibs_CXX=no
10295	;;
10296    esac
10297    ;;
10298  solaris*)
10299    case $cc_basename in
10300      CC)
10301	# Sun C++ 4.2, 5.x and Centerline C++
10302	no_undefined_flag_CXX=' -zdefs'
10303	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10304	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10305	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10306
10307	hardcode_libdir_flag_spec_CXX='-R$libdir'
10308	hardcode_shlibpath_var_CXX=no
10309	case $host_os in
10310	  solaris2.0-5 | solaris2.0-5.*) ;;
10311	  *)
10312	    # The C++ compiler is used as linker so we must use $wl
10313	    # flag to pass the commands to the underlying system
10314	    # linker.
10315	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10316	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10317	    ;;
10318	esac
10319	link_all_deplibs_CXX=yes
10320
10321	# Commands to make compiler produce verbose output that lists
10322	# what "hidden" libraries, object files and flags are used when
10323	# linking a shared library.
10324	#
10325	# There doesn't appear to be a way to prevent this compiler from
10326	# explicitly linking system object files so we need to strip them
10327	# from the output so that they don't get included in the library
10328	# dependencies.
10329	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10330
10331	# Archives containing C++ object files must be created using
10332	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10333	# necessary to make sure instantiated templates are included
10334	# in the archive.
10335	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10336	;;
10337      gcx)
10338	# Green Hills C++ Compiler
10339	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10340
10341	# The C++ compiler must be used to create the archive.
10342	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10343	;;
10344      *)
10345	# GNU C++ compiler with Solaris linker
10346	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10347	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10348	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10349	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10350	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10351		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10352
10353	    # Commands to make compiler produce verbose output that lists
10354	    # what "hidden" libraries, object files and flags are used when
10355	    # linking a shared library.
10356	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10357	  else
10358	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10359	    # platform.
10360	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10361	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10362		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10363
10364	    # Commands to make compiler produce verbose output that lists
10365	    # what "hidden" libraries, object files and flags are used when
10366	    # linking a shared library.
10367	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10368	  fi
10369
10370	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10371	fi
10372	;;
10373    esac
10374    ;;
10375  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10376    archive_cmds_need_lc_CXX=no
10377    ;;
10378  tandem*)
10379    case $cc_basename in
10380      NCC)
10381	# NonStop-UX NCC 3.20
10382	# FIXME: insert proper C++ library support
10383	ld_shlibs_CXX=no
10384	;;
10385      *)
10386	# FIXME: insert proper C++ library support
10387	ld_shlibs_CXX=no
10388	;;
10389    esac
10390    ;;
10391  vxworks*)
10392    # FIXME: insert proper C++ library support
10393    ld_shlibs_CXX=no
10394    ;;
10395  *)
10396    # FIXME: insert proper C++ library support
10397    ld_shlibs_CXX=no
10398    ;;
10399esac
10400echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10401echo "${ECHO_T}$ld_shlibs_CXX" >&6
10402test "$ld_shlibs_CXX" = no && can_build_shared=no
10403
10404GCC_CXX="$GXX"
10405LD_CXX="$LD"
10406
10407## CAVEAT EMPTOR:
10408## There is no encapsulation within the following macros, do not change
10409## the running order or otherwise move them around unless you know exactly
10410## what you are doing...
10411
10412cat > conftest.$ac_ext <<EOF
10413class Foo
10414{
10415public:
10416  Foo (void) { a = 0; }
10417private:
10418  int a;
10419};
10420EOF
10421
10422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423  (eval $ac_compile) 2>&5
10424  ac_status=$?
10425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426  (exit $ac_status); }; then
10427  # Parse the compiler output and extract the necessary
10428  # objects, libraries and library flags.
10429
10430  # Sentinel used to keep track of whether or not we are before
10431  # the conftest object file.
10432  pre_test_object_deps_done=no
10433
10434  # The `*' in the case matches for architectures that use `case' in
10435  # $output_verbose_cmd can trigger glob expansion during the loop
10436  # eval without this substitution.
10437  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10438
10439  for p in `eval $output_verbose_link_cmd`; do
10440    case $p in
10441
10442    -L* | -R* | -l*)
10443       # Some compilers place space between "-{L,R}" and the path.
10444       # Remove the space.
10445       if test $p = "-L" \
10446	  || test $p = "-R"; then
10447	 prev=$p
10448	 continue
10449       else
10450	 prev=
10451       fi
10452
10453       if test "$pre_test_object_deps_done" = no; then
10454	 case $p in
10455	 -L* | -R*)
10456	   # Internal compiler library paths should come after those
10457	   # provided the user.  The postdeps already come after the
10458	   # user supplied libs so there is no need to process them.
10459	   if test -z "$compiler_lib_search_path_CXX"; then
10460	     compiler_lib_search_path_CXX="${prev}${p}"
10461	   else
10462	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10463	   fi
10464	   ;;
10465	 # The "-l" case would never come before the object being
10466	 # linked, so don't bother handling this case.
10467	 esac
10468       else
10469	 if test -z "$postdeps_CXX"; then
10470	   postdeps_CXX="${prev}${p}"
10471	 else
10472	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10473	 fi
10474       fi
10475       ;;
10476
10477    *.$objext)
10478       # This assumes that the test object file only shows up
10479       # once in the compiler output.
10480       if test "$p" = "conftest.$objext"; then
10481	 pre_test_object_deps_done=yes
10482	 continue
10483       fi
10484
10485       if test "$pre_test_object_deps_done" = no; then
10486	 if test -z "$predep_objects_CXX"; then
10487	   predep_objects_CXX="$p"
10488	 else
10489	   predep_objects_CXX="$predep_objects_CXX $p"
10490	 fi
10491       else
10492	 if test -z "$postdep_objects_CXX"; then
10493	   postdep_objects_CXX="$p"
10494	 else
10495	   postdep_objects_CXX="$postdep_objects_CXX $p"
10496	 fi
10497       fi
10498       ;;
10499
10500    *) ;; # Ignore the rest.
10501
10502    esac
10503  done
10504
10505  # Clean up.
10506  rm -f a.out a.exe
10507else
10508  echo "libtool.m4: error: problem compiling CXX test program"
10509fi
10510
10511$rm -f confest.$objext
10512
10513case " $postdeps_CXX " in
10514*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10515esac
10516
10517lt_prog_compiler_wl_CXX=
10518lt_prog_compiler_pic_CXX=
10519lt_prog_compiler_static_CXX=
10520
10521echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10522echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10523
10524  # C++ specific cases for pic, static, wl, etc.
10525  if test "$GXX" = yes; then
10526    lt_prog_compiler_wl_CXX='-Wl,'
10527    lt_prog_compiler_static_CXX='-static'
10528
10529    case $host_os in
10530    aix*)
10531      # All AIX code is PIC.
10532      if test "$host_cpu" = ia64; then
10533	# AIX 5 now supports IA64 processor
10534	lt_prog_compiler_static_CXX='-Bstatic'
10535      fi
10536      ;;
10537    amigaos*)
10538      # FIXME: we need at least 68020 code to build shared libraries, but
10539      # adding the `-m68020' flag to GCC prevents building anything better,
10540      # like `-m68040'.
10541      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10542      ;;
10543    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10544      # PIC is the default for these OSes.
10545      ;;
10546    mingw* | os2* | pw32*)
10547      # This hack is so that the source file can tell whether it is being
10548      # built for inclusion in a dll (and should export symbols for example).
10549      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10550      ;;
10551    darwin* | rhapsody*)
10552      # PIC is the default on this platform
10553      # Common symbols not allowed in MH_DYLIB files
10554      lt_prog_compiler_pic_CXX='-fno-common'
10555      ;;
10556    *djgpp*)
10557      # DJGPP does not support shared libraries at all
10558      lt_prog_compiler_pic_CXX=
10559      ;;
10560    sysv4*MP*)
10561      if test -d /usr/nec; then
10562	lt_prog_compiler_pic_CXX=-Kconform_pic
10563      fi
10564      ;;
10565    hpux*)
10566      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10567      # not for PA HP-UX.
10568      case "$host_cpu" in
10569      hppa*64*|ia64*)
10570	;;
10571      *)
10572	lt_prog_compiler_pic_CXX='-fPIC'
10573	;;
10574      esac
10575      ;;
10576    *)
10577      lt_prog_compiler_pic_CXX='-fPIC'
10578      ;;
10579    esac
10580  else
10581    case $host_os in
10582      aix4* | aix5*)
10583	# All AIX code is PIC.
10584	if test "$host_cpu" = ia64; then
10585	  # AIX 5 now supports IA64 processor
10586	  lt_prog_compiler_static_CXX='-Bstatic'
10587	else
10588	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10589	fi
10590	;;
10591      chorus*)
10592	case $cc_basename in
10593	cxch68)
10594	  # Green Hills C++ Compiler
10595	  # _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"
10596	  ;;
10597	esac
10598	;;
10599      dgux*)
10600	case $cc_basename in
10601	  ec++)
10602	    lt_prog_compiler_pic_CXX='-KPIC'
10603	    ;;
10604	  ghcx)
10605	    # Green Hills C++ Compiler
10606	    lt_prog_compiler_pic_CXX='-pic'
10607	    ;;
10608	  *)
10609	    ;;
10610	esac
10611	;;
10612      freebsd*)
10613	# FreeBSD uses GNU C++
10614	;;
10615      hpux9* | hpux10* | hpux11*)
10616	case $cc_basename in
10617	  CC)
10618	    lt_prog_compiler_wl_CXX='-Wl,'
10619	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10620	    if test "$host_cpu" != ia64; then
10621	      lt_prog_compiler_pic_CXX='+Z'
10622	    fi
10623	    ;;
10624	  aCC)
10625	    lt_prog_compiler_wl_CXX='-Wl,'
10626	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10627	    case "$host_cpu" in
10628	    hppa*64*|ia64*)
10629	      # +Z the default
10630	      ;;
10631	    *)
10632	      lt_prog_compiler_pic_CXX='+Z'
10633	      ;;
10634	    esac
10635	    ;;
10636	  *)
10637	    ;;
10638	esac
10639	;;
10640      irix5* | irix6* | nonstopux*)
10641	case $cc_basename in
10642	  CC)
10643	    lt_prog_compiler_wl_CXX='-Wl,'
10644	    lt_prog_compiler_static_CXX='-non_shared'
10645	    # CC pic flag -KPIC is the default.
10646	    ;;
10647	  *)
10648	    ;;
10649	esac
10650	;;
10651      linux*)
10652	case $cc_basename in
10653	  KCC)
10654	    # KAI C++ Compiler
10655	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10656	    lt_prog_compiler_pic_CXX='-fPIC'
10657	    ;;
10658	  icpc)
10659	    # Intel C++
10660	    lt_prog_compiler_wl_CXX='-Wl,'
10661	    lt_prog_compiler_pic_CXX='-KPIC'
10662	    lt_prog_compiler_static_CXX='-static'
10663	    ;;
10664	  cxx)
10665	    # Compaq C++
10666	    # Make sure the PIC flag is empty.  It appears that all Alpha
10667	    # Linux and Compaq Tru64 Unix objects are PIC.
10668	    lt_prog_compiler_pic_CXX=
10669	    lt_prog_compiler_static_CXX='-non_shared'
10670	    ;;
10671	  *)
10672	    ;;
10673	esac
10674	;;
10675      lynxos*)
10676	;;
10677      m88k*)
10678	;;
10679      mvs*)
10680	case $cc_basename in
10681	  cxx)
10682	    lt_prog_compiler_pic_CXX='-W c,exportall'
10683	    ;;
10684	  *)
10685	    ;;
10686	esac
10687	;;
10688      netbsd*)
10689	;;
10690      osf3* | osf4* | osf5*)
10691	case $cc_basename in
10692	  KCC)
10693	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10694	    ;;
10695	  RCC)
10696	    # Rational C++ 2.4.1
10697	    lt_prog_compiler_pic_CXX='-pic'
10698	    ;;
10699	  cxx)
10700	    # Digital/Compaq C++
10701	    lt_prog_compiler_wl_CXX='-Wl,'
10702	    # Make sure the PIC flag is empty.  It appears that all Alpha
10703	    # Linux and Compaq Tru64 Unix objects are PIC.
10704	    lt_prog_compiler_pic_CXX=
10705	    lt_prog_compiler_static_CXX='-non_shared'
10706	    ;;
10707	  *)
10708	    ;;
10709	esac
10710	;;
10711      psos*)
10712	;;
10713      sco*)
10714	case $cc_basename in
10715	  CC)
10716	    lt_prog_compiler_pic_CXX='-fPIC'
10717	    ;;
10718	  *)
10719	    ;;
10720	esac
10721	;;
10722      solaris*)
10723	case $cc_basename in
10724	  CC)
10725	    # Sun C++ 4.2, 5.x and Centerline C++
10726	    lt_prog_compiler_pic_CXX='-KPIC'
10727	    lt_prog_compiler_static_CXX='-Bstatic'
10728	    lt_prog_compiler_wl_CXX='-Qoption ld '
10729	    ;;
10730	  gcx)
10731	    # Green Hills C++ Compiler
10732	    lt_prog_compiler_pic_CXX='-PIC'
10733	    ;;
10734	  *)
10735	    ;;
10736	esac
10737	;;
10738      sunos4*)
10739	case $cc_basename in
10740	  CC)
10741	    # Sun C++ 4.x
10742	    lt_prog_compiler_pic_CXX='-pic'
10743	    lt_prog_compiler_static_CXX='-Bstatic'
10744	    ;;
10745	  lcc)
10746	    # Lucid
10747	    lt_prog_compiler_pic_CXX='-pic'
10748	    ;;
10749	  *)
10750	    ;;
10751	esac
10752	;;
10753      tandem*)
10754	case $cc_basename in
10755	  NCC)
10756	    # NonStop-UX NCC 3.20
10757	    lt_prog_compiler_pic_CXX='-KPIC'
10758	    ;;
10759	  *)
10760	    ;;
10761	esac
10762	;;
10763      unixware*)
10764	;;
10765      vxworks*)
10766	;;
10767      *)
10768	lt_prog_compiler_can_build_shared_CXX=no
10769	;;
10770    esac
10771  fi
10772
10773echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10774echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10775
10776#
10777# Check to make sure the PIC flag actually works.
10778#
10779if test -n "$lt_prog_compiler_pic_CXX"; then
10780  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10781echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10782if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10783  echo $ECHO_N "(cached) $ECHO_C" >&6
10784else
10785  lt_prog_compiler_pic_works_CXX=no
10786  ac_outfile=conftest.$ac_objext
10787   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10788   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10789   # Insert the option either (1) after the last *FLAGS variable, or
10790   # (2) before a word containing "conftest.", or (3) at the end.
10791   # Note that $ac_compile itself does not contain backslashes and begins
10792   # with a dollar sign (not a hyphen), so the echo should work correctly.
10793   # The option is referenced via a variable to avoid confusing sed.
10794   lt_compile=`echo "$ac_compile" | $SED \
10795   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10796   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10797   -e 's:$: $lt_compiler_flag:'`
10798   (eval echo "\"\$as_me:10798: $lt_compile\"" >&5)
10799   (eval "$lt_compile" 2>conftest.err)
10800   ac_status=$?
10801   cat conftest.err >&5
10802   echo "$as_me:10802: \$? = $ac_status" >&5
10803   if (exit $ac_status) && test -s "$ac_outfile"; then
10804     # The compiler can only warn and ignore the option if not recognized
10805     # So say no if there are warnings
10806     if test ! -s conftest.err; then
10807       lt_prog_compiler_pic_works_CXX=yes
10808     fi
10809   fi
10810   $rm conftest*
10811
10812fi
10813echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10814echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10815
10816if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10817    case $lt_prog_compiler_pic_CXX in
10818     "" | " "*) ;;
10819     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10820     esac
10821else
10822    lt_prog_compiler_pic_CXX=
10823     lt_prog_compiler_can_build_shared_CXX=no
10824fi
10825
10826fi
10827case "$host_os" in
10828  # For platforms which do not support PIC, -DPIC is meaningless:
10829  *djgpp*)
10830    lt_prog_compiler_pic_CXX=
10831    ;;
10832  *)
10833    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10834    ;;
10835esac
10836
10837echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10838echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10839if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10840  echo $ECHO_N "(cached) $ECHO_C" >&6
10841else
10842  lt_cv_prog_compiler_c_o_CXX=no
10843   $rm -r conftest 2>/dev/null
10844   mkdir conftest
10845   cd conftest
10846   mkdir out
10847   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10848
10849   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10850   # that will create temporary files in the current directory regardless of
10851   # the output directory.  Thus, making CWD read-only will cause this test
10852   # to fail, enabling locking or at least warning the user not to do parallel
10853   # builds.
10854   chmod -w .
10855
10856   lt_compiler_flag="-o out/conftest2.$ac_objext"
10857   # Insert the option either (1) after the last *FLAGS variable, or
10858   # (2) before a word containing "conftest.", or (3) at the end.
10859   # Note that $ac_compile itself does not contain backslashes and begins
10860   # with a dollar sign (not a hyphen), so the echo should work correctly.
10861   lt_compile=`echo "$ac_compile" | $SED \
10862   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10864   -e 's:$: $lt_compiler_flag:'`
10865   (eval echo "\"\$as_me:10865: $lt_compile\"" >&5)
10866   (eval "$lt_compile" 2>out/conftest.err)
10867   ac_status=$?
10868   cat out/conftest.err >&5
10869   echo "$as_me:10869: \$? = $ac_status" >&5
10870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10871   then
10872     # The compiler can only warn and ignore the option if not recognized
10873     # So say no if there are warnings
10874     if test ! -s out/conftest.err; then
10875       lt_cv_prog_compiler_c_o_CXX=yes
10876     fi
10877   fi
10878   chmod u+w .
10879   $rm conftest* out/*
10880   rmdir out
10881   cd ..
10882   rmdir conftest
10883   $rm conftest*
10884
10885fi
10886echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10887echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10888
10889
10890hard_links="nottested"
10891if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10892  # do not overwrite the value of need_locks provided by the user
10893  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10894echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10895  hard_links=yes
10896  $rm conftest*
10897  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10898  touch conftest.a
10899  ln conftest.a conftest.b 2>&5 || hard_links=no
10900  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10901  echo "$as_me:$LINENO: result: $hard_links" >&5
10902echo "${ECHO_T}$hard_links" >&6
10903  if test "$hard_links" = no; then
10904    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10905echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10906    need_locks=warn
10907  fi
10908else
10909  need_locks=no
10910fi
10911
10912echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10913echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10914
10915  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10916  case $host_os in
10917  aix4* | aix5*)
10918    # If we're using GNU nm, then we don't want the "-C" option.
10919    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10920    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10921      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'
10922    else
10923      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'
10924    fi
10925    ;;
10926  pw32*)
10927    export_symbols_cmds_CXX="$ltdll_cmds"
10928  ;;
10929  cygwin* | mingw*)
10930    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10931  ;;
10932  *)
10933    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10934  ;;
10935  esac
10936
10937echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10938echo "${ECHO_T}$ld_shlibs_CXX" >&6
10939test "$ld_shlibs_CXX" = no && can_build_shared=no
10940
10941variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10942if test "$GCC" = yes; then
10943  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10944fi
10945
10946#
10947# Do we need to explicitly link libc?
10948#
10949case "x$archive_cmds_need_lc_CXX" in
10950x|xyes)
10951  # Assume -lc should be added
10952  archive_cmds_need_lc_CXX=yes
10953
10954  if test "$enable_shared" = yes && test "$GCC" = yes; then
10955    case $archive_cmds_CXX in
10956    *'~'*)
10957      # FIXME: we may have to deal with multi-command sequences.
10958      ;;
10959    '$CC '*)
10960      # Test whether the compiler implicitly links with -lc since on some
10961      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10962      # to ld, don't add -lc before -lgcc.
10963      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10964echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10965      $rm conftest*
10966      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10967
10968      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969  (eval $ac_compile) 2>&5
10970  ac_status=$?
10971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972  (exit $ac_status); } 2>conftest.err; then
10973        soname=conftest
10974        lib=conftest
10975        libobjs=conftest.$ac_objext
10976        deplibs=
10977        wl=$lt_prog_compiler_wl_CXX
10978        compiler_flags=-v
10979        linker_flags=-v
10980        verstring=
10981        output_objdir=.
10982        libname=conftest
10983        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10984        allow_undefined_flag_CXX=
10985        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10986  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10987  ac_status=$?
10988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989  (exit $ac_status); }
10990        then
10991	  archive_cmds_need_lc_CXX=no
10992        else
10993	  archive_cmds_need_lc_CXX=yes
10994        fi
10995        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10996      else
10997        cat conftest.err 1>&5
10998      fi
10999      $rm conftest*
11000      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11001echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11002      ;;
11003    esac
11004  fi
11005  ;;
11006esac
11007
11008echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11009echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11010hardcode_action_CXX=
11011if test -n "$hardcode_libdir_flag_spec_CXX" || \
11012   test -n "$runpath_var CXX" || \
11013   test "X$hardcode_automatic_CXX"="Xyes" ; then
11014
11015  # We can hardcode non-existant directories.
11016  if test "$hardcode_direct_CXX" != no &&
11017     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11018     # have to relink, otherwise we might link with an installed library
11019     # when we should be linking with a yet-to-be-installed one
11020     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11021     test "$hardcode_minus_L_CXX" != no; then
11022    # Linking always hardcodes the temporary library directory.
11023    hardcode_action_CXX=relink
11024  else
11025    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11026    hardcode_action_CXX=immediate
11027  fi
11028else
11029  # We cannot hardcode anything, or else we can only hardcode existing
11030  # directories.
11031  hardcode_action_CXX=unsupported
11032fi
11033echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11034echo "${ECHO_T}$hardcode_action_CXX" >&6
11035
11036if test "$hardcode_action_CXX" = relink; then
11037  # Fast installation is not supported
11038  enable_fast_install=no
11039elif test "$shlibpath_overrides_runpath" = yes ||
11040     test "$enable_shared" = no; then
11041  # Fast installation is not necessary
11042  enable_fast_install=needless
11043fi
11044
11045striplib=
11046old_striplib=
11047echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11048echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11049if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11050  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11051  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11052  echo "$as_me:$LINENO: result: yes" >&5
11053echo "${ECHO_T}yes" >&6
11054else
11055# FIXME - insert some real tests, host_os isn't really good enough
11056  case $host_os in
11057   darwin*)
11058       if test -n "$STRIP" ; then
11059         striplib="$STRIP -x"
11060         echo "$as_me:$LINENO: result: yes" >&5
11061echo "${ECHO_T}yes" >&6
11062       else
11063  echo "$as_me:$LINENO: result: no" >&5
11064echo "${ECHO_T}no" >&6
11065fi
11066       ;;
11067   *)
11068  echo "$as_me:$LINENO: result: no" >&5
11069echo "${ECHO_T}no" >&6
11070    ;;
11071  esac
11072fi
11073
11074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11076library_names_spec=
11077libname_spec='lib$name'
11078soname_spec=
11079shrext=".so"
11080postinstall_cmds=
11081postuninstall_cmds=
11082finish_cmds=
11083finish_eval=
11084shlibpath_var=
11085shlibpath_overrides_runpath=unknown
11086version_type=none
11087dynamic_linker="$host_os ld.so"
11088sys_lib_dlsearch_path_spec="/lib /usr/lib"
11089if test "$GCC" = yes; then
11090  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11091  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11092    # if the path contains ";" then we assume it to be the separator
11093    # otherwise default to the standard path separator (i.e. ":") - it is
11094    # assumed that no part of a normal pathname contains ";" but that should
11095    # okay in the real world where ";" in dirpaths is itself problematic.
11096    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11097  else
11098    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11099  fi
11100else
11101  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11102fi
11103need_lib_prefix=unknown
11104hardcode_into_libs=no
11105
11106# when you set need_version to no, make sure it does not cause -set_version
11107# flags to be left without arguments
11108need_version=unknown
11109
11110case $host_os in
11111aix3*)
11112  version_type=linux
11113  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11114  shlibpath_var=LIBPATH
11115
11116  # AIX 3 has no versioning support, so we append a major version to the name.
11117  soname_spec='${libname}${release}${shared_ext}$major'
11118  ;;
11119
11120aix4* | aix5*)
11121  version_type=linux
11122  need_lib_prefix=no
11123  need_version=no
11124  hardcode_into_libs=yes
11125  if test "$host_cpu" = ia64; then
11126    # AIX 5 supports IA64
11127    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11128    shlibpath_var=LD_LIBRARY_PATH
11129  else
11130    # With GCC up to 2.95.x, collect2 would create an import file
11131    # for dependence libraries.  The import file would start with
11132    # the line `#! .'.  This would cause the generated library to
11133    # depend on `.', always an invalid library.  This was fixed in
11134    # development snapshots of GCC prior to 3.0.
11135    case $host_os in
11136      aix4 | aix4.[01] | aix4.[01].*)
11137      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11138	   echo ' yes '
11139	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11140	:
11141      else
11142	can_build_shared=no
11143      fi
11144      ;;
11145    esac
11146    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11147    # soname into executable. Probably we can add versioning support to
11148    # collect2, so additional links can be useful in future.
11149    if test "$aix_use_runtimelinking" = yes; then
11150      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11151      # instead of lib<name>.a to let people know that these are not
11152      # typical AIX shared libraries.
11153      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154    else
11155      # We preserve .a as extension for shared libraries through AIX4.2
11156      # and later when we are not doing run time linking.
11157      library_names_spec='${libname}${release}.a $libname.a'
11158      soname_spec='${libname}${release}${shared_ext}$major'
11159    fi
11160    shlibpath_var=LIBPATH
11161  fi
11162  ;;
11163
11164amigaos*)
11165  library_names_spec='$libname.ixlibrary $libname.a'
11166  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11167  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'
11168  ;;
11169
11170beos*)
11171  library_names_spec='${libname}${shared_ext}'
11172  dynamic_linker="$host_os ld.so"
11173  shlibpath_var=LIBRARY_PATH
11174  ;;
11175
11176bsdi4*)
11177  version_type=linux
11178  need_version=no
11179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180  soname_spec='${libname}${release}${shared_ext}$major'
11181  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11182  shlibpath_var=LD_LIBRARY_PATH
11183  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11184  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11185  # the default ld.so.conf also contains /usr/contrib/lib and
11186  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11187  # libtool to hard-code these into programs
11188  ;;
11189
11190cygwin* | mingw* | pw32*)
11191  version_type=windows
11192  shrext=".dll"
11193  need_version=no
11194  need_lib_prefix=no
11195
11196  case $GCC,$host_os in
11197  yes,cygwin* | yes,mingw* | yes,pw32*)
11198    library_names_spec='$libname.dll.a'
11199    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11200    postinstall_cmds='base_file=`basename \${file}`~
11201      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11202      dldir=$destdir/`dirname \$dlpath`~
11203      test -d \$dldir || mkdir -p \$dldir~
11204      $install_prog $dir/$dlname \$dldir/$dlname'
11205    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206      dlpath=$dir/\$dldll~
11207       $rm \$dlpath'
11208    shlibpath_overrides_runpath=yes
11209
11210    case $host_os in
11211    cygwin*)
11212      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11213      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11214      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11215      ;;
11216    mingw*)
11217      # MinGW DLLs use traditional 'lib' prefix
11218      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11219      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11220      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11221        # It is most probably a Windows format PATH printed by
11222        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11223        # path with ; separators, and with drive letters. We can handle the
11224        # drive letters (cygwin fileutils understands them), so leave them,
11225        # especially as we might pass files found there to a mingw objdump,
11226        # which wouldn't understand a cygwinified path. Ahh.
11227        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11228      else
11229        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11230      fi
11231      ;;
11232    pw32*)
11233      # pw32 DLLs use 'pw' prefix rather than 'lib'
11234      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11235      ;;
11236    esac
11237    ;;
11238
11239  *)
11240    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11241    ;;
11242  esac
11243  dynamic_linker='Win32 ld.exe'
11244  # FIXME: first we should search . and the directory the executable is in
11245  shlibpath_var=PATH
11246  ;;
11247
11248darwin* | rhapsody*)
11249  dynamic_linker="$host_os dyld"
11250  version_type=darwin
11251  need_lib_prefix=no
11252  need_version=no
11253  # FIXME: Relying on posixy $() will cause problems for
11254  #        cross-compilation, but unfortunately the echo tests do not
11255  #        yet detect zsh echo's removal of \ escapes.
11256  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11257  soname_spec='${libname}${release}${major}$shared_ext'
11258  shlibpath_overrides_runpath=yes
11259  shlibpath_var=DYLD_LIBRARY_PATH
11260  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11261  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11262  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11263  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11264  fi
11265  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11266  ;;
11267
11268dgux*)
11269  version_type=linux
11270  need_lib_prefix=no
11271  need_version=no
11272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11273  soname_spec='${libname}${release}${shared_ext}$major'
11274  shlibpath_var=LD_LIBRARY_PATH
11275  ;;
11276
11277freebsd1*)
11278  dynamic_linker=no
11279  ;;
11280
11281freebsd*)
11282  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11283  version_type=freebsd-$objformat
11284  case $version_type in
11285    freebsd-elf*)
11286      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11287      need_version=no
11288      need_lib_prefix=no
11289      ;;
11290    freebsd-*)
11291      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11292      need_version=yes
11293      ;;
11294  esac
11295  shlibpath_var=LD_LIBRARY_PATH
11296  case $host_os in
11297  freebsd2*)
11298    shlibpath_overrides_runpath=yes
11299    ;;
11300  freebsd3.01* | freebsdelf3.01*)
11301    shlibpath_overrides_runpath=yes
11302    hardcode_into_libs=yes
11303    ;;
11304  *) # from 3.2 on
11305    shlibpath_overrides_runpath=no
11306    hardcode_into_libs=yes
11307    ;;
11308  esac
11309  ;;
11310
11311gnu*)
11312  version_type=linux
11313  need_lib_prefix=no
11314  need_version=no
11315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11316  soname_spec='${libname}${release}${shared_ext}$major'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  hardcode_into_libs=yes
11319  ;;
11320
11321hpux9* | hpux10* | hpux11*)
11322  # Give a soname corresponding to the major version so that dld.sl refuses to
11323  # link against other versions.
11324  version_type=sunos
11325  need_lib_prefix=no
11326  need_version=no
11327  case "$host_cpu" in
11328  ia64*)
11329    shrext='.so'
11330    hardcode_into_libs=yes
11331    dynamic_linker="$host_os dld.so"
11332    shlibpath_var=LD_LIBRARY_PATH
11333    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11334    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335    soname_spec='${libname}${release}${shared_ext}$major'
11336    if test "X$HPUX_IA64_MODE" = X32; then
11337      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11338    else
11339      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11340    fi
11341    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11342    ;;
11343   hppa*64*)
11344     shrext='.sl'
11345     hardcode_into_libs=yes
11346     dynamic_linker="$host_os dld.sl"
11347     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11348     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350     soname_spec='${libname}${release}${shared_ext}$major'
11351     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11352     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353     ;;
11354   *)
11355    shrext='.sl'
11356    dynamic_linker="$host_os dld.sl"
11357    shlibpath_var=SHLIB_PATH
11358    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11359    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360    soname_spec='${libname}${release}${shared_ext}$major'
11361    ;;
11362  esac
11363  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11364  postinstall_cmds='chmod 555 $lib'
11365  ;;
11366
11367irix5* | irix6* | nonstopux*)
11368  case $host_os in
11369    nonstopux*) version_type=nonstopux ;;
11370    *)
11371	if test "$lt_cv_prog_gnu_ld" = yes; then
11372		version_type=linux
11373	else
11374		version_type=irix
11375	fi ;;
11376  esac
11377  need_lib_prefix=no
11378  need_version=no
11379  soname_spec='${libname}${release}${shared_ext}$major'
11380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11381  case $host_os in
11382  irix5* | nonstopux*)
11383    libsuff= shlibsuff=
11384    ;;
11385  *)
11386    case $LD in # libtool.m4 will add one of these switches to LD
11387    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11388      libsuff= shlibsuff= libmagic=32-bit;;
11389    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11390      libsuff=32 shlibsuff=N32 libmagic=N32;;
11391    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11392      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11393    *) libsuff= shlibsuff= libmagic=never-match;;
11394    esac
11395    ;;
11396  esac
11397  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11398  shlibpath_overrides_runpath=no
11399  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11400  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11401  hardcode_into_libs=yes
11402  ;;
11403
11404# No shared lib support for Linux oldld, aout, or coff.
11405linux*oldld* | linux*aout* | linux*coff*)
11406  dynamic_linker=no
11407  ;;
11408
11409# This must be Linux ELF.
11410linux*)
11411  version_type=linux
11412  need_lib_prefix=no
11413  need_version=no
11414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415  soname_spec='${libname}${release}${shared_ext}$major'
11416  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11417  shlibpath_var=LD_LIBRARY_PATH
11418  shlibpath_overrides_runpath=no
11419  # This implies no fast_install, which is unacceptable.
11420  # Some rework will be needed to allow for fast_install
11421  # before this can be enabled.
11422  hardcode_into_libs=yes
11423
11424  # We used to test for /lib/ld.so.1 and disable shared libraries on
11425  # powerpc, because MkLinux only supported shared libraries with the
11426  # GNU dynamic linker.  Since this was broken with cross compilers,
11427  # most powerpc-linux boxes support dynamic linking these days and
11428  # people can always --disable-shared, the test was removed, and we
11429  # assume the GNU/Linux dynamic linker is in use.
11430  dynamic_linker='GNU/Linux ld.so'
11431  ;;
11432
11433netbsd*)
11434  version_type=sunos
11435  need_lib_prefix=no
11436  need_version=no
11437  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440    dynamic_linker='NetBSD (a.out) ld.so'
11441  else
11442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11443    soname_spec='${libname}${release}${shared_ext}$major'
11444    dynamic_linker='NetBSD ld.elf_so'
11445  fi
11446  shlibpath_var=LD_LIBRARY_PATH
11447  shlibpath_overrides_runpath=yes
11448  hardcode_into_libs=yes
11449  ;;
11450
11451newsos6)
11452  version_type=linux
11453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454  shlibpath_var=LD_LIBRARY_PATH
11455  shlibpath_overrides_runpath=yes
11456  ;;
11457
11458nto-qnx)
11459  version_type=linux
11460  need_lib_prefix=no
11461  need_version=no
11462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463  soname_spec='${libname}${release}${shared_ext}$major'
11464  shlibpath_var=LD_LIBRARY_PATH
11465  shlibpath_overrides_runpath=yes
11466  ;;
11467
11468openbsd*)
11469  version_type=sunos
11470  need_lib_prefix=no
11471  need_version=no
11472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11473  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11474  shlibpath_var=LD_LIBRARY_PATH
11475  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11476    case $host_os in
11477      openbsd2.[89] | openbsd2.[89].*)
11478	shlibpath_overrides_runpath=no
11479	;;
11480      *)
11481	shlibpath_overrides_runpath=yes
11482	;;
11483      esac
11484  else
11485    shlibpath_overrides_runpath=yes
11486  fi
11487  ;;
11488
11489os2*)
11490  libname_spec='$name'
11491  shrext=".dll"
11492  need_lib_prefix=no
11493  library_names_spec='$libname${shared_ext} $libname.a'
11494  dynamic_linker='OS/2 ld.exe'
11495  shlibpath_var=LIBPATH
11496  ;;
11497
11498osf3* | osf4* | osf5*)
11499  version_type=osf
11500  need_lib_prefix=no
11501  need_version=no
11502  soname_spec='${libname}${release}${shared_ext}$major'
11503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504  shlibpath_var=LD_LIBRARY_PATH
11505  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11506  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11507  ;;
11508
11509sco3.2v5*)
11510  version_type=osf
11511  soname_spec='${libname}${release}${shared_ext}$major'
11512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513  shlibpath_var=LD_LIBRARY_PATH
11514  ;;
11515
11516solaris*)
11517  version_type=linux
11518  need_lib_prefix=no
11519  need_version=no
11520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521  soname_spec='${libname}${release}${shared_ext}$major'
11522  shlibpath_var=LD_LIBRARY_PATH
11523  shlibpath_overrides_runpath=yes
11524  hardcode_into_libs=yes
11525  # ldd complains unless libraries are executable
11526  postinstall_cmds='chmod +x $lib'
11527  ;;
11528
11529sunos4*)
11530  version_type=sunos
11531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11532  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11533  shlibpath_var=LD_LIBRARY_PATH
11534  shlibpath_overrides_runpath=yes
11535  if test "$with_gnu_ld" = yes; then
11536    need_lib_prefix=no
11537  fi
11538  need_version=yes
11539  ;;
11540
11541sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11542  version_type=linux
11543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544  soname_spec='${libname}${release}${shared_ext}$major'
11545  shlibpath_var=LD_LIBRARY_PATH
11546  case $host_vendor in
11547    sni)
11548      shlibpath_overrides_runpath=no
11549      need_lib_prefix=no
11550      export_dynamic_flag_spec='${wl}-Blargedynsym'
11551      runpath_var=LD_RUN_PATH
11552      ;;
11553    siemens)
11554      need_lib_prefix=no
11555      ;;
11556    motorola)
11557      need_lib_prefix=no
11558      need_version=no
11559      shlibpath_overrides_runpath=no
11560      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11561      ;;
11562  esac
11563  ;;
11564
11565sysv4*MP*)
11566  if test -d /usr/nec ;then
11567    version_type=linux
11568    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11569    soname_spec='$libname${shared_ext}.$major'
11570    shlibpath_var=LD_LIBRARY_PATH
11571  fi
11572  ;;
11573
11574uts4*)
11575  version_type=linux
11576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577  soname_spec='${libname}${release}${shared_ext}$major'
11578  shlibpath_var=LD_LIBRARY_PATH
11579  ;;
11580
11581*)
11582  dynamic_linker=no
11583  ;;
11584esac
11585echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11586echo "${ECHO_T}$dynamic_linker" >&6
11587test "$dynamic_linker" = no && can_build_shared=no
11588
11589if test "x$enable_dlopen" != xyes; then
11590  enable_dlopen=unknown
11591  enable_dlopen_self=unknown
11592  enable_dlopen_self_static=unknown
11593else
11594  lt_cv_dlopen=no
11595  lt_cv_dlopen_libs=
11596
11597  case $host_os in
11598  beos*)
11599    lt_cv_dlopen="load_add_on"
11600    lt_cv_dlopen_libs=
11601    lt_cv_dlopen_self=yes
11602    ;;
11603
11604  mingw* | pw32*)
11605    lt_cv_dlopen="LoadLibrary"
11606    lt_cv_dlopen_libs=
11607   ;;
11608
11609  cygwin*)
11610    lt_cv_dlopen="dlopen"
11611    lt_cv_dlopen_libs=
11612   ;;
11613
11614  darwin*)
11615  # if libdl is installed we need to link against it
11616    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11617echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11618if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11619  echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621  ac_check_lib_save_LIBS=$LIBS
11622LIBS="-ldl  $LIBS"
11623cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h.  */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h.  */
11629
11630/* Override any gcc2 internal prototype to avoid an error.  */
11631#ifdef __cplusplus
11632extern "C"
11633#endif
11634/* We use char because int might match the return type of a gcc2
11635   builtin and then its argument prototype would still apply.  */
11636char dlopen ();
11637int
11638main ()
11639{
11640dlopen ();
11641  ;
11642  return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
11646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647  (eval $ac_link) 2>conftest.er1
11648  ac_status=$?
11649  grep -v '^ *+' conftest.er1 >conftest.err
11650  rm -f conftest.er1
11651  cat conftest.err >&5
11652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); } &&
11654	 { ac_try='test -z "$ac_cxx_werror_flag"
11655			 || test ! -s conftest.err'
11656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657  (eval $ac_try) 2>&5
11658  ac_status=$?
11659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660  (exit $ac_status); }; } &&
11661	 { ac_try='test -s conftest$ac_exeext'
11662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663  (eval $ac_try) 2>&5
11664  ac_status=$?
11665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666  (exit $ac_status); }; }; then
11667  ac_cv_lib_dl_dlopen=yes
11668else
11669  echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672ac_cv_lib_dl_dlopen=no
11673fi
11674rm -f conftest.err conftest.$ac_objext \
11675      conftest$ac_exeext conftest.$ac_ext
11676LIBS=$ac_check_lib_save_LIBS
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11679echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11680if test $ac_cv_lib_dl_dlopen = yes; then
11681  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11682else
11683
11684    lt_cv_dlopen="dyld"
11685    lt_cv_dlopen_libs=
11686    lt_cv_dlopen_self=yes
11687
11688fi
11689
11690   ;;
11691
11692  *)
11693    echo "$as_me:$LINENO: checking for shl_load" >&5
11694echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11695if test "${ac_cv_func_shl_load+set}" = set; then
11696  echo $ECHO_N "(cached) $ECHO_C" >&6
11697else
11698  cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h.  */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h.  */
11704/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11706#define shl_load innocuous_shl_load
11707
11708/* System header to define __stub macros and hopefully few prototypes,
11709    which can conflict with char shl_load (); below.
11710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711    <limits.h> exists even on freestanding compilers.  */
11712
11713#ifdef __STDC__
11714# include <limits.h>
11715#else
11716# include <assert.h>
11717#endif
11718
11719#undef shl_load
11720
11721/* Override any gcc2 internal prototype to avoid an error.  */
11722#ifdef __cplusplus
11723extern "C"
11724{
11725#endif
11726/* We use char because int might match the return type of a gcc2
11727   builtin and then its argument prototype would still apply.  */
11728char shl_load ();
11729/* The GNU C library defines this for functions which it implements
11730    to always fail with ENOSYS.  Some functions are actually named
11731    something starting with __ and the normal name is an alias.  */
11732#if defined (__stub_shl_load) || defined (__stub___shl_load)
11733choke me
11734#else
11735char (*f) () = shl_load;
11736#endif
11737#ifdef __cplusplus
11738}
11739#endif
11740
11741int
11742main ()
11743{
11744return f != shl_load;
11745  ;
11746  return 0;
11747}
11748_ACEOF
11749rm -f conftest.$ac_objext conftest$ac_exeext
11750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751  (eval $ac_link) 2>conftest.er1
11752  ac_status=$?
11753  grep -v '^ *+' conftest.er1 >conftest.err
11754  rm -f conftest.er1
11755  cat conftest.err >&5
11756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757  (exit $ac_status); } &&
11758	 { ac_try='test -z "$ac_cxx_werror_flag"
11759			 || test ! -s conftest.err'
11760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761  (eval $ac_try) 2>&5
11762  ac_status=$?
11763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764  (exit $ac_status); }; } &&
11765	 { ac_try='test -s conftest$ac_exeext'
11766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767  (eval $ac_try) 2>&5
11768  ac_status=$?
11769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770  (exit $ac_status); }; }; then
11771  ac_cv_func_shl_load=yes
11772else
11773  echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776ac_cv_func_shl_load=no
11777fi
11778rm -f conftest.err conftest.$ac_objext \
11779      conftest$ac_exeext conftest.$ac_ext
11780fi
11781echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11782echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11783if test $ac_cv_func_shl_load = yes; then
11784  lt_cv_dlopen="shl_load"
11785else
11786  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11787echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11788if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11789  echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791  ac_check_lib_save_LIBS=$LIBS
11792LIBS="-ldld  $LIBS"
11793cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h.  */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h.  */
11799
11800/* Override any gcc2 internal prototype to avoid an error.  */
11801#ifdef __cplusplus
11802extern "C"
11803#endif
11804/* We use char because int might match the return type of a gcc2
11805   builtin and then its argument prototype would still apply.  */
11806char shl_load ();
11807int
11808main ()
11809{
11810shl_load ();
11811  ;
11812  return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext conftest$ac_exeext
11816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817  (eval $ac_link) 2>conftest.er1
11818  ac_status=$?
11819  grep -v '^ *+' conftest.er1 >conftest.err
11820  rm -f conftest.er1
11821  cat conftest.err >&5
11822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823  (exit $ac_status); } &&
11824	 { ac_try='test -z "$ac_cxx_werror_flag"
11825			 || test ! -s conftest.err'
11826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827  (eval $ac_try) 2>&5
11828  ac_status=$?
11829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830  (exit $ac_status); }; } &&
11831	 { ac_try='test -s conftest$ac_exeext'
11832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833  (eval $ac_try) 2>&5
11834  ac_status=$?
11835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836  (exit $ac_status); }; }; then
11837  ac_cv_lib_dld_shl_load=yes
11838else
11839  echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842ac_cv_lib_dld_shl_load=no
11843fi
11844rm -f conftest.err conftest.$ac_objext \
11845      conftest$ac_exeext conftest.$ac_ext
11846LIBS=$ac_check_lib_save_LIBS
11847fi
11848echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11849echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11850if test $ac_cv_lib_dld_shl_load = yes; then
11851  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11852else
11853  echo "$as_me:$LINENO: checking for dlopen" >&5
11854echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11855if test "${ac_cv_func_dlopen+set}" = set; then
11856  echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858  cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h.  */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h.  */
11864/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11865   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11866#define dlopen innocuous_dlopen
11867
11868/* System header to define __stub macros and hopefully few prototypes,
11869    which can conflict with char dlopen (); below.
11870    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871    <limits.h> exists even on freestanding compilers.  */
11872
11873#ifdef __STDC__
11874# include <limits.h>
11875#else
11876# include <assert.h>
11877#endif
11878
11879#undef dlopen
11880
11881/* Override any gcc2 internal prototype to avoid an error.  */
11882#ifdef __cplusplus
11883extern "C"
11884{
11885#endif
11886/* We use char because int might match the return type of a gcc2
11887   builtin and then its argument prototype would still apply.  */
11888char dlopen ();
11889/* The GNU C library defines this for functions which it implements
11890    to always fail with ENOSYS.  Some functions are actually named
11891    something starting with __ and the normal name is an alias.  */
11892#if defined (__stub_dlopen) || defined (__stub___dlopen)
11893choke me
11894#else
11895char (*f) () = dlopen;
11896#endif
11897#ifdef __cplusplus
11898}
11899#endif
11900
11901int
11902main ()
11903{
11904return f != dlopen;
11905  ;
11906  return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext conftest$ac_exeext
11910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911  (eval $ac_link) 2>conftest.er1
11912  ac_status=$?
11913  grep -v '^ *+' conftest.er1 >conftest.err
11914  rm -f conftest.er1
11915  cat conftest.err >&5
11916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917  (exit $ac_status); } &&
11918	 { ac_try='test -z "$ac_cxx_werror_flag"
11919			 || test ! -s conftest.err'
11920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921  (eval $ac_try) 2>&5
11922  ac_status=$?
11923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924  (exit $ac_status); }; } &&
11925	 { ac_try='test -s conftest$ac_exeext'
11926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927  (eval $ac_try) 2>&5
11928  ac_status=$?
11929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930  (exit $ac_status); }; }; then
11931  ac_cv_func_dlopen=yes
11932else
11933  echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
11936ac_cv_func_dlopen=no
11937fi
11938rm -f conftest.err conftest.$ac_objext \
11939      conftest$ac_exeext conftest.$ac_ext
11940fi
11941echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11942echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11943if test $ac_cv_func_dlopen = yes; then
11944  lt_cv_dlopen="dlopen"
11945else
11946  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11947echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11948if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11949  echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951  ac_check_lib_save_LIBS=$LIBS
11952LIBS="-ldl  $LIBS"
11953cat >conftest.$ac_ext <<_ACEOF
11954/* confdefs.h.  */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h.  */
11959
11960/* Override any gcc2 internal prototype to avoid an error.  */
11961#ifdef __cplusplus
11962extern "C"
11963#endif
11964/* We use char because int might match the return type of a gcc2
11965   builtin and then its argument prototype would still apply.  */
11966char dlopen ();
11967int
11968main ()
11969{
11970dlopen ();
11971  ;
11972  return 0;
11973}
11974_ACEOF
11975rm -f conftest.$ac_objext conftest$ac_exeext
11976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977  (eval $ac_link) 2>conftest.er1
11978  ac_status=$?
11979  grep -v '^ *+' conftest.er1 >conftest.err
11980  rm -f conftest.er1
11981  cat conftest.err >&5
11982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983  (exit $ac_status); } &&
11984	 { ac_try='test -z "$ac_cxx_werror_flag"
11985			 || test ! -s conftest.err'
11986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987  (eval $ac_try) 2>&5
11988  ac_status=$?
11989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990  (exit $ac_status); }; } &&
11991	 { ac_try='test -s conftest$ac_exeext'
11992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993  (eval $ac_try) 2>&5
11994  ac_status=$?
11995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996  (exit $ac_status); }; }; then
11997  ac_cv_lib_dl_dlopen=yes
11998else
11999  echo "$as_me: failed program was:" >&5
12000sed 's/^/| /' conftest.$ac_ext >&5
12001
12002ac_cv_lib_dl_dlopen=no
12003fi
12004rm -f conftest.err conftest.$ac_objext \
12005      conftest$ac_exeext conftest.$ac_ext
12006LIBS=$ac_check_lib_save_LIBS
12007fi
12008echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12009echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12010if test $ac_cv_lib_dl_dlopen = yes; then
12011  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12012else
12013  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12014echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12015if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12016  echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018  ac_check_lib_save_LIBS=$LIBS
12019LIBS="-lsvld  $LIBS"
12020cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h.  */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h.  */
12026
12027/* Override any gcc2 internal prototype to avoid an error.  */
12028#ifdef __cplusplus
12029extern "C"
12030#endif
12031/* We use char because int might match the return type of a gcc2
12032   builtin and then its argument prototype would still apply.  */
12033char dlopen ();
12034int
12035main ()
12036{
12037dlopen ();
12038  ;
12039  return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext conftest$ac_exeext
12043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044  (eval $ac_link) 2>conftest.er1
12045  ac_status=$?
12046  grep -v '^ *+' conftest.er1 >conftest.err
12047  rm -f conftest.er1
12048  cat conftest.err >&5
12049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050  (exit $ac_status); } &&
12051	 { ac_try='test -z "$ac_cxx_werror_flag"
12052			 || test ! -s conftest.err'
12053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054  (eval $ac_try) 2>&5
12055  ac_status=$?
12056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057  (exit $ac_status); }; } &&
12058	 { ac_try='test -s conftest$ac_exeext'
12059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060  (eval $ac_try) 2>&5
12061  ac_status=$?
12062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063  (exit $ac_status); }; }; then
12064  ac_cv_lib_svld_dlopen=yes
12065else
12066  echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069ac_cv_lib_svld_dlopen=no
12070fi
12071rm -f conftest.err conftest.$ac_objext \
12072      conftest$ac_exeext conftest.$ac_ext
12073LIBS=$ac_check_lib_save_LIBS
12074fi
12075echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12076echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12077if test $ac_cv_lib_svld_dlopen = yes; then
12078  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12079else
12080  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12081echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12082if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12083  echo $ECHO_N "(cached) $ECHO_C" >&6
12084else
12085  ac_check_lib_save_LIBS=$LIBS
12086LIBS="-ldld  $LIBS"
12087cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h.  */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h.  */
12093
12094/* Override any gcc2 internal prototype to avoid an error.  */
12095#ifdef __cplusplus
12096extern "C"
12097#endif
12098/* We use char because int might match the return type of a gcc2
12099   builtin and then its argument prototype would still apply.  */
12100char dld_link ();
12101int
12102main ()
12103{
12104dld_link ();
12105  ;
12106  return 0;
12107}
12108_ACEOF
12109rm -f conftest.$ac_objext conftest$ac_exeext
12110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111  (eval $ac_link) 2>conftest.er1
12112  ac_status=$?
12113  grep -v '^ *+' conftest.er1 >conftest.err
12114  rm -f conftest.er1
12115  cat conftest.err >&5
12116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117  (exit $ac_status); } &&
12118	 { ac_try='test -z "$ac_cxx_werror_flag"
12119			 || test ! -s conftest.err'
12120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121  (eval $ac_try) 2>&5
12122  ac_status=$?
12123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124  (exit $ac_status); }; } &&
12125	 { ac_try='test -s conftest$ac_exeext'
12126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127  (eval $ac_try) 2>&5
12128  ac_status=$?
12129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130  (exit $ac_status); }; }; then
12131  ac_cv_lib_dld_dld_link=yes
12132else
12133  echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136ac_cv_lib_dld_dld_link=no
12137fi
12138rm -f conftest.err conftest.$ac_objext \
12139      conftest$ac_exeext conftest.$ac_ext
12140LIBS=$ac_check_lib_save_LIBS
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12143echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12144if test $ac_cv_lib_dld_dld_link = yes; then
12145  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12146fi
12147
12148
12149fi
12150
12151
12152fi
12153
12154
12155fi
12156
12157
12158fi
12159
12160
12161fi
12162
12163    ;;
12164  esac
12165
12166  if test "x$lt_cv_dlopen" != xno; then
12167    enable_dlopen=yes
12168  else
12169    enable_dlopen=no
12170  fi
12171
12172  case $lt_cv_dlopen in
12173  dlopen)
12174    save_CPPFLAGS="$CPPFLAGS"
12175    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12176
12177    save_LDFLAGS="$LDFLAGS"
12178    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12179
12180    save_LIBS="$LIBS"
12181    LIBS="$lt_cv_dlopen_libs $LIBS"
12182
12183    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12184echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12185if test "${lt_cv_dlopen_self+set}" = set; then
12186  echo $ECHO_N "(cached) $ECHO_C" >&6
12187else
12188  	  if test "$cross_compiling" = yes; then :
12189  lt_cv_dlopen_self=cross
12190else
12191  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12192  lt_status=$lt_dlunknown
12193  cat > conftest.$ac_ext <<EOF
12194#line 12194 "configure"
12195#include "confdefs.h"
12196
12197#if HAVE_DLFCN_H
12198#include <dlfcn.h>
12199#endif
12200
12201#include <stdio.h>
12202
12203#ifdef RTLD_GLOBAL
12204#  define LT_DLGLOBAL		RTLD_GLOBAL
12205#else
12206#  ifdef DL_GLOBAL
12207#    define LT_DLGLOBAL		DL_GLOBAL
12208#  else
12209#    define LT_DLGLOBAL		0
12210#  endif
12211#endif
12212
12213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12214   find out it does not work in some platform. */
12215#ifndef LT_DLLAZY_OR_NOW
12216#  ifdef RTLD_LAZY
12217#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12218#  else
12219#    ifdef DL_LAZY
12220#      define LT_DLLAZY_OR_NOW		DL_LAZY
12221#    else
12222#      ifdef RTLD_NOW
12223#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12224#      else
12225#        ifdef DL_NOW
12226#          define LT_DLLAZY_OR_NOW	DL_NOW
12227#        else
12228#          define LT_DLLAZY_OR_NOW	0
12229#        endif
12230#      endif
12231#    endif
12232#  endif
12233#endif
12234
12235#ifdef __cplusplus
12236extern "C" void exit (int);
12237#endif
12238
12239void fnord() { int i=42;}
12240int main ()
12241{
12242  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12243  int status = $lt_dlunknown;
12244
12245  if (self)
12246    {
12247      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12248      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12249      /* dlclose (self); */
12250    }
12251
12252    exit (status);
12253}
12254EOF
12255  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12256  (eval $ac_link) 2>&5
12257  ac_status=$?
12258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12260    (./conftest; exit; ) 2>/dev/null
12261    lt_status=$?
12262    case x$lt_status in
12263      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12264      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12265      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12266    esac
12267  else :
12268    # compilation failed
12269    lt_cv_dlopen_self=no
12270  fi
12271fi
12272rm -fr conftest*
12273
12274
12275fi
12276echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12277echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12278
12279    if test "x$lt_cv_dlopen_self" = xyes; then
12280      LDFLAGS="$LDFLAGS $link_static_flag"
12281      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12282echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12283if test "${lt_cv_dlopen_self_static+set}" = set; then
12284  echo $ECHO_N "(cached) $ECHO_C" >&6
12285else
12286  	  if test "$cross_compiling" = yes; then :
12287  lt_cv_dlopen_self_static=cross
12288else
12289  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12290  lt_status=$lt_dlunknown
12291  cat > conftest.$ac_ext <<EOF
12292#line 12292 "configure"
12293#include "confdefs.h"
12294
12295#if HAVE_DLFCN_H
12296#include <dlfcn.h>
12297#endif
12298
12299#include <stdio.h>
12300
12301#ifdef RTLD_GLOBAL
12302#  define LT_DLGLOBAL		RTLD_GLOBAL
12303#else
12304#  ifdef DL_GLOBAL
12305#    define LT_DLGLOBAL		DL_GLOBAL
12306#  else
12307#    define LT_DLGLOBAL		0
12308#  endif
12309#endif
12310
12311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12312   find out it does not work in some platform. */
12313#ifndef LT_DLLAZY_OR_NOW
12314#  ifdef RTLD_LAZY
12315#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12316#  else
12317#    ifdef DL_LAZY
12318#      define LT_DLLAZY_OR_NOW		DL_LAZY
12319#    else
12320#      ifdef RTLD_NOW
12321#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12322#      else
12323#        ifdef DL_NOW
12324#          define LT_DLLAZY_OR_NOW	DL_NOW
12325#        else
12326#          define LT_DLLAZY_OR_NOW	0
12327#        endif
12328#      endif
12329#    endif
12330#  endif
12331#endif
12332
12333#ifdef __cplusplus
12334extern "C" void exit (int);
12335#endif
12336
12337void fnord() { int i=42;}
12338int main ()
12339{
12340  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12341  int status = $lt_dlunknown;
12342
12343  if (self)
12344    {
12345      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12346      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12347      /* dlclose (self); */
12348    }
12349
12350    exit (status);
12351}
12352EOF
12353  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354  (eval $ac_link) 2>&5
12355  ac_status=$?
12356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12358    (./conftest; exit; ) 2>/dev/null
12359    lt_status=$?
12360    case x$lt_status in
12361      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12362      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12363      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12364    esac
12365  else :
12366    # compilation failed
12367    lt_cv_dlopen_self_static=no
12368  fi
12369fi
12370rm -fr conftest*
12371
12372
12373fi
12374echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12375echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12376    fi
12377
12378    CPPFLAGS="$save_CPPFLAGS"
12379    LDFLAGS="$save_LDFLAGS"
12380    LIBS="$save_LIBS"
12381    ;;
12382  esac
12383
12384  case $lt_cv_dlopen_self in
12385  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12386  *) enable_dlopen_self=unknown ;;
12387  esac
12388
12389  case $lt_cv_dlopen_self_static in
12390  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12391  *) enable_dlopen_self_static=unknown ;;
12392  esac
12393fi
12394
12395
12396# The else clause should only fire when bootstrapping the
12397# libtool distribution, otherwise you forgot to ship ltmain.sh
12398# with your package, and you will get complaints that there are
12399# no rules to generate ltmain.sh.
12400if test -f "$ltmain"; then
12401  # See if we are running on zsh, and set the options which allow our commands through
12402  # without removal of \ escapes.
12403  if test -n "${ZSH_VERSION+set}" ; then
12404    setopt NO_GLOB_SUBST
12405  fi
12406  # Now quote all the things that may contain metacharacters while being
12407  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12408  # variables and quote the copies for generation of the libtool script.
12409  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12410    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12411    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12412    deplibs_check_method reload_flag reload_cmds need_locks \
12413    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12414    lt_cv_sys_global_symbol_to_c_name_address \
12415    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12416    old_postinstall_cmds old_postuninstall_cmds \
12417    compiler_CXX \
12418    CC_CXX \
12419    LD_CXX \
12420    lt_prog_compiler_wl_CXX \
12421    lt_prog_compiler_pic_CXX \
12422    lt_prog_compiler_static_CXX \
12423    lt_prog_compiler_no_builtin_flag_CXX \
12424    export_dynamic_flag_spec_CXX \
12425    thread_safe_flag_spec_CXX \
12426    whole_archive_flag_spec_CXX \
12427    enable_shared_with_static_runtimes_CXX \
12428    old_archive_cmds_CXX \
12429    old_archive_from_new_cmds_CXX \
12430    predep_objects_CXX \
12431    postdep_objects_CXX \
12432    predeps_CXX \
12433    postdeps_CXX \
12434    compiler_lib_search_path_CXX \
12435    archive_cmds_CXX \
12436    archive_expsym_cmds_CXX \
12437    postinstall_cmds_CXX \
12438    postuninstall_cmds_CXX \
12439    old_archive_from_expsyms_cmds_CXX \
12440    allow_undefined_flag_CXX \
12441    no_undefined_flag_CXX \
12442    export_symbols_cmds_CXX \
12443    hardcode_libdir_flag_spec_CXX \
12444    hardcode_libdir_flag_spec_ld_CXX \
12445    hardcode_libdir_separator_CXX \
12446    hardcode_automatic_CXX \
12447    module_cmds_CXX \
12448    module_expsym_cmds_CXX \
12449    lt_cv_prog_compiler_c_o_CXX \
12450    exclude_expsyms_CXX \
12451    include_expsyms_CXX; do
12452
12453    case $var in
12454    old_archive_cmds_CXX | \
12455    old_archive_from_new_cmds_CXX | \
12456    archive_cmds_CXX | \
12457    archive_expsym_cmds_CXX | \
12458    module_cmds_CXX | \
12459    module_expsym_cmds_CXX | \
12460    old_archive_from_expsyms_cmds_CXX | \
12461    export_symbols_cmds_CXX | \
12462    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12463    postinstall_cmds | postuninstall_cmds | \
12464    old_postinstall_cmds | old_postuninstall_cmds | \
12465    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12466      # Double-quote double-evaled strings.
12467      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12468      ;;
12469    *)
12470      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12471      ;;
12472    esac
12473  done
12474
12475  case $lt_echo in
12476  *'\$0 --fallback-echo"')
12477    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12478    ;;
12479  esac
12480
12481cfgfile="$ofile"
12482
12483  cat <<__EOF__ >> "$cfgfile"
12484# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12485
12486# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12487
12488# Shell to use when invoking shell scripts.
12489SHELL=$lt_SHELL
12490
12491# Whether or not to build shared libraries.
12492build_libtool_libs=$enable_shared
12493
12494# Whether or not to build static libraries.
12495build_old_libs=$enable_static
12496
12497# Whether or not to add -lc for building shared libraries.
12498build_libtool_need_lc=$archive_cmds_need_lc_CXX
12499
12500# Whether or not to disallow shared libs when runtime libs are static
12501allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12502
12503# Whether or not to optimize for fast installation.
12504fast_install=$enable_fast_install
12505
12506# The host system.
12507host_alias=$host_alias
12508host=$host
12509
12510# An echo program that does not interpret backslashes.
12511echo=$lt_echo
12512
12513# The archiver.
12514AR=$lt_AR
12515AR_FLAGS=$lt_AR_FLAGS
12516
12517# A C compiler.
12518LTCC=$lt_LTCC
12519
12520# A language-specific compiler.
12521CC=$lt_compiler_CXX
12522
12523# Is the compiler the GNU C compiler?
12524with_gcc=$GCC_CXX
12525
12526# An ERE matcher.
12527EGREP=$lt_EGREP
12528
12529# The linker used to build libraries.
12530LD=$lt_LD_CXX
12531
12532# Whether we need hard or soft links.
12533LN_S=$lt_LN_S
12534
12535# A BSD-compatible nm program.
12536NM=$lt_NM
12537
12538# A symbol stripping program
12539STRIP=$STRIP
12540
12541# Used to examine libraries when file_magic_cmd begins "file"
12542MAGIC_CMD=$MAGIC_CMD
12543
12544# Used on cygwin: DLL creation program.
12545DLLTOOL="$DLLTOOL"
12546
12547# Used on cygwin: object dumper.
12548OBJDUMP="$OBJDUMP"
12549
12550# Used on cygwin: assembler.
12551AS="$AS"
12552
12553# The name of the directory that contains temporary libtool files.
12554objdir=$objdir
12555
12556# How to create reloadable object files.
12557reload_flag=$lt_reload_flag
12558reload_cmds=$lt_reload_cmds
12559
12560# How to pass a linker flag through the compiler.
12561wl=$lt_lt_prog_compiler_wl_CXX
12562
12563# Object file suffix (normally "o").
12564objext="$ac_objext"
12565
12566# Old archive suffix (normally "a").
12567libext="$libext"
12568
12569# Shared library suffix (normally ".so").
12570shrext='$shrext'
12571
12572# Executable file suffix (normally "").
12573exeext="$exeext"
12574
12575# Additional compiler flags for building library objects.
12576pic_flag=$lt_lt_prog_compiler_pic_CXX
12577pic_mode=$pic_mode
12578
12579# What is the maximum length of a command?
12580max_cmd_len=$lt_cv_sys_max_cmd_len
12581
12582# Does compiler simultaneously support -c and -o options?
12583compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12584
12585# Must we lock files when doing compilation ?
12586need_locks=$lt_need_locks
12587
12588# Do we need the lib prefix for modules?
12589need_lib_prefix=$need_lib_prefix
12590
12591# Do we need a version for libraries?
12592need_version=$need_version
12593
12594# Whether dlopen is supported.
12595dlopen_support=$enable_dlopen
12596
12597# Whether dlopen of programs is supported.
12598dlopen_self=$enable_dlopen_self
12599
12600# Whether dlopen of statically linked programs is supported.
12601dlopen_self_static=$enable_dlopen_self_static
12602
12603# Compiler flag to prevent dynamic linking.
12604link_static_flag=$lt_lt_prog_compiler_static_CXX
12605
12606# Compiler flag to turn off builtin functions.
12607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12608
12609# Compiler flag to allow reflexive dlopens.
12610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12611
12612# Compiler flag to generate shared objects directly from archives.
12613whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12614
12615# Compiler flag to generate thread-safe objects.
12616thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12617
12618# Library versioning type.
12619version_type=$version_type
12620
12621# Format of library name prefix.
12622libname_spec=$lt_libname_spec
12623
12624# List of archive names.  First name is the real one, the rest are links.
12625# The last name is the one that the linker finds with -lNAME.
12626library_names_spec=$lt_library_names_spec
12627
12628# The coded name of the library, if different from the real name.
12629soname_spec=$lt_soname_spec
12630
12631# Commands used to build and install an old-style archive.
12632RANLIB=$lt_RANLIB
12633old_archive_cmds=$lt_old_archive_cmds_CXX
12634old_postinstall_cmds=$lt_old_postinstall_cmds
12635old_postuninstall_cmds=$lt_old_postuninstall_cmds
12636
12637# Create an old-style archive from a shared archive.
12638old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12639
12640# Create a temporary old-style archive to link instead of a shared archive.
12641old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12642
12643# Commands used to build and install a shared archive.
12644archive_cmds=$lt_archive_cmds_CXX
12645archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12646postinstall_cmds=$lt_postinstall_cmds
12647postuninstall_cmds=$lt_postuninstall_cmds
12648
12649# Commands used to build a loadable module (assumed same as above if empty)
12650module_cmds=$lt_module_cmds_CXX
12651module_expsym_cmds=$lt_module_expsym_cmds_CXX
12652
12653# Commands to strip libraries.
12654old_striplib=$lt_old_striplib
12655striplib=$lt_striplib
12656
12657# Dependencies to place before the objects being linked to create a
12658# shared library.
12659predep_objects=$lt_predep_objects_CXX
12660
12661# Dependencies to place after the objects being linked to create a
12662# shared library.
12663postdep_objects=$lt_postdep_objects_CXX
12664
12665# Dependencies to place before the objects being linked to create a
12666# shared library.
12667predeps=$lt_predeps_CXX
12668
12669# Dependencies to place after the objects being linked to create a
12670# shared library.
12671postdeps=$lt_postdeps_CXX
12672
12673# The library search path used internally by the compiler when linking
12674# a shared library.
12675compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12676
12677# Method to check whether dependent libraries are shared objects.
12678deplibs_check_method=$lt_deplibs_check_method
12679
12680# Command to use when deplibs_check_method == file_magic.
12681file_magic_cmd=$lt_file_magic_cmd
12682
12683# Flag that allows shared libraries with undefined symbols to be built.
12684allow_undefined_flag=$lt_allow_undefined_flag_CXX
12685
12686# Flag that forces no undefined symbols.
12687no_undefined_flag=$lt_no_undefined_flag_CXX
12688
12689# Commands used to finish a libtool library installation in a directory.
12690finish_cmds=$lt_finish_cmds
12691
12692# Same as above, but a single script fragment to be evaled but not shown.
12693finish_eval=$lt_finish_eval
12694
12695# Take the output of nm and produce a listing of raw symbols and C names.
12696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12697
12698# Transform the output of nm in a proper C declaration
12699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12700
12701# Transform the output of nm in a C name address pair
12702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12703
12704# This is the shared library runtime path variable.
12705runpath_var=$runpath_var
12706
12707# This is the shared library path variable.
12708shlibpath_var=$shlibpath_var
12709
12710# Is shlibpath searched before the hard-coded library search path?
12711shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12712
12713# How to hardcode a shared library path into an executable.
12714hardcode_action=$hardcode_action_CXX
12715
12716# Whether we should hardcode library paths into libraries.
12717hardcode_into_libs=$hardcode_into_libs
12718
12719# Flag to hardcode \$libdir into a binary during linking.
12720# This must work even if \$libdir does not exist.
12721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12722
12723# If ld is used when linking, flag to hardcode \$libdir into
12724# a binary during linking. This must work even if \$libdir does
12725# not exist.
12726hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12727
12728# Whether we need a single -rpath flag with a separated argument.
12729hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12730
12731# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12732# resulting binary.
12733hardcode_direct=$hardcode_direct_CXX
12734
12735# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12736# resulting binary.
12737hardcode_minus_L=$hardcode_minus_L_CXX
12738
12739# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12740# the resulting binary.
12741hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12742
12743# Set to yes if building a shared library automatically hardcodes DIR into the library
12744# and all subsequent libraries and executables linked against it.
12745hardcode_automatic=$hardcode_automatic_CXX
12746
12747# Variables whose values should be saved in libtool wrapper scripts and
12748# restored at relink time.
12749variables_saved_for_relink="$variables_saved_for_relink"
12750
12751# Whether libtool must link a program against all its dependency libraries.
12752link_all_deplibs=$link_all_deplibs_CXX
12753
12754# Compile-time system search path for libraries
12755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12756
12757# Run-time system search path for libraries
12758sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12759
12760# Fix the shell variable \$srcfile for the compiler.
12761fix_srcfile_path="$fix_srcfile_path_CXX"
12762
12763# Set to yes if exported symbols are required.
12764always_export_symbols=$always_export_symbols_CXX
12765
12766# The commands to list exported symbols.
12767export_symbols_cmds=$lt_export_symbols_cmds_CXX
12768
12769# The commands to extract the exported symbol list from a shared archive.
12770extract_expsyms_cmds=$lt_extract_expsyms_cmds
12771
12772# Symbols that should not be listed in the preloaded symbols.
12773exclude_expsyms=$lt_exclude_expsyms_CXX
12774
12775# Symbols that must always be exported.
12776include_expsyms=$lt_include_expsyms_CXX
12777
12778# ### END LIBTOOL TAG CONFIG: $tagname
12779
12780__EOF__
12781
12782
12783else
12784  # If there is no Makefile yet, we rely on a make rule to execute
12785  # `config.status --recheck' to rerun these tests and create the
12786  # libtool script then.
12787  test -f Makefile && make "$ltmain"
12788fi
12789
12790
12791ac_ext=c
12792ac_cpp='$CPP $CPPFLAGS'
12793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797CC=$lt_save_CC
12798LDCXX=$LD
12799LD=$lt_save_LD
12800GCC=$lt_save_GCC
12801with_gnu_ldcxx=$with_gnu_ld
12802with_gnu_ld=$lt_save_with_gnu_ld
12803lt_cv_path_LDCXX=$lt_cv_path_LD
12804lt_cv_path_LD=$lt_save_path_LD
12805lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12806lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12807
12808	else
12809	  tagname=""
12810	fi
12811	;;
12812
12813      F77)
12814	if test -n "$F77" && test "X$F77" != "Xno"; then
12815
12816ac_ext=f
12817ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12818ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12820
12821
12822archive_cmds_need_lc_F77=no
12823allow_undefined_flag_F77=
12824always_export_symbols_F77=no
12825archive_expsym_cmds_F77=
12826export_dynamic_flag_spec_F77=
12827hardcode_direct_F77=no
12828hardcode_libdir_flag_spec_F77=
12829hardcode_libdir_flag_spec_ld_F77=
12830hardcode_libdir_separator_F77=
12831hardcode_minus_L_F77=no
12832hardcode_automatic_F77=no
12833module_cmds_F77=
12834module_expsym_cmds_F77=
12835link_all_deplibs_F77=unknown
12836old_archive_cmds_F77=$old_archive_cmds
12837no_undefined_flag_F77=
12838whole_archive_flag_spec_F77=
12839enable_shared_with_static_runtimes_F77=no
12840
12841# Source file extension for f77 test sources.
12842ac_ext=f
12843
12844# Object file extension for compiled f77 test sources.
12845objext=o
12846objext_F77=$objext
12847
12848# Code to be used in simple compile tests
12849lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12850
12851# Code to be used in simple link tests
12852lt_simple_link_test_code="      program t\n      end\n"
12853
12854# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12855
12856# If no C compiler was specified, use CC.
12857LTCC=${LTCC-"$CC"}
12858
12859# Allow CC to be a program name with arguments.
12860compiler=$CC
12861
12862
12863# Allow CC to be a program name with arguments.
12864lt_save_CC="$CC"
12865CC=${F77-"f77"}
12866compiler=$CC
12867compiler_F77=$CC
12868cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12869
12870echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12871echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12872echo "$as_me:$LINENO: result: $can_build_shared" >&5
12873echo "${ECHO_T}$can_build_shared" >&6
12874
12875echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12876echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12877test "$can_build_shared" = "no" && enable_shared=no
12878
12879# On AIX, shared libraries and static libraries use the same namespace, and
12880# are all built from PIC.
12881case "$host_os" in
12882aix3*)
12883  test "$enable_shared" = yes && enable_static=no
12884  if test -n "$RANLIB"; then
12885    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12886    postinstall_cmds='$RANLIB $lib'
12887  fi
12888  ;;
12889aix4*)
12890  test "$enable_shared" = yes && enable_static=no
12891  ;;
12892esac
12893echo "$as_me:$LINENO: result: $enable_shared" >&5
12894echo "${ECHO_T}$enable_shared" >&6
12895
12896echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12897echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12898# Make sure either enable_shared or enable_static is yes.
12899test "$enable_shared" = yes || enable_static=yes
12900echo "$as_me:$LINENO: result: $enable_static" >&5
12901echo "${ECHO_T}$enable_static" >&6
12902
12903test "$ld_shlibs_F77" = no && can_build_shared=no
12904
12905GCC_F77="$G77"
12906LD_F77="$LD"
12907
12908lt_prog_compiler_wl_F77=
12909lt_prog_compiler_pic_F77=
12910lt_prog_compiler_static_F77=
12911
12912echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12913echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12914
12915  if test "$GCC" = yes; then
12916    lt_prog_compiler_wl_F77='-Wl,'
12917    lt_prog_compiler_static_F77='-static'
12918
12919    case $host_os in
12920      aix*)
12921      # All AIX code is PIC.
12922      if test "$host_cpu" = ia64; then
12923	# AIX 5 now supports IA64 processor
12924	lt_prog_compiler_static_F77='-Bstatic'
12925      fi
12926      ;;
12927
12928    amigaos*)
12929      # FIXME: we need at least 68020 code to build shared libraries, but
12930      # adding the `-m68020' flag to GCC prevents building anything better,
12931      # like `-m68040'.
12932      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12933      ;;
12934
12935    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12936      # PIC is the default for these OSes.
12937      ;;
12938
12939    mingw* | pw32* | os2*)
12940      # This hack is so that the source file can tell whether it is being
12941      # built for inclusion in a dll (and should export symbols for example).
12942      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12943      ;;
12944
12945    darwin* | rhapsody*)
12946      # PIC is the default on this platform
12947      # Common symbols not allowed in MH_DYLIB files
12948      lt_prog_compiler_pic_F77='-fno-common'
12949      ;;
12950
12951    msdosdjgpp*)
12952      # Just because we use GCC doesn't mean we suddenly get shared libraries
12953      # on systems that don't support them.
12954      lt_prog_compiler_can_build_shared_F77=no
12955      enable_shared=no
12956      ;;
12957
12958    sysv4*MP*)
12959      if test -d /usr/nec; then
12960	lt_prog_compiler_pic_F77=-Kconform_pic
12961      fi
12962      ;;
12963
12964    hpux*)
12965      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12966      # not for PA HP-UX.
12967      case "$host_cpu" in
12968      hppa*64*|ia64*)
12969	# +Z the default
12970	;;
12971      *)
12972	lt_prog_compiler_pic_F77='-fPIC'
12973	;;
12974      esac
12975      ;;
12976
12977    *)
12978      lt_prog_compiler_pic_F77='-fPIC'
12979      ;;
12980    esac
12981  else
12982    # PORTME Check for flag to pass linker flags through the system compiler.
12983    case $host_os in
12984    aix*)
12985      lt_prog_compiler_wl_F77='-Wl,'
12986      if test "$host_cpu" = ia64; then
12987	# AIX 5 now supports IA64 processor
12988	lt_prog_compiler_static_F77='-Bstatic'
12989      else
12990	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12991      fi
12992      ;;
12993
12994    mingw* | pw32* | os2*)
12995      # This hack is so that the source file can tell whether it is being
12996      # built for inclusion in a dll (and should export symbols for example).
12997      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12998      ;;
12999
13000    hpux9* | hpux10* | hpux11*)
13001      lt_prog_compiler_wl_F77='-Wl,'
13002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13003      # not for PA HP-UX.
13004      case "$host_cpu" in
13005      hppa*64*|ia64*)
13006	# +Z the default
13007	;;
13008      *)
13009	lt_prog_compiler_pic_F77='+Z'
13010	;;
13011      esac
13012      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13013      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13014      ;;
13015
13016    irix5* | irix6* | nonstopux*)
13017      lt_prog_compiler_wl_F77='-Wl,'
13018      # PIC (with -KPIC) is the default.
13019      lt_prog_compiler_static_F77='-non_shared'
13020      ;;
13021
13022    newsos6)
13023      lt_prog_compiler_pic_F77='-KPIC'
13024      lt_prog_compiler_static_F77='-Bstatic'
13025      ;;
13026
13027    linux*)
13028      case $CC in
13029      icc|ecc)
13030	lt_prog_compiler_wl_F77='-Wl,'
13031	lt_prog_compiler_pic_F77='-KPIC'
13032	lt_prog_compiler_static_F77='-static'
13033        ;;
13034      ccc)
13035        lt_prog_compiler_wl_F77='-Wl,'
13036        # All Alpha code is PIC.
13037        lt_prog_compiler_static_F77='-non_shared'
13038        ;;
13039      esac
13040      ;;
13041
13042    osf3* | osf4* | osf5*)
13043      lt_prog_compiler_wl_F77='-Wl,'
13044      # All OSF/1 code is PIC.
13045      lt_prog_compiler_static_F77='-non_shared'
13046      ;;
13047
13048    sco3.2v5*)
13049      lt_prog_compiler_pic_F77='-Kpic'
13050      lt_prog_compiler_static_F77='-dn'
13051      ;;
13052
13053    solaris*)
13054      lt_prog_compiler_wl_F77='-Wl,'
13055      lt_prog_compiler_pic_F77='-KPIC'
13056      lt_prog_compiler_static_F77='-Bstatic'
13057      ;;
13058
13059    sunos4*)
13060      lt_prog_compiler_wl_F77='-Qoption ld '
13061      lt_prog_compiler_pic_F77='-PIC'
13062      lt_prog_compiler_static_F77='-Bstatic'
13063      ;;
13064
13065    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13066      lt_prog_compiler_wl_F77='-Wl,'
13067      lt_prog_compiler_pic_F77='-KPIC'
13068      lt_prog_compiler_static_F77='-Bstatic'
13069      ;;
13070
13071    sysv4*MP*)
13072      if test -d /usr/nec ;then
13073	lt_prog_compiler_pic_F77='-Kconform_pic'
13074	lt_prog_compiler_static_F77='-Bstatic'
13075      fi
13076      ;;
13077
13078    uts4*)
13079      lt_prog_compiler_pic_F77='-pic'
13080      lt_prog_compiler_static_F77='-Bstatic'
13081      ;;
13082
13083    *)
13084      lt_prog_compiler_can_build_shared_F77=no
13085      ;;
13086    esac
13087  fi
13088
13089echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13090echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13091
13092#
13093# Check to make sure the PIC flag actually works.
13094#
13095if test -n "$lt_prog_compiler_pic_F77"; then
13096  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13097echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13098if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13099  echo $ECHO_N "(cached) $ECHO_C" >&6
13100else
13101  lt_prog_compiler_pic_works_F77=no
13102  ac_outfile=conftest.$ac_objext
13103   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13104   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13105   # Insert the option either (1) after the last *FLAGS variable, or
13106   # (2) before a word containing "conftest.", or (3) at the end.
13107   # Note that $ac_compile itself does not contain backslashes and begins
13108   # with a dollar sign (not a hyphen), so the echo should work correctly.
13109   # The option is referenced via a variable to avoid confusing sed.
13110   lt_compile=`echo "$ac_compile" | $SED \
13111   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13113   -e 's:$: $lt_compiler_flag:'`
13114   (eval echo "\"\$as_me:13114: $lt_compile\"" >&5)
13115   (eval "$lt_compile" 2>conftest.err)
13116   ac_status=$?
13117   cat conftest.err >&5
13118   echo "$as_me:13118: \$? = $ac_status" >&5
13119   if (exit $ac_status) && test -s "$ac_outfile"; then
13120     # The compiler can only warn and ignore the option if not recognized
13121     # So say no if there are warnings
13122     if test ! -s conftest.err; then
13123       lt_prog_compiler_pic_works_F77=yes
13124     fi
13125   fi
13126   $rm conftest*
13127
13128fi
13129echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13130echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13131
13132if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13133    case $lt_prog_compiler_pic_F77 in
13134     "" | " "*) ;;
13135     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13136     esac
13137else
13138    lt_prog_compiler_pic_F77=
13139     lt_prog_compiler_can_build_shared_F77=no
13140fi
13141
13142fi
13143case "$host_os" in
13144  # For platforms which do not support PIC, -DPIC is meaningless:
13145  *djgpp*)
13146    lt_prog_compiler_pic_F77=
13147    ;;
13148  *)
13149    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13150    ;;
13151esac
13152
13153echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13154echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13155if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13156  echo $ECHO_N "(cached) $ECHO_C" >&6
13157else
13158  lt_cv_prog_compiler_c_o_F77=no
13159   $rm -r conftest 2>/dev/null
13160   mkdir conftest
13161   cd conftest
13162   mkdir out
13163   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13164
13165   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13166   # that will create temporary files in the current directory regardless of
13167   # the output directory.  Thus, making CWD read-only will cause this test
13168   # to fail, enabling locking or at least warning the user not to do parallel
13169   # builds.
13170   chmod -w .
13171
13172   lt_compiler_flag="-o out/conftest2.$ac_objext"
13173   # Insert the option either (1) after the last *FLAGS variable, or
13174   # (2) before a word containing "conftest.", or (3) at the end.
13175   # Note that $ac_compile itself does not contain backslashes and begins
13176   # with a dollar sign (not a hyphen), so the echo should work correctly.
13177   lt_compile=`echo "$ac_compile" | $SED \
13178   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13180   -e 's:$: $lt_compiler_flag:'`
13181   (eval echo "\"\$as_me:13181: $lt_compile\"" >&5)
13182   (eval "$lt_compile" 2>out/conftest.err)
13183   ac_status=$?
13184   cat out/conftest.err >&5
13185   echo "$as_me:13185: \$? = $ac_status" >&5
13186   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13187   then
13188     # The compiler can only warn and ignore the option if not recognized
13189     # So say no if there are warnings
13190     if test ! -s out/conftest.err; then
13191       lt_cv_prog_compiler_c_o_F77=yes
13192     fi
13193   fi
13194   chmod u+w .
13195   $rm conftest* out/*
13196   rmdir out
13197   cd ..
13198   rmdir conftest
13199   $rm conftest*
13200
13201fi
13202echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13203echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13204
13205
13206hard_links="nottested"
13207if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13208  # do not overwrite the value of need_locks provided by the user
13209  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13210echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13211  hard_links=yes
13212  $rm conftest*
13213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13214  touch conftest.a
13215  ln conftest.a conftest.b 2>&5 || hard_links=no
13216  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217  echo "$as_me:$LINENO: result: $hard_links" >&5
13218echo "${ECHO_T}$hard_links" >&6
13219  if test "$hard_links" = no; then
13220    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13221echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13222    need_locks=warn
13223  fi
13224else
13225  need_locks=no
13226fi
13227
13228echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13229echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13230
13231  runpath_var=
13232  allow_undefined_flag_F77=
13233  enable_shared_with_static_runtimes_F77=no
13234  archive_cmds_F77=
13235  archive_expsym_cmds_F77=
13236  old_archive_From_new_cmds_F77=
13237  old_archive_from_expsyms_cmds_F77=
13238  export_dynamic_flag_spec_F77=
13239  whole_archive_flag_spec_F77=
13240  thread_safe_flag_spec_F77=
13241  hardcode_libdir_flag_spec_F77=
13242  hardcode_libdir_flag_spec_ld_F77=
13243  hardcode_libdir_separator_F77=
13244  hardcode_direct_F77=no
13245  hardcode_minus_L_F77=no
13246  hardcode_shlibpath_var_F77=unsupported
13247  link_all_deplibs_F77=unknown
13248  hardcode_automatic_F77=no
13249  module_cmds_F77=
13250  module_expsym_cmds_F77=
13251  always_export_symbols_F77=no
13252  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13253  # include_expsyms should be a list of space-separated symbols to be *always*
13254  # included in the symbol list
13255  include_expsyms_F77=
13256  # exclude_expsyms can be an extended regexp of symbols to exclude
13257  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13258  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13259  # as well as any symbol that contains `d'.
13260  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13261  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13262  # platforms (ab)use it in PIC code, but their linkers get confused if
13263  # the symbol is explicitly referenced.  Since portable code cannot
13264  # rely on this symbol name, it's probably fine to never include it in
13265  # preloaded symbol tables.
13266  extract_expsyms_cmds=
13267
13268  case $host_os in
13269  cygwin* | mingw* | pw32*)
13270    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13271    # When not using gcc, we currently assume that we are using
13272    # Microsoft Visual C++.
13273    if test "$GCC" != yes; then
13274      with_gnu_ld=no
13275    fi
13276    ;;
13277  openbsd*)
13278    with_gnu_ld=no
13279    ;;
13280  esac
13281
13282  ld_shlibs_F77=yes
13283  if test "$with_gnu_ld" = yes; then
13284    # If archive_cmds runs LD, not CC, wlarc should be empty
13285    wlarc='${wl}'
13286
13287    # See if GNU ld supports shared libraries.
13288    case $host_os in
13289    aix3* | aix4* | aix5*)
13290      # On AIX/PPC, the GNU linker is very broken
13291      if test "$host_cpu" != ia64; then
13292	ld_shlibs_F77=no
13293	cat <<EOF 1>&2
13294
13295*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13296*** to be unable to reliably create shared libraries on AIX.
13297*** Therefore, libtool is disabling shared libraries support.  If you
13298*** really care for shared libraries, you may want to modify your PATH
13299*** so that a non-GNU linker is found, and then restart.
13300
13301EOF
13302      fi
13303      ;;
13304
13305    amigaos*)
13306      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)'
13307      hardcode_libdir_flag_spec_F77='-L$libdir'
13308      hardcode_minus_L_F77=yes
13309
13310      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13311      # that the semantics of dynamic libraries on AmigaOS, at least up
13312      # to version 4, is to share data among multiple programs linked
13313      # with the same dynamic library.  Since this doesn't match the
13314      # behavior of shared libraries on other platforms, we can't use
13315      # them.
13316      ld_shlibs_F77=no
13317      ;;
13318
13319    beos*)
13320      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13321	allow_undefined_flag_F77=unsupported
13322	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13323	# support --undefined.  This deserves some investigation.  FIXME
13324	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325      else
13326	ld_shlibs_F77=no
13327      fi
13328      ;;
13329
13330    cygwin* | mingw* | pw32*)
13331      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13332      # as there is no search path for DLLs.
13333      hardcode_libdir_flag_spec_F77='-L$libdir'
13334      allow_undefined_flag_F77=unsupported
13335      always_export_symbols_F77=no
13336      enable_shared_with_static_runtimes_F77=yes
13337      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13338
13339      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13340        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13341	# If the export-symbols file already is a .def file (1st line
13342	# is EXPORTS), use it as is; otherwise, prepend...
13343	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13344	  cp $export_symbols $output_objdir/$soname.def;
13345	else
13346	  echo EXPORTS > $output_objdir/$soname.def;
13347	  cat $export_symbols >> $output_objdir/$soname.def;
13348	fi~
13349	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13350      else
13351	ld_shlibs=no
13352      fi
13353      ;;
13354
13355    netbsd*)
13356      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13357	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13358	wlarc=
13359      else
13360	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13361	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13362      fi
13363      ;;
13364
13365    solaris* | sysv5*)
13366      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13367	ld_shlibs_F77=no
13368	cat <<EOF 1>&2
13369
13370*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13371*** create shared libraries on Solaris systems.  Therefore, libtool
13372*** is disabling shared libraries support.  We urge you to upgrade GNU
13373*** binutils to release 2.9.1 or newer.  Another option is to modify
13374*** your PATH or compiler configuration so that the native linker is
13375*** used, and then restart.
13376
13377EOF
13378      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13379	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13381      else
13382	ld_shlibs_F77=no
13383      fi
13384      ;;
13385
13386    sunos4*)
13387      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13388      wlarc=
13389      hardcode_direct_F77=yes
13390      hardcode_shlibpath_var_F77=no
13391      ;;
13392
13393    *)
13394      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13395	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13397      else
13398	ld_shlibs_F77=no
13399      fi
13400      ;;
13401    esac
13402
13403    if test "$ld_shlibs_F77" = yes; then
13404      runpath_var=LD_RUN_PATH
13405      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13406      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13407      # ancient GNU ld didn't support --whole-archive et. al.
13408      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13409 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13410      else
13411  	whole_archive_flag_spec_F77=
13412      fi
13413    fi
13414  else
13415    # PORTME fill in a description of your system's linker (not GNU ld)
13416    case $host_os in
13417    aix3*)
13418      allow_undefined_flag_F77=unsupported
13419      always_export_symbols_F77=yes
13420      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'
13421      # Note: this linker hardcodes the directories in LIBPATH if there
13422      # are no directories specified by -L.
13423      hardcode_minus_L_F77=yes
13424      if test "$GCC" = yes && test -z "$link_static_flag"; then
13425	# Neither direct hardcoding nor static linking is supported with a
13426	# broken collect2.
13427	hardcode_direct_F77=unsupported
13428      fi
13429      ;;
13430
13431    aix4* | aix5*)
13432      if test "$host_cpu" = ia64; then
13433	# On IA64, the linker does run time linking by default, so we don't
13434	# have to do anything special.
13435	aix_use_runtimelinking=no
13436	exp_sym_flag='-Bexport'
13437	no_entry_flag=""
13438      else
13439	# If we're using GNU nm, then we don't want the "-C" option.
13440	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13441	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13442	  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'
13443	else
13444	  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'
13445	fi
13446	aix_use_runtimelinking=no
13447
13448	# Test if we are trying to use run time linking or normal
13449	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13450	# need to do runtime linking.
13451	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13452	  for ld_flag in $LDFLAGS; do
13453  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13454  	    aix_use_runtimelinking=yes
13455  	    break
13456  	  fi
13457	  done
13458	esac
13459
13460	exp_sym_flag='-bexport'
13461	no_entry_flag='-bnoentry'
13462      fi
13463
13464      # When large executables or shared objects are built, AIX ld can
13465      # have problems creating the table of contents.  If linking a library
13466      # or program results in "error TOC overflow" add -mminimal-toc to
13467      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13468      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13469
13470      archive_cmds_F77=''
13471      hardcode_direct_F77=yes
13472      hardcode_libdir_separator_F77=':'
13473      link_all_deplibs_F77=yes
13474
13475      if test "$GCC" = yes; then
13476	case $host_os in aix4.012|aix4.012.*)
13477	# We only want to do this on AIX 4.2 and lower, the check
13478	# below for broken collect2 doesn't work under 4.3+
13479	  collect2name=`${CC} -print-prog-name=collect2`
13480	  if test -f "$collect2name" && \
13481  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13482	  then
13483  	  # We have reworked collect2
13484  	  hardcode_direct_F77=yes
13485	  else
13486  	  # We have old collect2
13487  	  hardcode_direct_F77=unsupported
13488  	  # It fails to find uninstalled libraries when the uninstalled
13489  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13490  	  # to unsupported forces relinking
13491  	  hardcode_minus_L_F77=yes
13492  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13493  	  hardcode_libdir_separator_F77=
13494	  fi
13495	esac
13496	shared_flag='-shared'
13497      else
13498	# not using gcc
13499	if test "$host_cpu" = ia64; then
13500  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501  	# chokes on -Wl,-G. The following line is correct:
13502	  shared_flag='-G'
13503	else
13504  	if test "$aix_use_runtimelinking" = yes; then
13505	    shared_flag='${wl}-G'
13506	  else
13507	    shared_flag='${wl}-bM:SRE'
13508  	fi
13509	fi
13510      fi
13511
13512      # It seems that -bexpall does not export symbols beginning with
13513      # underscore (_), so it is better to generate a list of symbols to export.
13514      always_export_symbols_F77=yes
13515      if test "$aix_use_runtimelinking" = yes; then
13516	# Warning - without using the other runtime loading flags (-brtl),
13517	# -berok will link without error, but may produce a broken library.
13518	allow_undefined_flag_F77='-berok'
13519       # Determine the default libpath from the value encoded in an empty executable.
13520       cat >conftest.$ac_ext <<_ACEOF
13521      program main
13522
13523      end
13524_ACEOF
13525rm -f conftest.$ac_objext conftest$ac_exeext
13526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527  (eval $ac_link) 2>conftest.er1
13528  ac_status=$?
13529  grep -v '^ *+' conftest.er1 >conftest.err
13530  rm -f conftest.er1
13531  cat conftest.err >&5
13532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533  (exit $ac_status); } &&
13534	 { ac_try='test -z "$ac_f77_werror_flag"
13535			 || test ! -s conftest.err'
13536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537  (eval $ac_try) 2>&5
13538  ac_status=$?
13539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540  (exit $ac_status); }; } &&
13541	 { ac_try='test -s conftest$ac_exeext'
13542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543  (eval $ac_try) 2>&5
13544  ac_status=$?
13545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546  (exit $ac_status); }; }; then
13547
13548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13549}'`
13550# Check for a 64-bit object if we didn't find anything.
13551if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13552}'`; fi
13553else
13554  echo "$as_me: failed program was:" >&5
13555sed 's/^/| /' conftest.$ac_ext >&5
13556
13557fi
13558rm -f conftest.err conftest.$ac_objext \
13559      conftest$ac_exeext conftest.$ac_ext
13560if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13561
13562       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13563	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13564       else
13565	if test "$host_cpu" = ia64; then
13566	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13567	  allow_undefined_flag_F77="-z nodefs"
13568	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13569	else
13570	 # Determine the default libpath from the value encoded in an empty executable.
13571	 cat >conftest.$ac_ext <<_ACEOF
13572      program main
13573
13574      end
13575_ACEOF
13576rm -f conftest.$ac_objext conftest$ac_exeext
13577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578  (eval $ac_link) 2>conftest.er1
13579  ac_status=$?
13580  grep -v '^ *+' conftest.er1 >conftest.err
13581  rm -f conftest.er1
13582  cat conftest.err >&5
13583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584  (exit $ac_status); } &&
13585	 { ac_try='test -z "$ac_f77_werror_flag"
13586			 || test ! -s conftest.err'
13587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588  (eval $ac_try) 2>&5
13589  ac_status=$?
13590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591  (exit $ac_status); }; } &&
13592	 { ac_try='test -s conftest$ac_exeext'
13593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594  (eval $ac_try) 2>&5
13595  ac_status=$?
13596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597  (exit $ac_status); }; }; then
13598
13599aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13600}'`
13601# Check for a 64-bit object if we didn't find anything.
13602if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13603}'`; fi
13604else
13605  echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
13608fi
13609rm -f conftest.err conftest.$ac_objext \
13610      conftest$ac_exeext conftest.$ac_ext
13611if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13612
13613	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13614	  # Warning - without using the other run time loading flags,
13615	  # -berok will link without error, but may produce a broken library.
13616	  no_undefined_flag_F77=' ${wl}-bernotok'
13617	  allow_undefined_flag_F77=' ${wl}-berok'
13618	  # -bexpall does not export symbols beginning with underscore (_)
13619	  always_export_symbols_F77=yes
13620	  # Exported symbols can be pulled into shared objects from archives
13621	  whole_archive_flag_spec_F77=' '
13622	  archive_cmds_need_lc_F77=yes
13623	  # This is similar to how AIX traditionally builds it's shared libraries.
13624	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13625	fi
13626      fi
13627      ;;
13628
13629    amigaos*)
13630      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)'
13631      hardcode_libdir_flag_spec_F77='-L$libdir'
13632      hardcode_minus_L_F77=yes
13633      # see comment about different semantics on the GNU ld section
13634      ld_shlibs_F77=no
13635      ;;
13636
13637    bsdi4*)
13638      export_dynamic_flag_spec_F77=-rdynamic
13639      ;;
13640
13641    cygwin* | mingw* | pw32*)
13642      # When not using gcc, we currently assume that we are using
13643      # Microsoft Visual C++.
13644      # hardcode_libdir_flag_spec is actually meaningless, as there is
13645      # no search path for DLLs.
13646      hardcode_libdir_flag_spec_F77=' '
13647      allow_undefined_flag_F77=unsupported
13648      # Tell ltmain to make .lib files, not .a files.
13649      libext=lib
13650      # Tell ltmain to make .dll files, not .so files.
13651      shrext=".dll"
13652      # FIXME: Setting linknames here is a bad hack.
13653      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13654      # The linker will automatically build a .lib file if we build a DLL.
13655      old_archive_From_new_cmds_F77='true'
13656      # FIXME: Should let the user specify the lib program.
13657      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13658      fix_srcfile_path='`cygpath -w "$srcfile"`'
13659      enable_shared_with_static_runtimes_F77=yes
13660      ;;
13661
13662    darwin* | rhapsody*)
13663    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13664      archive_cmds_need_lc_F77=no
13665      case "$host_os" in
13666      rhapsody* | darwin1.[012])
13667	allow_undefined_flag_F77='-undefined suppress'
13668	;;
13669      *) # Darwin 1.3 on
13670	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13671	;;
13672      esac
13673      # FIXME: Relying on posixy $() will cause problems for
13674      #        cross-compilation, but unfortunately the echo tests do not
13675      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13676      #	       `"' quotes if we put them in here... so don't!
13677    	lt_int_apple_cc_single_mod=no
13678    	output_verbose_link_cmd='echo'
13679    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13680    	  lt_int_apple_cc_single_mod=yes
13681    	fi
13682    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13683    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13684    	else
13685        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13686      fi
13687      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13688      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13689        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13690          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13691        else
13692          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13693        fi
13694          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13695      hardcode_direct_F77=no
13696      hardcode_automatic_F77=yes
13697      hardcode_shlibpath_var_F77=unsupported
13698      whole_archive_flag_spec_F77='-all_load $convenience'
13699      link_all_deplibs_F77=yes
13700    fi
13701      ;;
13702
13703    dgux*)
13704      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705      hardcode_libdir_flag_spec_F77='-L$libdir'
13706      hardcode_shlibpath_var_F77=no
13707      ;;
13708
13709    freebsd1*)
13710      ld_shlibs_F77=no
13711      ;;
13712
13713    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13714    # support.  Future versions do this automatically, but an explicit c++rt0.o
13715    # does not break anything, and helps significantly (at the cost of a little
13716    # extra space).
13717    freebsd2.2*)
13718      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13719      hardcode_libdir_flag_spec_F77='-R$libdir'
13720      hardcode_direct_F77=yes
13721      hardcode_shlibpath_var_F77=no
13722      ;;
13723
13724    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13725    freebsd2*)
13726      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13727      hardcode_direct_F77=yes
13728      hardcode_minus_L_F77=yes
13729      hardcode_shlibpath_var_F77=no
13730      ;;
13731
13732    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13733    freebsd*)
13734      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13735      hardcode_libdir_flag_spec_F77='-R$libdir'
13736      hardcode_direct_F77=yes
13737      hardcode_shlibpath_var_F77=no
13738      ;;
13739
13740    hpux9*)
13741      if test "$GCC" = yes; then
13742	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'
13743      else
13744	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'
13745      fi
13746      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13747      hardcode_libdir_separator_F77=:
13748      hardcode_direct_F77=yes
13749
13750      # hardcode_minus_L: Not really in the search PATH,
13751      # but as the default location of the library.
13752      hardcode_minus_L_F77=yes
13753      export_dynamic_flag_spec_F77='${wl}-E'
13754      ;;
13755
13756    hpux10* | hpux11*)
13757      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13758	case "$host_cpu" in
13759	hppa*64*|ia64*)
13760	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13761	  ;;
13762	*)
13763	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13764	  ;;
13765	esac
13766      else
13767	case "$host_cpu" in
13768	hppa*64*|ia64*)
13769	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13770	  ;;
13771	*)
13772	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13773	  ;;
13774	esac
13775      fi
13776      if test "$with_gnu_ld" = no; then
13777	case "$host_cpu" in
13778	hppa*64*)
13779	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13780	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13781	  hardcode_libdir_separator_F77=:
13782	  hardcode_direct_F77=no
13783	  hardcode_shlibpath_var_F77=no
13784	  ;;
13785	ia64*)
13786	  hardcode_libdir_flag_spec_F77='-L$libdir'
13787	  hardcode_direct_F77=no
13788	  hardcode_shlibpath_var_F77=no
13789
13790	  # hardcode_minus_L: Not really in the search PATH,
13791	  # but as the default location of the library.
13792	  hardcode_minus_L_F77=yes
13793	  ;;
13794	*)
13795	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13796	  hardcode_libdir_separator_F77=:
13797	  hardcode_direct_F77=yes
13798	  export_dynamic_flag_spec_F77='${wl}-E'
13799
13800	  # hardcode_minus_L: Not really in the search PATH,
13801	  # but as the default location of the library.
13802	  hardcode_minus_L_F77=yes
13803	  ;;
13804	esac
13805      fi
13806      ;;
13807
13808    irix5* | irix6* | nonstopux*)
13809      if test "$GCC" = yes; then
13810	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'
13811      else
13812	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'
13813	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13814      fi
13815      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13816      hardcode_libdir_separator_F77=:
13817      link_all_deplibs_F77=yes
13818      ;;
13819
13820    netbsd*)
13821      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13822	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13823      else
13824	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13825      fi
13826      hardcode_libdir_flag_spec_F77='-R$libdir'
13827      hardcode_direct_F77=yes
13828      hardcode_shlibpath_var_F77=no
13829      ;;
13830
13831    newsos6)
13832      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833      hardcode_direct_F77=yes
13834      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13835      hardcode_libdir_separator_F77=:
13836      hardcode_shlibpath_var_F77=no
13837      ;;
13838
13839    openbsd*)
13840      hardcode_direct_F77=yes
13841      hardcode_shlibpath_var_F77=no
13842      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13843	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13844	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13845	export_dynamic_flag_spec_F77='${wl}-E'
13846      else
13847       case $host_os in
13848	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13849	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13850	   hardcode_libdir_flag_spec_F77='-R$libdir'
13851	   ;;
13852	 *)
13853	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13854	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13855	   ;;
13856       esac
13857      fi
13858      ;;
13859
13860    os2*)
13861      hardcode_libdir_flag_spec_F77='-L$libdir'
13862      hardcode_minus_L_F77=yes
13863      allow_undefined_flag_F77=unsupported
13864      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'
13865      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13866      ;;
13867
13868    osf3*)
13869      if test "$GCC" = yes; then
13870	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13871	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'
13872      else
13873	allow_undefined_flag_F77=' -expect_unresolved \*'
13874	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'
13875      fi
13876      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13877      hardcode_libdir_separator_F77=:
13878      ;;
13879
13880    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13881      if test "$GCC" = yes; then
13882	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13883	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'
13884	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13885      else
13886	allow_undefined_flag_F77=' -expect_unresolved \*'
13887	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'
13888	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~
13889	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13890
13891	# Both c and cxx compiler support -rpath directly
13892	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13893      fi
13894      hardcode_libdir_separator_F77=:
13895      ;;
13896
13897    sco3.2v5*)
13898      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899      hardcode_shlibpath_var_F77=no
13900      export_dynamic_flag_spec_F77='${wl}-Bexport'
13901      runpath_var=LD_RUN_PATH
13902      hardcode_runpath_var=yes
13903      ;;
13904
13905    solaris*)
13906      no_undefined_flag_F77=' -z text'
13907      if test "$GCC" = yes; then
13908	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13910	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13911      else
13912	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13914  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13915      fi
13916      hardcode_libdir_flag_spec_F77='-R$libdir'
13917      hardcode_shlibpath_var_F77=no
13918      case $host_os in
13919      solaris2.[0-5] | solaris2.[0-5].*) ;;
13920      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13921	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13922      esac
13923      link_all_deplibs_F77=yes
13924      ;;
13925
13926    sunos4*)
13927      if test "x$host_vendor" = xsequent; then
13928	# Use $CC to link under sequent, because it throws in some extra .o
13929	# files that make .init and .fini sections work.
13930	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13931      else
13932	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13933      fi
13934      hardcode_libdir_flag_spec_F77='-L$libdir'
13935      hardcode_direct_F77=yes
13936      hardcode_minus_L_F77=yes
13937      hardcode_shlibpath_var_F77=no
13938      ;;
13939
13940    sysv4)
13941      case $host_vendor in
13942	sni)
13943	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944	  hardcode_direct_F77=yes # is this really true???
13945	;;
13946	siemens)
13947	  ## LD is ld it makes a PLAMLIB
13948	  ## CC just makes a GrossModule.
13949	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13950	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13951	  hardcode_direct_F77=no
13952        ;;
13953	motorola)
13954	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13956	;;
13957      esac
13958      runpath_var='LD_RUN_PATH'
13959      hardcode_shlibpath_var_F77=no
13960      ;;
13961
13962    sysv4.3*)
13963      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964      hardcode_shlibpath_var_F77=no
13965      export_dynamic_flag_spec_F77='-Bexport'
13966      ;;
13967
13968    sysv4*MP*)
13969      if test -d /usr/nec; then
13970	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971	hardcode_shlibpath_var_F77=no
13972	runpath_var=LD_RUN_PATH
13973	hardcode_runpath_var=yes
13974	ld_shlibs_F77=yes
13975      fi
13976      ;;
13977
13978    sysv4.2uw2*)
13979      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13980      hardcode_direct_F77=yes
13981      hardcode_minus_L_F77=no
13982      hardcode_shlibpath_var_F77=no
13983      hardcode_runpath_var=yes
13984      runpath_var=LD_RUN_PATH
13985      ;;
13986
13987   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13988      no_undefined_flag_F77='${wl}-z ${wl}text'
13989      if test "$GCC" = yes; then
13990	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13991      else
13992	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13993      fi
13994      runpath_var='LD_RUN_PATH'
13995      hardcode_shlibpath_var_F77=no
13996      ;;
13997
13998    sysv5*)
13999      no_undefined_flag_F77=' -z text'
14000      # $CC -shared without GNU ld will not create a library from C++
14001      # object files and a static libstdc++, better avoid it by now
14002      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14004  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14005      hardcode_libdir_flag_spec_F77=
14006      hardcode_shlibpath_var_F77=no
14007      runpath_var='LD_RUN_PATH'
14008      ;;
14009
14010    uts4*)
14011      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012      hardcode_libdir_flag_spec_F77='-L$libdir'
14013      hardcode_shlibpath_var_F77=no
14014      ;;
14015
14016    *)
14017      ld_shlibs_F77=no
14018      ;;
14019    esac
14020  fi
14021
14022echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14023echo "${ECHO_T}$ld_shlibs_F77" >&6
14024test "$ld_shlibs_F77" = no && can_build_shared=no
14025
14026variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14027if test "$GCC" = yes; then
14028  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14029fi
14030
14031#
14032# Do we need to explicitly link libc?
14033#
14034case "x$archive_cmds_need_lc_F77" in
14035x|xyes)
14036  # Assume -lc should be added
14037  archive_cmds_need_lc_F77=yes
14038
14039  if test "$enable_shared" = yes && test "$GCC" = yes; then
14040    case $archive_cmds_F77 in
14041    *'~'*)
14042      # FIXME: we may have to deal with multi-command sequences.
14043      ;;
14044    '$CC '*)
14045      # Test whether the compiler implicitly links with -lc since on some
14046      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14047      # to ld, don't add -lc before -lgcc.
14048      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14049echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14050      $rm conftest*
14051      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14052
14053      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054  (eval $ac_compile) 2>&5
14055  ac_status=$?
14056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057  (exit $ac_status); } 2>conftest.err; then
14058        soname=conftest
14059        lib=conftest
14060        libobjs=conftest.$ac_objext
14061        deplibs=
14062        wl=$lt_prog_compiler_wl_F77
14063        compiler_flags=-v
14064        linker_flags=-v
14065        verstring=
14066        output_objdir=.
14067        libname=conftest
14068        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14069        allow_undefined_flag_F77=
14070        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14071  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14072  ac_status=$?
14073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074  (exit $ac_status); }
14075        then
14076	  archive_cmds_need_lc_F77=no
14077        else
14078	  archive_cmds_need_lc_F77=yes
14079        fi
14080        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14081      else
14082        cat conftest.err 1>&5
14083      fi
14084      $rm conftest*
14085      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14086echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14087      ;;
14088    esac
14089  fi
14090  ;;
14091esac
14092
14093echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14094echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14095hardcode_action_F77=
14096if test -n "$hardcode_libdir_flag_spec_F77" || \
14097   test -n "$runpath_var F77" || \
14098   test "X$hardcode_automatic_F77"="Xyes" ; then
14099
14100  # We can hardcode non-existant directories.
14101  if test "$hardcode_direct_F77" != no &&
14102     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14103     # have to relink, otherwise we might link with an installed library
14104     # when we should be linking with a yet-to-be-installed one
14105     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14106     test "$hardcode_minus_L_F77" != no; then
14107    # Linking always hardcodes the temporary library directory.
14108    hardcode_action_F77=relink
14109  else
14110    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14111    hardcode_action_F77=immediate
14112  fi
14113else
14114  # We cannot hardcode anything, or else we can only hardcode existing
14115  # directories.
14116  hardcode_action_F77=unsupported
14117fi
14118echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14119echo "${ECHO_T}$hardcode_action_F77" >&6
14120
14121if test "$hardcode_action_F77" = relink; then
14122  # Fast installation is not supported
14123  enable_fast_install=no
14124elif test "$shlibpath_overrides_runpath" = yes ||
14125     test "$enable_shared" = no; then
14126  # Fast installation is not necessary
14127  enable_fast_install=needless
14128fi
14129
14130striplib=
14131old_striplib=
14132echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14133echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14134if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14135  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14136  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14137  echo "$as_me:$LINENO: result: yes" >&5
14138echo "${ECHO_T}yes" >&6
14139else
14140# FIXME - insert some real tests, host_os isn't really good enough
14141  case $host_os in
14142   darwin*)
14143       if test -n "$STRIP" ; then
14144         striplib="$STRIP -x"
14145         echo "$as_me:$LINENO: result: yes" >&5
14146echo "${ECHO_T}yes" >&6
14147       else
14148  echo "$as_me:$LINENO: result: no" >&5
14149echo "${ECHO_T}no" >&6
14150fi
14151       ;;
14152   *)
14153  echo "$as_me:$LINENO: result: no" >&5
14154echo "${ECHO_T}no" >&6
14155    ;;
14156  esac
14157fi
14158
14159echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14160echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14161library_names_spec=
14162libname_spec='lib$name'
14163soname_spec=
14164shrext=".so"
14165postinstall_cmds=
14166postuninstall_cmds=
14167finish_cmds=
14168finish_eval=
14169shlibpath_var=
14170shlibpath_overrides_runpath=unknown
14171version_type=none
14172dynamic_linker="$host_os ld.so"
14173sys_lib_dlsearch_path_spec="/lib /usr/lib"
14174if test "$GCC" = yes; then
14175  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14176  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14177    # if the path contains ";" then we assume it to be the separator
14178    # otherwise default to the standard path separator (i.e. ":") - it is
14179    # assumed that no part of a normal pathname contains ";" but that should
14180    # okay in the real world where ";" in dirpaths is itself problematic.
14181    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14182  else
14183    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14184  fi
14185else
14186  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14187fi
14188need_lib_prefix=unknown
14189hardcode_into_libs=no
14190
14191# when you set need_version to no, make sure it does not cause -set_version
14192# flags to be left without arguments
14193need_version=unknown
14194
14195case $host_os in
14196aix3*)
14197  version_type=linux
14198  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199  shlibpath_var=LIBPATH
14200
14201  # AIX 3 has no versioning support, so we append a major version to the name.
14202  soname_spec='${libname}${release}${shared_ext}$major'
14203  ;;
14204
14205aix4* | aix5*)
14206  version_type=linux
14207  need_lib_prefix=no
14208  need_version=no
14209  hardcode_into_libs=yes
14210  if test "$host_cpu" = ia64; then
14211    # AIX 5 supports IA64
14212    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213    shlibpath_var=LD_LIBRARY_PATH
14214  else
14215    # With GCC up to 2.95.x, collect2 would create an import file
14216    # for dependence libraries.  The import file would start with
14217    # the line `#! .'.  This would cause the generated library to
14218    # depend on `.', always an invalid library.  This was fixed in
14219    # development snapshots of GCC prior to 3.0.
14220    case $host_os in
14221      aix4 | aix4.[01] | aix4.[01].*)
14222      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14223	   echo ' yes '
14224	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14225	:
14226      else
14227	can_build_shared=no
14228      fi
14229      ;;
14230    esac
14231    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232    # soname into executable. Probably we can add versioning support to
14233    # collect2, so additional links can be useful in future.
14234    if test "$aix_use_runtimelinking" = yes; then
14235      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236      # instead of lib<name>.a to let people know that these are not
14237      # typical AIX shared libraries.
14238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239    else
14240      # We preserve .a as extension for shared libraries through AIX4.2
14241      # and later when we are not doing run time linking.
14242      library_names_spec='${libname}${release}.a $libname.a'
14243      soname_spec='${libname}${release}${shared_ext}$major'
14244    fi
14245    shlibpath_var=LIBPATH
14246  fi
14247  ;;
14248
14249amigaos*)
14250  library_names_spec='$libname.ixlibrary $libname.a'
14251  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14252  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'
14253  ;;
14254
14255beos*)
14256  library_names_spec='${libname}${shared_ext}'
14257  dynamic_linker="$host_os ld.so"
14258  shlibpath_var=LIBRARY_PATH
14259  ;;
14260
14261bsdi4*)
14262  version_type=linux
14263  need_version=no
14264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265  soname_spec='${libname}${release}${shared_ext}$major'
14266  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14267  shlibpath_var=LD_LIBRARY_PATH
14268  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14269  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14270  # the default ld.so.conf also contains /usr/contrib/lib and
14271  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14272  # libtool to hard-code these into programs
14273  ;;
14274
14275cygwin* | mingw* | pw32*)
14276  version_type=windows
14277  shrext=".dll"
14278  need_version=no
14279  need_lib_prefix=no
14280
14281  case $GCC,$host_os in
14282  yes,cygwin* | yes,mingw* | yes,pw32*)
14283    library_names_spec='$libname.dll.a'
14284    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14285    postinstall_cmds='base_file=`basename \${file}`~
14286      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14287      dldir=$destdir/`dirname \$dlpath`~
14288      test -d \$dldir || mkdir -p \$dldir~
14289      $install_prog $dir/$dlname \$dldir/$dlname'
14290    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14291      dlpath=$dir/\$dldll~
14292       $rm \$dlpath'
14293    shlibpath_overrides_runpath=yes
14294
14295    case $host_os in
14296    cygwin*)
14297      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14298      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14300      ;;
14301    mingw*)
14302      # MinGW DLLs use traditional 'lib' prefix
14303      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14304      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14306        # It is most probably a Windows format PATH printed by
14307        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14308        # path with ; separators, and with drive letters. We can handle the
14309        # drive letters (cygwin fileutils understands them), so leave them,
14310        # especially as we might pass files found there to a mingw objdump,
14311        # which wouldn't understand a cygwinified path. Ahh.
14312        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14313      else
14314        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14315      fi
14316      ;;
14317    pw32*)
14318      # pw32 DLLs use 'pw' prefix rather than 'lib'
14319      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14320      ;;
14321    esac
14322    ;;
14323
14324  *)
14325    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14326    ;;
14327  esac
14328  dynamic_linker='Win32 ld.exe'
14329  # FIXME: first we should search . and the directory the executable is in
14330  shlibpath_var=PATH
14331  ;;
14332
14333darwin* | rhapsody*)
14334  dynamic_linker="$host_os dyld"
14335  version_type=darwin
14336  need_lib_prefix=no
14337  need_version=no
14338  # FIXME: Relying on posixy $() will cause problems for
14339  #        cross-compilation, but unfortunately the echo tests do not
14340  #        yet detect zsh echo's removal of \ escapes.
14341  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342  soname_spec='${libname}${release}${major}$shared_ext'
14343  shlibpath_overrides_runpath=yes
14344  shlibpath_var=DYLD_LIBRARY_PATH
14345  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14346  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14348  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14349  fi
14350  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14351  ;;
14352
14353dgux*)
14354  version_type=linux
14355  need_lib_prefix=no
14356  need_version=no
14357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14358  soname_spec='${libname}${release}${shared_ext}$major'
14359  shlibpath_var=LD_LIBRARY_PATH
14360  ;;
14361
14362freebsd1*)
14363  dynamic_linker=no
14364  ;;
14365
14366freebsd*)
14367  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14368  version_type=freebsd-$objformat
14369  case $version_type in
14370    freebsd-elf*)
14371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14372      need_version=no
14373      need_lib_prefix=no
14374      ;;
14375    freebsd-*)
14376      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14377      need_version=yes
14378      ;;
14379  esac
14380  shlibpath_var=LD_LIBRARY_PATH
14381  case $host_os in
14382  freebsd2*)
14383    shlibpath_overrides_runpath=yes
14384    ;;
14385  freebsd3.01* | freebsdelf3.01*)
14386    shlibpath_overrides_runpath=yes
14387    hardcode_into_libs=yes
14388    ;;
14389  *) # from 3.2 on
14390    shlibpath_overrides_runpath=no
14391    hardcode_into_libs=yes
14392    ;;
14393  esac
14394  ;;
14395
14396gnu*)
14397  version_type=linux
14398  need_lib_prefix=no
14399  need_version=no
14400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14401  soname_spec='${libname}${release}${shared_ext}$major'
14402  shlibpath_var=LD_LIBRARY_PATH
14403  hardcode_into_libs=yes
14404  ;;
14405
14406hpux9* | hpux10* | hpux11*)
14407  # Give a soname corresponding to the major version so that dld.sl refuses to
14408  # link against other versions.
14409  version_type=sunos
14410  need_lib_prefix=no
14411  need_version=no
14412  case "$host_cpu" in
14413  ia64*)
14414    shrext='.so'
14415    hardcode_into_libs=yes
14416    dynamic_linker="$host_os dld.so"
14417    shlibpath_var=LD_LIBRARY_PATH
14418    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14419    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420    soname_spec='${libname}${release}${shared_ext}$major'
14421    if test "X$HPUX_IA64_MODE" = X32; then
14422      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14423    else
14424      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14425    fi
14426    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14427    ;;
14428   hppa*64*)
14429     shrext='.sl'
14430     hardcode_into_libs=yes
14431     dynamic_linker="$host_os dld.sl"
14432     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435     soname_spec='${libname}${release}${shared_ext}$major'
14436     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14437     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14438     ;;
14439   *)
14440    shrext='.sl'
14441    dynamic_linker="$host_os dld.sl"
14442    shlibpath_var=SHLIB_PATH
14443    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14444    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445    soname_spec='${libname}${release}${shared_ext}$major'
14446    ;;
14447  esac
14448  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14449  postinstall_cmds='chmod 555 $lib'
14450  ;;
14451
14452irix5* | irix6* | nonstopux*)
14453  case $host_os in
14454    nonstopux*) version_type=nonstopux ;;
14455    *)
14456	if test "$lt_cv_prog_gnu_ld" = yes; then
14457		version_type=linux
14458	else
14459		version_type=irix
14460	fi ;;
14461  esac
14462  need_lib_prefix=no
14463  need_version=no
14464  soname_spec='${libname}${release}${shared_ext}$major'
14465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14466  case $host_os in
14467  irix5* | nonstopux*)
14468    libsuff= shlibsuff=
14469    ;;
14470  *)
14471    case $LD in # libtool.m4 will add one of these switches to LD
14472    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14473      libsuff= shlibsuff= libmagic=32-bit;;
14474    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14475      libsuff=32 shlibsuff=N32 libmagic=N32;;
14476    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14477      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14478    *) libsuff= shlibsuff= libmagic=never-match;;
14479    esac
14480    ;;
14481  esac
14482  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14483  shlibpath_overrides_runpath=no
14484  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14485  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14486  hardcode_into_libs=yes
14487  ;;
14488
14489# No shared lib support for Linux oldld, aout, or coff.
14490linux*oldld* | linux*aout* | linux*coff*)
14491  dynamic_linker=no
14492  ;;
14493
14494# This must be Linux ELF.
14495linux*)
14496  version_type=linux
14497  need_lib_prefix=no
14498  need_version=no
14499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500  soname_spec='${libname}${release}${shared_ext}$major'
14501  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14502  shlibpath_var=LD_LIBRARY_PATH
14503  shlibpath_overrides_runpath=no
14504  # This implies no fast_install, which is unacceptable.
14505  # Some rework will be needed to allow for fast_install
14506  # before this can be enabled.
14507  hardcode_into_libs=yes
14508
14509  # We used to test for /lib/ld.so.1 and disable shared libraries on
14510  # powerpc, because MkLinux only supported shared libraries with the
14511  # GNU dynamic linker.  Since this was broken with cross compilers,
14512  # most powerpc-linux boxes support dynamic linking these days and
14513  # people can always --disable-shared, the test was removed, and we
14514  # assume the GNU/Linux dynamic linker is in use.
14515  dynamic_linker='GNU/Linux ld.so'
14516  ;;
14517
14518netbsd*)
14519  version_type=sunos
14520  need_lib_prefix=no
14521  need_version=no
14522  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14524    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14525    dynamic_linker='NetBSD (a.out) ld.so'
14526  else
14527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14528    soname_spec='${libname}${release}${shared_ext}$major'
14529    dynamic_linker='NetBSD ld.elf_so'
14530  fi
14531  shlibpath_var=LD_LIBRARY_PATH
14532  shlibpath_overrides_runpath=yes
14533  hardcode_into_libs=yes
14534  ;;
14535
14536newsos6)
14537  version_type=linux
14538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539  shlibpath_var=LD_LIBRARY_PATH
14540  shlibpath_overrides_runpath=yes
14541  ;;
14542
14543nto-qnx)
14544  version_type=linux
14545  need_lib_prefix=no
14546  need_version=no
14547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548  soname_spec='${libname}${release}${shared_ext}$major'
14549  shlibpath_var=LD_LIBRARY_PATH
14550  shlibpath_overrides_runpath=yes
14551  ;;
14552
14553openbsd*)
14554  version_type=sunos
14555  need_lib_prefix=no
14556  need_version=no
14557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14559  shlibpath_var=LD_LIBRARY_PATH
14560  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14561    case $host_os in
14562      openbsd2.[89] | openbsd2.[89].*)
14563	shlibpath_overrides_runpath=no
14564	;;
14565      *)
14566	shlibpath_overrides_runpath=yes
14567	;;
14568      esac
14569  else
14570    shlibpath_overrides_runpath=yes
14571  fi
14572  ;;
14573
14574os2*)
14575  libname_spec='$name'
14576  shrext=".dll"
14577  need_lib_prefix=no
14578  library_names_spec='$libname${shared_ext} $libname.a'
14579  dynamic_linker='OS/2 ld.exe'
14580  shlibpath_var=LIBPATH
14581  ;;
14582
14583osf3* | osf4* | osf5*)
14584  version_type=osf
14585  need_lib_prefix=no
14586  need_version=no
14587  soname_spec='${libname}${release}${shared_ext}$major'
14588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589  shlibpath_var=LD_LIBRARY_PATH
14590  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14591  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14592  ;;
14593
14594sco3.2v5*)
14595  version_type=osf
14596  soname_spec='${libname}${release}${shared_ext}$major'
14597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598  shlibpath_var=LD_LIBRARY_PATH
14599  ;;
14600
14601solaris*)
14602  version_type=linux
14603  need_lib_prefix=no
14604  need_version=no
14605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606  soname_spec='${libname}${release}${shared_ext}$major'
14607  shlibpath_var=LD_LIBRARY_PATH
14608  shlibpath_overrides_runpath=yes
14609  hardcode_into_libs=yes
14610  # ldd complains unless libraries are executable
14611  postinstall_cmds='chmod +x $lib'
14612  ;;
14613
14614sunos4*)
14615  version_type=sunos
14616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14617  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14618  shlibpath_var=LD_LIBRARY_PATH
14619  shlibpath_overrides_runpath=yes
14620  if test "$with_gnu_ld" = yes; then
14621    need_lib_prefix=no
14622  fi
14623  need_version=yes
14624  ;;
14625
14626sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14627  version_type=linux
14628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629  soname_spec='${libname}${release}${shared_ext}$major'
14630  shlibpath_var=LD_LIBRARY_PATH
14631  case $host_vendor in
14632    sni)
14633      shlibpath_overrides_runpath=no
14634      need_lib_prefix=no
14635      export_dynamic_flag_spec='${wl}-Blargedynsym'
14636      runpath_var=LD_RUN_PATH
14637      ;;
14638    siemens)
14639      need_lib_prefix=no
14640      ;;
14641    motorola)
14642      need_lib_prefix=no
14643      need_version=no
14644      shlibpath_overrides_runpath=no
14645      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14646      ;;
14647  esac
14648  ;;
14649
14650sysv4*MP*)
14651  if test -d /usr/nec ;then
14652    version_type=linux
14653    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14654    soname_spec='$libname${shared_ext}.$major'
14655    shlibpath_var=LD_LIBRARY_PATH
14656  fi
14657  ;;
14658
14659uts4*)
14660  version_type=linux
14661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662  soname_spec='${libname}${release}${shared_ext}$major'
14663  shlibpath_var=LD_LIBRARY_PATH
14664  ;;
14665
14666*)
14667  dynamic_linker=no
14668  ;;
14669esac
14670echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14671echo "${ECHO_T}$dynamic_linker" >&6
14672test "$dynamic_linker" = no && can_build_shared=no
14673
14674
14675# The else clause should only fire when bootstrapping the
14676# libtool distribution, otherwise you forgot to ship ltmain.sh
14677# with your package, and you will get complaints that there are
14678# no rules to generate ltmain.sh.
14679if test -f "$ltmain"; then
14680  # See if we are running on zsh, and set the options which allow our commands through
14681  # without removal of \ escapes.
14682  if test -n "${ZSH_VERSION+set}" ; then
14683    setopt NO_GLOB_SUBST
14684  fi
14685  # Now quote all the things that may contain metacharacters while being
14686  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14687  # variables and quote the copies for generation of the libtool script.
14688  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14689    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14690    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14691    deplibs_check_method reload_flag reload_cmds need_locks \
14692    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14693    lt_cv_sys_global_symbol_to_c_name_address \
14694    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14695    old_postinstall_cmds old_postuninstall_cmds \
14696    compiler_F77 \
14697    CC_F77 \
14698    LD_F77 \
14699    lt_prog_compiler_wl_F77 \
14700    lt_prog_compiler_pic_F77 \
14701    lt_prog_compiler_static_F77 \
14702    lt_prog_compiler_no_builtin_flag_F77 \
14703    export_dynamic_flag_spec_F77 \
14704    thread_safe_flag_spec_F77 \
14705    whole_archive_flag_spec_F77 \
14706    enable_shared_with_static_runtimes_F77 \
14707    old_archive_cmds_F77 \
14708    old_archive_from_new_cmds_F77 \
14709    predep_objects_F77 \
14710    postdep_objects_F77 \
14711    predeps_F77 \
14712    postdeps_F77 \
14713    compiler_lib_search_path_F77 \
14714    archive_cmds_F77 \
14715    archive_expsym_cmds_F77 \
14716    postinstall_cmds_F77 \
14717    postuninstall_cmds_F77 \
14718    old_archive_from_expsyms_cmds_F77 \
14719    allow_undefined_flag_F77 \
14720    no_undefined_flag_F77 \
14721    export_symbols_cmds_F77 \
14722    hardcode_libdir_flag_spec_F77 \
14723    hardcode_libdir_flag_spec_ld_F77 \
14724    hardcode_libdir_separator_F77 \
14725    hardcode_automatic_F77 \
14726    module_cmds_F77 \
14727    module_expsym_cmds_F77 \
14728    lt_cv_prog_compiler_c_o_F77 \
14729    exclude_expsyms_F77 \
14730    include_expsyms_F77; do
14731
14732    case $var in
14733    old_archive_cmds_F77 | \
14734    old_archive_from_new_cmds_F77 | \
14735    archive_cmds_F77 | \
14736    archive_expsym_cmds_F77 | \
14737    module_cmds_F77 | \
14738    module_expsym_cmds_F77 | \
14739    old_archive_from_expsyms_cmds_F77 | \
14740    export_symbols_cmds_F77 | \
14741    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14742    postinstall_cmds | postuninstall_cmds | \
14743    old_postinstall_cmds | old_postuninstall_cmds | \
14744    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14745      # Double-quote double-evaled strings.
14746      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14747      ;;
14748    *)
14749      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14750      ;;
14751    esac
14752  done
14753
14754  case $lt_echo in
14755  *'\$0 --fallback-echo"')
14756    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14757    ;;
14758  esac
14759
14760cfgfile="$ofile"
14761
14762  cat <<__EOF__ >> "$cfgfile"
14763# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14764
14765# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14766
14767# Shell to use when invoking shell scripts.
14768SHELL=$lt_SHELL
14769
14770# Whether or not to build shared libraries.
14771build_libtool_libs=$enable_shared
14772
14773# Whether or not to build static libraries.
14774build_old_libs=$enable_static
14775
14776# Whether or not to add -lc for building shared libraries.
14777build_libtool_need_lc=$archive_cmds_need_lc_F77
14778
14779# Whether or not to disallow shared libs when runtime libs are static
14780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14781
14782# Whether or not to optimize for fast installation.
14783fast_install=$enable_fast_install
14784
14785# The host system.
14786host_alias=$host_alias
14787host=$host
14788
14789# An echo program that does not interpret backslashes.
14790echo=$lt_echo
14791
14792# The archiver.
14793AR=$lt_AR
14794AR_FLAGS=$lt_AR_FLAGS
14795
14796# A C compiler.
14797LTCC=$lt_LTCC
14798
14799# A language-specific compiler.
14800CC=$lt_compiler_F77
14801
14802# Is the compiler the GNU C compiler?
14803with_gcc=$GCC_F77
14804
14805# An ERE matcher.
14806EGREP=$lt_EGREP
14807
14808# The linker used to build libraries.
14809LD=$lt_LD_F77
14810
14811# Whether we need hard or soft links.
14812LN_S=$lt_LN_S
14813
14814# A BSD-compatible nm program.
14815NM=$lt_NM
14816
14817# A symbol stripping program
14818STRIP=$STRIP
14819
14820# Used to examine libraries when file_magic_cmd begins "file"
14821MAGIC_CMD=$MAGIC_CMD
14822
14823# Used on cygwin: DLL creation program.
14824DLLTOOL="$DLLTOOL"
14825
14826# Used on cygwin: object dumper.
14827OBJDUMP="$OBJDUMP"
14828
14829# Used on cygwin: assembler.
14830AS="$AS"
14831
14832# The name of the directory that contains temporary libtool files.
14833objdir=$objdir
14834
14835# How to create reloadable object files.
14836reload_flag=$lt_reload_flag
14837reload_cmds=$lt_reload_cmds
14838
14839# How to pass a linker flag through the compiler.
14840wl=$lt_lt_prog_compiler_wl_F77
14841
14842# Object file suffix (normally "o").
14843objext="$ac_objext"
14844
14845# Old archive suffix (normally "a").
14846libext="$libext"
14847
14848# Shared library suffix (normally ".so").
14849shrext='$shrext'
14850
14851# Executable file suffix (normally "").
14852exeext="$exeext"
14853
14854# Additional compiler flags for building library objects.
14855pic_flag=$lt_lt_prog_compiler_pic_F77
14856pic_mode=$pic_mode
14857
14858# What is the maximum length of a command?
14859max_cmd_len=$lt_cv_sys_max_cmd_len
14860
14861# Does compiler simultaneously support -c and -o options?
14862compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14863
14864# Must we lock files when doing compilation ?
14865need_locks=$lt_need_locks
14866
14867# Do we need the lib prefix for modules?
14868need_lib_prefix=$need_lib_prefix
14869
14870# Do we need a version for libraries?
14871need_version=$need_version
14872
14873# Whether dlopen is supported.
14874dlopen_support=$enable_dlopen
14875
14876# Whether dlopen of programs is supported.
14877dlopen_self=$enable_dlopen_self
14878
14879# Whether dlopen of statically linked programs is supported.
14880dlopen_self_static=$enable_dlopen_self_static
14881
14882# Compiler flag to prevent dynamic linking.
14883link_static_flag=$lt_lt_prog_compiler_static_F77
14884
14885# Compiler flag to turn off builtin functions.
14886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14887
14888# Compiler flag to allow reflexive dlopens.
14889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14890
14891# Compiler flag to generate shared objects directly from archives.
14892whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14893
14894# Compiler flag to generate thread-safe objects.
14895thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14896
14897# Library versioning type.
14898version_type=$version_type
14899
14900# Format of library name prefix.
14901libname_spec=$lt_libname_spec
14902
14903# List of archive names.  First name is the real one, the rest are links.
14904# The last name is the one that the linker finds with -lNAME.
14905library_names_spec=$lt_library_names_spec
14906
14907# The coded name of the library, if different from the real name.
14908soname_spec=$lt_soname_spec
14909
14910# Commands used to build and install an old-style archive.
14911RANLIB=$lt_RANLIB
14912old_archive_cmds=$lt_old_archive_cmds_F77
14913old_postinstall_cmds=$lt_old_postinstall_cmds
14914old_postuninstall_cmds=$lt_old_postuninstall_cmds
14915
14916# Create an old-style archive from a shared archive.
14917old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14918
14919# Create a temporary old-style archive to link instead of a shared archive.
14920old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14921
14922# Commands used to build and install a shared archive.
14923archive_cmds=$lt_archive_cmds_F77
14924archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14925postinstall_cmds=$lt_postinstall_cmds
14926postuninstall_cmds=$lt_postuninstall_cmds
14927
14928# Commands used to build a loadable module (assumed same as above if empty)
14929module_cmds=$lt_module_cmds_F77
14930module_expsym_cmds=$lt_module_expsym_cmds_F77
14931
14932# Commands to strip libraries.
14933old_striplib=$lt_old_striplib
14934striplib=$lt_striplib
14935
14936# Dependencies to place before the objects being linked to create a
14937# shared library.
14938predep_objects=$lt_predep_objects_F77
14939
14940# Dependencies to place after the objects being linked to create a
14941# shared library.
14942postdep_objects=$lt_postdep_objects_F77
14943
14944# Dependencies to place before the objects being linked to create a
14945# shared library.
14946predeps=$lt_predeps_F77
14947
14948# Dependencies to place after the objects being linked to create a
14949# shared library.
14950postdeps=$lt_postdeps_F77
14951
14952# The library search path used internally by the compiler when linking
14953# a shared library.
14954compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14955
14956# Method to check whether dependent libraries are shared objects.
14957deplibs_check_method=$lt_deplibs_check_method
14958
14959# Command to use when deplibs_check_method == file_magic.
14960file_magic_cmd=$lt_file_magic_cmd
14961
14962# Flag that allows shared libraries with undefined symbols to be built.
14963allow_undefined_flag=$lt_allow_undefined_flag_F77
14964
14965# Flag that forces no undefined symbols.
14966no_undefined_flag=$lt_no_undefined_flag_F77
14967
14968# Commands used to finish a libtool library installation in a directory.
14969finish_cmds=$lt_finish_cmds
14970
14971# Same as above, but a single script fragment to be evaled but not shown.
14972finish_eval=$lt_finish_eval
14973
14974# Take the output of nm and produce a listing of raw symbols and C names.
14975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14976
14977# Transform the output of nm in a proper C declaration
14978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14979
14980# Transform the output of nm in a C name address pair
14981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14982
14983# This is the shared library runtime path variable.
14984runpath_var=$runpath_var
14985
14986# This is the shared library path variable.
14987shlibpath_var=$shlibpath_var
14988
14989# Is shlibpath searched before the hard-coded library search path?
14990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14991
14992# How to hardcode a shared library path into an executable.
14993hardcode_action=$hardcode_action_F77
14994
14995# Whether we should hardcode library paths into libraries.
14996hardcode_into_libs=$hardcode_into_libs
14997
14998# Flag to hardcode \$libdir into a binary during linking.
14999# This must work even if \$libdir does not exist.
15000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15001
15002# If ld is used when linking, flag to hardcode \$libdir into
15003# a binary during linking. This must work even if \$libdir does
15004# not exist.
15005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15006
15007# Whether we need a single -rpath flag with a separated argument.
15008hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15009
15010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15011# resulting binary.
15012hardcode_direct=$hardcode_direct_F77
15013
15014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15015# resulting binary.
15016hardcode_minus_L=$hardcode_minus_L_F77
15017
15018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15019# the resulting binary.
15020hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15021
15022# Set to yes if building a shared library automatically hardcodes DIR into the library
15023# and all subsequent libraries and executables linked against it.
15024hardcode_automatic=$hardcode_automatic_F77
15025
15026# Variables whose values should be saved in libtool wrapper scripts and
15027# restored at relink time.
15028variables_saved_for_relink="$variables_saved_for_relink"
15029
15030# Whether libtool must link a program against all its dependency libraries.
15031link_all_deplibs=$link_all_deplibs_F77
15032
15033# Compile-time system search path for libraries
15034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15035
15036# Run-time system search path for libraries
15037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15038
15039# Fix the shell variable \$srcfile for the compiler.
15040fix_srcfile_path="$fix_srcfile_path_F77"
15041
15042# Set to yes if exported symbols are required.
15043always_export_symbols=$always_export_symbols_F77
15044
15045# The commands to list exported symbols.
15046export_symbols_cmds=$lt_export_symbols_cmds_F77
15047
15048# The commands to extract the exported symbol list from a shared archive.
15049extract_expsyms_cmds=$lt_extract_expsyms_cmds
15050
15051# Symbols that should not be listed in the preloaded symbols.
15052exclude_expsyms=$lt_exclude_expsyms_F77
15053
15054# Symbols that must always be exported.
15055include_expsyms=$lt_include_expsyms_F77
15056
15057# ### END LIBTOOL TAG CONFIG: $tagname
15058
15059__EOF__
15060
15061
15062else
15063  # If there is no Makefile yet, we rely on a make rule to execute
15064  # `config.status --recheck' to rerun these tests and create the
15065  # libtool script then.
15066  test -f Makefile && make "$ltmain"
15067fi
15068
15069
15070ac_ext=c
15071ac_cpp='$CPP $CPPFLAGS'
15072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074ac_compiler_gnu=$ac_cv_c_compiler_gnu
15075
15076CC="$lt_save_CC"
15077
15078	else
15079	  tagname=""
15080	fi
15081	;;
15082
15083      GCJ)
15084	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15085
15086
15087
15088# Source file extension for Java test sources.
15089ac_ext=java
15090
15091# Object file extension for compiled Java test sources.
15092objext=o
15093objext_GCJ=$objext
15094
15095# Code to be used in simple compile tests
15096lt_simple_compile_test_code="class foo {}\n"
15097
15098# Code to be used in simple link tests
15099lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15100
15101# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15102
15103# If no C compiler was specified, use CC.
15104LTCC=${LTCC-"$CC"}
15105
15106# Allow CC to be a program name with arguments.
15107compiler=$CC
15108
15109
15110# Allow CC to be a program name with arguments.
15111lt_save_CC="$CC"
15112CC=${GCJ-"gcj"}
15113compiler=$CC
15114compiler_GCJ=$CC
15115
15116# GCJ did not exist at the time GCC didn't implicitly link libc in.
15117archive_cmds_need_lc_GCJ=no
15118
15119## CAVEAT EMPTOR:
15120## There is no encapsulation within the following macros, do not change
15121## the running order or otherwise move them around unless you know exactly
15122## what you are doing...
15123
15124lt_prog_compiler_no_builtin_flag_GCJ=
15125
15126if test "$GCC" = yes; then
15127  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15128
15129  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15130echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15132  echo $ECHO_N "(cached) $ECHO_C" >&6
15133else
15134  lt_cv_prog_compiler_rtti_exceptions=no
15135  ac_outfile=conftest.$ac_objext
15136   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15137   lt_compiler_flag="-fno-rtti -fno-exceptions"
15138   # Insert the option either (1) after the last *FLAGS variable, or
15139   # (2) before a word containing "conftest.", or (3) at the end.
15140   # Note that $ac_compile itself does not contain backslashes and begins
15141   # with a dollar sign (not a hyphen), so the echo should work correctly.
15142   # The option is referenced via a variable to avoid confusing sed.
15143   lt_compile=`echo "$ac_compile" | $SED \
15144   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15145   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15146   -e 's:$: $lt_compiler_flag:'`
15147   (eval echo "\"\$as_me:15147: $lt_compile\"" >&5)
15148   (eval "$lt_compile" 2>conftest.err)
15149   ac_status=$?
15150   cat conftest.err >&5
15151   echo "$as_me:15151: \$? = $ac_status" >&5
15152   if (exit $ac_status) && test -s "$ac_outfile"; then
15153     # The compiler can only warn and ignore the option if not recognized
15154     # So say no if there are warnings
15155     if test ! -s conftest.err; then
15156       lt_cv_prog_compiler_rtti_exceptions=yes
15157     fi
15158   fi
15159   $rm conftest*
15160
15161fi
15162echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15163echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15164
15165if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15166    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15167else
15168    :
15169fi
15170
15171fi
15172
15173lt_prog_compiler_wl_GCJ=
15174lt_prog_compiler_pic_GCJ=
15175lt_prog_compiler_static_GCJ=
15176
15177echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15178echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15179
15180  if test "$GCC" = yes; then
15181    lt_prog_compiler_wl_GCJ='-Wl,'
15182    lt_prog_compiler_static_GCJ='-static'
15183
15184    case $host_os in
15185      aix*)
15186      # All AIX code is PIC.
15187      if test "$host_cpu" = ia64; then
15188	# AIX 5 now supports IA64 processor
15189	lt_prog_compiler_static_GCJ='-Bstatic'
15190      fi
15191      ;;
15192
15193    amigaos*)
15194      # FIXME: we need at least 68020 code to build shared libraries, but
15195      # adding the `-m68020' flag to GCC prevents building anything better,
15196      # like `-m68040'.
15197      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15198      ;;
15199
15200    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15201      # PIC is the default for these OSes.
15202      ;;
15203
15204    mingw* | pw32* | os2*)
15205      # This hack is so that the source file can tell whether it is being
15206      # built for inclusion in a dll (and should export symbols for example).
15207      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15208      ;;
15209
15210    darwin* | rhapsody*)
15211      # PIC is the default on this platform
15212      # Common symbols not allowed in MH_DYLIB files
15213      lt_prog_compiler_pic_GCJ='-fno-common'
15214      ;;
15215
15216    msdosdjgpp*)
15217      # Just because we use GCC doesn't mean we suddenly get shared libraries
15218      # on systems that don't support them.
15219      lt_prog_compiler_can_build_shared_GCJ=no
15220      enable_shared=no
15221      ;;
15222
15223    sysv4*MP*)
15224      if test -d /usr/nec; then
15225	lt_prog_compiler_pic_GCJ=-Kconform_pic
15226      fi
15227      ;;
15228
15229    hpux*)
15230      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15231      # not for PA HP-UX.
15232      case "$host_cpu" in
15233      hppa*64*|ia64*)
15234	# +Z the default
15235	;;
15236      *)
15237	lt_prog_compiler_pic_GCJ='-fPIC'
15238	;;
15239      esac
15240      ;;
15241
15242    *)
15243      lt_prog_compiler_pic_GCJ='-fPIC'
15244      ;;
15245    esac
15246  else
15247    # PORTME Check for flag to pass linker flags through the system compiler.
15248    case $host_os in
15249    aix*)
15250      lt_prog_compiler_wl_GCJ='-Wl,'
15251      if test "$host_cpu" = ia64; then
15252	# AIX 5 now supports IA64 processor
15253	lt_prog_compiler_static_GCJ='-Bstatic'
15254      else
15255	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15256      fi
15257      ;;
15258
15259    mingw* | pw32* | os2*)
15260      # This hack is so that the source file can tell whether it is being
15261      # built for inclusion in a dll (and should export symbols for example).
15262      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15263      ;;
15264
15265    hpux9* | hpux10* | hpux11*)
15266      lt_prog_compiler_wl_GCJ='-Wl,'
15267      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15268      # not for PA HP-UX.
15269      case "$host_cpu" in
15270      hppa*64*|ia64*)
15271	# +Z the default
15272	;;
15273      *)
15274	lt_prog_compiler_pic_GCJ='+Z'
15275	;;
15276      esac
15277      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15278      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15279      ;;
15280
15281    irix5* | irix6* | nonstopux*)
15282      lt_prog_compiler_wl_GCJ='-Wl,'
15283      # PIC (with -KPIC) is the default.
15284      lt_prog_compiler_static_GCJ='-non_shared'
15285      ;;
15286
15287    newsos6)
15288      lt_prog_compiler_pic_GCJ='-KPIC'
15289      lt_prog_compiler_static_GCJ='-Bstatic'
15290      ;;
15291
15292    linux*)
15293      case $CC in
15294      icc|ecc)
15295	lt_prog_compiler_wl_GCJ='-Wl,'
15296	lt_prog_compiler_pic_GCJ='-KPIC'
15297	lt_prog_compiler_static_GCJ='-static'
15298        ;;
15299      ccc)
15300        lt_prog_compiler_wl_GCJ='-Wl,'
15301        # All Alpha code is PIC.
15302        lt_prog_compiler_static_GCJ='-non_shared'
15303        ;;
15304      esac
15305      ;;
15306
15307    osf3* | osf4* | osf5*)
15308      lt_prog_compiler_wl_GCJ='-Wl,'
15309      # All OSF/1 code is PIC.
15310      lt_prog_compiler_static_GCJ='-non_shared'
15311      ;;
15312
15313    sco3.2v5*)
15314      lt_prog_compiler_pic_GCJ='-Kpic'
15315      lt_prog_compiler_static_GCJ='-dn'
15316      ;;
15317
15318    solaris*)
15319      lt_prog_compiler_wl_GCJ='-Wl,'
15320      lt_prog_compiler_pic_GCJ='-KPIC'
15321      lt_prog_compiler_static_GCJ='-Bstatic'
15322      ;;
15323
15324    sunos4*)
15325      lt_prog_compiler_wl_GCJ='-Qoption ld '
15326      lt_prog_compiler_pic_GCJ='-PIC'
15327      lt_prog_compiler_static_GCJ='-Bstatic'
15328      ;;
15329
15330    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15331      lt_prog_compiler_wl_GCJ='-Wl,'
15332      lt_prog_compiler_pic_GCJ='-KPIC'
15333      lt_prog_compiler_static_GCJ='-Bstatic'
15334      ;;
15335
15336    sysv4*MP*)
15337      if test -d /usr/nec ;then
15338	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15339	lt_prog_compiler_static_GCJ='-Bstatic'
15340      fi
15341      ;;
15342
15343    uts4*)
15344      lt_prog_compiler_pic_GCJ='-pic'
15345      lt_prog_compiler_static_GCJ='-Bstatic'
15346      ;;
15347
15348    *)
15349      lt_prog_compiler_can_build_shared_GCJ=no
15350      ;;
15351    esac
15352  fi
15353
15354echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15355echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15356
15357#
15358# Check to make sure the PIC flag actually works.
15359#
15360if test -n "$lt_prog_compiler_pic_GCJ"; then
15361  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15362echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15363if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15364  echo $ECHO_N "(cached) $ECHO_C" >&6
15365else
15366  lt_prog_compiler_pic_works_GCJ=no
15367  ac_outfile=conftest.$ac_objext
15368   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15369   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15370   # Insert the option either (1) after the last *FLAGS variable, or
15371   # (2) before a word containing "conftest.", or (3) at the end.
15372   # Note that $ac_compile itself does not contain backslashes and begins
15373   # with a dollar sign (not a hyphen), so the echo should work correctly.
15374   # The option is referenced via a variable to avoid confusing sed.
15375   lt_compile=`echo "$ac_compile" | $SED \
15376   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15377   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378   -e 's:$: $lt_compiler_flag:'`
15379   (eval echo "\"\$as_me:15379: $lt_compile\"" >&5)
15380   (eval "$lt_compile" 2>conftest.err)
15381   ac_status=$?
15382   cat conftest.err >&5
15383   echo "$as_me:15383: \$? = $ac_status" >&5
15384   if (exit $ac_status) && test -s "$ac_outfile"; then
15385     # The compiler can only warn and ignore the option if not recognized
15386     # So say no if there are warnings
15387     if test ! -s conftest.err; then
15388       lt_prog_compiler_pic_works_GCJ=yes
15389     fi
15390   fi
15391   $rm conftest*
15392
15393fi
15394echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15395echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15396
15397if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15398    case $lt_prog_compiler_pic_GCJ in
15399     "" | " "*) ;;
15400     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15401     esac
15402else
15403    lt_prog_compiler_pic_GCJ=
15404     lt_prog_compiler_can_build_shared_GCJ=no
15405fi
15406
15407fi
15408case "$host_os" in
15409  # For platforms which do not support PIC, -DPIC is meaningless:
15410  *djgpp*)
15411    lt_prog_compiler_pic_GCJ=
15412    ;;
15413  *)
15414    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15415    ;;
15416esac
15417
15418echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15419echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15420if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15421  echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423  lt_cv_prog_compiler_c_o_GCJ=no
15424   $rm -r conftest 2>/dev/null
15425   mkdir conftest
15426   cd conftest
15427   mkdir out
15428   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429
15430   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15431   # that will create temporary files in the current directory regardless of
15432   # the output directory.  Thus, making CWD read-only will cause this test
15433   # to fail, enabling locking or at least warning the user not to do parallel
15434   # builds.
15435   chmod -w .
15436
15437   lt_compiler_flag="-o out/conftest2.$ac_objext"
15438   # Insert the option either (1) after the last *FLAGS variable, or
15439   # (2) before a word containing "conftest.", or (3) at the end.
15440   # Note that $ac_compile itself does not contain backslashes and begins
15441   # with a dollar sign (not a hyphen), so the echo should work correctly.
15442   lt_compile=`echo "$ac_compile" | $SED \
15443   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445   -e 's:$: $lt_compiler_flag:'`
15446   (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
15447   (eval "$lt_compile" 2>out/conftest.err)
15448   ac_status=$?
15449   cat out/conftest.err >&5
15450   echo "$as_me:15450: \$? = $ac_status" >&5
15451   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15452   then
15453     # The compiler can only warn and ignore the option if not recognized
15454     # So say no if there are warnings
15455     if test ! -s out/conftest.err; then
15456       lt_cv_prog_compiler_c_o_GCJ=yes
15457     fi
15458   fi
15459   chmod u+w .
15460   $rm conftest* out/*
15461   rmdir out
15462   cd ..
15463   rmdir conftest
15464   $rm conftest*
15465
15466fi
15467echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15468echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15469
15470
15471hard_links="nottested"
15472if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15473  # do not overwrite the value of need_locks provided by the user
15474  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15475echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15476  hard_links=yes
15477  $rm conftest*
15478  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15479  touch conftest.a
15480  ln conftest.a conftest.b 2>&5 || hard_links=no
15481  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482  echo "$as_me:$LINENO: result: $hard_links" >&5
15483echo "${ECHO_T}$hard_links" >&6
15484  if test "$hard_links" = no; then
15485    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15486echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15487    need_locks=warn
15488  fi
15489else
15490  need_locks=no
15491fi
15492
15493echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15494echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15495
15496  runpath_var=
15497  allow_undefined_flag_GCJ=
15498  enable_shared_with_static_runtimes_GCJ=no
15499  archive_cmds_GCJ=
15500  archive_expsym_cmds_GCJ=
15501  old_archive_From_new_cmds_GCJ=
15502  old_archive_from_expsyms_cmds_GCJ=
15503  export_dynamic_flag_spec_GCJ=
15504  whole_archive_flag_spec_GCJ=
15505  thread_safe_flag_spec_GCJ=
15506  hardcode_libdir_flag_spec_GCJ=
15507  hardcode_libdir_flag_spec_ld_GCJ=
15508  hardcode_libdir_separator_GCJ=
15509  hardcode_direct_GCJ=no
15510  hardcode_minus_L_GCJ=no
15511  hardcode_shlibpath_var_GCJ=unsupported
15512  link_all_deplibs_GCJ=unknown
15513  hardcode_automatic_GCJ=no
15514  module_cmds_GCJ=
15515  module_expsym_cmds_GCJ=
15516  always_export_symbols_GCJ=no
15517  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15518  # include_expsyms should be a list of space-separated symbols to be *always*
15519  # included in the symbol list
15520  include_expsyms_GCJ=
15521  # exclude_expsyms can be an extended regexp of symbols to exclude
15522  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524  # as well as any symbol that contains `d'.
15525  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15526  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527  # platforms (ab)use it in PIC code, but their linkers get confused if
15528  # the symbol is explicitly referenced.  Since portable code cannot
15529  # rely on this symbol name, it's probably fine to never include it in
15530  # preloaded symbol tables.
15531  extract_expsyms_cmds=
15532
15533  case $host_os in
15534  cygwin* | mingw* | pw32*)
15535    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15536    # When not using gcc, we currently assume that we are using
15537    # Microsoft Visual C++.
15538    if test "$GCC" != yes; then
15539      with_gnu_ld=no
15540    fi
15541    ;;
15542  openbsd*)
15543    with_gnu_ld=no
15544    ;;
15545  esac
15546
15547  ld_shlibs_GCJ=yes
15548  if test "$with_gnu_ld" = yes; then
15549    # If archive_cmds runs LD, not CC, wlarc should be empty
15550    wlarc='${wl}'
15551
15552    # See if GNU ld supports shared libraries.
15553    case $host_os in
15554    aix3* | aix4* | aix5*)
15555      # On AIX/PPC, the GNU linker is very broken
15556      if test "$host_cpu" != ia64; then
15557	ld_shlibs_GCJ=no
15558	cat <<EOF 1>&2
15559
15560*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15561*** to be unable to reliably create shared libraries on AIX.
15562*** Therefore, libtool is disabling shared libraries support.  If you
15563*** really care for shared libraries, you may want to modify your PATH
15564*** so that a non-GNU linker is found, and then restart.
15565
15566EOF
15567      fi
15568      ;;
15569
15570    amigaos*)
15571      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)'
15572      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573      hardcode_minus_L_GCJ=yes
15574
15575      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15576      # that the semantics of dynamic libraries on AmigaOS, at least up
15577      # to version 4, is to share data among multiple programs linked
15578      # with the same dynamic library.  Since this doesn't match the
15579      # behavior of shared libraries on other platforms, we can't use
15580      # them.
15581      ld_shlibs_GCJ=no
15582      ;;
15583
15584    beos*)
15585      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15586	allow_undefined_flag_GCJ=unsupported
15587	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15588	# support --undefined.  This deserves some investigation.  FIXME
15589	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590      else
15591	ld_shlibs_GCJ=no
15592      fi
15593      ;;
15594
15595    cygwin* | mingw* | pw32*)
15596      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15597      # as there is no search path for DLLs.
15598      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15599      allow_undefined_flag_GCJ=unsupported
15600      always_export_symbols_GCJ=no
15601      enable_shared_with_static_runtimes_GCJ=yes
15602      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15603
15604      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15605        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15606	# If the export-symbols file already is a .def file (1st line
15607	# is EXPORTS), use it as is; otherwise, prepend...
15608	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15609	  cp $export_symbols $output_objdir/$soname.def;
15610	else
15611	  echo EXPORTS > $output_objdir/$soname.def;
15612	  cat $export_symbols >> $output_objdir/$soname.def;
15613	fi~
15614	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15615      else
15616	ld_shlibs=no
15617      fi
15618      ;;
15619
15620    netbsd*)
15621      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15622	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15623	wlarc=
15624      else
15625	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15626	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15627      fi
15628      ;;
15629
15630    solaris* | sysv5*)
15631      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15632	ld_shlibs_GCJ=no
15633	cat <<EOF 1>&2
15634
15635*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15636*** create shared libraries on Solaris systems.  Therefore, libtool
15637*** is disabling shared libraries support.  We urge you to upgrade GNU
15638*** binutils to release 2.9.1 or newer.  Another option is to modify
15639*** your PATH or compiler configuration so that the native linker is
15640*** used, and then restart.
15641
15642EOF
15643      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15644	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15645	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15646      else
15647	ld_shlibs_GCJ=no
15648      fi
15649      ;;
15650
15651    sunos4*)
15652      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15653      wlarc=
15654      hardcode_direct_GCJ=yes
15655      hardcode_shlibpath_var_GCJ=no
15656      ;;
15657
15658    *)
15659      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15660	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15661	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15662      else
15663	ld_shlibs_GCJ=no
15664      fi
15665      ;;
15666    esac
15667
15668    if test "$ld_shlibs_GCJ" = yes; then
15669      runpath_var=LD_RUN_PATH
15670      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15671      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15672      # ancient GNU ld didn't support --whole-archive et. al.
15673      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15674 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15675      else
15676  	whole_archive_flag_spec_GCJ=
15677      fi
15678    fi
15679  else
15680    # PORTME fill in a description of your system's linker (not GNU ld)
15681    case $host_os in
15682    aix3*)
15683      allow_undefined_flag_GCJ=unsupported
15684      always_export_symbols_GCJ=yes
15685      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'
15686      # Note: this linker hardcodes the directories in LIBPATH if there
15687      # are no directories specified by -L.
15688      hardcode_minus_L_GCJ=yes
15689      if test "$GCC" = yes && test -z "$link_static_flag"; then
15690	# Neither direct hardcoding nor static linking is supported with a
15691	# broken collect2.
15692	hardcode_direct_GCJ=unsupported
15693      fi
15694      ;;
15695
15696    aix4* | aix5*)
15697      if test "$host_cpu" = ia64; then
15698	# On IA64, the linker does run time linking by default, so we don't
15699	# have to do anything special.
15700	aix_use_runtimelinking=no
15701	exp_sym_flag='-Bexport'
15702	no_entry_flag=""
15703      else
15704	# If we're using GNU nm, then we don't want the "-C" option.
15705	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15706	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15707	  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'
15708	else
15709	  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'
15710	fi
15711	aix_use_runtimelinking=no
15712
15713	# Test if we are trying to use run time linking or normal
15714	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15715	# need to do runtime linking.
15716	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15717	  for ld_flag in $LDFLAGS; do
15718  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15719  	    aix_use_runtimelinking=yes
15720  	    break
15721  	  fi
15722	  done
15723	esac
15724
15725	exp_sym_flag='-bexport'
15726	no_entry_flag='-bnoentry'
15727      fi
15728
15729      # When large executables or shared objects are built, AIX ld can
15730      # have problems creating the table of contents.  If linking a library
15731      # or program results in "error TOC overflow" add -mminimal-toc to
15732      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15733      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15734
15735      archive_cmds_GCJ=''
15736      hardcode_direct_GCJ=yes
15737      hardcode_libdir_separator_GCJ=':'
15738      link_all_deplibs_GCJ=yes
15739
15740      if test "$GCC" = yes; then
15741	case $host_os in aix4.012|aix4.012.*)
15742	# We only want to do this on AIX 4.2 and lower, the check
15743	# below for broken collect2 doesn't work under 4.3+
15744	  collect2name=`${CC} -print-prog-name=collect2`
15745	  if test -f "$collect2name" && \
15746  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15747	  then
15748  	  # We have reworked collect2
15749  	  hardcode_direct_GCJ=yes
15750	  else
15751  	  # We have old collect2
15752  	  hardcode_direct_GCJ=unsupported
15753  	  # It fails to find uninstalled libraries when the uninstalled
15754  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15755  	  # to unsupported forces relinking
15756  	  hardcode_minus_L_GCJ=yes
15757  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15758  	  hardcode_libdir_separator_GCJ=
15759	  fi
15760	esac
15761	shared_flag='-shared'
15762      else
15763	# not using gcc
15764	if test "$host_cpu" = ia64; then
15765  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15766  	# chokes on -Wl,-G. The following line is correct:
15767	  shared_flag='-G'
15768	else
15769  	if test "$aix_use_runtimelinking" = yes; then
15770	    shared_flag='${wl}-G'
15771	  else
15772	    shared_flag='${wl}-bM:SRE'
15773  	fi
15774	fi
15775      fi
15776
15777      # It seems that -bexpall does not export symbols beginning with
15778      # underscore (_), so it is better to generate a list of symbols to export.
15779      always_export_symbols_GCJ=yes
15780      if test "$aix_use_runtimelinking" = yes; then
15781	# Warning - without using the other runtime loading flags (-brtl),
15782	# -berok will link without error, but may produce a broken library.
15783	allow_undefined_flag_GCJ='-berok'
15784       # Determine the default libpath from the value encoded in an empty executable.
15785       cat >conftest.$ac_ext <<_ACEOF
15786/* confdefs.h.  */
15787_ACEOF
15788cat confdefs.h >>conftest.$ac_ext
15789cat >>conftest.$ac_ext <<_ACEOF
15790/* end confdefs.h.  */
15791
15792int
15793main ()
15794{
15795
15796  ;
15797  return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext conftest$ac_exeext
15801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802  (eval $ac_link) 2>conftest.er1
15803  ac_status=$?
15804  grep -v '^ *+' conftest.er1 >conftest.err
15805  rm -f conftest.er1
15806  cat conftest.err >&5
15807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808  (exit $ac_status); } &&
15809	 { ac_try='test -z "$ac_c_werror_flag"
15810			 || test ! -s conftest.err'
15811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812  (eval $ac_try) 2>&5
15813  ac_status=$?
15814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815  (exit $ac_status); }; } &&
15816	 { ac_try='test -s conftest$ac_exeext'
15817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818  (eval $ac_try) 2>&5
15819  ac_status=$?
15820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821  (exit $ac_status); }; }; then
15822
15823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15824}'`
15825# Check for a 64-bit object if we didn't find anything.
15826if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15827}'`; fi
15828else
15829  echo "$as_me: failed program was:" >&5
15830sed 's/^/| /' conftest.$ac_ext >&5
15831
15832fi
15833rm -f conftest.err conftest.$ac_objext \
15834      conftest$ac_exeext conftest.$ac_ext
15835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15836
15837       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15838	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15839       else
15840	if test "$host_cpu" = ia64; then
15841	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15842	  allow_undefined_flag_GCJ="-z nodefs"
15843	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15844	else
15845	 # Determine the default libpath from the value encoded in an empty executable.
15846	 cat >conftest.$ac_ext <<_ACEOF
15847/* confdefs.h.  */
15848_ACEOF
15849cat confdefs.h >>conftest.$ac_ext
15850cat >>conftest.$ac_ext <<_ACEOF
15851/* end confdefs.h.  */
15852
15853int
15854main ()
15855{
15856
15857  ;
15858  return 0;
15859}
15860_ACEOF
15861rm -f conftest.$ac_objext conftest$ac_exeext
15862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15863  (eval $ac_link) 2>conftest.er1
15864  ac_status=$?
15865  grep -v '^ *+' conftest.er1 >conftest.err
15866  rm -f conftest.er1
15867  cat conftest.err >&5
15868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869  (exit $ac_status); } &&
15870	 { ac_try='test -z "$ac_c_werror_flag"
15871			 || test ! -s conftest.err'
15872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873  (eval $ac_try) 2>&5
15874  ac_status=$?
15875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876  (exit $ac_status); }; } &&
15877	 { ac_try='test -s conftest$ac_exeext'
15878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879  (eval $ac_try) 2>&5
15880  ac_status=$?
15881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882  (exit $ac_status); }; }; then
15883
15884aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15885}'`
15886# Check for a 64-bit object if we didn't find anything.
15887if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15888}'`; fi
15889else
15890  echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893fi
15894rm -f conftest.err conftest.$ac_objext \
15895      conftest$ac_exeext conftest.$ac_ext
15896if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15897
15898	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15899	  # Warning - without using the other run time loading flags,
15900	  # -berok will link without error, but may produce a broken library.
15901	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15902	  allow_undefined_flag_GCJ=' ${wl}-berok'
15903	  # -bexpall does not export symbols beginning with underscore (_)
15904	  always_export_symbols_GCJ=yes
15905	  # Exported symbols can be pulled into shared objects from archives
15906	  whole_archive_flag_spec_GCJ=' '
15907	  archive_cmds_need_lc_GCJ=yes
15908	  # This is similar to how AIX traditionally builds it's shared libraries.
15909	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15910	fi
15911      fi
15912      ;;
15913
15914    amigaos*)
15915      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)'
15916      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917      hardcode_minus_L_GCJ=yes
15918      # see comment about different semantics on the GNU ld section
15919      ld_shlibs_GCJ=no
15920      ;;
15921
15922    bsdi4*)
15923      export_dynamic_flag_spec_GCJ=-rdynamic
15924      ;;
15925
15926    cygwin* | mingw* | pw32*)
15927      # When not using gcc, we currently assume that we are using
15928      # Microsoft Visual C++.
15929      # hardcode_libdir_flag_spec is actually meaningless, as there is
15930      # no search path for DLLs.
15931      hardcode_libdir_flag_spec_GCJ=' '
15932      allow_undefined_flag_GCJ=unsupported
15933      # Tell ltmain to make .lib files, not .a files.
15934      libext=lib
15935      # Tell ltmain to make .dll files, not .so files.
15936      shrext=".dll"
15937      # FIXME: Setting linknames here is a bad hack.
15938      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15939      # The linker will automatically build a .lib file if we build a DLL.
15940      old_archive_From_new_cmds_GCJ='true'
15941      # FIXME: Should let the user specify the lib program.
15942      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15943      fix_srcfile_path='`cygpath -w "$srcfile"`'
15944      enable_shared_with_static_runtimes_GCJ=yes
15945      ;;
15946
15947    darwin* | rhapsody*)
15948    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15949      archive_cmds_need_lc_GCJ=no
15950      case "$host_os" in
15951      rhapsody* | darwin1.[012])
15952	allow_undefined_flag_GCJ='-undefined suppress'
15953	;;
15954      *) # Darwin 1.3 on
15955	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15956	;;
15957      esac
15958      # FIXME: Relying on posixy $() will cause problems for
15959      #        cross-compilation, but unfortunately the echo tests do not
15960      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15961      #	       `"' quotes if we put them in here... so don't!
15962    	lt_int_apple_cc_single_mod=no
15963    	output_verbose_link_cmd='echo'
15964    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15965    	  lt_int_apple_cc_single_mod=yes
15966    	fi
15967    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15968    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15969    	else
15970        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15971      fi
15972      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15973      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15974        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15975          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15976        else
15977          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15978        fi
15979          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15980      hardcode_direct_GCJ=no
15981      hardcode_automatic_GCJ=yes
15982      hardcode_shlibpath_var_GCJ=unsupported
15983      whole_archive_flag_spec_GCJ='-all_load $convenience'
15984      link_all_deplibs_GCJ=yes
15985    fi
15986      ;;
15987
15988    dgux*)
15989      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15990      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15991      hardcode_shlibpath_var_GCJ=no
15992      ;;
15993
15994    freebsd1*)
15995      ld_shlibs_GCJ=no
15996      ;;
15997
15998    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15999    # support.  Future versions do this automatically, but an explicit c++rt0.o
16000    # does not break anything, and helps significantly (at the cost of a little
16001    # extra space).
16002    freebsd2.2*)
16003      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16004      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16005      hardcode_direct_GCJ=yes
16006      hardcode_shlibpath_var_GCJ=no
16007      ;;
16008
16009    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16010    freebsd2*)
16011      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16012      hardcode_direct_GCJ=yes
16013      hardcode_minus_L_GCJ=yes
16014      hardcode_shlibpath_var_GCJ=no
16015      ;;
16016
16017    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16018    freebsd*)
16019      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16020      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16021      hardcode_direct_GCJ=yes
16022      hardcode_shlibpath_var_GCJ=no
16023      ;;
16024
16025    hpux9*)
16026      if test "$GCC" = yes; then
16027	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'
16028      else
16029	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'
16030      fi
16031      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16032      hardcode_libdir_separator_GCJ=:
16033      hardcode_direct_GCJ=yes
16034
16035      # hardcode_minus_L: Not really in the search PATH,
16036      # but as the default location of the library.
16037      hardcode_minus_L_GCJ=yes
16038      export_dynamic_flag_spec_GCJ='${wl}-E'
16039      ;;
16040
16041    hpux10* | hpux11*)
16042      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16043	case "$host_cpu" in
16044	hppa*64*|ia64*)
16045	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16046	  ;;
16047	*)
16048	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16049	  ;;
16050	esac
16051      else
16052	case "$host_cpu" in
16053	hppa*64*|ia64*)
16054	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16055	  ;;
16056	*)
16057	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16058	  ;;
16059	esac
16060      fi
16061      if test "$with_gnu_ld" = no; then
16062	case "$host_cpu" in
16063	hppa*64*)
16064	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16065	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16066	  hardcode_libdir_separator_GCJ=:
16067	  hardcode_direct_GCJ=no
16068	  hardcode_shlibpath_var_GCJ=no
16069	  ;;
16070	ia64*)
16071	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16072	  hardcode_direct_GCJ=no
16073	  hardcode_shlibpath_var_GCJ=no
16074
16075	  # hardcode_minus_L: Not really in the search PATH,
16076	  # but as the default location of the library.
16077	  hardcode_minus_L_GCJ=yes
16078	  ;;
16079	*)
16080	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16081	  hardcode_libdir_separator_GCJ=:
16082	  hardcode_direct_GCJ=yes
16083	  export_dynamic_flag_spec_GCJ='${wl}-E'
16084
16085	  # hardcode_minus_L: Not really in the search PATH,
16086	  # but as the default location of the library.
16087	  hardcode_minus_L_GCJ=yes
16088	  ;;
16089	esac
16090      fi
16091      ;;
16092
16093    irix5* | irix6* | nonstopux*)
16094      if test "$GCC" = yes; then
16095	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'
16096      else
16097	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'
16098	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16099      fi
16100      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16101      hardcode_libdir_separator_GCJ=:
16102      link_all_deplibs_GCJ=yes
16103      ;;
16104
16105    netbsd*)
16106      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16107	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16108      else
16109	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16110      fi
16111      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16112      hardcode_direct_GCJ=yes
16113      hardcode_shlibpath_var_GCJ=no
16114      ;;
16115
16116    newsos6)
16117      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118      hardcode_direct_GCJ=yes
16119      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16120      hardcode_libdir_separator_GCJ=:
16121      hardcode_shlibpath_var_GCJ=no
16122      ;;
16123
16124    openbsd*)
16125      hardcode_direct_GCJ=yes
16126      hardcode_shlibpath_var_GCJ=no
16127      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16128	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16129	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16130	export_dynamic_flag_spec_GCJ='${wl}-E'
16131      else
16132       case $host_os in
16133	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16134	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16136	   ;;
16137	 *)
16138	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16139	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16140	   ;;
16141       esac
16142      fi
16143      ;;
16144
16145    os2*)
16146      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16147      hardcode_minus_L_GCJ=yes
16148      allow_undefined_flag_GCJ=unsupported
16149      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'
16150      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16151      ;;
16152
16153    osf3*)
16154      if test "$GCC" = yes; then
16155	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16156	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'
16157      else
16158	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16159	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'
16160      fi
16161      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16162      hardcode_libdir_separator_GCJ=:
16163      ;;
16164
16165    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16166      if test "$GCC" = yes; then
16167	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16168	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'
16169	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16170      else
16171	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16172	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'
16173	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~
16174	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16175
16176	# Both c and cxx compiler support -rpath directly
16177	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16178      fi
16179      hardcode_libdir_separator_GCJ=:
16180      ;;
16181
16182    sco3.2v5*)
16183      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184      hardcode_shlibpath_var_GCJ=no
16185      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16186      runpath_var=LD_RUN_PATH
16187      hardcode_runpath_var=yes
16188      ;;
16189
16190    solaris*)
16191      no_undefined_flag_GCJ=' -z text'
16192      if test "$GCC" = yes; then
16193	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16196      else
16197	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16199  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16200      fi
16201      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16202      hardcode_shlibpath_var_GCJ=no
16203      case $host_os in
16204      solaris2.[0-5] | solaris2.[0-5].*) ;;
16205      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16206	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16207      esac
16208      link_all_deplibs_GCJ=yes
16209      ;;
16210
16211    sunos4*)
16212      if test "x$host_vendor" = xsequent; then
16213	# Use $CC to link under sequent, because it throws in some extra .o
16214	# files that make .init and .fini sections work.
16215	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16216      else
16217	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16218      fi
16219      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220      hardcode_direct_GCJ=yes
16221      hardcode_minus_L_GCJ=yes
16222      hardcode_shlibpath_var_GCJ=no
16223      ;;
16224
16225    sysv4)
16226      case $host_vendor in
16227	sni)
16228	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229	  hardcode_direct_GCJ=yes # is this really true???
16230	;;
16231	siemens)
16232	  ## LD is ld it makes a PLAMLIB
16233	  ## CC just makes a GrossModule.
16234	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16235	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16236	  hardcode_direct_GCJ=no
16237        ;;
16238	motorola)
16239	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16241	;;
16242      esac
16243      runpath_var='LD_RUN_PATH'
16244      hardcode_shlibpath_var_GCJ=no
16245      ;;
16246
16247    sysv4.3*)
16248      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249      hardcode_shlibpath_var_GCJ=no
16250      export_dynamic_flag_spec_GCJ='-Bexport'
16251      ;;
16252
16253    sysv4*MP*)
16254      if test -d /usr/nec; then
16255	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256	hardcode_shlibpath_var_GCJ=no
16257	runpath_var=LD_RUN_PATH
16258	hardcode_runpath_var=yes
16259	ld_shlibs_GCJ=yes
16260      fi
16261      ;;
16262
16263    sysv4.2uw2*)
16264      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16265      hardcode_direct_GCJ=yes
16266      hardcode_minus_L_GCJ=no
16267      hardcode_shlibpath_var_GCJ=no
16268      hardcode_runpath_var=yes
16269      runpath_var=LD_RUN_PATH
16270      ;;
16271
16272   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16273      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16274      if test "$GCC" = yes; then
16275	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16276      else
16277	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16278      fi
16279      runpath_var='LD_RUN_PATH'
16280      hardcode_shlibpath_var_GCJ=no
16281      ;;
16282
16283    sysv5*)
16284      no_undefined_flag_GCJ=' -z text'
16285      # $CC -shared without GNU ld will not create a library from C++
16286      # object files and a static libstdc++, better avoid it by now
16287      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16289  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16290      hardcode_libdir_flag_spec_GCJ=
16291      hardcode_shlibpath_var_GCJ=no
16292      runpath_var='LD_RUN_PATH'
16293      ;;
16294
16295    uts4*)
16296      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16297      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298      hardcode_shlibpath_var_GCJ=no
16299      ;;
16300
16301    *)
16302      ld_shlibs_GCJ=no
16303      ;;
16304    esac
16305  fi
16306
16307echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16308echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16309test "$ld_shlibs_GCJ" = no && can_build_shared=no
16310
16311variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16312if test "$GCC" = yes; then
16313  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16314fi
16315
16316#
16317# Do we need to explicitly link libc?
16318#
16319case "x$archive_cmds_need_lc_GCJ" in
16320x|xyes)
16321  # Assume -lc should be added
16322  archive_cmds_need_lc_GCJ=yes
16323
16324  if test "$enable_shared" = yes && test "$GCC" = yes; then
16325    case $archive_cmds_GCJ in
16326    *'~'*)
16327      # FIXME: we may have to deal with multi-command sequences.
16328      ;;
16329    '$CC '*)
16330      # Test whether the compiler implicitly links with -lc since on some
16331      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16332      # to ld, don't add -lc before -lgcc.
16333      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16334echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16335      $rm conftest*
16336      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16337
16338      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16339  (eval $ac_compile) 2>&5
16340  ac_status=$?
16341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342  (exit $ac_status); } 2>conftest.err; then
16343        soname=conftest
16344        lib=conftest
16345        libobjs=conftest.$ac_objext
16346        deplibs=
16347        wl=$lt_prog_compiler_wl_GCJ
16348        compiler_flags=-v
16349        linker_flags=-v
16350        verstring=
16351        output_objdir=.
16352        libname=conftest
16353        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16354        allow_undefined_flag_GCJ=
16355        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16356  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16357  ac_status=$?
16358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359  (exit $ac_status); }
16360        then
16361	  archive_cmds_need_lc_GCJ=no
16362        else
16363	  archive_cmds_need_lc_GCJ=yes
16364        fi
16365        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16366      else
16367        cat conftest.err 1>&5
16368      fi
16369      $rm conftest*
16370      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16371echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16372      ;;
16373    esac
16374  fi
16375  ;;
16376esac
16377
16378echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16379echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16380hardcode_action_GCJ=
16381if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16382   test -n "$runpath_var GCJ" || \
16383   test "X$hardcode_automatic_GCJ"="Xyes" ; then
16384
16385  # We can hardcode non-existant directories.
16386  if test "$hardcode_direct_GCJ" != no &&
16387     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16388     # have to relink, otherwise we might link with an installed library
16389     # when we should be linking with a yet-to-be-installed one
16390     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16391     test "$hardcode_minus_L_GCJ" != no; then
16392    # Linking always hardcodes the temporary library directory.
16393    hardcode_action_GCJ=relink
16394  else
16395    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16396    hardcode_action_GCJ=immediate
16397  fi
16398else
16399  # We cannot hardcode anything, or else we can only hardcode existing
16400  # directories.
16401  hardcode_action_GCJ=unsupported
16402fi
16403echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16404echo "${ECHO_T}$hardcode_action_GCJ" >&6
16405
16406if test "$hardcode_action_GCJ" = relink; then
16407  # Fast installation is not supported
16408  enable_fast_install=no
16409elif test "$shlibpath_overrides_runpath" = yes ||
16410     test "$enable_shared" = no; then
16411  # Fast installation is not necessary
16412  enable_fast_install=needless
16413fi
16414
16415striplib=
16416old_striplib=
16417echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16418echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16419if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16420  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16421  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16422  echo "$as_me:$LINENO: result: yes" >&5
16423echo "${ECHO_T}yes" >&6
16424else
16425# FIXME - insert some real tests, host_os isn't really good enough
16426  case $host_os in
16427   darwin*)
16428       if test -n "$STRIP" ; then
16429         striplib="$STRIP -x"
16430         echo "$as_me:$LINENO: result: yes" >&5
16431echo "${ECHO_T}yes" >&6
16432       else
16433  echo "$as_me:$LINENO: result: no" >&5
16434echo "${ECHO_T}no" >&6
16435fi
16436       ;;
16437   *)
16438  echo "$as_me:$LINENO: result: no" >&5
16439echo "${ECHO_T}no" >&6
16440    ;;
16441  esac
16442fi
16443
16444echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16445echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16446library_names_spec=
16447libname_spec='lib$name'
16448soname_spec=
16449shrext=".so"
16450postinstall_cmds=
16451postuninstall_cmds=
16452finish_cmds=
16453finish_eval=
16454shlibpath_var=
16455shlibpath_overrides_runpath=unknown
16456version_type=none
16457dynamic_linker="$host_os ld.so"
16458sys_lib_dlsearch_path_spec="/lib /usr/lib"
16459if test "$GCC" = yes; then
16460  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16462    # if the path contains ";" then we assume it to be the separator
16463    # otherwise default to the standard path separator (i.e. ":") - it is
16464    # assumed that no part of a normal pathname contains ";" but that should
16465    # okay in the real world where ";" in dirpaths is itself problematic.
16466    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16467  else
16468    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16469  fi
16470else
16471  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16472fi
16473need_lib_prefix=unknown
16474hardcode_into_libs=no
16475
16476# when you set need_version to no, make sure it does not cause -set_version
16477# flags to be left without arguments
16478need_version=unknown
16479
16480case $host_os in
16481aix3*)
16482  version_type=linux
16483  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16484  shlibpath_var=LIBPATH
16485
16486  # AIX 3 has no versioning support, so we append a major version to the name.
16487  soname_spec='${libname}${release}${shared_ext}$major'
16488  ;;
16489
16490aix4* | aix5*)
16491  version_type=linux
16492  need_lib_prefix=no
16493  need_version=no
16494  hardcode_into_libs=yes
16495  if test "$host_cpu" = ia64; then
16496    # AIX 5 supports IA64
16497    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16498    shlibpath_var=LD_LIBRARY_PATH
16499  else
16500    # With GCC up to 2.95.x, collect2 would create an import file
16501    # for dependence libraries.  The import file would start with
16502    # the line `#! .'.  This would cause the generated library to
16503    # depend on `.', always an invalid library.  This was fixed in
16504    # development snapshots of GCC prior to 3.0.
16505    case $host_os in
16506      aix4 | aix4.[01] | aix4.[01].*)
16507      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16508	   echo ' yes '
16509	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16510	:
16511      else
16512	can_build_shared=no
16513      fi
16514      ;;
16515    esac
16516    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16517    # soname into executable. Probably we can add versioning support to
16518    # collect2, so additional links can be useful in future.
16519    if test "$aix_use_runtimelinking" = yes; then
16520      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16521      # instead of lib<name>.a to let people know that these are not
16522      # typical AIX shared libraries.
16523      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524    else
16525      # We preserve .a as extension for shared libraries through AIX4.2
16526      # and later when we are not doing run time linking.
16527      library_names_spec='${libname}${release}.a $libname.a'
16528      soname_spec='${libname}${release}${shared_ext}$major'
16529    fi
16530    shlibpath_var=LIBPATH
16531  fi
16532  ;;
16533
16534amigaos*)
16535  library_names_spec='$libname.ixlibrary $libname.a'
16536  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16537  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'
16538  ;;
16539
16540beos*)
16541  library_names_spec='${libname}${shared_ext}'
16542  dynamic_linker="$host_os ld.so"
16543  shlibpath_var=LIBRARY_PATH
16544  ;;
16545
16546bsdi4*)
16547  version_type=linux
16548  need_version=no
16549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550  soname_spec='${libname}${release}${shared_ext}$major'
16551  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16552  shlibpath_var=LD_LIBRARY_PATH
16553  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16554  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16555  # the default ld.so.conf also contains /usr/contrib/lib and
16556  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16557  # libtool to hard-code these into programs
16558  ;;
16559
16560cygwin* | mingw* | pw32*)
16561  version_type=windows
16562  shrext=".dll"
16563  need_version=no
16564  need_lib_prefix=no
16565
16566  case $GCC,$host_os in
16567  yes,cygwin* | yes,mingw* | yes,pw32*)
16568    library_names_spec='$libname.dll.a'
16569    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16570    postinstall_cmds='base_file=`basename \${file}`~
16571      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16572      dldir=$destdir/`dirname \$dlpath`~
16573      test -d \$dldir || mkdir -p \$dldir~
16574      $install_prog $dir/$dlname \$dldir/$dlname'
16575    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16576      dlpath=$dir/\$dldll~
16577       $rm \$dlpath'
16578    shlibpath_overrides_runpath=yes
16579
16580    case $host_os in
16581    cygwin*)
16582      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16583      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16584      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16585      ;;
16586    mingw*)
16587      # MinGW DLLs use traditional 'lib' prefix
16588      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16589      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16590      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16591        # It is most probably a Windows format PATH printed by
16592        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16593        # path with ; separators, and with drive letters. We can handle the
16594        # drive letters (cygwin fileutils understands them), so leave them,
16595        # especially as we might pass files found there to a mingw objdump,
16596        # which wouldn't understand a cygwinified path. Ahh.
16597        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16598      else
16599        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16600      fi
16601      ;;
16602    pw32*)
16603      # pw32 DLLs use 'pw' prefix rather than 'lib'
16604      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16605      ;;
16606    esac
16607    ;;
16608
16609  *)
16610    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16611    ;;
16612  esac
16613  dynamic_linker='Win32 ld.exe'
16614  # FIXME: first we should search . and the directory the executable is in
16615  shlibpath_var=PATH
16616  ;;
16617
16618darwin* | rhapsody*)
16619  dynamic_linker="$host_os dyld"
16620  version_type=darwin
16621  need_lib_prefix=no
16622  need_version=no
16623  # FIXME: Relying on posixy $() will cause problems for
16624  #        cross-compilation, but unfortunately the echo tests do not
16625  #        yet detect zsh echo's removal of \ escapes.
16626  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16627  soname_spec='${libname}${release}${major}$shared_ext'
16628  shlibpath_overrides_runpath=yes
16629  shlibpath_var=DYLD_LIBRARY_PATH
16630  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16631  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16632  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16633  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16634  fi
16635  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16636  ;;
16637
16638dgux*)
16639  version_type=linux
16640  need_lib_prefix=no
16641  need_version=no
16642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16643  soname_spec='${libname}${release}${shared_ext}$major'
16644  shlibpath_var=LD_LIBRARY_PATH
16645  ;;
16646
16647freebsd1*)
16648  dynamic_linker=no
16649  ;;
16650
16651freebsd*)
16652  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16653  version_type=freebsd-$objformat
16654  case $version_type in
16655    freebsd-elf*)
16656      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16657      need_version=no
16658      need_lib_prefix=no
16659      ;;
16660    freebsd-*)
16661      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16662      need_version=yes
16663      ;;
16664  esac
16665  shlibpath_var=LD_LIBRARY_PATH
16666  case $host_os in
16667  freebsd2*)
16668    shlibpath_overrides_runpath=yes
16669    ;;
16670  freebsd3.01* | freebsdelf3.01*)
16671    shlibpath_overrides_runpath=yes
16672    hardcode_into_libs=yes
16673    ;;
16674  *) # from 3.2 on
16675    shlibpath_overrides_runpath=no
16676    hardcode_into_libs=yes
16677    ;;
16678  esac
16679  ;;
16680
16681gnu*)
16682  version_type=linux
16683  need_lib_prefix=no
16684  need_version=no
16685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16686  soname_spec='${libname}${release}${shared_ext}$major'
16687  shlibpath_var=LD_LIBRARY_PATH
16688  hardcode_into_libs=yes
16689  ;;
16690
16691hpux9* | hpux10* | hpux11*)
16692  # Give a soname corresponding to the major version so that dld.sl refuses to
16693  # link against other versions.
16694  version_type=sunos
16695  need_lib_prefix=no
16696  need_version=no
16697  case "$host_cpu" in
16698  ia64*)
16699    shrext='.so'
16700    hardcode_into_libs=yes
16701    dynamic_linker="$host_os dld.so"
16702    shlibpath_var=LD_LIBRARY_PATH
16703    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16704    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705    soname_spec='${libname}${release}${shared_ext}$major'
16706    if test "X$HPUX_IA64_MODE" = X32; then
16707      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16708    else
16709      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16710    fi
16711    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16712    ;;
16713   hppa*64*)
16714     shrext='.sl'
16715     hardcode_into_libs=yes
16716     dynamic_linker="$host_os dld.sl"
16717     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720     soname_spec='${libname}${release}${shared_ext}$major'
16721     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16722     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16723     ;;
16724   *)
16725    shrext='.sl'
16726    dynamic_linker="$host_os dld.sl"
16727    shlibpath_var=SHLIB_PATH
16728    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16729    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730    soname_spec='${libname}${release}${shared_ext}$major'
16731    ;;
16732  esac
16733  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16734  postinstall_cmds='chmod 555 $lib'
16735  ;;
16736
16737irix5* | irix6* | nonstopux*)
16738  case $host_os in
16739    nonstopux*) version_type=nonstopux ;;
16740    *)
16741	if test "$lt_cv_prog_gnu_ld" = yes; then
16742		version_type=linux
16743	else
16744		version_type=irix
16745	fi ;;
16746  esac
16747  need_lib_prefix=no
16748  need_version=no
16749  soname_spec='${libname}${release}${shared_ext}$major'
16750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16751  case $host_os in
16752  irix5* | nonstopux*)
16753    libsuff= shlibsuff=
16754    ;;
16755  *)
16756    case $LD in # libtool.m4 will add one of these switches to LD
16757    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16758      libsuff= shlibsuff= libmagic=32-bit;;
16759    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16760      libsuff=32 shlibsuff=N32 libmagic=N32;;
16761    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16762      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16763    *) libsuff= shlibsuff= libmagic=never-match;;
16764    esac
16765    ;;
16766  esac
16767  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16768  shlibpath_overrides_runpath=no
16769  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16770  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16771  hardcode_into_libs=yes
16772  ;;
16773
16774# No shared lib support for Linux oldld, aout, or coff.
16775linux*oldld* | linux*aout* | linux*coff*)
16776  dynamic_linker=no
16777  ;;
16778
16779# This must be Linux ELF.
16780linux*)
16781  version_type=linux
16782  need_lib_prefix=no
16783  need_version=no
16784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785  soname_spec='${libname}${release}${shared_ext}$major'
16786  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16787  shlibpath_var=LD_LIBRARY_PATH
16788  shlibpath_overrides_runpath=no
16789  # This implies no fast_install, which is unacceptable.
16790  # Some rework will be needed to allow for fast_install
16791  # before this can be enabled.
16792  hardcode_into_libs=yes
16793
16794  # We used to test for /lib/ld.so.1 and disable shared libraries on
16795  # powerpc, because MkLinux only supported shared libraries with the
16796  # GNU dynamic linker.  Since this was broken with cross compilers,
16797  # most powerpc-linux boxes support dynamic linking these days and
16798  # people can always --disable-shared, the test was removed, and we
16799  # assume the GNU/Linux dynamic linker is in use.
16800  dynamic_linker='GNU/Linux ld.so'
16801  ;;
16802
16803netbsd*)
16804  version_type=sunos
16805  need_lib_prefix=no
16806  need_version=no
16807  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16808    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16809    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16810    dynamic_linker='NetBSD (a.out) ld.so'
16811  else
16812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16813    soname_spec='${libname}${release}${shared_ext}$major'
16814    dynamic_linker='NetBSD ld.elf_so'
16815  fi
16816  shlibpath_var=LD_LIBRARY_PATH
16817  shlibpath_overrides_runpath=yes
16818  hardcode_into_libs=yes
16819  ;;
16820
16821newsos6)
16822  version_type=linux
16823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824  shlibpath_var=LD_LIBRARY_PATH
16825  shlibpath_overrides_runpath=yes
16826  ;;
16827
16828nto-qnx)
16829  version_type=linux
16830  need_lib_prefix=no
16831  need_version=no
16832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833  soname_spec='${libname}${release}${shared_ext}$major'
16834  shlibpath_var=LD_LIBRARY_PATH
16835  shlibpath_overrides_runpath=yes
16836  ;;
16837
16838openbsd*)
16839  version_type=sunos
16840  need_lib_prefix=no
16841  need_version=no
16842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16844  shlibpath_var=LD_LIBRARY_PATH
16845  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16846    case $host_os in
16847      openbsd2.[89] | openbsd2.[89].*)
16848	shlibpath_overrides_runpath=no
16849	;;
16850      *)
16851	shlibpath_overrides_runpath=yes
16852	;;
16853      esac
16854  else
16855    shlibpath_overrides_runpath=yes
16856  fi
16857  ;;
16858
16859os2*)
16860  libname_spec='$name'
16861  shrext=".dll"
16862  need_lib_prefix=no
16863  library_names_spec='$libname${shared_ext} $libname.a'
16864  dynamic_linker='OS/2 ld.exe'
16865  shlibpath_var=LIBPATH
16866  ;;
16867
16868osf3* | osf4* | osf5*)
16869  version_type=osf
16870  need_lib_prefix=no
16871  need_version=no
16872  soname_spec='${libname}${release}${shared_ext}$major'
16873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874  shlibpath_var=LD_LIBRARY_PATH
16875  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16876  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16877  ;;
16878
16879sco3.2v5*)
16880  version_type=osf
16881  soname_spec='${libname}${release}${shared_ext}$major'
16882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883  shlibpath_var=LD_LIBRARY_PATH
16884  ;;
16885
16886solaris*)
16887  version_type=linux
16888  need_lib_prefix=no
16889  need_version=no
16890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891  soname_spec='${libname}${release}${shared_ext}$major'
16892  shlibpath_var=LD_LIBRARY_PATH
16893  shlibpath_overrides_runpath=yes
16894  hardcode_into_libs=yes
16895  # ldd complains unless libraries are executable
16896  postinstall_cmds='chmod +x $lib'
16897  ;;
16898
16899sunos4*)
16900  version_type=sunos
16901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16902  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16903  shlibpath_var=LD_LIBRARY_PATH
16904  shlibpath_overrides_runpath=yes
16905  if test "$with_gnu_ld" = yes; then
16906    need_lib_prefix=no
16907  fi
16908  need_version=yes
16909  ;;
16910
16911sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16912  version_type=linux
16913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914  soname_spec='${libname}${release}${shared_ext}$major'
16915  shlibpath_var=LD_LIBRARY_PATH
16916  case $host_vendor in
16917    sni)
16918      shlibpath_overrides_runpath=no
16919      need_lib_prefix=no
16920      export_dynamic_flag_spec='${wl}-Blargedynsym'
16921      runpath_var=LD_RUN_PATH
16922      ;;
16923    siemens)
16924      need_lib_prefix=no
16925      ;;
16926    motorola)
16927      need_lib_prefix=no
16928      need_version=no
16929      shlibpath_overrides_runpath=no
16930      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16931      ;;
16932  esac
16933  ;;
16934
16935sysv4*MP*)
16936  if test -d /usr/nec ;then
16937    version_type=linux
16938    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16939    soname_spec='$libname${shared_ext}.$major'
16940    shlibpath_var=LD_LIBRARY_PATH
16941  fi
16942  ;;
16943
16944uts4*)
16945  version_type=linux
16946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947  soname_spec='${libname}${release}${shared_ext}$major'
16948  shlibpath_var=LD_LIBRARY_PATH
16949  ;;
16950
16951*)
16952  dynamic_linker=no
16953  ;;
16954esac
16955echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16956echo "${ECHO_T}$dynamic_linker" >&6
16957test "$dynamic_linker" = no && can_build_shared=no
16958
16959if test "x$enable_dlopen" != xyes; then
16960  enable_dlopen=unknown
16961  enable_dlopen_self=unknown
16962  enable_dlopen_self_static=unknown
16963else
16964  lt_cv_dlopen=no
16965  lt_cv_dlopen_libs=
16966
16967  case $host_os in
16968  beos*)
16969    lt_cv_dlopen="load_add_on"
16970    lt_cv_dlopen_libs=
16971    lt_cv_dlopen_self=yes
16972    ;;
16973
16974  mingw* | pw32*)
16975    lt_cv_dlopen="LoadLibrary"
16976    lt_cv_dlopen_libs=
16977   ;;
16978
16979  cygwin*)
16980    lt_cv_dlopen="dlopen"
16981    lt_cv_dlopen_libs=
16982   ;;
16983
16984  darwin*)
16985  # if libdl is installed we need to link against it
16986    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16987echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16988if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16989  echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991  ac_check_lib_save_LIBS=$LIBS
16992LIBS="-ldl  $LIBS"
16993cat >conftest.$ac_ext <<_ACEOF
16994/* confdefs.h.  */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h.  */
16999
17000/* Override any gcc2 internal prototype to avoid an error.  */
17001#ifdef __cplusplus
17002extern "C"
17003#endif
17004/* We use char because int might match the return type of a gcc2
17005   builtin and then its argument prototype would still apply.  */
17006char dlopen ();
17007int
17008main ()
17009{
17010dlopen ();
17011  ;
17012  return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext conftest$ac_exeext
17016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017  (eval $ac_link) 2>conftest.er1
17018  ac_status=$?
17019  grep -v '^ *+' conftest.er1 >conftest.err
17020  rm -f conftest.er1
17021  cat conftest.err >&5
17022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023  (exit $ac_status); } &&
17024	 { ac_try='test -z "$ac_c_werror_flag"
17025			 || test ! -s conftest.err'
17026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027  (eval $ac_try) 2>&5
17028  ac_status=$?
17029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030  (exit $ac_status); }; } &&
17031	 { ac_try='test -s conftest$ac_exeext'
17032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033  (eval $ac_try) 2>&5
17034  ac_status=$?
17035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036  (exit $ac_status); }; }; then
17037  ac_cv_lib_dl_dlopen=yes
17038else
17039  echo "$as_me: failed program was:" >&5
17040sed 's/^/| /' conftest.$ac_ext >&5
17041
17042ac_cv_lib_dl_dlopen=no
17043fi
17044rm -f conftest.err conftest.$ac_objext \
17045      conftest$ac_exeext conftest.$ac_ext
17046LIBS=$ac_check_lib_save_LIBS
17047fi
17048echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17049echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17050if test $ac_cv_lib_dl_dlopen = yes; then
17051  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17052else
17053
17054    lt_cv_dlopen="dyld"
17055    lt_cv_dlopen_libs=
17056    lt_cv_dlopen_self=yes
17057
17058fi
17059
17060   ;;
17061
17062  *)
17063    echo "$as_me:$LINENO: checking for shl_load" >&5
17064echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17065if test "${ac_cv_func_shl_load+set}" = set; then
17066  echo $ECHO_N "(cached) $ECHO_C" >&6
17067else
17068  cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h.  */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h.  */
17074/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17075   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17076#define shl_load innocuous_shl_load
17077
17078/* System header to define __stub macros and hopefully few prototypes,
17079    which can conflict with char shl_load (); below.
17080    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081    <limits.h> exists even on freestanding compilers.  */
17082
17083#ifdef __STDC__
17084# include <limits.h>
17085#else
17086# include <assert.h>
17087#endif
17088
17089#undef shl_load
17090
17091/* Override any gcc2 internal prototype to avoid an error.  */
17092#ifdef __cplusplus
17093extern "C"
17094{
17095#endif
17096/* We use char because int might match the return type of a gcc2
17097   builtin and then its argument prototype would still apply.  */
17098char shl_load ();
17099/* The GNU C library defines this for functions which it implements
17100    to always fail with ENOSYS.  Some functions are actually named
17101    something starting with __ and the normal name is an alias.  */
17102#if defined (__stub_shl_load) || defined (__stub___shl_load)
17103choke me
17104#else
17105char (*f) () = shl_load;
17106#endif
17107#ifdef __cplusplus
17108}
17109#endif
17110
17111int
17112main ()
17113{
17114return f != shl_load;
17115  ;
17116  return 0;
17117}
17118_ACEOF
17119rm -f conftest.$ac_objext conftest$ac_exeext
17120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121  (eval $ac_link) 2>conftest.er1
17122  ac_status=$?
17123  grep -v '^ *+' conftest.er1 >conftest.err
17124  rm -f conftest.er1
17125  cat conftest.err >&5
17126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127  (exit $ac_status); } &&
17128	 { ac_try='test -z "$ac_c_werror_flag"
17129			 || test ! -s conftest.err'
17130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131  (eval $ac_try) 2>&5
17132  ac_status=$?
17133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134  (exit $ac_status); }; } &&
17135	 { ac_try='test -s conftest$ac_exeext'
17136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137  (eval $ac_try) 2>&5
17138  ac_status=$?
17139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140  (exit $ac_status); }; }; then
17141  ac_cv_func_shl_load=yes
17142else
17143  echo "$as_me: failed program was:" >&5
17144sed 's/^/| /' conftest.$ac_ext >&5
17145
17146ac_cv_func_shl_load=no
17147fi
17148rm -f conftest.err conftest.$ac_objext \
17149      conftest$ac_exeext conftest.$ac_ext
17150fi
17151echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17152echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17153if test $ac_cv_func_shl_load = yes; then
17154  lt_cv_dlopen="shl_load"
17155else
17156  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17157echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17158if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17159  echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161  ac_check_lib_save_LIBS=$LIBS
17162LIBS="-ldld  $LIBS"
17163cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h.  */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h.  */
17169
17170/* Override any gcc2 internal prototype to avoid an error.  */
17171#ifdef __cplusplus
17172extern "C"
17173#endif
17174/* We use char because int might match the return type of a gcc2
17175   builtin and then its argument prototype would still apply.  */
17176char shl_load ();
17177int
17178main ()
17179{
17180shl_load ();
17181  ;
17182  return 0;
17183}
17184_ACEOF
17185rm -f conftest.$ac_objext conftest$ac_exeext
17186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187  (eval $ac_link) 2>conftest.er1
17188  ac_status=$?
17189  grep -v '^ *+' conftest.er1 >conftest.err
17190  rm -f conftest.er1
17191  cat conftest.err >&5
17192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193  (exit $ac_status); } &&
17194	 { ac_try='test -z "$ac_c_werror_flag"
17195			 || test ! -s conftest.err'
17196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197  (eval $ac_try) 2>&5
17198  ac_status=$?
17199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200  (exit $ac_status); }; } &&
17201	 { ac_try='test -s conftest$ac_exeext'
17202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203  (eval $ac_try) 2>&5
17204  ac_status=$?
17205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206  (exit $ac_status); }; }; then
17207  ac_cv_lib_dld_shl_load=yes
17208else
17209  echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212ac_cv_lib_dld_shl_load=no
17213fi
17214rm -f conftest.err conftest.$ac_objext \
17215      conftest$ac_exeext conftest.$ac_ext
17216LIBS=$ac_check_lib_save_LIBS
17217fi
17218echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17219echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17220if test $ac_cv_lib_dld_shl_load = yes; then
17221  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17222else
17223  echo "$as_me:$LINENO: checking for dlopen" >&5
17224echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17225if test "${ac_cv_func_dlopen+set}" = set; then
17226  echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228  cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h.  */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h.  */
17234/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17236#define dlopen innocuous_dlopen
17237
17238/* System header to define __stub macros and hopefully few prototypes,
17239    which can conflict with char dlopen (); below.
17240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241    <limits.h> exists even on freestanding compilers.  */
17242
17243#ifdef __STDC__
17244# include <limits.h>
17245#else
17246# include <assert.h>
17247#endif
17248
17249#undef dlopen
17250
17251/* Override any gcc2 internal prototype to avoid an error.  */
17252#ifdef __cplusplus
17253extern "C"
17254{
17255#endif
17256/* We use char because int might match the return type of a gcc2
17257   builtin and then its argument prototype would still apply.  */
17258char dlopen ();
17259/* The GNU C library defines this for functions which it implements
17260    to always fail with ENOSYS.  Some functions are actually named
17261    something starting with __ and the normal name is an alias.  */
17262#if defined (__stub_dlopen) || defined (__stub___dlopen)
17263choke me
17264#else
17265char (*f) () = dlopen;
17266#endif
17267#ifdef __cplusplus
17268}
17269#endif
17270
17271int
17272main ()
17273{
17274return f != dlopen;
17275  ;
17276  return 0;
17277}
17278_ACEOF
17279rm -f conftest.$ac_objext conftest$ac_exeext
17280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281  (eval $ac_link) 2>conftest.er1
17282  ac_status=$?
17283  grep -v '^ *+' conftest.er1 >conftest.err
17284  rm -f conftest.er1
17285  cat conftest.err >&5
17286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287  (exit $ac_status); } &&
17288	 { ac_try='test -z "$ac_c_werror_flag"
17289			 || test ! -s conftest.err'
17290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291  (eval $ac_try) 2>&5
17292  ac_status=$?
17293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294  (exit $ac_status); }; } &&
17295	 { ac_try='test -s conftest$ac_exeext'
17296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297  (eval $ac_try) 2>&5
17298  ac_status=$?
17299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300  (exit $ac_status); }; }; then
17301  ac_cv_func_dlopen=yes
17302else
17303  echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306ac_cv_func_dlopen=no
17307fi
17308rm -f conftest.err conftest.$ac_objext \
17309      conftest$ac_exeext conftest.$ac_ext
17310fi
17311echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17312echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17313if test $ac_cv_func_dlopen = yes; then
17314  lt_cv_dlopen="dlopen"
17315else
17316  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17317echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17318if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17319  echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321  ac_check_lib_save_LIBS=$LIBS
17322LIBS="-ldl  $LIBS"
17323cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h.  */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h.  */
17329
17330/* Override any gcc2 internal prototype to avoid an error.  */
17331#ifdef __cplusplus
17332extern "C"
17333#endif
17334/* We use char because int might match the return type of a gcc2
17335   builtin and then its argument prototype would still apply.  */
17336char dlopen ();
17337int
17338main ()
17339{
17340dlopen ();
17341  ;
17342  return 0;
17343}
17344_ACEOF
17345rm -f conftest.$ac_objext conftest$ac_exeext
17346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347  (eval $ac_link) 2>conftest.er1
17348  ac_status=$?
17349  grep -v '^ *+' conftest.er1 >conftest.err
17350  rm -f conftest.er1
17351  cat conftest.err >&5
17352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353  (exit $ac_status); } &&
17354	 { ac_try='test -z "$ac_c_werror_flag"
17355			 || test ! -s conftest.err'
17356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357  (eval $ac_try) 2>&5
17358  ac_status=$?
17359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360  (exit $ac_status); }; } &&
17361	 { ac_try='test -s conftest$ac_exeext'
17362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363  (eval $ac_try) 2>&5
17364  ac_status=$?
17365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366  (exit $ac_status); }; }; then
17367  ac_cv_lib_dl_dlopen=yes
17368else
17369  echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372ac_cv_lib_dl_dlopen=no
17373fi
17374rm -f conftest.err conftest.$ac_objext \
17375      conftest$ac_exeext conftest.$ac_ext
17376LIBS=$ac_check_lib_save_LIBS
17377fi
17378echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17379echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17380if test $ac_cv_lib_dl_dlopen = yes; then
17381  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17382else
17383  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17384echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17385if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17386  echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388  ac_check_lib_save_LIBS=$LIBS
17389LIBS="-lsvld  $LIBS"
17390cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h.  */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h.  */
17396
17397/* Override any gcc2 internal prototype to avoid an error.  */
17398#ifdef __cplusplus
17399extern "C"
17400#endif
17401/* We use char because int might match the return type of a gcc2
17402   builtin and then its argument prototype would still apply.  */
17403char dlopen ();
17404int
17405main ()
17406{
17407dlopen ();
17408  ;
17409  return 0;
17410}
17411_ACEOF
17412rm -f conftest.$ac_objext conftest$ac_exeext
17413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414  (eval $ac_link) 2>conftest.er1
17415  ac_status=$?
17416  grep -v '^ *+' conftest.er1 >conftest.err
17417  rm -f conftest.er1
17418  cat conftest.err >&5
17419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420  (exit $ac_status); } &&
17421	 { ac_try='test -z "$ac_c_werror_flag"
17422			 || test ! -s conftest.err'
17423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424  (eval $ac_try) 2>&5
17425  ac_status=$?
17426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427  (exit $ac_status); }; } &&
17428	 { ac_try='test -s conftest$ac_exeext'
17429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430  (eval $ac_try) 2>&5
17431  ac_status=$?
17432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433  (exit $ac_status); }; }; then
17434  ac_cv_lib_svld_dlopen=yes
17435else
17436  echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439ac_cv_lib_svld_dlopen=no
17440fi
17441rm -f conftest.err conftest.$ac_objext \
17442      conftest$ac_exeext conftest.$ac_ext
17443LIBS=$ac_check_lib_save_LIBS
17444fi
17445echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17446echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17447if test $ac_cv_lib_svld_dlopen = yes; then
17448  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17449else
17450  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17451echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17452if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17453  echo $ECHO_N "(cached) $ECHO_C" >&6
17454else
17455  ac_check_lib_save_LIBS=$LIBS
17456LIBS="-ldld  $LIBS"
17457cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h.  */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h.  */
17463
17464/* Override any gcc2 internal prototype to avoid an error.  */
17465#ifdef __cplusplus
17466extern "C"
17467#endif
17468/* We use char because int might match the return type of a gcc2
17469   builtin and then its argument prototype would still apply.  */
17470char dld_link ();
17471int
17472main ()
17473{
17474dld_link ();
17475  ;
17476  return 0;
17477}
17478_ACEOF
17479rm -f conftest.$ac_objext conftest$ac_exeext
17480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481  (eval $ac_link) 2>conftest.er1
17482  ac_status=$?
17483  grep -v '^ *+' conftest.er1 >conftest.err
17484  rm -f conftest.er1
17485  cat conftest.err >&5
17486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487  (exit $ac_status); } &&
17488	 { ac_try='test -z "$ac_c_werror_flag"
17489			 || test ! -s conftest.err'
17490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491  (eval $ac_try) 2>&5
17492  ac_status=$?
17493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494  (exit $ac_status); }; } &&
17495	 { ac_try='test -s conftest$ac_exeext'
17496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497  (eval $ac_try) 2>&5
17498  ac_status=$?
17499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500  (exit $ac_status); }; }; then
17501  ac_cv_lib_dld_dld_link=yes
17502else
17503  echo "$as_me: failed program was:" >&5
17504sed 's/^/| /' conftest.$ac_ext >&5
17505
17506ac_cv_lib_dld_dld_link=no
17507fi
17508rm -f conftest.err conftest.$ac_objext \
17509      conftest$ac_exeext conftest.$ac_ext
17510LIBS=$ac_check_lib_save_LIBS
17511fi
17512echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17513echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17514if test $ac_cv_lib_dld_dld_link = yes; then
17515  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17516fi
17517
17518
17519fi
17520
17521
17522fi
17523
17524
17525fi
17526
17527
17528fi
17529
17530
17531fi
17532
17533    ;;
17534  esac
17535
17536  if test "x$lt_cv_dlopen" != xno; then
17537    enable_dlopen=yes
17538  else
17539    enable_dlopen=no
17540  fi
17541
17542  case $lt_cv_dlopen in
17543  dlopen)
17544    save_CPPFLAGS="$CPPFLAGS"
17545    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17546
17547    save_LDFLAGS="$LDFLAGS"
17548    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17549
17550    save_LIBS="$LIBS"
17551    LIBS="$lt_cv_dlopen_libs $LIBS"
17552
17553    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17554echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17555if test "${lt_cv_dlopen_self+set}" = set; then
17556  echo $ECHO_N "(cached) $ECHO_C" >&6
17557else
17558  	  if test "$cross_compiling" = yes; then :
17559  lt_cv_dlopen_self=cross
17560else
17561  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17562  lt_status=$lt_dlunknown
17563  cat > conftest.$ac_ext <<EOF
17564#line 17564 "configure"
17565#include "confdefs.h"
17566
17567#if HAVE_DLFCN_H
17568#include <dlfcn.h>
17569#endif
17570
17571#include <stdio.h>
17572
17573#ifdef RTLD_GLOBAL
17574#  define LT_DLGLOBAL		RTLD_GLOBAL
17575#else
17576#  ifdef DL_GLOBAL
17577#    define LT_DLGLOBAL		DL_GLOBAL
17578#  else
17579#    define LT_DLGLOBAL		0
17580#  endif
17581#endif
17582
17583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17584   find out it does not work in some platform. */
17585#ifndef LT_DLLAZY_OR_NOW
17586#  ifdef RTLD_LAZY
17587#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17588#  else
17589#    ifdef DL_LAZY
17590#      define LT_DLLAZY_OR_NOW		DL_LAZY
17591#    else
17592#      ifdef RTLD_NOW
17593#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17594#      else
17595#        ifdef DL_NOW
17596#          define LT_DLLAZY_OR_NOW	DL_NOW
17597#        else
17598#          define LT_DLLAZY_OR_NOW	0
17599#        endif
17600#      endif
17601#    endif
17602#  endif
17603#endif
17604
17605#ifdef __cplusplus
17606extern "C" void exit (int);
17607#endif
17608
17609void fnord() { int i=42;}
17610int main ()
17611{
17612  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17613  int status = $lt_dlunknown;
17614
17615  if (self)
17616    {
17617      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17618      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17619      /* dlclose (self); */
17620    }
17621
17622    exit (status);
17623}
17624EOF
17625  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17626  (eval $ac_link) 2>&5
17627  ac_status=$?
17628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17630    (./conftest; exit; ) 2>/dev/null
17631    lt_status=$?
17632    case x$lt_status in
17633      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17634      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17635      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17636    esac
17637  else :
17638    # compilation failed
17639    lt_cv_dlopen_self=no
17640  fi
17641fi
17642rm -fr conftest*
17643
17644
17645fi
17646echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17647echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17648
17649    if test "x$lt_cv_dlopen_self" = xyes; then
17650      LDFLAGS="$LDFLAGS $link_static_flag"
17651      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17652echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17653if test "${lt_cv_dlopen_self_static+set}" = set; then
17654  echo $ECHO_N "(cached) $ECHO_C" >&6
17655else
17656  	  if test "$cross_compiling" = yes; then :
17657  lt_cv_dlopen_self_static=cross
17658else
17659  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17660  lt_status=$lt_dlunknown
17661  cat > conftest.$ac_ext <<EOF
17662#line 17662 "configure"
17663#include "confdefs.h"
17664
17665#if HAVE_DLFCN_H
17666#include <dlfcn.h>
17667#endif
17668
17669#include <stdio.h>
17670
17671#ifdef RTLD_GLOBAL
17672#  define LT_DLGLOBAL		RTLD_GLOBAL
17673#else
17674#  ifdef DL_GLOBAL
17675#    define LT_DLGLOBAL		DL_GLOBAL
17676#  else
17677#    define LT_DLGLOBAL		0
17678#  endif
17679#endif
17680
17681/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17682   find out it does not work in some platform. */
17683#ifndef LT_DLLAZY_OR_NOW
17684#  ifdef RTLD_LAZY
17685#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17686#  else
17687#    ifdef DL_LAZY
17688#      define LT_DLLAZY_OR_NOW		DL_LAZY
17689#    else
17690#      ifdef RTLD_NOW
17691#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17692#      else
17693#        ifdef DL_NOW
17694#          define LT_DLLAZY_OR_NOW	DL_NOW
17695#        else
17696#          define LT_DLLAZY_OR_NOW	0
17697#        endif
17698#      endif
17699#    endif
17700#  endif
17701#endif
17702
17703#ifdef __cplusplus
17704extern "C" void exit (int);
17705#endif
17706
17707void fnord() { int i=42;}
17708int main ()
17709{
17710  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17711  int status = $lt_dlunknown;
17712
17713  if (self)
17714    {
17715      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17716      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17717      /* dlclose (self); */
17718    }
17719
17720    exit (status);
17721}
17722EOF
17723  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17724  (eval $ac_link) 2>&5
17725  ac_status=$?
17726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17728    (./conftest; exit; ) 2>/dev/null
17729    lt_status=$?
17730    case x$lt_status in
17731      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17732      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17733      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17734    esac
17735  else :
17736    # compilation failed
17737    lt_cv_dlopen_self_static=no
17738  fi
17739fi
17740rm -fr conftest*
17741
17742
17743fi
17744echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17745echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17746    fi
17747
17748    CPPFLAGS="$save_CPPFLAGS"
17749    LDFLAGS="$save_LDFLAGS"
17750    LIBS="$save_LIBS"
17751    ;;
17752  esac
17753
17754  case $lt_cv_dlopen_self in
17755  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17756  *) enable_dlopen_self=unknown ;;
17757  esac
17758
17759  case $lt_cv_dlopen_self_static in
17760  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17761  *) enable_dlopen_self_static=unknown ;;
17762  esac
17763fi
17764
17765
17766# The else clause should only fire when bootstrapping the
17767# libtool distribution, otherwise you forgot to ship ltmain.sh
17768# with your package, and you will get complaints that there are
17769# no rules to generate ltmain.sh.
17770if test -f "$ltmain"; then
17771  # See if we are running on zsh, and set the options which allow our commands through
17772  # without removal of \ escapes.
17773  if test -n "${ZSH_VERSION+set}" ; then
17774    setopt NO_GLOB_SUBST
17775  fi
17776  # Now quote all the things that may contain metacharacters while being
17777  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17778  # variables and quote the copies for generation of the libtool script.
17779  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17780    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17781    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17782    deplibs_check_method reload_flag reload_cmds need_locks \
17783    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17784    lt_cv_sys_global_symbol_to_c_name_address \
17785    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17786    old_postinstall_cmds old_postuninstall_cmds \
17787    compiler_GCJ \
17788    CC_GCJ \
17789    LD_GCJ \
17790    lt_prog_compiler_wl_GCJ \
17791    lt_prog_compiler_pic_GCJ \
17792    lt_prog_compiler_static_GCJ \
17793    lt_prog_compiler_no_builtin_flag_GCJ \
17794    export_dynamic_flag_spec_GCJ \
17795    thread_safe_flag_spec_GCJ \
17796    whole_archive_flag_spec_GCJ \
17797    enable_shared_with_static_runtimes_GCJ \
17798    old_archive_cmds_GCJ \
17799    old_archive_from_new_cmds_GCJ \
17800    predep_objects_GCJ \
17801    postdep_objects_GCJ \
17802    predeps_GCJ \
17803    postdeps_GCJ \
17804    compiler_lib_search_path_GCJ \
17805    archive_cmds_GCJ \
17806    archive_expsym_cmds_GCJ \
17807    postinstall_cmds_GCJ \
17808    postuninstall_cmds_GCJ \
17809    old_archive_from_expsyms_cmds_GCJ \
17810    allow_undefined_flag_GCJ \
17811    no_undefined_flag_GCJ \
17812    export_symbols_cmds_GCJ \
17813    hardcode_libdir_flag_spec_GCJ \
17814    hardcode_libdir_flag_spec_ld_GCJ \
17815    hardcode_libdir_separator_GCJ \
17816    hardcode_automatic_GCJ \
17817    module_cmds_GCJ \
17818    module_expsym_cmds_GCJ \
17819    lt_cv_prog_compiler_c_o_GCJ \
17820    exclude_expsyms_GCJ \
17821    include_expsyms_GCJ; do
17822
17823    case $var in
17824    old_archive_cmds_GCJ | \
17825    old_archive_from_new_cmds_GCJ | \
17826    archive_cmds_GCJ | \
17827    archive_expsym_cmds_GCJ | \
17828    module_cmds_GCJ | \
17829    module_expsym_cmds_GCJ | \
17830    old_archive_from_expsyms_cmds_GCJ | \
17831    export_symbols_cmds_GCJ | \
17832    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17833    postinstall_cmds | postuninstall_cmds | \
17834    old_postinstall_cmds | old_postuninstall_cmds | \
17835    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17836      # Double-quote double-evaled strings.
17837      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17838      ;;
17839    *)
17840      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17841      ;;
17842    esac
17843  done
17844
17845  case $lt_echo in
17846  *'\$0 --fallback-echo"')
17847    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17848    ;;
17849  esac
17850
17851cfgfile="$ofile"
17852
17853  cat <<__EOF__ >> "$cfgfile"
17854# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17855
17856# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17857
17858# Shell to use when invoking shell scripts.
17859SHELL=$lt_SHELL
17860
17861# Whether or not to build shared libraries.
17862build_libtool_libs=$enable_shared
17863
17864# Whether or not to build static libraries.
17865build_old_libs=$enable_static
17866
17867# Whether or not to add -lc for building shared libraries.
17868build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17869
17870# Whether or not to disallow shared libs when runtime libs are static
17871allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17872
17873# Whether or not to optimize for fast installation.
17874fast_install=$enable_fast_install
17875
17876# The host system.
17877host_alias=$host_alias
17878host=$host
17879
17880# An echo program that does not interpret backslashes.
17881echo=$lt_echo
17882
17883# The archiver.
17884AR=$lt_AR
17885AR_FLAGS=$lt_AR_FLAGS
17886
17887# A C compiler.
17888LTCC=$lt_LTCC
17889
17890# A language-specific compiler.
17891CC=$lt_compiler_GCJ
17892
17893# Is the compiler the GNU C compiler?
17894with_gcc=$GCC_GCJ
17895
17896# An ERE matcher.
17897EGREP=$lt_EGREP
17898
17899# The linker used to build libraries.
17900LD=$lt_LD_GCJ
17901
17902# Whether we need hard or soft links.
17903LN_S=$lt_LN_S
17904
17905# A BSD-compatible nm program.
17906NM=$lt_NM
17907
17908# A symbol stripping program
17909STRIP=$STRIP
17910
17911# Used to examine libraries when file_magic_cmd begins "file"
17912MAGIC_CMD=$MAGIC_CMD
17913
17914# Used on cygwin: DLL creation program.
17915DLLTOOL="$DLLTOOL"
17916
17917# Used on cygwin: object dumper.
17918OBJDUMP="$OBJDUMP"
17919
17920# Used on cygwin: assembler.
17921AS="$AS"
17922
17923# The name of the directory that contains temporary libtool files.
17924objdir=$objdir
17925
17926# How to create reloadable object files.
17927reload_flag=$lt_reload_flag
17928reload_cmds=$lt_reload_cmds
17929
17930# How to pass a linker flag through the compiler.
17931wl=$lt_lt_prog_compiler_wl_GCJ
17932
17933# Object file suffix (normally "o").
17934objext="$ac_objext"
17935
17936# Old archive suffix (normally "a").
17937libext="$libext"
17938
17939# Shared library suffix (normally ".so").
17940shrext='$shrext'
17941
17942# Executable file suffix (normally "").
17943exeext="$exeext"
17944
17945# Additional compiler flags for building library objects.
17946pic_flag=$lt_lt_prog_compiler_pic_GCJ
17947pic_mode=$pic_mode
17948
17949# What is the maximum length of a command?
17950max_cmd_len=$lt_cv_sys_max_cmd_len
17951
17952# Does compiler simultaneously support -c and -o options?
17953compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17954
17955# Must we lock files when doing compilation ?
17956need_locks=$lt_need_locks
17957
17958# Do we need the lib prefix for modules?
17959need_lib_prefix=$need_lib_prefix
17960
17961# Do we need a version for libraries?
17962need_version=$need_version
17963
17964# Whether dlopen is supported.
17965dlopen_support=$enable_dlopen
17966
17967# Whether dlopen of programs is supported.
17968dlopen_self=$enable_dlopen_self
17969
17970# Whether dlopen of statically linked programs is supported.
17971dlopen_self_static=$enable_dlopen_self_static
17972
17973# Compiler flag to prevent dynamic linking.
17974link_static_flag=$lt_lt_prog_compiler_static_GCJ
17975
17976# Compiler flag to turn off builtin functions.
17977no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17978
17979# Compiler flag to allow reflexive dlopens.
17980export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17981
17982# Compiler flag to generate shared objects directly from archives.
17983whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17984
17985# Compiler flag to generate thread-safe objects.
17986thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17987
17988# Library versioning type.
17989version_type=$version_type
17990
17991# Format of library name prefix.
17992libname_spec=$lt_libname_spec
17993
17994# List of archive names.  First name is the real one, the rest are links.
17995# The last name is the one that the linker finds with -lNAME.
17996library_names_spec=$lt_library_names_spec
17997
17998# The coded name of the library, if different from the real name.
17999soname_spec=$lt_soname_spec
18000
18001# Commands used to build and install an old-style archive.
18002RANLIB=$lt_RANLIB
18003old_archive_cmds=$lt_old_archive_cmds_GCJ
18004old_postinstall_cmds=$lt_old_postinstall_cmds
18005old_postuninstall_cmds=$lt_old_postuninstall_cmds
18006
18007# Create an old-style archive from a shared archive.
18008old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18009
18010# Create a temporary old-style archive to link instead of a shared archive.
18011old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18012
18013# Commands used to build and install a shared archive.
18014archive_cmds=$lt_archive_cmds_GCJ
18015archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18016postinstall_cmds=$lt_postinstall_cmds
18017postuninstall_cmds=$lt_postuninstall_cmds
18018
18019# Commands used to build a loadable module (assumed same as above if empty)
18020module_cmds=$lt_module_cmds_GCJ
18021module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18022
18023# Commands to strip libraries.
18024old_striplib=$lt_old_striplib
18025striplib=$lt_striplib
18026
18027# Dependencies to place before the objects being linked to create a
18028# shared library.
18029predep_objects=$lt_predep_objects_GCJ
18030
18031# Dependencies to place after the objects being linked to create a
18032# shared library.
18033postdep_objects=$lt_postdep_objects_GCJ
18034
18035# Dependencies to place before the objects being linked to create a
18036# shared library.
18037predeps=$lt_predeps_GCJ
18038
18039# Dependencies to place after the objects being linked to create a
18040# shared library.
18041postdeps=$lt_postdeps_GCJ
18042
18043# The library search path used internally by the compiler when linking
18044# a shared library.
18045compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18046
18047# Method to check whether dependent libraries are shared objects.
18048deplibs_check_method=$lt_deplibs_check_method
18049
18050# Command to use when deplibs_check_method == file_magic.
18051file_magic_cmd=$lt_file_magic_cmd
18052
18053# Flag that allows shared libraries with undefined symbols to be built.
18054allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18055
18056# Flag that forces no undefined symbols.
18057no_undefined_flag=$lt_no_undefined_flag_GCJ
18058
18059# Commands used to finish a libtool library installation in a directory.
18060finish_cmds=$lt_finish_cmds
18061
18062# Same as above, but a single script fragment to be evaled but not shown.
18063finish_eval=$lt_finish_eval
18064
18065# Take the output of nm and produce a listing of raw symbols and C names.
18066global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18067
18068# Transform the output of nm in a proper C declaration
18069global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18070
18071# Transform the output of nm in a C name address pair
18072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18073
18074# This is the shared library runtime path variable.
18075runpath_var=$runpath_var
18076
18077# This is the shared library path variable.
18078shlibpath_var=$shlibpath_var
18079
18080# Is shlibpath searched before the hard-coded library search path?
18081shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18082
18083# How to hardcode a shared library path into an executable.
18084hardcode_action=$hardcode_action_GCJ
18085
18086# Whether we should hardcode library paths into libraries.
18087hardcode_into_libs=$hardcode_into_libs
18088
18089# Flag to hardcode \$libdir into a binary during linking.
18090# This must work even if \$libdir does not exist.
18091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18092
18093# If ld is used when linking, flag to hardcode \$libdir into
18094# a binary during linking. This must work even if \$libdir does
18095# not exist.
18096hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18097
18098# Whether we need a single -rpath flag with a separated argument.
18099hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18100
18101# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18102# resulting binary.
18103hardcode_direct=$hardcode_direct_GCJ
18104
18105# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18106# resulting binary.
18107hardcode_minus_L=$hardcode_minus_L_GCJ
18108
18109# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18110# the resulting binary.
18111hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18112
18113# Set to yes if building a shared library automatically hardcodes DIR into the library
18114# and all subsequent libraries and executables linked against it.
18115hardcode_automatic=$hardcode_automatic_GCJ
18116
18117# Variables whose values should be saved in libtool wrapper scripts and
18118# restored at relink time.
18119variables_saved_for_relink="$variables_saved_for_relink"
18120
18121# Whether libtool must link a program against all its dependency libraries.
18122link_all_deplibs=$link_all_deplibs_GCJ
18123
18124# Compile-time system search path for libraries
18125sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18126
18127# Run-time system search path for libraries
18128sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18129
18130# Fix the shell variable \$srcfile for the compiler.
18131fix_srcfile_path="$fix_srcfile_path_GCJ"
18132
18133# Set to yes if exported symbols are required.
18134always_export_symbols=$always_export_symbols_GCJ
18135
18136# The commands to list exported symbols.
18137export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18138
18139# The commands to extract the exported symbol list from a shared archive.
18140extract_expsyms_cmds=$lt_extract_expsyms_cmds
18141
18142# Symbols that should not be listed in the preloaded symbols.
18143exclude_expsyms=$lt_exclude_expsyms_GCJ
18144
18145# Symbols that must always be exported.
18146include_expsyms=$lt_include_expsyms_GCJ
18147
18148# ### END LIBTOOL TAG CONFIG: $tagname
18149
18150__EOF__
18151
18152
18153else
18154  # If there is no Makefile yet, we rely on a make rule to execute
18155  # `config.status --recheck' to rerun these tests and create the
18156  # libtool script then.
18157  test -f Makefile && make "$ltmain"
18158fi
18159
18160
18161ac_ext=c
18162ac_cpp='$CPP $CPPFLAGS'
18163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165ac_compiler_gnu=$ac_cv_c_compiler_gnu
18166
18167CC="$lt_save_CC"
18168
18169	else
18170	  tagname=""
18171	fi
18172	;;
18173
18174      RC)
18175
18176
18177
18178# Source file extension for RC test sources.
18179ac_ext=rc
18180
18181# Object file extension for compiled RC test sources.
18182objext=o
18183objext_RC=$objext
18184
18185# Code to be used in simple compile tests
18186lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18187
18188# Code to be used in simple link tests
18189lt_simple_link_test_code="$lt_simple_compile_test_code"
18190
18191# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18192
18193# If no C compiler was specified, use CC.
18194LTCC=${LTCC-"$CC"}
18195
18196# Allow CC to be a program name with arguments.
18197compiler=$CC
18198
18199
18200# Allow CC to be a program name with arguments.
18201lt_save_CC="$CC"
18202CC=${RC-"windres"}
18203compiler=$CC
18204compiler_RC=$CC
18205lt_cv_prog_compiler_c_o_RC=yes
18206
18207# The else clause should only fire when bootstrapping the
18208# libtool distribution, otherwise you forgot to ship ltmain.sh
18209# with your package, and you will get complaints that there are
18210# no rules to generate ltmain.sh.
18211if test -f "$ltmain"; then
18212  # See if we are running on zsh, and set the options which allow our commands through
18213  # without removal of \ escapes.
18214  if test -n "${ZSH_VERSION+set}" ; then
18215    setopt NO_GLOB_SUBST
18216  fi
18217  # Now quote all the things that may contain metacharacters while being
18218  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18219  # variables and quote the copies for generation of the libtool script.
18220  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18221    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18222    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18223    deplibs_check_method reload_flag reload_cmds need_locks \
18224    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18225    lt_cv_sys_global_symbol_to_c_name_address \
18226    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18227    old_postinstall_cmds old_postuninstall_cmds \
18228    compiler_RC \
18229    CC_RC \
18230    LD_RC \
18231    lt_prog_compiler_wl_RC \
18232    lt_prog_compiler_pic_RC \
18233    lt_prog_compiler_static_RC \
18234    lt_prog_compiler_no_builtin_flag_RC \
18235    export_dynamic_flag_spec_RC \
18236    thread_safe_flag_spec_RC \
18237    whole_archive_flag_spec_RC \
18238    enable_shared_with_static_runtimes_RC \
18239    old_archive_cmds_RC \
18240    old_archive_from_new_cmds_RC \
18241    predep_objects_RC \
18242    postdep_objects_RC \
18243    predeps_RC \
18244    postdeps_RC \
18245    compiler_lib_search_path_RC \
18246    archive_cmds_RC \
18247    archive_expsym_cmds_RC \
18248    postinstall_cmds_RC \
18249    postuninstall_cmds_RC \
18250    old_archive_from_expsyms_cmds_RC \
18251    allow_undefined_flag_RC \
18252    no_undefined_flag_RC \
18253    export_symbols_cmds_RC \
18254    hardcode_libdir_flag_spec_RC \
18255    hardcode_libdir_flag_spec_ld_RC \
18256    hardcode_libdir_separator_RC \
18257    hardcode_automatic_RC \
18258    module_cmds_RC \
18259    module_expsym_cmds_RC \
18260    lt_cv_prog_compiler_c_o_RC \
18261    exclude_expsyms_RC \
18262    include_expsyms_RC; do
18263
18264    case $var in
18265    old_archive_cmds_RC | \
18266    old_archive_from_new_cmds_RC | \
18267    archive_cmds_RC | \
18268    archive_expsym_cmds_RC | \
18269    module_cmds_RC | \
18270    module_expsym_cmds_RC | \
18271    old_archive_from_expsyms_cmds_RC | \
18272    export_symbols_cmds_RC | \
18273    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18274    postinstall_cmds | postuninstall_cmds | \
18275    old_postinstall_cmds | old_postuninstall_cmds | \
18276    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18277      # Double-quote double-evaled strings.
18278      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18279      ;;
18280    *)
18281      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18282      ;;
18283    esac
18284  done
18285
18286  case $lt_echo in
18287  *'\$0 --fallback-echo"')
18288    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18289    ;;
18290  esac
18291
18292cfgfile="$ofile"
18293
18294  cat <<__EOF__ >> "$cfgfile"
18295# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18296
18297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18298
18299# Shell to use when invoking shell scripts.
18300SHELL=$lt_SHELL
18301
18302# Whether or not to build shared libraries.
18303build_libtool_libs=$enable_shared
18304
18305# Whether or not to build static libraries.
18306build_old_libs=$enable_static
18307
18308# Whether or not to add -lc for building shared libraries.
18309build_libtool_need_lc=$archive_cmds_need_lc_RC
18310
18311# Whether or not to disallow shared libs when runtime libs are static
18312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18313
18314# Whether or not to optimize for fast installation.
18315fast_install=$enable_fast_install
18316
18317# The host system.
18318host_alias=$host_alias
18319host=$host
18320
18321# An echo program that does not interpret backslashes.
18322echo=$lt_echo
18323
18324# The archiver.
18325AR=$lt_AR
18326AR_FLAGS=$lt_AR_FLAGS
18327
18328# A C compiler.
18329LTCC=$lt_LTCC
18330
18331# A language-specific compiler.
18332CC=$lt_compiler_RC
18333
18334# Is the compiler the GNU C compiler?
18335with_gcc=$GCC_RC
18336
18337# An ERE matcher.
18338EGREP=$lt_EGREP
18339
18340# The linker used to build libraries.
18341LD=$lt_LD_RC
18342
18343# Whether we need hard or soft links.
18344LN_S=$lt_LN_S
18345
18346# A BSD-compatible nm program.
18347NM=$lt_NM
18348
18349# A symbol stripping program
18350STRIP=$STRIP
18351
18352# Used to examine libraries when file_magic_cmd begins "file"
18353MAGIC_CMD=$MAGIC_CMD
18354
18355# Used on cygwin: DLL creation program.
18356DLLTOOL="$DLLTOOL"
18357
18358# Used on cygwin: object dumper.
18359OBJDUMP="$OBJDUMP"
18360
18361# Used on cygwin: assembler.
18362AS="$AS"
18363
18364# The name of the directory that contains temporary libtool files.
18365objdir=$objdir
18366
18367# How to create reloadable object files.
18368reload_flag=$lt_reload_flag
18369reload_cmds=$lt_reload_cmds
18370
18371# How to pass a linker flag through the compiler.
18372wl=$lt_lt_prog_compiler_wl_RC
18373
18374# Object file suffix (normally "o").
18375objext="$ac_objext"
18376
18377# Old archive suffix (normally "a").
18378libext="$libext"
18379
18380# Shared library suffix (normally ".so").
18381shrext='$shrext'
18382
18383# Executable file suffix (normally "").
18384exeext="$exeext"
18385
18386# Additional compiler flags for building library objects.
18387pic_flag=$lt_lt_prog_compiler_pic_RC
18388pic_mode=$pic_mode
18389
18390# What is the maximum length of a command?
18391max_cmd_len=$lt_cv_sys_max_cmd_len
18392
18393# Does compiler simultaneously support -c and -o options?
18394compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18395
18396# Must we lock files when doing compilation ?
18397need_locks=$lt_need_locks
18398
18399# Do we need the lib prefix for modules?
18400need_lib_prefix=$need_lib_prefix
18401
18402# Do we need a version for libraries?
18403need_version=$need_version
18404
18405# Whether dlopen is supported.
18406dlopen_support=$enable_dlopen
18407
18408# Whether dlopen of programs is supported.
18409dlopen_self=$enable_dlopen_self
18410
18411# Whether dlopen of statically linked programs is supported.
18412dlopen_self_static=$enable_dlopen_self_static
18413
18414# Compiler flag to prevent dynamic linking.
18415link_static_flag=$lt_lt_prog_compiler_static_RC
18416
18417# Compiler flag to turn off builtin functions.
18418no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18419
18420# Compiler flag to allow reflexive dlopens.
18421export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18422
18423# Compiler flag to generate shared objects directly from archives.
18424whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18425
18426# Compiler flag to generate thread-safe objects.
18427thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18428
18429# Library versioning type.
18430version_type=$version_type
18431
18432# Format of library name prefix.
18433libname_spec=$lt_libname_spec
18434
18435# List of archive names.  First name is the real one, the rest are links.
18436# The last name is the one that the linker finds with -lNAME.
18437library_names_spec=$lt_library_names_spec
18438
18439# The coded name of the library, if different from the real name.
18440soname_spec=$lt_soname_spec
18441
18442# Commands used to build and install an old-style archive.
18443RANLIB=$lt_RANLIB
18444old_archive_cmds=$lt_old_archive_cmds_RC
18445old_postinstall_cmds=$lt_old_postinstall_cmds
18446old_postuninstall_cmds=$lt_old_postuninstall_cmds
18447
18448# Create an old-style archive from a shared archive.
18449old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18450
18451# Create a temporary old-style archive to link instead of a shared archive.
18452old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18453
18454# Commands used to build and install a shared archive.
18455archive_cmds=$lt_archive_cmds_RC
18456archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18457postinstall_cmds=$lt_postinstall_cmds
18458postuninstall_cmds=$lt_postuninstall_cmds
18459
18460# Commands used to build a loadable module (assumed same as above if empty)
18461module_cmds=$lt_module_cmds_RC
18462module_expsym_cmds=$lt_module_expsym_cmds_RC
18463
18464# Commands to strip libraries.
18465old_striplib=$lt_old_striplib
18466striplib=$lt_striplib
18467
18468# Dependencies to place before the objects being linked to create a
18469# shared library.
18470predep_objects=$lt_predep_objects_RC
18471
18472# Dependencies to place after the objects being linked to create a
18473# shared library.
18474postdep_objects=$lt_postdep_objects_RC
18475
18476# Dependencies to place before the objects being linked to create a
18477# shared library.
18478predeps=$lt_predeps_RC
18479
18480# Dependencies to place after the objects being linked to create a
18481# shared library.
18482postdeps=$lt_postdeps_RC
18483
18484# The library search path used internally by the compiler when linking
18485# a shared library.
18486compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18487
18488# Method to check whether dependent libraries are shared objects.
18489deplibs_check_method=$lt_deplibs_check_method
18490
18491# Command to use when deplibs_check_method == file_magic.
18492file_magic_cmd=$lt_file_magic_cmd
18493
18494# Flag that allows shared libraries with undefined symbols to be built.
18495allow_undefined_flag=$lt_allow_undefined_flag_RC
18496
18497# Flag that forces no undefined symbols.
18498no_undefined_flag=$lt_no_undefined_flag_RC
18499
18500# Commands used to finish a libtool library installation in a directory.
18501finish_cmds=$lt_finish_cmds
18502
18503# Same as above, but a single script fragment to be evaled but not shown.
18504finish_eval=$lt_finish_eval
18505
18506# Take the output of nm and produce a listing of raw symbols and C names.
18507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18508
18509# Transform the output of nm in a proper C declaration
18510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18511
18512# Transform the output of nm in a C name address pair
18513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18514
18515# This is the shared library runtime path variable.
18516runpath_var=$runpath_var
18517
18518# This is the shared library path variable.
18519shlibpath_var=$shlibpath_var
18520
18521# Is shlibpath searched before the hard-coded library search path?
18522shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18523
18524# How to hardcode a shared library path into an executable.
18525hardcode_action=$hardcode_action_RC
18526
18527# Whether we should hardcode library paths into libraries.
18528hardcode_into_libs=$hardcode_into_libs
18529
18530# Flag to hardcode \$libdir into a binary during linking.
18531# This must work even if \$libdir does not exist.
18532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18533
18534# If ld is used when linking, flag to hardcode \$libdir into
18535# a binary during linking. This must work even if \$libdir does
18536# not exist.
18537hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18538
18539# Whether we need a single -rpath flag with a separated argument.
18540hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18541
18542# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543# resulting binary.
18544hardcode_direct=$hardcode_direct_RC
18545
18546# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547# resulting binary.
18548hardcode_minus_L=$hardcode_minus_L_RC
18549
18550# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551# the resulting binary.
18552hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18553
18554# Set to yes if building a shared library automatically hardcodes DIR into the library
18555# and all subsequent libraries and executables linked against it.
18556hardcode_automatic=$hardcode_automatic_RC
18557
18558# Variables whose values should be saved in libtool wrapper scripts and
18559# restored at relink time.
18560variables_saved_for_relink="$variables_saved_for_relink"
18561
18562# Whether libtool must link a program against all its dependency libraries.
18563link_all_deplibs=$link_all_deplibs_RC
18564
18565# Compile-time system search path for libraries
18566sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18567
18568# Run-time system search path for libraries
18569sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18570
18571# Fix the shell variable \$srcfile for the compiler.
18572fix_srcfile_path="$fix_srcfile_path_RC"
18573
18574# Set to yes if exported symbols are required.
18575always_export_symbols=$always_export_symbols_RC
18576
18577# The commands to list exported symbols.
18578export_symbols_cmds=$lt_export_symbols_cmds_RC
18579
18580# The commands to extract the exported symbol list from a shared archive.
18581extract_expsyms_cmds=$lt_extract_expsyms_cmds
18582
18583# Symbols that should not be listed in the preloaded symbols.
18584exclude_expsyms=$lt_exclude_expsyms_RC
18585
18586# Symbols that must always be exported.
18587include_expsyms=$lt_include_expsyms_RC
18588
18589# ### END LIBTOOL TAG CONFIG: $tagname
18590
18591__EOF__
18592
18593
18594else
18595  # If there is no Makefile yet, we rely on a make rule to execute
18596  # `config.status --recheck' to rerun these tests and create the
18597  # libtool script then.
18598  test -f Makefile && make "$ltmain"
18599fi
18600
18601
18602ac_ext=c
18603ac_cpp='$CPP $CPPFLAGS'
18604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18606ac_compiler_gnu=$ac_cv_c_compiler_gnu
18607
18608CC="$lt_save_CC"
18609
18610	;;
18611
18612      *)
18613	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18614echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18615   { (exit 1); exit 1; }; }
18616	;;
18617      esac
18618
18619      # Append the new tag name to the list of available tags.
18620      if test -n "$tagname" ; then
18621      available_tags="$available_tags $tagname"
18622    fi
18623    fi
18624  done
18625  IFS="$lt_save_ifs"
18626
18627  # Now substitute the updated list of available tags.
18628  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18629    mv "${ofile}T" "$ofile"
18630    chmod +x "$ofile"
18631  else
18632    rm -f "${ofile}T"
18633    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18634echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18635   { (exit 1); exit 1; }; }
18636  fi
18637fi
18638
18639
18640
18641# This can be used to rebuild libtool when needed
18642LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18643
18644# Always use our own libtool.
18645LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18646
18647# Prevent multiple expansion
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669# Extract the first word of "dot", so it can be a program name with args.
18670set dummy dot; ac_word=$2
18671echo "$as_me:$LINENO: checking for $ac_word" >&5
18672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18673if test "${ac_cv_path_DOT+set}" = set; then
18674  echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676  case $DOT in
18677  [\\/]* | ?:[\\/]*)
18678  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18679  ;;
18680  *)
18681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682for as_dir in $PATH
18683do
18684  IFS=$as_save_IFS
18685  test -z "$as_dir" && as_dir=.
18686  for ac_exec_ext in '' $ac_executable_extensions; do
18687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18690    break 2
18691  fi
18692done
18693done
18694
18695  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18696  ;;
18697esac
18698fi
18699DOT=$ac_cv_path_DOT
18700
18701if test -n "$DOT"; then
18702  echo "$as_me:$LINENO: result: $DOT" >&5
18703echo "${ECHO_T}$DOT" >&6
18704else
18705  echo "$as_me:$LINENO: result: no" >&5
18706echo "${ECHO_T}no" >&6
18707fi
18708
18709# Extract the first word of "etags", so it can be a program name with args.
18710set dummy etags; ac_word=$2
18711echo "$as_me:$LINENO: checking for $ac_word" >&5
18712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18713if test "${ac_cv_path_ETAGS+set}" = set; then
18714  echo $ECHO_N "(cached) $ECHO_C" >&6
18715else
18716  case $ETAGS in
18717  [\\/]* | ?:[\\/]*)
18718  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18719  ;;
18720  *)
18721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18722for as_dir in $PATH
18723do
18724  IFS=$as_save_IFS
18725  test -z "$as_dir" && as_dir=.
18726  for ac_exec_ext in '' $ac_executable_extensions; do
18727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18728    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18730    break 2
18731  fi
18732done
18733done
18734
18735  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18736  ;;
18737esac
18738fi
18739ETAGS=$ac_cv_path_ETAGS
18740
18741if test -n "$ETAGS"; then
18742  echo "$as_me:$LINENO: result: $ETAGS" >&5
18743echo "${ECHO_T}$ETAGS" >&6
18744else
18745  echo "$as_me:$LINENO: result: no" >&5
18746echo "${ECHO_T}no" >&6
18747fi
18748
18749etags_version=`$ETAGS --version 2>&1`
18750case "$etags_version" in
18751	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18752	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18753	*) ETAGSFLAGS="" ;;
18754esac
18755ETAGSFLAGS=$ETAGSFLAGS
18756
18757# Extract the first word of "python", so it can be a program name with args.
18758set dummy python; ac_word=$2
18759echo "$as_me:$LINENO: checking for $ac_word" >&5
18760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761if test "${ac_cv_path_PYTHON+set}" = set; then
18762  echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764  case $PYTHON in
18765  [\\/]* | ?:[\\/]*)
18766  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18767  ;;
18768  *)
18769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770for as_dir in $PATH
18771do
18772  IFS=$as_save_IFS
18773  test -z "$as_dir" && as_dir=.
18774  for ac_exec_ext in '' $ac_executable_extensions; do
18775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778    break 2
18779  fi
18780done
18781done
18782
18783  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18784  ;;
18785esac
18786fi
18787PYTHON=$ac_cv_path_PYTHON
18788
18789if test -n "$PYTHON"; then
18790  echo "$as_me:$LINENO: result: $PYTHON" >&5
18791echo "${ECHO_T}$PYTHON" >&6
18792else
18793  echo "$as_me:$LINENO: result: no" >&5
18794echo "${ECHO_T}no" >&6
18795fi
18796
18797if test "$PYTHON" = "false"
18798then
18799	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18800echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18801fi
18802# Extract the first word of "qmtest", so it can be a program name with args.
18803set dummy qmtest; ac_word=$2
18804echo "$as_me:$LINENO: checking for $ac_word" >&5
18805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18806if test "${ac_cv_path_QMTEST+set}" = set; then
18807  echo $ECHO_N "(cached) $ECHO_C" >&6
18808else
18809  case $QMTEST in
18810  [\\/]* | ?:[\\/]*)
18811  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18812  ;;
18813  *)
18814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18815for as_dir in $PATH
18816do
18817  IFS=$as_save_IFS
18818  test -z "$as_dir" && as_dir=.
18819  for ac_exec_ext in '' $ac_executable_extensions; do
18820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18821    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18823    break 2
18824  fi
18825done
18826done
18827
18828  test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18829  ;;
18830esac
18831fi
18832QMTEST=$ac_cv_path_QMTEST
18833
18834if test -n "$QMTEST"; then
18835  echo "$as_me:$LINENO: result: $QMTEST" >&5
18836echo "${ECHO_T}$QMTEST" >&6
18837else
18838  echo "$as_me:$LINENO: result: no" >&5
18839echo "${ECHO_T}no" >&6
18840fi
18841
18842if test "$QMTEST" = "false"
18843then
18844	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18845echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18846fi
18847
18848pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18849pymajor=`echo $pyversion | cut -d. -f1`
18850pyminor=`echo $pyversion | cut -d. -f2`
18851
18852if test "$pymajor" -ge "2"
18853then
18854	if test "$pymajor" -eq "2"
18855	then
18856		if test "$pyminor" -lt "2"
18857		then
18858			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18859echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18860		fi
18861	fi
18862else
18863	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18864echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18865fi
18866
18867
18868
18869
18870echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18871echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18872if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18873  echo $ECHO_N "(cached) $ECHO_C" >&6
18874else
18875  ac_check_lib_save_LIBS=$LIBS
18876LIBS="-lelf  $LIBS"
18877cat >conftest.$ac_ext <<_ACEOF
18878/* confdefs.h.  */
18879_ACEOF
18880cat confdefs.h >>conftest.$ac_ext
18881cat >>conftest.$ac_ext <<_ACEOF
18882/* end confdefs.h.  */
18883
18884/* Override any gcc2 internal prototype to avoid an error.  */
18885#ifdef __cplusplus
18886extern "C"
18887#endif
18888/* We use char because int might match the return type of a gcc2
18889   builtin and then its argument prototype would still apply.  */
18890char elf_begin ();
18891int
18892main ()
18893{
18894elf_begin ();
18895  ;
18896  return 0;
18897}
18898_ACEOF
18899rm -f conftest.$ac_objext conftest$ac_exeext
18900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18901  (eval $ac_link) 2>conftest.er1
18902  ac_status=$?
18903  grep -v '^ *+' conftest.er1 >conftest.err
18904  rm -f conftest.er1
18905  cat conftest.err >&5
18906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907  (exit $ac_status); } &&
18908	 { ac_try='test -z "$ac_c_werror_flag"
18909			 || test ! -s conftest.err'
18910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911  (eval $ac_try) 2>&5
18912  ac_status=$?
18913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914  (exit $ac_status); }; } &&
18915	 { ac_try='test -s conftest$ac_exeext'
18916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917  (eval $ac_try) 2>&5
18918  ac_status=$?
18919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920  (exit $ac_status); }; }; then
18921  ac_cv_lib_elf_elf_begin=yes
18922else
18923  echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926ac_cv_lib_elf_elf_begin=no
18927fi
18928rm -f conftest.err conftest.$ac_objext \
18929      conftest$ac_exeext conftest.$ac_ext
18930LIBS=$ac_check_lib_save_LIBS
18931fi
18932echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18933echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18934if test $ac_cv_lib_elf_elf_begin = yes; then
18935  cat >>confdefs.h <<_ACEOF
18936#define HAVE_LIBELF 1
18937_ACEOF
18938
18939  LIBS="-lelf $LIBS"
18940
18941fi
18942
18943
18944echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18945echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18946if test "${ac_cv_search_dlopen+set}" = set; then
18947  echo $ECHO_N "(cached) $ECHO_C" >&6
18948else
18949  ac_func_search_save_LIBS=$LIBS
18950ac_cv_search_dlopen=no
18951cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h.  */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h.  */
18957
18958/* Override any gcc2 internal prototype to avoid an error.  */
18959#ifdef __cplusplus
18960extern "C"
18961#endif
18962/* We use char because int might match the return type of a gcc2
18963   builtin and then its argument prototype would still apply.  */
18964char dlopen ();
18965int
18966main ()
18967{
18968dlopen ();
18969  ;
18970  return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext conftest$ac_exeext
18974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18975  (eval $ac_link) 2>conftest.er1
18976  ac_status=$?
18977  grep -v '^ *+' conftest.er1 >conftest.err
18978  rm -f conftest.er1
18979  cat conftest.err >&5
18980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981  (exit $ac_status); } &&
18982	 { ac_try='test -z "$ac_c_werror_flag"
18983			 || test ! -s conftest.err'
18984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985  (eval $ac_try) 2>&5
18986  ac_status=$?
18987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988  (exit $ac_status); }; } &&
18989	 { ac_try='test -s conftest$ac_exeext'
18990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991  (eval $ac_try) 2>&5
18992  ac_status=$?
18993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994  (exit $ac_status); }; }; then
18995  ac_cv_search_dlopen="none required"
18996else
18997  echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000fi
19001rm -f conftest.err conftest.$ac_objext \
19002      conftest$ac_exeext conftest.$ac_ext
19003if test "$ac_cv_search_dlopen" = no; then
19004  for ac_lib in dl; do
19005    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19006    cat >conftest.$ac_ext <<_ACEOF
19007/* confdefs.h.  */
19008_ACEOF
19009cat confdefs.h >>conftest.$ac_ext
19010cat >>conftest.$ac_ext <<_ACEOF
19011/* end confdefs.h.  */
19012
19013/* Override any gcc2 internal prototype to avoid an error.  */
19014#ifdef __cplusplus
19015extern "C"
19016#endif
19017/* We use char because int might match the return type of a gcc2
19018   builtin and then its argument prototype would still apply.  */
19019char dlopen ();
19020int
19021main ()
19022{
19023dlopen ();
19024  ;
19025  return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext conftest$ac_exeext
19029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19030  (eval $ac_link) 2>conftest.er1
19031  ac_status=$?
19032  grep -v '^ *+' conftest.er1 >conftest.err
19033  rm -f conftest.er1
19034  cat conftest.err >&5
19035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036  (exit $ac_status); } &&
19037	 { ac_try='test -z "$ac_c_werror_flag"
19038			 || test ! -s conftest.err'
19039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040  (eval $ac_try) 2>&5
19041  ac_status=$?
19042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043  (exit $ac_status); }; } &&
19044	 { ac_try='test -s conftest$ac_exeext'
19045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046  (eval $ac_try) 2>&5
19047  ac_status=$?
19048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049  (exit $ac_status); }; }; then
19050  ac_cv_search_dlopen="-l$ac_lib"
19051break
19052else
19053  echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056fi
19057rm -f conftest.err conftest.$ac_objext \
19058      conftest$ac_exeext conftest.$ac_ext
19059  done
19060fi
19061LIBS=$ac_func_search_save_LIBS
19062fi
19063echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19064echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19065if test "$ac_cv_search_dlopen" != no; then
19066  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19067
19068cat >>confdefs.h <<\_ACEOF
19069#define HAVE_DLOPEN 1
19070_ACEOF
19071
19072else
19073  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19074echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19075fi
19076
19077
19078echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19079echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19080if test "${ac_cv_search_mallinfo+set}" = set; then
19081  echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083  ac_func_search_save_LIBS=$LIBS
19084ac_cv_search_mallinfo=no
19085cat >conftest.$ac_ext <<_ACEOF
19086/* confdefs.h.  */
19087_ACEOF
19088cat confdefs.h >>conftest.$ac_ext
19089cat >>conftest.$ac_ext <<_ACEOF
19090/* end confdefs.h.  */
19091
19092/* Override any gcc2 internal prototype to avoid an error.  */
19093#ifdef __cplusplus
19094extern "C"
19095#endif
19096/* We use char because int might match the return type of a gcc2
19097   builtin and then its argument prototype would still apply.  */
19098char mallinfo ();
19099int
19100main ()
19101{
19102mallinfo ();
19103  ;
19104  return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext conftest$ac_exeext
19108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109  (eval $ac_link) 2>conftest.er1
19110  ac_status=$?
19111  grep -v '^ *+' conftest.er1 >conftest.err
19112  rm -f conftest.er1
19113  cat conftest.err >&5
19114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115  (exit $ac_status); } &&
19116	 { ac_try='test -z "$ac_c_werror_flag"
19117			 || test ! -s conftest.err'
19118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119  (eval $ac_try) 2>&5
19120  ac_status=$?
19121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122  (exit $ac_status); }; } &&
19123	 { ac_try='test -s conftest$ac_exeext'
19124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125  (eval $ac_try) 2>&5
19126  ac_status=$?
19127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128  (exit $ac_status); }; }; then
19129  ac_cv_search_mallinfo="none required"
19130else
19131  echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134fi
19135rm -f conftest.err conftest.$ac_objext \
19136      conftest$ac_exeext conftest.$ac_ext
19137if test "$ac_cv_search_mallinfo" = no; then
19138  for ac_lib in malloc; do
19139    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19140    cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h.  */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h.  */
19146
19147/* Override any gcc2 internal prototype to avoid an error.  */
19148#ifdef __cplusplus
19149extern "C"
19150#endif
19151/* We use char because int might match the return type of a gcc2
19152   builtin and then its argument prototype would still apply.  */
19153char mallinfo ();
19154int
19155main ()
19156{
19157mallinfo ();
19158  ;
19159  return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext conftest$ac_exeext
19163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164  (eval $ac_link) 2>conftest.er1
19165  ac_status=$?
19166  grep -v '^ *+' conftest.er1 >conftest.err
19167  rm -f conftest.er1
19168  cat conftest.err >&5
19169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170  (exit $ac_status); } &&
19171	 { ac_try='test -z "$ac_c_werror_flag"
19172			 || test ! -s conftest.err'
19173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174  (eval $ac_try) 2>&5
19175  ac_status=$?
19176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177  (exit $ac_status); }; } &&
19178	 { ac_try='test -s conftest$ac_exeext'
19179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180  (eval $ac_try) 2>&5
19181  ac_status=$?
19182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183  (exit $ac_status); }; }; then
19184  ac_cv_search_mallinfo="-l$ac_lib"
19185break
19186else
19187  echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190fi
19191rm -f conftest.err conftest.$ac_objext \
19192      conftest$ac_exeext conftest.$ac_ext
19193  done
19194fi
19195LIBS=$ac_func_search_save_LIBS
19196fi
19197echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19198echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19199if test "$ac_cv_search_mallinfo" != no; then
19200  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19201
19202cat >>confdefs.h <<\_ACEOF
19203#define HAVE_MALLINFO 1
19204_ACEOF
19205
19206fi
19207
19208
19209echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19210echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19211if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19212  echo $ECHO_N "(cached) $ECHO_C" >&6
19213else
19214  ac_func_search_save_LIBS=$LIBS
19215ac_cv_search_pthread_mutex_lock=no
19216cat >conftest.$ac_ext <<_ACEOF
19217/* confdefs.h.  */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h.  */
19222
19223/* Override any gcc2 internal prototype to avoid an error.  */
19224#ifdef __cplusplus
19225extern "C"
19226#endif
19227/* We use char because int might match the return type of a gcc2
19228   builtin and then its argument prototype would still apply.  */
19229char pthread_mutex_lock ();
19230int
19231main ()
19232{
19233pthread_mutex_lock ();
19234  ;
19235  return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext conftest$ac_exeext
19239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240  (eval $ac_link) 2>conftest.er1
19241  ac_status=$?
19242  grep -v '^ *+' conftest.er1 >conftest.err
19243  rm -f conftest.er1
19244  cat conftest.err >&5
19245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246  (exit $ac_status); } &&
19247	 { ac_try='test -z "$ac_c_werror_flag"
19248			 || test ! -s conftest.err'
19249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250  (eval $ac_try) 2>&5
19251  ac_status=$?
19252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253  (exit $ac_status); }; } &&
19254	 { ac_try='test -s conftest$ac_exeext'
19255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256  (eval $ac_try) 2>&5
19257  ac_status=$?
19258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259  (exit $ac_status); }; }; then
19260  ac_cv_search_pthread_mutex_lock="none required"
19261else
19262  echo "$as_me: failed program was:" >&5
19263sed 's/^/| /' conftest.$ac_ext >&5
19264
19265fi
19266rm -f conftest.err conftest.$ac_objext \
19267      conftest$ac_exeext conftest.$ac_ext
19268if test "$ac_cv_search_pthread_mutex_lock" = no; then
19269  for ac_lib in pthread; do
19270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
19278/* Override any gcc2 internal prototype to avoid an error.  */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282/* We use char because int might match the return type of a gcc2
19283   builtin and then its argument prototype would still apply.  */
19284char pthread_mutex_lock ();
19285int
19286main ()
19287{
19288pthread_mutex_lock ();
19289  ;
19290  return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295  (eval $ac_link) 2>conftest.er1
19296  ac_status=$?
19297  grep -v '^ *+' conftest.er1 >conftest.err
19298  rm -f conftest.er1
19299  cat conftest.err >&5
19300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301  (exit $ac_status); } &&
19302	 { ac_try='test -z "$ac_c_werror_flag"
19303			 || test ! -s conftest.err'
19304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305  (eval $ac_try) 2>&5
19306  ac_status=$?
19307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308  (exit $ac_status); }; } &&
19309	 { ac_try='test -s conftest$ac_exeext'
19310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311  (eval $ac_try) 2>&5
19312  ac_status=$?
19313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314  (exit $ac_status); }; }; then
19315  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19316break
19317else
19318  echo "$as_me: failed program was:" >&5
19319sed 's/^/| /' conftest.$ac_ext >&5
19320
19321fi
19322rm -f conftest.err conftest.$ac_objext \
19323      conftest$ac_exeext conftest.$ac_ext
19324  done
19325fi
19326LIBS=$ac_func_search_save_LIBS
19327fi
19328echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19329echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19330if test "$ac_cv_search_pthread_mutex_lock" != no; then
19331  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19332  HAVE_PTHREAD_MUTEX_LOCK=1
19333else
19334  HAVE_PTHREAD_MUTEX_LOCK=0
19335fi
19336
19337
19338
19339echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19340echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19341if test "${ac_cv_header_stdc+set}" = set; then
19342  echo $ECHO_N "(cached) $ECHO_C" >&6
19343else
19344  cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h.  */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h.  */
19350#include <stdlib.h>
19351#include <stdarg.h>
19352#include <string.h>
19353#include <float.h>
19354
19355int
19356main ()
19357{
19358
19359  ;
19360  return 0;
19361}
19362_ACEOF
19363rm -f conftest.$ac_objext
19364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365  (eval $ac_compile) 2>conftest.er1
19366  ac_status=$?
19367  grep -v '^ *+' conftest.er1 >conftest.err
19368  rm -f conftest.er1
19369  cat conftest.err >&5
19370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371  (exit $ac_status); } &&
19372	 { ac_try='test -z "$ac_c_werror_flag"
19373			 || test ! -s conftest.err'
19374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375  (eval $ac_try) 2>&5
19376  ac_status=$?
19377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378  (exit $ac_status); }; } &&
19379	 { ac_try='test -s conftest.$ac_objext'
19380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381  (eval $ac_try) 2>&5
19382  ac_status=$?
19383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384  (exit $ac_status); }; }; then
19385  ac_cv_header_stdc=yes
19386else
19387  echo "$as_me: failed program was:" >&5
19388sed 's/^/| /' conftest.$ac_ext >&5
19389
19390ac_cv_header_stdc=no
19391fi
19392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19393
19394if test $ac_cv_header_stdc = yes; then
19395  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19396  cat >conftest.$ac_ext <<_ACEOF
19397/* confdefs.h.  */
19398_ACEOF
19399cat confdefs.h >>conftest.$ac_ext
19400cat >>conftest.$ac_ext <<_ACEOF
19401/* end confdefs.h.  */
19402#include <string.h>
19403
19404_ACEOF
19405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19406  $EGREP "memchr" >/dev/null 2>&1; then
19407  :
19408else
19409  ac_cv_header_stdc=no
19410fi
19411rm -f conftest*
19412
19413fi
19414
19415if test $ac_cv_header_stdc = yes; then
19416  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19417  cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h.  */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h.  */
19423#include <stdlib.h>
19424
19425_ACEOF
19426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19427  $EGREP "free" >/dev/null 2>&1; then
19428  :
19429else
19430  ac_cv_header_stdc=no
19431fi
19432rm -f conftest*
19433
19434fi
19435
19436if test $ac_cv_header_stdc = yes; then
19437  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19438  if test "$cross_compiling" = yes; then
19439  :
19440else
19441  cat >conftest.$ac_ext <<_ACEOF
19442/* confdefs.h.  */
19443_ACEOF
19444cat confdefs.h >>conftest.$ac_ext
19445cat >>conftest.$ac_ext <<_ACEOF
19446/* end confdefs.h.  */
19447#include <ctype.h>
19448#if ((' ' & 0x0FF) == 0x020)
19449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19451#else
19452# define ISLOWER(c) \
19453		   (('a' <= (c) && (c) <= 'i') \
19454		     || ('j' <= (c) && (c) <= 'r') \
19455		     || ('s' <= (c) && (c) <= 'z'))
19456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19457#endif
19458
19459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19460int
19461main ()
19462{
19463  int i;
19464  for (i = 0; i < 256; i++)
19465    if (XOR (islower (i), ISLOWER (i))
19466	|| toupper (i) != TOUPPER (i))
19467      exit(2);
19468  exit (0);
19469}
19470_ACEOF
19471rm -f conftest$ac_exeext
19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473  (eval $ac_link) 2>&5
19474  ac_status=$?
19475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478  (eval $ac_try) 2>&5
19479  ac_status=$?
19480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481  (exit $ac_status); }; }; then
19482  :
19483else
19484  echo "$as_me: program exited with status $ac_status" >&5
19485echo "$as_me: failed program was:" >&5
19486sed 's/^/| /' conftest.$ac_ext >&5
19487
19488( exit $ac_status )
19489ac_cv_header_stdc=no
19490fi
19491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492fi
19493fi
19494fi
19495echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19496echo "${ECHO_T}$ac_cv_header_stdc" >&6
19497if test $ac_cv_header_stdc = yes; then
19498
19499cat >>confdefs.h <<\_ACEOF
19500#define STDC_HEADERS 1
19501_ACEOF
19502
19503fi
19504
19505echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19506echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19507if test "${ac_cv_header_sys_wait_h+set}" = set; then
19508  echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510  cat >conftest.$ac_ext <<_ACEOF
19511/* confdefs.h.  */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h.  */
19516#include <sys/types.h>
19517#include <sys/wait.h>
19518#ifndef WEXITSTATUS
19519# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19520#endif
19521#ifndef WIFEXITED
19522# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19523#endif
19524
19525int
19526main ()
19527{
19528  int s;
19529  wait (&s);
19530  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19531  ;
19532  return 0;
19533}
19534_ACEOF
19535rm -f conftest.$ac_objext
19536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537  (eval $ac_compile) 2>conftest.er1
19538  ac_status=$?
19539  grep -v '^ *+' conftest.er1 >conftest.err
19540  rm -f conftest.er1
19541  cat conftest.err >&5
19542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543  (exit $ac_status); } &&
19544	 { ac_try='test -z "$ac_c_werror_flag"
19545			 || test ! -s conftest.err'
19546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547  (eval $ac_try) 2>&5
19548  ac_status=$?
19549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550  (exit $ac_status); }; } &&
19551	 { ac_try='test -s conftest.$ac_objext'
19552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553  (eval $ac_try) 2>&5
19554  ac_status=$?
19555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556  (exit $ac_status); }; }; then
19557  ac_cv_header_sys_wait_h=yes
19558else
19559  echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562ac_cv_header_sys_wait_h=no
19563fi
19564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19565fi
19566echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19567echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19568if test $ac_cv_header_sys_wait_h = yes; then
19569
19570cat >>confdefs.h <<\_ACEOF
19571#define HAVE_SYS_WAIT_H 1
19572_ACEOF
19573
19574fi
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19589do
19590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19591if eval "test \"\${$as_ac_Header+set}\" = set"; then
19592  echo "$as_me:$LINENO: checking for $ac_header" >&5
19593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19594if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595  echo $ECHO_N "(cached) $ECHO_C" >&6
19596fi
19597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19599else
19600  # Is the header compilable?
19601echo "$as_me:$LINENO: checking $ac_header usability" >&5
19602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19603cat >conftest.$ac_ext <<_ACEOF
19604/* confdefs.h.  */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h.  */
19609$ac_includes_default
19610#include <$ac_header>
19611_ACEOF
19612rm -f conftest.$ac_objext
19613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614  (eval $ac_compile) 2>conftest.er1
19615  ac_status=$?
19616  grep -v '^ *+' conftest.er1 >conftest.err
19617  rm -f conftest.er1
19618  cat conftest.err >&5
19619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620  (exit $ac_status); } &&
19621	 { ac_try='test -z "$ac_c_werror_flag"
19622			 || test ! -s conftest.err'
19623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624  (eval $ac_try) 2>&5
19625  ac_status=$?
19626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627  (exit $ac_status); }; } &&
19628	 { ac_try='test -s conftest.$ac_objext'
19629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630  (eval $ac_try) 2>&5
19631  ac_status=$?
19632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633  (exit $ac_status); }; }; then
19634  ac_header_compiler=yes
19635else
19636  echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639ac_header_compiler=no
19640fi
19641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19643echo "${ECHO_T}$ac_header_compiler" >&6
19644
19645# Is the header present?
19646echo "$as_me:$LINENO: checking $ac_header presence" >&5
19647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19648cat >conftest.$ac_ext <<_ACEOF
19649/* confdefs.h.  */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
19653/* end confdefs.h.  */
19654#include <$ac_header>
19655_ACEOF
19656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19658  ac_status=$?
19659  grep -v '^ *+' conftest.er1 >conftest.err
19660  rm -f conftest.er1
19661  cat conftest.err >&5
19662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663  (exit $ac_status); } >/dev/null; then
19664  if test -s conftest.err; then
19665    ac_cpp_err=$ac_c_preproc_warn_flag
19666    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19667  else
19668    ac_cpp_err=
19669  fi
19670else
19671  ac_cpp_err=yes
19672fi
19673if test -z "$ac_cpp_err"; then
19674  ac_header_preproc=yes
19675else
19676  echo "$as_me: failed program was:" >&5
19677sed 's/^/| /' conftest.$ac_ext >&5
19678
19679  ac_header_preproc=no
19680fi
19681rm -f conftest.err conftest.$ac_ext
19682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19683echo "${ECHO_T}$ac_header_preproc" >&6
19684
19685# So?  What about this header?
19686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19687  yes:no: )
19688    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19690    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19692    ac_header_preproc=yes
19693    ;;
19694  no:yes:* )
19695    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19697    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19698echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19699    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19701    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19702echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19703    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19705    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19707    (
19708      cat <<\_ASBOX
19709## ----------------------------------- ##
19710## Report this to llvmbugs@cs.uiuc.edu ##
19711## ----------------------------------- ##
19712_ASBOX
19713    ) |
19714      sed "s/^/$as_me: WARNING:     /" >&2
19715    ;;
19716esac
19717echo "$as_me:$LINENO: checking for $ac_header" >&5
19718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720  echo $ECHO_N "(cached) $ECHO_C" >&6
19721else
19722  eval "$as_ac_Header=\$ac_header_preproc"
19723fi
19724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726
19727fi
19728if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729  cat >>confdefs.h <<_ACEOF
19730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19731_ACEOF
19732
19733fi
19734
19735done
19736
19737
19738if test "${ac_cv_header_sys_types_h+set}" = set; then
19739  echo "$as_me:$LINENO: checking for sys/types.h" >&5
19740echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19741if test "${ac_cv_header_sys_types_h+set}" = set; then
19742  echo $ECHO_N "(cached) $ECHO_C" >&6
19743fi
19744echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19745echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19746else
19747  # Is the header compilable?
19748echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19749echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19750cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h.  */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h.  */
19756$ac_includes_default
19757#include <sys/types.h>
19758_ACEOF
19759rm -f conftest.$ac_objext
19760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761  (eval $ac_compile) 2>conftest.er1
19762  ac_status=$?
19763  grep -v '^ *+' conftest.er1 >conftest.err
19764  rm -f conftest.er1
19765  cat conftest.err >&5
19766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767  (exit $ac_status); } &&
19768	 { ac_try='test -z "$ac_c_werror_flag"
19769			 || test ! -s conftest.err'
19770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771  (eval $ac_try) 2>&5
19772  ac_status=$?
19773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774  (exit $ac_status); }; } &&
19775	 { ac_try='test -s conftest.$ac_objext'
19776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777  (eval $ac_try) 2>&5
19778  ac_status=$?
19779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780  (exit $ac_status); }; }; then
19781  ac_header_compiler=yes
19782else
19783  echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786ac_header_compiler=no
19787fi
19788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19790echo "${ECHO_T}$ac_header_compiler" >&6
19791
19792# Is the header present?
19793echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19794echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19795cat >conftest.$ac_ext <<_ACEOF
19796/* confdefs.h.  */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h.  */
19801#include <sys/types.h>
19802_ACEOF
19803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19805  ac_status=$?
19806  grep -v '^ *+' conftest.er1 >conftest.err
19807  rm -f conftest.er1
19808  cat conftest.err >&5
19809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810  (exit $ac_status); } >/dev/null; then
19811  if test -s conftest.err; then
19812    ac_cpp_err=$ac_c_preproc_warn_flag
19813    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814  else
19815    ac_cpp_err=
19816  fi
19817else
19818  ac_cpp_err=yes
19819fi
19820if test -z "$ac_cpp_err"; then
19821  ac_header_preproc=yes
19822else
19823  echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
19826  ac_header_preproc=no
19827fi
19828rm -f conftest.err conftest.$ac_ext
19829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19830echo "${ECHO_T}$ac_header_preproc" >&6
19831
19832# So?  What about this header?
19833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19834  yes:no: )
19835    { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19836echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19837    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19838echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19839    ac_header_preproc=yes
19840    ;;
19841  no:yes:* )
19842    { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19843echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19844    { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19845echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19846    { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19847echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19848    { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19849echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19850    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19851echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19852    { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19853echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19854    (
19855      cat <<\_ASBOX
19856## ----------------------------------- ##
19857## Report this to llvmbugs@cs.uiuc.edu ##
19858## ----------------------------------- ##
19859_ASBOX
19860    ) |
19861      sed "s/^/$as_me: WARNING:     /" >&2
19862    ;;
19863esac
19864echo "$as_me:$LINENO: checking for sys/types.h" >&5
19865echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19866if test "${ac_cv_header_sys_types_h+set}" = set; then
19867  echo $ECHO_N "(cached) $ECHO_C" >&6
19868else
19869  ac_cv_header_sys_types_h=$ac_header_preproc
19870fi
19871echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19872echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19873
19874fi
19875if test $ac_cv_header_sys_types_h = yes; then
19876  INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19877else
19878  INCLUDE_SYS_TYPES_H=''
19879fi
19880
19881
19882
19883if test "${ac_cv_header_inttypes_h+set}" = set; then
19884  echo "$as_me:$LINENO: checking for inttypes.h" >&5
19885echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19886if test "${ac_cv_header_inttypes_h+set}" = set; then
19887  echo $ECHO_N "(cached) $ECHO_C" >&6
19888fi
19889echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19890echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19891else
19892  # Is the header compilable?
19893echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19894echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19895cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h.  */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h.  */
19901$ac_includes_default
19902#include <inttypes.h>
19903_ACEOF
19904rm -f conftest.$ac_objext
19905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906  (eval $ac_compile) 2>conftest.er1
19907  ac_status=$?
19908  grep -v '^ *+' conftest.er1 >conftest.err
19909  rm -f conftest.er1
19910  cat conftest.err >&5
19911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912  (exit $ac_status); } &&
19913	 { ac_try='test -z "$ac_c_werror_flag"
19914			 || test ! -s conftest.err'
19915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916  (eval $ac_try) 2>&5
19917  ac_status=$?
19918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919  (exit $ac_status); }; } &&
19920	 { ac_try='test -s conftest.$ac_objext'
19921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922  (eval $ac_try) 2>&5
19923  ac_status=$?
19924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925  (exit $ac_status); }; }; then
19926  ac_header_compiler=yes
19927else
19928  echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931ac_header_compiler=no
19932fi
19933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935echo "${ECHO_T}$ac_header_compiler" >&6
19936
19937# Is the header present?
19938echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19939echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19940cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h.  */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h.  */
19946#include <inttypes.h>
19947_ACEOF
19948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19950  ac_status=$?
19951  grep -v '^ *+' conftest.er1 >conftest.err
19952  rm -f conftest.er1
19953  cat conftest.err >&5
19954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955  (exit $ac_status); } >/dev/null; then
19956  if test -s conftest.err; then
19957    ac_cpp_err=$ac_c_preproc_warn_flag
19958    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19959  else
19960    ac_cpp_err=
19961  fi
19962else
19963  ac_cpp_err=yes
19964fi
19965if test -z "$ac_cpp_err"; then
19966  ac_header_preproc=yes
19967else
19968  echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971  ac_header_preproc=no
19972fi
19973rm -f conftest.err conftest.$ac_ext
19974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975echo "${ECHO_T}$ac_header_preproc" >&6
19976
19977# So?  What about this header?
19978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979  yes:no: )
19980    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19981echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19983echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19984    ac_header_preproc=yes
19985    ;;
19986  no:yes:* )
19987    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19988echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19989    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
19990echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
19991    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19992echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19993    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
19994echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19995    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19996echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19997    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19998echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
19999    (
20000      cat <<\_ASBOX
20001## ----------------------------------- ##
20002## Report this to llvmbugs@cs.uiuc.edu ##
20003## ----------------------------------- ##
20004_ASBOX
20005    ) |
20006      sed "s/^/$as_me: WARNING:     /" >&2
20007    ;;
20008esac
20009echo "$as_me:$LINENO: checking for inttypes.h" >&5
20010echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20011if test "${ac_cv_header_inttypes_h+set}" = set; then
20012  echo $ECHO_N "(cached) $ECHO_C" >&6
20013else
20014  ac_cv_header_inttypes_h=$ac_header_preproc
20015fi
20016echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20017echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20018
20019fi
20020if test $ac_cv_header_inttypes_h = yes; then
20021  INCLUDE_INTTYPES_H='#include <inttypes.h>'
20022else
20023  INCLUDE_INTTYPES_H=''
20024fi
20025
20026
20027
20028if test "${ac_cv_header_stdint_h+set}" = set; then
20029  echo "$as_me:$LINENO: checking for stdint.h" >&5
20030echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20031if test "${ac_cv_header_stdint_h+set}" = set; then
20032  echo $ECHO_N "(cached) $ECHO_C" >&6
20033fi
20034echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20035echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20036else
20037  # Is the header compilable?
20038echo "$as_me:$LINENO: checking stdint.h usability" >&5
20039echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20040cat >conftest.$ac_ext <<_ACEOF
20041/* confdefs.h.  */
20042_ACEOF
20043cat confdefs.h >>conftest.$ac_ext
20044cat >>conftest.$ac_ext <<_ACEOF
20045/* end confdefs.h.  */
20046$ac_includes_default
20047#include <stdint.h>
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051  (eval $ac_compile) 2>conftest.er1
20052  ac_status=$?
20053  grep -v '^ *+' conftest.er1 >conftest.err
20054  rm -f conftest.er1
20055  cat conftest.err >&5
20056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057  (exit $ac_status); } &&
20058	 { ac_try='test -z "$ac_c_werror_flag"
20059			 || test ! -s conftest.err'
20060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061  (eval $ac_try) 2>&5
20062  ac_status=$?
20063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064  (exit $ac_status); }; } &&
20065	 { ac_try='test -s conftest.$ac_objext'
20066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067  (eval $ac_try) 2>&5
20068  ac_status=$?
20069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070  (exit $ac_status); }; }; then
20071  ac_header_compiler=yes
20072else
20073  echo "$as_me: failed program was:" >&5
20074sed 's/^/| /' conftest.$ac_ext >&5
20075
20076ac_header_compiler=no
20077fi
20078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20080echo "${ECHO_T}$ac_header_compiler" >&6
20081
20082# Is the header present?
20083echo "$as_me:$LINENO: checking stdint.h presence" >&5
20084echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20085cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h.  */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h.  */
20091#include <stdint.h>
20092_ACEOF
20093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20095  ac_status=$?
20096  grep -v '^ *+' conftest.er1 >conftest.err
20097  rm -f conftest.er1
20098  cat conftest.err >&5
20099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100  (exit $ac_status); } >/dev/null; then
20101  if test -s conftest.err; then
20102    ac_cpp_err=$ac_c_preproc_warn_flag
20103    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20104  else
20105    ac_cpp_err=
20106  fi
20107else
20108  ac_cpp_err=yes
20109fi
20110if test -z "$ac_cpp_err"; then
20111  ac_header_preproc=yes
20112else
20113  echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116  ac_header_preproc=no
20117fi
20118rm -f conftest.err conftest.$ac_ext
20119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20120echo "${ECHO_T}$ac_header_preproc" >&6
20121
20122# So?  What about this header?
20123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20124  yes:no: )
20125    { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20126echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20127    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20128echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20129    ac_header_preproc=yes
20130    ;;
20131  no:yes:* )
20132    { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20133echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20134    { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20135echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20136    { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20137echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20138    { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20139echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20140    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20141echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20142    { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20143echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20144    (
20145      cat <<\_ASBOX
20146## ----------------------------------- ##
20147## Report this to llvmbugs@cs.uiuc.edu ##
20148## ----------------------------------- ##
20149_ASBOX
20150    ) |
20151      sed "s/^/$as_me: WARNING:     /" >&2
20152    ;;
20153esac
20154echo "$as_me:$LINENO: checking for stdint.h" >&5
20155echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20156if test "${ac_cv_header_stdint_h+set}" = set; then
20157  echo $ECHO_N "(cached) $ECHO_C" >&6
20158else
20159  ac_cv_header_stdint_h=$ac_header_preproc
20160fi
20161echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20162echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20163
20164fi
20165if test $ac_cv_header_stdint_h = yes; then
20166  INCLUDE_STDINT_H='#include <stdint.h>'
20167else
20168  INCLUDE_STDINT_H=''
20169fi
20170
20171
20172
20173
20174
20175echo "$as_me:$LINENO: checking for pid_t" >&5
20176echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20177if test "${ac_cv_type_pid_t+set}" = set; then
20178  echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180  cat >conftest.$ac_ext <<_ACEOF
20181/* confdefs.h.  */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h.  */
20186$ac_includes_default
20187int
20188main ()
20189{
20190if ((pid_t *) 0)
20191  return 0;
20192if (sizeof (pid_t))
20193  return 0;
20194  ;
20195  return 0;
20196}
20197_ACEOF
20198rm -f conftest.$ac_objext
20199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200  (eval $ac_compile) 2>conftest.er1
20201  ac_status=$?
20202  grep -v '^ *+' conftest.er1 >conftest.err
20203  rm -f conftest.er1
20204  cat conftest.err >&5
20205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206  (exit $ac_status); } &&
20207	 { ac_try='test -z "$ac_c_werror_flag"
20208			 || test ! -s conftest.err'
20209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210  (eval $ac_try) 2>&5
20211  ac_status=$?
20212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213  (exit $ac_status); }; } &&
20214	 { ac_try='test -s conftest.$ac_objext'
20215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216  (eval $ac_try) 2>&5
20217  ac_status=$?
20218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219  (exit $ac_status); }; }; then
20220  ac_cv_type_pid_t=yes
20221else
20222  echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225ac_cv_type_pid_t=no
20226fi
20227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20228fi
20229echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20230echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20231if test $ac_cv_type_pid_t = yes; then
20232  :
20233else
20234
20235cat >>confdefs.h <<_ACEOF
20236#define pid_t int
20237_ACEOF
20238
20239fi
20240
20241echo "$as_me:$LINENO: checking for size_t" >&5
20242echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20243if test "${ac_cv_type_size_t+set}" = set; then
20244  echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246  cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h.  */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
20251/* end confdefs.h.  */
20252$ac_includes_default
20253int
20254main ()
20255{
20256if ((size_t *) 0)
20257  return 0;
20258if (sizeof (size_t))
20259  return 0;
20260  ;
20261  return 0;
20262}
20263_ACEOF
20264rm -f conftest.$ac_objext
20265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266  (eval $ac_compile) 2>conftest.er1
20267  ac_status=$?
20268  grep -v '^ *+' conftest.er1 >conftest.err
20269  rm -f conftest.er1
20270  cat conftest.err >&5
20271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272  (exit $ac_status); } &&
20273	 { ac_try='test -z "$ac_c_werror_flag"
20274			 || test ! -s conftest.err'
20275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276  (eval $ac_try) 2>&5
20277  ac_status=$?
20278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279  (exit $ac_status); }; } &&
20280	 { ac_try='test -s conftest.$ac_objext'
20281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282  (eval $ac_try) 2>&5
20283  ac_status=$?
20284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285  (exit $ac_status); }; }; then
20286  ac_cv_type_size_t=yes
20287else
20288  echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291ac_cv_type_size_t=no
20292fi
20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294fi
20295echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20296echo "${ECHO_T}$ac_cv_type_size_t" >&6
20297if test $ac_cv_type_size_t = yes; then
20298  :
20299else
20300
20301cat >>confdefs.h <<_ACEOF
20302#define size_t unsigned
20303_ACEOF
20304
20305fi
20306
20307echo "$as_me:$LINENO: checking for int64_t" >&5
20308echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20309if test "${ac_cv_type_int64_t+set}" = set; then
20310  echo $ECHO_N "(cached) $ECHO_C" >&6
20311else
20312  cat >conftest.$ac_ext <<_ACEOF
20313/* confdefs.h.  */
20314_ACEOF
20315cat confdefs.h >>conftest.$ac_ext
20316cat >>conftest.$ac_ext <<_ACEOF
20317/* end confdefs.h.  */
20318$ac_includes_default
20319int
20320main ()
20321{
20322if ((int64_t *) 0)
20323  return 0;
20324if (sizeof (int64_t))
20325  return 0;
20326  ;
20327  return 0;
20328}
20329_ACEOF
20330rm -f conftest.$ac_objext
20331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332  (eval $ac_compile) 2>conftest.er1
20333  ac_status=$?
20334  grep -v '^ *+' conftest.er1 >conftest.err
20335  rm -f conftest.er1
20336  cat conftest.err >&5
20337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338  (exit $ac_status); } &&
20339	 { ac_try='test -z "$ac_c_werror_flag"
20340			 || test ! -s conftest.err'
20341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342  (eval $ac_try) 2>&5
20343  ac_status=$?
20344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345  (exit $ac_status); }; } &&
20346	 { ac_try='test -s conftest.$ac_objext'
20347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348  (eval $ac_try) 2>&5
20349  ac_status=$?
20350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351  (exit $ac_status); }; }; then
20352  ac_cv_type_int64_t=yes
20353else
20354  echo "$as_me: failed program was:" >&5
20355sed 's/^/| /' conftest.$ac_ext >&5
20356
20357ac_cv_type_int64_t=no
20358fi
20359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20360fi
20361echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20362echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20363if test $ac_cv_type_int64_t = yes; then
20364
20365cat >>confdefs.h <<_ACEOF
20366#define HAVE_INT64_T 1
20367_ACEOF
20368
20369
20370else
20371  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20372echo "$as_me: error: Type int64_t required but not found" >&2;}
20373   { (exit 1); exit 1; }; }
20374fi
20375
20376echo "$as_me:$LINENO: checking for uint64_t" >&5
20377echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20378if test "${ac_cv_type_uint64_t+set}" = set; then
20379  echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381  cat >conftest.$ac_ext <<_ACEOF
20382/* confdefs.h.  */
20383_ACEOF
20384cat confdefs.h >>conftest.$ac_ext
20385cat >>conftest.$ac_ext <<_ACEOF
20386/* end confdefs.h.  */
20387$ac_includes_default
20388int
20389main ()
20390{
20391if ((uint64_t *) 0)
20392  return 0;
20393if (sizeof (uint64_t))
20394  return 0;
20395  ;
20396  return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext
20400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401  (eval $ac_compile) 2>conftest.er1
20402  ac_status=$?
20403  grep -v '^ *+' conftest.er1 >conftest.err
20404  rm -f conftest.er1
20405  cat conftest.err >&5
20406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407  (exit $ac_status); } &&
20408	 { ac_try='test -z "$ac_c_werror_flag"
20409			 || test ! -s conftest.err'
20410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411  (eval $ac_try) 2>&5
20412  ac_status=$?
20413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414  (exit $ac_status); }; } &&
20415	 { ac_try='test -s conftest.$ac_objext'
20416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417  (eval $ac_try) 2>&5
20418  ac_status=$?
20419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420  (exit $ac_status); }; }; then
20421  ac_cv_type_uint64_t=yes
20422else
20423  echo "$as_me: failed program was:" >&5
20424sed 's/^/| /' conftest.$ac_ext >&5
20425
20426ac_cv_type_uint64_t=no
20427fi
20428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20429fi
20430echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20431echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20432if test $ac_cv_type_uint64_t = yes; then
20433
20434cat >>confdefs.h <<_ACEOF
20435#define HAVE_UINT64_T 1
20436_ACEOF
20437
20438
20439else
20440  { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20441echo "$as_me: error: Type uint64_t required but not found" >&2;}
20442   { (exit 1); exit 1; }; }
20443fi
20444
20445echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20446echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20447if test "${ac_cv_header_time+set}" = set; then
20448  echo $ECHO_N "(cached) $ECHO_C" >&6
20449else
20450  cat >conftest.$ac_ext <<_ACEOF
20451/* confdefs.h.  */
20452_ACEOF
20453cat confdefs.h >>conftest.$ac_ext
20454cat >>conftest.$ac_ext <<_ACEOF
20455/* end confdefs.h.  */
20456#include <sys/types.h>
20457#include <sys/time.h>
20458#include <time.h>
20459
20460int
20461main ()
20462{
20463if ((struct tm *) 0)
20464return 0;
20465  ;
20466  return 0;
20467}
20468_ACEOF
20469rm -f conftest.$ac_objext
20470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471  (eval $ac_compile) 2>conftest.er1
20472  ac_status=$?
20473  grep -v '^ *+' conftest.er1 >conftest.err
20474  rm -f conftest.er1
20475  cat conftest.err >&5
20476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477  (exit $ac_status); } &&
20478	 { ac_try='test -z "$ac_c_werror_flag"
20479			 || test ! -s conftest.err'
20480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481  (eval $ac_try) 2>&5
20482  ac_status=$?
20483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484  (exit $ac_status); }; } &&
20485	 { ac_try='test -s conftest.$ac_objext'
20486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487  (eval $ac_try) 2>&5
20488  ac_status=$?
20489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490  (exit $ac_status); }; }; then
20491  ac_cv_header_time=yes
20492else
20493  echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
20495
20496ac_cv_header_time=no
20497fi
20498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20499fi
20500echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20501echo "${ECHO_T}$ac_cv_header_time" >&6
20502if test $ac_cv_header_time = yes; then
20503
20504cat >>confdefs.h <<\_ACEOF
20505#define TIME_WITH_SYS_TIME 1
20506_ACEOF
20507
20508fi
20509
20510echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20511echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20512if test "${ac_cv_struct_tm+set}" = set; then
20513  echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515  cat >conftest.$ac_ext <<_ACEOF
20516/* confdefs.h.  */
20517_ACEOF
20518cat confdefs.h >>conftest.$ac_ext
20519cat >>conftest.$ac_ext <<_ACEOF
20520/* end confdefs.h.  */
20521#include <sys/types.h>
20522#include <time.h>
20523
20524int
20525main ()
20526{
20527struct tm *tp; tp->tm_sec;
20528  ;
20529  return 0;
20530}
20531_ACEOF
20532rm -f conftest.$ac_objext
20533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534  (eval $ac_compile) 2>conftest.er1
20535  ac_status=$?
20536  grep -v '^ *+' conftest.er1 >conftest.err
20537  rm -f conftest.er1
20538  cat conftest.err >&5
20539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540  (exit $ac_status); } &&
20541	 { ac_try='test -z "$ac_c_werror_flag"
20542			 || test ! -s conftest.err'
20543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544  (eval $ac_try) 2>&5
20545  ac_status=$?
20546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547  (exit $ac_status); }; } &&
20548	 { ac_try='test -s conftest.$ac_objext'
20549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550  (eval $ac_try) 2>&5
20551  ac_status=$?
20552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553  (exit $ac_status); }; }; then
20554  ac_cv_struct_tm=time.h
20555else
20556  echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559ac_cv_struct_tm=sys/time.h
20560fi
20561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562fi
20563echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20564echo "${ECHO_T}$ac_cv_struct_tm" >&6
20565if test $ac_cv_struct_tm = sys/time.h; then
20566
20567cat >>confdefs.h <<\_ACEOF
20568#define TM_IN_SYS_TIME 1
20569_ACEOF
20570
20571fi
20572
20573
20574
20575        echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20576echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20577
20578
20579	ac_ext=c
20580ac_cpp='$CPP $CPPFLAGS'
20581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583ac_compiler_gnu=$ac_cv_c_compiler_gnu
20584
20585	if test "$cross_compiling" = yes; then
20586  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20587See \`config.log' for more details." >&5
20588echo "$as_me: error: cannot run test program while cross compiling
20589See \`config.log' for more details." >&2;}
20590   { (exit 1); exit 1; }; }
20591else
20592  cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h.  */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h.  */
20598#include <stdio.h>
20599		                 #include <stdlib.h>
20600int
20601main ()
20602{
20603
20604		                 volatile double A, B;
20605		                 char Buffer[100];
20606		                 A = 1;
20607		                 A /= 10.0;
20608		                 sprintf(Buffer, "%a", A);
20609		                 B = atof(Buffer);
20610		                 if (A != B)
20611							 return (1);
20612		                 if (A != 0x1.999999999999ap-4)
20613							 return (1);
20614		                 return (0);
20615  ;
20616  return 0;
20617}
20618_ACEOF
20619rm -f conftest$ac_exeext
20620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20621  (eval $ac_link) 2>&5
20622  ac_status=$?
20623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626  (eval $ac_try) 2>&5
20627  ac_status=$?
20628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629  (exit $ac_status); }; }; then
20630  ac_c_printf_a=yes
20631else
20632  echo "$as_me: program exited with status $ac_status" >&5
20633echo "$as_me: failed program was:" >&5
20634sed 's/^/| /' conftest.$ac_ext >&5
20635
20636( exit $ac_status )
20637ac_c_printf_a=no
20638fi
20639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20640fi
20641	ac_ext=c
20642ac_cpp='$CPP $CPPFLAGS'
20643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646
20647        echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20648echo "${ECHO_T}$ac_c_printf_a" >&6
20649	if test "$ac_c_printf_a" = "yes"; then
20650
20651cat >>confdefs.h <<\_ACEOF
20652#define HAVE_PRINTF_A 1
20653_ACEOF
20654
20655	fi
20656
20657
20658echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20659echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20660if test "${ac_cv_c_bigendian+set}" = set; then
20661  echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663  # See if sys/param.h defines the BYTE_ORDER macro.
20664cat >conftest.$ac_ext <<_ACEOF
20665/* confdefs.h.  */
20666_ACEOF
20667cat confdefs.h >>conftest.$ac_ext
20668cat >>conftest.$ac_ext <<_ACEOF
20669/* end confdefs.h.  */
20670#include <sys/types.h>
20671#include <sys/param.h>
20672
20673int
20674main ()
20675{
20676#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20677 bogus endian macros
20678#endif
20679
20680  ;
20681  return 0;
20682}
20683_ACEOF
20684rm -f conftest.$ac_objext
20685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686  (eval $ac_compile) 2>conftest.er1
20687  ac_status=$?
20688  grep -v '^ *+' conftest.er1 >conftest.err
20689  rm -f conftest.er1
20690  cat conftest.err >&5
20691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692  (exit $ac_status); } &&
20693	 { ac_try='test -z "$ac_c_werror_flag"
20694			 || test ! -s conftest.err'
20695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696  (eval $ac_try) 2>&5
20697  ac_status=$?
20698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699  (exit $ac_status); }; } &&
20700	 { ac_try='test -s conftest.$ac_objext'
20701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702  (eval $ac_try) 2>&5
20703  ac_status=$?
20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705  (exit $ac_status); }; }; then
20706  # It does; now see whether it defined to BIG_ENDIAN or not.
20707cat >conftest.$ac_ext <<_ACEOF
20708/* confdefs.h.  */
20709_ACEOF
20710cat confdefs.h >>conftest.$ac_ext
20711cat >>conftest.$ac_ext <<_ACEOF
20712/* end confdefs.h.  */
20713#include <sys/types.h>
20714#include <sys/param.h>
20715
20716int
20717main ()
20718{
20719#if BYTE_ORDER != BIG_ENDIAN
20720 not big endian
20721#endif
20722
20723  ;
20724  return 0;
20725}
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729  (eval $ac_compile) 2>conftest.er1
20730  ac_status=$?
20731  grep -v '^ *+' conftest.er1 >conftest.err
20732  rm -f conftest.er1
20733  cat conftest.err >&5
20734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735  (exit $ac_status); } &&
20736	 { ac_try='test -z "$ac_c_werror_flag"
20737			 || test ! -s conftest.err'
20738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739  (eval $ac_try) 2>&5
20740  ac_status=$?
20741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742  (exit $ac_status); }; } &&
20743	 { ac_try='test -s conftest.$ac_objext'
20744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745  (eval $ac_try) 2>&5
20746  ac_status=$?
20747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748  (exit $ac_status); }; }; then
20749  ac_cv_c_bigendian=yes
20750else
20751  echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
20753
20754ac_cv_c_bigendian=no
20755fi
20756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20757else
20758  echo "$as_me: failed program was:" >&5
20759sed 's/^/| /' conftest.$ac_ext >&5
20760
20761# It does not; compile a test program.
20762if test "$cross_compiling" = yes; then
20763  # try to guess the endianness by grepping values into an object file
20764  ac_cv_c_bigendian=unknown
20765  cat >conftest.$ac_ext <<_ACEOF
20766/* confdefs.h.  */
20767_ACEOF
20768cat confdefs.h >>conftest.$ac_ext
20769cat >>conftest.$ac_ext <<_ACEOF
20770/* end confdefs.h.  */
20771short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20772short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20773void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20774short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20775short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20776void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20777int
20778main ()
20779{
20780 _ascii (); _ebcdic ();
20781  ;
20782  return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext
20786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787  (eval $ac_compile) 2>conftest.er1
20788  ac_status=$?
20789  grep -v '^ *+' conftest.er1 >conftest.err
20790  rm -f conftest.er1
20791  cat conftest.err >&5
20792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793  (exit $ac_status); } &&
20794	 { ac_try='test -z "$ac_c_werror_flag"
20795			 || test ! -s conftest.err'
20796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797  (eval $ac_try) 2>&5
20798  ac_status=$?
20799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800  (exit $ac_status); }; } &&
20801	 { ac_try='test -s conftest.$ac_objext'
20802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803  (eval $ac_try) 2>&5
20804  ac_status=$?
20805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806  (exit $ac_status); }; }; then
20807  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20808  ac_cv_c_bigendian=yes
20809fi
20810if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20811  if test "$ac_cv_c_bigendian" = unknown; then
20812    ac_cv_c_bigendian=no
20813  else
20814    # finding both strings is unlikely to happen, but who knows?
20815    ac_cv_c_bigendian=unknown
20816  fi
20817fi
20818else
20819  echo "$as_me: failed program was:" >&5
20820sed 's/^/| /' conftest.$ac_ext >&5
20821
20822fi
20823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824else
20825  cat >conftest.$ac_ext <<_ACEOF
20826/* confdefs.h.  */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h.  */
20831int
20832main ()
20833{
20834  /* Are we little or big endian?  From Harbison&Steele.  */
20835  union
20836  {
20837    long l;
20838    char c[sizeof (long)];
20839  } u;
20840  u.l = 1;
20841  exit (u.c[sizeof (long) - 1] == 1);
20842}
20843_ACEOF
20844rm -f conftest$ac_exeext
20845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846  (eval $ac_link) 2>&5
20847  ac_status=$?
20848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851  (eval $ac_try) 2>&5
20852  ac_status=$?
20853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854  (exit $ac_status); }; }; then
20855  ac_cv_c_bigendian=no
20856else
20857  echo "$as_me: program exited with status $ac_status" >&5
20858echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861( exit $ac_status )
20862ac_cv_c_bigendian=yes
20863fi
20864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20865fi
20866fi
20867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20868fi
20869echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20870echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20871case $ac_cv_c_bigendian in
20872  yes)
20873    ENDIAN=big
20874 ;;
20875  no)
20876    ENDIAN=little
20877 ;;
20878  *)
20879    { { echo "$as_me:$LINENO: error: unknown endianness
20880presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20881echo "$as_me: error: unknown endianness
20882presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20883   { (exit 1); exit 1; }; } ;;
20884esac
20885
20886
20887echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20888echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20889if test "${ac_cv_cxx_namespaces+set}" = set; then
20890  echo $ECHO_N "(cached) $ECHO_C" >&6
20891else
20892
20893
20894 ac_ext=cc
20895ac_cpp='$CXXCPP $CPPFLAGS'
20896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20899
20900 cat >conftest.$ac_ext <<_ACEOF
20901/* confdefs.h.  */
20902_ACEOF
20903cat confdefs.h >>conftest.$ac_ext
20904cat >>conftest.$ac_ext <<_ACEOF
20905/* end confdefs.h.  */
20906namespace Outer { namespace Inner { int i = 0; }}
20907int
20908main ()
20909{
20910using namespace Outer::Inner; return i;
20911  ;
20912  return 0;
20913}
20914_ACEOF
20915rm -f conftest.$ac_objext
20916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20917  (eval $ac_compile) 2>conftest.er1
20918  ac_status=$?
20919  grep -v '^ *+' conftest.er1 >conftest.err
20920  rm -f conftest.er1
20921  cat conftest.err >&5
20922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923  (exit $ac_status); } &&
20924	 { ac_try='test -z "$ac_cxx_werror_flag"
20925			 || test ! -s conftest.err'
20926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927  (eval $ac_try) 2>&5
20928  ac_status=$?
20929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930  (exit $ac_status); }; } &&
20931	 { ac_try='test -s conftest.$ac_objext'
20932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933  (eval $ac_try) 2>&5
20934  ac_status=$?
20935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936  (exit $ac_status); }; }; then
20937  ac_cv_cxx_namespaces=yes
20938else
20939  echo "$as_me: failed program was:" >&5
20940sed 's/^/| /' conftest.$ac_ext >&5
20941
20942ac_cv_cxx_namespaces=no
20943fi
20944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20945 ac_ext=c
20946ac_cpp='$CPP $CPPFLAGS'
20947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950
20951
20952fi
20953echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20954echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20955if test "$ac_cv_cxx_namespaces" = yes; then
20956
20957cat >>confdefs.h <<\_ACEOF
20958#define HAVE_NAMESPACES
20959_ACEOF
20960
20961fi
20962
20963echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20964echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20965if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20966  echo $ECHO_N "(cached) $ECHO_C" >&6
20967else
20968
20969
20970
20971  ac_ext=cc
20972ac_cpp='$CXXCPP $CPPFLAGS'
20973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977  cat >conftest.$ac_ext <<_ACEOF
20978/* confdefs.h.  */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h.  */
20983#include <ext/hash_map>
20984#ifdef HAVE_NAMESPACES
20985using namespace std;
20986#endif
20987int
20988main ()
20989{
20990hash_map<int, int> t;
20991  ;
20992  return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997  (eval $ac_compile) 2>conftest.er1
20998  ac_status=$?
20999  grep -v '^ *+' conftest.er1 >conftest.err
21000  rm -f conftest.er1
21001  cat conftest.err >&5
21002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003  (exit $ac_status); } &&
21004	 { ac_try='test -z "$ac_cxx_werror_flag"
21005			 || test ! -s conftest.err'
21006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007  (eval $ac_try) 2>&5
21008  ac_status=$?
21009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010  (exit $ac_status); }; } &&
21011	 { ac_try='test -s conftest.$ac_objext'
21012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013  (eval $ac_try) 2>&5
21014  ac_status=$?
21015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016  (exit $ac_status); }; }; then
21017  ac_cv_cxx_have_std_ext_hash_map=yes
21018else
21019  echo "$as_me: failed program was:" >&5
21020sed 's/^/| /' conftest.$ac_ext >&5
21021
21022ac_cv_cxx_have_std_ext_hash_map=no
21023fi
21024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21025  ac_ext=c
21026ac_cpp='$CPP $CPPFLAGS'
21027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031fi
21032echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21033echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21034 HAVE_STD_EXT_HASH_MAP=0
21035 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21036 then
21037   HAVE_STD_EXT_HASH_MAP=1
21038 fi
21039
21040 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21041echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21042if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21043  echo $ECHO_N "(cached) $ECHO_C" >&6
21044else
21045
21046
21047
21048  ac_ext=cc
21049ac_cpp='$CXXCPP $CPPFLAGS'
21050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21053
21054  cat >conftest.$ac_ext <<_ACEOF
21055/* confdefs.h.  */
21056_ACEOF
21057cat confdefs.h >>conftest.$ac_ext
21058cat >>conftest.$ac_ext <<_ACEOF
21059/* end confdefs.h.  */
21060#include <ext/hash_map>
21061#ifdef HAVE_NAMESPACES
21062using namespace __gnu_cxx;
21063#endif
21064int
21065main ()
21066{
21067hash_map<int,int> t;
21068  ;
21069  return 0;
21070}
21071_ACEOF
21072rm -f conftest.$ac_objext
21073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074  (eval $ac_compile) 2>conftest.er1
21075  ac_status=$?
21076  grep -v '^ *+' conftest.er1 >conftest.err
21077  rm -f conftest.er1
21078  cat conftest.err >&5
21079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080  (exit $ac_status); } &&
21081	 { ac_try='test -z "$ac_cxx_werror_flag"
21082			 || test ! -s conftest.err'
21083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084  (eval $ac_try) 2>&5
21085  ac_status=$?
21086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087  (exit $ac_status); }; } &&
21088	 { ac_try='test -s conftest.$ac_objext'
21089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090  (eval $ac_try) 2>&5
21091  ac_status=$?
21092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093  (exit $ac_status); }; }; then
21094  ac_cv_cxx_have_gnu_ext_hash_map=yes
21095else
21096  echo "$as_me: failed program was:" >&5
21097sed 's/^/| /' conftest.$ac_ext >&5
21098
21099ac_cv_cxx_have_gnu_ext_hash_map=no
21100fi
21101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102  ac_ext=c
21103ac_cpp='$CPP $CPPFLAGS'
21104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107
21108fi
21109echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21110echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21111 HAVE_GNU_EXT_HASH_MAP=0
21112 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21113 then
21114   HAVE_GNU_EXT_HASH_MAP=1
21115 fi
21116
21117 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21118echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21119if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21120  echo $ECHO_N "(cached) $ECHO_C" >&6
21121else
21122
21123
21124
21125  ac_ext=cc
21126ac_cpp='$CXXCPP $CPPFLAGS'
21127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21130
21131  cat >conftest.$ac_ext <<_ACEOF
21132/* confdefs.h.  */
21133_ACEOF
21134cat confdefs.h >>conftest.$ac_ext
21135cat >>conftest.$ac_ext <<_ACEOF
21136/* end confdefs.h.  */
21137#include <hash_map>
21138int
21139main ()
21140{
21141hash_map<int,int> t;
21142  ;
21143  return 0;
21144}
21145_ACEOF
21146rm -f conftest.$ac_objext
21147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148  (eval $ac_compile) 2>conftest.er1
21149  ac_status=$?
21150  grep -v '^ *+' conftest.er1 >conftest.err
21151  rm -f conftest.er1
21152  cat conftest.err >&5
21153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154  (exit $ac_status); } &&
21155	 { ac_try='test -z "$ac_cxx_werror_flag"
21156			 || test ! -s conftest.err'
21157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158  (eval $ac_try) 2>&5
21159  ac_status=$?
21160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161  (exit $ac_status); }; } &&
21162	 { ac_try='test -s conftest.$ac_objext'
21163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164  (eval $ac_try) 2>&5
21165  ac_status=$?
21166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167  (exit $ac_status); }; }; then
21168  ac_cv_cxx_have_global_hash_map=yes
21169else
21170  echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
21173ac_cv_cxx_have_global_hash_map=no
21174fi
21175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21176  ac_ext=c
21177ac_cpp='$CPP $CPPFLAGS'
21178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181
21182fi
21183echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21184echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21185 HAVE_GLOBAL_HASH_MAP=0
21186 if test "$ac_cv_cxx_have_global_hash_map" = yes
21187 then
21188   HAVE_GLOBAL_HASH_MAP=1
21189 fi
21190
21191echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21192echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21193if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21194  echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196
21197
21198
21199  ac_ext=cc
21200ac_cpp='$CXXCPP $CPPFLAGS'
21201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21204
21205  cat >conftest.$ac_ext <<_ACEOF
21206/* confdefs.h.  */
21207_ACEOF
21208cat confdefs.h >>conftest.$ac_ext
21209cat >>conftest.$ac_ext <<_ACEOF
21210/* end confdefs.h.  */
21211#include <ext/hash_set>
21212#ifdef HAVE_NAMESPACES
21213using namespace std;
21214#endif
21215int
21216main ()
21217{
21218hash_set<int> t;
21219  ;
21220  return 0;
21221}
21222_ACEOF
21223rm -f conftest.$ac_objext
21224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225  (eval $ac_compile) 2>conftest.er1
21226  ac_status=$?
21227  grep -v '^ *+' conftest.er1 >conftest.err
21228  rm -f conftest.er1
21229  cat conftest.err >&5
21230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231  (exit $ac_status); } &&
21232	 { ac_try='test -z "$ac_cxx_werror_flag"
21233			 || test ! -s conftest.err'
21234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235  (eval $ac_try) 2>&5
21236  ac_status=$?
21237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238  (exit $ac_status); }; } &&
21239	 { ac_try='test -s conftest.$ac_objext'
21240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241  (eval $ac_try) 2>&5
21242  ac_status=$?
21243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244  (exit $ac_status); }; }; then
21245  ac_cv_cxx_have_std_ext_hash_set=yes
21246else
21247  echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
21250ac_cv_cxx_have_std_ext_hash_set=no
21251fi
21252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21253  ac_ext=c
21254ac_cpp='$CPP $CPPFLAGS'
21255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257ac_compiler_gnu=$ac_cv_c_compiler_gnu
21258
21259fi
21260echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21261echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21262 HAVE_STD_EXT_HASH_SET=0
21263 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21264 then
21265   HAVE_STD_EXT_HASH_SET=1
21266 fi
21267
21268 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21269echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21270if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21271  echo $ECHO_N "(cached) $ECHO_C" >&6
21272else
21273
21274
21275
21276  ac_ext=cc
21277ac_cpp='$CXXCPP $CPPFLAGS'
21278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21281
21282  cat >conftest.$ac_ext <<_ACEOF
21283/* confdefs.h.  */
21284_ACEOF
21285cat confdefs.h >>conftest.$ac_ext
21286cat >>conftest.$ac_ext <<_ACEOF
21287/* end confdefs.h.  */
21288#include <ext/hash_set>
21289#ifdef HAVE_NAMESPACES
21290using namespace __gnu_cxx;
21291#endif
21292int
21293main ()
21294{
21295hash_set<int> t;
21296  ;
21297  return 0;
21298}
21299_ACEOF
21300rm -f conftest.$ac_objext
21301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302  (eval $ac_compile) 2>conftest.er1
21303  ac_status=$?
21304  grep -v '^ *+' conftest.er1 >conftest.err
21305  rm -f conftest.er1
21306  cat conftest.err >&5
21307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308  (exit $ac_status); } &&
21309	 { ac_try='test -z "$ac_cxx_werror_flag"
21310			 || test ! -s conftest.err'
21311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312  (eval $ac_try) 2>&5
21313  ac_status=$?
21314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315  (exit $ac_status); }; } &&
21316	 { ac_try='test -s conftest.$ac_objext'
21317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318  (eval $ac_try) 2>&5
21319  ac_status=$?
21320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321  (exit $ac_status); }; }; then
21322  ac_cv_cxx_have_gnu_ext_hash_set=yes
21323else
21324  echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327ac_cv_cxx_have_gnu_ext_hash_set=no
21328fi
21329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330  ac_ext=c
21331ac_cpp='$CPP $CPPFLAGS'
21332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21334ac_compiler_gnu=$ac_cv_c_compiler_gnu
21335
21336fi
21337echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21338echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21339 HAVE_GNU_EXT_HASH_SET=0
21340 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21341 then
21342   HAVE_GNU_EXT_HASH_SET=1
21343 fi
21344
21345 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21346echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21347if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21348  echo $ECHO_N "(cached) $ECHO_C" >&6
21349else
21350
21351
21352
21353  ac_ext=cc
21354ac_cpp='$CXXCPP $CPPFLAGS'
21355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21358
21359  cat >conftest.$ac_ext <<_ACEOF
21360/* confdefs.h.  */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h.  */
21365#include <hash_set>
21366int
21367main ()
21368{
21369hash_set<int> t; return 0;
21370  ;
21371  return 0;
21372}
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376  (eval $ac_compile) 2>conftest.er1
21377  ac_status=$?
21378  grep -v '^ *+' conftest.er1 >conftest.err
21379  rm -f conftest.er1
21380  cat conftest.err >&5
21381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382  (exit $ac_status); } &&
21383	 { ac_try='test -z "$ac_cxx_werror_flag"
21384			 || test ! -s conftest.err'
21385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386  (eval $ac_try) 2>&5
21387  ac_status=$?
21388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389  (exit $ac_status); }; } &&
21390	 { ac_try='test -s conftest.$ac_objext'
21391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392  (eval $ac_try) 2>&5
21393  ac_status=$?
21394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395  (exit $ac_status); }; }; then
21396  ac_cv_cxx_have_global_hash_set=yes
21397else
21398  echo "$as_me: failed program was:" >&5
21399sed 's/^/| /' conftest.$ac_ext >&5
21400
21401ac_cv_cxx_have_global_hash_set=no
21402fi
21403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21404  ac_ext=c
21405ac_cpp='$CPP $CPPFLAGS'
21406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21408ac_compiler_gnu=$ac_cv_c_compiler_gnu
21409
21410fi
21411echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21412echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21413 HAVE_GLOBAL_HASH_SET=0
21414 if test "$ac_cv_cxx_have_global_hash_set" = yes
21415 then
21416   HAVE_GLOBAL_HASH_SET=1
21417 fi
21418
21419echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21420echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21421if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21422  echo $ECHO_N "(cached) $ECHO_C" >&6
21423else
21424
21425
21426
21427  ac_ext=cc
21428ac_cpp='$CXXCPP $CPPFLAGS'
21429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21432
21433  cat >conftest.$ac_ext <<_ACEOF
21434/* confdefs.h.  */
21435_ACEOF
21436cat confdefs.h >>conftest.$ac_ext
21437cat >>conftest.$ac_ext <<_ACEOF
21438/* end confdefs.h.  */
21439#include <iterator>
21440#ifdef HAVE_NAMESPACES
21441using namespace std;
21442#endif
21443int
21444main ()
21445{
21446iterator<int,int,int> t; return 0;
21447  ;
21448  return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext
21452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453  (eval $ac_compile) 2>conftest.er1
21454  ac_status=$?
21455  grep -v '^ *+' conftest.er1 >conftest.err
21456  rm -f conftest.er1
21457  cat conftest.err >&5
21458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459  (exit $ac_status); } &&
21460	 { ac_try='test -z "$ac_cxx_werror_flag"
21461			 || test ! -s conftest.err'
21462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463  (eval $ac_try) 2>&5
21464  ac_status=$?
21465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466  (exit $ac_status); }; } &&
21467	 { ac_try='test -s conftest.$ac_objext'
21468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469  (eval $ac_try) 2>&5
21470  ac_status=$?
21471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472  (exit $ac_status); }; }; then
21473  ac_cv_cxx_have_std_iterator=yes
21474else
21475  echo "$as_me: failed program was:" >&5
21476sed 's/^/| /' conftest.$ac_ext >&5
21477
21478ac_cv_cxx_have_std_iterator=no
21479fi
21480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21481  ac_ext=c
21482ac_cpp='$CPP $CPPFLAGS'
21483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21485ac_compiler_gnu=$ac_cv_c_compiler_gnu
21486
21487
21488fi
21489echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21490echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21491HAVE_STD_ITERATOR=0
21492if test "$ac_cv_cxx_have_std_iterator" = yes
21493then
21494   HAVE_STD_ITERATOR=1
21495fi
21496
21497echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21498echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21499if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21500  echo $ECHO_N "(cached) $ECHO_C" >&6
21501else
21502
21503
21504
21505  ac_ext=cc
21506ac_cpp='$CXXCPP $CPPFLAGS'
21507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21510
21511  cat >conftest.$ac_ext <<_ACEOF
21512/* confdefs.h.  */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h.  */
21517#include <iterator>
21518#ifdef HAVE_NAMESPACES
21519using namespace std;
21520#endif
21521int
21522main ()
21523{
21524bidirectional_iterator<int,int> t; return 0;
21525  ;
21526  return 0;
21527}
21528_ACEOF
21529rm -f conftest.$ac_objext
21530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21531  (eval $ac_compile) 2>conftest.er1
21532  ac_status=$?
21533  grep -v '^ *+' conftest.er1 >conftest.err
21534  rm -f conftest.er1
21535  cat conftest.err >&5
21536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537  (exit $ac_status); } &&
21538	 { ac_try='test -z "$ac_cxx_werror_flag"
21539			 || test ! -s conftest.err'
21540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541  (eval $ac_try) 2>&5
21542  ac_status=$?
21543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544  (exit $ac_status); }; } &&
21545	 { ac_try='test -s conftest.$ac_objext'
21546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547  (eval $ac_try) 2>&5
21548  ac_status=$?
21549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550  (exit $ac_status); }; }; then
21551  ac_cv_cxx_have_bi_iterator=yes
21552else
21553  echo "$as_me: failed program was:" >&5
21554sed 's/^/| /' conftest.$ac_ext >&5
21555
21556ac_cv_cxx_have_bi_iterator=no
21557fi
21558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21559  ac_ext=c
21560ac_cpp='$CPP $CPPFLAGS'
21561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21563ac_compiler_gnu=$ac_cv_c_compiler_gnu
21564
21565
21566fi
21567echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21568echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21569HAVE_BI_ITERATOR=0
21570if test "$ac_cv_cxx_have_bi_iterator" = yes
21571then
21572   HAVE_BI_ITERATOR=1
21573fi
21574
21575echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21576echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21577if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21578  echo $ECHO_N "(cached) $ECHO_C" >&6
21579else
21580
21581
21582
21583  ac_ext=cc
21584ac_cpp='$CXXCPP $CPPFLAGS'
21585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21588
21589  cat >conftest.$ac_ext <<_ACEOF
21590/* confdefs.h.  */
21591_ACEOF
21592cat confdefs.h >>conftest.$ac_ext
21593cat >>conftest.$ac_ext <<_ACEOF
21594/* end confdefs.h.  */
21595#include <iterator>
21596#ifdef HAVE_NAMESPACES
21597using namespace std;
21598#endif
21599int
21600main ()
21601{
21602forward_iterator<int,int> t; return 0;
21603  ;
21604  return 0;
21605}
21606_ACEOF
21607rm -f conftest.$ac_objext
21608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609  (eval $ac_compile) 2>conftest.er1
21610  ac_status=$?
21611  grep -v '^ *+' conftest.er1 >conftest.err
21612  rm -f conftest.er1
21613  cat conftest.err >&5
21614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615  (exit $ac_status); } &&
21616	 { ac_try='test -z "$ac_cxx_werror_flag"
21617			 || test ! -s conftest.err'
21618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619  (eval $ac_try) 2>&5
21620  ac_status=$?
21621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622  (exit $ac_status); }; } &&
21623	 { ac_try='test -s conftest.$ac_objext'
21624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625  (eval $ac_try) 2>&5
21626  ac_status=$?
21627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628  (exit $ac_status); }; }; then
21629  ac_cv_cxx_have_fwd_iterator=yes
21630else
21631  echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634ac_cv_cxx_have_fwd_iterator=no
21635fi
21636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21637  ac_ext=c
21638ac_cpp='$CPP $CPPFLAGS'
21639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21641ac_compiler_gnu=$ac_cv_c_compiler_gnu
21642
21643
21644fi
21645echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21646echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21647HAVE_FWD_ITERATOR=0
21648if test "$ac_cv_cxx_have_fwd_iterator" = yes
21649then
21650   HAVE_FWD_ITERATOR=1
21651fi
21652
21653
21654
21655echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21656echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21657if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21658  echo $ECHO_N "(cached) $ECHO_C" >&6
21659else
21660  ac_ext=cc
21661ac_cpp='$CXXCPP $CPPFLAGS'
21662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21665
21666  cat >conftest.$ac_ext <<_ACEOF
21667/* confdefs.h.  */
21668_ACEOF
21669cat confdefs.h >>conftest.$ac_ext
21670cat >>conftest.$ac_ext <<_ACEOF
21671/* end confdefs.h.  */
21672#include <math.h>
21673                     int foo(float f) {return isnan(f);}
21674_ACEOF
21675rm -f conftest.$ac_objext
21676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21677  (eval $ac_compile) 2>conftest.er1
21678  ac_status=$?
21679  grep -v '^ *+' conftest.er1 >conftest.err
21680  rm -f conftest.er1
21681  cat conftest.err >&5
21682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683  (exit $ac_status); } &&
21684	 { ac_try='test -z "$ac_cxx_werror_flag"
21685			 || test ! -s conftest.err'
21686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687  (eval $ac_try) 2>&5
21688  ac_status=$?
21689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690  (exit $ac_status); }; } &&
21691	 { ac_try='test -s conftest.$ac_objext'
21692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693  (eval $ac_try) 2>&5
21694  ac_status=$?
21695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696  (exit $ac_status); }; }; then
21697  ac_cv_func_isnan_in_math_h=yes
21698else
21699  echo "$as_me: failed program was:" >&5
21700sed 's/^/| /' conftest.$ac_ext >&5
21701
21702ac_cv_func_isnan_in_math_h=no
21703fi
21704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21705 ac_ext=c
21706ac_cpp='$CPP $CPPFLAGS'
21707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709ac_compiler_gnu=$ac_cv_c_compiler_gnu
21710
21711fi
21712echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21713echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21714 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21715 then
21716
21717cat >>confdefs.h <<\_ACEOF
21718#define HAVE_ISNAN_IN_MATH_H 1
21719_ACEOF
21720
21721 fi
21722echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21723echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21724if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21725  echo $ECHO_N "(cached) $ECHO_C" >&6
21726else
21727  ac_ext=cc
21728ac_cpp='$CXXCPP $CPPFLAGS'
21729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21732
21733  cat >conftest.$ac_ext <<_ACEOF
21734/* confdefs.h.  */
21735_ACEOF
21736cat confdefs.h >>conftest.$ac_ext
21737cat >>conftest.$ac_ext <<_ACEOF
21738/* end confdefs.h.  */
21739#include <cmath>
21740                     int foo(float f) {return isnan(f);}
21741_ACEOF
21742rm -f conftest.$ac_objext
21743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744  (eval $ac_compile) 2>conftest.er1
21745  ac_status=$?
21746  grep -v '^ *+' conftest.er1 >conftest.err
21747  rm -f conftest.er1
21748  cat conftest.err >&5
21749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750  (exit $ac_status); } &&
21751	 { ac_try='test -z "$ac_cxx_werror_flag"
21752			 || test ! -s conftest.err'
21753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754  (eval $ac_try) 2>&5
21755  ac_status=$?
21756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757  (exit $ac_status); }; } &&
21758	 { ac_try='test -s conftest.$ac_objext'
21759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760  (eval $ac_try) 2>&5
21761  ac_status=$?
21762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); }; }; then
21764  ac_cv_func_isnan_in_cmath=yes
21765else
21766  echo "$as_me: failed program was:" >&5
21767sed 's/^/| /' conftest.$ac_ext >&5
21768
21769ac_cv_func_isnan_in_cmath=no
21770fi
21771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21772 ac_ext=c
21773ac_cpp='$CPP $CPPFLAGS'
21774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21776ac_compiler_gnu=$ac_cv_c_compiler_gnu
21777
21778fi
21779echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21780echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21781 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21782 then
21783
21784cat >>confdefs.h <<\_ACEOF
21785#define HAVE_ISNAN_IN_CMATH 1
21786_ACEOF
21787
21788 fi
21789echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21790echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21791if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21792  echo $ECHO_N "(cached) $ECHO_C" >&6
21793else
21794  ac_ext=cc
21795ac_cpp='$CXXCPP $CPPFLAGS'
21796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21799
21800  cat >conftest.$ac_ext <<_ACEOF
21801/* confdefs.h.  */
21802_ACEOF
21803cat confdefs.h >>conftest.$ac_ext
21804cat >>conftest.$ac_ext <<_ACEOF
21805/* end confdefs.h.  */
21806#include <cmath>
21807                     using std::isnan; int foo(float f) {return isnan(f);}
21808_ACEOF
21809rm -f conftest.$ac_objext
21810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21811  (eval $ac_compile) 2>conftest.er1
21812  ac_status=$?
21813  grep -v '^ *+' conftest.er1 >conftest.err
21814  rm -f conftest.er1
21815  cat conftest.err >&5
21816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817  (exit $ac_status); } &&
21818	 { ac_try='test -z "$ac_cxx_werror_flag"
21819			 || test ! -s conftest.err'
21820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821  (eval $ac_try) 2>&5
21822  ac_status=$?
21823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824  (exit $ac_status); }; } &&
21825	 { ac_try='test -s conftest.$ac_objext'
21826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827  (eval $ac_try) 2>&5
21828  ac_status=$?
21829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830  (exit $ac_status); }; }; then
21831  ac_cv_func_std_isnan_in_cmath=yes
21832else
21833  echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836ac_cv_func_std_isnan_in_cmath=no
21837fi
21838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21839 ac_ext=c
21840ac_cpp='$CPP $CPPFLAGS'
21841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843ac_compiler_gnu=$ac_cv_c_compiler_gnu
21844
21845fi
21846echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21847echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21848 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21849 then
21850
21851cat >>confdefs.h <<\_ACEOF
21852#define HAVE_STD_ISNAN_IN_CMATH 1
21853_ACEOF
21854
21855 fi
21856
21857
21858echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21859echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21860if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21861  echo $ECHO_N "(cached) $ECHO_C" >&6
21862else
21863  ac_ext=cc
21864ac_cpp='$CXXCPP $CPPFLAGS'
21865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21868
21869  cat >conftest.$ac_ext <<_ACEOF
21870/* confdefs.h.  */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h.  */
21875#include <math.h>
21876                     int foo(float f) {return isinf(f);}
21877_ACEOF
21878rm -f conftest.$ac_objext
21879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21880  (eval $ac_compile) 2>conftest.er1
21881  ac_status=$?
21882  grep -v '^ *+' conftest.er1 >conftest.err
21883  rm -f conftest.er1
21884  cat conftest.err >&5
21885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886  (exit $ac_status); } &&
21887	 { ac_try='test -z "$ac_cxx_werror_flag"
21888			 || test ! -s conftest.err'
21889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890  (eval $ac_try) 2>&5
21891  ac_status=$?
21892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893  (exit $ac_status); }; } &&
21894	 { ac_try='test -s conftest.$ac_objext'
21895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896  (eval $ac_try) 2>&5
21897  ac_status=$?
21898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899  (exit $ac_status); }; }; then
21900  ac_cv_func_isinf_in_math_h=yes
21901else
21902  echo "$as_me: failed program was:" >&5
21903sed 's/^/| /' conftest.$ac_ext >&5
21904
21905ac_cv_func_isinf_in_math_h=no
21906fi
21907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21908 ac_ext=c
21909ac_cpp='$CPP $CPPFLAGS'
21910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912ac_compiler_gnu=$ac_cv_c_compiler_gnu
21913
21914fi
21915echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21916echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21917 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21918 then
21919
21920cat >>confdefs.h <<\_ACEOF
21921#define HAVE_ISINF_IN_MATH_H 1
21922_ACEOF
21923
21924 fi
21925echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21926echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21927if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21928  echo $ECHO_N "(cached) $ECHO_C" >&6
21929else
21930  ac_ext=cc
21931ac_cpp='$CXXCPP $CPPFLAGS'
21932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21935
21936  cat >conftest.$ac_ext <<_ACEOF
21937/* confdefs.h.  */
21938_ACEOF
21939cat confdefs.h >>conftest.$ac_ext
21940cat >>conftest.$ac_ext <<_ACEOF
21941/* end confdefs.h.  */
21942#include <cmath>
21943                     int foo(float f) {return isinf(f);}
21944_ACEOF
21945rm -f conftest.$ac_objext
21946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21947  (eval $ac_compile) 2>conftest.er1
21948  ac_status=$?
21949  grep -v '^ *+' conftest.er1 >conftest.err
21950  rm -f conftest.er1
21951  cat conftest.err >&5
21952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953  (exit $ac_status); } &&
21954	 { ac_try='test -z "$ac_cxx_werror_flag"
21955			 || test ! -s conftest.err'
21956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957  (eval $ac_try) 2>&5
21958  ac_status=$?
21959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960  (exit $ac_status); }; } &&
21961	 { ac_try='test -s conftest.$ac_objext'
21962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963  (eval $ac_try) 2>&5
21964  ac_status=$?
21965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966  (exit $ac_status); }; }; then
21967  ac_cv_func_isinf_in_cmath=yes
21968else
21969  echo "$as_me: failed program was:" >&5
21970sed 's/^/| /' conftest.$ac_ext >&5
21971
21972ac_cv_func_isinf_in_cmath=no
21973fi
21974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21975 ac_ext=c
21976ac_cpp='$CPP $CPPFLAGS'
21977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21979ac_compiler_gnu=$ac_cv_c_compiler_gnu
21980
21981fi
21982echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21983echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21984 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21985 then
21986
21987cat >>confdefs.h <<\_ACEOF
21988#define HAVE_ISINF_IN_CMATH 1
21989_ACEOF
21990
21991 fi
21992echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21993echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21994if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21995  echo $ECHO_N "(cached) $ECHO_C" >&6
21996else
21997  ac_ext=cc
21998ac_cpp='$CXXCPP $CPPFLAGS'
21999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22002
22003  cat >conftest.$ac_ext <<_ACEOF
22004/* confdefs.h.  */
22005_ACEOF
22006cat confdefs.h >>conftest.$ac_ext
22007cat >>conftest.$ac_ext <<_ACEOF
22008/* end confdefs.h.  */
22009#include <cmath>
22010                     using std::isinf; int foo(float f) {return isinf(f);}
22011_ACEOF
22012rm -f conftest.$ac_objext
22013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22014  (eval $ac_compile) 2>conftest.er1
22015  ac_status=$?
22016  grep -v '^ *+' conftest.er1 >conftest.err
22017  rm -f conftest.er1
22018  cat conftest.err >&5
22019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020  (exit $ac_status); } &&
22021	 { ac_try='test -z "$ac_cxx_werror_flag"
22022			 || test ! -s conftest.err'
22023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024  (eval $ac_try) 2>&5
22025  ac_status=$?
22026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027  (exit $ac_status); }; } &&
22028	 { ac_try='test -s conftest.$ac_objext'
22029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030  (eval $ac_try) 2>&5
22031  ac_status=$?
22032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033  (exit $ac_status); }; }; then
22034  ac_cv_func_std_isinf_in_cmath=yes
22035else
22036  echo "$as_me: failed program was:" >&5
22037sed 's/^/| /' conftest.$ac_ext >&5
22038
22039ac_cv_func_std_isinf_in_cmath=no
22040fi
22041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22042 ac_ext=c
22043ac_cpp='$CPP $CPPFLAGS'
22044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046ac_compiler_gnu=$ac_cv_c_compiler_gnu
22047
22048fi
22049echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22050echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22051 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22052 then
22053
22054cat >>confdefs.h <<\_ACEOF
22055#define HAVE_STD_ISINF_IN_CMATH 1
22056_ACEOF
22057
22058 fi
22059echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22060echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22061if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22062  echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064  ac_ext=cc
22065ac_cpp='$CXXCPP $CPPFLAGS'
22066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22069
22070  cat >conftest.$ac_ext <<_ACEOF
22071/* confdefs.h.  */
22072_ACEOF
22073cat confdefs.h >>conftest.$ac_ext
22074cat >>conftest.$ac_ext <<_ACEOF
22075/* end confdefs.h.  */
22076#include <ieeefp.h>
22077                     int foo(float f) {return finite(f);}
22078_ACEOF
22079rm -f conftest.$ac_objext
22080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22081  (eval $ac_compile) 2>conftest.er1
22082  ac_status=$?
22083  grep -v '^ *+' conftest.er1 >conftest.err
22084  rm -f conftest.er1
22085  cat conftest.err >&5
22086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087  (exit $ac_status); } &&
22088	 { ac_try='test -z "$ac_cxx_werror_flag"
22089			 || test ! -s conftest.err'
22090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091  (eval $ac_try) 2>&5
22092  ac_status=$?
22093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094  (exit $ac_status); }; } &&
22095	 { ac_try='test -s conftest.$ac_objext'
22096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097  (eval $ac_try) 2>&5
22098  ac_status=$?
22099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100  (exit $ac_status); }; }; then
22101  ac_cv_func_finite_in_ieeefp_h=yes
22102else
22103  echo "$as_me: failed program was:" >&5
22104sed 's/^/| /' conftest.$ac_ext >&5
22105
22106ac_cv_func_finite_in_ieeefp_h=no
22107fi
22108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22109 ac_ext=c
22110ac_cpp='$CPP $CPPFLAGS'
22111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22113ac_compiler_gnu=$ac_cv_c_compiler_gnu
22114
22115fi
22116echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22117echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22118 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22119 then
22120
22121cat >>confdefs.h <<\_ACEOF
22122#define HAVE_FINITE_IN_IEEEFP_H 1
22123_ACEOF
22124
22125 fi
22126
22127
22128# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22129# for constant arguments.  Useless!
22130echo "$as_me:$LINENO: checking for working alloca.h" >&5
22131echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22132if test "${ac_cv_working_alloca_h+set}" = set; then
22133  echo $ECHO_N "(cached) $ECHO_C" >&6
22134else
22135  cat >conftest.$ac_ext <<_ACEOF
22136/* confdefs.h.  */
22137_ACEOF
22138cat confdefs.h >>conftest.$ac_ext
22139cat >>conftest.$ac_ext <<_ACEOF
22140/* end confdefs.h.  */
22141#include <alloca.h>
22142int
22143main ()
22144{
22145char *p = (char *) alloca (2 * sizeof (int));
22146  ;
22147  return 0;
22148}
22149_ACEOF
22150rm -f conftest.$ac_objext conftest$ac_exeext
22151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152  (eval $ac_link) 2>conftest.er1
22153  ac_status=$?
22154  grep -v '^ *+' conftest.er1 >conftest.err
22155  rm -f conftest.er1
22156  cat conftest.err >&5
22157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158  (exit $ac_status); } &&
22159	 { ac_try='test -z "$ac_c_werror_flag"
22160			 || test ! -s conftest.err'
22161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162  (eval $ac_try) 2>&5
22163  ac_status=$?
22164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165  (exit $ac_status); }; } &&
22166	 { ac_try='test -s conftest$ac_exeext'
22167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168  (eval $ac_try) 2>&5
22169  ac_status=$?
22170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171  (exit $ac_status); }; }; then
22172  ac_cv_working_alloca_h=yes
22173else
22174  echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177ac_cv_working_alloca_h=no
22178fi
22179rm -f conftest.err conftest.$ac_objext \
22180      conftest$ac_exeext conftest.$ac_ext
22181fi
22182echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22183echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22184if test $ac_cv_working_alloca_h = yes; then
22185
22186cat >>confdefs.h <<\_ACEOF
22187#define HAVE_ALLOCA_H 1
22188_ACEOF
22189
22190fi
22191
22192echo "$as_me:$LINENO: checking for alloca" >&5
22193echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22194if test "${ac_cv_func_alloca_works+set}" = set; then
22195  echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197  cat >conftest.$ac_ext <<_ACEOF
22198/* confdefs.h.  */
22199_ACEOF
22200cat confdefs.h >>conftest.$ac_ext
22201cat >>conftest.$ac_ext <<_ACEOF
22202/* end confdefs.h.  */
22203#ifdef __GNUC__
22204# define alloca __builtin_alloca
22205#else
22206# ifdef _MSC_VER
22207#  include <malloc.h>
22208#  define alloca _alloca
22209# else
22210#  if HAVE_ALLOCA_H
22211#   include <alloca.h>
22212#  else
22213#   ifdef _AIX
22214 #pragma alloca
22215#   else
22216#    ifndef alloca /* predefined by HP cc +Olibcalls */
22217char *alloca ();
22218#    endif
22219#   endif
22220#  endif
22221# endif
22222#endif
22223
22224int
22225main ()
22226{
22227char *p = (char *) alloca (1);
22228  ;
22229  return 0;
22230}
22231_ACEOF
22232rm -f conftest.$ac_objext conftest$ac_exeext
22233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22234  (eval $ac_link) 2>conftest.er1
22235  ac_status=$?
22236  grep -v '^ *+' conftest.er1 >conftest.err
22237  rm -f conftest.er1
22238  cat conftest.err >&5
22239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240  (exit $ac_status); } &&
22241	 { ac_try='test -z "$ac_c_werror_flag"
22242			 || test ! -s conftest.err'
22243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244  (eval $ac_try) 2>&5
22245  ac_status=$?
22246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247  (exit $ac_status); }; } &&
22248	 { ac_try='test -s conftest$ac_exeext'
22249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250  (eval $ac_try) 2>&5
22251  ac_status=$?
22252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253  (exit $ac_status); }; }; then
22254  ac_cv_func_alloca_works=yes
22255else
22256  echo "$as_me: failed program was:" >&5
22257sed 's/^/| /' conftest.$ac_ext >&5
22258
22259ac_cv_func_alloca_works=no
22260fi
22261rm -f conftest.err conftest.$ac_objext \
22262      conftest$ac_exeext conftest.$ac_ext
22263fi
22264echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22265echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22266
22267if test $ac_cv_func_alloca_works = yes; then
22268
22269cat >>confdefs.h <<\_ACEOF
22270#define HAVE_ALLOCA 1
22271_ACEOF
22272
22273else
22274  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22275# that cause trouble.  Some versions do not even contain alloca or
22276# contain a buggy version.  If you still want to use their alloca,
22277# use ar to extract alloca.o from them instead of compiling alloca.c.
22278
22279ALLOCA=alloca.$ac_objext
22280
22281cat >>confdefs.h <<\_ACEOF
22282#define C_ALLOCA 1
22283_ACEOF
22284
22285
22286echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22287echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22288if test "${ac_cv_os_cray+set}" = set; then
22289  echo $ECHO_N "(cached) $ECHO_C" >&6
22290else
22291  cat >conftest.$ac_ext <<_ACEOF
22292/* confdefs.h.  */
22293_ACEOF
22294cat confdefs.h >>conftest.$ac_ext
22295cat >>conftest.$ac_ext <<_ACEOF
22296/* end confdefs.h.  */
22297#if defined(CRAY) && ! defined(CRAY2)
22298webecray
22299#else
22300wenotbecray
22301#endif
22302
22303_ACEOF
22304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22305  $EGREP "webecray" >/dev/null 2>&1; then
22306  ac_cv_os_cray=yes
22307else
22308  ac_cv_os_cray=no
22309fi
22310rm -f conftest*
22311
22312fi
22313echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22314echo "${ECHO_T}$ac_cv_os_cray" >&6
22315if test $ac_cv_os_cray = yes; then
22316  for ac_func in _getb67 GETB67 getb67; do
22317    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22318echo "$as_me:$LINENO: checking for $ac_func" >&5
22319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22320if eval "test \"\${$as_ac_var+set}\" = set"; then
22321  echo $ECHO_N "(cached) $ECHO_C" >&6
22322else
22323  cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h.  */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h.  */
22329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22330   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22331#define $ac_func innocuous_$ac_func
22332
22333/* System header to define __stub macros and hopefully few prototypes,
22334    which can conflict with char $ac_func (); below.
22335    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22336    <limits.h> exists even on freestanding compilers.  */
22337
22338#ifdef __STDC__
22339# include <limits.h>
22340#else
22341# include <assert.h>
22342#endif
22343
22344#undef $ac_func
22345
22346/* Override any gcc2 internal prototype to avoid an error.  */
22347#ifdef __cplusplus
22348extern "C"
22349{
22350#endif
22351/* We use char because int might match the return type of a gcc2
22352   builtin and then its argument prototype would still apply.  */
22353char $ac_func ();
22354/* The GNU C library defines this for functions which it implements
22355    to always fail with ENOSYS.  Some functions are actually named
22356    something starting with __ and the normal name is an alias.  */
22357#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22358choke me
22359#else
22360char (*f) () = $ac_func;
22361#endif
22362#ifdef __cplusplus
22363}
22364#endif
22365
22366int
22367main ()
22368{
22369return f != $ac_func;
22370  ;
22371  return 0;
22372}
22373_ACEOF
22374rm -f conftest.$ac_objext conftest$ac_exeext
22375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376  (eval $ac_link) 2>conftest.er1
22377  ac_status=$?
22378  grep -v '^ *+' conftest.er1 >conftest.err
22379  rm -f conftest.er1
22380  cat conftest.err >&5
22381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382  (exit $ac_status); } &&
22383	 { ac_try='test -z "$ac_c_werror_flag"
22384			 || test ! -s conftest.err'
22385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386  (eval $ac_try) 2>&5
22387  ac_status=$?
22388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389  (exit $ac_status); }; } &&
22390	 { ac_try='test -s conftest$ac_exeext'
22391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392  (eval $ac_try) 2>&5
22393  ac_status=$?
22394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395  (exit $ac_status); }; }; then
22396  eval "$as_ac_var=yes"
22397else
22398  echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401eval "$as_ac_var=no"
22402fi
22403rm -f conftest.err conftest.$ac_objext \
22404      conftest$ac_exeext conftest.$ac_ext
22405fi
22406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22408if test `eval echo '${'$as_ac_var'}'` = yes; then
22409
22410cat >>confdefs.h <<_ACEOF
22411#define CRAY_STACKSEG_END $ac_func
22412_ACEOF
22413
22414    break
22415fi
22416
22417  done
22418fi
22419
22420echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22421echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22422if test "${ac_cv_c_stack_direction+set}" = set; then
22423  echo $ECHO_N "(cached) $ECHO_C" >&6
22424else
22425  if test "$cross_compiling" = yes; then
22426  ac_cv_c_stack_direction=0
22427else
22428  cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h.  */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h.  */
22434int
22435find_stack_direction ()
22436{
22437  static char *addr = 0;
22438  auto char dummy;
22439  if (addr == 0)
22440    {
22441      addr = &dummy;
22442      return find_stack_direction ();
22443    }
22444  else
22445    return (&dummy > addr) ? 1 : -1;
22446}
22447
22448int
22449main ()
22450{
22451  exit (find_stack_direction () < 0);
22452}
22453_ACEOF
22454rm -f conftest$ac_exeext
22455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22456  (eval $ac_link) 2>&5
22457  ac_status=$?
22458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461  (eval $ac_try) 2>&5
22462  ac_status=$?
22463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464  (exit $ac_status); }; }; then
22465  ac_cv_c_stack_direction=1
22466else
22467  echo "$as_me: program exited with status $ac_status" >&5
22468echo "$as_me: failed program was:" >&5
22469sed 's/^/| /' conftest.$ac_ext >&5
22470
22471( exit $ac_status )
22472ac_cv_c_stack_direction=-1
22473fi
22474rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22475fi
22476fi
22477echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22478echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22479
22480cat >>confdefs.h <<_ACEOF
22481#define STACK_DIRECTION $ac_cv_c_stack_direction
22482_ACEOF
22483
22484
22485fi
22486
22487
22488
22489for ac_header in stdlib.h unistd.h
22490do
22491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22492if eval "test \"\${$as_ac_Header+set}\" = set"; then
22493  echo "$as_me:$LINENO: checking for $ac_header" >&5
22494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22495if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496  echo $ECHO_N "(cached) $ECHO_C" >&6
22497fi
22498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22500else
22501  # Is the header compilable?
22502echo "$as_me:$LINENO: checking $ac_header usability" >&5
22503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22504cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h.  */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h.  */
22510$ac_includes_default
22511#include <$ac_header>
22512_ACEOF
22513rm -f conftest.$ac_objext
22514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22515  (eval $ac_compile) 2>conftest.er1
22516  ac_status=$?
22517  grep -v '^ *+' conftest.er1 >conftest.err
22518  rm -f conftest.er1
22519  cat conftest.err >&5
22520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521  (exit $ac_status); } &&
22522	 { ac_try='test -z "$ac_c_werror_flag"
22523			 || test ! -s conftest.err'
22524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525  (eval $ac_try) 2>&5
22526  ac_status=$?
22527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528  (exit $ac_status); }; } &&
22529	 { ac_try='test -s conftest.$ac_objext'
22530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531  (eval $ac_try) 2>&5
22532  ac_status=$?
22533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534  (exit $ac_status); }; }; then
22535  ac_header_compiler=yes
22536else
22537  echo "$as_me: failed program was:" >&5
22538sed 's/^/| /' conftest.$ac_ext >&5
22539
22540ac_header_compiler=no
22541fi
22542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22544echo "${ECHO_T}$ac_header_compiler" >&6
22545
22546# Is the header present?
22547echo "$as_me:$LINENO: checking $ac_header presence" >&5
22548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22549cat >conftest.$ac_ext <<_ACEOF
22550/* confdefs.h.  */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h.  */
22555#include <$ac_header>
22556_ACEOF
22557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22559  ac_status=$?
22560  grep -v '^ *+' conftest.er1 >conftest.err
22561  rm -f conftest.er1
22562  cat conftest.err >&5
22563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564  (exit $ac_status); } >/dev/null; then
22565  if test -s conftest.err; then
22566    ac_cpp_err=$ac_c_preproc_warn_flag
22567    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22568  else
22569    ac_cpp_err=
22570  fi
22571else
22572  ac_cpp_err=yes
22573fi
22574if test -z "$ac_cpp_err"; then
22575  ac_header_preproc=yes
22576else
22577  echo "$as_me: failed program was:" >&5
22578sed 's/^/| /' conftest.$ac_ext >&5
22579
22580  ac_header_preproc=no
22581fi
22582rm -f conftest.err conftest.$ac_ext
22583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22584echo "${ECHO_T}$ac_header_preproc" >&6
22585
22586# So?  What about this header?
22587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22588  yes:no: )
22589    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22591    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22593    ac_header_preproc=yes
22594    ;;
22595  no:yes:* )
22596    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22598    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22599echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22600    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22602    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22603echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22604    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22606    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22608    (
22609      cat <<\_ASBOX
22610## ----------------------------------- ##
22611## Report this to llvmbugs@cs.uiuc.edu ##
22612## ----------------------------------- ##
22613_ASBOX
22614    ) |
22615      sed "s/^/$as_me: WARNING:     /" >&2
22616    ;;
22617esac
22618echo "$as_me:$LINENO: checking for $ac_header" >&5
22619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22620if eval "test \"\${$as_ac_Header+set}\" = set"; then
22621  echo $ECHO_N "(cached) $ECHO_C" >&6
22622else
22623  eval "$as_ac_Header=\$ac_header_preproc"
22624fi
22625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22627
22628fi
22629if test `eval echo '${'$as_ac_Header'}'` = yes; then
22630  cat >>confdefs.h <<_ACEOF
22631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22632_ACEOF
22633
22634fi
22635
22636done
22637
22638
22639for ac_func in getpagesize
22640do
22641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22642echo "$as_me:$LINENO: checking for $ac_func" >&5
22643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22644if eval "test \"\${$as_ac_var+set}\" = set"; then
22645  echo $ECHO_N "(cached) $ECHO_C" >&6
22646else
22647  cat >conftest.$ac_ext <<_ACEOF
22648/* confdefs.h.  */
22649_ACEOF
22650cat confdefs.h >>conftest.$ac_ext
22651cat >>conftest.$ac_ext <<_ACEOF
22652/* end confdefs.h.  */
22653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22654   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22655#define $ac_func innocuous_$ac_func
22656
22657/* System header to define __stub macros and hopefully few prototypes,
22658    which can conflict with char $ac_func (); below.
22659    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22660    <limits.h> exists even on freestanding compilers.  */
22661
22662#ifdef __STDC__
22663# include <limits.h>
22664#else
22665# include <assert.h>
22666#endif
22667
22668#undef $ac_func
22669
22670/* Override any gcc2 internal prototype to avoid an error.  */
22671#ifdef __cplusplus
22672extern "C"
22673{
22674#endif
22675/* We use char because int might match the return type of a gcc2
22676   builtin and then its argument prototype would still apply.  */
22677char $ac_func ();
22678/* The GNU C library defines this for functions which it implements
22679    to always fail with ENOSYS.  Some functions are actually named
22680    something starting with __ and the normal name is an alias.  */
22681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22682choke me
22683#else
22684char (*f) () = $ac_func;
22685#endif
22686#ifdef __cplusplus
22687}
22688#endif
22689
22690int
22691main ()
22692{
22693return f != $ac_func;
22694  ;
22695  return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext conftest$ac_exeext
22699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700  (eval $ac_link) 2>conftest.er1
22701  ac_status=$?
22702  grep -v '^ *+' conftest.er1 >conftest.err
22703  rm -f conftest.er1
22704  cat conftest.err >&5
22705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706  (exit $ac_status); } &&
22707	 { ac_try='test -z "$ac_c_werror_flag"
22708			 || test ! -s conftest.err'
22709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710  (eval $ac_try) 2>&5
22711  ac_status=$?
22712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713  (exit $ac_status); }; } &&
22714	 { ac_try='test -s conftest$ac_exeext'
22715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716  (eval $ac_try) 2>&5
22717  ac_status=$?
22718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719  (exit $ac_status); }; }; then
22720  eval "$as_ac_var=yes"
22721else
22722  echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
22725eval "$as_ac_var=no"
22726fi
22727rm -f conftest.err conftest.$ac_objext \
22728      conftest$ac_exeext conftest.$ac_ext
22729fi
22730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22732if test `eval echo '${'$as_ac_var'}'` = yes; then
22733  cat >>confdefs.h <<_ACEOF
22734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22735_ACEOF
22736
22737fi
22738done
22739
22740echo "$as_me:$LINENO: checking for working mmap" >&5
22741echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22742if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22743  echo $ECHO_N "(cached) $ECHO_C" >&6
22744else
22745  if test "$cross_compiling" = yes; then
22746  ac_cv_func_mmap_fixed_mapped=no
22747else
22748  cat >conftest.$ac_ext <<_ACEOF
22749/* confdefs.h.  */
22750_ACEOF
22751cat confdefs.h >>conftest.$ac_ext
22752cat >>conftest.$ac_ext <<_ACEOF
22753/* end confdefs.h.  */
22754$ac_includes_default
22755/* malloc might have been renamed as rpl_malloc. */
22756#undef malloc
22757
22758/* Thanks to Mike Haertel and Jim Avera for this test.
22759   Here is a matrix of mmap possibilities:
22760	mmap private not fixed
22761	mmap private fixed at somewhere currently unmapped
22762	mmap private fixed at somewhere already mapped
22763	mmap shared not fixed
22764	mmap shared fixed at somewhere currently unmapped
22765	mmap shared fixed at somewhere already mapped
22766   For private mappings, we should verify that changes cannot be read()
22767   back from the file, nor mmap's back from the file at a different
22768   address.  (There have been systems where private was not correctly
22769   implemented like the infamous i386 svr4.0, and systems where the
22770   VM page cache was not coherent with the file system buffer cache
22771   like early versions of FreeBSD and possibly contemporary NetBSD.)
22772   For shared mappings, we should conversely verify that changes get
22773   propagated back to all the places they're supposed to be.
22774
22775   Grep wants private fixed already mapped.
22776   The main things grep needs to know about mmap are:
22777   * does it exist and is it safe to write into the mmap'd area
22778   * how to use it (BSD variants)  */
22779
22780#include <fcntl.h>
22781#include <sys/mman.h>
22782
22783#if !STDC_HEADERS && !HAVE_STDLIB_H
22784char *malloc ();
22785#endif
22786
22787/* This mess was copied from the GNU getpagesize.h.  */
22788#if !HAVE_GETPAGESIZE
22789/* Assume that all systems that can run configure have sys/param.h.  */
22790# if !HAVE_SYS_PARAM_H
22791#  define HAVE_SYS_PARAM_H 1
22792# endif
22793
22794# ifdef _SC_PAGESIZE
22795#  define getpagesize() sysconf(_SC_PAGESIZE)
22796# else /* no _SC_PAGESIZE */
22797#  if HAVE_SYS_PARAM_H
22798#   include <sys/param.h>
22799#   ifdef EXEC_PAGESIZE
22800#    define getpagesize() EXEC_PAGESIZE
22801#   else /* no EXEC_PAGESIZE */
22802#    ifdef NBPG
22803#     define getpagesize() NBPG * CLSIZE
22804#     ifndef CLSIZE
22805#      define CLSIZE 1
22806#     endif /* no CLSIZE */
22807#    else /* no NBPG */
22808#     ifdef NBPC
22809#      define getpagesize() NBPC
22810#     else /* no NBPC */
22811#      ifdef PAGESIZE
22812#       define getpagesize() PAGESIZE
22813#      endif /* PAGESIZE */
22814#     endif /* no NBPC */
22815#    endif /* no NBPG */
22816#   endif /* no EXEC_PAGESIZE */
22817#  else /* no HAVE_SYS_PARAM_H */
22818#   define getpagesize() 8192	/* punt totally */
22819#  endif /* no HAVE_SYS_PARAM_H */
22820# endif /* no _SC_PAGESIZE */
22821
22822#endif /* no HAVE_GETPAGESIZE */
22823
22824int
22825main ()
22826{
22827  char *data, *data2, *data3;
22828  int i, pagesize;
22829  int fd;
22830
22831  pagesize = getpagesize ();
22832
22833  /* First, make a file with some known garbage in it. */
22834  data = (char *) malloc (pagesize);
22835  if (!data)
22836    exit (1);
22837  for (i = 0; i < pagesize; ++i)
22838    *(data + i) = rand ();
22839  umask (0);
22840  fd = creat ("conftest.mmap", 0600);
22841  if (fd < 0)
22842    exit (1);
22843  if (write (fd, data, pagesize) != pagesize)
22844    exit (1);
22845  close (fd);
22846
22847  /* Next, try to mmap the file at a fixed address which already has
22848     something else allocated at it.  If we can, also make sure that
22849     we see the same garbage.  */
22850  fd = open ("conftest.mmap", O_RDWR);
22851  if (fd < 0)
22852    exit (1);
22853  data2 = (char *) malloc (2 * pagesize);
22854  if (!data2)
22855    exit (1);
22856  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22857  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22858		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22859    exit (1);
22860  for (i = 0; i < pagesize; ++i)
22861    if (*(data + i) != *(data2 + i))
22862      exit (1);
22863
22864  /* Finally, make sure that changes to the mapped area do not
22865     percolate back to the file as seen by read().  (This is a bug on
22866     some variants of i386 svr4.0.)  */
22867  for (i = 0; i < pagesize; ++i)
22868    *(data2 + i) = *(data2 + i) + 1;
22869  data3 = (char *) malloc (pagesize);
22870  if (!data3)
22871    exit (1);
22872  if (read (fd, data3, pagesize) != pagesize)
22873    exit (1);
22874  for (i = 0; i < pagesize; ++i)
22875    if (*(data + i) != *(data3 + i))
22876      exit (1);
22877  close (fd);
22878  exit (0);
22879}
22880_ACEOF
22881rm -f conftest$ac_exeext
22882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22883  (eval $ac_link) 2>&5
22884  ac_status=$?
22885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888  (eval $ac_try) 2>&5
22889  ac_status=$?
22890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891  (exit $ac_status); }; }; then
22892  ac_cv_func_mmap_fixed_mapped=yes
22893else
22894  echo "$as_me: program exited with status $ac_status" >&5
22895echo "$as_me: failed program was:" >&5
22896sed 's/^/| /' conftest.$ac_ext >&5
22897
22898( exit $ac_status )
22899ac_cv_func_mmap_fixed_mapped=no
22900fi
22901rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22902fi
22903fi
22904echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22905echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22906if test $ac_cv_func_mmap_fixed_mapped = yes; then
22907
22908cat >>confdefs.h <<\_ACEOF
22909#define HAVE_MMAP 1
22910_ACEOF
22911
22912fi
22913rm -f conftest.mmap
22914
22915if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22916then
22917	{ echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22918echo "$as_me: WARNING: mmap() required but not found" >&2;}
22919fi
22920echo "$as_me:$LINENO: checking for mmap of files" >&5
22921echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22922if test "${ac_cv_func_mmap_file+set}" = set; then
22923  echo $ECHO_N "(cached) $ECHO_C" >&6
22924else
22925
22926
22927  ac_ext=c
22928ac_cpp='$CPP $CPPFLAGS'
22929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22931ac_compiler_gnu=$ac_cv_c_compiler_gnu
22932
22933  if test "$cross_compiling" = yes; then
22934  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22935See \`config.log' for more details." >&5
22936echo "$as_me: error: cannot run test program while cross compiling
22937See \`config.log' for more details." >&2;}
22938   { (exit 1); exit 1; }; }
22939else
22940  cat >conftest.$ac_ext <<_ACEOF
22941/* confdefs.h.  */
22942_ACEOF
22943cat confdefs.h >>conftest.$ac_ext
22944cat >>conftest.$ac_ext <<_ACEOF
22945/* end confdefs.h.  */
22946
22947#ifdef HAVE_SYS_TYPES_H
22948#include <sys/types.h>
22949#endif
22950
22951#ifdef HAVE_SYS_MMAN_H
22952#include <sys/mman.h>
22953#endif
22954
22955#ifdef HAVE_FCNTL_H
22956#include <fcntl.h>
22957#endif
22958
22959  int fd;
22960  int main () {
22961  fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22962_ACEOF
22963rm -f conftest$ac_exeext
22964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22965  (eval $ac_link) 2>&5
22966  ac_status=$?
22967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970  (eval $ac_try) 2>&5
22971  ac_status=$?
22972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973  (exit $ac_status); }; }; then
22974  ac_cv_func_mmap_file=yes
22975else
22976  echo "$as_me: program exited with status $ac_status" >&5
22977echo "$as_me: failed program was:" >&5
22978sed 's/^/| /' conftest.$ac_ext >&5
22979
22980( exit $ac_status )
22981ac_cv_func_mmap_file=no
22982fi
22983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22984fi
22985  ac_ext=c
22986ac_cpp='$CPP $CPPFLAGS'
22987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22989ac_compiler_gnu=$ac_cv_c_compiler_gnu
22990
22991
22992fi
22993echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22994echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22995if test "$ac_cv_func_mmap_file" = yes; then
22996
22997cat >>confdefs.h <<\_ACEOF
22998#define HAVE_MMAP_FILE
22999_ACEOF
23000
23001   MMAP_FILE=yes
23002
23003fi
23004
23005if test "$ac_cv_func_mmap_file" = "no"
23006then
23007	{ echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23008echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23009fi
23010echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23011echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23012if test "${ac_cv_header_mmap_anon+set}" = set; then
23013  echo $ECHO_N "(cached) $ECHO_C" >&6
23014else
23015
23016
23017  ac_ext=c
23018ac_cpp='$CPP $CPPFLAGS'
23019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23021ac_compiler_gnu=$ac_cv_c_compiler_gnu
23022
23023  cat >conftest.$ac_ext <<_ACEOF
23024/* confdefs.h.  */
23025_ACEOF
23026cat confdefs.h >>conftest.$ac_ext
23027cat >>conftest.$ac_ext <<_ACEOF
23028/* end confdefs.h.  */
23029#include <sys/mman.h>
23030  #include <unistd.h>
23031  #include <fcntl.h>
23032int
23033main ()
23034{
23035mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23036  ;
23037  return 0;
23038}
23039_ACEOF
23040rm -f conftest.$ac_objext
23041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23042  (eval $ac_compile) 2>conftest.er1
23043  ac_status=$?
23044  grep -v '^ *+' conftest.er1 >conftest.err
23045  rm -f conftest.er1
23046  cat conftest.err >&5
23047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048  (exit $ac_status); } &&
23049	 { ac_try='test -z "$ac_c_werror_flag"
23050			 || test ! -s conftest.err'
23051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052  (eval $ac_try) 2>&5
23053  ac_status=$?
23054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055  (exit $ac_status); }; } &&
23056	 { ac_try='test -s conftest.$ac_objext'
23057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058  (eval $ac_try) 2>&5
23059  ac_status=$?
23060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061  (exit $ac_status); }; }; then
23062  ac_cv_header_mmap_anon=yes
23063else
23064  echo "$as_me: failed program was:" >&5
23065sed 's/^/| /' conftest.$ac_ext >&5
23066
23067ac_cv_header_mmap_anon=no
23068fi
23069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23070  ac_ext=c
23071ac_cpp='$CPP $CPPFLAGS'
23072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075
23076
23077fi
23078echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23079echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23080if test "$ac_cv_header_mmap_anon" = yes; then
23081
23082cat >>confdefs.h <<\_ACEOF
23083#define HAVE_MMAP_ANONYMOUS
23084_ACEOF
23085
23086fi
23087
23088echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23089echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23090if test "${ac_cv_type_signal+set}" = set; then
23091  echo $ECHO_N "(cached) $ECHO_C" >&6
23092else
23093  cat >conftest.$ac_ext <<_ACEOF
23094/* confdefs.h.  */
23095_ACEOF
23096cat confdefs.h >>conftest.$ac_ext
23097cat >>conftest.$ac_ext <<_ACEOF
23098/* end confdefs.h.  */
23099#include <sys/types.h>
23100#include <signal.h>
23101#ifdef signal
23102# undef signal
23103#endif
23104#ifdef __cplusplus
23105extern "C" void (*signal (int, void (*)(int)))(int);
23106#else
23107void (*signal ()) ();
23108#endif
23109
23110int
23111main ()
23112{
23113int i;
23114  ;
23115  return 0;
23116}
23117_ACEOF
23118rm -f conftest.$ac_objext
23119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23120  (eval $ac_compile) 2>conftest.er1
23121  ac_status=$?
23122  grep -v '^ *+' conftest.er1 >conftest.err
23123  rm -f conftest.er1
23124  cat conftest.err >&5
23125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126  (exit $ac_status); } &&
23127	 { ac_try='test -z "$ac_c_werror_flag"
23128			 || test ! -s conftest.err'
23129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130  (eval $ac_try) 2>&5
23131  ac_status=$?
23132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133  (exit $ac_status); }; } &&
23134	 { ac_try='test -s conftest.$ac_objext'
23135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136  (eval $ac_try) 2>&5
23137  ac_status=$?
23138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139  (exit $ac_status); }; }; then
23140  ac_cv_type_signal=void
23141else
23142  echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
23145ac_cv_type_signal=int
23146fi
23147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23150echo "${ECHO_T}$ac_cv_type_signal" >&6
23151
23152cat >>confdefs.h <<_ACEOF
23153#define RETSIGTYPE $ac_cv_type_signal
23154_ACEOF
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23167do
23168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23169echo "$as_me:$LINENO: checking for $ac_func" >&5
23170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23171if eval "test \"\${$as_ac_var+set}\" = set"; then
23172  echo $ECHO_N "(cached) $ECHO_C" >&6
23173else
23174  cat >conftest.$ac_ext <<_ACEOF
23175/* confdefs.h.  */
23176_ACEOF
23177cat confdefs.h >>conftest.$ac_ext
23178cat >>conftest.$ac_ext <<_ACEOF
23179/* end confdefs.h.  */
23180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23181   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23182#define $ac_func innocuous_$ac_func
23183
23184/* System header to define __stub macros and hopefully few prototypes,
23185    which can conflict with char $ac_func (); below.
23186    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23187    <limits.h> exists even on freestanding compilers.  */
23188
23189#ifdef __STDC__
23190# include <limits.h>
23191#else
23192# include <assert.h>
23193#endif
23194
23195#undef $ac_func
23196
23197/* Override any gcc2 internal prototype to avoid an error.  */
23198#ifdef __cplusplus
23199extern "C"
23200{
23201#endif
23202/* We use char because int might match the return type of a gcc2
23203   builtin and then its argument prototype would still apply.  */
23204char $ac_func ();
23205/* The GNU C library defines this for functions which it implements
23206    to always fail with ENOSYS.  Some functions are actually named
23207    something starting with __ and the normal name is an alias.  */
23208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23209choke me
23210#else
23211char (*f) () = $ac_func;
23212#endif
23213#ifdef __cplusplus
23214}
23215#endif
23216
23217int
23218main ()
23219{
23220return f != $ac_func;
23221  ;
23222  return 0;
23223}
23224_ACEOF
23225rm -f conftest.$ac_objext conftest$ac_exeext
23226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227  (eval $ac_link) 2>conftest.er1
23228  ac_status=$?
23229  grep -v '^ *+' conftest.er1 >conftest.err
23230  rm -f conftest.er1
23231  cat conftest.err >&5
23232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233  (exit $ac_status); } &&
23234	 { ac_try='test -z "$ac_c_werror_flag"
23235			 || test ! -s conftest.err'
23236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237  (eval $ac_try) 2>&5
23238  ac_status=$?
23239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240  (exit $ac_status); }; } &&
23241	 { ac_try='test -s conftest$ac_exeext'
23242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243  (eval $ac_try) 2>&5
23244  ac_status=$?
23245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246  (exit $ac_status); }; }; then
23247  eval "$as_ac_var=yes"
23248else
23249  echo "$as_me: failed program was:" >&5
23250sed 's/^/| /' conftest.$ac_ext >&5
23251
23252eval "$as_ac_var=no"
23253fi
23254rm -f conftest.err conftest.$ac_objext \
23255      conftest$ac_exeext conftest.$ac_ext
23256fi
23257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23259if test `eval echo '${'$as_ac_var'}'` = yes; then
23260  cat >>confdefs.h <<_ACEOF
23261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23262_ACEOF
23263
23264fi
23265done
23266
23267echo "$as_me:$LINENO: checking for mprotect" >&5
23268echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23269if test "${ac_cv_func_mprotect+set}" = set; then
23270  echo $ECHO_N "(cached) $ECHO_C" >&6
23271else
23272  cat >conftest.$ac_ext <<_ACEOF
23273/* confdefs.h.  */
23274_ACEOF
23275cat confdefs.h >>conftest.$ac_ext
23276cat >>conftest.$ac_ext <<_ACEOF
23277/* end confdefs.h.  */
23278/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23279   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23280#define mprotect innocuous_mprotect
23281
23282/* System header to define __stub macros and hopefully few prototypes,
23283    which can conflict with char mprotect (); below.
23284    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23285    <limits.h> exists even on freestanding compilers.  */
23286
23287#ifdef __STDC__
23288# include <limits.h>
23289#else
23290# include <assert.h>
23291#endif
23292
23293#undef mprotect
23294
23295/* Override any gcc2 internal prototype to avoid an error.  */
23296#ifdef __cplusplus
23297extern "C"
23298{
23299#endif
23300/* We use char because int might match the return type of a gcc2
23301   builtin and then its argument prototype would still apply.  */
23302char mprotect ();
23303/* The GNU C library defines this for functions which it implements
23304    to always fail with ENOSYS.  Some functions are actually named
23305    something starting with __ and the normal name is an alias.  */
23306#if defined (__stub_mprotect) || defined (__stub___mprotect)
23307choke me
23308#else
23309char (*f) () = mprotect;
23310#endif
23311#ifdef __cplusplus
23312}
23313#endif
23314
23315int
23316main ()
23317{
23318return f != mprotect;
23319  ;
23320  return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext conftest$ac_exeext
23324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325  (eval $ac_link) 2>conftest.er1
23326  ac_status=$?
23327  grep -v '^ *+' conftest.er1 >conftest.err
23328  rm -f conftest.er1
23329  cat conftest.err >&5
23330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331  (exit $ac_status); } &&
23332	 { ac_try='test -z "$ac_c_werror_flag"
23333			 || test ! -s conftest.err'
23334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335  (eval $ac_try) 2>&5
23336  ac_status=$?
23337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338  (exit $ac_status); }; } &&
23339	 { ac_try='test -s conftest$ac_exeext'
23340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341  (eval $ac_try) 2>&5
23342  ac_status=$?
23343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344  (exit $ac_status); }; }; then
23345  ac_cv_func_mprotect=yes
23346else
23347  echo "$as_me: failed program was:" >&5
23348sed 's/^/| /' conftest.$ac_ext >&5
23349
23350ac_cv_func_mprotect=no
23351fi
23352rm -f conftest.err conftest.$ac_objext \
23353      conftest$ac_exeext conftest.$ac_ext
23354fi
23355echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23356echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23357if test $ac_cv_func_mprotect = yes; then
23358  :
23359else
23360  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23361echo "$as_me: error: Function mprotect() required but not found" >&2;}
23362   { (exit 1); exit 1; }; }
23363fi
23364
23365
23366
23367  echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23368echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23369
23370
23371  ac_ext=c
23372ac_cpp='$CPP $CPPFLAGS'
23373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23375ac_compiler_gnu=$ac_cv_c_compiler_gnu
23376
23377  oldcflags="$CFLAGS"
23378  CFLAGS="$CFLAGS -Wl,-R."
23379  cat >conftest.$ac_ext <<_ACEOF
23380int main() { return 0; }
23381_ACEOF
23382rm -f conftest.$ac_objext conftest$ac_exeext
23383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384  (eval $ac_link) 2>conftest.er1
23385  ac_status=$?
23386  grep -v '^ *+' conftest.er1 >conftest.err
23387  rm -f conftest.er1
23388  cat conftest.err >&5
23389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390  (exit $ac_status); } &&
23391	 { ac_try='test -z "$ac_c_werror_flag"
23392			 || test ! -s conftest.err'
23393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394  (eval $ac_try) 2>&5
23395  ac_status=$?
23396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397  (exit $ac_status); }; } &&
23398	 { ac_try='test -s conftest$ac_exeext'
23399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400  (eval $ac_try) 2>&5
23401  ac_status=$?
23402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403  (exit $ac_status); }; }; then
23404  ac_cv_link_use_r=yes
23405else
23406  echo "$as_me: failed program was:" >&5
23407sed 's/^/| /' conftest.$ac_ext >&5
23408
23409ac_cv_link_use_r=no
23410fi
23411rm -f conftest.err conftest.$ac_objext \
23412      conftest$ac_exeext conftest.$ac_ext
23413  CFLAGS="$oldcflags"
23414  ac_ext=c
23415ac_cpp='$CPP $CPPFLAGS'
23416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23418ac_compiler_gnu=$ac_cv_c_compiler_gnu
23419
23420  echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23421echo "${ECHO_T}$ac_cv_link_use_r" >&6
23422  if test "$ac_cv_link_use_r" = yes
23423  then
23424
23425cat >>confdefs.h <<\_ACEOF
23426#define HAVE_LINK_R 1
23427_ACEOF
23428
23429  fi
23430
23431
23432# Check whether --enable-optimized or --disable-optimized was given.
23433if test "${enable_optimized+set}" = set; then
23434  enableval="$enable_optimized"
23435
23436else
23437  enableval=no
23438fi;
23439if test ${enableval} = "no"
23440then
23441	ENABLE_OPTIMIZED=
23442
23443else
23444	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23445
23446fi
23447
23448
23449
23450
23451 # Check whether --enable-spec95 or --disable-spec95 was given.
23452if test "${enable_spec95+set}" = set; then
23453  enableval="$enable_spec95"
23454  checkresult=$enableval
23455else
23456  checkresult=auto
23457fi;
23458echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23459echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23460case "$checkresult" in
23461auto|yes)
23462    defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23463	if test -d "$defaultdir"
23464	then
23465		SPEC95_ROOT=$defaultdir
23466
23467		USE_SPEC95=USE_SPEC95=1
23468
23469        checkresult="yes, found in $defaultdir"
23470    else
23471        checkresult=no
23472    fi
23473    ;;
23474no)
23475
23476
23477    checkresult=no
23478    ;;
23479*)  if test -d "$checkresult"
23480    then
23481        SPEC95_ROOT="$checkresult"
23482
23483        USE_SPEC95=USE_SPEC95=1
23484
23485        checkresult="yes, in $checkresult"
23486    else
23487
23488
23489        checkresult="no, not found in $checkresult"
23490    fi
23491    ;;
23492esac
23493echo "$as_me:$LINENO: result: $checkresult" >&5
23494echo "${ECHO_T}$checkresult" >&6
23495
23496
23497
23498 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23499if test "${enable_spec2000+set}" = set; then
23500  enableval="$enable_spec2000"
23501  checkresult=$enableval
23502else
23503  checkresult=auto
23504fi;
23505echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23506echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23507case "$checkresult" in
23508auto|yes)
23509    defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23510	if test -d "$defaultdir"
23511	then
23512		SPEC2000_ROOT=$defaultdir
23513
23514		USE_SPEC2000=USE_SPEC2000=1
23515
23516        checkresult="yes, found in $defaultdir"
23517    else
23518        checkresult=no
23519    fi
23520    ;;
23521no)
23522
23523
23524    checkresult=no
23525    ;;
23526*)  if test -d "$checkresult"
23527    then
23528        SPEC2000_ROOT="$checkresult"
23529
23530        USE_SPEC2000=USE_SPEC2000=1
23531
23532        checkresult="yes, in $checkresult"
23533    else
23534
23535
23536        checkresult="no, not found in $checkresult"
23537    fi
23538    ;;
23539esac
23540echo "$as_me:$LINENO: result: $checkresult" >&5
23541echo "${ECHO_T}$checkresult" >&6
23542
23543
23544
23545 # Check whether --enable-povray or --disable-povray was given.
23546if test "${enable_povray+set}" = set; then
23547  enableval="$enable_povray"
23548  checkresult=$enableval
23549else
23550  checkresult=auto
23551fi;
23552echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23553echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23554case "$checkresult" in
23555auto|yes)
23556    defaultdir=/home/vadve/shared/benchmarks/povray31
23557	if test -d "$defaultdir"
23558	then
23559		POVRAY_ROOT=$defaultdir
23560
23561		USE_POVRAY=USE_POVRAY=1
23562
23563        checkresult="yes, found in $defaultdir"
23564    else
23565        checkresult=no
23566    fi
23567    ;;
23568no)
23569
23570
23571    checkresult=no
23572    ;;
23573*)  if test -d "$checkresult"
23574    then
23575        POVRAY_ROOT="$checkresult"
23576
23577        USE_POVRAY=USE_POVRAY=1
23578
23579        checkresult="yes, in $checkresult"
23580    else
23581
23582
23583        checkresult="no, not found in $checkresult"
23584    fi
23585    ;;
23586esac
23587echo "$as_me:$LINENO: result: $checkresult" >&5
23588echo "${ECHO_T}$checkresult" >&6
23589
23590
23591
23592# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23593if test "${enable_precompiled_bytecode+set}" = set; then
23594  enableval="$enable_precompiled_bytecode"
23595
23596else
23597  enableval=no
23598fi;
23599if test ${enableval} = "no"
23600then
23601	UPB=
23602
23603else
23604	UPB=USE_PRECOMPILED_BYTECODE=1
23605
23606fi
23607
23608# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23609if test "${enable_llc_diffs+set}" = set; then
23610  enableval="$enable_llc_diffs"
23611
23612else
23613  enableval=yes
23614fi;
23615if test ${enableval} = "no"
23616then
23617	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23618
23619else
23620	DISABLE_LLC_DIFFS=
23621
23622fi
23623
23624# Check whether --enable-jit or --disable-jit was given.
23625if test "${enable_jit+set}" = set; then
23626  enableval="$enable_jit"
23627
23628else
23629  enableval=default
23630fi;
23631if test ${enableval} = "no"
23632then
23633	JIT=
23634
23635else
23636	case $target in
23637		*i*86*)
23638			JIT=TARGET_HAS_JIT=1
23639
23640			;;
23641		*sparc*)
23642			JIT=TARGET_HAS_JIT=1
23643
23644			;;
23645		*)
23646			JIT=
23647
23648			;;
23649	esac
23650fi
23651
23652
23653# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23654if test "${with_llvmgccdir+set}" = set; then
23655  withval="$with_llvmgccdir"
23656  LLVMGCCDIR=$withval
23657
23658fi;
23659echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23660echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23661LLVM_GCC_CHECK=no
23662if test -d "$LLVMGCCDIR"
23663then
23664	if test -x "$LLVMGCCDIR/bin/gcc"
23665	then
23666		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23667	fi
23668fi
23669llvmgccwarn=no
23670echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23671echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23672if test "$LLVM_GCC_CHECK" = "no"
23673then
23674    llvmgccwarn=yes
23675fi
23676echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23677echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23678LLVM_GCC_SANE=no
23679if test -x "$LLVM_GCC_CHECK"
23680then
23681	cp /dev/null conftest.c
23682    "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23683	if test $? -eq 0
23684	then
23685		LLVM_GCC_SANE=yes
23686	fi
23687	rm conftest.c
23688	llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23689	LLVMCC1=$llvmcc1path
23690
23691	llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23692	LLVMCC1PLUS=$llvmcc1pluspath
23693
23694fi
23695echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23696echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23697if test "$LLVM_GCC_SANE" = "no"
23698then
23699	llvmgccwarn=yes
23700fi
23701
23702
23703# Check whether --with-bcrepos or --without-bcrepos was given.
23704if test "${with_bcrepos+set}" = set; then
23705  withval="$with_bcrepos"
23706  BCR=$withval
23707
23708else
23709  BCR=/home/vadve/lattner/LLVMPrograms
23710
23711fi;
23712
23713
23714# Check whether --with-papi or --without-papi was given.
23715if test "${with_papi+set}" = set; then
23716  withval="$with_papi"
23717  PAPIDIR=$withval
23718
23719else
23720  PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23721
23722fi;
23723
23724echo "$as_me:$LINENO: checking for shared library suffix" >&5
23725echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23726eval "SHLIBEXT=$shrext"
23727echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23728echo "${ECHO_T}$SHLIBEXT" >&6
23729SHLIBEXT=$SHLIBEXT
23730
23731
23732cat >>confdefs.h <<_ACEOF
23733#define SHLIBEXT "$SHLIBEXT"
23734_ACEOF
23735
23736
23737cat >confcache <<\_ACEOF
23738# This file is a shell script that caches the results of configure
23739# tests run on this system so they can be shared between configure
23740# scripts and configure runs, see configure's option --config-cache.
23741# It is not useful on other systems.  If it contains results you don't
23742# want to keep, you may remove or edit it.
23743#
23744# config.status only pays attention to the cache file if you give it
23745# the --recheck option to rerun configure.
23746#
23747# `ac_cv_env_foo' variables (set or unset) will be overridden when
23748# loading this file, other *unset* `ac_cv_foo' will be assigned the
23749# following values.
23750
23751_ACEOF
23752
23753# The following way of writing the cache mishandles newlines in values,
23754# but we know of no workaround that is simple, portable, and efficient.
23755# So, don't put newlines in cache variables' values.
23756# Ultrix sh set writes to stderr and can't be redirected directly,
23757# and sets the high bit in the cache file unless we assign to the vars.
23758{
23759  (set) 2>&1 |
23760    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23761    *ac_space=\ *)
23762      # `set' does not quote correctly, so add quotes (double-quote
23763      # substitution turns \\\\ into \\, and sed turns \\ into \).
23764      sed -n \
23765	"s/'/'\\\\''/g;
23766	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23767      ;;
23768    *)
23769      # `set' quotes correctly as required by POSIX, so do not add quotes.
23770      sed -n \
23771	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23772      ;;
23773    esac;
23774} |
23775  sed '
23776     t clear
23777     : clear
23778     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23779     t end
23780     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23781     : end' >>confcache
23782if diff $cache_file confcache >/dev/null 2>&1; then :; else
23783  if test -w $cache_file; then
23784    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23785    cat confcache >$cache_file
23786  else
23787    echo "not updating unwritable cache $cache_file"
23788  fi
23789fi
23790rm -f confcache
23791
23792test "x$prefix" = xNONE && prefix=$ac_default_prefix
23793# Let make expand exec_prefix.
23794test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23795
23796# VPATH may cause trouble with some makes, so we remove $(srcdir),
23797# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23798# trailing colons and then remove the whole line if VPATH becomes empty
23799# (actually we leave an empty line to preserve line numbers).
23800if test "x$srcdir" = x.; then
23801  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23802s/:*\$(srcdir):*/:/;
23803s/:*\${srcdir}:*/:/;
23804s/:*@srcdir@:*/:/;
23805s/^\([^=]*=[	 ]*\):*/\1/;
23806s/:*$//;
23807s/^[^=]*=[	 ]*$//;
23808}'
23809fi
23810
23811DEFS=-DHAVE_CONFIG_H
23812
23813ac_libobjs=
23814ac_ltlibobjs=
23815for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23816  # 1. Remove the extension, and $U if already installed.
23817  ac_i=`echo "$ac_i" |
23818	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23819  # 2. Add them.
23820  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23821  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23822done
23823LIBOBJS=$ac_libobjs
23824
23825LTLIBOBJS=$ac_ltlibobjs
23826
23827
23828
23829: ${CONFIG_STATUS=./config.status}
23830ac_clean_files_save=$ac_clean_files
23831ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23832{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23833echo "$as_me: creating $CONFIG_STATUS" >&6;}
23834cat >$CONFIG_STATUS <<_ACEOF
23835#! $SHELL
23836# Generated by $as_me.
23837# Run this file to recreate the current configuration.
23838# Compiler output produced by configure, useful for debugging
23839# configure, is in config.log if it exists.
23840
23841debug=false
23842ac_cs_recheck=false
23843ac_cs_silent=false
23844SHELL=\${CONFIG_SHELL-$SHELL}
23845_ACEOF
23846
23847cat >>$CONFIG_STATUS <<\_ACEOF
23848## --------------------- ##
23849## M4sh Initialization.  ##
23850## --------------------- ##
23851
23852# Be Bourne compatible
23853if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23854  emulate sh
23855  NULLCMD=:
23856  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23857  # is contrary to our usage.  Disable this feature.
23858  alias -g '${1+"$@"}'='"$@"'
23859elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23860  set -o posix
23861fi
23862DUALCASE=1; export DUALCASE # for MKS sh
23863
23864# Support unset when possible.
23865if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23866  as_unset=unset
23867else
23868  as_unset=false
23869fi
23870
23871
23872# Work around bugs in pre-3.0 UWIN ksh.
23873$as_unset ENV MAIL MAILPATH
23874PS1='$ '
23875PS2='> '
23876PS4='+ '
23877
23878# NLS nuisances.
23879for as_var in \
23880  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23881  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23882  LC_TELEPHONE LC_TIME
23883do
23884  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23885    eval $as_var=C; export $as_var
23886  else
23887    $as_unset $as_var
23888  fi
23889done
23890
23891# Required to use basename.
23892if expr a : '\(a\)' >/dev/null 2>&1; then
23893  as_expr=expr
23894else
23895  as_expr=false
23896fi
23897
23898if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23899  as_basename=basename
23900else
23901  as_basename=false
23902fi
23903
23904
23905# Name of the executable.
23906as_me=`$as_basename "$0" ||
23907$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23908	 X"$0" : 'X\(//\)$' \| \
23909	 X"$0" : 'X\(/\)$' \| \
23910	 .     : '\(.\)' 2>/dev/null ||
23911echo X/"$0" |
23912    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23913  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23914  	  /^X\/\(\/\).*/{ s//\1/; q; }
23915  	  s/.*/./; q'`
23916
23917
23918# PATH needs CR, and LINENO needs CR and PATH.
23919# Avoid depending upon Character Ranges.
23920as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23921as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23922as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23923as_cr_digits='0123456789'
23924as_cr_alnum=$as_cr_Letters$as_cr_digits
23925
23926# The user is always right.
23927if test "${PATH_SEPARATOR+set}" != set; then
23928  echo "#! /bin/sh" >conf$$.sh
23929  echo  "exit 0"   >>conf$$.sh
23930  chmod +x conf$$.sh
23931  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23932    PATH_SEPARATOR=';'
23933  else
23934    PATH_SEPARATOR=:
23935  fi
23936  rm -f conf$$.sh
23937fi
23938
23939
23940  as_lineno_1=$LINENO
23941  as_lineno_2=$LINENO
23942  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23943  test "x$as_lineno_1" != "x$as_lineno_2" &&
23944  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23945  # Find who we are.  Look in the path if we contain no path at all
23946  # relative or not.
23947  case $0 in
23948    *[\\/]* ) as_myself=$0 ;;
23949    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950for as_dir in $PATH
23951do
23952  IFS=$as_save_IFS
23953  test -z "$as_dir" && as_dir=.
23954  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23955done
23956
23957       ;;
23958  esac
23959  # We did not find ourselves, most probably we were run as `sh COMMAND'
23960  # in which case we are not to be found in the path.
23961  if test "x$as_myself" = x; then
23962    as_myself=$0
23963  fi
23964  if test ! -f "$as_myself"; then
23965    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23966echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23967   { (exit 1); exit 1; }; }
23968  fi
23969  case $CONFIG_SHELL in
23970  '')
23971    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23972for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23973do
23974  IFS=$as_save_IFS
23975  test -z "$as_dir" && as_dir=.
23976  for as_base in sh bash ksh sh5; do
23977	 case $as_dir in
23978	 /*)
23979	   if ("$as_dir/$as_base" -c '
23980  as_lineno_1=$LINENO
23981  as_lineno_2=$LINENO
23982  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23983  test "x$as_lineno_1" != "x$as_lineno_2" &&
23984  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23985	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23986	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23987	     CONFIG_SHELL=$as_dir/$as_base
23988	     export CONFIG_SHELL
23989	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23990	   fi;;
23991	 esac
23992       done
23993done
23994;;
23995  esac
23996
23997  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23998  # uniformly replaced by the line number.  The first 'sed' inserts a
23999  # line-number line before each line; the second 'sed' does the real
24000  # work.  The second script uses 'N' to pair each line-number line
24001  # with the numbered line, and appends trailing '-' during
24002  # substitution so that $LINENO is not a special case at line end.
24003  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24004  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24005  sed '=' <$as_myself |
24006    sed '
24007      N
24008      s,$,-,
24009      : loop
24010      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24011      t loop
24012      s,-$,,
24013      s,^['$as_cr_digits']*\n,,
24014    ' >$as_me.lineno &&
24015  chmod +x $as_me.lineno ||
24016    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24017echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24018   { (exit 1); exit 1; }; }
24019
24020  # Don't try to exec as it changes $[0], causing all sort of problems
24021  # (the dirname of $[0] is not the place where we might find the
24022  # original and so on.  Autoconf is especially sensible to this).
24023  . ./$as_me.lineno
24024  # Exit status is that of the last command.
24025  exit
24026}
24027
24028
24029case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24030  *c*,-n*) ECHO_N= ECHO_C='
24031' ECHO_T='	' ;;
24032  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24033  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24034esac
24035
24036if expr a : '\(a\)' >/dev/null 2>&1; then
24037  as_expr=expr
24038else
24039  as_expr=false
24040fi
24041
24042rm -f conf$$ conf$$.exe conf$$.file
24043echo >conf$$.file
24044if ln -s conf$$.file conf$$ 2>/dev/null; then
24045  # We could just check for DJGPP; but this test a) works b) is more generic
24046  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24047  if test -f conf$$.exe; then
24048    # Don't use ln at all; we don't have any links
24049    as_ln_s='cp -p'
24050  else
24051    as_ln_s='ln -s'
24052  fi
24053elif ln conf$$.file conf$$ 2>/dev/null; then
24054  as_ln_s=ln
24055else
24056  as_ln_s='cp -p'
24057fi
24058rm -f conf$$ conf$$.exe conf$$.file
24059
24060if mkdir -p . 2>/dev/null; then
24061  as_mkdir_p=:
24062else
24063  test -d ./-p && rmdir ./-p
24064  as_mkdir_p=false
24065fi
24066
24067as_executable_p="test -f"
24068
24069# Sed expression to map a string onto a valid CPP name.
24070as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24071
24072# Sed expression to map a string onto a valid variable name.
24073as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24074
24075
24076# IFS
24077# We need space, tab and new line, in precisely that order.
24078as_nl='
24079'
24080IFS=" 	$as_nl"
24081
24082# CDPATH.
24083$as_unset CDPATH
24084
24085exec 6>&1
24086
24087# Open the log real soon, to keep \$[0] and so on meaningful, and to
24088# report actual input values of CONFIG_FILES etc. instead of their
24089# values after options handling.  Logging --version etc. is OK.
24090exec 5>>config.log
24091{
24092  echo
24093  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24094## Running $as_me. ##
24095_ASBOX
24096} >&5
24097cat >&5 <<_CSEOF
24098
24099This file was extended by LLVM $as_me 1.3, which was
24100generated by GNU Autoconf 2.59.  Invocation command line was
24101
24102  CONFIG_FILES    = $CONFIG_FILES
24103  CONFIG_HEADERS  = $CONFIG_HEADERS
24104  CONFIG_LINKS    = $CONFIG_LINKS
24105  CONFIG_COMMANDS = $CONFIG_COMMANDS
24106  $ $0 $@
24107
24108_CSEOF
24109echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24110echo >&5
24111_ACEOF
24112
24113# Files that config.status was made for.
24114if test -n "$ac_config_files"; then
24115  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24116fi
24117
24118if test -n "$ac_config_headers"; then
24119  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24120fi
24121
24122if test -n "$ac_config_links"; then
24123  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24124fi
24125
24126if test -n "$ac_config_commands"; then
24127  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24128fi
24129
24130cat >>$CONFIG_STATUS <<\_ACEOF
24131
24132ac_cs_usage="\
24133\`$as_me' instantiates files from templates according to the
24134current configuration.
24135
24136Usage: $0 [OPTIONS] [FILE]...
24137
24138  -h, --help       print this help, then exit
24139  -V, --version    print version number, then exit
24140  -q, --quiet      do not print progress messages
24141  -d, --debug      don't remove temporary files
24142      --recheck    update $as_me by reconfiguring in the same conditions
24143  --file=FILE[:TEMPLATE]
24144		   instantiate the configuration file FILE
24145  --header=FILE[:TEMPLATE]
24146		   instantiate the configuration header FILE
24147
24148Configuration files:
24149$config_files
24150
24151Configuration headers:
24152$config_headers
24153
24154Configuration commands:
24155$config_commands
24156
24157Report bugs to <bug-autoconf@gnu.org>."
24158_ACEOF
24159
24160cat >>$CONFIG_STATUS <<_ACEOF
24161ac_cs_version="\\
24162LLVM config.status 1.3
24163configured by $0, generated by GNU Autoconf 2.59,
24164  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24165
24166Copyright (C) 2003 Free Software Foundation, Inc.
24167This config.status script is free software; the Free Software Foundation
24168gives unlimited permission to copy, distribute and modify it."
24169srcdir=$srcdir
24170INSTALL="$INSTALL"
24171_ACEOF
24172
24173cat >>$CONFIG_STATUS <<\_ACEOF
24174# If no file are specified by the user, then we need to provide default
24175# value.  By we need to know if files were specified by the user.
24176ac_need_defaults=:
24177while test $# != 0
24178do
24179  case $1 in
24180  --*=*)
24181    ac_option=`expr "x$1" : 'x\([^=]*\)='`
24182    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24183    ac_shift=:
24184    ;;
24185  -*)
24186    ac_option=$1
24187    ac_optarg=$2
24188    ac_shift=shift
24189    ;;
24190  *) # This is not an option, so the user has probably given explicit
24191     # arguments.
24192     ac_option=$1
24193     ac_need_defaults=false;;
24194  esac
24195
24196  case $ac_option in
24197  # Handling of the options.
24198_ACEOF
24199cat >>$CONFIG_STATUS <<\_ACEOF
24200  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24201    ac_cs_recheck=: ;;
24202  --version | --vers* | -V )
24203    echo "$ac_cs_version"; exit 0 ;;
24204  --he | --h)
24205    # Conflict between --help and --header
24206    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24207Try \`$0 --help' for more information." >&5
24208echo "$as_me: error: ambiguous option: $1
24209Try \`$0 --help' for more information." >&2;}
24210   { (exit 1); exit 1; }; };;
24211  --help | --hel | -h )
24212    echo "$ac_cs_usage"; exit 0 ;;
24213  --debug | --d* | -d )
24214    debug=: ;;
24215  --file | --fil | --fi | --f )
24216    $ac_shift
24217    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24218    ac_need_defaults=false;;
24219  --header | --heade | --head | --hea )
24220    $ac_shift
24221    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24222    ac_need_defaults=false;;
24223  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24224  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24225    ac_cs_silent=: ;;
24226
24227  # This is an error.
24228  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24229Try \`$0 --help' for more information." >&5
24230echo "$as_me: error: unrecognized option: $1
24231Try \`$0 --help' for more information." >&2;}
24232   { (exit 1); exit 1; }; } ;;
24233
24234  *) ac_config_targets="$ac_config_targets $1" ;;
24235
24236  esac
24237  shift
24238done
24239
24240ac_configure_extra_args=
24241
24242if $ac_cs_silent; then
24243  exec 6>/dev/null
24244  ac_configure_extra_args="$ac_configure_extra_args --silent"
24245fi
24246
24247_ACEOF
24248cat >>$CONFIG_STATUS <<_ACEOF
24249if \$ac_cs_recheck; then
24250  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24251  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24252fi
24253
24254_ACEOF
24255
24256cat >>$CONFIG_STATUS <<_ACEOF
24257#
24258# INIT-COMMANDS section.
24259#
24260
24261${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24262${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24263${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24264${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24265${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24266${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24267${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24268${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24269${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24270${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24271${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24272${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24273${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24274${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24275${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24276${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24277${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24278${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24279${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24280${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24281${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24282${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24283${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24284${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24285${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24286${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24287${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24288${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24289${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24290${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24291${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24292${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24293${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24294${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24295${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24296${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24297${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24298${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24299${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24300${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24301${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24302${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24303${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24304${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24305${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24306${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24307${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24308${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24309${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24310${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24311
24312_ACEOF
24313
24314
24315
24316cat >>$CONFIG_STATUS <<\_ACEOF
24317for ac_config_target in $ac_config_targets
24318do
24319  case "$ac_config_target" in
24320  # Handling of arguments.
24321  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24322  "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24323  "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24324  "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24325  "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24326  "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24327  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24328  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24329  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24330  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24331  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24332  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24333  "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24334  "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24335  "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24336  "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24337  "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24338  "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24339  "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24340  "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24341  "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24342  "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24343  "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24344  "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24345  "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24346  "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24347  "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24348  "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24349  "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24350  "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24351  "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24352  "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24353  "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24354  "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24355  "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24356  "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24357  "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24358  "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24359  "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24360  "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24361  "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24362  "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24363  "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24364  "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24365  "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24366  "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24367  "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24368  "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24369  "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24370  "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24371  "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24372  "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24373  "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24374  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24375  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24376  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24377  "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24378  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24379echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24380   { (exit 1); exit 1; }; };;
24381  esac
24382done
24383
24384# If the user did not use the arguments to specify the items to instantiate,
24385# then the envvar interface is used.  Set only those that are not.
24386# We use the long form for the default assignment because of an extremely
24387# bizarre bug on SunOS 4.1.3.
24388if $ac_need_defaults; then
24389  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24390  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24391  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24392fi
24393
24394# Have a temporary directory for convenience.  Make it in the build tree
24395# simply because there is no reason to put it here, and in addition,
24396# creating and moving files from /tmp can sometimes cause problems.
24397# Create a temporary directory, and hook for its removal unless debugging.
24398$debug ||
24399{
24400  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24401  trap '{ (exit 1); exit 1; }' 1 2 13 15
24402}
24403
24404# Create a (secure) tmp directory for tmp files.
24405
24406{
24407  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24408  test -n "$tmp" && test -d "$tmp"
24409}  ||
24410{
24411  tmp=./confstat$$-$RANDOM
24412  (umask 077 && mkdir $tmp)
24413} ||
24414{
24415   echo "$me: cannot create a temporary directory in ." >&2
24416   { (exit 1); exit 1; }
24417}
24418
24419_ACEOF
24420
24421cat >>$CONFIG_STATUS <<_ACEOF
24422
24423#
24424# CONFIG_FILES section.
24425#
24426
24427# No need to generate the scripts if there are no CONFIG_FILES.
24428# This happens for instance when ./config.status config.h
24429if test -n "\$CONFIG_FILES"; then
24430  # Protect against being on the right side of a sed subst in config.status.
24431  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24432   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24433s,@SHELL@,$SHELL,;t t
24434s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24435s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24436s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24437s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24438s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24439s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24440s,@exec_prefix@,$exec_prefix,;t t
24441s,@prefix@,$prefix,;t t
24442s,@program_transform_name@,$program_transform_name,;t t
24443s,@bindir@,$bindir,;t t
24444s,@sbindir@,$sbindir,;t t
24445s,@libexecdir@,$libexecdir,;t t
24446s,@datadir@,$datadir,;t t
24447s,@sysconfdir@,$sysconfdir,;t t
24448s,@sharedstatedir@,$sharedstatedir,;t t
24449s,@localstatedir@,$localstatedir,;t t
24450s,@libdir@,$libdir,;t t
24451s,@includedir@,$includedir,;t t
24452s,@oldincludedir@,$oldincludedir,;t t
24453s,@infodir@,$infodir,;t t
24454s,@mandir@,$mandir,;t t
24455s,@build_alias@,$build_alias,;t t
24456s,@host_alias@,$host_alias,;t t
24457s,@target_alias@,$target_alias,;t t
24458s,@DEFS@,$DEFS,;t t
24459s,@ECHO_C@,$ECHO_C,;t t
24460s,@ECHO_N@,$ECHO_N,;t t
24461s,@ECHO_T@,$ECHO_T,;t t
24462s,@LIBS@,$LIBS,;t t
24463s,@subdirs@,$subdirs,;t t
24464s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24465s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24466s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24467s,@build@,$build,;t t
24468s,@build_cpu@,$build_cpu,;t t
24469s,@build_vendor@,$build_vendor,;t t
24470s,@build_os@,$build_os,;t t
24471s,@host@,$host,;t t
24472s,@host_cpu@,$host_cpu,;t t
24473s,@host_vendor@,$host_vendor,;t t
24474s,@host_os@,$host_os,;t t
24475s,@target@,$target,;t t
24476s,@target_cpu@,$target_cpu,;t t
24477s,@target_vendor@,$target_vendor,;t t
24478s,@target_os@,$target_os,;t t
24479s,@OS@,$OS,;t t
24480s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24481s,@ARCH@,$ARCH,;t t
24482s,@CXX@,$CXX,;t t
24483s,@CXXFLAGS@,$CXXFLAGS,;t t
24484s,@LDFLAGS@,$LDFLAGS,;t t
24485s,@CPPFLAGS@,$CPPFLAGS,;t t
24486s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24487s,@EXEEXT@,$EXEEXT,;t t
24488s,@OBJEXT@,$OBJEXT,;t t
24489s,@CC@,$CC,;t t
24490s,@CFLAGS@,$CFLAGS,;t t
24491s,@ac_ct_CC@,$ac_ct_CC,;t t
24492s,@CPP@,$CPP,;t t
24493s,@ifGNUmake@,$ifGNUmake,;t t
24494s,@LEX@,$LEX,;t t
24495s,@LEXLIB@,$LEXLIB,;t t
24496s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24497s,@YACC@,$YACC,;t t
24498s,@BISON@,$BISON,;t t
24499s,@EGREP@,$EGREP,;t t
24500s,@LN_S@,$LN_S,;t t
24501s,@ECHO@,$ECHO,;t t
24502s,@AR@,$AR,;t t
24503s,@ac_ct_AR@,$ac_ct_AR,;t t
24504s,@RANLIB@,$RANLIB,;t t
24505s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24506s,@STRIP@,$STRIP,;t t
24507s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24508s,@CXXCPP@,$CXXCPP,;t t
24509s,@F77@,$F77,;t t
24510s,@FFLAGS@,$FFLAGS,;t t
24511s,@ac_ct_F77@,$ac_ct_F77,;t t
24512s,@LIBTOOL@,$LIBTOOL,;t t
24513s,@DOT@,$DOT,;t t
24514s,@ETAGS@,$ETAGS,;t t
24515s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24516s,@PYTHON@,$PYTHON,;t t
24517s,@QMTEST@,$QMTEST,;t t
24518s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24519s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24520s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24521s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24522s,@ENDIAN@,$ENDIAN,;t t
24523s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24524s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24525s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24526s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24527s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24528s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24529s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24530s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24531s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24532s,@ALLOCA@,$ALLOCA,;t t
24533s,@MMAP_FILE@,$MMAP_FILE,;t t
24534s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24535s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24536s,@USE_SPEC95@,$USE_SPEC95,;t t
24537s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24538s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24539s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24540s,@USE_POVRAY@,$USE_POVRAY,;t t
24541s,@UPB@,$UPB,;t t
24542s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24543s,@JIT@,$JIT,;t t
24544s,@LLVMCC1@,$LLVMCC1,;t t
24545s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24546s,@BCR@,$BCR,;t t
24547s,@PAPIDIR@,$PAPIDIR,;t t
24548s,@SHLIBEXT@,$SHLIBEXT,;t t
24549s,@LIBOBJS@,$LIBOBJS,;t t
24550s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24551CEOF
24552
24553_ACEOF
24554
24555  cat >>$CONFIG_STATUS <<\_ACEOF
24556  # Split the substitutions into bite-sized pieces for seds with
24557  # small command number limits, like on Digital OSF/1 and HP-UX.
24558  ac_max_sed_lines=48
24559  ac_sed_frag=1 # Number of current file.
24560  ac_beg=1 # First line for current file.
24561  ac_end=$ac_max_sed_lines # Line after last line for current file.
24562  ac_more_lines=:
24563  ac_sed_cmds=
24564  while $ac_more_lines; do
24565    if test $ac_beg -gt 1; then
24566      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24567    else
24568      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24569    fi
24570    if test ! -s $tmp/subs.frag; then
24571      ac_more_lines=false
24572    else
24573      # The purpose of the label and of the branching condition is to
24574      # speed up the sed processing (if there are no `@' at all, there
24575      # is no need to browse any of the substitutions).
24576      # These are the two extra sed commands mentioned above.
24577      (echo ':t
24578  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24579      if test -z "$ac_sed_cmds"; then
24580	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24581      else
24582	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24583      fi
24584      ac_sed_frag=`expr $ac_sed_frag + 1`
24585      ac_beg=$ac_end
24586      ac_end=`expr $ac_end + $ac_max_sed_lines`
24587    fi
24588  done
24589  if test -z "$ac_sed_cmds"; then
24590    ac_sed_cmds=cat
24591  fi
24592fi # test -n "$CONFIG_FILES"
24593
24594_ACEOF
24595cat >>$CONFIG_STATUS <<\_ACEOF
24596for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24597  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24598  case $ac_file in
24599  - | *:- | *:-:* ) # input from stdin
24600	cat >$tmp/stdin
24601	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24602	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24603  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24604	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24605  * )   ac_file_in=$ac_file.in ;;
24606  esac
24607
24608  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24609  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611	 X"$ac_file" : 'X\(//\)[^/]' \| \
24612	 X"$ac_file" : 'X\(//\)$' \| \
24613	 X"$ac_file" : 'X\(/\)' \| \
24614	 .     : '\(.\)' 2>/dev/null ||
24615echo X"$ac_file" |
24616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24617  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24618  	  /^X\(\/\/\)$/{ s//\1/; q; }
24619  	  /^X\(\/\).*/{ s//\1/; q; }
24620  	  s/.*/./; q'`
24621  { if $as_mkdir_p; then
24622    mkdir -p "$ac_dir"
24623  else
24624    as_dir="$ac_dir"
24625    as_dirs=
24626    while test ! -d "$as_dir"; do
24627      as_dirs="$as_dir $as_dirs"
24628      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24630	 X"$as_dir" : 'X\(//\)[^/]' \| \
24631	 X"$as_dir" : 'X\(//\)$' \| \
24632	 X"$as_dir" : 'X\(/\)' \| \
24633	 .     : '\(.\)' 2>/dev/null ||
24634echo X"$as_dir" |
24635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24636  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24637  	  /^X\(\/\/\)$/{ s//\1/; q; }
24638  	  /^X\(\/\).*/{ s//\1/; q; }
24639  	  s/.*/./; q'`
24640    done
24641    test ! -n "$as_dirs" || mkdir $as_dirs
24642  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24643echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24644   { (exit 1); exit 1; }; }; }
24645
24646  ac_builddir=.
24647
24648if test "$ac_dir" != .; then
24649  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650  # A "../" for each directory in $ac_dir_suffix.
24651  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24652else
24653  ac_dir_suffix= ac_top_builddir=
24654fi
24655
24656case $srcdir in
24657  .)  # No --srcdir option.  We are building in place.
24658    ac_srcdir=.
24659    if test -z "$ac_top_builddir"; then
24660       ac_top_srcdir=.
24661    else
24662       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24663    fi ;;
24664  [\\/]* | ?:[\\/]* )  # Absolute path.
24665    ac_srcdir=$srcdir$ac_dir_suffix;
24666    ac_top_srcdir=$srcdir ;;
24667  *) # Relative path.
24668    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24670esac
24671
24672# Do not use `cd foo && pwd` to compute absolute paths, because
24673# the directories may not exist.
24674case `pwd` in
24675.) ac_abs_builddir="$ac_dir";;
24676*)
24677  case "$ac_dir" in
24678  .) ac_abs_builddir=`pwd`;;
24679  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24680  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24681  esac;;
24682esac
24683case $ac_abs_builddir in
24684.) ac_abs_top_builddir=${ac_top_builddir}.;;
24685*)
24686  case ${ac_top_builddir}. in
24687  .) ac_abs_top_builddir=$ac_abs_builddir;;
24688  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24689  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24690  esac;;
24691esac
24692case $ac_abs_builddir in
24693.) ac_abs_srcdir=$ac_srcdir;;
24694*)
24695  case $ac_srcdir in
24696  .) ac_abs_srcdir=$ac_abs_builddir;;
24697  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24698  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24699  esac;;
24700esac
24701case $ac_abs_builddir in
24702.) ac_abs_top_srcdir=$ac_top_srcdir;;
24703*)
24704  case $ac_top_srcdir in
24705  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24706  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24707  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24708  esac;;
24709esac
24710
24711
24712  case $INSTALL in
24713  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24714  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24715  esac
24716
24717  if test x"$ac_file" != x-; then
24718    { echo "$as_me:$LINENO: creating $ac_file" >&5
24719echo "$as_me: creating $ac_file" >&6;}
24720    rm -f "$ac_file"
24721  fi
24722  # Let's still pretend it is `configure' which instantiates (i.e., don't
24723  # use $as_me), people would be surprised to read:
24724  #    /* config.h.  Generated by config.status.  */
24725  if test x"$ac_file" = x-; then
24726    configure_input=
24727  else
24728    configure_input="$ac_file.  "
24729  fi
24730  configure_input=$configure_input"Generated from `echo $ac_file_in |
24731				     sed 's,.*/,,'` by configure."
24732
24733  # First look for the input files in the build tree, otherwise in the
24734  # src tree.
24735  ac_file_inputs=`IFS=:
24736    for f in $ac_file_in; do
24737      case $f in
24738      -) echo $tmp/stdin ;;
24739      [\\/$]*)
24740	 # Absolute (can't be DOS-style, as IFS=:)
24741	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24742echo "$as_me: error: cannot find input file: $f" >&2;}
24743   { (exit 1); exit 1; }; }
24744	 echo "$f";;
24745      *) # Relative
24746	 if test -f "$f"; then
24747	   # Build tree
24748	   echo "$f"
24749	 elif test -f "$srcdir/$f"; then
24750	   # Source tree
24751	   echo "$srcdir/$f"
24752	 else
24753	   # /dev/null tree
24754	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24755echo "$as_me: error: cannot find input file: $f" >&2;}
24756   { (exit 1); exit 1; }; }
24757	 fi;;
24758      esac
24759    done` || { (exit 1); exit 1; }
24760_ACEOF
24761cat >>$CONFIG_STATUS <<_ACEOF
24762  sed "$ac_vpsub
24763$extrasub
24764_ACEOF
24765cat >>$CONFIG_STATUS <<\_ACEOF
24766:t
24767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24768s,@configure_input@,$configure_input,;t t
24769s,@srcdir@,$ac_srcdir,;t t
24770s,@abs_srcdir@,$ac_abs_srcdir,;t t
24771s,@top_srcdir@,$ac_top_srcdir,;t t
24772s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24773s,@builddir@,$ac_builddir,;t t
24774s,@abs_builddir@,$ac_abs_builddir,;t t
24775s,@top_builddir@,$ac_top_builddir,;t t
24776s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24777s,@INSTALL@,$ac_INSTALL,;t t
24778" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24779  rm -f $tmp/stdin
24780  if test x"$ac_file" != x-; then
24781    mv $tmp/out $ac_file
24782  else
24783    cat $tmp/out
24784    rm -f $tmp/out
24785  fi
24786
24787done
24788_ACEOF
24789cat >>$CONFIG_STATUS <<\_ACEOF
24790
24791#
24792# CONFIG_HEADER section.
24793#
24794
24795# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24796# NAME is the cpp macro being defined and VALUE is the value it is being given.
24797#
24798# ac_d sets the value in "#define NAME VALUE" lines.
24799ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
24800ac_dB='[	 ].*$,\1#\2'
24801ac_dC=' '
24802ac_dD=',;t'
24803# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24804ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
24805ac_uB='$,\1#\2define\3'
24806ac_uC=' '
24807ac_uD=',;t'
24808
24809for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24810  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24811  case $ac_file in
24812  - | *:- | *:-:* ) # input from stdin
24813	cat >$tmp/stdin
24814	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24815	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24816  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24817	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24818  * )   ac_file_in=$ac_file.in ;;
24819  esac
24820
24821  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24822echo "$as_me: creating $ac_file" >&6;}
24823
24824  # First look for the input files in the build tree, otherwise in the
24825  # src tree.
24826  ac_file_inputs=`IFS=:
24827    for f in $ac_file_in; do
24828      case $f in
24829      -) echo $tmp/stdin ;;
24830      [\\/$]*)
24831	 # Absolute (can't be DOS-style, as IFS=:)
24832	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24833echo "$as_me: error: cannot find input file: $f" >&2;}
24834   { (exit 1); exit 1; }; }
24835	 # Do quote $f, to prevent DOS paths from being IFS'd.
24836	 echo "$f";;
24837      *) # Relative
24838	 if test -f "$f"; then
24839	   # Build tree
24840	   echo "$f"
24841	 elif test -f "$srcdir/$f"; then
24842	   # Source tree
24843	   echo "$srcdir/$f"
24844	 else
24845	   # /dev/null tree
24846	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24847echo "$as_me: error: cannot find input file: $f" >&2;}
24848   { (exit 1); exit 1; }; }
24849	 fi;;
24850      esac
24851    done` || { (exit 1); exit 1; }
24852  # Remove the trailing spaces.
24853  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
24854
24855_ACEOF
24856
24857# Transform confdefs.h into two sed scripts, `conftest.defines' and
24858# `conftest.undefs', that substitutes the proper values into
24859# config.h.in to produce config.h.  The first handles `#define'
24860# templates, and the second `#undef' templates.
24861# And first: Protect against being on the right side of a sed subst in
24862# config.status.  Protect against being in an unquoted here document
24863# in config.status.
24864rm -f conftest.defines conftest.undefs
24865# Using a here document instead of a string reduces the quoting nightmare.
24866# Putting comments in sed scripts is not portable.
24867#
24868# `end' is used to avoid that the second main sed command (meant for
24869# 0-ary CPP macros) applies to n-ary macro definitions.
24870# See the Autoconf documentation for `clear'.
24871cat >confdef2sed.sed <<\_ACEOF
24872s/[\\&,]/\\&/g
24873s,[\\$`],\\&,g
24874t clear
24875: clear
24876s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24877t end
24878s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24879: end
24880_ACEOF
24881# If some macros were called several times there might be several times
24882# the same #defines, which is useless.  Nevertheless, we may not want to
24883# sort them, since we want the *last* AC-DEFINE to be honored.
24884uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24885sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24886rm -f confdef2sed.sed
24887
24888# This sed command replaces #undef with comments.  This is necessary, for
24889# example, in the case of _POSIX_SOURCE, which is predefined and required
24890# on some systems where configure will not decide to define it.
24891cat >>conftest.undefs <<\_ACEOF
24892s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24893_ACEOF
24894
24895# Break up conftest.defines because some shells have a limit on the size
24896# of here documents, and old seds have small limits too (100 cmds).
24897echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24898echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24899echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24900echo '  :' >>$CONFIG_STATUS
24901rm -f conftest.tail
24902while grep . conftest.defines >/dev/null
24903do
24904  # Write a limited-size here document to $tmp/defines.sed.
24905  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24906  # Speed up: don't consider the non `#define' lines.
24907  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24908  # Work around the forget-to-reset-the-flag bug.
24909  echo 't clr' >>$CONFIG_STATUS
24910  echo ': clr' >>$CONFIG_STATUS
24911  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24912  echo 'CEOF
24913  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24914  rm -f $tmp/in
24915  mv $tmp/out $tmp/in
24916' >>$CONFIG_STATUS
24917  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24918  rm -f conftest.defines
24919  mv conftest.tail conftest.defines
24920done
24921rm -f conftest.defines
24922echo '  fi # grep' >>$CONFIG_STATUS
24923echo >>$CONFIG_STATUS
24924
24925# Break up conftest.undefs because some shells have a limit on the size
24926# of here documents, and old seds have small limits too (100 cmds).
24927echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24928rm -f conftest.tail
24929while grep . conftest.undefs >/dev/null
24930do
24931  # Write a limited-size here document to $tmp/undefs.sed.
24932  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24933  # Speed up: don't consider the non `#undef'
24934  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24935  # Work around the forget-to-reset-the-flag bug.
24936  echo 't clr' >>$CONFIG_STATUS
24937  echo ': clr' >>$CONFIG_STATUS
24938  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24939  echo 'CEOF
24940  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24941  rm -f $tmp/in
24942  mv $tmp/out $tmp/in
24943' >>$CONFIG_STATUS
24944  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24945  rm -f conftest.undefs
24946  mv conftest.tail conftest.undefs
24947done
24948rm -f conftest.undefs
24949
24950cat >>$CONFIG_STATUS <<\_ACEOF
24951  # Let's still pretend it is `configure' which instantiates (i.e., don't
24952  # use $as_me), people would be surprised to read:
24953  #    /* config.h.  Generated by config.status.  */
24954  if test x"$ac_file" = x-; then
24955    echo "/* Generated by configure.  */" >$tmp/config.h
24956  else
24957    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24958  fi
24959  cat $tmp/in >>$tmp/config.h
24960  rm -f $tmp/in
24961  if test x"$ac_file" != x-; then
24962    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24963      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24964echo "$as_me: $ac_file is unchanged" >&6;}
24965    else
24966      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24967$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24968	 X"$ac_file" : 'X\(//\)[^/]' \| \
24969	 X"$ac_file" : 'X\(//\)$' \| \
24970	 X"$ac_file" : 'X\(/\)' \| \
24971	 .     : '\(.\)' 2>/dev/null ||
24972echo X"$ac_file" |
24973    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24974  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24975  	  /^X\(\/\/\)$/{ s//\1/; q; }
24976  	  /^X\(\/\).*/{ s//\1/; q; }
24977  	  s/.*/./; q'`
24978      { if $as_mkdir_p; then
24979    mkdir -p "$ac_dir"
24980  else
24981    as_dir="$ac_dir"
24982    as_dirs=
24983    while test ! -d "$as_dir"; do
24984      as_dirs="$as_dir $as_dirs"
24985      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24987	 X"$as_dir" : 'X\(//\)[^/]' \| \
24988	 X"$as_dir" : 'X\(//\)$' \| \
24989	 X"$as_dir" : 'X\(/\)' \| \
24990	 .     : '\(.\)' 2>/dev/null ||
24991echo X"$as_dir" |
24992    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24993  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24994  	  /^X\(\/\/\)$/{ s//\1/; q; }
24995  	  /^X\(\/\).*/{ s//\1/; q; }
24996  	  s/.*/./; q'`
24997    done
24998    test ! -n "$as_dirs" || mkdir $as_dirs
24999  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25000echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25001   { (exit 1); exit 1; }; }; }
25002
25003      rm -f $ac_file
25004      mv $tmp/config.h $ac_file
25005    fi
25006  else
25007    cat $tmp/config.h
25008    rm -f $tmp/config.h
25009  fi
25010done
25011_ACEOF
25012cat >>$CONFIG_STATUS <<\_ACEOF
25013
25014#
25015# CONFIG_COMMANDS section.
25016#
25017for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25018  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25019  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25020  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25021$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022	 X"$ac_dest" : 'X\(//\)[^/]' \| \
25023	 X"$ac_dest" : 'X\(//\)$' \| \
25024	 X"$ac_dest" : 'X\(/\)' \| \
25025	 .     : '\(.\)' 2>/dev/null ||
25026echo X"$ac_dest" |
25027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029  	  /^X\(\/\/\)$/{ s//\1/; q; }
25030  	  /^X\(\/\).*/{ s//\1/; q; }
25031  	  s/.*/./; q'`
25032  { if $as_mkdir_p; then
25033    mkdir -p "$ac_dir"
25034  else
25035    as_dir="$ac_dir"
25036    as_dirs=
25037    while test ! -d "$as_dir"; do
25038      as_dirs="$as_dir $as_dirs"
25039      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25041	 X"$as_dir" : 'X\(//\)[^/]' \| \
25042	 X"$as_dir" : 'X\(//\)$' \| \
25043	 X"$as_dir" : 'X\(/\)' \| \
25044	 .     : '\(.\)' 2>/dev/null ||
25045echo X"$as_dir" |
25046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25047  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25048  	  /^X\(\/\/\)$/{ s//\1/; q; }
25049  	  /^X\(\/\).*/{ s//\1/; q; }
25050  	  s/.*/./; q'`
25051    done
25052    test ! -n "$as_dirs" || mkdir $as_dirs
25053  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25054echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25055   { (exit 1); exit 1; }; }; }
25056
25057  ac_builddir=.
25058
25059if test "$ac_dir" != .; then
25060  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25061  # A "../" for each directory in $ac_dir_suffix.
25062  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25063else
25064  ac_dir_suffix= ac_top_builddir=
25065fi
25066
25067case $srcdir in
25068  .)  # No --srcdir option.  We are building in place.
25069    ac_srcdir=.
25070    if test -z "$ac_top_builddir"; then
25071       ac_top_srcdir=.
25072    else
25073       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25074    fi ;;
25075  [\\/]* | ?:[\\/]* )  # Absolute path.
25076    ac_srcdir=$srcdir$ac_dir_suffix;
25077    ac_top_srcdir=$srcdir ;;
25078  *) # Relative path.
25079    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25080    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25081esac
25082
25083# Do not use `cd foo && pwd` to compute absolute paths, because
25084# the directories may not exist.
25085case `pwd` in
25086.) ac_abs_builddir="$ac_dir";;
25087*)
25088  case "$ac_dir" in
25089  .) ac_abs_builddir=`pwd`;;
25090  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25091  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25092  esac;;
25093esac
25094case $ac_abs_builddir in
25095.) ac_abs_top_builddir=${ac_top_builddir}.;;
25096*)
25097  case ${ac_top_builddir}. in
25098  .) ac_abs_top_builddir=$ac_abs_builddir;;
25099  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25100  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25101  esac;;
25102esac
25103case $ac_abs_builddir in
25104.) ac_abs_srcdir=$ac_srcdir;;
25105*)
25106  case $ac_srcdir in
25107  .) ac_abs_srcdir=$ac_abs_builddir;;
25108  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25109  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25110  esac;;
25111esac
25112case $ac_abs_builddir in
25113.) ac_abs_top_srcdir=$ac_top_srcdir;;
25114*)
25115  case $ac_top_srcdir in
25116  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25117  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25118  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25119  esac;;
25120esac
25121
25122
25123  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25124echo "$as_me: executing $ac_dest commands" >&6;}
25125  case $ac_dest in
25126    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25127    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25128    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25129    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25130    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25131    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25132    test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25133    test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25134    test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25135    test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25136    test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25137    test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25138    test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25139    test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25140    test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25141    test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25142    test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25143    test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25144    test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25145    test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25146    test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25147    test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25148    test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25149    test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25150    test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25151    test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25152    test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25153    test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25154    test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25155    test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25156    test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25157    test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25158    test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25159    test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25160    test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25161    test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25162    test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25163    test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25164    test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25165    test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25166    test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25167    test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25168    test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25169    test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25170    test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25171    test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25172    test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25173    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25174    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25175    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25176  esac
25177done
25178_ACEOF
25179
25180cat >>$CONFIG_STATUS <<\_ACEOF
25181
25182{ (exit 0); exit 0; }
25183_ACEOF
25184chmod +x $CONFIG_STATUS
25185ac_clean_files=$ac_clean_files_save
25186
25187
25188# configure is writing to config.log, and then calls config.status.
25189# config.status does its own redirection, appending to config.log.
25190# Unfortunately, on DOS this fails, as config.log is still kept open
25191# by configure, so config.status won't be able to write to it; its
25192# output is simply discarded.  So we exec the FD to /dev/null,
25193# effectively closing config.log, so it can be properly (re)opened and
25194# appended to by config.status.  When coming back to configure, we
25195# need to make the FD available again.
25196if test "$no_create" != yes; then
25197  ac_cs_success=:
25198  ac_config_status_args=
25199  test "$silent" = yes &&
25200    ac_config_status_args="$ac_config_status_args --quiet"
25201  exec 5>/dev/null
25202  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25203  exec 5>>config.log
25204  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25205  # would make configure fail if this is the last instruction.
25206  $ac_cs_success || { (exit 1); exit 1; }
25207fi
25208
25209#
25210# CONFIG_SUBDIRS section.
25211#
25212if test "$no_recursion" != yes; then
25213
25214  # Remove --cache-file and --srcdir arguments so they do not pile up.
25215  ac_sub_configure_args=
25216  ac_prev=
25217  for ac_arg in $ac_configure_args; do
25218    if test -n "$ac_prev"; then
25219      ac_prev=
25220      continue
25221    fi
25222    case $ac_arg in
25223    -cache-file | --cache-file | --cache-fil | --cache-fi \
25224    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25225      ac_prev=cache_file ;;
25226    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25227    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25228    | --c=*)
25229      ;;
25230    --config-cache | -C)
25231      ;;
25232    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25233      ac_prev=srcdir ;;
25234    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25235      ;;
25236    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25237      ac_prev=prefix ;;
25238    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25239      ;;
25240    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25241    esac
25242  done
25243
25244  # Always prepend --prefix to ensure using the same prefix
25245  # in subdir configurations.
25246  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25247
25248  ac_popdir=`pwd`
25249  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25250
25251    # Do not complain, so a configure script can configure whichever
25252    # parts of a large source tree are present.
25253    test -d $srcdir/$ac_dir || continue
25254
25255    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25256echo "$as_me: configuring in $ac_dir" >&6;}
25257    { if $as_mkdir_p; then
25258    mkdir -p "$ac_dir"
25259  else
25260    as_dir="$ac_dir"
25261    as_dirs=
25262    while test ! -d "$as_dir"; do
25263      as_dirs="$as_dir $as_dirs"
25264      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25265$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266	 X"$as_dir" : 'X\(//\)[^/]' \| \
25267	 X"$as_dir" : 'X\(//\)$' \| \
25268	 X"$as_dir" : 'X\(/\)' \| \
25269	 .     : '\(.\)' 2>/dev/null ||
25270echo X"$as_dir" |
25271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25272  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25273  	  /^X\(\/\/\)$/{ s//\1/; q; }
25274  	  /^X\(\/\).*/{ s//\1/; q; }
25275  	  s/.*/./; q'`
25276    done
25277    test ! -n "$as_dirs" || mkdir $as_dirs
25278  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25279echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25280   { (exit 1); exit 1; }; }; }
25281
25282    ac_builddir=.
25283
25284if test "$ac_dir" != .; then
25285  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25286  # A "../" for each directory in $ac_dir_suffix.
25287  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25288else
25289  ac_dir_suffix= ac_top_builddir=
25290fi
25291
25292case $srcdir in
25293  .)  # No --srcdir option.  We are building in place.
25294    ac_srcdir=.
25295    if test -z "$ac_top_builddir"; then
25296       ac_top_srcdir=.
25297    else
25298       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25299    fi ;;
25300  [\\/]* | ?:[\\/]* )  # Absolute path.
25301    ac_srcdir=$srcdir$ac_dir_suffix;
25302    ac_top_srcdir=$srcdir ;;
25303  *) # Relative path.
25304    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25305    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25306esac
25307
25308# Do not use `cd foo && pwd` to compute absolute paths, because
25309# the directories may not exist.
25310case `pwd` in
25311.) ac_abs_builddir="$ac_dir";;
25312*)
25313  case "$ac_dir" in
25314  .) ac_abs_builddir=`pwd`;;
25315  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25316  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25317  esac;;
25318esac
25319case $ac_abs_builddir in
25320.) ac_abs_top_builddir=${ac_top_builddir}.;;
25321*)
25322  case ${ac_top_builddir}. in
25323  .) ac_abs_top_builddir=$ac_abs_builddir;;
25324  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25325  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25326  esac;;
25327esac
25328case $ac_abs_builddir in
25329.) ac_abs_srcdir=$ac_srcdir;;
25330*)
25331  case $ac_srcdir in
25332  .) ac_abs_srcdir=$ac_abs_builddir;;
25333  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25334  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25335  esac;;
25336esac
25337case $ac_abs_builddir in
25338.) ac_abs_top_srcdir=$ac_top_srcdir;;
25339*)
25340  case $ac_top_srcdir in
25341  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25342  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25343  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25344  esac;;
25345esac
25346
25347
25348    cd $ac_dir
25349
25350    # Check for guested configure; otherwise get Cygnus style configure.
25351    if test -f $ac_srcdir/configure.gnu; then
25352      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25353    elif test -f $ac_srcdir/configure; then
25354      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25355    elif test -f $ac_srcdir/configure.in; then
25356      ac_sub_configure=$ac_configure
25357    else
25358      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25359echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25360      ac_sub_configure=
25361    fi
25362
25363    # The recursion is here.
25364    if test -n "$ac_sub_configure"; then
25365      # Make the cache file name correct relative to the subdirectory.
25366      case $cache_file in
25367      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25368      *) # Relative path.
25369	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25370      esac
25371
25372      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25373echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25374      # The eval makes quoting arguments work.
25375      eval $ac_sub_configure $ac_sub_configure_args \
25376	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25377	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25378echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25379   { (exit 1); exit 1; }; }
25380    fi
25381
25382    cd $ac_popdir
25383  done
25384fi
25385
25386
25387if test $llvmgccwarn = yes
25388then
25389	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25390echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25391	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25392echo "$as_me: WARNING: ***** appear to be working." >&2;}
25393	{ echo "$as_me:$LINENO: WARNING: ***** " >&5
25394echo "$as_me: WARNING: ***** " >&2;}
25395	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25396echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25397	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25398echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25399	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25400echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25401fi
25402
25403