configure revision 793c5f2aa76784610730c6e7bf231c5aa5c61531
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/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 -n "`(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  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" 	$as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251  # Remove one level of quotation (which was required for Make).
252  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253  ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258  # Discard the --no-reexec flag, and continue.
259  shift
260elif test "X$1" = X--fallback-echo; then
261  # Avoid inline document here, it may be left over
262  :
263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264  # Yippee, $echo works!
265  :
266else
267  # Restart under the correct shell.
268  exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272  # used as fallback echo
273  shift
274  cat <<EOF
275$*
276EOF
277  exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290       echo_test_string="`eval $cmd`" &&
291       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292    then
293      break
294    fi
295  done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300   test "X$echo_testing_string" = "X$echo_test_string"; then
301  :
302else
303  # The Solaris, AIX, and Digital Unix default echo programs unquote
304  # backslashes.  This makes it impossible to quote backslashes using
305  #   echo "$something" | sed 's/\\/\\\\/g'
306  #
307  # So, first we look for a working echo in the user's PATH.
308
309  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310  for dir in $PATH /usr/ucb; do
311    IFS="$lt_save_ifs"
312    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315       test "X$echo_testing_string" = "X$echo_test_string"; then
316      echo="$dir/echo"
317      break
318    fi
319  done
320  IFS="$lt_save_ifs"
321
322  if test "X$echo" = Xecho; then
323    # We didn't find a better echo, so look for alternatives.
324    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326       test "X$echo_testing_string" = "X$echo_test_string"; then
327      # This shell has a builtin print -r that does the trick.
328      echo='print -r'
329    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330	 test "X$CONFIG_SHELL" != X/bin/ksh; then
331      # If we have ksh, try running configure again with it.
332      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333      export ORIGINAL_CONFIG_SHELL
334      CONFIG_SHELL=/bin/ksh
335      export CONFIG_SHELL
336      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337    else
338      # Try using printf.
339      echo='printf %s\n'
340      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342	 test "X$echo_testing_string" = "X$echo_test_string"; then
343	# Cool, printf works
344	:
345      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346	   test "X$echo_testing_string" = 'X\t' &&
347	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348	   test "X$echo_testing_string" = "X$echo_test_string"; then
349	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350	export CONFIG_SHELL
351	SHELL="$CONFIG_SHELL"
352	export SHELL
353	echo="$CONFIG_SHELL $0 --fallback-echo"
354      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355	   test "X$echo_testing_string" = 'X\t' &&
356	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357	   test "X$echo_testing_string" = "X$echo_test_string"; then
358	echo="$CONFIG_SHELL $0 --fallback-echo"
359      else
360	# maybe with a smaller string...
361	prev=:
362
363	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365	  then
366	    break
367	  fi
368	  prev="$cmd"
369	done
370
371	if test "$prev" != 'sed 50q "$0"'; then
372	  echo_test_string=`eval $prev`
373	  export echo_test_string
374	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375	else
376	  # Oops.  We lost completely, so just stick with echo.
377	  echo=echo
378	fi
379      fi
380    fi
381  fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
410ac_config_libobj_dir=.
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete.  It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.1]'
426PACKAGE_STRING='[LLVM] [1.1]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429ac_subdirs_all="$ac_subdirs_all projects/${i}"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
468ac_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 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 SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827              localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867         X"$0" : 'X\(//\)[^/]' \| \
868         X"$0" : 'X\(//\)$' \| \
869         X"$0" : 'X\(/\)' \| \
870         .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982                          [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                          [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010System types:
1011  --build=BUILD     configure for building on BUILD [guessed]
1012  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013  --target=TARGET   configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018  case $ac_init_help in
1019     short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1020   esac
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --enable-shared[=PKGS]
1027                          build shared libraries [default=yes]
1028  --enable-static[=PKGS]
1029                          build static libraries [default=yes]
1030  --enable-fast-install[=PKGS]
1031                          optimize for fast installation [default=yes]
1032  --disable-libtool-lock  avoid locking (might break parallel builds)
1033  --enable-optimized      Compile with optimizations enabled (default is NO)
1034  --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1035  --enable-spec95         Compile SPEC 95 benchmarks (default is NO)
1036  --enable-povray         Compile Povray benchmark (default is NO)
1037  --enable-precompiled_bytecode
1038                          Use pre-compiled bytecode (default is NO)
1039  --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040  --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046  --with-pic              try to use only PIC/non-PIC objects [default=use
1047                          both]
1048  --with-tags[=TAGS]
1049                          include additional configurations [automatic]
1050  --with-llvmgccdir       Location of LLVM GCC front-end
1051  --with-bcrepos          Location of Bytecode Repository
1052  --with-papi             Location of PAPI
1053
1054Some influential environment variables:
1055  CXX         C++ compiler command
1056  CXXFLAGS    C++ compiler flags
1057  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058              nonstandard directory <lib dir>
1059  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060              headers in a nonstandard directory <include dir>
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  CPP         C preprocessor
1064  CXXCPP      C++ preprocessor
1065  F77         Fortran 77 compiler command
1066  FFLAGS      Fortran 77 compiler flags
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076  # If there are subdirs, report their specific --help.
1077  ac_popdir=`pwd`
1078  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079    test -d $ac_dir || continue
1080    ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084  # A "../" for each directory in $ac_dir_suffix.
1085  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087  ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091  .)  # No --srcdir option.  We are building in place.
1092    ac_srcdir=.
1093    if test -z "$ac_top_builddir"; then
1094       ac_top_srcdir=.
1095    else
1096       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097    fi ;;
1098  [\\/]* | ?:[\\/]* )  # Absolute path.
1099    ac_srcdir=$srcdir$ac_dir_suffix;
1100    ac_top_srcdir=$srcdir ;;
1101  *) # Relative path.
1102    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112    cd $ac_dir
1113    # Check for guested configure; otherwise get Cygnus style configure.
1114    if test -f $ac_srcdir/configure.gnu; then
1115      echo
1116      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117    elif test -f $ac_srcdir/configure; then
1118      echo
1119      $SHELL $ac_srcdir/configure  --help=recursive
1120    elif test -f $ac_srcdir/configure.ac ||
1121           test -f $ac_srcdir/configure.in; then
1122      echo
1123      $ac_configure --help
1124    else
1125      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126    fi
1127    cd $ac_popdir
1128  done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133  cat <<\_ACEOF
1134[LLVM] configure [1.1]
1135generated by GNU Autoconf 2.57
1136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142  exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.1], which was
1150generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152  $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183  IFS=$as_save_IFS
1184  test -z "$as_dir" && as_dir=.
1185  echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212  for ac_arg
1213  do
1214    case $ac_arg in
1215    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217    | -silent | --silent | --silen | --sile | --sil)
1218      continue ;;
1219    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221    esac
1222    case $ac_pass in
1223    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224    2)
1225      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226      if test $ac_must_keep_next = true; then
1227        ac_must_keep_next=false # Got value, back to normal.
1228      else
1229        case $ac_arg in
1230          *=* | --config-cache | -C | -disable-* | --disable-* \
1231          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233          | -with-* | --with-* | -without-* | --without-* | --x)
1234            case "$ac_configure_args0 " in
1235              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236            esac
1237            ;;
1238          -* ) ac_must_keep_next=true ;;
1239        esac
1240      fi
1241      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242      # Get rid of the leading space.
1243      ac_sep=" "
1244      ;;
1245    esac
1246  done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log.  We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257  # Save into config.log some information that might help in debugging.
1258  {
1259    echo
1260
1261    cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266    echo
1267    # The following way of writing the cache mishandles newlines in values,
1268{
1269  (set) 2>&1 |
1270    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271    *ac_space=\ *)
1272      sed -n \
1273        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275      ;;
1276    *)
1277      sed -n \
1278        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279      ;;
1280    esac;
1281}
1282    echo
1283
1284    cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289    echo
1290    for ac_var in $ac_subst_vars
1291    do
1292      eval ac_val=$`echo $ac_var`
1293      echo "$ac_var='"'"'$ac_val'"'"'"
1294    done | sort
1295    echo
1296
1297    if test -n "$ac_subst_files"; then
1298      cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303      echo
1304      for ac_var in $ac_subst_files
1305      do
1306	eval ac_val=$`echo $ac_var`
1307        echo "$ac_var='"'"'$ac_val'"'"'"
1308      done | sort
1309      echo
1310    fi
1311
1312    if test -s confdefs.h; then
1313      cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318      echo
1319      sed "/^$/d" confdefs.h | sort
1320      echo
1321    fi
1322    test "$ac_signal" != 0 &&
1323      echo "$as_me: caught signal $ac_signal"
1324    echo "$as_me: exit $exit_status"
1325  } >&5
1326  rm -f core core.* *.core &&
1327  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328    exit $exit_status
1329     ' 0
1330for ac_signal in 1 2 13 15; do
1331  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370  if test "x$prefix" != xNONE; then
1371    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372  else
1373    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374  fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377  if test -r "$ac_site_file"; then
1378    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380    sed 's/^/| /' "$ac_site_file" >&5
1381    . "$ac_site_file"
1382  fi
1383done
1384
1385if test -r "$cache_file"; then
1386  # Some versions of bash will fail to source /dev/null (special
1387  # files actually), so we avoid doing that.
1388  if test -f "$cache_file"; then
1389    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391    case $cache_file in
1392      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393      *)                      . ./$cache_file;;
1394    esac
1395  fi
1396else
1397  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399  >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408  eval ac_new_set=\$ac_env_${ac_var}_set
1409  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410  eval ac_new_val="\$ac_env_${ac_var}_value"
1411  case $ac_old_set,$ac_new_set in
1412    set,)
1413      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415      ac_cache_corrupted=: ;;
1416    ,set)
1417      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419      ac_cache_corrupted=: ;;
1420    ,);;
1421    *)
1422      if test "x$ac_old_val" != "x$ac_new_val"; then
1423        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426echo "$as_me:   former value:  $ac_old_val" >&2;}
1427        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428echo "$as_me:   current value: $ac_new_val" >&2;}
1429        ac_cache_corrupted=:
1430      fi;;
1431  esac
1432  # Pass precious variables to config.status.
1433  if test "$ac_new_set" = set; then
1434    case $ac_new_val in
1435    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437    *) ac_arg=$ac_var=$ac_new_val ;;
1438    esac
1439    case " $ac_configure_args " in
1440      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442    esac
1443  fi
1444done
1445if $ac_cache_corrupted; then
1446  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450   { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486ac_aux_dir=
1487for ac_dir in autoconf $srcdir/autoconf; do
1488  if test -f $ac_dir/install-sh; then
1489    ac_aux_dir=$ac_dir
1490    ac_install_sh="$ac_aux_dir/install-sh -c"
1491    break
1492  elif test -f $ac_dir/install.sh; then
1493    ac_aux_dir=$ac_dir
1494    ac_install_sh="$ac_aux_dir/install.sh -c"
1495    break
1496  elif test -f $ac_dir/shtool; then
1497    ac_aux_dir=$ac_dir
1498    ac_install_sh="$ac_aux_dir/shtool install -c"
1499    break
1500  fi
1501done
1502if test -z "$ac_aux_dir"; then
1503  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505   { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512if test ${srcdir} != "."
1513then
1514	if test -f ${srcdir}/include/Config/config.h
1515	then
1516		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518   { (exit 1); exit 1; }; }
1519	fi
1520fi
1521
1522for i in `ls ${srcdir}/projects`
1523do
1524  if test ${i} != "CVS"
1525  then
1526    if test -f ${srcdir}/projects/${i}/configure
1527    then
1528
1529
1530subdirs="$subdirs projects/${i}"
1531
1532    fi
1533  fi
1534done
1535
1536          ac_config_headers="$ac_config_headers include/Config/config.h"
1537
1538          ac_config_commands="$ac_config_commands Makefile"
1539
1540
1541          ac_config_commands="$ac_config_commands Makefile.common"
1542
1543
1544          ac_config_commands="$ac_config_commands lib/Makefile"
1545
1546
1547          ac_config_commands="$ac_config_commands runtime/Makefile"
1548
1549
1550          ac_config_commands="$ac_config_commands test/Makefile"
1551
1552
1553          ac_config_commands="$ac_config_commands test/Makefile.tests"
1554
1555
1556          ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559          ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560
1561
1562          ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563
1564
1565          ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566
1567
1568          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1569
1570
1571          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572
1573
1574          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1575
1576
1577          ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1578
1579
1580          ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1581
1582
1583          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1584
1585
1586          ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1587
1588
1589          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1590
1591
1592          ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1593
1594
1595          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1596
1597
1598          ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1599
1600
1601          ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1602
1603
1604          ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1605
1606
1607          ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1608
1609
1610          ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1611
1612
1613          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1614
1615
1616          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
1619          ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
1622          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1623
1624
1625          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1626
1627
1628          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664          ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
1667          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1668
1669
1670          ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1671
1672
1673          ac_config_commands="$ac_config_commands tools/Makefile"
1674
1675
1676          ac_config_commands="$ac_config_commands utils/Makefile"
1677
1678
1679          ac_config_commands="$ac_config_commands projects/Makefile"
1680
1681
1682
1683# Find a good install program.  We prefer a C program (faster),
1684# so one script is as good as another.  But avoid the broken or
1685# incompatible versions:
1686# SysV /etc/install, /usr/sbin/install
1687# SunOS /usr/etc/install
1688# IRIX /sbin/install
1689# AIX /bin/install
1690# AmigaOS /C/install, which installs bootblocks on floppy discs
1691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1694# ./install, which can be erroneously created by make from ./install.sh.
1695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1697if test -z "$INSTALL"; then
1698if test "${ac_cv_path_install+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704  IFS=$as_save_IFS
1705  test -z "$as_dir" && as_dir=.
1706  # Account for people who put trailing slashes in PATH elements.
1707case $as_dir/ in
1708  ./ | .// | /cC/* | \
1709  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710  /usr/ucb/* ) ;;
1711  *)
1712    # OSF1 and SCO ODT 3.0 have their own names for install.
1713    # Don't use installbsd from OSF since it installs stuff as root
1714    # by default.
1715    for ac_prog in ginstall scoinst install; do
1716      for ac_exec_ext in '' $ac_executable_extensions; do
1717        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1718          if test $ac_prog = install &&
1719            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720            # AIX install.  It has an incompatible calling convention.
1721            :
1722          elif test $ac_prog = install &&
1723            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1724            # program-specific install script used by HP pwplus--don't use.
1725            :
1726          else
1727            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1728            break 3
1729          fi
1730        fi
1731      done
1732    done
1733    ;;
1734esac
1735done
1736
1737
1738fi
1739  if test "${ac_cv_path_install+set}" = set; then
1740    INSTALL=$ac_cv_path_install
1741  else
1742    # As a last resort, use the slow shell script.  We don't cache a
1743    # path for INSTALL within a source directory, because that will
1744    # break other packages using the cache if that directory is
1745    # removed, or if the path is relative.
1746    INSTALL=$ac_install_sh
1747  fi
1748fi
1749echo "$as_me:$LINENO: result: $INSTALL" >&5
1750echo "${ECHO_T}$INSTALL" >&6
1751
1752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1753# It thinks the first close brace ends the variable substitution.
1754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1755
1756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1757
1758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1759
1760
1761# Make sure we can run config.sub.
1762$ac_config_sub sun4 >/dev/null 2>&1 ||
1763  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1765   { (exit 1); exit 1; }; }
1766
1767echo "$as_me:$LINENO: checking build system type" >&5
1768echo $ECHO_N "checking build system type... $ECHO_C" >&6
1769if test "${ac_cv_build+set}" = set; then
1770  echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772  ac_cv_build_alias=$build_alias
1773test -z "$ac_cv_build_alias" &&
1774  ac_cv_build_alias=`$ac_config_guess`
1775test -z "$ac_cv_build_alias" &&
1776  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1778   { (exit 1); exit 1; }; }
1779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1780  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1782   { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1786echo "${ECHO_T}$ac_cv_build" >&6
1787build=$ac_cv_build
1788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793echo "$as_me:$LINENO: checking host system type" >&5
1794echo $ECHO_N "checking host system type... $ECHO_C" >&6
1795if test "${ac_cv_host+set}" = set; then
1796  echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798  ac_cv_host_alias=$host_alias
1799test -z "$ac_cv_host_alias" &&
1800  ac_cv_host_alias=$ac_cv_build_alias
1801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1802  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1804   { (exit 1); exit 1; }; }
1805
1806fi
1807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1808echo "${ECHO_T}$ac_cv_host" >&6
1809host=$ac_cv_host
1810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815echo "$as_me:$LINENO: checking target system type" >&5
1816echo $ECHO_N "checking target system type... $ECHO_C" >&6
1817if test "${ac_cv_target+set}" = set; then
1818  echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820  ac_cv_target_alias=$target_alias
1821test "x$ac_cv_target_alias" = "x" &&
1822  ac_cv_target_alias=$ac_cv_host_alias
1823ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1824  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1825echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1826   { (exit 1); exit 1; }; }
1827
1828fi
1829echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1830echo "${ECHO_T}$ac_cv_target" >&6
1831target=$ac_cv_target
1832target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1833target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1834target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1835
1836
1837# The aliases save the names the user supplied, while $host etc.
1838# will get canonicalized.
1839test -n "$target_alias" &&
1840  test "$program_prefix$program_suffix$program_transform_name" = \
1841    NONENONEs,x,x, &&
1842  program_prefix=${target_alias}-
1843
1844case $build in
1845	*-*-linux*)
1846             OS=Linux
1847
1848			 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1849			 then
1850			   LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1851
1852			 fi
1853	         ;;
1854
1855	*-*-solaris*)
1856             OS=SunOS
1857
1858			 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1859			 then
1860	           LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1861
1862			 fi
1863	         ;;
1864
1865	*-*-darwin*)
1866             OS=Darwin
1867
1868	         ;;
1869
1870	*)       OS=Unknown
1871
1872	         ;;
1873esac
1874
1875case $target in
1876	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1877
1878	                    ;;
1879esac
1880
1881case $target in
1882	i*86-*)           ARCH=x86
1883
1884	                  ;;
1885	sparc*-*)         ARCH=Sparc
1886
1887	                  ;;
1888	powerpc*-*)       ARCH=PowerPC
1889
1890	                  ;;
1891	*)                ARCH=Unknown
1892
1893	                  ;;
1894esac
1895
1896ac_ext=cc
1897ac_cpp='$CXXCPP $CPPFLAGS'
1898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1901if test -n "$ac_tool_prefix"; then
1902  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903  do
1904    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906echo "$as_me:$LINENO: checking for $ac_word" >&5
1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908if test "${ac_cv_prog_CXX+set}" = set; then
1909  echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911  if test -n "$CXX"; then
1912  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913else
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919  for ac_exec_ext in '' $ac_executable_extensions; do
1920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923    break 2
1924  fi
1925done
1926done
1927
1928fi
1929fi
1930CXX=$ac_cv_prog_CXX
1931if test -n "$CXX"; then
1932  echo "$as_me:$LINENO: result: $CXX" >&5
1933echo "${ECHO_T}$CXX" >&6
1934else
1935  echo "$as_me:$LINENO: result: no" >&5
1936echo "${ECHO_T}no" >&6
1937fi
1938
1939    test -n "$CXX" && break
1940  done
1941fi
1942if test -z "$CXX"; then
1943  ac_ct_CXX=$CXX
1944  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945do
1946  # Extract the first word of "$ac_prog", so it can be a program name with args.
1947set dummy $ac_prog; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1951  echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953  if test -n "$ac_ct_CXX"; then
1954  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955else
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959  IFS=$as_save_IFS
1960  test -z "$as_dir" && as_dir=.
1961  for ac_exec_ext in '' $ac_executable_extensions; do
1962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963    ac_cv_prog_ac_ct_CXX="$ac_prog"
1964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965    break 2
1966  fi
1967done
1968done
1969
1970fi
1971fi
1972ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1973if test -n "$ac_ct_CXX"; then
1974  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1975echo "${ECHO_T}$ac_ct_CXX" >&6
1976else
1977  echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981  test -n "$ac_ct_CXX" && break
1982done
1983test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1984
1985  CXX=$ac_ct_CXX
1986fi
1987
1988
1989# Provide some information about the compiler.
1990echo "$as_me:$LINENO:" \
1991     "checking for C++ compiler version" >&5
1992ac_compiler=`set X $ac_compile; echo $2`
1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994  (eval $ac_compiler --version </dev/null >&5) 2>&5
1995  ac_status=$?
1996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997  (exit $ac_status); }
1998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999  (eval $ac_compiler -v </dev/null >&5) 2>&5
2000  ac_status=$?
2001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002  (exit $ac_status); }
2003{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004  (eval $ac_compiler -V </dev/null >&5) 2>&5
2005  ac_status=$?
2006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007  (exit $ac_status); }
2008
2009cat >conftest.$ac_ext <<_ACEOF
2010#line $LINENO "configure"
2011/* confdefs.h.  */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h.  */
2016
2017int
2018main ()
2019{
2020
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025ac_clean_files_save=$ac_clean_files
2026ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027# Try to create an executable without -o first, disregard a.out.
2028# It will help us diagnose broken compilers, and finding out an intuition
2029# of exeext.
2030echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2031echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2032ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034  (eval $ac_link_default) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }; then
2038  # Find the output, starting from the most likely.  This scheme is
2039# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040# resort.
2041
2042# Be careful to initialize this variable, since it used to be cached.
2043# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044ac_cv_exeext=
2045# b.out is created by i960 compilers.
2046for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047do
2048  test -f "$ac_file" || continue
2049  case $ac_file in
2050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2051        ;;
2052    conftest.$ac_ext )
2053        # This is the source file.
2054        ;;
2055    [ab].out )
2056        # We found the default executable, but exeext='' is most
2057        # certainly right.
2058        break;;
2059    *.* )
2060        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061        # FIXME: I believe we export ac_cv_exeext for Libtool,
2062        # but it would be cool to find out if it's true.  Does anybody
2063        # maintain Libtool? --akim.
2064        export ac_cv_exeext
2065        break;;
2066    * )
2067        break;;
2068  esac
2069done
2070else
2071  echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: C++ compiler cannot create executables
2077See \`config.log' for more details." >&2;}
2078   { (exit 77); exit 77; }; }
2079fi
2080
2081ac_exeext=$ac_cv_exeext
2082echo "$as_me:$LINENO: result: $ac_file" >&5
2083echo "${ECHO_T}$ac_file" >&6
2084
2085# Check the compiler produces executables we can run.  If not, either
2086# the compiler is broken, or we cross compile.
2087echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2088echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2089# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090# If not cross compiling, check that we can run a simple program.
2091if test "$cross_compiling" != yes; then
2092  if { ac_try='./$ac_file'
2093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094  (eval $ac_try) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; }; then
2098    cross_compiling=no
2099  else
2100    if test "$cross_compiling" = maybe; then
2101	cross_compiling=yes
2102    else
2103	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2104If you meant to cross compile, use \`--host'.
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: cannot run C++ compiled programs.
2107If you meant to cross compile, use \`--host'.
2108See \`config.log' for more details." >&2;}
2109   { (exit 1); exit 1; }; }
2110    fi
2111  fi
2112fi
2113echo "$as_me:$LINENO: result: yes" >&5
2114echo "${ECHO_T}yes" >&6
2115
2116rm -f a.out a.exe conftest$ac_cv_exeext b.out
2117ac_clean_files=$ac_clean_files_save
2118# Check the compiler produces executables we can run.  If not, either
2119# the compiler is broken, or we cross compile.
2120echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123echo "${ECHO_T}$cross_compiling" >&6
2124
2125echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128  (eval $ac_link) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }; then
2132  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2134# work properly (i.e., refer to `conftest.exe'), while it won't with
2135# `rm'.
2136for ac_file in conftest.exe conftest conftest.*; do
2137  test -f "$ac_file" || continue
2138  case $ac_file in
2139    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2140    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141          export ac_cv_exeext
2142          break;;
2143    * ) break;;
2144  esac
2145done
2146else
2147  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152fi
2153
2154rm -f conftest$ac_cv_exeext
2155echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156echo "${ECHO_T}$ac_cv_exeext" >&6
2157
2158rm -f conftest.$ac_ext
2159EXEEXT=$ac_cv_exeext
2160ac_exeext=$EXEEXT
2161echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163if test "${ac_cv_objext+set}" = set; then
2164  echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166  cat >conftest.$ac_ext <<_ACEOF
2167#line $LINENO "configure"
2168/* confdefs.h.  */
2169_ACEOF
2170cat confdefs.h >>conftest.$ac_ext
2171cat >>conftest.$ac_ext <<_ACEOF
2172/* end confdefs.h.  */
2173
2174int
2175main ()
2176{
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182rm -f conftest.o conftest.obj
2183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184  (eval $ac_compile) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }; then
2188  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189  case $ac_file in
2190    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2191    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2192       break;;
2193  esac
2194done
2195else
2196  echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: cannot compute suffix of object files: cannot compile
2202See \`config.log' for more details." >&2;}
2203   { (exit 1); exit 1; }; }
2204fi
2205
2206rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207fi
2208echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209echo "${ECHO_T}$ac_cv_objext" >&6
2210OBJEXT=$ac_cv_objext
2211ac_objext=$OBJEXT
2212echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2213echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2214if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2215  echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217  cat >conftest.$ac_ext <<_ACEOF
2218#line $LINENO "configure"
2219/* confdefs.h.  */
2220_ACEOF
2221cat confdefs.h >>conftest.$ac_ext
2222cat >>conftest.$ac_ext <<_ACEOF
2223/* end confdefs.h.  */
2224
2225int
2226main ()
2227{
2228#ifndef __GNUC__
2229       choke me
2230#endif
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); } &&
2242         { ac_try='test -s conftest.$ac_objext'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; }; then
2248  ac_compiler_gnu=yes
2249else
2250  echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253ac_compiler_gnu=no
2254fi
2255rm -f conftest.$ac_objext conftest.$ac_ext
2256ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2257
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2260echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2261GXX=`test $ac_compiler_gnu = yes && echo yes`
2262ac_test_CXXFLAGS=${CXXFLAGS+set}
2263ac_save_CXXFLAGS=$CXXFLAGS
2264CXXFLAGS="-g"
2265echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2266echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2267if test "${ac_cv_prog_cxx_g+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270  cat >conftest.$ac_ext <<_ACEOF
2271#line $LINENO "configure"
2272/* confdefs.h.  */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h.  */
2277
2278int
2279main ()
2280{
2281
2282  ;
2283  return 0;
2284}
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288  (eval $ac_compile) 2>&5
2289  ac_status=$?
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); } &&
2292         { ac_try='test -s conftest.$ac_objext'
2293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294  (eval $ac_try) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; }; then
2298  ac_cv_prog_cxx_g=yes
2299else
2300  echo "$as_me: failed program was:" >&5
2301sed 's/^/| /' conftest.$ac_ext >&5
2302
2303ac_cv_prog_cxx_g=no
2304fi
2305rm -f conftest.$ac_objext conftest.$ac_ext
2306fi
2307echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2308echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2309if test "$ac_test_CXXFLAGS" = set; then
2310  CXXFLAGS=$ac_save_CXXFLAGS
2311elif test $ac_cv_prog_cxx_g = yes; then
2312  if test "$GXX" = yes; then
2313    CXXFLAGS="-g -O2"
2314  else
2315    CXXFLAGS="-g"
2316  fi
2317else
2318  if test "$GXX" = yes; then
2319    CXXFLAGS="-O2"
2320  else
2321    CXXFLAGS=
2322  fi
2323fi
2324for ac_declaration in \
2325   ''\
2326   '#include <stdlib.h>' \
2327   'extern "C" void std::exit (int) throw (); using std::exit;' \
2328   'extern "C" void std::exit (int); using std::exit;' \
2329   'extern "C" void exit (int) throw ();' \
2330   'extern "C" void exit (int);' \
2331   'void exit (int);'
2332do
2333  cat >conftest.$ac_ext <<_ACEOF
2334#line $LINENO "configure"
2335/* confdefs.h.  */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h.  */
2340#include <stdlib.h>
2341$ac_declaration
2342int
2343main ()
2344{
2345exit (42);
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350rm -f conftest.$ac_objext
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352  (eval $ac_compile) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); } &&
2356         { ac_try='test -s conftest.$ac_objext'
2357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358  (eval $ac_try) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; }; then
2362  :
2363else
2364  echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367continue
2368fi
2369rm -f conftest.$ac_objext conftest.$ac_ext
2370  cat >conftest.$ac_ext <<_ACEOF
2371#line $LINENO "configure"
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377$ac_declaration
2378int
2379main ()
2380{
2381exit (42);
2382  ;
2383  return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388  (eval $ac_compile) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424if test -n "$ac_tool_prefix"; then
2425  for ac_prog in gcc
2426  do
2427    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431if test "${ac_cv_prog_CC+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  if test -n "$CC"; then
2435  ac_cv_prog_CC="$CC" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442  for ac_exec_ext in '' $ac_executable_extensions; do
2443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446    break 2
2447  fi
2448done
2449done
2450
2451fi
2452fi
2453CC=$ac_cv_prog_CC
2454if test -n "$CC"; then
2455  echo "$as_me:$LINENO: result: $CC" >&5
2456echo "${ECHO_T}$CC" >&6
2457else
2458  echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460fi
2461
2462    test -n "$CC" && break
2463  done
2464fi
2465if test -z "$CC"; then
2466  ac_ct_CC=$CC
2467  for ac_prog in gcc
2468do
2469  # Extract the first word of "$ac_prog", so it can be a program name with args.
2470set dummy $ac_prog; ac_word=$2
2471echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  if test -n "$ac_ct_CC"; then
2477  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482  IFS=$as_save_IFS
2483  test -z "$as_dir" && as_dir=.
2484  for ac_exec_ext in '' $ac_executable_extensions; do
2485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486    ac_cv_prog_ac_ct_CC="$ac_prog"
2487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488    break 2
2489  fi
2490done
2491done
2492
2493fi
2494fi
2495ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496if test -n "$ac_ct_CC"; then
2497  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498echo "${ECHO_T}$ac_ct_CC" >&6
2499else
2500  echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6
2502fi
2503
2504  test -n "$ac_ct_CC" && break
2505done
2506
2507  CC=$ac_ct_CC
2508fi
2509
2510
2511test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2512See \`config.log' for more details." >&5
2513echo "$as_me: error: no acceptable C compiler found in \$PATH
2514See \`config.log' for more details." >&2;}
2515   { (exit 1); exit 1; }; }
2516
2517# Provide some information about the compiler.
2518echo "$as_me:$LINENO:" \
2519     "checking for C compiler version" >&5
2520ac_compiler=`set X $ac_compile; echo $2`
2521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2522  (eval $ac_compiler --version </dev/null >&5) 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }
2526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2527  (eval $ac_compiler -v </dev/null >&5) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }
2531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2532  (eval $ac_compiler -V </dev/null >&5) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }
2536
2537echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2539if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540  echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542  cat >conftest.$ac_ext <<_ACEOF
2543#line $LINENO "configure"
2544/* confdefs.h.  */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h.  */
2549
2550int
2551main ()
2552{
2553#ifndef __GNUC__
2554       choke me
2555#endif
2556
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563  (eval $ac_compile) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); } &&
2567         { ac_try='test -s conftest.$ac_objext'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; }; then
2573  ac_compiler_gnu=yes
2574else
2575  echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578ac_compiler_gnu=no
2579fi
2580rm -f conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586GCC=`test $ac_compiler_gnu = yes && echo yes`
2587ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS
2589CFLAGS="-g"
2590echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_g+set}" = set; then
2593  echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595  cat >conftest.$ac_ext <<_ACEOF
2596#line $LINENO "configure"
2597/* confdefs.h.  */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h.  */
2602
2603int
2604main ()
2605{
2606
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } &&
2617         { ac_try='test -s conftest.$ac_objext'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; }; then
2623  ac_cv_prog_cc_g=yes
2624else
2625  echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628ac_cv_prog_cc_g=no
2629fi
2630rm -f conftest.$ac_objext conftest.$ac_ext
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2634if test "$ac_test_CFLAGS" = set; then
2635  CFLAGS=$ac_save_CFLAGS
2636elif test $ac_cv_prog_cc_g = yes; then
2637  if test "$GCC" = yes; then
2638    CFLAGS="-g -O2"
2639  else
2640    CFLAGS="-g"
2641  fi
2642else
2643  if test "$GCC" = yes; then
2644    CFLAGS="-O2"
2645  else
2646    CFLAGS=
2647  fi
2648fi
2649echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2650echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2651if test "${ac_cv_prog_cc_stdc+set}" = set; then
2652  echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654  ac_cv_prog_cc_stdc=no
2655ac_save_CC=$CC
2656cat >conftest.$ac_ext <<_ACEOF
2657#line $LINENO "configure"
2658/* confdefs.h.  */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h.  */
2663#include <stdarg.h>
2664#include <stdio.h>
2665#include <sys/types.h>
2666#include <sys/stat.h>
2667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2668struct buf { int x; };
2669FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670static char *e (p, i)
2671     char **p;
2672     int i;
2673{
2674  return p[i];
2675}
2676static char *f (char * (*g) (char **, int), char **p, ...)
2677{
2678  char *s;
2679  va_list v;
2680  va_start (v,p);
2681  s = g (p, va_arg (v,int));
2682  va_end (v);
2683  return s;
2684}
2685int test (int i, double x);
2686struct s1 {int (*f) (int a);};
2687struct s2 {int (*f) (double a);};
2688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689int argc;
2690char **argv;
2691int
2692main ()
2693{
2694return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699# Don't try gcc -ansi; that turns off useful extensions and
2700# breaks some systems' header files.
2701# AIX			-qlanglvl=ansi
2702# Ultrix and OSF/1	-std1
2703# HP-UX 10.20 and later	-Ae
2704# HP-UX older versions	-Aa -D_HPUX_SOURCE
2705# SVR4			-Xc -D__EXTENSIONS__
2706for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707do
2708  CC="$ac_save_CC $ac_arg"
2709  rm -f conftest.$ac_objext
2710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711  (eval $ac_compile) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); } &&
2715         { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  ac_cv_prog_cc_stdc=$ac_arg
2722break
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.$ac_objext
2729done
2730rm -f conftest.$ac_ext conftest.$ac_objext
2731CC=$ac_save_CC
2732
2733fi
2734
2735case "x$ac_cv_prog_cc_stdc" in
2736  x|xno)
2737    echo "$as_me:$LINENO: result: none needed" >&5
2738echo "${ECHO_T}none needed" >&6 ;;
2739  *)
2740    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2741echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2742    CC="$CC $ac_cv_prog_cc_stdc" ;;
2743esac
2744
2745# Some people use a C++ compiler to compile C.  Since we use `exit',
2746# in C++ we need to declare it.  In case someone uses the same compiler
2747# for both compiling C and C++ we need to have the C++ compiler decide
2748# the declaration of exit, since it's the most demanding environment.
2749cat >conftest.$ac_ext <<_ACEOF
2750#ifndef __cplusplus
2751  choke me
2752#endif
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756  (eval $ac_compile) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); } &&
2760         { ac_try='test -s conftest.$ac_objext'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; }; then
2766  for ac_declaration in \
2767   ''\
2768   '#include <stdlib.h>' \
2769   'extern "C" void std::exit (int) throw (); using std::exit;' \
2770   'extern "C" void std::exit (int); using std::exit;' \
2771   'extern "C" void exit (int) throw ();' \
2772   'extern "C" void exit (int);' \
2773   'void exit (int);'
2774do
2775  cat >conftest.$ac_ext <<_ACEOF
2776#line $LINENO "configure"
2777/* confdefs.h.  */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h.  */
2782#include <stdlib.h>
2783$ac_declaration
2784int
2785main ()
2786{
2787exit (42);
2788  ;
2789  return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext
2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794  (eval $ac_compile) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); } &&
2798         { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  :
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809continue
2810fi
2811rm -f conftest.$ac_objext conftest.$ac_ext
2812  cat >conftest.$ac_ext <<_ACEOF
2813#line $LINENO "configure"
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819$ac_declaration
2820int
2821main ()
2822{
2823exit (42);
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830  (eval $ac_compile) 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); } &&
2834         { ac_try='test -s conftest.$ac_objext'
2835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836  (eval $ac_try) 2>&5
2837  ac_status=$?
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); }; }; then
2840  break
2841else
2842  echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845fi
2846rm -f conftest.$ac_objext conftest.$ac_ext
2847done
2848rm -f conftest*
2849if test -n "$ac_declaration"; then
2850  echo '#ifdef __cplusplus' >>confdefs.h
2851  echo $ac_declaration      >>confdefs.h
2852  echo '#endif'             >>confdefs.h
2853fi
2854
2855else
2856  echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859fi
2860rm -f conftest.$ac_objext conftest.$ac_ext
2861ac_ext=c
2862ac_cpp='$CPP $CPPFLAGS'
2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867ac_ext=c
2868ac_cpp='$CPP $CPPFLAGS'
2869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2873echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2874# On Suns, sometimes $CPP names a directory.
2875if test -n "$CPP" && test -d "$CPP"; then
2876  CPP=
2877fi
2878if test -z "$CPP"; then
2879  if test "${ac_cv_prog_CPP+set}" = set; then
2880  echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882      # Double quotes because CPP needs to be expanded
2883    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2884    do
2885      ac_preproc_ok=false
2886for ac_c_preproc_warn_flag in '' yes
2887do
2888  # Use a header file that comes with gcc, so configuring glibc
2889  # with a fresh cross-compiler works.
2890  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891  # <limits.h> exists even on freestanding compilers.
2892  # On the NeXT, cc -E runs the code through the compiler's parser,
2893  # not just through cpp. "Syntax error" is here to catch this case.
2894  cat >conftest.$ac_ext <<_ACEOF
2895#line $LINENO "configure"
2896/* confdefs.h.  */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h.  */
2901#ifdef __STDC__
2902# include <limits.h>
2903#else
2904# include <assert.h>
2905#endif
2906                     Syntax error
2907_ACEOF
2908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910  ac_status=$?
2911  grep -v '^ *+' conftest.er1 >conftest.err
2912  rm -f conftest.er1
2913  cat conftest.err >&5
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); } >/dev/null; then
2916  if test -s conftest.err; then
2917    ac_cpp_err=$ac_c_preproc_warn_flag
2918  else
2919    ac_cpp_err=
2920  fi
2921else
2922  ac_cpp_err=yes
2923fi
2924if test -z "$ac_cpp_err"; then
2925  :
2926else
2927  echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930  # Broken: fails on valid input.
2931continue
2932fi
2933rm -f conftest.err conftest.$ac_ext
2934
2935  # OK, works on sane cases.  Now check whether non-existent headers
2936  # can be detected and how.
2937  cat >conftest.$ac_ext <<_ACEOF
2938#line $LINENO "configure"
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944#include <ac_nonexistent.h>
2945_ACEOF
2946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948  ac_status=$?
2949  grep -v '^ *+' conftest.er1 >conftest.err
2950  rm -f conftest.er1
2951  cat conftest.err >&5
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); } >/dev/null; then
2954  if test -s conftest.err; then
2955    ac_cpp_err=$ac_c_preproc_warn_flag
2956  else
2957    ac_cpp_err=
2958  fi
2959else
2960  ac_cpp_err=yes
2961fi
2962if test -z "$ac_cpp_err"; then
2963  # Broken: success on invalid input.
2964continue
2965else
2966  echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969  # Passes both tests.
2970ac_preproc_ok=:
2971break
2972fi
2973rm -f conftest.err conftest.$ac_ext
2974
2975done
2976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2977rm -f conftest.err conftest.$ac_ext
2978if $ac_preproc_ok; then
2979  break
2980fi
2981
2982    done
2983    ac_cv_prog_CPP=$CPP
2984
2985fi
2986  CPP=$ac_cv_prog_CPP
2987else
2988  ac_cv_prog_CPP=$CPP
2989fi
2990echo "$as_me:$LINENO: result: $CPP" >&5
2991echo "${ECHO_T}$CPP" >&6
2992ac_preproc_ok=false
2993for ac_c_preproc_warn_flag in '' yes
2994do
2995  # Use a header file that comes with gcc, so configuring glibc
2996  # with a fresh cross-compiler works.
2997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998  # <limits.h> exists even on freestanding compilers.
2999  # On the NeXT, cc -E runs the code through the compiler's parser,
3000  # not just through cpp. "Syntax error" is here to catch this case.
3001  cat >conftest.$ac_ext <<_ACEOF
3002#line $LINENO "configure"
3003/* confdefs.h.  */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h.  */
3008#ifdef __STDC__
3009# include <limits.h>
3010#else
3011# include <assert.h>
3012#endif
3013                     Syntax error
3014_ACEOF
3015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017  ac_status=$?
3018  grep -v '^ *+' conftest.er1 >conftest.err
3019  rm -f conftest.er1
3020  cat conftest.err >&5
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); } >/dev/null; then
3023  if test -s conftest.err; then
3024    ac_cpp_err=$ac_c_preproc_warn_flag
3025  else
3026    ac_cpp_err=
3027  fi
3028else
3029  ac_cpp_err=yes
3030fi
3031if test -z "$ac_cpp_err"; then
3032  :
3033else
3034  echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037  # Broken: fails on valid input.
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_ext
3041
3042  # OK, works on sane cases.  Now check whether non-existent headers
3043  # can be detected and how.
3044  cat >conftest.$ac_ext <<_ACEOF
3045#line $LINENO "configure"
3046/* confdefs.h.  */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h.  */
3051#include <ac_nonexistent.h>
3052_ACEOF
3053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055  ac_status=$?
3056  grep -v '^ *+' conftest.er1 >conftest.err
3057  rm -f conftest.er1
3058  cat conftest.err >&5
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); } >/dev/null; then
3061  if test -s conftest.err; then
3062    ac_cpp_err=$ac_c_preproc_warn_flag
3063  else
3064    ac_cpp_err=
3065  fi
3066else
3067  ac_cpp_err=yes
3068fi
3069if test -z "$ac_cpp_err"; then
3070  # Broken: success on invalid input.
3071continue
3072else
3073  echo "$as_me: failed program was:" >&5
3074sed 's/^/| /' conftest.$ac_ext >&5
3075
3076  # Passes both tests.
3077ac_preproc_ok=:
3078break
3079fi
3080rm -f conftest.err conftest.$ac_ext
3081
3082done
3083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084rm -f conftest.err conftest.$ac_ext
3085if $ac_preproc_ok; then
3086  :
3087else
3088  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3089See \`config.log' for more details." >&5
3090echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3091See \`config.log' for more details." >&2;}
3092   { (exit 1); exit 1; }; }
3093fi
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102if test "$GCC" != "yes"
3103then
3104	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3105echo "$as_me: error: gcc required but not found" >&2;}
3106   { (exit 1); exit 1; }; }
3107fi
3108if test "$GXX" != "yes"
3109then
3110	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111echo "$as_me: error: g++ required but not found" >&2;}
3112   { (exit 1); exit 1; }; }
3113fi
3114
3115gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116if test "$gccmajor" -lt "3"
3117then
3118	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3119echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3120   { (exit 1); exit 1; }; }
3121fi
3122
3123 echo "$as_me:$LINENO: checking for GNU make" >&5
3124echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125if test "${_cv_gnu_make_command+set}" = set; then
3126  echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128  _cv_gnu_make_command='' ;
3129                for a in "$MAKE" make gmake gnumake ; do
3130                        if test -z "$a" ; then continue ; fi ;
3131                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3132                                _cv_gnu_make_command=$a ;
3133                                break;
3134                        fi
3135                done ;
3136
3137fi
3138echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140        if test  "x$_cv_gnu_make_command" != "x"  ; then
3141                ifGNUmake='' ;
3142        else
3143                ifGNUmake='#' ;
3144                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145echo "${ECHO_T}\"Not found\"" >&6;
3146        fi
3147
3148
3149if test -z "$_cv_gnu_make_command"
3150then
3151	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152echo "$as_me: error: GNU Make required but not found" >&2;}
3153   { (exit 1); exit 1; }; }
3154fi
3155
3156
3157echo "$as_me:$LINENO: checking " >&5
3158echo $ECHO_N "checking ... $ECHO_C" >&6
3159if test "${ac_cv_has_flex+set}" = set; then
3160  echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162  for ac_prog in flex lex
3163do
3164  # Extract the first word of "$ac_prog", so it can be a program name with args.
3165set dummy $ac_prog; ac_word=$2
3166echo "$as_me:$LINENO: checking for $ac_word" >&5
3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168if test "${ac_cv_prog_LEX+set}" = set; then
3169  echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171  if test -n "$LEX"; then
3172  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179  for ac_exec_ext in '' $ac_executable_extensions; do
3180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181    ac_cv_prog_LEX="$ac_prog"
3182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183    break 2
3184  fi
3185done
3186done
3187
3188fi
3189fi
3190LEX=$ac_cv_prog_LEX
3191if test -n "$LEX"; then
3192  echo "$as_me:$LINENO: result: $LEX" >&5
3193echo "${ECHO_T}$LEX" >&6
3194else
3195  echo "$as_me:$LINENO: result: no" >&5
3196echo "${ECHO_T}no" >&6
3197fi
3198
3199  test -n "$LEX" && break
3200done
3201test -n "$LEX" || LEX=":"
3202
3203if test -z "$LEXLIB"
3204then
3205  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208  echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210  ac_check_lib_save_LIBS=$LIBS
3211LIBS="-lfl  $LIBS"
3212cat >conftest.$ac_ext <<_ACEOF
3213#line $LINENO "configure"
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220/* Override any gcc2 internal prototype to avoid an error.  */
3221#ifdef __cplusplus
3222extern "C"
3223#endif
3224/* We use char because int might match the return type of a gcc2
3225   builtin and then its argument prototype would still apply.  */
3226char yywrap ();
3227int
3228main ()
3229{
3230yywrap ();
3231  ;
3232  return 0;
3233}
3234_ACEOF
3235rm -f conftest.$ac_objext conftest$ac_exeext
3236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237  (eval $ac_link) 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); } &&
3241         { ac_try='test -s conftest$ac_exeext'
3242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243  (eval $ac_try) 2>&5
3244  ac_status=$?
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); }; }; then
3247  ac_cv_lib_fl_yywrap=yes
3248else
3249  echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
3251
3252ac_cv_lib_fl_yywrap=no
3253fi
3254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255LIBS=$ac_check_lib_save_LIBS
3256fi
3257echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259if test $ac_cv_lib_fl_yywrap = yes; then
3260  LEXLIB="-lfl"
3261else
3262  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265  echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267  ac_check_lib_save_LIBS=$LIBS
3268LIBS="-ll  $LIBS"
3269cat >conftest.$ac_ext <<_ACEOF
3270#line $LINENO "configure"
3271/* confdefs.h.  */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h.  */
3276
3277/* Override any gcc2 internal prototype to avoid an error.  */
3278#ifdef __cplusplus
3279extern "C"
3280#endif
3281/* We use char because int might match the return type of a gcc2
3282   builtin and then its argument prototype would still apply.  */
3283char yywrap ();
3284int
3285main ()
3286{
3287yywrap ();
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext conftest$ac_exeext
3293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294  (eval $ac_link) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); } &&
3298         { ac_try='test -s conftest$ac_exeext'
3299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300  (eval $ac_try) 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; }; then
3304  ac_cv_lib_l_yywrap=yes
3305else
3306  echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309ac_cv_lib_l_yywrap=no
3310fi
3311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312LIBS=$ac_check_lib_save_LIBS
3313fi
3314echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316if test $ac_cv_lib_l_yywrap = yes; then
3317  LEXLIB="-ll"
3318fi
3319
3320fi
3321
3322fi
3323
3324if test "x$LEX" != "x:"; then
3325  echo "$as_me:$LINENO: checking lex output file root" >&5
3326echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327if test "${ac_cv_prog_lex_root+set}" = set; then
3328  echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330  # The minimal lex program is just a single line: %%.  But some broken lexes
3331# (Solaris, I think it was) want two %% lines, so accommodate them.
3332cat >conftest.l <<_ACEOF
3333%%
3334%%
3335_ACEOF
3336{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337  (eval $LEX conftest.l) 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }
3341if test -f lex.yy.c; then
3342  ac_cv_prog_lex_root=lex.yy
3343elif test -f lexyy.c; then
3344  ac_cv_prog_lex_root=lexyy
3345else
3346  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348   { (exit 1); exit 1; }; }
3349fi
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353rm -f conftest.l
3354LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355
3356echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  # POSIX says lex can declare yytext either as a pointer or an array; the
3362# default is implementation-dependent. Figure out which it is, since
3363# not all implementations provide the %pointer and %array declarations.
3364ac_cv_prog_lex_yytext_pointer=no
3365echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366ac_save_LIBS=$LIBS
3367LIBS="$LIBS $LEXLIB"
3368cat >conftest.$ac_ext <<_ACEOF
3369`cat $LEX_OUTPUT_ROOT.c`
3370_ACEOF
3371rm -f conftest.$ac_objext conftest$ac_exeext
3372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373  (eval $ac_link) 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); } &&
3377         { ac_try='test -s conftest$ac_exeext'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; }; then
3383  ac_cv_prog_lex_yytext_pointer=yes
3384else
3385  echo "$as_me: failed program was:" >&5
3386sed 's/^/| /' conftest.$ac_ext >&5
3387
3388fi
3389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390LIBS=$ac_save_LIBS
3391rm -f "${LEX_OUTPUT_ROOT}.c"
3392
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397
3398cat >>confdefs.h <<\_ACEOF
3399#define YYTEXT_POINTER 1
3400_ACEOF
3401
3402fi
3403
3404fi
3405
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408echo "${ECHO_T}$ac_cv_has_flex" >&6
3409if test "$LEX" != "flex"; then
3410  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411echo "$as_me: error: flex not found but required" >&2;}
3412   { (exit 1); exit 1; }; }
3413fi
3414
3415echo "$as_me:$LINENO: checking " >&5
3416echo $ECHO_N "checking ... $ECHO_C" >&6
3417if test "${ac_cv_has_bison+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  for ac_prog in 'bison -y' byacc
3421do
3422  # Extract the first word of "$ac_prog", so it can be a program name with args.
3423set dummy $ac_prog; ac_word=$2
3424echo "$as_me:$LINENO: checking for $ac_word" >&5
3425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426if test "${ac_cv_prog_YACC+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429  if test -n "$YACC"; then
3430  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435  IFS=$as_save_IFS
3436  test -z "$as_dir" && as_dir=.
3437  for ac_exec_ext in '' $ac_executable_extensions; do
3438  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439    ac_cv_prog_YACC="$ac_prog"
3440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441    break 2
3442  fi
3443done
3444done
3445
3446fi
3447fi
3448YACC=$ac_cv_prog_YACC
3449if test -n "$YACC"; then
3450  echo "$as_me:$LINENO: result: $YACC" >&5
3451echo "${ECHO_T}$YACC" >&6
3452else
3453  echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455fi
3456
3457  test -n "$YACC" && break
3458done
3459test -n "$YACC" || YACC="yacc"
3460
3461
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464echo "${ECHO_T}$ac_cv_has_bison" >&6
3465if test "$YACC" != "bison -y"; then
3466  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467echo "$as_me: error: bison not found but required" >&2;}
3468   { (exit 1); exit 1; }; }
3469else
3470  BISON=bison
3471
3472fi
3473
3474# Check whether --enable-shared or --disable-shared was given.
3475if test "${enable_shared+set}" = set; then
3476  enableval="$enable_shared"
3477  p=${PACKAGE-default}
3478    case $enableval in
3479    yes) enable_shared=yes ;;
3480    no) enable_shared=no ;;
3481    *)
3482      enable_shared=no
3483      # Look at the argument we got.  We use all the common list separators.
3484      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3485      for pkg in $enableval; do
3486	IFS="$lt_save_ifs"
3487	if test "X$pkg" = "X$p"; then
3488	  enable_shared=yes
3489	fi
3490      done
3491      IFS="$lt_save_ifs"
3492      ;;
3493    esac
3494else
3495  enable_shared=yes
3496fi;
3497
3498# Check whether --enable-static or --disable-static was given.
3499if test "${enable_static+set}" = set; then
3500  enableval="$enable_static"
3501  p=${PACKAGE-default}
3502    case $enableval in
3503    yes) enable_static=yes ;;
3504    no) enable_static=no ;;
3505    *)
3506     enable_static=no
3507      # Look at the argument we got.  We use all the common list separators.
3508      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3509      for pkg in $enableval; do
3510	IFS="$lt_save_ifs"
3511	if test "X$pkg" = "X$p"; then
3512	  enable_static=yes
3513	fi
3514      done
3515      IFS="$lt_save_ifs"
3516      ;;
3517    esac
3518else
3519  enable_static=yes
3520fi;
3521
3522# Check whether --enable-fast-install or --disable-fast-install was given.
3523if test "${enable_fast_install+set}" = set; then
3524  enableval="$enable_fast_install"
3525  p=${PACKAGE-default}
3526    case $enableval in
3527    yes) enable_fast_install=yes ;;
3528    no) enable_fast_install=no ;;
3529    *)
3530      enable_fast_install=no
3531      # Look at the argument we got.  We use all the common list separators.
3532      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533      for pkg in $enableval; do
3534	IFS="$lt_save_ifs"
3535	if test "X$pkg" = "X$p"; then
3536	  enable_fast_install=yes
3537	fi
3538      done
3539      IFS="$lt_save_ifs"
3540      ;;
3541    esac
3542else
3543  enable_fast_install=yes
3544fi;
3545
3546echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3547echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3548if test "${lt_cv_path_SED+set}" = set; then
3549  echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551  # Loop through the user's path and test for sed and gsed.
3552# Then use that list of sed's as ones to test for truncation.
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556  IFS=$as_save_IFS
3557  test -z "$as_dir" && as_dir=.
3558  for lt_ac_prog in sed gsed; do
3559    for ac_exec_ext in '' $ac_executable_extensions; do
3560      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3561        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3562      fi
3563    done
3564  done
3565done
3566lt_ac_max=0
3567lt_ac_count=0
3568# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3569# along with /bin/sed that truncates output.
3570for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3571  test ! -f $lt_ac_sed && break
3572  cat /dev/null > conftest.in
3573  lt_ac_count=0
3574  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3575  # Check for GNU sed and select it if it is found.
3576  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3577    lt_cv_path_SED=$lt_ac_sed
3578    break
3579  fi
3580  while true; do
3581    cat conftest.in conftest.in >conftest.tmp
3582    mv conftest.tmp conftest.in
3583    cp conftest.in conftest.nl
3584    echo >>conftest.nl
3585    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3586    cmp -s conftest.out conftest.nl || break
3587    # 10000 chars as input seems more than enough
3588    test $lt_ac_count -gt 10 && break
3589    lt_ac_count=`expr $lt_ac_count + 1`
3590    if test $lt_ac_count -gt $lt_ac_max; then
3591      lt_ac_max=$lt_ac_count
3592      lt_cv_path_SED=$lt_ac_sed
3593    fi
3594  done
3595done
3596SED=$lt_cv_path_SED
3597
3598fi
3599
3600echo "$as_me:$LINENO: result: $SED" >&5
3601echo "${ECHO_T}$SED" >&6
3602
3603echo "$as_me:$LINENO: checking for egrep" >&5
3604echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3605if test "${ac_cv_prog_egrep+set}" = set; then
3606  echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3609    then ac_cv_prog_egrep='grep -E'
3610    else ac_cv_prog_egrep='egrep'
3611    fi
3612fi
3613echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3614echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3615 EGREP=$ac_cv_prog_egrep
3616
3617
3618
3619# Check whether --with-gnu-ld or --without-gnu-ld was given.
3620if test "${with_gnu_ld+set}" = set; then
3621  withval="$with_gnu_ld"
3622  test "$withval" = no || with_gnu_ld=yes
3623else
3624  with_gnu_ld=no
3625fi;
3626ac_prog=ld
3627if test "$GCC" = yes; then
3628  # Check if gcc -print-prog-name=ld gives a path.
3629  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3630echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3631  case $host in
3632  *-*-mingw*)
3633    # gcc leaves a trailing carriage return which upsets mingw
3634    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3635  *)
3636    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3637  esac
3638  case $ac_prog in
3639    # Accept absolute paths.
3640    [\\/]* | ?:[\\/]*)
3641      re_direlt='/[^/][^/]*/\.\./'
3642      # Canonicalize the path of ld
3643      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3644      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3645	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3646      done
3647      test -z "$LD" && LD="$ac_prog"
3648      ;;
3649  "")
3650    # If it fails, then pretend we aren't using GCC.
3651    ac_prog=ld
3652    ;;
3653  *)
3654    # If it is relative, then search for the first ld in PATH.
3655    with_gnu_ld=unknown
3656    ;;
3657  esac
3658elif test "$with_gnu_ld" = yes; then
3659  echo "$as_me:$LINENO: checking for GNU ld" >&5
3660echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3661else
3662  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3663echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3664fi
3665if test "${lt_cv_path_LD+set}" = set; then
3666  echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668  if test -z "$LD"; then
3669  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3670  for ac_dir in $PATH; do
3671    IFS="$lt_save_ifs"
3672    test -z "$ac_dir" && ac_dir=.
3673    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3674      lt_cv_path_LD="$ac_dir/$ac_prog"
3675      # Check to see if the program is GNU ld.  I'd rather use --version,
3676      # but apparently some GNU ld's only accept -v.
3677      # Break only if it was the GNU/non-GNU ld that we prefer.
3678      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3679      *GNU* | *'with BFD'*)
3680	test "$with_gnu_ld" != no && break
3681	;;
3682      *)
3683	test "$with_gnu_ld" != yes && break
3684	;;
3685      esac
3686    fi
3687  done
3688  IFS="$lt_save_ifs"
3689else
3690  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3691fi
3692fi
3693
3694LD="$lt_cv_path_LD"
3695if test -n "$LD"; then
3696  echo "$as_me:$LINENO: result: $LD" >&5
3697echo "${ECHO_T}$LD" >&6
3698else
3699  echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701fi
3702test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3703echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3704   { (exit 1); exit 1; }; }
3705echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3706echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3707if test "${lt_cv_prog_gnu_ld+set}" = set; then
3708  echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3711case `"$LD" -v 2>&1 </dev/null` in
3712*GNU* | *'with BFD'*)
3713  lt_cv_prog_gnu_ld=yes
3714  ;;
3715*)
3716  lt_cv_prog_gnu_ld=no
3717  ;;
3718esac
3719fi
3720echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3721echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3722with_gnu_ld=$lt_cv_prog_gnu_ld
3723
3724
3725echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3726echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3727if test "${lt_cv_ld_reload_flag+set}" = set; then
3728  echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730  lt_cv_ld_reload_flag='-r'
3731fi
3732echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3733echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3734reload_flag=$lt_cv_ld_reload_flag
3735case $reload_flag in
3736"" | " "*) ;;
3737*) reload_flag=" $reload_flag" ;;
3738esac
3739reload_cmds='$LD$reload_flag -o $output$reload_objs'
3740
3741echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3742echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3743if test "${lt_cv_path_NM+set}" = set; then
3744  echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746  if test -n "$NM"; then
3747  # Let the user override the test.
3748  lt_cv_path_NM="$NM"
3749else
3750  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3751  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3752    IFS="$lt_save_ifs"
3753    test -z "$ac_dir" && ac_dir=.
3754    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3755    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3756      # Check to see if the nm accepts a BSD-compat flag.
3757      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3758      #   nm: unknown option "B" ignored
3759      # Tru64's nm complains that /dev/null is an invalid object file
3760      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3761      */dev/null* | *'Invalid file or object type'*)
3762	lt_cv_path_NM="$tmp_nm -B"
3763	break
3764        ;;
3765      *)
3766	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3767	*/dev/null*)
3768	  lt_cv_path_NM="$tmp_nm -p"
3769	  break
3770	  ;;
3771	*)
3772	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3773	  continue # so that we can try to find one that supports BSD flags
3774	  ;;
3775	esac
3776      esac
3777    fi
3778  done
3779  IFS="$lt_save_ifs"
3780  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3781fi
3782fi
3783echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3784echo "${ECHO_T}$lt_cv_path_NM" >&6
3785NM="$lt_cv_path_NM"
3786
3787echo "$as_me:$LINENO: checking whether ln -s works" >&5
3788echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3789LN_S=$as_ln_s
3790if test "$LN_S" = "ln -s"; then
3791  echo "$as_me:$LINENO: result: yes" >&5
3792echo "${ECHO_T}yes" >&6
3793else
3794  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3795echo "${ECHO_T}no, using $LN_S" >&6
3796fi
3797
3798echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3799echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3800if test "${lt_cv_deplibs_check_method+set}" = set; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803  lt_cv_file_magic_cmd='$MAGIC_CMD'
3804lt_cv_file_magic_test_file=
3805lt_cv_deplibs_check_method='unknown'
3806# Need to set the preceding variable on all platforms that support
3807# interlibrary dependencies.
3808# 'none' -- dependencies not supported.
3809# `unknown' -- same as none, but documents that we really don't know.
3810# 'pass_all' -- all dependencies passed with no checks.
3811# 'test_compile' -- check by making test program.
3812# 'file_magic [[regex]]' -- check by looking for files in library path
3813# which responds to the $file_magic_cmd with a given extended regex.
3814# If you have `file' or equivalent on your system and you're not sure
3815# whether `pass_all' will *always* work, you probably want this one.
3816
3817case $host_os in
3818aix4* | aix5*)
3819  lt_cv_deplibs_check_method=pass_all
3820  ;;
3821
3822beos*)
3823  lt_cv_deplibs_check_method=pass_all
3824  ;;
3825
3826bsdi4*)
3827  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3828  lt_cv_file_magic_cmd='/usr/bin/file -L'
3829  lt_cv_file_magic_test_file=/shlib/libc.so
3830  ;;
3831
3832cygwin* | mingw* | pw32*)
3833  # win32_libid is a shell function defined in ltmain.sh
3834  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3835  lt_cv_file_magic_cmd='win32_libid'
3836  ;;
3837
3838darwin* | rhapsody*)
3839  # this will be overwritten by pass_all, but leave it in just in case
3840  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3841  lt_cv_file_magic_cmd='/usr/bin/file -L'
3842  case "$host_os" in
3843  rhapsody* | darwin1.[012])
3844    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3845    ;;
3846  *) # Darwin 1.3 on
3847    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3848    ;;
3849  esac
3850  lt_cv_deplibs_check_method=pass_all
3851  ;;
3852
3853freebsd*)
3854  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3855    case $host_cpu in
3856    i*86 )
3857      # Not sure whether the presence of OpenBSD here was a mistake.
3858      # Let's accept both of them until this is cleared up.
3859      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3860      lt_cv_file_magic_cmd=/usr/bin/file
3861      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3862      ;;
3863    esac
3864  else
3865    lt_cv_deplibs_check_method=pass_all
3866  fi
3867  ;;
3868
3869gnu*)
3870  lt_cv_deplibs_check_method=pass_all
3871  ;;
3872
3873hpux10.20* | hpux11*)
3874  lt_cv_file_magic_cmd=/usr/bin/file
3875  case "$host_cpu" in
3876  ia64*)
3877    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3878    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3879    ;;
3880  hppa*64*)
3881    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]'
3882    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3883    ;;
3884  *)
3885    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3886    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3887    ;;
3888  esac
3889  ;;
3890
3891irix5* | irix6* | nonstopux*)
3892  case $host_os in
3893  irix5* | nonstopux*)
3894    # this will be overridden with pass_all, but let us keep it just in case
3895    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3896    ;;
3897  *)
3898    case $LD in
3899    *-32|*"-32 ") libmagic=32-bit;;
3900    *-n32|*"-n32 ") libmagic=N32;;
3901    *-64|*"-64 ") libmagic=64-bit;;
3902    *) libmagic=never-match;;
3903    esac
3904    # this will be overridden with pass_all, but let us keep it just in case
3905    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3906    ;;
3907  esac
3908  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3909  lt_cv_deplibs_check_method=pass_all
3910  ;;
3911
3912# This must be Linux ELF.
3913linux*)
3914  case $host_cpu in
3915  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3916    lt_cv_deplibs_check_method=pass_all ;;
3917  *)
3918    # glibc up to 2.1.1 does not perform some relocations on ARM
3919    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3920  esac
3921  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3922  ;;
3923
3924netbsd*)
3925  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3926    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3927  else
3928    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3929  fi
3930  ;;
3931
3932newos6*)
3933  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934  lt_cv_file_magic_cmd=/usr/bin/file
3935  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3936  ;;
3937
3938nto-qnx)
3939  lt_cv_deplibs_check_method=unknown
3940  ;;
3941
3942openbsd*)
3943  lt_cv_file_magic_cmd=/usr/bin/file
3944  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3945  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3946    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3947  else
3948    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3949  fi
3950  ;;
3951
3952osf3* | osf4* | osf5*)
3953  # this will be overridden with pass_all, but let us keep it just in case
3954  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3955  lt_cv_file_magic_test_file=/shlib/libc.so
3956  lt_cv_deplibs_check_method=pass_all
3957  ;;
3958
3959sco3.2v5*)
3960  lt_cv_deplibs_check_method=pass_all
3961  ;;
3962
3963solaris*)
3964  lt_cv_deplibs_check_method=pass_all
3965  lt_cv_file_magic_test_file=/lib/libc.so
3966  ;;
3967
3968sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3969  case $host_vendor in
3970  motorola)
3971    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]'
3972    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3973    ;;
3974  ncr)
3975    lt_cv_deplibs_check_method=pass_all
3976    ;;
3977  sequent)
3978    lt_cv_file_magic_cmd='/bin/file'
3979    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3980    ;;
3981  sni)
3982    lt_cv_file_magic_cmd='/bin/file'
3983    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3984    lt_cv_file_magic_test_file=/lib/libc.so
3985    ;;
3986  siemens)
3987    lt_cv_deplibs_check_method=pass_all
3988    ;;
3989  esac
3990  ;;
3991
3992sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3993  lt_cv_deplibs_check_method=pass_all
3994  ;;
3995esac
3996
3997fi
3998echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3999echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4000file_magic_cmd=$lt_cv_file_magic_cmd
4001deplibs_check_method=$lt_cv_deplibs_check_method
4002test -z "$deplibs_check_method" && deplibs_check_method=unknown
4003
4004
4005
4006
4007# If no C compiler was specified, use CC.
4008LTCC=${LTCC-"$CC"}
4009
4010# Allow CC to be a program name with arguments.
4011compiler=$CC
4012
4013# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014if test "${enable_libtool_lock+set}" = set; then
4015  enableval="$enable_libtool_lock"
4016
4017fi;
4018test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4019
4020# Some flags need to be propagated to the compiler or linker for good
4021# libtool support.
4022case $host in
4023ia64-*-hpux*)
4024  # Find out which ABI we are using.
4025  echo 'int i;' > conftest.$ac_ext
4026  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027  (eval $ac_compile) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); }; then
4031    case `/usr/bin/file conftest.$ac_objext` in
4032    *ELF-32*)
4033      HPUX_IA64_MODE="32"
4034      ;;
4035    *ELF-64*)
4036      HPUX_IA64_MODE="64"
4037      ;;
4038    esac
4039  fi
4040  rm -rf conftest*
4041  ;;
4042*-*-irix6*)
4043  # Find out which ABI we are using.
4044  echo '#line 4044 "configure"' > conftest.$ac_ext
4045  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046  (eval $ac_compile) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; then
4050   if test "$lt_cv_prog_gnu_ld" = yes; then
4051    case `/usr/bin/file conftest.$ac_objext` in
4052    *32-bit*)
4053      LD="${LD-ld} -melf32bsmip"
4054      ;;
4055    *N32*)
4056      LD="${LD-ld} -melf32bmipn32"
4057      ;;
4058    *64-bit*)
4059      LD="${LD-ld} -melf64bmip"
4060      ;;
4061    esac
4062   else
4063    case `/usr/bin/file conftest.$ac_objext` in
4064    *32-bit*)
4065      LD="${LD-ld} -32"
4066      ;;
4067    *N32*)
4068      LD="${LD-ld} -n32"
4069      ;;
4070    *64-bit*)
4071      LD="${LD-ld} -64"
4072      ;;
4073    esac
4074   fi
4075  fi
4076  rm -rf conftest*
4077  ;;
4078
4079x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4080  # Find out which ABI we are using.
4081  echo 'int i;' > conftest.$ac_ext
4082  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083  (eval $ac_compile) 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); }; then
4087    case "`/usr/bin/file conftest.o`" in
4088    *32-bit*)
4089      case $host in
4090        x86_64-*linux*)
4091          LD="${LD-ld} -m elf_i386"
4092          ;;
4093        ppc64-*linux*)
4094          LD="${LD-ld} -m elf32ppclinux"
4095          ;;
4096        s390x-*linux*)
4097          LD="${LD-ld} -m elf_s390"
4098          ;;
4099        sparc64-*linux*)
4100          LD="${LD-ld} -m elf32_sparc"
4101          ;;
4102      esac
4103      ;;
4104    *64-bit*)
4105      case $host in
4106        x86_64-*linux*)
4107          LD="${LD-ld} -m elf_x86_64"
4108          ;;
4109        ppc*-*linux*|powerpc*-*linux*)
4110          LD="${LD-ld} -m elf64ppc"
4111          ;;
4112        s390*-*linux*)
4113          LD="${LD-ld} -m elf64_s390"
4114          ;;
4115        sparc*-*linux*)
4116          LD="${LD-ld} -m elf64_sparc"
4117          ;;
4118      esac
4119      ;;
4120    esac
4121  fi
4122  rm -rf conftest*
4123  ;;
4124
4125*-*-sco3.2v5*)
4126  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4127  SAVE_CFLAGS="$CFLAGS"
4128  CFLAGS="$CFLAGS -belf"
4129  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4130echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4131if test "${lt_cv_cc_needs_belf+set}" = set; then
4132  echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134  ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140     cat >conftest.$ac_ext <<_ACEOF
4141#line $LINENO "configure"
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147
4148int
4149main ()
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158  (eval $ac_link) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } &&
4162         { ac_try='test -s conftest$ac_exeext'
4163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164  (eval $ac_try) 2>&5
4165  ac_status=$?
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); }; }; then
4168  lt_cv_cc_needs_belf=yes
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173lt_cv_cc_needs_belf=no
4174fi
4175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176     ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182fi
4183echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4184echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4185  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4186    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4187    CFLAGS="$SAVE_CFLAGS"
4188  fi
4189  ;;
4190
4191esac
4192
4193need_locks="$enable_libtool_lock"
4194
4195
4196
4197echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4198echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4199if test "${ac_cv_header_stdc+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  cat >conftest.$ac_ext <<_ACEOF
4203#line $LINENO "configure"
4204/* confdefs.h.  */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h.  */
4209#include <stdlib.h>
4210#include <stdarg.h>
4211#include <string.h>
4212#include <float.h>
4213
4214int
4215main ()
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222rm -f conftest.$ac_objext
4223if { (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); } &&
4228         { ac_try='test -s conftest.$ac_objext'
4229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230  (eval $ac_try) 2>&5
4231  ac_status=$?
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); }; }; then
4234  ac_cv_header_stdc=yes
4235else
4236  echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239ac_cv_header_stdc=no
4240fi
4241rm -f conftest.$ac_objext conftest.$ac_ext
4242
4243if test $ac_cv_header_stdc = yes; then
4244  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4245  cat >conftest.$ac_ext <<_ACEOF
4246#line $LINENO "configure"
4247/* confdefs.h.  */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h.  */
4252#include <string.h>
4253
4254_ACEOF
4255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256  $EGREP "memchr" >/dev/null 2>&1; then
4257  :
4258else
4259  ac_cv_header_stdc=no
4260fi
4261rm -f conftest*
4262
4263fi
4264
4265if test $ac_cv_header_stdc = yes; then
4266  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267  cat >conftest.$ac_ext <<_ACEOF
4268#line $LINENO "configure"
4269/* confdefs.h.  */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h.  */
4274#include <stdlib.h>
4275
4276_ACEOF
4277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278  $EGREP "free" >/dev/null 2>&1; then
4279  :
4280else
4281  ac_cv_header_stdc=no
4282fi
4283rm -f conftest*
4284
4285fi
4286
4287if test $ac_cv_header_stdc = yes; then
4288  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289  if test "$cross_compiling" = yes; then
4290  :
4291else
4292  cat >conftest.$ac_ext <<_ACEOF
4293#line $LINENO "configure"
4294/* confdefs.h.  */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h.  */
4299#include <ctype.h>
4300#if ((' ' & 0x0FF) == 0x020)
4301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4303#else
4304# define ISLOWER(c) \
4305                   (('a' <= (c) && (c) <= 'i') \
4306                     || ('j' <= (c) && (c) <= 'r') \
4307                     || ('s' <= (c) && (c) <= 'z'))
4308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4309#endif
4310
4311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4312int
4313main ()
4314{
4315  int i;
4316  for (i = 0; i < 256; i++)
4317    if (XOR (islower (i), ISLOWER (i))
4318        || toupper (i) != TOUPPER (i))
4319      exit(2);
4320  exit (0);
4321}
4322_ACEOF
4323rm -f conftest$ac_exeext
4324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325  (eval $ac_link) 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330  (eval $ac_try) 2>&5
4331  ac_status=$?
4332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333  (exit $ac_status); }; }; then
4334  :
4335else
4336  echo "$as_me: program exited with status $ac_status" >&5
4337echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340( exit $ac_status )
4341ac_cv_header_stdc=no
4342fi
4343rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344fi
4345fi
4346fi
4347echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4348echo "${ECHO_T}$ac_cv_header_stdc" >&6
4349if test $ac_cv_header_stdc = yes; then
4350
4351cat >>confdefs.h <<\_ACEOF
4352#define STDC_HEADERS 1
4353_ACEOF
4354
4355fi
4356
4357# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368                  inttypes.h stdint.h unistd.h
4369do
4370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371echo "$as_me:$LINENO: checking for $ac_header" >&5
4372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  cat >conftest.$ac_ext <<_ACEOF
4377#line $LINENO "configure"
4378/* confdefs.h.  */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h.  */
4383$ac_includes_default
4384
4385#include <$ac_header>
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389  (eval $ac_compile) 2>&5
4390  ac_status=$?
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); } &&
4393         { ac_try='test -s conftest.$ac_objext'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; }; then
4399  eval "$as_ac_Header=yes"
4400else
4401  echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404eval "$as_ac_Header=no"
4405fi
4406rm -f conftest.$ac_objext conftest.$ac_ext
4407fi
4408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411  cat >>confdefs.h <<_ACEOF
4412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413_ACEOF
4414
4415fi
4416
4417done
4418
4419
4420
4421for ac_header in dlfcn.h
4422do
4423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425  echo "$as_me:$LINENO: checking for $ac_header" >&5
4426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428  echo $ECHO_N "(cached) $ECHO_C" >&6
4429fi
4430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432else
4433  # Is the header compilable?
4434echo "$as_me:$LINENO: checking $ac_header usability" >&5
4435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4436cat >conftest.$ac_ext <<_ACEOF
4437#line $LINENO "configure"
4438/* confdefs.h.  */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h.  */
4443$ac_includes_default
4444#include <$ac_header>
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448  (eval $ac_compile) 2>&5
4449  ac_status=$?
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } &&
4452         { ac_try='test -s conftest.$ac_objext'
4453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454  (eval $ac_try) 2>&5
4455  ac_status=$?
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); }; }; then
4458  ac_header_compiler=yes
4459else
4460  echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463ac_header_compiler=no
4464fi
4465rm -f conftest.$ac_objext conftest.$ac_ext
4466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4467echo "${ECHO_T}$ac_header_compiler" >&6
4468
4469# Is the header present?
4470echo "$as_me:$LINENO: checking $ac_header presence" >&5
4471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4472cat >conftest.$ac_ext <<_ACEOF
4473#line $LINENO "configure"
4474/* confdefs.h.  */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4478/* end confdefs.h.  */
4479#include <$ac_header>
4480_ACEOF
4481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483  ac_status=$?
4484  grep -v '^ *+' conftest.er1 >conftest.err
4485  rm -f conftest.er1
4486  cat conftest.err >&5
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); } >/dev/null; then
4489  if test -s conftest.err; then
4490    ac_cpp_err=$ac_c_preproc_warn_flag
4491  else
4492    ac_cpp_err=
4493  fi
4494else
4495  ac_cpp_err=yes
4496fi
4497if test -z "$ac_cpp_err"; then
4498  ac_header_preproc=yes
4499else
4500  echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503  ac_header_preproc=no
4504fi
4505rm -f conftest.err conftest.$ac_ext
4506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4507echo "${ECHO_T}$ac_header_preproc" >&6
4508
4509# So?  What about this header?
4510case $ac_header_compiler:$ac_header_preproc in
4511  yes:no )
4512    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4514    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4516    (
4517      cat <<\_ASBOX
4518## ------------------------------------ ##
4519## Report this to bug-autoconf@gnu.org. ##
4520## ------------------------------------ ##
4521_ASBOX
4522    ) |
4523      sed "s/^/$as_me: WARNING:     /" >&2
4524    ;;
4525  no:yes )
4526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4528    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4530    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4532    (
4533      cat <<\_ASBOX
4534## ------------------------------------ ##
4535## Report this to bug-autoconf@gnu.org. ##
4536## ------------------------------------ ##
4537_ASBOX
4538    ) |
4539      sed "s/^/$as_me: WARNING:     /" >&2
4540    ;;
4541esac
4542echo "$as_me:$LINENO: checking for $ac_header" >&5
4543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  eval "$as_ac_Header=$ac_header_preproc"
4548fi
4549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551
4552fi
4553if test `eval echo '${'$as_ac_Header'}'` = yes; then
4554  cat >>confdefs.h <<_ACEOF
4555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556_ACEOF
4557
4558fi
4559
4560done
4561
4562ac_ext=cc
4563ac_cpp='$CXXCPP $CPPFLAGS'
4564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4568echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4569if test -z "$CXXCPP"; then
4570  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4571  echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573      # Double quotes because CXXCPP needs to be expanded
4574    for CXXCPP in "$CXX -E" "/lib/cpp"
4575    do
4576      ac_preproc_ok=false
4577for ac_cxx_preproc_warn_flag in '' yes
4578do
4579  # Use a header file that comes with gcc, so configuring glibc
4580  # with a fresh cross-compiler works.
4581  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4582  # <limits.h> exists even on freestanding compilers.
4583  # On the NeXT, cc -E runs the code through the compiler's parser,
4584  # not just through cpp. "Syntax error" is here to catch this case.
4585  cat >conftest.$ac_ext <<_ACEOF
4586#line $LINENO "configure"
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592#ifdef __STDC__
4593# include <limits.h>
4594#else
4595# include <assert.h>
4596#endif
4597                     Syntax error
4598_ACEOF
4599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4601  ac_status=$?
4602  grep -v '^ *+' conftest.er1 >conftest.err
4603  rm -f conftest.er1
4604  cat conftest.err >&5
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); } >/dev/null; then
4607  if test -s conftest.err; then
4608    ac_cpp_err=$ac_cxx_preproc_warn_flag
4609  else
4610    ac_cpp_err=
4611  fi
4612else
4613  ac_cpp_err=yes
4614fi
4615if test -z "$ac_cpp_err"; then
4616  :
4617else
4618  echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621  # Broken: fails on valid input.
4622continue
4623fi
4624rm -f conftest.err conftest.$ac_ext
4625
4626  # OK, works on sane cases.  Now check whether non-existent headers
4627  # can be detected and how.
4628  cat >conftest.$ac_ext <<_ACEOF
4629#line $LINENO "configure"
4630/* confdefs.h.  */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h.  */
4635#include <ac_nonexistent.h>
4636_ACEOF
4637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4639  ac_status=$?
4640  grep -v '^ *+' conftest.er1 >conftest.err
4641  rm -f conftest.er1
4642  cat conftest.err >&5
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); } >/dev/null; then
4645  if test -s conftest.err; then
4646    ac_cpp_err=$ac_cxx_preproc_warn_flag
4647  else
4648    ac_cpp_err=
4649  fi
4650else
4651  ac_cpp_err=yes
4652fi
4653if test -z "$ac_cpp_err"; then
4654  # Broken: success on invalid input.
4655continue
4656else
4657  echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660  # Passes both tests.
4661ac_preproc_ok=:
4662break
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665
4666done
4667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4668rm -f conftest.err conftest.$ac_ext
4669if $ac_preproc_ok; then
4670  break
4671fi
4672
4673    done
4674    ac_cv_prog_CXXCPP=$CXXCPP
4675
4676fi
4677  CXXCPP=$ac_cv_prog_CXXCPP
4678else
4679  ac_cv_prog_CXXCPP=$CXXCPP
4680fi
4681echo "$as_me:$LINENO: result: $CXXCPP" >&5
4682echo "${ECHO_T}$CXXCPP" >&6
4683ac_preproc_ok=false
4684for ac_cxx_preproc_warn_flag in '' yes
4685do
4686  # Use a header file that comes with gcc, so configuring glibc
4687  # with a fresh cross-compiler works.
4688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689  # <limits.h> exists even on freestanding compilers.
4690  # On the NeXT, cc -E runs the code through the compiler's parser,
4691  # not just through cpp. "Syntax error" is here to catch this case.
4692  cat >conftest.$ac_ext <<_ACEOF
4693#line $LINENO "configure"
4694/* confdefs.h.  */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h.  */
4699#ifdef __STDC__
4700# include <limits.h>
4701#else
4702# include <assert.h>
4703#endif
4704                     Syntax error
4705_ACEOF
4706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4707  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708  ac_status=$?
4709  grep -v '^ *+' conftest.er1 >conftest.err
4710  rm -f conftest.er1
4711  cat conftest.err >&5
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); } >/dev/null; then
4714  if test -s conftest.err; then
4715    ac_cpp_err=$ac_cxx_preproc_warn_flag
4716  else
4717    ac_cpp_err=
4718  fi
4719else
4720  ac_cpp_err=yes
4721fi
4722if test -z "$ac_cpp_err"; then
4723  :
4724else
4725  echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728  # Broken: fails on valid input.
4729continue
4730fi
4731rm -f conftest.err conftest.$ac_ext
4732
4733  # OK, works on sane cases.  Now check whether non-existent headers
4734  # can be detected and how.
4735  cat >conftest.$ac_ext <<_ACEOF
4736#line $LINENO "configure"
4737/* confdefs.h.  */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h.  */
4742#include <ac_nonexistent.h>
4743_ACEOF
4744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4746  ac_status=$?
4747  grep -v '^ *+' conftest.er1 >conftest.err
4748  rm -f conftest.er1
4749  cat conftest.err >&5
4750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751  (exit $ac_status); } >/dev/null; then
4752  if test -s conftest.err; then
4753    ac_cpp_err=$ac_cxx_preproc_warn_flag
4754  else
4755    ac_cpp_err=
4756  fi
4757else
4758  ac_cpp_err=yes
4759fi
4760if test -z "$ac_cpp_err"; then
4761  # Broken: success on invalid input.
4762continue
4763else
4764  echo "$as_me: failed program was:" >&5
4765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767  # Passes both tests.
4768ac_preproc_ok=:
4769break
4770fi
4771rm -f conftest.err conftest.$ac_ext
4772
4773done
4774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775rm -f conftest.err conftest.$ac_ext
4776if $ac_preproc_ok; then
4777  :
4778else
4779  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4780See \`config.log' for more details." >&5
4781echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4782See \`config.log' for more details." >&2;}
4783   { (exit 1); exit 1; }; }
4784fi
4785
4786ac_ext=cc
4787ac_cpp='$CXXCPP $CPPFLAGS'
4788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791
4792
4793ac_ext=f
4794ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4795ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4797if test -n "$ac_tool_prefix"; then
4798  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4799  do
4800    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802echo "$as_me:$LINENO: checking for $ac_word" >&5
4803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804if test "${ac_cv_prog_F77+set}" = set; then
4805  echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807  if test -n "$F77"; then
4808  ac_cv_prog_F77="$F77" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815  for ac_exec_ext in '' $ac_executable_extensions; do
4816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822done
4823
4824fi
4825fi
4826F77=$ac_cv_prog_F77
4827if test -n "$F77"; then
4828  echo "$as_me:$LINENO: result: $F77" >&5
4829echo "${ECHO_T}$F77" >&6
4830else
4831  echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833fi
4834
4835    test -n "$F77" && break
4836  done
4837fi
4838if test -z "$F77"; then
4839  ac_ct_F77=$F77
4840  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4841do
4842  # Extract the first word of "$ac_prog", so it can be a program name with args.
4843set dummy $ac_prog; ac_word=$2
4844echo "$as_me:$LINENO: checking for $ac_word" >&5
4845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4847  echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849  if test -n "$ac_ct_F77"; then
4850  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855  IFS=$as_save_IFS
4856  test -z "$as_dir" && as_dir=.
4857  for ac_exec_ext in '' $ac_executable_extensions; do
4858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859    ac_cv_prog_ac_ct_F77="$ac_prog"
4860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861    break 2
4862  fi
4863done
4864done
4865
4866fi
4867fi
4868ac_ct_F77=$ac_cv_prog_ac_ct_F77
4869if test -n "$ac_ct_F77"; then
4870  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4871echo "${ECHO_T}$ac_ct_F77" >&6
4872else
4873  echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875fi
4876
4877  test -n "$ac_ct_F77" && break
4878done
4879
4880  F77=$ac_ct_F77
4881fi
4882
4883
4884# Provide some information about the compiler.
4885echo "$as_me:4885:" \
4886     "checking for Fortran 77 compiler version" >&5
4887ac_compiler=`set X $ac_compile; echo $2`
4888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4889  (eval $ac_compiler --version </dev/null >&5) 2>&5
4890  ac_status=$?
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); }
4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4894  (eval $ac_compiler -v </dev/null >&5) 2>&5
4895  ac_status=$?
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); }
4898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4899  (eval $ac_compiler -V </dev/null >&5) 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); }
4903
4904# If we don't use `.F' as extension, the preprocessor is not run on the
4905# input file.
4906ac_save_ext=$ac_ext
4907ac_ext=F
4908echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4909echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4910if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4911  echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913  cat >conftest.$ac_ext <<_ACEOF
4914      program main
4915#ifndef __GNUC__
4916       choke me
4917#endif
4918
4919      end
4920_ACEOF
4921rm -f conftest.$ac_objext
4922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923  (eval $ac_compile) 2>&5
4924  ac_status=$?
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); } &&
4927         { ac_try='test -s conftest.$ac_objext'
4928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929  (eval $ac_try) 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); }; }; then
4933  ac_compiler_gnu=yes
4934else
4935  echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938ac_compiler_gnu=no
4939fi
4940rm -f conftest.$ac_objext conftest.$ac_ext
4941ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4942
4943fi
4944echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4945echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4946ac_ext=$ac_save_ext
4947G77=`test $ac_compiler_gnu = yes && echo yes`
4948ac_test_FFLAGS=${FFLAGS+set}
4949ac_save_FFLAGS=$FFLAGS
4950FFLAGS=
4951echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4952echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4953if test "${ac_cv_prog_f77_g+set}" = set; then
4954  echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956  FFLAGS=-g
4957cat >conftest.$ac_ext <<_ACEOF
4958      program main
4959
4960      end
4961_ACEOF
4962rm -f conftest.$ac_objext
4963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964  (eval $ac_compile) 2>&5
4965  ac_status=$?
4966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); } &&
4968         { ac_try='test -s conftest.$ac_objext'
4969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970  (eval $ac_try) 2>&5
4971  ac_status=$?
4972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973  (exit $ac_status); }; }; then
4974  ac_cv_prog_f77_g=yes
4975else
4976  echo "$as_me: failed program was:" >&5
4977sed 's/^/| /' conftest.$ac_ext >&5
4978
4979ac_cv_prog_f77_g=no
4980fi
4981rm -f conftest.$ac_objext conftest.$ac_ext
4982
4983fi
4984echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4985echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4986if test "$ac_test_FFLAGS" = set; then
4987  FFLAGS=$ac_save_FFLAGS
4988elif test $ac_cv_prog_f77_g = yes; then
4989  if test "$G77" = yes; then
4990    FFLAGS="-g -O2"
4991  else
4992    FFLAGS="-g"
4993  fi
4994else
4995  if test "$G77" = yes; then
4996    FFLAGS="-O2"
4997  else
4998    FFLAGS=
4999  fi
5000fi
5001ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008
5009# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5010
5011# find the maximum length of command line arguments
5012echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5013echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5014if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5015  echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017    i=0
5018  testring="ABCD"
5019
5020  case $build_os in
5021  msdosdjgpp*)
5022    # On DJGPP, this test can blow up pretty badly due to problems in libc
5023    # (any single argument exceeding 2000 bytes causes a buffer overrun
5024    # during glob expansion).  Even if it were fixed, the result of this
5025    # check would be larger than it should be.
5026    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5027    ;;
5028
5029  gnu*)
5030    # Under GNU Hurd, this test is not required because there is
5031    # no limit to the length of command line arguments.
5032    # Libtool will interpret -1 as no limit whatsoever
5033    lt_cv_sys_max_cmd_len=-1;
5034    ;;
5035
5036  cygwin* | mingw*)
5037    # On Win9x/ME, this test blows up -- it succeeds, but takes
5038    # about 5 minutes as the teststring grows exponentially.
5039    # Worse, since 9x/ME are not pre-emptively multitasking,
5040    # you end up with a "frozen" computer, even though with patience
5041    # the test eventually succeeds (with a max line length of 256k).
5042    # Instead, let's just punt: use the minimum linelength reported by
5043    # all of the supported platforms: 8192 (on NT/2K/XP).
5044    lt_cv_sys_max_cmd_len=8192;
5045    ;;
5046
5047 *)
5048    # If test is not a shell built-in, we'll probably end up computing a
5049    # maximum length that is only half of the actual maximum length, but
5050    # we can't tell.
5051    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5052	       = "XX$testring") >/dev/null 2>&1 &&
5053	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5054	    lt_cv_sys_max_cmd_len=$new_result &&
5055	    test $i != 17 # 1/2 MB should be enough
5056    do
5057      i=`expr $i + 1`
5058      testring=$testring$testring
5059    done
5060    testring=
5061    # Add a significant safety factor because C++ compilers can tack on massive
5062    # amounts of additional arguments before passing them to the linker.
5063    # It appears as though 1/2 is a usable value.
5064    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5065    ;;
5066  esac
5067
5068fi
5069
5070if test -n $lt_cv_sys_max_cmd_len ; then
5071  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5072echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5073else
5074  echo "$as_me:$LINENO: result: none" >&5
5075echo "${ECHO_T}none" >&6
5076fi
5077
5078
5079
5080
5081# Check for command to grab the raw symbol name followed by C symbol from nm.
5082echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5083echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5084if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087
5088# These are sane defaults that work on at least a few old systems.
5089# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5090
5091# Character class describing NM global symbol codes.
5092symcode='[BCDEGRST]'
5093
5094# Regexp to match symbols that can be accessed directly from C.
5095sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5096
5097# Transform the above into a raw symbol and a C symbol.
5098symxfrm='\1 \2\3 \3'
5099
5100# Transform an extracted symbol line into a proper C declaration
5101lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5102
5103# Transform an extracted symbol line into symbol name and symbol address
5104lt_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'"
5105
5106# Define system-specific variables.
5107case $host_os in
5108aix*)
5109  symcode='[BCDT]'
5110  ;;
5111cygwin* | mingw* | pw32*)
5112  symcode='[ABCDGISTW]'
5113  ;;
5114hpux*) # Its linker distinguishes data from code symbols
5115  if test "$host_cpu" = ia64; then
5116    symcode='[ABCDEGRST]'
5117  fi
5118  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5119  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'"
5120  ;;
5121irix* | nonstopux*)
5122  symcode='[BCDEGRST]'
5123  ;;
5124osf*)
5125  symcode='[BCDEGQRST]'
5126  ;;
5127solaris* | sysv5*)
5128  symcode='[BDT]'
5129  ;;
5130sysv4)
5131  symcode='[DFNSTU]'
5132  ;;
5133esac
5134
5135# Handle CRLF in mingw tool chain
5136opt_cr=
5137case $build_os in
5138mingw*)
5139  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5140  ;;
5141esac
5142
5143# If we're using GNU nm, then use its standard symbol codes.
5144case `$NM -V 2>&1` in
5145*GNU* | *'with BFD'*)
5146  symcode='[ABCDGISTW]' ;;
5147esac
5148
5149# Try without a prefix undercore, then with it.
5150for ac_symprfx in "" "_"; do
5151
5152  # Write the raw and C identifiers.
5153  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5154
5155  # Check to see that the pipe works correctly.
5156  pipe_works=no
5157
5158  rm -f conftest*
5159  cat > conftest.$ac_ext <<EOF
5160#ifdef __cplusplus
5161extern "C" {
5162#endif
5163char nm_test_var;
5164void nm_test_func(){}
5165#ifdef __cplusplus
5166}
5167#endif
5168int main(){nm_test_var='a';nm_test_func();return(0);}
5169EOF
5170
5171  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172  (eval $ac_compile) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; then
5176    # Now try to grab the symbols.
5177    nlist=conftest.nm
5178    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5179  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); } && test -s "$nlist"; then
5183      # Try sorting and uniquifying the output.
5184      if sort "$nlist" | uniq > "$nlist"T; then
5185	mv -f "$nlist"T "$nlist"
5186      else
5187	rm -f "$nlist"T
5188      fi
5189
5190      # Make sure that we snagged all the symbols we need.
5191      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5192	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5193	  cat <<EOF > conftest.$ac_ext
5194#ifdef __cplusplus
5195extern "C" {
5196#endif
5197
5198EOF
5199	  # Now generate the symbol file.
5200	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5201
5202	  cat <<EOF >> conftest.$ac_ext
5203#if defined (__STDC__) && __STDC__
5204# define lt_ptr_t void *
5205#else
5206# define lt_ptr_t char *
5207# define const
5208#endif
5209
5210/* The mapping between symbol names and symbols. */
5211const struct {
5212  const char *name;
5213  lt_ptr_t address;
5214}
5215lt_preloaded_symbols[] =
5216{
5217EOF
5218	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5219	  cat <<\EOF >> conftest.$ac_ext
5220  {0, (lt_ptr_t) 0}
5221};
5222
5223#ifdef __cplusplus
5224}
5225#endif
5226EOF
5227	  # Now try linking the two files.
5228	  mv conftest.$ac_objext conftstm.$ac_objext
5229	  lt_save_LIBS="$LIBS"
5230	  lt_save_CFLAGS="$CFLAGS"
5231	  LIBS="conftstm.$ac_objext"
5232	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5233	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234  (eval $ac_link) 2>&5
5235  ac_status=$?
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5238	    pipe_works=yes
5239	  fi
5240	  LIBS="$lt_save_LIBS"
5241	  CFLAGS="$lt_save_CFLAGS"
5242	else
5243	  echo "cannot find nm_test_func in $nlist" >&5
5244	fi
5245      else
5246	echo "cannot find nm_test_var in $nlist" >&5
5247      fi
5248    else
5249      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5250    fi
5251  else
5252    echo "$progname: failed program was:" >&5
5253    cat conftest.$ac_ext >&5
5254  fi
5255  rm -f conftest* conftst*
5256
5257  # Do not use the global_symbol_pipe unless it works.
5258  if test "$pipe_works" = yes; then
5259    break
5260  else
5261    lt_cv_sys_global_symbol_pipe=
5262  fi
5263done
5264
5265fi
5266
5267if test -z "$lt_cv_sys_global_symbol_pipe"; then
5268  lt_cv_sys_global_symbol_to_cdecl=
5269fi
5270if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5271  echo "$as_me:$LINENO: result: failed" >&5
5272echo "${ECHO_T}failed" >&6
5273else
5274  echo "$as_me:$LINENO: result: ok" >&5
5275echo "${ECHO_T}ok" >&6
5276fi
5277
5278echo "$as_me:$LINENO: checking for objdir" >&5
5279echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5280if test "${lt_cv_objdir+set}" = set; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  rm -f .libs 2>/dev/null
5284mkdir .libs 2>/dev/null
5285if test -d .libs; then
5286  lt_cv_objdir=.libs
5287else
5288  # MS-DOS does not allow filenames that begin with a dot.
5289  lt_cv_objdir=_libs
5290fi
5291rmdir .libs 2>/dev/null
5292fi
5293echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5294echo "${ECHO_T}$lt_cv_objdir" >&6
5295objdir=$lt_cv_objdir
5296
5297
5298
5299
5300
5301case $host_os in
5302aix3*)
5303  # AIX sometimes has problems with the GCC collect2 program.  For some
5304  # reason, if we set the COLLECT_NAMES environment variable, the problems
5305  # vanish in a puff of smoke.
5306  if test "X${COLLECT_NAMES+set}" != Xset; then
5307    COLLECT_NAMES=
5308    export COLLECT_NAMES
5309  fi
5310  ;;
5311esac
5312
5313# Sed substitution that helps us do robust quoting.  It backslashifies
5314# metacharacters that are still active within double-quoted strings.
5315Xsed='sed -e s/^X//'
5316sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5317
5318# Same as above, but do not quote variable references.
5319double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5320
5321# Sed substitution to delay expansion of an escaped shell variable in a
5322# double_quote_subst'ed string.
5323delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5324
5325# Sed substitution to avoid accidental globbing in evaled expressions
5326no_glob_subst='s/\*/\\\*/g'
5327
5328# Constants:
5329rm="rm -f"
5330
5331# Global variables:
5332default_ofile=mklib
5333can_build_shared=yes
5334
5335# All known linkers require a `.a' archive for static linking (except M$VC,
5336# which needs '.lib').
5337libext=a
5338ltmain="$ac_aux_dir/ltmain.sh"
5339ofile="$default_ofile"
5340with_gnu_ld="$lt_cv_prog_gnu_ld"
5341
5342if test -n "$ac_tool_prefix"; then
5343  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5344set dummy ${ac_tool_prefix}ar; ac_word=$2
5345echo "$as_me:$LINENO: checking for $ac_word" >&5
5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347if test "${ac_cv_prog_AR+set}" = set; then
5348  echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350  if test -n "$AR"; then
5351  ac_cv_prog_AR="$AR" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358  for ac_exec_ext in '' $ac_executable_extensions; do
5359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360    ac_cv_prog_AR="${ac_tool_prefix}ar"
5361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365done
5366
5367fi
5368fi
5369AR=$ac_cv_prog_AR
5370if test -n "$AR"; then
5371  echo "$as_me:$LINENO: result: $AR" >&5
5372echo "${ECHO_T}$AR" >&6
5373else
5374  echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378fi
5379if test -z "$ac_cv_prog_AR"; then
5380  ac_ct_AR=$AR
5381  # Extract the first word of "ar", so it can be a program name with args.
5382set dummy ar; ac_word=$2
5383echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5386  echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388  if test -n "$ac_ct_AR"; then
5389  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394  IFS=$as_save_IFS
5395  test -z "$as_dir" && as_dir=.
5396  for ac_exec_ext in '' $ac_executable_extensions; do
5397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398    ac_cv_prog_ac_ct_AR="ar"
5399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400    break 2
5401  fi
5402done
5403done
5404
5405  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5406fi
5407fi
5408ac_ct_AR=$ac_cv_prog_ac_ct_AR
5409if test -n "$ac_ct_AR"; then
5410  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5411echo "${ECHO_T}$ac_ct_AR" >&6
5412else
5413  echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415fi
5416
5417  AR=$ac_ct_AR
5418else
5419  AR="$ac_cv_prog_AR"
5420fi
5421
5422if test -n "$ac_tool_prefix"; then
5423  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5424set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427if test "${ac_cv_prog_RANLIB+set}" = set; then
5428  echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430  if test -n "$RANLIB"; then
5431  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436  IFS=$as_save_IFS
5437  test -z "$as_dir" && as_dir=.
5438  for ac_exec_ext in '' $ac_executable_extensions; do
5439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442    break 2
5443  fi
5444done
5445done
5446
5447fi
5448fi
5449RANLIB=$ac_cv_prog_RANLIB
5450if test -n "$RANLIB"; then
5451  echo "$as_me:$LINENO: result: $RANLIB" >&5
5452echo "${ECHO_T}$RANLIB" >&6
5453else
5454  echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
5458fi
5459if test -z "$ac_cv_prog_RANLIB"; then
5460  ac_ct_RANLIB=$RANLIB
5461  # Extract the first word of "ranlib", so it can be a program name with args.
5462set dummy ranlib; ac_word=$2
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5466  echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468  if test -n "$ac_ct_RANLIB"; then
5469  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474  IFS=$as_save_IFS
5475  test -z "$as_dir" && as_dir=.
5476  for ac_exec_ext in '' $ac_executable_extensions; do
5477  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478    ac_cv_prog_ac_ct_RANLIB="ranlib"
5479    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480    break 2
5481  fi
5482done
5483done
5484
5485  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5486fi
5487fi
5488ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5489if test -n "$ac_ct_RANLIB"; then
5490  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5491echo "${ECHO_T}$ac_ct_RANLIB" >&6
5492else
5493  echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495fi
5496
5497  RANLIB=$ac_ct_RANLIB
5498else
5499  RANLIB="$ac_cv_prog_RANLIB"
5500fi
5501
5502if test -n "$ac_tool_prefix"; then
5503  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}strip; ac_word=$2
5505echo "$as_me:$LINENO: checking for $ac_word" >&5
5506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507if test "${ac_cv_prog_STRIP+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510  if test -n "$STRIP"; then
5511  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518  for ac_exec_ext in '' $ac_executable_extensions; do
5519  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525done
5526
5527fi
5528fi
5529STRIP=$ac_cv_prog_STRIP
5530if test -n "$STRIP"; then
5531  echo "$as_me:$LINENO: result: $STRIP" >&5
5532echo "${ECHO_T}$STRIP" >&6
5533else
5534  echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536fi
5537
5538fi
5539if test -z "$ac_cv_prog_STRIP"; then
5540  ac_ct_STRIP=$STRIP
5541  # Extract the first word of "strip", so it can be a program name with args.
5542set dummy strip; ac_word=$2
5543echo "$as_me:$LINENO: checking for $ac_word" >&5
5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5546  echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548  if test -n "$ac_ct_STRIP"; then
5549  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554  IFS=$as_save_IFS
5555  test -z "$as_dir" && as_dir=.
5556  for ac_exec_ext in '' $ac_executable_extensions; do
5557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558    ac_cv_prog_ac_ct_STRIP="strip"
5559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560    break 2
5561  fi
5562done
5563done
5564
5565  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5566fi
5567fi
5568ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5569if test -n "$ac_ct_STRIP"; then
5570  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5571echo "${ECHO_T}$ac_ct_STRIP" >&6
5572else
5573  echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575fi
5576
5577  STRIP=$ac_ct_STRIP
5578else
5579  STRIP="$ac_cv_prog_STRIP"
5580fi
5581
5582
5583old_CC="$CC"
5584old_CFLAGS="$CFLAGS"
5585
5586# Set sane defaults for various variables
5587test -z "$AR" && AR=ar
5588test -z "$AR_FLAGS" && AR_FLAGS=cru
5589test -z "$AS" && AS=as
5590test -z "$CC" && CC=cc
5591test -z "$LTCC" && LTCC=$CC
5592test -z "$DLLTOOL" && DLLTOOL=dlltool
5593test -z "$LD" && LD=ld
5594test -z "$LN_S" && LN_S="ln -s"
5595test -z "$MAGIC_CMD" && MAGIC_CMD=file
5596test -z "$NM" && NM=nm
5597test -z "$SED" && SED=sed
5598test -z "$OBJDUMP" && OBJDUMP=objdump
5599test -z "$RANLIB" && RANLIB=:
5600test -z "$STRIP" && STRIP=:
5601test -z "$ac_objext" && ac_objext=o
5602
5603# Determine commands to create old-style static archives.
5604old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5605old_postinstall_cmds='chmod 644 $oldlib'
5606old_postuninstall_cmds=
5607
5608if test -n "$RANLIB"; then
5609  case $host_os in
5610  openbsd*)
5611    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5612    ;;
5613  *)
5614    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5615    ;;
5616  esac
5617  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5618fi
5619
5620# Only perform the check for file, if the check method requires it
5621case $deplibs_check_method in
5622file_magic*)
5623  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5624    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5625echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5626if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629  case $MAGIC_CMD in
5630[\\/*] |  ?:[\\/]*)
5631  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5632  ;;
5633*)
5634  lt_save_MAGIC_CMD="$MAGIC_CMD"
5635  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5637  for ac_dir in $ac_dummy; do
5638    IFS="$lt_save_ifs"
5639    test -z "$ac_dir" && ac_dir=.
5640    if test -f $ac_dir/${ac_tool_prefix}file; then
5641      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5642      if test -n "$file_magic_test_file"; then
5643	case $deplibs_check_method in
5644	"file_magic "*)
5645	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5646	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5647	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5648	    $EGREP "$file_magic_regex" > /dev/null; then
5649	    :
5650	  else
5651	    cat <<EOF 1>&2
5652
5653*** Warning: the command libtool uses to detect shared libraries,
5654*** $file_magic_cmd, produces output that libtool cannot recognize.
5655*** The result is that libtool may fail to recognize shared libraries
5656*** as such.  This will affect the creation of libtool libraries that
5657*** depend on shared libraries, but programs linked with such libtool
5658*** libraries will work regardless of this problem.  Nevertheless, you
5659*** may want to report the problem to your system manager and/or to
5660*** bug-libtool@gnu.org
5661
5662EOF
5663	  fi ;;
5664	esac
5665      fi
5666      break
5667    fi
5668  done
5669  IFS="$lt_save_ifs"
5670  MAGIC_CMD="$lt_save_MAGIC_CMD"
5671  ;;
5672esac
5673fi
5674
5675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5676if test -n "$MAGIC_CMD"; then
5677  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5678echo "${ECHO_T}$MAGIC_CMD" >&6
5679else
5680  echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682fi
5683
5684if test -z "$lt_cv_path_MAGIC_CMD"; then
5685  if test -n "$ac_tool_prefix"; then
5686    echo "$as_me:$LINENO: checking for file" >&5
5687echo $ECHO_N "checking for file... $ECHO_C" >&6
5688if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  case $MAGIC_CMD in
5692[\\/*] |  ?:[\\/]*)
5693  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5694  ;;
5695*)
5696  lt_save_MAGIC_CMD="$MAGIC_CMD"
5697  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5699  for ac_dir in $ac_dummy; do
5700    IFS="$lt_save_ifs"
5701    test -z "$ac_dir" && ac_dir=.
5702    if test -f $ac_dir/file; then
5703      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5704      if test -n "$file_magic_test_file"; then
5705	case $deplibs_check_method in
5706	"file_magic "*)
5707	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5708	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5709	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5710	    $EGREP "$file_magic_regex" > /dev/null; then
5711	    :
5712	  else
5713	    cat <<EOF 1>&2
5714
5715*** Warning: the command libtool uses to detect shared libraries,
5716*** $file_magic_cmd, produces output that libtool cannot recognize.
5717*** The result is that libtool may fail to recognize shared libraries
5718*** as such.  This will affect the creation of libtool libraries that
5719*** depend on shared libraries, but programs linked with such libtool
5720*** libraries will work regardless of this problem.  Nevertheless, you
5721*** may want to report the problem to your system manager and/or to
5722*** bug-libtool@gnu.org
5723
5724EOF
5725	  fi ;;
5726	esac
5727      fi
5728      break
5729    fi
5730  done
5731  IFS="$lt_save_ifs"
5732  MAGIC_CMD="$lt_save_MAGIC_CMD"
5733  ;;
5734esac
5735fi
5736
5737MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5738if test -n "$MAGIC_CMD"; then
5739  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5740echo "${ECHO_T}$MAGIC_CMD" >&6
5741else
5742  echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744fi
5745
5746  else
5747    MAGIC_CMD=:
5748  fi
5749fi
5750
5751  fi
5752  ;;
5753esac
5754
5755enable_dlopen=no
5756enable_win32_dll=no
5757
5758# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5759if test "${enable_libtool_lock+set}" = set; then
5760  enableval="$enable_libtool_lock"
5761
5762fi;
5763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5764
5765
5766# Check whether --with-pic or --without-pic was given.
5767if test "${with_pic+set}" = set; then
5768  withval="$with_pic"
5769  pic_mode="$withval"
5770else
5771  pic_mode=default
5772fi;
5773test -z "$pic_mode" && pic_mode=default
5774
5775# Use C for the default configuration in the libtool script
5776tagname=
5777lt_save_CC="$CC"
5778ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784
5785# Source file extension for C test sources.
5786ac_ext=c
5787
5788# Object file extension for compiled C test sources.
5789objext=o
5790objext=$objext
5791
5792# Code to be used in simple compile tests
5793lt_simple_compile_test_code="int some_variable = 0;\n"
5794
5795# Code to be used in simple link tests
5796lt_simple_link_test_code='int main(){return(0);}\n'
5797
5798
5799# If no C compiler was specified, use CC.
5800LTCC=${LTCC-"$CC"}
5801
5802# Allow CC to be a program name with arguments.
5803compiler=$CC
5804
5805
5806#
5807# Check for any special shared library compilation flags.
5808#
5809lt_prog_cc_shlib=
5810if test "$GCC" = no; then
5811  case $host_os in
5812  sco3.2v5*)
5813    lt_prog_cc_shlib='-belf'
5814    ;;
5815  esac
5816fi
5817if test -n "$lt_prog_cc_shlib"; then
5818  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5819echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5820  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
5821  else
5822    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5823echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5824    lt_cv_prog_cc_can_build_shared=no
5825  fi
5826fi
5827
5828
5829#
5830# Check to make sure the static flag actually works.
5831#
5832echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5833echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5834if test "${lt_prog_compiler_static_works+set}" = set; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  lt_prog_compiler_static_works=no
5838   save_LDFLAGS="$LDFLAGS"
5839   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5840   printf "$lt_simple_link_test_code" > conftest.$ac_ext
5841   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5842     # The compiler can only warn and ignore the option if not recognized
5843     # So say no if there are warnings
5844     if test -s conftest.err; then
5845       # Append any errors to the config.log.
5846       cat conftest.err 1>&5
5847     else
5848       lt_prog_compiler_static_works=yes
5849     fi
5850   fi
5851   $rm conftest*
5852   LDFLAGS="$save_LDFLAGS"
5853
5854fi
5855echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5856echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5857
5858if test x"$lt_prog_compiler_static_works" = xyes; then
5859    :
5860else
5861    lt_prog_compiler_static=
5862fi
5863
5864
5865
5866
5867lt_prog_compiler_no_builtin_flag=
5868
5869if test "$GCC" = yes; then
5870  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5871
5872  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5873echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5874if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  lt_cv_prog_compiler_rtti_exceptions=no
5878  ac_outfile=conftest.$ac_objext
5879   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5880   lt_compiler_flag="-fno-rtti -fno-exceptions"
5881   # Insert the option either (1) after the last *FLAGS variable, or
5882   # (2) before a word containing "conftest.", or (3) at the end.
5883   # Note that $ac_compile itself does not contain backslashes and begins
5884   # with a dollar sign (not a hyphen), so the echo should work correctly.
5885   # The option is referenced via a variable to avoid confusing sed.
5886   lt_compile=`echo "$ac_compile" | $SED \
5887   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5888   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5889   -e 's:$: $lt_compiler_flag:'`
5890   (eval echo "\"\$as_me:5890: $lt_compile\"" >&5)
5891   (eval "$lt_compile" 2>conftest.err)
5892   ac_status=$?
5893   cat conftest.err >&5
5894   echo "$as_me:5894: \$? = $ac_status" >&5
5895   if (exit $ac_status) && test -s "$ac_outfile"; then
5896     # The compiler can only warn and ignore the option if not recognized
5897     # So say no if there are warnings
5898     if test ! -s conftest.err; then
5899       lt_cv_prog_compiler_rtti_exceptions=yes
5900     fi
5901   fi
5902   $rm conftest*
5903
5904fi
5905echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5906echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5907
5908if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5909    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5910else
5911    :
5912fi
5913
5914fi
5915
5916lt_prog_compiler_wl=
5917lt_prog_compiler_pic=
5918lt_prog_compiler_static=
5919
5920echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5921echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5922
5923  if test "$GCC" = yes; then
5924    lt_prog_compiler_wl='-Wl,'
5925    lt_prog_compiler_static='-static'
5926
5927    case $host_os in
5928      aix*)
5929      # All AIX code is PIC.
5930      if test "$host_cpu" = ia64; then
5931	# AIX 5 now supports IA64 processor
5932	lt_prog_compiler_static='-Bstatic'
5933      fi
5934      ;;
5935
5936    amigaos*)
5937      # FIXME: we need at least 68020 code to build shared libraries, but
5938      # adding the `-m68020' flag to GCC prevents building anything better,
5939      # like `-m68040'.
5940      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5941      ;;
5942
5943    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5944      # PIC is the default for these OSes.
5945      ;;
5946
5947    mingw* | pw32* | os2*)
5948      # This hack is so that the source file can tell whether it is being
5949      # built for inclusion in a dll (and should export symbols for example).
5950      lt_prog_compiler_pic='-DDLL_EXPORT'
5951      ;;
5952
5953    darwin* | rhapsody*)
5954      # PIC is the default on this platform
5955      # Common symbols not allowed in MH_DYLIB files
5956      lt_prog_compiler_pic='-fno-common'
5957      ;;
5958
5959    msdosdjgpp*)
5960      # Just because we use GCC doesn't mean we suddenly get shared libraries
5961      # on systems that don't support them.
5962      lt_prog_compiler_can_build_shared=no
5963      enable_shared=no
5964      ;;
5965
5966    sysv4*MP*)
5967      if test -d /usr/nec; then
5968	lt_prog_compiler_pic=-Kconform_pic
5969      fi
5970      ;;
5971
5972    hpux*)
5973      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5974      # not for PA HP-UX.
5975      case "$host_cpu" in
5976      hppa*64*|ia64*)
5977	# +Z the default
5978	;;
5979      *)
5980	lt_prog_compiler_pic='-fPIC'
5981	;;
5982      esac
5983      ;;
5984
5985    *)
5986      lt_prog_compiler_pic='-fPIC'
5987      ;;
5988    esac
5989  else
5990    # PORTME Check for flag to pass linker flags through the system compiler.
5991    case $host_os in
5992    aix*)
5993      lt_prog_compiler_wl='-Wl,'
5994      if test "$host_cpu" = ia64; then
5995	# AIX 5 now supports IA64 processor
5996	lt_prog_compiler_static='-Bstatic'
5997      else
5998	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5999      fi
6000      ;;
6001
6002    mingw* | pw32* | os2*)
6003      # This hack is so that the source file can tell whether it is being
6004      # built for inclusion in a dll (and should export symbols for example).
6005      lt_prog_compiler_pic='-DDLL_EXPORT'
6006      ;;
6007
6008    hpux9* | hpux10* | hpux11*)
6009      lt_prog_compiler_wl='-Wl,'
6010      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6011      # not for PA HP-UX.
6012      case "$host_cpu" in
6013      hppa*64*|ia64*)
6014	# +Z the default
6015	;;
6016      *)
6017	lt_prog_compiler_pic='+Z'
6018	;;
6019      esac
6020      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6021      lt_prog_compiler_static='${wl}-a ${wl}archive'
6022      ;;
6023
6024    irix5* | irix6* | nonstopux*)
6025      lt_prog_compiler_wl='-Wl,'
6026      # PIC (with -KPIC) is the default.
6027      lt_prog_compiler_static='-non_shared'
6028      ;;
6029
6030    newsos6)
6031      lt_prog_compiler_pic='-KPIC'
6032      lt_prog_compiler_static='-Bstatic'
6033      ;;
6034
6035    linux*)
6036      case $CC in
6037      icc|ecc)
6038	lt_prog_compiler_wl='-Wl,'
6039	lt_prog_compiler_pic='-KPIC'
6040	lt_prog_compiler_static='-static'
6041        ;;
6042      ccc)
6043        lt_prog_compiler_wl='-Wl,'
6044        # All Alpha code is PIC.
6045        lt_prog_compiler_static='-non_shared'
6046        ;;
6047      esac
6048      ;;
6049
6050    osf3* | osf4* | osf5*)
6051      lt_prog_compiler_wl='-Wl,'
6052      # All OSF/1 code is PIC.
6053      lt_prog_compiler_static='-non_shared'
6054      ;;
6055
6056    sco3.2v5*)
6057      lt_prog_compiler_pic='-Kpic'
6058      lt_prog_compiler_static='-dn'
6059      ;;
6060
6061    solaris*)
6062      lt_prog_compiler_wl='-Wl,'
6063      lt_prog_compiler_pic='-KPIC'
6064      lt_prog_compiler_static='-Bstatic'
6065      ;;
6066
6067    sunos4*)
6068      lt_prog_compiler_wl='-Qoption ld '
6069      lt_prog_compiler_pic='-PIC'
6070      lt_prog_compiler_static='-Bstatic'
6071      ;;
6072
6073    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6074      lt_prog_compiler_wl='-Wl,'
6075      lt_prog_compiler_pic='-KPIC'
6076      lt_prog_compiler_static='-Bstatic'
6077      ;;
6078
6079    sysv4*MP*)
6080      if test -d /usr/nec ;then
6081	lt_prog_compiler_pic='-Kconform_pic'
6082	lt_prog_compiler_static='-Bstatic'
6083      fi
6084      ;;
6085
6086    uts4*)
6087      lt_prog_compiler_pic='-pic'
6088      lt_prog_compiler_static='-Bstatic'
6089      ;;
6090
6091    *)
6092      lt_prog_compiler_can_build_shared=no
6093      ;;
6094    esac
6095  fi
6096
6097echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6098echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6099
6100#
6101# Check to make sure the PIC flag actually works.
6102#
6103if test -n "$lt_prog_compiler_pic"; then
6104  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6106if test "${lt_prog_compiler_pic_works+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109  lt_prog_compiler_pic_works=no
6110  ac_outfile=conftest.$ac_objext
6111   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6113   # Insert the option either (1) after the last *FLAGS variable, or
6114   # (2) before a word containing "conftest.", or (3) at the end.
6115   # Note that $ac_compile itself does not contain backslashes and begins
6116   # with a dollar sign (not a hyphen), so the echo should work correctly.
6117   # The option is referenced via a variable to avoid confusing sed.
6118   lt_compile=`echo "$ac_compile" | $SED \
6119   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121   -e 's:$: $lt_compiler_flag:'`
6122   (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
6123   (eval "$lt_compile" 2>conftest.err)
6124   ac_status=$?
6125   cat conftest.err >&5
6126   echo "$as_me:6126: \$? = $ac_status" >&5
6127   if (exit $ac_status) && test -s "$ac_outfile"; then
6128     # The compiler can only warn and ignore the option if not recognized
6129     # So say no if there are warnings
6130     if test ! -s conftest.err; then
6131       lt_prog_compiler_pic_works=yes
6132     fi
6133   fi
6134   $rm conftest*
6135
6136fi
6137echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6138echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6139
6140if test x"$lt_prog_compiler_pic_works" = xyes; then
6141    case $lt_prog_compiler_pic in
6142     "" | " "*) ;;
6143     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6144     esac
6145else
6146    lt_prog_compiler_pic=
6147     lt_prog_compiler_can_build_shared=no
6148fi
6149
6150fi
6151case "$host_os" in
6152  # For platforms which do not support PIC, -DPIC is meaningless:
6153  *djgpp*)
6154    lt_prog_compiler_pic=
6155    ;;
6156  *)
6157    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6158    ;;
6159esac
6160
6161echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6162echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6163if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6164  echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166  lt_cv_prog_compiler_c_o=no
6167   $rm -r conftest 2>/dev/null
6168   mkdir conftest
6169   cd conftest
6170   mkdir out
6171   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6172
6173   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6174   # that will create temporary files in the current directory regardless of
6175   # the output directory.  Thus, making CWD read-only will cause this test
6176   # to fail, enabling locking or at least warning the user not to do parallel
6177   # builds.
6178   chmod -w .
6179
6180   lt_compiler_flag="-o out/conftest2.$ac_objext"
6181   # Insert the option either (1) after the last *FLAGS variable, or
6182   # (2) before a word containing "conftest.", or (3) at the end.
6183   # Note that $ac_compile itself does not contain backslashes and begins
6184   # with a dollar sign (not a hyphen), so the echo should work correctly.
6185   lt_compile=`echo "$ac_compile" | $SED \
6186   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6188   -e 's:$: $lt_compiler_flag:'`
6189   (eval echo "\"\$as_me:6189: $lt_compile\"" >&5)
6190   (eval "$lt_compile" 2>out/conftest.err)
6191   ac_status=$?
6192   cat out/conftest.err >&5
6193   echo "$as_me:6193: \$? = $ac_status" >&5
6194   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6195   then
6196     # The compiler can only warn and ignore the option if not recognized
6197     # So say no if there are warnings
6198     if test ! -s out/conftest.err; then
6199       lt_cv_prog_compiler_c_o=yes
6200     fi
6201   fi
6202   chmod u+w .
6203   $rm conftest* out/*
6204   rmdir out
6205   cd ..
6206   rmdir conftest
6207   $rm conftest*
6208
6209fi
6210echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6211echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6212
6213
6214hard_links="nottested"
6215if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6216  # do not overwrite the value of need_locks provided by the user
6217  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6218echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6219  hard_links=yes
6220  $rm conftest*
6221  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6222  touch conftest.a
6223  ln conftest.a conftest.b 2>&5 || hard_links=no
6224  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6225  echo "$as_me:$LINENO: result: $hard_links" >&5
6226echo "${ECHO_T}$hard_links" >&6
6227  if test "$hard_links" = no; then
6228    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6229echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6230    need_locks=warn
6231  fi
6232else
6233  need_locks=no
6234fi
6235
6236echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6237echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6238
6239  runpath_var=
6240  allow_undefined_flag=
6241  enable_shared_with_static_runtimes=no
6242  archive_cmds=
6243  archive_expsym_cmds=
6244  old_archive_From_new_cmds=
6245  old_archive_from_expsyms_cmds=
6246  export_dynamic_flag_spec=
6247  whole_archive_flag_spec=
6248  thread_safe_flag_spec=
6249  hardcode_libdir_flag_spec=
6250  hardcode_libdir_flag_spec_ld=
6251  hardcode_libdir_separator=
6252  hardcode_direct=no
6253  hardcode_minus_L=no
6254  hardcode_shlibpath_var=unsupported
6255  link_all_deplibs=unknown
6256  hardcode_automatic=no
6257  module_cmds=
6258  module_expsym_cmds=
6259  always_export_symbols=no
6260  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6261  # include_expsyms should be a list of space-separated symbols to be *always*
6262  # included in the symbol list
6263  include_expsyms=
6264  # exclude_expsyms can be an extended regexp of symbols to exclude
6265  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6266  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6267  # as well as any symbol that contains `d'.
6268  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6269  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6270  # platforms (ab)use it in PIC code, but their linkers get confused if
6271  # the symbol is explicitly referenced.  Since portable code cannot
6272  # rely on this symbol name, it's probably fine to never include it in
6273  # preloaded symbol tables.
6274  extract_expsyms_cmds=
6275
6276  case $host_os in
6277  cygwin* | mingw* | pw32*)
6278    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6279    # When not using gcc, we currently assume that we are using
6280    # Microsoft Visual C++.
6281    if test "$GCC" != yes; then
6282      with_gnu_ld=no
6283    fi
6284    ;;
6285  openbsd*)
6286    with_gnu_ld=no
6287    ;;
6288  esac
6289
6290  ld_shlibs=yes
6291  if test "$with_gnu_ld" = yes; then
6292    # If archive_cmds runs LD, not CC, wlarc should be empty
6293    wlarc='${wl}'
6294
6295    # See if GNU ld supports shared libraries.
6296    case $host_os in
6297    aix3* | aix4* | aix5*)
6298      # On AIX/PPC, the GNU linker is very broken
6299      if test "$host_cpu" != ia64; then
6300	ld_shlibs=no
6301	cat <<EOF 1>&2
6302
6303*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6304*** to be unable to reliably create shared libraries on AIX.
6305*** Therefore, libtool is disabling shared libraries support.  If you
6306*** really care for shared libraries, you may want to modify your PATH
6307*** so that a non-GNU linker is found, and then restart.
6308
6309EOF
6310      fi
6311      ;;
6312
6313    amigaos*)
6314      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)'
6315      hardcode_libdir_flag_spec='-L$libdir'
6316      hardcode_minus_L=yes
6317
6318      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6319      # that the semantics of dynamic libraries on AmigaOS, at least up
6320      # to version 4, is to share data among multiple programs linked
6321      # with the same dynamic library.  Since this doesn't match the
6322      # behavior of shared libraries on other platforms, we can't use
6323      # them.
6324      ld_shlibs=no
6325      ;;
6326
6327    beos*)
6328      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6329	allow_undefined_flag=unsupported
6330	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6331	# support --undefined.  This deserves some investigation.  FIXME
6332	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6333      else
6334	ld_shlibs=no
6335      fi
6336      ;;
6337
6338    cygwin* | mingw* | pw32*)
6339      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6340      # as there is no search path for DLLs.
6341      hardcode_libdir_flag_spec='-L$libdir'
6342      allow_undefined_flag=unsupported
6343      always_export_symbols=no
6344      enable_shared_with_static_runtimes=yes
6345      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6346
6347      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6348        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6349	# If the export-symbols file already is a .def file (1st line
6350	# is EXPORTS), use it as is; otherwise, prepend...
6351	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6352	  cp $export_symbols $output_objdir/$soname.def;
6353	else
6354	  echo EXPORTS > $output_objdir/$soname.def;
6355	  cat $export_symbols >> $output_objdir/$soname.def;
6356	fi~
6357	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6358      else
6359	ld_shlibs=no
6360      fi
6361      ;;
6362
6363    netbsd*)
6364      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6366	wlarc=
6367      else
6368	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6369	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6370      fi
6371      ;;
6372
6373    solaris* | sysv5*)
6374      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6375	ld_shlibs=no
6376	cat <<EOF 1>&2
6377
6378*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6379*** create shared libraries on Solaris systems.  Therefore, libtool
6380*** is disabling shared libraries support.  We urge you to upgrade GNU
6381*** binutils to release 2.9.1 or newer.  Another option is to modify
6382*** your PATH or compiler configuration so that the native linker is
6383*** used, and then restart.
6384
6385EOF
6386      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6387	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6388	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6389      else
6390	ld_shlibs=no
6391      fi
6392      ;;
6393
6394    sunos4*)
6395      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6396      wlarc=
6397      hardcode_direct=yes
6398      hardcode_shlibpath_var=no
6399      ;;
6400
6401    *)
6402      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6403	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6404	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6405      else
6406	ld_shlibs=no
6407      fi
6408      ;;
6409    esac
6410
6411    if test "$ld_shlibs" = yes; then
6412      runpath_var=LD_RUN_PATH
6413      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6414      export_dynamic_flag_spec='${wl}--export-dynamic'
6415      # ancient GNU ld didn't support --whole-archive et. al.
6416      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6417 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6418      else
6419  	whole_archive_flag_spec=
6420      fi
6421    fi
6422  else
6423    # PORTME fill in a description of your system's linker (not GNU ld)
6424    case $host_os in
6425    aix3*)
6426      allow_undefined_flag=unsupported
6427      always_export_symbols=yes
6428      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'
6429      # Note: this linker hardcodes the directories in LIBPATH if there
6430      # are no directories specified by -L.
6431      hardcode_minus_L=yes
6432      if test "$GCC" = yes && test -z "$link_static_flag"; then
6433	# Neither direct hardcoding nor static linking is supported with a
6434	# broken collect2.
6435	hardcode_direct=unsupported
6436      fi
6437      ;;
6438
6439    aix4* | aix5*)
6440      if test "$host_cpu" = ia64; then
6441	# On IA64, the linker does run time linking by default, so we don't
6442	# have to do anything special.
6443	aix_use_runtimelinking=no
6444	exp_sym_flag='-Bexport'
6445	no_entry_flag=""
6446      else
6447	# If we're using GNU nm, then we don't want the "-C" option.
6448	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6449	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6450	  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'
6451	else
6452	  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'
6453	fi
6454	aix_use_runtimelinking=no
6455
6456	# Test if we are trying to use run time linking or normal
6457	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6458	# need to do runtime linking.
6459	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6460	  for ld_flag in $LDFLAGS; do
6461  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6462  	    aix_use_runtimelinking=yes
6463  	    break
6464  	  fi
6465	  done
6466	esac
6467
6468	exp_sym_flag='-bexport'
6469	no_entry_flag='-bnoentry'
6470      fi
6471
6472      # When large executables or shared objects are built, AIX ld can
6473      # have problems creating the table of contents.  If linking a library
6474      # or program results in "error TOC overflow" add -mminimal-toc to
6475      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6476      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6477
6478      archive_cmds=''
6479      hardcode_direct=yes
6480      hardcode_libdir_separator=':'
6481      link_all_deplibs=yes
6482
6483      if test "$GCC" = yes; then
6484	case $host_os in aix4.012|aix4.012.*)
6485	# We only want to do this on AIX 4.2 and lower, the check
6486	# below for broken collect2 doesn't work under 4.3+
6487	  collect2name=`${CC} -print-prog-name=collect2`
6488	  if test -f "$collect2name" && \
6489  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6490	  then
6491  	  # We have reworked collect2
6492  	  hardcode_direct=yes
6493	  else
6494  	  # We have old collect2
6495  	  hardcode_direct=unsupported
6496  	  # It fails to find uninstalled libraries when the uninstalled
6497  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6498  	  # to unsupported forces relinking
6499  	  hardcode_minus_L=yes
6500  	  hardcode_libdir_flag_spec='-L$libdir'
6501  	  hardcode_libdir_separator=
6502	  fi
6503	esac
6504	shared_flag='-shared'
6505      else
6506	# not using gcc
6507	if test "$host_cpu" = ia64; then
6508  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6509  	# chokes on -Wl,-G. The following line is correct:
6510	  shared_flag='-G'
6511	else
6512  	if test "$aix_use_runtimelinking" = yes; then
6513	    shared_flag='${wl}-G'
6514	  else
6515	    shared_flag='${wl}-bM:SRE'
6516  	fi
6517	fi
6518      fi
6519
6520      # It seems that -bexpall does not export symbols beginning with
6521      # underscore (_), so it is better to generate a list of symbols to export.
6522      always_export_symbols=yes
6523      if test "$aix_use_runtimelinking" = yes; then
6524	# Warning - without using the other runtime loading flags (-brtl),
6525	# -berok will link without error, but may produce a broken library.
6526	allow_undefined_flag='-berok'
6527       # Determine the default libpath from the value encoded in an empty executable.
6528       cat >conftest.$ac_ext <<_ACEOF
6529#line $LINENO "configure"
6530/* confdefs.h.  */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h.  */
6535
6536int
6537main ()
6538{
6539
6540  ;
6541  return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext conftest$ac_exeext
6545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546  (eval $ac_link) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); } &&
6550         { ac_try='test -s conftest$ac_exeext'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; }; then
6556
6557aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6558}'`
6559# Check for a 64-bit object if we didn't find anything.
6560if 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; }
6561}'`; fi
6562else
6563  echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566fi
6567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6569
6570       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6571	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"
6572       else
6573	if test "$host_cpu" = ia64; then
6574	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6575	  allow_undefined_flag="-z nodefs"
6576	  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"
6577	else
6578	 # Determine the default libpath from the value encoded in an empty executable.
6579	 cat >conftest.$ac_ext <<_ACEOF
6580#line $LINENO "configure"
6581/* confdefs.h.  */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h.  */
6586
6587int
6588main ()
6589{
6590
6591  ;
6592  return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext conftest$ac_exeext
6596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597  (eval $ac_link) 2>&5
6598  ac_status=$?
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); } &&
6601         { ac_try='test -s conftest$ac_exeext'
6602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603  (eval $ac_try) 2>&5
6604  ac_status=$?
6605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); }; }; then
6607
6608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6609}'`
6610# Check for a 64-bit object if we didn't find anything.
6611if 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; }
6612}'`; fi
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617fi
6618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6620
6621	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6622	  # Warning - without using the other run time loading flags,
6623	  # -berok will link without error, but may produce a broken library.
6624	  no_undefined_flag=' ${wl}-bernotok'
6625	  allow_undefined_flag=' ${wl}-berok'
6626	  # -bexpall does not export symbols beginning with underscore (_)
6627	  always_export_symbols=yes
6628	  # Exported symbols can be pulled into shared objects from archives
6629	  whole_archive_flag_spec=' '
6630	  archive_cmds_need_lc=yes
6631	  # This is similar to how AIX traditionally builds it's shared libraries.
6632	  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'
6633	fi
6634      fi
6635      ;;
6636
6637    amigaos*)
6638      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)'
6639      hardcode_libdir_flag_spec='-L$libdir'
6640      hardcode_minus_L=yes
6641      # see comment about different semantics on the GNU ld section
6642      ld_shlibs=no
6643      ;;
6644
6645    bsdi4*)
6646      export_dynamic_flag_spec=-rdynamic
6647      ;;
6648
6649    cygwin* | mingw* | pw32*)
6650      # When not using gcc, we currently assume that we are using
6651      # Microsoft Visual C++.
6652      # hardcode_libdir_flag_spec is actually meaningless, as there is
6653      # no search path for DLLs.
6654      hardcode_libdir_flag_spec=' '
6655      allow_undefined_flag=unsupported
6656      # Tell ltmain to make .lib files, not .a files.
6657      libext=lib
6658      # Tell ltmain to make .dll files, not .so files.
6659      shrext=".dll"
6660      # FIXME: Setting linknames here is a bad hack.
6661      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6662      # The linker will automatically build a .lib file if we build a DLL.
6663      old_archive_From_new_cmds='true'
6664      # FIXME: Should let the user specify the lib program.
6665      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6666      fix_srcfile_path='`cygpath -w "$srcfile"`'
6667      enable_shared_with_static_runtimes=yes
6668      ;;
6669
6670    darwin* | rhapsody*)
6671    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6672      archive_cmds_need_lc=no
6673      case "$host_os" in
6674      rhapsody* | darwin1.[012])
6675	allow_undefined_flag='-undefined suppress'
6676	;;
6677      *) # Darwin 1.3 on
6678	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6679	;;
6680      esac
6681      # FIXME: Relying on posixy $() will cause problems for
6682      #        cross-compilation, but unfortunately the echo tests do not
6683      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6684      #	       `"' quotes if we put them in here... so don't!
6685    	lt_int_apple_cc_single_mod=no
6686    	output_verbose_link_cmd='echo'
6687    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6688    	  lt_int_apple_cc_single_mod=yes
6689    	fi
6690    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6691    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6692    	else
6693        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'
6694      fi
6695      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6696      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6697        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698          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}'
6699        else
6700          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}'
6701        fi
6702          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}'
6703      hardcode_direct=no
6704      hardcode_automatic=yes
6705      hardcode_shlibpath_var=unsupported
6706      whole_archive_flag_spec='-all_load $convenience'
6707      link_all_deplibs=yes
6708    fi
6709      ;;
6710
6711    dgux*)
6712      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6713      hardcode_libdir_flag_spec='-L$libdir'
6714      hardcode_shlibpath_var=no
6715      ;;
6716
6717    freebsd1*)
6718      ld_shlibs=no
6719      ;;
6720
6721    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6722    # support.  Future versions do this automatically, but an explicit c++rt0.o
6723    # does not break anything, and helps significantly (at the cost of a little
6724    # extra space).
6725    freebsd2.2*)
6726      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6727      hardcode_libdir_flag_spec='-R$libdir'
6728      hardcode_direct=yes
6729      hardcode_shlibpath_var=no
6730      ;;
6731
6732    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6733    freebsd2*)
6734      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6735      hardcode_direct=yes
6736      hardcode_minus_L=yes
6737      hardcode_shlibpath_var=no
6738      ;;
6739
6740    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6741    freebsd*)
6742      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6743      hardcode_libdir_flag_spec='-R$libdir'
6744      hardcode_direct=yes
6745      hardcode_shlibpath_var=no
6746      ;;
6747
6748    hpux9*)
6749      if test "$GCC" = yes; then
6750	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'
6751      else
6752	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'
6753      fi
6754      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6755      hardcode_libdir_separator=:
6756      hardcode_direct=yes
6757
6758      # hardcode_minus_L: Not really in the search PATH,
6759      # but as the default location of the library.
6760      hardcode_minus_L=yes
6761      export_dynamic_flag_spec='${wl}-E'
6762      ;;
6763
6764    hpux10* | hpux11*)
6765      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6766	case "$host_cpu" in
6767	hppa*64*|ia64*)
6768	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6769	  ;;
6770	*)
6771	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6772	  ;;
6773	esac
6774      else
6775	case "$host_cpu" in
6776	hppa*64*|ia64*)
6777	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6778	  ;;
6779	*)
6780	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6781	  ;;
6782	esac
6783      fi
6784      if test "$with_gnu_ld" = no; then
6785	case "$host_cpu" in
6786	hppa*64*)
6787	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6788	  hardcode_libdir_flag_spec_ld='+b $libdir'
6789	  hardcode_libdir_separator=:
6790	  hardcode_direct=no
6791	  hardcode_shlibpath_var=no
6792	  ;;
6793	ia64*)
6794	  hardcode_libdir_flag_spec='-L$libdir'
6795	  hardcode_direct=no
6796	  hardcode_shlibpath_var=no
6797
6798	  # hardcode_minus_L: Not really in the search PATH,
6799	  # but as the default location of the library.
6800	  hardcode_minus_L=yes
6801	  ;;
6802	*)
6803	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6804	  hardcode_libdir_separator=:
6805	  hardcode_direct=yes
6806	  export_dynamic_flag_spec='${wl}-E'
6807
6808	  # hardcode_minus_L: Not really in the search PATH,
6809	  # but as the default location of the library.
6810	  hardcode_minus_L=yes
6811	  ;;
6812	esac
6813      fi
6814      ;;
6815
6816    irix5* | irix6* | nonstopux*)
6817      if test "$GCC" = yes; then
6818	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'
6819      else
6820	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'
6821	hardcode_libdir_flag_spec_ld='-rpath $libdir'
6822      fi
6823      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6824      hardcode_libdir_separator=:
6825      link_all_deplibs=yes
6826      ;;
6827
6828    netbsd*)
6829      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6830	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6831      else
6832	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6833      fi
6834      hardcode_libdir_flag_spec='-R$libdir'
6835      hardcode_direct=yes
6836      hardcode_shlibpath_var=no
6837      ;;
6838
6839    newsos6)
6840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6841      hardcode_direct=yes
6842      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6843      hardcode_libdir_separator=:
6844      hardcode_shlibpath_var=no
6845      ;;
6846
6847    openbsd*)
6848      hardcode_direct=yes
6849      hardcode_shlibpath_var=no
6850      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6851	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6852	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6853	export_dynamic_flag_spec='${wl}-E'
6854      else
6855       case $host_os in
6856	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6857	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6858	   hardcode_libdir_flag_spec='-R$libdir'
6859	   ;;
6860	 *)
6861	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6862	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6863	   ;;
6864       esac
6865      fi
6866      ;;
6867
6868    os2*)
6869      hardcode_libdir_flag_spec='-L$libdir'
6870      hardcode_minus_L=yes
6871      allow_undefined_flag=unsupported
6872      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'
6873      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6874      ;;
6875
6876    osf3*)
6877      if test "$GCC" = yes; then
6878	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6879	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'
6880      else
6881	allow_undefined_flag=' -expect_unresolved \*'
6882	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'
6883      fi
6884      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6885      hardcode_libdir_separator=:
6886      ;;
6887
6888    osf4* | osf5*)	# as osf3* with the addition of -msym flag
6889      if test "$GCC" = yes; then
6890	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6891	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'
6892	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893      else
6894	allow_undefined_flag=' -expect_unresolved \*'
6895	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'
6896	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6897	$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'
6898
6899	# Both c and cxx compiler support -rpath directly
6900	hardcode_libdir_flag_spec='-rpath $libdir'
6901      fi
6902      hardcode_libdir_separator=:
6903      ;;
6904
6905    sco3.2v5*)
6906      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907      hardcode_shlibpath_var=no
6908      export_dynamic_flag_spec='${wl}-Bexport'
6909      runpath_var=LD_RUN_PATH
6910      hardcode_runpath_var=yes
6911      ;;
6912
6913    solaris*)
6914      no_undefined_flag=' -z text'
6915      if test "$GCC" = yes; then
6916	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6917	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6918	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6919      else
6920	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923      fi
6924      hardcode_libdir_flag_spec='-R$libdir'
6925      hardcode_shlibpath_var=no
6926      case $host_os in
6927      solaris2.[0-5] | solaris2.[0-5].*) ;;
6928      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6929	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6930      esac
6931      link_all_deplibs=yes
6932      ;;
6933
6934    sunos4*)
6935      if test "x$host_vendor" = xsequent; then
6936	# Use $CC to link under sequent, because it throws in some extra .o
6937	# files that make .init and .fini sections work.
6938	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6939      else
6940	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6941      fi
6942      hardcode_libdir_flag_spec='-L$libdir'
6943      hardcode_direct=yes
6944      hardcode_minus_L=yes
6945      hardcode_shlibpath_var=no
6946      ;;
6947
6948    sysv4)
6949      case $host_vendor in
6950	sni)
6951	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6952	  hardcode_direct=yes # is this really true???
6953	;;
6954	siemens)
6955	  ## LD is ld it makes a PLAMLIB
6956	  ## CC just makes a GrossModule.
6957	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6958	  reload_cmds='$CC -r -o $output$reload_objs'
6959	  hardcode_direct=no
6960        ;;
6961	motorola)
6962	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6964	;;
6965      esac
6966      runpath_var='LD_RUN_PATH'
6967      hardcode_shlibpath_var=no
6968      ;;
6969
6970    sysv4.3*)
6971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972      hardcode_shlibpath_var=no
6973      export_dynamic_flag_spec='-Bexport'
6974      ;;
6975
6976    sysv4*MP*)
6977      if test -d /usr/nec; then
6978	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979	hardcode_shlibpath_var=no
6980	runpath_var=LD_RUN_PATH
6981	hardcode_runpath_var=yes
6982	ld_shlibs=yes
6983      fi
6984      ;;
6985
6986    sysv4.2uw2*)
6987      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6988      hardcode_direct=yes
6989      hardcode_minus_L=no
6990      hardcode_shlibpath_var=no
6991      hardcode_runpath_var=yes
6992      runpath_var=LD_RUN_PATH
6993      ;;
6994
6995   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6996      no_undefined_flag='${wl}-z ${wl}text'
6997      if test "$GCC" = yes; then
6998	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6999      else
7000	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001      fi
7002      runpath_var='LD_RUN_PATH'
7003      hardcode_shlibpath_var=no
7004      ;;
7005
7006    sysv5*)
7007      no_undefined_flag=' -z text'
7008      # $CC -shared without GNU ld will not create a library from C++
7009      # object files and a static libstdc++, better avoid it by now
7010      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7011      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7012  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7013      hardcode_libdir_flag_spec=
7014      hardcode_shlibpath_var=no
7015      runpath_var='LD_RUN_PATH'
7016      ;;
7017
7018    uts4*)
7019      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020      hardcode_libdir_flag_spec='-L$libdir'
7021      hardcode_shlibpath_var=no
7022      ;;
7023
7024    *)
7025      ld_shlibs=no
7026      ;;
7027    esac
7028  fi
7029
7030echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7031echo "${ECHO_T}$ld_shlibs" >&6
7032test "$ld_shlibs" = no && can_build_shared=no
7033
7034variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7035if test "$GCC" = yes; then
7036  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7037fi
7038
7039#
7040# Do we need to explicitly link libc?
7041#
7042case "x$archive_cmds_need_lc" in
7043x|xyes)
7044  # Assume -lc should be added
7045  archive_cmds_need_lc=yes
7046
7047  if test "$enable_shared" = yes && test "$GCC" = yes; then
7048    case $archive_cmds in
7049    *'~'*)
7050      # FIXME: we may have to deal with multi-command sequences.
7051      ;;
7052    '$CC '*)
7053      # Test whether the compiler implicitly links with -lc since on some
7054      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7055      # to ld, don't add -lc before -lgcc.
7056      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7057echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7058      $rm conftest*
7059      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7060
7061      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062  (eval $ac_compile) 2>&5
7063  ac_status=$?
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } 2>conftest.err; then
7066        soname=conftest
7067        lib=conftest
7068        libobjs=conftest.$ac_objext
7069        deplibs=
7070        wl=$lt_prog_compiler_wl
7071        compiler_flags=-v
7072        linker_flags=-v
7073        verstring=
7074        output_objdir=.
7075        libname=conftest
7076        lt_save_allow_undefined_flag=$allow_undefined_flag
7077        allow_undefined_flag=
7078        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7079  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7080  ac_status=$?
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); }
7083        then
7084	  archive_cmds_need_lc=no
7085        else
7086	  archive_cmds_need_lc=yes
7087        fi
7088        allow_undefined_flag=$lt_save_allow_undefined_flag
7089      else
7090        cat conftest.err 1>&5
7091      fi
7092      $rm conftest*
7093      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7094echo "${ECHO_T}$archive_cmds_need_lc" >&6
7095      ;;
7096    esac
7097  fi
7098  ;;
7099esac
7100
7101echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7102echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7103hardcode_action=
7104if test -n "$hardcode_libdir_flag_spec" || \
7105   test -n "$runpath_var " || \
7106   test "X$hardcode_automatic"="Xyes" ; then
7107
7108  # We can hardcode non-existant directories.
7109  if test "$hardcode_direct" != no &&
7110     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7111     # have to relink, otherwise we might link with an installed library
7112     # when we should be linking with a yet-to-be-installed one
7113     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7114     test "$hardcode_minus_L" != no; then
7115    # Linking always hardcodes the temporary library directory.
7116    hardcode_action=relink
7117  else
7118    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7119    hardcode_action=immediate
7120  fi
7121else
7122  # We cannot hardcode anything, or else we can only hardcode existing
7123  # directories.
7124  hardcode_action=unsupported
7125fi
7126echo "$as_me:$LINENO: result: $hardcode_action" >&5
7127echo "${ECHO_T}$hardcode_action" >&6
7128
7129if test "$hardcode_action" = relink; then
7130  # Fast installation is not supported
7131  enable_fast_install=no
7132elif test "$shlibpath_overrides_runpath" = yes ||
7133     test "$enable_shared" = no; then
7134  # Fast installation is not necessary
7135  enable_fast_install=needless
7136fi
7137
7138striplib=
7139old_striplib=
7140echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7141echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7142if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7143  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7144  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7145  echo "$as_me:$LINENO: result: yes" >&5
7146echo "${ECHO_T}yes" >&6
7147else
7148# FIXME - insert some real tests, host_os isn't really good enough
7149  case $host_os in
7150   darwin*)
7151       if test -n "$STRIP" ; then
7152         striplib="$STRIP -x"
7153         echo "$as_me:$LINENO: result: yes" >&5
7154echo "${ECHO_T}yes" >&6
7155       else
7156  echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6
7158fi
7159       ;;
7160   *)
7161  echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
7163    ;;
7164  esac
7165fi
7166
7167echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7168echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7169library_names_spec=
7170libname_spec='lib$name'
7171soname_spec=
7172shrext=".so"
7173postinstall_cmds=
7174postuninstall_cmds=
7175finish_cmds=
7176finish_eval=
7177shlibpath_var=
7178shlibpath_overrides_runpath=unknown
7179version_type=none
7180dynamic_linker="$host_os ld.so"
7181sys_lib_dlsearch_path_spec="/lib /usr/lib"
7182if test "$GCC" = yes; then
7183  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7184  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7185    # if the path contains ";" then we assume it to be the separator
7186    # otherwise default to the standard path separator (i.e. ":") - it is
7187    # assumed that no part of a normal pathname contains ";" but that should
7188    # okay in the real world where ";" in dirpaths is itself problematic.
7189    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7190  else
7191    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7192  fi
7193else
7194  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7195fi
7196need_lib_prefix=unknown
7197hardcode_into_libs=no
7198
7199# when you set need_version to no, make sure it does not cause -set_version
7200# flags to be left without arguments
7201need_version=unknown
7202
7203case $host_os in
7204aix3*)
7205  version_type=linux
7206  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7207  shlibpath_var=LIBPATH
7208
7209  # AIX 3 has no versioning support, so we append a major version to the name.
7210  soname_spec='${libname}${release}${shared_ext}$major'
7211  ;;
7212
7213aix4* | aix5*)
7214  version_type=linux
7215  need_lib_prefix=no
7216  need_version=no
7217  hardcode_into_libs=yes
7218  if test "$host_cpu" = ia64; then
7219    # AIX 5 supports IA64
7220    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7221    shlibpath_var=LD_LIBRARY_PATH
7222  else
7223    # With GCC up to 2.95.x, collect2 would create an import file
7224    # for dependence libraries.  The import file would start with
7225    # the line `#! .'.  This would cause the generated library to
7226    # depend on `.', always an invalid library.  This was fixed in
7227    # development snapshots of GCC prior to 3.0.
7228    case $host_os in
7229      aix4 | aix4.[01] | aix4.[01].*)
7230      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7231	   echo ' yes '
7232	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7233	:
7234      else
7235	can_build_shared=no
7236      fi
7237      ;;
7238    esac
7239    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7240    # soname into executable. Probably we can add versioning support to
7241    # collect2, so additional links can be useful in future.
7242    if test "$aix_use_runtimelinking" = yes; then
7243      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7244      # instead of lib<name>.a to let people know that these are not
7245      # typical AIX shared libraries.
7246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247    else
7248      # We preserve .a as extension for shared libraries through AIX4.2
7249      # and later when we are not doing run time linking.
7250      library_names_spec='${libname}${release}.a $libname.a'
7251      soname_spec='${libname}${release}${shared_ext}$major'
7252    fi
7253    shlibpath_var=LIBPATH
7254  fi
7255  ;;
7256
7257amigaos*)
7258  library_names_spec='$libname.ixlibrary $libname.a'
7259  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7260  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'
7261  ;;
7262
7263beos*)
7264  library_names_spec='${libname}${shared_ext}'
7265  dynamic_linker="$host_os ld.so"
7266  shlibpath_var=LIBRARY_PATH
7267  ;;
7268
7269bsdi4*)
7270  version_type=linux
7271  need_version=no
7272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7273  soname_spec='${libname}${release}${shared_ext}$major'
7274  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7275  shlibpath_var=LD_LIBRARY_PATH
7276  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7277  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7278  # the default ld.so.conf also contains /usr/contrib/lib and
7279  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7280  # libtool to hard-code these into programs
7281  ;;
7282
7283cygwin* | mingw* | pw32*)
7284  version_type=windows
7285  shrext=".dll"
7286  need_version=no
7287  need_lib_prefix=no
7288
7289  case $GCC,$host_os in
7290  yes,cygwin* | yes,mingw* | yes,pw32*)
7291    library_names_spec='$libname.dll.a'
7292    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7293    postinstall_cmds='base_file=`basename \${file}`~
7294      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7295      dldir=$destdir/`dirname \$dlpath`~
7296      test -d \$dldir || mkdir -p \$dldir~
7297      $install_prog $dir/$dlname \$dldir/$dlname'
7298    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7299      dlpath=$dir/\$dldll~
7300       $rm \$dlpath'
7301    shlibpath_overrides_runpath=yes
7302
7303    case $host_os in
7304    cygwin*)
7305      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7306      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7308      ;;
7309    mingw*)
7310      # MinGW DLLs use traditional 'lib' prefix
7311      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7313      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7314        # It is most probably a Windows format PATH printed by
7315        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7316        # path with ; separators, and with drive letters. We can handle the
7317        # drive letters (cygwin fileutils understands them), so leave them,
7318        # especially as we might pass files found there to a mingw objdump,
7319        # which wouldn't understand a cygwinified path. Ahh.
7320        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7321      else
7322        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7323      fi
7324      ;;
7325    pw32*)
7326      # pw32 DLLs use 'pw' prefix rather than 'lib'
7327      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7328      ;;
7329    esac
7330    ;;
7331
7332  *)
7333    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7334    ;;
7335  esac
7336  dynamic_linker='Win32 ld.exe'
7337  # FIXME: first we should search . and the directory the executable is in
7338  shlibpath_var=PATH
7339  ;;
7340
7341darwin* | rhapsody*)
7342  dynamic_linker="$host_os dyld"
7343  version_type=darwin
7344  need_lib_prefix=no
7345  need_version=no
7346  # FIXME: Relying on posixy $() will cause problems for
7347  #        cross-compilation, but unfortunately the echo tests do not
7348  #        yet detect zsh echo's removal of \ escapes.
7349  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7350  soname_spec='${libname}${release}${major}$shared_ext'
7351  shlibpath_overrides_runpath=yes
7352  shlibpath_var=DYLD_LIBRARY_PATH
7353  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7354  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7355  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7356  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"`
7357  fi
7358  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7359  ;;
7360
7361dgux*)
7362  version_type=linux
7363  need_lib_prefix=no
7364  need_version=no
7365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7366  soname_spec='${libname}${release}${shared_ext}$major'
7367  shlibpath_var=LD_LIBRARY_PATH
7368  ;;
7369
7370freebsd1*)
7371  dynamic_linker=no
7372  ;;
7373
7374freebsd*)
7375  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7376  version_type=freebsd-$objformat
7377  case $version_type in
7378    freebsd-elf*)
7379      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7380      need_version=no
7381      need_lib_prefix=no
7382      ;;
7383    freebsd-*)
7384      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7385      need_version=yes
7386      ;;
7387  esac
7388  shlibpath_var=LD_LIBRARY_PATH
7389  case $host_os in
7390  freebsd2*)
7391    shlibpath_overrides_runpath=yes
7392    ;;
7393  freebsd3.01* | freebsdelf3.01*)
7394    shlibpath_overrides_runpath=yes
7395    hardcode_into_libs=yes
7396    ;;
7397  *) # from 3.2 on
7398    shlibpath_overrides_runpath=no
7399    hardcode_into_libs=yes
7400    ;;
7401  esac
7402  ;;
7403
7404gnu*)
7405  version_type=linux
7406  need_lib_prefix=no
7407  need_version=no
7408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7409  soname_spec='${libname}${release}${shared_ext}$major'
7410  shlibpath_var=LD_LIBRARY_PATH
7411  hardcode_into_libs=yes
7412  ;;
7413
7414hpux9* | hpux10* | hpux11*)
7415  # Give a soname corresponding to the major version so that dld.sl refuses to
7416  # link against other versions.
7417  version_type=sunos
7418  need_lib_prefix=no
7419  need_version=no
7420  case "$host_cpu" in
7421  ia64*)
7422    shrext='.so'
7423    hardcode_into_libs=yes
7424    dynamic_linker="$host_os dld.so"
7425    shlibpath_var=LD_LIBRARY_PATH
7426    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428    soname_spec='${libname}${release}${shared_ext}$major'
7429    if test "X$HPUX_IA64_MODE" = X32; then
7430      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7431    else
7432      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7433    fi
7434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7435    ;;
7436   hppa*64*)
7437     shrext='.sl'
7438     hardcode_into_libs=yes
7439     dynamic_linker="$host_os dld.sl"
7440     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443     soname_spec='${libname}${release}${shared_ext}$major'
7444     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446     ;;
7447   *)
7448    shrext='.sl'
7449    dynamic_linker="$host_os dld.sl"
7450    shlibpath_var=SHLIB_PATH
7451    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7453    soname_spec='${libname}${release}${shared_ext}$major'
7454    ;;
7455  esac
7456  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7457  postinstall_cmds='chmod 555 $lib'
7458  ;;
7459
7460irix5* | irix6* | nonstopux*)
7461  case $host_os in
7462    nonstopux*) version_type=nonstopux ;;
7463    *)
7464	if test "$lt_cv_prog_gnu_ld" = yes; then
7465		version_type=linux
7466	else
7467		version_type=irix
7468	fi ;;
7469  esac
7470  need_lib_prefix=no
7471  need_version=no
7472  soname_spec='${libname}${release}${shared_ext}$major'
7473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7474  case $host_os in
7475  irix5* | nonstopux*)
7476    libsuff= shlibsuff=
7477    ;;
7478  *)
7479    case $LD in # libtool.m4 will add one of these switches to LD
7480    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7481      libsuff= shlibsuff= libmagic=32-bit;;
7482    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7483      libsuff=32 shlibsuff=N32 libmagic=N32;;
7484    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7485      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7486    *) libsuff= shlibsuff= libmagic=never-match;;
7487    esac
7488    ;;
7489  esac
7490  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7491  shlibpath_overrides_runpath=no
7492  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7493  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7494  hardcode_into_libs=yes
7495  ;;
7496
7497# No shared lib support for Linux oldld, aout, or coff.
7498linux*oldld* | linux*aout* | linux*coff*)
7499  dynamic_linker=no
7500  ;;
7501
7502# This must be Linux ELF.
7503linux*)
7504  version_type=linux
7505  need_lib_prefix=no
7506  need_version=no
7507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508  soname_spec='${libname}${release}${shared_ext}$major'
7509  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7510  shlibpath_var=LD_LIBRARY_PATH
7511  shlibpath_overrides_runpath=no
7512  # This implies no fast_install, which is unacceptable.
7513  # Some rework will be needed to allow for fast_install
7514  # before this can be enabled.
7515  hardcode_into_libs=yes
7516
7517  # We used to test for /lib/ld.so.1 and disable shared libraries on
7518  # powerpc, because MkLinux only supported shared libraries with the
7519  # GNU dynamic linker.  Since this was broken with cross compilers,
7520  # most powerpc-linux boxes support dynamic linking these days and
7521  # people can always --disable-shared, the test was removed, and we
7522  # assume the GNU/Linux dynamic linker is in use.
7523  dynamic_linker='GNU/Linux ld.so'
7524  ;;
7525
7526netbsd*)
7527  version_type=sunos
7528  need_lib_prefix=no
7529  need_version=no
7530  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7532    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7533    dynamic_linker='NetBSD (a.out) ld.so'
7534  else
7535    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7536    soname_spec='${libname}${release}${shared_ext}$major'
7537    dynamic_linker='NetBSD ld.elf_so'
7538  fi
7539  shlibpath_var=LD_LIBRARY_PATH
7540  shlibpath_overrides_runpath=yes
7541  hardcode_into_libs=yes
7542  ;;
7543
7544newsos6)
7545  version_type=linux
7546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7547  shlibpath_var=LD_LIBRARY_PATH
7548  shlibpath_overrides_runpath=yes
7549  ;;
7550
7551nto-qnx)
7552  version_type=linux
7553  need_lib_prefix=no
7554  need_version=no
7555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556  soname_spec='${libname}${release}${shared_ext}$major'
7557  shlibpath_var=LD_LIBRARY_PATH
7558  shlibpath_overrides_runpath=yes
7559  ;;
7560
7561openbsd*)
7562  version_type=sunos
7563  need_lib_prefix=no
7564  need_version=no
7565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7566  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7567  shlibpath_var=LD_LIBRARY_PATH
7568  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7569    case $host_os in
7570      openbsd2.[89] | openbsd2.[89].*)
7571	shlibpath_overrides_runpath=no
7572	;;
7573      *)
7574	shlibpath_overrides_runpath=yes
7575	;;
7576      esac
7577  else
7578    shlibpath_overrides_runpath=yes
7579  fi
7580  ;;
7581
7582os2*)
7583  libname_spec='$name'
7584  shrext=".dll"
7585  need_lib_prefix=no
7586  library_names_spec='$libname${shared_ext} $libname.a'
7587  dynamic_linker='OS/2 ld.exe'
7588  shlibpath_var=LIBPATH
7589  ;;
7590
7591osf3* | osf4* | osf5*)
7592  version_type=osf
7593  need_lib_prefix=no
7594  need_version=no
7595  soname_spec='${libname}${release}${shared_ext}$major'
7596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7597  shlibpath_var=LD_LIBRARY_PATH
7598  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7599  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7600  ;;
7601
7602sco3.2v5*)
7603  version_type=osf
7604  soname_spec='${libname}${release}${shared_ext}$major'
7605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7606  shlibpath_var=LD_LIBRARY_PATH
7607  ;;
7608
7609solaris*)
7610  version_type=linux
7611  need_lib_prefix=no
7612  need_version=no
7613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614  soname_spec='${libname}${release}${shared_ext}$major'
7615  shlibpath_var=LD_LIBRARY_PATH
7616  shlibpath_overrides_runpath=yes
7617  hardcode_into_libs=yes
7618  # ldd complains unless libraries are executable
7619  postinstall_cmds='chmod +x $lib'
7620  ;;
7621
7622sunos4*)
7623  version_type=sunos
7624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7625  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7626  shlibpath_var=LD_LIBRARY_PATH
7627  shlibpath_overrides_runpath=yes
7628  if test "$with_gnu_ld" = yes; then
7629    need_lib_prefix=no
7630  fi
7631  need_version=yes
7632  ;;
7633
7634sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7635  version_type=linux
7636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7637  soname_spec='${libname}${release}${shared_ext}$major'
7638  shlibpath_var=LD_LIBRARY_PATH
7639  case $host_vendor in
7640    sni)
7641      shlibpath_overrides_runpath=no
7642      need_lib_prefix=no
7643      export_dynamic_flag_spec='${wl}-Blargedynsym'
7644      runpath_var=LD_RUN_PATH
7645      ;;
7646    siemens)
7647      need_lib_prefix=no
7648      ;;
7649    motorola)
7650      need_lib_prefix=no
7651      need_version=no
7652      shlibpath_overrides_runpath=no
7653      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7654      ;;
7655  esac
7656  ;;
7657
7658sysv4*MP*)
7659  if test -d /usr/nec ;then
7660    version_type=linux
7661    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7662    soname_spec='$libname${shared_ext}.$major'
7663    shlibpath_var=LD_LIBRARY_PATH
7664  fi
7665  ;;
7666
7667uts4*)
7668  version_type=linux
7669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670  soname_spec='${libname}${release}${shared_ext}$major'
7671  shlibpath_var=LD_LIBRARY_PATH
7672  ;;
7673
7674*)
7675  dynamic_linker=no
7676  ;;
7677esac
7678echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7679echo "${ECHO_T}$dynamic_linker" >&6
7680test "$dynamic_linker" = no && can_build_shared=no
7681
7682if test "x$enable_dlopen" != xyes; then
7683  enable_dlopen=unknown
7684  enable_dlopen_self=unknown
7685  enable_dlopen_self_static=unknown
7686else
7687  lt_cv_dlopen=no
7688  lt_cv_dlopen_libs=
7689
7690  case $host_os in
7691  beos*)
7692    lt_cv_dlopen="load_add_on"
7693    lt_cv_dlopen_libs=
7694    lt_cv_dlopen_self=yes
7695    ;;
7696
7697  mingw* | pw32*)
7698    lt_cv_dlopen="LoadLibrary"
7699    lt_cv_dlopen_libs=
7700   ;;
7701
7702  cygwin*)
7703    lt_cv_dlopen="dlopen"
7704    lt_cv_dlopen_libs=
7705   ;;
7706
7707  darwin*)
7708  # if libdl is installed we need to link against it
7709    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7710echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7711if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7712  echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714  ac_check_lib_save_LIBS=$LIBS
7715LIBS="-ldl  $LIBS"
7716cat >conftest.$ac_ext <<_ACEOF
7717#line $LINENO "configure"
7718/* confdefs.h.  */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h.  */
7723
7724/* Override any gcc2 internal prototype to avoid an error.  */
7725#ifdef __cplusplus
7726extern "C"
7727#endif
7728/* We use char because int might match the return type of a gcc2
7729   builtin and then its argument prototype would still apply.  */
7730char dlopen ();
7731int
7732main ()
7733{
7734dlopen ();
7735  ;
7736  return 0;
7737}
7738_ACEOF
7739rm -f conftest.$ac_objext conftest$ac_exeext
7740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741  (eval $ac_link) 2>&5
7742  ac_status=$?
7743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744  (exit $ac_status); } &&
7745         { ac_try='test -s conftest$ac_exeext'
7746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747  (eval $ac_try) 2>&5
7748  ac_status=$?
7749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750  (exit $ac_status); }; }; then
7751  ac_cv_lib_dl_dlopen=yes
7752else
7753  echo "$as_me: failed program was:" >&5
7754sed 's/^/| /' conftest.$ac_ext >&5
7755
7756ac_cv_lib_dl_dlopen=no
7757fi
7758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7759LIBS=$ac_check_lib_save_LIBS
7760fi
7761echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7762echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7763if test $ac_cv_lib_dl_dlopen = yes; then
7764  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7765else
7766
7767    lt_cv_dlopen="dyld"
7768    lt_cv_dlopen_libs=
7769    lt_cv_dlopen_self=yes
7770
7771fi
7772
7773   ;;
7774
7775  *)
7776    echo "$as_me:$LINENO: checking for shl_load" >&5
7777echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7778if test "${ac_cv_func_shl_load+set}" = set; then
7779  echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781  cat >conftest.$ac_ext <<_ACEOF
7782#line $LINENO "configure"
7783/* confdefs.h.  */
7784_ACEOF
7785cat confdefs.h >>conftest.$ac_ext
7786cat >>conftest.$ac_ext <<_ACEOF
7787/* end confdefs.h.  */
7788/* System header to define __stub macros and hopefully few prototypes,
7789    which can conflict with char shl_load (); below.
7790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791    <limits.h> exists even on freestanding compilers.  */
7792#ifdef __STDC__
7793# include <limits.h>
7794#else
7795# include <assert.h>
7796#endif
7797/* Override any gcc2 internal prototype to avoid an error.  */
7798#ifdef __cplusplus
7799extern "C"
7800{
7801#endif
7802/* We use char because int might match the return type of a gcc2
7803   builtin and then its argument prototype would still apply.  */
7804char shl_load ();
7805/* The GNU C library defines this for functions which it implements
7806    to always fail with ENOSYS.  Some functions are actually named
7807    something starting with __ and the normal name is an alias.  */
7808#if defined (__stub_shl_load) || defined (__stub___shl_load)
7809choke me
7810#else
7811char (*f) () = shl_load;
7812#endif
7813#ifdef __cplusplus
7814}
7815#endif
7816
7817int
7818main ()
7819{
7820return f != shl_load;
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
7826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827  (eval $ac_link) 2>&5
7828  ac_status=$?
7829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830  (exit $ac_status); } &&
7831         { ac_try='test -s conftest$ac_exeext'
7832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833  (eval $ac_try) 2>&5
7834  ac_status=$?
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); }; }; then
7837  ac_cv_func_shl_load=yes
7838else
7839  echo "$as_me: failed program was:" >&5
7840sed 's/^/| /' conftest.$ac_ext >&5
7841
7842ac_cv_func_shl_load=no
7843fi
7844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845fi
7846echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7847echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7848if test $ac_cv_func_shl_load = yes; then
7849  lt_cv_dlopen="shl_load"
7850else
7851  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7852echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7853if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7854  echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856  ac_check_lib_save_LIBS=$LIBS
7857LIBS="-ldld  $LIBS"
7858cat >conftest.$ac_ext <<_ACEOF
7859#line $LINENO "configure"
7860/* confdefs.h.  */
7861_ACEOF
7862cat confdefs.h >>conftest.$ac_ext
7863cat >>conftest.$ac_ext <<_ACEOF
7864/* end confdefs.h.  */
7865
7866/* Override any gcc2 internal prototype to avoid an error.  */
7867#ifdef __cplusplus
7868extern "C"
7869#endif
7870/* We use char because int might match the return type of a gcc2
7871   builtin and then its argument prototype would still apply.  */
7872char shl_load ();
7873int
7874main ()
7875{
7876shl_load ();
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881rm -f conftest.$ac_objext conftest$ac_exeext
7882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883  (eval $ac_link) 2>&5
7884  ac_status=$?
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); } &&
7887         { ac_try='test -s conftest$ac_exeext'
7888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889  (eval $ac_try) 2>&5
7890  ac_status=$?
7891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892  (exit $ac_status); }; }; then
7893  ac_cv_lib_dld_shl_load=yes
7894else
7895  echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898ac_cv_lib_dld_shl_load=no
7899fi
7900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901LIBS=$ac_check_lib_save_LIBS
7902fi
7903echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7904echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7905if test $ac_cv_lib_dld_shl_load = yes; then
7906  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7907else
7908  echo "$as_me:$LINENO: checking for dlopen" >&5
7909echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7910if test "${ac_cv_func_dlopen+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913  cat >conftest.$ac_ext <<_ACEOF
7914#line $LINENO "configure"
7915/* confdefs.h.  */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h.  */
7920/* System header to define __stub macros and hopefully few prototypes,
7921    which can conflict with char dlopen (); below.
7922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7923    <limits.h> exists even on freestanding compilers.  */
7924#ifdef __STDC__
7925# include <limits.h>
7926#else
7927# include <assert.h>
7928#endif
7929/* Override any gcc2 internal prototype to avoid an error.  */
7930#ifdef __cplusplus
7931extern "C"
7932{
7933#endif
7934/* We use char because int might match the return type of a gcc2
7935   builtin and then its argument prototype would still apply.  */
7936char dlopen ();
7937/* The GNU C library defines this for functions which it implements
7938    to always fail with ENOSYS.  Some functions are actually named
7939    something starting with __ and the normal name is an alias.  */
7940#if defined (__stub_dlopen) || defined (__stub___dlopen)
7941choke me
7942#else
7943char (*f) () = dlopen;
7944#endif
7945#ifdef __cplusplus
7946}
7947#endif
7948
7949int
7950main ()
7951{
7952return f != dlopen;
7953  ;
7954  return 0;
7955}
7956_ACEOF
7957rm -f conftest.$ac_objext conftest$ac_exeext
7958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959  (eval $ac_link) 2>&5
7960  ac_status=$?
7961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962  (exit $ac_status); } &&
7963         { ac_try='test -s conftest$ac_exeext'
7964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965  (eval $ac_try) 2>&5
7966  ac_status=$?
7967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968  (exit $ac_status); }; }; then
7969  ac_cv_func_dlopen=yes
7970else
7971  echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974ac_cv_func_dlopen=no
7975fi
7976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977fi
7978echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7979echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7980if test $ac_cv_func_dlopen = yes; then
7981  lt_cv_dlopen="dlopen"
7982else
7983  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7984echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7985if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7986  echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988  ac_check_lib_save_LIBS=$LIBS
7989LIBS="-ldl  $LIBS"
7990cat >conftest.$ac_ext <<_ACEOF
7991#line $LINENO "configure"
7992/* confdefs.h.  */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h.  */
7997
7998/* Override any gcc2 internal prototype to avoid an error.  */
7999#ifdef __cplusplus
8000extern "C"
8001#endif
8002/* We use char because int might match the return type of a gcc2
8003   builtin and then its argument prototype would still apply.  */
8004char dlopen ();
8005int
8006main ()
8007{
8008dlopen ();
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext conftest$ac_exeext
8014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015  (eval $ac_link) 2>&5
8016  ac_status=$?
8017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018  (exit $ac_status); } &&
8019         { ac_try='test -s conftest$ac_exeext'
8020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021  (eval $ac_try) 2>&5
8022  ac_status=$?
8023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024  (exit $ac_status); }; }; then
8025  ac_cv_lib_dl_dlopen=yes
8026else
8027  echo "$as_me: failed program was:" >&5
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
8030ac_cv_lib_dl_dlopen=no
8031fi
8032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033LIBS=$ac_check_lib_save_LIBS
8034fi
8035echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8036echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8037if test $ac_cv_lib_dl_dlopen = yes; then
8038  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8039else
8040  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8041echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8042if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8043  echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045  ac_check_lib_save_LIBS=$LIBS
8046LIBS="-lsvld  $LIBS"
8047cat >conftest.$ac_ext <<_ACEOF
8048#line $LINENO "configure"
8049/* confdefs.h.  */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h.  */
8054
8055/* Override any gcc2 internal prototype to avoid an error.  */
8056#ifdef __cplusplus
8057extern "C"
8058#endif
8059/* We use char because int might match the return type of a gcc2
8060   builtin and then its argument prototype would still apply.  */
8061char dlopen ();
8062int
8063main ()
8064{
8065dlopen ();
8066  ;
8067  return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext conftest$ac_exeext
8071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072  (eval $ac_link) 2>&5
8073  ac_status=$?
8074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075  (exit $ac_status); } &&
8076         { ac_try='test -s conftest$ac_exeext'
8077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078  (eval $ac_try) 2>&5
8079  ac_status=$?
8080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081  (exit $ac_status); }; }; then
8082  ac_cv_lib_svld_dlopen=yes
8083else
8084  echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087ac_cv_lib_svld_dlopen=no
8088fi
8089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8090LIBS=$ac_check_lib_save_LIBS
8091fi
8092echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094if test $ac_cv_lib_svld_dlopen = yes; then
8095  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8096else
8097  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8098echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8099if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8100  echo $ECHO_N "(cached) $ECHO_C" >&6
8101else
8102  ac_check_lib_save_LIBS=$LIBS
8103LIBS="-ldld  $LIBS"
8104cat >conftest.$ac_ext <<_ACEOF
8105#line $LINENO "configure"
8106/* confdefs.h.  */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h.  */
8111
8112/* Override any gcc2 internal prototype to avoid an error.  */
8113#ifdef __cplusplus
8114extern "C"
8115#endif
8116/* We use char because int might match the return type of a gcc2
8117   builtin and then its argument prototype would still apply.  */
8118char dld_link ();
8119int
8120main ()
8121{
8122dld_link ();
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext conftest$ac_exeext
8128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129  (eval $ac_link) 2>&5
8130  ac_status=$?
8131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132  (exit $ac_status); } &&
8133         { ac_try='test -s conftest$ac_exeext'
8134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135  (eval $ac_try) 2>&5
8136  ac_status=$?
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); }; }; then
8139  ac_cv_lib_dld_dld_link=yes
8140else
8141  echo "$as_me: failed program was:" >&5
8142sed 's/^/| /' conftest.$ac_ext >&5
8143
8144ac_cv_lib_dld_dld_link=no
8145fi
8146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147LIBS=$ac_check_lib_save_LIBS
8148fi
8149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8150echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8151if test $ac_cv_lib_dld_dld_link = yes; then
8152  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8153fi
8154
8155
8156fi
8157
8158
8159fi
8160
8161
8162fi
8163
8164
8165fi
8166
8167
8168fi
8169
8170    ;;
8171  esac
8172
8173  if test "x$lt_cv_dlopen" != xno; then
8174    enable_dlopen=yes
8175  else
8176    enable_dlopen=no
8177  fi
8178
8179  case $lt_cv_dlopen in
8180  dlopen)
8181    save_CPPFLAGS="$CPPFLAGS"
8182    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8183
8184    save_LDFLAGS="$LDFLAGS"
8185    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8186
8187    save_LIBS="$LIBS"
8188    LIBS="$lt_cv_dlopen_libs $LIBS"
8189
8190    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8191echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8192if test "${lt_cv_dlopen_self+set}" = set; then
8193  echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195  	  if test "$cross_compiling" = yes; then :
8196  lt_cv_dlopen_self=cross
8197else
8198  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8199  lt_status=$lt_dlunknown
8200  cat > conftest.$ac_ext <<EOF
8201#line 8201 "configure"
8202#include "confdefs.h"
8203
8204#if HAVE_DLFCN_H
8205#include <dlfcn.h>
8206#endif
8207
8208#include <stdio.h>
8209
8210#ifdef RTLD_GLOBAL
8211#  define LT_DLGLOBAL		RTLD_GLOBAL
8212#else
8213#  ifdef DL_GLOBAL
8214#    define LT_DLGLOBAL		DL_GLOBAL
8215#  else
8216#    define LT_DLGLOBAL		0
8217#  endif
8218#endif
8219
8220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221   find out it does not work in some platform. */
8222#ifndef LT_DLLAZY_OR_NOW
8223#  ifdef RTLD_LAZY
8224#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8225#  else
8226#    ifdef DL_LAZY
8227#      define LT_DLLAZY_OR_NOW		DL_LAZY
8228#    else
8229#      ifdef RTLD_NOW
8230#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8231#      else
8232#        ifdef DL_NOW
8233#          define LT_DLLAZY_OR_NOW	DL_NOW
8234#        else
8235#          define LT_DLLAZY_OR_NOW	0
8236#        endif
8237#      endif
8238#    endif
8239#  endif
8240#endif
8241
8242#ifdef __cplusplus
8243extern "C" void exit (int);
8244#endif
8245
8246void fnord() { int i=42;}
8247int main ()
8248{
8249  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250  int status = $lt_dlunknown;
8251
8252  if (self)
8253    {
8254      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8255      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256      /* dlclose (self); */
8257    }
8258
8259    exit (status);
8260}
8261EOF
8262  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263  (eval $ac_link) 2>&5
8264  ac_status=$?
8265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267    (./conftest; exit; ) 2>/dev/null
8268    lt_status=$?
8269    case x$lt_status in
8270      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8271      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8272      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8273    esac
8274  else :
8275    # compilation failed
8276    lt_cv_dlopen_self=no
8277  fi
8278fi
8279rm -fr conftest*
8280
8281
8282fi
8283echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8284echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8285
8286    if test "x$lt_cv_dlopen_self" = xyes; then
8287      LDFLAGS="$LDFLAGS $link_static_flag"
8288      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8289echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8290if test "${lt_cv_dlopen_self_static+set}" = set; then
8291  echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293  	  if test "$cross_compiling" = yes; then :
8294  lt_cv_dlopen_self_static=cross
8295else
8296  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8297  lt_status=$lt_dlunknown
8298  cat > conftest.$ac_ext <<EOF
8299#line 8299 "configure"
8300#include "confdefs.h"
8301
8302#if HAVE_DLFCN_H
8303#include <dlfcn.h>
8304#endif
8305
8306#include <stdio.h>
8307
8308#ifdef RTLD_GLOBAL
8309#  define LT_DLGLOBAL		RTLD_GLOBAL
8310#else
8311#  ifdef DL_GLOBAL
8312#    define LT_DLGLOBAL		DL_GLOBAL
8313#  else
8314#    define LT_DLGLOBAL		0
8315#  endif
8316#endif
8317
8318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8319   find out it does not work in some platform. */
8320#ifndef LT_DLLAZY_OR_NOW
8321#  ifdef RTLD_LAZY
8322#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8323#  else
8324#    ifdef DL_LAZY
8325#      define LT_DLLAZY_OR_NOW		DL_LAZY
8326#    else
8327#      ifdef RTLD_NOW
8328#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8329#      else
8330#        ifdef DL_NOW
8331#          define LT_DLLAZY_OR_NOW	DL_NOW
8332#        else
8333#          define LT_DLLAZY_OR_NOW	0
8334#        endif
8335#      endif
8336#    endif
8337#  endif
8338#endif
8339
8340#ifdef __cplusplus
8341extern "C" void exit (int);
8342#endif
8343
8344void fnord() { int i=42;}
8345int main ()
8346{
8347  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8348  int status = $lt_dlunknown;
8349
8350  if (self)
8351    {
8352      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8353      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8354      /* dlclose (self); */
8355    }
8356
8357    exit (status);
8358}
8359EOF
8360  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361  (eval $ac_link) 2>&5
8362  ac_status=$?
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8365    (./conftest; exit; ) 2>/dev/null
8366    lt_status=$?
8367    case x$lt_status in
8368      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8369      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8370      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8371    esac
8372  else :
8373    # compilation failed
8374    lt_cv_dlopen_self_static=no
8375  fi
8376fi
8377rm -fr conftest*
8378
8379
8380fi
8381echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8382echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8383    fi
8384
8385    CPPFLAGS="$save_CPPFLAGS"
8386    LDFLAGS="$save_LDFLAGS"
8387    LIBS="$save_LIBS"
8388    ;;
8389  esac
8390
8391  case $lt_cv_dlopen_self in
8392  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8393  *) enable_dlopen_self=unknown ;;
8394  esac
8395
8396  case $lt_cv_dlopen_self_static in
8397  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8398  *) enable_dlopen_self_static=unknown ;;
8399  esac
8400fi
8401
8402
8403# Report which librarie types wil actually be built
8404echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8405echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8406echo "$as_me:$LINENO: result: $can_build_shared" >&5
8407echo "${ECHO_T}$can_build_shared" >&6
8408
8409echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8410echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8411test "$can_build_shared" = "no" && enable_shared=no
8412
8413# On AIX, shared libraries and static libraries use the same namespace, and
8414# are all built from PIC.
8415case "$host_os" in
8416aix3*)
8417  test "$enable_shared" = yes && enable_static=no
8418  if test -n "$RANLIB"; then
8419    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8420    postinstall_cmds='$RANLIB $lib'
8421  fi
8422  ;;
8423
8424aix4*)
8425  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8426    test "$enable_shared" = yes && enable_static=no
8427  fi
8428  ;;
8429  darwin* | rhapsody*)
8430  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8431    archive_cmds_need_lc=no
8432    case "$host_os" in
8433    rhapsody* | darwin1.[012])
8434      allow_undefined_flag='-undefined suppress'
8435      ;;
8436    *) # Darwin 1.3 on
8437      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8438      ;;
8439    esac
8440    # FIXME: Relying on posixy $() will cause problems for
8441    #        cross-compilation, but unfortunately the echo tests do not
8442    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8443    #	       `"' quotes if we put them in here... so don't!
8444		output_verbose_link_cmd='echo'
8445    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8446    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8447    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8448		  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}'
8449		  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}'
8450    hardcode_direct=no
8451    hardcode_automatic=yes
8452    hardcode_shlibpath_var=unsupported
8453    whole_archive_flag_spec='-all_load $convenience'
8454    link_all_deplibs=yes
8455    fi
8456    ;;
8457esac
8458echo "$as_me:$LINENO: result: $enable_shared" >&5
8459echo "${ECHO_T}$enable_shared" >&6
8460
8461echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8462echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8463# Make sure either enable_shared or enable_static is yes.
8464test "$enable_shared" = yes || enable_static=yes
8465echo "$as_me:$LINENO: result: $enable_static" >&5
8466echo "${ECHO_T}$enable_static" >&6
8467
8468# The else clause should only fire when bootstrapping the
8469# libtool distribution, otherwise you forgot to ship ltmain.sh
8470# with your package, and you will get complaints that there are
8471# no rules to generate ltmain.sh.
8472if test -f "$ltmain"; then
8473  # See if we are running on zsh, and set the options which allow our commands through
8474  # without removal of \ escapes.
8475  if test -n "${ZSH_VERSION+set}" ; then
8476    setopt NO_GLOB_SUBST
8477  fi
8478  # Now quote all the things that may contain metacharacters while being
8479  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8480  # variables and quote the copies for generation of the libtool script.
8481  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8482    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8483    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8484    deplibs_check_method reload_flag reload_cmds need_locks \
8485    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8486    lt_cv_sys_global_symbol_to_c_name_address \
8487    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8488    old_postinstall_cmds old_postuninstall_cmds \
8489    compiler \
8490    CC \
8491    LD \
8492    lt_prog_compiler_wl \
8493    lt_prog_compiler_pic \
8494    lt_prog_compiler_static \
8495    lt_prog_compiler_no_builtin_flag \
8496    export_dynamic_flag_spec \
8497    thread_safe_flag_spec \
8498    whole_archive_flag_spec \
8499    enable_shared_with_static_runtimes \
8500    old_archive_cmds \
8501    old_archive_from_new_cmds \
8502    predep_objects \
8503    postdep_objects \
8504    predeps \
8505    postdeps \
8506    compiler_lib_search_path \
8507    archive_cmds \
8508    archive_expsym_cmds \
8509    postinstall_cmds \
8510    postuninstall_cmds \
8511    old_archive_from_expsyms_cmds \
8512    allow_undefined_flag \
8513    no_undefined_flag \
8514    export_symbols_cmds \
8515    hardcode_libdir_flag_spec \
8516    hardcode_libdir_flag_spec_ld \
8517    hardcode_libdir_separator \
8518    hardcode_automatic \
8519    module_cmds \
8520    module_expsym_cmds \
8521    lt_cv_prog_compiler_c_o \
8522    exclude_expsyms \
8523    include_expsyms; do
8524
8525    case $var in
8526    old_archive_cmds | \
8527    old_archive_from_new_cmds | \
8528    archive_cmds | \
8529    archive_expsym_cmds | \
8530    module_cmds | \
8531    module_expsym_cmds | \
8532    old_archive_from_expsyms_cmds | \
8533    export_symbols_cmds | \
8534    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8535    postinstall_cmds | postuninstall_cmds | \
8536    old_postinstall_cmds | old_postuninstall_cmds | \
8537    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8538      # Double-quote double-evaled strings.
8539      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8540      ;;
8541    *)
8542      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8543      ;;
8544    esac
8545  done
8546
8547  case $lt_echo in
8548  *'\$0 --fallback-echo"')
8549    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8550    ;;
8551  esac
8552
8553cfgfile="${ofile}T"
8554  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8555  $rm -f "$cfgfile"
8556  { echo "$as_me:$LINENO: creating $ofile" >&5
8557echo "$as_me: creating $ofile" >&6;}
8558
8559  cat <<__EOF__ >> "$cfgfile"
8560#! $SHELL
8561
8562# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8563# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8564# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8565#
8566# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8567# Free Software Foundation, Inc.
8568#
8569# This file is part of GNU Libtool:
8570# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8571#
8572# This program is free software; you can redistribute it and/or modify
8573# it under the terms of the GNU General Public License as published by
8574# the Free Software Foundation; either version 2 of the License, or
8575# (at your option) any later version.
8576#
8577# This program is distributed in the hope that it will be useful, but
8578# WITHOUT ANY WARRANTY; without even the implied warranty of
8579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8580# General Public License for more details.
8581#
8582# You should have received a copy of the GNU General Public License
8583# along with this program; if not, write to the Free Software
8584# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8585#
8586# As a special exception to the GNU General Public License, if you
8587# distribute this file as part of a program that contains a
8588# configuration script generated by Autoconf, you may include it under
8589# the same distribution terms that you use for the rest of that program.
8590
8591# A sed program that does not truncate output.
8592SED=$lt_SED
8593
8594# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8595Xsed="$SED -e s/^X//"
8596
8597# The HP-UX ksh and POSIX shell print the target directory to stdout
8598# if CDPATH is set.
8599if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8600
8601# The names of the tagged configurations supported by this script.
8602available_tags=
8603
8604# ### BEGIN LIBTOOL CONFIG
8605
8606# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8607
8608# Shell to use when invoking shell scripts.
8609SHELL=$lt_SHELL
8610
8611# Whether or not to build shared libraries.
8612build_libtool_libs=$enable_shared
8613
8614# Whether or not to build static libraries.
8615build_old_libs=$enable_static
8616
8617# Whether or not to add -lc for building shared libraries.
8618build_libtool_need_lc=$archive_cmds_need_lc
8619
8620# Whether or not to disallow shared libs when runtime libs are static
8621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8622
8623# Whether or not to optimize for fast installation.
8624fast_install=$enable_fast_install
8625
8626# The host system.
8627host_alias=$host_alias
8628host=$host
8629
8630# An echo program that does not interpret backslashes.
8631echo=$lt_echo
8632
8633# The archiver.
8634AR=$lt_AR
8635AR_FLAGS=$lt_AR_FLAGS
8636
8637# A C compiler.
8638LTCC=$lt_LTCC
8639
8640# A language-specific compiler.
8641CC=$lt_compiler
8642
8643# Is the compiler the GNU C compiler?
8644with_gcc=$GCC
8645
8646# An ERE matcher.
8647EGREP=$lt_EGREP
8648
8649# The linker used to build libraries.
8650LD=$lt_LD
8651
8652# Whether we need hard or soft links.
8653LN_S=$lt_LN_S
8654
8655# A BSD-compatible nm program.
8656NM=$lt_NM
8657
8658# A symbol stripping program
8659STRIP=$STRIP
8660
8661# Used to examine libraries when file_magic_cmd begins "file"
8662MAGIC_CMD=$MAGIC_CMD
8663
8664# Used on cygwin: DLL creation program.
8665DLLTOOL="$DLLTOOL"
8666
8667# Used on cygwin: object dumper.
8668OBJDUMP="$OBJDUMP"
8669
8670# Used on cygwin: assembler.
8671AS="$AS"
8672
8673# The name of the directory that contains temporary libtool files.
8674objdir=$objdir
8675
8676# How to create reloadable object files.
8677reload_flag=$lt_reload_flag
8678reload_cmds=$lt_reload_cmds
8679
8680# How to pass a linker flag through the compiler.
8681wl=$lt_lt_prog_compiler_wl
8682
8683# Object file suffix (normally "o").
8684objext="$ac_objext"
8685
8686# Old archive suffix (normally "a").
8687libext="$libext"
8688
8689# Shared library suffix (normally ".so").
8690shrext='$shrext'
8691
8692# Executable file suffix (normally "").
8693exeext="$exeext"
8694
8695# Additional compiler flags for building library objects.
8696pic_flag=$lt_lt_prog_compiler_pic
8697pic_mode=$pic_mode
8698
8699# What is the maximum length of a command?
8700max_cmd_len=$lt_cv_sys_max_cmd_len
8701
8702# Does compiler simultaneously support -c and -o options?
8703compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8704
8705# Must we lock files when doing compilation ?
8706need_locks=$lt_need_locks
8707
8708# Do we need the lib prefix for modules?
8709need_lib_prefix=$need_lib_prefix
8710
8711# Do we need a version for libraries?
8712need_version=$need_version
8713
8714# Whether dlopen is supported.
8715dlopen_support=$enable_dlopen
8716
8717# Whether dlopen of programs is supported.
8718dlopen_self=$enable_dlopen_self
8719
8720# Whether dlopen of statically linked programs is supported.
8721dlopen_self_static=$enable_dlopen_self_static
8722
8723# Compiler flag to prevent dynamic linking.
8724link_static_flag=$lt_lt_prog_compiler_static
8725
8726# Compiler flag to turn off builtin functions.
8727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8728
8729# Compiler flag to allow reflexive dlopens.
8730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8731
8732# Compiler flag to generate shared objects directly from archives.
8733whole_archive_flag_spec=$lt_whole_archive_flag_spec
8734
8735# Compiler flag to generate thread-safe objects.
8736thread_safe_flag_spec=$lt_thread_safe_flag_spec
8737
8738# Library versioning type.
8739version_type=$version_type
8740
8741# Format of library name prefix.
8742libname_spec=$lt_libname_spec
8743
8744# List of archive names.  First name is the real one, the rest are links.
8745# The last name is the one that the linker finds with -lNAME.
8746library_names_spec=$lt_library_names_spec
8747
8748# The coded name of the library, if different from the real name.
8749soname_spec=$lt_soname_spec
8750
8751# Commands used to build and install an old-style archive.
8752RANLIB=$lt_RANLIB
8753old_archive_cmds=$lt_old_archive_cmds
8754old_postinstall_cmds=$lt_old_postinstall_cmds
8755old_postuninstall_cmds=$lt_old_postuninstall_cmds
8756
8757# Create an old-style archive from a shared archive.
8758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8759
8760# Create a temporary old-style archive to link instead of a shared archive.
8761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8762
8763# Commands used to build and install a shared archive.
8764archive_cmds=$lt_archive_cmds
8765archive_expsym_cmds=$lt_archive_expsym_cmds
8766postinstall_cmds=$lt_postinstall_cmds
8767postuninstall_cmds=$lt_postuninstall_cmds
8768
8769# Commands used to build a loadable module (assumed same as above if empty)
8770module_cmds=$lt_module_cmds
8771module_expsym_cmds=$lt_module_expsym_cmds
8772
8773# Commands to strip libraries.
8774old_striplib=$lt_old_striplib
8775striplib=$lt_striplib
8776
8777# Dependencies to place before the objects being linked to create a
8778# shared library.
8779predep_objects=$lt_predep_objects
8780
8781# Dependencies to place after the objects being linked to create a
8782# shared library.
8783postdep_objects=$lt_postdep_objects
8784
8785# Dependencies to place before the objects being linked to create a
8786# shared library.
8787predeps=$lt_predeps
8788
8789# Dependencies to place after the objects being linked to create a
8790# shared library.
8791postdeps=$lt_postdeps
8792
8793# The library search path used internally by the compiler when linking
8794# a shared library.
8795compiler_lib_search_path=$lt_compiler_lib_search_path
8796
8797# Method to check whether dependent libraries are shared objects.
8798deplibs_check_method=$lt_deplibs_check_method
8799
8800# Command to use when deplibs_check_method == file_magic.
8801file_magic_cmd=$lt_file_magic_cmd
8802
8803# Flag that allows shared libraries with undefined symbols to be built.
8804allow_undefined_flag=$lt_allow_undefined_flag
8805
8806# Flag that forces no undefined symbols.
8807no_undefined_flag=$lt_no_undefined_flag
8808
8809# Commands used to finish a libtool library installation in a directory.
8810finish_cmds=$lt_finish_cmds
8811
8812# Same as above, but a single script fragment to be evaled but not shown.
8813finish_eval=$lt_finish_eval
8814
8815# Take the output of nm and produce a listing of raw symbols and C names.
8816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8817
8818# Transform the output of nm in a proper C declaration
8819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8820
8821# Transform the output of nm in a C name address pair
8822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8823
8824# This is the shared library runtime path variable.
8825runpath_var=$runpath_var
8826
8827# This is the shared library path variable.
8828shlibpath_var=$shlibpath_var
8829
8830# Is shlibpath searched before the hard-coded library search path?
8831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8832
8833# How to hardcode a shared library path into an executable.
8834hardcode_action=$hardcode_action
8835
8836# Whether we should hardcode library paths into libraries.
8837hardcode_into_libs=$hardcode_into_libs
8838
8839# Flag to hardcode \$libdir into a binary during linking.
8840# This must work even if \$libdir does not exist.
8841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8842
8843# If ld is used when linking, flag to hardcode \$libdir into
8844# a binary during linking. This must work even if \$libdir does
8845# not exist.
8846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8847
8848# Whether we need a single -rpath flag with a separated argument.
8849hardcode_libdir_separator=$lt_hardcode_libdir_separator
8850
8851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8852# resulting binary.
8853hardcode_direct=$hardcode_direct
8854
8855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8856# resulting binary.
8857hardcode_minus_L=$hardcode_minus_L
8858
8859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8860# the resulting binary.
8861hardcode_shlibpath_var=$hardcode_shlibpath_var
8862
8863# Set to yes if building a shared library automatically hardcodes DIR into the library
8864# and all subsequent libraries and executables linked against it.
8865hardcode_automatic=$hardcode_automatic
8866
8867# Variables whose values should be saved in libtool wrapper scripts and
8868# restored at relink time.
8869variables_saved_for_relink="$variables_saved_for_relink"
8870
8871# Whether libtool must link a program against all its dependency libraries.
8872link_all_deplibs=$link_all_deplibs
8873
8874# Compile-time system search path for libraries
8875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8876
8877# Run-time system search path for libraries
8878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8879
8880# Fix the shell variable \$srcfile for the compiler.
8881fix_srcfile_path="$fix_srcfile_path"
8882
8883# Set to yes if exported symbols are required.
8884always_export_symbols=$always_export_symbols
8885
8886# The commands to list exported symbols.
8887export_symbols_cmds=$lt_export_symbols_cmds
8888
8889# The commands to extract the exported symbol list from a shared archive.
8890extract_expsyms_cmds=$lt_extract_expsyms_cmds
8891
8892# Symbols that should not be listed in the preloaded symbols.
8893exclude_expsyms=$lt_exclude_expsyms
8894
8895# Symbols that must always be exported.
8896include_expsyms=$lt_include_expsyms
8897
8898# ### END LIBTOOL CONFIG
8899
8900__EOF__
8901
8902
8903  case $host_os in
8904  aix3*)
8905    cat <<\EOF >> "$cfgfile"
8906
8907# AIX sometimes has problems with the GCC collect2 program.  For some
8908# reason, if we set the COLLECT_NAMES environment variable, the problems
8909# vanish in a puff of smoke.
8910if test "X${COLLECT_NAMES+set}" != Xset; then
8911  COLLECT_NAMES=
8912  export COLLECT_NAMES
8913fi
8914EOF
8915    ;;
8916  esac
8917
8918  # We use sed instead of cat because bash on DJGPP gets confused if
8919  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8920  # text mode, it properly converts lines to CR/LF.  This bash problem
8921  # is reportedly fixed, but why not run on old versions too?
8922  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8923
8924  mv -f "$cfgfile" "$ofile" || \
8925    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8926  chmod +x "$ofile"
8927
8928else
8929  # If there is no Makefile yet, we rely on a make rule to execute
8930  # `config.status --recheck' to rerun these tests and create the
8931  # libtool script then.
8932  test -f Makefile && make "$ltmain"
8933fi
8934
8935
8936ac_ext=c
8937ac_cpp='$CPP $CPPFLAGS'
8938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942CC="$lt_save_CC"
8943
8944
8945# Check whether --with-tags or --without-tags was given.
8946if test "${with_tags+set}" = set; then
8947  withval="$with_tags"
8948  tagnames="$withval"
8949fi;
8950
8951if test -f "$ltmain" && test -n "$tagnames"; then
8952  if test ! -f "${ofile}"; then
8953    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8954echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8955  fi
8956
8957  if test -z "$LTCC"; then
8958    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8959    if test -z "$LTCC"; then
8960      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8961echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8962    else
8963      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8964echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8965    fi
8966  fi
8967
8968  # Extract list of available tagged configurations in $ofile.
8969  # Note that this assumes the entire list is on one line.
8970  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8971
8972  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8973  for tagname in $tagnames; do
8974    IFS="$lt_save_ifs"
8975    # Check whether tagname contains only valid characters
8976    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8977    "") ;;
8978    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8979echo "$as_me: error: invalid tag name: $tagname" >&2;}
8980   { (exit 1); exit 1; }; }
8981	;;
8982    esac
8983
8984    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8985    then
8986      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8987echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8988   { (exit 1); exit 1; }; }
8989    fi
8990
8991    # Update the list of available tags.
8992    if test -n "$tagname"; then
8993      echo appending configuration tag \"$tagname\" to $ofile
8994
8995      case $tagname in
8996      CXX)
8997	if test -n "$CXX" && test "X$CXX" != "Xno"; then
8998	  ac_ext=cc
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9003
9004
9005
9006
9007archive_cmds_need_lc_CXX=no
9008allow_undefined_flag_CXX=
9009always_export_symbols_CXX=no
9010archive_expsym_cmds_CXX=
9011export_dynamic_flag_spec_CXX=
9012hardcode_direct_CXX=no
9013hardcode_libdir_flag_spec_CXX=
9014hardcode_libdir_flag_spec_ld_CXX=
9015hardcode_libdir_separator_CXX=
9016hardcode_minus_L_CXX=no
9017hardcode_automatic_CXX=no
9018module_cmds_CXX=
9019module_expsym_cmds_CXX=
9020link_all_deplibs_CXX=unknown
9021old_archive_cmds_CXX=$old_archive_cmds
9022no_undefined_flag_CXX=
9023whole_archive_flag_spec_CXX=
9024enable_shared_with_static_runtimes_CXX=no
9025
9026# Dependencies to place before and after the object being linked:
9027predep_objects_CXX=
9028postdep_objects_CXX=
9029predeps_CXX=
9030postdeps_CXX=
9031compiler_lib_search_path_CXX=
9032
9033# Source file extension for C++ test sources.
9034ac_ext=cc
9035
9036# Object file extension for compiled C++ test sources.
9037objext=o
9038objext_CXX=$objext
9039
9040# Code to be used in simple compile tests
9041lt_simple_compile_test_code="int some_variable = 0;\n"
9042
9043# Code to be used in simple link tests
9044lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9045
9046# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9047
9048# If no C compiler was specified, use CC.
9049LTCC=${LTCC-"$CC"}
9050
9051# Allow CC to be a program name with arguments.
9052compiler=$CC
9053
9054
9055# Allow CC to be a program name with arguments.
9056lt_save_CC=$CC
9057lt_save_LD=$LD
9058lt_save_GCC=$GCC
9059GCC=$GXX
9060lt_save_with_gnu_ld=$with_gnu_ld
9061lt_save_path_LD=$lt_cv_path_LD
9062if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9063  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9064else
9065  unset lt_cv_prog_gnu_ld
9066fi
9067if test -n "${lt_cv_path_LDCXX+set}"; then
9068  lt_cv_path_LD=$lt_cv_path_LDCXX
9069else
9070  unset lt_cv_path_LD
9071fi
9072test -z "${LDCXX+set}" || LD=$LDCXX
9073CC=${CXX-"c++"}
9074compiler=$CC
9075compiler_CXX=$CC
9076cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9077
9078# We don't want -fno-exception wen compiling C++ code, so set the
9079# no_builtin_flag separately
9080if test "$GXX" = yes; then
9081  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9082else
9083  lt_prog_compiler_no_builtin_flag_CXX=
9084fi
9085
9086if test "$GXX" = yes; then
9087  # Set up default GNU C++ configuration
9088
9089
9090# Check whether --with-gnu-ld or --without-gnu-ld was given.
9091if test "${with_gnu_ld+set}" = set; then
9092  withval="$with_gnu_ld"
9093  test "$withval" = no || with_gnu_ld=yes
9094else
9095  with_gnu_ld=no
9096fi;
9097ac_prog=ld
9098if test "$GCC" = yes; then
9099  # Check if gcc -print-prog-name=ld gives a path.
9100  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9101echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9102  case $host in
9103  *-*-mingw*)
9104    # gcc leaves a trailing carriage return which upsets mingw
9105    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9106  *)
9107    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9108  esac
9109  case $ac_prog in
9110    # Accept absolute paths.
9111    [\\/]* | ?:[\\/]*)
9112      re_direlt='/[^/][^/]*/\.\./'
9113      # Canonicalize the path of ld
9114      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9115      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9117      done
9118      test -z "$LD" && LD="$ac_prog"
9119      ;;
9120  "")
9121    # If it fails, then pretend we aren't using GCC.
9122    ac_prog=ld
9123    ;;
9124  *)
9125    # If it is relative, then search for the first ld in PATH.
9126    with_gnu_ld=unknown
9127    ;;
9128  esac
9129elif test "$with_gnu_ld" = yes; then
9130  echo "$as_me:$LINENO: checking for GNU ld" >&5
9131echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9132else
9133  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9135fi
9136if test "${lt_cv_path_LD+set}" = set; then
9137  echo $ECHO_N "(cached) $ECHO_C" >&6
9138else
9139  if test -z "$LD"; then
9140  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9141  for ac_dir in $PATH; do
9142    IFS="$lt_save_ifs"
9143    test -z "$ac_dir" && ac_dir=.
9144    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9145      lt_cv_path_LD="$ac_dir/$ac_prog"
9146      # Check to see if the program is GNU ld.  I'd rather use --version,
9147      # but apparently some GNU ld's only accept -v.
9148      # Break only if it was the GNU/non-GNU ld that we prefer.
9149      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9150      *GNU* | *'with BFD'*)
9151	test "$with_gnu_ld" != no && break
9152	;;
9153      *)
9154	test "$with_gnu_ld" != yes && break
9155	;;
9156      esac
9157    fi
9158  done
9159  IFS="$lt_save_ifs"
9160else
9161  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9162fi
9163fi
9164
9165LD="$lt_cv_path_LD"
9166if test -n "$LD"; then
9167  echo "$as_me:$LINENO: result: $LD" >&5
9168echo "${ECHO_T}$LD" >&6
9169else
9170  echo "$as_me:$LINENO: result: no" >&5
9171echo "${ECHO_T}no" >&6
9172fi
9173test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9174echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9175   { (exit 1); exit 1; }; }
9176echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9177echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9178if test "${lt_cv_prog_gnu_ld+set}" = set; then
9179  echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9182case `"$LD" -v 2>&1 </dev/null` in
9183*GNU* | *'with BFD'*)
9184  lt_cv_prog_gnu_ld=yes
9185  ;;
9186*)
9187  lt_cv_prog_gnu_ld=no
9188  ;;
9189esac
9190fi
9191echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9192echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9193with_gnu_ld=$lt_cv_prog_gnu_ld
9194
9195
9196
9197  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9198  # archiving commands below assume that GNU ld is being used.
9199  if test "$with_gnu_ld" = yes; then
9200    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201    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'
9202
9203    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9204    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9205
9206    # If archive_cmds runs LD, not CC, wlarc should be empty
9207    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9208    #     investigate it a little bit more. (MM)
9209    wlarc='${wl}'
9210
9211    # ancient GNU ld didn't support --whole-archive et. al.
9212    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9213	grep 'no-whole-archive' > /dev/null; then
9214      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9215    else
9216      whole_archive_flag_spec_CXX=
9217    fi
9218  else
9219    with_gnu_ld=no
9220    wlarc=
9221
9222    # A generic and very simple default shared library creation
9223    # command for GNU C++ for the case where it uses the native
9224    # linker, instead of GNU ld.  If possible, this setting should
9225    # overridden to take advantage of the native linker features on
9226    # the platform it is being used on.
9227    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9228  fi
9229
9230  # Commands to make compiler produce verbose output that lists
9231  # what "hidden" libraries, object files and flags are used when
9232  # linking a shared library.
9233  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9234
9235else
9236  GXX=no
9237  with_gnu_ld=no
9238  wlarc=
9239fi
9240
9241# PORTME: fill in a description of your system's C++ link characteristics
9242echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9244ld_shlibs_CXX=yes
9245case $host_os in
9246  aix3*)
9247    # FIXME: insert proper C++ library support
9248    ld_shlibs_CXX=no
9249    ;;
9250  aix4* | aix5*)
9251    if test "$host_cpu" = ia64; then
9252      # On IA64, the linker does run time linking by default, so we don't
9253      # have to do anything special.
9254      aix_use_runtimelinking=no
9255      exp_sym_flag='-Bexport'
9256      no_entry_flag=""
9257    else
9258      aix_use_runtimelinking=no
9259
9260      # Test if we are trying to use run time linking or normal
9261      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9262      # need to do runtime linking.
9263      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9264	for ld_flag in $LDFLAGS; do
9265	  case $ld_flag in
9266	  *-brtl*)
9267	    aix_use_runtimelinking=yes
9268	    break
9269	    ;;
9270	  esac
9271	done
9272      esac
9273
9274      exp_sym_flag='-bexport'
9275      no_entry_flag='-bnoentry'
9276    fi
9277
9278    # When large executables or shared objects are built, AIX ld can
9279    # have problems creating the table of contents.  If linking a library
9280    # or program results in "error TOC overflow" add -mminimal-toc to
9281    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9282    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283
9284    archive_cmds_CXX=''
9285    hardcode_direct_CXX=yes
9286    hardcode_libdir_separator_CXX=':'
9287    link_all_deplibs_CXX=yes
9288
9289    if test "$GXX" = yes; then
9290      case $host_os in aix4.012|aix4.012.*)
9291      # We only want to do this on AIX 4.2 and lower, the check
9292      # below for broken collect2 doesn't work under 4.3+
9293	collect2name=`${CC} -print-prog-name=collect2`
9294	if test -f "$collect2name" && \
9295	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9296	then
9297	  # We have reworked collect2
9298	  hardcode_direct_CXX=yes
9299	else
9300	  # We have old collect2
9301	  hardcode_direct_CXX=unsupported
9302	  # It fails to find uninstalled libraries when the uninstalled
9303	  # path is not listed in the libpath.  Setting hardcode_minus_L
9304	  # to unsupported forces relinking
9305	  hardcode_minus_L_CXX=yes
9306	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9307	  hardcode_libdir_separator_CXX=
9308	fi
9309      esac
9310      shared_flag='-shared'
9311    else
9312      # not using gcc
9313      if test "$host_cpu" = ia64; then
9314	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315	# chokes on -Wl,-G. The following line is correct:
9316	shared_flag='-G'
9317      else
9318	if test "$aix_use_runtimelinking" = yes; then
9319	  shared_flag='${wl}-G'
9320	else
9321	  shared_flag='${wl}-bM:SRE'
9322	fi
9323      fi
9324    fi
9325
9326    # It seems that -bexpall does not export symbols beginning with
9327    # underscore (_), so it is better to generate a list of symbols to export.
9328    always_export_symbols_CXX=yes
9329    if test "$aix_use_runtimelinking" = yes; then
9330      # Warning - without using the other runtime loading flags (-brtl),
9331      # -berok will link without error, but may produce a broken library.
9332      allow_undefined_flag_CXX='-berok'
9333      # Determine the default libpath from the value encoded in an empty executable.
9334      cat >conftest.$ac_ext <<_ACEOF
9335#line $LINENO "configure"
9336/* confdefs.h.  */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h.  */
9341
9342int
9343main ()
9344{
9345
9346  ;
9347  return 0;
9348}
9349_ACEOF
9350rm -f conftest.$ac_objext conftest$ac_exeext
9351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352  (eval $ac_link) 2>&5
9353  ac_status=$?
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); } &&
9356         { ac_try='test -s conftest$ac_exeext'
9357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358  (eval $ac_try) 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); }; }; then
9362
9363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9364}'`
9365# Check for a 64-bit object if we didn't find anything.
9366if 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; }
9367}'`; fi
9368else
9369  echo "$as_me: failed program was:" >&5
9370sed 's/^/| /' conftest.$ac_ext >&5
9371
9372fi
9373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375
9376      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9377
9378      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"
9379     else
9380      if test "$host_cpu" = ia64; then
9381	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9382	allow_undefined_flag_CXX="-z nodefs"
9383	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"
9384      else
9385	# Determine the default libpath from the value encoded in an empty executable.
9386	cat >conftest.$ac_ext <<_ACEOF
9387#line $LINENO "configure"
9388/* confdefs.h.  */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h.  */
9393
9394int
9395main ()
9396{
9397
9398  ;
9399  return 0;
9400}
9401_ACEOF
9402rm -f conftest.$ac_objext conftest$ac_exeext
9403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404  (eval $ac_link) 2>&5
9405  ac_status=$?
9406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407  (exit $ac_status); } &&
9408         { ac_try='test -s conftest$ac_exeext'
9409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410  (eval $ac_try) 2>&5
9411  ac_status=$?
9412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413  (exit $ac_status); }; }; then
9414
9415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9416}'`
9417# Check for a 64-bit object if we didn't find anything.
9418if 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; }
9419}'`; fi
9420else
9421  echo "$as_me: failed program was:" >&5
9422sed 's/^/| /' conftest.$ac_ext >&5
9423
9424fi
9425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427
9428	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9429	# Warning - without using the other run time loading flags,
9430	# -berok will link without error, but may produce a broken library.
9431	no_undefined_flag_CXX=' ${wl}-bernotok'
9432	allow_undefined_flag_CXX=' ${wl}-berok'
9433	# -bexpall does not export symbols beginning with underscore (_)
9434	always_export_symbols_CXX=yes
9435	# Exported symbols can be pulled into shared objects from archives
9436	whole_archive_flag_spec_CXX=' '
9437	archive_cmds_need_lc_CXX=yes
9438	# This is similar to how AIX traditionally builds it's shared libraries.
9439	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'
9440      fi
9441    fi
9442    ;;
9443  chorus*)
9444    case $cc_basename in
9445      *)
9446	# FIXME: insert proper C++ library support
9447	ld_shlibs_CXX=no
9448	;;
9449    esac
9450    ;;
9451
9452  cygwin* | mingw* | pw32*)
9453    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9454    # as there is no search path for DLLs.
9455    hardcode_libdir_flag_spec_CXX='-L$libdir'
9456    allow_undefined_flag_CXX=unsupported
9457    always_export_symbols_CXX=no
9458    enable_shared_with_static_runtimes_CXX=yes
9459
9460    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9461      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'
9462      # If the export-symbols file already is a .def file (1st line
9463      # is EXPORTS), use it as is; otherwise, prepend...
9464      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465	cp $export_symbols $output_objdir/$soname.def;
9466      else
9467	echo EXPORTS > $output_objdir/$soname.def;
9468	cat $export_symbols >> $output_objdir/$soname.def;
9469      fi~
9470      $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'
9471    else
9472      ld_shlibs_CXX=no
9473    fi
9474  ;;
9475
9476  darwin* | rhapsody*)
9477   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9478    archive_cmds_need_lc_CXX=no
9479    case "$host_os" in
9480    rhapsody* | darwin1.[012])
9481      allow_undefined_flag_CXX='-undefined suppress'
9482      ;;
9483    *) # Darwin 1.3 on
9484      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9485      ;;
9486    esac
9487    	lt_int_apple_cc_single_mod=no
9488    	output_verbose_link_cmd='echo'
9489    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9490    	  lt_int_apple_cc_single_mod=yes
9491    	fi
9492    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9493    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9494    	else
9495        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'
9496      fi
9497      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9498
9499    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9500      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501        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}'
9502      else
9503        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}'
9504      fi
9505        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}'
9506    hardcode_direct_CXX=no
9507    hardcode_automatic_CXX=yes
9508    hardcode_shlibpath_var_CXX=unsupported
9509    whole_archive_flag_spec_CXX='-all_load $convenience'
9510    link_all_deplibs_CXX=yes
9511   fi
9512    ;;
9513
9514  dgux*)
9515    case $cc_basename in
9516      ec++)
9517	# FIXME: insert proper C++ library support
9518	ld_shlibs_CXX=no
9519	;;
9520      ghcx)
9521	# Green Hills C++ Compiler
9522	# FIXME: insert proper C++ library support
9523	ld_shlibs_CXX=no
9524	;;
9525      *)
9526	# FIXME: insert proper C++ library support
9527	ld_shlibs_CXX=no
9528	;;
9529    esac
9530    ;;
9531  freebsd12*)
9532    # C++ shared libraries reported to be fairly broken before switch to ELF
9533    ld_shlibs_CXX=no
9534    ;;
9535  freebsd-elf*)
9536    archive_cmds_need_lc_CXX=no
9537    ;;
9538  freebsd*)
9539    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9540    # conventions
9541    ld_shlibs_CXX=yes
9542    ;;
9543  gnu*)
9544    ;;
9545  hpux9*)
9546    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9547    hardcode_libdir_separator_CXX=:
9548    export_dynamic_flag_spec_CXX='${wl}-E'
9549    hardcode_direct_CXX=yes
9550    hardcode_minus_L_CXX=yes # Not in the search PATH,
9551				# but as the default
9552				# location of the library.
9553
9554    case $cc_basename in
9555    CC)
9556      # FIXME: insert proper C++ library support
9557      ld_shlibs_CXX=no
9558      ;;
9559    aCC)
9560      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'
9561      # Commands to make compiler produce verbose output that lists
9562      # what "hidden" libraries, object files and flags are used when
9563      # linking a shared library.
9564      #
9565      # There doesn't appear to be a way to prevent this compiler from
9566      # explicitly linking system object files so we need to strip them
9567      # from the output so that they don't get included in the library
9568      # dependencies.
9569      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'
9570      ;;
9571    *)
9572      if test "$GXX" = yes; then
9573        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'
9574      else
9575        # FIXME: insert proper C++ library support
9576        ld_shlibs_CXX=no
9577      fi
9578      ;;
9579    esac
9580    ;;
9581  hpux10*|hpux11*)
9582    if test $with_gnu_ld = no; then
9583      case "$host_cpu" in
9584      hppa*64*)
9585	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9586	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9587	hardcode_libdir_separator_CXX=:
9588        ;;
9589      ia64*)
9590	hardcode_libdir_flag_spec_CXX='-L$libdir'
9591        ;;
9592      *)
9593	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594	hardcode_libdir_separator_CXX=:
9595	export_dynamic_flag_spec_CXX='${wl}-E'
9596        ;;
9597      esac
9598    fi
9599    case "$host_cpu" in
9600    hppa*64*)
9601      hardcode_direct_CXX=no
9602      hardcode_shlibpath_var_CXX=no
9603      ;;
9604    ia64*)
9605      hardcode_direct_CXX=no
9606      hardcode_shlibpath_var_CXX=no
9607      hardcode_minus_L_CXX=yes # Not in the search PATH,
9608					      # but as the default
9609					      # location of the library.
9610      ;;
9611    *)
9612      hardcode_direct_CXX=yes
9613      hardcode_minus_L_CXX=yes # Not in the search PATH,
9614					      # but as the default
9615					      # location of the library.
9616      ;;
9617    esac
9618
9619    case $cc_basename in
9620      CC)
9621	# FIXME: insert proper C++ library support
9622	ld_shlibs_CXX=no
9623	;;
9624      aCC)
9625	case "$host_cpu" in
9626	hppa*64*|ia64*)
9627	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9628	  ;;
9629	*)
9630	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9631	  ;;
9632	esac
9633	# Commands to make compiler produce verbose output that lists
9634	# what "hidden" libraries, object files and flags are used when
9635	# linking a shared library.
9636	#
9637	# There doesn't appear to be a way to prevent this compiler from
9638	# explicitly linking system object files so we need to strip them
9639	# from the output so that they don't get included in the library
9640	# dependencies.
9641	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'
9642	;;
9643      *)
9644	if test "$GXX" = yes; then
9645	  if test $with_gnu_ld = no; then
9646	    case "$host_cpu" in
9647	    ia64*|hppa*64*)
9648	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9649	      ;;
9650	    *)
9651	      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'
9652	      ;;
9653	    esac
9654	  fi
9655	else
9656	  # FIXME: insert proper C++ library support
9657	  ld_shlibs_CXX=no
9658	fi
9659	;;
9660    esac
9661    ;;
9662  irix5* | irix6*)
9663    case $cc_basename in
9664      CC)
9665	# SGI C++
9666	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'
9667
9668	# Archives containing C++ object files must be created using
9669	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9670	# necessary to make sure instantiated templates are included
9671	# in the archive.
9672	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9673	;;
9674      *)
9675	if test "$GXX" = yes; then
9676	  if test "$with_gnu_ld" = no; then
9677	    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'
9678	  else
9679	    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'
9680	  fi
9681	fi
9682	link_all_deplibs_CXX=yes
9683	;;
9684    esac
9685    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9686    hardcode_libdir_separator_CXX=:
9687    ;;
9688  linux*)
9689    case $cc_basename in
9690      KCC)
9691	# Kuck and Associates, Inc. (KAI) C++ Compiler
9692
9693	# KCC will only create a shared library if the output file
9694	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9695	# to its proper name (with version) after linking.
9696	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'
9697	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'
9698	# Commands to make compiler produce verbose output that lists
9699	# what "hidden" libraries, object files and flags are used when
9700	# linking a shared library.
9701	#
9702	# There doesn't appear to be a way to prevent this compiler from
9703	# explicitly linking system object files so we need to strip them
9704	# from the output so that they don't get included in the library
9705	# dependencies.
9706	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'
9707
9708	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9709	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9710
9711	# Archives containing C++ object files must be created using
9712	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9713	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9714	;;
9715      icpc)
9716	# Intel C++
9717	with_gnu_ld=yes
9718	archive_cmds_need_lc_CXX=no
9719	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720	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'
9721	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9723	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9724	;;
9725      cxx)
9726	# Compaq C++
9727	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728	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'
9729
9730	runpath_var=LD_RUN_PATH
9731	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9732	hardcode_libdir_separator_CXX=:
9733
9734	# Commands to make compiler produce verbose output that lists
9735	# what "hidden" libraries, object files and flags are used when
9736	# linking a shared library.
9737	#
9738	# There doesn't appear to be a way to prevent this compiler from
9739	# explicitly linking system object files so we need to strip them
9740	# from the output so that they don't get included in the library
9741	# dependencies.
9742	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'
9743	;;
9744    esac
9745    ;;
9746  lynxos*)
9747    # FIXME: insert proper C++ library support
9748    ld_shlibs_CXX=no
9749    ;;
9750  m88k*)
9751    # FIXME: insert proper C++ library support
9752    ld_shlibs_CXX=no
9753    ;;
9754  mvs*)
9755    case $cc_basename in
9756      cxx)
9757	# FIXME: insert proper C++ library support
9758	ld_shlibs_CXX=no
9759	;;
9760      *)
9761	# FIXME: insert proper C++ library support
9762	ld_shlibs_CXX=no
9763	;;
9764    esac
9765    ;;
9766  netbsd*)
9767    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9768      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9769      wlarc=
9770      hardcode_libdir_flag_spec_CXX='-R$libdir'
9771      hardcode_direct_CXX=yes
9772      hardcode_shlibpath_var_CXX=no
9773    fi
9774    # Workaround some broken pre-1.5 toolchains
9775    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9776    ;;
9777  osf3*)
9778    case $cc_basename in
9779      KCC)
9780	# Kuck and Associates, Inc. (KAI) C++ Compiler
9781
9782	# KCC will only create a shared library if the output file
9783	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9784	# to its proper name (with version) after linking.
9785	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'
9786
9787	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9788	hardcode_libdir_separator_CXX=:
9789
9790	# Archives containing C++ object files must be created using
9791	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9792	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9793
9794	;;
9795      RCC)
9796	# Rational C++ 2.4.1
9797	# FIXME: insert proper C++ library support
9798	ld_shlibs_CXX=no
9799	;;
9800      cxx)
9801	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9802	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'
9803
9804	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9805	hardcode_libdir_separator_CXX=:
9806
9807	# Commands to make compiler produce verbose output that lists
9808	# what "hidden" libraries, object files and flags are used when
9809	# linking a shared library.
9810	#
9811	# There doesn't appear to be a way to prevent this compiler from
9812	# explicitly linking system object files so we need to strip them
9813	# from the output so that they don't get included in the library
9814	# dependencies.
9815	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'
9816	;;
9817      *)
9818	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9819	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9820	  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'
9821
9822	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9823	  hardcode_libdir_separator_CXX=:
9824
9825	  # Commands to make compiler produce verbose output that lists
9826	  # what "hidden" libraries, object files and flags are used when
9827	  # linking a shared library.
9828	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9829
9830	else
9831	  # FIXME: insert proper C++ library support
9832	  ld_shlibs_CXX=no
9833	fi
9834	;;
9835    esac
9836    ;;
9837  osf4* | osf5*)
9838    case $cc_basename in
9839      KCC)
9840	# Kuck and Associates, Inc. (KAI) C++ Compiler
9841
9842	# KCC will only create a shared library if the output file
9843	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9844	# to its proper name (with version) after linking.
9845	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'
9846
9847	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9848	hardcode_libdir_separator_CXX=:
9849
9850	# Archives containing C++ object files must be created using
9851	# the KAI C++ compiler.
9852	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9853	;;
9854      RCC)
9855	# Rational C++ 2.4.1
9856	# FIXME: insert proper C++ library support
9857	ld_shlibs_CXX=no
9858	;;
9859      cxx)
9860	allow_undefined_flag_CXX=' -expect_unresolved \*'
9861	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'
9862	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9863	  echo "-hidden">> $lib.exp~
9864	  $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~
9865	  $rm $lib.exp'
9866
9867	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9868	hardcode_libdir_separator_CXX=:
9869
9870	# Commands to make compiler produce verbose output that lists
9871	# what "hidden" libraries, object files and flags are used when
9872	# linking a shared library.
9873	#
9874	# There doesn't appear to be a way to prevent this compiler from
9875	# explicitly linking system object files so we need to strip them
9876	# from the output so that they don't get included in the library
9877	# dependencies.
9878	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'
9879	;;
9880      *)
9881	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9882	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9883	 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'
9884
9885	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9886	  hardcode_libdir_separator_CXX=:
9887
9888	  # Commands to make compiler produce verbose output that lists
9889	  # what "hidden" libraries, object files and flags are used when
9890	  # linking a shared library.
9891	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9892
9893	else
9894	  # FIXME: insert proper C++ library support
9895	  ld_shlibs_CXX=no
9896	fi
9897	;;
9898    esac
9899    ;;
9900  psos*)
9901    # FIXME: insert proper C++ library support
9902    ld_shlibs_CXX=no
9903    ;;
9904  sco*)
9905    archive_cmds_need_lc_CXX=no
9906    case $cc_basename in
9907      CC)
9908	# FIXME: insert proper C++ library support
9909	ld_shlibs_CXX=no
9910	;;
9911      *)
9912	# FIXME: insert proper C++ library support
9913	ld_shlibs_CXX=no
9914	;;
9915    esac
9916    ;;
9917  sunos4*)
9918    case $cc_basename in
9919      CC)
9920	# Sun C++ 4.x
9921	# FIXME: insert proper C++ library support
9922	ld_shlibs_CXX=no
9923	;;
9924      lcc)
9925	# Lucid
9926	# FIXME: insert proper C++ library support
9927	ld_shlibs_CXX=no
9928	;;
9929      *)
9930	# FIXME: insert proper C++ library support
9931	ld_shlibs_CXX=no
9932	;;
9933    esac
9934    ;;
9935  solaris*)
9936    case $cc_basename in
9937      CC)
9938	# Sun C++ 4.2, 5.x and Centerline C++
9939	no_undefined_flag_CXX=' -zdefs'
9940	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9941	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9942	$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'
9943
9944	hardcode_libdir_flag_spec_CXX='-R$libdir'
9945	hardcode_shlibpath_var_CXX=no
9946	case $host_os in
9947	  solaris2.0-5 | solaris2.0-5.*) ;;
9948	  *)
9949	    # The C++ compiler is used as linker so we must use $wl
9950	    # flag to pass the commands to the underlying system
9951	    # linker.
9952	    # Supported since Solaris 2.6 (maybe 2.5.1?)
9953	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9954	    ;;
9955	esac
9956	link_all_deplibs_CXX=yes
9957
9958	# Commands to make compiler produce verbose output that lists
9959	# what "hidden" libraries, object files and flags are used when
9960	# linking a shared library.
9961	#
9962	# There doesn't appear to be a way to prevent this compiler from
9963	# explicitly linking system object files so we need to strip them
9964	# from the output so that they don't get included in the library
9965	# dependencies.
9966	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'
9967
9968	# Archives containing C++ object files must be created using
9969	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
9970	# necessary to make sure instantiated templates are included
9971	# in the archive.
9972	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9973	;;
9974      gcx)
9975	# Green Hills C++ Compiler
9976	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9977
9978	# The C++ compiler must be used to create the archive.
9979	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9980	;;
9981      *)
9982	# GNU C++ compiler with Solaris linker
9983	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9984	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9985	  if $CC --version | grep -v '^2\.7' > /dev/null; then
9986	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9987	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9988		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9989
9990	    # Commands to make compiler produce verbose output that lists
9991	    # what "hidden" libraries, object files and flags are used when
9992	    # linking a shared library.
9993	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9994	  else
9995	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
9996	    # platform.
9997	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000
10001	    # Commands to make compiler produce verbose output that lists
10002	    # what "hidden" libraries, object files and flags are used when
10003	    # linking a shared library.
10004	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10005	  fi
10006
10007	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10008	fi
10009	;;
10010    esac
10011    ;;
10012  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10013    archive_cmds_need_lc_CXX=no
10014    ;;
10015  tandem*)
10016    case $cc_basename in
10017      NCC)
10018	# NonStop-UX NCC 3.20
10019	# FIXME: insert proper C++ library support
10020	ld_shlibs_CXX=no
10021	;;
10022      *)
10023	# FIXME: insert proper C++ library support
10024	ld_shlibs_CXX=no
10025	;;
10026    esac
10027    ;;
10028  vxworks*)
10029    # FIXME: insert proper C++ library support
10030    ld_shlibs_CXX=no
10031    ;;
10032  *)
10033    # FIXME: insert proper C++ library support
10034    ld_shlibs_CXX=no
10035    ;;
10036esac
10037echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10038echo "${ECHO_T}$ld_shlibs_CXX" >&6
10039test "$ld_shlibs_CXX" = no && can_build_shared=no
10040
10041GCC_CXX="$GXX"
10042LD_CXX="$LD"
10043
10044
10045cat > conftest.$ac_ext <<EOF
10046class Foo
10047{
10048public:
10049  Foo (void) { a = 0; }
10050private:
10051  int a;
10052};
10053EOF
10054
10055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056  (eval $ac_compile) 2>&5
10057  ac_status=$?
10058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059  (exit $ac_status); }; then
10060  # Parse the compiler output and extract the necessary
10061  # objects, libraries and library flags.
10062
10063  # Sentinel used to keep track of whether or not we are before
10064  # the conftest object file.
10065  pre_test_object_deps_done=no
10066
10067  # The `*' in the case matches for architectures that use `case' in
10068  # $output_verbose_cmd can trigger glob expansion during the loop
10069  # eval without this substitution.
10070  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10071
10072  for p in `eval $output_verbose_link_cmd`; do
10073    case $p in
10074
10075    -L* | -R* | -l*)
10076       # Some compilers place space between "-{L,R}" and the path.
10077       # Remove the space.
10078       if test $p = "-L" \
10079	  || test $p = "-R"; then
10080	 prev=$p
10081	 continue
10082       else
10083	 prev=
10084       fi
10085
10086       if test "$pre_test_object_deps_done" = no; then
10087	 case $p in
10088	 -L* | -R*)
10089	   # Internal compiler library paths should come after those
10090	   # provided the user.  The postdeps already come after the
10091	   # user supplied libs so there is no need to process them.
10092	   if test -z "$compiler_lib_search_path_CXX"; then
10093	     compiler_lib_search_path_CXX="${prev}${p}"
10094	   else
10095	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10096	   fi
10097	   ;;
10098	 # The "-l" case would never come before the object being
10099	 # linked, so don't bother handling this case.
10100	 esac
10101       else
10102	 if test -z "$postdeps_CXX"; then
10103	   postdeps_CXX="${prev}${p}"
10104	 else
10105	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10106	 fi
10107       fi
10108       ;;
10109
10110    *.$objext)
10111       # This assumes that the test object file only shows up
10112       # once in the compiler output.
10113       if test "$p" = "conftest.$objext"; then
10114	 pre_test_object_deps_done=yes
10115	 continue
10116       fi
10117
10118       if test "$pre_test_object_deps_done" = no; then
10119	 if test -z "$predep_objects_CXX"; then
10120	   predep_objects_CXX="$p"
10121	 else
10122	   predep_objects_CXX="$predep_objects_CXX $p"
10123	 fi
10124       else
10125	 if test -z "$postdep_objects_CXX"; then
10126	   postdep_objects_CXX="$p"
10127	 else
10128	   postdep_objects_CXX="$postdep_objects_CXX $p"
10129	 fi
10130       fi
10131       ;;
10132
10133    *) ;; # Ignore the rest.
10134
10135    esac
10136  done
10137
10138  # Clean up.
10139  rm -f a.out a.exe
10140else
10141  echo "libtool.m4: error: problem compiling CXX test program"
10142fi
10143
10144$rm -f confest.$objext
10145
10146case " $postdeps_CXX " in
10147*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10148esac
10149
10150lt_prog_compiler_wl_CXX=
10151lt_prog_compiler_pic_CXX=
10152lt_prog_compiler_static_CXX=
10153
10154echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10155echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10156
10157  # C++ specific cases for pic, static, wl, etc.
10158  if test "$GXX" = yes; then
10159    lt_prog_compiler_wl_CXX='-Wl,'
10160    lt_prog_compiler_static_CXX='-static'
10161
10162    case $host_os in
10163    aix*)
10164      # All AIX code is PIC.
10165      if test "$host_cpu" = ia64; then
10166	# AIX 5 now supports IA64 processor
10167	lt_prog_compiler_static_CXX='-Bstatic'
10168      fi
10169      ;;
10170    amigaos*)
10171      # FIXME: we need at least 68020 code to build shared libraries, but
10172      # adding the `-m68020' flag to GCC prevents building anything better,
10173      # like `-m68040'.
10174      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10175      ;;
10176    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10177      # PIC is the default for these OSes.
10178      ;;
10179    mingw* | os2* | pw32*)
10180      # This hack is so that the source file can tell whether it is being
10181      # built for inclusion in a dll (and should export symbols for example).
10182      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10183      ;;
10184    darwin* | rhapsody*)
10185      # PIC is the default on this platform
10186      # Common symbols not allowed in MH_DYLIB files
10187      lt_prog_compiler_pic_CXX='-fno-common'
10188      ;;
10189    *djgpp*)
10190      # DJGPP does not support shared libraries at all
10191      lt_prog_compiler_pic_CXX=
10192      ;;
10193    sysv4*MP*)
10194      if test -d /usr/nec; then
10195	lt_prog_compiler_pic_CXX=-Kconform_pic
10196      fi
10197      ;;
10198    hpux*)
10199      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10200      # not for PA HP-UX.
10201      case "$host_cpu" in
10202      hppa*64*|ia64*)
10203	;;
10204      *)
10205	lt_prog_compiler_pic_CXX='-fPIC'
10206	;;
10207      esac
10208      ;;
10209    *)
10210      lt_prog_compiler_pic_CXX='-fPIC'
10211      ;;
10212    esac
10213  else
10214    case $host_os in
10215      aix4* | aix5*)
10216	# All AIX code is PIC.
10217	if test "$host_cpu" = ia64; then
10218	  # AIX 5 now supports IA64 processor
10219	  lt_prog_compiler_static_CXX='-Bstatic'
10220	else
10221	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10222	fi
10223	;;
10224      chorus*)
10225	case $cc_basename in
10226	cxch68)
10227	  # Green Hills C++ Compiler
10228	  # _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"
10229	  ;;
10230	esac
10231	;;
10232      dgux*)
10233	case $cc_basename in
10234	  ec++)
10235	    lt_prog_compiler_pic_CXX='-KPIC'
10236	    ;;
10237	  ghcx)
10238	    # Green Hills C++ Compiler
10239	    lt_prog_compiler_pic_CXX='-pic'
10240	    ;;
10241	  *)
10242	    ;;
10243	esac
10244	;;
10245      freebsd*)
10246	# FreeBSD uses GNU C++
10247	;;
10248      hpux9* | hpux10* | hpux11*)
10249	case $cc_basename in
10250	  CC)
10251	    lt_prog_compiler_wl_CXX='-Wl,'
10252	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10253	    if test "$host_cpu" != ia64; then
10254	      lt_prog_compiler_pic_CXX='+Z'
10255	    fi
10256	    ;;
10257	  aCC)
10258	    lt_prog_compiler_wl_CXX='-Wl,'
10259	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260	    case "$host_cpu" in
10261	    hppa*64*|ia64*)
10262	      # +Z the default
10263	      ;;
10264	    *)
10265	      lt_prog_compiler_pic_CXX='+Z'
10266	      ;;
10267	    esac
10268	    ;;
10269	  *)
10270	    ;;
10271	esac
10272	;;
10273      irix5* | irix6* | nonstopux*)
10274	case $cc_basename in
10275	  CC)
10276	    lt_prog_compiler_wl_CXX='-Wl,'
10277	    lt_prog_compiler_static_CXX='-non_shared'
10278	    # CC pic flag -KPIC is the default.
10279	    ;;
10280	  *)
10281	    ;;
10282	esac
10283	;;
10284      linux*)
10285	case $cc_basename in
10286	  KCC)
10287	    # KAI C++ Compiler
10288	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10289	    lt_prog_compiler_pic_CXX='-fPIC'
10290	    ;;
10291	  icpc)
10292	    # Intel C++
10293	    lt_prog_compiler_wl_CXX='-Wl,'
10294	    lt_prog_compiler_pic_CXX='-KPIC'
10295	    lt_prog_compiler_static_CXX='-static'
10296	    ;;
10297	  cxx)
10298	    # Compaq C++
10299	    # Make sure the PIC flag is empty.  It appears that all Alpha
10300	    # Linux and Compaq Tru64 Unix objects are PIC.
10301	    lt_prog_compiler_pic_CXX=
10302	    lt_prog_compiler_static_CXX='-non_shared'
10303	    ;;
10304	  *)
10305	    ;;
10306	esac
10307	;;
10308      lynxos*)
10309	;;
10310      m88k*)
10311	;;
10312      mvs*)
10313	case $cc_basename in
10314	  cxx)
10315	    lt_prog_compiler_pic_CXX='-W c,exportall'
10316	    ;;
10317	  *)
10318	    ;;
10319	esac
10320	;;
10321      netbsd*)
10322	;;
10323      osf3* | osf4* | osf5*)
10324	case $cc_basename in
10325	  KCC)
10326	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10327	    ;;
10328	  RCC)
10329	    # Rational C++ 2.4.1
10330	    lt_prog_compiler_pic_CXX='-pic'
10331	    ;;
10332	  cxx)
10333	    # Digital/Compaq C++
10334	    lt_prog_compiler_wl_CXX='-Wl,'
10335	    # Make sure the PIC flag is empty.  It appears that all Alpha
10336	    # Linux and Compaq Tru64 Unix objects are PIC.
10337	    lt_prog_compiler_pic_CXX=
10338	    lt_prog_compiler_static_CXX='-non_shared'
10339	    ;;
10340	  *)
10341	    ;;
10342	esac
10343	;;
10344      psos*)
10345	;;
10346      sco*)
10347	case $cc_basename in
10348	  CC)
10349	    lt_prog_compiler_pic_CXX='-fPIC'
10350	    ;;
10351	  *)
10352	    ;;
10353	esac
10354	;;
10355      solaris*)
10356	case $cc_basename in
10357	  CC)
10358	    # Sun C++ 4.2, 5.x and Centerline C++
10359	    lt_prog_compiler_pic_CXX='-KPIC'
10360	    lt_prog_compiler_static_CXX='-Bstatic'
10361	    lt_prog_compiler_wl_CXX='-Qoption ld '
10362	    ;;
10363	  gcx)
10364	    # Green Hills C++ Compiler
10365	    lt_prog_compiler_pic_CXX='-PIC'
10366	    ;;
10367	  *)
10368	    ;;
10369	esac
10370	;;
10371      sunos4*)
10372	case $cc_basename in
10373	  CC)
10374	    # Sun C++ 4.x
10375	    lt_prog_compiler_pic_CXX='-pic'
10376	    lt_prog_compiler_static_CXX='-Bstatic'
10377	    ;;
10378	  lcc)
10379	    # Lucid
10380	    lt_prog_compiler_pic_CXX='-pic'
10381	    ;;
10382	  *)
10383	    ;;
10384	esac
10385	;;
10386      tandem*)
10387	case $cc_basename in
10388	  NCC)
10389	    # NonStop-UX NCC 3.20
10390	    lt_prog_compiler_pic_CXX='-KPIC'
10391	    ;;
10392	  *)
10393	    ;;
10394	esac
10395	;;
10396      unixware*)
10397	;;
10398      vxworks*)
10399	;;
10400      *)
10401	lt_prog_compiler_can_build_shared_CXX=no
10402	;;
10403    esac
10404  fi
10405
10406echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10407echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10408
10409#
10410# Check to make sure the PIC flag actually works.
10411#
10412if test -n "$lt_prog_compiler_pic_CXX"; then
10413  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10414echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10415if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10416  echo $ECHO_N "(cached) $ECHO_C" >&6
10417else
10418  lt_prog_compiler_pic_works_CXX=no
10419  ac_outfile=conftest.$ac_objext
10420   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10421   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10422   # Insert the option either (1) after the last *FLAGS variable, or
10423   # (2) before a word containing "conftest.", or (3) at the end.
10424   # Note that $ac_compile itself does not contain backslashes and begins
10425   # with a dollar sign (not a hyphen), so the echo should work correctly.
10426   # The option is referenced via a variable to avoid confusing sed.
10427   lt_compile=`echo "$ac_compile" | $SED \
10428   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10430   -e 's:$: $lt_compiler_flag:'`
10431   (eval echo "\"\$as_me:10431: $lt_compile\"" >&5)
10432   (eval "$lt_compile" 2>conftest.err)
10433   ac_status=$?
10434   cat conftest.err >&5
10435   echo "$as_me:10435: \$? = $ac_status" >&5
10436   if (exit $ac_status) && test -s "$ac_outfile"; then
10437     # The compiler can only warn and ignore the option if not recognized
10438     # So say no if there are warnings
10439     if test ! -s conftest.err; then
10440       lt_prog_compiler_pic_works_CXX=yes
10441     fi
10442   fi
10443   $rm conftest*
10444
10445fi
10446echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10447echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10448
10449if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10450    case $lt_prog_compiler_pic_CXX in
10451     "" | " "*) ;;
10452     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10453     esac
10454else
10455    lt_prog_compiler_pic_CXX=
10456     lt_prog_compiler_can_build_shared_CXX=no
10457fi
10458
10459fi
10460case "$host_os" in
10461  # For platforms which do not support PIC, -DPIC is meaningless:
10462  *djgpp*)
10463    lt_prog_compiler_pic_CXX=
10464    ;;
10465  *)
10466    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10467    ;;
10468esac
10469
10470echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10471echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10472if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10473  echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475  lt_cv_prog_compiler_c_o_CXX=no
10476   $rm -r conftest 2>/dev/null
10477   mkdir conftest
10478   cd conftest
10479   mkdir out
10480   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10481
10482   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10483   # that will create temporary files in the current directory regardless of
10484   # the output directory.  Thus, making CWD read-only will cause this test
10485   # to fail, enabling locking or at least warning the user not to do parallel
10486   # builds.
10487   chmod -w .
10488
10489   lt_compiler_flag="-o out/conftest2.$ac_objext"
10490   # Insert the option either (1) after the last *FLAGS variable, or
10491   # (2) before a word containing "conftest.", or (3) at the end.
10492   # Note that $ac_compile itself does not contain backslashes and begins
10493   # with a dollar sign (not a hyphen), so the echo should work correctly.
10494   lt_compile=`echo "$ac_compile" | $SED \
10495   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10497   -e 's:$: $lt_compiler_flag:'`
10498   (eval echo "\"\$as_me:10498: $lt_compile\"" >&5)
10499   (eval "$lt_compile" 2>out/conftest.err)
10500   ac_status=$?
10501   cat out/conftest.err >&5
10502   echo "$as_me:10502: \$? = $ac_status" >&5
10503   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10504   then
10505     # The compiler can only warn and ignore the option if not recognized
10506     # So say no if there are warnings
10507     if test ! -s out/conftest.err; then
10508       lt_cv_prog_compiler_c_o_CXX=yes
10509     fi
10510   fi
10511   chmod u+w .
10512   $rm conftest* out/*
10513   rmdir out
10514   cd ..
10515   rmdir conftest
10516   $rm conftest*
10517
10518fi
10519echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10520echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10521
10522
10523hard_links="nottested"
10524if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10525  # do not overwrite the value of need_locks provided by the user
10526  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10527echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10528  hard_links=yes
10529  $rm conftest*
10530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10531  touch conftest.a
10532  ln conftest.a conftest.b 2>&5 || hard_links=no
10533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10534  echo "$as_me:$LINENO: result: $hard_links" >&5
10535echo "${ECHO_T}$hard_links" >&6
10536  if test "$hard_links" = no; then
10537    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10538echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10539    need_locks=warn
10540  fi
10541else
10542  need_locks=no
10543fi
10544
10545echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10546echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10547
10548  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10549  case $host_os in
10550  aix4* | aix5*)
10551    # If we're using GNU nm, then we don't want the "-C" option.
10552    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10553    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10554      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'
10555    else
10556      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'
10557    fi
10558    ;;
10559  pw32*)
10560    export_symbols_cmds_CXX="$ltdll_cmds"
10561  ;;
10562  cygwin* | mingw*)
10563    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10564  ;;
10565  *)
10566    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10567  ;;
10568  esac
10569
10570echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10571echo "${ECHO_T}$ld_shlibs_CXX" >&6
10572test "$ld_shlibs_CXX" = no && can_build_shared=no
10573
10574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10575if test "$GCC" = yes; then
10576  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10577fi
10578
10579#
10580# Do we need to explicitly link libc?
10581#
10582case "x$archive_cmds_need_lc_CXX" in
10583x|xyes)
10584  # Assume -lc should be added
10585  archive_cmds_need_lc_CXX=yes
10586
10587  if test "$enable_shared" = yes && test "$GCC" = yes; then
10588    case $archive_cmds_CXX in
10589    *'~'*)
10590      # FIXME: we may have to deal with multi-command sequences.
10591      ;;
10592    '$CC '*)
10593      # Test whether the compiler implicitly links with -lc since on some
10594      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10595      # to ld, don't add -lc before -lgcc.
10596      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10597echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10598      $rm conftest*
10599      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10600
10601      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602  (eval $ac_compile) 2>&5
10603  ac_status=$?
10604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605  (exit $ac_status); } 2>conftest.err; then
10606        soname=conftest
10607        lib=conftest
10608        libobjs=conftest.$ac_objext
10609        deplibs=
10610        wl=$lt_prog_compiler_wl_CXX
10611        compiler_flags=-v
10612        linker_flags=-v
10613        verstring=
10614        output_objdir=.
10615        libname=conftest
10616        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10617        allow_undefined_flag_CXX=
10618        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10619  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10620  ac_status=$?
10621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622  (exit $ac_status); }
10623        then
10624	  archive_cmds_need_lc_CXX=no
10625        else
10626	  archive_cmds_need_lc_CXX=yes
10627        fi
10628        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10629      else
10630        cat conftest.err 1>&5
10631      fi
10632      $rm conftest*
10633      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10634echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10635      ;;
10636    esac
10637  fi
10638  ;;
10639esac
10640
10641echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10642echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10643hardcode_action_CXX=
10644if test -n "$hardcode_libdir_flag_spec_CXX" || \
10645   test -n "$runpath_var CXX" || \
10646   test "X$hardcode_automatic_CXX"="Xyes" ; then
10647
10648  # We can hardcode non-existant directories.
10649  if test "$hardcode_direct_CXX" != no &&
10650     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651     # have to relink, otherwise we might link with an installed library
10652     # when we should be linking with a yet-to-be-installed one
10653     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10654     test "$hardcode_minus_L_CXX" != no; then
10655    # Linking always hardcodes the temporary library directory.
10656    hardcode_action_CXX=relink
10657  else
10658    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659    hardcode_action_CXX=immediate
10660  fi
10661else
10662  # We cannot hardcode anything, or else we can only hardcode existing
10663  # directories.
10664  hardcode_action_CXX=unsupported
10665fi
10666echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10667echo "${ECHO_T}$hardcode_action_CXX" >&6
10668
10669if test "$hardcode_action_CXX" = relink; then
10670  # Fast installation is not supported
10671  enable_fast_install=no
10672elif test "$shlibpath_overrides_runpath" = yes ||
10673     test "$enable_shared" = no; then
10674  # Fast installation is not necessary
10675  enable_fast_install=needless
10676fi
10677
10678striplib=
10679old_striplib=
10680echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10681echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10682if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10683  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10684  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10685  echo "$as_me:$LINENO: result: yes" >&5
10686echo "${ECHO_T}yes" >&6
10687else
10688# FIXME - insert some real tests, host_os isn't really good enough
10689  case $host_os in
10690   darwin*)
10691       if test -n "$STRIP" ; then
10692         striplib="$STRIP -x"
10693         echo "$as_me:$LINENO: result: yes" >&5
10694echo "${ECHO_T}yes" >&6
10695       else
10696  echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6
10698fi
10699       ;;
10700   *)
10701  echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703    ;;
10704  esac
10705fi
10706
10707echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10708echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10709library_names_spec=
10710libname_spec='lib$name'
10711soname_spec=
10712shrext=".so"
10713postinstall_cmds=
10714postuninstall_cmds=
10715finish_cmds=
10716finish_eval=
10717shlibpath_var=
10718shlibpath_overrides_runpath=unknown
10719version_type=none
10720dynamic_linker="$host_os ld.so"
10721sys_lib_dlsearch_path_spec="/lib /usr/lib"
10722if test "$GCC" = yes; then
10723  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10724  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10725    # if the path contains ";" then we assume it to be the separator
10726    # otherwise default to the standard path separator (i.e. ":") - it is
10727    # assumed that no part of a normal pathname contains ";" but that should
10728    # okay in the real world where ";" in dirpaths is itself problematic.
10729    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10730  else
10731    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10732  fi
10733else
10734  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735fi
10736need_lib_prefix=unknown
10737hardcode_into_libs=no
10738
10739# when you set need_version to no, make sure it does not cause -set_version
10740# flags to be left without arguments
10741need_version=unknown
10742
10743case $host_os in
10744aix3*)
10745  version_type=linux
10746  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10747  shlibpath_var=LIBPATH
10748
10749  # AIX 3 has no versioning support, so we append a major version to the name.
10750  soname_spec='${libname}${release}${shared_ext}$major'
10751  ;;
10752
10753aix4* | aix5*)
10754  version_type=linux
10755  need_lib_prefix=no
10756  need_version=no
10757  hardcode_into_libs=yes
10758  if test "$host_cpu" = ia64; then
10759    # AIX 5 supports IA64
10760    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10761    shlibpath_var=LD_LIBRARY_PATH
10762  else
10763    # With GCC up to 2.95.x, collect2 would create an import file
10764    # for dependence libraries.  The import file would start with
10765    # the line `#! .'.  This would cause the generated library to
10766    # depend on `.', always an invalid library.  This was fixed in
10767    # development snapshots of GCC prior to 3.0.
10768    case $host_os in
10769      aix4 | aix4.[01] | aix4.[01].*)
10770      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10771	   echo ' yes '
10772	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10773	:
10774      else
10775	can_build_shared=no
10776      fi
10777      ;;
10778    esac
10779    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10780    # soname into executable. Probably we can add versioning support to
10781    # collect2, so additional links can be useful in future.
10782    if test "$aix_use_runtimelinking" = yes; then
10783      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10784      # instead of lib<name>.a to let people know that these are not
10785      # typical AIX shared libraries.
10786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787    else
10788      # We preserve .a as extension for shared libraries through AIX4.2
10789      # and later when we are not doing run time linking.
10790      library_names_spec='${libname}${release}.a $libname.a'
10791      soname_spec='${libname}${release}${shared_ext}$major'
10792    fi
10793    shlibpath_var=LIBPATH
10794  fi
10795  ;;
10796
10797amigaos*)
10798  library_names_spec='$libname.ixlibrary $libname.a'
10799  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10800  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'
10801  ;;
10802
10803beos*)
10804  library_names_spec='${libname}${shared_ext}'
10805  dynamic_linker="$host_os ld.so"
10806  shlibpath_var=LIBRARY_PATH
10807  ;;
10808
10809bsdi4*)
10810  version_type=linux
10811  need_version=no
10812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813  soname_spec='${libname}${release}${shared_ext}$major'
10814  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10815  shlibpath_var=LD_LIBRARY_PATH
10816  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10817  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10818  # the default ld.so.conf also contains /usr/contrib/lib and
10819  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10820  # libtool to hard-code these into programs
10821  ;;
10822
10823cygwin* | mingw* | pw32*)
10824  version_type=windows
10825  shrext=".dll"
10826  need_version=no
10827  need_lib_prefix=no
10828
10829  case $GCC,$host_os in
10830  yes,cygwin* | yes,mingw* | yes,pw32*)
10831    library_names_spec='$libname.dll.a'
10832    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10833    postinstall_cmds='base_file=`basename \${file}`~
10834      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10835      dldir=$destdir/`dirname \$dlpath`~
10836      test -d \$dldir || mkdir -p \$dldir~
10837      $install_prog $dir/$dlname \$dldir/$dlname'
10838    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839      dlpath=$dir/\$dldll~
10840       $rm \$dlpath'
10841    shlibpath_overrides_runpath=yes
10842
10843    case $host_os in
10844    cygwin*)
10845      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10848      ;;
10849    mingw*)
10850      # MinGW DLLs use traditional 'lib' prefix
10851      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10854        # It is most probably a Windows format PATH printed by
10855        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856        # path with ; separators, and with drive letters. We can handle the
10857        # drive letters (cygwin fileutils understands them), so leave them,
10858        # especially as we might pass files found there to a mingw objdump,
10859        # which wouldn't understand a cygwinified path. Ahh.
10860        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861      else
10862        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10863      fi
10864      ;;
10865    pw32*)
10866      # pw32 DLLs use 'pw' prefix rather than 'lib'
10867      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10868      ;;
10869    esac
10870    ;;
10871
10872  *)
10873    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10874    ;;
10875  esac
10876  dynamic_linker='Win32 ld.exe'
10877  # FIXME: first we should search . and the directory the executable is in
10878  shlibpath_var=PATH
10879  ;;
10880
10881darwin* | rhapsody*)
10882  dynamic_linker="$host_os dyld"
10883  version_type=darwin
10884  need_lib_prefix=no
10885  need_version=no
10886  # FIXME: Relying on posixy $() will cause problems for
10887  #        cross-compilation, but unfortunately the echo tests do not
10888  #        yet detect zsh echo's removal of \ escapes.
10889  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10890  soname_spec='${libname}${release}${major}$shared_ext'
10891  shlibpath_overrides_runpath=yes
10892  shlibpath_var=DYLD_LIBRARY_PATH
10893  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10894  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10895  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10896  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"`
10897  fi
10898  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10899  ;;
10900
10901dgux*)
10902  version_type=linux
10903  need_lib_prefix=no
10904  need_version=no
10905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906  soname_spec='${libname}${release}${shared_ext}$major'
10907  shlibpath_var=LD_LIBRARY_PATH
10908  ;;
10909
10910freebsd1*)
10911  dynamic_linker=no
10912  ;;
10913
10914freebsd*)
10915  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10916  version_type=freebsd-$objformat
10917  case $version_type in
10918    freebsd-elf*)
10919      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10920      need_version=no
10921      need_lib_prefix=no
10922      ;;
10923    freebsd-*)
10924      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10925      need_version=yes
10926      ;;
10927  esac
10928  shlibpath_var=LD_LIBRARY_PATH
10929  case $host_os in
10930  freebsd2*)
10931    shlibpath_overrides_runpath=yes
10932    ;;
10933  freebsd3.01* | freebsdelf3.01*)
10934    shlibpath_overrides_runpath=yes
10935    hardcode_into_libs=yes
10936    ;;
10937  *) # from 3.2 on
10938    shlibpath_overrides_runpath=no
10939    hardcode_into_libs=yes
10940    ;;
10941  esac
10942  ;;
10943
10944gnu*)
10945  version_type=linux
10946  need_lib_prefix=no
10947  need_version=no
10948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949  soname_spec='${libname}${release}${shared_ext}$major'
10950  shlibpath_var=LD_LIBRARY_PATH
10951  hardcode_into_libs=yes
10952  ;;
10953
10954hpux9* | hpux10* | hpux11*)
10955  # Give a soname corresponding to the major version so that dld.sl refuses to
10956  # link against other versions.
10957  version_type=sunos
10958  need_lib_prefix=no
10959  need_version=no
10960  case "$host_cpu" in
10961  ia64*)
10962    shrext='.so'
10963    hardcode_into_libs=yes
10964    dynamic_linker="$host_os dld.so"
10965    shlibpath_var=LD_LIBRARY_PATH
10966    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10967    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968    soname_spec='${libname}${release}${shared_ext}$major'
10969    if test "X$HPUX_IA64_MODE" = X32; then
10970      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10971    else
10972      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10973    fi
10974    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10975    ;;
10976   hppa*64*)
10977     shrext='.sl'
10978     hardcode_into_libs=yes
10979     dynamic_linker="$host_os dld.sl"
10980     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983     soname_spec='${libname}${release}${shared_ext}$major'
10984     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10985     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986     ;;
10987   *)
10988    shrext='.sl'
10989    dynamic_linker="$host_os dld.sl"
10990    shlibpath_var=SHLIB_PATH
10991    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10992    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993    soname_spec='${libname}${release}${shared_ext}$major'
10994    ;;
10995  esac
10996  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10997  postinstall_cmds='chmod 555 $lib'
10998  ;;
10999
11000irix5* | irix6* | nonstopux*)
11001  case $host_os in
11002    nonstopux*) version_type=nonstopux ;;
11003    *)
11004	if test "$lt_cv_prog_gnu_ld" = yes; then
11005		version_type=linux
11006	else
11007		version_type=irix
11008	fi ;;
11009  esac
11010  need_lib_prefix=no
11011  need_version=no
11012  soname_spec='${libname}${release}${shared_ext}$major'
11013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11014  case $host_os in
11015  irix5* | nonstopux*)
11016    libsuff= shlibsuff=
11017    ;;
11018  *)
11019    case $LD in # libtool.m4 will add one of these switches to LD
11020    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11021      libsuff= shlibsuff= libmagic=32-bit;;
11022    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11023      libsuff=32 shlibsuff=N32 libmagic=N32;;
11024    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11025      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026    *) libsuff= shlibsuff= libmagic=never-match;;
11027    esac
11028    ;;
11029  esac
11030  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031  shlibpath_overrides_runpath=no
11032  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034  hardcode_into_libs=yes
11035  ;;
11036
11037# No shared lib support for Linux oldld, aout, or coff.
11038linux*oldld* | linux*aout* | linux*coff*)
11039  dynamic_linker=no
11040  ;;
11041
11042# This must be Linux ELF.
11043linux*)
11044  version_type=linux
11045  need_lib_prefix=no
11046  need_version=no
11047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048  soname_spec='${libname}${release}${shared_ext}$major'
11049  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11050  shlibpath_var=LD_LIBRARY_PATH
11051  shlibpath_overrides_runpath=no
11052  # This implies no fast_install, which is unacceptable.
11053  # Some rework will be needed to allow for fast_install
11054  # before this can be enabled.
11055  hardcode_into_libs=yes
11056
11057  # We used to test for /lib/ld.so.1 and disable shared libraries on
11058  # powerpc, because MkLinux only supported shared libraries with the
11059  # GNU dynamic linker.  Since this was broken with cross compilers,
11060  # most powerpc-linux boxes support dynamic linking these days and
11061  # people can always --disable-shared, the test was removed, and we
11062  # assume the GNU/Linux dynamic linker is in use.
11063  dynamic_linker='GNU/Linux ld.so'
11064  ;;
11065
11066netbsd*)
11067  version_type=sunos
11068  need_lib_prefix=no
11069  need_version=no
11070  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11071    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11072    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073    dynamic_linker='NetBSD (a.out) ld.so'
11074  else
11075    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11076    soname_spec='${libname}${release}${shared_ext}$major'
11077    dynamic_linker='NetBSD ld.elf_so'
11078  fi
11079  shlibpath_var=LD_LIBRARY_PATH
11080  shlibpath_overrides_runpath=yes
11081  hardcode_into_libs=yes
11082  ;;
11083
11084newsos6)
11085  version_type=linux
11086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087  shlibpath_var=LD_LIBRARY_PATH
11088  shlibpath_overrides_runpath=yes
11089  ;;
11090
11091nto-qnx)
11092  version_type=linux
11093  need_lib_prefix=no
11094  need_version=no
11095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096  soname_spec='${libname}${release}${shared_ext}$major'
11097  shlibpath_var=LD_LIBRARY_PATH
11098  shlibpath_overrides_runpath=yes
11099  ;;
11100
11101openbsd*)
11102  version_type=sunos
11103  need_lib_prefix=no
11104  need_version=no
11105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107  shlibpath_var=LD_LIBRARY_PATH
11108  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11109    case $host_os in
11110      openbsd2.[89] | openbsd2.[89].*)
11111	shlibpath_overrides_runpath=no
11112	;;
11113      *)
11114	shlibpath_overrides_runpath=yes
11115	;;
11116      esac
11117  else
11118    shlibpath_overrides_runpath=yes
11119  fi
11120  ;;
11121
11122os2*)
11123  libname_spec='$name'
11124  shrext=".dll"
11125  need_lib_prefix=no
11126  library_names_spec='$libname${shared_ext} $libname.a'
11127  dynamic_linker='OS/2 ld.exe'
11128  shlibpath_var=LIBPATH
11129  ;;
11130
11131osf3* | osf4* | osf5*)
11132  version_type=osf
11133  need_lib_prefix=no
11134  need_version=no
11135  soname_spec='${libname}${release}${shared_ext}$major'
11136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11140  ;;
11141
11142sco3.2v5*)
11143  version_type=osf
11144  soname_spec='${libname}${release}${shared_ext}$major'
11145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146  shlibpath_var=LD_LIBRARY_PATH
11147  ;;
11148
11149solaris*)
11150  version_type=linux
11151  need_lib_prefix=no
11152  need_version=no
11153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154  soname_spec='${libname}${release}${shared_ext}$major'
11155  shlibpath_var=LD_LIBRARY_PATH
11156  shlibpath_overrides_runpath=yes
11157  hardcode_into_libs=yes
11158  # ldd complains unless libraries are executable
11159  postinstall_cmds='chmod +x $lib'
11160  ;;
11161
11162sunos4*)
11163  version_type=sunos
11164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11165  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11166  shlibpath_var=LD_LIBRARY_PATH
11167  shlibpath_overrides_runpath=yes
11168  if test "$with_gnu_ld" = yes; then
11169    need_lib_prefix=no
11170  fi
11171  need_version=yes
11172  ;;
11173
11174sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11175  version_type=linux
11176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177  soname_spec='${libname}${release}${shared_ext}$major'
11178  shlibpath_var=LD_LIBRARY_PATH
11179  case $host_vendor in
11180    sni)
11181      shlibpath_overrides_runpath=no
11182      need_lib_prefix=no
11183      export_dynamic_flag_spec='${wl}-Blargedynsym'
11184      runpath_var=LD_RUN_PATH
11185      ;;
11186    siemens)
11187      need_lib_prefix=no
11188      ;;
11189    motorola)
11190      need_lib_prefix=no
11191      need_version=no
11192      shlibpath_overrides_runpath=no
11193      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11194      ;;
11195  esac
11196  ;;
11197
11198sysv4*MP*)
11199  if test -d /usr/nec ;then
11200    version_type=linux
11201    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11202    soname_spec='$libname${shared_ext}.$major'
11203    shlibpath_var=LD_LIBRARY_PATH
11204  fi
11205  ;;
11206
11207uts4*)
11208  version_type=linux
11209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210  soname_spec='${libname}${release}${shared_ext}$major'
11211  shlibpath_var=LD_LIBRARY_PATH
11212  ;;
11213
11214*)
11215  dynamic_linker=no
11216  ;;
11217esac
11218echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11219echo "${ECHO_T}$dynamic_linker" >&6
11220test "$dynamic_linker" = no && can_build_shared=no
11221
11222if test "x$enable_dlopen" != xyes; then
11223  enable_dlopen=unknown
11224  enable_dlopen_self=unknown
11225  enable_dlopen_self_static=unknown
11226else
11227  lt_cv_dlopen=no
11228  lt_cv_dlopen_libs=
11229
11230  case $host_os in
11231  beos*)
11232    lt_cv_dlopen="load_add_on"
11233    lt_cv_dlopen_libs=
11234    lt_cv_dlopen_self=yes
11235    ;;
11236
11237  mingw* | pw32*)
11238    lt_cv_dlopen="LoadLibrary"
11239    lt_cv_dlopen_libs=
11240   ;;
11241
11242  cygwin*)
11243    lt_cv_dlopen="dlopen"
11244    lt_cv_dlopen_libs=
11245   ;;
11246
11247  darwin*)
11248  # if libdl is installed we need to link against it
11249    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11250echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11251if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11252  echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254  ac_check_lib_save_LIBS=$LIBS
11255LIBS="-ldl  $LIBS"
11256cat >conftest.$ac_ext <<_ACEOF
11257#line $LINENO "configure"
11258/* confdefs.h.  */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h.  */
11263
11264/* Override any gcc2 internal prototype to avoid an error.  */
11265#ifdef __cplusplus
11266extern "C"
11267#endif
11268/* We use char because int might match the return type of a gcc2
11269   builtin and then its argument prototype would still apply.  */
11270char dlopen ();
11271int
11272main ()
11273{
11274dlopen ();
11275  ;
11276  return 0;
11277}
11278_ACEOF
11279rm -f conftest.$ac_objext conftest$ac_exeext
11280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281  (eval $ac_link) 2>&5
11282  ac_status=$?
11283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284  (exit $ac_status); } &&
11285         { ac_try='test -s conftest$ac_exeext'
11286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287  (eval $ac_try) 2>&5
11288  ac_status=$?
11289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290  (exit $ac_status); }; }; then
11291  ac_cv_lib_dl_dlopen=yes
11292else
11293  echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296ac_cv_lib_dl_dlopen=no
11297fi
11298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299LIBS=$ac_check_lib_save_LIBS
11300fi
11301echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11303if test $ac_cv_lib_dl_dlopen = yes; then
11304  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305else
11306
11307    lt_cv_dlopen="dyld"
11308    lt_cv_dlopen_libs=
11309    lt_cv_dlopen_self=yes
11310
11311fi
11312
11313   ;;
11314
11315  *)
11316    echo "$as_me:$LINENO: checking for shl_load" >&5
11317echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11318if test "${ac_cv_func_shl_load+set}" = set; then
11319  echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321  cat >conftest.$ac_ext <<_ACEOF
11322#line $LINENO "configure"
11323/* confdefs.h.  */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h.  */
11328/* System header to define __stub macros and hopefully few prototypes,
11329    which can conflict with char shl_load (); below.
11330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331    <limits.h> exists even on freestanding compilers.  */
11332#ifdef __STDC__
11333# include <limits.h>
11334#else
11335# include <assert.h>
11336#endif
11337/* Override any gcc2 internal prototype to avoid an error.  */
11338#ifdef __cplusplus
11339extern "C"
11340{
11341#endif
11342/* We use char because int might match the return type of a gcc2
11343   builtin and then its argument prototype would still apply.  */
11344char shl_load ();
11345/* The GNU C library defines this for functions which it implements
11346    to always fail with ENOSYS.  Some functions are actually named
11347    something starting with __ and the normal name is an alias.  */
11348#if defined (__stub_shl_load) || defined (__stub___shl_load)
11349choke me
11350#else
11351char (*f) () = shl_load;
11352#endif
11353#ifdef __cplusplus
11354}
11355#endif
11356
11357int
11358main ()
11359{
11360return f != shl_load;
11361  ;
11362  return 0;
11363}
11364_ACEOF
11365rm -f conftest.$ac_objext conftest$ac_exeext
11366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367  (eval $ac_link) 2>&5
11368  ac_status=$?
11369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370  (exit $ac_status); } &&
11371         { ac_try='test -s conftest$ac_exeext'
11372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373  (eval $ac_try) 2>&5
11374  ac_status=$?
11375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376  (exit $ac_status); }; }; then
11377  ac_cv_func_shl_load=yes
11378else
11379  echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382ac_cv_func_shl_load=no
11383fi
11384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385fi
11386echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11387echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11388if test $ac_cv_func_shl_load = yes; then
11389  lt_cv_dlopen="shl_load"
11390else
11391  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11392echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11393if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11394  echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396  ac_check_lib_save_LIBS=$LIBS
11397LIBS="-ldld  $LIBS"
11398cat >conftest.$ac_ext <<_ACEOF
11399#line $LINENO "configure"
11400/* confdefs.h.  */
11401_ACEOF
11402cat confdefs.h >>conftest.$ac_ext
11403cat >>conftest.$ac_ext <<_ACEOF
11404/* end confdefs.h.  */
11405
11406/* Override any gcc2 internal prototype to avoid an error.  */
11407#ifdef __cplusplus
11408extern "C"
11409#endif
11410/* We use char because int might match the return type of a gcc2
11411   builtin and then its argument prototype would still apply.  */
11412char shl_load ();
11413int
11414main ()
11415{
11416shl_load ();
11417  ;
11418  return 0;
11419}
11420_ACEOF
11421rm -f conftest.$ac_objext conftest$ac_exeext
11422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423  (eval $ac_link) 2>&5
11424  ac_status=$?
11425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426  (exit $ac_status); } &&
11427         { ac_try='test -s conftest$ac_exeext'
11428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429  (eval $ac_try) 2>&5
11430  ac_status=$?
11431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432  (exit $ac_status); }; }; then
11433  ac_cv_lib_dld_shl_load=yes
11434else
11435  echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
11438ac_cv_lib_dld_shl_load=no
11439fi
11440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441LIBS=$ac_check_lib_save_LIBS
11442fi
11443echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11444echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11445if test $ac_cv_lib_dld_shl_load = yes; then
11446  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11447else
11448  echo "$as_me:$LINENO: checking for dlopen" >&5
11449echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11450if test "${ac_cv_func_dlopen+set}" = set; then
11451  echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453  cat >conftest.$ac_ext <<_ACEOF
11454#line $LINENO "configure"
11455/* confdefs.h.  */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h.  */
11460/* System header to define __stub macros and hopefully few prototypes,
11461    which can conflict with char dlopen (); below.
11462    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11463    <limits.h> exists even on freestanding compilers.  */
11464#ifdef __STDC__
11465# include <limits.h>
11466#else
11467# include <assert.h>
11468#endif
11469/* Override any gcc2 internal prototype to avoid an error.  */
11470#ifdef __cplusplus
11471extern "C"
11472{
11473#endif
11474/* We use char because int might match the return type of a gcc2
11475   builtin and then its argument prototype would still apply.  */
11476char dlopen ();
11477/* The GNU C library defines this for functions which it implements
11478    to always fail with ENOSYS.  Some functions are actually named
11479    something starting with __ and the normal name is an alias.  */
11480#if defined (__stub_dlopen) || defined (__stub___dlopen)
11481choke me
11482#else
11483char (*f) () = dlopen;
11484#endif
11485#ifdef __cplusplus
11486}
11487#endif
11488
11489int
11490main ()
11491{
11492return f != dlopen;
11493  ;
11494  return 0;
11495}
11496_ACEOF
11497rm -f conftest.$ac_objext conftest$ac_exeext
11498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499  (eval $ac_link) 2>&5
11500  ac_status=$?
11501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502  (exit $ac_status); } &&
11503         { ac_try='test -s conftest$ac_exeext'
11504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505  (eval $ac_try) 2>&5
11506  ac_status=$?
11507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508  (exit $ac_status); }; }; then
11509  ac_cv_func_dlopen=yes
11510else
11511  echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514ac_cv_func_dlopen=no
11515fi
11516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11517fi
11518echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11519echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11520if test $ac_cv_func_dlopen = yes; then
11521  lt_cv_dlopen="dlopen"
11522else
11523  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11524echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11525if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11526  echo $ECHO_N "(cached) $ECHO_C" >&6
11527else
11528  ac_check_lib_save_LIBS=$LIBS
11529LIBS="-ldl  $LIBS"
11530cat >conftest.$ac_ext <<_ACEOF
11531#line $LINENO "configure"
11532/* confdefs.h.  */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h.  */
11537
11538/* Override any gcc2 internal prototype to avoid an error.  */
11539#ifdef __cplusplus
11540extern "C"
11541#endif
11542/* We use char because int might match the return type of a gcc2
11543   builtin and then its argument prototype would still apply.  */
11544char dlopen ();
11545int
11546main ()
11547{
11548dlopen ();
11549  ;
11550  return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext conftest$ac_exeext
11554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555  (eval $ac_link) 2>&5
11556  ac_status=$?
11557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558  (exit $ac_status); } &&
11559         { ac_try='test -s conftest$ac_exeext'
11560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561  (eval $ac_try) 2>&5
11562  ac_status=$?
11563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564  (exit $ac_status); }; }; then
11565  ac_cv_lib_dl_dlopen=yes
11566else
11567  echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
11570ac_cv_lib_dl_dlopen=no
11571fi
11572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11573LIBS=$ac_check_lib_save_LIBS
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11576echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11577if test $ac_cv_lib_dl_dlopen = yes; then
11578  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579else
11580  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11581echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11582if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11583  echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585  ac_check_lib_save_LIBS=$LIBS
11586LIBS="-lsvld  $LIBS"
11587cat >conftest.$ac_ext <<_ACEOF
11588#line $LINENO "configure"
11589/* confdefs.h.  */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h.  */
11594
11595/* Override any gcc2 internal prototype to avoid an error.  */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599/* We use char because int might match the return type of a gcc2
11600   builtin and then its argument prototype would still apply.  */
11601char dlopen ();
11602int
11603main ()
11604{
11605dlopen ();
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612  (eval $ac_link) 2>&5
11613  ac_status=$?
11614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615  (exit $ac_status); } &&
11616         { ac_try='test -s conftest$ac_exeext'
11617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618  (eval $ac_try) 2>&5
11619  ac_status=$?
11620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621  (exit $ac_status); }; }; then
11622  ac_cv_lib_svld_dlopen=yes
11623else
11624  echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627ac_cv_lib_svld_dlopen=no
11628fi
11629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630LIBS=$ac_check_lib_save_LIBS
11631fi
11632echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11633echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11634if test $ac_cv_lib_svld_dlopen = yes; then
11635  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636else
11637  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11638echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11639if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11640  echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642  ac_check_lib_save_LIBS=$LIBS
11643LIBS="-ldld  $LIBS"
11644cat >conftest.$ac_ext <<_ACEOF
11645#line $LINENO "configure"
11646/* confdefs.h.  */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h.  */
11651
11652/* Override any gcc2 internal prototype to avoid an error.  */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656/* We use char because int might match the return type of a gcc2
11657   builtin and then its argument prototype would still apply.  */
11658char dld_link ();
11659int
11660main ()
11661{
11662dld_link ();
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669  (eval $ac_link) 2>&5
11670  ac_status=$?
11671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672  (exit $ac_status); } &&
11673         { ac_try='test -s conftest$ac_exeext'
11674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675  (eval $ac_try) 2>&5
11676  ac_status=$?
11677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678  (exit $ac_status); }; }; then
11679  ac_cv_lib_dld_dld_link=yes
11680else
11681  echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
11684ac_cv_lib_dld_dld_link=no
11685fi
11686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687LIBS=$ac_check_lib_save_LIBS
11688fi
11689echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11690echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11691if test $ac_cv_lib_dld_dld_link = yes; then
11692  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11693fi
11694
11695
11696fi
11697
11698
11699fi
11700
11701
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710    ;;
11711  esac
11712
11713  if test "x$lt_cv_dlopen" != xno; then
11714    enable_dlopen=yes
11715  else
11716    enable_dlopen=no
11717  fi
11718
11719  case $lt_cv_dlopen in
11720  dlopen)
11721    save_CPPFLAGS="$CPPFLAGS"
11722    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723
11724    save_LDFLAGS="$LDFLAGS"
11725    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11726
11727    save_LIBS="$LIBS"
11728    LIBS="$lt_cv_dlopen_libs $LIBS"
11729
11730    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11731echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11732if test "${lt_cv_dlopen_self+set}" = set; then
11733  echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735  	  if test "$cross_compiling" = yes; then :
11736  lt_cv_dlopen_self=cross
11737else
11738  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739  lt_status=$lt_dlunknown
11740  cat > conftest.$ac_ext <<EOF
11741#line 11741 "configure"
11742#include "confdefs.h"
11743
11744#if HAVE_DLFCN_H
11745#include <dlfcn.h>
11746#endif
11747
11748#include <stdio.h>
11749
11750#ifdef RTLD_GLOBAL
11751#  define LT_DLGLOBAL		RTLD_GLOBAL
11752#else
11753#  ifdef DL_GLOBAL
11754#    define LT_DLGLOBAL		DL_GLOBAL
11755#  else
11756#    define LT_DLGLOBAL		0
11757#  endif
11758#endif
11759
11760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761   find out it does not work in some platform. */
11762#ifndef LT_DLLAZY_OR_NOW
11763#  ifdef RTLD_LAZY
11764#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11765#  else
11766#    ifdef DL_LAZY
11767#      define LT_DLLAZY_OR_NOW		DL_LAZY
11768#    else
11769#      ifdef RTLD_NOW
11770#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11771#      else
11772#        ifdef DL_NOW
11773#          define LT_DLLAZY_OR_NOW	DL_NOW
11774#        else
11775#          define LT_DLLAZY_OR_NOW	0
11776#        endif
11777#      endif
11778#    endif
11779#  endif
11780#endif
11781
11782#ifdef __cplusplus
11783extern "C" void exit (int);
11784#endif
11785
11786void fnord() { int i=42;}
11787int main ()
11788{
11789  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11790  int status = $lt_dlunknown;
11791
11792  if (self)
11793    {
11794      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11795      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796      /* dlclose (self); */
11797    }
11798
11799    exit (status);
11800}
11801EOF
11802  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803  (eval $ac_link) 2>&5
11804  ac_status=$?
11805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11807    (./conftest; exit; ) 2>/dev/null
11808    lt_status=$?
11809    case x$lt_status in
11810      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11813    esac
11814  else :
11815    # compilation failed
11816    lt_cv_dlopen_self=no
11817  fi
11818fi
11819rm -fr conftest*
11820
11821
11822fi
11823echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11824echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11825
11826    if test "x$lt_cv_dlopen_self" = xyes; then
11827      LDFLAGS="$LDFLAGS $link_static_flag"
11828      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11829echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11830if test "${lt_cv_dlopen_self_static+set}" = set; then
11831  echo $ECHO_N "(cached) $ECHO_C" >&6
11832else
11833  	  if test "$cross_compiling" = yes; then :
11834  lt_cv_dlopen_self_static=cross
11835else
11836  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837  lt_status=$lt_dlunknown
11838  cat > conftest.$ac_ext <<EOF
11839#line 11839 "configure"
11840#include "confdefs.h"
11841
11842#if HAVE_DLFCN_H
11843#include <dlfcn.h>
11844#endif
11845
11846#include <stdio.h>
11847
11848#ifdef RTLD_GLOBAL
11849#  define LT_DLGLOBAL		RTLD_GLOBAL
11850#else
11851#  ifdef DL_GLOBAL
11852#    define LT_DLGLOBAL		DL_GLOBAL
11853#  else
11854#    define LT_DLGLOBAL		0
11855#  endif
11856#endif
11857
11858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859   find out it does not work in some platform. */
11860#ifndef LT_DLLAZY_OR_NOW
11861#  ifdef RTLD_LAZY
11862#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11863#  else
11864#    ifdef DL_LAZY
11865#      define LT_DLLAZY_OR_NOW		DL_LAZY
11866#    else
11867#      ifdef RTLD_NOW
11868#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11869#      else
11870#        ifdef DL_NOW
11871#          define LT_DLLAZY_OR_NOW	DL_NOW
11872#        else
11873#          define LT_DLLAZY_OR_NOW	0
11874#        endif
11875#      endif
11876#    endif
11877#  endif
11878#endif
11879
11880#ifdef __cplusplus
11881extern "C" void exit (int);
11882#endif
11883
11884void fnord() { int i=42;}
11885int main ()
11886{
11887  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888  int status = $lt_dlunknown;
11889
11890  if (self)
11891    {
11892      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11893      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11894      /* dlclose (self); */
11895    }
11896
11897    exit (status);
11898}
11899EOF
11900  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901  (eval $ac_link) 2>&5
11902  ac_status=$?
11903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11905    (./conftest; exit; ) 2>/dev/null
11906    lt_status=$?
11907    case x$lt_status in
11908      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11911    esac
11912  else :
11913    # compilation failed
11914    lt_cv_dlopen_self_static=no
11915  fi
11916fi
11917rm -fr conftest*
11918
11919
11920fi
11921echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11922echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11923    fi
11924
11925    CPPFLAGS="$save_CPPFLAGS"
11926    LDFLAGS="$save_LDFLAGS"
11927    LIBS="$save_LIBS"
11928    ;;
11929  esac
11930
11931  case $lt_cv_dlopen_self in
11932  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933  *) enable_dlopen_self=unknown ;;
11934  esac
11935
11936  case $lt_cv_dlopen_self_static in
11937  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938  *) enable_dlopen_self_static=unknown ;;
11939  esac
11940fi
11941
11942
11943# The else clause should only fire when bootstrapping the
11944# libtool distribution, otherwise you forgot to ship ltmain.sh
11945# with your package, and you will get complaints that there are
11946# no rules to generate ltmain.sh.
11947if test -f "$ltmain"; then
11948  # See if we are running on zsh, and set the options which allow our commands through
11949  # without removal of \ escapes.
11950  if test -n "${ZSH_VERSION+set}" ; then
11951    setopt NO_GLOB_SUBST
11952  fi
11953  # Now quote all the things that may contain metacharacters while being
11954  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11955  # variables and quote the copies for generation of the libtool script.
11956  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11957    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11958    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11959    deplibs_check_method reload_flag reload_cmds need_locks \
11960    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11961    lt_cv_sys_global_symbol_to_c_name_address \
11962    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11963    old_postinstall_cmds old_postuninstall_cmds \
11964    compiler_CXX \
11965    CC_CXX \
11966    LD_CXX \
11967    lt_prog_compiler_wl_CXX \
11968    lt_prog_compiler_pic_CXX \
11969    lt_prog_compiler_static_CXX \
11970    lt_prog_compiler_no_builtin_flag_CXX \
11971    export_dynamic_flag_spec_CXX \
11972    thread_safe_flag_spec_CXX \
11973    whole_archive_flag_spec_CXX \
11974    enable_shared_with_static_runtimes_CXX \
11975    old_archive_cmds_CXX \
11976    old_archive_from_new_cmds_CXX \
11977    predep_objects_CXX \
11978    postdep_objects_CXX \
11979    predeps_CXX \
11980    postdeps_CXX \
11981    compiler_lib_search_path_CXX \
11982    archive_cmds_CXX \
11983    archive_expsym_cmds_CXX \
11984    postinstall_cmds_CXX \
11985    postuninstall_cmds_CXX \
11986    old_archive_from_expsyms_cmds_CXX \
11987    allow_undefined_flag_CXX \
11988    no_undefined_flag_CXX \
11989    export_symbols_cmds_CXX \
11990    hardcode_libdir_flag_spec_CXX \
11991    hardcode_libdir_flag_spec_ld_CXX \
11992    hardcode_libdir_separator_CXX \
11993    hardcode_automatic_CXX \
11994    module_cmds_CXX \
11995    module_expsym_cmds_CXX \
11996    lt_cv_prog_compiler_c_o_CXX \
11997    exclude_expsyms_CXX \
11998    include_expsyms_CXX; do
11999
12000    case $var in
12001    old_archive_cmds_CXX | \
12002    old_archive_from_new_cmds_CXX | \
12003    archive_cmds_CXX | \
12004    archive_expsym_cmds_CXX | \
12005    module_cmds_CXX | \
12006    module_expsym_cmds_CXX | \
12007    old_archive_from_expsyms_cmds_CXX | \
12008    export_symbols_cmds_CXX | \
12009    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12010    postinstall_cmds | postuninstall_cmds | \
12011    old_postinstall_cmds | old_postuninstall_cmds | \
12012    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12013      # Double-quote double-evaled strings.
12014      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12015      ;;
12016    *)
12017      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12018      ;;
12019    esac
12020  done
12021
12022  case $lt_echo in
12023  *'\$0 --fallback-echo"')
12024    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12025    ;;
12026  esac
12027
12028cfgfile="$ofile"
12029
12030  cat <<__EOF__ >> "$cfgfile"
12031# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12032
12033# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12034
12035# Shell to use when invoking shell scripts.
12036SHELL=$lt_SHELL
12037
12038# Whether or not to build shared libraries.
12039build_libtool_libs=$enable_shared
12040
12041# Whether or not to build static libraries.
12042build_old_libs=$enable_static
12043
12044# Whether or not to add -lc for building shared libraries.
12045build_libtool_need_lc=$archive_cmds_need_lc_CXX
12046
12047# Whether or not to disallow shared libs when runtime libs are static
12048allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12049
12050# Whether or not to optimize for fast installation.
12051fast_install=$enable_fast_install
12052
12053# The host system.
12054host_alias=$host_alias
12055host=$host
12056
12057# An echo program that does not interpret backslashes.
12058echo=$lt_echo
12059
12060# The archiver.
12061AR=$lt_AR
12062AR_FLAGS=$lt_AR_FLAGS
12063
12064# A C compiler.
12065LTCC=$lt_LTCC
12066
12067# A language-specific compiler.
12068CC=$lt_compiler_CXX
12069
12070# Is the compiler the GNU C compiler?
12071with_gcc=$GCC_CXX
12072
12073# An ERE matcher.
12074EGREP=$lt_EGREP
12075
12076# The linker used to build libraries.
12077LD=$lt_LD_CXX
12078
12079# Whether we need hard or soft links.
12080LN_S=$lt_LN_S
12081
12082# A BSD-compatible nm program.
12083NM=$lt_NM
12084
12085# A symbol stripping program
12086STRIP=$STRIP
12087
12088# Used to examine libraries when file_magic_cmd begins "file"
12089MAGIC_CMD=$MAGIC_CMD
12090
12091# Used on cygwin: DLL creation program.
12092DLLTOOL="$DLLTOOL"
12093
12094# Used on cygwin: object dumper.
12095OBJDUMP="$OBJDUMP"
12096
12097# Used on cygwin: assembler.
12098AS="$AS"
12099
12100# The name of the directory that contains temporary libtool files.
12101objdir=$objdir
12102
12103# How to create reloadable object files.
12104reload_flag=$lt_reload_flag
12105reload_cmds=$lt_reload_cmds
12106
12107# How to pass a linker flag through the compiler.
12108wl=$lt_lt_prog_compiler_wl_CXX
12109
12110# Object file suffix (normally "o").
12111objext="$ac_objext"
12112
12113# Old archive suffix (normally "a").
12114libext="$libext"
12115
12116# Shared library suffix (normally ".so").
12117shrext='$shrext'
12118
12119# Executable file suffix (normally "").
12120exeext="$exeext"
12121
12122# Additional compiler flags for building library objects.
12123pic_flag=$lt_lt_prog_compiler_pic_CXX
12124pic_mode=$pic_mode
12125
12126# What is the maximum length of a command?
12127max_cmd_len=$lt_cv_sys_max_cmd_len
12128
12129# Does compiler simultaneously support -c and -o options?
12130compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12131
12132# Must we lock files when doing compilation ?
12133need_locks=$lt_need_locks
12134
12135# Do we need the lib prefix for modules?
12136need_lib_prefix=$need_lib_prefix
12137
12138# Do we need a version for libraries?
12139need_version=$need_version
12140
12141# Whether dlopen is supported.
12142dlopen_support=$enable_dlopen
12143
12144# Whether dlopen of programs is supported.
12145dlopen_self=$enable_dlopen_self
12146
12147# Whether dlopen of statically linked programs is supported.
12148dlopen_self_static=$enable_dlopen_self_static
12149
12150# Compiler flag to prevent dynamic linking.
12151link_static_flag=$lt_lt_prog_compiler_static_CXX
12152
12153# Compiler flag to turn off builtin functions.
12154no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12155
12156# Compiler flag to allow reflexive dlopens.
12157export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12158
12159# Compiler flag to generate shared objects directly from archives.
12160whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12161
12162# Compiler flag to generate thread-safe objects.
12163thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12164
12165# Library versioning type.
12166version_type=$version_type
12167
12168# Format of library name prefix.
12169libname_spec=$lt_libname_spec
12170
12171# List of archive names.  First name is the real one, the rest are links.
12172# The last name is the one that the linker finds with -lNAME.
12173library_names_spec=$lt_library_names_spec
12174
12175# The coded name of the library, if different from the real name.
12176soname_spec=$lt_soname_spec
12177
12178# Commands used to build and install an old-style archive.
12179RANLIB=$lt_RANLIB
12180old_archive_cmds=$lt_old_archive_cmds_CXX
12181old_postinstall_cmds=$lt_old_postinstall_cmds
12182old_postuninstall_cmds=$lt_old_postuninstall_cmds
12183
12184# Create an old-style archive from a shared archive.
12185old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12186
12187# Create a temporary old-style archive to link instead of a shared archive.
12188old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12189
12190# Commands used to build and install a shared archive.
12191archive_cmds=$lt_archive_cmds_CXX
12192archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12193postinstall_cmds=$lt_postinstall_cmds
12194postuninstall_cmds=$lt_postuninstall_cmds
12195
12196# Commands used to build a loadable module (assumed same as above if empty)
12197module_cmds=$lt_module_cmds_CXX
12198module_expsym_cmds=$lt_module_expsym_cmds_CXX
12199
12200# Commands to strip libraries.
12201old_striplib=$lt_old_striplib
12202striplib=$lt_striplib
12203
12204# Dependencies to place before the objects being linked to create a
12205# shared library.
12206predep_objects=$lt_predep_objects_CXX
12207
12208# Dependencies to place after the objects being linked to create a
12209# shared library.
12210postdep_objects=$lt_postdep_objects_CXX
12211
12212# Dependencies to place before the objects being linked to create a
12213# shared library.
12214predeps=$lt_predeps_CXX
12215
12216# Dependencies to place after the objects being linked to create a
12217# shared library.
12218postdeps=$lt_postdeps_CXX
12219
12220# The library search path used internally by the compiler when linking
12221# a shared library.
12222compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12223
12224# Method to check whether dependent libraries are shared objects.
12225deplibs_check_method=$lt_deplibs_check_method
12226
12227# Command to use when deplibs_check_method == file_magic.
12228file_magic_cmd=$lt_file_magic_cmd
12229
12230# Flag that allows shared libraries with undefined symbols to be built.
12231allow_undefined_flag=$lt_allow_undefined_flag_CXX
12232
12233# Flag that forces no undefined symbols.
12234no_undefined_flag=$lt_no_undefined_flag_CXX
12235
12236# Commands used to finish a libtool library installation in a directory.
12237finish_cmds=$lt_finish_cmds
12238
12239# Same as above, but a single script fragment to be evaled but not shown.
12240finish_eval=$lt_finish_eval
12241
12242# Take the output of nm and produce a listing of raw symbols and C names.
12243global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12244
12245# Transform the output of nm in a proper C declaration
12246global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12247
12248# Transform the output of nm in a C name address pair
12249global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12250
12251# This is the shared library runtime path variable.
12252runpath_var=$runpath_var
12253
12254# This is the shared library path variable.
12255shlibpath_var=$shlibpath_var
12256
12257# Is shlibpath searched before the hard-coded library search path?
12258shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12259
12260# How to hardcode a shared library path into an executable.
12261hardcode_action=$hardcode_action_CXX
12262
12263# Whether we should hardcode library paths into libraries.
12264hardcode_into_libs=$hardcode_into_libs
12265
12266# Flag to hardcode \$libdir into a binary during linking.
12267# This must work even if \$libdir does not exist.
12268hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12269
12270# If ld is used when linking, flag to hardcode \$libdir into
12271# a binary during linking. This must work even if \$libdir does
12272# not exist.
12273hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12274
12275# Whether we need a single -rpath flag with a separated argument.
12276hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12277
12278# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12279# resulting binary.
12280hardcode_direct=$hardcode_direct_CXX
12281
12282# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12283# resulting binary.
12284hardcode_minus_L=$hardcode_minus_L_CXX
12285
12286# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12287# the resulting binary.
12288hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12289
12290# Set to yes if building a shared library automatically hardcodes DIR into the library
12291# and all subsequent libraries and executables linked against it.
12292hardcode_automatic=$hardcode_automatic_CXX
12293
12294# Variables whose values should be saved in libtool wrapper scripts and
12295# restored at relink time.
12296variables_saved_for_relink="$variables_saved_for_relink"
12297
12298# Whether libtool must link a program against all its dependency libraries.
12299link_all_deplibs=$link_all_deplibs_CXX
12300
12301# Compile-time system search path for libraries
12302sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12303
12304# Run-time system search path for libraries
12305sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12306
12307# Fix the shell variable \$srcfile for the compiler.
12308fix_srcfile_path="$fix_srcfile_path_CXX"
12309
12310# Set to yes if exported symbols are required.
12311always_export_symbols=$always_export_symbols_CXX
12312
12313# The commands to list exported symbols.
12314export_symbols_cmds=$lt_export_symbols_cmds_CXX
12315
12316# The commands to extract the exported symbol list from a shared archive.
12317extract_expsyms_cmds=$lt_extract_expsyms_cmds
12318
12319# Symbols that should not be listed in the preloaded symbols.
12320exclude_expsyms=$lt_exclude_expsyms_CXX
12321
12322# Symbols that must always be exported.
12323include_expsyms=$lt_include_expsyms_CXX
12324
12325# ### END LIBTOOL TAG CONFIG: $tagname
12326
12327__EOF__
12328
12329
12330else
12331  # If there is no Makefile yet, we rely on a make rule to execute
12332  # `config.status --recheck' to rerun these tests and create the
12333  # libtool script then.
12334  test -f Makefile && make "$ltmain"
12335fi
12336
12337
12338ac_ext=c
12339ac_cpp='$CPP $CPPFLAGS'
12340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342ac_compiler_gnu=$ac_cv_c_compiler_gnu
12343
12344CC=$lt_save_CC
12345LDCXX=$LD
12346LD=$lt_save_LD
12347GCC=$lt_save_GCC
12348with_gnu_ldcxx=$with_gnu_ld
12349with_gnu_ld=$lt_save_with_gnu_ld
12350lt_cv_path_LDCXX=$lt_cv_path_LD
12351lt_cv_path_LD=$lt_save_path_LD
12352lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12353lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12354
12355	else
12356	  tagname=""
12357	fi
12358	;;
12359
12360      F77)
12361	if test -n "$F77" && test "X$F77" != "Xno"; then
12362
12363ac_ext=f
12364ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12365ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12367
12368
12369archive_cmds_need_lc_F77=no
12370allow_undefined_flag_F77=
12371always_export_symbols_F77=no
12372archive_expsym_cmds_F77=
12373export_dynamic_flag_spec_F77=
12374hardcode_direct_F77=no
12375hardcode_libdir_flag_spec_F77=
12376hardcode_libdir_flag_spec_ld_F77=
12377hardcode_libdir_separator_F77=
12378hardcode_minus_L_F77=no
12379hardcode_automatic_F77=no
12380module_cmds_F77=
12381module_expsym_cmds_F77=
12382link_all_deplibs_F77=unknown
12383old_archive_cmds_F77=$old_archive_cmds
12384no_undefined_flag_F77=
12385whole_archive_flag_spec_F77=
12386enable_shared_with_static_runtimes_F77=no
12387
12388# Source file extension for f77 test sources.
12389ac_ext=f
12390
12391# Object file extension for compiled f77 test sources.
12392objext=o
12393objext_F77=$objext
12394
12395# Code to be used in simple compile tests
12396lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12397
12398# Code to be used in simple link tests
12399lt_simple_link_test_code="      program t\n      end\n"
12400
12401# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12402
12403# If no C compiler was specified, use CC.
12404LTCC=${LTCC-"$CC"}
12405
12406# Allow CC to be a program name with arguments.
12407compiler=$CC
12408
12409
12410# Allow CC to be a program name with arguments.
12411lt_save_CC="$CC"
12412CC=${F77-"f77"}
12413compiler=$CC
12414compiler_F77=$CC
12415cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12416
12417echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12418echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12419echo "$as_me:$LINENO: result: $can_build_shared" >&5
12420echo "${ECHO_T}$can_build_shared" >&6
12421
12422echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12423echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12424test "$can_build_shared" = "no" && enable_shared=no
12425
12426# On AIX, shared libraries and static libraries use the same namespace, and
12427# are all built from PIC.
12428case "$host_os" in
12429aix3*)
12430  test "$enable_shared" = yes && enable_static=no
12431  if test -n "$RANLIB"; then
12432    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12433    postinstall_cmds='$RANLIB $lib'
12434  fi
12435  ;;
12436aix4*)
12437  test "$enable_shared" = yes && enable_static=no
12438  ;;
12439esac
12440echo "$as_me:$LINENO: result: $enable_shared" >&5
12441echo "${ECHO_T}$enable_shared" >&6
12442
12443echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12445# Make sure either enable_shared or enable_static is yes.
12446test "$enable_shared" = yes || enable_static=yes
12447echo "$as_me:$LINENO: result: $enable_static" >&5
12448echo "${ECHO_T}$enable_static" >&6
12449
12450test "$ld_shlibs_F77" = no && can_build_shared=no
12451
12452GCC_F77="$G77"
12453LD_F77="$LD"
12454
12455lt_prog_compiler_wl_F77=
12456lt_prog_compiler_pic_F77=
12457lt_prog_compiler_static_F77=
12458
12459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12461
12462  if test "$GCC" = yes; then
12463    lt_prog_compiler_wl_F77='-Wl,'
12464    lt_prog_compiler_static_F77='-static'
12465
12466    case $host_os in
12467      aix*)
12468      # All AIX code is PIC.
12469      if test "$host_cpu" = ia64; then
12470	# AIX 5 now supports IA64 processor
12471	lt_prog_compiler_static_F77='-Bstatic'
12472      fi
12473      ;;
12474
12475    amigaos*)
12476      # FIXME: we need at least 68020 code to build shared libraries, but
12477      # adding the `-m68020' flag to GCC prevents building anything better,
12478      # like `-m68040'.
12479      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12480      ;;
12481
12482    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12483      # PIC is the default for these OSes.
12484      ;;
12485
12486    mingw* | pw32* | os2*)
12487      # This hack is so that the source file can tell whether it is being
12488      # built for inclusion in a dll (and should export symbols for example).
12489      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12490      ;;
12491
12492    darwin* | rhapsody*)
12493      # PIC is the default on this platform
12494      # Common symbols not allowed in MH_DYLIB files
12495      lt_prog_compiler_pic_F77='-fno-common'
12496      ;;
12497
12498    msdosdjgpp*)
12499      # Just because we use GCC doesn't mean we suddenly get shared libraries
12500      # on systems that don't support them.
12501      lt_prog_compiler_can_build_shared_F77=no
12502      enable_shared=no
12503      ;;
12504
12505    sysv4*MP*)
12506      if test -d /usr/nec; then
12507	lt_prog_compiler_pic_F77=-Kconform_pic
12508      fi
12509      ;;
12510
12511    hpux*)
12512      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12513      # not for PA HP-UX.
12514      case "$host_cpu" in
12515      hppa*64*|ia64*)
12516	# +Z the default
12517	;;
12518      *)
12519	lt_prog_compiler_pic_F77='-fPIC'
12520	;;
12521      esac
12522      ;;
12523
12524    *)
12525      lt_prog_compiler_pic_F77='-fPIC'
12526      ;;
12527    esac
12528  else
12529    # PORTME Check for flag to pass linker flags through the system compiler.
12530    case $host_os in
12531    aix*)
12532      lt_prog_compiler_wl_F77='-Wl,'
12533      if test "$host_cpu" = ia64; then
12534	# AIX 5 now supports IA64 processor
12535	lt_prog_compiler_static_F77='-Bstatic'
12536      else
12537	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12538      fi
12539      ;;
12540
12541    mingw* | pw32* | os2*)
12542      # This hack is so that the source file can tell whether it is being
12543      # built for inclusion in a dll (and should export symbols for example).
12544      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12545      ;;
12546
12547    hpux9* | hpux10* | hpux11*)
12548      lt_prog_compiler_wl_F77='-Wl,'
12549      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12550      # not for PA HP-UX.
12551      case "$host_cpu" in
12552      hppa*64*|ia64*)
12553	# +Z the default
12554	;;
12555      *)
12556	lt_prog_compiler_pic_F77='+Z'
12557	;;
12558      esac
12559      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12560      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12561      ;;
12562
12563    irix5* | irix6* | nonstopux*)
12564      lt_prog_compiler_wl_F77='-Wl,'
12565      # PIC (with -KPIC) is the default.
12566      lt_prog_compiler_static_F77='-non_shared'
12567      ;;
12568
12569    newsos6)
12570      lt_prog_compiler_pic_F77='-KPIC'
12571      lt_prog_compiler_static_F77='-Bstatic'
12572      ;;
12573
12574    linux*)
12575      case $CC in
12576      icc|ecc)
12577	lt_prog_compiler_wl_F77='-Wl,'
12578	lt_prog_compiler_pic_F77='-KPIC'
12579	lt_prog_compiler_static_F77='-static'
12580        ;;
12581      ccc)
12582        lt_prog_compiler_wl_F77='-Wl,'
12583        # All Alpha code is PIC.
12584        lt_prog_compiler_static_F77='-non_shared'
12585        ;;
12586      esac
12587      ;;
12588
12589    osf3* | osf4* | osf5*)
12590      lt_prog_compiler_wl_F77='-Wl,'
12591      # All OSF/1 code is PIC.
12592      lt_prog_compiler_static_F77='-non_shared'
12593      ;;
12594
12595    sco3.2v5*)
12596      lt_prog_compiler_pic_F77='-Kpic'
12597      lt_prog_compiler_static_F77='-dn'
12598      ;;
12599
12600    solaris*)
12601      lt_prog_compiler_wl_F77='-Wl,'
12602      lt_prog_compiler_pic_F77='-KPIC'
12603      lt_prog_compiler_static_F77='-Bstatic'
12604      ;;
12605
12606    sunos4*)
12607      lt_prog_compiler_wl_F77='-Qoption ld '
12608      lt_prog_compiler_pic_F77='-PIC'
12609      lt_prog_compiler_static_F77='-Bstatic'
12610      ;;
12611
12612    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12613      lt_prog_compiler_wl_F77='-Wl,'
12614      lt_prog_compiler_pic_F77='-KPIC'
12615      lt_prog_compiler_static_F77='-Bstatic'
12616      ;;
12617
12618    sysv4*MP*)
12619      if test -d /usr/nec ;then
12620	lt_prog_compiler_pic_F77='-Kconform_pic'
12621	lt_prog_compiler_static_F77='-Bstatic'
12622      fi
12623      ;;
12624
12625    uts4*)
12626      lt_prog_compiler_pic_F77='-pic'
12627      lt_prog_compiler_static_F77='-Bstatic'
12628      ;;
12629
12630    *)
12631      lt_prog_compiler_can_build_shared_F77=no
12632      ;;
12633    esac
12634  fi
12635
12636echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12637echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12638
12639#
12640# Check to make sure the PIC flag actually works.
12641#
12642if test -n "$lt_prog_compiler_pic_F77"; then
12643  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12644echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12645if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12646  echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648  lt_prog_compiler_pic_works_F77=no
12649  ac_outfile=conftest.$ac_objext
12650   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651   lt_compiler_flag="$lt_prog_compiler_pic_F77"
12652   # Insert the option either (1) after the last *FLAGS variable, or
12653   # (2) before a word containing "conftest.", or (3) at the end.
12654   # Note that $ac_compile itself does not contain backslashes and begins
12655   # with a dollar sign (not a hyphen), so the echo should work correctly.
12656   # The option is referenced via a variable to avoid confusing sed.
12657   lt_compile=`echo "$ac_compile" | $SED \
12658   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12660   -e 's:$: $lt_compiler_flag:'`
12661   (eval echo "\"\$as_me:12661: $lt_compile\"" >&5)
12662   (eval "$lt_compile" 2>conftest.err)
12663   ac_status=$?
12664   cat conftest.err >&5
12665   echo "$as_me:12665: \$? = $ac_status" >&5
12666   if (exit $ac_status) && test -s "$ac_outfile"; then
12667     # The compiler can only warn and ignore the option if not recognized
12668     # So say no if there are warnings
12669     if test ! -s conftest.err; then
12670       lt_prog_compiler_pic_works_F77=yes
12671     fi
12672   fi
12673   $rm conftest*
12674
12675fi
12676echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12677echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12678
12679if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12680    case $lt_prog_compiler_pic_F77 in
12681     "" | " "*) ;;
12682     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12683     esac
12684else
12685    lt_prog_compiler_pic_F77=
12686     lt_prog_compiler_can_build_shared_F77=no
12687fi
12688
12689fi
12690case "$host_os" in
12691  # For platforms which do not support PIC, -DPIC is meaningless:
12692  *djgpp*)
12693    lt_prog_compiler_pic_F77=
12694    ;;
12695  *)
12696    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12697    ;;
12698esac
12699
12700echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12701echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12702if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12703  echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705  lt_cv_prog_compiler_c_o_F77=no
12706   $rm -r conftest 2>/dev/null
12707   mkdir conftest
12708   cd conftest
12709   mkdir out
12710   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12711
12712   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12713   # that will create temporary files in the current directory regardless of
12714   # the output directory.  Thus, making CWD read-only will cause this test
12715   # to fail, enabling locking or at least warning the user not to do parallel
12716   # builds.
12717   chmod -w .
12718
12719   lt_compiler_flag="-o out/conftest2.$ac_objext"
12720   # Insert the option either (1) after the last *FLAGS variable, or
12721   # (2) before a word containing "conftest.", or (3) at the end.
12722   # Note that $ac_compile itself does not contain backslashes and begins
12723   # with a dollar sign (not a hyphen), so the echo should work correctly.
12724   lt_compile=`echo "$ac_compile" | $SED \
12725   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727   -e 's:$: $lt_compiler_flag:'`
12728   (eval echo "\"\$as_me:12728: $lt_compile\"" >&5)
12729   (eval "$lt_compile" 2>out/conftest.err)
12730   ac_status=$?
12731   cat out/conftest.err >&5
12732   echo "$as_me:12732: \$? = $ac_status" >&5
12733   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12734   then
12735     # The compiler can only warn and ignore the option if not recognized
12736     # So say no if there are warnings
12737     if test ! -s out/conftest.err; then
12738       lt_cv_prog_compiler_c_o_F77=yes
12739     fi
12740   fi
12741   chmod u+w .
12742   $rm conftest* out/*
12743   rmdir out
12744   cd ..
12745   rmdir conftest
12746   $rm conftest*
12747
12748fi
12749echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12750echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12751
12752
12753hard_links="nottested"
12754if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12755  # do not overwrite the value of need_locks provided by the user
12756  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12757echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12758  hard_links=yes
12759  $rm conftest*
12760  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761  touch conftest.a
12762  ln conftest.a conftest.b 2>&5 || hard_links=no
12763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764  echo "$as_me:$LINENO: result: $hard_links" >&5
12765echo "${ECHO_T}$hard_links" >&6
12766  if test "$hard_links" = no; then
12767    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12768echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12769    need_locks=warn
12770  fi
12771else
12772  need_locks=no
12773fi
12774
12775echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12776echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12777
12778  runpath_var=
12779  allow_undefined_flag_F77=
12780  enable_shared_with_static_runtimes_F77=no
12781  archive_cmds_F77=
12782  archive_expsym_cmds_F77=
12783  old_archive_From_new_cmds_F77=
12784  old_archive_from_expsyms_cmds_F77=
12785  export_dynamic_flag_spec_F77=
12786  whole_archive_flag_spec_F77=
12787  thread_safe_flag_spec_F77=
12788  hardcode_libdir_flag_spec_F77=
12789  hardcode_libdir_flag_spec_ld_F77=
12790  hardcode_libdir_separator_F77=
12791  hardcode_direct_F77=no
12792  hardcode_minus_L_F77=no
12793  hardcode_shlibpath_var_F77=unsupported
12794  link_all_deplibs_F77=unknown
12795  hardcode_automatic_F77=no
12796  module_cmds_F77=
12797  module_expsym_cmds_F77=
12798  always_export_symbols_F77=no
12799  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12800  # include_expsyms should be a list of space-separated symbols to be *always*
12801  # included in the symbol list
12802  include_expsyms_F77=
12803  # exclude_expsyms can be an extended regexp of symbols to exclude
12804  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12805  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12806  # as well as any symbol that contains `d'.
12807  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12808  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12809  # platforms (ab)use it in PIC code, but their linkers get confused if
12810  # the symbol is explicitly referenced.  Since portable code cannot
12811  # rely on this symbol name, it's probably fine to never include it in
12812  # preloaded symbol tables.
12813  extract_expsyms_cmds=
12814
12815  case $host_os in
12816  cygwin* | mingw* | pw32*)
12817    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12818    # When not using gcc, we currently assume that we are using
12819    # Microsoft Visual C++.
12820    if test "$GCC" != yes; then
12821      with_gnu_ld=no
12822    fi
12823    ;;
12824  openbsd*)
12825    with_gnu_ld=no
12826    ;;
12827  esac
12828
12829  ld_shlibs_F77=yes
12830  if test "$with_gnu_ld" = yes; then
12831    # If archive_cmds runs LD, not CC, wlarc should be empty
12832    wlarc='${wl}'
12833
12834    # See if GNU ld supports shared libraries.
12835    case $host_os in
12836    aix3* | aix4* | aix5*)
12837      # On AIX/PPC, the GNU linker is very broken
12838      if test "$host_cpu" != ia64; then
12839	ld_shlibs_F77=no
12840	cat <<EOF 1>&2
12841
12842*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12843*** to be unable to reliably create shared libraries on AIX.
12844*** Therefore, libtool is disabling shared libraries support.  If you
12845*** really care for shared libraries, you may want to modify your PATH
12846*** so that a non-GNU linker is found, and then restart.
12847
12848EOF
12849      fi
12850      ;;
12851
12852    amigaos*)
12853      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)'
12854      hardcode_libdir_flag_spec_F77='-L$libdir'
12855      hardcode_minus_L_F77=yes
12856
12857      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12858      # that the semantics of dynamic libraries on AmigaOS, at least up
12859      # to version 4, is to share data among multiple programs linked
12860      # with the same dynamic library.  Since this doesn't match the
12861      # behavior of shared libraries on other platforms, we can't use
12862      # them.
12863      ld_shlibs_F77=no
12864      ;;
12865
12866    beos*)
12867      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12868	allow_undefined_flag_F77=unsupported
12869	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12870	# support --undefined.  This deserves some investigation.  FIXME
12871	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872      else
12873	ld_shlibs_F77=no
12874      fi
12875      ;;
12876
12877    cygwin* | mingw* | pw32*)
12878      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12879      # as there is no search path for DLLs.
12880      hardcode_libdir_flag_spec_F77='-L$libdir'
12881      allow_undefined_flag_F77=unsupported
12882      always_export_symbols_F77=no
12883      enable_shared_with_static_runtimes_F77=yes
12884      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12885
12886      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12887        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12888	# If the export-symbols file already is a .def file (1st line
12889	# is EXPORTS), use it as is; otherwise, prepend...
12890	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12891	  cp $export_symbols $output_objdir/$soname.def;
12892	else
12893	  echo EXPORTS > $output_objdir/$soname.def;
12894	  cat $export_symbols >> $output_objdir/$soname.def;
12895	fi~
12896	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12897      else
12898	ld_shlibs=no
12899      fi
12900      ;;
12901
12902    netbsd*)
12903      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12904	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12905	wlarc=
12906      else
12907	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12909      fi
12910      ;;
12911
12912    solaris* | sysv5*)
12913      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12914	ld_shlibs_F77=no
12915	cat <<EOF 1>&2
12916
12917*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12918*** create shared libraries on Solaris systems.  Therefore, libtool
12919*** is disabling shared libraries support.  We urge you to upgrade GNU
12920*** binutils to release 2.9.1 or newer.  Another option is to modify
12921*** your PATH or compiler configuration so that the native linker is
12922*** used, and then restart.
12923
12924EOF
12925      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12926	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928      else
12929	ld_shlibs_F77=no
12930      fi
12931      ;;
12932
12933    sunos4*)
12934      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12935      wlarc=
12936      hardcode_direct_F77=yes
12937      hardcode_shlibpath_var_F77=no
12938      ;;
12939
12940    *)
12941      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944      else
12945	ld_shlibs_F77=no
12946      fi
12947      ;;
12948    esac
12949
12950    if test "$ld_shlibs_F77" = yes; then
12951      runpath_var=LD_RUN_PATH
12952      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12953      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12954      # ancient GNU ld didn't support --whole-archive et. al.
12955      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12956 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957      else
12958  	whole_archive_flag_spec_F77=
12959      fi
12960    fi
12961  else
12962    # PORTME fill in a description of your system's linker (not GNU ld)
12963    case $host_os in
12964    aix3*)
12965      allow_undefined_flag_F77=unsupported
12966      always_export_symbols_F77=yes
12967      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'
12968      # Note: this linker hardcodes the directories in LIBPATH if there
12969      # are no directories specified by -L.
12970      hardcode_minus_L_F77=yes
12971      if test "$GCC" = yes && test -z "$link_static_flag"; then
12972	# Neither direct hardcoding nor static linking is supported with a
12973	# broken collect2.
12974	hardcode_direct_F77=unsupported
12975      fi
12976      ;;
12977
12978    aix4* | aix5*)
12979      if test "$host_cpu" = ia64; then
12980	# On IA64, the linker does run time linking by default, so we don't
12981	# have to do anything special.
12982	aix_use_runtimelinking=no
12983	exp_sym_flag='-Bexport'
12984	no_entry_flag=""
12985      else
12986	# If we're using GNU nm, then we don't want the "-C" option.
12987	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12988	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12989	  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'
12990	else
12991	  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'
12992	fi
12993	aix_use_runtimelinking=no
12994
12995	# Test if we are trying to use run time linking or normal
12996	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12997	# need to do runtime linking.
12998	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12999	  for ld_flag in $LDFLAGS; do
13000  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13001  	    aix_use_runtimelinking=yes
13002  	    break
13003  	  fi
13004	  done
13005	esac
13006
13007	exp_sym_flag='-bexport'
13008	no_entry_flag='-bnoentry'
13009      fi
13010
13011      # When large executables or shared objects are built, AIX ld can
13012      # have problems creating the table of contents.  If linking a library
13013      # or program results in "error TOC overflow" add -mminimal-toc to
13014      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13015      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13016
13017      archive_cmds_F77=''
13018      hardcode_direct_F77=yes
13019      hardcode_libdir_separator_F77=':'
13020      link_all_deplibs_F77=yes
13021
13022      if test "$GCC" = yes; then
13023	case $host_os in aix4.012|aix4.012.*)
13024	# We only want to do this on AIX 4.2 and lower, the check
13025	# below for broken collect2 doesn't work under 4.3+
13026	  collect2name=`${CC} -print-prog-name=collect2`
13027	  if test -f "$collect2name" && \
13028  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13029	  then
13030  	  # We have reworked collect2
13031  	  hardcode_direct_F77=yes
13032	  else
13033  	  # We have old collect2
13034  	  hardcode_direct_F77=unsupported
13035  	  # It fails to find uninstalled libraries when the uninstalled
13036  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13037  	  # to unsupported forces relinking
13038  	  hardcode_minus_L_F77=yes
13039  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13040  	  hardcode_libdir_separator_F77=
13041	  fi
13042	esac
13043	shared_flag='-shared'
13044      else
13045	# not using gcc
13046	if test "$host_cpu" = ia64; then
13047  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13048  	# chokes on -Wl,-G. The following line is correct:
13049	  shared_flag='-G'
13050	else
13051  	if test "$aix_use_runtimelinking" = yes; then
13052	    shared_flag='${wl}-G'
13053	  else
13054	    shared_flag='${wl}-bM:SRE'
13055  	fi
13056	fi
13057      fi
13058
13059      # It seems that -bexpall does not export symbols beginning with
13060      # underscore (_), so it is better to generate a list of symbols to export.
13061      always_export_symbols_F77=yes
13062      if test "$aix_use_runtimelinking" = yes; then
13063	# Warning - without using the other runtime loading flags (-brtl),
13064	# -berok will link without error, but may produce a broken library.
13065	allow_undefined_flag_F77='-berok'
13066       # Determine the default libpath from the value encoded in an empty executable.
13067       cat >conftest.$ac_ext <<_ACEOF
13068      program main
13069
13070      end
13071_ACEOF
13072rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074  (eval $ac_link) 2>&5
13075  ac_status=$?
13076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077  (exit $ac_status); } &&
13078         { ac_try='test -s conftest$ac_exeext'
13079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080  (eval $ac_try) 2>&5
13081  ac_status=$?
13082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083  (exit $ac_status); }; }; then
13084
13085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13086}'`
13087# Check for a 64-bit object if we didn't find anything.
13088if 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; }
13089}'`; fi
13090else
13091  echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094fi
13095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097
13098       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099	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"
13100       else
13101	if test "$host_cpu" = ia64; then
13102	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13103	  allow_undefined_flag_F77="-z nodefs"
13104	  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"
13105	else
13106	 # Determine the default libpath from the value encoded in an empty executable.
13107	 cat >conftest.$ac_ext <<_ACEOF
13108      program main
13109
13110      end
13111_ACEOF
13112rm -f conftest.$ac_objext conftest$ac_exeext
13113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114  (eval $ac_link) 2>&5
13115  ac_status=$?
13116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117  (exit $ac_status); } &&
13118         { ac_try='test -s conftest$ac_exeext'
13119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120  (eval $ac_try) 2>&5
13121  ac_status=$?
13122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123  (exit $ac_status); }; }; then
13124
13125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13126}'`
13127# Check for a 64-bit object if we didn't find anything.
13128if 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; }
13129}'`; fi
13130else
13131  echo "$as_me: failed program was:" >&5
13132sed 's/^/| /' conftest.$ac_ext >&5
13133
13134fi
13135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13137
13138	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13139	  # Warning - without using the other run time loading flags,
13140	  # -berok will link without error, but may produce a broken library.
13141	  no_undefined_flag_F77=' ${wl}-bernotok'
13142	  allow_undefined_flag_F77=' ${wl}-berok'
13143	  # -bexpall does not export symbols beginning with underscore (_)
13144	  always_export_symbols_F77=yes
13145	  # Exported symbols can be pulled into shared objects from archives
13146	  whole_archive_flag_spec_F77=' '
13147	  archive_cmds_need_lc_F77=yes
13148	  # This is similar to how AIX traditionally builds it's shared libraries.
13149	  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'
13150	fi
13151      fi
13152      ;;
13153
13154    amigaos*)
13155      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)'
13156      hardcode_libdir_flag_spec_F77='-L$libdir'
13157      hardcode_minus_L_F77=yes
13158      # see comment about different semantics on the GNU ld section
13159      ld_shlibs_F77=no
13160      ;;
13161
13162    bsdi4*)
13163      export_dynamic_flag_spec_F77=-rdynamic
13164      ;;
13165
13166    cygwin* | mingw* | pw32*)
13167      # When not using gcc, we currently assume that we are using
13168      # Microsoft Visual C++.
13169      # hardcode_libdir_flag_spec is actually meaningless, as there is
13170      # no search path for DLLs.
13171      hardcode_libdir_flag_spec_F77=' '
13172      allow_undefined_flag_F77=unsupported
13173      # Tell ltmain to make .lib files, not .a files.
13174      libext=lib
13175      # Tell ltmain to make .dll files, not .so files.
13176      shrext=".dll"
13177      # FIXME: Setting linknames here is a bad hack.
13178      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13179      # The linker will automatically build a .lib file if we build a DLL.
13180      old_archive_From_new_cmds_F77='true'
13181      # FIXME: Should let the user specify the lib program.
13182      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13183      fix_srcfile_path='`cygpath -w "$srcfile"`'
13184      enable_shared_with_static_runtimes_F77=yes
13185      ;;
13186
13187    darwin* | rhapsody*)
13188    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13189      archive_cmds_need_lc_F77=no
13190      case "$host_os" in
13191      rhapsody* | darwin1.[012])
13192	allow_undefined_flag_F77='-undefined suppress'
13193	;;
13194      *) # Darwin 1.3 on
13195	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13196	;;
13197      esac
13198      # FIXME: Relying on posixy $() will cause problems for
13199      #        cross-compilation, but unfortunately the echo tests do not
13200      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13201      #	       `"' quotes if we put them in here... so don't!
13202    	lt_int_apple_cc_single_mod=no
13203    	output_verbose_link_cmd='echo'
13204    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13205    	  lt_int_apple_cc_single_mod=yes
13206    	fi
13207    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13208    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13209    	else
13210        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'
13211      fi
13212      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13213      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13214        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215          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}'
13216        else
13217          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}'
13218        fi
13219          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}'
13220      hardcode_direct_F77=no
13221      hardcode_automatic_F77=yes
13222      hardcode_shlibpath_var_F77=unsupported
13223      whole_archive_flag_spec_F77='-all_load $convenience'
13224      link_all_deplibs_F77=yes
13225    fi
13226      ;;
13227
13228    dgux*)
13229      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230      hardcode_libdir_flag_spec_F77='-L$libdir'
13231      hardcode_shlibpath_var_F77=no
13232      ;;
13233
13234    freebsd1*)
13235      ld_shlibs_F77=no
13236      ;;
13237
13238    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13239    # support.  Future versions do this automatically, but an explicit c++rt0.o
13240    # does not break anything, and helps significantly (at the cost of a little
13241    # extra space).
13242    freebsd2.2*)
13243      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13244      hardcode_libdir_flag_spec_F77='-R$libdir'
13245      hardcode_direct_F77=yes
13246      hardcode_shlibpath_var_F77=no
13247      ;;
13248
13249    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13250    freebsd2*)
13251      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13252      hardcode_direct_F77=yes
13253      hardcode_minus_L_F77=yes
13254      hardcode_shlibpath_var_F77=no
13255      ;;
13256
13257    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13258    freebsd*)
13259      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13260      hardcode_libdir_flag_spec_F77='-R$libdir'
13261      hardcode_direct_F77=yes
13262      hardcode_shlibpath_var_F77=no
13263      ;;
13264
13265    hpux9*)
13266      if test "$GCC" = yes; then
13267	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'
13268      else
13269	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'
13270      fi
13271      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13272      hardcode_libdir_separator_F77=:
13273      hardcode_direct_F77=yes
13274
13275      # hardcode_minus_L: Not really in the search PATH,
13276      # but as the default location of the library.
13277      hardcode_minus_L_F77=yes
13278      export_dynamic_flag_spec_F77='${wl}-E'
13279      ;;
13280
13281    hpux10* | hpux11*)
13282      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13283	case "$host_cpu" in
13284	hppa*64*|ia64*)
13285	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286	  ;;
13287	*)
13288	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13289	  ;;
13290	esac
13291      else
13292	case "$host_cpu" in
13293	hppa*64*|ia64*)
13294	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13295	  ;;
13296	*)
13297	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13298	  ;;
13299	esac
13300      fi
13301      if test "$with_gnu_ld" = no; then
13302	case "$host_cpu" in
13303	hppa*64*)
13304	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13305	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13306	  hardcode_libdir_separator_F77=:
13307	  hardcode_direct_F77=no
13308	  hardcode_shlibpath_var_F77=no
13309	  ;;
13310	ia64*)
13311	  hardcode_libdir_flag_spec_F77='-L$libdir'
13312	  hardcode_direct_F77=no
13313	  hardcode_shlibpath_var_F77=no
13314
13315	  # hardcode_minus_L: Not really in the search PATH,
13316	  # but as the default location of the library.
13317	  hardcode_minus_L_F77=yes
13318	  ;;
13319	*)
13320	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13321	  hardcode_libdir_separator_F77=:
13322	  hardcode_direct_F77=yes
13323	  export_dynamic_flag_spec_F77='${wl}-E'
13324
13325	  # hardcode_minus_L: Not really in the search PATH,
13326	  # but as the default location of the library.
13327	  hardcode_minus_L_F77=yes
13328	  ;;
13329	esac
13330      fi
13331      ;;
13332
13333    irix5* | irix6* | nonstopux*)
13334      if test "$GCC" = yes; then
13335	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'
13336      else
13337	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'
13338	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13339      fi
13340      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13341      hardcode_libdir_separator_F77=:
13342      link_all_deplibs_F77=yes
13343      ;;
13344
13345    netbsd*)
13346      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13348      else
13349	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13350      fi
13351      hardcode_libdir_flag_spec_F77='-R$libdir'
13352      hardcode_direct_F77=yes
13353      hardcode_shlibpath_var_F77=no
13354      ;;
13355
13356    newsos6)
13357      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13358      hardcode_direct_F77=yes
13359      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13360      hardcode_libdir_separator_F77=:
13361      hardcode_shlibpath_var_F77=no
13362      ;;
13363
13364    openbsd*)
13365      hardcode_direct_F77=yes
13366      hardcode_shlibpath_var_F77=no
13367      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13368	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13369	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13370	export_dynamic_flag_spec_F77='${wl}-E'
13371      else
13372       case $host_os in
13373	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13374	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13375	   hardcode_libdir_flag_spec_F77='-R$libdir'
13376	   ;;
13377	 *)
13378	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13379	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13380	   ;;
13381       esac
13382      fi
13383      ;;
13384
13385    os2*)
13386      hardcode_libdir_flag_spec_F77='-L$libdir'
13387      hardcode_minus_L_F77=yes
13388      allow_undefined_flag_F77=unsupported
13389      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'
13390      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13391      ;;
13392
13393    osf3*)
13394      if test "$GCC" = yes; then
13395	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13396	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'
13397      else
13398	allow_undefined_flag_F77=' -expect_unresolved \*'
13399	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'
13400      fi
13401      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13402      hardcode_libdir_separator_F77=:
13403      ;;
13404
13405    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13406      if test "$GCC" = yes; then
13407	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13408	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'
13409	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410      else
13411	allow_undefined_flag_F77=' -expect_unresolved \*'
13412	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'
13413	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~
13414	$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'
13415
13416	# Both c and cxx compiler support -rpath directly
13417	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13418      fi
13419      hardcode_libdir_separator_F77=:
13420      ;;
13421
13422    sco3.2v5*)
13423      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424      hardcode_shlibpath_var_F77=no
13425      export_dynamic_flag_spec_F77='${wl}-Bexport'
13426      runpath_var=LD_RUN_PATH
13427      hardcode_runpath_var=yes
13428      ;;
13429
13430    solaris*)
13431      no_undefined_flag_F77=' -z text'
13432      if test "$GCC" = yes; then
13433	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13434	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13435	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13436      else
13437	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13440      fi
13441      hardcode_libdir_flag_spec_F77='-R$libdir'
13442      hardcode_shlibpath_var_F77=no
13443      case $host_os in
13444      solaris2.[0-5] | solaris2.[0-5].*) ;;
13445      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13446	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13447      esac
13448      link_all_deplibs_F77=yes
13449      ;;
13450
13451    sunos4*)
13452      if test "x$host_vendor" = xsequent; then
13453	# Use $CC to link under sequent, because it throws in some extra .o
13454	# files that make .init and .fini sections work.
13455	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13456      else
13457	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13458      fi
13459      hardcode_libdir_flag_spec_F77='-L$libdir'
13460      hardcode_direct_F77=yes
13461      hardcode_minus_L_F77=yes
13462      hardcode_shlibpath_var_F77=no
13463      ;;
13464
13465    sysv4)
13466      case $host_vendor in
13467	sni)
13468	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469	  hardcode_direct_F77=yes # is this really true???
13470	;;
13471	siemens)
13472	  ## LD is ld it makes a PLAMLIB
13473	  ## CC just makes a GrossModule.
13474	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13475	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13476	  hardcode_direct_F77=no
13477        ;;
13478	motorola)
13479	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13481	;;
13482      esac
13483      runpath_var='LD_RUN_PATH'
13484      hardcode_shlibpath_var_F77=no
13485      ;;
13486
13487    sysv4.3*)
13488      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489      hardcode_shlibpath_var_F77=no
13490      export_dynamic_flag_spec_F77='-Bexport'
13491      ;;
13492
13493    sysv4*MP*)
13494      if test -d /usr/nec; then
13495	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496	hardcode_shlibpath_var_F77=no
13497	runpath_var=LD_RUN_PATH
13498	hardcode_runpath_var=yes
13499	ld_shlibs_F77=yes
13500      fi
13501      ;;
13502
13503    sysv4.2uw2*)
13504      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13505      hardcode_direct_F77=yes
13506      hardcode_minus_L_F77=no
13507      hardcode_shlibpath_var_F77=no
13508      hardcode_runpath_var=yes
13509      runpath_var=LD_RUN_PATH
13510      ;;
13511
13512   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13513      no_undefined_flag_F77='${wl}-z ${wl}text'
13514      if test "$GCC" = yes; then
13515	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13516      else
13517	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13518      fi
13519      runpath_var='LD_RUN_PATH'
13520      hardcode_shlibpath_var_F77=no
13521      ;;
13522
13523    sysv5*)
13524      no_undefined_flag_F77=' -z text'
13525      # $CC -shared without GNU ld will not create a library from C++
13526      # object files and a static libstdc++, better avoid it by now
13527      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13529  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13530      hardcode_libdir_flag_spec_F77=
13531      hardcode_shlibpath_var_F77=no
13532      runpath_var='LD_RUN_PATH'
13533      ;;
13534
13535    uts4*)
13536      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537      hardcode_libdir_flag_spec_F77='-L$libdir'
13538      hardcode_shlibpath_var_F77=no
13539      ;;
13540
13541    *)
13542      ld_shlibs_F77=no
13543      ;;
13544    esac
13545  fi
13546
13547echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13548echo "${ECHO_T}$ld_shlibs_F77" >&6
13549test "$ld_shlibs_F77" = no && can_build_shared=no
13550
13551variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552if test "$GCC" = yes; then
13553  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13554fi
13555
13556#
13557# Do we need to explicitly link libc?
13558#
13559case "x$archive_cmds_need_lc_F77" in
13560x|xyes)
13561  # Assume -lc should be added
13562  archive_cmds_need_lc_F77=yes
13563
13564  if test "$enable_shared" = yes && test "$GCC" = yes; then
13565    case $archive_cmds_F77 in
13566    *'~'*)
13567      # FIXME: we may have to deal with multi-command sequences.
13568      ;;
13569    '$CC '*)
13570      # Test whether the compiler implicitly links with -lc since on some
13571      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13572      # to ld, don't add -lc before -lgcc.
13573      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13575      $rm conftest*
13576      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13577
13578      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579  (eval $ac_compile) 2>&5
13580  ac_status=$?
13581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582  (exit $ac_status); } 2>conftest.err; then
13583        soname=conftest
13584        lib=conftest
13585        libobjs=conftest.$ac_objext
13586        deplibs=
13587        wl=$lt_prog_compiler_wl_F77
13588        compiler_flags=-v
13589        linker_flags=-v
13590        verstring=
13591        output_objdir=.
13592        libname=conftest
13593        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13594        allow_undefined_flag_F77=
13595        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13596  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13597  ac_status=$?
13598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599  (exit $ac_status); }
13600        then
13601	  archive_cmds_need_lc_F77=no
13602        else
13603	  archive_cmds_need_lc_F77=yes
13604        fi
13605        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13606      else
13607        cat conftest.err 1>&5
13608      fi
13609      $rm conftest*
13610      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13611echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13612      ;;
13613    esac
13614  fi
13615  ;;
13616esac
13617
13618echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13619echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13620hardcode_action_F77=
13621if test -n "$hardcode_libdir_flag_spec_F77" || \
13622   test -n "$runpath_var F77" || \
13623   test "X$hardcode_automatic_F77"="Xyes" ; then
13624
13625  # We can hardcode non-existant directories.
13626  if test "$hardcode_direct_F77" != no &&
13627     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13628     # have to relink, otherwise we might link with an installed library
13629     # when we should be linking with a yet-to-be-installed one
13630     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13631     test "$hardcode_minus_L_F77" != no; then
13632    # Linking always hardcodes the temporary library directory.
13633    hardcode_action_F77=relink
13634  else
13635    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13636    hardcode_action_F77=immediate
13637  fi
13638else
13639  # We cannot hardcode anything, or else we can only hardcode existing
13640  # directories.
13641  hardcode_action_F77=unsupported
13642fi
13643echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13644echo "${ECHO_T}$hardcode_action_F77" >&6
13645
13646if test "$hardcode_action_F77" = relink; then
13647  # Fast installation is not supported
13648  enable_fast_install=no
13649elif test "$shlibpath_overrides_runpath" = yes ||
13650     test "$enable_shared" = no; then
13651  # Fast installation is not necessary
13652  enable_fast_install=needless
13653fi
13654
13655striplib=
13656old_striplib=
13657echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13658echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13659if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13660  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13661  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13662  echo "$as_me:$LINENO: result: yes" >&5
13663echo "${ECHO_T}yes" >&6
13664else
13665# FIXME - insert some real tests, host_os isn't really good enough
13666  case $host_os in
13667   darwin*)
13668       if test -n "$STRIP" ; then
13669         striplib="$STRIP -x"
13670         echo "$as_me:$LINENO: result: yes" >&5
13671echo "${ECHO_T}yes" >&6
13672       else
13673  echo "$as_me:$LINENO: result: no" >&5
13674echo "${ECHO_T}no" >&6
13675fi
13676       ;;
13677   *)
13678  echo "$as_me:$LINENO: result: no" >&5
13679echo "${ECHO_T}no" >&6
13680    ;;
13681  esac
13682fi
13683
13684echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13685echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13686library_names_spec=
13687libname_spec='lib$name'
13688soname_spec=
13689shrext=".so"
13690postinstall_cmds=
13691postuninstall_cmds=
13692finish_cmds=
13693finish_eval=
13694shlibpath_var=
13695shlibpath_overrides_runpath=unknown
13696version_type=none
13697dynamic_linker="$host_os ld.so"
13698sys_lib_dlsearch_path_spec="/lib /usr/lib"
13699if test "$GCC" = yes; then
13700  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13701  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13702    # if the path contains ";" then we assume it to be the separator
13703    # otherwise default to the standard path separator (i.e. ":") - it is
13704    # assumed that no part of a normal pathname contains ";" but that should
13705    # okay in the real world where ";" in dirpaths is itself problematic.
13706    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13707  else
13708    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13709  fi
13710else
13711  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13712fi
13713need_lib_prefix=unknown
13714hardcode_into_libs=no
13715
13716# when you set need_version to no, make sure it does not cause -set_version
13717# flags to be left without arguments
13718need_version=unknown
13719
13720case $host_os in
13721aix3*)
13722  version_type=linux
13723  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13724  shlibpath_var=LIBPATH
13725
13726  # AIX 3 has no versioning support, so we append a major version to the name.
13727  soname_spec='${libname}${release}${shared_ext}$major'
13728  ;;
13729
13730aix4* | aix5*)
13731  version_type=linux
13732  need_lib_prefix=no
13733  need_version=no
13734  hardcode_into_libs=yes
13735  if test "$host_cpu" = ia64; then
13736    # AIX 5 supports IA64
13737    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13738    shlibpath_var=LD_LIBRARY_PATH
13739  else
13740    # With GCC up to 2.95.x, collect2 would create an import file
13741    # for dependence libraries.  The import file would start with
13742    # the line `#! .'.  This would cause the generated library to
13743    # depend on `.', always an invalid library.  This was fixed in
13744    # development snapshots of GCC prior to 3.0.
13745    case $host_os in
13746      aix4 | aix4.[01] | aix4.[01].*)
13747      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13748	   echo ' yes '
13749	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13750	:
13751      else
13752	can_build_shared=no
13753      fi
13754      ;;
13755    esac
13756    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13757    # soname into executable. Probably we can add versioning support to
13758    # collect2, so additional links can be useful in future.
13759    if test "$aix_use_runtimelinking" = yes; then
13760      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13761      # instead of lib<name>.a to let people know that these are not
13762      # typical AIX shared libraries.
13763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764    else
13765      # We preserve .a as extension for shared libraries through AIX4.2
13766      # and later when we are not doing run time linking.
13767      library_names_spec='${libname}${release}.a $libname.a'
13768      soname_spec='${libname}${release}${shared_ext}$major'
13769    fi
13770    shlibpath_var=LIBPATH
13771  fi
13772  ;;
13773
13774amigaos*)
13775  library_names_spec='$libname.ixlibrary $libname.a'
13776  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13777  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'
13778  ;;
13779
13780beos*)
13781  library_names_spec='${libname}${shared_ext}'
13782  dynamic_linker="$host_os ld.so"
13783  shlibpath_var=LIBRARY_PATH
13784  ;;
13785
13786bsdi4*)
13787  version_type=linux
13788  need_version=no
13789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790  soname_spec='${libname}${release}${shared_ext}$major'
13791  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13792  shlibpath_var=LD_LIBRARY_PATH
13793  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13794  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13795  # the default ld.so.conf also contains /usr/contrib/lib and
13796  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13797  # libtool to hard-code these into programs
13798  ;;
13799
13800cygwin* | mingw* | pw32*)
13801  version_type=windows
13802  shrext=".dll"
13803  need_version=no
13804  need_lib_prefix=no
13805
13806  case $GCC,$host_os in
13807  yes,cygwin* | yes,mingw* | yes,pw32*)
13808    library_names_spec='$libname.dll.a'
13809    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13810    postinstall_cmds='base_file=`basename \${file}`~
13811      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13812      dldir=$destdir/`dirname \$dlpath`~
13813      test -d \$dldir || mkdir -p \$dldir~
13814      $install_prog $dir/$dlname \$dldir/$dlname'
13815    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13816      dlpath=$dir/\$dldll~
13817       $rm \$dlpath'
13818    shlibpath_overrides_runpath=yes
13819
13820    case $host_os in
13821    cygwin*)
13822      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13823      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13825      ;;
13826    mingw*)
13827      # MinGW DLLs use traditional 'lib' prefix
13828      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13830      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13831        # It is most probably a Windows format PATH printed by
13832        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13833        # path with ; separators, and with drive letters. We can handle the
13834        # drive letters (cygwin fileutils understands them), so leave them,
13835        # especially as we might pass files found there to a mingw objdump,
13836        # which wouldn't understand a cygwinified path. Ahh.
13837        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13838      else
13839        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13840      fi
13841      ;;
13842    pw32*)
13843      # pw32 DLLs use 'pw' prefix rather than 'lib'
13844      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13845      ;;
13846    esac
13847    ;;
13848
13849  *)
13850    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13851    ;;
13852  esac
13853  dynamic_linker='Win32 ld.exe'
13854  # FIXME: first we should search . and the directory the executable is in
13855  shlibpath_var=PATH
13856  ;;
13857
13858darwin* | rhapsody*)
13859  dynamic_linker="$host_os dyld"
13860  version_type=darwin
13861  need_lib_prefix=no
13862  need_version=no
13863  # FIXME: Relying on posixy $() will cause problems for
13864  #        cross-compilation, but unfortunately the echo tests do not
13865  #        yet detect zsh echo's removal of \ escapes.
13866  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13867  soname_spec='${libname}${release}${major}$shared_ext'
13868  shlibpath_overrides_runpath=yes
13869  shlibpath_var=DYLD_LIBRARY_PATH
13870  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13871  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13872  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13873  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"`
13874  fi
13875  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13876  ;;
13877
13878dgux*)
13879  version_type=linux
13880  need_lib_prefix=no
13881  need_version=no
13882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13883  soname_spec='${libname}${release}${shared_ext}$major'
13884  shlibpath_var=LD_LIBRARY_PATH
13885  ;;
13886
13887freebsd1*)
13888  dynamic_linker=no
13889  ;;
13890
13891freebsd*)
13892  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13893  version_type=freebsd-$objformat
13894  case $version_type in
13895    freebsd-elf*)
13896      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13897      need_version=no
13898      need_lib_prefix=no
13899      ;;
13900    freebsd-*)
13901      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13902      need_version=yes
13903      ;;
13904  esac
13905  shlibpath_var=LD_LIBRARY_PATH
13906  case $host_os in
13907  freebsd2*)
13908    shlibpath_overrides_runpath=yes
13909    ;;
13910  freebsd3.01* | freebsdelf3.01*)
13911    shlibpath_overrides_runpath=yes
13912    hardcode_into_libs=yes
13913    ;;
13914  *) # from 3.2 on
13915    shlibpath_overrides_runpath=no
13916    hardcode_into_libs=yes
13917    ;;
13918  esac
13919  ;;
13920
13921gnu*)
13922  version_type=linux
13923  need_lib_prefix=no
13924  need_version=no
13925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13926  soname_spec='${libname}${release}${shared_ext}$major'
13927  shlibpath_var=LD_LIBRARY_PATH
13928  hardcode_into_libs=yes
13929  ;;
13930
13931hpux9* | hpux10* | hpux11*)
13932  # Give a soname corresponding to the major version so that dld.sl refuses to
13933  # link against other versions.
13934  version_type=sunos
13935  need_lib_prefix=no
13936  need_version=no
13937  case "$host_cpu" in
13938  ia64*)
13939    shrext='.so'
13940    hardcode_into_libs=yes
13941    dynamic_linker="$host_os dld.so"
13942    shlibpath_var=LD_LIBRARY_PATH
13943    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945    soname_spec='${libname}${release}${shared_ext}$major'
13946    if test "X$HPUX_IA64_MODE" = X32; then
13947      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13948    else
13949      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13950    fi
13951    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13952    ;;
13953   hppa*64*)
13954     shrext='.sl'
13955     hardcode_into_libs=yes
13956     dynamic_linker="$host_os dld.sl"
13957     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13958     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960     soname_spec='${libname}${release}${shared_ext}$major'
13961     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963     ;;
13964   *)
13965    shrext='.sl'
13966    dynamic_linker="$host_os dld.sl"
13967    shlibpath_var=SHLIB_PATH
13968    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970    soname_spec='${libname}${release}${shared_ext}$major'
13971    ;;
13972  esac
13973  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13974  postinstall_cmds='chmod 555 $lib'
13975  ;;
13976
13977irix5* | irix6* | nonstopux*)
13978  case $host_os in
13979    nonstopux*) version_type=nonstopux ;;
13980    *)
13981	if test "$lt_cv_prog_gnu_ld" = yes; then
13982		version_type=linux
13983	else
13984		version_type=irix
13985	fi ;;
13986  esac
13987  need_lib_prefix=no
13988  need_version=no
13989  soname_spec='${libname}${release}${shared_ext}$major'
13990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991  case $host_os in
13992  irix5* | nonstopux*)
13993    libsuff= shlibsuff=
13994    ;;
13995  *)
13996    case $LD in # libtool.m4 will add one of these switches to LD
13997    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998      libsuff= shlibsuff= libmagic=32-bit;;
13999    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000      libsuff=32 shlibsuff=N32 libmagic=N32;;
14001    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003    *) libsuff= shlibsuff= libmagic=never-match;;
14004    esac
14005    ;;
14006  esac
14007  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008  shlibpath_overrides_runpath=no
14009  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011  hardcode_into_libs=yes
14012  ;;
14013
14014# No shared lib support for Linux oldld, aout, or coff.
14015linux*oldld* | linux*aout* | linux*coff*)
14016  dynamic_linker=no
14017  ;;
14018
14019# This must be Linux ELF.
14020linux*)
14021  version_type=linux
14022  need_lib_prefix=no
14023  need_version=no
14024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025  soname_spec='${libname}${release}${shared_ext}$major'
14026  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027  shlibpath_var=LD_LIBRARY_PATH
14028  shlibpath_overrides_runpath=no
14029  # This implies no fast_install, which is unacceptable.
14030  # Some rework will be needed to allow for fast_install
14031  # before this can be enabled.
14032  hardcode_into_libs=yes
14033
14034  # We used to test for /lib/ld.so.1 and disable shared libraries on
14035  # powerpc, because MkLinux only supported shared libraries with the
14036  # GNU dynamic linker.  Since this was broken with cross compilers,
14037  # most powerpc-linux boxes support dynamic linking these days and
14038  # people can always --disable-shared, the test was removed, and we
14039  # assume the GNU/Linux dynamic linker is in use.
14040  dynamic_linker='GNU/Linux ld.so'
14041  ;;
14042
14043netbsd*)
14044  version_type=sunos
14045  need_lib_prefix=no
14046  need_version=no
14047  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14048    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14049    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14050    dynamic_linker='NetBSD (a.out) ld.so'
14051  else
14052    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14053    soname_spec='${libname}${release}${shared_ext}$major'
14054    dynamic_linker='NetBSD ld.elf_so'
14055  fi
14056  shlibpath_var=LD_LIBRARY_PATH
14057  shlibpath_overrides_runpath=yes
14058  hardcode_into_libs=yes
14059  ;;
14060
14061newsos6)
14062  version_type=linux
14063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064  shlibpath_var=LD_LIBRARY_PATH
14065  shlibpath_overrides_runpath=yes
14066  ;;
14067
14068nto-qnx)
14069  version_type=linux
14070  need_lib_prefix=no
14071  need_version=no
14072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073  soname_spec='${libname}${release}${shared_ext}$major'
14074  shlibpath_var=LD_LIBRARY_PATH
14075  shlibpath_overrides_runpath=yes
14076  ;;
14077
14078openbsd*)
14079  version_type=sunos
14080  need_lib_prefix=no
14081  need_version=no
14082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14084  shlibpath_var=LD_LIBRARY_PATH
14085  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14086    case $host_os in
14087      openbsd2.[89] | openbsd2.[89].*)
14088	shlibpath_overrides_runpath=no
14089	;;
14090      *)
14091	shlibpath_overrides_runpath=yes
14092	;;
14093      esac
14094  else
14095    shlibpath_overrides_runpath=yes
14096  fi
14097  ;;
14098
14099os2*)
14100  libname_spec='$name'
14101  shrext=".dll"
14102  need_lib_prefix=no
14103  library_names_spec='$libname${shared_ext} $libname.a'
14104  dynamic_linker='OS/2 ld.exe'
14105  shlibpath_var=LIBPATH
14106  ;;
14107
14108osf3* | osf4* | osf5*)
14109  version_type=osf
14110  need_lib_prefix=no
14111  need_version=no
14112  soname_spec='${libname}${release}${shared_ext}$major'
14113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114  shlibpath_var=LD_LIBRARY_PATH
14115  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14116  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14117  ;;
14118
14119sco3.2v5*)
14120  version_type=osf
14121  soname_spec='${libname}${release}${shared_ext}$major'
14122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123  shlibpath_var=LD_LIBRARY_PATH
14124  ;;
14125
14126solaris*)
14127  version_type=linux
14128  need_lib_prefix=no
14129  need_version=no
14130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131  soname_spec='${libname}${release}${shared_ext}$major'
14132  shlibpath_var=LD_LIBRARY_PATH
14133  shlibpath_overrides_runpath=yes
14134  hardcode_into_libs=yes
14135  # ldd complains unless libraries are executable
14136  postinstall_cmds='chmod +x $lib'
14137  ;;
14138
14139sunos4*)
14140  version_type=sunos
14141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14142  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14143  shlibpath_var=LD_LIBRARY_PATH
14144  shlibpath_overrides_runpath=yes
14145  if test "$with_gnu_ld" = yes; then
14146    need_lib_prefix=no
14147  fi
14148  need_version=yes
14149  ;;
14150
14151sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14152  version_type=linux
14153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154  soname_spec='${libname}${release}${shared_ext}$major'
14155  shlibpath_var=LD_LIBRARY_PATH
14156  case $host_vendor in
14157    sni)
14158      shlibpath_overrides_runpath=no
14159      need_lib_prefix=no
14160      export_dynamic_flag_spec='${wl}-Blargedynsym'
14161      runpath_var=LD_RUN_PATH
14162      ;;
14163    siemens)
14164      need_lib_prefix=no
14165      ;;
14166    motorola)
14167      need_lib_prefix=no
14168      need_version=no
14169      shlibpath_overrides_runpath=no
14170      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14171      ;;
14172  esac
14173  ;;
14174
14175sysv4*MP*)
14176  if test -d /usr/nec ;then
14177    version_type=linux
14178    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14179    soname_spec='$libname${shared_ext}.$major'
14180    shlibpath_var=LD_LIBRARY_PATH
14181  fi
14182  ;;
14183
14184uts4*)
14185  version_type=linux
14186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187  soname_spec='${libname}${release}${shared_ext}$major'
14188  shlibpath_var=LD_LIBRARY_PATH
14189  ;;
14190
14191*)
14192  dynamic_linker=no
14193  ;;
14194esac
14195echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14196echo "${ECHO_T}$dynamic_linker" >&6
14197test "$dynamic_linker" = no && can_build_shared=no
14198
14199
14200# The else clause should only fire when bootstrapping the
14201# libtool distribution, otherwise you forgot to ship ltmain.sh
14202# with your package, and you will get complaints that there are
14203# no rules to generate ltmain.sh.
14204if test -f "$ltmain"; then
14205  # See if we are running on zsh, and set the options which allow our commands through
14206  # without removal of \ escapes.
14207  if test -n "${ZSH_VERSION+set}" ; then
14208    setopt NO_GLOB_SUBST
14209  fi
14210  # Now quote all the things that may contain metacharacters while being
14211  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14212  # variables and quote the copies for generation of the libtool script.
14213  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14214    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14215    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14216    deplibs_check_method reload_flag reload_cmds need_locks \
14217    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14218    lt_cv_sys_global_symbol_to_c_name_address \
14219    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14220    old_postinstall_cmds old_postuninstall_cmds \
14221    compiler_F77 \
14222    CC_F77 \
14223    LD_F77 \
14224    lt_prog_compiler_wl_F77 \
14225    lt_prog_compiler_pic_F77 \
14226    lt_prog_compiler_static_F77 \
14227    lt_prog_compiler_no_builtin_flag_F77 \
14228    export_dynamic_flag_spec_F77 \
14229    thread_safe_flag_spec_F77 \
14230    whole_archive_flag_spec_F77 \
14231    enable_shared_with_static_runtimes_F77 \
14232    old_archive_cmds_F77 \
14233    old_archive_from_new_cmds_F77 \
14234    predep_objects_F77 \
14235    postdep_objects_F77 \
14236    predeps_F77 \
14237    postdeps_F77 \
14238    compiler_lib_search_path_F77 \
14239    archive_cmds_F77 \
14240    archive_expsym_cmds_F77 \
14241    postinstall_cmds_F77 \
14242    postuninstall_cmds_F77 \
14243    old_archive_from_expsyms_cmds_F77 \
14244    allow_undefined_flag_F77 \
14245    no_undefined_flag_F77 \
14246    export_symbols_cmds_F77 \
14247    hardcode_libdir_flag_spec_F77 \
14248    hardcode_libdir_flag_spec_ld_F77 \
14249    hardcode_libdir_separator_F77 \
14250    hardcode_automatic_F77 \
14251    module_cmds_F77 \
14252    module_expsym_cmds_F77 \
14253    lt_cv_prog_compiler_c_o_F77 \
14254    exclude_expsyms_F77 \
14255    include_expsyms_F77; do
14256
14257    case $var in
14258    old_archive_cmds_F77 | \
14259    old_archive_from_new_cmds_F77 | \
14260    archive_cmds_F77 | \
14261    archive_expsym_cmds_F77 | \
14262    module_cmds_F77 | \
14263    module_expsym_cmds_F77 | \
14264    old_archive_from_expsyms_cmds_F77 | \
14265    export_symbols_cmds_F77 | \
14266    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14267    postinstall_cmds | postuninstall_cmds | \
14268    old_postinstall_cmds | old_postuninstall_cmds | \
14269    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14270      # Double-quote double-evaled strings.
14271      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14272      ;;
14273    *)
14274      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14275      ;;
14276    esac
14277  done
14278
14279  case $lt_echo in
14280  *'\$0 --fallback-echo"')
14281    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14282    ;;
14283  esac
14284
14285cfgfile="$ofile"
14286
14287  cat <<__EOF__ >> "$cfgfile"
14288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14289
14290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291
14292# Shell to use when invoking shell scripts.
14293SHELL=$lt_SHELL
14294
14295# Whether or not to build shared libraries.
14296build_libtool_libs=$enable_shared
14297
14298# Whether or not to build static libraries.
14299build_old_libs=$enable_static
14300
14301# Whether or not to add -lc for building shared libraries.
14302build_libtool_need_lc=$archive_cmds_need_lc_F77
14303
14304# Whether or not to disallow shared libs when runtime libs are static
14305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14306
14307# Whether or not to optimize for fast installation.
14308fast_install=$enable_fast_install
14309
14310# The host system.
14311host_alias=$host_alias
14312host=$host
14313
14314# An echo program that does not interpret backslashes.
14315echo=$lt_echo
14316
14317# The archiver.
14318AR=$lt_AR
14319AR_FLAGS=$lt_AR_FLAGS
14320
14321# A C compiler.
14322LTCC=$lt_LTCC
14323
14324# A language-specific compiler.
14325CC=$lt_compiler_F77
14326
14327# Is the compiler the GNU C compiler?
14328with_gcc=$GCC_F77
14329
14330# An ERE matcher.
14331EGREP=$lt_EGREP
14332
14333# The linker used to build libraries.
14334LD=$lt_LD_F77
14335
14336# Whether we need hard or soft links.
14337LN_S=$lt_LN_S
14338
14339# A BSD-compatible nm program.
14340NM=$lt_NM
14341
14342# A symbol stripping program
14343STRIP=$STRIP
14344
14345# Used to examine libraries when file_magic_cmd begins "file"
14346MAGIC_CMD=$MAGIC_CMD
14347
14348# Used on cygwin: DLL creation program.
14349DLLTOOL="$DLLTOOL"
14350
14351# Used on cygwin: object dumper.
14352OBJDUMP="$OBJDUMP"
14353
14354# Used on cygwin: assembler.
14355AS="$AS"
14356
14357# The name of the directory that contains temporary libtool files.
14358objdir=$objdir
14359
14360# How to create reloadable object files.
14361reload_flag=$lt_reload_flag
14362reload_cmds=$lt_reload_cmds
14363
14364# How to pass a linker flag through the compiler.
14365wl=$lt_lt_prog_compiler_wl_F77
14366
14367# Object file suffix (normally "o").
14368objext="$ac_objext"
14369
14370# Old archive suffix (normally "a").
14371libext="$libext"
14372
14373# Shared library suffix (normally ".so").
14374shrext='$shrext'
14375
14376# Executable file suffix (normally "").
14377exeext="$exeext"
14378
14379# Additional compiler flags for building library objects.
14380pic_flag=$lt_lt_prog_compiler_pic_F77
14381pic_mode=$pic_mode
14382
14383# What is the maximum length of a command?
14384max_cmd_len=$lt_cv_sys_max_cmd_len
14385
14386# Does compiler simultaneously support -c and -o options?
14387compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14388
14389# Must we lock files when doing compilation ?
14390need_locks=$lt_need_locks
14391
14392# Do we need the lib prefix for modules?
14393need_lib_prefix=$need_lib_prefix
14394
14395# Do we need a version for libraries?
14396need_version=$need_version
14397
14398# Whether dlopen is supported.
14399dlopen_support=$enable_dlopen
14400
14401# Whether dlopen of programs is supported.
14402dlopen_self=$enable_dlopen_self
14403
14404# Whether dlopen of statically linked programs is supported.
14405dlopen_self_static=$enable_dlopen_self_static
14406
14407# Compiler flag to prevent dynamic linking.
14408link_static_flag=$lt_lt_prog_compiler_static_F77
14409
14410# Compiler flag to turn off builtin functions.
14411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14412
14413# Compiler flag to allow reflexive dlopens.
14414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14415
14416# Compiler flag to generate shared objects directly from archives.
14417whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14418
14419# Compiler flag to generate thread-safe objects.
14420thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14421
14422# Library versioning type.
14423version_type=$version_type
14424
14425# Format of library name prefix.
14426libname_spec=$lt_libname_spec
14427
14428# List of archive names.  First name is the real one, the rest are links.
14429# The last name is the one that the linker finds with -lNAME.
14430library_names_spec=$lt_library_names_spec
14431
14432# The coded name of the library, if different from the real name.
14433soname_spec=$lt_soname_spec
14434
14435# Commands used to build and install an old-style archive.
14436RANLIB=$lt_RANLIB
14437old_archive_cmds=$lt_old_archive_cmds_F77
14438old_postinstall_cmds=$lt_old_postinstall_cmds
14439old_postuninstall_cmds=$lt_old_postuninstall_cmds
14440
14441# Create an old-style archive from a shared archive.
14442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14443
14444# Create a temporary old-style archive to link instead of a shared archive.
14445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14446
14447# Commands used to build and install a shared archive.
14448archive_cmds=$lt_archive_cmds_F77
14449archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14450postinstall_cmds=$lt_postinstall_cmds
14451postuninstall_cmds=$lt_postuninstall_cmds
14452
14453# Commands used to build a loadable module (assumed same as above if empty)
14454module_cmds=$lt_module_cmds_F77
14455module_expsym_cmds=$lt_module_expsym_cmds_F77
14456
14457# Commands to strip libraries.
14458old_striplib=$lt_old_striplib
14459striplib=$lt_striplib
14460
14461# Dependencies to place before the objects being linked to create a
14462# shared library.
14463predep_objects=$lt_predep_objects_F77
14464
14465# Dependencies to place after the objects being linked to create a
14466# shared library.
14467postdep_objects=$lt_postdep_objects_F77
14468
14469# Dependencies to place before the objects being linked to create a
14470# shared library.
14471predeps=$lt_predeps_F77
14472
14473# Dependencies to place after the objects being linked to create a
14474# shared library.
14475postdeps=$lt_postdeps_F77
14476
14477# The library search path used internally by the compiler when linking
14478# a shared library.
14479compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14480
14481# Method to check whether dependent libraries are shared objects.
14482deplibs_check_method=$lt_deplibs_check_method
14483
14484# Command to use when deplibs_check_method == file_magic.
14485file_magic_cmd=$lt_file_magic_cmd
14486
14487# Flag that allows shared libraries with undefined symbols to be built.
14488allow_undefined_flag=$lt_allow_undefined_flag_F77
14489
14490# Flag that forces no undefined symbols.
14491no_undefined_flag=$lt_no_undefined_flag_F77
14492
14493# Commands used to finish a libtool library installation in a directory.
14494finish_cmds=$lt_finish_cmds
14495
14496# Same as above, but a single script fragment to be evaled but not shown.
14497finish_eval=$lt_finish_eval
14498
14499# Take the output of nm and produce a listing of raw symbols and C names.
14500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14501
14502# Transform the output of nm in a proper C declaration
14503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14504
14505# Transform the output of nm in a C name address pair
14506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14507
14508# This is the shared library runtime path variable.
14509runpath_var=$runpath_var
14510
14511# This is the shared library path variable.
14512shlibpath_var=$shlibpath_var
14513
14514# Is shlibpath searched before the hard-coded library search path?
14515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14516
14517# How to hardcode a shared library path into an executable.
14518hardcode_action=$hardcode_action_F77
14519
14520# Whether we should hardcode library paths into libraries.
14521hardcode_into_libs=$hardcode_into_libs
14522
14523# Flag to hardcode \$libdir into a binary during linking.
14524# This must work even if \$libdir does not exist.
14525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14526
14527# If ld is used when linking, flag to hardcode \$libdir into
14528# a binary during linking. This must work even if \$libdir does
14529# not exist.
14530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14531
14532# Whether we need a single -rpath flag with a separated argument.
14533hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14534
14535# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14536# resulting binary.
14537hardcode_direct=$hardcode_direct_F77
14538
14539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14540# resulting binary.
14541hardcode_minus_L=$hardcode_minus_L_F77
14542
14543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14544# the resulting binary.
14545hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14546
14547# Set to yes if building a shared library automatically hardcodes DIR into the library
14548# and all subsequent libraries and executables linked against it.
14549hardcode_automatic=$hardcode_automatic_F77
14550
14551# Variables whose values should be saved in libtool wrapper scripts and
14552# restored at relink time.
14553variables_saved_for_relink="$variables_saved_for_relink"
14554
14555# Whether libtool must link a program against all its dependency libraries.
14556link_all_deplibs=$link_all_deplibs_F77
14557
14558# Compile-time system search path for libraries
14559sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14560
14561# Run-time system search path for libraries
14562sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14563
14564# Fix the shell variable \$srcfile for the compiler.
14565fix_srcfile_path="$fix_srcfile_path_F77"
14566
14567# Set to yes if exported symbols are required.
14568always_export_symbols=$always_export_symbols_F77
14569
14570# The commands to list exported symbols.
14571export_symbols_cmds=$lt_export_symbols_cmds_F77
14572
14573# The commands to extract the exported symbol list from a shared archive.
14574extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575
14576# Symbols that should not be listed in the preloaded symbols.
14577exclude_expsyms=$lt_exclude_expsyms_F77
14578
14579# Symbols that must always be exported.
14580include_expsyms=$lt_include_expsyms_F77
14581
14582# ### END LIBTOOL TAG CONFIG: $tagname
14583
14584__EOF__
14585
14586
14587else
14588  # If there is no Makefile yet, we rely on a make rule to execute
14589  # `config.status --recheck' to rerun these tests and create the
14590  # libtool script then.
14591  test -f Makefile && make "$ltmain"
14592fi
14593
14594
14595ac_ext=c
14596ac_cpp='$CPP $CPPFLAGS'
14597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600
14601CC="$lt_save_CC"
14602
14603	else
14604	  tagname=""
14605	fi
14606	;;
14607
14608      GCJ)
14609	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14610
14611
14612
14613# Source file extension for Java test sources.
14614ac_ext=java
14615
14616# Object file extension for compiled Java test sources.
14617objext=o
14618objext_GCJ=$objext
14619
14620# Code to be used in simple compile tests
14621lt_simple_compile_test_code="class foo {}\n"
14622
14623# Code to be used in simple link tests
14624lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14625
14626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14627
14628# If no C compiler was specified, use CC.
14629LTCC=${LTCC-"$CC"}
14630
14631# Allow CC to be a program name with arguments.
14632compiler=$CC
14633
14634
14635# Allow CC to be a program name with arguments.
14636lt_save_CC="$CC"
14637CC=${GCJ-"gcj"}
14638compiler=$CC
14639compiler_GCJ=$CC
14640
14641# GCJ did not exist at the time GCC didn't implicitly link libc in.
14642archive_cmds_need_lc_GCJ=no
14643
14644
14645lt_prog_compiler_no_builtin_flag_GCJ=
14646
14647if test "$GCC" = yes; then
14648  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14649
14650  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14651echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14652if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14653  echo $ECHO_N "(cached) $ECHO_C" >&6
14654else
14655  lt_cv_prog_compiler_rtti_exceptions=no
14656  ac_outfile=conftest.$ac_objext
14657   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14658   lt_compiler_flag="-fno-rtti -fno-exceptions"
14659   # Insert the option either (1) after the last *FLAGS variable, or
14660   # (2) before a word containing "conftest.", or (3) at the end.
14661   # Note that $ac_compile itself does not contain backslashes and begins
14662   # with a dollar sign (not a hyphen), so the echo should work correctly.
14663   # The option is referenced via a variable to avoid confusing sed.
14664   lt_compile=`echo "$ac_compile" | $SED \
14665   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667   -e 's:$: $lt_compiler_flag:'`
14668   (eval echo "\"\$as_me:14668: $lt_compile\"" >&5)
14669   (eval "$lt_compile" 2>conftest.err)
14670   ac_status=$?
14671   cat conftest.err >&5
14672   echo "$as_me:14672: \$? = $ac_status" >&5
14673   if (exit $ac_status) && test -s "$ac_outfile"; then
14674     # The compiler can only warn and ignore the option if not recognized
14675     # So say no if there are warnings
14676     if test ! -s conftest.err; then
14677       lt_cv_prog_compiler_rtti_exceptions=yes
14678     fi
14679   fi
14680   $rm conftest*
14681
14682fi
14683echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14684echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14685
14686if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14687    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14688else
14689    :
14690fi
14691
14692fi
14693
14694lt_prog_compiler_wl_GCJ=
14695lt_prog_compiler_pic_GCJ=
14696lt_prog_compiler_static_GCJ=
14697
14698echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14699echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14700
14701  if test "$GCC" = yes; then
14702    lt_prog_compiler_wl_GCJ='-Wl,'
14703    lt_prog_compiler_static_GCJ='-static'
14704
14705    case $host_os in
14706      aix*)
14707      # All AIX code is PIC.
14708      if test "$host_cpu" = ia64; then
14709	# AIX 5 now supports IA64 processor
14710	lt_prog_compiler_static_GCJ='-Bstatic'
14711      fi
14712      ;;
14713
14714    amigaos*)
14715      # FIXME: we need at least 68020 code to build shared libraries, but
14716      # adding the `-m68020' flag to GCC prevents building anything better,
14717      # like `-m68040'.
14718      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14719      ;;
14720
14721    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14722      # PIC is the default for these OSes.
14723      ;;
14724
14725    mingw* | pw32* | os2*)
14726      # This hack is so that the source file can tell whether it is being
14727      # built for inclusion in a dll (and should export symbols for example).
14728      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14729      ;;
14730
14731    darwin* | rhapsody*)
14732      # PIC is the default on this platform
14733      # Common symbols not allowed in MH_DYLIB files
14734      lt_prog_compiler_pic_GCJ='-fno-common'
14735      ;;
14736
14737    msdosdjgpp*)
14738      # Just because we use GCC doesn't mean we suddenly get shared libraries
14739      # on systems that don't support them.
14740      lt_prog_compiler_can_build_shared_GCJ=no
14741      enable_shared=no
14742      ;;
14743
14744    sysv4*MP*)
14745      if test -d /usr/nec; then
14746	lt_prog_compiler_pic_GCJ=-Kconform_pic
14747      fi
14748      ;;
14749
14750    hpux*)
14751      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14752      # not for PA HP-UX.
14753      case "$host_cpu" in
14754      hppa*64*|ia64*)
14755	# +Z the default
14756	;;
14757      *)
14758	lt_prog_compiler_pic_GCJ='-fPIC'
14759	;;
14760      esac
14761      ;;
14762
14763    *)
14764      lt_prog_compiler_pic_GCJ='-fPIC'
14765      ;;
14766    esac
14767  else
14768    # PORTME Check for flag to pass linker flags through the system compiler.
14769    case $host_os in
14770    aix*)
14771      lt_prog_compiler_wl_GCJ='-Wl,'
14772      if test "$host_cpu" = ia64; then
14773	# AIX 5 now supports IA64 processor
14774	lt_prog_compiler_static_GCJ='-Bstatic'
14775      else
14776	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14777      fi
14778      ;;
14779
14780    mingw* | pw32* | os2*)
14781      # This hack is so that the source file can tell whether it is being
14782      # built for inclusion in a dll (and should export symbols for example).
14783      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14784      ;;
14785
14786    hpux9* | hpux10* | hpux11*)
14787      lt_prog_compiler_wl_GCJ='-Wl,'
14788      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14789      # not for PA HP-UX.
14790      case "$host_cpu" in
14791      hppa*64*|ia64*)
14792	# +Z the default
14793	;;
14794      *)
14795	lt_prog_compiler_pic_GCJ='+Z'
14796	;;
14797      esac
14798      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14799      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14800      ;;
14801
14802    irix5* | irix6* | nonstopux*)
14803      lt_prog_compiler_wl_GCJ='-Wl,'
14804      # PIC (with -KPIC) is the default.
14805      lt_prog_compiler_static_GCJ='-non_shared'
14806      ;;
14807
14808    newsos6)
14809      lt_prog_compiler_pic_GCJ='-KPIC'
14810      lt_prog_compiler_static_GCJ='-Bstatic'
14811      ;;
14812
14813    linux*)
14814      case $CC in
14815      icc|ecc)
14816	lt_prog_compiler_wl_GCJ='-Wl,'
14817	lt_prog_compiler_pic_GCJ='-KPIC'
14818	lt_prog_compiler_static_GCJ='-static'
14819        ;;
14820      ccc)
14821        lt_prog_compiler_wl_GCJ='-Wl,'
14822        # All Alpha code is PIC.
14823        lt_prog_compiler_static_GCJ='-non_shared'
14824        ;;
14825      esac
14826      ;;
14827
14828    osf3* | osf4* | osf5*)
14829      lt_prog_compiler_wl_GCJ='-Wl,'
14830      # All OSF/1 code is PIC.
14831      lt_prog_compiler_static_GCJ='-non_shared'
14832      ;;
14833
14834    sco3.2v5*)
14835      lt_prog_compiler_pic_GCJ='-Kpic'
14836      lt_prog_compiler_static_GCJ='-dn'
14837      ;;
14838
14839    solaris*)
14840      lt_prog_compiler_wl_GCJ='-Wl,'
14841      lt_prog_compiler_pic_GCJ='-KPIC'
14842      lt_prog_compiler_static_GCJ='-Bstatic'
14843      ;;
14844
14845    sunos4*)
14846      lt_prog_compiler_wl_GCJ='-Qoption ld '
14847      lt_prog_compiler_pic_GCJ='-PIC'
14848      lt_prog_compiler_static_GCJ='-Bstatic'
14849      ;;
14850
14851    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14852      lt_prog_compiler_wl_GCJ='-Wl,'
14853      lt_prog_compiler_pic_GCJ='-KPIC'
14854      lt_prog_compiler_static_GCJ='-Bstatic'
14855      ;;
14856
14857    sysv4*MP*)
14858      if test -d /usr/nec ;then
14859	lt_prog_compiler_pic_GCJ='-Kconform_pic'
14860	lt_prog_compiler_static_GCJ='-Bstatic'
14861      fi
14862      ;;
14863
14864    uts4*)
14865      lt_prog_compiler_pic_GCJ='-pic'
14866      lt_prog_compiler_static_GCJ='-Bstatic'
14867      ;;
14868
14869    *)
14870      lt_prog_compiler_can_build_shared_GCJ=no
14871      ;;
14872    esac
14873  fi
14874
14875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14876echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14877
14878#
14879# Check to make sure the PIC flag actually works.
14880#
14881if test -n "$lt_prog_compiler_pic_GCJ"; then
14882  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14883echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14884if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14885  echo $ECHO_N "(cached) $ECHO_C" >&6
14886else
14887  lt_prog_compiler_pic_works_GCJ=no
14888  ac_outfile=conftest.$ac_objext
14889   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14890   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14891   # Insert the option either (1) after the last *FLAGS variable, or
14892   # (2) before a word containing "conftest.", or (3) at the end.
14893   # Note that $ac_compile itself does not contain backslashes and begins
14894   # with a dollar sign (not a hyphen), so the echo should work correctly.
14895   # The option is referenced via a variable to avoid confusing sed.
14896   lt_compile=`echo "$ac_compile" | $SED \
14897   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899   -e 's:$: $lt_compiler_flag:'`
14900   (eval echo "\"\$as_me:14900: $lt_compile\"" >&5)
14901   (eval "$lt_compile" 2>conftest.err)
14902   ac_status=$?
14903   cat conftest.err >&5
14904   echo "$as_me:14904: \$? = $ac_status" >&5
14905   if (exit $ac_status) && test -s "$ac_outfile"; then
14906     # The compiler can only warn and ignore the option if not recognized
14907     # So say no if there are warnings
14908     if test ! -s conftest.err; then
14909       lt_prog_compiler_pic_works_GCJ=yes
14910     fi
14911   fi
14912   $rm conftest*
14913
14914fi
14915echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14916echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14917
14918if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14919    case $lt_prog_compiler_pic_GCJ in
14920     "" | " "*) ;;
14921     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14922     esac
14923else
14924    lt_prog_compiler_pic_GCJ=
14925     lt_prog_compiler_can_build_shared_GCJ=no
14926fi
14927
14928fi
14929case "$host_os" in
14930  # For platforms which do not support PIC, -DPIC is meaningless:
14931  *djgpp*)
14932    lt_prog_compiler_pic_GCJ=
14933    ;;
14934  *)
14935    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14936    ;;
14937esac
14938
14939echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14940echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14941if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14942  echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944  lt_cv_prog_compiler_c_o_GCJ=no
14945   $rm -r conftest 2>/dev/null
14946   mkdir conftest
14947   cd conftest
14948   mkdir out
14949   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950
14951   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14952   # that will create temporary files in the current directory regardless of
14953   # the output directory.  Thus, making CWD read-only will cause this test
14954   # to fail, enabling locking or at least warning the user not to do parallel
14955   # builds.
14956   chmod -w .
14957
14958   lt_compiler_flag="-o out/conftest2.$ac_objext"
14959   # Insert the option either (1) after the last *FLAGS variable, or
14960   # (2) before a word containing "conftest.", or (3) at the end.
14961   # Note that $ac_compile itself does not contain backslashes and begins
14962   # with a dollar sign (not a hyphen), so the echo should work correctly.
14963   lt_compile=`echo "$ac_compile" | $SED \
14964   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966   -e 's:$: $lt_compiler_flag:'`
14967   (eval echo "\"\$as_me:14967: $lt_compile\"" >&5)
14968   (eval "$lt_compile" 2>out/conftest.err)
14969   ac_status=$?
14970   cat out/conftest.err >&5
14971   echo "$as_me:14971: \$? = $ac_status" >&5
14972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973   then
14974     # The compiler can only warn and ignore the option if not recognized
14975     # So say no if there are warnings
14976     if test ! -s out/conftest.err; then
14977       lt_cv_prog_compiler_c_o_GCJ=yes
14978     fi
14979   fi
14980   chmod u+w .
14981   $rm conftest* out/*
14982   rmdir out
14983   cd ..
14984   rmdir conftest
14985   $rm conftest*
14986
14987fi
14988echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14989echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14990
14991
14992hard_links="nottested"
14993if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14994  # do not overwrite the value of need_locks provided by the user
14995  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14996echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14997  hard_links=yes
14998  $rm conftest*
14999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000  touch conftest.a
15001  ln conftest.a conftest.b 2>&5 || hard_links=no
15002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003  echo "$as_me:$LINENO: result: $hard_links" >&5
15004echo "${ECHO_T}$hard_links" >&6
15005  if test "$hard_links" = no; then
15006    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15007echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15008    need_locks=warn
15009  fi
15010else
15011  need_locks=no
15012fi
15013
15014echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15015echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15016
15017  runpath_var=
15018  allow_undefined_flag_GCJ=
15019  enable_shared_with_static_runtimes_GCJ=no
15020  archive_cmds_GCJ=
15021  archive_expsym_cmds_GCJ=
15022  old_archive_From_new_cmds_GCJ=
15023  old_archive_from_expsyms_cmds_GCJ=
15024  export_dynamic_flag_spec_GCJ=
15025  whole_archive_flag_spec_GCJ=
15026  thread_safe_flag_spec_GCJ=
15027  hardcode_libdir_flag_spec_GCJ=
15028  hardcode_libdir_flag_spec_ld_GCJ=
15029  hardcode_libdir_separator_GCJ=
15030  hardcode_direct_GCJ=no
15031  hardcode_minus_L_GCJ=no
15032  hardcode_shlibpath_var_GCJ=unsupported
15033  link_all_deplibs_GCJ=unknown
15034  hardcode_automatic_GCJ=no
15035  module_cmds_GCJ=
15036  module_expsym_cmds_GCJ=
15037  always_export_symbols_GCJ=no
15038  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15039  # include_expsyms should be a list of space-separated symbols to be *always*
15040  # included in the symbol list
15041  include_expsyms_GCJ=
15042  # exclude_expsyms can be an extended regexp of symbols to exclude
15043  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15044  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15045  # as well as any symbol that contains `d'.
15046  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15047  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15048  # platforms (ab)use it in PIC code, but their linkers get confused if
15049  # the symbol is explicitly referenced.  Since portable code cannot
15050  # rely on this symbol name, it's probably fine to never include it in
15051  # preloaded symbol tables.
15052  extract_expsyms_cmds=
15053
15054  case $host_os in
15055  cygwin* | mingw* | pw32*)
15056    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15057    # When not using gcc, we currently assume that we are using
15058    # Microsoft Visual C++.
15059    if test "$GCC" != yes; then
15060      with_gnu_ld=no
15061    fi
15062    ;;
15063  openbsd*)
15064    with_gnu_ld=no
15065    ;;
15066  esac
15067
15068  ld_shlibs_GCJ=yes
15069  if test "$with_gnu_ld" = yes; then
15070    # If archive_cmds runs LD, not CC, wlarc should be empty
15071    wlarc='${wl}'
15072
15073    # See if GNU ld supports shared libraries.
15074    case $host_os in
15075    aix3* | aix4* | aix5*)
15076      # On AIX/PPC, the GNU linker is very broken
15077      if test "$host_cpu" != ia64; then
15078	ld_shlibs_GCJ=no
15079	cat <<EOF 1>&2
15080
15081*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15082*** to be unable to reliably create shared libraries on AIX.
15083*** Therefore, libtool is disabling shared libraries support.  If you
15084*** really care for shared libraries, you may want to modify your PATH
15085*** so that a non-GNU linker is found, and then restart.
15086
15087EOF
15088      fi
15089      ;;
15090
15091    amigaos*)
15092      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)'
15093      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15094      hardcode_minus_L_GCJ=yes
15095
15096      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15097      # that the semantics of dynamic libraries on AmigaOS, at least up
15098      # to version 4, is to share data among multiple programs linked
15099      # with the same dynamic library.  Since this doesn't match the
15100      # behavior of shared libraries on other platforms, we can't use
15101      # them.
15102      ld_shlibs_GCJ=no
15103      ;;
15104
15105    beos*)
15106      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107	allow_undefined_flag_GCJ=unsupported
15108	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15109	# support --undefined.  This deserves some investigation.  FIXME
15110	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111      else
15112	ld_shlibs_GCJ=no
15113      fi
15114      ;;
15115
15116    cygwin* | mingw* | pw32*)
15117      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15118      # as there is no search path for DLLs.
15119      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15120      allow_undefined_flag_GCJ=unsupported
15121      always_export_symbols_GCJ=no
15122      enable_shared_with_static_runtimes_GCJ=yes
15123      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15124
15125      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15126        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15127	# If the export-symbols file already is a .def file (1st line
15128	# is EXPORTS), use it as is; otherwise, prepend...
15129	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15130	  cp $export_symbols $output_objdir/$soname.def;
15131	else
15132	  echo EXPORTS > $output_objdir/$soname.def;
15133	  cat $export_symbols >> $output_objdir/$soname.def;
15134	fi~
15135	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15136      else
15137	ld_shlibs=no
15138      fi
15139      ;;
15140
15141    netbsd*)
15142      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15143	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15144	wlarc=
15145      else
15146	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15148      fi
15149      ;;
15150
15151    solaris* | sysv5*)
15152      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15153	ld_shlibs_GCJ=no
15154	cat <<EOF 1>&2
15155
15156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15157*** create shared libraries on Solaris systems.  Therefore, libtool
15158*** is disabling shared libraries support.  We urge you to upgrade GNU
15159*** binutils to release 2.9.1 or newer.  Another option is to modify
15160*** your PATH or compiler configuration so that the native linker is
15161*** used, and then restart.
15162
15163EOF
15164      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15166	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167      else
15168	ld_shlibs_GCJ=no
15169      fi
15170      ;;
15171
15172    sunos4*)
15173      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174      wlarc=
15175      hardcode_direct_GCJ=yes
15176      hardcode_shlibpath_var_GCJ=no
15177      ;;
15178
15179    *)
15180      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183      else
15184	ld_shlibs_GCJ=no
15185      fi
15186      ;;
15187    esac
15188
15189    if test "$ld_shlibs_GCJ" = yes; then
15190      runpath_var=LD_RUN_PATH
15191      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15192      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15193      # ancient GNU ld didn't support --whole-archive et. al.
15194      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15195 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15196      else
15197  	whole_archive_flag_spec_GCJ=
15198      fi
15199    fi
15200  else
15201    # PORTME fill in a description of your system's linker (not GNU ld)
15202    case $host_os in
15203    aix3*)
15204      allow_undefined_flag_GCJ=unsupported
15205      always_export_symbols_GCJ=yes
15206      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'
15207      # Note: this linker hardcodes the directories in LIBPATH if there
15208      # are no directories specified by -L.
15209      hardcode_minus_L_GCJ=yes
15210      if test "$GCC" = yes && test -z "$link_static_flag"; then
15211	# Neither direct hardcoding nor static linking is supported with a
15212	# broken collect2.
15213	hardcode_direct_GCJ=unsupported
15214      fi
15215      ;;
15216
15217    aix4* | aix5*)
15218      if test "$host_cpu" = ia64; then
15219	# On IA64, the linker does run time linking by default, so we don't
15220	# have to do anything special.
15221	aix_use_runtimelinking=no
15222	exp_sym_flag='-Bexport'
15223	no_entry_flag=""
15224      else
15225	# If we're using GNU nm, then we don't want the "-C" option.
15226	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15227	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15228	  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'
15229	else
15230	  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'
15231	fi
15232	aix_use_runtimelinking=no
15233
15234	# Test if we are trying to use run time linking or normal
15235	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236	# need to do runtime linking.
15237	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15238	  for ld_flag in $LDFLAGS; do
15239  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240  	    aix_use_runtimelinking=yes
15241  	    break
15242  	  fi
15243	  done
15244	esac
15245
15246	exp_sym_flag='-bexport'
15247	no_entry_flag='-bnoentry'
15248      fi
15249
15250      # When large executables or shared objects are built, AIX ld can
15251      # have problems creating the table of contents.  If linking a library
15252      # or program results in "error TOC overflow" add -mminimal-toc to
15253      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15254      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255
15256      archive_cmds_GCJ=''
15257      hardcode_direct_GCJ=yes
15258      hardcode_libdir_separator_GCJ=':'
15259      link_all_deplibs_GCJ=yes
15260
15261      if test "$GCC" = yes; then
15262	case $host_os in aix4.012|aix4.012.*)
15263	# We only want to do this on AIX 4.2 and lower, the check
15264	# below for broken collect2 doesn't work under 4.3+
15265	  collect2name=`${CC} -print-prog-name=collect2`
15266	  if test -f "$collect2name" && \
15267  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15268	  then
15269  	  # We have reworked collect2
15270  	  hardcode_direct_GCJ=yes
15271	  else
15272  	  # We have old collect2
15273  	  hardcode_direct_GCJ=unsupported
15274  	  # It fails to find uninstalled libraries when the uninstalled
15275  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15276  	  # to unsupported forces relinking
15277  	  hardcode_minus_L_GCJ=yes
15278  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15279  	  hardcode_libdir_separator_GCJ=
15280	  fi
15281	esac
15282	shared_flag='-shared'
15283      else
15284	# not using gcc
15285	if test "$host_cpu" = ia64; then
15286  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287  	# chokes on -Wl,-G. The following line is correct:
15288	  shared_flag='-G'
15289	else
15290  	if test "$aix_use_runtimelinking" = yes; then
15291	    shared_flag='${wl}-G'
15292	  else
15293	    shared_flag='${wl}-bM:SRE'
15294  	fi
15295	fi
15296      fi
15297
15298      # It seems that -bexpall does not export symbols beginning with
15299      # underscore (_), so it is better to generate a list of symbols to export.
15300      always_export_symbols_GCJ=yes
15301      if test "$aix_use_runtimelinking" = yes; then
15302	# Warning - without using the other runtime loading flags (-brtl),
15303	# -berok will link without error, but may produce a broken library.
15304	allow_undefined_flag_GCJ='-berok'
15305       # Determine the default libpath from the value encoded in an empty executable.
15306       cat >conftest.$ac_ext <<_ACEOF
15307#line $LINENO "configure"
15308/* confdefs.h.  */
15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h.  */
15313
15314int
15315main ()
15316{
15317
15318  ;
15319  return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext conftest$ac_exeext
15323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324  (eval $ac_link) 2>&5
15325  ac_status=$?
15326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327  (exit $ac_status); } &&
15328         { ac_try='test -s conftest$ac_exeext'
15329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330  (eval $ac_try) 2>&5
15331  ac_status=$?
15332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333  (exit $ac_status); }; }; then
15334
15335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15336}'`
15337# Check for a 64-bit object if we didn't find anything.
15338if 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; }
15339}'`; fi
15340else
15341  echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344fi
15345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15347
15348       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15349	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"
15350       else
15351	if test "$host_cpu" = ia64; then
15352	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15353	  allow_undefined_flag_GCJ="-z nodefs"
15354	  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"
15355	else
15356	 # Determine the default libpath from the value encoded in an empty executable.
15357	 cat >conftest.$ac_ext <<_ACEOF
15358#line $LINENO "configure"
15359/* confdefs.h.  */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h.  */
15364
15365int
15366main ()
15367{
15368
15369  ;
15370  return 0;
15371}
15372_ACEOF
15373rm -f conftest.$ac_objext conftest$ac_exeext
15374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375  (eval $ac_link) 2>&5
15376  ac_status=$?
15377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378  (exit $ac_status); } &&
15379         { ac_try='test -s conftest$ac_exeext'
15380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381  (eval $ac_try) 2>&5
15382  ac_status=$?
15383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384  (exit $ac_status); }; }; then
15385
15386aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15387}'`
15388# Check for a 64-bit object if we didn't find anything.
15389if 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; }
15390}'`; fi
15391else
15392  echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395fi
15396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15398
15399	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15400	  # Warning - without using the other run time loading flags,
15401	  # -berok will link without error, but may produce a broken library.
15402	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15403	  allow_undefined_flag_GCJ=' ${wl}-berok'
15404	  # -bexpall does not export symbols beginning with underscore (_)
15405	  always_export_symbols_GCJ=yes
15406	  # Exported symbols can be pulled into shared objects from archives
15407	  whole_archive_flag_spec_GCJ=' '
15408	  archive_cmds_need_lc_GCJ=yes
15409	  # This is similar to how AIX traditionally builds it's shared libraries.
15410	  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'
15411	fi
15412      fi
15413      ;;
15414
15415    amigaos*)
15416      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)'
15417      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15418      hardcode_minus_L_GCJ=yes
15419      # see comment about different semantics on the GNU ld section
15420      ld_shlibs_GCJ=no
15421      ;;
15422
15423    bsdi4*)
15424      export_dynamic_flag_spec_GCJ=-rdynamic
15425      ;;
15426
15427    cygwin* | mingw* | pw32*)
15428      # When not using gcc, we currently assume that we are using
15429      # Microsoft Visual C++.
15430      # hardcode_libdir_flag_spec is actually meaningless, as there is
15431      # no search path for DLLs.
15432      hardcode_libdir_flag_spec_GCJ=' '
15433      allow_undefined_flag_GCJ=unsupported
15434      # Tell ltmain to make .lib files, not .a files.
15435      libext=lib
15436      # Tell ltmain to make .dll files, not .so files.
15437      shrext=".dll"
15438      # FIXME: Setting linknames here is a bad hack.
15439      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15440      # The linker will automatically build a .lib file if we build a DLL.
15441      old_archive_From_new_cmds_GCJ='true'
15442      # FIXME: Should let the user specify the lib program.
15443      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15444      fix_srcfile_path='`cygpath -w "$srcfile"`'
15445      enable_shared_with_static_runtimes_GCJ=yes
15446      ;;
15447
15448    darwin* | rhapsody*)
15449    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15450      archive_cmds_need_lc_GCJ=no
15451      case "$host_os" in
15452      rhapsody* | darwin1.[012])
15453	allow_undefined_flag_GCJ='-undefined suppress'
15454	;;
15455      *) # Darwin 1.3 on
15456	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15457	;;
15458      esac
15459      # FIXME: Relying on posixy $() will cause problems for
15460      #        cross-compilation, but unfortunately the echo tests do not
15461      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15462      #	       `"' quotes if we put them in here... so don't!
15463    	lt_int_apple_cc_single_mod=no
15464    	output_verbose_link_cmd='echo'
15465    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15466    	  lt_int_apple_cc_single_mod=yes
15467    	fi
15468    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15469    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15470    	else
15471        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'
15472      fi
15473      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15474      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15475        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476          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}'
15477        else
15478          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}'
15479        fi
15480          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}'
15481      hardcode_direct_GCJ=no
15482      hardcode_automatic_GCJ=yes
15483      hardcode_shlibpath_var_GCJ=unsupported
15484      whole_archive_flag_spec_GCJ='-all_load $convenience'
15485      link_all_deplibs_GCJ=yes
15486    fi
15487      ;;
15488
15489    dgux*)
15490      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15492      hardcode_shlibpath_var_GCJ=no
15493      ;;
15494
15495    freebsd1*)
15496      ld_shlibs_GCJ=no
15497      ;;
15498
15499    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15500    # support.  Future versions do this automatically, but an explicit c++rt0.o
15501    # does not break anything, and helps significantly (at the cost of a little
15502    # extra space).
15503    freebsd2.2*)
15504      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15505      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506      hardcode_direct_GCJ=yes
15507      hardcode_shlibpath_var_GCJ=no
15508      ;;
15509
15510    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15511    freebsd2*)
15512      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15513      hardcode_direct_GCJ=yes
15514      hardcode_minus_L_GCJ=yes
15515      hardcode_shlibpath_var_GCJ=no
15516      ;;
15517
15518    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15519    freebsd*)
15520      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15521      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15522      hardcode_direct_GCJ=yes
15523      hardcode_shlibpath_var_GCJ=no
15524      ;;
15525
15526    hpux9*)
15527      if test "$GCC" = yes; then
15528	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'
15529      else
15530	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'
15531      fi
15532      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15533      hardcode_libdir_separator_GCJ=:
15534      hardcode_direct_GCJ=yes
15535
15536      # hardcode_minus_L: Not really in the search PATH,
15537      # but as the default location of the library.
15538      hardcode_minus_L_GCJ=yes
15539      export_dynamic_flag_spec_GCJ='${wl}-E'
15540      ;;
15541
15542    hpux10* | hpux11*)
15543      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544	case "$host_cpu" in
15545	hppa*64*|ia64*)
15546	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15547	  ;;
15548	*)
15549	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15550	  ;;
15551	esac
15552      else
15553	case "$host_cpu" in
15554	hppa*64*|ia64*)
15555	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15556	  ;;
15557	*)
15558	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15559	  ;;
15560	esac
15561      fi
15562      if test "$with_gnu_ld" = no; then
15563	case "$host_cpu" in
15564	hppa*64*)
15565	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15567	  hardcode_libdir_separator_GCJ=:
15568	  hardcode_direct_GCJ=no
15569	  hardcode_shlibpath_var_GCJ=no
15570	  ;;
15571	ia64*)
15572	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573	  hardcode_direct_GCJ=no
15574	  hardcode_shlibpath_var_GCJ=no
15575
15576	  # hardcode_minus_L: Not really in the search PATH,
15577	  # but as the default location of the library.
15578	  hardcode_minus_L_GCJ=yes
15579	  ;;
15580	*)
15581	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15582	  hardcode_libdir_separator_GCJ=:
15583	  hardcode_direct_GCJ=yes
15584	  export_dynamic_flag_spec_GCJ='${wl}-E'
15585
15586	  # hardcode_minus_L: Not really in the search PATH,
15587	  # but as the default location of the library.
15588	  hardcode_minus_L_GCJ=yes
15589	  ;;
15590	esac
15591      fi
15592      ;;
15593
15594    irix5* | irix6* | nonstopux*)
15595      if test "$GCC" = yes; then
15596	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'
15597      else
15598	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'
15599	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15600      fi
15601      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15602      hardcode_libdir_separator_GCJ=:
15603      link_all_deplibs_GCJ=yes
15604      ;;
15605
15606    netbsd*)
15607      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15608	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15609      else
15610	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15611      fi
15612      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15613      hardcode_direct_GCJ=yes
15614      hardcode_shlibpath_var_GCJ=no
15615      ;;
15616
15617    newsos6)
15618      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619      hardcode_direct_GCJ=yes
15620      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15621      hardcode_libdir_separator_GCJ=:
15622      hardcode_shlibpath_var_GCJ=no
15623      ;;
15624
15625    openbsd*)
15626      hardcode_direct_GCJ=yes
15627      hardcode_shlibpath_var_GCJ=no
15628      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15630	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15631	export_dynamic_flag_spec_GCJ='${wl}-E'
15632      else
15633       case $host_os in
15634	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15635	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15636	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
15637	   ;;
15638	 *)
15639	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15640	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15641	   ;;
15642       esac
15643      fi
15644      ;;
15645
15646    os2*)
15647      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15648      hardcode_minus_L_GCJ=yes
15649      allow_undefined_flag_GCJ=unsupported
15650      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'
15651      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15652      ;;
15653
15654    osf3*)
15655      if test "$GCC" = yes; then
15656	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15657	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'
15658      else
15659	allow_undefined_flag_GCJ=' -expect_unresolved \*'
15660	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'
15661      fi
15662      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663      hardcode_libdir_separator_GCJ=:
15664      ;;
15665
15666    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15667      if test "$GCC" = yes; then
15668	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15669	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'
15670	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671      else
15672	allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673	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'
15674	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~
15675	$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'
15676
15677	# Both c and cxx compiler support -rpath directly
15678	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15679      fi
15680      hardcode_libdir_separator_GCJ=:
15681      ;;
15682
15683    sco3.2v5*)
15684      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685      hardcode_shlibpath_var_GCJ=no
15686      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15687      runpath_var=LD_RUN_PATH
15688      hardcode_runpath_var=yes
15689      ;;
15690
15691    solaris*)
15692      no_undefined_flag_GCJ=' -z text'
15693      if test "$GCC" = yes; then
15694	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15696	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15697      else
15698	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15700  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15701      fi
15702      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15703      hardcode_shlibpath_var_GCJ=no
15704      case $host_os in
15705      solaris2.[0-5] | solaris2.[0-5].*) ;;
15706      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15707	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15708      esac
15709      link_all_deplibs_GCJ=yes
15710      ;;
15711
15712    sunos4*)
15713      if test "x$host_vendor" = xsequent; then
15714	# Use $CC to link under sequent, because it throws in some extra .o
15715	# files that make .init and .fini sections work.
15716	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15717      else
15718	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15719      fi
15720      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15721      hardcode_direct_GCJ=yes
15722      hardcode_minus_L_GCJ=yes
15723      hardcode_shlibpath_var_GCJ=no
15724      ;;
15725
15726    sysv4)
15727      case $host_vendor in
15728	sni)
15729	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15730	  hardcode_direct_GCJ=yes # is this really true???
15731	;;
15732	siemens)
15733	  ## LD is ld it makes a PLAMLIB
15734	  ## CC just makes a GrossModule.
15735	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15736	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15737	  hardcode_direct_GCJ=no
15738        ;;
15739	motorola)
15740	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15742	;;
15743      esac
15744      runpath_var='LD_RUN_PATH'
15745      hardcode_shlibpath_var_GCJ=no
15746      ;;
15747
15748    sysv4.3*)
15749      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750      hardcode_shlibpath_var_GCJ=no
15751      export_dynamic_flag_spec_GCJ='-Bexport'
15752      ;;
15753
15754    sysv4*MP*)
15755      if test -d /usr/nec; then
15756	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757	hardcode_shlibpath_var_GCJ=no
15758	runpath_var=LD_RUN_PATH
15759	hardcode_runpath_var=yes
15760	ld_shlibs_GCJ=yes
15761      fi
15762      ;;
15763
15764    sysv4.2uw2*)
15765      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15766      hardcode_direct_GCJ=yes
15767      hardcode_minus_L_GCJ=no
15768      hardcode_shlibpath_var_GCJ=no
15769      hardcode_runpath_var=yes
15770      runpath_var=LD_RUN_PATH
15771      ;;
15772
15773   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15774      no_undefined_flag_GCJ='${wl}-z ${wl}text'
15775      if test "$GCC" = yes; then
15776	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777      else
15778	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779      fi
15780      runpath_var='LD_RUN_PATH'
15781      hardcode_shlibpath_var_GCJ=no
15782      ;;
15783
15784    sysv5*)
15785      no_undefined_flag_GCJ=' -z text'
15786      # $CC -shared without GNU ld will not create a library from C++
15787      # object files and a static libstdc++, better avoid it by now
15788      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15791      hardcode_libdir_flag_spec_GCJ=
15792      hardcode_shlibpath_var_GCJ=no
15793      runpath_var='LD_RUN_PATH'
15794      ;;
15795
15796    uts4*)
15797      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799      hardcode_shlibpath_var_GCJ=no
15800      ;;
15801
15802    *)
15803      ld_shlibs_GCJ=no
15804      ;;
15805    esac
15806  fi
15807
15808echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15809echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15810test "$ld_shlibs_GCJ" = no && can_build_shared=no
15811
15812variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15813if test "$GCC" = yes; then
15814  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15815fi
15816
15817#
15818# Do we need to explicitly link libc?
15819#
15820case "x$archive_cmds_need_lc_GCJ" in
15821x|xyes)
15822  # Assume -lc should be added
15823  archive_cmds_need_lc_GCJ=yes
15824
15825  if test "$enable_shared" = yes && test "$GCC" = yes; then
15826    case $archive_cmds_GCJ in
15827    *'~'*)
15828      # FIXME: we may have to deal with multi-command sequences.
15829      ;;
15830    '$CC '*)
15831      # Test whether the compiler implicitly links with -lc since on some
15832      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15833      # to ld, don't add -lc before -lgcc.
15834      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15835echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15836      $rm conftest*
15837      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15838
15839      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840  (eval $ac_compile) 2>&5
15841  ac_status=$?
15842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843  (exit $ac_status); } 2>conftest.err; then
15844        soname=conftest
15845        lib=conftest
15846        libobjs=conftest.$ac_objext
15847        deplibs=
15848        wl=$lt_prog_compiler_wl_GCJ
15849        compiler_flags=-v
15850        linker_flags=-v
15851        verstring=
15852        output_objdir=.
15853        libname=conftest
15854        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15855        allow_undefined_flag_GCJ=
15856        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15857  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15858  ac_status=$?
15859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860  (exit $ac_status); }
15861        then
15862	  archive_cmds_need_lc_GCJ=no
15863        else
15864	  archive_cmds_need_lc_GCJ=yes
15865        fi
15866        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15867      else
15868        cat conftest.err 1>&5
15869      fi
15870      $rm conftest*
15871      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15872echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15873      ;;
15874    esac
15875  fi
15876  ;;
15877esac
15878
15879echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15880echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15881hardcode_action_GCJ=
15882if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15883   test -n "$runpath_var GCJ" || \
15884   test "X$hardcode_automatic_GCJ"="Xyes" ; then
15885
15886  # We can hardcode non-existant directories.
15887  if test "$hardcode_direct_GCJ" != no &&
15888     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15889     # have to relink, otherwise we might link with an installed library
15890     # when we should be linking with a yet-to-be-installed one
15891     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15892     test "$hardcode_minus_L_GCJ" != no; then
15893    # Linking always hardcodes the temporary library directory.
15894    hardcode_action_GCJ=relink
15895  else
15896    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15897    hardcode_action_GCJ=immediate
15898  fi
15899else
15900  # We cannot hardcode anything, or else we can only hardcode existing
15901  # directories.
15902  hardcode_action_GCJ=unsupported
15903fi
15904echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15905echo "${ECHO_T}$hardcode_action_GCJ" >&6
15906
15907if test "$hardcode_action_GCJ" = relink; then
15908  # Fast installation is not supported
15909  enable_fast_install=no
15910elif test "$shlibpath_overrides_runpath" = yes ||
15911     test "$enable_shared" = no; then
15912  # Fast installation is not necessary
15913  enable_fast_install=needless
15914fi
15915
15916striplib=
15917old_striplib=
15918echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15919echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15920if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15921  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15922  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15923  echo "$as_me:$LINENO: result: yes" >&5
15924echo "${ECHO_T}yes" >&6
15925else
15926# FIXME - insert some real tests, host_os isn't really good enough
15927  case $host_os in
15928   darwin*)
15929       if test -n "$STRIP" ; then
15930         striplib="$STRIP -x"
15931         echo "$as_me:$LINENO: result: yes" >&5
15932echo "${ECHO_T}yes" >&6
15933       else
15934  echo "$as_me:$LINENO: result: no" >&5
15935echo "${ECHO_T}no" >&6
15936fi
15937       ;;
15938   *)
15939  echo "$as_me:$LINENO: result: no" >&5
15940echo "${ECHO_T}no" >&6
15941    ;;
15942  esac
15943fi
15944
15945echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15946echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15947library_names_spec=
15948libname_spec='lib$name'
15949soname_spec=
15950shrext=".so"
15951postinstall_cmds=
15952postuninstall_cmds=
15953finish_cmds=
15954finish_eval=
15955shlibpath_var=
15956shlibpath_overrides_runpath=unknown
15957version_type=none
15958dynamic_linker="$host_os ld.so"
15959sys_lib_dlsearch_path_spec="/lib /usr/lib"
15960if test "$GCC" = yes; then
15961  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15962  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15963    # if the path contains ";" then we assume it to be the separator
15964    # otherwise default to the standard path separator (i.e. ":") - it is
15965    # assumed that no part of a normal pathname contains ";" but that should
15966    # okay in the real world where ";" in dirpaths is itself problematic.
15967    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15968  else
15969    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15970  fi
15971else
15972  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15973fi
15974need_lib_prefix=unknown
15975hardcode_into_libs=no
15976
15977# when you set need_version to no, make sure it does not cause -set_version
15978# flags to be left without arguments
15979need_version=unknown
15980
15981case $host_os in
15982aix3*)
15983  version_type=linux
15984  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15985  shlibpath_var=LIBPATH
15986
15987  # AIX 3 has no versioning support, so we append a major version to the name.
15988  soname_spec='${libname}${release}${shared_ext}$major'
15989  ;;
15990
15991aix4* | aix5*)
15992  version_type=linux
15993  need_lib_prefix=no
15994  need_version=no
15995  hardcode_into_libs=yes
15996  if test "$host_cpu" = ia64; then
15997    # AIX 5 supports IA64
15998    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15999    shlibpath_var=LD_LIBRARY_PATH
16000  else
16001    # With GCC up to 2.95.x, collect2 would create an import file
16002    # for dependence libraries.  The import file would start with
16003    # the line `#! .'.  This would cause the generated library to
16004    # depend on `.', always an invalid library.  This was fixed in
16005    # development snapshots of GCC prior to 3.0.
16006    case $host_os in
16007      aix4 | aix4.[01] | aix4.[01].*)
16008      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16009	   echo ' yes '
16010	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16011	:
16012      else
16013	can_build_shared=no
16014      fi
16015      ;;
16016    esac
16017    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16018    # soname into executable. Probably we can add versioning support to
16019    # collect2, so additional links can be useful in future.
16020    if test "$aix_use_runtimelinking" = yes; then
16021      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16022      # instead of lib<name>.a to let people know that these are not
16023      # typical AIX shared libraries.
16024      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025    else
16026      # We preserve .a as extension for shared libraries through AIX4.2
16027      # and later when we are not doing run time linking.
16028      library_names_spec='${libname}${release}.a $libname.a'
16029      soname_spec='${libname}${release}${shared_ext}$major'
16030    fi
16031    shlibpath_var=LIBPATH
16032  fi
16033  ;;
16034
16035amigaos*)
16036  library_names_spec='$libname.ixlibrary $libname.a'
16037  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16038  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'
16039  ;;
16040
16041beos*)
16042  library_names_spec='${libname}${shared_ext}'
16043  dynamic_linker="$host_os ld.so"
16044  shlibpath_var=LIBRARY_PATH
16045  ;;
16046
16047bsdi4*)
16048  version_type=linux
16049  need_version=no
16050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051  soname_spec='${libname}${release}${shared_ext}$major'
16052  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16053  shlibpath_var=LD_LIBRARY_PATH
16054  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16055  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16056  # the default ld.so.conf also contains /usr/contrib/lib and
16057  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16058  # libtool to hard-code these into programs
16059  ;;
16060
16061cygwin* | mingw* | pw32*)
16062  version_type=windows
16063  shrext=".dll"
16064  need_version=no
16065  need_lib_prefix=no
16066
16067  case $GCC,$host_os in
16068  yes,cygwin* | yes,mingw* | yes,pw32*)
16069    library_names_spec='$libname.dll.a'
16070    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16071    postinstall_cmds='base_file=`basename \${file}`~
16072      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16073      dldir=$destdir/`dirname \$dlpath`~
16074      test -d \$dldir || mkdir -p \$dldir~
16075      $install_prog $dir/$dlname \$dldir/$dlname'
16076    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077      dlpath=$dir/\$dldll~
16078       $rm \$dlpath'
16079    shlibpath_overrides_runpath=yes
16080
16081    case $host_os in
16082    cygwin*)
16083      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16086      ;;
16087    mingw*)
16088      # MinGW DLLs use traditional 'lib' prefix
16089      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092        # It is most probably a Windows format PATH printed by
16093        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16094        # path with ; separators, and with drive letters. We can handle the
16095        # drive letters (cygwin fileutils understands them), so leave them,
16096        # especially as we might pass files found there to a mingw objdump,
16097        # which wouldn't understand a cygwinified path. Ahh.
16098        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16099      else
16100        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16101      fi
16102      ;;
16103    pw32*)
16104      # pw32 DLLs use 'pw' prefix rather than 'lib'
16105      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16106      ;;
16107    esac
16108    ;;
16109
16110  *)
16111    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16112    ;;
16113  esac
16114  dynamic_linker='Win32 ld.exe'
16115  # FIXME: first we should search . and the directory the executable is in
16116  shlibpath_var=PATH
16117  ;;
16118
16119darwin* | rhapsody*)
16120  dynamic_linker="$host_os dyld"
16121  version_type=darwin
16122  need_lib_prefix=no
16123  need_version=no
16124  # FIXME: Relying on posixy $() will cause problems for
16125  #        cross-compilation, but unfortunately the echo tests do not
16126  #        yet detect zsh echo's removal of \ escapes.
16127  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16128  soname_spec='${libname}${release}${major}$shared_ext'
16129  shlibpath_overrides_runpath=yes
16130  shlibpath_var=DYLD_LIBRARY_PATH
16131  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16132  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16133  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16134  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"`
16135  fi
16136  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16137  ;;
16138
16139dgux*)
16140  version_type=linux
16141  need_lib_prefix=no
16142  need_version=no
16143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16144  soname_spec='${libname}${release}${shared_ext}$major'
16145  shlibpath_var=LD_LIBRARY_PATH
16146  ;;
16147
16148freebsd1*)
16149  dynamic_linker=no
16150  ;;
16151
16152freebsd*)
16153  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16154  version_type=freebsd-$objformat
16155  case $version_type in
16156    freebsd-elf*)
16157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16158      need_version=no
16159      need_lib_prefix=no
16160      ;;
16161    freebsd-*)
16162      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16163      need_version=yes
16164      ;;
16165  esac
16166  shlibpath_var=LD_LIBRARY_PATH
16167  case $host_os in
16168  freebsd2*)
16169    shlibpath_overrides_runpath=yes
16170    ;;
16171  freebsd3.01* | freebsdelf3.01*)
16172    shlibpath_overrides_runpath=yes
16173    hardcode_into_libs=yes
16174    ;;
16175  *) # from 3.2 on
16176    shlibpath_overrides_runpath=no
16177    hardcode_into_libs=yes
16178    ;;
16179  esac
16180  ;;
16181
16182gnu*)
16183  version_type=linux
16184  need_lib_prefix=no
16185  need_version=no
16186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187  soname_spec='${libname}${release}${shared_ext}$major'
16188  shlibpath_var=LD_LIBRARY_PATH
16189  hardcode_into_libs=yes
16190  ;;
16191
16192hpux9* | hpux10* | hpux11*)
16193  # Give a soname corresponding to the major version so that dld.sl refuses to
16194  # link against other versions.
16195  version_type=sunos
16196  need_lib_prefix=no
16197  need_version=no
16198  case "$host_cpu" in
16199  ia64*)
16200    shrext='.so'
16201    hardcode_into_libs=yes
16202    dynamic_linker="$host_os dld.so"
16203    shlibpath_var=LD_LIBRARY_PATH
16204    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206    soname_spec='${libname}${release}${shared_ext}$major'
16207    if test "X$HPUX_IA64_MODE" = X32; then
16208      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209    else
16210      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211    fi
16212    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16213    ;;
16214   hppa*64*)
16215     shrext='.sl'
16216     hardcode_into_libs=yes
16217     dynamic_linker="$host_os dld.sl"
16218     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221     soname_spec='${libname}${release}${shared_ext}$major'
16222     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224     ;;
16225   *)
16226    shrext='.sl'
16227    dynamic_linker="$host_os dld.sl"
16228    shlibpath_var=SHLIB_PATH
16229    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231    soname_spec='${libname}${release}${shared_ext}$major'
16232    ;;
16233  esac
16234  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235  postinstall_cmds='chmod 555 $lib'
16236  ;;
16237
16238irix5* | irix6* | nonstopux*)
16239  case $host_os in
16240    nonstopux*) version_type=nonstopux ;;
16241    *)
16242	if test "$lt_cv_prog_gnu_ld" = yes; then
16243		version_type=linux
16244	else
16245		version_type=irix
16246	fi ;;
16247  esac
16248  need_lib_prefix=no
16249  need_version=no
16250  soname_spec='${libname}${release}${shared_ext}$major'
16251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16252  case $host_os in
16253  irix5* | nonstopux*)
16254    libsuff= shlibsuff=
16255    ;;
16256  *)
16257    case $LD in # libtool.m4 will add one of these switches to LD
16258    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16259      libsuff= shlibsuff= libmagic=32-bit;;
16260    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16261      libsuff=32 shlibsuff=N32 libmagic=N32;;
16262    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16263      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16264    *) libsuff= shlibsuff= libmagic=never-match;;
16265    esac
16266    ;;
16267  esac
16268  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16269  shlibpath_overrides_runpath=no
16270  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16271  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16272  hardcode_into_libs=yes
16273  ;;
16274
16275# No shared lib support for Linux oldld, aout, or coff.
16276linux*oldld* | linux*aout* | linux*coff*)
16277  dynamic_linker=no
16278  ;;
16279
16280# This must be Linux ELF.
16281linux*)
16282  version_type=linux
16283  need_lib_prefix=no
16284  need_version=no
16285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286  soname_spec='${libname}${release}${shared_ext}$major'
16287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16288  shlibpath_var=LD_LIBRARY_PATH
16289  shlibpath_overrides_runpath=no
16290  # This implies no fast_install, which is unacceptable.
16291  # Some rework will be needed to allow for fast_install
16292  # before this can be enabled.
16293  hardcode_into_libs=yes
16294
16295  # We used to test for /lib/ld.so.1 and disable shared libraries on
16296  # powerpc, because MkLinux only supported shared libraries with the
16297  # GNU dynamic linker.  Since this was broken with cross compilers,
16298  # most powerpc-linux boxes support dynamic linking these days and
16299  # people can always --disable-shared, the test was removed, and we
16300  # assume the GNU/Linux dynamic linker is in use.
16301  dynamic_linker='GNU/Linux ld.so'
16302  ;;
16303
16304netbsd*)
16305  version_type=sunos
16306  need_lib_prefix=no
16307  need_version=no
16308  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16309    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16310    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16311    dynamic_linker='NetBSD (a.out) ld.so'
16312  else
16313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16314    soname_spec='${libname}${release}${shared_ext}$major'
16315    dynamic_linker='NetBSD ld.elf_so'
16316  fi
16317  shlibpath_var=LD_LIBRARY_PATH
16318  shlibpath_overrides_runpath=yes
16319  hardcode_into_libs=yes
16320  ;;
16321
16322newsos6)
16323  version_type=linux
16324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325  shlibpath_var=LD_LIBRARY_PATH
16326  shlibpath_overrides_runpath=yes
16327  ;;
16328
16329nto-qnx)
16330  version_type=linux
16331  need_lib_prefix=no
16332  need_version=no
16333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334  soname_spec='${libname}${release}${shared_ext}$major'
16335  shlibpath_var=LD_LIBRARY_PATH
16336  shlibpath_overrides_runpath=yes
16337  ;;
16338
16339openbsd*)
16340  version_type=sunos
16341  need_lib_prefix=no
16342  need_version=no
16343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16344  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16345  shlibpath_var=LD_LIBRARY_PATH
16346  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347    case $host_os in
16348      openbsd2.[89] | openbsd2.[89].*)
16349	shlibpath_overrides_runpath=no
16350	;;
16351      *)
16352	shlibpath_overrides_runpath=yes
16353	;;
16354      esac
16355  else
16356    shlibpath_overrides_runpath=yes
16357  fi
16358  ;;
16359
16360os2*)
16361  libname_spec='$name'
16362  shrext=".dll"
16363  need_lib_prefix=no
16364  library_names_spec='$libname${shared_ext} $libname.a'
16365  dynamic_linker='OS/2 ld.exe'
16366  shlibpath_var=LIBPATH
16367  ;;
16368
16369osf3* | osf4* | osf5*)
16370  version_type=osf
16371  need_lib_prefix=no
16372  need_version=no
16373  soname_spec='${libname}${release}${shared_ext}$major'
16374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375  shlibpath_var=LD_LIBRARY_PATH
16376  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16377  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16378  ;;
16379
16380sco3.2v5*)
16381  version_type=osf
16382  soname_spec='${libname}${release}${shared_ext}$major'
16383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384  shlibpath_var=LD_LIBRARY_PATH
16385  ;;
16386
16387solaris*)
16388  version_type=linux
16389  need_lib_prefix=no
16390  need_version=no
16391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392  soname_spec='${libname}${release}${shared_ext}$major'
16393  shlibpath_var=LD_LIBRARY_PATH
16394  shlibpath_overrides_runpath=yes
16395  hardcode_into_libs=yes
16396  # ldd complains unless libraries are executable
16397  postinstall_cmds='chmod +x $lib'
16398  ;;
16399
16400sunos4*)
16401  version_type=sunos
16402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16404  shlibpath_var=LD_LIBRARY_PATH
16405  shlibpath_overrides_runpath=yes
16406  if test "$with_gnu_ld" = yes; then
16407    need_lib_prefix=no
16408  fi
16409  need_version=yes
16410  ;;
16411
16412sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16413  version_type=linux
16414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415  soname_spec='${libname}${release}${shared_ext}$major'
16416  shlibpath_var=LD_LIBRARY_PATH
16417  case $host_vendor in
16418    sni)
16419      shlibpath_overrides_runpath=no
16420      need_lib_prefix=no
16421      export_dynamic_flag_spec='${wl}-Blargedynsym'
16422      runpath_var=LD_RUN_PATH
16423      ;;
16424    siemens)
16425      need_lib_prefix=no
16426      ;;
16427    motorola)
16428      need_lib_prefix=no
16429      need_version=no
16430      shlibpath_overrides_runpath=no
16431      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16432      ;;
16433  esac
16434  ;;
16435
16436sysv4*MP*)
16437  if test -d /usr/nec ;then
16438    version_type=linux
16439    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16440    soname_spec='$libname${shared_ext}.$major'
16441    shlibpath_var=LD_LIBRARY_PATH
16442  fi
16443  ;;
16444
16445uts4*)
16446  version_type=linux
16447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448  soname_spec='${libname}${release}${shared_ext}$major'
16449  shlibpath_var=LD_LIBRARY_PATH
16450  ;;
16451
16452*)
16453  dynamic_linker=no
16454  ;;
16455esac
16456echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457echo "${ECHO_T}$dynamic_linker" >&6
16458test "$dynamic_linker" = no && can_build_shared=no
16459
16460if test "x$enable_dlopen" != xyes; then
16461  enable_dlopen=unknown
16462  enable_dlopen_self=unknown
16463  enable_dlopen_self_static=unknown
16464else
16465  lt_cv_dlopen=no
16466  lt_cv_dlopen_libs=
16467
16468  case $host_os in
16469  beos*)
16470    lt_cv_dlopen="load_add_on"
16471    lt_cv_dlopen_libs=
16472    lt_cv_dlopen_self=yes
16473    ;;
16474
16475  mingw* | pw32*)
16476    lt_cv_dlopen="LoadLibrary"
16477    lt_cv_dlopen_libs=
16478   ;;
16479
16480  cygwin*)
16481    lt_cv_dlopen="dlopen"
16482    lt_cv_dlopen_libs=
16483   ;;
16484
16485  darwin*)
16486  # if libdl is installed we need to link against it
16487    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16488echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16489if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16490  echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492  ac_check_lib_save_LIBS=$LIBS
16493LIBS="-ldl  $LIBS"
16494cat >conftest.$ac_ext <<_ACEOF
16495#line $LINENO "configure"
16496/* confdefs.h.  */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h.  */
16501
16502/* Override any gcc2 internal prototype to avoid an error.  */
16503#ifdef __cplusplus
16504extern "C"
16505#endif
16506/* We use char because int might match the return type of a gcc2
16507   builtin and then its argument prototype would still apply.  */
16508char dlopen ();
16509int
16510main ()
16511{
16512dlopen ();
16513  ;
16514  return 0;
16515}
16516_ACEOF
16517rm -f conftest.$ac_objext conftest$ac_exeext
16518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519  (eval $ac_link) 2>&5
16520  ac_status=$?
16521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522  (exit $ac_status); } &&
16523         { ac_try='test -s conftest$ac_exeext'
16524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525  (eval $ac_try) 2>&5
16526  ac_status=$?
16527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528  (exit $ac_status); }; }; then
16529  ac_cv_lib_dl_dlopen=yes
16530else
16531  echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534ac_cv_lib_dl_dlopen=no
16535fi
16536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16537LIBS=$ac_check_lib_save_LIBS
16538fi
16539echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16540echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16541if test $ac_cv_lib_dl_dlopen = yes; then
16542  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16543else
16544
16545    lt_cv_dlopen="dyld"
16546    lt_cv_dlopen_libs=
16547    lt_cv_dlopen_self=yes
16548
16549fi
16550
16551   ;;
16552
16553  *)
16554    echo "$as_me:$LINENO: checking for shl_load" >&5
16555echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16556if test "${ac_cv_func_shl_load+set}" = set; then
16557  echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559  cat >conftest.$ac_ext <<_ACEOF
16560#line $LINENO "configure"
16561/* confdefs.h.  */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h.  */
16566/* System header to define __stub macros and hopefully few prototypes,
16567    which can conflict with char shl_load (); below.
16568    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569    <limits.h> exists even on freestanding compilers.  */
16570#ifdef __STDC__
16571# include <limits.h>
16572#else
16573# include <assert.h>
16574#endif
16575/* Override any gcc2 internal prototype to avoid an error.  */
16576#ifdef __cplusplus
16577extern "C"
16578{
16579#endif
16580/* We use char because int might match the return type of a gcc2
16581   builtin and then its argument prototype would still apply.  */
16582char shl_load ();
16583/* The GNU C library defines this for functions which it implements
16584    to always fail with ENOSYS.  Some functions are actually named
16585    something starting with __ and the normal name is an alias.  */
16586#if defined (__stub_shl_load) || defined (__stub___shl_load)
16587choke me
16588#else
16589char (*f) () = shl_load;
16590#endif
16591#ifdef __cplusplus
16592}
16593#endif
16594
16595int
16596main ()
16597{
16598return f != shl_load;
16599  ;
16600  return 0;
16601}
16602_ACEOF
16603rm -f conftest.$ac_objext conftest$ac_exeext
16604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605  (eval $ac_link) 2>&5
16606  ac_status=$?
16607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608  (exit $ac_status); } &&
16609         { ac_try='test -s conftest$ac_exeext'
16610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611  (eval $ac_try) 2>&5
16612  ac_status=$?
16613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614  (exit $ac_status); }; }; then
16615  ac_cv_func_shl_load=yes
16616else
16617  echo "$as_me: failed program was:" >&5
16618sed 's/^/| /' conftest.$ac_ext >&5
16619
16620ac_cv_func_shl_load=no
16621fi
16622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16623fi
16624echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16625echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16626if test $ac_cv_func_shl_load = yes; then
16627  lt_cv_dlopen="shl_load"
16628else
16629  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16630echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16631if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16632  echo $ECHO_N "(cached) $ECHO_C" >&6
16633else
16634  ac_check_lib_save_LIBS=$LIBS
16635LIBS="-ldld  $LIBS"
16636cat >conftest.$ac_ext <<_ACEOF
16637#line $LINENO "configure"
16638/* confdefs.h.  */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h.  */
16643
16644/* Override any gcc2 internal prototype to avoid an error.  */
16645#ifdef __cplusplus
16646extern "C"
16647#endif
16648/* We use char because int might match the return type of a gcc2
16649   builtin and then its argument prototype would still apply.  */
16650char shl_load ();
16651int
16652main ()
16653{
16654shl_load ();
16655  ;
16656  return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext conftest$ac_exeext
16660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661  (eval $ac_link) 2>&5
16662  ac_status=$?
16663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664  (exit $ac_status); } &&
16665         { ac_try='test -s conftest$ac_exeext'
16666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667  (eval $ac_try) 2>&5
16668  ac_status=$?
16669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670  (exit $ac_status); }; }; then
16671  ac_cv_lib_dld_shl_load=yes
16672else
16673  echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
16676ac_cv_lib_dld_shl_load=no
16677fi
16678rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679LIBS=$ac_check_lib_save_LIBS
16680fi
16681echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16682echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16683if test $ac_cv_lib_dld_shl_load = yes; then
16684  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16685else
16686  echo "$as_me:$LINENO: checking for dlopen" >&5
16687echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16688if test "${ac_cv_func_dlopen+set}" = set; then
16689  echo $ECHO_N "(cached) $ECHO_C" >&6
16690else
16691  cat >conftest.$ac_ext <<_ACEOF
16692#line $LINENO "configure"
16693/* confdefs.h.  */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h.  */
16698/* System header to define __stub macros and hopefully few prototypes,
16699    which can conflict with char dlopen (); below.
16700    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16701    <limits.h> exists even on freestanding compilers.  */
16702#ifdef __STDC__
16703# include <limits.h>
16704#else
16705# include <assert.h>
16706#endif
16707/* Override any gcc2 internal prototype to avoid an error.  */
16708#ifdef __cplusplus
16709extern "C"
16710{
16711#endif
16712/* We use char because int might match the return type of a gcc2
16713   builtin and then its argument prototype would still apply.  */
16714char dlopen ();
16715/* The GNU C library defines this for functions which it implements
16716    to always fail with ENOSYS.  Some functions are actually named
16717    something starting with __ and the normal name is an alias.  */
16718#if defined (__stub_dlopen) || defined (__stub___dlopen)
16719choke me
16720#else
16721char (*f) () = dlopen;
16722#endif
16723#ifdef __cplusplus
16724}
16725#endif
16726
16727int
16728main ()
16729{
16730return f != dlopen;
16731  ;
16732  return 0;
16733}
16734_ACEOF
16735rm -f conftest.$ac_objext conftest$ac_exeext
16736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737  (eval $ac_link) 2>&5
16738  ac_status=$?
16739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740  (exit $ac_status); } &&
16741         { ac_try='test -s conftest$ac_exeext'
16742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743  (eval $ac_try) 2>&5
16744  ac_status=$?
16745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746  (exit $ac_status); }; }; then
16747  ac_cv_func_dlopen=yes
16748else
16749  echo "$as_me: failed program was:" >&5
16750sed 's/^/| /' conftest.$ac_ext >&5
16751
16752ac_cv_func_dlopen=no
16753fi
16754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16755fi
16756echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16757echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16758if test $ac_cv_func_dlopen = yes; then
16759  lt_cv_dlopen="dlopen"
16760else
16761  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16764  echo $ECHO_N "(cached) $ECHO_C" >&6
16765else
16766  ac_check_lib_save_LIBS=$LIBS
16767LIBS="-ldl  $LIBS"
16768cat >conftest.$ac_ext <<_ACEOF
16769#line $LINENO "configure"
16770/* confdefs.h.  */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h.  */
16775
16776/* Override any gcc2 internal prototype to avoid an error.  */
16777#ifdef __cplusplus
16778extern "C"
16779#endif
16780/* We use char because int might match the return type of a gcc2
16781   builtin and then its argument prototype would still apply.  */
16782char dlopen ();
16783int
16784main ()
16785{
16786dlopen ();
16787  ;
16788  return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext conftest$ac_exeext
16792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16793  (eval $ac_link) 2>&5
16794  ac_status=$?
16795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796  (exit $ac_status); } &&
16797         { ac_try='test -s conftest$ac_exeext'
16798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799  (eval $ac_try) 2>&5
16800  ac_status=$?
16801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802  (exit $ac_status); }; }; then
16803  ac_cv_lib_dl_dlopen=yes
16804else
16805  echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808ac_cv_lib_dl_dlopen=no
16809fi
16810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811LIBS=$ac_check_lib_save_LIBS
16812fi
16813echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16814echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16815if test $ac_cv_lib_dl_dlopen = yes; then
16816  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16817else
16818  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16819echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16820if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16821  echo $ECHO_N "(cached) $ECHO_C" >&6
16822else
16823  ac_check_lib_save_LIBS=$LIBS
16824LIBS="-lsvld  $LIBS"
16825cat >conftest.$ac_ext <<_ACEOF
16826#line $LINENO "configure"
16827/* confdefs.h.  */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h.  */
16832
16833/* Override any gcc2 internal prototype to avoid an error.  */
16834#ifdef __cplusplus
16835extern "C"
16836#endif
16837/* We use char because int might match the return type of a gcc2
16838   builtin and then its argument prototype would still apply.  */
16839char dlopen ();
16840int
16841main ()
16842{
16843dlopen ();
16844  ;
16845  return 0;
16846}
16847_ACEOF
16848rm -f conftest.$ac_objext conftest$ac_exeext
16849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850  (eval $ac_link) 2>&5
16851  ac_status=$?
16852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853  (exit $ac_status); } &&
16854         { ac_try='test -s conftest$ac_exeext'
16855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856  (eval $ac_try) 2>&5
16857  ac_status=$?
16858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859  (exit $ac_status); }; }; then
16860  ac_cv_lib_svld_dlopen=yes
16861else
16862  echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865ac_cv_lib_svld_dlopen=no
16866fi
16867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16868LIBS=$ac_check_lib_save_LIBS
16869fi
16870echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16871echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16872if test $ac_cv_lib_svld_dlopen = yes; then
16873  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16874else
16875  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16876echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16877if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16878  echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880  ac_check_lib_save_LIBS=$LIBS
16881LIBS="-ldld  $LIBS"
16882cat >conftest.$ac_ext <<_ACEOF
16883#line $LINENO "configure"
16884/* confdefs.h.  */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h.  */
16889
16890/* Override any gcc2 internal prototype to avoid an error.  */
16891#ifdef __cplusplus
16892extern "C"
16893#endif
16894/* We use char because int might match the return type of a gcc2
16895   builtin and then its argument prototype would still apply.  */
16896char dld_link ();
16897int
16898main ()
16899{
16900dld_link ();
16901  ;
16902  return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext conftest$ac_exeext
16906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907  (eval $ac_link) 2>&5
16908  ac_status=$?
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); } &&
16911         { ac_try='test -s conftest$ac_exeext'
16912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913  (eval $ac_try) 2>&5
16914  ac_status=$?
16915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916  (exit $ac_status); }; }; then
16917  ac_cv_lib_dld_dld_link=yes
16918else
16919  echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922ac_cv_lib_dld_dld_link=no
16923fi
16924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16925LIBS=$ac_check_lib_save_LIBS
16926fi
16927echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16928echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16929if test $ac_cv_lib_dld_dld_link = yes; then
16930  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16931fi
16932
16933
16934fi
16935
16936
16937fi
16938
16939
16940fi
16941
16942
16943fi
16944
16945
16946fi
16947
16948    ;;
16949  esac
16950
16951  if test "x$lt_cv_dlopen" != xno; then
16952    enable_dlopen=yes
16953  else
16954    enable_dlopen=no
16955  fi
16956
16957  case $lt_cv_dlopen in
16958  dlopen)
16959    save_CPPFLAGS="$CPPFLAGS"
16960    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16961
16962    save_LDFLAGS="$LDFLAGS"
16963    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16964
16965    save_LIBS="$LIBS"
16966    LIBS="$lt_cv_dlopen_libs $LIBS"
16967
16968    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16969echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16970if test "${lt_cv_dlopen_self+set}" = set; then
16971  echo $ECHO_N "(cached) $ECHO_C" >&6
16972else
16973  	  if test "$cross_compiling" = yes; then :
16974  lt_cv_dlopen_self=cross
16975else
16976  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16977  lt_status=$lt_dlunknown
16978  cat > conftest.$ac_ext <<EOF
16979#line 16979 "configure"
16980#include "confdefs.h"
16981
16982#if HAVE_DLFCN_H
16983#include <dlfcn.h>
16984#endif
16985
16986#include <stdio.h>
16987
16988#ifdef RTLD_GLOBAL
16989#  define LT_DLGLOBAL		RTLD_GLOBAL
16990#else
16991#  ifdef DL_GLOBAL
16992#    define LT_DLGLOBAL		DL_GLOBAL
16993#  else
16994#    define LT_DLGLOBAL		0
16995#  endif
16996#endif
16997
16998/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16999   find out it does not work in some platform. */
17000#ifndef LT_DLLAZY_OR_NOW
17001#  ifdef RTLD_LAZY
17002#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17003#  else
17004#    ifdef DL_LAZY
17005#      define LT_DLLAZY_OR_NOW		DL_LAZY
17006#    else
17007#      ifdef RTLD_NOW
17008#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17009#      else
17010#        ifdef DL_NOW
17011#          define LT_DLLAZY_OR_NOW	DL_NOW
17012#        else
17013#          define LT_DLLAZY_OR_NOW	0
17014#        endif
17015#      endif
17016#    endif
17017#  endif
17018#endif
17019
17020#ifdef __cplusplus
17021extern "C" void exit (int);
17022#endif
17023
17024void fnord() { int i=42;}
17025int main ()
17026{
17027  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17028  int status = $lt_dlunknown;
17029
17030  if (self)
17031    {
17032      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17033      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17034      /* dlclose (self); */
17035    }
17036
17037    exit (status);
17038}
17039EOF
17040  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041  (eval $ac_link) 2>&5
17042  ac_status=$?
17043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17045    (./conftest; exit; ) 2>/dev/null
17046    lt_status=$?
17047    case x$lt_status in
17048      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17049      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17050      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17051    esac
17052  else :
17053    # compilation failed
17054    lt_cv_dlopen_self=no
17055  fi
17056fi
17057rm -fr conftest*
17058
17059
17060fi
17061echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17062echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17063
17064    if test "x$lt_cv_dlopen_self" = xyes; then
17065      LDFLAGS="$LDFLAGS $link_static_flag"
17066      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17067echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17068if test "${lt_cv_dlopen_self_static+set}" = set; then
17069  echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071  	  if test "$cross_compiling" = yes; then :
17072  lt_cv_dlopen_self_static=cross
17073else
17074  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17075  lt_status=$lt_dlunknown
17076  cat > conftest.$ac_ext <<EOF
17077#line 17077 "configure"
17078#include "confdefs.h"
17079
17080#if HAVE_DLFCN_H
17081#include <dlfcn.h>
17082#endif
17083
17084#include <stdio.h>
17085
17086#ifdef RTLD_GLOBAL
17087#  define LT_DLGLOBAL		RTLD_GLOBAL
17088#else
17089#  ifdef DL_GLOBAL
17090#    define LT_DLGLOBAL		DL_GLOBAL
17091#  else
17092#    define LT_DLGLOBAL		0
17093#  endif
17094#endif
17095
17096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17097   find out it does not work in some platform. */
17098#ifndef LT_DLLAZY_OR_NOW
17099#  ifdef RTLD_LAZY
17100#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17101#  else
17102#    ifdef DL_LAZY
17103#      define LT_DLLAZY_OR_NOW		DL_LAZY
17104#    else
17105#      ifdef RTLD_NOW
17106#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17107#      else
17108#        ifdef DL_NOW
17109#          define LT_DLLAZY_OR_NOW	DL_NOW
17110#        else
17111#          define LT_DLLAZY_OR_NOW	0
17112#        endif
17113#      endif
17114#    endif
17115#  endif
17116#endif
17117
17118#ifdef __cplusplus
17119extern "C" void exit (int);
17120#endif
17121
17122void fnord() { int i=42;}
17123int main ()
17124{
17125  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17126  int status = $lt_dlunknown;
17127
17128  if (self)
17129    {
17130      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17131      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17132      /* dlclose (self); */
17133    }
17134
17135    exit (status);
17136}
17137EOF
17138  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139  (eval $ac_link) 2>&5
17140  ac_status=$?
17141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17143    (./conftest; exit; ) 2>/dev/null
17144    lt_status=$?
17145    case x$lt_status in
17146      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17147      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17148      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17149    esac
17150  else :
17151    # compilation failed
17152    lt_cv_dlopen_self_static=no
17153  fi
17154fi
17155rm -fr conftest*
17156
17157
17158fi
17159echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17160echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17161    fi
17162
17163    CPPFLAGS="$save_CPPFLAGS"
17164    LDFLAGS="$save_LDFLAGS"
17165    LIBS="$save_LIBS"
17166    ;;
17167  esac
17168
17169  case $lt_cv_dlopen_self in
17170  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17171  *) enable_dlopen_self=unknown ;;
17172  esac
17173
17174  case $lt_cv_dlopen_self_static in
17175  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17176  *) enable_dlopen_self_static=unknown ;;
17177  esac
17178fi
17179
17180
17181# The else clause should only fire when bootstrapping the
17182# libtool distribution, otherwise you forgot to ship ltmain.sh
17183# with your package, and you will get complaints that there are
17184# no rules to generate ltmain.sh.
17185if test -f "$ltmain"; then
17186  # See if we are running on zsh, and set the options which allow our commands through
17187  # without removal of \ escapes.
17188  if test -n "${ZSH_VERSION+set}" ; then
17189    setopt NO_GLOB_SUBST
17190  fi
17191  # Now quote all the things that may contain metacharacters while being
17192  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17193  # variables and quote the copies for generation of the libtool script.
17194  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17195    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17196    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17197    deplibs_check_method reload_flag reload_cmds need_locks \
17198    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17199    lt_cv_sys_global_symbol_to_c_name_address \
17200    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17201    old_postinstall_cmds old_postuninstall_cmds \
17202    compiler_GCJ \
17203    CC_GCJ \
17204    LD_GCJ \
17205    lt_prog_compiler_wl_GCJ \
17206    lt_prog_compiler_pic_GCJ \
17207    lt_prog_compiler_static_GCJ \
17208    lt_prog_compiler_no_builtin_flag_GCJ \
17209    export_dynamic_flag_spec_GCJ \
17210    thread_safe_flag_spec_GCJ \
17211    whole_archive_flag_spec_GCJ \
17212    enable_shared_with_static_runtimes_GCJ \
17213    old_archive_cmds_GCJ \
17214    old_archive_from_new_cmds_GCJ \
17215    predep_objects_GCJ \
17216    postdep_objects_GCJ \
17217    predeps_GCJ \
17218    postdeps_GCJ \
17219    compiler_lib_search_path_GCJ \
17220    archive_cmds_GCJ \
17221    archive_expsym_cmds_GCJ \
17222    postinstall_cmds_GCJ \
17223    postuninstall_cmds_GCJ \
17224    old_archive_from_expsyms_cmds_GCJ \
17225    allow_undefined_flag_GCJ \
17226    no_undefined_flag_GCJ \
17227    export_symbols_cmds_GCJ \
17228    hardcode_libdir_flag_spec_GCJ \
17229    hardcode_libdir_flag_spec_ld_GCJ \
17230    hardcode_libdir_separator_GCJ \
17231    hardcode_automatic_GCJ \
17232    module_cmds_GCJ \
17233    module_expsym_cmds_GCJ \
17234    lt_cv_prog_compiler_c_o_GCJ \
17235    exclude_expsyms_GCJ \
17236    include_expsyms_GCJ; do
17237
17238    case $var in
17239    old_archive_cmds_GCJ | \
17240    old_archive_from_new_cmds_GCJ | \
17241    archive_cmds_GCJ | \
17242    archive_expsym_cmds_GCJ | \
17243    module_cmds_GCJ | \
17244    module_expsym_cmds_GCJ | \
17245    old_archive_from_expsyms_cmds_GCJ | \
17246    export_symbols_cmds_GCJ | \
17247    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17248    postinstall_cmds | postuninstall_cmds | \
17249    old_postinstall_cmds | old_postuninstall_cmds | \
17250    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17251      # Double-quote double-evaled strings.
17252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17253      ;;
17254    *)
17255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17256      ;;
17257    esac
17258  done
17259
17260  case $lt_echo in
17261  *'\$0 --fallback-echo"')
17262    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17263    ;;
17264  esac
17265
17266cfgfile="$ofile"
17267
17268  cat <<__EOF__ >> "$cfgfile"
17269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17270
17271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272
17273# Shell to use when invoking shell scripts.
17274SHELL=$lt_SHELL
17275
17276# Whether or not to build shared libraries.
17277build_libtool_libs=$enable_shared
17278
17279# Whether or not to build static libraries.
17280build_old_libs=$enable_static
17281
17282# Whether or not to add -lc for building shared libraries.
17283build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17284
17285# Whether or not to disallow shared libs when runtime libs are static
17286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17287
17288# Whether or not to optimize for fast installation.
17289fast_install=$enable_fast_install
17290
17291# The host system.
17292host_alias=$host_alias
17293host=$host
17294
17295# An echo program that does not interpret backslashes.
17296echo=$lt_echo
17297
17298# The archiver.
17299AR=$lt_AR
17300AR_FLAGS=$lt_AR_FLAGS
17301
17302# A C compiler.
17303LTCC=$lt_LTCC
17304
17305# A language-specific compiler.
17306CC=$lt_compiler_GCJ
17307
17308# Is the compiler the GNU C compiler?
17309with_gcc=$GCC_GCJ
17310
17311# An ERE matcher.
17312EGREP=$lt_EGREP
17313
17314# The linker used to build libraries.
17315LD=$lt_LD_GCJ
17316
17317# Whether we need hard or soft links.
17318LN_S=$lt_LN_S
17319
17320# A BSD-compatible nm program.
17321NM=$lt_NM
17322
17323# A symbol stripping program
17324STRIP=$STRIP
17325
17326# Used to examine libraries when file_magic_cmd begins "file"
17327MAGIC_CMD=$MAGIC_CMD
17328
17329# Used on cygwin: DLL creation program.
17330DLLTOOL="$DLLTOOL"
17331
17332# Used on cygwin: object dumper.
17333OBJDUMP="$OBJDUMP"
17334
17335# Used on cygwin: assembler.
17336AS="$AS"
17337
17338# The name of the directory that contains temporary libtool files.
17339objdir=$objdir
17340
17341# How to create reloadable object files.
17342reload_flag=$lt_reload_flag
17343reload_cmds=$lt_reload_cmds
17344
17345# How to pass a linker flag through the compiler.
17346wl=$lt_lt_prog_compiler_wl_GCJ
17347
17348# Object file suffix (normally "o").
17349objext="$ac_objext"
17350
17351# Old archive suffix (normally "a").
17352libext="$libext"
17353
17354# Shared library suffix (normally ".so").
17355shrext='$shrext'
17356
17357# Executable file suffix (normally "").
17358exeext="$exeext"
17359
17360# Additional compiler flags for building library objects.
17361pic_flag=$lt_lt_prog_compiler_pic_GCJ
17362pic_mode=$pic_mode
17363
17364# What is the maximum length of a command?
17365max_cmd_len=$lt_cv_sys_max_cmd_len
17366
17367# Does compiler simultaneously support -c and -o options?
17368compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17369
17370# Must we lock files when doing compilation ?
17371need_locks=$lt_need_locks
17372
17373# Do we need the lib prefix for modules?
17374need_lib_prefix=$need_lib_prefix
17375
17376# Do we need a version for libraries?
17377need_version=$need_version
17378
17379# Whether dlopen is supported.
17380dlopen_support=$enable_dlopen
17381
17382# Whether dlopen of programs is supported.
17383dlopen_self=$enable_dlopen_self
17384
17385# Whether dlopen of statically linked programs is supported.
17386dlopen_self_static=$enable_dlopen_self_static
17387
17388# Compiler flag to prevent dynamic linking.
17389link_static_flag=$lt_lt_prog_compiler_static_GCJ
17390
17391# Compiler flag to turn off builtin functions.
17392no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17393
17394# Compiler flag to allow reflexive dlopens.
17395export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17396
17397# Compiler flag to generate shared objects directly from archives.
17398whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17399
17400# Compiler flag to generate thread-safe objects.
17401thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17402
17403# Library versioning type.
17404version_type=$version_type
17405
17406# Format of library name prefix.
17407libname_spec=$lt_libname_spec
17408
17409# List of archive names.  First name is the real one, the rest are links.
17410# The last name is the one that the linker finds with -lNAME.
17411library_names_spec=$lt_library_names_spec
17412
17413# The coded name of the library, if different from the real name.
17414soname_spec=$lt_soname_spec
17415
17416# Commands used to build and install an old-style archive.
17417RANLIB=$lt_RANLIB
17418old_archive_cmds=$lt_old_archive_cmds_GCJ
17419old_postinstall_cmds=$lt_old_postinstall_cmds
17420old_postuninstall_cmds=$lt_old_postuninstall_cmds
17421
17422# Create an old-style archive from a shared archive.
17423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17424
17425# Create a temporary old-style archive to link instead of a shared archive.
17426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17427
17428# Commands used to build and install a shared archive.
17429archive_cmds=$lt_archive_cmds_GCJ
17430archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17431postinstall_cmds=$lt_postinstall_cmds
17432postuninstall_cmds=$lt_postuninstall_cmds
17433
17434# Commands used to build a loadable module (assumed same as above if empty)
17435module_cmds=$lt_module_cmds_GCJ
17436module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17437
17438# Commands to strip libraries.
17439old_striplib=$lt_old_striplib
17440striplib=$lt_striplib
17441
17442# Dependencies to place before the objects being linked to create a
17443# shared library.
17444predep_objects=$lt_predep_objects_GCJ
17445
17446# Dependencies to place after the objects being linked to create a
17447# shared library.
17448postdep_objects=$lt_postdep_objects_GCJ
17449
17450# Dependencies to place before the objects being linked to create a
17451# shared library.
17452predeps=$lt_predeps_GCJ
17453
17454# Dependencies to place after the objects being linked to create a
17455# shared library.
17456postdeps=$lt_postdeps_GCJ
17457
17458# The library search path used internally by the compiler when linking
17459# a shared library.
17460compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17461
17462# Method to check whether dependent libraries are shared objects.
17463deplibs_check_method=$lt_deplibs_check_method
17464
17465# Command to use when deplibs_check_method == file_magic.
17466file_magic_cmd=$lt_file_magic_cmd
17467
17468# Flag that allows shared libraries with undefined symbols to be built.
17469allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17470
17471# Flag that forces no undefined symbols.
17472no_undefined_flag=$lt_no_undefined_flag_GCJ
17473
17474# Commands used to finish a libtool library installation in a directory.
17475finish_cmds=$lt_finish_cmds
17476
17477# Same as above, but a single script fragment to be evaled but not shown.
17478finish_eval=$lt_finish_eval
17479
17480# Take the output of nm and produce a listing of raw symbols and C names.
17481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17482
17483# Transform the output of nm in a proper C declaration
17484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17485
17486# Transform the output of nm in a C name address pair
17487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17488
17489# This is the shared library runtime path variable.
17490runpath_var=$runpath_var
17491
17492# This is the shared library path variable.
17493shlibpath_var=$shlibpath_var
17494
17495# Is shlibpath searched before the hard-coded library search path?
17496shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17497
17498# How to hardcode a shared library path into an executable.
17499hardcode_action=$hardcode_action_GCJ
17500
17501# Whether we should hardcode library paths into libraries.
17502hardcode_into_libs=$hardcode_into_libs
17503
17504# Flag to hardcode \$libdir into a binary during linking.
17505# This must work even if \$libdir does not exist.
17506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17507
17508# If ld is used when linking, flag to hardcode \$libdir into
17509# a binary during linking. This must work even if \$libdir does
17510# not exist.
17511hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17512
17513# Whether we need a single -rpath flag with a separated argument.
17514hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17515
17516# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17517# resulting binary.
17518hardcode_direct=$hardcode_direct_GCJ
17519
17520# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17521# resulting binary.
17522hardcode_minus_L=$hardcode_minus_L_GCJ
17523
17524# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17525# the resulting binary.
17526hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17527
17528# Set to yes if building a shared library automatically hardcodes DIR into the library
17529# and all subsequent libraries and executables linked against it.
17530hardcode_automatic=$hardcode_automatic_GCJ
17531
17532# Variables whose values should be saved in libtool wrapper scripts and
17533# restored at relink time.
17534variables_saved_for_relink="$variables_saved_for_relink"
17535
17536# Whether libtool must link a program against all its dependency libraries.
17537link_all_deplibs=$link_all_deplibs_GCJ
17538
17539# Compile-time system search path for libraries
17540sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17541
17542# Run-time system search path for libraries
17543sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17544
17545# Fix the shell variable \$srcfile for the compiler.
17546fix_srcfile_path="$fix_srcfile_path_GCJ"
17547
17548# Set to yes if exported symbols are required.
17549always_export_symbols=$always_export_symbols_GCJ
17550
17551# The commands to list exported symbols.
17552export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17553
17554# The commands to extract the exported symbol list from a shared archive.
17555extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556
17557# Symbols that should not be listed in the preloaded symbols.
17558exclude_expsyms=$lt_exclude_expsyms_GCJ
17559
17560# Symbols that must always be exported.
17561include_expsyms=$lt_include_expsyms_GCJ
17562
17563# ### END LIBTOOL TAG CONFIG: $tagname
17564
17565__EOF__
17566
17567
17568else
17569  # If there is no Makefile yet, we rely on a make rule to execute
17570  # `config.status --recheck' to rerun these tests and create the
17571  # libtool script then.
17572  test -f Makefile && make "$ltmain"
17573fi
17574
17575
17576ac_ext=c
17577ac_cpp='$CPP $CPPFLAGS'
17578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580ac_compiler_gnu=$ac_cv_c_compiler_gnu
17581
17582CC="$lt_save_CC"
17583
17584	else
17585	  tagname=""
17586	fi
17587	;;
17588
17589      RC)
17590
17591
17592
17593# Source file extension for RC test sources.
17594ac_ext=rc
17595
17596# Object file extension for compiled RC test sources.
17597objext=o
17598objext_RC=$objext
17599
17600# Code to be used in simple compile tests
17601lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17602
17603# Code to be used in simple link tests
17604lt_simple_link_test_code="$lt_simple_compile_test_code"
17605
17606# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17607
17608# If no C compiler was specified, use CC.
17609LTCC=${LTCC-"$CC"}
17610
17611# Allow CC to be a program name with arguments.
17612compiler=$CC
17613
17614
17615# Allow CC to be a program name with arguments.
17616lt_save_CC="$CC"
17617CC=${RC-"windres"}
17618compiler=$CC
17619compiler_RC=$CC
17620lt_cv_prog_compiler_c_o_RC=yes
17621
17622# The else clause should only fire when bootstrapping the
17623# libtool distribution, otherwise you forgot to ship ltmain.sh
17624# with your package, and you will get complaints that there are
17625# no rules to generate ltmain.sh.
17626if test -f "$ltmain"; then
17627  # See if we are running on zsh, and set the options which allow our commands through
17628  # without removal of \ escapes.
17629  if test -n "${ZSH_VERSION+set}" ; then
17630    setopt NO_GLOB_SUBST
17631  fi
17632  # Now quote all the things that may contain metacharacters while being
17633  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17634  # variables and quote the copies for generation of the libtool script.
17635  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17636    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17637    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17638    deplibs_check_method reload_flag reload_cmds need_locks \
17639    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17640    lt_cv_sys_global_symbol_to_c_name_address \
17641    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17642    old_postinstall_cmds old_postuninstall_cmds \
17643    compiler_RC \
17644    CC_RC \
17645    LD_RC \
17646    lt_prog_compiler_wl_RC \
17647    lt_prog_compiler_pic_RC \
17648    lt_prog_compiler_static_RC \
17649    lt_prog_compiler_no_builtin_flag_RC \
17650    export_dynamic_flag_spec_RC \
17651    thread_safe_flag_spec_RC \
17652    whole_archive_flag_spec_RC \
17653    enable_shared_with_static_runtimes_RC \
17654    old_archive_cmds_RC \
17655    old_archive_from_new_cmds_RC \
17656    predep_objects_RC \
17657    postdep_objects_RC \
17658    predeps_RC \
17659    postdeps_RC \
17660    compiler_lib_search_path_RC \
17661    archive_cmds_RC \
17662    archive_expsym_cmds_RC \
17663    postinstall_cmds_RC \
17664    postuninstall_cmds_RC \
17665    old_archive_from_expsyms_cmds_RC \
17666    allow_undefined_flag_RC \
17667    no_undefined_flag_RC \
17668    export_symbols_cmds_RC \
17669    hardcode_libdir_flag_spec_RC \
17670    hardcode_libdir_flag_spec_ld_RC \
17671    hardcode_libdir_separator_RC \
17672    hardcode_automatic_RC \
17673    module_cmds_RC \
17674    module_expsym_cmds_RC \
17675    lt_cv_prog_compiler_c_o_RC \
17676    exclude_expsyms_RC \
17677    include_expsyms_RC; do
17678
17679    case $var in
17680    old_archive_cmds_RC | \
17681    old_archive_from_new_cmds_RC | \
17682    archive_cmds_RC | \
17683    archive_expsym_cmds_RC | \
17684    module_cmds_RC | \
17685    module_expsym_cmds_RC | \
17686    old_archive_from_expsyms_cmds_RC | \
17687    export_symbols_cmds_RC | \
17688    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17689    postinstall_cmds | postuninstall_cmds | \
17690    old_postinstall_cmds | old_postuninstall_cmds | \
17691    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17692      # Double-quote double-evaled strings.
17693      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17694      ;;
17695    *)
17696      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17697      ;;
17698    esac
17699  done
17700
17701  case $lt_echo in
17702  *'\$0 --fallback-echo"')
17703    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17704    ;;
17705  esac
17706
17707cfgfile="$ofile"
17708
17709  cat <<__EOF__ >> "$cfgfile"
17710# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17711
17712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17713
17714# Shell to use when invoking shell scripts.
17715SHELL=$lt_SHELL
17716
17717# Whether or not to build shared libraries.
17718build_libtool_libs=$enable_shared
17719
17720# Whether or not to build static libraries.
17721build_old_libs=$enable_static
17722
17723# Whether or not to add -lc for building shared libraries.
17724build_libtool_need_lc=$archive_cmds_need_lc_RC
17725
17726# Whether or not to disallow shared libs when runtime libs are static
17727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17728
17729# Whether or not to optimize for fast installation.
17730fast_install=$enable_fast_install
17731
17732# The host system.
17733host_alias=$host_alias
17734host=$host
17735
17736# An echo program that does not interpret backslashes.
17737echo=$lt_echo
17738
17739# The archiver.
17740AR=$lt_AR
17741AR_FLAGS=$lt_AR_FLAGS
17742
17743# A C compiler.
17744LTCC=$lt_LTCC
17745
17746# A language-specific compiler.
17747CC=$lt_compiler_RC
17748
17749# Is the compiler the GNU C compiler?
17750with_gcc=$GCC_RC
17751
17752# An ERE matcher.
17753EGREP=$lt_EGREP
17754
17755# The linker used to build libraries.
17756LD=$lt_LD_RC
17757
17758# Whether we need hard or soft links.
17759LN_S=$lt_LN_S
17760
17761# A BSD-compatible nm program.
17762NM=$lt_NM
17763
17764# A symbol stripping program
17765STRIP=$STRIP
17766
17767# Used to examine libraries when file_magic_cmd begins "file"
17768MAGIC_CMD=$MAGIC_CMD
17769
17770# Used on cygwin: DLL creation program.
17771DLLTOOL="$DLLTOOL"
17772
17773# Used on cygwin: object dumper.
17774OBJDUMP="$OBJDUMP"
17775
17776# Used on cygwin: assembler.
17777AS="$AS"
17778
17779# The name of the directory that contains temporary libtool files.
17780objdir=$objdir
17781
17782# How to create reloadable object files.
17783reload_flag=$lt_reload_flag
17784reload_cmds=$lt_reload_cmds
17785
17786# How to pass a linker flag through the compiler.
17787wl=$lt_lt_prog_compiler_wl_RC
17788
17789# Object file suffix (normally "o").
17790objext="$ac_objext"
17791
17792# Old archive suffix (normally "a").
17793libext="$libext"
17794
17795# Shared library suffix (normally ".so").
17796shrext='$shrext'
17797
17798# Executable file suffix (normally "").
17799exeext="$exeext"
17800
17801# Additional compiler flags for building library objects.
17802pic_flag=$lt_lt_prog_compiler_pic_RC
17803pic_mode=$pic_mode
17804
17805# What is the maximum length of a command?
17806max_cmd_len=$lt_cv_sys_max_cmd_len
17807
17808# Does compiler simultaneously support -c and -o options?
17809compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17810
17811# Must we lock files when doing compilation ?
17812need_locks=$lt_need_locks
17813
17814# Do we need the lib prefix for modules?
17815need_lib_prefix=$need_lib_prefix
17816
17817# Do we need a version for libraries?
17818need_version=$need_version
17819
17820# Whether dlopen is supported.
17821dlopen_support=$enable_dlopen
17822
17823# Whether dlopen of programs is supported.
17824dlopen_self=$enable_dlopen_self
17825
17826# Whether dlopen of statically linked programs is supported.
17827dlopen_self_static=$enable_dlopen_self_static
17828
17829# Compiler flag to prevent dynamic linking.
17830link_static_flag=$lt_lt_prog_compiler_static_RC
17831
17832# Compiler flag to turn off builtin functions.
17833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17834
17835# Compiler flag to allow reflexive dlopens.
17836export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17837
17838# Compiler flag to generate shared objects directly from archives.
17839whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17840
17841# Compiler flag to generate thread-safe objects.
17842thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17843
17844# Library versioning type.
17845version_type=$version_type
17846
17847# Format of library name prefix.
17848libname_spec=$lt_libname_spec
17849
17850# List of archive names.  First name is the real one, the rest are links.
17851# The last name is the one that the linker finds with -lNAME.
17852library_names_spec=$lt_library_names_spec
17853
17854# The coded name of the library, if different from the real name.
17855soname_spec=$lt_soname_spec
17856
17857# Commands used to build and install an old-style archive.
17858RANLIB=$lt_RANLIB
17859old_archive_cmds=$lt_old_archive_cmds_RC
17860old_postinstall_cmds=$lt_old_postinstall_cmds
17861old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862
17863# Create an old-style archive from a shared archive.
17864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17865
17866# Create a temporary old-style archive to link instead of a shared archive.
17867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17868
17869# Commands used to build and install a shared archive.
17870archive_cmds=$lt_archive_cmds_RC
17871archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17872postinstall_cmds=$lt_postinstall_cmds
17873postuninstall_cmds=$lt_postuninstall_cmds
17874
17875# Commands used to build a loadable module (assumed same as above if empty)
17876module_cmds=$lt_module_cmds_RC
17877module_expsym_cmds=$lt_module_expsym_cmds_RC
17878
17879# Commands to strip libraries.
17880old_striplib=$lt_old_striplib
17881striplib=$lt_striplib
17882
17883# Dependencies to place before the objects being linked to create a
17884# shared library.
17885predep_objects=$lt_predep_objects_RC
17886
17887# Dependencies to place after the objects being linked to create a
17888# shared library.
17889postdep_objects=$lt_postdep_objects_RC
17890
17891# Dependencies to place before the objects being linked to create a
17892# shared library.
17893predeps=$lt_predeps_RC
17894
17895# Dependencies to place after the objects being linked to create a
17896# shared library.
17897postdeps=$lt_postdeps_RC
17898
17899# The library search path used internally by the compiler when linking
17900# a shared library.
17901compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17902
17903# Method to check whether dependent libraries are shared objects.
17904deplibs_check_method=$lt_deplibs_check_method
17905
17906# Command to use when deplibs_check_method == file_magic.
17907file_magic_cmd=$lt_file_magic_cmd
17908
17909# Flag that allows shared libraries with undefined symbols to be built.
17910allow_undefined_flag=$lt_allow_undefined_flag_RC
17911
17912# Flag that forces no undefined symbols.
17913no_undefined_flag=$lt_no_undefined_flag_RC
17914
17915# Commands used to finish a libtool library installation in a directory.
17916finish_cmds=$lt_finish_cmds
17917
17918# Same as above, but a single script fragment to be evaled but not shown.
17919finish_eval=$lt_finish_eval
17920
17921# Take the output of nm and produce a listing of raw symbols and C names.
17922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17923
17924# Transform the output of nm in a proper C declaration
17925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17926
17927# Transform the output of nm in a C name address pair
17928global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17929
17930# This is the shared library runtime path variable.
17931runpath_var=$runpath_var
17932
17933# This is the shared library path variable.
17934shlibpath_var=$shlibpath_var
17935
17936# Is shlibpath searched before the hard-coded library search path?
17937shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17938
17939# How to hardcode a shared library path into an executable.
17940hardcode_action=$hardcode_action_RC
17941
17942# Whether we should hardcode library paths into libraries.
17943hardcode_into_libs=$hardcode_into_libs
17944
17945# Flag to hardcode \$libdir into a binary during linking.
17946# This must work even if \$libdir does not exist.
17947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17948
17949# If ld is used when linking, flag to hardcode \$libdir into
17950# a binary during linking. This must work even if \$libdir does
17951# not exist.
17952hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17953
17954# Whether we need a single -rpath flag with a separated argument.
17955hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17956
17957# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17958# resulting binary.
17959hardcode_direct=$hardcode_direct_RC
17960
17961# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17962# resulting binary.
17963hardcode_minus_L=$hardcode_minus_L_RC
17964
17965# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17966# the resulting binary.
17967hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17968
17969# Set to yes if building a shared library automatically hardcodes DIR into the library
17970# and all subsequent libraries and executables linked against it.
17971hardcode_automatic=$hardcode_automatic_RC
17972
17973# Variables whose values should be saved in libtool wrapper scripts and
17974# restored at relink time.
17975variables_saved_for_relink="$variables_saved_for_relink"
17976
17977# Whether libtool must link a program against all its dependency libraries.
17978link_all_deplibs=$link_all_deplibs_RC
17979
17980# Compile-time system search path for libraries
17981sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17982
17983# Run-time system search path for libraries
17984sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17985
17986# Fix the shell variable \$srcfile for the compiler.
17987fix_srcfile_path="$fix_srcfile_path_RC"
17988
17989# Set to yes if exported symbols are required.
17990always_export_symbols=$always_export_symbols_RC
17991
17992# The commands to list exported symbols.
17993export_symbols_cmds=$lt_export_symbols_cmds_RC
17994
17995# The commands to extract the exported symbol list from a shared archive.
17996extract_expsyms_cmds=$lt_extract_expsyms_cmds
17997
17998# Symbols that should not be listed in the preloaded symbols.
17999exclude_expsyms=$lt_exclude_expsyms_RC
18000
18001# Symbols that must always be exported.
18002include_expsyms=$lt_include_expsyms_RC
18003
18004# ### END LIBTOOL TAG CONFIG: $tagname
18005
18006__EOF__
18007
18008
18009else
18010  # If there is no Makefile yet, we rely on a make rule to execute
18011  # `config.status --recheck' to rerun these tests and create the
18012  # libtool script then.
18013  test -f Makefile && make "$ltmain"
18014fi
18015
18016
18017ac_ext=c
18018ac_cpp='$CPP $CPPFLAGS'
18019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022
18023CC="$lt_save_CC"
18024
18025	;;
18026
18027      *)
18028	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18029echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18030   { (exit 1); exit 1; }; }
18031	;;
18032      esac
18033
18034      # Append the new tag name to the list of available tags.
18035      if test -n "$tagname" ; then
18036      available_tags="$available_tags $tagname"
18037    fi
18038    fi
18039  done
18040  IFS="$lt_save_ifs"
18041
18042  # Now substitute the updated list of available tags.
18043  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18044    mv "${ofile}T" "$ofile"
18045    chmod +x "$ofile"
18046  else
18047    rm -f "${ofile}T"
18048    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18049echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18050   { (exit 1); exit 1; }; }
18051  fi
18052fi
18053
18054
18055
18056# This can be used to rebuild libtool when needed
18057LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18058
18059# Always use our own libtool.
18060LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18061
18062# Prevent multiple expansion
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084# Extract the first word of "dot", so it can be a program name with args.
18085set dummy dot; ac_word=$2
18086echo "$as_me:$LINENO: checking for $ac_word" >&5
18087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18088if test "${ac_cv_path_DOT+set}" = set; then
18089  echo $ECHO_N "(cached) $ECHO_C" >&6
18090else
18091  case $DOT in
18092  [\\/]* | ?:[\\/]*)
18093  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18094  ;;
18095  *)
18096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097for as_dir in $PATH
18098do
18099  IFS=$as_save_IFS
18100  test -z "$as_dir" && as_dir=.
18101  for ac_exec_ext in '' $ac_executable_extensions; do
18102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18105    break 2
18106  fi
18107done
18108done
18109
18110  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18111  ;;
18112esac
18113fi
18114DOT=$ac_cv_path_DOT
18115
18116if test -n "$DOT"; then
18117  echo "$as_me:$LINENO: result: $DOT" >&5
18118echo "${ECHO_T}$DOT" >&6
18119else
18120  echo "$as_me:$LINENO: result: no" >&5
18121echo "${ECHO_T}no" >&6
18122fi
18123
18124# Extract the first word of "etags", so it can be a program name with args.
18125set dummy etags; ac_word=$2
18126echo "$as_me:$LINENO: checking for $ac_word" >&5
18127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18128if test "${ac_cv_path_ETAGS+set}" = set; then
18129  echo $ECHO_N "(cached) $ECHO_C" >&6
18130else
18131  case $ETAGS in
18132  [\\/]* | ?:[\\/]*)
18133  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18134  ;;
18135  *)
18136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18137for as_dir in $PATH
18138do
18139  IFS=$as_save_IFS
18140  test -z "$as_dir" && as_dir=.
18141  for ac_exec_ext in '' $ac_executable_extensions; do
18142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18143    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18145    break 2
18146  fi
18147done
18148done
18149
18150  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18151  ;;
18152esac
18153fi
18154ETAGS=$ac_cv_path_ETAGS
18155
18156if test -n "$ETAGS"; then
18157  echo "$as_me:$LINENO: result: $ETAGS" >&5
18158echo "${ECHO_T}$ETAGS" >&6
18159else
18160  echo "$as_me:$LINENO: result: no" >&5
18161echo "${ECHO_T}no" >&6
18162fi
18163
18164etags_version=`$ETAGS --version 2>&1`
18165case "$etags_version" in
18166	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18167	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18168	*) ETAGSFLAGS="" ;;
18169esac
18170ETAGSFLAGS=$ETAGSFLAGS
18171
18172# Extract the first word of "python", so it can be a program name with args.
18173set dummy python; ac_word=$2
18174echo "$as_me:$LINENO: checking for $ac_word" >&5
18175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18176if test "${ac_cv_path_PYTHON+set}" = set; then
18177  echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179  case $PYTHON in
18180  [\\/]* | ?:[\\/]*)
18181  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18182  ;;
18183  *)
18184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187  IFS=$as_save_IFS
18188  test -z "$as_dir" && as_dir=.
18189  for ac_exec_ext in '' $ac_executable_extensions; do
18190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193    break 2
18194  fi
18195done
18196done
18197
18198  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18199  ;;
18200esac
18201fi
18202PYTHON=$ac_cv_path_PYTHON
18203
18204if test -n "$PYTHON"; then
18205  echo "$as_me:$LINENO: result: $PYTHON" >&5
18206echo "${ECHO_T}$PYTHON" >&6
18207else
18208  echo "$as_me:$LINENO: result: no" >&5
18209echo "${ECHO_T}no" >&6
18210fi
18211
18212if test "$PYTHON" = "false"
18213then
18214	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18215echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18216fi
18217# Extract the first word of "qmtest", so it can be a program name with args.
18218set dummy qmtest; ac_word=$2
18219echo "$as_me:$LINENO: checking for $ac_word" >&5
18220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18221if test "${ac_cv_path_QMTEST+set}" = set; then
18222  echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
18224  case $QMTEST in
18225  [\\/]* | ?:[\\/]*)
18226  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18227  ;;
18228  *)
18229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18230for as_dir in $PATH
18231do
18232  IFS=$as_save_IFS
18233  test -z "$as_dir" && as_dir=.
18234  for ac_exec_ext in '' $ac_executable_extensions; do
18235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18236    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18238    break 2
18239  fi
18240done
18241done
18242
18243  test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18244  ;;
18245esac
18246fi
18247QMTEST=$ac_cv_path_QMTEST
18248
18249if test -n "$QMTEST"; then
18250  echo "$as_me:$LINENO: result: $QMTEST" >&5
18251echo "${ECHO_T}$QMTEST" >&6
18252else
18253  echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6
18255fi
18256
18257if test "$QMTEST" = "false"
18258then
18259	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18260echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18261fi
18262
18263pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18264pymajor=`echo $pyversion | cut -d. -f1`
18265pyminor=`echo $pyversion | cut -d. -f2`
18266
18267if test "$pymajor" -ge "2"
18268then
18269	if test "$pymajor" -eq "2"
18270	then
18271		if test "$pyminor" -lt "2"
18272		then
18273			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18274echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18275		fi
18276	fi
18277else
18278	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18279echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18280fi
18281
18282
18283
18284
18285echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18286echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18287if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18288  echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290  ac_check_lib_save_LIBS=$LIBS
18291LIBS="-lelf  $LIBS"
18292cat >conftest.$ac_ext <<_ACEOF
18293#line $LINENO "configure"
18294/* confdefs.h.  */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h.  */
18299
18300/* Override any gcc2 internal prototype to avoid an error.  */
18301#ifdef __cplusplus
18302extern "C"
18303#endif
18304/* We use char because int might match the return type of a gcc2
18305   builtin and then its argument prototype would still apply.  */
18306char elf_begin ();
18307int
18308main ()
18309{
18310elf_begin ();
18311  ;
18312  return 0;
18313}
18314_ACEOF
18315rm -f conftest.$ac_objext conftest$ac_exeext
18316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317  (eval $ac_link) 2>&5
18318  ac_status=$?
18319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320  (exit $ac_status); } &&
18321         { ac_try='test -s conftest$ac_exeext'
18322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323  (eval $ac_try) 2>&5
18324  ac_status=$?
18325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326  (exit $ac_status); }; }; then
18327  ac_cv_lib_elf_elf_begin=yes
18328else
18329  echo "$as_me: failed program was:" >&5
18330sed 's/^/| /' conftest.$ac_ext >&5
18331
18332ac_cv_lib_elf_elf_begin=no
18333fi
18334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18335LIBS=$ac_check_lib_save_LIBS
18336fi
18337echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18338echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18339if test $ac_cv_lib_elf_elf_begin = yes; then
18340  cat >>confdefs.h <<_ACEOF
18341#define HAVE_LIBELF 1
18342_ACEOF
18343
18344  LIBS="-lelf $LIBS"
18345
18346fi
18347
18348
18349echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18350echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18351if test "${ac_cv_search_dlopen+set}" = set; then
18352  echo $ECHO_N "(cached) $ECHO_C" >&6
18353else
18354  ac_func_search_save_LIBS=$LIBS
18355ac_cv_search_dlopen=no
18356cat >conftest.$ac_ext <<_ACEOF
18357#line $LINENO "configure"
18358/* confdefs.h.  */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h.  */
18363
18364/* Override any gcc2 internal prototype to avoid an error.  */
18365#ifdef __cplusplus
18366extern "C"
18367#endif
18368/* We use char because int might match the return type of a gcc2
18369   builtin and then its argument prototype would still apply.  */
18370char dlopen ();
18371int
18372main ()
18373{
18374dlopen ();
18375  ;
18376  return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext conftest$ac_exeext
18380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381  (eval $ac_link) 2>&5
18382  ac_status=$?
18383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384  (exit $ac_status); } &&
18385         { ac_try='test -s conftest$ac_exeext'
18386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387  (eval $ac_try) 2>&5
18388  ac_status=$?
18389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390  (exit $ac_status); }; }; then
18391  ac_cv_search_dlopen="none required"
18392else
18393  echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396fi
18397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18398if test "$ac_cv_search_dlopen" = no; then
18399  for ac_lib in dl; do
18400    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18401    cat >conftest.$ac_ext <<_ACEOF
18402#line $LINENO "configure"
18403/* confdefs.h.  */
18404_ACEOF
18405cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF
18407/* end confdefs.h.  */
18408
18409/* Override any gcc2 internal prototype to avoid an error.  */
18410#ifdef __cplusplus
18411extern "C"
18412#endif
18413/* We use char because int might match the return type of a gcc2
18414   builtin and then its argument prototype would still apply.  */
18415char dlopen ();
18416int
18417main ()
18418{
18419dlopen ();
18420  ;
18421  return 0;
18422}
18423_ACEOF
18424rm -f conftest.$ac_objext conftest$ac_exeext
18425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18426  (eval $ac_link) 2>&5
18427  ac_status=$?
18428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429  (exit $ac_status); } &&
18430         { ac_try='test -s conftest$ac_exeext'
18431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432  (eval $ac_try) 2>&5
18433  ac_status=$?
18434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435  (exit $ac_status); }; }; then
18436  ac_cv_search_dlopen="-l$ac_lib"
18437break
18438else
18439  echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442fi
18443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18444  done
18445fi
18446LIBS=$ac_func_search_save_LIBS
18447fi
18448echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18449echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18450if test "$ac_cv_search_dlopen" != no; then
18451  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18452
18453cat >>confdefs.h <<\_ACEOF
18454#define HAVE_DLOPEN 1
18455_ACEOF
18456
18457else
18458  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18459echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18460fi
18461
18462
18463echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18464echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18465if test "${ac_cv_search_mallinfo+set}" = set; then
18466  echo $ECHO_N "(cached) $ECHO_C" >&6
18467else
18468  ac_func_search_save_LIBS=$LIBS
18469ac_cv_search_mallinfo=no
18470cat >conftest.$ac_ext <<_ACEOF
18471#line $LINENO "configure"
18472/* confdefs.h.  */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h.  */
18477
18478/* Override any gcc2 internal prototype to avoid an error.  */
18479#ifdef __cplusplus
18480extern "C"
18481#endif
18482/* We use char because int might match the return type of a gcc2
18483   builtin and then its argument prototype would still apply.  */
18484char mallinfo ();
18485int
18486main ()
18487{
18488mallinfo ();
18489  ;
18490  return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495  (eval $ac_link) 2>&5
18496  ac_status=$?
18497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498  (exit $ac_status); } &&
18499         { ac_try='test -s conftest$ac_exeext'
18500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501  (eval $ac_try) 2>&5
18502  ac_status=$?
18503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504  (exit $ac_status); }; }; then
18505  ac_cv_search_mallinfo="none required"
18506else
18507  echo "$as_me: failed program was:" >&5
18508sed 's/^/| /' conftest.$ac_ext >&5
18509
18510fi
18511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18512if test "$ac_cv_search_mallinfo" = no; then
18513  for ac_lib in malloc; do
18514    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18515    cat >conftest.$ac_ext <<_ACEOF
18516#line $LINENO "configure"
18517/* confdefs.h.  */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h.  */
18522
18523/* Override any gcc2 internal prototype to avoid an error.  */
18524#ifdef __cplusplus
18525extern "C"
18526#endif
18527/* We use char because int might match the return type of a gcc2
18528   builtin and then its argument prototype would still apply.  */
18529char mallinfo ();
18530int
18531main ()
18532{
18533mallinfo ();
18534  ;
18535  return 0;
18536}
18537_ACEOF
18538rm -f conftest.$ac_objext conftest$ac_exeext
18539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540  (eval $ac_link) 2>&5
18541  ac_status=$?
18542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543  (exit $ac_status); } &&
18544         { ac_try='test -s conftest$ac_exeext'
18545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546  (eval $ac_try) 2>&5
18547  ac_status=$?
18548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549  (exit $ac_status); }; }; then
18550  ac_cv_search_mallinfo="-l$ac_lib"
18551break
18552else
18553  echo "$as_me: failed program was:" >&5
18554sed 's/^/| /' conftest.$ac_ext >&5
18555
18556fi
18557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18558  done
18559fi
18560LIBS=$ac_func_search_save_LIBS
18561fi
18562echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18563echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18564if test "$ac_cv_search_mallinfo" != no; then
18565  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18566
18567cat >>confdefs.h <<\_ACEOF
18568#define HAVE_MALLINFO 1
18569_ACEOF
18570
18571fi
18572
18573
18574echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18575echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18576if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18577  echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579  ac_func_search_save_LIBS=$LIBS
18580ac_cv_search_pthread_mutex_lock=no
18581cat >conftest.$ac_ext <<_ACEOF
18582#line $LINENO "configure"
18583/* confdefs.h.  */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h.  */
18588
18589/* Override any gcc2 internal prototype to avoid an error.  */
18590#ifdef __cplusplus
18591extern "C"
18592#endif
18593/* We use char because int might match the return type of a gcc2
18594   builtin and then its argument prototype would still apply.  */
18595char pthread_mutex_lock ();
18596int
18597main ()
18598{
18599pthread_mutex_lock ();
18600  ;
18601  return 0;
18602}
18603_ACEOF
18604rm -f conftest.$ac_objext conftest$ac_exeext
18605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606  (eval $ac_link) 2>&5
18607  ac_status=$?
18608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609  (exit $ac_status); } &&
18610         { ac_try='test -s conftest$ac_exeext'
18611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612  (eval $ac_try) 2>&5
18613  ac_status=$?
18614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615  (exit $ac_status); }; }; then
18616  ac_cv_search_pthread_mutex_lock="none required"
18617else
18618  echo "$as_me: failed program was:" >&5
18619sed 's/^/| /' conftest.$ac_ext >&5
18620
18621fi
18622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18623if test "$ac_cv_search_pthread_mutex_lock" = no; then
18624  for ac_lib in pthread; do
18625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18626    cat >conftest.$ac_ext <<_ACEOF
18627#line $LINENO "configure"
18628/* confdefs.h.  */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h.  */
18633
18634/* Override any gcc2 internal prototype to avoid an error.  */
18635#ifdef __cplusplus
18636extern "C"
18637#endif
18638/* We use char because int might match the return type of a gcc2
18639   builtin and then its argument prototype would still apply.  */
18640char pthread_mutex_lock ();
18641int
18642main ()
18643{
18644pthread_mutex_lock ();
18645  ;
18646  return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext conftest$ac_exeext
18650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651  (eval $ac_link) 2>&5
18652  ac_status=$?
18653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654  (exit $ac_status); } &&
18655         { ac_try='test -s conftest$ac_exeext'
18656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657  (eval $ac_try) 2>&5
18658  ac_status=$?
18659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660  (exit $ac_status); }; }; then
18661  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18662break
18663else
18664  echo "$as_me: failed program was:" >&5
18665sed 's/^/| /' conftest.$ac_ext >&5
18666
18667fi
18668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18669  done
18670fi
18671LIBS=$ac_func_search_save_LIBS
18672fi
18673echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18674echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18675if test "$ac_cv_search_pthread_mutex_lock" != no; then
18676  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18677
18678cat >>confdefs.h <<\_ACEOF
18679#define HAVE_PTHREAD_MUTEX_LOCK 1
18680_ACEOF
18681
18682fi
18683
18684
18685echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18686echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18687if test "${ac_cv_header_stdc+set}" = set; then
18688  echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690  cat >conftest.$ac_ext <<_ACEOF
18691#line $LINENO "configure"
18692/* confdefs.h.  */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h.  */
18697#include <stdlib.h>
18698#include <stdarg.h>
18699#include <string.h>
18700#include <float.h>
18701
18702int
18703main ()
18704{
18705
18706  ;
18707  return 0;
18708}
18709_ACEOF
18710rm -f conftest.$ac_objext
18711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712  (eval $ac_compile) 2>&5
18713  ac_status=$?
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); } &&
18716         { ac_try='test -s conftest.$ac_objext'
18717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718  (eval $ac_try) 2>&5
18719  ac_status=$?
18720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721  (exit $ac_status); }; }; then
18722  ac_cv_header_stdc=yes
18723else
18724  echo "$as_me: failed program was:" >&5
18725sed 's/^/| /' conftest.$ac_ext >&5
18726
18727ac_cv_header_stdc=no
18728fi
18729rm -f conftest.$ac_objext conftest.$ac_ext
18730
18731if test $ac_cv_header_stdc = yes; then
18732  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18733  cat >conftest.$ac_ext <<_ACEOF
18734#line $LINENO "configure"
18735/* confdefs.h.  */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h.  */
18740#include <string.h>
18741
18742_ACEOF
18743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18744  $EGREP "memchr" >/dev/null 2>&1; then
18745  :
18746else
18747  ac_cv_header_stdc=no
18748fi
18749rm -f conftest*
18750
18751fi
18752
18753if test $ac_cv_header_stdc = yes; then
18754  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18755  cat >conftest.$ac_ext <<_ACEOF
18756#line $LINENO "configure"
18757/* confdefs.h.  */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h.  */
18762#include <stdlib.h>
18763
18764_ACEOF
18765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18766  $EGREP "free" >/dev/null 2>&1; then
18767  :
18768else
18769  ac_cv_header_stdc=no
18770fi
18771rm -f conftest*
18772
18773fi
18774
18775if test $ac_cv_header_stdc = yes; then
18776  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18777  if test "$cross_compiling" = yes; then
18778  :
18779else
18780  cat >conftest.$ac_ext <<_ACEOF
18781#line $LINENO "configure"
18782/* confdefs.h.  */
18783_ACEOF
18784cat confdefs.h >>conftest.$ac_ext
18785cat >>conftest.$ac_ext <<_ACEOF
18786/* end confdefs.h.  */
18787#include <ctype.h>
18788#if ((' ' & 0x0FF) == 0x020)
18789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18791#else
18792# define ISLOWER(c) \
18793                   (('a' <= (c) && (c) <= 'i') \
18794                     || ('j' <= (c) && (c) <= 'r') \
18795                     || ('s' <= (c) && (c) <= 'z'))
18796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18797#endif
18798
18799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18800int
18801main ()
18802{
18803  int i;
18804  for (i = 0; i < 256; i++)
18805    if (XOR (islower (i), ISLOWER (i))
18806        || toupper (i) != TOUPPER (i))
18807      exit(2);
18808  exit (0);
18809}
18810_ACEOF
18811rm -f conftest$ac_exeext
18812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813  (eval $ac_link) 2>&5
18814  ac_status=$?
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818  (eval $ac_try) 2>&5
18819  ac_status=$?
18820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821  (exit $ac_status); }; }; then
18822  :
18823else
18824  echo "$as_me: program exited with status $ac_status" >&5
18825echo "$as_me: failed program was:" >&5
18826sed 's/^/| /' conftest.$ac_ext >&5
18827
18828( exit $ac_status )
18829ac_cv_header_stdc=no
18830fi
18831rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18832fi
18833fi
18834fi
18835echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18836echo "${ECHO_T}$ac_cv_header_stdc" >&6
18837if test $ac_cv_header_stdc = yes; then
18838
18839cat >>confdefs.h <<\_ACEOF
18840#define STDC_HEADERS 1
18841_ACEOF
18842
18843fi
18844
18845echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18846echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18847if test "${ac_cv_header_sys_wait_h+set}" = set; then
18848  echo $ECHO_N "(cached) $ECHO_C" >&6
18849else
18850  cat >conftest.$ac_ext <<_ACEOF
18851#line $LINENO "configure"
18852/* confdefs.h.  */
18853_ACEOF
18854cat confdefs.h >>conftest.$ac_ext
18855cat >>conftest.$ac_ext <<_ACEOF
18856/* end confdefs.h.  */
18857#include <sys/types.h>
18858#include <sys/wait.h>
18859#ifndef WEXITSTATUS
18860# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18861#endif
18862#ifndef WIFEXITED
18863# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18864#endif
18865
18866int
18867main ()
18868{
18869  int s;
18870  wait (&s);
18871  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18872  ;
18873  return 0;
18874}
18875_ACEOF
18876rm -f conftest.$ac_objext
18877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878  (eval $ac_compile) 2>&5
18879  ac_status=$?
18880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881  (exit $ac_status); } &&
18882         { ac_try='test -s conftest.$ac_objext'
18883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884  (eval $ac_try) 2>&5
18885  ac_status=$?
18886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887  (exit $ac_status); }; }; then
18888  ac_cv_header_sys_wait_h=yes
18889else
18890  echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893ac_cv_header_sys_wait_h=no
18894fi
18895rm -f conftest.$ac_objext conftest.$ac_ext
18896fi
18897echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18898echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18899if test $ac_cv_header_sys_wait_h = yes; then
18900
18901cat >>confdefs.h <<\_ACEOF
18902#define HAVE_SYS_WAIT_H 1
18903_ACEOF
18904
18905fi
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918for 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
18919do
18920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18921if eval "test \"\${$as_ac_Header+set}\" = set"; then
18922  echo "$as_me:$LINENO: checking for $ac_header" >&5
18923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18924if eval "test \"\${$as_ac_Header+set}\" = set"; then
18925  echo $ECHO_N "(cached) $ECHO_C" >&6
18926fi
18927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18929else
18930  # Is the header compilable?
18931echo "$as_me:$LINENO: checking $ac_header usability" >&5
18932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18933cat >conftest.$ac_ext <<_ACEOF
18934#line $LINENO "configure"
18935/* confdefs.h.  */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h.  */
18940$ac_includes_default
18941#include <$ac_header>
18942_ACEOF
18943rm -f conftest.$ac_objext
18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945  (eval $ac_compile) 2>&5
18946  ac_status=$?
18947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948  (exit $ac_status); } &&
18949         { ac_try='test -s conftest.$ac_objext'
18950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951  (eval $ac_try) 2>&5
18952  ac_status=$?
18953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954  (exit $ac_status); }; }; then
18955  ac_header_compiler=yes
18956else
18957  echo "$as_me: failed program was:" >&5
18958sed 's/^/| /' conftest.$ac_ext >&5
18959
18960ac_header_compiler=no
18961fi
18962rm -f conftest.$ac_objext conftest.$ac_ext
18963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18964echo "${ECHO_T}$ac_header_compiler" >&6
18965
18966# Is the header present?
18967echo "$as_me:$LINENO: checking $ac_header presence" >&5
18968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18969cat >conftest.$ac_ext <<_ACEOF
18970#line $LINENO "configure"
18971/* confdefs.h.  */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h.  */
18976#include <$ac_header>
18977_ACEOF
18978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980  ac_status=$?
18981  grep -v '^ *+' conftest.er1 >conftest.err
18982  rm -f conftest.er1
18983  cat conftest.err >&5
18984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985  (exit $ac_status); } >/dev/null; then
18986  if test -s conftest.err; then
18987    ac_cpp_err=$ac_c_preproc_warn_flag
18988  else
18989    ac_cpp_err=
18990  fi
18991else
18992  ac_cpp_err=yes
18993fi
18994if test -z "$ac_cpp_err"; then
18995  ac_header_preproc=yes
18996else
18997  echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000  ac_header_preproc=no
19001fi
19002rm -f conftest.err conftest.$ac_ext
19003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19004echo "${ECHO_T}$ac_header_preproc" >&6
19005
19006# So?  What about this header?
19007case $ac_header_compiler:$ac_header_preproc in
19008  yes:no )
19009    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19013    (
19014      cat <<\_ASBOX
19015## ------------------------------------ ##
19016## Report this to bug-autoconf@gnu.org. ##
19017## ------------------------------------ ##
19018_ASBOX
19019    ) |
19020      sed "s/^/$as_me: WARNING:     /" >&2
19021    ;;
19022  no:yes )
19023    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19029    (
19030      cat <<\_ASBOX
19031## ------------------------------------ ##
19032## Report this to bug-autoconf@gnu.org. ##
19033## ------------------------------------ ##
19034_ASBOX
19035    ) |
19036      sed "s/^/$as_me: WARNING:     /" >&2
19037    ;;
19038esac
19039echo "$as_me:$LINENO: checking for $ac_header" >&5
19040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19041if eval "test \"\${$as_ac_Header+set}\" = set"; then
19042  echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044  eval "$as_ac_Header=$ac_header_preproc"
19045fi
19046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19048
19049fi
19050if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051  cat >>confdefs.h <<_ACEOF
19052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19053_ACEOF
19054
19055fi
19056
19057done
19058
19059
19060echo "$as_me:$LINENO: checking for pid_t" >&5
19061echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19062if test "${ac_cv_type_pid_t+set}" = set; then
19063  echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065  cat >conftest.$ac_ext <<_ACEOF
19066#line $LINENO "configure"
19067/* confdefs.h.  */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h.  */
19072$ac_includes_default
19073int
19074main ()
19075{
19076if ((pid_t *) 0)
19077  return 0;
19078if (sizeof (pid_t))
19079  return 0;
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext
19085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086  (eval $ac_compile) 2>&5
19087  ac_status=$?
19088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089  (exit $ac_status); } &&
19090         { ac_try='test -s conftest.$ac_objext'
19091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092  (eval $ac_try) 2>&5
19093  ac_status=$?
19094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095  (exit $ac_status); }; }; then
19096  ac_cv_type_pid_t=yes
19097else
19098  echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101ac_cv_type_pid_t=no
19102fi
19103rm -f conftest.$ac_objext conftest.$ac_ext
19104fi
19105echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19106echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19107if test $ac_cv_type_pid_t = yes; then
19108  :
19109else
19110
19111cat >>confdefs.h <<_ACEOF
19112#define pid_t int
19113_ACEOF
19114
19115fi
19116
19117echo "$as_me:$LINENO: checking for size_t" >&5
19118echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19119if test "${ac_cv_type_size_t+set}" = set; then
19120  echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
19122  cat >conftest.$ac_ext <<_ACEOF
19123#line $LINENO "configure"
19124/* confdefs.h.  */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h.  */
19129$ac_includes_default
19130int
19131main ()
19132{
19133if ((size_t *) 0)
19134  return 0;
19135if (sizeof (size_t))
19136  return 0;
19137  ;
19138  return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext
19142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143  (eval $ac_compile) 2>&5
19144  ac_status=$?
19145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146  (exit $ac_status); } &&
19147         { ac_try='test -s conftest.$ac_objext'
19148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149  (eval $ac_try) 2>&5
19150  ac_status=$?
19151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152  (exit $ac_status); }; }; then
19153  ac_cv_type_size_t=yes
19154else
19155  echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158ac_cv_type_size_t=no
19159fi
19160rm -f conftest.$ac_objext conftest.$ac_ext
19161fi
19162echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19163echo "${ECHO_T}$ac_cv_type_size_t" >&6
19164if test $ac_cv_type_size_t = yes; then
19165  :
19166else
19167
19168cat >>confdefs.h <<_ACEOF
19169#define size_t unsigned
19170_ACEOF
19171
19172fi
19173
19174echo "$as_me:$LINENO: checking for int64_t" >&5
19175echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19176if test "${ac_cv_type_int64_t+set}" = set; then
19177  echo $ECHO_N "(cached) $ECHO_C" >&6
19178else
19179  cat >conftest.$ac_ext <<_ACEOF
19180#line $LINENO "configure"
19181/* confdefs.h.  */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h.  */
19186$ac_includes_default
19187int
19188main ()
19189{
19190if ((int64_t *) 0)
19191  return 0;
19192if (sizeof (int64_t))
19193  return 0;
19194  ;
19195  return 0;
19196}
19197_ACEOF
19198rm -f conftest.$ac_objext
19199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19200  (eval $ac_compile) 2>&5
19201  ac_status=$?
19202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); } &&
19204         { ac_try='test -s conftest.$ac_objext'
19205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206  (eval $ac_try) 2>&5
19207  ac_status=$?
19208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209  (exit $ac_status); }; }; then
19210  ac_cv_type_int64_t=yes
19211else
19212  echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215ac_cv_type_int64_t=no
19216fi
19217rm -f conftest.$ac_objext conftest.$ac_ext
19218fi
19219echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19220echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19221if test $ac_cv_type_int64_t = yes; then
19222
19223cat >>confdefs.h <<_ACEOF
19224#define HAVE_INT64_T 1
19225_ACEOF
19226
19227
19228else
19229  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19230echo "$as_me: error: Type int64_t required but not found" >&2;}
19231   { (exit 1); exit 1; }; }
19232fi
19233
19234echo "$as_me:$LINENO: checking for uint64_t" >&5
19235echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19236if test "${ac_cv_type_uint64_t+set}" = set; then
19237  echo $ECHO_N "(cached) $ECHO_C" >&6
19238else
19239  cat >conftest.$ac_ext <<_ACEOF
19240#line $LINENO "configure"
19241/* confdefs.h.  */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h.  */
19246$ac_includes_default
19247int
19248main ()
19249{
19250if ((uint64_t *) 0)
19251  return 0;
19252if (sizeof (uint64_t))
19253  return 0;
19254  ;
19255  return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext
19259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260  (eval $ac_compile) 2>&5
19261  ac_status=$?
19262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263  (exit $ac_status); } &&
19264         { ac_try='test -s conftest.$ac_objext'
19265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266  (eval $ac_try) 2>&5
19267  ac_status=$?
19268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269  (exit $ac_status); }; }; then
19270  ac_cv_type_uint64_t=yes
19271else
19272  echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275ac_cv_type_uint64_t=no
19276fi
19277rm -f conftest.$ac_objext conftest.$ac_ext
19278fi
19279echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19280echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19281if test $ac_cv_type_uint64_t = yes; then
19282
19283cat >>confdefs.h <<_ACEOF
19284#define HAVE_UINT64_T 1
19285_ACEOF
19286
19287
19288else
19289  { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19290echo "$as_me: error: Type uint64_t required but not found" >&2;}
19291   { (exit 1); exit 1; }; }
19292fi
19293
19294echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19295echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19296if test "${ac_cv_header_time+set}" = set; then
19297  echo $ECHO_N "(cached) $ECHO_C" >&6
19298else
19299  cat >conftest.$ac_ext <<_ACEOF
19300#line $LINENO "configure"
19301/* confdefs.h.  */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h.  */
19306#include <sys/types.h>
19307#include <sys/time.h>
19308#include <time.h>
19309
19310int
19311main ()
19312{
19313if ((struct tm *) 0)
19314return 0;
19315  ;
19316  return 0;
19317}
19318_ACEOF
19319rm -f conftest.$ac_objext
19320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321  (eval $ac_compile) 2>&5
19322  ac_status=$?
19323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324  (exit $ac_status); } &&
19325         { ac_try='test -s conftest.$ac_objext'
19326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327  (eval $ac_try) 2>&5
19328  ac_status=$?
19329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330  (exit $ac_status); }; }; then
19331  ac_cv_header_time=yes
19332else
19333  echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336ac_cv_header_time=no
19337fi
19338rm -f conftest.$ac_objext conftest.$ac_ext
19339fi
19340echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19341echo "${ECHO_T}$ac_cv_header_time" >&6
19342if test $ac_cv_header_time = yes; then
19343
19344cat >>confdefs.h <<\_ACEOF
19345#define TIME_WITH_SYS_TIME 1
19346_ACEOF
19347
19348fi
19349
19350echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19351echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19352if test "${ac_cv_struct_tm+set}" = set; then
19353  echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355  cat >conftest.$ac_ext <<_ACEOF
19356#line $LINENO "configure"
19357/* confdefs.h.  */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h.  */
19362#include <sys/types.h>
19363#include <time.h>
19364
19365int
19366main ()
19367{
19368struct tm *tp; tp->tm_sec;
19369  ;
19370  return 0;
19371}
19372_ACEOF
19373rm -f conftest.$ac_objext
19374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375  (eval $ac_compile) 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_struct_tm=time.h
19386else
19387  echo "$as_me: failed program was:" >&5
19388sed 's/^/| /' conftest.$ac_ext >&5
19389
19390ac_cv_struct_tm=sys/time.h
19391fi
19392rm -f conftest.$ac_objext conftest.$ac_ext
19393fi
19394echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19395echo "${ECHO_T}$ac_cv_struct_tm" >&6
19396if test $ac_cv_struct_tm = sys/time.h; then
19397
19398cat >>confdefs.h <<\_ACEOF
19399#define TM_IN_SYS_TIME 1
19400_ACEOF
19401
19402fi
19403
19404
19405
19406
19407
19408	ac_ext=c
19409ac_cpp='$CPP $CPPFLAGS'
19410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413
19414	if test "$cross_compiling" = yes; then
19415  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19416See \`config.log' for more details." >&5
19417echo "$as_me: error: cannot run test program while cross compiling
19418See \`config.log' for more details." >&2;}
19419   { (exit 1); exit 1; }; }
19420else
19421  cat >conftest.$ac_ext <<_ACEOF
19422#line $LINENO "configure"
19423/* confdefs.h.  */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h.  */
19428#include <stdio.h>
19429		                 #include <stdlib.h>
19430int
19431main ()
19432{
19433
19434		                 volatile double A, B;
19435		                 char Buffer[100];
19436		                 A = 1;
19437		                 A /= 10.0;
19438		                 sprintf(Buffer, "%a", A);
19439		                 B = atof(Buffer);
19440		                 if (A != B)
19441							 return (1);
19442		                 if (A != 0x1.999999999999ap-4)
19443							 return (1);
19444		                 return (0);
19445  ;
19446  return 0;
19447}
19448_ACEOF
19449rm -f conftest$ac_exeext
19450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19451  (eval $ac_link) 2>&5
19452  ac_status=$?
19453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456  (eval $ac_try) 2>&5
19457  ac_status=$?
19458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459  (exit $ac_status); }; }; then
19460  ac_c_printf_a=yes
19461else
19462  echo "$as_me: program exited with status $ac_status" >&5
19463echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466( exit $ac_status )
19467ac_c_printf_a=no
19468fi
19469rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19470fi
19471	ac_ext=c
19472ac_cpp='$CPP $CPPFLAGS'
19473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477	if test "$ac_c_printf_a" = "yes"; then
19478
19479cat >>confdefs.h <<\_ACEOF
19480#define HAVE_PRINTF_A 1
19481_ACEOF
19482
19483	fi
19484
19485
19486echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19487echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19488if test "${ac_cv_c_bigendian+set}" = set; then
19489  echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491  # See if sys/param.h defines the BYTE_ORDER macro.
19492cat >conftest.$ac_ext <<_ACEOF
19493#line $LINENO "configure"
19494/* confdefs.h.  */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h.  */
19499#include <sys/types.h>
19500#include <sys/param.h>
19501
19502int
19503main ()
19504{
19505#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19506 bogus endian macros
19507#endif
19508
19509  ;
19510  return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext
19514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515  (eval $ac_compile) 2>&5
19516  ac_status=$?
19517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518  (exit $ac_status); } &&
19519         { ac_try='test -s conftest.$ac_objext'
19520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521  (eval $ac_try) 2>&5
19522  ac_status=$?
19523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524  (exit $ac_status); }; }; then
19525  # It does; now see whether it defined to BIG_ENDIAN or not.
19526cat >conftest.$ac_ext <<_ACEOF
19527#line $LINENO "configure"
19528/* confdefs.h.  */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h.  */
19533#include <sys/types.h>
19534#include <sys/param.h>
19535
19536int
19537main ()
19538{
19539#if BYTE_ORDER != BIG_ENDIAN
19540 not big endian
19541#endif
19542
19543  ;
19544  return 0;
19545}
19546_ACEOF
19547rm -f conftest.$ac_objext
19548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549  (eval $ac_compile) 2>&5
19550  ac_status=$?
19551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552  (exit $ac_status); } &&
19553         { ac_try='test -s conftest.$ac_objext'
19554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555  (eval $ac_try) 2>&5
19556  ac_status=$?
19557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558  (exit $ac_status); }; }; then
19559  ac_cv_c_bigendian=yes
19560else
19561  echo "$as_me: failed program was:" >&5
19562sed 's/^/| /' conftest.$ac_ext >&5
19563
19564ac_cv_c_bigendian=no
19565fi
19566rm -f conftest.$ac_objext conftest.$ac_ext
19567else
19568  echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571# It does not; compile a test program.
19572if test "$cross_compiling" = yes; then
19573  # try to guess the endianness by grepping values into an object file
19574  ac_cv_c_bigendian=unknown
19575  cat >conftest.$ac_ext <<_ACEOF
19576#line $LINENO "configure"
19577/* confdefs.h.  */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h.  */
19582short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19583short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19584void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19585short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19586short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19587void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19588int
19589main ()
19590{
19591 _ascii (); _ebcdic ();
19592  ;
19593  return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598  (eval $ac_compile) 2>&5
19599  ac_status=$?
19600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601  (exit $ac_status); } &&
19602         { ac_try='test -s conftest.$ac_objext'
19603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604  (eval $ac_try) 2>&5
19605  ac_status=$?
19606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607  (exit $ac_status); }; }; then
19608  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19609  ac_cv_c_bigendian=yes
19610fi
19611if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19612  if test "$ac_cv_c_bigendian" = unknown; then
19613    ac_cv_c_bigendian=no
19614  else
19615    # finding both strings is unlikely to happen, but who knows?
19616    ac_cv_c_bigendian=unknown
19617  fi
19618fi
19619else
19620  echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623fi
19624rm -f conftest.$ac_objext conftest.$ac_ext
19625else
19626  cat >conftest.$ac_ext <<_ACEOF
19627#line $LINENO "configure"
19628/* confdefs.h.  */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h.  */
19633int
19634main ()
19635{
19636  /* Are we little or big endian?  From Harbison&Steele.  */
19637  union
19638  {
19639    long l;
19640    char c[sizeof (long)];
19641  } u;
19642  u.l = 1;
19643  exit (u.c[sizeof (long) - 1] == 1);
19644}
19645_ACEOF
19646rm -f conftest$ac_exeext
19647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648  (eval $ac_link) 2>&5
19649  ac_status=$?
19650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653  (eval $ac_try) 2>&5
19654  ac_status=$?
19655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656  (exit $ac_status); }; }; then
19657  ac_cv_c_bigendian=no
19658else
19659  echo "$as_me: program exited with status $ac_status" >&5
19660echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663( exit $ac_status )
19664ac_cv_c_bigendian=yes
19665fi
19666rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19667fi
19668fi
19669rm -f conftest.$ac_objext conftest.$ac_ext
19670fi
19671echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19672echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19673case $ac_cv_c_bigendian in
19674  yes)
19675    ENDIAN=big
19676 ;;
19677  no)
19678    ENDIAN=little
19679 ;;
19680  *)
19681    { { echo "$as_me:$LINENO: error: unknown endianness
19682presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19683echo "$as_me: error: unknown endianness
19684presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19685   { (exit 1); exit 1; }; } ;;
19686esac
19687
19688
19689echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19690echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19691if test "${ac_cv_cxx_namespaces+set}" = set; then
19692  echo $ECHO_N "(cached) $ECHO_C" >&6
19693else
19694
19695
19696 ac_ext=cc
19697ac_cpp='$CXXCPP $CPPFLAGS'
19698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19701
19702 cat >conftest.$ac_ext <<_ACEOF
19703#line $LINENO "configure"
19704/* confdefs.h.  */
19705_ACEOF
19706cat confdefs.h >>conftest.$ac_ext
19707cat >>conftest.$ac_ext <<_ACEOF
19708/* end confdefs.h.  */
19709namespace Outer { namespace Inner { int i = 0; }}
19710int
19711main ()
19712{
19713using namespace Outer::Inner; return i;
19714  ;
19715  return 0;
19716}
19717_ACEOF
19718rm -f conftest.$ac_objext
19719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19720  (eval $ac_compile) 2>&5
19721  ac_status=$?
19722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723  (exit $ac_status); } &&
19724         { ac_try='test -s conftest.$ac_objext'
19725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726  (eval $ac_try) 2>&5
19727  ac_status=$?
19728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729  (exit $ac_status); }; }; then
19730  ac_cv_cxx_namespaces=yes
19731else
19732  echo "$as_me: failed program was:" >&5
19733sed 's/^/| /' conftest.$ac_ext >&5
19734
19735ac_cv_cxx_namespaces=no
19736fi
19737rm -f conftest.$ac_objext conftest.$ac_ext
19738 ac_ext=c
19739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744
19745fi
19746echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19747echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19748if test "$ac_cv_cxx_namespaces" = yes; then
19749
19750cat >>confdefs.h <<\_ACEOF
19751#define HAVE_NAMESPACES
19752_ACEOF
19753
19754fi
19755
19756echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19757echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19758if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
19759  echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761
19762
19763
19764  ac_ext=cc
19765ac_cpp='$CXXCPP $CPPFLAGS'
19766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19769
19770  cat >conftest.$ac_ext <<_ACEOF
19771#line $LINENO "configure"
19772/* confdefs.h.  */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h.  */
19777#include <ext/hash_map>
19778#ifdef HAVE_NAMESPACES
19779using namespace std;
19780#endif
19781int
19782main ()
19783{
19784hash_map<int, int> t;
19785  ;
19786  return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext
19790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791  (eval $ac_compile) 2>&5
19792  ac_status=$?
19793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794  (exit $ac_status); } &&
19795         { ac_try='test -s conftest.$ac_objext'
19796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797  (eval $ac_try) 2>&5
19798  ac_status=$?
19799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800  (exit $ac_status); }; }; then
19801  ac_cv_cxx_have_std_ext_hash_map=yes
19802else
19803  echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806ac_cv_cxx_have_std_ext_hash_map=no
19807fi
19808rm -f conftest.$ac_objext conftest.$ac_ext
19809  ac_ext=c
19810ac_cpp='$CPP $CPPFLAGS'
19811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814
19815fi
19816echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19817echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19818 HAVE_STD_EXT_HASH_MAP=0
19819 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
19820 then
19821   HAVE_STD_EXT_HASH_MAP=1
19822 fi
19823
19824 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19825echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19826if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19827  echo $ECHO_N "(cached) $ECHO_C" >&6
19828else
19829
19830
19831
19832  ac_ext=cc
19833ac_cpp='$CXXCPP $CPPFLAGS'
19834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19837
19838  cat >conftest.$ac_ext <<_ACEOF
19839#line $LINENO "configure"
19840/* confdefs.h.  */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h.  */
19845#include <ext/hash_map>
19846#ifdef HAVE_NAMESPACES
19847using namespace __gnu_cxx;
19848#endif
19849int
19850main ()
19851{
19852hash_map<int,int> t;
19853  ;
19854  return 0;
19855}
19856_ACEOF
19857rm -f conftest.$ac_objext
19858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859  (eval $ac_compile) 2>&5
19860  ac_status=$?
19861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862  (exit $ac_status); } &&
19863         { ac_try='test -s conftest.$ac_objext'
19864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865  (eval $ac_try) 2>&5
19866  ac_status=$?
19867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868  (exit $ac_status); }; }; then
19869  ac_cv_cxx_have_gnu_ext_hash_map=yes
19870else
19871  echo "$as_me: failed program was:" >&5
19872sed 's/^/| /' conftest.$ac_ext >&5
19873
19874ac_cv_cxx_have_gnu_ext_hash_map=no
19875fi
19876rm -f conftest.$ac_objext conftest.$ac_ext
19877  ac_ext=c
19878ac_cpp='$CPP $CPPFLAGS'
19879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
19883fi
19884echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19885echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19886 HAVE_GNU_EXT_HASH_MAP=0
19887 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
19888 then
19889   HAVE_GNU_EXT_HASH_MAP=1
19890 fi
19891
19892 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19893echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19894if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19895  echo $ECHO_N "(cached) $ECHO_C" >&6
19896else
19897
19898
19899
19900  ac_ext=cc
19901ac_cpp='$CXXCPP $CPPFLAGS'
19902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19905
19906  cat >conftest.$ac_ext <<_ACEOF
19907#line $LINENO "configure"
19908/* confdefs.h.  */
19909_ACEOF
19910cat confdefs.h >>conftest.$ac_ext
19911cat >>conftest.$ac_ext <<_ACEOF
19912/* end confdefs.h.  */
19913#include <hash_map>
19914int
19915main ()
19916{
19917hash_map<int,int> t;
19918  ;
19919  return 0;
19920}
19921_ACEOF
19922rm -f conftest.$ac_objext
19923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924  (eval $ac_compile) 2>&5
19925  ac_status=$?
19926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927  (exit $ac_status); } &&
19928         { ac_try='test -s conftest.$ac_objext'
19929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930  (eval $ac_try) 2>&5
19931  ac_status=$?
19932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933  (exit $ac_status); }; }; then
19934  ac_cv_cxx_have_global_hash_map=yes
19935else
19936  echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939ac_cv_cxx_have_global_hash_map=no
19940fi
19941rm -f conftest.$ac_objext conftest.$ac_ext
19942  ac_ext=c
19943ac_cpp='$CPP $CPPFLAGS'
19944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946ac_compiler_gnu=$ac_cv_c_compiler_gnu
19947
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19950echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19951 HAVE_GLOBAL_HASH_MAP=0
19952 if test "$ac_cv_cxx_have_global_hash_map" = yes
19953 then
19954   HAVE_GLOBAL_HASH_MAP=1
19955 fi
19956
19957echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19958echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19959if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
19960  echo $ECHO_N "(cached) $ECHO_C" >&6
19961else
19962
19963
19964
19965  ac_ext=cc
19966ac_cpp='$CXXCPP $CPPFLAGS'
19967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19970
19971  cat >conftest.$ac_ext <<_ACEOF
19972#line $LINENO "configure"
19973/* confdefs.h.  */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h.  */
19978#include <ext/hash_set>
19979#ifdef HAVE_NAMESPACES
19980using namespace std;
19981#endif
19982int
19983main ()
19984{
19985hash_set<int> t;
19986  ;
19987  return 0;
19988}
19989_ACEOF
19990rm -f conftest.$ac_objext
19991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992  (eval $ac_compile) 2>&5
19993  ac_status=$?
19994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995  (exit $ac_status); } &&
19996         { ac_try='test -s conftest.$ac_objext'
19997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998  (eval $ac_try) 2>&5
19999  ac_status=$?
20000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001  (exit $ac_status); }; }; then
20002  ac_cv_cxx_have_std_ext_hash_set=yes
20003else
20004  echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
20007ac_cv_cxx_have_std_ext_hash_set=no
20008fi
20009rm -f conftest.$ac_objext conftest.$ac_ext
20010  ac_ext=c
20011ac_cpp='$CPP $CPPFLAGS'
20012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014ac_compiler_gnu=$ac_cv_c_compiler_gnu
20015
20016fi
20017echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20018echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20019 HAVE_STD_EXT_HASH_SET=0
20020 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20021 then
20022   HAVE_STD_EXT_HASH_SET=1
20023 fi
20024
20025 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20026echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20027if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20028  echo $ECHO_N "(cached) $ECHO_C" >&6
20029else
20030
20031
20032
20033  ac_ext=cc
20034ac_cpp='$CXXCPP $CPPFLAGS'
20035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20038
20039  cat >conftest.$ac_ext <<_ACEOF
20040#line $LINENO "configure"
20041/* confdefs.h.  */
20042_ACEOF
20043cat confdefs.h >>conftest.$ac_ext
20044cat >>conftest.$ac_ext <<_ACEOF
20045/* end confdefs.h.  */
20046#include <ext/hash_set>
20047#ifdef HAVE_NAMESPACES
20048using namespace __gnu_cxx;
20049#endif
20050int
20051main ()
20052{
20053hash_set<int> t;
20054  ;
20055  return 0;
20056}
20057_ACEOF
20058rm -f conftest.$ac_objext
20059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20060  (eval $ac_compile) 2>&5
20061  ac_status=$?
20062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063  (exit $ac_status); } &&
20064         { ac_try='test -s conftest.$ac_objext'
20065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066  (eval $ac_try) 2>&5
20067  ac_status=$?
20068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069  (exit $ac_status); }; }; then
20070  ac_cv_cxx_have_gnu_ext_hash_set=yes
20071else
20072  echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075ac_cv_cxx_have_gnu_ext_hash_set=no
20076fi
20077rm -f conftest.$ac_objext conftest.$ac_ext
20078  ac_ext=c
20079ac_cpp='$CPP $CPPFLAGS'
20080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20082ac_compiler_gnu=$ac_cv_c_compiler_gnu
20083
20084fi
20085echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20086echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20087 HAVE_GNU_EXT_HASH_SET=0
20088 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20089 then
20090   HAVE_GNU_EXT_HASH_SET=1
20091 fi
20092
20093 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20094echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20095if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20096  echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098
20099
20100
20101  ac_ext=cc
20102ac_cpp='$CXXCPP $CPPFLAGS'
20103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20106
20107  cat >conftest.$ac_ext <<_ACEOF
20108#line $LINENO "configure"
20109/* confdefs.h.  */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h.  */
20114#include <hash_set>
20115int
20116main ()
20117{
20118hash_set<int> t; return 0;
20119  ;
20120  return 0;
20121}
20122_ACEOF
20123rm -f conftest.$ac_objext
20124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20125  (eval $ac_compile) 2>&5
20126  ac_status=$?
20127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128  (exit $ac_status); } &&
20129         { ac_try='test -s conftest.$ac_objext'
20130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131  (eval $ac_try) 2>&5
20132  ac_status=$?
20133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134  (exit $ac_status); }; }; then
20135  ac_cv_cxx_have_global_hash_set=yes
20136else
20137  echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140ac_cv_cxx_have_global_hash_set=no
20141fi
20142rm -f conftest.$ac_objext conftest.$ac_ext
20143  ac_ext=c
20144ac_cpp='$CPP $CPPFLAGS'
20145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20147ac_compiler_gnu=$ac_cv_c_compiler_gnu
20148
20149fi
20150echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20151echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20152 HAVE_GLOBAL_HASH_SET=0
20153 if test "$ac_cv_cxx_have_global_hash_set" = yes
20154 then
20155   HAVE_GLOBAL_HASH_SET=1
20156 fi
20157
20158echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20159echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20160if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20161  echo $ECHO_N "(cached) $ECHO_C" >&6
20162else
20163
20164
20165
20166  ac_ext=cc
20167ac_cpp='$CXXCPP $CPPFLAGS'
20168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20171
20172  cat >conftest.$ac_ext <<_ACEOF
20173#line $LINENO "configure"
20174/* confdefs.h.  */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h.  */
20179#include <ext/slist>
20180#ifdef HAVE_NAMESPACES
20181using namespace std;
20182#endif
20183int
20184main ()
20185{
20186slist<int> s; return 0;
20187  ;
20188  return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20193  (eval $ac_compile) 2>&5
20194  ac_status=$?
20195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196  (exit $ac_status); } &&
20197         { ac_try='test -s conftest.$ac_objext'
20198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199  (eval $ac_try) 2>&5
20200  ac_status=$?
20201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202  (exit $ac_status); }; }; then
20203  ac_cv_cxx_have_ext_slist=std
20204else
20205  echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208ac_cv_cxx_have_ext_slist=no
20209fi
20210rm -f conftest.$ac_objext conftest.$ac_ext
20211  cat >conftest.$ac_ext <<_ACEOF
20212#line $LINENO "configure"
20213/* confdefs.h.  */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h.  */
20218#include <ext/slist>
20219#ifdef HAVE_NAMESPACES
20220using namespace __gnu_cxx;
20221#endif
20222int
20223main ()
20224{
20225slist<int> s; return 0;
20226  ;
20227  return 0;
20228}
20229_ACEOF
20230rm -f conftest.$ac_objext
20231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232  (eval $ac_compile) 2>&5
20233  ac_status=$?
20234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235  (exit $ac_status); } &&
20236         { ac_try='test -s conftest.$ac_objext'
20237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238  (eval $ac_try) 2>&5
20239  ac_status=$?
20240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241  (exit $ac_status); }; }; then
20242  ac_cv_cxx_have_ext_slist=gnu
20243else
20244  echo "$as_me: failed program was:" >&5
20245sed 's/^/| /' conftest.$ac_ext >&5
20246
20247ac_cv_cxx_have_ext_slist=no
20248fi
20249rm -f conftest.$ac_objext conftest.$ac_ext
20250
20251  ac_ext=c
20252ac_cpp='$CPP $CPPFLAGS'
20253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20255ac_compiler_gnu=$ac_cv_c_compiler_gnu
20256
20257
20258fi
20259echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20260echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20261if test "$ac_cv_cxx_have_ext_slist" = std; then
20262
20263cat >>confdefs.h <<\_ACEOF
20264#define HAVE_EXT_SLIST std
20265_ACEOF
20266
20267fi
20268if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20269
20270cat >>confdefs.h <<\_ACEOF
20271#define HAVE_EXT_SLIST gnu
20272_ACEOF
20273
20274fi
20275
20276echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20277echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20278if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20279  echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281
20282
20283
20284  ac_ext=cc
20285ac_cpp='$CXXCPP $CPPFLAGS'
20286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20289
20290  cat >conftest.$ac_ext <<_ACEOF
20291#line $LINENO "configure"
20292/* confdefs.h.  */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h.  */
20297#include <iterator>
20298#ifdef HAVE_NAMESPACES
20299using namespace std;
20300#endif
20301int
20302main ()
20303{
20304iterator<int,int,int> t; return 0;
20305  ;
20306  return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext
20310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20311  (eval $ac_compile) 2>&5
20312  ac_status=$?
20313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314  (exit $ac_status); } &&
20315         { ac_try='test -s conftest.$ac_objext'
20316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317  (eval $ac_try) 2>&5
20318  ac_status=$?
20319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320  (exit $ac_status); }; }; then
20321  ac_cv_cxx_have_std_iterator=yes
20322else
20323  echo "$as_me: failed program was:" >&5
20324sed 's/^/| /' conftest.$ac_ext >&5
20325
20326ac_cv_cxx_have_std_iterator=no
20327fi
20328rm -f conftest.$ac_objext conftest.$ac_ext
20329  ac_ext=c
20330ac_cpp='$CPP $CPPFLAGS'
20331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20333ac_compiler_gnu=$ac_cv_c_compiler_gnu
20334
20335
20336fi
20337echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20338echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20339HAVE_STD_ITERATOR=0
20340if test "$ac_cv_cxx_have_std_iterator" = yes
20341then
20342   HAVE_STD_ITERATOR=1
20343fi
20344
20345echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20346echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20347if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20348  echo $ECHO_N "(cached) $ECHO_C" >&6
20349else
20350
20351
20352
20353  ac_ext=cc
20354ac_cpp='$CXXCPP $CPPFLAGS'
20355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358
20359  cat >conftest.$ac_ext <<_ACEOF
20360#line $LINENO "configure"
20361/* confdefs.h.  */
20362_ACEOF
20363cat confdefs.h >>conftest.$ac_ext
20364cat >>conftest.$ac_ext <<_ACEOF
20365/* end confdefs.h.  */
20366#include <iterator>
20367#ifdef HAVE_NAMESPACES
20368using namespace std;
20369#endif
20370int
20371main ()
20372{
20373bidirectional_iterator<int,int> t; return 0;
20374  ;
20375  return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20380  (eval $ac_compile) 2>&5
20381  ac_status=$?
20382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383  (exit $ac_status); } &&
20384         { ac_try='test -s conftest.$ac_objext'
20385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386  (eval $ac_try) 2>&5
20387  ac_status=$?
20388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389  (exit $ac_status); }; }; then
20390  ac_cv_cxx_have_bi_iterator=yes
20391else
20392  echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395ac_cv_cxx_have_bi_iterator=no
20396fi
20397rm -f conftest.$ac_objext conftest.$ac_ext
20398  ac_ext=c
20399ac_cpp='$CPP $CPPFLAGS'
20400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20402ac_compiler_gnu=$ac_cv_c_compiler_gnu
20403
20404
20405fi
20406echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20407echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20408HAVE_BI_ITERATOR=0
20409if test "$ac_cv_cxx_have_bi_iterator" = yes
20410then
20411   HAVE_BI_ITERATOR=1
20412fi
20413
20414echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20415echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20416if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20417  echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419
20420
20421
20422  ac_ext=cc
20423ac_cpp='$CXXCPP $CPPFLAGS'
20424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20427
20428  cat >conftest.$ac_ext <<_ACEOF
20429#line $LINENO "configure"
20430/* confdefs.h.  */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h.  */
20435#include <iterator>
20436#ifdef HAVE_NAMESPACES
20437using namespace std;
20438#endif
20439int
20440main ()
20441{
20442forward_iterator<int,int> t; return 0;
20443  ;
20444  return 0;
20445}
20446_ACEOF
20447rm -f conftest.$ac_objext
20448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20449  (eval $ac_compile) 2>&5
20450  ac_status=$?
20451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452  (exit $ac_status); } &&
20453         { ac_try='test -s conftest.$ac_objext'
20454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455  (eval $ac_try) 2>&5
20456  ac_status=$?
20457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458  (exit $ac_status); }; }; then
20459  ac_cv_cxx_have_fwd_iterator=yes
20460else
20461  echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464ac_cv_cxx_have_fwd_iterator=no
20465fi
20466rm -f conftest.$ac_objext conftest.$ac_ext
20467  ac_ext=c
20468ac_cpp='$CPP $CPPFLAGS'
20469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20471ac_compiler_gnu=$ac_cv_c_compiler_gnu
20472
20473
20474fi
20475echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20476echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20477HAVE_FWD_ITERATOR=0
20478if test "$ac_cv_cxx_have_fwd_iterator" = yes
20479then
20480   HAVE_FWD_ITERATOR=1
20481fi
20482
20483
20484# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20485# for constant arguments.  Useless!
20486echo "$as_me:$LINENO: checking for working alloca.h" >&5
20487echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20488if test "${ac_cv_working_alloca_h+set}" = set; then
20489  echo $ECHO_N "(cached) $ECHO_C" >&6
20490else
20491  cat >conftest.$ac_ext <<_ACEOF
20492#line $LINENO "configure"
20493/* confdefs.h.  */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h.  */
20498#include <alloca.h>
20499int
20500main ()
20501{
20502char *p = (char *) alloca (2 * sizeof (int));
20503  ;
20504  return 0;
20505}
20506_ACEOF
20507rm -f conftest.$ac_objext conftest$ac_exeext
20508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20509  (eval $ac_link) 2>&5
20510  ac_status=$?
20511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512  (exit $ac_status); } &&
20513         { ac_try='test -s conftest$ac_exeext'
20514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515  (eval $ac_try) 2>&5
20516  ac_status=$?
20517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518  (exit $ac_status); }; }; then
20519  ac_cv_working_alloca_h=yes
20520else
20521  echo "$as_me: failed program was:" >&5
20522sed 's/^/| /' conftest.$ac_ext >&5
20523
20524ac_cv_working_alloca_h=no
20525fi
20526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20527fi
20528echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20529echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20530if test $ac_cv_working_alloca_h = yes; then
20531
20532cat >>confdefs.h <<\_ACEOF
20533#define HAVE_ALLOCA_H 1
20534_ACEOF
20535
20536fi
20537
20538echo "$as_me:$LINENO: checking for alloca" >&5
20539echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20540if test "${ac_cv_func_alloca_works+set}" = set; then
20541  echo $ECHO_N "(cached) $ECHO_C" >&6
20542else
20543  cat >conftest.$ac_ext <<_ACEOF
20544#line $LINENO "configure"
20545/* confdefs.h.  */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h.  */
20550#ifdef __GNUC__
20551# define alloca __builtin_alloca
20552#else
20553# ifdef _MSC_VER
20554#  include <malloc.h>
20555#  define alloca _alloca
20556# else
20557#  if HAVE_ALLOCA_H
20558#   include <alloca.h>
20559#  else
20560#   ifdef _AIX
20561 #pragma alloca
20562#   else
20563#    ifndef alloca /* predefined by HP cc +Olibcalls */
20564char *alloca ();
20565#    endif
20566#   endif
20567#  endif
20568# endif
20569#endif
20570
20571int
20572main ()
20573{
20574char *p = (char *) alloca (1);
20575  ;
20576  return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext conftest$ac_exeext
20580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20581  (eval $ac_link) 2>&5
20582  ac_status=$?
20583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584  (exit $ac_status); } &&
20585         { ac_try='test -s conftest$ac_exeext'
20586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587  (eval $ac_try) 2>&5
20588  ac_status=$?
20589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590  (exit $ac_status); }; }; then
20591  ac_cv_func_alloca_works=yes
20592else
20593  echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596ac_cv_func_alloca_works=no
20597fi
20598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20599fi
20600echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20601echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20602
20603if test $ac_cv_func_alloca_works = yes; then
20604
20605cat >>confdefs.h <<\_ACEOF
20606#define HAVE_ALLOCA 1
20607_ACEOF
20608
20609else
20610  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20611# that cause trouble.  Some versions do not even contain alloca or
20612# contain a buggy version.  If you still want to use their alloca,
20613# use ar to extract alloca.o from them instead of compiling alloca.c.
20614
20615ALLOCA=alloca.$ac_objext
20616
20617cat >>confdefs.h <<\_ACEOF
20618#define C_ALLOCA 1
20619_ACEOF
20620
20621
20622echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20623echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20624if test "${ac_cv_os_cray+set}" = set; then
20625  echo $ECHO_N "(cached) $ECHO_C" >&6
20626else
20627  cat >conftest.$ac_ext <<_ACEOF
20628#line $LINENO "configure"
20629/* confdefs.h.  */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
20633/* end confdefs.h.  */
20634#if defined(CRAY) && ! defined(CRAY2)
20635webecray
20636#else
20637wenotbecray
20638#endif
20639
20640_ACEOF
20641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20642  $EGREP "webecray" >/dev/null 2>&1; then
20643  ac_cv_os_cray=yes
20644else
20645  ac_cv_os_cray=no
20646fi
20647rm -f conftest*
20648
20649fi
20650echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20651echo "${ECHO_T}$ac_cv_os_cray" >&6
20652if test $ac_cv_os_cray = yes; then
20653  for ac_func in _getb67 GETB67 getb67; do
20654    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20655echo "$as_me:$LINENO: checking for $ac_func" >&5
20656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20657if eval "test \"\${$as_ac_var+set}\" = set"; then
20658  echo $ECHO_N "(cached) $ECHO_C" >&6
20659else
20660  cat >conftest.$ac_ext <<_ACEOF
20661#line $LINENO "configure"
20662/* confdefs.h.  */
20663_ACEOF
20664cat confdefs.h >>conftest.$ac_ext
20665cat >>conftest.$ac_ext <<_ACEOF
20666/* end confdefs.h.  */
20667/* System header to define __stub macros and hopefully few prototypes,
20668    which can conflict with char $ac_func (); below.
20669    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20670    <limits.h> exists even on freestanding compilers.  */
20671#ifdef __STDC__
20672# include <limits.h>
20673#else
20674# include <assert.h>
20675#endif
20676/* Override any gcc2 internal prototype to avoid an error.  */
20677#ifdef __cplusplus
20678extern "C"
20679{
20680#endif
20681/* We use char because int might match the return type of a gcc2
20682   builtin and then its argument prototype would still apply.  */
20683char $ac_func ();
20684/* The GNU C library defines this for functions which it implements
20685    to always fail with ENOSYS.  Some functions are actually named
20686    something starting with __ and the normal name is an alias.  */
20687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20688choke me
20689#else
20690char (*f) () = $ac_func;
20691#endif
20692#ifdef __cplusplus
20693}
20694#endif
20695
20696int
20697main ()
20698{
20699return f != $ac_func;
20700  ;
20701  return 0;
20702}
20703_ACEOF
20704rm -f conftest.$ac_objext conftest$ac_exeext
20705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706  (eval $ac_link) 2>&5
20707  ac_status=$?
20708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709  (exit $ac_status); } &&
20710         { ac_try='test -s conftest$ac_exeext'
20711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712  (eval $ac_try) 2>&5
20713  ac_status=$?
20714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715  (exit $ac_status); }; }; then
20716  eval "$as_ac_var=yes"
20717else
20718  echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721eval "$as_ac_var=no"
20722fi
20723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20724fi
20725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20727if test `eval echo '${'$as_ac_var'}'` = yes; then
20728
20729cat >>confdefs.h <<_ACEOF
20730#define CRAY_STACKSEG_END $ac_func
20731_ACEOF
20732
20733    break
20734fi
20735
20736  done
20737fi
20738
20739echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20740echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20741if test "${ac_cv_c_stack_direction+set}" = set; then
20742  echo $ECHO_N "(cached) $ECHO_C" >&6
20743else
20744  if test "$cross_compiling" = yes; then
20745  ac_cv_c_stack_direction=0
20746else
20747  cat >conftest.$ac_ext <<_ACEOF
20748#line $LINENO "configure"
20749/* confdefs.h.  */
20750_ACEOF
20751cat confdefs.h >>conftest.$ac_ext
20752cat >>conftest.$ac_ext <<_ACEOF
20753/* end confdefs.h.  */
20754int
20755find_stack_direction ()
20756{
20757  static char *addr = 0;
20758  auto char dummy;
20759  if (addr == 0)
20760    {
20761      addr = &dummy;
20762      return find_stack_direction ();
20763    }
20764  else
20765    return (&dummy > addr) ? 1 : -1;
20766}
20767
20768int
20769main ()
20770{
20771  exit (find_stack_direction () < 0);
20772}
20773_ACEOF
20774rm -f conftest$ac_exeext
20775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20776  (eval $ac_link) 2>&5
20777  ac_status=$?
20778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781  (eval $ac_try) 2>&5
20782  ac_status=$?
20783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784  (exit $ac_status); }; }; then
20785  ac_cv_c_stack_direction=1
20786else
20787  echo "$as_me: program exited with status $ac_status" >&5
20788echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791( exit $ac_status )
20792ac_cv_c_stack_direction=-1
20793fi
20794rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20795fi
20796fi
20797echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20798echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20799
20800cat >>confdefs.h <<_ACEOF
20801#define STACK_DIRECTION $ac_cv_c_stack_direction
20802_ACEOF
20803
20804
20805fi
20806
20807
20808
20809for ac_header in stdlib.h unistd.h
20810do
20811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20812if eval "test \"\${$as_ac_Header+set}\" = set"; then
20813  echo "$as_me:$LINENO: checking for $ac_header" >&5
20814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20815if eval "test \"\${$as_ac_Header+set}\" = set"; then
20816  echo $ECHO_N "(cached) $ECHO_C" >&6
20817fi
20818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20820else
20821  # Is the header compilable?
20822echo "$as_me:$LINENO: checking $ac_header usability" >&5
20823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20824cat >conftest.$ac_ext <<_ACEOF
20825#line $LINENO "configure"
20826/* confdefs.h.  */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h.  */
20831$ac_includes_default
20832#include <$ac_header>
20833_ACEOF
20834rm -f conftest.$ac_objext
20835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20836  (eval $ac_compile) 2>&5
20837  ac_status=$?
20838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839  (exit $ac_status); } &&
20840         { ac_try='test -s conftest.$ac_objext'
20841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842  (eval $ac_try) 2>&5
20843  ac_status=$?
20844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845  (exit $ac_status); }; }; then
20846  ac_header_compiler=yes
20847else
20848  echo "$as_me: failed program was:" >&5
20849sed 's/^/| /' conftest.$ac_ext >&5
20850
20851ac_header_compiler=no
20852fi
20853rm -f conftest.$ac_objext conftest.$ac_ext
20854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20855echo "${ECHO_T}$ac_header_compiler" >&6
20856
20857# Is the header present?
20858echo "$as_me:$LINENO: checking $ac_header presence" >&5
20859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20860cat >conftest.$ac_ext <<_ACEOF
20861#line $LINENO "configure"
20862/* confdefs.h.  */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h.  */
20867#include <$ac_header>
20868_ACEOF
20869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20871  ac_status=$?
20872  grep -v '^ *+' conftest.er1 >conftest.err
20873  rm -f conftest.er1
20874  cat conftest.err >&5
20875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876  (exit $ac_status); } >/dev/null; then
20877  if test -s conftest.err; then
20878    ac_cpp_err=$ac_c_preproc_warn_flag
20879  else
20880    ac_cpp_err=
20881  fi
20882else
20883  ac_cpp_err=yes
20884fi
20885if test -z "$ac_cpp_err"; then
20886  ac_header_preproc=yes
20887else
20888  echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891  ac_header_preproc=no
20892fi
20893rm -f conftest.err conftest.$ac_ext
20894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20895echo "${ECHO_T}$ac_header_preproc" >&6
20896
20897# So?  What about this header?
20898case $ac_header_compiler:$ac_header_preproc in
20899  yes:no )
20900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20904    (
20905      cat <<\_ASBOX
20906## ------------------------------------ ##
20907## Report this to bug-autoconf@gnu.org. ##
20908## ------------------------------------ ##
20909_ASBOX
20910    ) |
20911      sed "s/^/$as_me: WARNING:     /" >&2
20912    ;;
20913  no:yes )
20914    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20916    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20918    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20920    (
20921      cat <<\_ASBOX
20922## ------------------------------------ ##
20923## Report this to bug-autoconf@gnu.org. ##
20924## ------------------------------------ ##
20925_ASBOX
20926    ) |
20927      sed "s/^/$as_me: WARNING:     /" >&2
20928    ;;
20929esac
20930echo "$as_me:$LINENO: checking for $ac_header" >&5
20931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20932if eval "test \"\${$as_ac_Header+set}\" = set"; then
20933  echo $ECHO_N "(cached) $ECHO_C" >&6
20934else
20935  eval "$as_ac_Header=$ac_header_preproc"
20936fi
20937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20939
20940fi
20941if test `eval echo '${'$as_ac_Header'}'` = yes; then
20942  cat >>confdefs.h <<_ACEOF
20943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20944_ACEOF
20945
20946fi
20947
20948done
20949
20950
20951for ac_func in getpagesize
20952do
20953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954echo "$as_me:$LINENO: checking for $ac_func" >&5
20955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20956if eval "test \"\${$as_ac_var+set}\" = set"; then
20957  echo $ECHO_N "(cached) $ECHO_C" >&6
20958else
20959  cat >conftest.$ac_ext <<_ACEOF
20960#line $LINENO "configure"
20961/* confdefs.h.  */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h.  */
20966/* System header to define __stub macros and hopefully few prototypes,
20967    which can conflict with char $ac_func (); below.
20968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20969    <limits.h> exists even on freestanding compilers.  */
20970#ifdef __STDC__
20971# include <limits.h>
20972#else
20973# include <assert.h>
20974#endif
20975/* Override any gcc2 internal prototype to avoid an error.  */
20976#ifdef __cplusplus
20977extern "C"
20978{
20979#endif
20980/* We use char because int might match the return type of a gcc2
20981   builtin and then its argument prototype would still apply.  */
20982char $ac_func ();
20983/* The GNU C library defines this for functions which it implements
20984    to always fail with ENOSYS.  Some functions are actually named
20985    something starting with __ and the normal name is an alias.  */
20986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20987choke me
20988#else
20989char (*f) () = $ac_func;
20990#endif
20991#ifdef __cplusplus
20992}
20993#endif
20994
20995int
20996main ()
20997{
20998return f != $ac_func;
20999  ;
21000  return 0;
21001}
21002_ACEOF
21003rm -f conftest.$ac_objext conftest$ac_exeext
21004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005  (eval $ac_link) 2>&5
21006  ac_status=$?
21007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008  (exit $ac_status); } &&
21009         { ac_try='test -s conftest$ac_exeext'
21010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011  (eval $ac_try) 2>&5
21012  ac_status=$?
21013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014  (exit $ac_status); }; }; then
21015  eval "$as_ac_var=yes"
21016else
21017  echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020eval "$as_ac_var=no"
21021fi
21022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21023fi
21024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026if test `eval echo '${'$as_ac_var'}'` = yes; then
21027  cat >>confdefs.h <<_ACEOF
21028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029_ACEOF
21030
21031fi
21032done
21033
21034echo "$as_me:$LINENO: checking for working mmap" >&5
21035echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21036if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21037  echo $ECHO_N "(cached) $ECHO_C" >&6
21038else
21039  if test "$cross_compiling" = yes; then
21040  ac_cv_func_mmap_fixed_mapped=no
21041else
21042  cat >conftest.$ac_ext <<_ACEOF
21043#line $LINENO "configure"
21044/* confdefs.h.  */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h.  */
21049$ac_includes_default
21050/* malloc might have been renamed as rpl_malloc. */
21051#undef malloc
21052
21053/* Thanks to Mike Haertel and Jim Avera for this test.
21054   Here is a matrix of mmap possibilities:
21055	mmap private not fixed
21056	mmap private fixed at somewhere currently unmapped
21057	mmap private fixed at somewhere already mapped
21058	mmap shared not fixed
21059	mmap shared fixed at somewhere currently unmapped
21060	mmap shared fixed at somewhere already mapped
21061   For private mappings, we should verify that changes cannot be read()
21062   back from the file, nor mmap's back from the file at a different
21063   address.  (There have been systems where private was not correctly
21064   implemented like the infamous i386 svr4.0, and systems where the
21065   VM page cache was not coherent with the file system buffer cache
21066   like early versions of FreeBSD and possibly contemporary NetBSD.)
21067   For shared mappings, we should conversely verify that changes get
21068   propagated back to all the places they're supposed to be.
21069
21070   Grep wants private fixed already mapped.
21071   The main things grep needs to know about mmap are:
21072   * does it exist and is it safe to write into the mmap'd area
21073   * how to use it (BSD variants)  */
21074
21075#include <fcntl.h>
21076#include <sys/mman.h>
21077
21078#if !STDC_HEADERS && !HAVE_STDLIB_H
21079char *malloc ();
21080#endif
21081
21082/* This mess was copied from the GNU getpagesize.h.  */
21083#if !HAVE_GETPAGESIZE
21084/* Assume that all systems that can run configure have sys/param.h.  */
21085# if !HAVE_SYS_PARAM_H
21086#  define HAVE_SYS_PARAM_H 1
21087# endif
21088
21089# ifdef _SC_PAGESIZE
21090#  define getpagesize() sysconf(_SC_PAGESIZE)
21091# else /* no _SC_PAGESIZE */
21092#  if HAVE_SYS_PARAM_H
21093#   include <sys/param.h>
21094#   ifdef EXEC_PAGESIZE
21095#    define getpagesize() EXEC_PAGESIZE
21096#   else /* no EXEC_PAGESIZE */
21097#    ifdef NBPG
21098#     define getpagesize() NBPG * CLSIZE
21099#     ifndef CLSIZE
21100#      define CLSIZE 1
21101#     endif /* no CLSIZE */
21102#    else /* no NBPG */
21103#     ifdef NBPC
21104#      define getpagesize() NBPC
21105#     else /* no NBPC */
21106#      ifdef PAGESIZE
21107#       define getpagesize() PAGESIZE
21108#      endif /* PAGESIZE */
21109#     endif /* no NBPC */
21110#    endif /* no NBPG */
21111#   endif /* no EXEC_PAGESIZE */
21112#  else /* no HAVE_SYS_PARAM_H */
21113#   define getpagesize() 8192	/* punt totally */
21114#  endif /* no HAVE_SYS_PARAM_H */
21115# endif /* no _SC_PAGESIZE */
21116
21117#endif /* no HAVE_GETPAGESIZE */
21118
21119int
21120main ()
21121{
21122  char *data, *data2, *data3;
21123  int i, pagesize;
21124  int fd;
21125
21126  pagesize = getpagesize ();
21127
21128  /* First, make a file with some known garbage in it. */
21129  data = (char *) malloc (pagesize);
21130  if (!data)
21131    exit (1);
21132  for (i = 0; i < pagesize; ++i)
21133    *(data + i) = rand ();
21134  umask (0);
21135  fd = creat ("conftest.mmap", 0600);
21136  if (fd < 0)
21137    exit (1);
21138  if (write (fd, data, pagesize) != pagesize)
21139    exit (1);
21140  close (fd);
21141
21142  /* Next, try to mmap the file at a fixed address which already has
21143     something else allocated at it.  If we can, also make sure that
21144     we see the same garbage.  */
21145  fd = open ("conftest.mmap", O_RDWR);
21146  if (fd < 0)
21147    exit (1);
21148  data2 = (char *) malloc (2 * pagesize);
21149  if (!data2)
21150    exit (1);
21151  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21152  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21153                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21154    exit (1);
21155  for (i = 0; i < pagesize; ++i)
21156    if (*(data + i) != *(data2 + i))
21157      exit (1);
21158
21159  /* Finally, make sure that changes to the mapped area do not
21160     percolate back to the file as seen by read().  (This is a bug on
21161     some variants of i386 svr4.0.)  */
21162  for (i = 0; i < pagesize; ++i)
21163    *(data2 + i) = *(data2 + i) + 1;
21164  data3 = (char *) malloc (pagesize);
21165  if (!data3)
21166    exit (1);
21167  if (read (fd, data3, pagesize) != pagesize)
21168    exit (1);
21169  for (i = 0; i < pagesize; ++i)
21170    if (*(data + i) != *(data3 + i))
21171      exit (1);
21172  close (fd);
21173  exit (0);
21174}
21175_ACEOF
21176rm -f conftest$ac_exeext
21177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21178  (eval $ac_link) 2>&5
21179  ac_status=$?
21180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183  (eval $ac_try) 2>&5
21184  ac_status=$?
21185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186  (exit $ac_status); }; }; then
21187  ac_cv_func_mmap_fixed_mapped=yes
21188else
21189  echo "$as_me: program exited with status $ac_status" >&5
21190echo "$as_me: failed program was:" >&5
21191sed 's/^/| /' conftest.$ac_ext >&5
21192
21193( exit $ac_status )
21194ac_cv_func_mmap_fixed_mapped=no
21195fi
21196rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21197fi
21198fi
21199echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21200echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21201if test $ac_cv_func_mmap_fixed_mapped = yes; then
21202
21203cat >>confdefs.h <<\_ACEOF
21204#define HAVE_MMAP 1
21205_ACEOF
21206
21207fi
21208rm -f conftest.mmap
21209
21210if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21211then
21212	{ { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21213echo "$as_me: error: mmap() required but not found" >&2;}
21214   { (exit 1); exit 1; }; }
21215fi
21216echo "$as_me:$LINENO: checking for mmap of files" >&5
21217echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21218if test "${ac_cv_func_mmap_file+set}" = set; then
21219  echo $ECHO_N "(cached) $ECHO_C" >&6
21220else
21221
21222
21223  ac_ext=c
21224ac_cpp='$CPP $CPPFLAGS'
21225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21227ac_compiler_gnu=$ac_cv_c_compiler_gnu
21228
21229  if test "$cross_compiling" = yes; then
21230  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21231See \`config.log' for more details." >&5
21232echo "$as_me: error: cannot run test program while cross compiling
21233See \`config.log' for more details." >&2;}
21234   { (exit 1); exit 1; }; }
21235else
21236  cat >conftest.$ac_ext <<_ACEOF
21237#line $LINENO "configure"
21238/* confdefs.h.  */
21239_ACEOF
21240cat confdefs.h >>conftest.$ac_ext
21241cat >>conftest.$ac_ext <<_ACEOF
21242/* end confdefs.h.  */
21243
21244#ifdef HAVE_SYS_TYPES_H
21245#include <sys/types.h>
21246#endif
21247
21248#ifdef HAVE_SYS_MMAN_H
21249#include <sys/mman.h>
21250#endif
21251
21252#ifdef HAVE_FCNTL_H
21253#include <fcntl.h>
21254#endif
21255
21256  int fd;
21257  int main () {
21258  fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21259_ACEOF
21260rm -f conftest$ac_exeext
21261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21262  (eval $ac_link) 2>&5
21263  ac_status=$?
21264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267  (eval $ac_try) 2>&5
21268  ac_status=$?
21269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270  (exit $ac_status); }; }; then
21271  ac_cv_func_mmap_file=yes
21272else
21273  echo "$as_me: program exited with status $ac_status" >&5
21274echo "$as_me: failed program was:" >&5
21275sed 's/^/| /' conftest.$ac_ext >&5
21276
21277( exit $ac_status )
21278ac_cv_func_mmap_file=no
21279fi
21280rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21281fi
21282  ac_ext=c
21283ac_cpp='$CPP $CPPFLAGS'
21284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286ac_compiler_gnu=$ac_cv_c_compiler_gnu
21287
21288
21289fi
21290echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21291echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21292if test "$ac_cv_func_mmap_file" = yes; then
21293
21294cat >>confdefs.h <<\_ACEOF
21295#define HAVE_MMAP_FILE
21296_ACEOF
21297
21298   MMAP_FILE=yes
21299
21300fi
21301
21302if test "$ac_cv_func_mmap_file" = "no"
21303then
21304	{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21305echo "$as_me: error: mmap() of files required but not found" >&2;}
21306   { (exit 1); exit 1; }; }
21307fi
21308echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21309echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21310if test "${ac_cv_header_mmap_anon+set}" = set; then
21311  echo $ECHO_N "(cached) $ECHO_C" >&6
21312else
21313
21314
21315  ac_ext=c
21316ac_cpp='$CPP $CPPFLAGS'
21317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320
21321  cat >conftest.$ac_ext <<_ACEOF
21322#line $LINENO "configure"
21323/* confdefs.h.  */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
21327/* end confdefs.h.  */
21328#include <sys/mman.h>
21329  #include <unistd.h>
21330  #include <fcntl.h>
21331int
21332main ()
21333{
21334mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21335  ;
21336  return 0;
21337}
21338_ACEOF
21339rm -f conftest.$ac_objext
21340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341  (eval $ac_compile) 2>&5
21342  ac_status=$?
21343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344  (exit $ac_status); } &&
21345         { ac_try='test -s conftest.$ac_objext'
21346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347  (eval $ac_try) 2>&5
21348  ac_status=$?
21349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350  (exit $ac_status); }; }; then
21351  ac_cv_header_mmap_anon=yes
21352else
21353  echo "$as_me: failed program was:" >&5
21354sed 's/^/| /' conftest.$ac_ext >&5
21355
21356ac_cv_header_mmap_anon=no
21357fi
21358rm -f conftest.$ac_objext conftest.$ac_ext
21359  ac_ext=c
21360ac_cpp='$CPP $CPPFLAGS'
21361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21363ac_compiler_gnu=$ac_cv_c_compiler_gnu
21364
21365
21366fi
21367echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21368echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21369if test "$ac_cv_header_mmap_anon" = yes; then
21370
21371cat >>confdefs.h <<\_ACEOF
21372#define HAVE_MMAP_ANONYMOUS
21373_ACEOF
21374
21375fi
21376
21377echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21378echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21379if test "${ac_cv_type_signal+set}" = set; then
21380  echo $ECHO_N "(cached) $ECHO_C" >&6
21381else
21382  cat >conftest.$ac_ext <<_ACEOF
21383#line $LINENO "configure"
21384/* confdefs.h.  */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h.  */
21389#include <sys/types.h>
21390#include <signal.h>
21391#ifdef signal
21392# undef signal
21393#endif
21394#ifdef __cplusplus
21395extern "C" void (*signal (int, void (*)(int)))(int);
21396#else
21397void (*signal ()) ();
21398#endif
21399
21400int
21401main ()
21402{
21403int i;
21404  ;
21405  return 0;
21406}
21407_ACEOF
21408rm -f conftest.$ac_objext
21409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410  (eval $ac_compile) 2>&5
21411  ac_status=$?
21412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413  (exit $ac_status); } &&
21414         { ac_try='test -s conftest.$ac_objext'
21415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416  (eval $ac_try) 2>&5
21417  ac_status=$?
21418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419  (exit $ac_status); }; }; then
21420  ac_cv_type_signal=void
21421else
21422  echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
21425ac_cv_type_signal=int
21426fi
21427rm -f conftest.$ac_objext conftest.$ac_ext
21428fi
21429echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21430echo "${ECHO_T}$ac_cv_type_signal" >&6
21431
21432cat >>confdefs.h <<_ACEOF
21433#define RETSIGTYPE $ac_cv_type_signal
21434_ACEOF
21435
21436
21437
21438
21439
21440
21441
21442
21443for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace
21444do
21445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21446echo "$as_me:$LINENO: checking for $ac_func" >&5
21447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21448if eval "test \"\${$as_ac_var+set}\" = set"; then
21449  echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451  cat >conftest.$ac_ext <<_ACEOF
21452#line $LINENO "configure"
21453/* confdefs.h.  */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h.  */
21458/* System header to define __stub macros and hopefully few prototypes,
21459    which can conflict with char $ac_func (); below.
21460    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21461    <limits.h> exists even on freestanding compilers.  */
21462#ifdef __STDC__
21463# include <limits.h>
21464#else
21465# include <assert.h>
21466#endif
21467/* Override any gcc2 internal prototype to avoid an error.  */
21468#ifdef __cplusplus
21469extern "C"
21470{
21471#endif
21472/* We use char because int might match the return type of a gcc2
21473   builtin and then its argument prototype would still apply.  */
21474char $ac_func ();
21475/* The GNU C library defines this for functions which it implements
21476    to always fail with ENOSYS.  Some functions are actually named
21477    something starting with __ and the normal name is an alias.  */
21478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21479choke me
21480#else
21481char (*f) () = $ac_func;
21482#endif
21483#ifdef __cplusplus
21484}
21485#endif
21486
21487int
21488main ()
21489{
21490return f != $ac_func;
21491  ;
21492  return 0;
21493}
21494_ACEOF
21495rm -f conftest.$ac_objext conftest$ac_exeext
21496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497  (eval $ac_link) 2>&5
21498  ac_status=$?
21499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500  (exit $ac_status); } &&
21501         { ac_try='test -s conftest$ac_exeext'
21502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503  (eval $ac_try) 2>&5
21504  ac_status=$?
21505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506  (exit $ac_status); }; }; then
21507  eval "$as_ac_var=yes"
21508else
21509  echo "$as_me: failed program was:" >&5
21510sed 's/^/| /' conftest.$ac_ext >&5
21511
21512eval "$as_ac_var=no"
21513fi
21514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21515fi
21516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21518if test `eval echo '${'$as_ac_var'}'` = yes; then
21519  cat >>confdefs.h <<_ACEOF
21520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21521_ACEOF
21522
21523fi
21524done
21525
21526echo "$as_me:$LINENO: checking for mprotect" >&5
21527echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21528if test "${ac_cv_func_mprotect+set}" = set; then
21529  echo $ECHO_N "(cached) $ECHO_C" >&6
21530else
21531  cat >conftest.$ac_ext <<_ACEOF
21532#line $LINENO "configure"
21533/* confdefs.h.  */
21534_ACEOF
21535cat confdefs.h >>conftest.$ac_ext
21536cat >>conftest.$ac_ext <<_ACEOF
21537/* end confdefs.h.  */
21538/* System header to define __stub macros and hopefully few prototypes,
21539    which can conflict with char mprotect (); below.
21540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21541    <limits.h> exists even on freestanding compilers.  */
21542#ifdef __STDC__
21543# include <limits.h>
21544#else
21545# include <assert.h>
21546#endif
21547/* Override any gcc2 internal prototype to avoid an error.  */
21548#ifdef __cplusplus
21549extern "C"
21550{
21551#endif
21552/* We use char because int might match the return type of a gcc2
21553   builtin and then its argument prototype would still apply.  */
21554char mprotect ();
21555/* The GNU C library defines this for functions which it implements
21556    to always fail with ENOSYS.  Some functions are actually named
21557    something starting with __ and the normal name is an alias.  */
21558#if defined (__stub_mprotect) || defined (__stub___mprotect)
21559choke me
21560#else
21561char (*f) () = mprotect;
21562#endif
21563#ifdef __cplusplus
21564}
21565#endif
21566
21567int
21568main ()
21569{
21570return f != mprotect;
21571  ;
21572  return 0;
21573}
21574_ACEOF
21575rm -f conftest.$ac_objext conftest$ac_exeext
21576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21577  (eval $ac_link) 2>&5
21578  ac_status=$?
21579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580  (exit $ac_status); } &&
21581         { ac_try='test -s conftest$ac_exeext'
21582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583  (eval $ac_try) 2>&5
21584  ac_status=$?
21585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586  (exit $ac_status); }; }; then
21587  ac_cv_func_mprotect=yes
21588else
21589  echo "$as_me: failed program was:" >&5
21590sed 's/^/| /' conftest.$ac_ext >&5
21591
21592ac_cv_func_mprotect=no
21593fi
21594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21595fi
21596echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21597echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21598if test $ac_cv_func_mprotect = yes; then
21599  :
21600else
21601  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21602echo "$as_me: error: Function mprotect() required but not found" >&2;}
21603   { (exit 1); exit 1; }; }
21604fi
21605
21606
21607
21608
21609
21610  ac_ext=c
21611ac_cpp='$CPP $CPPFLAGS'
21612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21614ac_compiler_gnu=$ac_cv_c_compiler_gnu
21615
21616  oldcflags="$CFLAGS"
21617  CFLAGS="$CFLAGS -Wl,-R."
21618  cat >conftest.$ac_ext <<_ACEOF
21619int main() { return 0; }
21620_ACEOF
21621rm -f conftest.$ac_objext conftest$ac_exeext
21622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21623  (eval $ac_link) 2>&5
21624  ac_status=$?
21625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626  (exit $ac_status); } &&
21627         { ac_try='test -s conftest$ac_exeext'
21628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629  (eval $ac_try) 2>&5
21630  ac_status=$?
21631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632  (exit $ac_status); }; }; then
21633  ac_cv_link_use_r=yes
21634else
21635  echo "$as_me: failed program was:" >&5
21636sed 's/^/| /' conftest.$ac_ext >&5
21637
21638ac_cv_link_use_r=no
21639fi
21640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21641  CFLAGS="$oldcflags"
21642  ac_ext=c
21643ac_cpp='$CPP $CPPFLAGS'
21644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21646ac_compiler_gnu=$ac_cv_c_compiler_gnu
21647
21648  if test "$ac_cv_link_use_r" = yes
21649  then
21650
21651cat >>confdefs.h <<\_ACEOF
21652#define HAVE_LINK_R 1
21653_ACEOF
21654
21655  fi
21656
21657
21658# Check whether --enable-optimized or --disable-optimized was given.
21659if test "${enable_optimized+set}" = set; then
21660  enableval="$enable_optimized"
21661
21662else
21663  enableval=no
21664fi;
21665if test ${enableval} = "no"
21666then
21667	ENABLE_OPTIMIZED=
21668
21669else
21670	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21671
21672fi
21673
21674# Check whether --enable-spec2000 or --disable-spec2000 was given.
21675if test "${enable_spec2000+set}" = set; then
21676  enableval="$enable_spec2000"
21677
21678else
21679  enableval=no
21680fi;
21681if test ${enableval} = "no"
21682then
21683	if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21684	then
21685		SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21686
21687		USE_SPEC=USE_SPEC=1
21688
21689	else
21690		USE_SPEC=
21691
21692
21693	fi
21694else
21695	if test ${enableval} = ""
21696	then
21697		SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21698
21699	else
21700		SPEC_ROOT=${enableval}
21701
21702	fi
21703	USE_SPEC=USE_SPEC=1
21704
21705fi
21706
21707# Check whether --enable-spec95 or --disable-spec95 was given.
21708if test "${enable_spec95+set}" = set; then
21709  enableval="$enable_spec95"
21710
21711else
21712  enableval=no
21713fi;
21714if test ${enableval} = "no"
21715then
21716	if test -d /home/vadve/shared/benchmarks/spec95/benchspec
21717	then
21718		SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21719
21720		USE_SPEC95=USE_SPEC95=1
21721
21722	else
21723		USE_SPEC95=
21724
21725
21726	fi
21727else
21728	if test ${enableval} = ""
21729	then
21730		SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21731
21732	else
21733		SPEC95_ROOT=${enableval}
21734
21735	fi
21736	USE_SPEC95=USE_SPEC95=1
21737
21738fi
21739
21740# Check whether --enable-povray or --disable-povray was given.
21741if test "${enable_povray+set}" = set; then
21742  enableval="$enable_povray"
21743
21744else
21745  enableval=no
21746fi;
21747if test ${enableval} = "no"
21748then
21749	if test -d /home/vadve/criswell/Downloads/povray-3.50c
21750	then
21751		POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21752
21753		USE_POVRAY=USE_POVRAY=1
21754
21755	else
21756		USE_POVRAY=
21757
21758
21759	fi
21760else
21761	if test ${enableval} = ""
21762	then
21763		POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21764
21765	else
21766		POVRAY_ROOT=${enableval}
21767
21768	fi
21769	USE_POVRAY=USE_POVRAY=1
21770
21771fi
21772
21773
21774# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21775if test "${enable_precompiled_bytecode+set}" = set; then
21776  enableval="$enable_precompiled_bytecode"
21777
21778else
21779  enableval=no
21780fi;
21781if test ${enableval} = "no"
21782then
21783	UPB=
21784
21785else
21786	UPB=USE_PRECOMPILED_BYTECODE=1
21787
21788fi
21789
21790# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21791if test "${enable_llc_diffs+set}" = set; then
21792  enableval="$enable_llc_diffs"
21793
21794else
21795  enableval=yes
21796fi;
21797if test ${enableval} = "no"
21798then
21799	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21800
21801else
21802	DISABLE_LLC_DIFFS=
21803
21804fi
21805
21806# Check whether --enable-jit or --disable-jit was given.
21807if test "${enable_jit+set}" = set; then
21808  enableval="$enable_jit"
21809
21810else
21811  enableval=default
21812fi;
21813if test ${enableval} = "no"
21814then
21815	JIT=
21816
21817else
21818	case $target in
21819		*i*86*)
21820			JIT=TARGET_HAS_JIT=1
21821
21822			;;
21823		*sparc*)
21824			JIT=TARGET_HAS_JIT=1
21825
21826			;;
21827		*)
21828			JIT=
21829
21830			;;
21831	esac
21832fi
21833
21834
21835# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21836if test "${with_llvmgccdir+set}" = set; then
21837  withval="$with_llvmgccdir"
21838  LLVMGCCDIR=$withval
21839
21840fi;
21841echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21842echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21843LLVM_GCC_CHECK=no
21844if test -d "$LLVMGCCDIR"
21845then
21846	if test -x "$LLVMGCCDIR/bin/gcc"
21847	then
21848		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21849	fi
21850fi
21851llvmgccwarn=no
21852echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21853echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21854if test "$LLVM_GCC_CHECK" = "no"
21855then
21856    llvmgccwarn=yes
21857fi
21858echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21859echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21860LLVM_GCC_SANE=no
21861if test -x "$LLVM_GCC_CHECK"
21862then
21863	cp /dev/null conftest.c
21864    "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21865	if test $? -eq 0
21866	then
21867		LLVM_GCC_SANE=yes
21868	fi
21869	rm conftest.c
21870	llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21871	LLVMCC1=$llvmcc1path
21872
21873	llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21874	LLVMCC1PLUS=$llvmcc1pluspath
21875
21876fi
21877echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21878echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21879if test "$LLVM_GCC_SANE" = "no"
21880then
21881	llvmgccwarn=yes
21882fi
21883
21884
21885# Check whether --with-bcrepos or --without-bcrepos was given.
21886if test "${with_bcrepos+set}" = set; then
21887  withval="$with_bcrepos"
21888  BCR=$withval
21889
21890else
21891  BCR=/home/vadve/lattner/LLVMPrograms
21892
21893fi;
21894
21895
21896# Check whether --with-papi or --without-papi was given.
21897if test "${with_papi+set}" = set; then
21898  withval="$with_papi"
21899  PAPIDIR=$withval
21900
21901else
21902  PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
21903
21904fi;
21905
21906echo "$as_me:$LINENO: checking for shared library suffix" >&5
21907echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21908eval "SHLIBEXT=$shrext"
21909echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21910echo "${ECHO_T}$SHLIBEXT" >&6
21911SHLIBEXT=$SHLIBEXT
21912
21913
21914cat >>confdefs.h <<_ACEOF
21915#define SHLIBEXT "$SHLIBEXT"
21916_ACEOF
21917
21918
21919                                        ac_config_files="$ac_config_files Makefile.config include/Support/iterator include/Support/hash_map include/Support/hash_set"
21920cat >confcache <<\_ACEOF
21921# This file is a shell script that caches the results of configure
21922# tests run on this system so they can be shared between configure
21923# scripts and configure runs, see configure's option --config-cache.
21924# It is not useful on other systems.  If it contains results you don't
21925# want to keep, you may remove or edit it.
21926#
21927# config.status only pays attention to the cache file if you give it
21928# the --recheck option to rerun configure.
21929#
21930# `ac_cv_env_foo' variables (set or unset) will be overridden when
21931# loading this file, other *unset* `ac_cv_foo' will be assigned the
21932# following values.
21933
21934_ACEOF
21935
21936# The following way of writing the cache mishandles newlines in values,
21937# but we know of no workaround that is simple, portable, and efficient.
21938# So, don't put newlines in cache variables' values.
21939# Ultrix sh set writes to stderr and can't be redirected directly,
21940# and sets the high bit in the cache file unless we assign to the vars.
21941{
21942  (set) 2>&1 |
21943    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21944    *ac_space=\ *)
21945      # `set' does not quote correctly, so add quotes (double-quote
21946      # substitution turns \\\\ into \\, and sed turns \\ into \).
21947      sed -n \
21948        "s/'/'\\\\''/g;
21949    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21950      ;;
21951    *)
21952      # `set' quotes correctly as required by POSIX, so do not add quotes.
21953      sed -n \
21954        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21955      ;;
21956    esac;
21957} |
21958  sed '
21959     t clear
21960     : clear
21961     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21962     t end
21963     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21964     : end' >>confcache
21965if diff $cache_file confcache >/dev/null 2>&1; then :; else
21966  if test -w $cache_file; then
21967    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21968    cat confcache >$cache_file
21969  else
21970    echo "not updating unwritable cache $cache_file"
21971  fi
21972fi
21973rm -f confcache
21974
21975test "x$prefix" = xNONE && prefix=$ac_default_prefix
21976# Let make expand exec_prefix.
21977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21978
21979# VPATH may cause trouble with some makes, so we remove $(srcdir),
21980# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21981# trailing colons and then remove the whole line if VPATH becomes empty
21982# (actually we leave an empty line to preserve line numbers).
21983if test "x$srcdir" = x.; then
21984  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
21985s/:*\$(srcdir):*/:/;
21986s/:*\${srcdir}:*/:/;
21987s/:*@srcdir@:*/:/;
21988s/^\([^=]*=[ 	]*\):*/\1/;
21989s/:*$//;
21990s/^[^=]*=[ 	]*$//;
21991}'
21992fi
21993
21994DEFS=-DHAVE_CONFIG_H
21995
21996ac_libobjs=
21997ac_ltlibobjs=
21998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21999  # 1. Remove the extension, and $U if already installed.
22000  ac_i=`echo "$ac_i" |
22001         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22002  # 2. Add them.
22003  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22004  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22005done
22006LIBOBJS=$ac_libobjs
22007
22008LTLIBOBJS=$ac_ltlibobjs
22009
22010
22011
22012: ${CONFIG_STATUS=./config.status}
22013ac_clean_files_save=$ac_clean_files
22014ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22015{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22016echo "$as_me: creating $CONFIG_STATUS" >&6;}
22017cat >$CONFIG_STATUS <<_ACEOF
22018#! $SHELL
22019# Generated by $as_me.
22020# Run this file to recreate the current configuration.
22021# Compiler output produced by configure, useful for debugging
22022# configure, is in config.log if it exists.
22023
22024debug=false
22025ac_cs_recheck=false
22026ac_cs_silent=false
22027SHELL=\${CONFIG_SHELL-$SHELL}
22028_ACEOF
22029
22030cat >>$CONFIG_STATUS <<\_ACEOF
22031## --------------------- ##
22032## M4sh Initialization.  ##
22033## --------------------- ##
22034
22035# Be Bourne compatible
22036if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22037  emulate sh
22038  NULLCMD=:
22039  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22040  # is contrary to our usage.  Disable this feature.
22041  alias -g '${1+"$@"}'='"$@"'
22042elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22043  set -o posix
22044fi
22045
22046# Support unset when possible.
22047if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22048  as_unset=unset
22049else
22050  as_unset=false
22051fi
22052
22053
22054# Work around bugs in pre-3.0 UWIN ksh.
22055$as_unset ENV MAIL MAILPATH
22056PS1='$ '
22057PS2='> '
22058PS4='+ '
22059
22060# NLS nuisances.
22061for as_var in \
22062  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22063  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22064  LC_TELEPHONE LC_TIME
22065do
22066  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22067    eval $as_var=C; export $as_var
22068  else
22069    $as_unset $as_var
22070  fi
22071done
22072
22073# Required to use basename.
22074if expr a : '\(a\)' >/dev/null 2>&1; then
22075  as_expr=expr
22076else
22077  as_expr=false
22078fi
22079
22080if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22081  as_basename=basename
22082else
22083  as_basename=false
22084fi
22085
22086
22087# Name of the executable.
22088as_me=`$as_basename "$0" ||
22089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22090	 X"$0" : 'X\(//\)$' \| \
22091	 X"$0" : 'X\(/\)$' \| \
22092	 .     : '\(.\)' 2>/dev/null ||
22093echo X/"$0" |
22094    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22095  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22096  	  /^X\/\(\/\).*/{ s//\1/; q; }
22097  	  s/.*/./; q'`
22098
22099
22100# PATH needs CR, and LINENO needs CR and PATH.
22101# Avoid depending upon Character Ranges.
22102as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22103as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22104as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22105as_cr_digits='0123456789'
22106as_cr_alnum=$as_cr_Letters$as_cr_digits
22107
22108# The user is always right.
22109if test "${PATH_SEPARATOR+set}" != set; then
22110  echo "#! /bin/sh" >conf$$.sh
22111  echo  "exit 0"   >>conf$$.sh
22112  chmod +x conf$$.sh
22113  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22114    PATH_SEPARATOR=';'
22115  else
22116    PATH_SEPARATOR=:
22117  fi
22118  rm -f conf$$.sh
22119fi
22120
22121
22122  as_lineno_1=$LINENO
22123  as_lineno_2=$LINENO
22124  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22125  test "x$as_lineno_1" != "x$as_lineno_2" &&
22126  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22127  # Find who we are.  Look in the path if we contain no path at all
22128  # relative or not.
22129  case $0 in
22130    *[\\/]* ) as_myself=$0 ;;
22131    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22132for as_dir in $PATH
22133do
22134  IFS=$as_save_IFS
22135  test -z "$as_dir" && as_dir=.
22136  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22137done
22138
22139       ;;
22140  esac
22141  # We did not find ourselves, most probably we were run as `sh COMMAND'
22142  # in which case we are not to be found in the path.
22143  if test "x$as_myself" = x; then
22144    as_myself=$0
22145  fi
22146  if test ! -f "$as_myself"; then
22147    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22148echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22149   { (exit 1); exit 1; }; }
22150  fi
22151  case $CONFIG_SHELL in
22152  '')
22153    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22154for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22155do
22156  IFS=$as_save_IFS
22157  test -z "$as_dir" && as_dir=.
22158  for as_base in sh bash ksh sh5; do
22159	 case $as_dir in
22160	 /*)
22161	   if ("$as_dir/$as_base" -c '
22162  as_lineno_1=$LINENO
22163  as_lineno_2=$LINENO
22164  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22165  test "x$as_lineno_1" != "x$as_lineno_2" &&
22166  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22167	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22168	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22169	     CONFIG_SHELL=$as_dir/$as_base
22170	     export CONFIG_SHELL
22171	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22172	   fi;;
22173	 esac
22174       done
22175done
22176;;
22177  esac
22178
22179  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22180  # uniformly replaced by the line number.  The first 'sed' inserts a
22181  # line-number line before each line; the second 'sed' does the real
22182  # work.  The second script uses 'N' to pair each line-number line
22183  # with the numbered line, and appends trailing '-' during
22184  # substitution so that $LINENO is not a special case at line end.
22185  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22186  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22187  sed '=' <$as_myself |
22188    sed '
22189      N
22190      s,$,-,
22191      : loop
22192      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22193      t loop
22194      s,-$,,
22195      s,^['$as_cr_digits']*\n,,
22196    ' >$as_me.lineno &&
22197  chmod +x $as_me.lineno ||
22198    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22199echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22200   { (exit 1); exit 1; }; }
22201
22202  # Don't try to exec as it changes $[0], causing all sort of problems
22203  # (the dirname of $[0] is not the place where we might find the
22204  # original and so on.  Autoconf is especially sensible to this).
22205  . ./$as_me.lineno
22206  # Exit status is that of the last command.
22207  exit
22208}
22209
22210
22211case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22212  *c*,-n*) ECHO_N= ECHO_C='
22213' ECHO_T='	' ;;
22214  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22215  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22216esac
22217
22218if expr a : '\(a\)' >/dev/null 2>&1; then
22219  as_expr=expr
22220else
22221  as_expr=false
22222fi
22223
22224rm -f conf$$ conf$$.exe conf$$.file
22225echo >conf$$.file
22226if ln -s conf$$.file conf$$ 2>/dev/null; then
22227  # We could just check for DJGPP; but this test a) works b) is more generic
22228  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22229  if test -f conf$$.exe; then
22230    # Don't use ln at all; we don't have any links
22231    as_ln_s='cp -p'
22232  else
22233    as_ln_s='ln -s'
22234  fi
22235elif ln conf$$.file conf$$ 2>/dev/null; then
22236  as_ln_s=ln
22237else
22238  as_ln_s='cp -p'
22239fi
22240rm -f conf$$ conf$$.exe conf$$.file
22241
22242if mkdir -p . 2>/dev/null; then
22243  as_mkdir_p=:
22244else
22245  as_mkdir_p=false
22246fi
22247
22248as_executable_p="test -f"
22249
22250# Sed expression to map a string onto a valid CPP name.
22251as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22252
22253# Sed expression to map a string onto a valid variable name.
22254as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22255
22256
22257# IFS
22258# We need space, tab and new line, in precisely that order.
22259as_nl='
22260'
22261IFS=" 	$as_nl"
22262
22263# CDPATH.
22264$as_unset CDPATH
22265
22266exec 6>&1
22267
22268# Open the log real soon, to keep \$[0] and so on meaningful, and to
22269# report actual input values of CONFIG_FILES etc. instead of their
22270# values after options handling.  Logging --version etc. is OK.
22271exec 5>>config.log
22272{
22273  echo
22274  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22275## Running $as_me. ##
22276_ASBOX
22277} >&5
22278cat >&5 <<_CSEOF
22279
22280This file was extended by [LLVM] $as_me [1.1], which was
22281generated by GNU Autoconf 2.57.  Invocation command line was
22282
22283  CONFIG_FILES    = $CONFIG_FILES
22284  CONFIG_HEADERS  = $CONFIG_HEADERS
22285  CONFIG_LINKS    = $CONFIG_LINKS
22286  CONFIG_COMMANDS = $CONFIG_COMMANDS
22287  $ $0 $@
22288
22289_CSEOF
22290echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22291echo >&5
22292_ACEOF
22293
22294# Files that config.status was made for.
22295if test -n "$ac_config_files"; then
22296  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22297fi
22298
22299if test -n "$ac_config_headers"; then
22300  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22301fi
22302
22303if test -n "$ac_config_links"; then
22304  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22305fi
22306
22307if test -n "$ac_config_commands"; then
22308  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22309fi
22310
22311cat >>$CONFIG_STATUS <<\_ACEOF
22312
22313ac_cs_usage="\
22314\`$as_me' instantiates files from templates according to the
22315current configuration.
22316
22317Usage: $0 [OPTIONS] [FILE]...
22318
22319  -h, --help       print this help, then exit
22320  -V, --version    print version number, then exit
22321  -q, --quiet      do not print progress messages
22322  -d, --debug      don't remove temporary files
22323      --recheck    update $as_me by reconfiguring in the same conditions
22324  --file=FILE[:TEMPLATE]
22325                   instantiate the configuration file FILE
22326  --header=FILE[:TEMPLATE]
22327                   instantiate the configuration header FILE
22328
22329Configuration files:
22330$config_files
22331
22332Configuration headers:
22333$config_headers
22334
22335Configuration commands:
22336$config_commands
22337
22338Report bugs to <bug-autoconf@gnu.org>."
22339_ACEOF
22340
22341cat >>$CONFIG_STATUS <<_ACEOF
22342ac_cs_version="\\
22343[LLVM] config.status [1.1]
22344configured by $0, generated by GNU Autoconf 2.57,
22345  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22346
22347Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22348Free Software Foundation, Inc.
22349This config.status script is free software; the Free Software Foundation
22350gives unlimited permission to copy, distribute and modify it."
22351srcdir=$srcdir
22352INSTALL="$INSTALL"
22353_ACEOF
22354
22355cat >>$CONFIG_STATUS <<\_ACEOF
22356# If no file are specified by the user, then we need to provide default
22357# value.  By we need to know if files were specified by the user.
22358ac_need_defaults=:
22359while test $# != 0
22360do
22361  case $1 in
22362  --*=*)
22363    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22364    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22365    ac_shift=:
22366    ;;
22367  -*)
22368    ac_option=$1
22369    ac_optarg=$2
22370    ac_shift=shift
22371    ;;
22372  *) # This is not an option, so the user has probably given explicit
22373     # arguments.
22374     ac_option=$1
22375     ac_need_defaults=false;;
22376  esac
22377
22378  case $ac_option in
22379  # Handling of the options.
22380_ACEOF
22381cat >>$CONFIG_STATUS <<\_ACEOF
22382  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22383    ac_cs_recheck=: ;;
22384  --version | --vers* | -V )
22385    echo "$ac_cs_version"; exit 0 ;;
22386  --he | --h)
22387    # Conflict between --help and --header
22388    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22389Try \`$0 --help' for more information." >&5
22390echo "$as_me: error: ambiguous option: $1
22391Try \`$0 --help' for more information." >&2;}
22392   { (exit 1); exit 1; }; };;
22393  --help | --hel | -h )
22394    echo "$ac_cs_usage"; exit 0 ;;
22395  --debug | --d* | -d )
22396    debug=: ;;
22397  --file | --fil | --fi | --f )
22398    $ac_shift
22399    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22400    ac_need_defaults=false;;
22401  --header | --heade | --head | --hea )
22402    $ac_shift
22403    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22404    ac_need_defaults=false;;
22405  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22406  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22407    ac_cs_silent=: ;;
22408
22409  # This is an error.
22410  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22411Try \`$0 --help' for more information." >&5
22412echo "$as_me: error: unrecognized option: $1
22413Try \`$0 --help' for more information." >&2;}
22414   { (exit 1); exit 1; }; } ;;
22415
22416  *) ac_config_targets="$ac_config_targets $1" ;;
22417
22418  esac
22419  shift
22420done
22421
22422ac_configure_extra_args=
22423
22424if $ac_cs_silent; then
22425  exec 6>/dev/null
22426  ac_configure_extra_args="$ac_configure_extra_args --silent"
22427fi
22428
22429_ACEOF
22430cat >>$CONFIG_STATUS <<_ACEOF
22431if \$ac_cs_recheck; then
22432  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22433  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22434fi
22435
22436_ACEOF
22437
22438cat >>$CONFIG_STATUS <<_ACEOF
22439#
22440# INIT-COMMANDS section.
22441#
22442
22443${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22444${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22445${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22446${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22447${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22448${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22449${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22450${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22488${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22489${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22490${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22491
22492_ACEOF
22493
22494
22495
22496cat >>$CONFIG_STATUS <<\_ACEOF
22497for ac_config_target in $ac_config_targets
22498do
22499  case "$ac_config_target" in
22500  # Handling of arguments.
22501  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22502  "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22503  "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22504  "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22505  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22506  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22507  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22508  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22509  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22510  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22511  "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22512  "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22513  "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22514  "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22515  "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22516  "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22517  "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22518  "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22519  "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22520  "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22521  "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22522  "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22523  "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22524  "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22525  "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22526  "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22527  "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22528  "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22529  "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22530  "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22531  "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22532  "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22533  "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22534  "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22535  "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22536  "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22537  "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22538  "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22539  "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22540  "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22541  "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22542  "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22543  "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22544  "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22545  "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22546  "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22547  "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22548  "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22549  "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22550  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22551  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22552  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22553  "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22554  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22555echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22556   { (exit 1); exit 1; }; };;
22557  esac
22558done
22559
22560# If the user did not use the arguments to specify the items to instantiate,
22561# then the envvar interface is used.  Set only those that are not.
22562# We use the long form for the default assignment because of an extremely
22563# bizarre bug on SunOS 4.1.3.
22564if $ac_need_defaults; then
22565  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22566  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22567  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22568fi
22569
22570# Have a temporary directory for convenience.  Make it in the build tree
22571# simply because there is no reason to put it here, and in addition,
22572# creating and moving files from /tmp can sometimes cause problems.
22573# Create a temporary directory, and hook for its removal unless debugging.
22574$debug ||
22575{
22576  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22577  trap '{ (exit 1); exit 1; }' 1 2 13 15
22578}
22579
22580# Create a (secure) tmp directory for tmp files.
22581
22582{
22583  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22584  test -n "$tmp" && test -d "$tmp"
22585}  ||
22586{
22587  tmp=./confstat$$-$RANDOM
22588  (umask 077 && mkdir $tmp)
22589} ||
22590{
22591   echo "$me: cannot create a temporary directory in ." >&2
22592   { (exit 1); exit 1; }
22593}
22594
22595_ACEOF
22596
22597cat >>$CONFIG_STATUS <<_ACEOF
22598
22599#
22600# CONFIG_FILES section.
22601#
22602
22603# No need to generate the scripts if there are no CONFIG_FILES.
22604# This happens for instance when ./config.status config.h
22605if test -n "\$CONFIG_FILES"; then
22606  # Protect against being on the right side of a sed subst in config.status.
22607  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22608   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22609s,@SHELL@,$SHELL,;t t
22610s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22611s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22612s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22613s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22614s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22615s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22616s,@exec_prefix@,$exec_prefix,;t t
22617s,@prefix@,$prefix,;t t
22618s,@program_transform_name@,$program_transform_name,;t t
22619s,@bindir@,$bindir,;t t
22620s,@sbindir@,$sbindir,;t t
22621s,@libexecdir@,$libexecdir,;t t
22622s,@datadir@,$datadir,;t t
22623s,@sysconfdir@,$sysconfdir,;t t
22624s,@sharedstatedir@,$sharedstatedir,;t t
22625s,@localstatedir@,$localstatedir,;t t
22626s,@libdir@,$libdir,;t t
22627s,@includedir@,$includedir,;t t
22628s,@oldincludedir@,$oldincludedir,;t t
22629s,@infodir@,$infodir,;t t
22630s,@mandir@,$mandir,;t t
22631s,@build_alias@,$build_alias,;t t
22632s,@host_alias@,$host_alias,;t t
22633s,@target_alias@,$target_alias,;t t
22634s,@DEFS@,$DEFS,;t t
22635s,@ECHO_C@,$ECHO_C,;t t
22636s,@ECHO_N@,$ECHO_N,;t t
22637s,@ECHO_T@,$ECHO_T,;t t
22638s,@LIBS@,$LIBS,;t t
22639s,@subdirs@,$subdirs,;t t
22640s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22641s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22642s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22643s,@build@,$build,;t t
22644s,@build_cpu@,$build_cpu,;t t
22645s,@build_vendor@,$build_vendor,;t t
22646s,@build_os@,$build_os,;t t
22647s,@host@,$host,;t t
22648s,@host_cpu@,$host_cpu,;t t
22649s,@host_vendor@,$host_vendor,;t t
22650s,@host_os@,$host_os,;t t
22651s,@target@,$target,;t t
22652s,@target_cpu@,$target_cpu,;t t
22653s,@target_vendor@,$target_vendor,;t t
22654s,@target_os@,$target_os,;t t
22655s,@OS@,$OS,;t t
22656s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22657s,@ARCH@,$ARCH,;t t
22658s,@CXX@,$CXX,;t t
22659s,@CXXFLAGS@,$CXXFLAGS,;t t
22660s,@LDFLAGS@,$LDFLAGS,;t t
22661s,@CPPFLAGS@,$CPPFLAGS,;t t
22662s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22663s,@EXEEXT@,$EXEEXT,;t t
22664s,@OBJEXT@,$OBJEXT,;t t
22665s,@CC@,$CC,;t t
22666s,@CFLAGS@,$CFLAGS,;t t
22667s,@ac_ct_CC@,$ac_ct_CC,;t t
22668s,@CPP@,$CPP,;t t
22669s,@ifGNUmake@,$ifGNUmake,;t t
22670s,@LEX@,$LEX,;t t
22671s,@LEXLIB@,$LEXLIB,;t t
22672s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22673s,@YACC@,$YACC,;t t
22674s,@BISON@,$BISON,;t t
22675s,@EGREP@,$EGREP,;t t
22676s,@LN_S@,$LN_S,;t t
22677s,@ECHO@,$ECHO,;t t
22678s,@AR@,$AR,;t t
22679s,@ac_ct_AR@,$ac_ct_AR,;t t
22680s,@RANLIB@,$RANLIB,;t t
22681s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22682s,@STRIP@,$STRIP,;t t
22683s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22684s,@CXXCPP@,$CXXCPP,;t t
22685s,@F77@,$F77,;t t
22686s,@FFLAGS@,$FFLAGS,;t t
22687s,@ac_ct_F77@,$ac_ct_F77,;t t
22688s,@LIBTOOL@,$LIBTOOL,;t t
22689s,@DOT@,$DOT,;t t
22690s,@ETAGS@,$ETAGS,;t t
22691s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22692s,@PYTHON@,$PYTHON,;t t
22693s,@QMTEST@,$QMTEST,;t t
22694s,@ENDIAN@,$ENDIAN,;t t
22695s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22696s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22697s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22698s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22699s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22700s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22701s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22702s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22703s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22704s,@ALLOCA@,$ALLOCA,;t t
22705s,@MMAP_FILE@,$MMAP_FILE,;t t
22706s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22707s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22708s,@USE_SPEC@,$USE_SPEC,;t t
22709s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22710s,@USE_SPEC95@,$USE_SPEC95,;t t
22711s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22712s,@USE_POVRAY@,$USE_POVRAY,;t t
22713s,@UPB@,$UPB,;t t
22714s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22715s,@JIT@,$JIT,;t t
22716s,@LLVMCC1@,$LLVMCC1,;t t
22717s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22718s,@BCR@,$BCR,;t t
22719s,@PAPIDIR@,$PAPIDIR,;t t
22720s,@SHLIBEXT@,$SHLIBEXT,;t t
22721s,@LIBOBJS@,$LIBOBJS,;t t
22722s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22723CEOF
22724
22725_ACEOF
22726
22727  cat >>$CONFIG_STATUS <<\_ACEOF
22728  # Split the substitutions into bite-sized pieces for seds with
22729  # small command number limits, like on Digital OSF/1 and HP-UX.
22730  ac_max_sed_lines=48
22731  ac_sed_frag=1 # Number of current file.
22732  ac_beg=1 # First line for current file.
22733  ac_end=$ac_max_sed_lines # Line after last line for current file.
22734  ac_more_lines=:
22735  ac_sed_cmds=
22736  while $ac_more_lines; do
22737    if test $ac_beg -gt 1; then
22738      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22739    else
22740      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22741    fi
22742    if test ! -s $tmp/subs.frag; then
22743      ac_more_lines=false
22744    else
22745      # The purpose of the label and of the branching condition is to
22746      # speed up the sed processing (if there are no `@' at all, there
22747      # is no need to browse any of the substitutions).
22748      # These are the two extra sed commands mentioned above.
22749      (echo ':t
22750  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22751      if test -z "$ac_sed_cmds"; then
22752  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22753      else
22754  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22755      fi
22756      ac_sed_frag=`expr $ac_sed_frag + 1`
22757      ac_beg=$ac_end
22758      ac_end=`expr $ac_end + $ac_max_sed_lines`
22759    fi
22760  done
22761  if test -z "$ac_sed_cmds"; then
22762    ac_sed_cmds=cat
22763  fi
22764fi # test -n "$CONFIG_FILES"
22765
22766_ACEOF
22767cat >>$CONFIG_STATUS <<\_ACEOF
22768for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22769  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22770  case $ac_file in
22771  - | *:- | *:-:* ) # input from stdin
22772        cat >$tmp/stdin
22773        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22774        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22775  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22776        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22777  * )   ac_file_in=$ac_file.in ;;
22778  esac
22779
22780  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22781  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22782$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783         X"$ac_file" : 'X\(//\)[^/]' \| \
22784         X"$ac_file" : 'X\(//\)$' \| \
22785         X"$ac_file" : 'X\(/\)' \| \
22786         .     : '\(.\)' 2>/dev/null ||
22787echo X"$ac_file" |
22788    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22789  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22790  	  /^X\(\/\/\)$/{ s//\1/; q; }
22791  	  /^X\(\/\).*/{ s//\1/; q; }
22792  	  s/.*/./; q'`
22793  { if $as_mkdir_p; then
22794    mkdir -p "$ac_dir"
22795  else
22796    as_dir="$ac_dir"
22797    as_dirs=
22798    while test ! -d "$as_dir"; do
22799      as_dirs="$as_dir $as_dirs"
22800      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22801$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22802         X"$as_dir" : 'X\(//\)[^/]' \| \
22803         X"$as_dir" : 'X\(//\)$' \| \
22804         X"$as_dir" : 'X\(/\)' \| \
22805         .     : '\(.\)' 2>/dev/null ||
22806echo X"$as_dir" |
22807    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22808  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22809  	  /^X\(\/\/\)$/{ s//\1/; q; }
22810  	  /^X\(\/\).*/{ s//\1/; q; }
22811  	  s/.*/./; q'`
22812    done
22813    test ! -n "$as_dirs" || mkdir $as_dirs
22814  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22815echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22816   { (exit 1); exit 1; }; }; }
22817
22818  ac_builddir=.
22819
22820if test "$ac_dir" != .; then
22821  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22822  # A "../" for each directory in $ac_dir_suffix.
22823  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22824else
22825  ac_dir_suffix= ac_top_builddir=
22826fi
22827
22828case $srcdir in
22829  .)  # No --srcdir option.  We are building in place.
22830    ac_srcdir=.
22831    if test -z "$ac_top_builddir"; then
22832       ac_top_srcdir=.
22833    else
22834       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22835    fi ;;
22836  [\\/]* | ?:[\\/]* )  # Absolute path.
22837    ac_srcdir=$srcdir$ac_dir_suffix;
22838    ac_top_srcdir=$srcdir ;;
22839  *) # Relative path.
22840    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22841    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22842esac
22843# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22844# absolute.
22845ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22846ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22847ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22848ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22849
22850
22851  case $INSTALL in
22852  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22853  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22854  esac
22855
22856  if test x"$ac_file" != x-; then
22857    { echo "$as_me:$LINENO: creating $ac_file" >&5
22858echo "$as_me: creating $ac_file" >&6;}
22859    rm -f "$ac_file"
22860  fi
22861  # Let's still pretend it is `configure' which instantiates (i.e., don't
22862  # use $as_me), people would be surprised to read:
22863  #    /* config.h.  Generated by config.status.  */
22864  if test x"$ac_file" = x-; then
22865    configure_input=
22866  else
22867    configure_input="$ac_file.  "
22868  fi
22869  configure_input=$configure_input"Generated from `echo $ac_file_in |
22870                                     sed 's,.*/,,'` by configure."
22871
22872  # First look for the input files in the build tree, otherwise in the
22873  # src tree.
22874  ac_file_inputs=`IFS=:
22875    for f in $ac_file_in; do
22876      case $f in
22877      -) echo $tmp/stdin ;;
22878      [\\/$]*)
22879         # Absolute (can't be DOS-style, as IFS=:)
22880         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22881echo "$as_me: error: cannot find input file: $f" >&2;}
22882   { (exit 1); exit 1; }; }
22883         echo $f;;
22884      *) # Relative
22885         if test -f "$f"; then
22886           # Build tree
22887           echo $f
22888         elif test -f "$srcdir/$f"; then
22889           # Source tree
22890           echo $srcdir/$f
22891         else
22892           # /dev/null tree
22893           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22894echo "$as_me: error: cannot find input file: $f" >&2;}
22895   { (exit 1); exit 1; }; }
22896         fi;;
22897      esac
22898    done` || { (exit 1); exit 1; }
22899_ACEOF
22900cat >>$CONFIG_STATUS <<_ACEOF
22901  sed "$ac_vpsub
22902$extrasub
22903_ACEOF
22904cat >>$CONFIG_STATUS <<\_ACEOF
22905:t
22906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22907s,@configure_input@,$configure_input,;t t
22908s,@srcdir@,$ac_srcdir,;t t
22909s,@abs_srcdir@,$ac_abs_srcdir,;t t
22910s,@top_srcdir@,$ac_top_srcdir,;t t
22911s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22912s,@builddir@,$ac_builddir,;t t
22913s,@abs_builddir@,$ac_abs_builddir,;t t
22914s,@top_builddir@,$ac_top_builddir,;t t
22915s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22916s,@INSTALL@,$ac_INSTALL,;t t
22917" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22918  rm -f $tmp/stdin
22919  if test x"$ac_file" != x-; then
22920    mv $tmp/out $ac_file
22921  else
22922    cat $tmp/out
22923    rm -f $tmp/out
22924  fi
22925
22926done
22927_ACEOF
22928cat >>$CONFIG_STATUS <<\_ACEOF
22929
22930#
22931# CONFIG_HEADER section.
22932#
22933
22934# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22935# NAME is the cpp macro being defined and VALUE is the value it is being given.
22936#
22937# ac_d sets the value in "#define NAME VALUE" lines.
22938ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
22939ac_dB='[ 	].*$,\1#\2'
22940ac_dC=' '
22941ac_dD=',;t'
22942# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22943ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
22944ac_uB='$,\1#\2define\3'
22945ac_uC=' '
22946ac_uD=',;t'
22947
22948for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22949  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22950  case $ac_file in
22951  - | *:- | *:-:* ) # input from stdin
22952        cat >$tmp/stdin
22953        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22954        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22955  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22956        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22957  * )   ac_file_in=$ac_file.in ;;
22958  esac
22959
22960  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22961echo "$as_me: creating $ac_file" >&6;}
22962
22963  # First look for the input files in the build tree, otherwise in the
22964  # src tree.
22965  ac_file_inputs=`IFS=:
22966    for f in $ac_file_in; do
22967      case $f in
22968      -) echo $tmp/stdin ;;
22969      [\\/$]*)
22970         # Absolute (can't be DOS-style, as IFS=:)
22971         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22972echo "$as_me: error: cannot find input file: $f" >&2;}
22973   { (exit 1); exit 1; }; }
22974         echo $f;;
22975      *) # Relative
22976         if test -f "$f"; then
22977           # Build tree
22978           echo $f
22979         elif test -f "$srcdir/$f"; then
22980           # Source tree
22981           echo $srcdir/$f
22982         else
22983           # /dev/null tree
22984           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22985echo "$as_me: error: cannot find input file: $f" >&2;}
22986   { (exit 1); exit 1; }; }
22987         fi;;
22988      esac
22989    done` || { (exit 1); exit 1; }
22990  # Remove the trailing spaces.
22991  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
22992
22993_ACEOF
22994
22995# Transform confdefs.h into two sed scripts, `conftest.defines' and
22996# `conftest.undefs', that substitutes the proper values into
22997# config.h.in to produce config.h.  The first handles `#define'
22998# templates, and the second `#undef' templates.
22999# And first: Protect against being on the right side of a sed subst in
23000# config.status.  Protect against being in an unquoted here document
23001# in config.status.
23002rm -f conftest.defines conftest.undefs
23003# Using a here document instead of a string reduces the quoting nightmare.
23004# Putting comments in sed scripts is not portable.
23005#
23006# `end' is used to avoid that the second main sed command (meant for
23007# 0-ary CPP macros) applies to n-ary macro definitions.
23008# See the Autoconf documentation for `clear'.
23009cat >confdef2sed.sed <<\_ACEOF
23010s/[\\&,]/\\&/g
23011s,[\\$`],\\&,g
23012t clear
23013: clear
23014s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23015t end
23016s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23017: end
23018_ACEOF
23019# If some macros were called several times there might be several times
23020# the same #defines, which is useless.  Nevertheless, we may not want to
23021# sort them, since we want the *last* AC-DEFINE to be honored.
23022uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23023sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23024rm -f confdef2sed.sed
23025
23026# This sed command replaces #undef with comments.  This is necessary, for
23027# example, in the case of _POSIX_SOURCE, which is predefined and required
23028# on some systems where configure will not decide to define it.
23029cat >>conftest.undefs <<\_ACEOF
23030s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23031_ACEOF
23032
23033# Break up conftest.defines because some shells have a limit on the size
23034# of here documents, and old seds have small limits too (100 cmds).
23035echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23036echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23037echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23038echo '  :' >>$CONFIG_STATUS
23039rm -f conftest.tail
23040while grep . conftest.defines >/dev/null
23041do
23042  # Write a limited-size here document to $tmp/defines.sed.
23043  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23044  # Speed up: don't consider the non `#define' lines.
23045  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
23046  # Work around the forget-to-reset-the-flag bug.
23047  echo 't clr' >>$CONFIG_STATUS
23048  echo ': clr' >>$CONFIG_STATUS
23049  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23050  echo 'CEOF
23051  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23052  rm -f $tmp/in
23053  mv $tmp/out $tmp/in
23054' >>$CONFIG_STATUS
23055  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23056  rm -f conftest.defines
23057  mv conftest.tail conftest.defines
23058done
23059rm -f conftest.defines
23060echo '  fi # grep' >>$CONFIG_STATUS
23061echo >>$CONFIG_STATUS
23062
23063# Break up conftest.undefs because some shells have a limit on the size
23064# of here documents, and old seds have small limits too (100 cmds).
23065echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23066rm -f conftest.tail
23067while grep . conftest.undefs >/dev/null
23068do
23069  # Write a limited-size here document to $tmp/undefs.sed.
23070  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23071  # Speed up: don't consider the non `#undef'
23072  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
23073  # Work around the forget-to-reset-the-flag bug.
23074  echo 't clr' >>$CONFIG_STATUS
23075  echo ': clr' >>$CONFIG_STATUS
23076  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23077  echo 'CEOF
23078  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23079  rm -f $tmp/in
23080  mv $tmp/out $tmp/in
23081' >>$CONFIG_STATUS
23082  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23083  rm -f conftest.undefs
23084  mv conftest.tail conftest.undefs
23085done
23086rm -f conftest.undefs
23087
23088cat >>$CONFIG_STATUS <<\_ACEOF
23089  # Let's still pretend it is `configure' which instantiates (i.e., don't
23090  # use $as_me), people would be surprised to read:
23091  #    /* config.h.  Generated by config.status.  */
23092  if test x"$ac_file" = x-; then
23093    echo "/* Generated by configure.  */" >$tmp/config.h
23094  else
23095    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23096  fi
23097  cat $tmp/in >>$tmp/config.h
23098  rm -f $tmp/in
23099  if test x"$ac_file" != x-; then
23100    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23101      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23102echo "$as_me: $ac_file is unchanged" >&6;}
23103    else
23104      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23106         X"$ac_file" : 'X\(//\)[^/]' \| \
23107         X"$ac_file" : 'X\(//\)$' \| \
23108         X"$ac_file" : 'X\(/\)' \| \
23109         .     : '\(.\)' 2>/dev/null ||
23110echo X"$ac_file" |
23111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23112  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23113  	  /^X\(\/\/\)$/{ s//\1/; q; }
23114  	  /^X\(\/\).*/{ s//\1/; q; }
23115  	  s/.*/./; q'`
23116      { if $as_mkdir_p; then
23117    mkdir -p "$ac_dir"
23118  else
23119    as_dir="$ac_dir"
23120    as_dirs=
23121    while test ! -d "$as_dir"; do
23122      as_dirs="$as_dir $as_dirs"
23123      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23125         X"$as_dir" : 'X\(//\)[^/]' \| \
23126         X"$as_dir" : 'X\(//\)$' \| \
23127         X"$as_dir" : 'X\(/\)' \| \
23128         .     : '\(.\)' 2>/dev/null ||
23129echo X"$as_dir" |
23130    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23131  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23132  	  /^X\(\/\/\)$/{ s//\1/; q; }
23133  	  /^X\(\/\).*/{ s//\1/; q; }
23134  	  s/.*/./; q'`
23135    done
23136    test ! -n "$as_dirs" || mkdir $as_dirs
23137  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23138echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23139   { (exit 1); exit 1; }; }; }
23140
23141      rm -f $ac_file
23142      mv $tmp/config.h $ac_file
23143    fi
23144  else
23145    cat $tmp/config.h
23146    rm -f $tmp/config.h
23147  fi
23148done
23149_ACEOF
23150cat >>$CONFIG_STATUS <<\_ACEOF
23151
23152#
23153# CONFIG_COMMANDS section.
23154#
23155for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23156  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23157  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23158  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23159$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23160         X"$ac_dest" : 'X\(//\)[^/]' \| \
23161         X"$ac_dest" : 'X\(//\)$' \| \
23162         X"$ac_dest" : 'X\(/\)' \| \
23163         .     : '\(.\)' 2>/dev/null ||
23164echo X"$ac_dest" |
23165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23166  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23167  	  /^X\(\/\/\)$/{ s//\1/; q; }
23168  	  /^X\(\/\).*/{ s//\1/; q; }
23169  	  s/.*/./; q'`
23170  ac_builddir=.
23171
23172if test "$ac_dir" != .; then
23173  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23174  # A "../" for each directory in $ac_dir_suffix.
23175  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23176else
23177  ac_dir_suffix= ac_top_builddir=
23178fi
23179
23180case $srcdir in
23181  .)  # No --srcdir option.  We are building in place.
23182    ac_srcdir=.
23183    if test -z "$ac_top_builddir"; then
23184       ac_top_srcdir=.
23185    else
23186       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23187    fi ;;
23188  [\\/]* | ?:[\\/]* )  # Absolute path.
23189    ac_srcdir=$srcdir$ac_dir_suffix;
23190    ac_top_srcdir=$srcdir ;;
23191  *) # Relative path.
23192    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23193    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23194esac
23195# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23196# absolute.
23197ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23198ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23199ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23200ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23201
23202
23203  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23204echo "$as_me: executing $ac_dest commands" >&6;}
23205  case $ac_dest in
23206    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23207    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23208    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23209    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23210    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23211    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23212    test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23213    test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23214    test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23215    test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23216    test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23217    test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23218    test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23219    test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23220    test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23221    test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23222    test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23223    test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23224    test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23225    test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23226    test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23227    test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23228    test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23229    test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23230    test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23231    test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23232    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 ;;
23233    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 ;;
23234    test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23235    test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23236    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 ;;
23237    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 ;;
23238    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 ;;
23239    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 ;;
23240    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 ;;
23241    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 ;;
23242    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 ;;
23243    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 ;;
23244    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 ;;
23245    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 ;;
23246    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 ;;
23247    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 ;;
23248    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 ;;
23249    test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23250    test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23251    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23252    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23253    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23254  esac
23255done
23256_ACEOF
23257
23258cat >>$CONFIG_STATUS <<\_ACEOF
23259
23260{ (exit 0); exit 0; }
23261_ACEOF
23262chmod +x $CONFIG_STATUS
23263ac_clean_files=$ac_clean_files_save
23264
23265
23266# configure is writing to config.log, and then calls config.status.
23267# config.status does its own redirection, appending to config.log.
23268# Unfortunately, on DOS this fails, as config.log is still kept open
23269# by configure, so config.status won't be able to write to it; its
23270# output is simply discarded.  So we exec the FD to /dev/null,
23271# effectively closing config.log, so it can be properly (re)opened and
23272# appended to by config.status.  When coming back to configure, we
23273# need to make the FD available again.
23274if test "$no_create" != yes; then
23275  ac_cs_success=:
23276  ac_config_status_args=
23277  test "$silent" = yes &&
23278    ac_config_status_args="$ac_config_status_args --quiet"
23279  exec 5>/dev/null
23280  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23281  exec 5>>config.log
23282  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23283  # would make configure fail if this is the last instruction.
23284  $ac_cs_success || { (exit 1); exit 1; }
23285fi
23286
23287#
23288# CONFIG_SUBDIRS section.
23289#
23290if test "$no_recursion" != yes; then
23291
23292  # Remove --cache-file and --srcdir arguments so they do not pile up.
23293  ac_sub_configure_args=
23294  ac_prev=
23295  for ac_arg in $ac_configure_args; do
23296    if test -n "$ac_prev"; then
23297      ac_prev=
23298      continue
23299    fi
23300    case $ac_arg in
23301    -cache-file | --cache-file | --cache-fil | --cache-fi \
23302    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23303      ac_prev=cache_file ;;
23304    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23305    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23306    | --c=*)
23307      ;;
23308    --config-cache | -C)
23309      ;;
23310    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23311      ac_prev=srcdir ;;
23312    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23313      ;;
23314    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23315      ac_prev=prefix ;;
23316    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23317      ;;
23318    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23319    esac
23320  done
23321
23322  # Always prepend --prefix to ensure using the same prefix
23323  # in subdir configurations.
23324  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23325
23326  ac_popdir=`pwd`
23327  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23328
23329    # Do not complain, so a configure script can configure whichever
23330    # parts of a large source tree are present.
23331    test -d $srcdir/$ac_dir || continue
23332
23333    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23334echo "$as_me: configuring in $ac_dir" >&6;}
23335    { if $as_mkdir_p; then
23336    mkdir -p "$ac_dir"
23337  else
23338    as_dir="$ac_dir"
23339    as_dirs=
23340    while test ! -d "$as_dir"; do
23341      as_dirs="$as_dir $as_dirs"
23342      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23344         X"$as_dir" : 'X\(//\)[^/]' \| \
23345         X"$as_dir" : 'X\(//\)$' \| \
23346         X"$as_dir" : 'X\(/\)' \| \
23347         .     : '\(.\)' 2>/dev/null ||
23348echo X"$as_dir" |
23349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23350  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23351  	  /^X\(\/\/\)$/{ s//\1/; q; }
23352  	  /^X\(\/\).*/{ s//\1/; q; }
23353  	  s/.*/./; q'`
23354    done
23355    test ! -n "$as_dirs" || mkdir $as_dirs
23356  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23357echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23358   { (exit 1); exit 1; }; }; }
23359
23360    ac_builddir=.
23361
23362if test "$ac_dir" != .; then
23363  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23364  # A "../" for each directory in $ac_dir_suffix.
23365  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23366else
23367  ac_dir_suffix= ac_top_builddir=
23368fi
23369
23370case $srcdir in
23371  .)  # No --srcdir option.  We are building in place.
23372    ac_srcdir=.
23373    if test -z "$ac_top_builddir"; then
23374       ac_top_srcdir=.
23375    else
23376       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23377    fi ;;
23378  [\\/]* | ?:[\\/]* )  # Absolute path.
23379    ac_srcdir=$srcdir$ac_dir_suffix;
23380    ac_top_srcdir=$srcdir ;;
23381  *) # Relative path.
23382    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23383    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23384esac
23385# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23386# absolute.
23387ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23388ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23389ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23390ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23391
23392
23393    cd $ac_dir
23394
23395    # Check for guested configure; otherwise get Cygnus style configure.
23396    if test -f $ac_srcdir/configure.gnu; then
23397      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23398    elif test -f $ac_srcdir/configure; then
23399      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23400    elif test -f $ac_srcdir/configure.in; then
23401      ac_sub_configure=$ac_configure
23402    else
23403      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23404echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23405      ac_sub_configure=
23406    fi
23407
23408    # The recursion is here.
23409    if test -n "$ac_sub_configure"; then
23410      # Make the cache file name correct relative to the subdirectory.
23411      case $cache_file in
23412      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23413      *) # Relative path.
23414        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23415      esac
23416
23417      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23418echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23419      # The eval makes quoting arguments work.
23420      eval $ac_sub_configure $ac_sub_configure_args \
23421           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23422        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23423echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23424   { (exit 1); exit 1; }; }
23425    fi
23426
23427    cd $ac_popdir
23428  done
23429fi
23430
23431
23432if test $llvmgccwarn = yes
23433then
23434	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23435echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23436	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23437echo "$as_me: WARNING: ***** appear to be working." >&2;}
23438	{ echo "$as_me:$LINENO: WARNING: ***** " >&5
23439echo "$as_me: WARNING: ***** " >&2;}
23440	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23441echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23442	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23443echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23444	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23445echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23446fi
23447
23448