configure revision e2cfe5d23225fa74febd5f170b919bba2c495308
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26DUALCASE=1; export DUALCASE # for MKS sh
27
28# Support unset when possible.
29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30  as_unset=unset
31else
32  as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46  LC_TELEPHONE LC_TIME
47do
48  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49    eval $as_var=C; export $as_var
50  else
51    $as_unset $as_var
52  fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57  as_expr=expr
58else
59  as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63  as_basename=basename
64else
65  as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72	 X"$0" : 'X\(//\)$' \| \
73	 X"$0" : 'X\(/\)$' \| \
74	 .     : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
78  	  /^X\/\(\/\).*/{ s//\1/; q; }
79  	  s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92  echo "#! /bin/sh" >conf$$.sh
93  echo  "exit 0"   >>conf$$.sh
94  chmod +x conf$$.sh
95  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96    PATH_SEPARATOR=';'
97  else
98    PATH_SEPARATOR=:
99  fi
100  rm -f conf$$.sh
101fi
102
103
104  as_lineno_1=$LINENO
105  as_lineno_2=$LINENO
106  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107  test "x$as_lineno_1" != "x$as_lineno_2" &&
108  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109  # Find who we are.  Look in the path if we contain no path at all
110  # relative or not.
111  case $0 in
112    *[\\/]* ) as_myself=$0 ;;
113    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116  IFS=$as_save_IFS
117  test -z "$as_dir" && as_dir=.
118  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121       ;;
122  esac
123  # We did not find ourselves, most probably we were run as `sh COMMAND'
124  # in which case we are not to be found in the path.
125  if test "x$as_myself" = x; then
126    as_myself=$0
127  fi
128  if test ! -f "$as_myself"; then
129    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130   { (exit 1); exit 1; }; }
131  fi
132  case $CONFIG_SHELL in
133  '')
134    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137  IFS=$as_save_IFS
138  test -z "$as_dir" && as_dir=.
139  for as_base in sh bash ksh sh5; do
140	 case $as_dir in
141	 /*)
142	   if ("$as_dir/$as_base" -c '
143  as_lineno_1=$LINENO
144  as_lineno_2=$LINENO
145  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146  test "x$as_lineno_1" != "x$as_lineno_2" &&
147  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150	     CONFIG_SHELL=$as_dir/$as_base
151	     export CONFIG_SHELL
152	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153	   fi;;
154	 esac
155       done
156done
157;;
158  esac
159
160  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161  # uniformly replaced by the line number.  The first 'sed' inserts a
162  # line-number line before each line; the second 'sed' does the real
163  # work.  The second script uses 'N' to pair each line-number line
164  # with the numbered line, and appends trailing '-' during
165  # substitution so that $LINENO is not a special case at line end.
166  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168  sed '=' <$as_myself |
169    sed '
170      N
171      s,$,-,
172      : loop
173      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174      t loop
175      s,-$,,
176      s,^['$as_cr_digits']*\n,,
177    ' >$as_me.lineno &&
178  chmod +x $as_me.lineno ||
179    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180   { (exit 1); exit 1; }; }
181
182  # Don't try to exec as it changes $[0], causing all sort of problems
183  # (the dirname of $[0] is not the place where we might find the
184  # original and so on.  Autoconf is especially sensible to this).
185  . ./$as_me.lineno
186  # Exit status is that of the last command.
187  exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192  *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T='	' ;;
194  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199  as_expr=expr
200else
201  as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207  # We could just check for DJGPP; but this test a) works b) is more generic
208  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209  if test -f conf$$.exe; then
210    # Don't use ln at all; we don't have any links
211    as_ln_s='cp -p'
212  else
213    as_ln_s='ln -s'
214  fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216  as_ln_s=ln
217else
218  as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223  as_mkdir_p=:
224else
225  test -d ./-p && rmdir ./-p
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254  # Remove one level of quotation (which was required for Make).
255  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256  ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261  # Discard the --no-reexec flag, and continue.
262  shift
263elif test "X$1" = X--fallback-echo; then
264  # Avoid inline document here, it may be left over
265  :
266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267  # Yippee, $echo works!
268  :
269else
270  # Restart under the correct shell.
271  exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275  # used as fallback echo
276  shift
277  cat <<EOF
278$*
279EOF
280  exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293       echo_test_string="`eval $cmd`" &&
294       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295    then
296      break
297    fi
298  done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303   test "X$echo_testing_string" = "X$echo_test_string"; then
304  :
305else
306  # The Solaris, AIX, and Digital Unix default echo programs unquote
307  # backslashes.  This makes it impossible to quote backslashes using
308  #   echo "$something" | sed 's/\\/\\\\/g'
309  #
310  # So, first we look for a working echo in the user's PATH.
311
312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313  for dir in $PATH /usr/ucb; do
314    IFS="$lt_save_ifs"
315    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318       test "X$echo_testing_string" = "X$echo_test_string"; then
319      echo="$dir/echo"
320      break
321    fi
322  done
323  IFS="$lt_save_ifs"
324
325  if test "X$echo" = Xecho; then
326    # We didn't find a better echo, so look for alternatives.
327    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329       test "X$echo_testing_string" = "X$echo_test_string"; then
330      # This shell has a builtin print -r that does the trick.
331      echo='print -r'
332    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333	 test "X$CONFIG_SHELL" != X/bin/ksh; then
334      # If we have ksh, try running configure again with it.
335      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336      export ORIGINAL_CONFIG_SHELL
337      CONFIG_SHELL=/bin/ksh
338      export CONFIG_SHELL
339      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340    else
341      # Try using printf.
342      echo='printf %s\n'
343      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345	 test "X$echo_testing_string" = "X$echo_test_string"; then
346	# Cool, printf works
347	:
348      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349	   test "X$echo_testing_string" = 'X\t' &&
350	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351	   test "X$echo_testing_string" = "X$echo_test_string"; then
352	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353	export CONFIG_SHELL
354	SHELL="$CONFIG_SHELL"
355	export SHELL
356	echo="$CONFIG_SHELL $0 --fallback-echo"
357      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358	   test "X$echo_testing_string" = 'X\t' &&
359	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360	   test "X$echo_testing_string" = "X$echo_test_string"; then
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      else
363	# maybe with a smaller string...
364	prev=:
365
366	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368	  then
369	    break
370	  fi
371	  prev="$cmd"
372	done
373
374	if test "$prev" != 'sed 50q "$0"'; then
375	  echo_test_string=`eval $prev`
376	  export echo_test_string
377	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378	else
379	  # Oops.  We lost completely, so just stick with echo.
380	  echo=echo
381	fi
382      fi
383    fi
384  fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
397
398tagnames=${tagnames+${tagnames},}CXX
399
400tagnames=${tagnames+${tagnames},}F77
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME='llvm'
427PACKAGE_TARNAME='-llvm-'
428PACKAGE_VERSION='1.8cvs'
429PACKAGE_STRING='llvm 1.8cvs'
430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432ac_unique_file="lib/VMCore/Module.cpp"
433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/privbracket"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443# Factoring default headers for most tests.
444ac_includes_default="\
445#include <stdio.h>
446#if HAVE_SYS_TYPES_H
447# include <sys/types.h>
448#endif
449#if HAVE_SYS_STAT_H
450# include <sys/stat.h>
451#endif
452#if STDC_HEADERS
453# include <stdlib.h>
454# include <stddef.h>
455#else
456# if HAVE_STDLIB_H
457#  include <stdlib.h>
458# endif
459#endif
460#if HAVE_STRING_H
461# if !STDC_HEADERS && HAVE_MEMORY_H
462#  include <memory.h>
463# endif
464# include <string.h>
465#endif
466#if HAVE_STRINGS_H
467# include <strings.h>
468#endif
469#if HAVE_INTTYPES_H
470# include <inttypes.h>
471#else
472# if HAVE_STDINT_H
473#  include <stdint.h>
474# endif
475#endif
476#if HAVE_UNISTD_H
477# include <unistd.h>
478#endif"
479
480ac_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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
481ac_subst_files=''
482
483# Initialize some variables set by options.
484ac_init_help=
485ac_init_version=false
486# The variables have the same names as the options, with
487# dashes changed to underlines.
488cache_file=/dev/null
489exec_prefix=NONE
490no_create=
491no_recursion=
492prefix=NONE
493program_prefix=NONE
494program_suffix=NONE
495program_transform_name=s,x,x,
496silent=
497site=
498srcdir=
499verbose=
500x_includes=NONE
501x_libraries=NONE
502
503# Installation directory options.
504# These are left unexpanded so users can "make install exec_prefix=/foo"
505# and all the variables that are supposed to be based on exec_prefix
506# by default will actually change.
507# Use braces instead of parens because sh, perl, etc. also accept them.
508bindir='${exec_prefix}/bin'
509sbindir='${exec_prefix}/sbin'
510libexecdir='${exec_prefix}/libexec'
511datadir='${prefix}/share'
512sysconfdir='${prefix}/etc'
513sharedstatedir='${prefix}/com'
514localstatedir='${prefix}/var'
515libdir='${exec_prefix}/lib'
516includedir='${prefix}/include'
517oldincludedir='/usr/include'
518infodir='${prefix}/info'
519mandir='${prefix}/man'
520
521ac_prev=
522for ac_option
523do
524  # If the previous option needs an argument, assign it.
525  if test -n "$ac_prev"; then
526    eval "$ac_prev=\$ac_option"
527    ac_prev=
528    continue
529  fi
530
531  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533  # Accept the important Cygnus configure options, so we can diagnose typos.
534
535  case $ac_option in
536
537  -bindir | --bindir | --bindi | --bind | --bin | --bi)
538    ac_prev=bindir ;;
539  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540    bindir=$ac_optarg ;;
541
542  -build | --build | --buil | --bui | --bu)
543    ac_prev=build_alias ;;
544  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545    build_alias=$ac_optarg ;;
546
547  -cache-file | --cache-file | --cache-fil | --cache-fi \
548  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549    ac_prev=cache_file ;;
550  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552    cache_file=$ac_optarg ;;
553
554  --config-cache | -C)
555    cache_file=config.cache ;;
556
557  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558    ac_prev=datadir ;;
559  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560  | --da=*)
561    datadir=$ac_optarg ;;
562
563  -disable-* | --disable-*)
564    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565    # Reject names that are not valid shell variable names.
566    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568   { (exit 1); exit 1; }; }
569    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570    eval "enable_$ac_feature=no" ;;
571
572  -enable-* | --enable-*)
573    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574    # Reject names that are not valid shell variable names.
575    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577   { (exit 1); exit 1; }; }
578    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579    case $ac_option in
580      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581      *) ac_optarg=yes ;;
582    esac
583    eval "enable_$ac_feature='$ac_optarg'" ;;
584
585  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587  | --exec | --exe | --ex)
588    ac_prev=exec_prefix ;;
589  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591  | --exec=* | --exe=* | --ex=*)
592    exec_prefix=$ac_optarg ;;
593
594  -gas | --gas | --ga | --g)
595    # Obsolete; use --with-gas.
596    with_gas=yes ;;
597
598  -help | --help | --hel | --he | -h)
599    ac_init_help=long ;;
600  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601    ac_init_help=recursive ;;
602  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603    ac_init_help=short ;;
604
605  -host | --host | --hos | --ho)
606    ac_prev=host_alias ;;
607  -host=* | --host=* | --hos=* | --ho=*)
608    host_alias=$ac_optarg ;;
609
610  -includedir | --includedir | --includedi | --included | --include \
611  | --includ | --inclu | --incl | --inc)
612    ac_prev=includedir ;;
613  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614  | --includ=* | --inclu=* | --incl=* | --inc=*)
615    includedir=$ac_optarg ;;
616
617  -infodir | --infodir | --infodi | --infod | --info | --inf)
618    ac_prev=infodir ;;
619  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620    infodir=$ac_optarg ;;
621
622  -libdir | --libdir | --libdi | --libd)
623    ac_prev=libdir ;;
624  -libdir=* | --libdir=* | --libdi=* | --libd=*)
625    libdir=$ac_optarg ;;
626
627  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628  | --libexe | --libex | --libe)
629    ac_prev=libexecdir ;;
630  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631  | --libexe=* | --libex=* | --libe=*)
632    libexecdir=$ac_optarg ;;
633
634  -localstatedir | --localstatedir | --localstatedi | --localstated \
635  | --localstate | --localstat | --localsta | --localst \
636  | --locals | --local | --loca | --loc | --lo)
637    ac_prev=localstatedir ;;
638  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641    localstatedir=$ac_optarg ;;
642
643  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644    ac_prev=mandir ;;
645  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646    mandir=$ac_optarg ;;
647
648  -nfp | --nfp | --nf)
649    # Obsolete; use --without-fp.
650    with_fp=no ;;
651
652  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653  | --no-cr | --no-c | -n)
654    no_create=yes ;;
655
656  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658    no_recursion=yes ;;
659
660  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662  | --oldin | --oldi | --old | --ol | --o)
663    ac_prev=oldincludedir ;;
664  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667    oldincludedir=$ac_optarg ;;
668
669  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670    ac_prev=prefix ;;
671  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672    prefix=$ac_optarg ;;
673
674  -program-prefix | --program-prefix | --program-prefi | --program-pref \
675  | --program-pre | --program-pr | --program-p)
676    ac_prev=program_prefix ;;
677  -program-prefix=* | --program-prefix=* | --program-prefi=* \
678  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679    program_prefix=$ac_optarg ;;
680
681  -program-suffix | --program-suffix | --program-suffi | --program-suff \
682  | --program-suf | --program-su | --program-s)
683    ac_prev=program_suffix ;;
684  -program-suffix=* | --program-suffix=* | --program-suffi=* \
685  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686    program_suffix=$ac_optarg ;;
687
688  -program-transform-name | --program-transform-name \
689  | --program-transform-nam | --program-transform-na \
690  | --program-transform-n | --program-transform- \
691  | --program-transform | --program-transfor \
692  | --program-transfo | --program-transf \
693  | --program-trans | --program-tran \
694  | --progr-tra | --program-tr | --program-t)
695    ac_prev=program_transform_name ;;
696  -program-transform-name=* | --program-transform-name=* \
697  | --program-transform-nam=* | --program-transform-na=* \
698  | --program-transform-n=* | --program-transform-=* \
699  | --program-transform=* | --program-transfor=* \
700  | --program-transfo=* | --program-transf=* \
701  | --program-trans=* | --program-tran=* \
702  | --progr-tra=* | --program-tr=* | --program-t=*)
703    program_transform_name=$ac_optarg ;;
704
705  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706  | -silent | --silent | --silen | --sile | --sil)
707    silent=yes ;;
708
709  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710    ac_prev=sbindir ;;
711  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712  | --sbi=* | --sb=*)
713    sbindir=$ac_optarg ;;
714
715  -sharedstatedir | --sharedstatedir | --sharedstatedi \
716  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717  | --sharedst | --shareds | --shared | --share | --shar \
718  | --sha | --sh)
719    ac_prev=sharedstatedir ;;
720  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723  | --sha=* | --sh=*)
724    sharedstatedir=$ac_optarg ;;
725
726  -site | --site | --sit)
727    ac_prev=site ;;
728  -site=* | --site=* | --sit=*)
729    site=$ac_optarg ;;
730
731  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732    ac_prev=srcdir ;;
733  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734    srcdir=$ac_optarg ;;
735
736  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737  | --syscon | --sysco | --sysc | --sys | --sy)
738    ac_prev=sysconfdir ;;
739  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741    sysconfdir=$ac_optarg ;;
742
743  -target | --target | --targe | --targ | --tar | --ta | --t)
744    ac_prev=target_alias ;;
745  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746    target_alias=$ac_optarg ;;
747
748  -v | -verbose | --verbose | --verbos | --verbo | --verb)
749    verbose=yes ;;
750
751  -version | --version | --versio | --versi | --vers | -V)
752    ac_init_version=: ;;
753
754  -with-* | --with-*)
755    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package| sed 's/-/_/g'`
761    case $ac_option in
762      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763      *) ac_optarg=yes ;;
764    esac
765    eval "with_$ac_package='$ac_optarg'" ;;
766
767  -without-* | --without-*)
768    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769    # Reject names that are not valid shell variable names.
770    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771      { echo "$as_me: error: invalid package name: $ac_package" >&2
772   { (exit 1); exit 1; }; }
773    ac_package=`echo $ac_package | sed 's/-/_/g'`
774    eval "with_$ac_package=no" ;;
775
776  --x)
777    # Obsolete; use --with-x.
778    with_x=yes ;;
779
780  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781  | --x-incl | --x-inc | --x-in | --x-i)
782    ac_prev=x_includes ;;
783  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785    x_includes=$ac_optarg ;;
786
787  -x-libraries | --x-libraries | --x-librarie | --x-librari \
788  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789    ac_prev=x_libraries ;;
790  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792    x_libraries=$ac_optarg ;;
793
794  -*) { echo "$as_me: error: unrecognized option: $ac_option
795Try \`$0 --help' for more information." >&2
796   { (exit 1); exit 1; }; }
797    ;;
798
799  *=*)
800    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801    # Reject names that are not valid shell variable names.
802    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804   { (exit 1); exit 1; }; }
805    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806    eval "$ac_envvar='$ac_optarg'"
807    export $ac_envvar ;;
808
809  *)
810    # FIXME: should be removed in autoconf 3.0.
811    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815    ;;
816
817  esac
818done
819
820if test -n "$ac_prev"; then
821  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822  { echo "$as_me: error: missing argument to $ac_option" >&2
823   { (exit 1); exit 1; }; }
824fi
825
826# Be sure to have absolute paths.
827for ac_var in exec_prefix prefix
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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# Be sure to have absolute paths.
838for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839	      localstatedir libdir includedir oldincludedir infodir mandir
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# There might be people who depend on the old broken behavior: `$host'
850# used to hold the argument of --host etc.
851# FIXME: To remove some day.
852build=$build_alias
853host=$host_alias
854target=$target_alias
855
856# FIXME: To remove some day.
857if test "x$host_alias" != x; then
858  if test "x$build_alias" = x; then
859    cross_compiling=maybe
860    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861    If a cross compiler is detected then cross compile mode will be used." >&2
862  elif test "x$build_alias" != "x$host_alias"; then
863    cross_compiling=yes
864  fi
865fi
866
867ac_tool_prefix=
868test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870test "$silent" = yes && exec 6>/dev/null
871
872
873# Find the source files, if location was not specified.
874if test -z "$srcdir"; then
875  ac_srcdir_defaulted=yes
876  # Try the directory containing this script, then its parent.
877  ac_confdir=`(dirname "$0") 2>/dev/null ||
878$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879	 X"$0" : 'X\(//\)[^/]' \| \
880	 X"$0" : 'X\(//\)$' \| \
881	 X"$0" : 'X\(/\)' \| \
882	 .     : '\(.\)' 2>/dev/null ||
883echo X"$0" |
884    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886  	  /^X\(\/\/\)$/{ s//\1/; q; }
887  	  /^X\(\/\).*/{ s//\1/; q; }
888  	  s/.*/./; q'`
889  srcdir=$ac_confdir
890  if test ! -r $srcdir/$ac_unique_file; then
891    srcdir=..
892  fi
893else
894  ac_srcdir_defaulted=no
895fi
896if test ! -r $srcdir/$ac_unique_file; then
897  if test "$ac_srcdir_defaulted" = yes; then
898    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899   { (exit 1); exit 1; }; }
900  else
901    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902   { (exit 1); exit 1; }; }
903  fi
904fi
905(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907   { (exit 1); exit 1; }; }
908srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909ac_env_build_alias_set=${build_alias+set}
910ac_env_build_alias_value=$build_alias
911ac_cv_env_build_alias_set=${build_alias+set}
912ac_cv_env_build_alias_value=$build_alias
913ac_env_host_alias_set=${host_alias+set}
914ac_env_host_alias_value=$host_alias
915ac_cv_env_host_alias_set=${host_alias+set}
916ac_cv_env_host_alias_value=$host_alias
917ac_env_target_alias_set=${target_alias+set}
918ac_env_target_alias_value=$target_alias
919ac_cv_env_target_alias_set=${target_alias+set}
920ac_cv_env_target_alias_value=$target_alias
921ac_env_CC_set=${CC+set}
922ac_env_CC_value=$CC
923ac_cv_env_CC_set=${CC+set}
924ac_cv_env_CC_value=$CC
925ac_env_CFLAGS_set=${CFLAGS+set}
926ac_env_CFLAGS_value=$CFLAGS
927ac_cv_env_CFLAGS_set=${CFLAGS+set}
928ac_cv_env_CFLAGS_value=$CFLAGS
929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937ac_env_CPP_set=${CPP+set}
938ac_env_CPP_value=$CPP
939ac_cv_env_CPP_set=${CPP+set}
940ac_cv_env_CPP_value=$CPP
941ac_env_CXX_set=${CXX+set}
942ac_env_CXX_value=$CXX
943ac_cv_env_CXX_set=${CXX+set}
944ac_cv_env_CXX_value=$CXX
945ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_env_CXXFLAGS_value=$CXXFLAGS
947ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949ac_env_CXXCPP_set=${CXXCPP+set}
950ac_env_CXXCPP_value=$CXXCPP
951ac_cv_env_CXXCPP_set=${CXXCPP+set}
952ac_cv_env_CXXCPP_value=$CXXCPP
953ac_env_F77_set=${F77+set}
954ac_env_F77_value=$F77
955ac_cv_env_F77_set=${F77+set}
956ac_cv_env_F77_value=$F77
957ac_env_FFLAGS_set=${FFLAGS+set}
958ac_env_FFLAGS_value=$FFLAGS
959ac_cv_env_FFLAGS_set=${FFLAGS+set}
960ac_cv_env_FFLAGS_value=$FFLAGS
961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966  # Omit some internal or obsolete options to make the list less imposing.
967  # This message is too long to be a string in the A/UX 3.1 sh.
968  cat <<_ACEOF
969\`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979  -h, --help              display this help and exit
980      --help=short        display options specific to this package
981      --help=recursive    display the short help of all the included packages
982  -V, --version           display version information and exit
983  -q, --quiet, --silent   do not print \`checking...' messages
984      --cache-file=FILE   cache test results in FILE [disabled]
985  -C, --config-cache      alias for \`--cache-file=config.cache'
986  -n, --no-create         do not create output files
987      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991  cat <<_ACEOF
992Installation directories:
993  --prefix=PREFIX         install architecture-independent files in PREFIX
994			  [$ac_default_prefix]
995  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996			  [PREFIX]
997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006  --bindir=DIR           user executables [EPREFIX/bin]
1007  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008  --libexecdir=DIR       program executables [EPREFIX/libexec]
1009  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013  --libdir=DIR           object code libraries [EPREFIX/lib]
1014  --includedir=DIR       C header files [PREFIX/include]
1015  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016  --infodir=DIR          info documentation [PREFIX/info]
1017  --mandir=DIR           man documentation [PREFIX/man]
1018_ACEOF
1019
1020  cat <<\_ACEOF
1021
1022System types:
1023  --build=BUILD     configure for building on BUILD [guessed]
1024  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1025  --target=TARGET   configure for building compilers for TARGET [HOST]
1026_ACEOF
1027fi
1028
1029if test -n "$ac_init_help"; then
1030  case $ac_init_help in
1031     short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1032   esac
1033  cat <<\_ACEOF
1034
1035Optional Features:
1036  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038  --enable-optimized
1039  --enable-assertions
1040  --enable-debug-runtime
1041  --enable-jit            Enable Just In Time Compiling (default is YES)
1042  --enable-doxygen        Build doxygen documentation (default is NO)
1043  --enable-threads        Use threads if available (default is YES)
1044  --enable-targets        Build specific host targets:
1045                          all,host-only,{target-name} (default=all)
1046  --enable-ltdl-install   install libltdl
1047  --enable-shared[=PKGS]
1048                          build shared libraries [default=yes]
1049  --enable-static[=PKGS]
1050                          build static libraries [default=yes]
1051  --enable-fast-install[=PKGS]
1052                          optimize for fast installation [default=yes]
1053  --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055Optional Packages:
1056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1059                          searches PATH)
1060  --with-extra-options    Specify addtional options to compile LLVM with
1061  --with-tclinclude       directory where tcl headers are
1062  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063  --with-pic              try to use only PIC/non-PIC objects [default=use
1064                          both]
1065  --with-tags[=TAGS]
1066                          include additional configurations [automatic]
1067
1068Some influential environment variables:
1069  CC          C compiler command
1070  CFLAGS      C compiler flags
1071  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072              nonstandard directory <lib dir>
1073  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074              headers in a nonstandard directory <include dir>
1075  CPP         C preprocessor
1076  CXX         C++ compiler command
1077  CXXFLAGS    C++ compiler flags
1078  CXXCPP      C++ preprocessor
1079  F77         Fortran 77 compiler command
1080  FFLAGS      Fortran 77 compiler flags
1081
1082Use these variables to override the choices made by `configure' or to help
1083it to find libraries and programs with nonstandard names/locations.
1084
1085Report bugs to <llvmbugs@cs.uiuc.edu>.
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090  # If there are subdirs, report their specific --help.
1091  ac_popdir=`pwd`
1092  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093    test -d $ac_dir || continue
1094    ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098  # A "../" for each directory in $ac_dir_suffix.
1099  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101  ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105  .)  # No --srcdir option.  We are building in place.
1106    ac_srcdir=.
1107    if test -z "$ac_top_builddir"; then
1108       ac_top_srcdir=.
1109    else
1110       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111    fi ;;
1112  [\\/]* | ?:[\\/]* )  # Absolute path.
1113    ac_srcdir=$srcdir$ac_dir_suffix;
1114    ac_top_srcdir=$srcdir ;;
1115  *) # Relative path.
1116    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
1119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125  case "$ac_dir" in
1126  .) ac_abs_builddir=`pwd`;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134  case ${ac_top_builddir}. in
1135  .) ac_abs_top_builddir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138  esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143  case $ac_srcdir in
1144  .) ac_abs_srcdir=$ac_abs_builddir;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147  esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152  case $ac_top_srcdir in
1153  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156  esac;;
1157esac
1158
1159    cd $ac_dir
1160    # Check for guested configure; otherwise get Cygnus style configure.
1161    if test -f $ac_srcdir/configure.gnu; then
1162      echo
1163      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164    elif test -f $ac_srcdir/configure; then
1165      echo
1166      $SHELL $ac_srcdir/configure  --help=recursive
1167    elif test -f $ac_srcdir/configure.ac ||
1168	   test -f $ac_srcdir/configure.in; then
1169      echo
1170      $ac_configure --help
1171    else
1172      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173    fi
1174    cd $ac_popdir
1175  done
1176fi
1177
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180  cat <<\_ACEOF
1181llvm configure 1.8cvs
1182generated by GNU Autoconf 2.59
1183
1184Copyright (C) 2003 Free Software Foundation, Inc.
1185This configure script is free software; the Free Software Foundation
1186gives unlimited permission to copy, distribute and modify it.
1187
1188Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1189_ACEOF
1190  exit 0
1191fi
1192exec 5>config.log
1193cat >&5 <<_ACEOF
1194This file contains any messages produced by compilers while
1195running configure, to aid debugging if configure makes a mistake.
1196
1197It was created by llvm $as_me 1.8cvs, which was
1198generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200  $ $0 $@
1201
1202_ACEOF
1203{
1204cat <<_ASUNAME
1205## --------- ##
1206## Platform. ##
1207## --------- ##
1208
1209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226_ASUNAME
1227
1228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229for as_dir in $PATH
1230do
1231  IFS=$as_save_IFS
1232  test -z "$as_dir" && as_dir=.
1233  echo "PATH: $as_dir"
1234done
1235
1236} >&5
1237
1238cat >&5 <<_ACEOF
1239
1240
1241## ----------- ##
1242## Core tests. ##
1243## ----------- ##
1244
1245_ACEOF
1246
1247
1248# Keep a trace of the command line.
1249# Strip out --no-create and --no-recursion so they do not pile up.
1250# Strip out --silent because we don't want to record it for future runs.
1251# Also quote any args containing shell meta-characters.
1252# Make two passes to allow for proper duplicate-argument suppression.
1253ac_configure_args=
1254ac_configure_args0=
1255ac_configure_args1=
1256ac_sep=
1257ac_must_keep_next=false
1258for ac_pass in 1 2
1259do
1260  for ac_arg
1261  do
1262    case $ac_arg in
1263    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265    | -silent | --silent | --silen | --sile | --sil)
1266      continue ;;
1267    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269    esac
1270    case $ac_pass in
1271    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272    2)
1273      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274      if test $ac_must_keep_next = true; then
1275	ac_must_keep_next=false # Got value, back to normal.
1276      else
1277	case $ac_arg in
1278	  *=* | --config-cache | -C | -disable-* | --disable-* \
1279	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281	  | -with-* | --with-* | -without-* | --without-* | --x)
1282	    case "$ac_configure_args0 " in
1283	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284	    esac
1285	    ;;
1286	  -* ) ac_must_keep_next=true ;;
1287	esac
1288      fi
1289      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290      # Get rid of the leading space.
1291      ac_sep=" "
1292      ;;
1293    esac
1294  done
1295done
1296$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299# When interrupted or exit'd, cleanup temporary files, and complete
1300# config.log.  We remove comments because anyway the quotes in there
1301# would cause problems or look ugly.
1302# WARNING: Be sure not to use single quotes in there, as some shells,
1303# such as our DU 5.0 friend, will then `close' the trap.
1304trap 'exit_status=$?
1305  # Save into config.log some information that might help in debugging.
1306  {
1307    echo
1308
1309    cat <<\_ASBOX
1310## ---------------- ##
1311## Cache variables. ##
1312## ---------------- ##
1313_ASBOX
1314    echo
1315    # The following way of writing the cache mishandles newlines in values,
1316{
1317  (set) 2>&1 |
1318    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319    *ac_space=\ *)
1320      sed -n \
1321	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323      ;;
1324    *)
1325      sed -n \
1326	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327      ;;
1328    esac;
1329}
1330    echo
1331
1332    cat <<\_ASBOX
1333## ----------------- ##
1334## Output variables. ##
1335## ----------------- ##
1336_ASBOX
1337    echo
1338    for ac_var in $ac_subst_vars
1339    do
1340      eval ac_val=$`echo $ac_var`
1341      echo "$ac_var='"'"'$ac_val'"'"'"
1342    done | sort
1343    echo
1344
1345    if test -n "$ac_subst_files"; then
1346      cat <<\_ASBOX
1347## ------------- ##
1348## Output files. ##
1349## ------------- ##
1350_ASBOX
1351      echo
1352      for ac_var in $ac_subst_files
1353      do
1354	eval ac_val=$`echo $ac_var`
1355	echo "$ac_var='"'"'$ac_val'"'"'"
1356      done | sort
1357      echo
1358    fi
1359
1360    if test -s confdefs.h; then
1361      cat <<\_ASBOX
1362## ----------- ##
1363## confdefs.h. ##
1364## ----------- ##
1365_ASBOX
1366      echo
1367      sed "/^$/d" confdefs.h | sort
1368      echo
1369    fi
1370    test "$ac_signal" != 0 &&
1371      echo "$as_me: caught signal $ac_signal"
1372    echo "$as_me: exit $exit_status"
1373  } >&5
1374  rm -f core *.core &&
1375  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376    exit $exit_status
1377     ' 0
1378for ac_signal in 1 2 13 15; do
1379  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380done
1381ac_signal=0
1382
1383# confdefs.h avoids OS command line length limits that DEFS can exceed.
1384rm -rf conftest* confdefs.h
1385# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386echo >confdefs.h
1387
1388# Predefined preprocessor variables.
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_NAME "$PACKAGE_NAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_VERSION "$PACKAGE_VERSION"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_STRING "$PACKAGE_STRING"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412_ACEOF
1413
1414
1415# Let the site file select an alternate cache file if it wants to.
1416# Prefer explicitly selected file to automatically selected ones.
1417if test -z "$CONFIG_SITE"; then
1418  if test "x$prefix" != xNONE; then
1419    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420  else
1421    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422  fi
1423fi
1424for ac_site_file in $CONFIG_SITE; do
1425  if test -r "$ac_site_file"; then
1426    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427echo "$as_me: loading site script $ac_site_file" >&6;}
1428    sed 's/^/| /' "$ac_site_file" >&5
1429    . "$ac_site_file"
1430  fi
1431done
1432
1433if test -r "$cache_file"; then
1434  # Some versions of bash will fail to source /dev/null (special
1435  # files actually), so we avoid doing that.
1436  if test -f "$cache_file"; then
1437    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438echo "$as_me: loading cache $cache_file" >&6;}
1439    case $cache_file in
1440      [\\/]* | ?:[\\/]* ) . $cache_file;;
1441      *)                      . ./$cache_file;;
1442    esac
1443  fi
1444else
1445  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446echo "$as_me: creating cache $cache_file" >&6;}
1447  >$cache_file
1448fi
1449
1450# Check that the precious variables saved in the cache have kept the same
1451# value.
1452ac_cache_corrupted=false
1453for ac_var in `(set) 2>&1 |
1454	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456  eval ac_new_set=\$ac_env_${ac_var}_set
1457  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458  eval ac_new_val="\$ac_env_${ac_var}_value"
1459  case $ac_old_set,$ac_new_set in
1460    set,)
1461      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463      ac_cache_corrupted=: ;;
1464    ,set)
1465      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467      ac_cache_corrupted=: ;;
1468    ,);;
1469    *)
1470      if test "x$ac_old_val" != "x$ac_new_val"; then
1471	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474echo "$as_me:   former value:  $ac_old_val" >&2;}
1475	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476echo "$as_me:   current value: $ac_new_val" >&2;}
1477	ac_cache_corrupted=:
1478      fi;;
1479  esac
1480  # Pass precious variables to config.status.
1481  if test "$ac_new_set" = set; then
1482    case $ac_new_val in
1483    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485    *) ac_arg=$ac_var=$ac_new_val ;;
1486    esac
1487    case " $ac_configure_args " in
1488      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490    esac
1491  fi
1492done
1493if $ac_cache_corrupted; then
1494  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498   { (exit 1); exit 1; }; }
1499fi
1500
1501ac_ext=c
1502ac_cpp='$CPP $CPPFLAGS'
1503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1535
1536
1537
1538
1539
1540
1541
1542ac_aux_dir=
1543for ac_dir in autoconf $srcdir/autoconf; do
1544  if test -f $ac_dir/install-sh; then
1545    ac_aux_dir=$ac_dir
1546    ac_install_sh="$ac_aux_dir/install-sh -c"
1547    break
1548  elif test -f $ac_dir/install.sh; then
1549    ac_aux_dir=$ac_dir
1550    ac_install_sh="$ac_aux_dir/install.sh -c"
1551    break
1552  elif test -f $ac_dir/shtool; then
1553    ac_aux_dir=$ac_dir
1554    ac_install_sh="$ac_aux_dir/shtool install -c"
1555    break
1556  fi
1557done
1558if test -z "$ac_aux_dir"; then
1559  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561   { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567
1568if test ${srcdir} != "." ; then
1569  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572   { (exit 1); exit 1; }; }
1573  fi
1574fi
1575
1576for i in `ls ${srcdir}/projects`
1577do
1578  if test -d ${srcdir}/projects/${i} ; then
1579    case ${i} in
1580      "CVS") ;;
1581      "sample")
1582
1583subdirs="$subdirs projects/sample"
1584    ;;
1585      "Stacker")
1586
1587subdirs="$subdirs projects/Stacker"
1588   ;;
1589      "privbracket")
1590
1591subdirs="$subdirs projects/privbracket"
1592 ;;
1593      "llvm-test")
1594
1595subdirs="$subdirs projects/llvm-test"
1596 ;;
1597      "llvm-reopt")
1598
1599subdirs="$subdirs projects/llvm-reopt"
1600;;
1601      "llvm-gcc")
1602
1603subdirs="$subdirs projects/llvm-gcc"
1604  ;;
1605      "llvm-java")
1606
1607subdirs="$subdirs projects/llvm-java"
1608 ;;
1609      "llvm-tv")
1610
1611subdirs="$subdirs projects/llvm-tv"
1612   ;;
1613      "llvm-poolalloc")
1614
1615subdirs="$subdirs projects/llvm-poolalloc"
1616 ;;
1617      "llvm-kernel")
1618
1619subdirs="$subdirs projects/llvm-kernel"
1620 ;;
1621      *)
1622        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624        ;;
1625    esac
1626  fi
1627done
1628
1629
1630# Make sure we can run config.sub.
1631$ac_config_sub sun4 >/dev/null 2>&1 ||
1632  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634   { (exit 1); exit 1; }; }
1635
1636echo "$as_me:$LINENO: checking build system type" >&5
1637echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638if test "${ac_cv_build+set}" = set; then
1639  echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641  ac_cv_build_alias=$build_alias
1642test -z "$ac_cv_build_alias" &&
1643  ac_cv_build_alias=`$ac_config_guess`
1644test -z "$ac_cv_build_alias" &&
1645  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647   { (exit 1); exit 1; }; }
1648ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651   { (exit 1); exit 1; }; }
1652
1653fi
1654echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655echo "${ECHO_T}$ac_cv_build" >&6
1656build=$ac_cv_build
1657build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662echo "$as_me:$LINENO: checking host system type" >&5
1663echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664if test "${ac_cv_host+set}" = set; then
1665  echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667  ac_cv_host_alias=$host_alias
1668test -z "$ac_cv_host_alias" &&
1669  ac_cv_host_alias=$ac_cv_build_alias
1670ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673   { (exit 1); exit 1; }; }
1674
1675fi
1676echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677echo "${ECHO_T}$ac_cv_host" >&6
1678host=$ac_cv_host
1679host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684echo "$as_me:$LINENO: checking target system type" >&5
1685echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686if test "${ac_cv_target+set}" = set; then
1687  echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689  ac_cv_target_alias=$target_alias
1690test "x$ac_cv_target_alias" = "x" &&
1691  ac_cv_target_alias=$ac_cv_host_alias
1692ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695   { (exit 1); exit 1; }; }
1696
1697fi
1698echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699echo "${ECHO_T}$ac_cv_target" >&6
1700target=$ac_cv_target
1701target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706# The aliases save the names the user supplied, while $host etc.
1707# will get canonicalized.
1708test -n "$target_alias" &&
1709  test "$program_prefix$program_suffix$program_transform_name" = \
1710    NONENONEs,x,x, &&
1711  program_prefix=${target_alias}-
1712
1713echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
1715if test "${llvm_cv_os_type+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  case $host in
1719  *-*-aix*)
1720    llvm_cv_os_type="AIX"
1721    llvm_cv_platform_type="Unix" ;;
1722  *-*-cygwin*)
1723    llvm_cv_os_type="Cygwin"
1724    llvm_cv_platform_type="Unix" ;;
1725  *-*-darwin*)
1726    llvm_cv_os_type="Darwin"
1727    llvm_cv_platform_type="Unix" ;;
1728  *-*-freebsd*)
1729    llvm_cv_os_type="FreeBSD"
1730    llvm_cv_platform_type="Unix" ;;
1731  *-*-openbsd*)
1732    llvm_cv_os_type="OpenBSD"
1733    llvm_cv_platform_type="Unix" ;;
1734  *-*-hpux*)
1735    llvm_cv_os_type="HP-UX"
1736    llvm_cv_platform_type="Unix" ;;
1737  *-*-interix*)
1738    llvm_cv_os_type="Interix"
1739    llvm_cv_platform_type="Unix" ;;
1740  *-*-linux*)
1741    llvm_cv_os_type="Linux"
1742    llvm_cv_platform_type="Unix" ;;
1743  *-*-solaris*)
1744    llvm_cv_os_type="SunOS"
1745    llvm_cv_platform_type="Unix" ;;
1746  *-*-win32*)
1747    llvm_cv_os_type="Win32"
1748    llvm_cv_platform_type="Win32" ;;
1749  *-*-mingw*)
1750    llvm_cv_os_type="MingW"
1751    llvm_cv_platform_type="Win32" ;;
1752  *)
1753    llvm_cv_os_type="Unknown"
1754    llvm_cv_platform_type="Unknown" ;;
1755esac
1756fi
1757echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758echo "${ECHO_T}$llvm_cv_os_type" >&6
1759
1760if test "$llvm_cv_os_type" = "Unknown" ; then
1761  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763   { (exit 1); exit 1; }; }
1764fi
1765
1766OS=$llvm_cv_os_type
1767
1768
1769case $llvm_cv_platform_type in
1770  Unix)
1771
1772cat >>confdefs.h <<\_ACEOF
1773#define LLVM_ON_UNIX 1
1774_ACEOF
1775
1776    LLVM_ON_UNIX=1
1777
1778    LLVM_ON_WIN32=0
1779
1780    ;;
1781  Win32)
1782
1783cat >>confdefs.h <<\_ACEOF
1784#define LLVM_ON_WIN32 1
1785_ACEOF
1786
1787    LLVM_ON_UNIX=0
1788
1789    LLVM_ON_WIN32=1
1790
1791    ;;
1792esac
1793
1794echo "$as_me:$LINENO: checking target architecture" >&5
1795echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796if test "${llvm_cv_target_arch+set}" = set; then
1797  echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799  case $target in
1800  i?86-*)                 llvm_cv_target_arch="x86" ;;
1801  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1802  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1803  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1804  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1805  ia64-*)                 llvm_cv_target_arch="IA64" ;;
1806  *)                      llvm_cv_target_arch="Unknown" ;;
1807esac
1808fi
1809echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810echo "${ECHO_T}$llvm_cv_target_arch" >&6
1811
1812if test "$llvm_cv_target_arch" = "Unknown" ; then
1813  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1815fi
1816
1817ARCH=$llvm_cv_target_arch
1818
1819
1820ac_ext=c
1821ac_cpp='$CPP $CPPFLAGS'
1822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825if test -n "$ac_tool_prefix"; then
1826  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_CC+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  if test -n "$CC"; then
1834  ac_cv_prog_CC="$CC" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  test -z "$as_dir" && as_dir=.
1841  for ac_exec_ext in '' $ac_executable_extensions; do
1842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845    break 2
1846  fi
1847done
1848done
1849
1850fi
1851fi
1852CC=$ac_cv_prog_CC
1853if test -n "$CC"; then
1854  echo "$as_me:$LINENO: result: $CC" >&5
1855echo "${ECHO_T}$CC" >&6
1856else
1857  echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863  ac_ct_CC=$CC
1864  # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869  echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871  if test -n "$ac_ct_CC"; then
1872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877  IFS=$as_save_IFS
1878  test -z "$as_dir" && as_dir=.
1879  for ac_exec_ext in '' $ac_executable_extensions; do
1880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881    ac_cv_prog_ac_ct_CC="gcc"
1882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883    break 2
1884  fi
1885done
1886done
1887
1888fi
1889fi
1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891if test -n "$ac_ct_CC"; then
1892  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893echo "${ECHO_T}$ac_ct_CC" >&6
1894else
1895  echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899  CC=$ac_ct_CC
1900else
1901  CC="$ac_cv_prog_CC"
1902fi
1903
1904if test -z "$CC"; then
1905  if test -n "$ac_tool_prefix"; then
1906  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907set dummy ${ac_tool_prefix}cc; ac_word=$2
1908echo "$as_me:$LINENO: checking for $ac_word" >&5
1909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910if test "${ac_cv_prog_CC+set}" = set; then
1911  echo $ECHO_N "(cached) $ECHO_C" >&6
1912else
1913  if test -n "$CC"; then
1914  ac_cv_prog_CC="$CC" # Let the user override the test.
1915else
1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917for as_dir in $PATH
1918do
1919  IFS=$as_save_IFS
1920  test -z "$as_dir" && as_dir=.
1921  for ac_exec_ext in '' $ac_executable_extensions; do
1922  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923    ac_cv_prog_CC="${ac_tool_prefix}cc"
1924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925    break 2
1926  fi
1927done
1928done
1929
1930fi
1931fi
1932CC=$ac_cv_prog_CC
1933if test -n "$CC"; then
1934  echo "$as_me:$LINENO: result: $CC" >&5
1935echo "${ECHO_T}$CC" >&6
1936else
1937  echo "$as_me:$LINENO: result: no" >&5
1938echo "${ECHO_T}no" >&6
1939fi
1940
1941fi
1942if test -z "$ac_cv_prog_CC"; then
1943  ac_ct_CC=$CC
1944  # Extract the first word of "cc", so it can be a program name with args.
1945set dummy cc; ac_word=$2
1946echo "$as_me:$LINENO: checking for $ac_word" >&5
1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949  echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951  if test -n "$ac_ct_CC"; then
1952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953else
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961    ac_cv_prog_ac_ct_CC="cc"
1962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963    break 2
1964  fi
1965done
1966done
1967
1968fi
1969fi
1970ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971if test -n "$ac_ct_CC"; then
1972  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973echo "${ECHO_T}$ac_ct_CC" >&6
1974else
1975  echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6
1977fi
1978
1979  CC=$ac_ct_CC
1980else
1981  CC="$ac_cv_prog_CC"
1982fi
1983
1984fi
1985if test -z "$CC"; then
1986  # Extract the first word of "cc", so it can be a program name with args.
1987set dummy cc; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_CC+set}" = set; then
1991  echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993  if test -n "$CC"; then
1994  ac_cv_prog_CC="$CC" # Let the user override the test.
1995else
1996  ac_prog_rejected=no
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002  for ac_exec_ext in '' $ac_executable_extensions; do
2003  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005       ac_prog_rejected=yes
2006       continue
2007     fi
2008    ac_cv_prog_CC="cc"
2009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010    break 2
2011  fi
2012done
2013done
2014
2015if test $ac_prog_rejected = yes; then
2016  # We found a bogon in the path, so make sure we never use it.
2017  set dummy $ac_cv_prog_CC
2018  shift
2019  if test $# != 0; then
2020    # We chose a different compiler from the bogus one.
2021    # However, it has the same basename, so the bogon will be chosen
2022    # first if we set CC to just the basename; use the full file name.
2023    shift
2024    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025  fi
2026fi
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031  echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034  echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038fi
2039if test -z "$CC"; then
2040  if test -n "$ac_tool_prefix"; then
2041  for ac_prog in cl
2042  do
2043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_CC+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$CC"; then
2051  ac_cv_prog_CC="$CC" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066
2067fi
2068fi
2069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071  echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6
2073else
2074  echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
2078    test -n "$CC" && break
2079  done
2080fi
2081if test -z "$CC"; then
2082  ac_ct_CC=$CC
2083  for ac_prog in cl
2084do
2085  # Extract the first word of "$ac_prog", so it can be a program name with args.
2086set dummy $ac_prog; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092  if test -n "$ac_ct_CC"; then
2093  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098  IFS=$as_save_IFS
2099  test -z "$as_dir" && as_dir=.
2100  for ac_exec_ext in '' $ac_executable_extensions; do
2101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102    ac_cv_prog_ac_ct_CC="$ac_prog"
2103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104    break 2
2105  fi
2106done
2107done
2108
2109fi
2110fi
2111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
2113  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6
2115else
2116  echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
2120  test -n "$ac_ct_CC" && break
2121done
2122
2123  CC=$ac_ct_CC
2124fi
2125
2126fi
2127
2128
2129test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: no acceptable C compiler found in \$PATH
2132See \`config.log' for more details." >&2;}
2133   { (exit 1); exit 1; }; }
2134
2135# Provide some information about the compiler.
2136echo "$as_me:$LINENO:" \
2137     "checking for C compiler version" >&5
2138ac_compiler=`set X $ac_compile; echo $2`
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140  (eval $ac_compiler --version </dev/null >&5) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }
2144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145  (eval $ac_compiler -v </dev/null >&5) 2>&5
2146  ac_status=$?
2147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148  (exit $ac_status); }
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150  (eval $ac_compiler -V </dev/null >&5) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }
2154
2155cat >conftest.$ac_ext <<_ACEOF
2156/* confdefs.h.  */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
2160/* end confdefs.h.  */
2161
2162int
2163main ()
2164{
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170ac_clean_files_save=$ac_clean_files
2171ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172# Try to create an executable without -o first, disregard a.out.
2173# It will help us diagnose broken compilers, and finding out an intuition
2174# of exeext.
2175echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179  (eval $ac_link_default) 2>&5
2180  ac_status=$?
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); }; then
2183  # Find the output, starting from the most likely.  This scheme is
2184# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185# resort.
2186
2187# Be careful to initialize this variable, since it used to be cached.
2188# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189ac_cv_exeext=
2190# b.out is created by i960 compilers.
2191for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192do
2193  test -f "$ac_file" || continue
2194  case $ac_file in
2195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2196	;;
2197    conftest.$ac_ext )
2198	# This is the source file.
2199	;;
2200    [ab].out )
2201	# We found the default executable, but exeext='' is most
2202	# certainly right.
2203	break;;
2204    *.* )
2205	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206	# FIXME: I believe we export ac_cv_exeext for Libtool,
2207	# but it would be cool to find out if it's true.  Does anybody
2208	# maintain Libtool? --akim.
2209	export ac_cv_exeext
2210	break;;
2211    * )
2212	break;;
2213  esac
2214done
2215else
2216  echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220See \`config.log' for more details." >&5
2221echo "$as_me: error: C compiler cannot create executables
2222See \`config.log' for more details." >&2;}
2223   { (exit 77); exit 77; }; }
2224fi
2225
2226ac_exeext=$ac_cv_exeext
2227echo "$as_me:$LINENO: result: $ac_file" >&5
2228echo "${ECHO_T}$ac_file" >&6
2229
2230# Check the compiler produces executables we can run.  If not, either
2231# the compiler is broken, or we cross compile.
2232echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235# If not cross compiling, check that we can run a simple program.
2236if test "$cross_compiling" != yes; then
2237  if { ac_try='./$ac_file'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; }; then
2243    cross_compiling=no
2244  else
2245    if test "$cross_compiling" = maybe; then
2246	cross_compiling=yes
2247    else
2248	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&5
2251echo "$as_me: error: cannot run C compiled programs.
2252If you meant to cross compile, use \`--host'.
2253See \`config.log' for more details." >&2;}
2254   { (exit 1); exit 1; }; }
2255    fi
2256  fi
2257fi
2258echo "$as_me:$LINENO: result: yes" >&5
2259echo "${ECHO_T}yes" >&6
2260
2261rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262ac_clean_files=$ac_clean_files_save
2263# Check the compiler produces executables we can run.  If not, either
2264# the compiler is broken, or we cross compile.
2265echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268echo "${ECHO_T}$cross_compiling" >&6
2269
2270echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273  (eval $ac_link) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; then
2277  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2279# work properly (i.e., refer to `conftest.exe'), while it won't with
2280# `rm'.
2281for ac_file in conftest.exe conftest conftest.*; do
2282  test -f "$ac_file" || continue
2283  case $ac_file in
2284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286	  export ac_cv_exeext
2287	  break;;
2288    * ) break;;
2289  esac
2290done
2291else
2292  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&2;}
2296   { (exit 1); exit 1; }; }
2297fi
2298
2299rm -f conftest$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301echo "${ECHO_T}$ac_cv_exeext" >&6
2302
2303rm -f conftest.$ac_ext
2304EXEEXT=$ac_cv_exeext
2305ac_exeext=$EXEEXT
2306echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308if test "${ac_cv_objext+set}" = set; then
2309  echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311  cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317
2318int
2319main ()
2320{
2321
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326rm -f conftest.o conftest.obj
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328  (eval $ac_compile) 2>&5
2329  ac_status=$?
2330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }; then
2332  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333  case $ac_file in
2334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336       break;;
2337  esac
2338done
2339else
2340  echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&2;}
2347   { (exit 1); exit 1; }; }
2348fi
2349
2350rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351fi
2352echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353echo "${ECHO_T}$ac_cv_objext" >&6
2354OBJEXT=$ac_cv_objext
2355ac_objext=$OBJEXT
2356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359  echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367
2368int
2369main ()
2370{
2371#ifndef __GNUC__
2372       choke me
2373#endif
2374
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381  (eval $ac_compile) 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388	 { ac_try='test -z "$ac_c_werror_flag"
2389			 || test ! -s conftest.err'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; } &&
2395	 { ac_try='test -s conftest.$ac_objext'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; }; then
2401  ac_compiler_gnu=yes
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406ac_compiler_gnu=no
2407fi
2408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411fi
2412echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
2415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
2417CFLAGS="-g"
2418echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420if test "${ac_cv_prog_cc_g+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h.  */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h.  */
2429
2430int
2431main ()
2432{
2433
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440  (eval $ac_compile) 2>conftest.er1
2441  ac_status=$?
2442  grep -v '^ *+' conftest.er1 >conftest.err
2443  rm -f conftest.er1
2444  cat conftest.err >&5
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); } &&
2447	 { ac_try='test -z "$ac_c_werror_flag"
2448			 || test ! -s conftest.err'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; } &&
2454	 { ac_try='test -s conftest.$ac_objext'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; }; then
2460  ac_cv_prog_cc_g=yes
2461else
2462  echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465ac_cv_prog_cc_g=no
2466fi
2467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468fi
2469echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471if test "$ac_test_CFLAGS" = set; then
2472  CFLAGS=$ac_save_CFLAGS
2473elif test $ac_cv_prog_cc_g = yes; then
2474  if test "$GCC" = yes; then
2475    CFLAGS="-g -O2"
2476  else
2477    CFLAGS="-g"
2478  fi
2479else
2480  if test "$GCC" = yes; then
2481    CFLAGS="-O2"
2482  else
2483    CFLAGS=
2484  fi
2485fi
2486echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  ac_cv_prog_cc_stdc=no
2492ac_save_CC=$CC
2493cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499#include <stdarg.h>
2500#include <stdio.h>
2501#include <sys/types.h>
2502#include <sys/stat.h>
2503/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2504struct buf { int x; };
2505FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506static char *e (p, i)
2507     char **p;
2508     int i;
2509{
2510  return p[i];
2511}
2512static char *f (char * (*g) (char **, int), char **p, ...)
2513{
2514  char *s;
2515  va_list v;
2516  va_start (v,p);
2517  s = g (p, va_arg (v,int));
2518  va_end (v);
2519  return s;
2520}
2521
2522/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2523   function prototypes and stuff, but not '\xHH' hex character constants.
2524   These don't provoke an error unfortunately, instead are silently treated
2525   as 'x'.  The following induces an error, until -std1 is added to get
2526   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2527   array size at least.  It's necessary to write '\x00'==0 to get something
2528   that's true only with -std1.  */
2529int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530
2531int test (int i, double x);
2532struct s1 {int (*f) (int a);};
2533struct s2 {int (*f) (double a);};
2534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535int argc;
2536char **argv;
2537int
2538main ()
2539{
2540return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545# Don't try gcc -ansi; that turns off useful extensions and
2546# breaks some systems' header files.
2547# AIX			-qlanglvl=ansi
2548# Ultrix and OSF/1	-std1
2549# HP-UX 10.20 and later	-Ae
2550# HP-UX older versions	-Aa -D_HPUX_SOURCE
2551# SVR4			-Xc -D__EXTENSIONS__
2552for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553do
2554  CC="$ac_save_CC $ac_arg"
2555  rm -f conftest.$ac_objext
2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557  (eval $ac_compile) 2>conftest.er1
2558  ac_status=$?
2559  grep -v '^ *+' conftest.er1 >conftest.err
2560  rm -f conftest.er1
2561  cat conftest.err >&5
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); } &&
2564	 { ac_try='test -z "$ac_c_werror_flag"
2565			 || test ! -s conftest.err'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; } &&
2571	 { ac_try='test -s conftest.$ac_objext'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; }; then
2577  ac_cv_prog_cc_stdc=$ac_arg
2578break
2579else
2580  echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583fi
2584rm -f conftest.err conftest.$ac_objext
2585done
2586rm -f conftest.$ac_ext conftest.$ac_objext
2587CC=$ac_save_CC
2588
2589fi
2590
2591case "x$ac_cv_prog_cc_stdc" in
2592  x|xno)
2593    echo "$as_me:$LINENO: result: none needed" >&5
2594echo "${ECHO_T}none needed" >&6 ;;
2595  *)
2596    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598    CC="$CC $ac_cv_prog_cc_stdc" ;;
2599esac
2600
2601# Some people use a C++ compiler to compile C.  Since we use `exit',
2602# in C++ we need to declare it.  In case someone uses the same compiler
2603# for both compiling C and C++ we need to have the C++ compiler decide
2604# the declaration of exit, since it's the most demanding environment.
2605cat >conftest.$ac_ext <<_ACEOF
2606#ifndef __cplusplus
2607  choke me
2608#endif
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612  (eval $ac_compile) 2>conftest.er1
2613  ac_status=$?
2614  grep -v '^ *+' conftest.er1 >conftest.err
2615  rm -f conftest.er1
2616  cat conftest.err >&5
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619	 { ac_try='test -z "$ac_c_werror_flag"
2620			 || test ! -s conftest.err'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626	 { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  for ac_declaration in \
2633   '' \
2634   'extern "C" void std::exit (int) throw (); using std::exit;' \
2635   'extern "C" void std::exit (int); using std::exit;' \
2636   'extern "C" void exit (int) throw ();' \
2637   'extern "C" void exit (int);' \
2638   'void exit (int);'
2639do
2640  cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h.  */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h.  */
2646$ac_declaration
2647#include <stdlib.h>
2648int
2649main ()
2650{
2651exit (42);
2652  ;
2653  return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658  (eval $ac_compile) 2>conftest.er1
2659  ac_status=$?
2660  grep -v '^ *+' conftest.er1 >conftest.err
2661  rm -f conftest.er1
2662  cat conftest.err >&5
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); } &&
2665	 { ac_try='test -z "$ac_c_werror_flag"
2666			 || test ! -s conftest.err'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; } &&
2672	 { ac_try='test -s conftest.$ac_objext'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; }; then
2678  :
2679else
2680  echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683continue
2684fi
2685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686  cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692$ac_declaration
2693int
2694main ()
2695{
2696exit (42);
2697  ;
2698  return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703  (eval $ac_compile) 2>conftest.er1
2704  ac_status=$?
2705  grep -v '^ *+' conftest.er1 >conftest.err
2706  rm -f conftest.er1
2707  cat conftest.err >&5
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); } &&
2710	 { ac_try='test -z "$ac_c_werror_flag"
2711			 || test ! -s conftest.err'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; } &&
2717	 { ac_try='test -s conftest.$ac_objext'
2718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719  (eval $ac_try) 2>&5
2720  ac_status=$?
2721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722  (exit $ac_status); }; }; then
2723  break
2724else
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730done
2731rm -f conftest*
2732if test -n "$ac_declaration"; then
2733  echo '#ifdef __cplusplus' >>confdefs.h
2734  echo $ac_declaration      >>confdefs.h
2735  echo '#endif'             >>confdefs.h
2736fi
2737
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753if test "${ac_cv_c_bigendian+set}" = set; then
2754  echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756  # See if sys/param.h defines the BYTE_ORDER macro.
2757cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763#include <sys/types.h>
2764#include <sys/param.h>
2765
2766int
2767main ()
2768{
2769#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770 bogus endian macros
2771#endif
2772
2773  ;
2774  return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779  (eval $ac_compile) 2>conftest.er1
2780  ac_status=$?
2781  grep -v '^ *+' conftest.er1 >conftest.err
2782  rm -f conftest.er1
2783  cat conftest.err >&5
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); } &&
2786	 { ac_try='test -z "$ac_c_werror_flag"
2787			 || test ! -s conftest.err'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; } &&
2793	 { ac_try='test -s conftest.$ac_objext'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; }; then
2799  # It does; now see whether it defined to BIG_ENDIAN or not.
2800cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806#include <sys/types.h>
2807#include <sys/param.h>
2808
2809int
2810main ()
2811{
2812#if BYTE_ORDER != BIG_ENDIAN
2813 not big endian
2814#endif
2815
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
2821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822  (eval $ac_compile) 2>conftest.er1
2823  ac_status=$?
2824  grep -v '^ *+' conftest.er1 >conftest.err
2825  rm -f conftest.er1
2826  cat conftest.err >&5
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); } &&
2829	 { ac_try='test -z "$ac_c_werror_flag"
2830			 || test ! -s conftest.err'
2831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832  (eval $ac_try) 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; } &&
2836	 { ac_try='test -s conftest.$ac_objext'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; }; then
2842  ac_cv_c_bigendian=yes
2843else
2844  echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847ac_cv_c_bigendian=no
2848fi
2849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850else
2851  echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854# It does not; compile a test program.
2855if test "$cross_compiling" = yes; then
2856  # try to guess the endianness by grepping values into an object file
2857  ac_cv_c_bigendian=unknown
2858  cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h.  */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h.  */
2864short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2870int
2871main ()
2872{
2873 _ascii (); _ebcdic ();
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880  (eval $ac_compile) 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887	 { ac_try='test -z "$ac_c_werror_flag"
2888			 || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894	 { ac_try='test -s conftest.$ac_objext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901  ac_cv_c_bigendian=yes
2902fi
2903if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904  if test "$ac_cv_c_bigendian" = unknown; then
2905    ac_cv_c_bigendian=no
2906  else
2907    # finding both strings is unlikely to happen, but who knows?
2908    ac_cv_c_bigendian=unknown
2909  fi
2910fi
2911else
2912  echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915fi
2916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917else
2918  cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h.  */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h.  */
2924int
2925main ()
2926{
2927  /* Are we little or big endian?  From Harbison&Steele.  */
2928  union
2929  {
2930    long l;
2931    char c[sizeof (long)];
2932  } u;
2933  u.l = 1;
2934  exit (u.c[sizeof (long) - 1] == 1);
2935}
2936_ACEOF
2937rm -f conftest$ac_exeext
2938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939  (eval $ac_link) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948  ac_cv_c_bigendian=no
2949else
2950  echo "$as_me: program exited with status $ac_status" >&5
2951echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954( exit $ac_status )
2955ac_cv_c_bigendian=yes
2956fi
2957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2958fi
2959fi
2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961fi
2962echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964case $ac_cv_c_bigendian in
2965  yes)
2966    ENDIAN=big
2967 ;;
2968  no)
2969    ENDIAN=little
2970 ;;
2971  *)
2972    { { echo "$as_me:$LINENO: error: unknown endianness
2973presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974echo "$as_me: error: unknown endianness
2975presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976   { (exit 1); exit 1; }; } ;;
2977esac
2978
2979
2980if test "$cross_compiling" = yes; then
2981  LLVM_CROSS_COMPILING=1
2982
2983
2984echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986if test "${ac_cv_build_exeext+set}" = set; then
2987  echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990  ac_cv_build_exeext=.exe
2991else
2992  ac_build_prefix=${build_alias}-
2993
2994  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995set dummy ${ac_build_prefix}gcc; ac_word=$2
2996echo "$as_me:$LINENO: checking for $ac_word" >&5
2997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  if test -n "$BUILD_CC"; then
3002  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009  for ac_exec_ext in '' $ac_executable_extensions; do
3010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013    break 2
3014  fi
3015done
3016done
3017
3018fi
3019fi
3020BUILD_CC=$ac_cv_prog_BUILD_CC
3021if test -n "$BUILD_CC"; then
3022  echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023echo "${ECHO_T}$BUILD_CC" >&6
3024else
3025  echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027fi
3028
3029  if test -z "$BUILD_CC"; then
3030     # Extract the first word of "gcc", so it can be a program name with args.
3031set dummy gcc; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035  echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037  if test -n "$BUILD_CC"; then
3038  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045  for ac_exec_ext in '' $ac_executable_extensions; do
3046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_BUILD_CC="gcc"
3048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052done
3053
3054fi
3055fi
3056BUILD_CC=$ac_cv_prog_BUILD_CC
3057if test -n "$BUILD_CC"; then
3058  echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059echo "${ECHO_T}$BUILD_CC" >&6
3060else
3061  echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
3063fi
3064
3065     if test -z "$BUILD_CC"; then
3066       # Extract the first word of "cc", so it can be a program name with args.
3067set dummy cc; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  if test -n "$BUILD_CC"; then
3074  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3075else
3076  ac_prog_rejected=no
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082  for ac_exec_ext in '' $ac_executable_extensions; do
3083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085       ac_prog_rejected=yes
3086       continue
3087     fi
3088    ac_cv_prog_BUILD_CC="cc"
3089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093done
3094
3095if test $ac_prog_rejected = yes; then
3096  # We found a bogon in the path, so make sure we never use it.
3097  set dummy $ac_cv_prog_BUILD_CC
3098  shift
3099  if test $# != 0; then
3100    # We chose a different compiler from the bogus one.
3101    # However, it has the same basename, so the bogon will be chosen
3102    # first if we set BUILD_CC to just the basename; use the full file name.
3103    shift
3104    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3105  fi
3106fi
3107fi
3108fi
3109BUILD_CC=$ac_cv_prog_BUILD_CC
3110if test -n "$BUILD_CC"; then
3111  echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112echo "${ECHO_T}$BUILD_CC" >&6
3113else
3114  echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117
3118     fi
3119  fi
3120  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122   { (exit 1); exit 1; }; }
3123  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3124  rm -f conftest*
3125  echo 'int main () { return 0; }' > conftest.$ac_ext
3126  ac_cv_build_exeext=
3127  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128  (eval $ac_build_link) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; then
3132    for file in conftest.*; do
3133      case $file in
3134      *.c | *.o | *.obj) ;;
3135      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3136      esac
3137    done
3138  else
3139    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141   { (exit 1); exit 1; }; }
3142  fi
3143  rm -f conftest*
3144  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3145fi
3146fi
3147
3148BUILD_EXEEXT=""
3149test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152ac_build_exeext=$BUILD_EXEEXT
3153
3154else
3155  LLVM_CROSS_COMPILING=0
3156
3157fi
3158
3159if test -d "CVS" -o -d "${srcdir}/CVS"; then
3160  cvsbuild="yes"
3161  optimize="no"
3162  CVSBUILD=CVSBUILD=1
3163
3164else
3165  cvsbuild="no"
3166  optimize="yes"
3167fi
3168
3169
3170# Check whether --enable-optimized or --disable-optimized was given.
3171if test "${enable_optimized+set}" = set; then
3172  enableval="$enable_optimized"
3173
3174else
3175  enableval=$optimize
3176fi;
3177if test ${enableval} = "no" ; then
3178  ENABLE_OPTIMIZED=
3179
3180else
3181  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3182
3183fi
3184
3185# Check whether --enable-assertions or --disable-assertions was given.
3186if test "${enable_assertions+set}" = set; then
3187  enableval="$enable_assertions"
3188
3189else
3190  enableval="yes"
3191fi;
3192if test ${enableval} = "yes" ; then
3193  DISABLE_ASSERTIONS=
3194
3195else
3196  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3197
3198fi
3199
3200# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201if test "${enable_debug_runtime+set}" = set; then
3202  enableval="$enable_debug_runtime"
3203
3204else
3205  enableval=no
3206fi;
3207if test ${enableval} = "no" ; then
3208  DEBUG_RUNTIME=
3209
3210else
3211  DEBUG_RUNTIME=DEBUG_RUNTIME=1
3212
3213fi
3214
3215# Check whether --enable-jit or --disable-jit was given.
3216if test "${enable_jit+set}" = set; then
3217  enableval="$enable_jit"
3218
3219else
3220  enableval=default
3221fi;
3222if test ${enableval} = "no"
3223then
3224  JIT=
3225
3226else
3227  case "$llvm_cv_target_arch" in
3228    x86)     TARGET_HAS_JIT=1
3229 ;;
3230    Sparc)   TARGET_HAS_JIT=1
3231 ;;
3232    PowerPC) TARGET_HAS_JIT=1
3233 ;;
3234    x86_64)  TARGET_HAS_JIT=0
3235 ;;
3236    Alpha)   TARGET_HAS_JIT=1
3237 ;;
3238    IA64)    TARGET_HAS_JIT=0
3239 ;;
3240    *)       TARGET_HAS_JIT=0
3241 ;;
3242  esac
3243fi
3244
3245# Check whether --enable-doxygen or --disable-doxygen was given.
3246if test "${enable_doxygen+set}" = set; then
3247  enableval="$enable_doxygen"
3248
3249else
3250  enableval=default
3251fi;
3252case "$enableval" in
3253  yes) ENABLE_DOXYGEN=1
3254 ;;
3255  no)  ENABLE_DOXYGEN=0
3256 ;;
3257  default) ENABLE_DOXYGEN=0
3258 ;;
3259  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261   { (exit 1); exit 1; }; } ;;
3262esac
3263
3264# Check whether --enable-threads or --disable-threads was given.
3265if test "${enable_threads+set}" = set; then
3266  enableval="$enable_threads"
3267
3268else
3269  enableval=yes
3270fi;
3271case "$enableval" in
3272  yes) ENABLE_THREADS=1
3273 ;;
3274  no)  ENABLE_THREADS=0
3275 ;;
3276  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278   { (exit 1); exit 1; }; } ;;
3279esac
3280
3281cat >>confdefs.h <<_ACEOF
3282#define ENABLE_THREADS $ENABLE_THREADS
3283_ACEOF
3284
3285
3286TARGETS_TO_BUILD=""
3287# Check whether --enable-targets or --disable-targets was given.
3288if test "${enable_targets+set}" = set; then
3289  enableval="$enable_targets"
3290
3291else
3292  enableval=all
3293fi;
3294case "$enableval" in
3295  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3296  host-only)
3297    case "$llvm_cv_target_arch" in
3298      x86)     TARGETS_TO_BUILD="X86" ;;
3299      x86_64)  TARGETS_TO_BUILD="X86" ;;
3300      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3301      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3303      IA64)    TARGETS_TO_BUILD="IA64" ;;
3304      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3305echo "$as_me: error: Can not set target to build" >&2;}
3306   { (exit 1); exit 1; }; } ;;
3307    esac
3308    ;;
3309  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3310      case "$a_target" in
3311        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3313        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3314        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3317        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319   { (exit 1); exit 1; }; } ;;
3320      esac
3321  done
3322  ;;
3323esac
3324TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3325TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3326
3327
3328
3329# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330if test "${with_llvmgccdir+set}" = set; then
3331  withval="$with_llvmgccdir"
3332
3333else
3334  withval=default
3335fi;
3336case "$withval" in
3337  default) WITH_LLVMGCCDIR=default ;;
3338  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3339  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341   { (exit 1); exit 1; }; } ;;
3342esac
3343
3344
3345# Check whether --with-extra-options or --without-extra-options was given.
3346if test "${with_extra_options+set}" = set; then
3347  withval="$with_extra_options"
3348
3349else
3350  extraopts=default
3351fi;
3352case "$extraopts" in
3353  default) EXTRA_OPTIONS= ;;
3354  *) EXTRA_OPTIONS=$extraopts ;;
3355esac
3356EXTRA_OPTIONS=$EXTRA_OPTIONS
3357
3358
3359
3360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367# On Suns, sometimes $CPP names a directory.
3368if test -n "$CPP" && test -d "$CPP"; then
3369  CPP=
3370fi
3371if test -z "$CPP"; then
3372  if test "${ac_cv_prog_CPP+set}" = set; then
3373  echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375      # Double quotes because CPP needs to be expanded
3376    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377    do
3378      ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381  # Use a header file that comes with gcc, so configuring glibc
3382  # with a fresh cross-compiler works.
3383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384  # <limits.h> exists even on freestanding compilers.
3385  # On the NeXT, cc -E runs the code through the compiler's parser,
3386  # not just through cpp. "Syntax error" is here to catch this case.
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398		     Syntax error
3399_ACEOF
3400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } >/dev/null; then
3408  if test -s conftest.err; then
3409    ac_cpp_err=$ac_c_preproc_warn_flag
3410    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411  else
3412    ac_cpp_err=
3413  fi
3414else
3415  ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418  :
3419else
3420  echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423  # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427
3428  # OK, works on sane cases.  Now check whether non-existent headers
3429  # can be detected and how.
3430  cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436#include <ac_nonexistent.h>
3437_ACEOF
3438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } >/dev/null; then
3446  if test -s conftest.err; then
3447    ac_cpp_err=$ac_c_preproc_warn_flag
3448    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449  else
3450    ac_cpp_err=
3451  fi
3452else
3453  ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456  # Broken: success on invalid input.
3457continue
3458else
3459  echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462  # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
3471if $ac_preproc_ok; then
3472  break
3473fi
3474
3475    done
3476    ac_cv_prog_CPP=$CPP
3477
3478fi
3479  CPP=$ac_cv_prog_CPP
3480else
3481  ac_cv_prog_CPP=$CPP
3482fi
3483echo "$as_me:$LINENO: result: $CPP" >&5
3484echo "${ECHO_T}$CPP" >&6
3485ac_preproc_ok=false
3486for ac_c_preproc_warn_flag in '' yes
3487do
3488  # Use a header file that comes with gcc, so configuring glibc
3489  # with a fresh cross-compiler works.
3490  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491  # <limits.h> exists even on freestanding compilers.
3492  # On the NeXT, cc -E runs the code through the compiler's parser,
3493  # not just through cpp. "Syntax error" is here to catch this case.
3494  cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h.  */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h.  */
3500#ifdef __STDC__
3501# include <limits.h>
3502#else
3503# include <assert.h>
3504#endif
3505		     Syntax error
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } >/dev/null; then
3515  if test -s conftest.err; then
3516    ac_cpp_err=$ac_c_preproc_warn_flag
3517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518  else
3519    ac_cpp_err=
3520  fi
3521else
3522  ac_cpp_err=yes
3523fi
3524if test -z "$ac_cpp_err"; then
3525  :
3526else
3527  echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530  # Broken: fails on valid input.
3531continue
3532fi
3533rm -f conftest.err conftest.$ac_ext
3534
3535  # OK, works on sane cases.  Now check whether non-existent headers
3536  # can be detected and how.
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543#include <ac_nonexistent.h>
3544_ACEOF
3545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547  ac_status=$?
3548  grep -v '^ *+' conftest.er1 >conftest.err
3549  rm -f conftest.er1
3550  cat conftest.err >&5
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); } >/dev/null; then
3553  if test -s conftest.err; then
3554    ac_cpp_err=$ac_c_preproc_warn_flag
3555    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556  else
3557    ac_cpp_err=
3558  fi
3559else
3560  ac_cpp_err=yes
3561fi
3562if test -z "$ac_cpp_err"; then
3563  # Broken: success on invalid input.
3564continue
3565else
3566  echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569  # Passes both tests.
3570ac_preproc_ok=:
3571break
3572fi
3573rm -f conftest.err conftest.$ac_ext
3574
3575done
3576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577rm -f conftest.err conftest.$ac_ext
3578if $ac_preproc_ok; then
3579  :
3580else
3581  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582See \`config.log' for more details." >&5
3583echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584See \`config.log' for more details." >&2;}
3585   { (exit 1); exit 1; }; }
3586fi
3587
3588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599if test -n "$ac_tool_prefix"; then
3600  for ac_prog in gcc
3601  do
3602    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_CC+set}" = set; then
3607  echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609  if test -n "$CC"; then
3610  ac_cv_prog_CC="$CC" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615  IFS=$as_save_IFS
3616  test -z "$as_dir" && as_dir=.
3617  for ac_exec_ext in '' $ac_executable_extensions; do
3618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621    break 2
3622  fi
3623done
3624done
3625
3626fi
3627fi
3628CC=$ac_cv_prog_CC
3629if test -n "$CC"; then
3630  echo "$as_me:$LINENO: result: $CC" >&5
3631echo "${ECHO_T}$CC" >&6
3632else
3633  echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635fi
3636
3637    test -n "$CC" && break
3638  done
3639fi
3640if test -z "$CC"; then
3641  ac_ct_CC=$CC
3642  for ac_prog in gcc
3643do
3644  # Extract the first word of "$ac_prog", so it can be a program name with args.
3645set dummy $ac_prog; ac_word=$2
3646echo "$as_me:$LINENO: checking for $ac_word" >&5
3647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649  echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651  if test -n "$ac_ct_CC"; then
3652  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657  IFS=$as_save_IFS
3658  test -z "$as_dir" && as_dir=.
3659  for ac_exec_ext in '' $ac_executable_extensions; do
3660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661    ac_cv_prog_ac_ct_CC="$ac_prog"
3662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663    break 2
3664  fi
3665done
3666done
3667
3668fi
3669fi
3670ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671if test -n "$ac_ct_CC"; then
3672  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673echo "${ECHO_T}$ac_ct_CC" >&6
3674else
3675  echo "$as_me:$LINENO: result: no" >&5
3676echo "${ECHO_T}no" >&6
3677fi
3678
3679  test -n "$ac_ct_CC" && break
3680done
3681
3682  CC=$ac_ct_CC
3683fi
3684
3685
3686test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687See \`config.log' for more details." >&5
3688echo "$as_me: error: no acceptable C compiler found in \$PATH
3689See \`config.log' for more details." >&2;}
3690   { (exit 1); exit 1; }; }
3691
3692# Provide some information about the compiler.
3693echo "$as_me:$LINENO:" \
3694     "checking for C compiler version" >&5
3695ac_compiler=`set X $ac_compile; echo $2`
3696{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697  (eval $ac_compiler --version </dev/null >&5) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }
3701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702  (eval $ac_compiler -v </dev/null >&5) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }
3706{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707  (eval $ac_compiler -V </dev/null >&5) 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); }
3711
3712echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715  echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717  cat >conftest.$ac_ext <<_ACEOF
3718/* confdefs.h.  */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727#ifndef __GNUC__
3728       choke me
3729#endif
3730
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735rm -f conftest.$ac_objext
3736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737  (eval $ac_compile) 2>conftest.er1
3738  ac_status=$?
3739  grep -v '^ *+' conftest.er1 >conftest.err
3740  rm -f conftest.er1
3741  cat conftest.err >&5
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); } &&
3744	 { ac_try='test -z "$ac_c_werror_flag"
3745			 || test ! -s conftest.err'
3746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747  (eval $ac_try) 2>&5
3748  ac_status=$?
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); }; } &&
3751	 { ac_try='test -s conftest.$ac_objext'
3752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753  (eval $ac_try) 2>&5
3754  ac_status=$?
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); }; }; then
3757  ac_compiler_gnu=yes
3758else
3759  echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762ac_compiler_gnu=no
3763fi
3764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770GCC=`test $ac_compiler_gnu = yes && echo yes`
3771ac_test_CFLAGS=${CFLAGS+set}
3772ac_save_CFLAGS=$CFLAGS
3773CFLAGS="-g"
3774echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776if test "${ac_cv_prog_cc_g+set}" = set; then
3777  echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779  cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext
3795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796  (eval $ac_compile) 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } &&
3803	 { ac_try='test -z "$ac_c_werror_flag"
3804			 || test ! -s conftest.err'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; } &&
3810	 { ac_try='test -s conftest.$ac_objext'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; }; then
3816  ac_cv_prog_cc_g=yes
3817else
3818  echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821ac_cv_prog_cc_g=no
3822fi
3823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824fi
3825echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827if test "$ac_test_CFLAGS" = set; then
3828  CFLAGS=$ac_save_CFLAGS
3829elif test $ac_cv_prog_cc_g = yes; then
3830  if test "$GCC" = yes; then
3831    CFLAGS="-g -O2"
3832  else
3833    CFLAGS="-g"
3834  fi
3835else
3836  if test "$GCC" = yes; then
3837    CFLAGS="-O2"
3838  else
3839    CFLAGS=
3840  fi
3841fi
3842echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845  echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847  ac_cv_prog_cc_stdc=no
3848ac_save_CC=$CC
3849cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h.  */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h.  */
3855#include <stdarg.h>
3856#include <stdio.h>
3857#include <sys/types.h>
3858#include <sys/stat.h>
3859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3860struct buf { int x; };
3861FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862static char *e (p, i)
3863     char **p;
3864     int i;
3865{
3866  return p[i];
3867}
3868static char *f (char * (*g) (char **, int), char **p, ...)
3869{
3870  char *s;
3871  va_list v;
3872  va_start (v,p);
3873  s = g (p, va_arg (v,int));
3874  va_end (v);
3875  return s;
3876}
3877
3878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3879   function prototypes and stuff, but not '\xHH' hex character constants.
3880   These don't provoke an error unfortunately, instead are silently treated
3881   as 'x'.  The following induces an error, until -std1 is added to get
3882   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3883   array size at least.  It's necessary to write '\x00'==0 to get something
3884   that's true only with -std1.  */
3885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887int test (int i, double x);
3888struct s1 {int (*f) (int a);};
3889struct s2 {int (*f) (double a);};
3890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891int argc;
3892char **argv;
3893int
3894main ()
3895{
3896return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901# Don't try gcc -ansi; that turns off useful extensions and
3902# breaks some systems' header files.
3903# AIX			-qlanglvl=ansi
3904# Ultrix and OSF/1	-std1
3905# HP-UX 10.20 and later	-Ae
3906# HP-UX older versions	-Aa -D_HPUX_SOURCE
3907# SVR4			-Xc -D__EXTENSIONS__
3908for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909do
3910  CC="$ac_save_CC $ac_arg"
3911  rm -f conftest.$ac_objext
3912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913  (eval $ac_compile) 2>conftest.er1
3914  ac_status=$?
3915  grep -v '^ *+' conftest.er1 >conftest.err
3916  rm -f conftest.er1
3917  cat conftest.err >&5
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); } &&
3920	 { ac_try='test -z "$ac_c_werror_flag"
3921			 || test ! -s conftest.err'
3922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923  (eval $ac_try) 2>&5
3924  ac_status=$?
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); }; } &&
3927	 { ac_try='test -s conftest.$ac_objext'
3928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929  (eval $ac_try) 2>&5
3930  ac_status=$?
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); }; }; then
3933  ac_cv_prog_cc_stdc=$ac_arg
3934break
3935else
3936  echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939fi
3940rm -f conftest.err conftest.$ac_objext
3941done
3942rm -f conftest.$ac_ext conftest.$ac_objext
3943CC=$ac_save_CC
3944
3945fi
3946
3947case "x$ac_cv_prog_cc_stdc" in
3948  x|xno)
3949    echo "$as_me:$LINENO: result: none needed" >&5
3950echo "${ECHO_T}none needed" >&6 ;;
3951  *)
3952    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954    CC="$CC $ac_cv_prog_cc_stdc" ;;
3955esac
3956
3957# Some people use a C++ compiler to compile C.  Since we use `exit',
3958# in C++ we need to declare it.  In case someone uses the same compiler
3959# for both compiling C and C++ we need to have the C++ compiler decide
3960# the declaration of exit, since it's the most demanding environment.
3961cat >conftest.$ac_ext <<_ACEOF
3962#ifndef __cplusplus
3963  choke me
3964#endif
3965_ACEOF
3966rm -f conftest.$ac_objext
3967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968  (eval $ac_compile) 2>conftest.er1
3969  ac_status=$?
3970  grep -v '^ *+' conftest.er1 >conftest.err
3971  rm -f conftest.er1
3972  cat conftest.err >&5
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); } &&
3975	 { ac_try='test -z "$ac_c_werror_flag"
3976			 || test ! -s conftest.err'
3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978  (eval $ac_try) 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; } &&
3982	 { ac_try='test -s conftest.$ac_objext'
3983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984  (eval $ac_try) 2>&5
3985  ac_status=$?
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); }; }; then
3988  for ac_declaration in \
3989   '' \
3990   'extern "C" void std::exit (int) throw (); using std::exit;' \
3991   'extern "C" void std::exit (int); using std::exit;' \
3992   'extern "C" void exit (int) throw ();' \
3993   'extern "C" void exit (int);' \
3994   'void exit (int);'
3995do
3996  cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h.  */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h.  */
4002$ac_declaration
4003#include <stdlib.h>
4004int
4005main ()
4006{
4007exit (42);
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014  (eval $ac_compile) 2>conftest.er1
4015  ac_status=$?
4016  grep -v '^ *+' conftest.er1 >conftest.err
4017  rm -f conftest.er1
4018  cat conftest.err >&5
4019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020  (exit $ac_status); } &&
4021	 { ac_try='test -z "$ac_c_werror_flag"
4022			 || test ! -s conftest.err'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; } &&
4028	 { ac_try='test -s conftest.$ac_objext'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; }; then
4034  :
4035else
4036  echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039continue
4040fi
4041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042  cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h.  */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h.  */
4048$ac_declaration
4049int
4050main ()
4051{
4052exit (42);
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext
4058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059  (eval $ac_compile) 2>conftest.er1
4060  ac_status=$?
4061  grep -v '^ *+' conftest.er1 >conftest.err
4062  rm -f conftest.er1
4063  cat conftest.err >&5
4064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065  (exit $ac_status); } &&
4066	 { ac_try='test -z "$ac_c_werror_flag"
4067			 || test ! -s conftest.err'
4068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069  (eval $ac_try) 2>&5
4070  ac_status=$?
4071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072  (exit $ac_status); }; } &&
4073	 { ac_try='test -s conftest.$ac_objext'
4074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075  (eval $ac_try) 2>&5
4076  ac_status=$?
4077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078  (exit $ac_status); }; }; then
4079  break
4080else
4081  echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084fi
4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086done
4087rm -f conftest*
4088if test -n "$ac_declaration"; then
4089  echo '#ifdef __cplusplus' >>confdefs.h
4090  echo $ac_declaration      >>confdefs.h
4091  echo '#endif'             >>confdefs.h
4092fi
4093
4094else
4095  echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098fi
4099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106ac_ext=cc
4107ac_cpp='$CXXCPP $CPPFLAGS'
4108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111if test -n "$ac_tool_prefix"; then
4112  for ac_prog in $CCC g++
4113  do
4114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116echo "$as_me:$LINENO: checking for $ac_word" >&5
4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118if test "${ac_cv_prog_CXX+set}" = set; then
4119  echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121  if test -n "$CXX"; then
4122  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129  for ac_exec_ext in '' $ac_executable_extensions; do
4130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133    break 2
4134  fi
4135done
4136done
4137
4138fi
4139fi
4140CXX=$ac_cv_prog_CXX
4141if test -n "$CXX"; then
4142  echo "$as_me:$LINENO: result: $CXX" >&5
4143echo "${ECHO_T}$CXX" >&6
4144else
4145  echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147fi
4148
4149    test -n "$CXX" && break
4150  done
4151fi
4152if test -z "$CXX"; then
4153  ac_ct_CXX=$CXX
4154  for ac_prog in $CCC g++
4155do
4156  # Extract the first word of "$ac_prog", so it can be a program name with args.
4157set dummy $ac_prog; ac_word=$2
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163  if test -n "$ac_ct_CXX"; then
4164  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  test -z "$as_dir" && as_dir=.
4171  for ac_exec_ext in '' $ac_executable_extensions; do
4172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173    ac_cv_prog_ac_ct_CXX="$ac_prog"
4174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175    break 2
4176  fi
4177done
4178done
4179
4180fi
4181fi
4182ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183if test -n "$ac_ct_CXX"; then
4184  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185echo "${ECHO_T}$ac_ct_CXX" >&6
4186else
4187  echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189fi
4190
4191  test -n "$ac_ct_CXX" && break
4192done
4193test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4194
4195  CXX=$ac_ct_CXX
4196fi
4197
4198
4199# Provide some information about the compiler.
4200echo "$as_me:$LINENO:" \
4201     "checking for C++ compiler version" >&5
4202ac_compiler=`set X $ac_compile; echo $2`
4203{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204  (eval $ac_compiler --version </dev/null >&5) 2>&5
4205  ac_status=$?
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); }
4208{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209  (eval $ac_compiler -v </dev/null >&5) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }
4213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214  (eval $ac_compiler -V </dev/null >&5) 2>&5
4215  ac_status=$?
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); }
4218
4219echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224  cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230
4231int
4232main ()
4233{
4234#ifndef __GNUC__
4235       choke me
4236#endif
4237
4238  ;
4239  return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244  (eval $ac_compile) 2>conftest.er1
4245  ac_status=$?
4246  grep -v '^ *+' conftest.er1 >conftest.err
4247  rm -f conftest.er1
4248  cat conftest.err >&5
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); } &&
4251	 { ac_try='test -z "$ac_cxx_werror_flag"
4252			 || test ! -s conftest.err'
4253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254  (eval $ac_try) 2>&5
4255  ac_status=$?
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); }; } &&
4258	 { ac_try='test -s conftest.$ac_objext'
4259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260  (eval $ac_try) 2>&5
4261  ac_status=$?
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); }; }; then
4264  ac_compiler_gnu=yes
4265else
4266  echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269ac_compiler_gnu=no
4270fi
4271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4273
4274fi
4275echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277GXX=`test $ac_compiler_gnu = yes && echo yes`
4278ac_test_CXXFLAGS=${CXXFLAGS+set}
4279ac_save_CXXFLAGS=$CXXFLAGS
4280CXXFLAGS="-g"
4281echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283if test "${ac_cv_prog_cxx_g+set}" = set; then
4284  echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286  cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h.  */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h.  */
4292
4293int
4294main ()
4295{
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303  (eval $ac_compile) 2>conftest.er1
4304  ac_status=$?
4305  grep -v '^ *+' conftest.er1 >conftest.err
4306  rm -f conftest.er1
4307  cat conftest.err >&5
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); } &&
4310	 { ac_try='test -z "$ac_cxx_werror_flag"
4311			 || test ! -s conftest.err'
4312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313  (eval $ac_try) 2>&5
4314  ac_status=$?
4315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316  (exit $ac_status); }; } &&
4317	 { ac_try='test -s conftest.$ac_objext'
4318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319  (eval $ac_try) 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); }; }; then
4323  ac_cv_prog_cxx_g=yes
4324else
4325  echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328ac_cv_prog_cxx_g=no
4329fi
4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334if test "$ac_test_CXXFLAGS" = set; then
4335  CXXFLAGS=$ac_save_CXXFLAGS
4336elif test $ac_cv_prog_cxx_g = yes; then
4337  if test "$GXX" = yes; then
4338    CXXFLAGS="-g -O2"
4339  else
4340    CXXFLAGS="-g"
4341  fi
4342else
4343  if test "$GXX" = yes; then
4344    CXXFLAGS="-O2"
4345  else
4346    CXXFLAGS=
4347  fi
4348fi
4349for ac_declaration in \
4350   '' \
4351   'extern "C" void std::exit (int) throw (); using std::exit;' \
4352   'extern "C" void std::exit (int); using std::exit;' \
4353   'extern "C" void exit (int) throw ();' \
4354   'extern "C" void exit (int);' \
4355   'void exit (int);'
4356do
4357  cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h.  */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h.  */
4363$ac_declaration
4364#include <stdlib.h>
4365int
4366main ()
4367{
4368exit (42);
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext
4374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375  (eval $ac_compile) 2>conftest.er1
4376  ac_status=$?
4377  grep -v '^ *+' conftest.er1 >conftest.err
4378  rm -f conftest.er1
4379  cat conftest.err >&5
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); } &&
4382	 { ac_try='test -z "$ac_cxx_werror_flag"
4383			 || test ! -s conftest.err'
4384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385  (eval $ac_try) 2>&5
4386  ac_status=$?
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); }; } &&
4389	 { ac_try='test -s conftest.$ac_objext'
4390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391  (eval $ac_try) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }; }; then
4395  :
4396else
4397  echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
4400continue
4401fi
4402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403  cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409$ac_declaration
4410int
4411main ()
4412{
4413exit (42);
4414  ;
4415  return 0;
4416}
4417_ACEOF
4418rm -f conftest.$ac_objext
4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420  (eval $ac_compile) 2>conftest.er1
4421  ac_status=$?
4422  grep -v '^ *+' conftest.er1 >conftest.err
4423  rm -f conftest.er1
4424  cat conftest.err >&5
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); } &&
4427	 { ac_try='test -z "$ac_cxx_werror_flag"
4428			 || test ! -s conftest.err'
4429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430  (eval $ac_try) 2>&5
4431  ac_status=$?
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); }; } &&
4434	 { ac_try='test -s conftest.$ac_objext'
4435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436  (eval $ac_try) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; }; then
4440  break
4441else
4442  echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445fi
4446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447done
4448rm -f conftest*
4449if test -n "$ac_declaration"; then
4450  echo '#ifdef __cplusplus' >>confdefs.h
4451  echo $ac_declaration      >>confdefs.h
4452  echo '#endif'             >>confdefs.h
4453fi
4454
4455ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461echo "$as_me:$LINENO: checking " >&5
4462echo $ECHO_N "checking ... $ECHO_C" >&6
4463if test "${ac_cv_has_flex+set}" = set; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466  for ac_prog in flex lex
4467do
4468  # Extract the first word of "$ac_prog", so it can be a program name with args.
4469set dummy $ac_prog; ac_word=$2
4470echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472if test "${ac_cv_prog_LEX+set}" = set; then
4473  echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475  if test -n "$LEX"; then
4476  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481  IFS=$as_save_IFS
4482  test -z "$as_dir" && as_dir=.
4483  for ac_exec_ext in '' $ac_executable_extensions; do
4484  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485    ac_cv_prog_LEX="$ac_prog"
4486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487    break 2
4488  fi
4489done
4490done
4491
4492fi
4493fi
4494LEX=$ac_cv_prog_LEX
4495if test -n "$LEX"; then
4496  echo "$as_me:$LINENO: result: $LEX" >&5
4497echo "${ECHO_T}$LEX" >&6
4498else
4499  echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6
4501fi
4502
4503  test -n "$LEX" && break
4504done
4505test -n "$LEX" || LEX=":"
4506
4507if test -z "$LEXLIB"
4508then
4509  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512  echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514  ac_check_lib_save_LIBS=$LIBS
4515LIBS="-lfl  $LIBS"
4516cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h.  */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h.  */
4522
4523/* Override any gcc2 internal prototype to avoid an error.  */
4524#ifdef __cplusplus
4525extern "C"
4526#endif
4527/* We use char because int might match the return type of a gcc2
4528   builtin and then its argument prototype would still apply.  */
4529char yywrap ();
4530int
4531main ()
4532{
4533yywrap ();
4534  ;
4535  return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540  (eval $ac_link) 2>conftest.er1
4541  ac_status=$?
4542  grep -v '^ *+' conftest.er1 >conftest.err
4543  rm -f conftest.er1
4544  cat conftest.err >&5
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); } &&
4547	 { ac_try='test -z "$ac_c_werror_flag"
4548			 || test ! -s conftest.err'
4549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550  (eval $ac_try) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); }; } &&
4554	 { ac_try='test -s conftest$ac_exeext'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; }; then
4560  ac_cv_lib_fl_yywrap=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565ac_cv_lib_fl_yywrap=no
4566fi
4567rm -f conftest.err conftest.$ac_objext \
4568      conftest$ac_exeext conftest.$ac_ext
4569LIBS=$ac_check_lib_save_LIBS
4570fi
4571echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573if test $ac_cv_lib_fl_yywrap = yes; then
4574  LEXLIB="-lfl"
4575else
4576  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579  echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581  ac_check_lib_save_LIBS=$LIBS
4582LIBS="-ll  $LIBS"
4583cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h.  */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h.  */
4589
4590/* Override any gcc2 internal prototype to avoid an error.  */
4591#ifdef __cplusplus
4592extern "C"
4593#endif
4594/* We use char because int might match the return type of a gcc2
4595   builtin and then its argument prototype would still apply.  */
4596char yywrap ();
4597int
4598main ()
4599{
4600yywrap ();
4601  ;
4602  return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext conftest$ac_exeext
4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607  (eval $ac_link) 2>conftest.er1
4608  ac_status=$?
4609  grep -v '^ *+' conftest.er1 >conftest.err
4610  rm -f conftest.er1
4611  cat conftest.err >&5
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); } &&
4614	 { ac_try='test -z "$ac_c_werror_flag"
4615			 || test ! -s conftest.err'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; } &&
4621	 { ac_try='test -s conftest$ac_exeext'
4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623  (eval $ac_try) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }; }; then
4627  ac_cv_lib_l_yywrap=yes
4628else
4629  echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632ac_cv_lib_l_yywrap=no
4633fi
4634rm -f conftest.err conftest.$ac_objext \
4635      conftest$ac_exeext conftest.$ac_ext
4636LIBS=$ac_check_lib_save_LIBS
4637fi
4638echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640if test $ac_cv_lib_l_yywrap = yes; then
4641  LEXLIB="-ll"
4642fi
4643
4644fi
4645
4646fi
4647
4648if test "x$LEX" != "x:"; then
4649  echo "$as_me:$LINENO: checking lex output file root" >&5
4650echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651if test "${ac_cv_prog_lex_root+set}" = set; then
4652  echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654  # The minimal lex program is just a single line: %%.  But some broken lexes
4655# (Solaris, I think it was) want two %% lines, so accommodate them.
4656cat >conftest.l <<_ACEOF
4657%%
4658%%
4659_ACEOF
4660{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661  (eval $LEX conftest.l) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); }
4665if test -f lex.yy.c; then
4666  ac_cv_prog_lex_root=lex.yy
4667elif test -f lexyy.c; then
4668  ac_cv_prog_lex_root=lexyy
4669else
4670  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672   { (exit 1); exit 1; }; }
4673fi
4674fi
4675echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4677rm -f conftest.l
4678LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4679
4680echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683  echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685  # POSIX says lex can declare yytext either as a pointer or an array; the
4686# default is implementation-dependent. Figure out which it is, since
4687# not all implementations provide the %pointer and %array declarations.
4688ac_cv_prog_lex_yytext_pointer=no
4689echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4690ac_save_LIBS=$LIBS
4691LIBS="$LIBS $LEXLIB"
4692cat >conftest.$ac_ext <<_ACEOF
4693`cat $LEX_OUTPUT_ROOT.c`
4694_ACEOF
4695rm -f conftest.$ac_objext conftest$ac_exeext
4696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697  (eval $ac_link) 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } &&
4704	 { ac_try='test -z "$ac_c_werror_flag"
4705			 || test ! -s conftest.err'
4706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707  (eval $ac_try) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; } &&
4711	 { ac_try='test -s conftest$ac_exeext'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; }; then
4717  ac_cv_prog_lex_yytext_pointer=yes
4718else
4719  echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722fi
4723rm -f conftest.err conftest.$ac_objext \
4724      conftest$ac_exeext conftest.$ac_ext
4725LIBS=$ac_save_LIBS
4726rm -f "${LEX_OUTPUT_ROOT}.c"
4727
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731if test $ac_cv_prog_lex_yytext_pointer = yes; then
4732
4733cat >>confdefs.h <<\_ACEOF
4734#define YYTEXT_POINTER 1
4735_ACEOF
4736
4737fi
4738
4739fi
4740
4741fi
4742echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743echo "${ECHO_T}$ac_cv_has_flex" >&6
4744if test "$LEX" != "flex"; then
4745  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746echo "$as_me: error: flex not found but required" >&2;}
4747   { (exit 1); exit 1; }; }
4748else
4749  FLEX=flex
4750
4751fi
4752
4753echo "$as_me:$LINENO: checking " >&5
4754echo $ECHO_N "checking ... $ECHO_C" >&6
4755if test "${llvm_cv_has_bison+set}" = set; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  for ac_prog in 'bison -y' byacc
4759do
4760  # Extract the first word of "$ac_prog", so it can be a program name with args.
4761set dummy $ac_prog; ac_word=$2
4762echo "$as_me:$LINENO: checking for $ac_word" >&5
4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764if test "${ac_cv_prog_YACC+set}" = set; then
4765  echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767  if test -n "$YACC"; then
4768  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773  IFS=$as_save_IFS
4774  test -z "$as_dir" && as_dir=.
4775  for ac_exec_ext in '' $ac_executable_extensions; do
4776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777    ac_cv_prog_YACC="$ac_prog"
4778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779    break 2
4780  fi
4781done
4782done
4783
4784fi
4785fi
4786YACC=$ac_cv_prog_YACC
4787if test -n "$YACC"; then
4788  echo "$as_me:$LINENO: result: $YACC" >&5
4789echo "${ECHO_T}$YACC" >&6
4790else
4791  echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793fi
4794
4795  test -n "$YACC" && break
4796done
4797test -n "$YACC" || YACC="yacc"
4798
4799fi
4800echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801echo "${ECHO_T}$llvm_cv_has_bison" >&6
4802if test "$YACC" != "bison -y"; then
4803  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804echo "$as_me: error: bison not found but required" >&2;}
4805   { (exit 1); exit 1; }; }
4806else
4807  BISON=bison
4808
4809fi
4810
4811echo "$as_me:$LINENO: checking for GNU make" >&5
4812echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4813if test "${llvm_cv_gnu_make_command+set}" = set; then
4814  echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816  llvm_cv_gnu_make_command=''
4817 for a in "$MAKE" make gmake gnumake ; do
4818  if test -z "$a" ; then continue ; fi ;
4819  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4820  then
4821   llvm_cv_gnu_make_command=$a ;
4822   break;
4823  fi
4824 done
4825fi
4826echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4827echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4828 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4829   ifGNUmake='' ;
4830 else
4831   ifGNUmake='#' ;
4832   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4833echo "${ECHO_T}\"Not found\"" >&6;
4834 fi
4835
4836
4837echo "$as_me:$LINENO: checking whether ln -s works" >&5
4838echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4839LN_S=$as_ln_s
4840if test "$LN_S" = "ln -s"; then
4841  echo "$as_me:$LINENO: result: yes" >&5
4842echo "${ECHO_T}yes" >&6
4843else
4844  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4845echo "${ECHO_T}no, using $LN_S" >&6
4846fi
4847
4848# Extract the first word of "cmp", so it can be a program name with args.
4849set dummy cmp; ac_word=$2
4850echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852if test "${ac_cv_path_CMP+set}" = set; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855  case $CMP in
4856  [\\/]* | ?:[\\/]*)
4857  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4858  ;;
4859  *)
4860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865  for ac_exec_ext in '' $ac_executable_extensions; do
4866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869    break 2
4870  fi
4871done
4872done
4873
4874  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4875  ;;
4876esac
4877fi
4878CMP=$ac_cv_path_CMP
4879
4880if test -n "$CMP"; then
4881  echo "$as_me:$LINENO: result: $CMP" >&5
4882echo "${ECHO_T}$CMP" >&6
4883else
4884  echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886fi
4887
4888# Extract the first word of "cp", so it can be a program name with args.
4889set dummy cp; ac_word=$2
4890echo "$as_me:$LINENO: checking for $ac_word" >&5
4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892if test "${ac_cv_path_CP+set}" = set; then
4893  echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895  case $CP in
4896  [\\/]* | ?:[\\/]*)
4897  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4898  ;;
4899  *)
4900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903  IFS=$as_save_IFS
4904  test -z "$as_dir" && as_dir=.
4905  for ac_exec_ext in '' $ac_executable_extensions; do
4906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909    break 2
4910  fi
4911done
4912done
4913
4914  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4915  ;;
4916esac
4917fi
4918CP=$ac_cv_path_CP
4919
4920if test -n "$CP"; then
4921  echo "$as_me:$LINENO: result: $CP" >&5
4922echo "${ECHO_T}$CP" >&6
4923else
4924  echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6
4926fi
4927
4928# Extract the first word of "date", so it can be a program name with args.
4929set dummy date; ac_word=$2
4930echo "$as_me:$LINENO: checking for $ac_word" >&5
4931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932if test "${ac_cv_path_DATE+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  case $DATE in
4936  [\\/]* | ?:[\\/]*)
4937  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4938  ;;
4939  *)
4940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945  for ac_exec_ext in '' $ac_executable_extensions; do
4946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949    break 2
4950  fi
4951done
4952done
4953
4954  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4955  ;;
4956esac
4957fi
4958DATE=$ac_cv_path_DATE
4959
4960if test -n "$DATE"; then
4961  echo "$as_me:$LINENO: result: $DATE" >&5
4962echo "${ECHO_T}$DATE" >&6
4963else
4964  echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966fi
4967
4968# Extract the first word of "find", so it can be a program name with args.
4969set dummy find; ac_word=$2
4970echo "$as_me:$LINENO: checking for $ac_word" >&5
4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972if test "${ac_cv_path_FIND+set}" = set; then
4973  echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975  case $FIND in
4976  [\\/]* | ?:[\\/]*)
4977  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4978  ;;
4979  *)
4980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983  IFS=$as_save_IFS
4984  test -z "$as_dir" && as_dir=.
4985  for ac_exec_ext in '' $ac_executable_extensions; do
4986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989    break 2
4990  fi
4991done
4992done
4993
4994  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4995  ;;
4996esac
4997fi
4998FIND=$ac_cv_path_FIND
4999
5000if test -n "$FIND"; then
5001  echo "$as_me:$LINENO: result: $FIND" >&5
5002echo "${ECHO_T}$FIND" >&6
5003else
5004  echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006fi
5007
5008# Extract the first word of "grep", so it can be a program name with args.
5009set dummy grep; ac_word=$2
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_path_GREP+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015  case $GREP in
5016  [\\/]* | ?:[\\/]*)
5017  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5018  ;;
5019  *)
5020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023  IFS=$as_save_IFS
5024  test -z "$as_dir" && as_dir=.
5025  for ac_exec_ext in '' $ac_executable_extensions; do
5026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029    break 2
5030  fi
5031done
5032done
5033
5034  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5035  ;;
5036esac
5037fi
5038GREP=$ac_cv_path_GREP
5039
5040if test -n "$GREP"; then
5041  echo "$as_me:$LINENO: result: $GREP" >&5
5042echo "${ECHO_T}$GREP" >&6
5043else
5044  echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048# Extract the first word of "mkdir", so it can be a program name with args.
5049set dummy mkdir; ac_word=$2
5050echo "$as_me:$LINENO: checking for $ac_word" >&5
5051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052if test "${ac_cv_path_MKDIR+set}" = set; then
5053  echo $ECHO_N "(cached) $ECHO_C" >&6
5054else
5055  case $MKDIR in
5056  [\\/]* | ?:[\\/]*)
5057  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5058  ;;
5059  *)
5060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065  for ac_exec_ext in '' $ac_executable_extensions; do
5066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072done
5073
5074  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5075  ;;
5076esac
5077fi
5078MKDIR=$ac_cv_path_MKDIR
5079
5080if test -n "$MKDIR"; then
5081  echo "$as_me:$LINENO: result: $MKDIR" >&5
5082echo "${ECHO_T}$MKDIR" >&6
5083else
5084  echo "$as_me:$LINENO: result: no" >&5
5085echo "${ECHO_T}no" >&6
5086fi
5087
5088# Extract the first word of "mv", so it can be a program name with args.
5089set dummy mv; ac_word=$2
5090echo "$as_me:$LINENO: checking for $ac_word" >&5
5091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092if test "${ac_cv_path_MV+set}" = set; then
5093  echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095  case $MV in
5096  [\\/]* | ?:[\\/]*)
5097  ac_cv_path_MV="$MV" # Let the user override the test with a path.
5098  ;;
5099  *)
5100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105  for ac_exec_ext in '' $ac_executable_extensions; do
5106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112done
5113
5114  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5115  ;;
5116esac
5117fi
5118MV=$ac_cv_path_MV
5119
5120if test -n "$MV"; then
5121  echo "$as_me:$LINENO: result: $MV" >&5
5122echo "${ECHO_T}$MV" >&6
5123else
5124  echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128if test -n "$ac_tool_prefix"; then
5129  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133if test "${ac_cv_prog_RANLIB+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  if test -n "$RANLIB"; then
5137  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142  IFS=$as_save_IFS
5143  test -z "$as_dir" && as_dir=.
5144  for ac_exec_ext in '' $ac_executable_extensions; do
5145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148    break 2
5149  fi
5150done
5151done
5152
5153fi
5154fi
5155RANLIB=$ac_cv_prog_RANLIB
5156if test -n "$RANLIB"; then
5157  echo "$as_me:$LINENO: result: $RANLIB" >&5
5158echo "${ECHO_T}$RANLIB" >&6
5159else
5160  echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6
5162fi
5163
5164fi
5165if test -z "$ac_cv_prog_RANLIB"; then
5166  ac_ct_RANLIB=$RANLIB
5167  # Extract the first word of "ranlib", so it can be a program name with args.
5168set dummy ranlib; ac_word=$2
5169echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174  if test -n "$ac_ct_RANLIB"; then
5175  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182  for ac_exec_ext in '' $ac_executable_extensions; do
5183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_ac_ct_RANLIB="ranlib"
5185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189done
5190
5191  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192fi
5193fi
5194ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195if test -n "$ac_ct_RANLIB"; then
5196  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5197echo "${ECHO_T}$ac_ct_RANLIB" >&6
5198else
5199  echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201fi
5202
5203  RANLIB=$ac_ct_RANLIB
5204else
5205  RANLIB="$ac_cv_prog_RANLIB"
5206fi
5207
5208# Extract the first word of "rm", so it can be a program name with args.
5209set dummy rm; ac_word=$2
5210echo "$as_me:$LINENO: checking for $ac_word" >&5
5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212if test "${ac_cv_path_RM+set}" = set; then
5213  echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215  case $RM in
5216  [\\/]* | ?:[\\/]*)
5217  ac_cv_path_RM="$RM" # Let the user override the test with a path.
5218  ;;
5219  *)
5220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225  for ac_exec_ext in '' $ac_executable_extensions; do
5226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232done
5233
5234  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5235  ;;
5236esac
5237fi
5238RM=$ac_cv_path_RM
5239
5240if test -n "$RM"; then
5241  echo "$as_me:$LINENO: result: $RM" >&5
5242echo "${ECHO_T}$RM" >&6
5243else
5244  echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246fi
5247
5248# Extract the first word of "sed", so it can be a program name with args.
5249set dummy sed; ac_word=$2
5250echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252if test "${ac_cv_path_SED+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  case $SED in
5256  [\\/]* | ?:[\\/]*)
5257  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5258  ;;
5259  *)
5260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263  IFS=$as_save_IFS
5264  test -z "$as_dir" && as_dir=.
5265  for ac_exec_ext in '' $ac_executable_extensions; do
5266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269    break 2
5270  fi
5271done
5272done
5273
5274  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5275  ;;
5276esac
5277fi
5278SED=$ac_cv_path_SED
5279
5280if test -n "$SED"; then
5281  echo "$as_me:$LINENO: result: $SED" >&5
5282echo "${ECHO_T}$SED" >&6
5283else
5284  echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286fi
5287
5288# Extract the first word of "tar", so it can be a program name with args.
5289set dummy tar; ac_word=$2
5290echo "$as_me:$LINENO: checking for $ac_word" >&5
5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292if test "${ac_cv_path_TAR+set}" = set; then
5293  echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295  case $TAR in
5296  [\\/]* | ?:[\\/]*)
5297  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5298  ;;
5299  *)
5300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303  IFS=$as_save_IFS
5304  test -z "$as_dir" && as_dir=.
5305  for ac_exec_ext in '' $ac_executable_extensions; do
5306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309    break 2
5310  fi
5311done
5312done
5313
5314  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5315  ;;
5316esac
5317fi
5318TAR=$ac_cv_path_TAR
5319
5320if test -n "$TAR"; then
5321  echo "$as_me:$LINENO: result: $TAR" >&5
5322echo "${ECHO_T}$TAR" >&6
5323else
5324  echo "$as_me:$LINENO: result: no" >&5
5325echo "${ECHO_T}no" >&6
5326fi
5327
5328
5329# Extract the first word of "Graphviz", so it can be a program name with args.
5330set dummy Graphviz; ac_word=$2
5331echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5334  echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336  case $GRAPHVIZ in
5337  [\\/]* | ?:[\\/]*)
5338  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5339  ;;
5340  *)
5341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344  IFS=$as_save_IFS
5345  test -z "$as_dir" && as_dir=.
5346  for ac_exec_ext in '' $ac_executable_extensions; do
5347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350    break 2
5351  fi
5352done
5353done
5354
5355  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5356  ;;
5357esac
5358fi
5359GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5360
5361if test -n "$GRAPHVIZ"; then
5362  echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5363echo "${ECHO_T}$GRAPHVIZ" >&6
5364else
5365  echo "$as_me:$LINENO: result: no" >&5
5366echo "${ECHO_T}no" >&6
5367fi
5368
5369if test "$GRAPHVIZ" != "echo Graphviz" ; then
5370
5371cat >>confdefs.h <<\_ACEOF
5372#define HAVE_GRAPHVIZ 1
5373_ACEOF
5374
5375    if test "$llvm_cv_os_type" == "MingW" ; then
5376    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5377  fi
5378
5379cat >>confdefs.h <<_ACEOF
5380#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5381_ACEOF
5382
5383fi
5384# Extract the first word of "dot", so it can be a program name with args.
5385set dummy dot; ac_word=$2
5386echo "$as_me:$LINENO: checking for $ac_word" >&5
5387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388if test "${ac_cv_path_DOT+set}" = set; then
5389  echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391  case $DOT in
5392  [\\/]* | ?:[\\/]*)
5393  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5394  ;;
5395  *)
5396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399  IFS=$as_save_IFS
5400  test -z "$as_dir" && as_dir=.
5401  for ac_exec_ext in '' $ac_executable_extensions; do
5402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405    break 2
5406  fi
5407done
5408done
5409
5410  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5411  ;;
5412esac
5413fi
5414DOT=$ac_cv_path_DOT
5415
5416if test -n "$DOT"; then
5417  echo "$as_me:$LINENO: result: $DOT" >&5
5418echo "${ECHO_T}$DOT" >&6
5419else
5420  echo "$as_me:$LINENO: result: no" >&5
5421echo "${ECHO_T}no" >&6
5422fi
5423
5424if test "$DOT" != "echo dot" ; then
5425
5426cat >>confdefs.h <<\_ACEOF
5427#define HAVE_DOT 1
5428_ACEOF
5429
5430    if test "$llvm_cv_os_type" == "MingW" ; then
5431    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5432  fi
5433
5434cat >>confdefs.h <<_ACEOF
5435#define LLVM_PATH_DOT "$DOT${EXEEXT}"
5436_ACEOF
5437
5438fi
5439for ac_prog in gv gsview32
5440do
5441  # Extract the first word of "$ac_prog", so it can be a program name with args.
5442set dummy $ac_prog; ac_word=$2
5443echo "$as_me:$LINENO: checking for $ac_word" >&5
5444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445if test "${ac_cv_path_GV+set}" = set; then
5446  echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
5448  case $GV in
5449  [\\/]* | ?:[\\/]*)
5450  ac_cv_path_GV="$GV" # Let the user override the test with a path.
5451  ;;
5452  *)
5453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458  for ac_exec_ext in '' $ac_executable_extensions; do
5459  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462    break 2
5463  fi
5464done
5465done
5466
5467  ;;
5468esac
5469fi
5470GV=$ac_cv_path_GV
5471
5472if test -n "$GV"; then
5473  echo "$as_me:$LINENO: result: $GV" >&5
5474echo "${ECHO_T}$GV" >&6
5475else
5476  echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478fi
5479
5480  test -n "$GV" && break
5481done
5482test -n "$GV" || GV="echo gv"
5483
5484if test "$GV" != "echo gv" ; then
5485
5486cat >>confdefs.h <<\_ACEOF
5487#define HAVE_GV 1
5488_ACEOF
5489
5490    if test "$llvm_cv_os_type" == "MingW" ; then
5491    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5492  fi
5493
5494cat >>confdefs.h <<_ACEOF
5495#define LLVM_PATH_GV "$GV${EXEEXT}"
5496_ACEOF
5497
5498fi
5499# Extract the first word of "dotty", so it can be a program name with args.
5500set dummy dotty; ac_word=$2
5501echo "$as_me:$LINENO: checking for $ac_word" >&5
5502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503if test "${ac_cv_path_DOTTY+set}" = set; then
5504  echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506  case $DOTTY in
5507  [\\/]* | ?:[\\/]*)
5508  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5509  ;;
5510  *)
5511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516  for ac_exec_ext in '' $ac_executable_extensions; do
5517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520    break 2
5521  fi
5522done
5523done
5524
5525  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5526  ;;
5527esac
5528fi
5529DOTTY=$ac_cv_path_DOTTY
5530
5531if test -n "$DOTTY"; then
5532  echo "$as_me:$LINENO: result: $DOTTY" >&5
5533echo "${ECHO_T}$DOTTY" >&6
5534else
5535  echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
5537fi
5538
5539if test "$DOTTY" != "echo dotty" ; then
5540
5541cat >>confdefs.h <<\_ACEOF
5542#define HAVE_DOTTY 1
5543_ACEOF
5544
5545    if test "$llvm_cv_os_type" == "MingW" ; then
5546    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5547  fi
5548
5549cat >>confdefs.h <<_ACEOF
5550#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5551_ACEOF
5552
5553fi
5554
5555
5556# Extract the first word of "perl", so it can be a program name with args.
5557set dummy perl; ac_word=$2
5558echo "$as_me:$LINENO: checking for $ac_word" >&5
5559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560if test "${ac_cv_path_PERL+set}" = set; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563  case $PERL in
5564  [\\/]* | ?:[\\/]*)
5565  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5566  ;;
5567  *)
5568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571  IFS=$as_save_IFS
5572  test -z "$as_dir" && as_dir=.
5573  for ac_exec_ext in '' $ac_executable_extensions; do
5574  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5576    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577    break 2
5578  fi
5579done
5580done
5581
5582  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5583  ;;
5584esac
5585fi
5586PERL=$ac_cv_path_PERL
5587
5588if test -n "$PERL"; then
5589  echo "$as_me:$LINENO: result: $PERL" >&5
5590echo "${ECHO_T}$PERL" >&6
5591else
5592  echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595
5596if test "$PERL" != "none"; then
5597  echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5598echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5599  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5600    echo "$as_me:$LINENO: result: yes" >&5
5601echo "${ECHO_T}yes" >&6
5602  else
5603    PERL=none
5604    echo "$as_me:$LINENO: result: not found" >&5
5605echo "${ECHO_T}not found" >&6
5606  fi
5607fi
5608
5609
5610if test x"$PERL" = xnone; then
5611   HAVE_PERL=0
5612
5613else
5614   HAVE_PERL=1
5615
5616fi
5617
5618# Find a good install program.  We prefer a C program (faster),
5619# so one script is as good as another.  But avoid the broken or
5620# incompatible versions:
5621# SysV /etc/install, /usr/sbin/install
5622# SunOS /usr/etc/install
5623# IRIX /sbin/install
5624# AIX /bin/install
5625# AmigaOS /C/install, which installs bootblocks on floppy discs
5626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5627# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5629# OS/2's system install, which has a completely different semantic
5630# ./install, which can be erroneously created by make from ./install.sh.
5631echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5632echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5633if test -z "$INSTALL"; then
5634if test "${ac_cv_path_install+set}" = set; then
5635  echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640  IFS=$as_save_IFS
5641  test -z "$as_dir" && as_dir=.
5642  # Account for people who put trailing slashes in PATH elements.
5643case $as_dir/ in
5644  ./ | .// | /cC/* | \
5645  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5646  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5647  /usr/ucb/* ) ;;
5648  *)
5649    # OSF1 and SCO ODT 3.0 have their own names for install.
5650    # Don't use installbsd from OSF since it installs stuff as root
5651    # by default.
5652    for ac_prog in ginstall scoinst install; do
5653      for ac_exec_ext in '' $ac_executable_extensions; do
5654	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5655	  if test $ac_prog = install &&
5656	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5657	    # AIX install.  It has an incompatible calling convention.
5658	    :
5659	  elif test $ac_prog = install &&
5660	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5661	    # program-specific install script used by HP pwplus--don't use.
5662	    :
5663	  else
5664	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5665	    break 3
5666	  fi
5667	fi
5668      done
5669    done
5670    ;;
5671esac
5672done
5673
5674
5675fi
5676  if test "${ac_cv_path_install+set}" = set; then
5677    INSTALL=$ac_cv_path_install
5678  else
5679    # As a last resort, use the slow shell script.  We don't cache a
5680    # path for INSTALL within a source directory, because that will
5681    # break other packages using the cache if that directory is
5682    # removed, or if the path is relative.
5683    INSTALL=$ac_install_sh
5684  fi
5685fi
5686echo "$as_me:$LINENO: result: $INSTALL" >&5
5687echo "${ECHO_T}$INSTALL" >&6
5688
5689# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5690# It thinks the first close brace ends the variable substitution.
5691test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5692
5693test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5694
5695test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5696
5697
5698# Extract the first word of "bzip2", so it can be a program name with args.
5699set dummy bzip2; ac_word=$2
5700echo "$as_me:$LINENO: checking for $ac_word" >&5
5701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702if test "${ac_cv_path_BZIP2+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  case $BZIP2 in
5706  [\\/]* | ?:[\\/]*)
5707  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5708  ;;
5709  *)
5710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715  for ac_exec_ext in '' $ac_executable_extensions; do
5716  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722done
5723
5724  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5725  ;;
5726esac
5727fi
5728BZIP2=$ac_cv_path_BZIP2
5729
5730if test -n "$BZIP2"; then
5731  echo "$as_me:$LINENO: result: $BZIP2" >&5
5732echo "${ECHO_T}$BZIP2" >&6
5733else
5734  echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6
5736fi
5737
5738# Extract the first word of "doxygen", so it can be a program name with args.
5739set dummy doxygen; ac_word=$2
5740echo "$as_me:$LINENO: checking for $ac_word" >&5
5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742if test "${ac_cv_path_DOXYGEN+set}" = set; then
5743  echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745  case $DOXYGEN in
5746  [\\/]* | ?:[\\/]*)
5747  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5748  ;;
5749  *)
5750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755  for ac_exec_ext in '' $ac_executable_extensions; do
5756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762done
5763
5764  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5765  ;;
5766esac
5767fi
5768DOXYGEN=$ac_cv_path_DOXYGEN
5769
5770if test -n "$DOXYGEN"; then
5771  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5772echo "${ECHO_T}$DOXYGEN" >&6
5773else
5774  echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776fi
5777
5778# Extract the first word of "etags", so it can be a program name with args.
5779set dummy etags; ac_word=$2
5780echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782if test "${ac_cv_path_ETAGS+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785  case $ETAGS in
5786  [\\/]* | ?:[\\/]*)
5787  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5788  ;;
5789  *)
5790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793  IFS=$as_save_IFS
5794  test -z "$as_dir" && as_dir=.
5795  for ac_exec_ext in '' $ac_executable_extensions; do
5796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799    break 2
5800  fi
5801done
5802done
5803
5804  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5805  ;;
5806esac
5807fi
5808ETAGS=$ac_cv_path_ETAGS
5809
5810if test -n "$ETAGS"; then
5811  echo "$as_me:$LINENO: result: $ETAGS" >&5
5812echo "${ECHO_T}$ETAGS" >&6
5813else
5814  echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816fi
5817
5818# Extract the first word of "groff", so it can be a program name with args.
5819set dummy groff; ac_word=$2
5820echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822if test "${ac_cv_path_GROFF+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  case $GROFF in
5826  [\\/]* | ?:[\\/]*)
5827  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5828  ;;
5829  *)
5830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835  for ac_exec_ext in '' $ac_executable_extensions; do
5836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839    break 2
5840  fi
5841done
5842done
5843
5844  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5845  ;;
5846esac
5847fi
5848GROFF=$ac_cv_path_GROFF
5849
5850if test -n "$GROFF"; then
5851  echo "$as_me:$LINENO: result: $GROFF" >&5
5852echo "${ECHO_T}$GROFF" >&6
5853else
5854  echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
5856fi
5857
5858# Extract the first word of "gzip", so it can be a program name with args.
5859set dummy gzip; ac_word=$2
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_path_GZIP+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  case $GZIP in
5866  [\\/]* | ?:[\\/]*)
5867  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5868  ;;
5869  *)
5870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873  IFS=$as_save_IFS
5874  test -z "$as_dir" && as_dir=.
5875  for ac_exec_ext in '' $ac_executable_extensions; do
5876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879    break 2
5880  fi
5881done
5882done
5883
5884  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5885  ;;
5886esac
5887fi
5888GZIP=$ac_cv_path_GZIP
5889
5890if test -n "$GZIP"; then
5891  echo "$as_me:$LINENO: result: $GZIP" >&5
5892echo "${ECHO_T}$GZIP" >&6
5893else
5894  echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896fi
5897
5898# Extract the first word of "pod2html", so it can be a program name with args.
5899set dummy pod2html; ac_word=$2
5900echo "$as_me:$LINENO: checking for $ac_word" >&5
5901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902if test "${ac_cv_path_POD2HTML+set}" = set; then
5903  echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905  case $POD2HTML in
5906  [\\/]* | ?:[\\/]*)
5907  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5908  ;;
5909  *)
5910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915  for ac_exec_ext in '' $ac_executable_extensions; do
5916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919    break 2
5920  fi
5921done
5922done
5923
5924  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5925  ;;
5926esac
5927fi
5928POD2HTML=$ac_cv_path_POD2HTML
5929
5930if test -n "$POD2HTML"; then
5931  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5932echo "${ECHO_T}$POD2HTML" >&6
5933else
5934  echo "$as_me:$LINENO: result: no" >&5
5935echo "${ECHO_T}no" >&6
5936fi
5937
5938# Extract the first word of "pod2man", so it can be a program name with args.
5939set dummy pod2man; ac_word=$2
5940echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942if test "${ac_cv_path_POD2MAN+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  case $POD2MAN in
5946  [\\/]* | ?:[\\/]*)
5947  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5948  ;;
5949  *)
5950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955  for ac_exec_ext in '' $ac_executable_extensions; do
5956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962done
5963
5964  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5965  ;;
5966esac
5967fi
5968POD2MAN=$ac_cv_path_POD2MAN
5969
5970if test -n "$POD2MAN"; then
5971  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5972echo "${ECHO_T}$POD2MAN" >&6
5973else
5974  echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
5976fi
5977
5978# Extract the first word of "runtest", so it can be a program name with args.
5979set dummy runtest; ac_word=$2
5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_path_RUNTEST+set}" = set; then
5983  echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985  case $RUNTEST in
5986  [\\/]* | ?:[\\/]*)
5987  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5988  ;;
5989  *)
5990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995  for ac_exec_ext in '' $ac_executable_extensions; do
5996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002done
6003
6004  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
6005  ;;
6006esac
6007fi
6008RUNTEST=$ac_cv_path_RUNTEST
6009
6010if test -n "$RUNTEST"; then
6011  echo "$as_me:$LINENO: result: $RUNTEST" >&5
6012echo "${ECHO_T}$RUNTEST" >&6
6013else
6014  echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
6016fi
6017
6018
6019no_itcl=true
6020echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6021echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
6022
6023# Check whether --with-tclinclude or --without-tclinclude was given.
6024if test "${with_tclinclude+set}" = set; then
6025  withval="$with_tclinclude"
6026  with_tclinclude=${withval}
6027else
6028  with_tclinclude=''
6029fi;
6030if test "${ac_cv_path_tclsh+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033
6034if test x"${with_tclinclude}" != x ; then
6035  if test -f ${with_tclinclude}/tclsh ; then
6036    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6037  elif test -f ${with_tclinclude}/src/tclsh ; then
6038    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6039  else
6040    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6041echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6042   { (exit 1); exit 1; }; }
6043  fi
6044fi
6045
6046if test x"${ac_cv_path_tclsh}" = x ; then
6047  echo "$as_me:$LINENO: result: none" >&5
6048echo "${ECHO_T}none" >&6
6049  for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
6050do
6051  # Extract the first word of "$ac_prog", so it can be a program name with args.
6052set dummy $ac_prog; ac_word=$2
6053echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055if test "${ac_cv_path_TCLSH+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  case $TCLSH in
6059  [\\/]* | ?:[\\/]*)
6060  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6061  ;;
6062  *)
6063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066  IFS=$as_save_IFS
6067  test -z "$as_dir" && as_dir=.
6068  for ac_exec_ext in '' $ac_executable_extensions; do
6069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
6071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072    break 2
6073  fi
6074done
6075done
6076
6077  ;;
6078esac
6079fi
6080TCLSH=$ac_cv_path_TCLSH
6081
6082if test -n "$TCLSH"; then
6083  echo "$as_me:$LINENO: result: $TCLSH" >&5
6084echo "${ECHO_T}$TCLSH" >&6
6085else
6086  echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6
6088fi
6089
6090  test -n "$TCLSH" && break
6091done
6092
6093  if test x"${TCLSH}" = x ; then
6094    ac_cv_path_tclsh='';
6095  else
6096    ac_cv_path_tclsh="${TCLSH}";
6097  fi
6098else
6099  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6100echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6101  TCLSH="${ac_cv_path_tclsh}"
6102
6103fi
6104
6105fi
6106
6107# Extract the first word of "zip", so it can be a program name with args.
6108set dummy zip; ac_word=$2
6109echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111if test "${ac_cv_path_ZIP+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  case $ZIP in
6115  [\\/]* | ?:[\\/]*)
6116  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6117  ;;
6118  *)
6119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122  IFS=$as_save_IFS
6123  test -z "$as_dir" && as_dir=.
6124  for ac_exec_ext in '' $ac_executable_extensions; do
6125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128    break 2
6129  fi
6130done
6131done
6132
6133  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
6134  ;;
6135esac
6136fi
6137ZIP=$ac_cv_path_ZIP
6138
6139if test -n "$ZIP"; then
6140  echo "$as_me:$LINENO: result: $ZIP" >&5
6141echo "${ECHO_T}$ZIP" >&6
6142else
6143  echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145fi
6146
6147
6148echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6149echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6150if test "${llvm_cv_link_use_r+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153   ac_ext=c
6154ac_cpp='$CPP $CPPFLAGS'
6155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158
6159  oldcflags="$CFLAGS"
6160  CFLAGS="$CFLAGS -Wl,-R."
6161  cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h.  */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h.  */
6167
6168int
6169main ()
6170{
6171int main() { return 0; }
6172  ;
6173  return 0;
6174}
6175_ACEOF
6176rm -f conftest.$ac_objext conftest$ac_exeext
6177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178  (eval $ac_link) 2>conftest.er1
6179  ac_status=$?
6180  grep -v '^ *+' conftest.er1 >conftest.err
6181  rm -f conftest.er1
6182  cat conftest.err >&5
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); } &&
6185	 { ac_try='test -z "$ac_c_werror_flag"
6186			 || test ! -s conftest.err'
6187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188  (eval $ac_try) 2>&5
6189  ac_status=$?
6190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191  (exit $ac_status); }; } &&
6192	 { ac_try='test -s conftest$ac_exeext'
6193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194  (eval $ac_try) 2>&5
6195  ac_status=$?
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }; }; then
6198  llvm_cv_link_use_r=yes
6199else
6200  echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203llvm_cv_link_use_r=no
6204fi
6205rm -f conftest.err conftest.$ac_objext \
6206      conftest$ac_exeext conftest.$ac_ext
6207  CFLAGS="$oldcflags"
6208  ac_ext=c
6209ac_cpp='$CPP $CPPFLAGS'
6210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214
6215fi
6216echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6217echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6218if test "$llvm_cv_link_use_r" = yes ; then
6219
6220cat >>confdefs.h <<\_ACEOF
6221#define HAVE_LINK_R 1
6222_ACEOF
6223
6224  fi
6225
6226
6227
6228
6229echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6230echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6231if test "${ac_cv_c_const+set}" = set; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240
6241int
6242main ()
6243{
6244/* FIXME: Include the comments suggested by Paul. */
6245#ifndef __cplusplus
6246  /* Ultrix mips cc rejects this.  */
6247  typedef int charset[2];
6248  const charset x;
6249  /* SunOS 4.1.1 cc rejects this.  */
6250  char const *const *ccp;
6251  char **p;
6252  /* NEC SVR4.0.2 mips cc rejects this.  */
6253  struct point {int x, y;};
6254  static struct point const zero = {0,0};
6255  /* AIX XL C 1.02.0.0 rejects this.
6256     It does not let you subtract one const X* pointer from another in
6257     an arm of an if-expression whose if-part is not a constant
6258     expression */
6259  const char *g = "string";
6260  ccp = &g + (g ? g-g : 0);
6261  /* HPUX 7.0 cc rejects these. */
6262  ++ccp;
6263  p = (char**) ccp;
6264  ccp = (char const *const *) p;
6265  { /* SCO 3.2v4 cc rejects this.  */
6266    char *t;
6267    char const *s = 0 ? (char *) 0 : (char const *) 0;
6268
6269    *t++ = 0;
6270  }
6271  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6272    int x[] = {25, 17};
6273    const int *foo = &x[0];
6274    ++foo;
6275  }
6276  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6277    typedef const int *iptr;
6278    iptr p = 0;
6279    ++p;
6280  }
6281  { /* AIX XL C 1.02.0.0 rejects this saying
6282       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6283    struct s { int j; const int *ap[3]; };
6284    struct s *b; b->j = 5;
6285  }
6286  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6287    const int foo = 10;
6288  }
6289#endif
6290
6291  ;
6292  return 0;
6293}
6294_ACEOF
6295rm -f conftest.$ac_objext
6296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297  (eval $ac_compile) 2>conftest.er1
6298  ac_status=$?
6299  grep -v '^ *+' conftest.er1 >conftest.err
6300  rm -f conftest.er1
6301  cat conftest.err >&5
6302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); } &&
6304	 { ac_try='test -z "$ac_c_werror_flag"
6305			 || test ! -s conftest.err'
6306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307  (eval $ac_try) 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; } &&
6311	 { ac_try='test -s conftest.$ac_objext'
6312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313  (eval $ac_try) 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }; }; then
6317  ac_cv_c_const=yes
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322ac_cv_c_const=no
6323fi
6324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325fi
6326echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6327echo "${ECHO_T}$ac_cv_c_const" >&6
6328if test $ac_cv_c_const = no; then
6329
6330cat >>confdefs.h <<\_ACEOF
6331#define const
6332_ACEOF
6333
6334fi
6335
6336
6337echo "$as_me:$LINENO: checking for egrep" >&5
6338echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6339if test "${ac_cv_prog_egrep+set}" = set; then
6340  echo $ECHO_N "(cached) $ECHO_C" >&6
6341else
6342  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6343    then ac_cv_prog_egrep='grep -E'
6344    else ac_cv_prog_egrep='egrep'
6345    fi
6346fi
6347echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6348echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6349 EGREP=$ac_cv_prog_egrep
6350
6351
6352echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6353echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6354if test "${ac_cv_header_stdc+set}" = set; then
6355  echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357  cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h.  */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h.  */
6363#include <stdlib.h>
6364#include <stdarg.h>
6365#include <string.h>
6366#include <float.h>
6367
6368int
6369main ()
6370{
6371
6372  ;
6373  return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext
6377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378  (eval $ac_compile) 2>conftest.er1
6379  ac_status=$?
6380  grep -v '^ *+' conftest.er1 >conftest.err
6381  rm -f conftest.er1
6382  cat conftest.err >&5
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); } &&
6385	 { ac_try='test -z "$ac_c_werror_flag"
6386			 || test ! -s conftest.err'
6387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388  (eval $ac_try) 2>&5
6389  ac_status=$?
6390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391  (exit $ac_status); }; } &&
6392	 { ac_try='test -s conftest.$ac_objext'
6393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394  (eval $ac_try) 2>&5
6395  ac_status=$?
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); }; }; then
6398  ac_cv_header_stdc=yes
6399else
6400  echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
6403ac_cv_header_stdc=no
6404fi
6405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406
6407if test $ac_cv_header_stdc = yes; then
6408  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6409  cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h.  */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h.  */
6415#include <string.h>
6416
6417_ACEOF
6418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419  $EGREP "memchr" >/dev/null 2>&1; then
6420  :
6421else
6422  ac_cv_header_stdc=no
6423fi
6424rm -f conftest*
6425
6426fi
6427
6428if test $ac_cv_header_stdc = yes; then
6429  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6430  cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h.  */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h.  */
6436#include <stdlib.h>
6437
6438_ACEOF
6439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440  $EGREP "free" >/dev/null 2>&1; then
6441  :
6442else
6443  ac_cv_header_stdc=no
6444fi
6445rm -f conftest*
6446
6447fi
6448
6449if test $ac_cv_header_stdc = yes; then
6450  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6451  if test "$cross_compiling" = yes; then
6452  :
6453else
6454  cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460#include <ctype.h>
6461#if ((' ' & 0x0FF) == 0x020)
6462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6464#else
6465# define ISLOWER(c) \
6466		   (('a' <= (c) && (c) <= 'i') \
6467		     || ('j' <= (c) && (c) <= 'r') \
6468		     || ('s' <= (c) && (c) <= 'z'))
6469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6470#endif
6471
6472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6473int
6474main ()
6475{
6476  int i;
6477  for (i = 0; i < 256; i++)
6478    if (XOR (islower (i), ISLOWER (i))
6479	|| toupper (i) != TOUPPER (i))
6480      exit(2);
6481  exit (0);
6482}
6483_ACEOF
6484rm -f conftest$ac_exeext
6485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486  (eval $ac_link) 2>&5
6487  ac_status=$?
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491  (eval $ac_try) 2>&5
6492  ac_status=$?
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); }; }; then
6495  :
6496else
6497  echo "$as_me: program exited with status $ac_status" >&5
6498echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501( exit $ac_status )
6502ac_cv_header_stdc=no
6503fi
6504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6505fi
6506fi
6507fi
6508echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6509echo "${ECHO_T}$ac_cv_header_stdc" >&6
6510if test $ac_cv_header_stdc = yes; then
6511
6512cat >>confdefs.h <<\_ACEOF
6513#define STDC_HEADERS 1
6514_ACEOF
6515
6516fi
6517
6518
6519
6520
6521
6522
6523ac_header_dirent=no
6524for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6525  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6526echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6527echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6528if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h.  */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h.  */
6537#include <sys/types.h>
6538#include <$ac_hdr>
6539
6540int
6541main ()
6542{
6543if ((DIR *) 0)
6544return 0;
6545  ;
6546  return 0;
6547}
6548_ACEOF
6549rm -f conftest.$ac_objext
6550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551  (eval $ac_compile) 2>conftest.er1
6552  ac_status=$?
6553  grep -v '^ *+' conftest.er1 >conftest.err
6554  rm -f conftest.er1
6555  cat conftest.err >&5
6556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557  (exit $ac_status); } &&
6558	 { ac_try='test -z "$ac_c_werror_flag"
6559			 || test ! -s conftest.err'
6560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561  (eval $ac_try) 2>&5
6562  ac_status=$?
6563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564  (exit $ac_status); }; } &&
6565	 { ac_try='test -s conftest.$ac_objext'
6566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567  (eval $ac_try) 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); }; }; then
6571  eval "$as_ac_Header=yes"
6572else
6573  echo "$as_me: failed program was:" >&5
6574sed 's/^/| /' conftest.$ac_ext >&5
6575
6576eval "$as_ac_Header=no"
6577fi
6578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
6580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583  cat >>confdefs.h <<_ACEOF
6584#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6585_ACEOF
6586
6587ac_header_dirent=$ac_hdr; break
6588fi
6589
6590done
6591# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6592if test $ac_header_dirent = dirent.h; then
6593  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6594echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6595if test "${ac_cv_search_opendir+set}" = set; then
6596  echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598  ac_func_search_save_LIBS=$LIBS
6599ac_cv_search_opendir=no
6600cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h.  */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h.  */
6606
6607/* Override any gcc2 internal prototype to avoid an error.  */
6608#ifdef __cplusplus
6609extern "C"
6610#endif
6611/* We use char because int might match the return type of a gcc2
6612   builtin and then its argument prototype would still apply.  */
6613char opendir ();
6614int
6615main ()
6616{
6617opendir ();
6618  ;
6619  return 0;
6620}
6621_ACEOF
6622rm -f conftest.$ac_objext conftest$ac_exeext
6623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624  (eval $ac_link) 2>conftest.er1
6625  ac_status=$?
6626  grep -v '^ *+' conftest.er1 >conftest.err
6627  rm -f conftest.er1
6628  cat conftest.err >&5
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } &&
6631	 { ac_try='test -z "$ac_c_werror_flag"
6632			 || test ! -s conftest.err'
6633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634  (eval $ac_try) 2>&5
6635  ac_status=$?
6636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637  (exit $ac_status); }; } &&
6638	 { ac_try='test -s conftest$ac_exeext'
6639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640  (eval $ac_try) 2>&5
6641  ac_status=$?
6642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643  (exit $ac_status); }; }; then
6644  ac_cv_search_opendir="none required"
6645else
6646  echo "$as_me: failed program was:" >&5
6647sed 's/^/| /' conftest.$ac_ext >&5
6648
6649fi
6650rm -f conftest.err conftest.$ac_objext \
6651      conftest$ac_exeext conftest.$ac_ext
6652if test "$ac_cv_search_opendir" = no; then
6653  for ac_lib in dir; do
6654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6655    cat >conftest.$ac_ext <<_ACEOF
6656/* confdefs.h.  */
6657_ACEOF
6658cat confdefs.h >>conftest.$ac_ext
6659cat >>conftest.$ac_ext <<_ACEOF
6660/* end confdefs.h.  */
6661
6662/* Override any gcc2 internal prototype to avoid an error.  */
6663#ifdef __cplusplus
6664extern "C"
6665#endif
6666/* We use char because int might match the return type of a gcc2
6667   builtin and then its argument prototype would still apply.  */
6668char opendir ();
6669int
6670main ()
6671{
6672opendir ();
6673  ;
6674  return 0;
6675}
6676_ACEOF
6677rm -f conftest.$ac_objext conftest$ac_exeext
6678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679  (eval $ac_link) 2>conftest.er1
6680  ac_status=$?
6681  grep -v '^ *+' conftest.er1 >conftest.err
6682  rm -f conftest.er1
6683  cat conftest.err >&5
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); } &&
6686	 { ac_try='test -z "$ac_c_werror_flag"
6687			 || test ! -s conftest.err'
6688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689  (eval $ac_try) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; } &&
6693	 { ac_try='test -s conftest$ac_exeext'
6694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695  (eval $ac_try) 2>&5
6696  ac_status=$?
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); }; }; then
6699  ac_cv_search_opendir="-l$ac_lib"
6700break
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705fi
6706rm -f conftest.err conftest.$ac_objext \
6707      conftest$ac_exeext conftest.$ac_ext
6708  done
6709fi
6710LIBS=$ac_func_search_save_LIBS
6711fi
6712echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6713echo "${ECHO_T}$ac_cv_search_opendir" >&6
6714if test "$ac_cv_search_opendir" != no; then
6715  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6716
6717fi
6718
6719else
6720  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6721echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6722if test "${ac_cv_search_opendir+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725  ac_func_search_save_LIBS=$LIBS
6726ac_cv_search_opendir=no
6727cat >conftest.$ac_ext <<_ACEOF
6728/* confdefs.h.  */
6729_ACEOF
6730cat confdefs.h >>conftest.$ac_ext
6731cat >>conftest.$ac_ext <<_ACEOF
6732/* end confdefs.h.  */
6733
6734/* Override any gcc2 internal prototype to avoid an error.  */
6735#ifdef __cplusplus
6736extern "C"
6737#endif
6738/* We use char because int might match the return type of a gcc2
6739   builtin and then its argument prototype would still apply.  */
6740char opendir ();
6741int
6742main ()
6743{
6744opendir ();
6745  ;
6746  return 0;
6747}
6748_ACEOF
6749rm -f conftest.$ac_objext conftest$ac_exeext
6750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751  (eval $ac_link) 2>conftest.er1
6752  ac_status=$?
6753  grep -v '^ *+' conftest.er1 >conftest.err
6754  rm -f conftest.er1
6755  cat conftest.err >&5
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); } &&
6758	 { ac_try='test -z "$ac_c_werror_flag"
6759			 || test ! -s conftest.err'
6760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761  (eval $ac_try) 2>&5
6762  ac_status=$?
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); }; } &&
6765	 { ac_try='test -s conftest$ac_exeext'
6766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767  (eval $ac_try) 2>&5
6768  ac_status=$?
6769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770  (exit $ac_status); }; }; then
6771  ac_cv_search_opendir="none required"
6772else
6773  echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776fi
6777rm -f conftest.err conftest.$ac_objext \
6778      conftest$ac_exeext conftest.$ac_ext
6779if test "$ac_cv_search_opendir" = no; then
6780  for ac_lib in x; do
6781    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6782    cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788
6789/* Override any gcc2 internal prototype to avoid an error.  */
6790#ifdef __cplusplus
6791extern "C"
6792#endif
6793/* We use char because int might match the return type of a gcc2
6794   builtin and then its argument prototype would still apply.  */
6795char opendir ();
6796int
6797main ()
6798{
6799opendir ();
6800  ;
6801  return 0;
6802}
6803_ACEOF
6804rm -f conftest.$ac_objext conftest$ac_exeext
6805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806  (eval $ac_link) 2>conftest.er1
6807  ac_status=$?
6808  grep -v '^ *+' conftest.er1 >conftest.err
6809  rm -f conftest.er1
6810  cat conftest.err >&5
6811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812  (exit $ac_status); } &&
6813	 { ac_try='test -z "$ac_c_werror_flag"
6814			 || test ! -s conftest.err'
6815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816  (eval $ac_try) 2>&5
6817  ac_status=$?
6818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819  (exit $ac_status); }; } &&
6820	 { ac_try='test -s conftest$ac_exeext'
6821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822  (eval $ac_try) 2>&5
6823  ac_status=$?
6824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825  (exit $ac_status); }; }; then
6826  ac_cv_search_opendir="-l$ac_lib"
6827break
6828else
6829  echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832fi
6833rm -f conftest.err conftest.$ac_objext \
6834      conftest$ac_exeext conftest.$ac_ext
6835  done
6836fi
6837LIBS=$ac_func_search_save_LIBS
6838fi
6839echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6840echo "${ECHO_T}$ac_cv_search_opendir" >&6
6841if test "$ac_cv_search_opendir" != no; then
6842  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6843
6844fi
6845
6846fi
6847
6848# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6859		  inttypes.h stdint.h unistd.h
6860do
6861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862echo "$as_me:$LINENO: checking for $ac_header" >&5
6863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865  echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867  cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h.  */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h.  */
6873$ac_includes_default
6874
6875#include <$ac_header>
6876_ACEOF
6877rm -f conftest.$ac_objext
6878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879  (eval $ac_compile) 2>conftest.er1
6880  ac_status=$?
6881  grep -v '^ *+' conftest.er1 >conftest.err
6882  rm -f conftest.er1
6883  cat conftest.err >&5
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); } &&
6886	 { ac_try='test -z "$ac_c_werror_flag"
6887			 || test ! -s conftest.err'
6888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889  (eval $ac_try) 2>&5
6890  ac_status=$?
6891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892  (exit $ac_status); }; } &&
6893	 { ac_try='test -s conftest.$ac_objext'
6894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895  (eval $ac_try) 2>&5
6896  ac_status=$?
6897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898  (exit $ac_status); }; }; then
6899  eval "$as_ac_Header=yes"
6900else
6901  echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904eval "$as_ac_Header=no"
6905fi
6906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907fi
6908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6910if test `eval echo '${'$as_ac_Header'}'` = yes; then
6911  cat >>confdefs.h <<_ACEOF
6912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6913_ACEOF
6914
6915fi
6916
6917done
6918
6919
6920
6921for ac_header in dlfcn.h
6922do
6923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6924if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925  echo "$as_me:$LINENO: checking for $ac_header" >&5
6926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6927if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928  echo $ECHO_N "(cached) $ECHO_C" >&6
6929fi
6930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932else
6933  # Is the header compilable?
6934echo "$as_me:$LINENO: checking $ac_header usability" >&5
6935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6936cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h.  */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h.  */
6942$ac_includes_default
6943#include <$ac_header>
6944_ACEOF
6945rm -f conftest.$ac_objext
6946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947  (eval $ac_compile) 2>conftest.er1
6948  ac_status=$?
6949  grep -v '^ *+' conftest.er1 >conftest.err
6950  rm -f conftest.er1
6951  cat conftest.err >&5
6952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953  (exit $ac_status); } &&
6954	 { ac_try='test -z "$ac_c_werror_flag"
6955			 || test ! -s conftest.err'
6956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957  (eval $ac_try) 2>&5
6958  ac_status=$?
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); }; } &&
6961	 { ac_try='test -s conftest.$ac_objext'
6962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963  (eval $ac_try) 2>&5
6964  ac_status=$?
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); }; }; then
6967  ac_header_compiler=yes
6968else
6969  echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
6971
6972ac_header_compiler=no
6973fi
6974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976echo "${ECHO_T}$ac_header_compiler" >&6
6977
6978# Is the header present?
6979echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6981cat >conftest.$ac_ext <<_ACEOF
6982/* confdefs.h.  */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
6986/* end confdefs.h.  */
6987#include <$ac_header>
6988_ACEOF
6989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6990  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6991  ac_status=$?
6992  grep -v '^ *+' conftest.er1 >conftest.err
6993  rm -f conftest.er1
6994  cat conftest.err >&5
6995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996  (exit $ac_status); } >/dev/null; then
6997  if test -s conftest.err; then
6998    ac_cpp_err=$ac_c_preproc_warn_flag
6999    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7000  else
7001    ac_cpp_err=
7002  fi
7003else
7004  ac_cpp_err=yes
7005fi
7006if test -z "$ac_cpp_err"; then
7007  ac_header_preproc=yes
7008else
7009  echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012  ac_header_preproc=no
7013fi
7014rm -f conftest.err conftest.$ac_ext
7015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016echo "${ECHO_T}$ac_header_preproc" >&6
7017
7018# So?  What about this header?
7019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020  yes:no: )
7021    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7025    ac_header_preproc=yes
7026    ;;
7027  no:yes:* )
7028    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7031echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7032    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7035echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7040    (
7041      cat <<\_ASBOX
7042## ----------------------------------- ##
7043## Report this to llvmbugs@cs.uiuc.edu ##
7044## ----------------------------------- ##
7045_ASBOX
7046    ) |
7047      sed "s/^/$as_me: WARNING:     /" >&2
7048    ;;
7049esac
7050echo "$as_me:$LINENO: checking for $ac_header" >&5
7051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7052if eval "test \"\${$as_ac_Header+set}\" = set"; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  eval "$as_ac_Header=\$ac_header_preproc"
7056fi
7057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7059
7060fi
7061if test `eval echo '${'$as_ac_Header'}'` = yes; then
7062  cat >>confdefs.h <<_ACEOF
7063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7064_ACEOF
7065
7066fi
7067
7068done
7069
7070# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7071if test "${enable_ltdl_install+set}" = set; then
7072  enableval="$enable_ltdl_install"
7073
7074fi;
7075
7076
7077
7078if test x"${enable_ltdl_install-no}" != xno; then
7079  INSTALL_LTDL_TRUE=
7080  INSTALL_LTDL_FALSE='#'
7081else
7082  INSTALL_LTDL_TRUE='#'
7083  INSTALL_LTDL_FALSE=
7084fi
7085
7086
7087
7088if test x"${enable_ltdl_convenience-no}" != xno; then
7089  CONVENIENCE_LTDL_TRUE=
7090  CONVENIENCE_LTDL_FALSE='#'
7091else
7092  CONVENIENCE_LTDL_TRUE='#'
7093  CONVENIENCE_LTDL_FALSE=
7094fi
7095
7096
7097echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7098echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7099library_names_spec=
7100libname_spec='lib$name'
7101soname_spec=
7102shrext_cmds=".so"
7103postinstall_cmds=
7104postuninstall_cmds=
7105finish_cmds=
7106finish_eval=
7107shlibpath_var=
7108shlibpath_overrides_runpath=unknown
7109version_type=none
7110dynamic_linker="$host_os ld.so"
7111sys_lib_dlsearch_path_spec="/lib /usr/lib"
7112if test "$GCC" = yes; then
7113  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7114  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7115    # if the path contains ";" then we assume it to be the separator
7116    # otherwise default to the standard path separator (i.e. ":") - it is
7117    # assumed that no part of a normal pathname contains ";" but that should
7118    # okay in the real world where ";" in dirpaths is itself problematic.
7119    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7120  else
7121    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7122  fi
7123else
7124  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7125fi
7126need_lib_prefix=unknown
7127hardcode_into_libs=no
7128
7129# when you set need_version to no, make sure it does not cause -set_version
7130# flags to be left without arguments
7131need_version=unknown
7132
7133case $host_os in
7134aix3*)
7135  version_type=linux
7136  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7137  shlibpath_var=LIBPATH
7138
7139  # AIX 3 has no versioning support, so we append a major version to the name.
7140  soname_spec='${libname}${release}${shared_ext}$major'
7141  ;;
7142
7143aix4* | aix5*)
7144  version_type=linux
7145  need_lib_prefix=no
7146  need_version=no
7147  hardcode_into_libs=yes
7148  if test "$host_cpu" = ia64; then
7149    # AIX 5 supports IA64
7150    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7151    shlibpath_var=LD_LIBRARY_PATH
7152  else
7153    # With GCC up to 2.95.x, collect2 would create an import file
7154    # for dependence libraries.  The import file would start with
7155    # the line `#! .'.  This would cause the generated library to
7156    # depend on `.', always an invalid library.  This was fixed in
7157    # development snapshots of GCC prior to 3.0.
7158    case $host_os in
7159      aix4 | aix4.[01] | aix4.[01].*)
7160      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7161	   echo ' yes '
7162	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7163	:
7164      else
7165	can_build_shared=no
7166      fi
7167      ;;
7168    esac
7169    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7170    # soname into executable. Probably we can add versioning support to
7171    # collect2, so additional links can be useful in future.
7172    if test "$aix_use_runtimelinking" = yes; then
7173      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7174      # instead of lib<name>.a to let people know that these are not
7175      # typical AIX shared libraries.
7176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7177    else
7178      # We preserve .a as extension for shared libraries through AIX4.2
7179      # and later when we are not doing run time linking.
7180      library_names_spec='${libname}${release}.a $libname.a'
7181      soname_spec='${libname}${release}${shared_ext}$major'
7182    fi
7183    shlibpath_var=LIBPATH
7184  fi
7185  ;;
7186
7187amigaos*)
7188  library_names_spec='$libname.ixlibrary $libname.a'
7189  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7190  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'
7191  ;;
7192
7193beos*)
7194  library_names_spec='${libname}${shared_ext}'
7195  dynamic_linker="$host_os ld.so"
7196  shlibpath_var=LIBRARY_PATH
7197  ;;
7198
7199bsdi[45]*)
7200  version_type=linux
7201  need_version=no
7202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7203  soname_spec='${libname}${release}${shared_ext}$major'
7204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7205  shlibpath_var=LD_LIBRARY_PATH
7206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7208  # the default ld.so.conf also contains /usr/contrib/lib and
7209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7210  # libtool to hard-code these into programs
7211  ;;
7212
7213cygwin* | mingw* | pw32*)
7214  version_type=windows
7215  shrext_cmds=".dll"
7216  need_version=no
7217  need_lib_prefix=no
7218
7219  case $GCC,$host_os in
7220  yes,cygwin* | yes,mingw* | yes,pw32*)
7221    library_names_spec='$libname.dll.a'
7222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7223    postinstall_cmds='base_file=`basename \${file}`~
7224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7225      dldir=$destdir/`dirname \$dlpath`~
7226      test -d \$dldir || mkdir -p \$dldir~
7227      $install_prog $dir/$dlname \$dldir/$dlname'
7228    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7229      dlpath=$dir/\$dldll~
7230       $rm \$dlpath'
7231    shlibpath_overrides_runpath=yes
7232
7233    case $host_os in
7234    cygwin*)
7235      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7236      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7237      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7238      ;;
7239    mingw*)
7240      # MinGW DLLs use traditional 'lib' prefix
7241      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7242      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7243      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7244        # It is most probably a Windows format PATH printed by
7245        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7246        # path with ; separators, and with drive letters. We can handle the
7247        # drive letters (cygwin fileutils understands them), so leave them,
7248        # especially as we might pass files found there to a mingw objdump,
7249        # which wouldn't understand a cygwinified path. Ahh.
7250        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7251      else
7252        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7253      fi
7254      ;;
7255    pw32*)
7256      # pw32 DLLs use 'pw' prefix rather than 'lib'
7257      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7258      ;;
7259    esac
7260    ;;
7261
7262  *)
7263    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7264    ;;
7265  esac
7266  dynamic_linker='Win32 ld.exe'
7267  # FIXME: first we should search . and the directory the executable is in
7268  shlibpath_var=PATH
7269  ;;
7270
7271darwin* | rhapsody*)
7272  dynamic_linker="$host_os dyld"
7273  version_type=darwin
7274  need_lib_prefix=no
7275  need_version=no
7276  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7277  soname_spec='${libname}${release}${major}$shared_ext'
7278  shlibpath_overrides_runpath=yes
7279  shlibpath_var=DYLD_LIBRARY_PATH
7280  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7281  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7282  if test "$GCC" = yes; then
7283    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"`
7284  else
7285    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7286  fi
7287  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7288  ;;
7289
7290dgux*)
7291  version_type=linux
7292  need_lib_prefix=no
7293  need_version=no
7294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7295  soname_spec='${libname}${release}${shared_ext}$major'
7296  shlibpath_var=LD_LIBRARY_PATH
7297  ;;
7298
7299freebsd1*)
7300  dynamic_linker=no
7301  ;;
7302
7303kfreebsd*-gnu)
7304  version_type=linux
7305  need_lib_prefix=no
7306  need_version=no
7307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7308  soname_spec='${libname}${release}${shared_ext}$major'
7309  shlibpath_var=LD_LIBRARY_PATH
7310  shlibpath_overrides_runpath=no
7311  hardcode_into_libs=yes
7312  dynamic_linker='GNU ld.so'
7313  ;;
7314
7315freebsd*)
7316  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7317  version_type=freebsd-$objformat
7318  case $version_type in
7319    freebsd-elf*)
7320      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7321      need_version=no
7322      need_lib_prefix=no
7323      ;;
7324    freebsd-*)
7325      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7326      need_version=yes
7327      ;;
7328  esac
7329  shlibpath_var=LD_LIBRARY_PATH
7330  case $host_os in
7331  freebsd2*)
7332    shlibpath_overrides_runpath=yes
7333    ;;
7334  freebsd3.01* | freebsdelf3.01*)
7335    shlibpath_overrides_runpath=yes
7336    hardcode_into_libs=yes
7337    ;;
7338  *) # from 3.2 on
7339    shlibpath_overrides_runpath=no
7340    hardcode_into_libs=yes
7341    ;;
7342  esac
7343  ;;
7344
7345gnu*)
7346  version_type=linux
7347  need_lib_prefix=no
7348  need_version=no
7349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7350  soname_spec='${libname}${release}${shared_ext}$major'
7351  shlibpath_var=LD_LIBRARY_PATH
7352  hardcode_into_libs=yes
7353  ;;
7354
7355hpux9* | hpux10* | hpux11*)
7356  # Give a soname corresponding to the major version so that dld.sl refuses to
7357  # link against other versions.
7358  version_type=sunos
7359  need_lib_prefix=no
7360  need_version=no
7361  case "$host_cpu" in
7362  ia64*)
7363    shrext_cmds='.so'
7364    hardcode_into_libs=yes
7365    dynamic_linker="$host_os dld.so"
7366    shlibpath_var=LD_LIBRARY_PATH
7367    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7369    soname_spec='${libname}${release}${shared_ext}$major'
7370    if test "X$HPUX_IA64_MODE" = X32; then
7371      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7372    else
7373      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7374    fi
7375    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7376    ;;
7377   hppa*64*)
7378     shrext_cmds='.sl'
7379     hardcode_into_libs=yes
7380     dynamic_linker="$host_os dld.sl"
7381     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7382     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7384     soname_spec='${libname}${release}${shared_ext}$major'
7385     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7386     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7387     ;;
7388   *)
7389    shrext_cmds='.sl'
7390    dynamic_linker="$host_os dld.sl"
7391    shlibpath_var=SHLIB_PATH
7392    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7394    soname_spec='${libname}${release}${shared_ext}$major'
7395    ;;
7396  esac
7397  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7398  postinstall_cmds='chmod 555 $lib'
7399  ;;
7400
7401irix5* | irix6* | nonstopux*)
7402  case $host_os in
7403    nonstopux*) version_type=nonstopux ;;
7404    *)
7405	if test "$lt_cv_prog_gnu_ld" = yes; then
7406		version_type=linux
7407	else
7408		version_type=irix
7409	fi ;;
7410  esac
7411  need_lib_prefix=no
7412  need_version=no
7413  soname_spec='${libname}${release}${shared_ext}$major'
7414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7415  case $host_os in
7416  irix5* | nonstopux*)
7417    libsuff= shlibsuff=
7418    ;;
7419  *)
7420    case $LD in # libtool.m4 will add one of these switches to LD
7421    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7422      libsuff= shlibsuff= libmagic=32-bit;;
7423    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7424      libsuff=32 shlibsuff=N32 libmagic=N32;;
7425    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7426      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7427    *) libsuff= shlibsuff= libmagic=never-match;;
7428    esac
7429    ;;
7430  esac
7431  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7432  shlibpath_overrides_runpath=no
7433  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7434  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7435  hardcode_into_libs=yes
7436  ;;
7437
7438# No shared lib support for Linux oldld, aout, or coff.
7439linux*oldld* | linux*aout* | linux*coff*)
7440  dynamic_linker=no
7441  ;;
7442
7443# This must be Linux ELF.
7444linux*)
7445  version_type=linux
7446  need_lib_prefix=no
7447  need_version=no
7448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7449  soname_spec='${libname}${release}${shared_ext}$major'
7450  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7451  shlibpath_var=LD_LIBRARY_PATH
7452  shlibpath_overrides_runpath=no
7453  # This implies no fast_install, which is unacceptable.
7454  # Some rework will be needed to allow for fast_install
7455  # before this can be enabled.
7456  hardcode_into_libs=yes
7457
7458  # Append ld.so.conf contents to the search path
7459  if test -f /etc/ld.so.conf; then
7460    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7461    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7462  fi
7463
7464  # We used to test for /lib/ld.so.1 and disable shared libraries on
7465  # powerpc, because MkLinux only supported shared libraries with the
7466  # GNU dynamic linker.  Since this was broken with cross compilers,
7467  # most powerpc-linux boxes support dynamic linking these days and
7468  # people can always --disable-shared, the test was removed, and we
7469  # assume the GNU/Linux dynamic linker is in use.
7470  dynamic_linker='GNU/Linux ld.so'
7471  ;;
7472
7473knetbsd*-gnu)
7474  version_type=linux
7475  need_lib_prefix=no
7476  need_version=no
7477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7478  soname_spec='${libname}${release}${shared_ext}$major'
7479  shlibpath_var=LD_LIBRARY_PATH
7480  shlibpath_overrides_runpath=no
7481  hardcode_into_libs=yes
7482  dynamic_linker='GNU ld.so'
7483  ;;
7484
7485netbsd*)
7486  version_type=sunos
7487  need_lib_prefix=no
7488  need_version=no
7489  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7491    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7492    dynamic_linker='NetBSD (a.out) ld.so'
7493  else
7494    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7495    soname_spec='${libname}${release}${shared_ext}$major'
7496    dynamic_linker='NetBSD ld.elf_so'
7497  fi
7498  shlibpath_var=LD_LIBRARY_PATH
7499  shlibpath_overrides_runpath=yes
7500  hardcode_into_libs=yes
7501  ;;
7502
7503newsos6)
7504  version_type=linux
7505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506  shlibpath_var=LD_LIBRARY_PATH
7507  shlibpath_overrides_runpath=yes
7508  ;;
7509
7510nto-qnx*)
7511  version_type=linux
7512  need_lib_prefix=no
7513  need_version=no
7514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515  soname_spec='${libname}${release}${shared_ext}$major'
7516  shlibpath_var=LD_LIBRARY_PATH
7517  shlibpath_overrides_runpath=yes
7518  ;;
7519
7520openbsd*)
7521  version_type=sunos
7522  need_lib_prefix=no
7523  need_version=no
7524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7525  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7526  shlibpath_var=LD_LIBRARY_PATH
7527  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7528    case $host_os in
7529      openbsd2.[89] | openbsd2.[89].*)
7530	shlibpath_overrides_runpath=no
7531	;;
7532      *)
7533	shlibpath_overrides_runpath=yes
7534	;;
7535      esac
7536  else
7537    shlibpath_overrides_runpath=yes
7538  fi
7539  ;;
7540
7541os2*)
7542  libname_spec='$name'
7543  shrext_cmds=".dll"
7544  need_lib_prefix=no
7545  library_names_spec='$libname${shared_ext} $libname.a'
7546  dynamic_linker='OS/2 ld.exe'
7547  shlibpath_var=LIBPATH
7548  ;;
7549
7550osf3* | osf4* | osf5*)
7551  version_type=osf
7552  need_lib_prefix=no
7553  need_version=no
7554  soname_spec='${libname}${release}${shared_ext}$major'
7555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556  shlibpath_var=LD_LIBRARY_PATH
7557  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7558  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7559  ;;
7560
7561sco3.2v5*)
7562  version_type=osf
7563  soname_spec='${libname}${release}${shared_ext}$major'
7564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7565  shlibpath_var=LD_LIBRARY_PATH
7566  ;;
7567
7568solaris*)
7569  version_type=linux
7570  need_lib_prefix=no
7571  need_version=no
7572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7573  soname_spec='${libname}${release}${shared_ext}$major'
7574  shlibpath_var=LD_LIBRARY_PATH
7575  shlibpath_overrides_runpath=yes
7576  hardcode_into_libs=yes
7577  # ldd complains unless libraries are executable
7578  postinstall_cmds='chmod +x $lib'
7579  ;;
7580
7581sunos4*)
7582  version_type=sunos
7583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7584  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7585  shlibpath_var=LD_LIBRARY_PATH
7586  shlibpath_overrides_runpath=yes
7587  if test "$with_gnu_ld" = yes; then
7588    need_lib_prefix=no
7589  fi
7590  need_version=yes
7591  ;;
7592
7593sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7594  version_type=linux
7595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7596  soname_spec='${libname}${release}${shared_ext}$major'
7597  shlibpath_var=LD_LIBRARY_PATH
7598  case $host_vendor in
7599    sni)
7600      shlibpath_overrides_runpath=no
7601      need_lib_prefix=no
7602      export_dynamic_flag_spec='${wl}-Blargedynsym'
7603      runpath_var=LD_RUN_PATH
7604      ;;
7605    siemens)
7606      need_lib_prefix=no
7607      ;;
7608    motorola)
7609      need_lib_prefix=no
7610      need_version=no
7611      shlibpath_overrides_runpath=no
7612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7613      ;;
7614  esac
7615  ;;
7616
7617sysv4*MP*)
7618  if test -d /usr/nec ;then
7619    version_type=linux
7620    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7621    soname_spec='$libname${shared_ext}.$major'
7622    shlibpath_var=LD_LIBRARY_PATH
7623  fi
7624  ;;
7625
7626uts4*)
7627  version_type=linux
7628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629  soname_spec='${libname}${release}${shared_ext}$major'
7630  shlibpath_var=LD_LIBRARY_PATH
7631  ;;
7632
7633*)
7634  dynamic_linker=no
7635  ;;
7636esac
7637echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7638echo "${ECHO_T}$dynamic_linker" >&6
7639test "$dynamic_linker" = no && can_build_shared=no
7640
7641
7642echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7643echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7644if test "${libltdl_cv_shlibext+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647
7648module=yes
7649eval libltdl_cv_shlibext=$shrext_cmds
7650
7651fi
7652echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7653echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7654if test -n "$libltdl_cv_shlibext"; then
7655
7656cat >>confdefs.h <<_ACEOF
7657#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7658_ACEOF
7659
7660fi
7661
7662
7663echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7664echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7665if test "${libltdl_cv_shlibpath_var+set}" = set; then
7666  echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668  libltdl_cv_shlibpath_var="$shlibpath_var"
7669fi
7670echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7671echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7672if test -n "$libltdl_cv_shlibpath_var"; then
7673
7674cat >>confdefs.h <<_ACEOF
7675#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7676_ACEOF
7677
7678fi
7679
7680
7681echo "$as_me:$LINENO: checking for the default library search path" >&5
7682echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7683if test "${libltdl_cv_sys_search_path+set}" = set; then
7684  echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7687fi
7688echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7689echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7690if test -n "$libltdl_cv_sys_search_path"; then
7691  sys_search_path=
7692  for dir in $libltdl_cv_sys_search_path; do
7693    if test -z "$sys_search_path"; then
7694      sys_search_path="$dir"
7695    else
7696      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7697    fi
7698  done
7699
7700cat >>confdefs.h <<_ACEOF
7701#define LTDL_SYSSEARCHPATH "$sys_search_path"
7702_ACEOF
7703
7704fi
7705
7706echo "$as_me:$LINENO: checking for objdir" >&5
7707echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7708if test "${libltdl_cv_objdir+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  libltdl_cv_objdir="$objdir"
7712  if test -n "$objdir"; then
7713    :
7714  else
7715    rm -f .libs 2>/dev/null
7716    mkdir .libs 2>/dev/null
7717    if test -d .libs; then
7718      libltdl_cv_objdir=.libs
7719    else
7720      # MS-DOS does not allow filenames that begin with a dot.
7721      libltdl_cv_objdir=_libs
7722    fi
7723  rmdir .libs 2>/dev/null
7724  fi
7725
7726fi
7727echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7728echo "${ECHO_T}$libltdl_cv_objdir" >&6
7729
7730cat >>confdefs.h <<_ACEOF
7731#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7732_ACEOF
7733
7734
7735echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7736echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7737if test "${lt_cv_path_NM+set}" = set; then
7738  echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740  if test -n "$NM"; then
7741  # Let the user override the test.
7742  lt_cv_path_NM="$NM"
7743else
7744  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7745  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7746    IFS="$lt_save_ifs"
7747    test -z "$ac_dir" && ac_dir=.
7748    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7749    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7750      # Check to see if the nm accepts a BSD-compat flag.
7751      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7752      #   nm: unknown option "B" ignored
7753      # Tru64's nm complains that /dev/null is an invalid object file
7754      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7755      */dev/null* | *'Invalid file or object type'*)
7756	lt_cv_path_NM="$tmp_nm -B"
7757	break
7758        ;;
7759      *)
7760	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7761	*/dev/null*)
7762	  lt_cv_path_NM="$tmp_nm -p"
7763	  break
7764	  ;;
7765	*)
7766	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7767	  continue # so that we can try to find one that supports BSD flags
7768	  ;;
7769	esac
7770      esac
7771    fi
7772  done
7773  IFS="$lt_save_ifs"
7774  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7775fi
7776fi
7777echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7778echo "${ECHO_T}$lt_cv_path_NM" >&6
7779NM="$lt_cv_path_NM"
7780
7781
7782
7783
7784
7785# Check for command to grab the raw symbol name followed by C symbol from nm.
7786echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7787echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7788if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7789  echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791
7792# These are sane defaults that work on at least a few old systems.
7793# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7794
7795# Character class describing NM global symbol codes.
7796symcode='[BCDEGRST]'
7797
7798# Regexp to match symbols that can be accessed directly from C.
7799sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7800
7801# Transform the above into a raw symbol and a C symbol.
7802symxfrm='\1 \2\3 \3'
7803
7804# Transform an extracted symbol line into a proper C declaration
7805lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7806
7807# Transform an extracted symbol line into symbol name and symbol address
7808lt_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'"
7809
7810# Define system-specific variables.
7811case $host_os in
7812aix*)
7813  symcode='[BCDT]'
7814  ;;
7815cygwin* | mingw* | pw32*)
7816  symcode='[ABCDGISTW]'
7817  ;;
7818hpux*) # Its linker distinguishes data from code symbols
7819  if test "$host_cpu" = ia64; then
7820    symcode='[ABCDEGRST]'
7821  fi
7822  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823  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'"
7824  ;;
7825linux*)
7826  if test "$host_cpu" = ia64; then
7827    symcode='[ABCDGIRSTW]'
7828    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7829    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'"
7830  fi
7831  ;;
7832irix* | nonstopux*)
7833  symcode='[BCDEGRST]'
7834  ;;
7835osf*)
7836  symcode='[BCDEGQRST]'
7837  ;;
7838solaris* | sysv5*)
7839  symcode='[BDRT]'
7840  ;;
7841sysv4)
7842  symcode='[DFNSTU]'
7843  ;;
7844esac
7845
7846# Handle CRLF in mingw tool chain
7847opt_cr=
7848case $build_os in
7849mingw*)
7850  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7851  ;;
7852esac
7853
7854# If we're using GNU nm, then use its standard symbol codes.
7855case `$NM -V 2>&1` in
7856*GNU* | *'with BFD'*)
7857  symcode='[ABCDGIRSTW]' ;;
7858esac
7859
7860# Try without a prefix undercore, then with it.
7861for ac_symprfx in "" "_"; do
7862
7863  # Write the raw and C identifiers.
7864  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7865
7866  # Check to see that the pipe works correctly.
7867  pipe_works=no
7868
7869  rm -f conftest*
7870  cat > conftest.$ac_ext <<EOF
7871#ifdef __cplusplus
7872extern "C" {
7873#endif
7874char nm_test_var;
7875void nm_test_func(){}
7876#ifdef __cplusplus
7877}
7878#endif
7879int main(){nm_test_var='a';nm_test_func();return(0);}
7880EOF
7881
7882  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883  (eval $ac_compile) 2>&5
7884  ac_status=$?
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); }; then
7887    # Now try to grab the symbols.
7888    nlist=conftest.nm
7889    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7890  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7891  ac_status=$?
7892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893  (exit $ac_status); } && test -s "$nlist"; then
7894      # Try sorting and uniquifying the output.
7895      if sort "$nlist" | uniq > "$nlist"T; then
7896	mv -f "$nlist"T "$nlist"
7897      else
7898	rm -f "$nlist"T
7899      fi
7900
7901      # Make sure that we snagged all the symbols we need.
7902      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7903	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7904	  cat <<EOF > conftest.$ac_ext
7905#ifdef __cplusplus
7906extern "C" {
7907#endif
7908
7909EOF
7910	  # Now generate the symbol file.
7911	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7912
7913	  cat <<EOF >> conftest.$ac_ext
7914#if defined (__STDC__) && __STDC__
7915# define lt_ptr_t void *
7916#else
7917# define lt_ptr_t char *
7918# define const
7919#endif
7920
7921/* The mapping between symbol names and symbols. */
7922const struct {
7923  const char *name;
7924  lt_ptr_t address;
7925}
7926lt_preloaded_symbols[] =
7927{
7928EOF
7929	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7930	  cat <<\EOF >> conftest.$ac_ext
7931  {0, (lt_ptr_t) 0}
7932};
7933
7934#ifdef __cplusplus
7935}
7936#endif
7937EOF
7938	  # Now try linking the two files.
7939	  mv conftest.$ac_objext conftstm.$ac_objext
7940	  lt_save_LIBS="$LIBS"
7941	  lt_save_CFLAGS="$CFLAGS"
7942	  LIBS="conftstm.$ac_objext"
7943	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7944	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945  (eval $ac_link) 2>&5
7946  ac_status=$?
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7949	    pipe_works=yes
7950	  fi
7951	  LIBS="$lt_save_LIBS"
7952	  CFLAGS="$lt_save_CFLAGS"
7953	else
7954	  echo "cannot find nm_test_func in $nlist" >&5
7955	fi
7956      else
7957	echo "cannot find nm_test_var in $nlist" >&5
7958      fi
7959    else
7960      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961    fi
7962  else
7963    echo "$progname: failed program was:" >&5
7964    cat conftest.$ac_ext >&5
7965  fi
7966  rm -f conftest* conftst*
7967
7968  # Do not use the global_symbol_pipe unless it works.
7969  if test "$pipe_works" = yes; then
7970    break
7971  else
7972    lt_cv_sys_global_symbol_pipe=
7973  fi
7974done
7975
7976fi
7977
7978if test -z "$lt_cv_sys_global_symbol_pipe"; then
7979  lt_cv_sys_global_symbol_to_cdecl=
7980fi
7981if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7982  echo "$as_me:$LINENO: result: failed" >&5
7983echo "${ECHO_T}failed" >&6
7984else
7985  echo "$as_me:$LINENO: result: ok" >&5
7986echo "${ECHO_T}ok" >&6
7987fi
7988
7989
7990echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7991echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7992if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7996    libltdl_cv_preloaded_symbols=yes
7997  else
7998    libltdl_cv_preloaded_symbols=no
7999  fi
8000
8001fi
8002echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8003echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8004if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8005
8006cat >>confdefs.h <<\_ACEOF
8007#define HAVE_PRELOADED_SYMBOLS 1
8008_ACEOF
8009
8010fi
8011
8012LIBADD_DL=
8013
8014ac_ext=c
8015ac_cpp='$CPP $CPPFLAGS'
8016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019
8020
8021echo "$as_me:$LINENO: checking for shl_load" >&5
8022echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8023if test "${ac_cv_func_shl_load+set}" = set; then
8024  echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026  cat >conftest.$ac_ext <<_ACEOF
8027/* confdefs.h.  */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h.  */
8032/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8033   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8034#define shl_load innocuous_shl_load
8035
8036/* System header to define __stub macros and hopefully few prototypes,
8037    which can conflict with char shl_load (); below.
8038    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039    <limits.h> exists even on freestanding compilers.  */
8040
8041#ifdef __STDC__
8042# include <limits.h>
8043#else
8044# include <assert.h>
8045#endif
8046
8047#undef shl_load
8048
8049/* Override any gcc2 internal prototype to avoid an error.  */
8050#ifdef __cplusplus
8051extern "C"
8052{
8053#endif
8054/* We use char because int might match the return type of a gcc2
8055   builtin and then its argument prototype would still apply.  */
8056char shl_load ();
8057/* The GNU C library defines this for functions which it implements
8058    to always fail with ENOSYS.  Some functions are actually named
8059    something starting with __ and the normal name is an alias.  */
8060#if defined (__stub_shl_load) || defined (__stub___shl_load)
8061choke me
8062#else
8063char (*f) () = shl_load;
8064#endif
8065#ifdef __cplusplus
8066}
8067#endif
8068
8069int
8070main ()
8071{
8072return f != shl_load;
8073  ;
8074  return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext conftest$ac_exeext
8078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079  (eval $ac_link) 2>conftest.er1
8080  ac_status=$?
8081  grep -v '^ *+' conftest.er1 >conftest.err
8082  rm -f conftest.er1
8083  cat conftest.err >&5
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); } &&
8086	 { ac_try='test -z "$ac_c_werror_flag"
8087			 || test ! -s conftest.err'
8088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089  (eval $ac_try) 2>&5
8090  ac_status=$?
8091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092  (exit $ac_status); }; } &&
8093	 { ac_try='test -s conftest$ac_exeext'
8094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095  (eval $ac_try) 2>&5
8096  ac_status=$?
8097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098  (exit $ac_status); }; }; then
8099  ac_cv_func_shl_load=yes
8100else
8101  echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
8104ac_cv_func_shl_load=no
8105fi
8106rm -f conftest.err conftest.$ac_objext \
8107      conftest$ac_exeext conftest.$ac_ext
8108fi
8109echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8110echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8111if test $ac_cv_func_shl_load = yes; then
8112
8113cat >>confdefs.h <<\_ACEOF
8114#define HAVE_SHL_LOAD 1
8115_ACEOF
8116
8117else
8118  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8119echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8120if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8121  echo $ECHO_N "(cached) $ECHO_C" >&6
8122else
8123  ac_check_lib_save_LIBS=$LIBS
8124LIBS="-ldld  $LIBS"
8125cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h.  */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h.  */
8131
8132/* Override any gcc2 internal prototype to avoid an error.  */
8133#ifdef __cplusplus
8134extern "C"
8135#endif
8136/* We use char because int might match the return type of a gcc2
8137   builtin and then its argument prototype would still apply.  */
8138char shl_load ();
8139int
8140main ()
8141{
8142shl_load ();
8143  ;
8144  return 0;
8145}
8146_ACEOF
8147rm -f conftest.$ac_objext conftest$ac_exeext
8148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149  (eval $ac_link) 2>conftest.er1
8150  ac_status=$?
8151  grep -v '^ *+' conftest.er1 >conftest.err
8152  rm -f conftest.er1
8153  cat conftest.err >&5
8154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155  (exit $ac_status); } &&
8156	 { ac_try='test -z "$ac_c_werror_flag"
8157			 || test ! -s conftest.err'
8158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159  (eval $ac_try) 2>&5
8160  ac_status=$?
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); }; } &&
8163	 { ac_try='test -s conftest$ac_exeext'
8164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165  (eval $ac_try) 2>&5
8166  ac_status=$?
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); }; }; then
8169  ac_cv_lib_dld_shl_load=yes
8170else
8171  echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174ac_cv_lib_dld_shl_load=no
8175fi
8176rm -f conftest.err conftest.$ac_objext \
8177      conftest$ac_exeext conftest.$ac_ext
8178LIBS=$ac_check_lib_save_LIBS
8179fi
8180echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8181echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8182if test $ac_cv_lib_dld_shl_load = yes; then
8183
8184cat >>confdefs.h <<\_ACEOF
8185#define HAVE_SHL_LOAD 1
8186_ACEOF
8187
8188	LIBADD_DL="$LIBADD_DL -ldld"
8189else
8190  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8191echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8192if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8193  echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195  ac_check_lib_save_LIBS=$LIBS
8196LIBS="-ldl  $LIBS"
8197cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h.  */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h.  */
8203
8204/* Override any gcc2 internal prototype to avoid an error.  */
8205#ifdef __cplusplus
8206extern "C"
8207#endif
8208/* We use char because int might match the return type of a gcc2
8209   builtin and then its argument prototype would still apply.  */
8210char dlopen ();
8211int
8212main ()
8213{
8214dlopen ();
8215  ;
8216  return 0;
8217}
8218_ACEOF
8219rm -f conftest.$ac_objext conftest$ac_exeext
8220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221  (eval $ac_link) 2>conftest.er1
8222  ac_status=$?
8223  grep -v '^ *+' conftest.er1 >conftest.err
8224  rm -f conftest.er1
8225  cat conftest.err >&5
8226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227  (exit $ac_status); } &&
8228	 { ac_try='test -z "$ac_c_werror_flag"
8229			 || test ! -s conftest.err'
8230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231  (eval $ac_try) 2>&5
8232  ac_status=$?
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); }; } &&
8235	 { ac_try='test -s conftest$ac_exeext'
8236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237  (eval $ac_try) 2>&5
8238  ac_status=$?
8239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240  (exit $ac_status); }; }; then
8241  ac_cv_lib_dl_dlopen=yes
8242else
8243  echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246ac_cv_lib_dl_dlopen=no
8247fi
8248rm -f conftest.err conftest.$ac_objext \
8249      conftest$ac_exeext conftest.$ac_ext
8250LIBS=$ac_check_lib_save_LIBS
8251fi
8252echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8253echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8254if test $ac_cv_lib_dl_dlopen = yes; then
8255
8256cat >>confdefs.h <<\_ACEOF
8257#define HAVE_LIBDL 1
8258_ACEOF
8259
8260	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8261else
8262  cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h.  */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h.  */
8268#if HAVE_DLFCN_H
8269#  include <dlfcn.h>
8270#endif
8271
8272int
8273main ()
8274{
8275dlopen(0, 0);
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280rm -f conftest.$ac_objext conftest$ac_exeext
8281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282  (eval $ac_link) 2>conftest.er1
8283  ac_status=$?
8284  grep -v '^ *+' conftest.er1 >conftest.err
8285  rm -f conftest.er1
8286  cat conftest.err >&5
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); } &&
8289	 { ac_try='test -z "$ac_c_werror_flag"
8290			 || test ! -s conftest.err'
8291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292  (eval $ac_try) 2>&5
8293  ac_status=$?
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); }; } &&
8296	 { ac_try='test -s conftest$ac_exeext'
8297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298  (eval $ac_try) 2>&5
8299  ac_status=$?
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); }; }; then
8302
8303cat >>confdefs.h <<\_ACEOF
8304#define HAVE_LIBDL 1
8305_ACEOF
8306 libltdl_cv_func_dlopen="yes"
8307else
8308  echo "$as_me: failed program was:" >&5
8309sed 's/^/| /' conftest.$ac_ext >&5
8310
8311echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8312echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8313if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8314  echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316  ac_check_lib_save_LIBS=$LIBS
8317LIBS="-lsvld  $LIBS"
8318cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324
8325/* Override any gcc2 internal prototype to avoid an error.  */
8326#ifdef __cplusplus
8327extern "C"
8328#endif
8329/* We use char because int might match the return type of a gcc2
8330   builtin and then its argument prototype would still apply.  */
8331char dlopen ();
8332int
8333main ()
8334{
8335dlopen ();
8336  ;
8337  return 0;
8338}
8339_ACEOF
8340rm -f conftest.$ac_objext conftest$ac_exeext
8341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342  (eval $ac_link) 2>conftest.er1
8343  ac_status=$?
8344  grep -v '^ *+' conftest.er1 >conftest.err
8345  rm -f conftest.er1
8346  cat conftest.err >&5
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); } &&
8349	 { ac_try='test -z "$ac_c_werror_flag"
8350			 || test ! -s conftest.err'
8351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352  (eval $ac_try) 2>&5
8353  ac_status=$?
8354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355  (exit $ac_status); }; } &&
8356	 { ac_try='test -s conftest$ac_exeext'
8357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358  (eval $ac_try) 2>&5
8359  ac_status=$?
8360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361  (exit $ac_status); }; }; then
8362  ac_cv_lib_svld_dlopen=yes
8363else
8364  echo "$as_me: failed program was:" >&5
8365sed 's/^/| /' conftest.$ac_ext >&5
8366
8367ac_cv_lib_svld_dlopen=no
8368fi
8369rm -f conftest.err conftest.$ac_objext \
8370      conftest$ac_exeext conftest.$ac_ext
8371LIBS=$ac_check_lib_save_LIBS
8372fi
8373echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8374echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8375if test $ac_cv_lib_svld_dlopen = yes; then
8376
8377cat >>confdefs.h <<\_ACEOF
8378#define HAVE_LIBDL 1
8379_ACEOF
8380
8381	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8382else
8383  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8384echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8385if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8386  echo $ECHO_N "(cached) $ECHO_C" >&6
8387else
8388  ac_check_lib_save_LIBS=$LIBS
8389LIBS="-ldld  $LIBS"
8390cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h.  */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h.  */
8396
8397/* Override any gcc2 internal prototype to avoid an error.  */
8398#ifdef __cplusplus
8399extern "C"
8400#endif
8401/* We use char because int might match the return type of a gcc2
8402   builtin and then its argument prototype would still apply.  */
8403char dld_link ();
8404int
8405main ()
8406{
8407dld_link ();
8408  ;
8409  return 0;
8410}
8411_ACEOF
8412rm -f conftest.$ac_objext conftest$ac_exeext
8413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414  (eval $ac_link) 2>conftest.er1
8415  ac_status=$?
8416  grep -v '^ *+' conftest.er1 >conftest.err
8417  rm -f conftest.er1
8418  cat conftest.err >&5
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); } &&
8421	 { ac_try='test -z "$ac_c_werror_flag"
8422			 || test ! -s conftest.err'
8423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424  (eval $ac_try) 2>&5
8425  ac_status=$?
8426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427  (exit $ac_status); }; } &&
8428	 { ac_try='test -s conftest$ac_exeext'
8429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430  (eval $ac_try) 2>&5
8431  ac_status=$?
8432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433  (exit $ac_status); }; }; then
8434  ac_cv_lib_dld_dld_link=yes
8435else
8436  echo "$as_me: failed program was:" >&5
8437sed 's/^/| /' conftest.$ac_ext >&5
8438
8439ac_cv_lib_dld_dld_link=no
8440fi
8441rm -f conftest.err conftest.$ac_objext \
8442      conftest$ac_exeext conftest.$ac_ext
8443LIBS=$ac_check_lib_save_LIBS
8444fi
8445echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8446echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8447if test $ac_cv_lib_dld_dld_link = yes; then
8448
8449cat >>confdefs.h <<\_ACEOF
8450#define HAVE_DLD 1
8451_ACEOF
8452
8453	 	LIBADD_DL="$LIBADD_DL -ldld"
8454else
8455  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8456echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8457if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8458  echo $ECHO_N "(cached) $ECHO_C" >&6
8459else
8460  cat >conftest.$ac_ext <<_ACEOF
8461/* confdefs.h.  */
8462_ACEOF
8463cat confdefs.h >>conftest.$ac_ext
8464cat >>conftest.$ac_ext <<_ACEOF
8465/* end confdefs.h.  */
8466/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8467   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8468#define _dyld_func_lookup innocuous__dyld_func_lookup
8469
8470/* System header to define __stub macros and hopefully few prototypes,
8471    which can conflict with char _dyld_func_lookup (); below.
8472    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8473    <limits.h> exists even on freestanding compilers.  */
8474
8475#ifdef __STDC__
8476# include <limits.h>
8477#else
8478# include <assert.h>
8479#endif
8480
8481#undef _dyld_func_lookup
8482
8483/* Override any gcc2 internal prototype to avoid an error.  */
8484#ifdef __cplusplus
8485extern "C"
8486{
8487#endif
8488/* We use char because int might match the return type of a gcc2
8489   builtin and then its argument prototype would still apply.  */
8490char _dyld_func_lookup ();
8491/* The GNU C library defines this for functions which it implements
8492    to always fail with ENOSYS.  Some functions are actually named
8493    something starting with __ and the normal name is an alias.  */
8494#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8495choke me
8496#else
8497char (*f) () = _dyld_func_lookup;
8498#endif
8499#ifdef __cplusplus
8500}
8501#endif
8502
8503int
8504main ()
8505{
8506return f != _dyld_func_lookup;
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513  (eval $ac_link) 2>conftest.er1
8514  ac_status=$?
8515  grep -v '^ *+' conftest.er1 >conftest.err
8516  rm -f conftest.er1
8517  cat conftest.err >&5
8518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519  (exit $ac_status); } &&
8520	 { ac_try='test -z "$ac_c_werror_flag"
8521			 || test ! -s conftest.err'
8522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523  (eval $ac_try) 2>&5
8524  ac_status=$?
8525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526  (exit $ac_status); }; } &&
8527	 { ac_try='test -s conftest$ac_exeext'
8528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529  (eval $ac_try) 2>&5
8530  ac_status=$?
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); }; }; then
8533  ac_cv_func__dyld_func_lookup=yes
8534else
8535  echo "$as_me: failed program was:" >&5
8536sed 's/^/| /' conftest.$ac_ext >&5
8537
8538ac_cv_func__dyld_func_lookup=no
8539fi
8540rm -f conftest.err conftest.$ac_objext \
8541      conftest$ac_exeext conftest.$ac_ext
8542fi
8543echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8544echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8545if test $ac_cv_func__dyld_func_lookup = yes; then
8546
8547cat >>confdefs.h <<\_ACEOF
8548#define HAVE_DYLD 1
8549_ACEOF
8550
8551fi
8552
8553
8554fi
8555
8556
8557fi
8558
8559
8560fi
8561rm -f conftest.err conftest.$ac_objext \
8562      conftest$ac_exeext conftest.$ac_ext
8563
8564fi
8565
8566
8567fi
8568
8569
8570fi
8571
8572
8573if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8574then
8575  lt_save_LIBS="$LIBS"
8576  LIBS="$LIBS $LIBADD_DL"
8577
8578for ac_func in dlerror
8579do
8580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8581echo "$as_me:$LINENO: checking for $ac_func" >&5
8582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8583if eval "test \"\${$as_ac_var+set}\" = set"; then
8584  echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586  cat >conftest.$ac_ext <<_ACEOF
8587/* confdefs.h.  */
8588_ACEOF
8589cat confdefs.h >>conftest.$ac_ext
8590cat >>conftest.$ac_ext <<_ACEOF
8591/* end confdefs.h.  */
8592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8593   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8594#define $ac_func innocuous_$ac_func
8595
8596/* System header to define __stub macros and hopefully few prototypes,
8597    which can conflict with char $ac_func (); below.
8598    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8599    <limits.h> exists even on freestanding compilers.  */
8600
8601#ifdef __STDC__
8602# include <limits.h>
8603#else
8604# include <assert.h>
8605#endif
8606
8607#undef $ac_func
8608
8609/* Override any gcc2 internal prototype to avoid an error.  */
8610#ifdef __cplusplus
8611extern "C"
8612{
8613#endif
8614/* We use char because int might match the return type of a gcc2
8615   builtin and then its argument prototype would still apply.  */
8616char $ac_func ();
8617/* The GNU C library defines this for functions which it implements
8618    to always fail with ENOSYS.  Some functions are actually named
8619    something starting with __ and the normal name is an alias.  */
8620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8621choke me
8622#else
8623char (*f) () = $ac_func;
8624#endif
8625#ifdef __cplusplus
8626}
8627#endif
8628
8629int
8630main ()
8631{
8632return f != $ac_func;
8633  ;
8634  return 0;
8635}
8636_ACEOF
8637rm -f conftest.$ac_objext conftest$ac_exeext
8638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639  (eval $ac_link) 2>conftest.er1
8640  ac_status=$?
8641  grep -v '^ *+' conftest.er1 >conftest.err
8642  rm -f conftest.er1
8643  cat conftest.err >&5
8644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645  (exit $ac_status); } &&
8646	 { ac_try='test -z "$ac_c_werror_flag"
8647			 || test ! -s conftest.err'
8648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649  (eval $ac_try) 2>&5
8650  ac_status=$?
8651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652  (exit $ac_status); }; } &&
8653	 { ac_try='test -s conftest$ac_exeext'
8654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655  (eval $ac_try) 2>&5
8656  ac_status=$?
8657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658  (exit $ac_status); }; }; then
8659  eval "$as_ac_var=yes"
8660else
8661  echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664eval "$as_ac_var=no"
8665fi
8666rm -f conftest.err conftest.$ac_objext \
8667      conftest$ac_exeext conftest.$ac_ext
8668fi
8669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8670echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8671if test `eval echo '${'$as_ac_var'}'` = yes; then
8672  cat >>confdefs.h <<_ACEOF
8673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8674_ACEOF
8675
8676fi
8677done
8678
8679  LIBS="$lt_save_LIBS"
8680fi
8681ac_ext=c
8682ac_cpp='$CPP $CPPFLAGS'
8683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685ac_compiler_gnu=$ac_cv_c_compiler_gnu
8686
8687
8688
8689echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8690echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8691if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8692  echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694  ac_cv_sys_symbol_underscore=no
8695  cat > conftest.$ac_ext <<EOF
8696void nm_test_func(){}
8697int main(){nm_test_func;return 0;}
8698EOF
8699  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700  (eval $ac_compile) 2>&5
8701  ac_status=$?
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); }; then
8704    # Now try to grab the symbols.
8705    ac_nlist=conftest.nm
8706    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8707  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8708  ac_status=$?
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); } && test -s "$ac_nlist"; then
8711      # See whether the symbols have a leading underscore.
8712      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8713        ac_cv_sys_symbol_underscore=yes
8714      else
8715        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8716	  :
8717        else
8718	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8719        fi
8720      fi
8721    else
8722      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8723    fi
8724  else
8725    echo "configure: failed program was:" >&5
8726    cat conftest.c >&5
8727  fi
8728  rm -rf conftest*
8729
8730fi
8731echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8732echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8733
8734
8735if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8736  if test x"$libltdl_cv_func_dlopen" = xyes ||
8737     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8738	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8739echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8740if test "${libltdl_cv_need_uscore+set}" = set; then
8741  echo $ECHO_N "(cached) $ECHO_C" >&6
8742else
8743  libltdl_cv_need_uscore=unknown
8744          save_LIBS="$LIBS"
8745          LIBS="$LIBS $LIBADD_DL"
8746	  if test "$cross_compiling" = yes; then :
8747  libltdl_cv_need_uscore=cross
8748else
8749  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8750  lt_status=$lt_dlunknown
8751  cat > conftest.$ac_ext <<EOF
8752#line 8752 "configure"
8753#include "confdefs.h"
8754
8755#if HAVE_DLFCN_H
8756#include <dlfcn.h>
8757#endif
8758
8759#include <stdio.h>
8760
8761#ifdef RTLD_GLOBAL
8762#  define LT_DLGLOBAL		RTLD_GLOBAL
8763#else
8764#  ifdef DL_GLOBAL
8765#    define LT_DLGLOBAL		DL_GLOBAL
8766#  else
8767#    define LT_DLGLOBAL		0
8768#  endif
8769#endif
8770
8771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8772   find out it does not work in some platform. */
8773#ifndef LT_DLLAZY_OR_NOW
8774#  ifdef RTLD_LAZY
8775#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8776#  else
8777#    ifdef DL_LAZY
8778#      define LT_DLLAZY_OR_NOW		DL_LAZY
8779#    else
8780#      ifdef RTLD_NOW
8781#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8782#      else
8783#        ifdef DL_NOW
8784#          define LT_DLLAZY_OR_NOW	DL_NOW
8785#        else
8786#          define LT_DLLAZY_OR_NOW	0
8787#        endif
8788#      endif
8789#    endif
8790#  endif
8791#endif
8792
8793#ifdef __cplusplus
8794extern "C" void exit (int);
8795#endif
8796
8797void fnord() { int i=42;}
8798int main ()
8799{
8800  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8801  int status = $lt_dlunknown;
8802
8803  if (self)
8804    {
8805      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8806      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8807      /* dlclose (self); */
8808    }
8809
8810    exit (status);
8811}
8812EOF
8813  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814  (eval $ac_link) 2>&5
8815  ac_status=$?
8816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8818    (./conftest; exit; ) 2>/dev/null
8819    lt_status=$?
8820    case x$lt_status in
8821      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8822      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8823      x$lt_unknown|x*)  ;;
8824    esac
8825  else :
8826    # compilation failed
8827
8828  fi
8829fi
8830rm -fr conftest*
8831
8832	  LIBS="$save_LIBS"
8833
8834fi
8835echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8836echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8837  fi
8838fi
8839
8840if test x"$libltdl_cv_need_uscore" = xyes; then
8841
8842cat >>confdefs.h <<\_ACEOF
8843#define NEED_USCORE 1
8844_ACEOF
8845
8846fi
8847
8848
8849echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8850echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8851if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8852  echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854  # PORTME does your system automatically load deplibs for dlopen?
8855  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8856  # For now, we just catch OSes we know something about -- in the
8857  # future, we'll try test this programmatically.
8858  libltdl_cv_sys_dlopen_deplibs=unknown
8859  case "$host_os" in
8860  aix3*|aix4.1.*|aix4.2.*)
8861    # Unknown whether this is true for these versions of AIX, but
8862    # we want this `case' here to explicitly catch those versions.
8863    libltdl_cv_sys_dlopen_deplibs=unknown
8864    ;;
8865  aix[45]*)
8866    libltdl_cv_sys_dlopen_deplibs=yes
8867    ;;
8868  darwin*)
8869    # Assuming the user has installed a libdl from somewhere, this is true
8870    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8871    libltdl_cv_sys_dlopen_deplibs=yes
8872    ;;
8873  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8874    # GNU and its variants, using gnu ld.so (Glibc)
8875    libltdl_cv_sys_dlopen_deplibs=yes
8876    ;;
8877  hpux10*|hpux11*)
8878    libltdl_cv_sys_dlopen_deplibs=yes
8879    ;;
8880  irix[12345]*|irix6.[01]*)
8881    # Catch all versions of IRIX before 6.2, and indicate that we don't
8882    # know how it worked for any of those versions.
8883    libltdl_cv_sys_dlopen_deplibs=unknown
8884    ;;
8885  irix*)
8886    # The case above catches anything before 6.2, and it's known that
8887    # at 6.2 and later dlopen does load deplibs.
8888    libltdl_cv_sys_dlopen_deplibs=yes
8889    ;;
8890  netbsd*)
8891    libltdl_cv_sys_dlopen_deplibs=yes
8892    ;;
8893  openbsd*)
8894    libltdl_cv_sys_dlopen_deplibs=yes
8895    ;;
8896  osf[1234]*)
8897    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8898    # it did *not* use an RPATH in a shared library to find objects the
8899    # library depends on, so we explictly say `no'.
8900    libltdl_cv_sys_dlopen_deplibs=no
8901    ;;
8902  osf5.0|osf5.0a|osf5.1)
8903    # dlopen *does* load deplibs and with the right loader patch applied
8904    # it even uses RPATH in a shared library to search for shared objects
8905    # that the library depends on, but there's no easy way to know if that
8906    # patch is installed.  Since this is the case, all we can really
8907    # say is unknown -- it depends on the patch being installed.  If
8908    # it is, this changes to `yes'.  Without it, it would be `no'.
8909    libltdl_cv_sys_dlopen_deplibs=unknown
8910    ;;
8911  osf*)
8912    # the two cases above should catch all versions of osf <= 5.1.  Read
8913    # the comments above for what we know about them.
8914    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8915    # is used to find them so we can finally say `yes'.
8916    libltdl_cv_sys_dlopen_deplibs=yes
8917    ;;
8918  solaris*)
8919    libltdl_cv_sys_dlopen_deplibs=yes
8920    ;;
8921  esac
8922
8923fi
8924echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8925echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8926if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8927
8928cat >>confdefs.h <<\_ACEOF
8929#define LTDL_DLOPEN_DEPLIBS 1
8930_ACEOF
8931
8932fi
8933
8934
8935for ac_header in argz.h
8936do
8937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939  echo "$as_me:$LINENO: checking for $ac_header" >&5
8940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8941if eval "test \"\${$as_ac_Header+set}\" = set"; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943fi
8944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946else
8947  # Is the header compilable?
8948echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8950cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h.  */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h.  */
8956$ac_includes_default
8957#include <$ac_header>
8958_ACEOF
8959rm -f conftest.$ac_objext
8960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961  (eval $ac_compile) 2>conftest.er1
8962  ac_status=$?
8963  grep -v '^ *+' conftest.er1 >conftest.err
8964  rm -f conftest.er1
8965  cat conftest.err >&5
8966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967  (exit $ac_status); } &&
8968	 { ac_try='test -z "$ac_c_werror_flag"
8969			 || test ! -s conftest.err'
8970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971  (eval $ac_try) 2>&5
8972  ac_status=$?
8973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974  (exit $ac_status); }; } &&
8975	 { ac_try='test -s conftest.$ac_objext'
8976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977  (eval $ac_try) 2>&5
8978  ac_status=$?
8979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); }; }; then
8981  ac_header_compiler=yes
8982else
8983  echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
8986ac_header_compiler=no
8987fi
8988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990echo "${ECHO_T}$ac_header_compiler" >&6
8991
8992# Is the header present?
8993echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8995cat >conftest.$ac_ext <<_ACEOF
8996/* confdefs.h.  */
8997_ACEOF
8998cat confdefs.h >>conftest.$ac_ext
8999cat >>conftest.$ac_ext <<_ACEOF
9000/* end confdefs.h.  */
9001#include <$ac_header>
9002_ACEOF
9003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005  ac_status=$?
9006  grep -v '^ *+' conftest.er1 >conftest.err
9007  rm -f conftest.er1
9008  cat conftest.err >&5
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); } >/dev/null; then
9011  if test -s conftest.err; then
9012    ac_cpp_err=$ac_c_preproc_warn_flag
9013    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014  else
9015    ac_cpp_err=
9016  fi
9017else
9018  ac_cpp_err=yes
9019fi
9020if test -z "$ac_cpp_err"; then
9021  ac_header_preproc=yes
9022else
9023  echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026  ac_header_preproc=no
9027fi
9028rm -f conftest.err conftest.$ac_ext
9029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030echo "${ECHO_T}$ac_header_preproc" >&6
9031
9032# So?  What about this header?
9033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034  yes:no: )
9035    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039    ac_header_preproc=yes
9040    ;;
9041  no:yes:* )
9042    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9045echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9046    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9049echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054    (
9055      cat <<\_ASBOX
9056## ----------------------------------- ##
9057## Report this to llvmbugs@cs.uiuc.edu ##
9058## ----------------------------------- ##
9059_ASBOX
9060    ) |
9061      sed "s/^/$as_me: WARNING:     /" >&2
9062    ;;
9063esac
9064echo "$as_me:$LINENO: checking for $ac_header" >&5
9065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067  echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069  eval "$as_ac_Header=\$ac_header_preproc"
9070fi
9071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073
9074fi
9075if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076  cat >>confdefs.h <<_ACEOF
9077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078_ACEOF
9079
9080fi
9081
9082done
9083
9084
9085echo "$as_me:$LINENO: checking for error_t" >&5
9086echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9087if test "${ac_cv_type_error_t+set}" = set; then
9088  echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090  cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h.  */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h.  */
9096#if HAVE_ARGZ_H
9097#  include <argz.h>
9098#endif
9099
9100int
9101main ()
9102{
9103if ((error_t *) 0)
9104  return 0;
9105if (sizeof (error_t))
9106  return 0;
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111rm -f conftest.$ac_objext
9112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113  (eval $ac_compile) 2>conftest.er1
9114  ac_status=$?
9115  grep -v '^ *+' conftest.er1 >conftest.err
9116  rm -f conftest.er1
9117  cat conftest.err >&5
9118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); } &&
9120	 { ac_try='test -z "$ac_c_werror_flag"
9121			 || test ! -s conftest.err'
9122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123  (eval $ac_try) 2>&5
9124  ac_status=$?
9125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126  (exit $ac_status); }; } &&
9127	 { ac_try='test -s conftest.$ac_objext'
9128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129  (eval $ac_try) 2>&5
9130  ac_status=$?
9131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132  (exit $ac_status); }; }; then
9133  ac_cv_type_error_t=yes
9134else
9135  echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
9138ac_cv_type_error_t=no
9139fi
9140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141fi
9142echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9143echo "${ECHO_T}$ac_cv_type_error_t" >&6
9144if test $ac_cv_type_error_t = yes; then
9145
9146cat >>confdefs.h <<_ACEOF
9147#define HAVE_ERROR_T 1
9148_ACEOF
9149
9150
9151else
9152
9153cat >>confdefs.h <<\_ACEOF
9154#define error_t int
9155_ACEOF
9156
9157fi
9158
9159
9160
9161
9162
9163
9164
9165for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9166do
9167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9168echo "$as_me:$LINENO: checking for $ac_func" >&5
9169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9170if eval "test \"\${$as_ac_var+set}\" = set"; then
9171  echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
9173  cat >conftest.$ac_ext <<_ACEOF
9174/* confdefs.h.  */
9175_ACEOF
9176cat confdefs.h >>conftest.$ac_ext
9177cat >>conftest.$ac_ext <<_ACEOF
9178/* end confdefs.h.  */
9179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9180   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9181#define $ac_func innocuous_$ac_func
9182
9183/* System header to define __stub macros and hopefully few prototypes,
9184    which can conflict with char $ac_func (); below.
9185    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9186    <limits.h> exists even on freestanding compilers.  */
9187
9188#ifdef __STDC__
9189# include <limits.h>
9190#else
9191# include <assert.h>
9192#endif
9193
9194#undef $ac_func
9195
9196/* Override any gcc2 internal prototype to avoid an error.  */
9197#ifdef __cplusplus
9198extern "C"
9199{
9200#endif
9201/* We use char because int might match the return type of a gcc2
9202   builtin and then its argument prototype would still apply.  */
9203char $ac_func ();
9204/* The GNU C library defines this for functions which it implements
9205    to always fail with ENOSYS.  Some functions are actually named
9206    something starting with __ and the normal name is an alias.  */
9207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9208choke me
9209#else
9210char (*f) () = $ac_func;
9211#endif
9212#ifdef __cplusplus
9213}
9214#endif
9215
9216int
9217main ()
9218{
9219return f != $ac_func;
9220  ;
9221  return 0;
9222}
9223_ACEOF
9224rm -f conftest.$ac_objext conftest$ac_exeext
9225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226  (eval $ac_link) 2>conftest.er1
9227  ac_status=$?
9228  grep -v '^ *+' conftest.er1 >conftest.err
9229  rm -f conftest.er1
9230  cat conftest.err >&5
9231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232  (exit $ac_status); } &&
9233	 { ac_try='test -z "$ac_c_werror_flag"
9234			 || test ! -s conftest.err'
9235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236  (eval $ac_try) 2>&5
9237  ac_status=$?
9238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); }; } &&
9240	 { ac_try='test -s conftest$ac_exeext'
9241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242  (eval $ac_try) 2>&5
9243  ac_status=$?
9244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245  (exit $ac_status); }; }; then
9246  eval "$as_ac_var=yes"
9247else
9248  echo "$as_me: failed program was:" >&5
9249sed 's/^/| /' conftest.$ac_ext >&5
9250
9251eval "$as_ac_var=no"
9252fi
9253rm -f conftest.err conftest.$ac_objext \
9254      conftest$ac_exeext conftest.$ac_ext
9255fi
9256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258if test `eval echo '${'$as_ac_var'}'` = yes; then
9259  cat >>confdefs.h <<_ACEOF
9260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9261_ACEOF
9262
9263fi
9264done
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9294		  stdio.h unistd.h
9295do
9296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9297if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298  echo "$as_me:$LINENO: checking for $ac_header" >&5
9299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9300if eval "test \"\${$as_ac_Header+set}\" = set"; then
9301  echo $ECHO_N "(cached) $ECHO_C" >&6
9302fi
9303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305else
9306  # Is the header compilable?
9307echo "$as_me:$LINENO: checking $ac_header usability" >&5
9308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9309cat >conftest.$ac_ext <<_ACEOF
9310/* confdefs.h.  */
9311_ACEOF
9312cat confdefs.h >>conftest.$ac_ext
9313cat >>conftest.$ac_ext <<_ACEOF
9314/* end confdefs.h.  */
9315$ac_includes_default
9316#include <$ac_header>
9317_ACEOF
9318rm -f conftest.$ac_objext
9319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9320  (eval $ac_compile) 2>conftest.er1
9321  ac_status=$?
9322  grep -v '^ *+' conftest.er1 >conftest.err
9323  rm -f conftest.er1
9324  cat conftest.err >&5
9325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326  (exit $ac_status); } &&
9327	 { ac_try='test -z "$ac_c_werror_flag"
9328			 || test ! -s conftest.err'
9329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330  (eval $ac_try) 2>&5
9331  ac_status=$?
9332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333  (exit $ac_status); }; } &&
9334	 { ac_try='test -s conftest.$ac_objext'
9335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336  (eval $ac_try) 2>&5
9337  ac_status=$?
9338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339  (exit $ac_status); }; }; then
9340  ac_header_compiler=yes
9341else
9342  echo "$as_me: failed program was:" >&5
9343sed 's/^/| /' conftest.$ac_ext >&5
9344
9345ac_header_compiler=no
9346fi
9347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9349echo "${ECHO_T}$ac_header_compiler" >&6
9350
9351# Is the header present?
9352echo "$as_me:$LINENO: checking $ac_header presence" >&5
9353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h.  */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h.  */
9360#include <$ac_header>
9361_ACEOF
9362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9364  ac_status=$?
9365  grep -v '^ *+' conftest.er1 >conftest.err
9366  rm -f conftest.er1
9367  cat conftest.err >&5
9368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369  (exit $ac_status); } >/dev/null; then
9370  if test -s conftest.err; then
9371    ac_cpp_err=$ac_c_preproc_warn_flag
9372    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9373  else
9374    ac_cpp_err=
9375  fi
9376else
9377  ac_cpp_err=yes
9378fi
9379if test -z "$ac_cpp_err"; then
9380  ac_header_preproc=yes
9381else
9382  echo "$as_me: failed program was:" >&5
9383sed 's/^/| /' conftest.$ac_ext >&5
9384
9385  ac_header_preproc=no
9386fi
9387rm -f conftest.err conftest.$ac_ext
9388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9389echo "${ECHO_T}$ac_header_preproc" >&6
9390
9391# So?  What about this header?
9392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9393  yes:no: )
9394    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9398    ac_header_preproc=yes
9399    ;;
9400  no:yes:* )
9401    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9403    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9404echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9405    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9407    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9408echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9409    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9411    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9413    (
9414      cat <<\_ASBOX
9415## ----------------------------------- ##
9416## Report this to llvmbugs@cs.uiuc.edu ##
9417## ----------------------------------- ##
9418_ASBOX
9419    ) |
9420      sed "s/^/$as_me: WARNING:     /" >&2
9421    ;;
9422esac
9423echo "$as_me:$LINENO: checking for $ac_header" >&5
9424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9425if eval "test \"\${$as_ac_Header+set}\" = set"; then
9426  echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428  eval "$as_ac_Header=\$ac_header_preproc"
9429fi
9430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9432
9433fi
9434if test `eval echo '${'$as_ac_Header'}'` = yes; then
9435  cat >>confdefs.h <<_ACEOF
9436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437_ACEOF
9438
9439fi
9440
9441done
9442
9443
9444
9445
9446
9447for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9448do
9449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9450if eval "test \"\${$as_ac_Header+set}\" = set"; then
9451  echo "$as_me:$LINENO: checking for $ac_header" >&5
9452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9453if eval "test \"\${$as_ac_Header+set}\" = set"; then
9454  echo $ECHO_N "(cached) $ECHO_C" >&6
9455fi
9456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9458else
9459  # Is the header compilable?
9460echo "$as_me:$LINENO: checking $ac_header usability" >&5
9461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9462cat >conftest.$ac_ext <<_ACEOF
9463/* confdefs.h.  */
9464_ACEOF
9465cat confdefs.h >>conftest.$ac_ext
9466cat >>conftest.$ac_ext <<_ACEOF
9467/* end confdefs.h.  */
9468$ac_includes_default
9469#include <$ac_header>
9470_ACEOF
9471rm -f conftest.$ac_objext
9472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9473  (eval $ac_compile) 2>conftest.er1
9474  ac_status=$?
9475  grep -v '^ *+' conftest.er1 >conftest.err
9476  rm -f conftest.er1
9477  cat conftest.err >&5
9478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479  (exit $ac_status); } &&
9480	 { ac_try='test -z "$ac_c_werror_flag"
9481			 || test ! -s conftest.err'
9482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483  (eval $ac_try) 2>&5
9484  ac_status=$?
9485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486  (exit $ac_status); }; } &&
9487	 { ac_try='test -s conftest.$ac_objext'
9488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489  (eval $ac_try) 2>&5
9490  ac_status=$?
9491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492  (exit $ac_status); }; }; then
9493  ac_header_compiler=yes
9494else
9495  echo "$as_me: failed program was:" >&5
9496sed 's/^/| /' conftest.$ac_ext >&5
9497
9498ac_header_compiler=no
9499fi
9500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9502echo "${ECHO_T}$ac_header_compiler" >&6
9503
9504# Is the header present?
9505echo "$as_me:$LINENO: checking $ac_header presence" >&5
9506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9507cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h.  */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h.  */
9513#include <$ac_header>
9514_ACEOF
9515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9516  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9517  ac_status=$?
9518  grep -v '^ *+' conftest.er1 >conftest.err
9519  rm -f conftest.er1
9520  cat conftest.err >&5
9521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522  (exit $ac_status); } >/dev/null; then
9523  if test -s conftest.err; then
9524    ac_cpp_err=$ac_c_preproc_warn_flag
9525    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9526  else
9527    ac_cpp_err=
9528  fi
9529else
9530  ac_cpp_err=yes
9531fi
9532if test -z "$ac_cpp_err"; then
9533  ac_header_preproc=yes
9534else
9535  echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538  ac_header_preproc=no
9539fi
9540rm -f conftest.err conftest.$ac_ext
9541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9542echo "${ECHO_T}$ac_header_preproc" >&6
9543
9544# So?  What about this header?
9545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9546  yes:no: )
9547    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9549    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9551    ac_header_preproc=yes
9552    ;;
9553  no:yes:* )
9554    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9556    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9557echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9558    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9560    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9561echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9562    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9564    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9566    (
9567      cat <<\_ASBOX
9568## ----------------------------------- ##
9569## Report this to llvmbugs@cs.uiuc.edu ##
9570## ----------------------------------- ##
9571_ASBOX
9572    ) |
9573      sed "s/^/$as_me: WARNING:     /" >&2
9574    ;;
9575esac
9576echo "$as_me:$LINENO: checking for $ac_header" >&5
9577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9578if eval "test \"\${$as_ac_Header+set}\" = set"; then
9579  echo $ECHO_N "(cached) $ECHO_C" >&6
9580else
9581  eval "$as_ac_Header=\$ac_header_preproc"
9582fi
9583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9585
9586fi
9587if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588  cat >>confdefs.h <<_ACEOF
9589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9590_ACEOF
9591
9592fi
9593
9594done
9595
9596
9597
9598for ac_header in string.h strings.h
9599do
9600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9601if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602  echo "$as_me:$LINENO: checking for $ac_header" >&5
9603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9604if eval "test \"\${$as_ac_Header+set}\" = set"; then
9605  echo $ECHO_N "(cached) $ECHO_C" >&6
9606fi
9607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9609else
9610  # Is the header compilable?
9611echo "$as_me:$LINENO: checking $ac_header usability" >&5
9612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9613cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h.  */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h.  */
9619$ac_includes_default
9620#include <$ac_header>
9621_ACEOF
9622rm -f conftest.$ac_objext
9623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624  (eval $ac_compile) 2>conftest.er1
9625  ac_status=$?
9626  grep -v '^ *+' conftest.er1 >conftest.err
9627  rm -f conftest.er1
9628  cat conftest.err >&5
9629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630  (exit $ac_status); } &&
9631	 { ac_try='test -z "$ac_c_werror_flag"
9632			 || test ! -s conftest.err'
9633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634  (eval $ac_try) 2>&5
9635  ac_status=$?
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); }; } &&
9638	 { ac_try='test -s conftest.$ac_objext'
9639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640  (eval $ac_try) 2>&5
9641  ac_status=$?
9642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); }; }; then
9644  ac_header_compiler=yes
9645else
9646  echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649ac_header_compiler=no
9650fi
9651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9653echo "${ECHO_T}$ac_header_compiler" >&6
9654
9655# Is the header present?
9656echo "$as_me:$LINENO: checking $ac_header presence" >&5
9657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h.  */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h.  */
9664#include <$ac_header>
9665_ACEOF
9666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668  ac_status=$?
9669  grep -v '^ *+' conftest.er1 >conftest.err
9670  rm -f conftest.er1
9671  cat conftest.err >&5
9672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673  (exit $ac_status); } >/dev/null; then
9674  if test -s conftest.err; then
9675    ac_cpp_err=$ac_c_preproc_warn_flag
9676    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9677  else
9678    ac_cpp_err=
9679  fi
9680else
9681  ac_cpp_err=yes
9682fi
9683if test -z "$ac_cpp_err"; then
9684  ac_header_preproc=yes
9685else
9686  echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689  ac_header_preproc=no
9690fi
9691rm -f conftest.err conftest.$ac_ext
9692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693echo "${ECHO_T}$ac_header_preproc" >&6
9694
9695# So?  What about this header?
9696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9697  yes:no: )
9698    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9702    ac_header_preproc=yes
9703    ;;
9704  no:yes:* )
9705    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9708echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9709    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9711    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9712echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9713    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9717    (
9718      cat <<\_ASBOX
9719## ----------------------------------- ##
9720## Report this to llvmbugs@cs.uiuc.edu ##
9721## ----------------------------------- ##
9722_ASBOX
9723    ) |
9724      sed "s/^/$as_me: WARNING:     /" >&2
9725    ;;
9726esac
9727echo "$as_me:$LINENO: checking for $ac_header" >&5
9728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730  echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732  eval "$as_ac_Header=\$ac_header_preproc"
9733fi
9734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9736
9737fi
9738if test `eval echo '${'$as_ac_Header'}'` = yes; then
9739  cat >>confdefs.h <<_ACEOF
9740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9741_ACEOF
9742 break
9743fi
9744
9745done
9746
9747
9748
9749
9750for ac_func in strchr index
9751do
9752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9753echo "$as_me:$LINENO: checking for $ac_func" >&5
9754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9755if eval "test \"\${$as_ac_var+set}\" = set"; then
9756  echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758  cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h.  */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h.  */
9764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9766#define $ac_func innocuous_$ac_func
9767
9768/* System header to define __stub macros and hopefully few prototypes,
9769    which can conflict with char $ac_func (); below.
9770    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9771    <limits.h> exists even on freestanding compilers.  */
9772
9773#ifdef __STDC__
9774# include <limits.h>
9775#else
9776# include <assert.h>
9777#endif
9778
9779#undef $ac_func
9780
9781/* Override any gcc2 internal prototype to avoid an error.  */
9782#ifdef __cplusplus
9783extern "C"
9784{
9785#endif
9786/* We use char because int might match the return type of a gcc2
9787   builtin and then its argument prototype would still apply.  */
9788char $ac_func ();
9789/* The GNU C library defines this for functions which it implements
9790    to always fail with ENOSYS.  Some functions are actually named
9791    something starting with __ and the normal name is an alias.  */
9792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9793choke me
9794#else
9795char (*f) () = $ac_func;
9796#endif
9797#ifdef __cplusplus
9798}
9799#endif
9800
9801int
9802main ()
9803{
9804return f != $ac_func;
9805  ;
9806  return 0;
9807}
9808_ACEOF
9809rm -f conftest.$ac_objext conftest$ac_exeext
9810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9811  (eval $ac_link) 2>conftest.er1
9812  ac_status=$?
9813  grep -v '^ *+' conftest.er1 >conftest.err
9814  rm -f conftest.er1
9815  cat conftest.err >&5
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); } &&
9818	 { ac_try='test -z "$ac_c_werror_flag"
9819			 || test ! -s conftest.err'
9820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821  (eval $ac_try) 2>&5
9822  ac_status=$?
9823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824  (exit $ac_status); }; } &&
9825	 { ac_try='test -s conftest$ac_exeext'
9826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827  (eval $ac_try) 2>&5
9828  ac_status=$?
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); }; }; then
9831  eval "$as_ac_var=yes"
9832else
9833  echo "$as_me: failed program was:" >&5
9834sed 's/^/| /' conftest.$ac_ext >&5
9835
9836eval "$as_ac_var=no"
9837fi
9838rm -f conftest.err conftest.$ac_objext \
9839      conftest$ac_exeext conftest.$ac_ext
9840fi
9841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9843if test `eval echo '${'$as_ac_var'}'` = yes; then
9844  cat >>confdefs.h <<_ACEOF
9845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9846_ACEOF
9847 break
9848fi
9849done
9850
9851
9852
9853for ac_func in strrchr rindex
9854do
9855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856echo "$as_me:$LINENO: checking for $ac_func" >&5
9857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9858if eval "test \"\${$as_ac_var+set}\" = set"; then
9859  echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861  cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h.  */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h.  */
9867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9869#define $ac_func innocuous_$ac_func
9870
9871/* System header to define __stub macros and hopefully few prototypes,
9872    which can conflict with char $ac_func (); below.
9873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874    <limits.h> exists even on freestanding compilers.  */
9875
9876#ifdef __STDC__
9877# include <limits.h>
9878#else
9879# include <assert.h>
9880#endif
9881
9882#undef $ac_func
9883
9884/* Override any gcc2 internal prototype to avoid an error.  */
9885#ifdef __cplusplus
9886extern "C"
9887{
9888#endif
9889/* We use char because int might match the return type of a gcc2
9890   builtin and then its argument prototype would still apply.  */
9891char $ac_func ();
9892/* The GNU C library defines this for functions which it implements
9893    to always fail with ENOSYS.  Some functions are actually named
9894    something starting with __ and the normal name is an alias.  */
9895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9896choke me
9897#else
9898char (*f) () = $ac_func;
9899#endif
9900#ifdef __cplusplus
9901}
9902#endif
9903
9904int
9905main ()
9906{
9907return f != $ac_func;
9908  ;
9909  return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext conftest$ac_exeext
9913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914  (eval $ac_link) 2>conftest.er1
9915  ac_status=$?
9916  grep -v '^ *+' conftest.er1 >conftest.err
9917  rm -f conftest.er1
9918  cat conftest.err >&5
9919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920  (exit $ac_status); } &&
9921	 { ac_try='test -z "$ac_c_werror_flag"
9922			 || test ! -s conftest.err'
9923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924  (eval $ac_try) 2>&5
9925  ac_status=$?
9926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927  (exit $ac_status); }; } &&
9928	 { ac_try='test -s conftest$ac_exeext'
9929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930  (eval $ac_try) 2>&5
9931  ac_status=$?
9932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933  (exit $ac_status); }; }; then
9934  eval "$as_ac_var=yes"
9935else
9936  echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939eval "$as_ac_var=no"
9940fi
9941rm -f conftest.err conftest.$ac_objext \
9942      conftest$ac_exeext conftest.$ac_ext
9943fi
9944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9946if test `eval echo '${'$as_ac_var'}'` = yes; then
9947  cat >>confdefs.h <<_ACEOF
9948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9949_ACEOF
9950 break
9951fi
9952done
9953
9954
9955
9956for ac_func in memcpy bcopy
9957do
9958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9959echo "$as_me:$LINENO: checking for $ac_func" >&5
9960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9961if eval "test \"\${$as_ac_var+set}\" = set"; then
9962  echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964  cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h.  */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h.  */
9970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972#define $ac_func innocuous_$ac_func
9973
9974/* System header to define __stub macros and hopefully few prototypes,
9975    which can conflict with char $ac_func (); below.
9976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977    <limits.h> exists even on freestanding compilers.  */
9978
9979#ifdef __STDC__
9980# include <limits.h>
9981#else
9982# include <assert.h>
9983#endif
9984
9985#undef $ac_func
9986
9987/* Override any gcc2 internal prototype to avoid an error.  */
9988#ifdef __cplusplus
9989extern "C"
9990{
9991#endif
9992/* We use char because int might match the return type of a gcc2
9993   builtin and then its argument prototype would still apply.  */
9994char $ac_func ();
9995/* The GNU C library defines this for functions which it implements
9996    to always fail with ENOSYS.  Some functions are actually named
9997    something starting with __ and the normal name is an alias.  */
9998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9999choke me
10000#else
10001char (*f) () = $ac_func;
10002#endif
10003#ifdef __cplusplus
10004}
10005#endif
10006
10007int
10008main ()
10009{
10010return f != $ac_func;
10011  ;
10012  return 0;
10013}
10014_ACEOF
10015rm -f conftest.$ac_objext conftest$ac_exeext
10016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017  (eval $ac_link) 2>conftest.er1
10018  ac_status=$?
10019  grep -v '^ *+' conftest.er1 >conftest.err
10020  rm -f conftest.er1
10021  cat conftest.err >&5
10022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); } &&
10024	 { ac_try='test -z "$ac_c_werror_flag"
10025			 || test ! -s conftest.err'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; } &&
10031	 { ac_try='test -s conftest$ac_exeext'
10032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033  (eval $ac_try) 2>&5
10034  ac_status=$?
10035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036  (exit $ac_status); }; }; then
10037  eval "$as_ac_var=yes"
10038else
10039  echo "$as_me: failed program was:" >&5
10040sed 's/^/| /' conftest.$ac_ext >&5
10041
10042eval "$as_ac_var=no"
10043fi
10044rm -f conftest.err conftest.$ac_objext \
10045      conftest$ac_exeext conftest.$ac_ext
10046fi
10047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10049if test `eval echo '${'$as_ac_var'}'` = yes; then
10050  cat >>confdefs.h <<_ACEOF
10051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10052_ACEOF
10053 break
10054fi
10055done
10056
10057
10058
10059for ac_func in memmove strcmp
10060do
10061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10062echo "$as_me:$LINENO: checking for $ac_func" >&5
10063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10064if eval "test \"\${$as_ac_var+set}\" = set"; then
10065  echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067  cat >conftest.$ac_ext <<_ACEOF
10068/* confdefs.h.  */
10069_ACEOF
10070cat confdefs.h >>conftest.$ac_ext
10071cat >>conftest.$ac_ext <<_ACEOF
10072/* end confdefs.h.  */
10073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10074   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10075#define $ac_func innocuous_$ac_func
10076
10077/* System header to define __stub macros and hopefully few prototypes,
10078    which can conflict with char $ac_func (); below.
10079    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10080    <limits.h> exists even on freestanding compilers.  */
10081
10082#ifdef __STDC__
10083# include <limits.h>
10084#else
10085# include <assert.h>
10086#endif
10087
10088#undef $ac_func
10089
10090/* Override any gcc2 internal prototype to avoid an error.  */
10091#ifdef __cplusplus
10092extern "C"
10093{
10094#endif
10095/* We use char because int might match the return type of a gcc2
10096   builtin and then its argument prototype would still apply.  */
10097char $ac_func ();
10098/* The GNU C library defines this for functions which it implements
10099    to always fail with ENOSYS.  Some functions are actually named
10100    something starting with __ and the normal name is an alias.  */
10101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10102choke me
10103#else
10104char (*f) () = $ac_func;
10105#endif
10106#ifdef __cplusplus
10107}
10108#endif
10109
10110int
10111main ()
10112{
10113return f != $ac_func;
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118rm -f conftest.$ac_objext conftest$ac_exeext
10119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120  (eval $ac_link) 2>conftest.er1
10121  ac_status=$?
10122  grep -v '^ *+' conftest.er1 >conftest.err
10123  rm -f conftest.er1
10124  cat conftest.err >&5
10125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); } &&
10127	 { ac_try='test -z "$ac_c_werror_flag"
10128			 || test ! -s conftest.err'
10129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130  (eval $ac_try) 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; } &&
10134	 { ac_try='test -s conftest$ac_exeext'
10135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136  (eval $ac_try) 2>&5
10137  ac_status=$?
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); }; }; then
10140  eval "$as_ac_var=yes"
10141else
10142  echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
10145eval "$as_ac_var=no"
10146fi
10147rm -f conftest.err conftest.$ac_objext \
10148      conftest$ac_exeext conftest.$ac_ext
10149fi
10150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10152if test `eval echo '${'$as_ac_var'}'` = yes; then
10153  cat >>confdefs.h <<_ACEOF
10154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10155_ACEOF
10156
10157fi
10158done
10159
10160
10161
10162
10163for ac_func in closedir opendir readdir
10164do
10165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166echo "$as_me:$LINENO: checking for $ac_func" >&5
10167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10168if eval "test \"\${$as_ac_var+set}\" = set"; then
10169  echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171  cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h.  */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h.  */
10177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10178   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10179#define $ac_func innocuous_$ac_func
10180
10181/* System header to define __stub macros and hopefully few prototypes,
10182    which can conflict with char $ac_func (); below.
10183    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184    <limits.h> exists even on freestanding compilers.  */
10185
10186#ifdef __STDC__
10187# include <limits.h>
10188#else
10189# include <assert.h>
10190#endif
10191
10192#undef $ac_func
10193
10194/* Override any gcc2 internal prototype to avoid an error.  */
10195#ifdef __cplusplus
10196extern "C"
10197{
10198#endif
10199/* We use char because int might match the return type of a gcc2
10200   builtin and then its argument prototype would still apply.  */
10201char $ac_func ();
10202/* The GNU C library defines this for functions which it implements
10203    to always fail with ENOSYS.  Some functions are actually named
10204    something starting with __ and the normal name is an alias.  */
10205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10206choke me
10207#else
10208char (*f) () = $ac_func;
10209#endif
10210#ifdef __cplusplus
10211}
10212#endif
10213
10214int
10215main ()
10216{
10217return f != $ac_func;
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224  (eval $ac_link) 2>conftest.er1
10225  ac_status=$?
10226  grep -v '^ *+' conftest.er1 >conftest.err
10227  rm -f conftest.er1
10228  cat conftest.err >&5
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); } &&
10231	 { ac_try='test -z "$ac_c_werror_flag"
10232			 || test ! -s conftest.err'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; } &&
10238	 { ac_try='test -s conftest$ac_exeext'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; }; then
10244  eval "$as_ac_var=yes"
10245else
10246  echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249eval "$as_ac_var=no"
10250fi
10251rm -f conftest.err conftest.$ac_objext \
10252      conftest$ac_exeext conftest.$ac_ext
10253fi
10254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10256if test `eval echo '${'$as_ac_var'}'` = yes; then
10257  cat >>confdefs.h <<_ACEOF
10258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10259_ACEOF
10260
10261fi
10262done
10263
10264
10265# Check whether --enable-shared or --disable-shared was given.
10266if test "${enable_shared+set}" = set; then
10267  enableval="$enable_shared"
10268  p=${PACKAGE-default}
10269    case $enableval in
10270    yes) enable_shared=yes ;;
10271    no) enable_shared=no ;;
10272    *)
10273      enable_shared=no
10274      # Look at the argument we got.  We use all the common list separators.
10275      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10276      for pkg in $enableval; do
10277	IFS="$lt_save_ifs"
10278	if test "X$pkg" = "X$p"; then
10279	  enable_shared=yes
10280	fi
10281      done
10282      IFS="$lt_save_ifs"
10283      ;;
10284    esac
10285else
10286  enable_shared=yes
10287fi;
10288
10289# Check whether --enable-static or --disable-static was given.
10290if test "${enable_static+set}" = set; then
10291  enableval="$enable_static"
10292  p=${PACKAGE-default}
10293    case $enableval in
10294    yes) enable_static=yes ;;
10295    no) enable_static=no ;;
10296    *)
10297     enable_static=no
10298      # Look at the argument we got.  We use all the common list separators.
10299      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10300      for pkg in $enableval; do
10301	IFS="$lt_save_ifs"
10302	if test "X$pkg" = "X$p"; then
10303	  enable_static=yes
10304	fi
10305      done
10306      IFS="$lt_save_ifs"
10307      ;;
10308    esac
10309else
10310  enable_static=yes
10311fi;
10312
10313# Check whether --enable-fast-install or --disable-fast-install was given.
10314if test "${enable_fast_install+set}" = set; then
10315  enableval="$enable_fast_install"
10316  p=${PACKAGE-default}
10317    case $enableval in
10318    yes) enable_fast_install=yes ;;
10319    no) enable_fast_install=no ;;
10320    *)
10321      enable_fast_install=no
10322      # Look at the argument we got.  We use all the common list separators.
10323      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10324      for pkg in $enableval; do
10325	IFS="$lt_save_ifs"
10326	if test "X$pkg" = "X$p"; then
10327	  enable_fast_install=yes
10328	fi
10329      done
10330      IFS="$lt_save_ifs"
10331      ;;
10332    esac
10333else
10334  enable_fast_install=yes
10335fi;
10336
10337echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10338echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10339if test "${lt_cv_path_SED+set}" = set; then
10340  echo $ECHO_N "(cached) $ECHO_C" >&6
10341else
10342  # Loop through the user's path and test for sed and gsed.
10343# Then use that list of sed's as ones to test for truncation.
10344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345for as_dir in $PATH
10346do
10347  IFS=$as_save_IFS
10348  test -z "$as_dir" && as_dir=.
10349  for lt_ac_prog in sed gsed; do
10350    for ac_exec_ext in '' $ac_executable_extensions; do
10351      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10352        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10353      fi
10354    done
10355  done
10356done
10357lt_ac_max=0
10358lt_ac_count=0
10359# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10360# along with /bin/sed that truncates output.
10361for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10362  test ! -f $lt_ac_sed && break
10363  cat /dev/null > conftest.in
10364  lt_ac_count=0
10365  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10366  # Check for GNU sed and select it if it is found.
10367  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10368    lt_cv_path_SED=$lt_ac_sed
10369    break
10370  fi
10371  while true; do
10372    cat conftest.in conftest.in >conftest.tmp
10373    mv conftest.tmp conftest.in
10374    cp conftest.in conftest.nl
10375    echo >>conftest.nl
10376    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10377    cmp -s conftest.out conftest.nl || break
10378    # 10000 chars as input seems more than enough
10379    test $lt_ac_count -gt 10 && break
10380    lt_ac_count=`expr $lt_ac_count + 1`
10381    if test $lt_ac_count -gt $lt_ac_max; then
10382      lt_ac_max=$lt_ac_count
10383      lt_cv_path_SED=$lt_ac_sed
10384    fi
10385  done
10386done
10387
10388fi
10389
10390SED=$lt_cv_path_SED
10391echo "$as_me:$LINENO: result: $SED" >&5
10392echo "${ECHO_T}$SED" >&6
10393
10394
10395# Check whether --with-gnu-ld or --without-gnu-ld was given.
10396if test "${with_gnu_ld+set}" = set; then
10397  withval="$with_gnu_ld"
10398  test "$withval" = no || with_gnu_ld=yes
10399else
10400  with_gnu_ld=no
10401fi;
10402ac_prog=ld
10403if test "$GCC" = yes; then
10404  # Check if gcc -print-prog-name=ld gives a path.
10405  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10406echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10407  case $host in
10408  *-*-mingw*)
10409    # gcc leaves a trailing carriage return which upsets mingw
10410    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10411  *)
10412    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10413  esac
10414  case $ac_prog in
10415    # Accept absolute paths.
10416    [\\/]* | ?:[\\/]*)
10417      re_direlt='/[^/][^/]*/\.\./'
10418      # Canonicalize the pathname of ld
10419      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10420      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10421	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10422      done
10423      test -z "$LD" && LD="$ac_prog"
10424      ;;
10425  "")
10426    # If it fails, then pretend we aren't using GCC.
10427    ac_prog=ld
10428    ;;
10429  *)
10430    # If it is relative, then search for the first ld in PATH.
10431    with_gnu_ld=unknown
10432    ;;
10433  esac
10434elif test "$with_gnu_ld" = yes; then
10435  echo "$as_me:$LINENO: checking for GNU ld" >&5
10436echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10437else
10438  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10439echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10440fi
10441if test "${lt_cv_path_LD+set}" = set; then
10442  echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444  if test -z "$LD"; then
10445  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10446  for ac_dir in $PATH; do
10447    IFS="$lt_save_ifs"
10448    test -z "$ac_dir" && ac_dir=.
10449    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10450      lt_cv_path_LD="$ac_dir/$ac_prog"
10451      # Check to see if the program is GNU ld.  I'd rather use --version,
10452      # but apparently some GNU ld's only accept -v.
10453      # Break only if it was the GNU/non-GNU ld that we prefer.
10454      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10455      *GNU* | *'with BFD'*)
10456	test "$with_gnu_ld" != no && break
10457	;;
10458      *)
10459	test "$with_gnu_ld" != yes && break
10460	;;
10461      esac
10462    fi
10463  done
10464  IFS="$lt_save_ifs"
10465else
10466  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10467fi
10468fi
10469
10470LD="$lt_cv_path_LD"
10471if test -n "$LD"; then
10472  echo "$as_me:$LINENO: result: $LD" >&5
10473echo "${ECHO_T}$LD" >&6
10474else
10475  echo "$as_me:$LINENO: result: no" >&5
10476echo "${ECHO_T}no" >&6
10477fi
10478test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10479echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10480   { (exit 1); exit 1; }; }
10481echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10482echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10483if test "${lt_cv_prog_gnu_ld+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10487case `$LD -v 2>&1 </dev/null` in
10488*GNU* | *'with BFD'*)
10489  lt_cv_prog_gnu_ld=yes
10490  ;;
10491*)
10492  lt_cv_prog_gnu_ld=no
10493  ;;
10494esac
10495fi
10496echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10497echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10498with_gnu_ld=$lt_cv_prog_gnu_ld
10499
10500
10501echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10502echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10503if test "${lt_cv_ld_reload_flag+set}" = set; then
10504  echo $ECHO_N "(cached) $ECHO_C" >&6
10505else
10506  lt_cv_ld_reload_flag='-r'
10507fi
10508echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10509echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10510reload_flag=$lt_cv_ld_reload_flag
10511case $reload_flag in
10512"" | " "*) ;;
10513*) reload_flag=" $reload_flag" ;;
10514esac
10515reload_cmds='$LD$reload_flag -o $output$reload_objs'
10516case $host_os in
10517  darwin*)
10518    if test "$GCC" = yes; then
10519      reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10520    else
10521      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10522    fi
10523    ;;
10524esac
10525
10526echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10527echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10528if test "${lt_cv_deplibs_check_method+set}" = set; then
10529  echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531  lt_cv_file_magic_cmd='$MAGIC_CMD'
10532lt_cv_file_magic_test_file=
10533lt_cv_deplibs_check_method='unknown'
10534# Need to set the preceding variable on all platforms that support
10535# interlibrary dependencies.
10536# 'none' -- dependencies not supported.
10537# `unknown' -- same as none, but documents that we really don't know.
10538# 'pass_all' -- all dependencies passed with no checks.
10539# 'test_compile' -- check by making test program.
10540# 'file_magic [[regex]]' -- check by looking for files in library path
10541# which responds to the $file_magic_cmd with a given extended regex.
10542# If you have `file' or equivalent on your system and you're not sure
10543# whether `pass_all' will *always* work, you probably want this one.
10544
10545case $host_os in
10546aix4* | aix5*)
10547  lt_cv_deplibs_check_method=pass_all
10548  ;;
10549
10550beos*)
10551  lt_cv_deplibs_check_method=pass_all
10552  ;;
10553
10554bsdi[45]*)
10555  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10556  lt_cv_file_magic_cmd='/usr/bin/file -L'
10557  lt_cv_file_magic_test_file=/shlib/libc.so
10558  ;;
10559
10560cygwin*)
10561  # func_win32_libid is a shell function defined in ltmain.sh
10562  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10563  lt_cv_file_magic_cmd='func_win32_libid'
10564  ;;
10565
10566mingw* | pw32*)
10567  # Base MSYS/MinGW do not provide the 'file' command needed by
10568  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10569  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10570  lt_cv_file_magic_cmd='$OBJDUMP -f'
10571  ;;
10572
10573darwin* | rhapsody*)
10574  lt_cv_deplibs_check_method=pass_all
10575  ;;
10576
10577freebsd* | kfreebsd*-gnu)
10578  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10579    case $host_cpu in
10580    i*86 )
10581      # Not sure whether the presence of OpenBSD here was a mistake.
10582      # Let's accept both of them until this is cleared up.
10583      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10584      lt_cv_file_magic_cmd=/usr/bin/file
10585      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10586      ;;
10587    esac
10588  else
10589    lt_cv_deplibs_check_method=pass_all
10590  fi
10591  ;;
10592
10593gnu*)
10594  lt_cv_deplibs_check_method=pass_all
10595  ;;
10596
10597hpux10.20* | hpux11*)
10598  lt_cv_file_magic_cmd=/usr/bin/file
10599  case "$host_cpu" in
10600  ia64*)
10601    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10602    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10603    ;;
10604  hppa*64*)
10605    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]'
10606    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10607    ;;
10608  *)
10609    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10610    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10611    ;;
10612  esac
10613  ;;
10614
10615irix5* | irix6* | nonstopux*)
10616  case $LD in
10617  *-32|*"-32 ") libmagic=32-bit;;
10618  *-n32|*"-n32 ") libmagic=N32;;
10619  *-64|*"-64 ") libmagic=64-bit;;
10620  *) libmagic=never-match;;
10621  esac
10622  lt_cv_deplibs_check_method=pass_all
10623  ;;
10624
10625# This must be Linux ELF.
10626linux*)
10627  lt_cv_deplibs_check_method=pass_all
10628  ;;
10629
10630netbsd*)
10631  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10632    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10633  else
10634    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10635  fi
10636  ;;
10637
10638newos6*)
10639  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10640  lt_cv_file_magic_cmd=/usr/bin/file
10641  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10642  ;;
10643
10644nto-qnx*)
10645  lt_cv_deplibs_check_method=unknown
10646  ;;
10647
10648openbsd*)
10649  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10650    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10651  else
10652    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10653  fi
10654  ;;
10655
10656osf3* | osf4* | osf5*)
10657  lt_cv_deplibs_check_method=pass_all
10658  ;;
10659
10660sco3.2v5*)
10661  lt_cv_deplibs_check_method=pass_all
10662  ;;
10663
10664solaris*)
10665  lt_cv_deplibs_check_method=pass_all
10666  ;;
10667
10668sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669  case $host_vendor in
10670  motorola)
10671    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]'
10672    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10673    ;;
10674  ncr)
10675    lt_cv_deplibs_check_method=pass_all
10676    ;;
10677  sequent)
10678    lt_cv_file_magic_cmd='/bin/file'
10679    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10680    ;;
10681  sni)
10682    lt_cv_file_magic_cmd='/bin/file'
10683    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10684    lt_cv_file_magic_test_file=/lib/libc.so
10685    ;;
10686  siemens)
10687    lt_cv_deplibs_check_method=pass_all
10688    ;;
10689  esac
10690  ;;
10691
10692sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10693  lt_cv_deplibs_check_method=pass_all
10694  ;;
10695esac
10696
10697fi
10698echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10699echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10700file_magic_cmd=$lt_cv_file_magic_cmd
10701deplibs_check_method=$lt_cv_deplibs_check_method
10702test -z "$deplibs_check_method" && deplibs_check_method=unknown
10703
10704
10705
10706# If no C compiler was specified, use CC.
10707LTCC=${LTCC-"$CC"}
10708
10709# Allow CC to be a program name with arguments.
10710compiler=$CC
10711
10712# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10713if test "${enable_libtool_lock+set}" = set; then
10714  enableval="$enable_libtool_lock"
10715
10716fi;
10717test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10718
10719# Some flags need to be propagated to the compiler or linker for good
10720# libtool support.
10721case $host in
10722ia64-*-hpux*)
10723  # Find out which ABI we are using.
10724  echo 'int i;' > conftest.$ac_ext
10725  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10726  (eval $ac_compile) 2>&5
10727  ac_status=$?
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); }; then
10730    case `/usr/bin/file conftest.$ac_objext` in
10731    *ELF-32*)
10732      HPUX_IA64_MODE="32"
10733      ;;
10734    *ELF-64*)
10735      HPUX_IA64_MODE="64"
10736      ;;
10737    esac
10738  fi
10739  rm -rf conftest*
10740  ;;
10741*-*-irix6*)
10742  # Find out which ABI we are using.
10743  echo '#line 10743 "configure"' > conftest.$ac_ext
10744  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745  (eval $ac_compile) 2>&5
10746  ac_status=$?
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); }; then
10749   if test "$lt_cv_prog_gnu_ld" = yes; then
10750    case `/usr/bin/file conftest.$ac_objext` in
10751    *32-bit*)
10752      LD="${LD-ld} -melf32bsmip"
10753      ;;
10754    *N32*)
10755      LD="${LD-ld} -melf32bmipn32"
10756      ;;
10757    *64-bit*)
10758      LD="${LD-ld} -melf64bmip"
10759      ;;
10760    esac
10761   else
10762    case `/usr/bin/file conftest.$ac_objext` in
10763    *32-bit*)
10764      LD="${LD-ld} -32"
10765      ;;
10766    *N32*)
10767      LD="${LD-ld} -n32"
10768      ;;
10769    *64-bit*)
10770      LD="${LD-ld} -64"
10771      ;;
10772    esac
10773   fi
10774  fi
10775  rm -rf conftest*
10776  ;;
10777
10778x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10779  # Find out which ABI we are using.
10780  echo 'int i;' > conftest.$ac_ext
10781  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782  (eval $ac_compile) 2>&5
10783  ac_status=$?
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); }; then
10786    case "`/usr/bin/file conftest.o`" in
10787    *32-bit*)
10788      case $host in
10789        x86_64-*linux*)
10790          LD="${LD-ld} -m elf_i386"
10791          ;;
10792        ppc64-*linux*|powerpc64-*linux*)
10793          LD="${LD-ld} -m elf32ppclinux"
10794          ;;
10795        s390x-*linux*)
10796          LD="${LD-ld} -m elf_s390"
10797          ;;
10798        sparc64-*linux*)
10799          LD="${LD-ld} -m elf32_sparc"
10800          ;;
10801      esac
10802      ;;
10803    *64-bit*)
10804      case $host in
10805        x86_64-*linux*)
10806          LD="${LD-ld} -m elf_x86_64"
10807          ;;
10808        ppc*-*linux*|powerpc*-*linux*)
10809          LD="${LD-ld} -m elf64ppc"
10810          ;;
10811        s390*-*linux*)
10812          LD="${LD-ld} -m elf64_s390"
10813          ;;
10814        sparc*-*linux*)
10815          LD="${LD-ld} -m elf64_sparc"
10816          ;;
10817      esac
10818      ;;
10819    esac
10820  fi
10821  rm -rf conftest*
10822  ;;
10823
10824*-*-sco3.2v5*)
10825  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10826  SAVE_CFLAGS="$CFLAGS"
10827  CFLAGS="$CFLAGS -belf"
10828  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10829echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10830if test "${lt_cv_cc_needs_belf+set}" = set; then
10831  echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833  ac_ext=c
10834ac_cpp='$CPP $CPPFLAGS'
10835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10837ac_compiler_gnu=$ac_cv_c_compiler_gnu
10838
10839     cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h.  */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h.  */
10845
10846_ACEOF
10847rm -f conftest.$ac_objext conftest$ac_exeext
10848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849  (eval $ac_link) 2>conftest.er1
10850  ac_status=$?
10851  grep -v '^ *+' conftest.er1 >conftest.err
10852  rm -f conftest.er1
10853  cat conftest.err >&5
10854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855  (exit $ac_status); } &&
10856	 { ac_try='test -z "$ac_c_werror_flag"
10857			 || test ! -s conftest.err'
10858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859  (eval $ac_try) 2>&5
10860  ac_status=$?
10861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862  (exit $ac_status); }; } &&
10863	 { ac_try='test -s conftest$ac_exeext'
10864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865  (eval $ac_try) 2>&5
10866  ac_status=$?
10867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868  (exit $ac_status); }; }; then
10869  lt_cv_cc_needs_belf=yes
10870else
10871  echo "$as_me: failed program was:" >&5
10872sed 's/^/| /' conftest.$ac_ext >&5
10873
10874lt_cv_cc_needs_belf=no
10875fi
10876rm -f conftest.err conftest.$ac_objext \
10877      conftest$ac_exeext conftest.$ac_ext
10878     ac_ext=c
10879ac_cpp='$CPP $CPPFLAGS'
10880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882ac_compiler_gnu=$ac_cv_c_compiler_gnu
10883
10884fi
10885echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10886echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10887  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10888    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10889    CFLAGS="$SAVE_CFLAGS"
10890  fi
10891  ;;
10892
10893esac
10894
10895need_locks="$enable_libtool_lock"
10896
10897
10898
10899
10900if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902    (test "X$CXX" != "Xg++"))) ; then
10903  ac_ext=cc
10904ac_cpp='$CXXCPP $CPPFLAGS'
10905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10909echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10910if test -z "$CXXCPP"; then
10911  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10912  echo $ECHO_N "(cached) $ECHO_C" >&6
10913else
10914      # Double quotes because CXXCPP needs to be expanded
10915    for CXXCPP in "$CXX -E" "/lib/cpp"
10916    do
10917      ac_preproc_ok=false
10918for ac_cxx_preproc_warn_flag in '' yes
10919do
10920  # Use a header file that comes with gcc, so configuring glibc
10921  # with a fresh cross-compiler works.
10922  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923  # <limits.h> exists even on freestanding compilers.
10924  # On the NeXT, cc -E runs the code through the compiler's parser,
10925  # not just through cpp. "Syntax error" is here to catch this case.
10926  cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h.  */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h.  */
10932#ifdef __STDC__
10933# include <limits.h>
10934#else
10935# include <assert.h>
10936#endif
10937		     Syntax error
10938_ACEOF
10939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941  ac_status=$?
10942  grep -v '^ *+' conftest.er1 >conftest.err
10943  rm -f conftest.er1
10944  cat conftest.err >&5
10945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946  (exit $ac_status); } >/dev/null; then
10947  if test -s conftest.err; then
10948    ac_cpp_err=$ac_cxx_preproc_warn_flag
10949    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10950  else
10951    ac_cpp_err=
10952  fi
10953else
10954  ac_cpp_err=yes
10955fi
10956if test -z "$ac_cpp_err"; then
10957  :
10958else
10959  echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
10962  # Broken: fails on valid input.
10963continue
10964fi
10965rm -f conftest.err conftest.$ac_ext
10966
10967  # OK, works on sane cases.  Now check whether non-existent headers
10968  # can be detected and how.
10969  cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h.  */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h.  */
10975#include <ac_nonexistent.h>
10976_ACEOF
10977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10979  ac_status=$?
10980  grep -v '^ *+' conftest.er1 >conftest.err
10981  rm -f conftest.er1
10982  cat conftest.err >&5
10983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984  (exit $ac_status); } >/dev/null; then
10985  if test -s conftest.err; then
10986    ac_cpp_err=$ac_cxx_preproc_warn_flag
10987    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10988  else
10989    ac_cpp_err=
10990  fi
10991else
10992  ac_cpp_err=yes
10993fi
10994if test -z "$ac_cpp_err"; then
10995  # Broken: success on invalid input.
10996continue
10997else
10998  echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001  # Passes both tests.
11002ac_preproc_ok=:
11003break
11004fi
11005rm -f conftest.err conftest.$ac_ext
11006
11007done
11008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11009rm -f conftest.err conftest.$ac_ext
11010if $ac_preproc_ok; then
11011  break
11012fi
11013
11014    done
11015    ac_cv_prog_CXXCPP=$CXXCPP
11016
11017fi
11018  CXXCPP=$ac_cv_prog_CXXCPP
11019else
11020  ac_cv_prog_CXXCPP=$CXXCPP
11021fi
11022echo "$as_me:$LINENO: result: $CXXCPP" >&5
11023echo "${ECHO_T}$CXXCPP" >&6
11024ac_preproc_ok=false
11025for ac_cxx_preproc_warn_flag in '' yes
11026do
11027  # Use a header file that comes with gcc, so configuring glibc
11028  # with a fresh cross-compiler works.
11029  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11030  # <limits.h> exists even on freestanding compilers.
11031  # On the NeXT, cc -E runs the code through the compiler's parser,
11032  # not just through cpp. "Syntax error" is here to catch this case.
11033  cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h.  */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h.  */
11039#ifdef __STDC__
11040# include <limits.h>
11041#else
11042# include <assert.h>
11043#endif
11044		     Syntax error
11045_ACEOF
11046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11047  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11048  ac_status=$?
11049  grep -v '^ *+' conftest.er1 >conftest.err
11050  rm -f conftest.er1
11051  cat conftest.err >&5
11052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053  (exit $ac_status); } >/dev/null; then
11054  if test -s conftest.err; then
11055    ac_cpp_err=$ac_cxx_preproc_warn_flag
11056    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11057  else
11058    ac_cpp_err=
11059  fi
11060else
11061  ac_cpp_err=yes
11062fi
11063if test -z "$ac_cpp_err"; then
11064  :
11065else
11066  echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
11068
11069  # Broken: fails on valid input.
11070continue
11071fi
11072rm -f conftest.err conftest.$ac_ext
11073
11074  # OK, works on sane cases.  Now check whether non-existent headers
11075  # can be detected and how.
11076  cat >conftest.$ac_ext <<_ACEOF
11077/* confdefs.h.  */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h.  */
11082#include <ac_nonexistent.h>
11083_ACEOF
11084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11085  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11086  ac_status=$?
11087  grep -v '^ *+' conftest.er1 >conftest.err
11088  rm -f conftest.er1
11089  cat conftest.err >&5
11090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091  (exit $ac_status); } >/dev/null; then
11092  if test -s conftest.err; then
11093    ac_cpp_err=$ac_cxx_preproc_warn_flag
11094    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11095  else
11096    ac_cpp_err=
11097  fi
11098else
11099  ac_cpp_err=yes
11100fi
11101if test -z "$ac_cpp_err"; then
11102  # Broken: success on invalid input.
11103continue
11104else
11105  echo "$as_me: failed program was:" >&5
11106sed 's/^/| /' conftest.$ac_ext >&5
11107
11108  # Passes both tests.
11109ac_preproc_ok=:
11110break
11111fi
11112rm -f conftest.err conftest.$ac_ext
11113
11114done
11115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11116rm -f conftest.err conftest.$ac_ext
11117if $ac_preproc_ok; then
11118  :
11119else
11120  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11121See \`config.log' for more details." >&5
11122echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11123See \`config.log' for more details." >&2;}
11124   { (exit 1); exit 1; }; }
11125fi
11126
11127ac_ext=cc
11128ac_cpp='$CXXCPP $CPPFLAGS'
11129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11132
11133fi
11134
11135
11136ac_ext=f
11137ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11138ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11140if test -n "$ac_tool_prefix"; then
11141  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11142  do
11143    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11145echo "$as_me:$LINENO: checking for $ac_word" >&5
11146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11147if test "${ac_cv_prog_F77+set}" = set; then
11148  echo $ECHO_N "(cached) $ECHO_C" >&6
11149else
11150  if test -n "$F77"; then
11151  ac_cv_prog_F77="$F77" # Let the user override the test.
11152else
11153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154for as_dir in $PATH
11155do
11156  IFS=$as_save_IFS
11157  test -z "$as_dir" && as_dir=.
11158  for ac_exec_ext in '' $ac_executable_extensions; do
11159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11162    break 2
11163  fi
11164done
11165done
11166
11167fi
11168fi
11169F77=$ac_cv_prog_F77
11170if test -n "$F77"; then
11171  echo "$as_me:$LINENO: result: $F77" >&5
11172echo "${ECHO_T}$F77" >&6
11173else
11174  echo "$as_me:$LINENO: result: no" >&5
11175echo "${ECHO_T}no" >&6
11176fi
11177
11178    test -n "$F77" && break
11179  done
11180fi
11181if test -z "$F77"; then
11182  ac_ct_F77=$F77
11183  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11184do
11185  # Extract the first word of "$ac_prog", so it can be a program name with args.
11186set dummy $ac_prog; ac_word=$2
11187echo "$as_me:$LINENO: checking for $ac_word" >&5
11188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11189if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11190  echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
11192  if test -n "$ac_ct_F77"; then
11193  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11194else
11195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198  IFS=$as_save_IFS
11199  test -z "$as_dir" && as_dir=.
11200  for ac_exec_ext in '' $ac_executable_extensions; do
11201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202    ac_cv_prog_ac_ct_F77="$ac_prog"
11203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204    break 2
11205  fi
11206done
11207done
11208
11209fi
11210fi
11211ac_ct_F77=$ac_cv_prog_ac_ct_F77
11212if test -n "$ac_ct_F77"; then
11213  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11214echo "${ECHO_T}$ac_ct_F77" >&6
11215else
11216  echo "$as_me:$LINENO: result: no" >&5
11217echo "${ECHO_T}no" >&6
11218fi
11219
11220  test -n "$ac_ct_F77" && break
11221done
11222
11223  F77=$ac_ct_F77
11224fi
11225
11226
11227# Provide some information about the compiler.
11228echo "$as_me:11228:" \
11229     "checking for Fortran 77 compiler version" >&5
11230ac_compiler=`set X $ac_compile; echo $2`
11231{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11232  (eval $ac_compiler --version </dev/null >&5) 2>&5
11233  ac_status=$?
11234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235  (exit $ac_status); }
11236{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11237  (eval $ac_compiler -v </dev/null >&5) 2>&5
11238  ac_status=$?
11239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240  (exit $ac_status); }
11241{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11242  (eval $ac_compiler -V </dev/null >&5) 2>&5
11243  ac_status=$?
11244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245  (exit $ac_status); }
11246rm -f a.out
11247
11248# If we don't use `.F' as extension, the preprocessor is not run on the
11249# input file.  (Note that this only needs to work for GNU compilers.)
11250ac_save_ext=$ac_ext
11251ac_ext=F
11252echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11253echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11254if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11255  echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257  cat >conftest.$ac_ext <<_ACEOF
11258      program main
11259#ifndef __GNUC__
11260       choke me
11261#endif
11262
11263      end
11264_ACEOF
11265rm -f conftest.$ac_objext
11266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267  (eval $ac_compile) 2>conftest.er1
11268  ac_status=$?
11269  grep -v '^ *+' conftest.er1 >conftest.err
11270  rm -f conftest.er1
11271  cat conftest.err >&5
11272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273  (exit $ac_status); } &&
11274	 { ac_try='test -z "$ac_f77_werror_flag"
11275			 || test ! -s conftest.err'
11276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277  (eval $ac_try) 2>&5
11278  ac_status=$?
11279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280  (exit $ac_status); }; } &&
11281	 { ac_try='test -s conftest.$ac_objext'
11282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283  (eval $ac_try) 2>&5
11284  ac_status=$?
11285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286  (exit $ac_status); }; }; then
11287  ac_compiler_gnu=yes
11288else
11289  echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292ac_compiler_gnu=no
11293fi
11294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11296
11297fi
11298echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11299echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11300ac_ext=$ac_save_ext
11301ac_test_FFLAGS=${FFLAGS+set}
11302ac_save_FFLAGS=$FFLAGS
11303FFLAGS=
11304echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11305echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11306if test "${ac_cv_prog_f77_g+set}" = set; then
11307  echo $ECHO_N "(cached) $ECHO_C" >&6
11308else
11309  FFLAGS=-g
11310cat >conftest.$ac_ext <<_ACEOF
11311      program main
11312
11313      end
11314_ACEOF
11315rm -f conftest.$ac_objext
11316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317  (eval $ac_compile) 2>conftest.er1
11318  ac_status=$?
11319  grep -v '^ *+' conftest.er1 >conftest.err
11320  rm -f conftest.er1
11321  cat conftest.err >&5
11322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323  (exit $ac_status); } &&
11324	 { ac_try='test -z "$ac_f77_werror_flag"
11325			 || test ! -s conftest.err'
11326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327  (eval $ac_try) 2>&5
11328  ac_status=$?
11329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330  (exit $ac_status); }; } &&
11331	 { ac_try='test -s conftest.$ac_objext'
11332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333  (eval $ac_try) 2>&5
11334  ac_status=$?
11335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336  (exit $ac_status); }; }; then
11337  ac_cv_prog_f77_g=yes
11338else
11339  echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
11342ac_cv_prog_f77_g=no
11343fi
11344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11345
11346fi
11347echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11348echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11349if test "$ac_test_FFLAGS" = set; then
11350  FFLAGS=$ac_save_FFLAGS
11351elif test $ac_cv_prog_f77_g = yes; then
11352  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11353    FFLAGS="-g -O2"
11354  else
11355    FFLAGS="-g"
11356  fi
11357else
11358  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11359    FFLAGS="-O2"
11360  else
11361    FFLAGS=
11362  fi
11363fi
11364
11365G77=`test $ac_compiler_gnu = yes && echo yes`
11366ac_ext=c
11367ac_cpp='$CPP $CPPFLAGS'
11368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371
11372
11373
11374# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11375
11376# find the maximum length of command line arguments
11377echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11378echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11379if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11380  echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382    i=0
11383  teststring="ABCD"
11384
11385  case $build_os in
11386  msdosdjgpp*)
11387    # On DJGPP, this test can blow up pretty badly due to problems in libc
11388    # (any single argument exceeding 2000 bytes causes a buffer overrun
11389    # during glob expansion).  Even if it were fixed, the result of this
11390    # check would be larger than it should be.
11391    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11392    ;;
11393
11394  gnu*)
11395    # Under GNU Hurd, this test is not required because there is
11396    # no limit to the length of command line arguments.
11397    # Libtool will interpret -1 as no limit whatsoever
11398    lt_cv_sys_max_cmd_len=-1;
11399    ;;
11400
11401  cygwin* | mingw*)
11402    # On Win9x/ME, this test blows up -- it succeeds, but takes
11403    # about 5 minutes as the teststring grows exponentially.
11404    # Worse, since 9x/ME are not pre-emptively multitasking,
11405    # you end up with a "frozen" computer, even though with patience
11406    # the test eventually succeeds (with a max line length of 256k).
11407    # Instead, let's just punt: use the minimum linelength reported by
11408    # all of the supported platforms: 8192 (on NT/2K/XP).
11409    lt_cv_sys_max_cmd_len=8192;
11410    ;;
11411
11412  amigaos*)
11413    # On AmigaOS with pdksh, this test takes hours, literally.
11414    # So we just punt and use a minimum line length of 8192.
11415    lt_cv_sys_max_cmd_len=8192;
11416    ;;
11417
11418  netbsd* | freebsd* | openbsd* | darwin* )
11419    # This has been around since 386BSD, at least.  Likely further.
11420    if test -x /sbin/sysctl; then
11421      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11422    elif test -x /usr/sbin/sysctl; then
11423      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11424    else
11425      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11426    fi
11427    # And add a safety zone
11428    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11429    ;;
11430
11431 *)
11432    # If test is not a shell built-in, we'll probably end up computing a
11433    # maximum length that is only half of the actual maximum length, but
11434    # we can't tell.
11435    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11436    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11437	       = "XX$teststring") >/dev/null 2>&1 &&
11438	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
11439	    lt_cv_sys_max_cmd_len=$new_result &&
11440	    test $i != 17 # 1/2 MB should be enough
11441    do
11442      i=`expr $i + 1`
11443      teststring=$teststring$teststring
11444    done
11445    teststring=
11446    # Add a significant safety factor because C++ compilers can tack on massive
11447    # amounts of additional arguments before passing them to the linker.
11448    # It appears as though 1/2 is a usable value.
11449    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11450    ;;
11451  esac
11452
11453fi
11454
11455if test -n $lt_cv_sys_max_cmd_len ; then
11456  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11457echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11458else
11459  echo "$as_me:$LINENO: result: none" >&5
11460echo "${ECHO_T}none" >&6
11461fi
11462
11463
11464
11465
11466# Check for command to grab the raw symbol name followed by C symbol from nm.
11467echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11468echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11470  echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472
11473# These are sane defaults that work on at least a few old systems.
11474# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11475
11476# Character class describing NM global symbol codes.
11477symcode='[BCDEGRST]'
11478
11479# Regexp to match symbols that can be accessed directly from C.
11480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11481
11482# Transform the above into a raw symbol and a C symbol.
11483symxfrm='\1 \2\3 \3'
11484
11485# Transform an extracted symbol line into a proper C declaration
11486lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11487
11488# Transform an extracted symbol line into symbol name and symbol address
11489lt_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'"
11490
11491# Define system-specific variables.
11492case $host_os in
11493aix*)
11494  symcode='[BCDT]'
11495  ;;
11496cygwin* | mingw* | pw32*)
11497  symcode='[ABCDGISTW]'
11498  ;;
11499hpux*) # Its linker distinguishes data from code symbols
11500  if test "$host_cpu" = ia64; then
11501    symcode='[ABCDEGRST]'
11502  fi
11503  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11504  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'"
11505  ;;
11506linux*)
11507  if test "$host_cpu" = ia64; then
11508    symcode='[ABCDGIRSTW]'
11509    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11510    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'"
11511  fi
11512  ;;
11513irix* | nonstopux*)
11514  symcode='[BCDEGRST]'
11515  ;;
11516osf*)
11517  symcode='[BCDEGQRST]'
11518  ;;
11519solaris* | sysv5*)
11520  symcode='[BDRT]'
11521  ;;
11522sysv4)
11523  symcode='[DFNSTU]'
11524  ;;
11525esac
11526
11527# Handle CRLF in mingw tool chain
11528opt_cr=
11529case $build_os in
11530mingw*)
11531  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11532  ;;
11533esac
11534
11535# If we're using GNU nm, then use its standard symbol codes.
11536case `$NM -V 2>&1` in
11537*GNU* | *'with BFD'*)
11538  symcode='[ABCDGIRSTW]' ;;
11539esac
11540
11541# Try without a prefix undercore, then with it.
11542for ac_symprfx in "" "_"; do
11543
11544  # Write the raw and C identifiers.
11545  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11546
11547  # Check to see that the pipe works correctly.
11548  pipe_works=no
11549
11550  rm -f conftest*
11551  cat > conftest.$ac_ext <<EOF
11552#ifdef __cplusplus
11553extern "C" {
11554#endif
11555char nm_test_var;
11556void nm_test_func(){}
11557#ifdef __cplusplus
11558}
11559#endif
11560int main(){nm_test_var='a';nm_test_func();return(0);}
11561EOF
11562
11563  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564  (eval $ac_compile) 2>&5
11565  ac_status=$?
11566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567  (exit $ac_status); }; then
11568    # Now try to grab the symbols.
11569    nlist=conftest.nm
11570    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11571  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11572  ac_status=$?
11573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); } && test -s "$nlist"; then
11575      # Try sorting and uniquifying the output.
11576      if sort "$nlist" | uniq > "$nlist"T; then
11577	mv -f "$nlist"T "$nlist"
11578      else
11579	rm -f "$nlist"T
11580      fi
11581
11582      # Make sure that we snagged all the symbols we need.
11583      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11584	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11585	  cat <<EOF > conftest.$ac_ext
11586#ifdef __cplusplus
11587extern "C" {
11588#endif
11589
11590EOF
11591	  # Now generate the symbol file.
11592	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11593
11594	  cat <<EOF >> conftest.$ac_ext
11595#if defined (__STDC__) && __STDC__
11596# define lt_ptr_t void *
11597#else
11598# define lt_ptr_t char *
11599# define const
11600#endif
11601
11602/* The mapping between symbol names and symbols. */
11603const struct {
11604  const char *name;
11605  lt_ptr_t address;
11606}
11607lt_preloaded_symbols[] =
11608{
11609EOF
11610	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11611	  cat <<\EOF >> conftest.$ac_ext
11612  {0, (lt_ptr_t) 0}
11613};
11614
11615#ifdef __cplusplus
11616}
11617#endif
11618EOF
11619	  # Now try linking the two files.
11620	  mv conftest.$ac_objext conftstm.$ac_objext
11621	  lt_save_LIBS="$LIBS"
11622	  lt_save_CFLAGS="$CFLAGS"
11623	  LIBS="conftstm.$ac_objext"
11624	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11625	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626  (eval $ac_link) 2>&5
11627  ac_status=$?
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11630	    pipe_works=yes
11631	  fi
11632	  LIBS="$lt_save_LIBS"
11633	  CFLAGS="$lt_save_CFLAGS"
11634	else
11635	  echo "cannot find nm_test_func in $nlist" >&5
11636	fi
11637      else
11638	echo "cannot find nm_test_var in $nlist" >&5
11639      fi
11640    else
11641      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11642    fi
11643  else
11644    echo "$progname: failed program was:" >&5
11645    cat conftest.$ac_ext >&5
11646  fi
11647  rm -f conftest* conftst*
11648
11649  # Do not use the global_symbol_pipe unless it works.
11650  if test "$pipe_works" = yes; then
11651    break
11652  else
11653    lt_cv_sys_global_symbol_pipe=
11654  fi
11655done
11656
11657fi
11658
11659if test -z "$lt_cv_sys_global_symbol_pipe"; then
11660  lt_cv_sys_global_symbol_to_cdecl=
11661fi
11662if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11663  echo "$as_me:$LINENO: result: failed" >&5
11664echo "${ECHO_T}failed" >&6
11665else
11666  echo "$as_me:$LINENO: result: ok" >&5
11667echo "${ECHO_T}ok" >&6
11668fi
11669
11670echo "$as_me:$LINENO: checking for objdir" >&5
11671echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11672if test "${lt_cv_objdir+set}" = set; then
11673  echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675  rm -f .libs 2>/dev/null
11676mkdir .libs 2>/dev/null
11677if test -d .libs; then
11678  lt_cv_objdir=.libs
11679else
11680  # MS-DOS does not allow filenames that begin with a dot.
11681  lt_cv_objdir=_libs
11682fi
11683rmdir .libs 2>/dev/null
11684fi
11685echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11686echo "${ECHO_T}$lt_cv_objdir" >&6
11687objdir=$lt_cv_objdir
11688
11689
11690
11691
11692
11693case $host_os in
11694aix3*)
11695  # AIX sometimes has problems with the GCC collect2 program.  For some
11696  # reason, if we set the COLLECT_NAMES environment variable, the problems
11697  # vanish in a puff of smoke.
11698  if test "X${COLLECT_NAMES+set}" != Xset; then
11699    COLLECT_NAMES=
11700    export COLLECT_NAMES
11701  fi
11702  ;;
11703esac
11704
11705# Sed substitution that helps us do robust quoting.  It backslashifies
11706# metacharacters that are still active within double-quoted strings.
11707Xsed='sed -e s/^X//'
11708sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11709
11710# Same as above, but do not quote variable references.
11711double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11712
11713# Sed substitution to delay expansion of an escaped shell variable in a
11714# double_quote_subst'ed string.
11715delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11716
11717# Sed substitution to avoid accidental globbing in evaled expressions
11718no_glob_subst='s/\*/\\\*/g'
11719
11720# Constants:
11721rm="rm -f"
11722
11723# Global variables:
11724default_ofile=mklib
11725can_build_shared=yes
11726
11727# All known linkers require a `.a' archive for static linking (except M$VC,
11728# which needs '.lib').
11729libext=a
11730ltmain="$ac_aux_dir/ltmain.sh"
11731ofile="$default_ofile"
11732with_gnu_ld="$lt_cv_prog_gnu_ld"
11733
11734if test -n "$ac_tool_prefix"; then
11735  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11736set dummy ${ac_tool_prefix}ar; ac_word=$2
11737echo "$as_me:$LINENO: checking for $ac_word" >&5
11738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11739if test "${ac_cv_prog_AR+set}" = set; then
11740  echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742  if test -n "$AR"; then
11743  ac_cv_prog_AR="$AR" # Let the user override the test.
11744else
11745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746for as_dir in $PATH
11747do
11748  IFS=$as_save_IFS
11749  test -z "$as_dir" && as_dir=.
11750  for ac_exec_ext in '' $ac_executable_extensions; do
11751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752    ac_cv_prog_AR="${ac_tool_prefix}ar"
11753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11754    break 2
11755  fi
11756done
11757done
11758
11759fi
11760fi
11761AR=$ac_cv_prog_AR
11762if test -n "$AR"; then
11763  echo "$as_me:$LINENO: result: $AR" >&5
11764echo "${ECHO_T}$AR" >&6
11765else
11766  echo "$as_me:$LINENO: result: no" >&5
11767echo "${ECHO_T}no" >&6
11768fi
11769
11770fi
11771if test -z "$ac_cv_prog_AR"; then
11772  ac_ct_AR=$AR
11773  # Extract the first word of "ar", so it can be a program name with args.
11774set dummy ar; ac_word=$2
11775echo "$as_me:$LINENO: checking for $ac_word" >&5
11776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11777if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11778  echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780  if test -n "$ac_ct_AR"; then
11781  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11782else
11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786  IFS=$as_save_IFS
11787  test -z "$as_dir" && as_dir=.
11788  for ac_exec_ext in '' $ac_executable_extensions; do
11789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790    ac_cv_prog_ac_ct_AR="ar"
11791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792    break 2
11793  fi
11794done
11795done
11796
11797  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11798fi
11799fi
11800ac_ct_AR=$ac_cv_prog_ac_ct_AR
11801if test -n "$ac_ct_AR"; then
11802  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11803echo "${ECHO_T}$ac_ct_AR" >&6
11804else
11805  echo "$as_me:$LINENO: result: no" >&5
11806echo "${ECHO_T}no" >&6
11807fi
11808
11809  AR=$ac_ct_AR
11810else
11811  AR="$ac_cv_prog_AR"
11812fi
11813
11814if test -n "$ac_tool_prefix"; then
11815  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11816set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11817echo "$as_me:$LINENO: checking for $ac_word" >&5
11818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819if test "${ac_cv_prog_RANLIB+set}" = set; then
11820  echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822  if test -n "$RANLIB"; then
11823  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11824else
11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826for as_dir in $PATH
11827do
11828  IFS=$as_save_IFS
11829  test -z "$as_dir" && as_dir=.
11830  for ac_exec_ext in '' $ac_executable_extensions; do
11831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11834    break 2
11835  fi
11836done
11837done
11838
11839fi
11840fi
11841RANLIB=$ac_cv_prog_RANLIB
11842if test -n "$RANLIB"; then
11843  echo "$as_me:$LINENO: result: $RANLIB" >&5
11844echo "${ECHO_T}$RANLIB" >&6
11845else
11846  echo "$as_me:$LINENO: result: no" >&5
11847echo "${ECHO_T}no" >&6
11848fi
11849
11850fi
11851if test -z "$ac_cv_prog_RANLIB"; then
11852  ac_ct_RANLIB=$RANLIB
11853  # Extract the first word of "ranlib", so it can be a program name with args.
11854set dummy ranlib; ac_word=$2
11855echo "$as_me:$LINENO: checking for $ac_word" >&5
11856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11857if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11858  echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860  if test -n "$ac_ct_RANLIB"; then
11861  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11862else
11863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $PATH
11865do
11866  IFS=$as_save_IFS
11867  test -z "$as_dir" && as_dir=.
11868  for ac_exec_ext in '' $ac_executable_extensions; do
11869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870    ac_cv_prog_ac_ct_RANLIB="ranlib"
11871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11872    break 2
11873  fi
11874done
11875done
11876
11877  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11878fi
11879fi
11880ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11881if test -n "$ac_ct_RANLIB"; then
11882  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11883echo "${ECHO_T}$ac_ct_RANLIB" >&6
11884else
11885  echo "$as_me:$LINENO: result: no" >&5
11886echo "${ECHO_T}no" >&6
11887fi
11888
11889  RANLIB=$ac_ct_RANLIB
11890else
11891  RANLIB="$ac_cv_prog_RANLIB"
11892fi
11893
11894if test -n "$ac_tool_prefix"; then
11895  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11896set dummy ${ac_tool_prefix}strip; ac_word=$2
11897echo "$as_me:$LINENO: checking for $ac_word" >&5
11898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899if test "${ac_cv_prog_STRIP+set}" = set; then
11900  echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902  if test -n "$STRIP"; then
11903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11904else
11905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906for as_dir in $PATH
11907do
11908  IFS=$as_save_IFS
11909  test -z "$as_dir" && as_dir=.
11910  for ac_exec_ext in '' $ac_executable_extensions; do
11911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11914    break 2
11915  fi
11916done
11917done
11918
11919fi
11920fi
11921STRIP=$ac_cv_prog_STRIP
11922if test -n "$STRIP"; then
11923  echo "$as_me:$LINENO: result: $STRIP" >&5
11924echo "${ECHO_T}$STRIP" >&6
11925else
11926  echo "$as_me:$LINENO: result: no" >&5
11927echo "${ECHO_T}no" >&6
11928fi
11929
11930fi
11931if test -z "$ac_cv_prog_STRIP"; then
11932  ac_ct_STRIP=$STRIP
11933  # Extract the first word of "strip", so it can be a program name with args.
11934set dummy strip; ac_word=$2
11935echo "$as_me:$LINENO: checking for $ac_word" >&5
11936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11937if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11938  echo $ECHO_N "(cached) $ECHO_C" >&6
11939else
11940  if test -n "$ac_ct_STRIP"; then
11941  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11942else
11943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944for as_dir in $PATH
11945do
11946  IFS=$as_save_IFS
11947  test -z "$as_dir" && as_dir=.
11948  for ac_exec_ext in '' $ac_executable_extensions; do
11949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11950    ac_cv_prog_ac_ct_STRIP="strip"
11951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11952    break 2
11953  fi
11954done
11955done
11956
11957  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11958fi
11959fi
11960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11961if test -n "$ac_ct_STRIP"; then
11962  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11963echo "${ECHO_T}$ac_ct_STRIP" >&6
11964else
11965  echo "$as_me:$LINENO: result: no" >&5
11966echo "${ECHO_T}no" >&6
11967fi
11968
11969  STRIP=$ac_ct_STRIP
11970else
11971  STRIP="$ac_cv_prog_STRIP"
11972fi
11973
11974
11975old_CC="$CC"
11976old_CFLAGS="$CFLAGS"
11977
11978# Set sane defaults for various variables
11979test -z "$AR" && AR=ar
11980test -z "$AR_FLAGS" && AR_FLAGS=cru
11981test -z "$AS" && AS=as
11982test -z "$CC" && CC=cc
11983test -z "$LTCC" && LTCC=$CC
11984test -z "$DLLTOOL" && DLLTOOL=dlltool
11985test -z "$LD" && LD=ld
11986test -z "$LN_S" && LN_S="ln -s"
11987test -z "$MAGIC_CMD" && MAGIC_CMD=file
11988test -z "$NM" && NM=nm
11989test -z "$SED" && SED=sed
11990test -z "$OBJDUMP" && OBJDUMP=objdump
11991test -z "$RANLIB" && RANLIB=:
11992test -z "$STRIP" && STRIP=:
11993test -z "$ac_objext" && ac_objext=o
11994
11995# Determine commands to create old-style static archives.
11996old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11997old_postinstall_cmds='chmod 644 $oldlib'
11998old_postuninstall_cmds=
11999
12000if test -n "$RANLIB"; then
12001  case $host_os in
12002  openbsd*)
12003    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12004    ;;
12005  *)
12006    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12007    ;;
12008  esac
12009  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12010fi
12011
12012cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12013
12014# Only perform the check for file, if the check method requires it
12015case $deplibs_check_method in
12016file_magic*)
12017  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12018    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12019echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12020if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12021  echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023  case $MAGIC_CMD in
12024[\\/*] |  ?:[\\/]*)
12025  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12026  ;;
12027*)
12028  lt_save_MAGIC_CMD="$MAGIC_CMD"
12029  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12030  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12031  for ac_dir in $ac_dummy; do
12032    IFS="$lt_save_ifs"
12033    test -z "$ac_dir" && ac_dir=.
12034    if test -f $ac_dir/${ac_tool_prefix}file; then
12035      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12036      if test -n "$file_magic_test_file"; then
12037	case $deplibs_check_method in
12038	"file_magic "*)
12039	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12040	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12041	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12042	    $EGREP "$file_magic_regex" > /dev/null; then
12043	    :
12044	  else
12045	    cat <<EOF 1>&2
12046
12047*** Warning: the command libtool uses to detect shared libraries,
12048*** $file_magic_cmd, produces output that libtool cannot recognize.
12049*** The result is that libtool may fail to recognize shared libraries
12050*** as such.  This will affect the creation of libtool libraries that
12051*** depend on shared libraries, but programs linked with such libtool
12052*** libraries will work regardless of this problem.  Nevertheless, you
12053*** may want to report the problem to your system manager and/or to
12054*** bug-libtool@gnu.org
12055
12056EOF
12057	  fi ;;
12058	esac
12059      fi
12060      break
12061    fi
12062  done
12063  IFS="$lt_save_ifs"
12064  MAGIC_CMD="$lt_save_MAGIC_CMD"
12065  ;;
12066esac
12067fi
12068
12069MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12070if test -n "$MAGIC_CMD"; then
12071  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12072echo "${ECHO_T}$MAGIC_CMD" >&6
12073else
12074  echo "$as_me:$LINENO: result: no" >&5
12075echo "${ECHO_T}no" >&6
12076fi
12077
12078if test -z "$lt_cv_path_MAGIC_CMD"; then
12079  if test -n "$ac_tool_prefix"; then
12080    echo "$as_me:$LINENO: checking for file" >&5
12081echo $ECHO_N "checking for file... $ECHO_C" >&6
12082if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12083  echo $ECHO_N "(cached) $ECHO_C" >&6
12084else
12085  case $MAGIC_CMD in
12086[\\/*] |  ?:[\\/]*)
12087  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12088  ;;
12089*)
12090  lt_save_MAGIC_CMD="$MAGIC_CMD"
12091  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12092  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12093  for ac_dir in $ac_dummy; do
12094    IFS="$lt_save_ifs"
12095    test -z "$ac_dir" && ac_dir=.
12096    if test -f $ac_dir/file; then
12097      lt_cv_path_MAGIC_CMD="$ac_dir/file"
12098      if test -n "$file_magic_test_file"; then
12099	case $deplibs_check_method in
12100	"file_magic "*)
12101	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12102	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12103	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12104	    $EGREP "$file_magic_regex" > /dev/null; then
12105	    :
12106	  else
12107	    cat <<EOF 1>&2
12108
12109*** Warning: the command libtool uses to detect shared libraries,
12110*** $file_magic_cmd, produces output that libtool cannot recognize.
12111*** The result is that libtool may fail to recognize shared libraries
12112*** as such.  This will affect the creation of libtool libraries that
12113*** depend on shared libraries, but programs linked with such libtool
12114*** libraries will work regardless of this problem.  Nevertheless, you
12115*** may want to report the problem to your system manager and/or to
12116*** bug-libtool@gnu.org
12117
12118EOF
12119	  fi ;;
12120	esac
12121      fi
12122      break
12123    fi
12124  done
12125  IFS="$lt_save_ifs"
12126  MAGIC_CMD="$lt_save_MAGIC_CMD"
12127  ;;
12128esac
12129fi
12130
12131MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12132if test -n "$MAGIC_CMD"; then
12133  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12134echo "${ECHO_T}$MAGIC_CMD" >&6
12135else
12136  echo "$as_me:$LINENO: result: no" >&5
12137echo "${ECHO_T}no" >&6
12138fi
12139
12140  else
12141    MAGIC_CMD=:
12142  fi
12143fi
12144
12145  fi
12146  ;;
12147esac
12148
12149enable_dlopen=yes
12150enable_win32_dll=no
12151
12152# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12153if test "${enable_libtool_lock+set}" = set; then
12154  enableval="$enable_libtool_lock"
12155
12156fi;
12157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12158
12159
12160# Check whether --with-pic or --without-pic was given.
12161if test "${with_pic+set}" = set; then
12162  withval="$with_pic"
12163  pic_mode="$withval"
12164else
12165  pic_mode=default
12166fi;
12167test -z "$pic_mode" && pic_mode=default
12168
12169# Use C for the default configuration in the libtool script
12170tagname=
12171lt_save_CC="$CC"
12172ac_ext=c
12173ac_cpp='$CPP $CPPFLAGS'
12174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178
12179# Source file extension for C test sources.
12180ac_ext=c
12181
12182# Object file extension for compiled C test sources.
12183objext=o
12184objext=$objext
12185
12186# Code to be used in simple compile tests
12187lt_simple_compile_test_code="int some_variable = 0;\n"
12188
12189# Code to be used in simple link tests
12190lt_simple_link_test_code='int main(){return(0);}\n'
12191
12192
12193# If no C compiler was specified, use CC.
12194LTCC=${LTCC-"$CC"}
12195
12196# Allow CC to be a program name with arguments.
12197compiler=$CC
12198
12199
12200#
12201# Check for any special shared library compilation flags.
12202#
12203lt_prog_cc_shlib=
12204if test "$GCC" = no; then
12205  case $host_os in
12206  sco3.2v5*)
12207    lt_prog_cc_shlib='-belf'
12208    ;;
12209  esac
12210fi
12211if test -n "$lt_prog_cc_shlib"; then
12212  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12213echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12214  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
12215  else
12216    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12217echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12218    lt_cv_prog_cc_can_build_shared=no
12219  fi
12220fi
12221
12222
12223#
12224# Check to make sure the static flag actually works.
12225#
12226echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12227echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12228if test "${lt_prog_compiler_static_works+set}" = set; then
12229  echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231  lt_prog_compiler_static_works=no
12232   save_LDFLAGS="$LDFLAGS"
12233   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12234   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12235   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12236     # The compiler can only warn and ignore the option if not recognized
12237     # So say no if there are warnings
12238     if test -s conftest.err; then
12239       # Append any errors to the config.log.
12240       cat conftest.err 1>&5
12241     else
12242       lt_prog_compiler_static_works=yes
12243     fi
12244   fi
12245   $rm conftest*
12246   LDFLAGS="$save_LDFLAGS"
12247
12248fi
12249echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12250echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12251
12252if test x"$lt_prog_compiler_static_works" = xyes; then
12253    :
12254else
12255    lt_prog_compiler_static=
12256fi
12257
12258
12259
12260
12261lt_prog_compiler_no_builtin_flag=
12262
12263if test "$GCC" = yes; then
12264  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12265
12266
12267echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12268echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12269if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12270  echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272  lt_cv_prog_compiler_rtti_exceptions=no
12273  ac_outfile=conftest.$ac_objext
12274   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12275   lt_compiler_flag="-fno-rtti -fno-exceptions"
12276   # Insert the option either (1) after the last *FLAGS variable, or
12277   # (2) before a word containing "conftest.", or (3) at the end.
12278   # Note that $ac_compile itself does not contain backslashes and begins
12279   # with a dollar sign (not a hyphen), so the echo should work correctly.
12280   # The option is referenced via a variable to avoid confusing sed.
12281   lt_compile=`echo "$ac_compile" | $SED \
12282   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12283   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284   -e 's:$: $lt_compiler_flag:'`
12285   (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286   (eval "$lt_compile" 2>conftest.err)
12287   ac_status=$?
12288   cat conftest.err >&5
12289   echo "$as_me:12289: \$? = $ac_status" >&5
12290   if (exit $ac_status) && test -s "$ac_outfile"; then
12291     # The compiler can only warn and ignore the option if not recognized
12292     # So say no if there are warnings
12293     if test ! -s conftest.err; then
12294       lt_cv_prog_compiler_rtti_exceptions=yes
12295     fi
12296   fi
12297   $rm conftest*
12298
12299fi
12300echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12301echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12302
12303if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12304    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12305else
12306    :
12307fi
12308
12309fi
12310
12311lt_prog_compiler_wl=
12312lt_prog_compiler_pic=
12313lt_prog_compiler_static=
12314
12315echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12316echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12317
12318  if test "$GCC" = yes; then
12319    lt_prog_compiler_wl='-Wl,'
12320    lt_prog_compiler_static='-static'
12321
12322    case $host_os in
12323      aix*)
12324      # All AIX code is PIC.
12325      if test "$host_cpu" = ia64; then
12326	# AIX 5 now supports IA64 processor
12327	lt_prog_compiler_static='-Bstatic'
12328      fi
12329      ;;
12330
12331    amigaos*)
12332      # FIXME: we need at least 68020 code to build shared libraries, but
12333      # adding the `-m68020' flag to GCC prevents building anything better,
12334      # like `-m68040'.
12335      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12336      ;;
12337
12338    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12339      # PIC is the default for these OSes.
12340      ;;
12341
12342    mingw* | pw32* | os2*)
12343      # This hack is so that the source file can tell whether it is being
12344      # built for inclusion in a dll (and should export symbols for example).
12345      lt_prog_compiler_pic='-DDLL_EXPORT'
12346      ;;
12347
12348    darwin* | rhapsody*)
12349      # PIC is the default on this platform
12350      # Common symbols not allowed in MH_DYLIB files
12351      lt_prog_compiler_pic='-fno-common'
12352      ;;
12353
12354    msdosdjgpp*)
12355      # Just because we use GCC doesn't mean we suddenly get shared libraries
12356      # on systems that don't support them.
12357      lt_prog_compiler_can_build_shared=no
12358      enable_shared=no
12359      ;;
12360
12361    sysv4*MP*)
12362      if test -d /usr/nec; then
12363	lt_prog_compiler_pic=-Kconform_pic
12364      fi
12365      ;;
12366
12367    hpux*)
12368      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369      # not for PA HP-UX.
12370      case "$host_cpu" in
12371      hppa*64*|ia64*)
12372	# +Z the default
12373	;;
12374      *)
12375	lt_prog_compiler_pic='-fPIC'
12376	;;
12377      esac
12378      ;;
12379
12380    *)
12381      lt_prog_compiler_pic='-fPIC'
12382      ;;
12383    esac
12384  else
12385    # PORTME Check for flag to pass linker flags through the system compiler.
12386    case $host_os in
12387    aix*)
12388      lt_prog_compiler_wl='-Wl,'
12389      if test "$host_cpu" = ia64; then
12390	# AIX 5 now supports IA64 processor
12391	lt_prog_compiler_static='-Bstatic'
12392      else
12393	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12394      fi
12395      ;;
12396      darwin*)
12397        # PIC is the default on this platform
12398        # Common symbols not allowed in MH_DYLIB files
12399       case "$cc_basename" in
12400         xlc*)
12401         lt_prog_compiler_pic='-qnocommon'
12402         lt_prog_compiler_wl='-Wl,'
12403         ;;
12404       esac
12405       ;;
12406
12407    mingw* | pw32* | os2*)
12408      # This hack is so that the source file can tell whether it is being
12409      # built for inclusion in a dll (and should export symbols for example).
12410      lt_prog_compiler_pic='-DDLL_EXPORT'
12411      ;;
12412
12413    hpux9* | hpux10* | hpux11*)
12414      lt_prog_compiler_wl='-Wl,'
12415      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12416      # not for PA HP-UX.
12417      case "$host_cpu" in
12418      hppa*64*|ia64*)
12419	# +Z the default
12420	;;
12421      *)
12422	lt_prog_compiler_pic='+Z'
12423	;;
12424      esac
12425      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12426      lt_prog_compiler_static='${wl}-a ${wl}archive'
12427      ;;
12428
12429    irix5* | irix6* | nonstopux*)
12430      lt_prog_compiler_wl='-Wl,'
12431      # PIC (with -KPIC) is the default.
12432      lt_prog_compiler_static='-non_shared'
12433      ;;
12434
12435    newsos6)
12436      lt_prog_compiler_pic='-KPIC'
12437      lt_prog_compiler_static='-Bstatic'
12438      ;;
12439
12440    linux*)
12441      case $CC in
12442      icc* | ecc*)
12443	lt_prog_compiler_wl='-Wl,'
12444	lt_prog_compiler_pic='-KPIC'
12445	lt_prog_compiler_static='-static'
12446        ;;
12447      ccc*)
12448        lt_prog_compiler_wl='-Wl,'
12449        # All Alpha code is PIC.
12450        lt_prog_compiler_static='-non_shared'
12451        ;;
12452      esac
12453      ;;
12454
12455    osf3* | osf4* | osf5*)
12456      lt_prog_compiler_wl='-Wl,'
12457      # All OSF/1 code is PIC.
12458      lt_prog_compiler_static='-non_shared'
12459      ;;
12460
12461    sco3.2v5*)
12462      lt_prog_compiler_pic='-Kpic'
12463      lt_prog_compiler_static='-dn'
12464      ;;
12465
12466    solaris*)
12467      lt_prog_compiler_wl='-Wl,'
12468      lt_prog_compiler_pic='-KPIC'
12469      lt_prog_compiler_static='-Bstatic'
12470      ;;
12471
12472    sunos4*)
12473      lt_prog_compiler_wl='-Qoption ld '
12474      lt_prog_compiler_pic='-PIC'
12475      lt_prog_compiler_static='-Bstatic'
12476      ;;
12477
12478    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12479      lt_prog_compiler_wl='-Wl,'
12480      lt_prog_compiler_pic='-KPIC'
12481      lt_prog_compiler_static='-Bstatic'
12482      ;;
12483
12484    sysv4*MP*)
12485      if test -d /usr/nec ;then
12486	lt_prog_compiler_pic='-Kconform_pic'
12487	lt_prog_compiler_static='-Bstatic'
12488      fi
12489      ;;
12490
12491    uts4*)
12492      lt_prog_compiler_pic='-pic'
12493      lt_prog_compiler_static='-Bstatic'
12494      ;;
12495
12496    *)
12497      lt_prog_compiler_can_build_shared=no
12498      ;;
12499    esac
12500  fi
12501
12502echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12503echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12504
12505#
12506# Check to make sure the PIC flag actually works.
12507#
12508if test -n "$lt_prog_compiler_pic"; then
12509
12510echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12511echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12512if test "${lt_prog_compiler_pic_works+set}" = set; then
12513  echo $ECHO_N "(cached) $ECHO_C" >&6
12514else
12515  lt_prog_compiler_pic_works=no
12516  ac_outfile=conftest.$ac_objext
12517   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12519   # Insert the option either (1) after the last *FLAGS variable, or
12520   # (2) before a word containing "conftest.", or (3) at the end.
12521   # Note that $ac_compile itself does not contain backslashes and begins
12522   # with a dollar sign (not a hyphen), so the echo should work correctly.
12523   # The option is referenced via a variable to avoid confusing sed.
12524   lt_compile=`echo "$ac_compile" | $SED \
12525   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12527   -e 's:$: $lt_compiler_flag:'`
12528   (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
12529   (eval "$lt_compile" 2>conftest.err)
12530   ac_status=$?
12531   cat conftest.err >&5
12532   echo "$as_me:12532: \$? = $ac_status" >&5
12533   if (exit $ac_status) && test -s "$ac_outfile"; then
12534     # The compiler can only warn and ignore the option if not recognized
12535     # So say no if there are warnings
12536     if test ! -s conftest.err; then
12537       lt_prog_compiler_pic_works=yes
12538     fi
12539   fi
12540   $rm conftest*
12541
12542fi
12543echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12544echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12545
12546if test x"$lt_prog_compiler_pic_works" = xyes; then
12547    case $lt_prog_compiler_pic in
12548     "" | " "*) ;;
12549     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12550     esac
12551else
12552    lt_prog_compiler_pic=
12553     lt_prog_compiler_can_build_shared=no
12554fi
12555
12556fi
12557case "$host_os" in
12558  # For platforms which do not support PIC, -DPIC is meaningless:
12559  *djgpp*)
12560    lt_prog_compiler_pic=
12561    ;;
12562  *)
12563    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12564    ;;
12565esac
12566
12567echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12568echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12569if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12570  echo $ECHO_N "(cached) $ECHO_C" >&6
12571else
12572  lt_cv_prog_compiler_c_o=no
12573   $rm -r conftest 2>/dev/null
12574   mkdir conftest
12575   cd conftest
12576   mkdir out
12577   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12578
12579   lt_compiler_flag="-o out/conftest2.$ac_objext"
12580   # Insert the option either (1) after the last *FLAGS variable, or
12581   # (2) before a word containing "conftest.", or (3) at the end.
12582   # Note that $ac_compile itself does not contain backslashes and begins
12583   # with a dollar sign (not a hyphen), so the echo should work correctly.
12584   lt_compile=`echo "$ac_compile" | $SED \
12585   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12587   -e 's:$: $lt_compiler_flag:'`
12588   (eval echo "\"\$as_me:12588: $lt_compile\"" >&5)
12589   (eval "$lt_compile" 2>out/conftest.err)
12590   ac_status=$?
12591   cat out/conftest.err >&5
12592   echo "$as_me:12592: \$? = $ac_status" >&5
12593   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12594   then
12595     # The compiler can only warn and ignore the option if not recognized
12596     # So say no if there are warnings
12597     if test ! -s out/conftest.err; then
12598       lt_cv_prog_compiler_c_o=yes
12599     fi
12600   fi
12601   chmod u+w .
12602   $rm conftest*
12603   # SGI C++ compiler will create directory out/ii_files/ for
12604   # template instantiation
12605   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12606   $rm out/* && rmdir out
12607   cd ..
12608   rmdir conftest
12609   $rm conftest*
12610
12611fi
12612echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12613echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12614
12615
12616hard_links="nottested"
12617if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12618  # do not overwrite the value of need_locks provided by the user
12619  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12620echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12621  hard_links=yes
12622  $rm conftest*
12623  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12624  touch conftest.a
12625  ln conftest.a conftest.b 2>&5 || hard_links=no
12626  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12627  echo "$as_me:$LINENO: result: $hard_links" >&5
12628echo "${ECHO_T}$hard_links" >&6
12629  if test "$hard_links" = no; then
12630    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12631echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12632    need_locks=warn
12633  fi
12634else
12635  need_locks=no
12636fi
12637
12638echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12639echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12640
12641  runpath_var=
12642  allow_undefined_flag=
12643  enable_shared_with_static_runtimes=no
12644  archive_cmds=
12645  archive_expsym_cmds=
12646  old_archive_From_new_cmds=
12647  old_archive_from_expsyms_cmds=
12648  export_dynamic_flag_spec=
12649  whole_archive_flag_spec=
12650  thread_safe_flag_spec=
12651  hardcode_libdir_flag_spec=
12652  hardcode_libdir_flag_spec_ld=
12653  hardcode_libdir_separator=
12654  hardcode_direct=no
12655  hardcode_minus_L=no
12656  hardcode_shlibpath_var=unsupported
12657  link_all_deplibs=unknown
12658  hardcode_automatic=no
12659  module_cmds=
12660  module_expsym_cmds=
12661  always_export_symbols=no
12662  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12663  # include_expsyms should be a list of space-separated symbols to be *always*
12664  # included in the symbol list
12665  include_expsyms=
12666  # exclude_expsyms can be an extended regexp of symbols to exclude
12667  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12668  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12669  # as well as any symbol that contains `d'.
12670  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12671  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12672  # platforms (ab)use it in PIC code, but their linkers get confused if
12673  # the symbol is explicitly referenced.  Since portable code cannot
12674  # rely on this symbol name, it's probably fine to never include it in
12675  # preloaded symbol tables.
12676  extract_expsyms_cmds=
12677
12678  case $host_os in
12679  cygwin* | mingw* | pw32*)
12680    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12681    # When not using gcc, we currently assume that we are using
12682    # Microsoft Visual C++.
12683    if test "$GCC" != yes; then
12684      with_gnu_ld=no
12685    fi
12686    ;;
12687  openbsd*)
12688    with_gnu_ld=no
12689    ;;
12690  esac
12691
12692  ld_shlibs=yes
12693  if test "$with_gnu_ld" = yes; then
12694    # If archive_cmds runs LD, not CC, wlarc should be empty
12695    wlarc='${wl}'
12696
12697    # See if GNU ld supports shared libraries.
12698    case $host_os in
12699    aix3* | aix4* | aix5*)
12700      # On AIX/PPC, the GNU linker is very broken
12701      if test "$host_cpu" != ia64; then
12702	ld_shlibs=no
12703	cat <<EOF 1>&2
12704
12705*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12706*** to be unable to reliably create shared libraries on AIX.
12707*** Therefore, libtool is disabling shared libraries support.  If you
12708*** really care for shared libraries, you may want to modify your PATH
12709*** so that a non-GNU linker is found, and then restart.
12710
12711EOF
12712      fi
12713      ;;
12714
12715    amigaos*)
12716      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)'
12717      hardcode_libdir_flag_spec='-L$libdir'
12718      hardcode_minus_L=yes
12719
12720      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12721      # that the semantics of dynamic libraries on AmigaOS, at least up
12722      # to version 4, is to share data among multiple programs linked
12723      # with the same dynamic library.  Since this doesn't match the
12724      # behavior of shared libraries on other platforms, we can't use
12725      # them.
12726      ld_shlibs=no
12727      ;;
12728
12729    beos*)
12730      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12731	allow_undefined_flag=unsupported
12732	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12733	# support --undefined.  This deserves some investigation.  FIXME
12734	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12735      else
12736	ld_shlibs=no
12737      fi
12738      ;;
12739
12740    cygwin* | mingw* | pw32*)
12741      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12742      # as there is no search path for DLLs.
12743      hardcode_libdir_flag_spec='-L$libdir'
12744      allow_undefined_flag=unsupported
12745      always_export_symbols=no
12746      enable_shared_with_static_runtimes=yes
12747      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12748
12749      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12750        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12751	# If the export-symbols file already is a .def file (1st line
12752	# is EXPORTS), use it as is; otherwise, prepend...
12753	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12754	  cp $export_symbols $output_objdir/$soname.def;
12755	else
12756	  echo EXPORTS > $output_objdir/$soname.def;
12757	  cat $export_symbols >> $output_objdir/$soname.def;
12758	fi~
12759	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12760      else
12761	ld_shlibs=no
12762      fi
12763      ;;
12764
12765    netbsd*)
12766      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12767	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12768	wlarc=
12769      else
12770	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12772      fi
12773      ;;
12774
12775    solaris* | sysv5*)
12776      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12777	ld_shlibs=no
12778	cat <<EOF 1>&2
12779
12780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12781*** create shared libraries on Solaris systems.  Therefore, libtool
12782*** is disabling shared libraries support.  We urge you to upgrade GNU
12783*** binutils to release 2.9.1 or newer.  Another option is to modify
12784*** your PATH or compiler configuration so that the native linker is
12785*** used, and then restart.
12786
12787EOF
12788      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12789	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12791      else
12792	ld_shlibs=no
12793      fi
12794      ;;
12795
12796    sunos4*)
12797      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798      wlarc=
12799      hardcode_direct=yes
12800      hardcode_shlibpath_var=no
12801      ;;
12802
12803  linux*)
12804    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12805        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12806	archive_cmds="$tmp_archive_cmds"
12807      supports_anon_versioning=no
12808      case `$LD -v 2>/dev/null` in
12809        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12810        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12811        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12812        *\ 2.11.*) ;; # other 2.11 versions
12813        *) supports_anon_versioning=yes ;;
12814      esac
12815      if test $supports_anon_versioning = yes; then
12816        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12817cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12818$echo "local: *; };" >> $output_objdir/$libname.ver~
12819        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12820      else
12821        archive_expsym_cmds="$tmp_archive_cmds"
12822      fi
12823    else
12824      ld_shlibs=no
12825    fi
12826    ;;
12827
12828    *)
12829      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12830	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12832      else
12833	ld_shlibs=no
12834      fi
12835      ;;
12836    esac
12837
12838    if test "$ld_shlibs" = yes; then
12839      runpath_var=LD_RUN_PATH
12840      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12841      export_dynamic_flag_spec='${wl}--export-dynamic'
12842      # ancient GNU ld didn't support --whole-archive et. al.
12843      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12844 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12845      else
12846  	whole_archive_flag_spec=
12847      fi
12848    fi
12849  else
12850    # PORTME fill in a description of your system's linker (not GNU ld)
12851    case $host_os in
12852    aix3*)
12853      allow_undefined_flag=unsupported
12854      always_export_symbols=yes
12855      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'
12856      # Note: this linker hardcodes the directories in LIBPATH if there
12857      # are no directories specified by -L.
12858      hardcode_minus_L=yes
12859      if test "$GCC" = yes && test -z "$link_static_flag"; then
12860	# Neither direct hardcoding nor static linking is supported with a
12861	# broken collect2.
12862	hardcode_direct=unsupported
12863      fi
12864      ;;
12865
12866    aix4* | aix5*)
12867      if test "$host_cpu" = ia64; then
12868	# On IA64, the linker does run time linking by default, so we don't
12869	# have to do anything special.
12870	aix_use_runtimelinking=no
12871	exp_sym_flag='-Bexport'
12872	no_entry_flag=""
12873      else
12874	# If we're using GNU nm, then we don't want the "-C" option.
12875	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12876	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12877	  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'
12878	else
12879	  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'
12880	fi
12881	aix_use_runtimelinking=no
12882
12883	# Test if we are trying to use run time linking or normal
12884	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12885	# need to do runtime linking.
12886	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12887	  for ld_flag in $LDFLAGS; do
12888  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12889  	    aix_use_runtimelinking=yes
12890  	    break
12891  	  fi
12892	  done
12893	esac
12894
12895	exp_sym_flag='-bexport'
12896	no_entry_flag='-bnoentry'
12897      fi
12898
12899      # When large executables or shared objects are built, AIX ld can
12900      # have problems creating the table of contents.  If linking a library
12901      # or program results in "error TOC overflow" add -mminimal-toc to
12902      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12903      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12904
12905      archive_cmds=''
12906      hardcode_direct=yes
12907      hardcode_libdir_separator=':'
12908      link_all_deplibs=yes
12909
12910      if test "$GCC" = yes; then
12911	case $host_os in aix4.012|aix4.012.*)
12912	# We only want to do this on AIX 4.2 and lower, the check
12913	# below for broken collect2 doesn't work under 4.3+
12914	  collect2name=`${CC} -print-prog-name=collect2`
12915	  if test -f "$collect2name" && \
12916  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12917	  then
12918  	  # We have reworked collect2
12919  	  hardcode_direct=yes
12920	  else
12921  	  # We have old collect2
12922  	  hardcode_direct=unsupported
12923  	  # It fails to find uninstalled libraries when the uninstalled
12924  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12925  	  # to unsupported forces relinking
12926  	  hardcode_minus_L=yes
12927  	  hardcode_libdir_flag_spec='-L$libdir'
12928  	  hardcode_libdir_separator=
12929	  fi
12930	esac
12931	shared_flag='-shared'
12932      else
12933	# not using gcc
12934	if test "$host_cpu" = ia64; then
12935  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12936  	# chokes on -Wl,-G. The following line is correct:
12937	  shared_flag='-G'
12938	else
12939  	if test "$aix_use_runtimelinking" = yes; then
12940	    shared_flag='${wl}-G'
12941	  else
12942	    shared_flag='${wl}-bM:SRE'
12943  	fi
12944	fi
12945      fi
12946
12947      # It seems that -bexpall does not export symbols beginning with
12948      # underscore (_), so it is better to generate a list of symbols to export.
12949      always_export_symbols=yes
12950      if test "$aix_use_runtimelinking" = yes; then
12951	# Warning - without using the other runtime loading flags (-brtl),
12952	# -berok will link without error, but may produce a broken library.
12953	allow_undefined_flag='-berok'
12954       # Determine the default libpath from the value encoded in an empty executable.
12955       cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h.  */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
12960/* end confdefs.h.  */
12961
12962int
12963main ()
12964{
12965
12966  ;
12967  return 0;
12968}
12969_ACEOF
12970rm -f conftest.$ac_objext conftest$ac_exeext
12971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972  (eval $ac_link) 2>conftest.er1
12973  ac_status=$?
12974  grep -v '^ *+' conftest.er1 >conftest.err
12975  rm -f conftest.er1
12976  cat conftest.err >&5
12977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978  (exit $ac_status); } &&
12979	 { ac_try='test -z "$ac_c_werror_flag"
12980			 || test ! -s conftest.err'
12981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982  (eval $ac_try) 2>&5
12983  ac_status=$?
12984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985  (exit $ac_status); }; } &&
12986	 { ac_try='test -s conftest$ac_exeext'
12987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988  (eval $ac_try) 2>&5
12989  ac_status=$?
12990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991  (exit $ac_status); }; }; then
12992
12993aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12994}'`
12995# Check for a 64-bit object if we didn't find anything.
12996if 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; }
12997}'`; fi
12998else
12999  echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002fi
13003rm -f conftest.err conftest.$ac_objext \
13004      conftest$ac_exeext conftest.$ac_ext
13005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13006
13007       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13008	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"
13009       else
13010	if test "$host_cpu" = ia64; then
13011	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13012	  allow_undefined_flag="-z nodefs"
13013	  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"
13014	else
13015	 # Determine the default libpath from the value encoded in an empty executable.
13016	 cat >conftest.$ac_ext <<_ACEOF
13017/* confdefs.h.  */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h.  */
13022
13023int
13024main ()
13025{
13026
13027  ;
13028  return 0;
13029}
13030_ACEOF
13031rm -f conftest.$ac_objext conftest$ac_exeext
13032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033  (eval $ac_link) 2>conftest.er1
13034  ac_status=$?
13035  grep -v '^ *+' conftest.er1 >conftest.err
13036  rm -f conftest.er1
13037  cat conftest.err >&5
13038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039  (exit $ac_status); } &&
13040	 { ac_try='test -z "$ac_c_werror_flag"
13041			 || test ! -s conftest.err'
13042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043  (eval $ac_try) 2>&5
13044  ac_status=$?
13045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046  (exit $ac_status); }; } &&
13047	 { ac_try='test -s conftest$ac_exeext'
13048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049  (eval $ac_try) 2>&5
13050  ac_status=$?
13051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052  (exit $ac_status); }; }; then
13053
13054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13055}'`
13056# Check for a 64-bit object if we didn't find anything.
13057if 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; }
13058}'`; fi
13059else
13060  echo "$as_me: failed program was:" >&5
13061sed 's/^/| /' conftest.$ac_ext >&5
13062
13063fi
13064rm -f conftest.err conftest.$ac_objext \
13065      conftest$ac_exeext conftest.$ac_ext
13066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13067
13068	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13069	  # Warning - without using the other run time loading flags,
13070	  # -berok will link without error, but may produce a broken library.
13071	  no_undefined_flag=' ${wl}-bernotok'
13072	  allow_undefined_flag=' ${wl}-berok'
13073	  # -bexpall does not export symbols beginning with underscore (_)
13074	  always_export_symbols=yes
13075	  # Exported symbols can be pulled into shared objects from archives
13076	  whole_archive_flag_spec=' '
13077	  archive_cmds_need_lc=yes
13078	  # This is similar to how AIX traditionally builds it's shared libraries.
13079	  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'
13080	fi
13081      fi
13082      ;;
13083
13084    amigaos*)
13085      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)'
13086      hardcode_libdir_flag_spec='-L$libdir'
13087      hardcode_minus_L=yes
13088      # see comment about different semantics on the GNU ld section
13089      ld_shlibs=no
13090      ;;
13091
13092    bsdi[45]*)
13093      export_dynamic_flag_spec=-rdynamic
13094      ;;
13095
13096    cygwin* | mingw* | pw32*)
13097      # When not using gcc, we currently assume that we are using
13098      # Microsoft Visual C++.
13099      # hardcode_libdir_flag_spec is actually meaningless, as there is
13100      # no search path for DLLs.
13101      hardcode_libdir_flag_spec=' '
13102      allow_undefined_flag=unsupported
13103      # Tell ltmain to make .lib files, not .a files.
13104      libext=lib
13105      # Tell ltmain to make .dll files, not .so files.
13106      shrext_cmds=".dll"
13107      # FIXME: Setting linknames here is a bad hack.
13108      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13109      # The linker will automatically build a .lib file if we build a DLL.
13110      old_archive_From_new_cmds='true'
13111      # FIXME: Should let the user specify the lib program.
13112      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13113      fix_srcfile_path='`cygpath -w "$srcfile"`'
13114      enable_shared_with_static_runtimes=yes
13115      ;;
13116
13117    darwin* | rhapsody*)
13118      case "$host_os" in
13119        rhapsody* | darwin1.[012])
13120         allow_undefined_flag='${wl}-undefined ${wl}suppress'
13121         ;;
13122       *) # Darwin 1.3 on
13123         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13124           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13125         else
13126           case ${MACOSX_DEPLOYMENT_TARGET} in
13127             10.[012])
13128               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13129               ;;
13130             10.*)
13131               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13132               ;;
13133           esac
13134         fi
13135         ;;
13136      esac
13137      archive_cmds_need_lc=no
13138      hardcode_direct=no
13139      hardcode_automatic=yes
13140      hardcode_shlibpath_var=unsupported
13141      whole_archive_flag_spec=''
13142      link_all_deplibs=yes
13143    if test "$GCC" = yes ; then
13144    	output_verbose_link_cmd='echo'
13145        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13146      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13147      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13148      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}'
13149      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13150    else
13151      case "$cc_basename" in
13152        xlc*)
13153         output_verbose_link_cmd='echo'
13154         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13155         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13156          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13157         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13158          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13159          ;;
13160       *)
13161         ld_shlibs=no
13162          ;;
13163      esac
13164    fi
13165      ;;
13166
13167    dgux*)
13168      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13169      hardcode_libdir_flag_spec='-L$libdir'
13170      hardcode_shlibpath_var=no
13171      ;;
13172
13173    freebsd1*)
13174      ld_shlibs=no
13175      ;;
13176
13177    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13178    # support.  Future versions do this automatically, but an explicit c++rt0.o
13179    # does not break anything, and helps significantly (at the cost of a little
13180    # extra space).
13181    freebsd2.2*)
13182      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13183      hardcode_libdir_flag_spec='-R$libdir'
13184      hardcode_direct=yes
13185      hardcode_shlibpath_var=no
13186      ;;
13187
13188    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13189    freebsd2*)
13190      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13191      hardcode_direct=yes
13192      hardcode_minus_L=yes
13193      hardcode_shlibpath_var=no
13194      ;;
13195
13196    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13197    freebsd* | kfreebsd*-gnu)
13198      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13199      hardcode_libdir_flag_spec='-R$libdir'
13200      hardcode_direct=yes
13201      hardcode_shlibpath_var=no
13202      ;;
13203
13204    hpux9*)
13205      if test "$GCC" = yes; then
13206	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'
13207      else
13208	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'
13209      fi
13210      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13211      hardcode_libdir_separator=:
13212      hardcode_direct=yes
13213
13214      # hardcode_minus_L: Not really in the search PATH,
13215      # but as the default location of the library.
13216      hardcode_minus_L=yes
13217      export_dynamic_flag_spec='${wl}-E'
13218      ;;
13219
13220    hpux10* | hpux11*)
13221      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13222	case "$host_cpu" in
13223	hppa*64*|ia64*)
13224	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13225	  ;;
13226	*)
13227	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13228	  ;;
13229	esac
13230      else
13231	case "$host_cpu" in
13232	hppa*64*|ia64*)
13233	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13234	  ;;
13235	*)
13236	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13237	  ;;
13238	esac
13239      fi
13240      if test "$with_gnu_ld" = no; then
13241	case "$host_cpu" in
13242	hppa*64*)
13243	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13244	  hardcode_libdir_flag_spec_ld='+b $libdir'
13245	  hardcode_libdir_separator=:
13246	  hardcode_direct=no
13247	  hardcode_shlibpath_var=no
13248	  ;;
13249	ia64*)
13250	  hardcode_libdir_flag_spec='-L$libdir'
13251	  hardcode_direct=no
13252	  hardcode_shlibpath_var=no
13253
13254	  # hardcode_minus_L: Not really in the search PATH,
13255	  # but as the default location of the library.
13256	  hardcode_minus_L=yes
13257	  ;;
13258	*)
13259	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13260	  hardcode_libdir_separator=:
13261	  hardcode_direct=yes
13262	  export_dynamic_flag_spec='${wl}-E'
13263
13264	  # hardcode_minus_L: Not really in the search PATH,
13265	  # but as the default location of the library.
13266	  hardcode_minus_L=yes
13267	  ;;
13268	esac
13269      fi
13270      ;;
13271
13272    irix5* | irix6* | nonstopux*)
13273      if test "$GCC" = yes; then
13274	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'
13275      else
13276	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'
13277	hardcode_libdir_flag_spec_ld='-rpath $libdir'
13278      fi
13279      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13280      hardcode_libdir_separator=:
13281      link_all_deplibs=yes
13282      ;;
13283
13284    netbsd*)
13285      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13286	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13287      else
13288	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13289      fi
13290      hardcode_libdir_flag_spec='-R$libdir'
13291      hardcode_direct=yes
13292      hardcode_shlibpath_var=no
13293      ;;
13294
13295    newsos6)
13296      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13297      hardcode_direct=yes
13298      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13299      hardcode_libdir_separator=:
13300      hardcode_shlibpath_var=no
13301      ;;
13302
13303    openbsd*)
13304      hardcode_direct=yes
13305      hardcode_shlibpath_var=no
13306      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13308	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13309	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13310	export_dynamic_flag_spec='${wl}-E'
13311      else
13312       case $host_os in
13313	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13314	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13315	   hardcode_libdir_flag_spec='-R$libdir'
13316	   ;;
13317	 *)
13318	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13319	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13320	   ;;
13321       esac
13322      fi
13323      ;;
13324
13325    os2*)
13326      hardcode_libdir_flag_spec='-L$libdir'
13327      hardcode_minus_L=yes
13328      allow_undefined_flag=unsupported
13329      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'
13330      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13331      ;;
13332
13333    osf3*)
13334      if test "$GCC" = yes; then
13335	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13336	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'
13337      else
13338	allow_undefined_flag=' -expect_unresolved \*'
13339	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'
13340      fi
13341      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13342      hardcode_libdir_separator=:
13343      ;;
13344
13345    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13346      if test "$GCC" = yes; then
13347	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13348	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'
13349	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13350      else
13351	allow_undefined_flag=' -expect_unresolved \*'
13352	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'
13353	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13354	$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'
13355
13356	# Both c and cxx compiler support -rpath directly
13357	hardcode_libdir_flag_spec='-rpath $libdir'
13358      fi
13359      hardcode_libdir_separator=:
13360      ;;
13361
13362    sco3.2v5*)
13363      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364      hardcode_shlibpath_var=no
13365      export_dynamic_flag_spec='${wl}-Bexport'
13366      runpath_var=LD_RUN_PATH
13367      hardcode_runpath_var=yes
13368      ;;
13369
13370    solaris*)
13371      no_undefined_flag=' -z text'
13372      if test "$GCC" = yes; then
13373	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13374	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13375	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13376      else
13377	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13378	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13379  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13380      fi
13381      hardcode_libdir_flag_spec='-R$libdir'
13382      hardcode_shlibpath_var=no
13383      case $host_os in
13384      solaris2.[0-5] | solaris2.[0-5].*) ;;
13385      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13386	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13387      esac
13388      link_all_deplibs=yes
13389      ;;
13390
13391    sunos4*)
13392      if test "x$host_vendor" = xsequent; then
13393	# Use $CC to link under sequent, because it throws in some extra .o
13394	# files that make .init and .fini sections work.
13395	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13396      else
13397	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13398      fi
13399      hardcode_libdir_flag_spec='-L$libdir'
13400      hardcode_direct=yes
13401      hardcode_minus_L=yes
13402      hardcode_shlibpath_var=no
13403      ;;
13404
13405    sysv4)
13406      case $host_vendor in
13407	sni)
13408	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409	  hardcode_direct=yes # is this really true???
13410	;;
13411	siemens)
13412	  ## LD is ld it makes a PLAMLIB
13413	  ## CC just makes a GrossModule.
13414	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13415	  reload_cmds='$CC -r -o $output$reload_objs'
13416	  hardcode_direct=no
13417        ;;
13418	motorola)
13419	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13421	;;
13422      esac
13423      runpath_var='LD_RUN_PATH'
13424      hardcode_shlibpath_var=no
13425      ;;
13426
13427    sysv4.3*)
13428      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429      hardcode_shlibpath_var=no
13430      export_dynamic_flag_spec='-Bexport'
13431      ;;
13432
13433    sysv4*MP*)
13434      if test -d /usr/nec; then
13435	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13436	hardcode_shlibpath_var=no
13437	runpath_var=LD_RUN_PATH
13438	hardcode_runpath_var=yes
13439	ld_shlibs=yes
13440      fi
13441      ;;
13442
13443    sysv4.2uw2*)
13444      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13445      hardcode_direct=yes
13446      hardcode_minus_L=no
13447      hardcode_shlibpath_var=no
13448      hardcode_runpath_var=yes
13449      runpath_var=LD_RUN_PATH
13450      ;;
13451
13452   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13453      no_undefined_flag='${wl}-z ${wl}text'
13454      if test "$GCC" = yes; then
13455	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13456      else
13457	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13458      fi
13459      runpath_var='LD_RUN_PATH'
13460      hardcode_shlibpath_var=no
13461      ;;
13462
13463    sysv5*)
13464      no_undefined_flag=' -z text'
13465      # $CC -shared without GNU ld will not create a library from C++
13466      # object files and a static libstdc++, better avoid it by now
13467      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13469  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13470      hardcode_libdir_flag_spec=
13471      hardcode_shlibpath_var=no
13472      runpath_var='LD_RUN_PATH'
13473      ;;
13474
13475    uts4*)
13476      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477      hardcode_libdir_flag_spec='-L$libdir'
13478      hardcode_shlibpath_var=no
13479      ;;
13480
13481    *)
13482      ld_shlibs=no
13483      ;;
13484    esac
13485  fi
13486
13487echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13488echo "${ECHO_T}$ld_shlibs" >&6
13489test "$ld_shlibs" = no && can_build_shared=no
13490
13491variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13492if test "$GCC" = yes; then
13493  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13494fi
13495
13496#
13497# Do we need to explicitly link libc?
13498#
13499case "x$archive_cmds_need_lc" in
13500x|xyes)
13501  # Assume -lc should be added
13502  archive_cmds_need_lc=yes
13503
13504  if test "$enable_shared" = yes && test "$GCC" = yes; then
13505    case $archive_cmds in
13506    *'~'*)
13507      # FIXME: we may have to deal with multi-command sequences.
13508      ;;
13509    '$CC '*)
13510      # Test whether the compiler implicitly links with -lc since on some
13511      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13512      # to ld, don't add -lc before -lgcc.
13513      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13514echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13515      $rm conftest*
13516      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13517
13518      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519  (eval $ac_compile) 2>&5
13520  ac_status=$?
13521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522  (exit $ac_status); } 2>conftest.err; then
13523        soname=conftest
13524        lib=conftest
13525        libobjs=conftest.$ac_objext
13526        deplibs=
13527        wl=$lt_prog_compiler_wl
13528        compiler_flags=-v
13529        linker_flags=-v
13530        verstring=
13531        output_objdir=.
13532        libname=conftest
13533        lt_save_allow_undefined_flag=$allow_undefined_flag
13534        allow_undefined_flag=
13535        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13536  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13537  ac_status=$?
13538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539  (exit $ac_status); }
13540        then
13541	  archive_cmds_need_lc=no
13542        else
13543	  archive_cmds_need_lc=yes
13544        fi
13545        allow_undefined_flag=$lt_save_allow_undefined_flag
13546      else
13547        cat conftest.err 1>&5
13548      fi
13549      $rm conftest*
13550      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13551echo "${ECHO_T}$archive_cmds_need_lc" >&6
13552      ;;
13553    esac
13554  fi
13555  ;;
13556esac
13557
13558echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13560library_names_spec=
13561libname_spec='lib$name'
13562soname_spec=
13563shrext_cmds=".so"
13564postinstall_cmds=
13565postuninstall_cmds=
13566finish_cmds=
13567finish_eval=
13568shlibpath_var=
13569shlibpath_overrides_runpath=unknown
13570version_type=none
13571dynamic_linker="$host_os ld.so"
13572sys_lib_dlsearch_path_spec="/lib /usr/lib"
13573if test "$GCC" = yes; then
13574  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13575  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13576    # if the path contains ";" then we assume it to be the separator
13577    # otherwise default to the standard path separator (i.e. ":") - it is
13578    # assumed that no part of a normal pathname contains ";" but that should
13579    # okay in the real world where ";" in dirpaths is itself problematic.
13580    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13581  else
13582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13583  fi
13584else
13585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13586fi
13587need_lib_prefix=unknown
13588hardcode_into_libs=no
13589
13590# when you set need_version to no, make sure it does not cause -set_version
13591# flags to be left without arguments
13592need_version=unknown
13593
13594case $host_os in
13595aix3*)
13596  version_type=linux
13597  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13598  shlibpath_var=LIBPATH
13599
13600  # AIX 3 has no versioning support, so we append a major version to the name.
13601  soname_spec='${libname}${release}${shared_ext}$major'
13602  ;;
13603
13604aix4* | aix5*)
13605  version_type=linux
13606  need_lib_prefix=no
13607  need_version=no
13608  hardcode_into_libs=yes
13609  if test "$host_cpu" = ia64; then
13610    # AIX 5 supports IA64
13611    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13612    shlibpath_var=LD_LIBRARY_PATH
13613  else
13614    # With GCC up to 2.95.x, collect2 would create an import file
13615    # for dependence libraries.  The import file would start with
13616    # the line `#! .'.  This would cause the generated library to
13617    # depend on `.', always an invalid library.  This was fixed in
13618    # development snapshots of GCC prior to 3.0.
13619    case $host_os in
13620      aix4 | aix4.[01] | aix4.[01].*)
13621      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13622	   echo ' yes '
13623	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13624	:
13625      else
13626	can_build_shared=no
13627      fi
13628      ;;
13629    esac
13630    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13631    # soname into executable. Probably we can add versioning support to
13632    # collect2, so additional links can be useful in future.
13633    if test "$aix_use_runtimelinking" = yes; then
13634      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13635      # instead of lib<name>.a to let people know that these are not
13636      # typical AIX shared libraries.
13637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13638    else
13639      # We preserve .a as extension for shared libraries through AIX4.2
13640      # and later when we are not doing run time linking.
13641      library_names_spec='${libname}${release}.a $libname.a'
13642      soname_spec='${libname}${release}${shared_ext}$major'
13643    fi
13644    shlibpath_var=LIBPATH
13645  fi
13646  ;;
13647
13648amigaos*)
13649  library_names_spec='$libname.ixlibrary $libname.a'
13650  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13651  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'
13652  ;;
13653
13654beos*)
13655  library_names_spec='${libname}${shared_ext}'
13656  dynamic_linker="$host_os ld.so"
13657  shlibpath_var=LIBRARY_PATH
13658  ;;
13659
13660bsdi[45]*)
13661  version_type=linux
13662  need_version=no
13663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664  soname_spec='${libname}${release}${shared_ext}$major'
13665  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13666  shlibpath_var=LD_LIBRARY_PATH
13667  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13668  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13669  # the default ld.so.conf also contains /usr/contrib/lib and
13670  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13671  # libtool to hard-code these into programs
13672  ;;
13673
13674cygwin* | mingw* | pw32*)
13675  version_type=windows
13676  shrext_cmds=".dll"
13677  need_version=no
13678  need_lib_prefix=no
13679
13680  case $GCC,$host_os in
13681  yes,cygwin* | yes,mingw* | yes,pw32*)
13682    library_names_spec='$libname.dll.a'
13683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13684    postinstall_cmds='base_file=`basename \${file}`~
13685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13686      dldir=$destdir/`dirname \$dlpath`~
13687      test -d \$dldir || mkdir -p \$dldir~
13688      $install_prog $dir/$dlname \$dldir/$dlname'
13689    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13690      dlpath=$dir/\$dldll~
13691       $rm \$dlpath'
13692    shlibpath_overrides_runpath=yes
13693
13694    case $host_os in
13695    cygwin*)
13696      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13697      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13698      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13699      ;;
13700    mingw*)
13701      # MinGW DLLs use traditional 'lib' prefix
13702      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13703      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13704      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13705        # It is most probably a Windows format PATH printed by
13706        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13707        # path with ; separators, and with drive letters. We can handle the
13708        # drive letters (cygwin fileutils understands them), so leave them,
13709        # especially as we might pass files found there to a mingw objdump,
13710        # which wouldn't understand a cygwinified path. Ahh.
13711        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13712      else
13713        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13714      fi
13715      ;;
13716    pw32*)
13717      # pw32 DLLs use 'pw' prefix rather than 'lib'
13718      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13719      ;;
13720    esac
13721    ;;
13722
13723  *)
13724    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13725    ;;
13726  esac
13727  dynamic_linker='Win32 ld.exe'
13728  # FIXME: first we should search . and the directory the executable is in
13729  shlibpath_var=PATH
13730  ;;
13731
13732darwin* | rhapsody*)
13733  dynamic_linker="$host_os dyld"
13734  version_type=darwin
13735  need_lib_prefix=no
13736  need_version=no
13737  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13738  soname_spec='${libname}${release}${major}$shared_ext'
13739  shlibpath_overrides_runpath=yes
13740  shlibpath_var=DYLD_LIBRARY_PATH
13741  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13742  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13743  if test "$GCC" = yes; then
13744    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"`
13745  else
13746    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13747  fi
13748  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13749  ;;
13750
13751dgux*)
13752  version_type=linux
13753  need_lib_prefix=no
13754  need_version=no
13755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13756  soname_spec='${libname}${release}${shared_ext}$major'
13757  shlibpath_var=LD_LIBRARY_PATH
13758  ;;
13759
13760freebsd1*)
13761  dynamic_linker=no
13762  ;;
13763
13764kfreebsd*-gnu)
13765  version_type=linux
13766  need_lib_prefix=no
13767  need_version=no
13768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13769  soname_spec='${libname}${release}${shared_ext}$major'
13770  shlibpath_var=LD_LIBRARY_PATH
13771  shlibpath_overrides_runpath=no
13772  hardcode_into_libs=yes
13773  dynamic_linker='GNU ld.so'
13774  ;;
13775
13776freebsd*)
13777  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13778  version_type=freebsd-$objformat
13779  case $version_type in
13780    freebsd-elf*)
13781      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13782      need_version=no
13783      need_lib_prefix=no
13784      ;;
13785    freebsd-*)
13786      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13787      need_version=yes
13788      ;;
13789  esac
13790  shlibpath_var=LD_LIBRARY_PATH
13791  case $host_os in
13792  freebsd2*)
13793    shlibpath_overrides_runpath=yes
13794    ;;
13795  freebsd3.01* | freebsdelf3.01*)
13796    shlibpath_overrides_runpath=yes
13797    hardcode_into_libs=yes
13798    ;;
13799  *) # from 3.2 on
13800    shlibpath_overrides_runpath=no
13801    hardcode_into_libs=yes
13802    ;;
13803  esac
13804  ;;
13805
13806gnu*)
13807  version_type=linux
13808  need_lib_prefix=no
13809  need_version=no
13810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13811  soname_spec='${libname}${release}${shared_ext}$major'
13812  shlibpath_var=LD_LIBRARY_PATH
13813  hardcode_into_libs=yes
13814  ;;
13815
13816hpux9* | hpux10* | hpux11*)
13817  # Give a soname corresponding to the major version so that dld.sl refuses to
13818  # link against other versions.
13819  version_type=sunos
13820  need_lib_prefix=no
13821  need_version=no
13822  case "$host_cpu" in
13823  ia64*)
13824    shrext_cmds='.so'
13825    hardcode_into_libs=yes
13826    dynamic_linker="$host_os dld.so"
13827    shlibpath_var=LD_LIBRARY_PATH
13828    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13829    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830    soname_spec='${libname}${release}${shared_ext}$major'
13831    if test "X$HPUX_IA64_MODE" = X32; then
13832      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13833    else
13834      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13835    fi
13836    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13837    ;;
13838   hppa*64*)
13839     shrext_cmds='.sl'
13840     hardcode_into_libs=yes
13841     dynamic_linker="$host_os dld.sl"
13842     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845     soname_spec='${libname}${release}${shared_ext}$major'
13846     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13847     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13848     ;;
13849   *)
13850    shrext_cmds='.sl'
13851    dynamic_linker="$host_os dld.sl"
13852    shlibpath_var=SHLIB_PATH
13853    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13854    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855    soname_spec='${libname}${release}${shared_ext}$major'
13856    ;;
13857  esac
13858  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13859  postinstall_cmds='chmod 555 $lib'
13860  ;;
13861
13862irix5* | irix6* | nonstopux*)
13863  case $host_os in
13864    nonstopux*) version_type=nonstopux ;;
13865    *)
13866	if test "$lt_cv_prog_gnu_ld" = yes; then
13867		version_type=linux
13868	else
13869		version_type=irix
13870	fi ;;
13871  esac
13872  need_lib_prefix=no
13873  need_version=no
13874  soname_spec='${libname}${release}${shared_ext}$major'
13875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13876  case $host_os in
13877  irix5* | nonstopux*)
13878    libsuff= shlibsuff=
13879    ;;
13880  *)
13881    case $LD in # libtool.m4 will add one of these switches to LD
13882    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13883      libsuff= shlibsuff= libmagic=32-bit;;
13884    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13885      libsuff=32 shlibsuff=N32 libmagic=N32;;
13886    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13887      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13888    *) libsuff= shlibsuff= libmagic=never-match;;
13889    esac
13890    ;;
13891  esac
13892  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13893  shlibpath_overrides_runpath=no
13894  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13895  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13896  hardcode_into_libs=yes
13897  ;;
13898
13899# No shared lib support for Linux oldld, aout, or coff.
13900linux*oldld* | linux*aout* | linux*coff*)
13901  dynamic_linker=no
13902  ;;
13903
13904# This must be Linux ELF.
13905linux*)
13906  version_type=linux
13907  need_lib_prefix=no
13908  need_version=no
13909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910  soname_spec='${libname}${release}${shared_ext}$major'
13911  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13912  shlibpath_var=LD_LIBRARY_PATH
13913  shlibpath_overrides_runpath=no
13914  # This implies no fast_install, which is unacceptable.
13915  # Some rework will be needed to allow for fast_install
13916  # before this can be enabled.
13917  hardcode_into_libs=yes
13918
13919  # Append ld.so.conf contents to the search path
13920  if test -f /etc/ld.so.conf; then
13921    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13922    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13923  fi
13924
13925  # We used to test for /lib/ld.so.1 and disable shared libraries on
13926  # powerpc, because MkLinux only supported shared libraries with the
13927  # GNU dynamic linker.  Since this was broken with cross compilers,
13928  # most powerpc-linux boxes support dynamic linking these days and
13929  # people can always --disable-shared, the test was removed, and we
13930  # assume the GNU/Linux dynamic linker is in use.
13931  dynamic_linker='GNU/Linux ld.so'
13932  ;;
13933
13934knetbsd*-gnu)
13935  version_type=linux
13936  need_lib_prefix=no
13937  need_version=no
13938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13939  soname_spec='${libname}${release}${shared_ext}$major'
13940  shlibpath_var=LD_LIBRARY_PATH
13941  shlibpath_overrides_runpath=no
13942  hardcode_into_libs=yes
13943  dynamic_linker='GNU ld.so'
13944  ;;
13945
13946netbsd*)
13947  version_type=sunos
13948  need_lib_prefix=no
13949  need_version=no
13950  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13951    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13952    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13953    dynamic_linker='NetBSD (a.out) ld.so'
13954  else
13955    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13956    soname_spec='${libname}${release}${shared_ext}$major'
13957    dynamic_linker='NetBSD ld.elf_so'
13958  fi
13959  shlibpath_var=LD_LIBRARY_PATH
13960  shlibpath_overrides_runpath=yes
13961  hardcode_into_libs=yes
13962  ;;
13963
13964newsos6)
13965  version_type=linux
13966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967  shlibpath_var=LD_LIBRARY_PATH
13968  shlibpath_overrides_runpath=yes
13969  ;;
13970
13971nto-qnx*)
13972  version_type=linux
13973  need_lib_prefix=no
13974  need_version=no
13975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13976  soname_spec='${libname}${release}${shared_ext}$major'
13977  shlibpath_var=LD_LIBRARY_PATH
13978  shlibpath_overrides_runpath=yes
13979  ;;
13980
13981openbsd*)
13982  version_type=sunos
13983  need_lib_prefix=no
13984  need_version=no
13985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987  shlibpath_var=LD_LIBRARY_PATH
13988  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989    case $host_os in
13990      openbsd2.[89] | openbsd2.[89].*)
13991	shlibpath_overrides_runpath=no
13992	;;
13993      *)
13994	shlibpath_overrides_runpath=yes
13995	;;
13996      esac
13997  else
13998    shlibpath_overrides_runpath=yes
13999  fi
14000  ;;
14001
14002os2*)
14003  libname_spec='$name'
14004  shrext_cmds=".dll"
14005  need_lib_prefix=no
14006  library_names_spec='$libname${shared_ext} $libname.a'
14007  dynamic_linker='OS/2 ld.exe'
14008  shlibpath_var=LIBPATH
14009  ;;
14010
14011osf3* | osf4* | osf5*)
14012  version_type=osf
14013  need_lib_prefix=no
14014  need_version=no
14015  soname_spec='${libname}${release}${shared_ext}$major'
14016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017  shlibpath_var=LD_LIBRARY_PATH
14018  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14019  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14020  ;;
14021
14022sco3.2v5*)
14023  version_type=osf
14024  soname_spec='${libname}${release}${shared_ext}$major'
14025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026  shlibpath_var=LD_LIBRARY_PATH
14027  ;;
14028
14029solaris*)
14030  version_type=linux
14031  need_lib_prefix=no
14032  need_version=no
14033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034  soname_spec='${libname}${release}${shared_ext}$major'
14035  shlibpath_var=LD_LIBRARY_PATH
14036  shlibpath_overrides_runpath=yes
14037  hardcode_into_libs=yes
14038  # ldd complains unless libraries are executable
14039  postinstall_cmds='chmod +x $lib'
14040  ;;
14041
14042sunos4*)
14043  version_type=sunos
14044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14045  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14046  shlibpath_var=LD_LIBRARY_PATH
14047  shlibpath_overrides_runpath=yes
14048  if test "$with_gnu_ld" = yes; then
14049    need_lib_prefix=no
14050  fi
14051  need_version=yes
14052  ;;
14053
14054sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14055  version_type=linux
14056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057  soname_spec='${libname}${release}${shared_ext}$major'
14058  shlibpath_var=LD_LIBRARY_PATH
14059  case $host_vendor in
14060    sni)
14061      shlibpath_overrides_runpath=no
14062      need_lib_prefix=no
14063      export_dynamic_flag_spec='${wl}-Blargedynsym'
14064      runpath_var=LD_RUN_PATH
14065      ;;
14066    siemens)
14067      need_lib_prefix=no
14068      ;;
14069    motorola)
14070      need_lib_prefix=no
14071      need_version=no
14072      shlibpath_overrides_runpath=no
14073      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14074      ;;
14075  esac
14076  ;;
14077
14078sysv4*MP*)
14079  if test -d /usr/nec ;then
14080    version_type=linux
14081    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14082    soname_spec='$libname${shared_ext}.$major'
14083    shlibpath_var=LD_LIBRARY_PATH
14084  fi
14085  ;;
14086
14087uts4*)
14088  version_type=linux
14089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090  soname_spec='${libname}${release}${shared_ext}$major'
14091  shlibpath_var=LD_LIBRARY_PATH
14092  ;;
14093
14094*)
14095  dynamic_linker=no
14096  ;;
14097esac
14098echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14099echo "${ECHO_T}$dynamic_linker" >&6
14100test "$dynamic_linker" = no && can_build_shared=no
14101
14102echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14103echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14104hardcode_action=
14105if test -n "$hardcode_libdir_flag_spec" || \
14106   test -n "$runpath_var" || \
14107   test "X$hardcode_automatic" = "Xyes" ; then
14108
14109  # We can hardcode non-existant directories.
14110  if test "$hardcode_direct" != no &&
14111     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14112     # have to relink, otherwise we might link with an installed library
14113     # when we should be linking with a yet-to-be-installed one
14114     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14115     test "$hardcode_minus_L" != no; then
14116    # Linking always hardcodes the temporary library directory.
14117    hardcode_action=relink
14118  else
14119    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14120    hardcode_action=immediate
14121  fi
14122else
14123  # We cannot hardcode anything, or else we can only hardcode existing
14124  # directories.
14125  hardcode_action=unsupported
14126fi
14127echo "$as_me:$LINENO: result: $hardcode_action" >&5
14128echo "${ECHO_T}$hardcode_action" >&6
14129
14130if test "$hardcode_action" = relink; then
14131  # Fast installation is not supported
14132  enable_fast_install=no
14133elif test "$shlibpath_overrides_runpath" = yes ||
14134     test "$enable_shared" = no; then
14135  # Fast installation is not necessary
14136  enable_fast_install=needless
14137fi
14138
14139striplib=
14140old_striplib=
14141echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14142echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14143if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14144  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14145  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14146  echo "$as_me:$LINENO: result: yes" >&5
14147echo "${ECHO_T}yes" >&6
14148else
14149# FIXME - insert some real tests, host_os isn't really good enough
14150  case $host_os in
14151   darwin*)
14152       if test -n "$STRIP" ; then
14153         striplib="$STRIP -x"
14154         echo "$as_me:$LINENO: result: yes" >&5
14155echo "${ECHO_T}yes" >&6
14156       else
14157  echo "$as_me:$LINENO: result: no" >&5
14158echo "${ECHO_T}no" >&6
14159fi
14160       ;;
14161   *)
14162  echo "$as_me:$LINENO: result: no" >&5
14163echo "${ECHO_T}no" >&6
14164    ;;
14165  esac
14166fi
14167
14168if test "x$enable_dlopen" != xyes; then
14169  enable_dlopen=unknown
14170  enable_dlopen_self=unknown
14171  enable_dlopen_self_static=unknown
14172else
14173  lt_cv_dlopen=no
14174  lt_cv_dlopen_libs=
14175
14176  case $host_os in
14177  beos*)
14178    lt_cv_dlopen="load_add_on"
14179    lt_cv_dlopen_libs=
14180    lt_cv_dlopen_self=yes
14181    ;;
14182
14183  mingw* | pw32*)
14184    lt_cv_dlopen="LoadLibrary"
14185    lt_cv_dlopen_libs=
14186   ;;
14187
14188  cygwin*)
14189    lt_cv_dlopen="dlopen"
14190    lt_cv_dlopen_libs=
14191   ;;
14192
14193  darwin*)
14194  # if libdl is installed we need to link against it
14195    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14196echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14197if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14198  echo $ECHO_N "(cached) $ECHO_C" >&6
14199else
14200  ac_check_lib_save_LIBS=$LIBS
14201LIBS="-ldl  $LIBS"
14202cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h.  */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h.  */
14208
14209/* Override any gcc2 internal prototype to avoid an error.  */
14210#ifdef __cplusplus
14211extern "C"
14212#endif
14213/* We use char because int might match the return type of a gcc2
14214   builtin and then its argument prototype would still apply.  */
14215char dlopen ();
14216int
14217main ()
14218{
14219dlopen ();
14220  ;
14221  return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext conftest$ac_exeext
14225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14226  (eval $ac_link) 2>conftest.er1
14227  ac_status=$?
14228  grep -v '^ *+' conftest.er1 >conftest.err
14229  rm -f conftest.er1
14230  cat conftest.err >&5
14231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232  (exit $ac_status); } &&
14233	 { ac_try='test -z "$ac_c_werror_flag"
14234			 || test ! -s conftest.err'
14235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236  (eval $ac_try) 2>&5
14237  ac_status=$?
14238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239  (exit $ac_status); }; } &&
14240	 { ac_try='test -s conftest$ac_exeext'
14241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242  (eval $ac_try) 2>&5
14243  ac_status=$?
14244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245  (exit $ac_status); }; }; then
14246  ac_cv_lib_dl_dlopen=yes
14247else
14248  echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
14251ac_cv_lib_dl_dlopen=no
14252fi
14253rm -f conftest.err conftest.$ac_objext \
14254      conftest$ac_exeext conftest.$ac_ext
14255LIBS=$ac_check_lib_save_LIBS
14256fi
14257echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14258echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14259if test $ac_cv_lib_dl_dlopen = yes; then
14260  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14261else
14262
14263    lt_cv_dlopen="dyld"
14264    lt_cv_dlopen_libs=
14265    lt_cv_dlopen_self=yes
14266
14267fi
14268
14269   ;;
14270
14271  *)
14272    echo "$as_me:$LINENO: checking for shl_load" >&5
14273echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14274if test "${ac_cv_func_shl_load+set}" = set; then
14275  echo $ECHO_N "(cached) $ECHO_C" >&6
14276else
14277  cat >conftest.$ac_ext <<_ACEOF
14278/* confdefs.h.  */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
14282/* end confdefs.h.  */
14283/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14284   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14285#define shl_load innocuous_shl_load
14286
14287/* System header to define __stub macros and hopefully few prototypes,
14288    which can conflict with char shl_load (); below.
14289    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14290    <limits.h> exists even on freestanding compilers.  */
14291
14292#ifdef __STDC__
14293# include <limits.h>
14294#else
14295# include <assert.h>
14296#endif
14297
14298#undef shl_load
14299
14300/* Override any gcc2 internal prototype to avoid an error.  */
14301#ifdef __cplusplus
14302extern "C"
14303{
14304#endif
14305/* We use char because int might match the return type of a gcc2
14306   builtin and then its argument prototype would still apply.  */
14307char shl_load ();
14308/* The GNU C library defines this for functions which it implements
14309    to always fail with ENOSYS.  Some functions are actually named
14310    something starting with __ and the normal name is an alias.  */
14311#if defined (__stub_shl_load) || defined (__stub___shl_load)
14312choke me
14313#else
14314char (*f) () = shl_load;
14315#endif
14316#ifdef __cplusplus
14317}
14318#endif
14319
14320int
14321main ()
14322{
14323return f != shl_load;
14324  ;
14325  return 0;
14326}
14327_ACEOF
14328rm -f conftest.$ac_objext conftest$ac_exeext
14329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330  (eval $ac_link) 2>conftest.er1
14331  ac_status=$?
14332  grep -v '^ *+' conftest.er1 >conftest.err
14333  rm -f conftest.er1
14334  cat conftest.err >&5
14335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336  (exit $ac_status); } &&
14337	 { ac_try='test -z "$ac_c_werror_flag"
14338			 || test ! -s conftest.err'
14339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340  (eval $ac_try) 2>&5
14341  ac_status=$?
14342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343  (exit $ac_status); }; } &&
14344	 { ac_try='test -s conftest$ac_exeext'
14345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346  (eval $ac_try) 2>&5
14347  ac_status=$?
14348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349  (exit $ac_status); }; }; then
14350  ac_cv_func_shl_load=yes
14351else
14352  echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
14354
14355ac_cv_func_shl_load=no
14356fi
14357rm -f conftest.err conftest.$ac_objext \
14358      conftest$ac_exeext conftest.$ac_ext
14359fi
14360echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14361echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14362if test $ac_cv_func_shl_load = yes; then
14363  lt_cv_dlopen="shl_load"
14364else
14365  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14366echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14367if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14368  echo $ECHO_N "(cached) $ECHO_C" >&6
14369else
14370  ac_check_lib_save_LIBS=$LIBS
14371LIBS="-ldld  $LIBS"
14372cat >conftest.$ac_ext <<_ACEOF
14373/* confdefs.h.  */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h.  */
14378
14379/* Override any gcc2 internal prototype to avoid an error.  */
14380#ifdef __cplusplus
14381extern "C"
14382#endif
14383/* We use char because int might match the return type of a gcc2
14384   builtin and then its argument prototype would still apply.  */
14385char shl_load ();
14386int
14387main ()
14388{
14389shl_load ();
14390  ;
14391  return 0;
14392}
14393_ACEOF
14394rm -f conftest.$ac_objext conftest$ac_exeext
14395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14396  (eval $ac_link) 2>conftest.er1
14397  ac_status=$?
14398  grep -v '^ *+' conftest.er1 >conftest.err
14399  rm -f conftest.er1
14400  cat conftest.err >&5
14401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402  (exit $ac_status); } &&
14403	 { ac_try='test -z "$ac_c_werror_flag"
14404			 || test ! -s conftest.err'
14405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406  (eval $ac_try) 2>&5
14407  ac_status=$?
14408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409  (exit $ac_status); }; } &&
14410	 { ac_try='test -s conftest$ac_exeext'
14411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412  (eval $ac_try) 2>&5
14413  ac_status=$?
14414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415  (exit $ac_status); }; }; then
14416  ac_cv_lib_dld_shl_load=yes
14417else
14418  echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
14421ac_cv_lib_dld_shl_load=no
14422fi
14423rm -f conftest.err conftest.$ac_objext \
14424      conftest$ac_exeext conftest.$ac_ext
14425LIBS=$ac_check_lib_save_LIBS
14426fi
14427echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14428echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14429if test $ac_cv_lib_dld_shl_load = yes; then
14430  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14431else
14432  echo "$as_me:$LINENO: checking for dlopen" >&5
14433echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14434if test "${ac_cv_func_dlopen+set}" = set; then
14435  echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437  cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h.  */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h.  */
14443/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14444   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14445#define dlopen innocuous_dlopen
14446
14447/* System header to define __stub macros and hopefully few prototypes,
14448    which can conflict with char dlopen (); below.
14449    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14450    <limits.h> exists even on freestanding compilers.  */
14451
14452#ifdef __STDC__
14453# include <limits.h>
14454#else
14455# include <assert.h>
14456#endif
14457
14458#undef dlopen
14459
14460/* Override any gcc2 internal prototype to avoid an error.  */
14461#ifdef __cplusplus
14462extern "C"
14463{
14464#endif
14465/* We use char because int might match the return type of a gcc2
14466   builtin and then its argument prototype would still apply.  */
14467char dlopen ();
14468/* The GNU C library defines this for functions which it implements
14469    to always fail with ENOSYS.  Some functions are actually named
14470    something starting with __ and the normal name is an alias.  */
14471#if defined (__stub_dlopen) || defined (__stub___dlopen)
14472choke me
14473#else
14474char (*f) () = dlopen;
14475#endif
14476#ifdef __cplusplus
14477}
14478#endif
14479
14480int
14481main ()
14482{
14483return f != dlopen;
14484  ;
14485  return 0;
14486}
14487_ACEOF
14488rm -f conftest.$ac_objext conftest$ac_exeext
14489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490  (eval $ac_link) 2>conftest.er1
14491  ac_status=$?
14492  grep -v '^ *+' conftest.er1 >conftest.err
14493  rm -f conftest.er1
14494  cat conftest.err >&5
14495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496  (exit $ac_status); } &&
14497	 { ac_try='test -z "$ac_c_werror_flag"
14498			 || test ! -s conftest.err'
14499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500  (eval $ac_try) 2>&5
14501  ac_status=$?
14502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503  (exit $ac_status); }; } &&
14504	 { ac_try='test -s conftest$ac_exeext'
14505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506  (eval $ac_try) 2>&5
14507  ac_status=$?
14508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509  (exit $ac_status); }; }; then
14510  ac_cv_func_dlopen=yes
14511else
14512  echo "$as_me: failed program was:" >&5
14513sed 's/^/| /' conftest.$ac_ext >&5
14514
14515ac_cv_func_dlopen=no
14516fi
14517rm -f conftest.err conftest.$ac_objext \
14518      conftest$ac_exeext conftest.$ac_ext
14519fi
14520echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14521echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14522if test $ac_cv_func_dlopen = yes; then
14523  lt_cv_dlopen="dlopen"
14524else
14525  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14526echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14527if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14528  echo $ECHO_N "(cached) $ECHO_C" >&6
14529else
14530  ac_check_lib_save_LIBS=$LIBS
14531LIBS="-ldl  $LIBS"
14532cat >conftest.$ac_ext <<_ACEOF
14533/* confdefs.h.  */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
14537/* end confdefs.h.  */
14538
14539/* Override any gcc2 internal prototype to avoid an error.  */
14540#ifdef __cplusplus
14541extern "C"
14542#endif
14543/* We use char because int might match the return type of a gcc2
14544   builtin and then its argument prototype would still apply.  */
14545char dlopen ();
14546int
14547main ()
14548{
14549dlopen ();
14550  ;
14551  return 0;
14552}
14553_ACEOF
14554rm -f conftest.$ac_objext conftest$ac_exeext
14555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14556  (eval $ac_link) 2>conftest.er1
14557  ac_status=$?
14558  grep -v '^ *+' conftest.er1 >conftest.err
14559  rm -f conftest.er1
14560  cat conftest.err >&5
14561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562  (exit $ac_status); } &&
14563	 { ac_try='test -z "$ac_c_werror_flag"
14564			 || test ! -s conftest.err'
14565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566  (eval $ac_try) 2>&5
14567  ac_status=$?
14568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569  (exit $ac_status); }; } &&
14570	 { ac_try='test -s conftest$ac_exeext'
14571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572  (eval $ac_try) 2>&5
14573  ac_status=$?
14574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575  (exit $ac_status); }; }; then
14576  ac_cv_lib_dl_dlopen=yes
14577else
14578  echo "$as_me: failed program was:" >&5
14579sed 's/^/| /' conftest.$ac_ext >&5
14580
14581ac_cv_lib_dl_dlopen=no
14582fi
14583rm -f conftest.err conftest.$ac_objext \
14584      conftest$ac_exeext conftest.$ac_ext
14585LIBS=$ac_check_lib_save_LIBS
14586fi
14587echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14588echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14589if test $ac_cv_lib_dl_dlopen = yes; then
14590  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14591else
14592  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14593echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14594if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14595  echo $ECHO_N "(cached) $ECHO_C" >&6
14596else
14597  ac_check_lib_save_LIBS=$LIBS
14598LIBS="-lsvld  $LIBS"
14599cat >conftest.$ac_ext <<_ACEOF
14600/* confdefs.h.  */
14601_ACEOF
14602cat confdefs.h >>conftest.$ac_ext
14603cat >>conftest.$ac_ext <<_ACEOF
14604/* end confdefs.h.  */
14605
14606/* Override any gcc2 internal prototype to avoid an error.  */
14607#ifdef __cplusplus
14608extern "C"
14609#endif
14610/* We use char because int might match the return type of a gcc2
14611   builtin and then its argument prototype would still apply.  */
14612char dlopen ();
14613int
14614main ()
14615{
14616dlopen ();
14617  ;
14618  return 0;
14619}
14620_ACEOF
14621rm -f conftest.$ac_objext conftest$ac_exeext
14622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623  (eval $ac_link) 2>conftest.er1
14624  ac_status=$?
14625  grep -v '^ *+' conftest.er1 >conftest.err
14626  rm -f conftest.er1
14627  cat conftest.err >&5
14628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629  (exit $ac_status); } &&
14630	 { ac_try='test -z "$ac_c_werror_flag"
14631			 || test ! -s conftest.err'
14632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633  (eval $ac_try) 2>&5
14634  ac_status=$?
14635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636  (exit $ac_status); }; } &&
14637	 { ac_try='test -s conftest$ac_exeext'
14638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639  (eval $ac_try) 2>&5
14640  ac_status=$?
14641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642  (exit $ac_status); }; }; then
14643  ac_cv_lib_svld_dlopen=yes
14644else
14645  echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
14647
14648ac_cv_lib_svld_dlopen=no
14649fi
14650rm -f conftest.err conftest.$ac_objext \
14651      conftest$ac_exeext conftest.$ac_ext
14652LIBS=$ac_check_lib_save_LIBS
14653fi
14654echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14655echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14656if test $ac_cv_lib_svld_dlopen = yes; then
14657  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14658else
14659  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14660echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14661if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14662  echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664  ac_check_lib_save_LIBS=$LIBS
14665LIBS="-ldld  $LIBS"
14666cat >conftest.$ac_ext <<_ACEOF
14667/* confdefs.h.  */
14668_ACEOF
14669cat confdefs.h >>conftest.$ac_ext
14670cat >>conftest.$ac_ext <<_ACEOF
14671/* end confdefs.h.  */
14672
14673/* Override any gcc2 internal prototype to avoid an error.  */
14674#ifdef __cplusplus
14675extern "C"
14676#endif
14677/* We use char because int might match the return type of a gcc2
14678   builtin and then its argument prototype would still apply.  */
14679char dld_link ();
14680int
14681main ()
14682{
14683dld_link ();
14684  ;
14685  return 0;
14686}
14687_ACEOF
14688rm -f conftest.$ac_objext conftest$ac_exeext
14689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690  (eval $ac_link) 2>conftest.er1
14691  ac_status=$?
14692  grep -v '^ *+' conftest.er1 >conftest.err
14693  rm -f conftest.er1
14694  cat conftest.err >&5
14695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696  (exit $ac_status); } &&
14697	 { ac_try='test -z "$ac_c_werror_flag"
14698			 || test ! -s conftest.err'
14699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700  (eval $ac_try) 2>&5
14701  ac_status=$?
14702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703  (exit $ac_status); }; } &&
14704	 { ac_try='test -s conftest$ac_exeext'
14705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706  (eval $ac_try) 2>&5
14707  ac_status=$?
14708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709  (exit $ac_status); }; }; then
14710  ac_cv_lib_dld_dld_link=yes
14711else
14712  echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715ac_cv_lib_dld_dld_link=no
14716fi
14717rm -f conftest.err conftest.$ac_objext \
14718      conftest$ac_exeext conftest.$ac_ext
14719LIBS=$ac_check_lib_save_LIBS
14720fi
14721echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14722echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14723if test $ac_cv_lib_dld_dld_link = yes; then
14724  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14725fi
14726
14727
14728fi
14729
14730
14731fi
14732
14733
14734fi
14735
14736
14737fi
14738
14739
14740fi
14741
14742    ;;
14743  esac
14744
14745  if test "x$lt_cv_dlopen" != xno; then
14746    enable_dlopen=yes
14747  else
14748    enable_dlopen=no
14749  fi
14750
14751  case $lt_cv_dlopen in
14752  dlopen)
14753    save_CPPFLAGS="$CPPFLAGS"
14754    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14755
14756    save_LDFLAGS="$LDFLAGS"
14757    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14758
14759    save_LIBS="$LIBS"
14760    LIBS="$lt_cv_dlopen_libs $LIBS"
14761
14762    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14763echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14764if test "${lt_cv_dlopen_self+set}" = set; then
14765  echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767  	  if test "$cross_compiling" = yes; then :
14768  lt_cv_dlopen_self=cross
14769else
14770  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14771  lt_status=$lt_dlunknown
14772  cat > conftest.$ac_ext <<EOF
14773#line 14773 "configure"
14774#include "confdefs.h"
14775
14776#if HAVE_DLFCN_H
14777#include <dlfcn.h>
14778#endif
14779
14780#include <stdio.h>
14781
14782#ifdef RTLD_GLOBAL
14783#  define LT_DLGLOBAL		RTLD_GLOBAL
14784#else
14785#  ifdef DL_GLOBAL
14786#    define LT_DLGLOBAL		DL_GLOBAL
14787#  else
14788#    define LT_DLGLOBAL		0
14789#  endif
14790#endif
14791
14792/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14793   find out it does not work in some platform. */
14794#ifndef LT_DLLAZY_OR_NOW
14795#  ifdef RTLD_LAZY
14796#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14797#  else
14798#    ifdef DL_LAZY
14799#      define LT_DLLAZY_OR_NOW		DL_LAZY
14800#    else
14801#      ifdef RTLD_NOW
14802#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14803#      else
14804#        ifdef DL_NOW
14805#          define LT_DLLAZY_OR_NOW	DL_NOW
14806#        else
14807#          define LT_DLLAZY_OR_NOW	0
14808#        endif
14809#      endif
14810#    endif
14811#  endif
14812#endif
14813
14814#ifdef __cplusplus
14815extern "C" void exit (int);
14816#endif
14817
14818void fnord() { int i=42;}
14819int main ()
14820{
14821  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14822  int status = $lt_dlunknown;
14823
14824  if (self)
14825    {
14826      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14827      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14828      /* dlclose (self); */
14829    }
14830
14831    exit (status);
14832}
14833EOF
14834  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835  (eval $ac_link) 2>&5
14836  ac_status=$?
14837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14839    (./conftest; exit; ) 2>/dev/null
14840    lt_status=$?
14841    case x$lt_status in
14842      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14843      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14844      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14845    esac
14846  else :
14847    # compilation failed
14848    lt_cv_dlopen_self=no
14849  fi
14850fi
14851rm -fr conftest*
14852
14853
14854fi
14855echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14856echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14857
14858    if test "x$lt_cv_dlopen_self" = xyes; then
14859      LDFLAGS="$LDFLAGS $link_static_flag"
14860      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14861echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14862if test "${lt_cv_dlopen_self_static+set}" = set; then
14863  echo $ECHO_N "(cached) $ECHO_C" >&6
14864else
14865  	  if test "$cross_compiling" = yes; then :
14866  lt_cv_dlopen_self_static=cross
14867else
14868  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14869  lt_status=$lt_dlunknown
14870  cat > conftest.$ac_ext <<EOF
14871#line 14871 "configure"
14872#include "confdefs.h"
14873
14874#if HAVE_DLFCN_H
14875#include <dlfcn.h>
14876#endif
14877
14878#include <stdio.h>
14879
14880#ifdef RTLD_GLOBAL
14881#  define LT_DLGLOBAL		RTLD_GLOBAL
14882#else
14883#  ifdef DL_GLOBAL
14884#    define LT_DLGLOBAL		DL_GLOBAL
14885#  else
14886#    define LT_DLGLOBAL		0
14887#  endif
14888#endif
14889
14890/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14891   find out it does not work in some platform. */
14892#ifndef LT_DLLAZY_OR_NOW
14893#  ifdef RTLD_LAZY
14894#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14895#  else
14896#    ifdef DL_LAZY
14897#      define LT_DLLAZY_OR_NOW		DL_LAZY
14898#    else
14899#      ifdef RTLD_NOW
14900#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14901#      else
14902#        ifdef DL_NOW
14903#          define LT_DLLAZY_OR_NOW	DL_NOW
14904#        else
14905#          define LT_DLLAZY_OR_NOW	0
14906#        endif
14907#      endif
14908#    endif
14909#  endif
14910#endif
14911
14912#ifdef __cplusplus
14913extern "C" void exit (int);
14914#endif
14915
14916void fnord() { int i=42;}
14917int main ()
14918{
14919  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14920  int status = $lt_dlunknown;
14921
14922  if (self)
14923    {
14924      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14925      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14926      /* dlclose (self); */
14927    }
14928
14929    exit (status);
14930}
14931EOF
14932  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933  (eval $ac_link) 2>&5
14934  ac_status=$?
14935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14937    (./conftest; exit; ) 2>/dev/null
14938    lt_status=$?
14939    case x$lt_status in
14940      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14941      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14942      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14943    esac
14944  else :
14945    # compilation failed
14946    lt_cv_dlopen_self_static=no
14947  fi
14948fi
14949rm -fr conftest*
14950
14951
14952fi
14953echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14954echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14955    fi
14956
14957    CPPFLAGS="$save_CPPFLAGS"
14958    LDFLAGS="$save_LDFLAGS"
14959    LIBS="$save_LIBS"
14960    ;;
14961  esac
14962
14963  case $lt_cv_dlopen_self in
14964  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14965  *) enable_dlopen_self=unknown ;;
14966  esac
14967
14968  case $lt_cv_dlopen_self_static in
14969  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14970  *) enable_dlopen_self_static=unknown ;;
14971  esac
14972fi
14973
14974
14975# Report which librarie types wil actually be built
14976echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14977echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14978echo "$as_me:$LINENO: result: $can_build_shared" >&5
14979echo "${ECHO_T}$can_build_shared" >&6
14980
14981echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14982echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14983test "$can_build_shared" = "no" && enable_shared=no
14984
14985# On AIX, shared libraries and static libraries use the same namespace, and
14986# are all built from PIC.
14987case "$host_os" in
14988aix3*)
14989  test "$enable_shared" = yes && enable_static=no
14990  if test -n "$RANLIB"; then
14991    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14992    postinstall_cmds='$RANLIB $lib'
14993  fi
14994  ;;
14995
14996aix4* | aix5*)
14997  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14998    test "$enable_shared" = yes && enable_static=no
14999  fi
15000    ;;
15001esac
15002echo "$as_me:$LINENO: result: $enable_shared" >&5
15003echo "${ECHO_T}$enable_shared" >&6
15004
15005echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15006echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15007# Make sure either enable_shared or enable_static is yes.
15008test "$enable_shared" = yes || enable_static=yes
15009echo "$as_me:$LINENO: result: $enable_static" >&5
15010echo "${ECHO_T}$enable_static" >&6
15011
15012# The else clause should only fire when bootstrapping the
15013# libtool distribution, otherwise you forgot to ship ltmain.sh
15014# with your package, and you will get complaints that there are
15015# no rules to generate ltmain.sh.
15016if test -f "$ltmain"; then
15017  # See if we are running on zsh, and set the options which allow our commands through
15018  # without removal of \ escapes.
15019  if test -n "${ZSH_VERSION+set}" ; then
15020    setopt NO_GLOB_SUBST
15021  fi
15022  # Now quote all the things that may contain metacharacters while being
15023  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15024  # variables and quote the copies for generation of the libtool script.
15025  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15026    SED SHELL STRIP \
15027    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15028    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15029    deplibs_check_method reload_flag reload_cmds need_locks \
15030    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15031    lt_cv_sys_global_symbol_to_c_name_address \
15032    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15033    old_postinstall_cmds old_postuninstall_cmds \
15034    compiler \
15035    CC \
15036    LD \
15037    lt_prog_compiler_wl \
15038    lt_prog_compiler_pic \
15039    lt_prog_compiler_static \
15040    lt_prog_compiler_no_builtin_flag \
15041    export_dynamic_flag_spec \
15042    thread_safe_flag_spec \
15043    whole_archive_flag_spec \
15044    enable_shared_with_static_runtimes \
15045    old_archive_cmds \
15046    old_archive_from_new_cmds \
15047    predep_objects \
15048    postdep_objects \
15049    predeps \
15050    postdeps \
15051    compiler_lib_search_path \
15052    archive_cmds \
15053    archive_expsym_cmds \
15054    postinstall_cmds \
15055    postuninstall_cmds \
15056    old_archive_from_expsyms_cmds \
15057    allow_undefined_flag \
15058    no_undefined_flag \
15059    export_symbols_cmds \
15060    hardcode_libdir_flag_spec \
15061    hardcode_libdir_flag_spec_ld \
15062    hardcode_libdir_separator \
15063    hardcode_automatic \
15064    module_cmds \
15065    module_expsym_cmds \
15066    lt_cv_prog_compiler_c_o \
15067    exclude_expsyms \
15068    include_expsyms; do
15069
15070    case $var in
15071    old_archive_cmds | \
15072    old_archive_from_new_cmds | \
15073    archive_cmds | \
15074    archive_expsym_cmds | \
15075    module_cmds | \
15076    module_expsym_cmds | \
15077    old_archive_from_expsyms_cmds | \
15078    export_symbols_cmds | \
15079    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15080    postinstall_cmds | postuninstall_cmds | \
15081    old_postinstall_cmds | old_postuninstall_cmds | \
15082    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15083      # Double-quote double-evaled strings.
15084      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15085      ;;
15086    *)
15087      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15088      ;;
15089    esac
15090  done
15091
15092  case $lt_echo in
15093  *'\$0 --fallback-echo"')
15094    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15095    ;;
15096  esac
15097
15098cfgfile="${ofile}T"
15099  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15100  $rm -f "$cfgfile"
15101  { echo "$as_me:$LINENO: creating $ofile" >&5
15102echo "$as_me: creating $ofile" >&6;}
15103
15104  cat <<__EOF__ >> "$cfgfile"
15105#! $SHELL
15106
15107# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15108# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15109# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15110#
15111# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15112# Free Software Foundation, Inc.
15113#
15114# This file is part of GNU Libtool:
15115# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15116#
15117# This program is free software; you can redistribute it and/or modify
15118# it under the terms of the GNU General Public License as published by
15119# the Free Software Foundation; either version 2 of the License, or
15120# (at your option) any later version.
15121#
15122# This program is distributed in the hope that it will be useful, but
15123# WITHOUT ANY WARRANTY; without even the implied warranty of
15124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15125# General Public License for more details.
15126#
15127# You should have received a copy of the GNU General Public License
15128# along with this program; if not, write to the Free Software
15129# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15130#
15131# As a special exception to the GNU General Public License, if you
15132# distribute this file as part of a program that contains a
15133# configuration script generated by Autoconf, you may include it under
15134# the same distribution terms that you use for the rest of that program.
15135
15136# A sed program that does not truncate output.
15137SED=$lt_SED
15138
15139# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15140Xsed="$SED -e s/^X//"
15141
15142# The HP-UX ksh and POSIX shell print the target directory to stdout
15143# if CDPATH is set.
15144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15145
15146# The names of the tagged configurations supported by this script.
15147available_tags=
15148
15149# ### BEGIN LIBTOOL CONFIG
15150
15151# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15152
15153# Shell to use when invoking shell scripts.
15154SHELL=$lt_SHELL
15155
15156# Whether or not to build shared libraries.
15157build_libtool_libs=$enable_shared
15158
15159# Whether or not to build static libraries.
15160build_old_libs=$enable_static
15161
15162# Whether or not to add -lc for building shared libraries.
15163build_libtool_need_lc=$archive_cmds_need_lc
15164
15165# Whether or not to disallow shared libs when runtime libs are static
15166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15167
15168# Whether or not to optimize for fast installation.
15169fast_install=$enable_fast_install
15170
15171# The host system.
15172host_alias=$host_alias
15173host=$host
15174
15175# An echo program that does not interpret backslashes.
15176echo=$lt_echo
15177
15178# The archiver.
15179AR=$lt_AR
15180AR_FLAGS=$lt_AR_FLAGS
15181
15182# A C compiler.
15183LTCC=$lt_LTCC
15184
15185# A language-specific compiler.
15186CC=$lt_compiler
15187
15188# Is the compiler the GNU C compiler?
15189with_gcc=$GCC
15190
15191# An ERE matcher.
15192EGREP=$lt_EGREP
15193
15194# The linker used to build libraries.
15195LD=$lt_LD
15196
15197# Whether we need hard or soft links.
15198LN_S=$lt_LN_S
15199
15200# A BSD-compatible nm program.
15201NM=$lt_NM
15202
15203# A symbol stripping program
15204STRIP=$lt_STRIP
15205
15206# Used to examine libraries when file_magic_cmd begins "file"
15207MAGIC_CMD=$MAGIC_CMD
15208
15209# Used on cygwin: DLL creation program.
15210DLLTOOL="$DLLTOOL"
15211
15212# Used on cygwin: object dumper.
15213OBJDUMP="$OBJDUMP"
15214
15215# Used on cygwin: assembler.
15216AS="$AS"
15217
15218# The name of the directory that contains temporary libtool files.
15219objdir=$objdir
15220
15221# How to create reloadable object files.
15222reload_flag=$lt_reload_flag
15223reload_cmds=$lt_reload_cmds
15224
15225# How to pass a linker flag through the compiler.
15226wl=$lt_lt_prog_compiler_wl
15227
15228# Object file suffix (normally "o").
15229objext="$ac_objext"
15230
15231# Old archive suffix (normally "a").
15232libext="$libext"
15233
15234# Shared library suffix (normally ".so").
15235shrext_cmds='$shrext_cmds'
15236
15237# Executable file suffix (normally "").
15238exeext="$exeext"
15239
15240# Additional compiler flags for building library objects.
15241pic_flag=$lt_lt_prog_compiler_pic
15242pic_mode=$pic_mode
15243
15244# What is the maximum length of a command?
15245max_cmd_len=$lt_cv_sys_max_cmd_len
15246
15247# Does compiler simultaneously support -c and -o options?
15248compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15249
15250# Must we lock files when doing compilation ?
15251need_locks=$lt_need_locks
15252
15253# Do we need the lib prefix for modules?
15254need_lib_prefix=$need_lib_prefix
15255
15256# Do we need a version for libraries?
15257need_version=$need_version
15258
15259# Whether dlopen is supported.
15260dlopen_support=$enable_dlopen
15261
15262# Whether dlopen of programs is supported.
15263dlopen_self=$enable_dlopen_self
15264
15265# Whether dlopen of statically linked programs is supported.
15266dlopen_self_static=$enable_dlopen_self_static
15267
15268# Compiler flag to prevent dynamic linking.
15269link_static_flag=$lt_lt_prog_compiler_static
15270
15271# Compiler flag to turn off builtin functions.
15272no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15273
15274# Compiler flag to allow reflexive dlopens.
15275export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15276
15277# Compiler flag to generate shared objects directly from archives.
15278whole_archive_flag_spec=$lt_whole_archive_flag_spec
15279
15280# Compiler flag to generate thread-safe objects.
15281thread_safe_flag_spec=$lt_thread_safe_flag_spec
15282
15283# Library versioning type.
15284version_type=$version_type
15285
15286# Format of library name prefix.
15287libname_spec=$lt_libname_spec
15288
15289# List of archive names.  First name is the real one, the rest are links.
15290# The last name is the one that the linker finds with -lNAME.
15291library_names_spec=$lt_library_names_spec
15292
15293# The coded name of the library, if different from the real name.
15294soname_spec=$lt_soname_spec
15295
15296# Commands used to build and install an old-style archive.
15297RANLIB=$lt_RANLIB
15298old_archive_cmds=$lt_old_archive_cmds
15299old_postinstall_cmds=$lt_old_postinstall_cmds
15300old_postuninstall_cmds=$lt_old_postuninstall_cmds
15301
15302# Create an old-style archive from a shared archive.
15303old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15304
15305# Create a temporary old-style archive to link instead of a shared archive.
15306old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15307
15308# Commands used to build and install a shared archive.
15309archive_cmds=$lt_archive_cmds
15310archive_expsym_cmds=$lt_archive_expsym_cmds
15311postinstall_cmds=$lt_postinstall_cmds
15312postuninstall_cmds=$lt_postuninstall_cmds
15313
15314# Commands used to build a loadable module (assumed same as above if empty)
15315module_cmds=$lt_module_cmds
15316module_expsym_cmds=$lt_module_expsym_cmds
15317
15318# Commands to strip libraries.
15319old_striplib=$lt_old_striplib
15320striplib=$lt_striplib
15321
15322# Dependencies to place before the objects being linked to create a
15323# shared library.
15324predep_objects=$lt_predep_objects
15325
15326# Dependencies to place after the objects being linked to create a
15327# shared library.
15328postdep_objects=$lt_postdep_objects
15329
15330# Dependencies to place before the objects being linked to create a
15331# shared library.
15332predeps=$lt_predeps
15333
15334# Dependencies to place after the objects being linked to create a
15335# shared library.
15336postdeps=$lt_postdeps
15337
15338# The library search path used internally by the compiler when linking
15339# a shared library.
15340compiler_lib_search_path=$lt_compiler_lib_search_path
15341
15342# Method to check whether dependent libraries are shared objects.
15343deplibs_check_method=$lt_deplibs_check_method
15344
15345# Command to use when deplibs_check_method == file_magic.
15346file_magic_cmd=$lt_file_magic_cmd
15347
15348# Flag that allows shared libraries with undefined symbols to be built.
15349allow_undefined_flag=$lt_allow_undefined_flag
15350
15351# Flag that forces no undefined symbols.
15352no_undefined_flag=$lt_no_undefined_flag
15353
15354# Commands used to finish a libtool library installation in a directory.
15355finish_cmds=$lt_finish_cmds
15356
15357# Same as above, but a single script fragment to be evaled but not shown.
15358finish_eval=$lt_finish_eval
15359
15360# Take the output of nm and produce a listing of raw symbols and C names.
15361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15362
15363# Transform the output of nm in a proper C declaration
15364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15365
15366# Transform the output of nm in a C name address pair
15367global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15368
15369# This is the shared library runtime path variable.
15370runpath_var=$runpath_var
15371
15372# This is the shared library path variable.
15373shlibpath_var=$shlibpath_var
15374
15375# Is shlibpath searched before the hard-coded library search path?
15376shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15377
15378# How to hardcode a shared library path into an executable.
15379hardcode_action=$hardcode_action
15380
15381# Whether we should hardcode library paths into libraries.
15382hardcode_into_libs=$hardcode_into_libs
15383
15384# Flag to hardcode \$libdir into a binary during linking.
15385# This must work even if \$libdir does not exist.
15386hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15387
15388# If ld is used when linking, flag to hardcode \$libdir into
15389# a binary during linking. This must work even if \$libdir does
15390# not exist.
15391hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15392
15393# Whether we need a single -rpath flag with a separated argument.
15394hardcode_libdir_separator=$lt_hardcode_libdir_separator
15395
15396# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15397# resulting binary.
15398hardcode_direct=$hardcode_direct
15399
15400# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15401# resulting binary.
15402hardcode_minus_L=$hardcode_minus_L
15403
15404# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15405# the resulting binary.
15406hardcode_shlibpath_var=$hardcode_shlibpath_var
15407
15408# Set to yes if building a shared library automatically hardcodes DIR into the library
15409# and all subsequent libraries and executables linked against it.
15410hardcode_automatic=$hardcode_automatic
15411
15412# Variables whose values should be saved in libtool wrapper scripts and
15413# restored at relink time.
15414variables_saved_for_relink="$variables_saved_for_relink"
15415
15416# Whether libtool must link a program against all its dependency libraries.
15417link_all_deplibs=$link_all_deplibs
15418
15419# Compile-time system search path for libraries
15420sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15421
15422# Run-time system search path for libraries
15423sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15424
15425# Fix the shell variable \$srcfile for the compiler.
15426fix_srcfile_path="$fix_srcfile_path"
15427
15428# Set to yes if exported symbols are required.
15429always_export_symbols=$always_export_symbols
15430
15431# The commands to list exported symbols.
15432export_symbols_cmds=$lt_export_symbols_cmds
15433
15434# The commands to extract the exported symbol list from a shared archive.
15435extract_expsyms_cmds=$lt_extract_expsyms_cmds
15436
15437# Symbols that should not be listed in the preloaded symbols.
15438exclude_expsyms=$lt_exclude_expsyms
15439
15440# Symbols that must always be exported.
15441include_expsyms=$lt_include_expsyms
15442
15443# ### END LIBTOOL CONFIG
15444
15445__EOF__
15446
15447
15448  case $host_os in
15449  aix3*)
15450    cat <<\EOF >> "$cfgfile"
15451
15452# AIX sometimes has problems with the GCC collect2 program.  For some
15453# reason, if we set the COLLECT_NAMES environment variable, the problems
15454# vanish in a puff of smoke.
15455if test "X${COLLECT_NAMES+set}" != Xset; then
15456  COLLECT_NAMES=
15457  export COLLECT_NAMES
15458fi
15459EOF
15460    ;;
15461  esac
15462
15463  # We use sed instead of cat because bash on DJGPP gets confused if
15464  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15465  # text mode, it properly converts lines to CR/LF.  This bash problem
15466  # is reportedly fixed, but why not run on old versions too?
15467  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15468
15469  mv -f "$cfgfile" "$ofile" || \
15470    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15471  chmod +x "$ofile"
15472
15473else
15474  # If there is no Makefile yet, we rely on a make rule to execute
15475  # `config.status --recheck' to rerun these tests and create the
15476  # libtool script then.
15477  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15478  if test -f "$ltmain_in"; then
15479    test -f Makefile && make "$ltmain"
15480  fi
15481fi
15482
15483
15484ac_ext=c
15485ac_cpp='$CPP $CPPFLAGS'
15486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489
15490CC="$lt_save_CC"
15491
15492
15493# Check whether --with-tags or --without-tags was given.
15494if test "${with_tags+set}" = set; then
15495  withval="$with_tags"
15496  tagnames="$withval"
15497fi;
15498
15499if test -f "$ltmain" && test -n "$tagnames"; then
15500  if test ! -f "${ofile}"; then
15501    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15502echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15503  fi
15504
15505  if test -z "$LTCC"; then
15506    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15507    if test -z "$LTCC"; then
15508      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15509echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15510    else
15511      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15512echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15513    fi
15514  fi
15515
15516  # Extract list of available tagged configurations in $ofile.
15517  # Note that this assumes the entire list is on one line.
15518  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15519
15520  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15521  for tagname in $tagnames; do
15522    IFS="$lt_save_ifs"
15523    # Check whether tagname contains only valid characters
15524    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15525    "") ;;
15526    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15527echo "$as_me: error: invalid tag name: $tagname" >&2;}
15528   { (exit 1); exit 1; }; }
15529	;;
15530    esac
15531
15532    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15533    then
15534      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15535echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15536   { (exit 1); exit 1; }; }
15537    fi
15538
15539    # Update the list of available tags.
15540    if test -n "$tagname"; then
15541      echo appending configuration tag "$tagname" to $ofile
15542
15543      case $tagname in
15544      CXX)
15545	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15546	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15547	    (test "X$CXX" != "Xg++"))) ; then
15548	  ac_ext=cc
15549ac_cpp='$CXXCPP $CPPFLAGS'
15550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15553
15554
15555
15556
15557archive_cmds_need_lc_CXX=no
15558allow_undefined_flag_CXX=
15559always_export_symbols_CXX=no
15560archive_expsym_cmds_CXX=
15561export_dynamic_flag_spec_CXX=
15562hardcode_direct_CXX=no
15563hardcode_libdir_flag_spec_CXX=
15564hardcode_libdir_flag_spec_ld_CXX=
15565hardcode_libdir_separator_CXX=
15566hardcode_minus_L_CXX=no
15567hardcode_automatic_CXX=no
15568module_cmds_CXX=
15569module_expsym_cmds_CXX=
15570link_all_deplibs_CXX=unknown
15571old_archive_cmds_CXX=$old_archive_cmds
15572no_undefined_flag_CXX=
15573whole_archive_flag_spec_CXX=
15574enable_shared_with_static_runtimes_CXX=no
15575
15576# Dependencies to place before and after the object being linked:
15577predep_objects_CXX=
15578postdep_objects_CXX=
15579predeps_CXX=
15580postdeps_CXX=
15581compiler_lib_search_path_CXX=
15582
15583# Source file extension for C++ test sources.
15584ac_ext=cc
15585
15586# Object file extension for compiled C++ test sources.
15587objext=o
15588objext_CXX=$objext
15589
15590# Code to be used in simple compile tests
15591lt_simple_compile_test_code="int some_variable = 0;\n"
15592
15593# Code to be used in simple link tests
15594lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15595
15596# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15597
15598# If no C compiler was specified, use CC.
15599LTCC=${LTCC-"$CC"}
15600
15601# Allow CC to be a program name with arguments.
15602compiler=$CC
15603
15604
15605# Allow CC to be a program name with arguments.
15606lt_save_CC=$CC
15607lt_save_LD=$LD
15608lt_save_GCC=$GCC
15609GCC=$GXX
15610lt_save_with_gnu_ld=$with_gnu_ld
15611lt_save_path_LD=$lt_cv_path_LD
15612if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15613  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15614else
15615  unset lt_cv_prog_gnu_ld
15616fi
15617if test -n "${lt_cv_path_LDCXX+set}"; then
15618  lt_cv_path_LD=$lt_cv_path_LDCXX
15619else
15620  unset lt_cv_path_LD
15621fi
15622test -z "${LDCXX+set}" || LD=$LDCXX
15623CC=${CXX-"c++"}
15624compiler=$CC
15625compiler_CXX=$CC
15626cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15627
15628# We don't want -fno-exception wen compiling C++ code, so set the
15629# no_builtin_flag separately
15630if test "$GXX" = yes; then
15631  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15632else
15633  lt_prog_compiler_no_builtin_flag_CXX=
15634fi
15635
15636if test "$GXX" = yes; then
15637  # Set up default GNU C++ configuration
15638
15639
15640# Check whether --with-gnu-ld or --without-gnu-ld was given.
15641if test "${with_gnu_ld+set}" = set; then
15642  withval="$with_gnu_ld"
15643  test "$withval" = no || with_gnu_ld=yes
15644else
15645  with_gnu_ld=no
15646fi;
15647ac_prog=ld
15648if test "$GCC" = yes; then
15649  # Check if gcc -print-prog-name=ld gives a path.
15650  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15651echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15652  case $host in
15653  *-*-mingw*)
15654    # gcc leaves a trailing carriage return which upsets mingw
15655    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15656  *)
15657    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15658  esac
15659  case $ac_prog in
15660    # Accept absolute paths.
15661    [\\/]* | ?:[\\/]*)
15662      re_direlt='/[^/][^/]*/\.\./'
15663      # Canonicalize the pathname of ld
15664      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15665      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15666	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15667      done
15668      test -z "$LD" && LD="$ac_prog"
15669      ;;
15670  "")
15671    # If it fails, then pretend we aren't using GCC.
15672    ac_prog=ld
15673    ;;
15674  *)
15675    # If it is relative, then search for the first ld in PATH.
15676    with_gnu_ld=unknown
15677    ;;
15678  esac
15679elif test "$with_gnu_ld" = yes; then
15680  echo "$as_me:$LINENO: checking for GNU ld" >&5
15681echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15682else
15683  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15684echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15685fi
15686if test "${lt_cv_path_LD+set}" = set; then
15687  echo $ECHO_N "(cached) $ECHO_C" >&6
15688else
15689  if test -z "$LD"; then
15690  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15691  for ac_dir in $PATH; do
15692    IFS="$lt_save_ifs"
15693    test -z "$ac_dir" && ac_dir=.
15694    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15695      lt_cv_path_LD="$ac_dir/$ac_prog"
15696      # Check to see if the program is GNU ld.  I'd rather use --version,
15697      # but apparently some GNU ld's only accept -v.
15698      # Break only if it was the GNU/non-GNU ld that we prefer.
15699      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15700      *GNU* | *'with BFD'*)
15701	test "$with_gnu_ld" != no && break
15702	;;
15703      *)
15704	test "$with_gnu_ld" != yes && break
15705	;;
15706      esac
15707    fi
15708  done
15709  IFS="$lt_save_ifs"
15710else
15711  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15712fi
15713fi
15714
15715LD="$lt_cv_path_LD"
15716if test -n "$LD"; then
15717  echo "$as_me:$LINENO: result: $LD" >&5
15718echo "${ECHO_T}$LD" >&6
15719else
15720  echo "$as_me:$LINENO: result: no" >&5
15721echo "${ECHO_T}no" >&6
15722fi
15723test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15724echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15725   { (exit 1); exit 1; }; }
15726echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15727echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15728if test "${lt_cv_prog_gnu_ld+set}" = set; then
15729  echo $ECHO_N "(cached) $ECHO_C" >&6
15730else
15731  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15732case `$LD -v 2>&1 </dev/null` in
15733*GNU* | *'with BFD'*)
15734  lt_cv_prog_gnu_ld=yes
15735  ;;
15736*)
15737  lt_cv_prog_gnu_ld=no
15738  ;;
15739esac
15740fi
15741echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15742echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15743with_gnu_ld=$lt_cv_prog_gnu_ld
15744
15745
15746
15747  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15748  # archiving commands below assume that GNU ld is being used.
15749  if test "$with_gnu_ld" = yes; then
15750    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15751    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'
15752
15753    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15754    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15755
15756    # If archive_cmds runs LD, not CC, wlarc should be empty
15757    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15758    #     investigate it a little bit more. (MM)
15759    wlarc='${wl}'
15760
15761    # ancient GNU ld didn't support --whole-archive et. al.
15762    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15763	grep 'no-whole-archive' > /dev/null; then
15764      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15765    else
15766      whole_archive_flag_spec_CXX=
15767    fi
15768  else
15769    with_gnu_ld=no
15770    wlarc=
15771
15772    # A generic and very simple default shared library creation
15773    # command for GNU C++ for the case where it uses the native
15774    # linker, instead of GNU ld.  If possible, this setting should
15775    # overridden to take advantage of the native linker features on
15776    # the platform it is being used on.
15777    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15778  fi
15779
15780  # Commands to make compiler produce verbose output that lists
15781  # what "hidden" libraries, object files and flags are used when
15782  # linking a shared library.
15783  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15784
15785else
15786  GXX=no
15787  with_gnu_ld=no
15788  wlarc=
15789fi
15790
15791# PORTME: fill in a description of your system's C++ link characteristics
15792echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15793echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15794ld_shlibs_CXX=yes
15795case $host_os in
15796  aix3*)
15797    # FIXME: insert proper C++ library support
15798    ld_shlibs_CXX=no
15799    ;;
15800  aix4* | aix5*)
15801    if test "$host_cpu" = ia64; then
15802      # On IA64, the linker does run time linking by default, so we don't
15803      # have to do anything special.
15804      aix_use_runtimelinking=no
15805      exp_sym_flag='-Bexport'
15806      no_entry_flag=""
15807    else
15808      aix_use_runtimelinking=no
15809
15810      # Test if we are trying to use run time linking or normal
15811      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15812      # need to do runtime linking.
15813      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15814	for ld_flag in $LDFLAGS; do
15815	  case $ld_flag in
15816	  *-brtl*)
15817	    aix_use_runtimelinking=yes
15818	    break
15819	    ;;
15820	  esac
15821	done
15822      esac
15823
15824      exp_sym_flag='-bexport'
15825      no_entry_flag='-bnoentry'
15826    fi
15827
15828    # When large executables or shared objects are built, AIX ld can
15829    # have problems creating the table of contents.  If linking a library
15830    # or program results in "error TOC overflow" add -mminimal-toc to
15831    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15832    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15833
15834    archive_cmds_CXX=''
15835    hardcode_direct_CXX=yes
15836    hardcode_libdir_separator_CXX=':'
15837    link_all_deplibs_CXX=yes
15838
15839    if test "$GXX" = yes; then
15840      case $host_os in aix4.012|aix4.012.*)
15841      # We only want to do this on AIX 4.2 and lower, the check
15842      # below for broken collect2 doesn't work under 4.3+
15843	collect2name=`${CC} -print-prog-name=collect2`
15844	if test -f "$collect2name" && \
15845	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15846	then
15847	  # We have reworked collect2
15848	  hardcode_direct_CXX=yes
15849	else
15850	  # We have old collect2
15851	  hardcode_direct_CXX=unsupported
15852	  # It fails to find uninstalled libraries when the uninstalled
15853	  # path is not listed in the libpath.  Setting hardcode_minus_L
15854	  # to unsupported forces relinking
15855	  hardcode_minus_L_CXX=yes
15856	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15857	  hardcode_libdir_separator_CXX=
15858	fi
15859      esac
15860      shared_flag='-shared'
15861    else
15862      # not using gcc
15863      if test "$host_cpu" = ia64; then
15864	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15865	# chokes on -Wl,-G. The following line is correct:
15866	shared_flag='-G'
15867      else
15868	if test "$aix_use_runtimelinking" = yes; then
15869	  shared_flag='${wl}-G'
15870	else
15871	  shared_flag='${wl}-bM:SRE'
15872	fi
15873      fi
15874    fi
15875
15876    # It seems that -bexpall does not export symbols beginning with
15877    # underscore (_), so it is better to generate a list of symbols to export.
15878    always_export_symbols_CXX=yes
15879    if test "$aix_use_runtimelinking" = yes; then
15880      # Warning - without using the other runtime loading flags (-brtl),
15881      # -berok will link without error, but may produce a broken library.
15882      allow_undefined_flag_CXX='-berok'
15883      # Determine the default libpath from the value encoded in an empty executable.
15884      cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h.  */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h.  */
15890
15891int
15892main ()
15893{
15894
15895  ;
15896  return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext conftest$ac_exeext
15900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901  (eval $ac_link) 2>conftest.er1
15902  ac_status=$?
15903  grep -v '^ *+' conftest.er1 >conftest.err
15904  rm -f conftest.er1
15905  cat conftest.err >&5
15906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907  (exit $ac_status); } &&
15908	 { ac_try='test -z "$ac_cxx_werror_flag"
15909			 || test ! -s conftest.err'
15910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911  (eval $ac_try) 2>&5
15912  ac_status=$?
15913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914  (exit $ac_status); }; } &&
15915	 { ac_try='test -s conftest$ac_exeext'
15916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917  (eval $ac_try) 2>&5
15918  ac_status=$?
15919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920  (exit $ac_status); }; }; then
15921
15922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15923}'`
15924# Check for a 64-bit object if we didn't find anything.
15925if 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; }
15926}'`; fi
15927else
15928  echo "$as_me: failed program was:" >&5
15929sed 's/^/| /' conftest.$ac_ext >&5
15930
15931fi
15932rm -f conftest.err conftest.$ac_objext \
15933      conftest$ac_exeext conftest.$ac_ext
15934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15935
15936      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15937
15938      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"
15939     else
15940      if test "$host_cpu" = ia64; then
15941	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15942	allow_undefined_flag_CXX="-z nodefs"
15943	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"
15944      else
15945	# Determine the default libpath from the value encoded in an empty executable.
15946	cat >conftest.$ac_ext <<_ACEOF
15947/* confdefs.h.  */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h.  */
15952
15953int
15954main ()
15955{
15956
15957  ;
15958  return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext conftest$ac_exeext
15962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963  (eval $ac_link) 2>conftest.er1
15964  ac_status=$?
15965  grep -v '^ *+' conftest.er1 >conftest.err
15966  rm -f conftest.er1
15967  cat conftest.err >&5
15968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969  (exit $ac_status); } &&
15970	 { ac_try='test -z "$ac_cxx_werror_flag"
15971			 || test ! -s conftest.err'
15972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973  (eval $ac_try) 2>&5
15974  ac_status=$?
15975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976  (exit $ac_status); }; } &&
15977	 { ac_try='test -s conftest$ac_exeext'
15978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979  (eval $ac_try) 2>&5
15980  ac_status=$?
15981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982  (exit $ac_status); }; }; then
15983
15984aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15985}'`
15986# Check for a 64-bit object if we didn't find anything.
15987if 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; }
15988}'`; fi
15989else
15990  echo "$as_me: failed program was:" >&5
15991sed 's/^/| /' conftest.$ac_ext >&5
15992
15993fi
15994rm -f conftest.err conftest.$ac_objext \
15995      conftest$ac_exeext conftest.$ac_ext
15996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15997
15998	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15999	# Warning - without using the other run time loading flags,
16000	# -berok will link without error, but may produce a broken library.
16001	no_undefined_flag_CXX=' ${wl}-bernotok'
16002	allow_undefined_flag_CXX=' ${wl}-berok'
16003	# -bexpall does not export symbols beginning with underscore (_)
16004	always_export_symbols_CXX=yes
16005	# Exported symbols can be pulled into shared objects from archives
16006	whole_archive_flag_spec_CXX=' '
16007	archive_cmds_need_lc_CXX=yes
16008	# This is similar to how AIX traditionally builds it's shared libraries.
16009	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'
16010      fi
16011    fi
16012    ;;
16013  chorus*)
16014    case $cc_basename in
16015      *)
16016	# FIXME: insert proper C++ library support
16017	ld_shlibs_CXX=no
16018	;;
16019    esac
16020    ;;
16021
16022
16023  cygwin* | mingw* | pw32*)
16024    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16025    # as there is no search path for DLLs.
16026    hardcode_libdir_flag_spec_CXX='-L$libdir'
16027    allow_undefined_flag_CXX=unsupported
16028    always_export_symbols_CXX=no
16029    enable_shared_with_static_runtimes_CXX=yes
16030
16031    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16032      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'
16033      # If the export-symbols file already is a .def file (1st line
16034      # is EXPORTS), use it as is; otherwise, prepend...
16035      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16036	cp $export_symbols $output_objdir/$soname.def;
16037      else
16038	echo EXPORTS > $output_objdir/$soname.def;
16039	cat $export_symbols >> $output_objdir/$soname.def;
16040      fi~
16041      $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'
16042    else
16043      ld_shlibs_CXX=no
16044    fi
16045  ;;
16046      darwin* | rhapsody*)
16047        case "$host_os" in
16048        rhapsody* | darwin1.[012])
16049         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16050         ;;
16051       *) # Darwin 1.3 on
16052         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16053           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16054         else
16055           case ${MACOSX_DEPLOYMENT_TARGET} in
16056             10.[012])
16057               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16058               ;;
16059             10.*)
16060               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16061               ;;
16062           esac
16063         fi
16064         ;;
16065        esac
16066      archive_cmds_need_lc_CXX=no
16067      hardcode_direct_CXX=no
16068      hardcode_automatic_CXX=yes
16069      hardcode_shlibpath_var_CXX=unsupported
16070      whole_archive_flag_spec_CXX=''
16071      link_all_deplibs_CXX=yes
16072
16073    if test "$GXX" = yes ; then
16074      lt_int_apple_cc_single_mod=no
16075      output_verbose_link_cmd='echo'
16076      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16077       lt_int_apple_cc_single_mod=yes
16078      fi
16079      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16080       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16081      else
16082          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16083        fi
16084        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16085        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16086          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16087            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}'
16088          else
16089            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16090          fi
16091            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16092      else
16093      case "$cc_basename" in
16094        xlc*)
16095         output_verbose_link_cmd='echo'
16096          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16097          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16098          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16099          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16100          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16101          ;;
16102       *)
16103         ld_shlibs_CXX=no
16104          ;;
16105      esac
16106      fi
16107        ;;
16108
16109  dgux*)
16110    case $cc_basename in
16111      ec++)
16112	# FIXME: insert proper C++ library support
16113	ld_shlibs_CXX=no
16114	;;
16115      ghcx)
16116	# Green Hills C++ Compiler
16117	# FIXME: insert proper C++ library support
16118	ld_shlibs_CXX=no
16119	;;
16120      *)
16121	# FIXME: insert proper C++ library support
16122	ld_shlibs_CXX=no
16123	;;
16124    esac
16125    ;;
16126  freebsd12*)
16127    # C++ shared libraries reported to be fairly broken before switch to ELF
16128    ld_shlibs_CXX=no
16129    ;;
16130  freebsd-elf*)
16131    archive_cmds_need_lc_CXX=no
16132    ;;
16133  freebsd* | kfreebsd*-gnu)
16134    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16135    # conventions
16136    ld_shlibs_CXX=yes
16137    ;;
16138  gnu*)
16139    ;;
16140  hpux9*)
16141    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16142    hardcode_libdir_separator_CXX=:
16143    export_dynamic_flag_spec_CXX='${wl}-E'
16144    hardcode_direct_CXX=yes
16145    hardcode_minus_L_CXX=yes # Not in the search PATH,
16146				# but as the default
16147				# location of the library.
16148
16149    case $cc_basename in
16150    CC)
16151      # FIXME: insert proper C++ library support
16152      ld_shlibs_CXX=no
16153      ;;
16154    aCC)
16155      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'
16156      # Commands to make compiler produce verbose output that lists
16157      # what "hidden" libraries, object files and flags are used when
16158      # linking a shared library.
16159      #
16160      # There doesn't appear to be a way to prevent this compiler from
16161      # explicitly linking system object files so we need to strip them
16162      # from the output so that they don't get included in the library
16163      # dependencies.
16164      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'
16165      ;;
16166    *)
16167      if test "$GXX" = yes; then
16168        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'
16169      else
16170        # FIXME: insert proper C++ library support
16171        ld_shlibs_CXX=no
16172      fi
16173      ;;
16174    esac
16175    ;;
16176  hpux10*|hpux11*)
16177    if test $with_gnu_ld = no; then
16178      case "$host_cpu" in
16179      hppa*64*)
16180	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16181	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16182	hardcode_libdir_separator_CXX=:
16183        ;;
16184      ia64*)
16185	hardcode_libdir_flag_spec_CXX='-L$libdir'
16186        ;;
16187      *)
16188	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16189	hardcode_libdir_separator_CXX=:
16190	export_dynamic_flag_spec_CXX='${wl}-E'
16191        ;;
16192      esac
16193    fi
16194    case "$host_cpu" in
16195    hppa*64*)
16196      hardcode_direct_CXX=no
16197      hardcode_shlibpath_var_CXX=no
16198      ;;
16199    ia64*)
16200      hardcode_direct_CXX=no
16201      hardcode_shlibpath_var_CXX=no
16202      hardcode_minus_L_CXX=yes # Not in the search PATH,
16203					      # but as the default
16204					      # location of the library.
16205      ;;
16206    *)
16207      hardcode_direct_CXX=yes
16208      hardcode_minus_L_CXX=yes # Not in the search PATH,
16209					      # but as the default
16210					      # location of the library.
16211      ;;
16212    esac
16213
16214    case $cc_basename in
16215      CC)
16216	# FIXME: insert proper C++ library support
16217	ld_shlibs_CXX=no
16218	;;
16219      aCC)
16220	case "$host_cpu" in
16221	hppa*64*|ia64*)
16222	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16223	  ;;
16224	*)
16225	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16226	  ;;
16227	esac
16228	# Commands to make compiler produce verbose output that lists
16229	# what "hidden" libraries, object files and flags are used when
16230	# linking a shared library.
16231	#
16232	# There doesn't appear to be a way to prevent this compiler from
16233	# explicitly linking system object files so we need to strip them
16234	# from the output so that they don't get included in the library
16235	# dependencies.
16236	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'
16237	;;
16238      *)
16239	if test "$GXX" = yes; then
16240	  if test $with_gnu_ld = no; then
16241	    case "$host_cpu" in
16242	    ia64*|hppa*64*)
16243	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16244	      ;;
16245	    *)
16246	      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'
16247	      ;;
16248	    esac
16249	  fi
16250	else
16251	  # FIXME: insert proper C++ library support
16252	  ld_shlibs_CXX=no
16253	fi
16254	;;
16255    esac
16256    ;;
16257  irix5* | irix6*)
16258    case $cc_basename in
16259      CC)
16260	# SGI C++
16261	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'
16262
16263	# Archives containing C++ object files must be created using
16264	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16265	# necessary to make sure instantiated templates are included
16266	# in the archive.
16267	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16268	;;
16269      *)
16270	if test "$GXX" = yes; then
16271	  if test "$with_gnu_ld" = no; then
16272	    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'
16273	  else
16274	    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'
16275	  fi
16276	fi
16277	link_all_deplibs_CXX=yes
16278	;;
16279    esac
16280    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16281    hardcode_libdir_separator_CXX=:
16282    ;;
16283  linux*)
16284    case $cc_basename in
16285      KCC)
16286	# Kuck and Associates, Inc. (KAI) C++ Compiler
16287
16288	# KCC will only create a shared library if the output file
16289	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16290	# to its proper name (with version) after linking.
16291	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'
16292	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'
16293	# Commands to make compiler produce verbose output that lists
16294	# what "hidden" libraries, object files and flags are used when
16295	# linking a shared library.
16296	#
16297	# There doesn't appear to be a way to prevent this compiler from
16298	# explicitly linking system object files so we need to strip them
16299	# from the output so that they don't get included in the library
16300	# dependencies.
16301	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'
16302
16303	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16304	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16305
16306	# Archives containing C++ object files must be created using
16307	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16308	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16309	;;
16310      icpc)
16311	# Intel C++
16312	with_gnu_ld=yes
16313	# version 8.0 and above of icpc choke on multiply defined symbols
16314	# if we add $predep_objects and $postdep_objects, however 7.1 and
16315	# earlier do not add the objects themselves.
16316	case `$CC -V 2>&1` in
16317	*"Version 7."*)
16318  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16319  	  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'
16320	  ;;
16321	*)  # Version 8.0 or newer
16322  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16324	  ;;
16325	esac
16326	archive_cmds_need_lc_CXX=no
16327	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16328	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16329	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16330	;;
16331      cxx)
16332	# Compaq C++
16333	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16334	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'
16335
16336	runpath_var=LD_RUN_PATH
16337	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16338	hardcode_libdir_separator_CXX=:
16339
16340	# Commands to make compiler produce verbose output that lists
16341	# what "hidden" libraries, object files and flags are used when
16342	# linking a shared library.
16343	#
16344	# There doesn't appear to be a way to prevent this compiler from
16345	# explicitly linking system object files so we need to strip them
16346	# from the output so that they don't get included in the library
16347	# dependencies.
16348	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'
16349	;;
16350    esac
16351    ;;
16352  lynxos*)
16353    # FIXME: insert proper C++ library support
16354    ld_shlibs_CXX=no
16355    ;;
16356  m88k*)
16357    # FIXME: insert proper C++ library support
16358    ld_shlibs_CXX=no
16359    ;;
16360  mvs*)
16361    case $cc_basename in
16362      cxx)
16363	# FIXME: insert proper C++ library support
16364	ld_shlibs_CXX=no
16365	;;
16366      *)
16367	# FIXME: insert proper C++ library support
16368	ld_shlibs_CXX=no
16369	;;
16370    esac
16371    ;;
16372  netbsd*)
16373    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16374      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16375      wlarc=
16376      hardcode_libdir_flag_spec_CXX='-R$libdir'
16377      hardcode_direct_CXX=yes
16378      hardcode_shlibpath_var_CXX=no
16379    fi
16380    # Workaround some broken pre-1.5 toolchains
16381    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16382    ;;
16383  openbsd2*)
16384    # C++ shared libraries are fairly broken
16385    ld_shlibs_CXX=no
16386    ;;
16387  openbsd*)
16388    hardcode_direct_CXX=yes
16389    hardcode_shlibpath_var_CXX=no
16390    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16391    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16392    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16393      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16394      export_dynamic_flag_spec_CXX='${wl}-E'
16395      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16396    fi
16397    output_verbose_link_cmd='echo'
16398    ;;
16399  osf3*)
16400    case $cc_basename in
16401      KCC)
16402	# Kuck and Associates, Inc. (KAI) C++ Compiler
16403
16404	# KCC will only create a shared library if the output file
16405	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16406	# to its proper name (with version) after linking.
16407	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'
16408
16409	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16410	hardcode_libdir_separator_CXX=:
16411
16412	# Archives containing C++ object files must be created using
16413	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16414	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16415
16416	;;
16417      RCC)
16418	# Rational C++ 2.4.1
16419	# FIXME: insert proper C++ library support
16420	ld_shlibs_CXX=no
16421	;;
16422      cxx)
16423	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16424	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'
16425
16426	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16427	hardcode_libdir_separator_CXX=:
16428
16429	# Commands to make compiler produce verbose output that lists
16430	# what "hidden" libraries, object files and flags are used when
16431	# linking a shared library.
16432	#
16433	# There doesn't appear to be a way to prevent this compiler from
16434	# explicitly linking system object files so we need to strip them
16435	# from the output so that they don't get included in the library
16436	# dependencies.
16437	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'
16438	;;
16439      *)
16440	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16441	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16442	  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'
16443
16444	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16445	  hardcode_libdir_separator_CXX=:
16446
16447	  # Commands to make compiler produce verbose output that lists
16448	  # what "hidden" libraries, object files and flags are used when
16449	  # linking a shared library.
16450	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16451
16452	else
16453	  # FIXME: insert proper C++ library support
16454	  ld_shlibs_CXX=no
16455	fi
16456	;;
16457    esac
16458    ;;
16459  osf4* | osf5*)
16460    case $cc_basename in
16461      KCC)
16462	# Kuck and Associates, Inc. (KAI) C++ Compiler
16463
16464	# KCC will only create a shared library if the output file
16465	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16466	# to its proper name (with version) after linking.
16467	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'
16468
16469	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16470	hardcode_libdir_separator_CXX=:
16471
16472	# Archives containing C++ object files must be created using
16473	# the KAI C++ compiler.
16474	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16475	;;
16476      RCC)
16477	# Rational C++ 2.4.1
16478	# FIXME: insert proper C++ library support
16479	ld_shlibs_CXX=no
16480	;;
16481      cxx)
16482	allow_undefined_flag_CXX=' -expect_unresolved \*'
16483	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'
16484	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16485	  echo "-hidden">> $lib.exp~
16486	  $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~
16487	  $rm $lib.exp'
16488
16489	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16490	hardcode_libdir_separator_CXX=:
16491
16492	# Commands to make compiler produce verbose output that lists
16493	# what "hidden" libraries, object files and flags are used when
16494	# linking a shared library.
16495	#
16496	# There doesn't appear to be a way to prevent this compiler from
16497	# explicitly linking system object files so we need to strip them
16498	# from the output so that they don't get included in the library
16499	# dependencies.
16500	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'
16501	;;
16502      *)
16503	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16504	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16505	 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'
16506
16507	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16508	  hardcode_libdir_separator_CXX=:
16509
16510	  # Commands to make compiler produce verbose output that lists
16511	  # what "hidden" libraries, object files and flags are used when
16512	  # linking a shared library.
16513	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16514
16515	else
16516	  # FIXME: insert proper C++ library support
16517	  ld_shlibs_CXX=no
16518	fi
16519	;;
16520    esac
16521    ;;
16522  psos*)
16523    # FIXME: insert proper C++ library support
16524    ld_shlibs_CXX=no
16525    ;;
16526  sco*)
16527    archive_cmds_need_lc_CXX=no
16528    case $cc_basename in
16529      CC)
16530	# FIXME: insert proper C++ library support
16531	ld_shlibs_CXX=no
16532	;;
16533      *)
16534	# FIXME: insert proper C++ library support
16535	ld_shlibs_CXX=no
16536	;;
16537    esac
16538    ;;
16539  sunos4*)
16540    case $cc_basename in
16541      CC)
16542	# Sun C++ 4.x
16543	# FIXME: insert proper C++ library support
16544	ld_shlibs_CXX=no
16545	;;
16546      lcc)
16547	# Lucid
16548	# FIXME: insert proper C++ library support
16549	ld_shlibs_CXX=no
16550	;;
16551      *)
16552	# FIXME: insert proper C++ library support
16553	ld_shlibs_CXX=no
16554	;;
16555    esac
16556    ;;
16557  solaris*)
16558    case $cc_basename in
16559      CC)
16560	# Sun C++ 4.2, 5.x and Centerline C++
16561	no_undefined_flag_CXX=' -zdefs'
16562	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16563	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16564	$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'
16565
16566	hardcode_libdir_flag_spec_CXX='-R$libdir'
16567	hardcode_shlibpath_var_CXX=no
16568	case $host_os in
16569	  solaris2.0-5 | solaris2.0-5.*) ;;
16570	  *)
16571	    # The C++ compiler is used as linker so we must use $wl
16572	    # flag to pass the commands to the underlying system
16573	    # linker.
16574	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16575	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16576	    ;;
16577	esac
16578	link_all_deplibs_CXX=yes
16579
16580	# Commands to make compiler produce verbose output that lists
16581	# what "hidden" libraries, object files and flags are used when
16582	# linking a shared library.
16583	#
16584	# There doesn't appear to be a way to prevent this compiler from
16585	# explicitly linking system object files so we need to strip them
16586	# from the output so that they don't get included in the library
16587	# dependencies.
16588	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'
16589
16590	# Archives containing C++ object files must be created using
16591	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16592	# necessary to make sure instantiated templates are included
16593	# in the archive.
16594	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16595	;;
16596      gcx)
16597	# Green Hills C++ Compiler
16598	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16599
16600	# The C++ compiler must be used to create the archive.
16601	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16602	;;
16603      *)
16604	# GNU C++ compiler with Solaris linker
16605	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16606	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16607	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16608	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16609	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16610		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16611
16612	    # Commands to make compiler produce verbose output that lists
16613	    # what "hidden" libraries, object files and flags are used when
16614	    # linking a shared library.
16615	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16616	  else
16617	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16618	    # platform.
16619	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16620	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16621		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16622
16623	    # Commands to make compiler produce verbose output that lists
16624	    # what "hidden" libraries, object files and flags are used when
16625	    # linking a shared library.
16626	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16627	  fi
16628
16629	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16630	fi
16631	;;
16632    esac
16633    ;;
16634  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16635    archive_cmds_need_lc_CXX=no
16636    ;;
16637  tandem*)
16638    case $cc_basename in
16639      NCC)
16640	# NonStop-UX NCC 3.20
16641	# FIXME: insert proper C++ library support
16642	ld_shlibs_CXX=no
16643	;;
16644      *)
16645	# FIXME: insert proper C++ library support
16646	ld_shlibs_CXX=no
16647	;;
16648    esac
16649    ;;
16650  vxworks*)
16651    # FIXME: insert proper C++ library support
16652    ld_shlibs_CXX=no
16653    ;;
16654  *)
16655    # FIXME: insert proper C++ library support
16656    ld_shlibs_CXX=no
16657    ;;
16658esac
16659echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16660echo "${ECHO_T}$ld_shlibs_CXX" >&6
16661test "$ld_shlibs_CXX" = no && can_build_shared=no
16662
16663GCC_CXX="$GXX"
16664LD_CXX="$LD"
16665
16666
16667cat > conftest.$ac_ext <<EOF
16668class Foo
16669{
16670public:
16671  Foo (void) { a = 0; }
16672private:
16673  int a;
16674};
16675EOF
16676
16677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678  (eval $ac_compile) 2>&5
16679  ac_status=$?
16680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681  (exit $ac_status); }; then
16682  # Parse the compiler output and extract the necessary
16683  # objects, libraries and library flags.
16684
16685  # Sentinel used to keep track of whether or not we are before
16686  # the conftest object file.
16687  pre_test_object_deps_done=no
16688
16689  # The `*' in the case matches for architectures that use `case' in
16690  # $output_verbose_cmd can trigger glob expansion during the loop
16691  # eval without this substitution.
16692  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16693
16694  for p in `eval $output_verbose_link_cmd`; do
16695    case $p in
16696
16697    -L* | -R* | -l*)
16698       # Some compilers place space between "-{L,R}" and the path.
16699       # Remove the space.
16700       if test $p = "-L" \
16701	  || test $p = "-R"; then
16702	 prev=$p
16703	 continue
16704       else
16705	 prev=
16706       fi
16707
16708       if test "$pre_test_object_deps_done" = no; then
16709	 case $p in
16710	 -L* | -R*)
16711	   # Internal compiler library paths should come after those
16712	   # provided the user.  The postdeps already come after the
16713	   # user supplied libs so there is no need to process them.
16714	   if test -z "$compiler_lib_search_path_CXX"; then
16715	     compiler_lib_search_path_CXX="${prev}${p}"
16716	   else
16717	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16718	   fi
16719	   ;;
16720	 # The "-l" case would never come before the object being
16721	 # linked, so don't bother handling this case.
16722	 esac
16723       else
16724	 if test -z "$postdeps_CXX"; then
16725	   postdeps_CXX="${prev}${p}"
16726	 else
16727	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16728	 fi
16729       fi
16730       ;;
16731
16732    *.$objext)
16733       # This assumes that the test object file only shows up
16734       # once in the compiler output.
16735       if test "$p" = "conftest.$objext"; then
16736	 pre_test_object_deps_done=yes
16737	 continue
16738       fi
16739
16740       if test "$pre_test_object_deps_done" = no; then
16741	 if test -z "$predep_objects_CXX"; then
16742	   predep_objects_CXX="$p"
16743	 else
16744	   predep_objects_CXX="$predep_objects_CXX $p"
16745	 fi
16746       else
16747	 if test -z "$postdep_objects_CXX"; then
16748	   postdep_objects_CXX="$p"
16749	 else
16750	   postdep_objects_CXX="$postdep_objects_CXX $p"
16751	 fi
16752       fi
16753       ;;
16754
16755    *) ;; # Ignore the rest.
16756
16757    esac
16758  done
16759
16760  # Clean up.
16761  rm -f a.out a.exe
16762else
16763  echo "libtool.m4: error: problem compiling CXX test program"
16764fi
16765
16766$rm -f confest.$objext
16767
16768case " $postdeps_CXX " in
16769*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16770esac
16771
16772lt_prog_compiler_wl_CXX=
16773lt_prog_compiler_pic_CXX=
16774lt_prog_compiler_static_CXX=
16775
16776echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16778
16779  # C++ specific cases for pic, static, wl, etc.
16780  if test "$GXX" = yes; then
16781    lt_prog_compiler_wl_CXX='-Wl,'
16782    lt_prog_compiler_static_CXX='-static'
16783
16784    case $host_os in
16785    aix*)
16786      # All AIX code is PIC.
16787      if test "$host_cpu" = ia64; then
16788	# AIX 5 now supports IA64 processor
16789	lt_prog_compiler_static_CXX='-Bstatic'
16790      fi
16791      ;;
16792    amigaos*)
16793      # FIXME: we need at least 68020 code to build shared libraries, but
16794      # adding the `-m68020' flag to GCC prevents building anything better,
16795      # like `-m68040'.
16796      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16797      ;;
16798    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16799      # PIC is the default for these OSes.
16800      ;;
16801    mingw* | os2* | pw32*)
16802      # This hack is so that the source file can tell whether it is being
16803      # built for inclusion in a dll (and should export symbols for example).
16804      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16805      ;;
16806    darwin* | rhapsody*)
16807      # PIC is the default on this platform
16808      # Common symbols not allowed in MH_DYLIB files
16809      lt_prog_compiler_pic_CXX='-fno-common'
16810      ;;
16811    *djgpp*)
16812      # DJGPP does not support shared libraries at all
16813      lt_prog_compiler_pic_CXX=
16814      ;;
16815    sysv4*MP*)
16816      if test -d /usr/nec; then
16817	lt_prog_compiler_pic_CXX=-Kconform_pic
16818      fi
16819      ;;
16820    hpux*)
16821      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16822      # not for PA HP-UX.
16823      case "$host_cpu" in
16824      hppa*64*|ia64*)
16825	;;
16826      *)
16827	lt_prog_compiler_pic_CXX='-fPIC'
16828	;;
16829      esac
16830      ;;
16831    *)
16832      lt_prog_compiler_pic_CXX='-fPIC'
16833      ;;
16834    esac
16835  else
16836    case $host_os in
16837      aix4* | aix5*)
16838	# All AIX code is PIC.
16839	if test "$host_cpu" = ia64; then
16840	  # AIX 5 now supports IA64 processor
16841	  lt_prog_compiler_static_CXX='-Bstatic'
16842	else
16843	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16844	fi
16845	;;
16846      chorus*)
16847	case $cc_basename in
16848	cxch68)
16849	  # Green Hills C++ Compiler
16850	  # _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"
16851	  ;;
16852	esac
16853	;;
16854       darwin*)
16855         # PIC is the default on this platform
16856         # Common symbols not allowed in MH_DYLIB files
16857         case "$cc_basename" in
16858           xlc*)
16859           lt_prog_compiler_pic_CXX='-qnocommon'
16860           lt_prog_compiler_wl_CXX='-Wl,'
16861           ;;
16862         esac
16863       ;;
16864      dgux*)
16865	case $cc_basename in
16866	  ec++)
16867	    lt_prog_compiler_pic_CXX='-KPIC'
16868	    ;;
16869	  ghcx)
16870	    # Green Hills C++ Compiler
16871	    lt_prog_compiler_pic_CXX='-pic'
16872	    ;;
16873	  *)
16874	    ;;
16875	esac
16876	;;
16877      freebsd* | kfreebsd*-gnu)
16878	# FreeBSD uses GNU C++
16879	;;
16880      hpux9* | hpux10* | hpux11*)
16881	case $cc_basename in
16882	  CC)
16883	    lt_prog_compiler_wl_CXX='-Wl,'
16884	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16885	    if test "$host_cpu" != ia64; then
16886	      lt_prog_compiler_pic_CXX='+Z'
16887	    fi
16888	    ;;
16889	  aCC)
16890	    lt_prog_compiler_wl_CXX='-Wl,'
16891	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16892	    case "$host_cpu" in
16893	    hppa*64*|ia64*)
16894	      # +Z the default
16895	      ;;
16896	    *)
16897	      lt_prog_compiler_pic_CXX='+Z'
16898	      ;;
16899	    esac
16900	    ;;
16901	  *)
16902	    ;;
16903	esac
16904	;;
16905      irix5* | irix6* | nonstopux*)
16906	case $cc_basename in
16907	  CC)
16908	    lt_prog_compiler_wl_CXX='-Wl,'
16909	    lt_prog_compiler_static_CXX='-non_shared'
16910	    # CC pic flag -KPIC is the default.
16911	    ;;
16912	  *)
16913	    ;;
16914	esac
16915	;;
16916      linux*)
16917	case $cc_basename in
16918	  KCC)
16919	    # KAI C++ Compiler
16920	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16921	    lt_prog_compiler_pic_CXX='-fPIC'
16922	    ;;
16923	  icpc)
16924	    # Intel C++
16925	    lt_prog_compiler_wl_CXX='-Wl,'
16926	    lt_prog_compiler_pic_CXX='-KPIC'
16927	    lt_prog_compiler_static_CXX='-static'
16928	    ;;
16929	  cxx)
16930	    # Compaq C++
16931	    # Make sure the PIC flag is empty.  It appears that all Alpha
16932	    # Linux and Compaq Tru64 Unix objects are PIC.
16933	    lt_prog_compiler_pic_CXX=
16934	    lt_prog_compiler_static_CXX='-non_shared'
16935	    ;;
16936	  *)
16937	    ;;
16938	esac
16939	;;
16940      lynxos*)
16941	;;
16942      m88k*)
16943	;;
16944      mvs*)
16945	case $cc_basename in
16946	  cxx)
16947	    lt_prog_compiler_pic_CXX='-W c,exportall'
16948	    ;;
16949	  *)
16950	    ;;
16951	esac
16952	;;
16953      netbsd*)
16954	;;
16955      osf3* | osf4* | osf5*)
16956	case $cc_basename in
16957	  KCC)
16958	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16959	    ;;
16960	  RCC)
16961	    # Rational C++ 2.4.1
16962	    lt_prog_compiler_pic_CXX='-pic'
16963	    ;;
16964	  cxx)
16965	    # Digital/Compaq C++
16966	    lt_prog_compiler_wl_CXX='-Wl,'
16967	    # Make sure the PIC flag is empty.  It appears that all Alpha
16968	    # Linux and Compaq Tru64 Unix objects are PIC.
16969	    lt_prog_compiler_pic_CXX=
16970	    lt_prog_compiler_static_CXX='-non_shared'
16971	    ;;
16972	  *)
16973	    ;;
16974	esac
16975	;;
16976      psos*)
16977	;;
16978      sco*)
16979	case $cc_basename in
16980	  CC)
16981	    lt_prog_compiler_pic_CXX='-fPIC'
16982	    ;;
16983	  *)
16984	    ;;
16985	esac
16986	;;
16987      solaris*)
16988	case $cc_basename in
16989	  CC)
16990	    # Sun C++ 4.2, 5.x and Centerline C++
16991	    lt_prog_compiler_pic_CXX='-KPIC'
16992	    lt_prog_compiler_static_CXX='-Bstatic'
16993	    lt_prog_compiler_wl_CXX='-Qoption ld '
16994	    ;;
16995	  gcx)
16996	    # Green Hills C++ Compiler
16997	    lt_prog_compiler_pic_CXX='-PIC'
16998	    ;;
16999	  *)
17000	    ;;
17001	esac
17002	;;
17003      sunos4*)
17004	case $cc_basename in
17005	  CC)
17006	    # Sun C++ 4.x
17007	    lt_prog_compiler_pic_CXX='-pic'
17008	    lt_prog_compiler_static_CXX='-Bstatic'
17009	    ;;
17010	  lcc)
17011	    # Lucid
17012	    lt_prog_compiler_pic_CXX='-pic'
17013	    ;;
17014	  *)
17015	    ;;
17016	esac
17017	;;
17018      tandem*)
17019	case $cc_basename in
17020	  NCC)
17021	    # NonStop-UX NCC 3.20
17022	    lt_prog_compiler_pic_CXX='-KPIC'
17023	    ;;
17024	  *)
17025	    ;;
17026	esac
17027	;;
17028      unixware*)
17029	;;
17030      vxworks*)
17031	;;
17032      *)
17033	lt_prog_compiler_can_build_shared_CXX=no
17034	;;
17035    esac
17036  fi
17037
17038echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17039echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17040
17041#
17042# Check to make sure the PIC flag actually works.
17043#
17044if test -n "$lt_prog_compiler_pic_CXX"; then
17045
17046echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17047echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17048if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17049  echo $ECHO_N "(cached) $ECHO_C" >&6
17050else
17051  lt_prog_compiler_pic_works_CXX=no
17052  ac_outfile=conftest.$ac_objext
17053   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17054   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17055   # Insert the option either (1) after the last *FLAGS variable, or
17056   # (2) before a word containing "conftest.", or (3) at the end.
17057   # Note that $ac_compile itself does not contain backslashes and begins
17058   # with a dollar sign (not a hyphen), so the echo should work correctly.
17059   # The option is referenced via a variable to avoid confusing sed.
17060   lt_compile=`echo "$ac_compile" | $SED \
17061   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17063   -e 's:$: $lt_compiler_flag:'`
17064   (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
17065   (eval "$lt_compile" 2>conftest.err)
17066   ac_status=$?
17067   cat conftest.err >&5
17068   echo "$as_me:17068: \$? = $ac_status" >&5
17069   if (exit $ac_status) && test -s "$ac_outfile"; then
17070     # The compiler can only warn and ignore the option if not recognized
17071     # So say no if there are warnings
17072     if test ! -s conftest.err; then
17073       lt_prog_compiler_pic_works_CXX=yes
17074     fi
17075   fi
17076   $rm conftest*
17077
17078fi
17079echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17080echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17081
17082if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17083    case $lt_prog_compiler_pic_CXX in
17084     "" | " "*) ;;
17085     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17086     esac
17087else
17088    lt_prog_compiler_pic_CXX=
17089     lt_prog_compiler_can_build_shared_CXX=no
17090fi
17091
17092fi
17093case "$host_os" in
17094  # For platforms which do not support PIC, -DPIC is meaningless:
17095  *djgpp*)
17096    lt_prog_compiler_pic_CXX=
17097    ;;
17098  *)
17099    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17100    ;;
17101esac
17102
17103echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17105if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17106  echo $ECHO_N "(cached) $ECHO_C" >&6
17107else
17108  lt_cv_prog_compiler_c_o_CXX=no
17109   $rm -r conftest 2>/dev/null
17110   mkdir conftest
17111   cd conftest
17112   mkdir out
17113   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17114
17115   lt_compiler_flag="-o out/conftest2.$ac_objext"
17116   # Insert the option either (1) after the last *FLAGS variable, or
17117   # (2) before a word containing "conftest.", or (3) at the end.
17118   # Note that $ac_compile itself does not contain backslashes and begins
17119   # with a dollar sign (not a hyphen), so the echo should work correctly.
17120   lt_compile=`echo "$ac_compile" | $SED \
17121   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17122   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123   -e 's:$: $lt_compiler_flag:'`
17124   (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125   (eval "$lt_compile" 2>out/conftest.err)
17126   ac_status=$?
17127   cat out/conftest.err >&5
17128   echo "$as_me:17128: \$? = $ac_status" >&5
17129   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17130   then
17131     # The compiler can only warn and ignore the option if not recognized
17132     # So say no if there are warnings
17133     if test ! -s out/conftest.err; then
17134       lt_cv_prog_compiler_c_o_CXX=yes
17135     fi
17136   fi
17137   chmod u+w .
17138   $rm conftest*
17139   # SGI C++ compiler will create directory out/ii_files/ for
17140   # template instantiation
17141   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17142   $rm out/* && rmdir out
17143   cd ..
17144   rmdir conftest
17145   $rm conftest*
17146
17147fi
17148echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17149echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17150
17151
17152hard_links="nottested"
17153if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17154  # do not overwrite the value of need_locks provided by the user
17155  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17156echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17157  hard_links=yes
17158  $rm conftest*
17159  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17160  touch conftest.a
17161  ln conftest.a conftest.b 2>&5 || hard_links=no
17162  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163  echo "$as_me:$LINENO: result: $hard_links" >&5
17164echo "${ECHO_T}$hard_links" >&6
17165  if test "$hard_links" = no; then
17166    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17167echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17168    need_locks=warn
17169  fi
17170else
17171  need_locks=no
17172fi
17173
17174echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17175echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17176
17177  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17178  case $host_os in
17179  aix4* | aix5*)
17180    # If we're using GNU nm, then we don't want the "-C" option.
17181    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17182    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17183      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'
17184    else
17185      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'
17186    fi
17187    ;;
17188  pw32*)
17189    export_symbols_cmds_CXX="$ltdll_cmds"
17190  ;;
17191  cygwin* | mingw*)
17192    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17193  ;;
17194  *)
17195    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17196  ;;
17197  esac
17198
17199echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17200echo "${ECHO_T}$ld_shlibs_CXX" >&6
17201test "$ld_shlibs_CXX" = no && can_build_shared=no
17202
17203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17204if test "$GCC" = yes; then
17205  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17206fi
17207
17208#
17209# Do we need to explicitly link libc?
17210#
17211case "x$archive_cmds_need_lc_CXX" in
17212x|xyes)
17213  # Assume -lc should be added
17214  archive_cmds_need_lc_CXX=yes
17215
17216  if test "$enable_shared" = yes && test "$GCC" = yes; then
17217    case $archive_cmds_CXX in
17218    *'~'*)
17219      # FIXME: we may have to deal with multi-command sequences.
17220      ;;
17221    '$CC '*)
17222      # Test whether the compiler implicitly links with -lc since on some
17223      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17224      # to ld, don't add -lc before -lgcc.
17225      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17227      $rm conftest*
17228      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17229
17230      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231  (eval $ac_compile) 2>&5
17232  ac_status=$?
17233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234  (exit $ac_status); } 2>conftest.err; then
17235        soname=conftest
17236        lib=conftest
17237        libobjs=conftest.$ac_objext
17238        deplibs=
17239        wl=$lt_prog_compiler_wl_CXX
17240        compiler_flags=-v
17241        linker_flags=-v
17242        verstring=
17243        output_objdir=.
17244        libname=conftest
17245        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17246        allow_undefined_flag_CXX=
17247        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17248  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17249  ac_status=$?
17250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251  (exit $ac_status); }
17252        then
17253	  archive_cmds_need_lc_CXX=no
17254        else
17255	  archive_cmds_need_lc_CXX=yes
17256        fi
17257        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17258      else
17259        cat conftest.err 1>&5
17260      fi
17261      $rm conftest*
17262      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17263echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17264      ;;
17265    esac
17266  fi
17267  ;;
17268esac
17269
17270echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17271echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17272library_names_spec=
17273libname_spec='lib$name'
17274soname_spec=
17275shrext_cmds=".so"
17276postinstall_cmds=
17277postuninstall_cmds=
17278finish_cmds=
17279finish_eval=
17280shlibpath_var=
17281shlibpath_overrides_runpath=unknown
17282version_type=none
17283dynamic_linker="$host_os ld.so"
17284sys_lib_dlsearch_path_spec="/lib /usr/lib"
17285if test "$GCC" = yes; then
17286  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17287  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17288    # if the path contains ";" then we assume it to be the separator
17289    # otherwise default to the standard path separator (i.e. ":") - it is
17290    # assumed that no part of a normal pathname contains ";" but that should
17291    # okay in the real world where ";" in dirpaths is itself problematic.
17292    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17293  else
17294    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17295  fi
17296else
17297  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17298fi
17299need_lib_prefix=unknown
17300hardcode_into_libs=no
17301
17302# when you set need_version to no, make sure it does not cause -set_version
17303# flags to be left without arguments
17304need_version=unknown
17305
17306case $host_os in
17307aix3*)
17308  version_type=linux
17309  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17310  shlibpath_var=LIBPATH
17311
17312  # AIX 3 has no versioning support, so we append a major version to the name.
17313  soname_spec='${libname}${release}${shared_ext}$major'
17314  ;;
17315
17316aix4* | aix5*)
17317  version_type=linux
17318  need_lib_prefix=no
17319  need_version=no
17320  hardcode_into_libs=yes
17321  if test "$host_cpu" = ia64; then
17322    # AIX 5 supports IA64
17323    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17324    shlibpath_var=LD_LIBRARY_PATH
17325  else
17326    # With GCC up to 2.95.x, collect2 would create an import file
17327    # for dependence libraries.  The import file would start with
17328    # the line `#! .'.  This would cause the generated library to
17329    # depend on `.', always an invalid library.  This was fixed in
17330    # development snapshots of GCC prior to 3.0.
17331    case $host_os in
17332      aix4 | aix4.[01] | aix4.[01].*)
17333      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17334	   echo ' yes '
17335	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17336	:
17337      else
17338	can_build_shared=no
17339      fi
17340      ;;
17341    esac
17342    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17343    # soname into executable. Probably we can add versioning support to
17344    # collect2, so additional links can be useful in future.
17345    if test "$aix_use_runtimelinking" = yes; then
17346      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17347      # instead of lib<name>.a to let people know that these are not
17348      # typical AIX shared libraries.
17349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350    else
17351      # We preserve .a as extension for shared libraries through AIX4.2
17352      # and later when we are not doing run time linking.
17353      library_names_spec='${libname}${release}.a $libname.a'
17354      soname_spec='${libname}${release}${shared_ext}$major'
17355    fi
17356    shlibpath_var=LIBPATH
17357  fi
17358  ;;
17359
17360amigaos*)
17361  library_names_spec='$libname.ixlibrary $libname.a'
17362  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17363  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'
17364  ;;
17365
17366beos*)
17367  library_names_spec='${libname}${shared_ext}'
17368  dynamic_linker="$host_os ld.so"
17369  shlibpath_var=LIBRARY_PATH
17370  ;;
17371
17372bsdi[45]*)
17373  version_type=linux
17374  need_version=no
17375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376  soname_spec='${libname}${release}${shared_ext}$major'
17377  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17378  shlibpath_var=LD_LIBRARY_PATH
17379  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17380  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17381  # the default ld.so.conf also contains /usr/contrib/lib and
17382  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17383  # libtool to hard-code these into programs
17384  ;;
17385
17386cygwin* | mingw* | pw32*)
17387  version_type=windows
17388  shrext_cmds=".dll"
17389  need_version=no
17390  need_lib_prefix=no
17391
17392  case $GCC,$host_os in
17393  yes,cygwin* | yes,mingw* | yes,pw32*)
17394    library_names_spec='$libname.dll.a'
17395    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17396    postinstall_cmds='base_file=`basename \${file}`~
17397      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17398      dldir=$destdir/`dirname \$dlpath`~
17399      test -d \$dldir || mkdir -p \$dldir~
17400      $install_prog $dir/$dlname \$dldir/$dlname'
17401    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17402      dlpath=$dir/\$dldll~
17403       $rm \$dlpath'
17404    shlibpath_overrides_runpath=yes
17405
17406    case $host_os in
17407    cygwin*)
17408      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17409      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17410      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17411      ;;
17412    mingw*)
17413      # MinGW DLLs use traditional 'lib' prefix
17414      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17415      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17416      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17417        # It is most probably a Windows format PATH printed by
17418        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17419        # path with ; separators, and with drive letters. We can handle the
17420        # drive letters (cygwin fileutils understands them), so leave them,
17421        # especially as we might pass files found there to a mingw objdump,
17422        # which wouldn't understand a cygwinified path. Ahh.
17423        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17424      else
17425        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17426      fi
17427      ;;
17428    pw32*)
17429      # pw32 DLLs use 'pw' prefix rather than 'lib'
17430      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17431      ;;
17432    esac
17433    ;;
17434
17435  *)
17436    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17437    ;;
17438  esac
17439  dynamic_linker='Win32 ld.exe'
17440  # FIXME: first we should search . and the directory the executable is in
17441  shlibpath_var=PATH
17442  ;;
17443
17444darwin* | rhapsody*)
17445  dynamic_linker="$host_os dyld"
17446  version_type=darwin
17447  need_lib_prefix=no
17448  need_version=no
17449  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17450  soname_spec='${libname}${release}${major}$shared_ext'
17451  shlibpath_overrides_runpath=yes
17452  shlibpath_var=DYLD_LIBRARY_PATH
17453  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17454  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17455  if test "$GCC" = yes; then
17456    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"`
17457  else
17458    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17459  fi
17460  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17461  ;;
17462
17463dgux*)
17464  version_type=linux
17465  need_lib_prefix=no
17466  need_version=no
17467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17468  soname_spec='${libname}${release}${shared_ext}$major'
17469  shlibpath_var=LD_LIBRARY_PATH
17470  ;;
17471
17472freebsd1*)
17473  dynamic_linker=no
17474  ;;
17475
17476kfreebsd*-gnu)
17477  version_type=linux
17478  need_lib_prefix=no
17479  need_version=no
17480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481  soname_spec='${libname}${release}${shared_ext}$major'
17482  shlibpath_var=LD_LIBRARY_PATH
17483  shlibpath_overrides_runpath=no
17484  hardcode_into_libs=yes
17485  dynamic_linker='GNU ld.so'
17486  ;;
17487
17488freebsd*)
17489  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17490  version_type=freebsd-$objformat
17491  case $version_type in
17492    freebsd-elf*)
17493      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17494      need_version=no
17495      need_lib_prefix=no
17496      ;;
17497    freebsd-*)
17498      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17499      need_version=yes
17500      ;;
17501  esac
17502  shlibpath_var=LD_LIBRARY_PATH
17503  case $host_os in
17504  freebsd2*)
17505    shlibpath_overrides_runpath=yes
17506    ;;
17507  freebsd3.01* | freebsdelf3.01*)
17508    shlibpath_overrides_runpath=yes
17509    hardcode_into_libs=yes
17510    ;;
17511  *) # from 3.2 on
17512    shlibpath_overrides_runpath=no
17513    hardcode_into_libs=yes
17514    ;;
17515  esac
17516  ;;
17517
17518gnu*)
17519  version_type=linux
17520  need_lib_prefix=no
17521  need_version=no
17522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17523  soname_spec='${libname}${release}${shared_ext}$major'
17524  shlibpath_var=LD_LIBRARY_PATH
17525  hardcode_into_libs=yes
17526  ;;
17527
17528hpux9* | hpux10* | hpux11*)
17529  # Give a soname corresponding to the major version so that dld.sl refuses to
17530  # link against other versions.
17531  version_type=sunos
17532  need_lib_prefix=no
17533  need_version=no
17534  case "$host_cpu" in
17535  ia64*)
17536    shrext_cmds='.so'
17537    hardcode_into_libs=yes
17538    dynamic_linker="$host_os dld.so"
17539    shlibpath_var=LD_LIBRARY_PATH
17540    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542    soname_spec='${libname}${release}${shared_ext}$major'
17543    if test "X$HPUX_IA64_MODE" = X32; then
17544      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17545    else
17546      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17547    fi
17548    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17549    ;;
17550   hppa*64*)
17551     shrext_cmds='.sl'
17552     hardcode_into_libs=yes
17553     dynamic_linker="$host_os dld.sl"
17554     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17555     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557     soname_spec='${libname}${release}${shared_ext}$major'
17558     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17559     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17560     ;;
17561   *)
17562    shrext_cmds='.sl'
17563    dynamic_linker="$host_os dld.sl"
17564    shlibpath_var=SHLIB_PATH
17565    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17566    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567    soname_spec='${libname}${release}${shared_ext}$major'
17568    ;;
17569  esac
17570  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17571  postinstall_cmds='chmod 555 $lib'
17572  ;;
17573
17574irix5* | irix6* | nonstopux*)
17575  case $host_os in
17576    nonstopux*) version_type=nonstopux ;;
17577    *)
17578	if test "$lt_cv_prog_gnu_ld" = yes; then
17579		version_type=linux
17580	else
17581		version_type=irix
17582	fi ;;
17583  esac
17584  need_lib_prefix=no
17585  need_version=no
17586  soname_spec='${libname}${release}${shared_ext}$major'
17587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17588  case $host_os in
17589  irix5* | nonstopux*)
17590    libsuff= shlibsuff=
17591    ;;
17592  *)
17593    case $LD in # libtool.m4 will add one of these switches to LD
17594    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17595      libsuff= shlibsuff= libmagic=32-bit;;
17596    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17597      libsuff=32 shlibsuff=N32 libmagic=N32;;
17598    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17599      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17600    *) libsuff= shlibsuff= libmagic=never-match;;
17601    esac
17602    ;;
17603  esac
17604  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17605  shlibpath_overrides_runpath=no
17606  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17607  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17608  hardcode_into_libs=yes
17609  ;;
17610
17611# No shared lib support for Linux oldld, aout, or coff.
17612linux*oldld* | linux*aout* | linux*coff*)
17613  dynamic_linker=no
17614  ;;
17615
17616# This must be Linux ELF.
17617linux*)
17618  version_type=linux
17619  need_lib_prefix=no
17620  need_version=no
17621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622  soname_spec='${libname}${release}${shared_ext}$major'
17623  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17624  shlibpath_var=LD_LIBRARY_PATH
17625  shlibpath_overrides_runpath=no
17626  # This implies no fast_install, which is unacceptable.
17627  # Some rework will be needed to allow for fast_install
17628  # before this can be enabled.
17629  hardcode_into_libs=yes
17630
17631  # Append ld.so.conf contents to the search path
17632  if test -f /etc/ld.so.conf; then
17633    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17634    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17635  fi
17636
17637  # We used to test for /lib/ld.so.1 and disable shared libraries on
17638  # powerpc, because MkLinux only supported shared libraries with the
17639  # GNU dynamic linker.  Since this was broken with cross compilers,
17640  # most powerpc-linux boxes support dynamic linking these days and
17641  # people can always --disable-shared, the test was removed, and we
17642  # assume the GNU/Linux dynamic linker is in use.
17643  dynamic_linker='GNU/Linux ld.so'
17644  ;;
17645
17646knetbsd*-gnu)
17647  version_type=linux
17648  need_lib_prefix=no
17649  need_version=no
17650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17651  soname_spec='${libname}${release}${shared_ext}$major'
17652  shlibpath_var=LD_LIBRARY_PATH
17653  shlibpath_overrides_runpath=no
17654  hardcode_into_libs=yes
17655  dynamic_linker='GNU ld.so'
17656  ;;
17657
17658netbsd*)
17659  version_type=sunos
17660  need_lib_prefix=no
17661  need_version=no
17662  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17664    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17665    dynamic_linker='NetBSD (a.out) ld.so'
17666  else
17667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17668    soname_spec='${libname}${release}${shared_ext}$major'
17669    dynamic_linker='NetBSD ld.elf_so'
17670  fi
17671  shlibpath_var=LD_LIBRARY_PATH
17672  shlibpath_overrides_runpath=yes
17673  hardcode_into_libs=yes
17674  ;;
17675
17676newsos6)
17677  version_type=linux
17678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679  shlibpath_var=LD_LIBRARY_PATH
17680  shlibpath_overrides_runpath=yes
17681  ;;
17682
17683nto-qnx*)
17684  version_type=linux
17685  need_lib_prefix=no
17686  need_version=no
17687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688  soname_spec='${libname}${release}${shared_ext}$major'
17689  shlibpath_var=LD_LIBRARY_PATH
17690  shlibpath_overrides_runpath=yes
17691  ;;
17692
17693openbsd*)
17694  version_type=sunos
17695  need_lib_prefix=no
17696  need_version=no
17697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17698  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17699  shlibpath_var=LD_LIBRARY_PATH
17700  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17701    case $host_os in
17702      openbsd2.[89] | openbsd2.[89].*)
17703	shlibpath_overrides_runpath=no
17704	;;
17705      *)
17706	shlibpath_overrides_runpath=yes
17707	;;
17708      esac
17709  else
17710    shlibpath_overrides_runpath=yes
17711  fi
17712  ;;
17713
17714os2*)
17715  libname_spec='$name'
17716  shrext_cmds=".dll"
17717  need_lib_prefix=no
17718  library_names_spec='$libname${shared_ext} $libname.a'
17719  dynamic_linker='OS/2 ld.exe'
17720  shlibpath_var=LIBPATH
17721  ;;
17722
17723osf3* | osf4* | osf5*)
17724  version_type=osf
17725  need_lib_prefix=no
17726  need_version=no
17727  soname_spec='${libname}${release}${shared_ext}$major'
17728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729  shlibpath_var=LD_LIBRARY_PATH
17730  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17731  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17732  ;;
17733
17734sco3.2v5*)
17735  version_type=osf
17736  soname_spec='${libname}${release}${shared_ext}$major'
17737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738  shlibpath_var=LD_LIBRARY_PATH
17739  ;;
17740
17741solaris*)
17742  version_type=linux
17743  need_lib_prefix=no
17744  need_version=no
17745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746  soname_spec='${libname}${release}${shared_ext}$major'
17747  shlibpath_var=LD_LIBRARY_PATH
17748  shlibpath_overrides_runpath=yes
17749  hardcode_into_libs=yes
17750  # ldd complains unless libraries are executable
17751  postinstall_cmds='chmod +x $lib'
17752  ;;
17753
17754sunos4*)
17755  version_type=sunos
17756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758  shlibpath_var=LD_LIBRARY_PATH
17759  shlibpath_overrides_runpath=yes
17760  if test "$with_gnu_ld" = yes; then
17761    need_lib_prefix=no
17762  fi
17763  need_version=yes
17764  ;;
17765
17766sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17767  version_type=linux
17768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769  soname_spec='${libname}${release}${shared_ext}$major'
17770  shlibpath_var=LD_LIBRARY_PATH
17771  case $host_vendor in
17772    sni)
17773      shlibpath_overrides_runpath=no
17774      need_lib_prefix=no
17775      export_dynamic_flag_spec='${wl}-Blargedynsym'
17776      runpath_var=LD_RUN_PATH
17777      ;;
17778    siemens)
17779      need_lib_prefix=no
17780      ;;
17781    motorola)
17782      need_lib_prefix=no
17783      need_version=no
17784      shlibpath_overrides_runpath=no
17785      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17786      ;;
17787  esac
17788  ;;
17789
17790sysv4*MP*)
17791  if test -d /usr/nec ;then
17792    version_type=linux
17793    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17794    soname_spec='$libname${shared_ext}.$major'
17795    shlibpath_var=LD_LIBRARY_PATH
17796  fi
17797  ;;
17798
17799uts4*)
17800  version_type=linux
17801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802  soname_spec='${libname}${release}${shared_ext}$major'
17803  shlibpath_var=LD_LIBRARY_PATH
17804  ;;
17805
17806*)
17807  dynamic_linker=no
17808  ;;
17809esac
17810echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17811echo "${ECHO_T}$dynamic_linker" >&6
17812test "$dynamic_linker" = no && can_build_shared=no
17813
17814echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17815echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17816hardcode_action_CXX=
17817if test -n "$hardcode_libdir_flag_spec_CXX" || \
17818   test -n "$runpath_var_CXX" || \
17819   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17820
17821  # We can hardcode non-existant directories.
17822  if test "$hardcode_direct_CXX" != no &&
17823     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17824     # have to relink, otherwise we might link with an installed library
17825     # when we should be linking with a yet-to-be-installed one
17826     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17827     test "$hardcode_minus_L_CXX" != no; then
17828    # Linking always hardcodes the temporary library directory.
17829    hardcode_action_CXX=relink
17830  else
17831    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17832    hardcode_action_CXX=immediate
17833  fi
17834else
17835  # We cannot hardcode anything, or else we can only hardcode existing
17836  # directories.
17837  hardcode_action_CXX=unsupported
17838fi
17839echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17840echo "${ECHO_T}$hardcode_action_CXX" >&6
17841
17842if test "$hardcode_action_CXX" = relink; then
17843  # Fast installation is not supported
17844  enable_fast_install=no
17845elif test "$shlibpath_overrides_runpath" = yes ||
17846     test "$enable_shared" = no; then
17847  # Fast installation is not necessary
17848  enable_fast_install=needless
17849fi
17850
17851striplib=
17852old_striplib=
17853echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17854echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17855if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17856  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17857  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17858  echo "$as_me:$LINENO: result: yes" >&5
17859echo "${ECHO_T}yes" >&6
17860else
17861# FIXME - insert some real tests, host_os isn't really good enough
17862  case $host_os in
17863   darwin*)
17864       if test -n "$STRIP" ; then
17865         striplib="$STRIP -x"
17866         echo "$as_me:$LINENO: result: yes" >&5
17867echo "${ECHO_T}yes" >&6
17868       else
17869  echo "$as_me:$LINENO: result: no" >&5
17870echo "${ECHO_T}no" >&6
17871fi
17872       ;;
17873   *)
17874  echo "$as_me:$LINENO: result: no" >&5
17875echo "${ECHO_T}no" >&6
17876    ;;
17877  esac
17878fi
17879
17880if test "x$enable_dlopen" != xyes; then
17881  enable_dlopen=unknown
17882  enable_dlopen_self=unknown
17883  enable_dlopen_self_static=unknown
17884else
17885  lt_cv_dlopen=no
17886  lt_cv_dlopen_libs=
17887
17888  case $host_os in
17889  beos*)
17890    lt_cv_dlopen="load_add_on"
17891    lt_cv_dlopen_libs=
17892    lt_cv_dlopen_self=yes
17893    ;;
17894
17895  mingw* | pw32*)
17896    lt_cv_dlopen="LoadLibrary"
17897    lt_cv_dlopen_libs=
17898   ;;
17899
17900  cygwin*)
17901    lt_cv_dlopen="dlopen"
17902    lt_cv_dlopen_libs=
17903   ;;
17904
17905  darwin*)
17906  # if libdl is installed we need to link against it
17907    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17908echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17909if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17910  echo $ECHO_N "(cached) $ECHO_C" >&6
17911else
17912  ac_check_lib_save_LIBS=$LIBS
17913LIBS="-ldl  $LIBS"
17914cat >conftest.$ac_ext <<_ACEOF
17915/* confdefs.h.  */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h.  */
17920
17921/* Override any gcc2 internal prototype to avoid an error.  */
17922#ifdef __cplusplus
17923extern "C"
17924#endif
17925/* We use char because int might match the return type of a gcc2
17926   builtin and then its argument prototype would still apply.  */
17927char dlopen ();
17928int
17929main ()
17930{
17931dlopen ();
17932  ;
17933  return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext conftest$ac_exeext
17937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938  (eval $ac_link) 2>conftest.er1
17939  ac_status=$?
17940  grep -v '^ *+' conftest.er1 >conftest.err
17941  rm -f conftest.er1
17942  cat conftest.err >&5
17943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944  (exit $ac_status); } &&
17945	 { ac_try='test -z "$ac_cxx_werror_flag"
17946			 || test ! -s conftest.err'
17947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948  (eval $ac_try) 2>&5
17949  ac_status=$?
17950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951  (exit $ac_status); }; } &&
17952	 { ac_try='test -s conftest$ac_exeext'
17953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954  (eval $ac_try) 2>&5
17955  ac_status=$?
17956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957  (exit $ac_status); }; }; then
17958  ac_cv_lib_dl_dlopen=yes
17959else
17960  echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963ac_cv_lib_dl_dlopen=no
17964fi
17965rm -f conftest.err conftest.$ac_objext \
17966      conftest$ac_exeext conftest.$ac_ext
17967LIBS=$ac_check_lib_save_LIBS
17968fi
17969echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17970echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17971if test $ac_cv_lib_dl_dlopen = yes; then
17972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17973else
17974
17975    lt_cv_dlopen="dyld"
17976    lt_cv_dlopen_libs=
17977    lt_cv_dlopen_self=yes
17978
17979fi
17980
17981   ;;
17982
17983  *)
17984    echo "$as_me:$LINENO: checking for shl_load" >&5
17985echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17986if test "${ac_cv_func_shl_load+set}" = set; then
17987  echo $ECHO_N "(cached) $ECHO_C" >&6
17988else
17989  cat >conftest.$ac_ext <<_ACEOF
17990/* confdefs.h.  */
17991_ACEOF
17992cat confdefs.h >>conftest.$ac_ext
17993cat >>conftest.$ac_ext <<_ACEOF
17994/* end confdefs.h.  */
17995/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17996   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17997#define shl_load innocuous_shl_load
17998
17999/* System header to define __stub macros and hopefully few prototypes,
18000    which can conflict with char shl_load (); below.
18001    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002    <limits.h> exists even on freestanding compilers.  */
18003
18004#ifdef __STDC__
18005# include <limits.h>
18006#else
18007# include <assert.h>
18008#endif
18009
18010#undef shl_load
18011
18012/* Override any gcc2 internal prototype to avoid an error.  */
18013#ifdef __cplusplus
18014extern "C"
18015{
18016#endif
18017/* We use char because int might match the return type of a gcc2
18018   builtin and then its argument prototype would still apply.  */
18019char shl_load ();
18020/* The GNU C library defines this for functions which it implements
18021    to always fail with ENOSYS.  Some functions are actually named
18022    something starting with __ and the normal name is an alias.  */
18023#if defined (__stub_shl_load) || defined (__stub___shl_load)
18024choke me
18025#else
18026char (*f) () = shl_load;
18027#endif
18028#ifdef __cplusplus
18029}
18030#endif
18031
18032int
18033main ()
18034{
18035return f != shl_load;
18036  ;
18037  return 0;
18038}
18039_ACEOF
18040rm -f conftest.$ac_objext conftest$ac_exeext
18041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042  (eval $ac_link) 2>conftest.er1
18043  ac_status=$?
18044  grep -v '^ *+' conftest.er1 >conftest.err
18045  rm -f conftest.er1
18046  cat conftest.err >&5
18047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048  (exit $ac_status); } &&
18049	 { ac_try='test -z "$ac_cxx_werror_flag"
18050			 || test ! -s conftest.err'
18051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052  (eval $ac_try) 2>&5
18053  ac_status=$?
18054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055  (exit $ac_status); }; } &&
18056	 { ac_try='test -s conftest$ac_exeext'
18057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058  (eval $ac_try) 2>&5
18059  ac_status=$?
18060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061  (exit $ac_status); }; }; then
18062  ac_cv_func_shl_load=yes
18063else
18064  echo "$as_me: failed program was:" >&5
18065sed 's/^/| /' conftest.$ac_ext >&5
18066
18067ac_cv_func_shl_load=no
18068fi
18069rm -f conftest.err conftest.$ac_objext \
18070      conftest$ac_exeext conftest.$ac_ext
18071fi
18072echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18073echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18074if test $ac_cv_func_shl_load = yes; then
18075  lt_cv_dlopen="shl_load"
18076else
18077  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18078echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18079if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18080  echo $ECHO_N "(cached) $ECHO_C" >&6
18081else
18082  ac_check_lib_save_LIBS=$LIBS
18083LIBS="-ldld  $LIBS"
18084cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h.  */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h.  */
18090
18091/* Override any gcc2 internal prototype to avoid an error.  */
18092#ifdef __cplusplus
18093extern "C"
18094#endif
18095/* We use char because int might match the return type of a gcc2
18096   builtin and then its argument prototype would still apply.  */
18097char shl_load ();
18098int
18099main ()
18100{
18101shl_load ();
18102  ;
18103  return 0;
18104}
18105_ACEOF
18106rm -f conftest.$ac_objext conftest$ac_exeext
18107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18108  (eval $ac_link) 2>conftest.er1
18109  ac_status=$?
18110  grep -v '^ *+' conftest.er1 >conftest.err
18111  rm -f conftest.er1
18112  cat conftest.err >&5
18113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114  (exit $ac_status); } &&
18115	 { ac_try='test -z "$ac_cxx_werror_flag"
18116			 || test ! -s conftest.err'
18117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118  (eval $ac_try) 2>&5
18119  ac_status=$?
18120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121  (exit $ac_status); }; } &&
18122	 { ac_try='test -s conftest$ac_exeext'
18123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124  (eval $ac_try) 2>&5
18125  ac_status=$?
18126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127  (exit $ac_status); }; }; then
18128  ac_cv_lib_dld_shl_load=yes
18129else
18130  echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133ac_cv_lib_dld_shl_load=no
18134fi
18135rm -f conftest.err conftest.$ac_objext \
18136      conftest$ac_exeext conftest.$ac_ext
18137LIBS=$ac_check_lib_save_LIBS
18138fi
18139echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18140echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18141if test $ac_cv_lib_dld_shl_load = yes; then
18142  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18143else
18144  echo "$as_me:$LINENO: checking for dlopen" >&5
18145echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18146if test "${ac_cv_func_dlopen+set}" = set; then
18147  echo $ECHO_N "(cached) $ECHO_C" >&6
18148else
18149  cat >conftest.$ac_ext <<_ACEOF
18150/* confdefs.h.  */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h.  */
18155/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18156   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18157#define dlopen innocuous_dlopen
18158
18159/* System header to define __stub macros and hopefully few prototypes,
18160    which can conflict with char dlopen (); below.
18161    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162    <limits.h> exists even on freestanding compilers.  */
18163
18164#ifdef __STDC__
18165# include <limits.h>
18166#else
18167# include <assert.h>
18168#endif
18169
18170#undef dlopen
18171
18172/* Override any gcc2 internal prototype to avoid an error.  */
18173#ifdef __cplusplus
18174extern "C"
18175{
18176#endif
18177/* We use char because int might match the return type of a gcc2
18178   builtin and then its argument prototype would still apply.  */
18179char dlopen ();
18180/* The GNU C library defines this for functions which it implements
18181    to always fail with ENOSYS.  Some functions are actually named
18182    something starting with __ and the normal name is an alias.  */
18183#if defined (__stub_dlopen) || defined (__stub___dlopen)
18184choke me
18185#else
18186char (*f) () = dlopen;
18187#endif
18188#ifdef __cplusplus
18189}
18190#endif
18191
18192int
18193main ()
18194{
18195return f != dlopen;
18196  ;
18197  return 0;
18198}
18199_ACEOF
18200rm -f conftest.$ac_objext conftest$ac_exeext
18201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202  (eval $ac_link) 2>conftest.er1
18203  ac_status=$?
18204  grep -v '^ *+' conftest.er1 >conftest.err
18205  rm -f conftest.er1
18206  cat conftest.err >&5
18207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208  (exit $ac_status); } &&
18209	 { ac_try='test -z "$ac_cxx_werror_flag"
18210			 || test ! -s conftest.err'
18211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212  (eval $ac_try) 2>&5
18213  ac_status=$?
18214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215  (exit $ac_status); }; } &&
18216	 { ac_try='test -s conftest$ac_exeext'
18217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218  (eval $ac_try) 2>&5
18219  ac_status=$?
18220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221  (exit $ac_status); }; }; then
18222  ac_cv_func_dlopen=yes
18223else
18224  echo "$as_me: failed program was:" >&5
18225sed 's/^/| /' conftest.$ac_ext >&5
18226
18227ac_cv_func_dlopen=no
18228fi
18229rm -f conftest.err conftest.$ac_objext \
18230      conftest$ac_exeext conftest.$ac_ext
18231fi
18232echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18233echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18234if test $ac_cv_func_dlopen = yes; then
18235  lt_cv_dlopen="dlopen"
18236else
18237  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18238echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18239if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18240  echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242  ac_check_lib_save_LIBS=$LIBS
18243LIBS="-ldl  $LIBS"
18244cat >conftest.$ac_ext <<_ACEOF
18245/* confdefs.h.  */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h.  */
18250
18251/* Override any gcc2 internal prototype to avoid an error.  */
18252#ifdef __cplusplus
18253extern "C"
18254#endif
18255/* We use char because int might match the return type of a gcc2
18256   builtin and then its argument prototype would still apply.  */
18257char dlopen ();
18258int
18259main ()
18260{
18261dlopen ();
18262  ;
18263  return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext conftest$ac_exeext
18267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268  (eval $ac_link) 2>conftest.er1
18269  ac_status=$?
18270  grep -v '^ *+' conftest.er1 >conftest.err
18271  rm -f conftest.er1
18272  cat conftest.err >&5
18273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274  (exit $ac_status); } &&
18275	 { ac_try='test -z "$ac_cxx_werror_flag"
18276			 || test ! -s conftest.err'
18277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278  (eval $ac_try) 2>&5
18279  ac_status=$?
18280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281  (exit $ac_status); }; } &&
18282	 { ac_try='test -s conftest$ac_exeext'
18283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284  (eval $ac_try) 2>&5
18285  ac_status=$?
18286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287  (exit $ac_status); }; }; then
18288  ac_cv_lib_dl_dlopen=yes
18289else
18290  echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
18293ac_cv_lib_dl_dlopen=no
18294fi
18295rm -f conftest.err conftest.$ac_objext \
18296      conftest$ac_exeext conftest.$ac_ext
18297LIBS=$ac_check_lib_save_LIBS
18298fi
18299echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18300echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18301if test $ac_cv_lib_dl_dlopen = yes; then
18302  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18303else
18304  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18305echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18306if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18307  echo $ECHO_N "(cached) $ECHO_C" >&6
18308else
18309  ac_check_lib_save_LIBS=$LIBS
18310LIBS="-lsvld  $LIBS"
18311cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h.  */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h.  */
18317
18318/* Override any gcc2 internal prototype to avoid an error.  */
18319#ifdef __cplusplus
18320extern "C"
18321#endif
18322/* We use char because int might match the return type of a gcc2
18323   builtin and then its argument prototype would still apply.  */
18324char dlopen ();
18325int
18326main ()
18327{
18328dlopen ();
18329  ;
18330  return 0;
18331}
18332_ACEOF
18333rm -f conftest.$ac_objext conftest$ac_exeext
18334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335  (eval $ac_link) 2>conftest.er1
18336  ac_status=$?
18337  grep -v '^ *+' conftest.er1 >conftest.err
18338  rm -f conftest.er1
18339  cat conftest.err >&5
18340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341  (exit $ac_status); } &&
18342	 { ac_try='test -z "$ac_cxx_werror_flag"
18343			 || test ! -s conftest.err'
18344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345  (eval $ac_try) 2>&5
18346  ac_status=$?
18347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348  (exit $ac_status); }; } &&
18349	 { ac_try='test -s conftest$ac_exeext'
18350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351  (eval $ac_try) 2>&5
18352  ac_status=$?
18353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354  (exit $ac_status); }; }; then
18355  ac_cv_lib_svld_dlopen=yes
18356else
18357  echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360ac_cv_lib_svld_dlopen=no
18361fi
18362rm -f conftest.err conftest.$ac_objext \
18363      conftest$ac_exeext conftest.$ac_ext
18364LIBS=$ac_check_lib_save_LIBS
18365fi
18366echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18367echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18368if test $ac_cv_lib_svld_dlopen = yes; then
18369  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18370else
18371  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18372echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18373if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18374  echo $ECHO_N "(cached) $ECHO_C" >&6
18375else
18376  ac_check_lib_save_LIBS=$LIBS
18377LIBS="-ldld  $LIBS"
18378cat >conftest.$ac_ext <<_ACEOF
18379/* confdefs.h.  */
18380_ACEOF
18381cat confdefs.h >>conftest.$ac_ext
18382cat >>conftest.$ac_ext <<_ACEOF
18383/* end confdefs.h.  */
18384
18385/* Override any gcc2 internal prototype to avoid an error.  */
18386#ifdef __cplusplus
18387extern "C"
18388#endif
18389/* We use char because int might match the return type of a gcc2
18390   builtin and then its argument prototype would still apply.  */
18391char dld_link ();
18392int
18393main ()
18394{
18395dld_link ();
18396  ;
18397  return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext conftest$ac_exeext
18401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402  (eval $ac_link) 2>conftest.er1
18403  ac_status=$?
18404  grep -v '^ *+' conftest.er1 >conftest.err
18405  rm -f conftest.er1
18406  cat conftest.err >&5
18407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408  (exit $ac_status); } &&
18409	 { ac_try='test -z "$ac_cxx_werror_flag"
18410			 || test ! -s conftest.err'
18411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412  (eval $ac_try) 2>&5
18413  ac_status=$?
18414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415  (exit $ac_status); }; } &&
18416	 { ac_try='test -s conftest$ac_exeext'
18417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418  (eval $ac_try) 2>&5
18419  ac_status=$?
18420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421  (exit $ac_status); }; }; then
18422  ac_cv_lib_dld_dld_link=yes
18423else
18424  echo "$as_me: failed program was:" >&5
18425sed 's/^/| /' conftest.$ac_ext >&5
18426
18427ac_cv_lib_dld_dld_link=no
18428fi
18429rm -f conftest.err conftest.$ac_objext \
18430      conftest$ac_exeext conftest.$ac_ext
18431LIBS=$ac_check_lib_save_LIBS
18432fi
18433echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18434echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18435if test $ac_cv_lib_dld_dld_link = yes; then
18436  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18437fi
18438
18439
18440fi
18441
18442
18443fi
18444
18445
18446fi
18447
18448
18449fi
18450
18451
18452fi
18453
18454    ;;
18455  esac
18456
18457  if test "x$lt_cv_dlopen" != xno; then
18458    enable_dlopen=yes
18459  else
18460    enable_dlopen=no
18461  fi
18462
18463  case $lt_cv_dlopen in
18464  dlopen)
18465    save_CPPFLAGS="$CPPFLAGS"
18466    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18467
18468    save_LDFLAGS="$LDFLAGS"
18469    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18470
18471    save_LIBS="$LIBS"
18472    LIBS="$lt_cv_dlopen_libs $LIBS"
18473
18474    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18475echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18476if test "${lt_cv_dlopen_self+set}" = set; then
18477  echo $ECHO_N "(cached) $ECHO_C" >&6
18478else
18479  	  if test "$cross_compiling" = yes; then :
18480  lt_cv_dlopen_self=cross
18481else
18482  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18483  lt_status=$lt_dlunknown
18484  cat > conftest.$ac_ext <<EOF
18485#line 18485 "configure"
18486#include "confdefs.h"
18487
18488#if HAVE_DLFCN_H
18489#include <dlfcn.h>
18490#endif
18491
18492#include <stdio.h>
18493
18494#ifdef RTLD_GLOBAL
18495#  define LT_DLGLOBAL		RTLD_GLOBAL
18496#else
18497#  ifdef DL_GLOBAL
18498#    define LT_DLGLOBAL		DL_GLOBAL
18499#  else
18500#    define LT_DLGLOBAL		0
18501#  endif
18502#endif
18503
18504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18505   find out it does not work in some platform. */
18506#ifndef LT_DLLAZY_OR_NOW
18507#  ifdef RTLD_LAZY
18508#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18509#  else
18510#    ifdef DL_LAZY
18511#      define LT_DLLAZY_OR_NOW		DL_LAZY
18512#    else
18513#      ifdef RTLD_NOW
18514#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18515#      else
18516#        ifdef DL_NOW
18517#          define LT_DLLAZY_OR_NOW	DL_NOW
18518#        else
18519#          define LT_DLLAZY_OR_NOW	0
18520#        endif
18521#      endif
18522#    endif
18523#  endif
18524#endif
18525
18526#ifdef __cplusplus
18527extern "C" void exit (int);
18528#endif
18529
18530void fnord() { int i=42;}
18531int main ()
18532{
18533  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18534  int status = $lt_dlunknown;
18535
18536  if (self)
18537    {
18538      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18539      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18540      /* dlclose (self); */
18541    }
18542
18543    exit (status);
18544}
18545EOF
18546  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547  (eval $ac_link) 2>&5
18548  ac_status=$?
18549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18551    (./conftest; exit; ) 2>/dev/null
18552    lt_status=$?
18553    case x$lt_status in
18554      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18555      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18556      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18557    esac
18558  else :
18559    # compilation failed
18560    lt_cv_dlopen_self=no
18561  fi
18562fi
18563rm -fr conftest*
18564
18565
18566fi
18567echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18568echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18569
18570    if test "x$lt_cv_dlopen_self" = xyes; then
18571      LDFLAGS="$LDFLAGS $link_static_flag"
18572      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18573echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18574if test "${lt_cv_dlopen_self_static+set}" = set; then
18575  echo $ECHO_N "(cached) $ECHO_C" >&6
18576else
18577  	  if test "$cross_compiling" = yes; then :
18578  lt_cv_dlopen_self_static=cross
18579else
18580  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18581  lt_status=$lt_dlunknown
18582  cat > conftest.$ac_ext <<EOF
18583#line 18583 "configure"
18584#include "confdefs.h"
18585
18586#if HAVE_DLFCN_H
18587#include <dlfcn.h>
18588#endif
18589
18590#include <stdio.h>
18591
18592#ifdef RTLD_GLOBAL
18593#  define LT_DLGLOBAL		RTLD_GLOBAL
18594#else
18595#  ifdef DL_GLOBAL
18596#    define LT_DLGLOBAL		DL_GLOBAL
18597#  else
18598#    define LT_DLGLOBAL		0
18599#  endif
18600#endif
18601
18602/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18603   find out it does not work in some platform. */
18604#ifndef LT_DLLAZY_OR_NOW
18605#  ifdef RTLD_LAZY
18606#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18607#  else
18608#    ifdef DL_LAZY
18609#      define LT_DLLAZY_OR_NOW		DL_LAZY
18610#    else
18611#      ifdef RTLD_NOW
18612#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18613#      else
18614#        ifdef DL_NOW
18615#          define LT_DLLAZY_OR_NOW	DL_NOW
18616#        else
18617#          define LT_DLLAZY_OR_NOW	0
18618#        endif
18619#      endif
18620#    endif
18621#  endif
18622#endif
18623
18624#ifdef __cplusplus
18625extern "C" void exit (int);
18626#endif
18627
18628void fnord() { int i=42;}
18629int main ()
18630{
18631  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18632  int status = $lt_dlunknown;
18633
18634  if (self)
18635    {
18636      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18637      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18638      /* dlclose (self); */
18639    }
18640
18641    exit (status);
18642}
18643EOF
18644  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645  (eval $ac_link) 2>&5
18646  ac_status=$?
18647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18649    (./conftest; exit; ) 2>/dev/null
18650    lt_status=$?
18651    case x$lt_status in
18652      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18653      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18654      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18655    esac
18656  else :
18657    # compilation failed
18658    lt_cv_dlopen_self_static=no
18659  fi
18660fi
18661rm -fr conftest*
18662
18663
18664fi
18665echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18666echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18667    fi
18668
18669    CPPFLAGS="$save_CPPFLAGS"
18670    LDFLAGS="$save_LDFLAGS"
18671    LIBS="$save_LIBS"
18672    ;;
18673  esac
18674
18675  case $lt_cv_dlopen_self in
18676  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18677  *) enable_dlopen_self=unknown ;;
18678  esac
18679
18680  case $lt_cv_dlopen_self_static in
18681  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18682  *) enable_dlopen_self_static=unknown ;;
18683  esac
18684fi
18685
18686
18687# The else clause should only fire when bootstrapping the
18688# libtool distribution, otherwise you forgot to ship ltmain.sh
18689# with your package, and you will get complaints that there are
18690# no rules to generate ltmain.sh.
18691if test -f "$ltmain"; then
18692  # See if we are running on zsh, and set the options which allow our commands through
18693  # without removal of \ escapes.
18694  if test -n "${ZSH_VERSION+set}" ; then
18695    setopt NO_GLOB_SUBST
18696  fi
18697  # Now quote all the things that may contain metacharacters while being
18698  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18699  # variables and quote the copies for generation of the libtool script.
18700  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18701    SED SHELL STRIP \
18702    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18703    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18704    deplibs_check_method reload_flag reload_cmds need_locks \
18705    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18706    lt_cv_sys_global_symbol_to_c_name_address \
18707    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18708    old_postinstall_cmds old_postuninstall_cmds \
18709    compiler_CXX \
18710    CC_CXX \
18711    LD_CXX \
18712    lt_prog_compiler_wl_CXX \
18713    lt_prog_compiler_pic_CXX \
18714    lt_prog_compiler_static_CXX \
18715    lt_prog_compiler_no_builtin_flag_CXX \
18716    export_dynamic_flag_spec_CXX \
18717    thread_safe_flag_spec_CXX \
18718    whole_archive_flag_spec_CXX \
18719    enable_shared_with_static_runtimes_CXX \
18720    old_archive_cmds_CXX \
18721    old_archive_from_new_cmds_CXX \
18722    predep_objects_CXX \
18723    postdep_objects_CXX \
18724    predeps_CXX \
18725    postdeps_CXX \
18726    compiler_lib_search_path_CXX \
18727    archive_cmds_CXX \
18728    archive_expsym_cmds_CXX \
18729    postinstall_cmds_CXX \
18730    postuninstall_cmds_CXX \
18731    old_archive_from_expsyms_cmds_CXX \
18732    allow_undefined_flag_CXX \
18733    no_undefined_flag_CXX \
18734    export_symbols_cmds_CXX \
18735    hardcode_libdir_flag_spec_CXX \
18736    hardcode_libdir_flag_spec_ld_CXX \
18737    hardcode_libdir_separator_CXX \
18738    hardcode_automatic_CXX \
18739    module_cmds_CXX \
18740    module_expsym_cmds_CXX \
18741    lt_cv_prog_compiler_c_o_CXX \
18742    exclude_expsyms_CXX \
18743    include_expsyms_CXX; do
18744
18745    case $var in
18746    old_archive_cmds_CXX | \
18747    old_archive_from_new_cmds_CXX | \
18748    archive_cmds_CXX | \
18749    archive_expsym_cmds_CXX | \
18750    module_cmds_CXX | \
18751    module_expsym_cmds_CXX | \
18752    old_archive_from_expsyms_cmds_CXX | \
18753    export_symbols_cmds_CXX | \
18754    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18755    postinstall_cmds | postuninstall_cmds | \
18756    old_postinstall_cmds | old_postuninstall_cmds | \
18757    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18758      # Double-quote double-evaled strings.
18759      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18760      ;;
18761    *)
18762      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18763      ;;
18764    esac
18765  done
18766
18767  case $lt_echo in
18768  *'\$0 --fallback-echo"')
18769    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18770    ;;
18771  esac
18772
18773cfgfile="$ofile"
18774
18775  cat <<__EOF__ >> "$cfgfile"
18776# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18777
18778# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18779
18780# Shell to use when invoking shell scripts.
18781SHELL=$lt_SHELL
18782
18783# Whether or not to build shared libraries.
18784build_libtool_libs=$enable_shared
18785
18786# Whether or not to build static libraries.
18787build_old_libs=$enable_static
18788
18789# Whether or not to add -lc for building shared libraries.
18790build_libtool_need_lc=$archive_cmds_need_lc_CXX
18791
18792# Whether or not to disallow shared libs when runtime libs are static
18793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18794
18795# Whether or not to optimize for fast installation.
18796fast_install=$enable_fast_install
18797
18798# The host system.
18799host_alias=$host_alias
18800host=$host
18801
18802# An echo program that does not interpret backslashes.
18803echo=$lt_echo
18804
18805# The archiver.
18806AR=$lt_AR
18807AR_FLAGS=$lt_AR_FLAGS
18808
18809# A C compiler.
18810LTCC=$lt_LTCC
18811
18812# A language-specific compiler.
18813CC=$lt_compiler_CXX
18814
18815# Is the compiler the GNU C compiler?
18816with_gcc=$GCC_CXX
18817
18818# An ERE matcher.
18819EGREP=$lt_EGREP
18820
18821# The linker used to build libraries.
18822LD=$lt_LD_CXX
18823
18824# Whether we need hard or soft links.
18825LN_S=$lt_LN_S
18826
18827# A BSD-compatible nm program.
18828NM=$lt_NM
18829
18830# A symbol stripping program
18831STRIP=$lt_STRIP
18832
18833# Used to examine libraries when file_magic_cmd begins "file"
18834MAGIC_CMD=$MAGIC_CMD
18835
18836# Used on cygwin: DLL creation program.
18837DLLTOOL="$DLLTOOL"
18838
18839# Used on cygwin: object dumper.
18840OBJDUMP="$OBJDUMP"
18841
18842# Used on cygwin: assembler.
18843AS="$AS"
18844
18845# The name of the directory that contains temporary libtool files.
18846objdir=$objdir
18847
18848# How to create reloadable object files.
18849reload_flag=$lt_reload_flag
18850reload_cmds=$lt_reload_cmds
18851
18852# How to pass a linker flag through the compiler.
18853wl=$lt_lt_prog_compiler_wl_CXX
18854
18855# Object file suffix (normally "o").
18856objext="$ac_objext"
18857
18858# Old archive suffix (normally "a").
18859libext="$libext"
18860
18861# Shared library suffix (normally ".so").
18862shrext_cmds='$shrext_cmds'
18863
18864# Executable file suffix (normally "").
18865exeext="$exeext"
18866
18867# Additional compiler flags for building library objects.
18868pic_flag=$lt_lt_prog_compiler_pic_CXX
18869pic_mode=$pic_mode
18870
18871# What is the maximum length of a command?
18872max_cmd_len=$lt_cv_sys_max_cmd_len
18873
18874# Does compiler simultaneously support -c and -o options?
18875compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18876
18877# Must we lock files when doing compilation ?
18878need_locks=$lt_need_locks
18879
18880# Do we need the lib prefix for modules?
18881need_lib_prefix=$need_lib_prefix
18882
18883# Do we need a version for libraries?
18884need_version=$need_version
18885
18886# Whether dlopen is supported.
18887dlopen_support=$enable_dlopen
18888
18889# Whether dlopen of programs is supported.
18890dlopen_self=$enable_dlopen_self
18891
18892# Whether dlopen of statically linked programs is supported.
18893dlopen_self_static=$enable_dlopen_self_static
18894
18895# Compiler flag to prevent dynamic linking.
18896link_static_flag=$lt_lt_prog_compiler_static_CXX
18897
18898# Compiler flag to turn off builtin functions.
18899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18900
18901# Compiler flag to allow reflexive dlopens.
18902export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18903
18904# Compiler flag to generate shared objects directly from archives.
18905whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18906
18907# Compiler flag to generate thread-safe objects.
18908thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18909
18910# Library versioning type.
18911version_type=$version_type
18912
18913# Format of library name prefix.
18914libname_spec=$lt_libname_spec
18915
18916# List of archive names.  First name is the real one, the rest are links.
18917# The last name is the one that the linker finds with -lNAME.
18918library_names_spec=$lt_library_names_spec
18919
18920# The coded name of the library, if different from the real name.
18921soname_spec=$lt_soname_spec
18922
18923# Commands used to build and install an old-style archive.
18924RANLIB=$lt_RANLIB
18925old_archive_cmds=$lt_old_archive_cmds_CXX
18926old_postinstall_cmds=$lt_old_postinstall_cmds
18927old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928
18929# Create an old-style archive from a shared archive.
18930old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18931
18932# Create a temporary old-style archive to link instead of a shared archive.
18933old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18934
18935# Commands used to build and install a shared archive.
18936archive_cmds=$lt_archive_cmds_CXX
18937archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18938postinstall_cmds=$lt_postinstall_cmds
18939postuninstall_cmds=$lt_postuninstall_cmds
18940
18941# Commands used to build a loadable module (assumed same as above if empty)
18942module_cmds=$lt_module_cmds_CXX
18943module_expsym_cmds=$lt_module_expsym_cmds_CXX
18944
18945# Commands to strip libraries.
18946old_striplib=$lt_old_striplib
18947striplib=$lt_striplib
18948
18949# Dependencies to place before the objects being linked to create a
18950# shared library.
18951predep_objects=$lt_predep_objects_CXX
18952
18953# Dependencies to place after the objects being linked to create a
18954# shared library.
18955postdep_objects=$lt_postdep_objects_CXX
18956
18957# Dependencies to place before the objects being linked to create a
18958# shared library.
18959predeps=$lt_predeps_CXX
18960
18961# Dependencies to place after the objects being linked to create a
18962# shared library.
18963postdeps=$lt_postdeps_CXX
18964
18965# The library search path used internally by the compiler when linking
18966# a shared library.
18967compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18968
18969# Method to check whether dependent libraries are shared objects.
18970deplibs_check_method=$lt_deplibs_check_method
18971
18972# Command to use when deplibs_check_method == file_magic.
18973file_magic_cmd=$lt_file_magic_cmd
18974
18975# Flag that allows shared libraries with undefined symbols to be built.
18976allow_undefined_flag=$lt_allow_undefined_flag_CXX
18977
18978# Flag that forces no undefined symbols.
18979no_undefined_flag=$lt_no_undefined_flag_CXX
18980
18981# Commands used to finish a libtool library installation in a directory.
18982finish_cmds=$lt_finish_cmds
18983
18984# Same as above, but a single script fragment to be evaled but not shown.
18985finish_eval=$lt_finish_eval
18986
18987# Take the output of nm and produce a listing of raw symbols and C names.
18988global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989
18990# Transform the output of nm in a proper C declaration
18991global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992
18993# Transform the output of nm in a C name address pair
18994global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995
18996# This is the shared library runtime path variable.
18997runpath_var=$runpath_var
18998
18999# This is the shared library path variable.
19000shlibpath_var=$shlibpath_var
19001
19002# Is shlibpath searched before the hard-coded library search path?
19003shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004
19005# How to hardcode a shared library path into an executable.
19006hardcode_action=$hardcode_action_CXX
19007
19008# Whether we should hardcode library paths into libraries.
19009hardcode_into_libs=$hardcode_into_libs
19010
19011# Flag to hardcode \$libdir into a binary during linking.
19012# This must work even if \$libdir does not exist.
19013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19014
19015# If ld is used when linking, flag to hardcode \$libdir into
19016# a binary during linking. This must work even if \$libdir does
19017# not exist.
19018hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19019
19020# Whether we need a single -rpath flag with a separated argument.
19021hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19022
19023# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19024# resulting binary.
19025hardcode_direct=$hardcode_direct_CXX
19026
19027# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19028# resulting binary.
19029hardcode_minus_L=$hardcode_minus_L_CXX
19030
19031# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19032# the resulting binary.
19033hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19034
19035# Set to yes if building a shared library automatically hardcodes DIR into the library
19036# and all subsequent libraries and executables linked against it.
19037hardcode_automatic=$hardcode_automatic_CXX
19038
19039# Variables whose values should be saved in libtool wrapper scripts and
19040# restored at relink time.
19041variables_saved_for_relink="$variables_saved_for_relink"
19042
19043# Whether libtool must link a program against all its dependency libraries.
19044link_all_deplibs=$link_all_deplibs_CXX
19045
19046# Compile-time system search path for libraries
19047sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19048
19049# Run-time system search path for libraries
19050sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19051
19052# Fix the shell variable \$srcfile for the compiler.
19053fix_srcfile_path="$fix_srcfile_path_CXX"
19054
19055# Set to yes if exported symbols are required.
19056always_export_symbols=$always_export_symbols_CXX
19057
19058# The commands to list exported symbols.
19059export_symbols_cmds=$lt_export_symbols_cmds_CXX
19060
19061# The commands to extract the exported symbol list from a shared archive.
19062extract_expsyms_cmds=$lt_extract_expsyms_cmds
19063
19064# Symbols that should not be listed in the preloaded symbols.
19065exclude_expsyms=$lt_exclude_expsyms_CXX
19066
19067# Symbols that must always be exported.
19068include_expsyms=$lt_include_expsyms_CXX
19069
19070# ### END LIBTOOL TAG CONFIG: $tagname
19071
19072__EOF__
19073
19074
19075else
19076  # If there is no Makefile yet, we rely on a make rule to execute
19077  # `config.status --recheck' to rerun these tests and create the
19078  # libtool script then.
19079  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19080  if test -f "$ltmain_in"; then
19081    test -f Makefile && make "$ltmain"
19082  fi
19083fi
19084
19085
19086ac_ext=c
19087ac_cpp='$CPP $CPPFLAGS'
19088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
19092CC=$lt_save_CC
19093LDCXX=$LD
19094LD=$lt_save_LD
19095GCC=$lt_save_GCC
19096with_gnu_ldcxx=$with_gnu_ld
19097with_gnu_ld=$lt_save_with_gnu_ld
19098lt_cv_path_LDCXX=$lt_cv_path_LD
19099lt_cv_path_LD=$lt_save_path_LD
19100lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19101lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19102
19103	else
19104	  tagname=""
19105	fi
19106	;;
19107
19108      F77)
19109	if test -n "$F77" && test "X$F77" != "Xno"; then
19110
19111ac_ext=f
19112ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19113ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19114ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19115
19116
19117archive_cmds_need_lc_F77=no
19118allow_undefined_flag_F77=
19119always_export_symbols_F77=no
19120archive_expsym_cmds_F77=
19121export_dynamic_flag_spec_F77=
19122hardcode_direct_F77=no
19123hardcode_libdir_flag_spec_F77=
19124hardcode_libdir_flag_spec_ld_F77=
19125hardcode_libdir_separator_F77=
19126hardcode_minus_L_F77=no
19127hardcode_automatic_F77=no
19128module_cmds_F77=
19129module_expsym_cmds_F77=
19130link_all_deplibs_F77=unknown
19131old_archive_cmds_F77=$old_archive_cmds
19132no_undefined_flag_F77=
19133whole_archive_flag_spec_F77=
19134enable_shared_with_static_runtimes_F77=no
19135
19136# Source file extension for f77 test sources.
19137ac_ext=f
19138
19139# Object file extension for compiled f77 test sources.
19140objext=o
19141objext_F77=$objext
19142
19143# Code to be used in simple compile tests
19144lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19145
19146# Code to be used in simple link tests
19147lt_simple_link_test_code="      program t\n      end\n"
19148
19149# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19150
19151# If no C compiler was specified, use CC.
19152LTCC=${LTCC-"$CC"}
19153
19154# Allow CC to be a program name with arguments.
19155compiler=$CC
19156
19157
19158# Allow CC to be a program name with arguments.
19159lt_save_CC="$CC"
19160CC=${F77-"f77"}
19161compiler=$CC
19162compiler_F77=$CC
19163cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19164
19165echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19166echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19167echo "$as_me:$LINENO: result: $can_build_shared" >&5
19168echo "${ECHO_T}$can_build_shared" >&6
19169
19170echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19171echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19172test "$can_build_shared" = "no" && enable_shared=no
19173
19174# On AIX, shared libraries and static libraries use the same namespace, and
19175# are all built from PIC.
19176case "$host_os" in
19177aix3*)
19178  test "$enable_shared" = yes && enable_static=no
19179  if test -n "$RANLIB"; then
19180    archive_cmds="$archive_cmds~\$RANLIB \$lib"
19181    postinstall_cmds='$RANLIB $lib'
19182  fi
19183  ;;
19184aix4* | aix5*)
19185  test "$enable_shared" = yes && enable_static=no
19186  ;;
19187esac
19188echo "$as_me:$LINENO: result: $enable_shared" >&5
19189echo "${ECHO_T}$enable_shared" >&6
19190
19191echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19192echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19193# Make sure either enable_shared or enable_static is yes.
19194test "$enable_shared" = yes || enable_static=yes
19195echo "$as_me:$LINENO: result: $enable_static" >&5
19196echo "${ECHO_T}$enable_static" >&6
19197
19198test "$ld_shlibs_F77" = no && can_build_shared=no
19199
19200GCC_F77="$G77"
19201LD_F77="$LD"
19202
19203lt_prog_compiler_wl_F77=
19204lt_prog_compiler_pic_F77=
19205lt_prog_compiler_static_F77=
19206
19207echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19208echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19209
19210  if test "$GCC" = yes; then
19211    lt_prog_compiler_wl_F77='-Wl,'
19212    lt_prog_compiler_static_F77='-static'
19213
19214    case $host_os in
19215      aix*)
19216      # All AIX code is PIC.
19217      if test "$host_cpu" = ia64; then
19218	# AIX 5 now supports IA64 processor
19219	lt_prog_compiler_static_F77='-Bstatic'
19220      fi
19221      ;;
19222
19223    amigaos*)
19224      # FIXME: we need at least 68020 code to build shared libraries, but
19225      # adding the `-m68020' flag to GCC prevents building anything better,
19226      # like `-m68040'.
19227      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19228      ;;
19229
19230    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19231      # PIC is the default for these OSes.
19232      ;;
19233
19234    mingw* | pw32* | os2*)
19235      # This hack is so that the source file can tell whether it is being
19236      # built for inclusion in a dll (and should export symbols for example).
19237      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19238      ;;
19239
19240    darwin* | rhapsody*)
19241      # PIC is the default on this platform
19242      # Common symbols not allowed in MH_DYLIB files
19243      lt_prog_compiler_pic_F77='-fno-common'
19244      ;;
19245
19246    msdosdjgpp*)
19247      # Just because we use GCC doesn't mean we suddenly get shared libraries
19248      # on systems that don't support them.
19249      lt_prog_compiler_can_build_shared_F77=no
19250      enable_shared=no
19251      ;;
19252
19253    sysv4*MP*)
19254      if test -d /usr/nec; then
19255	lt_prog_compiler_pic_F77=-Kconform_pic
19256      fi
19257      ;;
19258
19259    hpux*)
19260      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19261      # not for PA HP-UX.
19262      case "$host_cpu" in
19263      hppa*64*|ia64*)
19264	# +Z the default
19265	;;
19266      *)
19267	lt_prog_compiler_pic_F77='-fPIC'
19268	;;
19269      esac
19270      ;;
19271
19272    *)
19273      lt_prog_compiler_pic_F77='-fPIC'
19274      ;;
19275    esac
19276  else
19277    # PORTME Check for flag to pass linker flags through the system compiler.
19278    case $host_os in
19279    aix*)
19280      lt_prog_compiler_wl_F77='-Wl,'
19281      if test "$host_cpu" = ia64; then
19282	# AIX 5 now supports IA64 processor
19283	lt_prog_compiler_static_F77='-Bstatic'
19284      else
19285	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19286      fi
19287      ;;
19288      darwin*)
19289        # PIC is the default on this platform
19290        # Common symbols not allowed in MH_DYLIB files
19291       case "$cc_basename" in
19292         xlc*)
19293         lt_prog_compiler_pic_F77='-qnocommon'
19294         lt_prog_compiler_wl_F77='-Wl,'
19295         ;;
19296       esac
19297       ;;
19298
19299    mingw* | pw32* | os2*)
19300      # This hack is so that the source file can tell whether it is being
19301      # built for inclusion in a dll (and should export symbols for example).
19302      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19303      ;;
19304
19305    hpux9* | hpux10* | hpux11*)
19306      lt_prog_compiler_wl_F77='-Wl,'
19307      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19308      # not for PA HP-UX.
19309      case "$host_cpu" in
19310      hppa*64*|ia64*)
19311	# +Z the default
19312	;;
19313      *)
19314	lt_prog_compiler_pic_F77='+Z'
19315	;;
19316      esac
19317      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19318      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19319      ;;
19320
19321    irix5* | irix6* | nonstopux*)
19322      lt_prog_compiler_wl_F77='-Wl,'
19323      # PIC (with -KPIC) is the default.
19324      lt_prog_compiler_static_F77='-non_shared'
19325      ;;
19326
19327    newsos6)
19328      lt_prog_compiler_pic_F77='-KPIC'
19329      lt_prog_compiler_static_F77='-Bstatic'
19330      ;;
19331
19332    linux*)
19333      case $CC in
19334      icc* | ecc*)
19335	lt_prog_compiler_wl_F77='-Wl,'
19336	lt_prog_compiler_pic_F77='-KPIC'
19337	lt_prog_compiler_static_F77='-static'
19338        ;;
19339      ccc*)
19340        lt_prog_compiler_wl_F77='-Wl,'
19341        # All Alpha code is PIC.
19342        lt_prog_compiler_static_F77='-non_shared'
19343        ;;
19344      esac
19345      ;;
19346
19347    osf3* | osf4* | osf5*)
19348      lt_prog_compiler_wl_F77='-Wl,'
19349      # All OSF/1 code is PIC.
19350      lt_prog_compiler_static_F77='-non_shared'
19351      ;;
19352
19353    sco3.2v5*)
19354      lt_prog_compiler_pic_F77='-Kpic'
19355      lt_prog_compiler_static_F77='-dn'
19356      ;;
19357
19358    solaris*)
19359      lt_prog_compiler_wl_F77='-Wl,'
19360      lt_prog_compiler_pic_F77='-KPIC'
19361      lt_prog_compiler_static_F77='-Bstatic'
19362      ;;
19363
19364    sunos4*)
19365      lt_prog_compiler_wl_F77='-Qoption ld '
19366      lt_prog_compiler_pic_F77='-PIC'
19367      lt_prog_compiler_static_F77='-Bstatic'
19368      ;;
19369
19370    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19371      lt_prog_compiler_wl_F77='-Wl,'
19372      lt_prog_compiler_pic_F77='-KPIC'
19373      lt_prog_compiler_static_F77='-Bstatic'
19374      ;;
19375
19376    sysv4*MP*)
19377      if test -d /usr/nec ;then
19378	lt_prog_compiler_pic_F77='-Kconform_pic'
19379	lt_prog_compiler_static_F77='-Bstatic'
19380      fi
19381      ;;
19382
19383    uts4*)
19384      lt_prog_compiler_pic_F77='-pic'
19385      lt_prog_compiler_static_F77='-Bstatic'
19386      ;;
19387
19388    *)
19389      lt_prog_compiler_can_build_shared_F77=no
19390      ;;
19391    esac
19392  fi
19393
19394echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19395echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19396
19397#
19398# Check to make sure the PIC flag actually works.
19399#
19400if test -n "$lt_prog_compiler_pic_F77"; then
19401
19402echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19403echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19404if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19405  echo $ECHO_N "(cached) $ECHO_C" >&6
19406else
19407  lt_prog_compiler_pic_works_F77=no
19408  ac_outfile=conftest.$ac_objext
19409   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19410   lt_compiler_flag="$lt_prog_compiler_pic_F77"
19411   # Insert the option either (1) after the last *FLAGS variable, or
19412   # (2) before a word containing "conftest.", or (3) at the end.
19413   # Note that $ac_compile itself does not contain backslashes and begins
19414   # with a dollar sign (not a hyphen), so the echo should work correctly.
19415   # The option is referenced via a variable to avoid confusing sed.
19416   lt_compile=`echo "$ac_compile" | $SED \
19417   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19419   -e 's:$: $lt_compiler_flag:'`
19420   (eval echo "\"\$as_me:19420: $lt_compile\"" >&5)
19421   (eval "$lt_compile" 2>conftest.err)
19422   ac_status=$?
19423   cat conftest.err >&5
19424   echo "$as_me:19424: \$? = $ac_status" >&5
19425   if (exit $ac_status) && test -s "$ac_outfile"; then
19426     # The compiler can only warn and ignore the option if not recognized
19427     # So say no if there are warnings
19428     if test ! -s conftest.err; then
19429       lt_prog_compiler_pic_works_F77=yes
19430     fi
19431   fi
19432   $rm conftest*
19433
19434fi
19435echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19436echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19437
19438if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19439    case $lt_prog_compiler_pic_F77 in
19440     "" | " "*) ;;
19441     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19442     esac
19443else
19444    lt_prog_compiler_pic_F77=
19445     lt_prog_compiler_can_build_shared_F77=no
19446fi
19447
19448fi
19449case "$host_os" in
19450  # For platforms which do not support PIC, -DPIC is meaningless:
19451  *djgpp*)
19452    lt_prog_compiler_pic_F77=
19453    ;;
19454  *)
19455    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19456    ;;
19457esac
19458
19459echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19460echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19461if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19462  echo $ECHO_N "(cached) $ECHO_C" >&6
19463else
19464  lt_cv_prog_compiler_c_o_F77=no
19465   $rm -r conftest 2>/dev/null
19466   mkdir conftest
19467   cd conftest
19468   mkdir out
19469   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19470
19471   lt_compiler_flag="-o out/conftest2.$ac_objext"
19472   # Insert the option either (1) after the last *FLAGS variable, or
19473   # (2) before a word containing "conftest.", or (3) at the end.
19474   # Note that $ac_compile itself does not contain backslashes and begins
19475   # with a dollar sign (not a hyphen), so the echo should work correctly.
19476   lt_compile=`echo "$ac_compile" | $SED \
19477   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19479   -e 's:$: $lt_compiler_flag:'`
19480   (eval echo "\"\$as_me:19480: $lt_compile\"" >&5)
19481   (eval "$lt_compile" 2>out/conftest.err)
19482   ac_status=$?
19483   cat out/conftest.err >&5
19484   echo "$as_me:19484: \$? = $ac_status" >&5
19485   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19486   then
19487     # The compiler can only warn and ignore the option if not recognized
19488     # So say no if there are warnings
19489     if test ! -s out/conftest.err; then
19490       lt_cv_prog_compiler_c_o_F77=yes
19491     fi
19492   fi
19493   chmod u+w .
19494   $rm conftest*
19495   # SGI C++ compiler will create directory out/ii_files/ for
19496   # template instantiation
19497   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19498   $rm out/* && rmdir out
19499   cd ..
19500   rmdir conftest
19501   $rm conftest*
19502
19503fi
19504echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19505echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19506
19507
19508hard_links="nottested"
19509if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19510  # do not overwrite the value of need_locks provided by the user
19511  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19512echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19513  hard_links=yes
19514  $rm conftest*
19515  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19516  touch conftest.a
19517  ln conftest.a conftest.b 2>&5 || hard_links=no
19518  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19519  echo "$as_me:$LINENO: result: $hard_links" >&5
19520echo "${ECHO_T}$hard_links" >&6
19521  if test "$hard_links" = no; then
19522    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19523echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19524    need_locks=warn
19525  fi
19526else
19527  need_locks=no
19528fi
19529
19530echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19531echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19532
19533  runpath_var=
19534  allow_undefined_flag_F77=
19535  enable_shared_with_static_runtimes_F77=no
19536  archive_cmds_F77=
19537  archive_expsym_cmds_F77=
19538  old_archive_From_new_cmds_F77=
19539  old_archive_from_expsyms_cmds_F77=
19540  export_dynamic_flag_spec_F77=
19541  whole_archive_flag_spec_F77=
19542  thread_safe_flag_spec_F77=
19543  hardcode_libdir_flag_spec_F77=
19544  hardcode_libdir_flag_spec_ld_F77=
19545  hardcode_libdir_separator_F77=
19546  hardcode_direct_F77=no
19547  hardcode_minus_L_F77=no
19548  hardcode_shlibpath_var_F77=unsupported
19549  link_all_deplibs_F77=unknown
19550  hardcode_automatic_F77=no
19551  module_cmds_F77=
19552  module_expsym_cmds_F77=
19553  always_export_symbols_F77=no
19554  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19555  # include_expsyms should be a list of space-separated symbols to be *always*
19556  # included in the symbol list
19557  include_expsyms_F77=
19558  # exclude_expsyms can be an extended regexp of symbols to exclude
19559  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19560  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19561  # as well as any symbol that contains `d'.
19562  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19563  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19564  # platforms (ab)use it in PIC code, but their linkers get confused if
19565  # the symbol is explicitly referenced.  Since portable code cannot
19566  # rely on this symbol name, it's probably fine to never include it in
19567  # preloaded symbol tables.
19568  extract_expsyms_cmds=
19569
19570  case $host_os in
19571  cygwin* | mingw* | pw32*)
19572    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19573    # When not using gcc, we currently assume that we are using
19574    # Microsoft Visual C++.
19575    if test "$GCC" != yes; then
19576      with_gnu_ld=no
19577    fi
19578    ;;
19579  openbsd*)
19580    with_gnu_ld=no
19581    ;;
19582  esac
19583
19584  ld_shlibs_F77=yes
19585  if test "$with_gnu_ld" = yes; then
19586    # If archive_cmds runs LD, not CC, wlarc should be empty
19587    wlarc='${wl}'
19588
19589    # See if GNU ld supports shared libraries.
19590    case $host_os in
19591    aix3* | aix4* | aix5*)
19592      # On AIX/PPC, the GNU linker is very broken
19593      if test "$host_cpu" != ia64; then
19594	ld_shlibs_F77=no
19595	cat <<EOF 1>&2
19596
19597*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19598*** to be unable to reliably create shared libraries on AIX.
19599*** Therefore, libtool is disabling shared libraries support.  If you
19600*** really care for shared libraries, you may want to modify your PATH
19601*** so that a non-GNU linker is found, and then restart.
19602
19603EOF
19604      fi
19605      ;;
19606
19607    amigaos*)
19608      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)'
19609      hardcode_libdir_flag_spec_F77='-L$libdir'
19610      hardcode_minus_L_F77=yes
19611
19612      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19613      # that the semantics of dynamic libraries on AmigaOS, at least up
19614      # to version 4, is to share data among multiple programs linked
19615      # with the same dynamic library.  Since this doesn't match the
19616      # behavior of shared libraries on other platforms, we can't use
19617      # them.
19618      ld_shlibs_F77=no
19619      ;;
19620
19621    beos*)
19622      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19623	allow_undefined_flag_F77=unsupported
19624	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19625	# support --undefined.  This deserves some investigation.  FIXME
19626	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19627      else
19628	ld_shlibs_F77=no
19629      fi
19630      ;;
19631
19632    cygwin* | mingw* | pw32*)
19633      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19634      # as there is no search path for DLLs.
19635      hardcode_libdir_flag_spec_F77='-L$libdir'
19636      allow_undefined_flag_F77=unsupported
19637      always_export_symbols_F77=no
19638      enable_shared_with_static_runtimes_F77=yes
19639      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19640
19641      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19642        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19643	# If the export-symbols file already is a .def file (1st line
19644	# is EXPORTS), use it as is; otherwise, prepend...
19645	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19646	  cp $export_symbols $output_objdir/$soname.def;
19647	else
19648	  echo EXPORTS > $output_objdir/$soname.def;
19649	  cat $export_symbols >> $output_objdir/$soname.def;
19650	fi~
19651	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19652      else
19653	ld_shlibs=no
19654      fi
19655      ;;
19656
19657    netbsd*)
19658      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19659	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19660	wlarc=
19661      else
19662	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19663	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19664      fi
19665      ;;
19666
19667    solaris* | sysv5*)
19668      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19669	ld_shlibs_F77=no
19670	cat <<EOF 1>&2
19671
19672*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19673*** create shared libraries on Solaris systems.  Therefore, libtool
19674*** is disabling shared libraries support.  We urge you to upgrade GNU
19675*** binutils to release 2.9.1 or newer.  Another option is to modify
19676*** your PATH or compiler configuration so that the native linker is
19677*** used, and then restart.
19678
19679EOF
19680      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19681	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19682	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19683      else
19684	ld_shlibs_F77=no
19685      fi
19686      ;;
19687
19688    sunos4*)
19689      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19690      wlarc=
19691      hardcode_direct_F77=yes
19692      hardcode_shlibpath_var_F77=no
19693      ;;
19694
19695  linux*)
19696    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19697        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19698	archive_cmds_F77="$tmp_archive_cmds"
19699      supports_anon_versioning=no
19700      case `$LD -v 2>/dev/null` in
19701        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19702        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19703        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19704        *\ 2.11.*) ;; # other 2.11 versions
19705        *) supports_anon_versioning=yes ;;
19706      esac
19707      if test $supports_anon_versioning = yes; then
19708        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19709cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19710$echo "local: *; };" >> $output_objdir/$libname.ver~
19711        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19712      else
19713        archive_expsym_cmds_F77="$tmp_archive_cmds"
19714      fi
19715    else
19716      ld_shlibs_F77=no
19717    fi
19718    ;;
19719
19720    *)
19721      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19722	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19723	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19724      else
19725	ld_shlibs_F77=no
19726      fi
19727      ;;
19728    esac
19729
19730    if test "$ld_shlibs_F77" = yes; then
19731      runpath_var=LD_RUN_PATH
19732      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19733      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19734      # ancient GNU ld didn't support --whole-archive et. al.
19735      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19736 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19737      else
19738  	whole_archive_flag_spec_F77=
19739      fi
19740    fi
19741  else
19742    # PORTME fill in a description of your system's linker (not GNU ld)
19743    case $host_os in
19744    aix3*)
19745      allow_undefined_flag_F77=unsupported
19746      always_export_symbols_F77=yes
19747      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'
19748      # Note: this linker hardcodes the directories in LIBPATH if there
19749      # are no directories specified by -L.
19750      hardcode_minus_L_F77=yes
19751      if test "$GCC" = yes && test -z "$link_static_flag"; then
19752	# Neither direct hardcoding nor static linking is supported with a
19753	# broken collect2.
19754	hardcode_direct_F77=unsupported
19755      fi
19756      ;;
19757
19758    aix4* | aix5*)
19759      if test "$host_cpu" = ia64; then
19760	# On IA64, the linker does run time linking by default, so we don't
19761	# have to do anything special.
19762	aix_use_runtimelinking=no
19763	exp_sym_flag='-Bexport'
19764	no_entry_flag=""
19765      else
19766	# If we're using GNU nm, then we don't want the "-C" option.
19767	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19768	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19769	  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'
19770	else
19771	  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'
19772	fi
19773	aix_use_runtimelinking=no
19774
19775	# Test if we are trying to use run time linking or normal
19776	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19777	# need to do runtime linking.
19778	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19779	  for ld_flag in $LDFLAGS; do
19780  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19781  	    aix_use_runtimelinking=yes
19782  	    break
19783  	  fi
19784	  done
19785	esac
19786
19787	exp_sym_flag='-bexport'
19788	no_entry_flag='-bnoentry'
19789      fi
19790
19791      # When large executables or shared objects are built, AIX ld can
19792      # have problems creating the table of contents.  If linking a library
19793      # or program results in "error TOC overflow" add -mminimal-toc to
19794      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19795      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19796
19797      archive_cmds_F77=''
19798      hardcode_direct_F77=yes
19799      hardcode_libdir_separator_F77=':'
19800      link_all_deplibs_F77=yes
19801
19802      if test "$GCC" = yes; then
19803	case $host_os in aix4.012|aix4.012.*)
19804	# We only want to do this on AIX 4.2 and lower, the check
19805	# below for broken collect2 doesn't work under 4.3+
19806	  collect2name=`${CC} -print-prog-name=collect2`
19807	  if test -f "$collect2name" && \
19808  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19809	  then
19810  	  # We have reworked collect2
19811  	  hardcode_direct_F77=yes
19812	  else
19813  	  # We have old collect2
19814  	  hardcode_direct_F77=unsupported
19815  	  # It fails to find uninstalled libraries when the uninstalled
19816  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19817  	  # to unsupported forces relinking
19818  	  hardcode_minus_L_F77=yes
19819  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19820  	  hardcode_libdir_separator_F77=
19821	  fi
19822	esac
19823	shared_flag='-shared'
19824      else
19825	# not using gcc
19826	if test "$host_cpu" = ia64; then
19827  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19828  	# chokes on -Wl,-G. The following line is correct:
19829	  shared_flag='-G'
19830	else
19831  	if test "$aix_use_runtimelinking" = yes; then
19832	    shared_flag='${wl}-G'
19833	  else
19834	    shared_flag='${wl}-bM:SRE'
19835  	fi
19836	fi
19837      fi
19838
19839      # It seems that -bexpall does not export symbols beginning with
19840      # underscore (_), so it is better to generate a list of symbols to export.
19841      always_export_symbols_F77=yes
19842      if test "$aix_use_runtimelinking" = yes; then
19843	# Warning - without using the other runtime loading flags (-brtl),
19844	# -berok will link without error, but may produce a broken library.
19845	allow_undefined_flag_F77='-berok'
19846       # Determine the default libpath from the value encoded in an empty executable.
19847       cat >conftest.$ac_ext <<_ACEOF
19848      program main
19849
19850      end
19851_ACEOF
19852rm -f conftest.$ac_objext conftest$ac_exeext
19853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854  (eval $ac_link) 2>conftest.er1
19855  ac_status=$?
19856  grep -v '^ *+' conftest.er1 >conftest.err
19857  rm -f conftest.er1
19858  cat conftest.err >&5
19859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860  (exit $ac_status); } &&
19861	 { ac_try='test -z "$ac_f77_werror_flag"
19862			 || test ! -s conftest.err'
19863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864  (eval $ac_try) 2>&5
19865  ac_status=$?
19866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867  (exit $ac_status); }; } &&
19868	 { ac_try='test -s conftest$ac_exeext'
19869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870  (eval $ac_try) 2>&5
19871  ac_status=$?
19872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873  (exit $ac_status); }; }; then
19874
19875aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19876}'`
19877# Check for a 64-bit object if we didn't find anything.
19878if 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; }
19879}'`; fi
19880else
19881  echo "$as_me: failed program was:" >&5
19882sed 's/^/| /' conftest.$ac_ext >&5
19883
19884fi
19885rm -f conftest.err conftest.$ac_objext \
19886      conftest$ac_exeext conftest.$ac_ext
19887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19888
19889       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19890	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"
19891       else
19892	if test "$host_cpu" = ia64; then
19893	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19894	  allow_undefined_flag_F77="-z nodefs"
19895	  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"
19896	else
19897	 # Determine the default libpath from the value encoded in an empty executable.
19898	 cat >conftest.$ac_ext <<_ACEOF
19899      program main
19900
19901      end
19902_ACEOF
19903rm -f conftest.$ac_objext conftest$ac_exeext
19904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905  (eval $ac_link) 2>conftest.er1
19906  ac_status=$?
19907  grep -v '^ *+' conftest.er1 >conftest.err
19908  rm -f conftest.er1
19909  cat conftest.err >&5
19910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911  (exit $ac_status); } &&
19912	 { ac_try='test -z "$ac_f77_werror_flag"
19913			 || test ! -s conftest.err'
19914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915  (eval $ac_try) 2>&5
19916  ac_status=$?
19917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918  (exit $ac_status); }; } &&
19919	 { ac_try='test -s conftest$ac_exeext'
19920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921  (eval $ac_try) 2>&5
19922  ac_status=$?
19923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924  (exit $ac_status); }; }; then
19925
19926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19927}'`
19928# Check for a 64-bit object if we didn't find anything.
19929if 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; }
19930}'`; fi
19931else
19932  echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
19935fi
19936rm -f conftest.err conftest.$ac_objext \
19937      conftest$ac_exeext conftest.$ac_ext
19938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19939
19940	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19941	  # Warning - without using the other run time loading flags,
19942	  # -berok will link without error, but may produce a broken library.
19943	  no_undefined_flag_F77=' ${wl}-bernotok'
19944	  allow_undefined_flag_F77=' ${wl}-berok'
19945	  # -bexpall does not export symbols beginning with underscore (_)
19946	  always_export_symbols_F77=yes
19947	  # Exported symbols can be pulled into shared objects from archives
19948	  whole_archive_flag_spec_F77=' '
19949	  archive_cmds_need_lc_F77=yes
19950	  # This is similar to how AIX traditionally builds it's shared libraries.
19951	  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'
19952	fi
19953      fi
19954      ;;
19955
19956    amigaos*)
19957      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)'
19958      hardcode_libdir_flag_spec_F77='-L$libdir'
19959      hardcode_minus_L_F77=yes
19960      # see comment about different semantics on the GNU ld section
19961      ld_shlibs_F77=no
19962      ;;
19963
19964    bsdi[45]*)
19965      export_dynamic_flag_spec_F77=-rdynamic
19966      ;;
19967
19968    cygwin* | mingw* | pw32*)
19969      # When not using gcc, we currently assume that we are using
19970      # Microsoft Visual C++.
19971      # hardcode_libdir_flag_spec is actually meaningless, as there is
19972      # no search path for DLLs.
19973      hardcode_libdir_flag_spec_F77=' '
19974      allow_undefined_flag_F77=unsupported
19975      # Tell ltmain to make .lib files, not .a files.
19976      libext=lib
19977      # Tell ltmain to make .dll files, not .so files.
19978      shrext_cmds=".dll"
19979      # FIXME: Setting linknames here is a bad hack.
19980      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19981      # The linker will automatically build a .lib file if we build a DLL.
19982      old_archive_From_new_cmds_F77='true'
19983      # FIXME: Should let the user specify the lib program.
19984      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19985      fix_srcfile_path='`cygpath -w "$srcfile"`'
19986      enable_shared_with_static_runtimes_F77=yes
19987      ;;
19988
19989    darwin* | rhapsody*)
19990      case "$host_os" in
19991        rhapsody* | darwin1.[012])
19992         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19993         ;;
19994       *) # Darwin 1.3 on
19995         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19996           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19997         else
19998           case ${MACOSX_DEPLOYMENT_TARGET} in
19999             10.[012])
20000               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20001               ;;
20002             10.*)
20003               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20004               ;;
20005           esac
20006         fi
20007         ;;
20008      esac
20009      archive_cmds_need_lc_F77=no
20010      hardcode_direct_F77=no
20011      hardcode_automatic_F77=yes
20012      hardcode_shlibpath_var_F77=unsupported
20013      whole_archive_flag_spec_F77=''
20014      link_all_deplibs_F77=yes
20015    if test "$GCC" = yes ; then
20016    	output_verbose_link_cmd='echo'
20017        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20018      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20019      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20020      archive_expsym_cmds_F77='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}'
20021      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20022    else
20023      case "$cc_basename" in
20024        xlc*)
20025         output_verbose_link_cmd='echo'
20026         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20027         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20028          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20029         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20030          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20031          ;;
20032       *)
20033         ld_shlibs_F77=no
20034          ;;
20035      esac
20036    fi
20037      ;;
20038
20039    dgux*)
20040      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20041      hardcode_libdir_flag_spec_F77='-L$libdir'
20042      hardcode_shlibpath_var_F77=no
20043      ;;
20044
20045    freebsd1*)
20046      ld_shlibs_F77=no
20047      ;;
20048
20049    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20050    # support.  Future versions do this automatically, but an explicit c++rt0.o
20051    # does not break anything, and helps significantly (at the cost of a little
20052    # extra space).
20053    freebsd2.2*)
20054      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20055      hardcode_libdir_flag_spec_F77='-R$libdir'
20056      hardcode_direct_F77=yes
20057      hardcode_shlibpath_var_F77=no
20058      ;;
20059
20060    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20061    freebsd2*)
20062      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20063      hardcode_direct_F77=yes
20064      hardcode_minus_L_F77=yes
20065      hardcode_shlibpath_var_F77=no
20066      ;;
20067
20068    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20069    freebsd* | kfreebsd*-gnu)
20070      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20071      hardcode_libdir_flag_spec_F77='-R$libdir'
20072      hardcode_direct_F77=yes
20073      hardcode_shlibpath_var_F77=no
20074      ;;
20075
20076    hpux9*)
20077      if test "$GCC" = yes; then
20078	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'
20079      else
20080	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'
20081      fi
20082      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20083      hardcode_libdir_separator_F77=:
20084      hardcode_direct_F77=yes
20085
20086      # hardcode_minus_L: Not really in the search PATH,
20087      # but as the default location of the library.
20088      hardcode_minus_L_F77=yes
20089      export_dynamic_flag_spec_F77='${wl}-E'
20090      ;;
20091
20092    hpux10* | hpux11*)
20093      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20094	case "$host_cpu" in
20095	hppa*64*|ia64*)
20096	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20097	  ;;
20098	*)
20099	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20100	  ;;
20101	esac
20102      else
20103	case "$host_cpu" in
20104	hppa*64*|ia64*)
20105	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20106	  ;;
20107	*)
20108	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20109	  ;;
20110	esac
20111      fi
20112      if test "$with_gnu_ld" = no; then
20113	case "$host_cpu" in
20114	hppa*64*)
20115	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20116	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20117	  hardcode_libdir_separator_F77=:
20118	  hardcode_direct_F77=no
20119	  hardcode_shlibpath_var_F77=no
20120	  ;;
20121	ia64*)
20122	  hardcode_libdir_flag_spec_F77='-L$libdir'
20123	  hardcode_direct_F77=no
20124	  hardcode_shlibpath_var_F77=no
20125
20126	  # hardcode_minus_L: Not really in the search PATH,
20127	  # but as the default location of the library.
20128	  hardcode_minus_L_F77=yes
20129	  ;;
20130	*)
20131	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20132	  hardcode_libdir_separator_F77=:
20133	  hardcode_direct_F77=yes
20134	  export_dynamic_flag_spec_F77='${wl}-E'
20135
20136	  # hardcode_minus_L: Not really in the search PATH,
20137	  # but as the default location of the library.
20138	  hardcode_minus_L_F77=yes
20139	  ;;
20140	esac
20141      fi
20142      ;;
20143
20144    irix5* | irix6* | nonstopux*)
20145      if test "$GCC" = yes; then
20146	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'
20147      else
20148	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'
20149	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20150      fi
20151      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20152      hardcode_libdir_separator_F77=:
20153      link_all_deplibs_F77=yes
20154      ;;
20155
20156    netbsd*)
20157      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20158	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20159      else
20160	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20161      fi
20162      hardcode_libdir_flag_spec_F77='-R$libdir'
20163      hardcode_direct_F77=yes
20164      hardcode_shlibpath_var_F77=no
20165      ;;
20166
20167    newsos6)
20168      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20169      hardcode_direct_F77=yes
20170      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20171      hardcode_libdir_separator_F77=:
20172      hardcode_shlibpath_var_F77=no
20173      ;;
20174
20175    openbsd*)
20176      hardcode_direct_F77=yes
20177      hardcode_shlibpath_var_F77=no
20178      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20179	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20180	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20181	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20182	export_dynamic_flag_spec_F77='${wl}-E'
20183      else
20184       case $host_os in
20185	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20186	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20187	   hardcode_libdir_flag_spec_F77='-R$libdir'
20188	   ;;
20189	 *)
20190	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20191	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20192	   ;;
20193       esac
20194      fi
20195      ;;
20196
20197    os2*)
20198      hardcode_libdir_flag_spec_F77='-L$libdir'
20199      hardcode_minus_L_F77=yes
20200      allow_undefined_flag_F77=unsupported
20201      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'
20202      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20203      ;;
20204
20205    osf3*)
20206      if test "$GCC" = yes; then
20207	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20208	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'
20209      else
20210	allow_undefined_flag_F77=' -expect_unresolved \*'
20211	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'
20212      fi
20213      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20214      hardcode_libdir_separator_F77=:
20215      ;;
20216
20217    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20218      if test "$GCC" = yes; then
20219	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20220	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'
20221	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20222      else
20223	allow_undefined_flag_F77=' -expect_unresolved \*'
20224	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'
20225	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~
20226	$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'
20227
20228	# Both c and cxx compiler support -rpath directly
20229	hardcode_libdir_flag_spec_F77='-rpath $libdir'
20230      fi
20231      hardcode_libdir_separator_F77=:
20232      ;;
20233
20234    sco3.2v5*)
20235      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20236      hardcode_shlibpath_var_F77=no
20237      export_dynamic_flag_spec_F77='${wl}-Bexport'
20238      runpath_var=LD_RUN_PATH
20239      hardcode_runpath_var=yes
20240      ;;
20241
20242    solaris*)
20243      no_undefined_flag_F77=' -z text'
20244      if test "$GCC" = yes; then
20245	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20246	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20247	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20248      else
20249	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20250	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20251  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20252      fi
20253      hardcode_libdir_flag_spec_F77='-R$libdir'
20254      hardcode_shlibpath_var_F77=no
20255      case $host_os in
20256      solaris2.[0-5] | solaris2.[0-5].*) ;;
20257      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20258	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20259      esac
20260      link_all_deplibs_F77=yes
20261      ;;
20262
20263    sunos4*)
20264      if test "x$host_vendor" = xsequent; then
20265	# Use $CC to link under sequent, because it throws in some extra .o
20266	# files that make .init and .fini sections work.
20267	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20268      else
20269	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20270      fi
20271      hardcode_libdir_flag_spec_F77='-L$libdir'
20272      hardcode_direct_F77=yes
20273      hardcode_minus_L_F77=yes
20274      hardcode_shlibpath_var_F77=no
20275      ;;
20276
20277    sysv4)
20278      case $host_vendor in
20279	sni)
20280	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20281	  hardcode_direct_F77=yes # is this really true???
20282	;;
20283	siemens)
20284	  ## LD is ld it makes a PLAMLIB
20285	  ## CC just makes a GrossModule.
20286	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20287	  reload_cmds_F77='$CC -r -o $output$reload_objs'
20288	  hardcode_direct_F77=no
20289        ;;
20290	motorola)
20291	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20292	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20293	;;
20294      esac
20295      runpath_var='LD_RUN_PATH'
20296      hardcode_shlibpath_var_F77=no
20297      ;;
20298
20299    sysv4.3*)
20300      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20301      hardcode_shlibpath_var_F77=no
20302      export_dynamic_flag_spec_F77='-Bexport'
20303      ;;
20304
20305    sysv4*MP*)
20306      if test -d /usr/nec; then
20307	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20308	hardcode_shlibpath_var_F77=no
20309	runpath_var=LD_RUN_PATH
20310	hardcode_runpath_var=yes
20311	ld_shlibs_F77=yes
20312      fi
20313      ;;
20314
20315    sysv4.2uw2*)
20316      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20317      hardcode_direct_F77=yes
20318      hardcode_minus_L_F77=no
20319      hardcode_shlibpath_var_F77=no
20320      hardcode_runpath_var=yes
20321      runpath_var=LD_RUN_PATH
20322      ;;
20323
20324   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20325      no_undefined_flag_F77='${wl}-z ${wl}text'
20326      if test "$GCC" = yes; then
20327	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20328      else
20329	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20330      fi
20331      runpath_var='LD_RUN_PATH'
20332      hardcode_shlibpath_var_F77=no
20333      ;;
20334
20335    sysv5*)
20336      no_undefined_flag_F77=' -z text'
20337      # $CC -shared without GNU ld will not create a library from C++
20338      # object files and a static libstdc++, better avoid it by now
20339      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20340      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20341  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20342      hardcode_libdir_flag_spec_F77=
20343      hardcode_shlibpath_var_F77=no
20344      runpath_var='LD_RUN_PATH'
20345      ;;
20346
20347    uts4*)
20348      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20349      hardcode_libdir_flag_spec_F77='-L$libdir'
20350      hardcode_shlibpath_var_F77=no
20351      ;;
20352
20353    *)
20354      ld_shlibs_F77=no
20355      ;;
20356    esac
20357  fi
20358
20359echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20360echo "${ECHO_T}$ld_shlibs_F77" >&6
20361test "$ld_shlibs_F77" = no && can_build_shared=no
20362
20363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364if test "$GCC" = yes; then
20365  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20366fi
20367
20368#
20369# Do we need to explicitly link libc?
20370#
20371case "x$archive_cmds_need_lc_F77" in
20372x|xyes)
20373  # Assume -lc should be added
20374  archive_cmds_need_lc_F77=yes
20375
20376  if test "$enable_shared" = yes && test "$GCC" = yes; then
20377    case $archive_cmds_F77 in
20378    *'~'*)
20379      # FIXME: we may have to deal with multi-command sequences.
20380      ;;
20381    '$CC '*)
20382      # Test whether the compiler implicitly links with -lc since on some
20383      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20384      # to ld, don't add -lc before -lgcc.
20385      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20386echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20387      $rm conftest*
20388      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20389
20390      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391  (eval $ac_compile) 2>&5
20392  ac_status=$?
20393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394  (exit $ac_status); } 2>conftest.err; then
20395        soname=conftest
20396        lib=conftest
20397        libobjs=conftest.$ac_objext
20398        deplibs=
20399        wl=$lt_prog_compiler_wl_F77
20400        compiler_flags=-v
20401        linker_flags=-v
20402        verstring=
20403        output_objdir=.
20404        libname=conftest
20405        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20406        allow_undefined_flag_F77=
20407        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20408  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20409  ac_status=$?
20410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411  (exit $ac_status); }
20412        then
20413	  archive_cmds_need_lc_F77=no
20414        else
20415	  archive_cmds_need_lc_F77=yes
20416        fi
20417        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20418      else
20419        cat conftest.err 1>&5
20420      fi
20421      $rm conftest*
20422      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20423echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20424      ;;
20425    esac
20426  fi
20427  ;;
20428esac
20429
20430echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20431echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20432library_names_spec=
20433libname_spec='lib$name'
20434soname_spec=
20435shrext_cmds=".so"
20436postinstall_cmds=
20437postuninstall_cmds=
20438finish_cmds=
20439finish_eval=
20440shlibpath_var=
20441shlibpath_overrides_runpath=unknown
20442version_type=none
20443dynamic_linker="$host_os ld.so"
20444sys_lib_dlsearch_path_spec="/lib /usr/lib"
20445if test "$GCC" = yes; then
20446  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20447  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20448    # if the path contains ";" then we assume it to be the separator
20449    # otherwise default to the standard path separator (i.e. ":") - it is
20450    # assumed that no part of a normal pathname contains ";" but that should
20451    # okay in the real world where ";" in dirpaths is itself problematic.
20452    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20453  else
20454    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20455  fi
20456else
20457  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20458fi
20459need_lib_prefix=unknown
20460hardcode_into_libs=no
20461
20462# when you set need_version to no, make sure it does not cause -set_version
20463# flags to be left without arguments
20464need_version=unknown
20465
20466case $host_os in
20467aix3*)
20468  version_type=linux
20469  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20470  shlibpath_var=LIBPATH
20471
20472  # AIX 3 has no versioning support, so we append a major version to the name.
20473  soname_spec='${libname}${release}${shared_ext}$major'
20474  ;;
20475
20476aix4* | aix5*)
20477  version_type=linux
20478  need_lib_prefix=no
20479  need_version=no
20480  hardcode_into_libs=yes
20481  if test "$host_cpu" = ia64; then
20482    # AIX 5 supports IA64
20483    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20484    shlibpath_var=LD_LIBRARY_PATH
20485  else
20486    # With GCC up to 2.95.x, collect2 would create an import file
20487    # for dependence libraries.  The import file would start with
20488    # the line `#! .'.  This would cause the generated library to
20489    # depend on `.', always an invalid library.  This was fixed in
20490    # development snapshots of GCC prior to 3.0.
20491    case $host_os in
20492      aix4 | aix4.[01] | aix4.[01].*)
20493      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20494	   echo ' yes '
20495	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20496	:
20497      else
20498	can_build_shared=no
20499      fi
20500      ;;
20501    esac
20502    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20503    # soname into executable. Probably we can add versioning support to
20504    # collect2, so additional links can be useful in future.
20505    if test "$aix_use_runtimelinking" = yes; then
20506      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20507      # instead of lib<name>.a to let people know that these are not
20508      # typical AIX shared libraries.
20509      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20510    else
20511      # We preserve .a as extension for shared libraries through AIX4.2
20512      # and later when we are not doing run time linking.
20513      library_names_spec='${libname}${release}.a $libname.a'
20514      soname_spec='${libname}${release}${shared_ext}$major'
20515    fi
20516    shlibpath_var=LIBPATH
20517  fi
20518  ;;
20519
20520amigaos*)
20521  library_names_spec='$libname.ixlibrary $libname.a'
20522  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20523  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'
20524  ;;
20525
20526beos*)
20527  library_names_spec='${libname}${shared_ext}'
20528  dynamic_linker="$host_os ld.so"
20529  shlibpath_var=LIBRARY_PATH
20530  ;;
20531
20532bsdi[45]*)
20533  version_type=linux
20534  need_version=no
20535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536  soname_spec='${libname}${release}${shared_ext}$major'
20537  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20538  shlibpath_var=LD_LIBRARY_PATH
20539  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20540  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20541  # the default ld.so.conf also contains /usr/contrib/lib and
20542  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20543  # libtool to hard-code these into programs
20544  ;;
20545
20546cygwin* | mingw* | pw32*)
20547  version_type=windows
20548  shrext_cmds=".dll"
20549  need_version=no
20550  need_lib_prefix=no
20551
20552  case $GCC,$host_os in
20553  yes,cygwin* | yes,mingw* | yes,pw32*)
20554    library_names_spec='$libname.dll.a'
20555    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20556    postinstall_cmds='base_file=`basename \${file}`~
20557      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20558      dldir=$destdir/`dirname \$dlpath`~
20559      test -d \$dldir || mkdir -p \$dldir~
20560      $install_prog $dir/$dlname \$dldir/$dlname'
20561    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20562      dlpath=$dir/\$dldll~
20563       $rm \$dlpath'
20564    shlibpath_overrides_runpath=yes
20565
20566    case $host_os in
20567    cygwin*)
20568      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20569      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20570      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20571      ;;
20572    mingw*)
20573      # MinGW DLLs use traditional 'lib' prefix
20574      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20576      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20577        # It is most probably a Windows format PATH printed by
20578        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20579        # path with ; separators, and with drive letters. We can handle the
20580        # drive letters (cygwin fileutils understands them), so leave them,
20581        # especially as we might pass files found there to a mingw objdump,
20582        # which wouldn't understand a cygwinified path. Ahh.
20583        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20584      else
20585        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20586      fi
20587      ;;
20588    pw32*)
20589      # pw32 DLLs use 'pw' prefix rather than 'lib'
20590      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20591      ;;
20592    esac
20593    ;;
20594
20595  *)
20596    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20597    ;;
20598  esac
20599  dynamic_linker='Win32 ld.exe'
20600  # FIXME: first we should search . and the directory the executable is in
20601  shlibpath_var=PATH
20602  ;;
20603
20604darwin* | rhapsody*)
20605  dynamic_linker="$host_os dyld"
20606  version_type=darwin
20607  need_lib_prefix=no
20608  need_version=no
20609  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20610  soname_spec='${libname}${release}${major}$shared_ext'
20611  shlibpath_overrides_runpath=yes
20612  shlibpath_var=DYLD_LIBRARY_PATH
20613  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20614  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20615  if test "$GCC" = yes; then
20616    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"`
20617  else
20618    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20619  fi
20620  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20621  ;;
20622
20623dgux*)
20624  version_type=linux
20625  need_lib_prefix=no
20626  need_version=no
20627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20628  soname_spec='${libname}${release}${shared_ext}$major'
20629  shlibpath_var=LD_LIBRARY_PATH
20630  ;;
20631
20632freebsd1*)
20633  dynamic_linker=no
20634  ;;
20635
20636kfreebsd*-gnu)
20637  version_type=linux
20638  need_lib_prefix=no
20639  need_version=no
20640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20641  soname_spec='${libname}${release}${shared_ext}$major'
20642  shlibpath_var=LD_LIBRARY_PATH
20643  shlibpath_overrides_runpath=no
20644  hardcode_into_libs=yes
20645  dynamic_linker='GNU ld.so'
20646  ;;
20647
20648freebsd*)
20649  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20650  version_type=freebsd-$objformat
20651  case $version_type in
20652    freebsd-elf*)
20653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20654      need_version=no
20655      need_lib_prefix=no
20656      ;;
20657    freebsd-*)
20658      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20659      need_version=yes
20660      ;;
20661  esac
20662  shlibpath_var=LD_LIBRARY_PATH
20663  case $host_os in
20664  freebsd2*)
20665    shlibpath_overrides_runpath=yes
20666    ;;
20667  freebsd3.01* | freebsdelf3.01*)
20668    shlibpath_overrides_runpath=yes
20669    hardcode_into_libs=yes
20670    ;;
20671  *) # from 3.2 on
20672    shlibpath_overrides_runpath=no
20673    hardcode_into_libs=yes
20674    ;;
20675  esac
20676  ;;
20677
20678gnu*)
20679  version_type=linux
20680  need_lib_prefix=no
20681  need_version=no
20682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683  soname_spec='${libname}${release}${shared_ext}$major'
20684  shlibpath_var=LD_LIBRARY_PATH
20685  hardcode_into_libs=yes
20686  ;;
20687
20688hpux9* | hpux10* | hpux11*)
20689  # Give a soname corresponding to the major version so that dld.sl refuses to
20690  # link against other versions.
20691  version_type=sunos
20692  need_lib_prefix=no
20693  need_version=no
20694  case "$host_cpu" in
20695  ia64*)
20696    shrext_cmds='.so'
20697    hardcode_into_libs=yes
20698    dynamic_linker="$host_os dld.so"
20699    shlibpath_var=LD_LIBRARY_PATH
20700    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20701    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702    soname_spec='${libname}${release}${shared_ext}$major'
20703    if test "X$HPUX_IA64_MODE" = X32; then
20704      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20705    else
20706      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20707    fi
20708    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20709    ;;
20710   hppa*64*)
20711     shrext_cmds='.sl'
20712     hardcode_into_libs=yes
20713     dynamic_linker="$host_os dld.sl"
20714     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20717     soname_spec='${libname}${release}${shared_ext}$major'
20718     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20719     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20720     ;;
20721   *)
20722    shrext_cmds='.sl'
20723    dynamic_linker="$host_os dld.sl"
20724    shlibpath_var=SHLIB_PATH
20725    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20726    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20727    soname_spec='${libname}${release}${shared_ext}$major'
20728    ;;
20729  esac
20730  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20731  postinstall_cmds='chmod 555 $lib'
20732  ;;
20733
20734irix5* | irix6* | nonstopux*)
20735  case $host_os in
20736    nonstopux*) version_type=nonstopux ;;
20737    *)
20738	if test "$lt_cv_prog_gnu_ld" = yes; then
20739		version_type=linux
20740	else
20741		version_type=irix
20742	fi ;;
20743  esac
20744  need_lib_prefix=no
20745  need_version=no
20746  soname_spec='${libname}${release}${shared_ext}$major'
20747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20748  case $host_os in
20749  irix5* | nonstopux*)
20750    libsuff= shlibsuff=
20751    ;;
20752  *)
20753    case $LD in # libtool.m4 will add one of these switches to LD
20754    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20755      libsuff= shlibsuff= libmagic=32-bit;;
20756    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20757      libsuff=32 shlibsuff=N32 libmagic=N32;;
20758    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20759      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20760    *) libsuff= shlibsuff= libmagic=never-match;;
20761    esac
20762    ;;
20763  esac
20764  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20765  shlibpath_overrides_runpath=no
20766  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20767  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20768  hardcode_into_libs=yes
20769  ;;
20770
20771# No shared lib support for Linux oldld, aout, or coff.
20772linux*oldld* | linux*aout* | linux*coff*)
20773  dynamic_linker=no
20774  ;;
20775
20776# This must be Linux ELF.
20777linux*)
20778  version_type=linux
20779  need_lib_prefix=no
20780  need_version=no
20781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20782  soname_spec='${libname}${release}${shared_ext}$major'
20783  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20784  shlibpath_var=LD_LIBRARY_PATH
20785  shlibpath_overrides_runpath=no
20786  # This implies no fast_install, which is unacceptable.
20787  # Some rework will be needed to allow for fast_install
20788  # before this can be enabled.
20789  hardcode_into_libs=yes
20790
20791  # Append ld.so.conf contents to the search path
20792  if test -f /etc/ld.so.conf; then
20793    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20794    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20795  fi
20796
20797  # We used to test for /lib/ld.so.1 and disable shared libraries on
20798  # powerpc, because MkLinux only supported shared libraries with the
20799  # GNU dynamic linker.  Since this was broken with cross compilers,
20800  # most powerpc-linux boxes support dynamic linking these days and
20801  # people can always --disable-shared, the test was removed, and we
20802  # assume the GNU/Linux dynamic linker is in use.
20803  dynamic_linker='GNU/Linux ld.so'
20804  ;;
20805
20806knetbsd*-gnu)
20807  version_type=linux
20808  need_lib_prefix=no
20809  need_version=no
20810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20811  soname_spec='${libname}${release}${shared_ext}$major'
20812  shlibpath_var=LD_LIBRARY_PATH
20813  shlibpath_overrides_runpath=no
20814  hardcode_into_libs=yes
20815  dynamic_linker='GNU ld.so'
20816  ;;
20817
20818netbsd*)
20819  version_type=sunos
20820  need_lib_prefix=no
20821  need_version=no
20822  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20823    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20825    dynamic_linker='NetBSD (a.out) ld.so'
20826  else
20827    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20828    soname_spec='${libname}${release}${shared_ext}$major'
20829    dynamic_linker='NetBSD ld.elf_so'
20830  fi
20831  shlibpath_var=LD_LIBRARY_PATH
20832  shlibpath_overrides_runpath=yes
20833  hardcode_into_libs=yes
20834  ;;
20835
20836newsos6)
20837  version_type=linux
20838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839  shlibpath_var=LD_LIBRARY_PATH
20840  shlibpath_overrides_runpath=yes
20841  ;;
20842
20843nto-qnx*)
20844  version_type=linux
20845  need_lib_prefix=no
20846  need_version=no
20847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848  soname_spec='${libname}${release}${shared_ext}$major'
20849  shlibpath_var=LD_LIBRARY_PATH
20850  shlibpath_overrides_runpath=yes
20851  ;;
20852
20853openbsd*)
20854  version_type=sunos
20855  need_lib_prefix=no
20856  need_version=no
20857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20858  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20859  shlibpath_var=LD_LIBRARY_PATH
20860  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20861    case $host_os in
20862      openbsd2.[89] | openbsd2.[89].*)
20863	shlibpath_overrides_runpath=no
20864	;;
20865      *)
20866	shlibpath_overrides_runpath=yes
20867	;;
20868      esac
20869  else
20870    shlibpath_overrides_runpath=yes
20871  fi
20872  ;;
20873
20874os2*)
20875  libname_spec='$name'
20876  shrext_cmds=".dll"
20877  need_lib_prefix=no
20878  library_names_spec='$libname${shared_ext} $libname.a'
20879  dynamic_linker='OS/2 ld.exe'
20880  shlibpath_var=LIBPATH
20881  ;;
20882
20883osf3* | osf4* | osf5*)
20884  version_type=osf
20885  need_lib_prefix=no
20886  need_version=no
20887  soname_spec='${libname}${release}${shared_ext}$major'
20888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20889  shlibpath_var=LD_LIBRARY_PATH
20890  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20891  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20892  ;;
20893
20894sco3.2v5*)
20895  version_type=osf
20896  soname_spec='${libname}${release}${shared_ext}$major'
20897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898  shlibpath_var=LD_LIBRARY_PATH
20899  ;;
20900
20901solaris*)
20902  version_type=linux
20903  need_lib_prefix=no
20904  need_version=no
20905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906  soname_spec='${libname}${release}${shared_ext}$major'
20907  shlibpath_var=LD_LIBRARY_PATH
20908  shlibpath_overrides_runpath=yes
20909  hardcode_into_libs=yes
20910  # ldd complains unless libraries are executable
20911  postinstall_cmds='chmod +x $lib'
20912  ;;
20913
20914sunos4*)
20915  version_type=sunos
20916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20918  shlibpath_var=LD_LIBRARY_PATH
20919  shlibpath_overrides_runpath=yes
20920  if test "$with_gnu_ld" = yes; then
20921    need_lib_prefix=no
20922  fi
20923  need_version=yes
20924  ;;
20925
20926sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20927  version_type=linux
20928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929  soname_spec='${libname}${release}${shared_ext}$major'
20930  shlibpath_var=LD_LIBRARY_PATH
20931  case $host_vendor in
20932    sni)
20933      shlibpath_overrides_runpath=no
20934      need_lib_prefix=no
20935      export_dynamic_flag_spec='${wl}-Blargedynsym'
20936      runpath_var=LD_RUN_PATH
20937      ;;
20938    siemens)
20939      need_lib_prefix=no
20940      ;;
20941    motorola)
20942      need_lib_prefix=no
20943      need_version=no
20944      shlibpath_overrides_runpath=no
20945      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20946      ;;
20947  esac
20948  ;;
20949
20950sysv4*MP*)
20951  if test -d /usr/nec ;then
20952    version_type=linux
20953    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20954    soname_spec='$libname${shared_ext}.$major'
20955    shlibpath_var=LD_LIBRARY_PATH
20956  fi
20957  ;;
20958
20959uts4*)
20960  version_type=linux
20961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20962  soname_spec='${libname}${release}${shared_ext}$major'
20963  shlibpath_var=LD_LIBRARY_PATH
20964  ;;
20965
20966*)
20967  dynamic_linker=no
20968  ;;
20969esac
20970echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20971echo "${ECHO_T}$dynamic_linker" >&6
20972test "$dynamic_linker" = no && can_build_shared=no
20973
20974echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20976hardcode_action_F77=
20977if test -n "$hardcode_libdir_flag_spec_F77" || \
20978   test -n "$runpath_var_F77" || \
20979   test "X$hardcode_automatic_F77" = "Xyes" ; then
20980
20981  # We can hardcode non-existant directories.
20982  if test "$hardcode_direct_F77" != no &&
20983     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984     # have to relink, otherwise we might link with an installed library
20985     # when we should be linking with a yet-to-be-installed one
20986     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20987     test "$hardcode_minus_L_F77" != no; then
20988    # Linking always hardcodes the temporary library directory.
20989    hardcode_action_F77=relink
20990  else
20991    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992    hardcode_action_F77=immediate
20993  fi
20994else
20995  # We cannot hardcode anything, or else we can only hardcode existing
20996  # directories.
20997  hardcode_action_F77=unsupported
20998fi
20999echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21000echo "${ECHO_T}$hardcode_action_F77" >&6
21001
21002if test "$hardcode_action_F77" = relink; then
21003  # Fast installation is not supported
21004  enable_fast_install=no
21005elif test "$shlibpath_overrides_runpath" = yes ||
21006     test "$enable_shared" = no; then
21007  # Fast installation is not necessary
21008  enable_fast_install=needless
21009fi
21010
21011striplib=
21012old_striplib=
21013echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21014echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21015if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21016  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21017  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21018  echo "$as_me:$LINENO: result: yes" >&5
21019echo "${ECHO_T}yes" >&6
21020else
21021# FIXME - insert some real tests, host_os isn't really good enough
21022  case $host_os in
21023   darwin*)
21024       if test -n "$STRIP" ; then
21025         striplib="$STRIP -x"
21026         echo "$as_me:$LINENO: result: yes" >&5
21027echo "${ECHO_T}yes" >&6
21028       else
21029  echo "$as_me:$LINENO: result: no" >&5
21030echo "${ECHO_T}no" >&6
21031fi
21032       ;;
21033   *)
21034  echo "$as_me:$LINENO: result: no" >&5
21035echo "${ECHO_T}no" >&6
21036    ;;
21037  esac
21038fi
21039
21040
21041
21042# The else clause should only fire when bootstrapping the
21043# libtool distribution, otherwise you forgot to ship ltmain.sh
21044# with your package, and you will get complaints that there are
21045# no rules to generate ltmain.sh.
21046if test -f "$ltmain"; then
21047  # See if we are running on zsh, and set the options which allow our commands through
21048  # without removal of \ escapes.
21049  if test -n "${ZSH_VERSION+set}" ; then
21050    setopt NO_GLOB_SUBST
21051  fi
21052  # Now quote all the things that may contain metacharacters while being
21053  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21054  # variables and quote the copies for generation of the libtool script.
21055  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21056    SED SHELL STRIP \
21057    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21058    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21059    deplibs_check_method reload_flag reload_cmds need_locks \
21060    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21061    lt_cv_sys_global_symbol_to_c_name_address \
21062    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21063    old_postinstall_cmds old_postuninstall_cmds \
21064    compiler_F77 \
21065    CC_F77 \
21066    LD_F77 \
21067    lt_prog_compiler_wl_F77 \
21068    lt_prog_compiler_pic_F77 \
21069    lt_prog_compiler_static_F77 \
21070    lt_prog_compiler_no_builtin_flag_F77 \
21071    export_dynamic_flag_spec_F77 \
21072    thread_safe_flag_spec_F77 \
21073    whole_archive_flag_spec_F77 \
21074    enable_shared_with_static_runtimes_F77 \
21075    old_archive_cmds_F77 \
21076    old_archive_from_new_cmds_F77 \
21077    predep_objects_F77 \
21078    postdep_objects_F77 \
21079    predeps_F77 \
21080    postdeps_F77 \
21081    compiler_lib_search_path_F77 \
21082    archive_cmds_F77 \
21083    archive_expsym_cmds_F77 \
21084    postinstall_cmds_F77 \
21085    postuninstall_cmds_F77 \
21086    old_archive_from_expsyms_cmds_F77 \
21087    allow_undefined_flag_F77 \
21088    no_undefined_flag_F77 \
21089    export_symbols_cmds_F77 \
21090    hardcode_libdir_flag_spec_F77 \
21091    hardcode_libdir_flag_spec_ld_F77 \
21092    hardcode_libdir_separator_F77 \
21093    hardcode_automatic_F77 \
21094    module_cmds_F77 \
21095    module_expsym_cmds_F77 \
21096    lt_cv_prog_compiler_c_o_F77 \
21097    exclude_expsyms_F77 \
21098    include_expsyms_F77; do
21099
21100    case $var in
21101    old_archive_cmds_F77 | \
21102    old_archive_from_new_cmds_F77 | \
21103    archive_cmds_F77 | \
21104    archive_expsym_cmds_F77 | \
21105    module_cmds_F77 | \
21106    module_expsym_cmds_F77 | \
21107    old_archive_from_expsyms_cmds_F77 | \
21108    export_symbols_cmds_F77 | \
21109    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21110    postinstall_cmds | postuninstall_cmds | \
21111    old_postinstall_cmds | old_postuninstall_cmds | \
21112    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21113      # Double-quote double-evaled strings.
21114      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21115      ;;
21116    *)
21117      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21118      ;;
21119    esac
21120  done
21121
21122  case $lt_echo in
21123  *'\$0 --fallback-echo"')
21124    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21125    ;;
21126  esac
21127
21128cfgfile="$ofile"
21129
21130  cat <<__EOF__ >> "$cfgfile"
21131# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21132
21133# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21134
21135# Shell to use when invoking shell scripts.
21136SHELL=$lt_SHELL
21137
21138# Whether or not to build shared libraries.
21139build_libtool_libs=$enable_shared
21140
21141# Whether or not to build static libraries.
21142build_old_libs=$enable_static
21143
21144# Whether or not to add -lc for building shared libraries.
21145build_libtool_need_lc=$archive_cmds_need_lc_F77
21146
21147# Whether or not to disallow shared libs when runtime libs are static
21148allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21149
21150# Whether or not to optimize for fast installation.
21151fast_install=$enable_fast_install
21152
21153# The host system.
21154host_alias=$host_alias
21155host=$host
21156
21157# An echo program that does not interpret backslashes.
21158echo=$lt_echo
21159
21160# The archiver.
21161AR=$lt_AR
21162AR_FLAGS=$lt_AR_FLAGS
21163
21164# A C compiler.
21165LTCC=$lt_LTCC
21166
21167# A language-specific compiler.
21168CC=$lt_compiler_F77
21169
21170# Is the compiler the GNU C compiler?
21171with_gcc=$GCC_F77
21172
21173# An ERE matcher.
21174EGREP=$lt_EGREP
21175
21176# The linker used to build libraries.
21177LD=$lt_LD_F77
21178
21179# Whether we need hard or soft links.
21180LN_S=$lt_LN_S
21181
21182# A BSD-compatible nm program.
21183NM=$lt_NM
21184
21185# A symbol stripping program
21186STRIP=$lt_STRIP
21187
21188# Used to examine libraries when file_magic_cmd begins "file"
21189MAGIC_CMD=$MAGIC_CMD
21190
21191# Used on cygwin: DLL creation program.
21192DLLTOOL="$DLLTOOL"
21193
21194# Used on cygwin: object dumper.
21195OBJDUMP="$OBJDUMP"
21196
21197# Used on cygwin: assembler.
21198AS="$AS"
21199
21200# The name of the directory that contains temporary libtool files.
21201objdir=$objdir
21202
21203# How to create reloadable object files.
21204reload_flag=$lt_reload_flag
21205reload_cmds=$lt_reload_cmds
21206
21207# How to pass a linker flag through the compiler.
21208wl=$lt_lt_prog_compiler_wl_F77
21209
21210# Object file suffix (normally "o").
21211objext="$ac_objext"
21212
21213# Old archive suffix (normally "a").
21214libext="$libext"
21215
21216# Shared library suffix (normally ".so").
21217shrext_cmds='$shrext_cmds'
21218
21219# Executable file suffix (normally "").
21220exeext="$exeext"
21221
21222# Additional compiler flags for building library objects.
21223pic_flag=$lt_lt_prog_compiler_pic_F77
21224pic_mode=$pic_mode
21225
21226# What is the maximum length of a command?
21227max_cmd_len=$lt_cv_sys_max_cmd_len
21228
21229# Does compiler simultaneously support -c and -o options?
21230compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21231
21232# Must we lock files when doing compilation ?
21233need_locks=$lt_need_locks
21234
21235# Do we need the lib prefix for modules?
21236need_lib_prefix=$need_lib_prefix
21237
21238# Do we need a version for libraries?
21239need_version=$need_version
21240
21241# Whether dlopen is supported.
21242dlopen_support=$enable_dlopen
21243
21244# Whether dlopen of programs is supported.
21245dlopen_self=$enable_dlopen_self
21246
21247# Whether dlopen of statically linked programs is supported.
21248dlopen_self_static=$enable_dlopen_self_static
21249
21250# Compiler flag to prevent dynamic linking.
21251link_static_flag=$lt_lt_prog_compiler_static_F77
21252
21253# Compiler flag to turn off builtin functions.
21254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21255
21256# Compiler flag to allow reflexive dlopens.
21257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21258
21259# Compiler flag to generate shared objects directly from archives.
21260whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21261
21262# Compiler flag to generate thread-safe objects.
21263thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21264
21265# Library versioning type.
21266version_type=$version_type
21267
21268# Format of library name prefix.
21269libname_spec=$lt_libname_spec
21270
21271# List of archive names.  First name is the real one, the rest are links.
21272# The last name is the one that the linker finds with -lNAME.
21273library_names_spec=$lt_library_names_spec
21274
21275# The coded name of the library, if different from the real name.
21276soname_spec=$lt_soname_spec
21277
21278# Commands used to build and install an old-style archive.
21279RANLIB=$lt_RANLIB
21280old_archive_cmds=$lt_old_archive_cmds_F77
21281old_postinstall_cmds=$lt_old_postinstall_cmds
21282old_postuninstall_cmds=$lt_old_postuninstall_cmds
21283
21284# Create an old-style archive from a shared archive.
21285old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21286
21287# Create a temporary old-style archive to link instead of a shared archive.
21288old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21289
21290# Commands used to build and install a shared archive.
21291archive_cmds=$lt_archive_cmds_F77
21292archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21293postinstall_cmds=$lt_postinstall_cmds
21294postuninstall_cmds=$lt_postuninstall_cmds
21295
21296# Commands used to build a loadable module (assumed same as above if empty)
21297module_cmds=$lt_module_cmds_F77
21298module_expsym_cmds=$lt_module_expsym_cmds_F77
21299
21300# Commands to strip libraries.
21301old_striplib=$lt_old_striplib
21302striplib=$lt_striplib
21303
21304# Dependencies to place before the objects being linked to create a
21305# shared library.
21306predep_objects=$lt_predep_objects_F77
21307
21308# Dependencies to place after the objects being linked to create a
21309# shared library.
21310postdep_objects=$lt_postdep_objects_F77
21311
21312# Dependencies to place before the objects being linked to create a
21313# shared library.
21314predeps=$lt_predeps_F77
21315
21316# Dependencies to place after the objects being linked to create a
21317# shared library.
21318postdeps=$lt_postdeps_F77
21319
21320# The library search path used internally by the compiler when linking
21321# a shared library.
21322compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21323
21324# Method to check whether dependent libraries are shared objects.
21325deplibs_check_method=$lt_deplibs_check_method
21326
21327# Command to use when deplibs_check_method == file_magic.
21328file_magic_cmd=$lt_file_magic_cmd
21329
21330# Flag that allows shared libraries with undefined symbols to be built.
21331allow_undefined_flag=$lt_allow_undefined_flag_F77
21332
21333# Flag that forces no undefined symbols.
21334no_undefined_flag=$lt_no_undefined_flag_F77
21335
21336# Commands used to finish a libtool library installation in a directory.
21337finish_cmds=$lt_finish_cmds
21338
21339# Same as above, but a single script fragment to be evaled but not shown.
21340finish_eval=$lt_finish_eval
21341
21342# Take the output of nm and produce a listing of raw symbols and C names.
21343global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21344
21345# Transform the output of nm in a proper C declaration
21346global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21347
21348# Transform the output of nm in a C name address pair
21349global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21350
21351# This is the shared library runtime path variable.
21352runpath_var=$runpath_var
21353
21354# This is the shared library path variable.
21355shlibpath_var=$shlibpath_var
21356
21357# Is shlibpath searched before the hard-coded library search path?
21358shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21359
21360# How to hardcode a shared library path into an executable.
21361hardcode_action=$hardcode_action_F77
21362
21363# Whether we should hardcode library paths into libraries.
21364hardcode_into_libs=$hardcode_into_libs
21365
21366# Flag to hardcode \$libdir into a binary during linking.
21367# This must work even if \$libdir does not exist.
21368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21369
21370# If ld is used when linking, flag to hardcode \$libdir into
21371# a binary during linking. This must work even if \$libdir does
21372# not exist.
21373hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21374
21375# Whether we need a single -rpath flag with a separated argument.
21376hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21377
21378# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21379# resulting binary.
21380hardcode_direct=$hardcode_direct_F77
21381
21382# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21383# resulting binary.
21384hardcode_minus_L=$hardcode_minus_L_F77
21385
21386# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21387# the resulting binary.
21388hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21389
21390# Set to yes if building a shared library automatically hardcodes DIR into the library
21391# and all subsequent libraries and executables linked against it.
21392hardcode_automatic=$hardcode_automatic_F77
21393
21394# Variables whose values should be saved in libtool wrapper scripts and
21395# restored at relink time.
21396variables_saved_for_relink="$variables_saved_for_relink"
21397
21398# Whether libtool must link a program against all its dependency libraries.
21399link_all_deplibs=$link_all_deplibs_F77
21400
21401# Compile-time system search path for libraries
21402sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21403
21404# Run-time system search path for libraries
21405sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21406
21407# Fix the shell variable \$srcfile for the compiler.
21408fix_srcfile_path="$fix_srcfile_path_F77"
21409
21410# Set to yes if exported symbols are required.
21411always_export_symbols=$always_export_symbols_F77
21412
21413# The commands to list exported symbols.
21414export_symbols_cmds=$lt_export_symbols_cmds_F77
21415
21416# The commands to extract the exported symbol list from a shared archive.
21417extract_expsyms_cmds=$lt_extract_expsyms_cmds
21418
21419# Symbols that should not be listed in the preloaded symbols.
21420exclude_expsyms=$lt_exclude_expsyms_F77
21421
21422# Symbols that must always be exported.
21423include_expsyms=$lt_include_expsyms_F77
21424
21425# ### END LIBTOOL TAG CONFIG: $tagname
21426
21427__EOF__
21428
21429
21430else
21431  # If there is no Makefile yet, we rely on a make rule to execute
21432  # `config.status --recheck' to rerun these tests and create the
21433  # libtool script then.
21434  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21435  if test -f "$ltmain_in"; then
21436    test -f Makefile && make "$ltmain"
21437  fi
21438fi
21439
21440
21441ac_ext=c
21442ac_cpp='$CPP $CPPFLAGS'
21443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445ac_compiler_gnu=$ac_cv_c_compiler_gnu
21446
21447CC="$lt_save_CC"
21448
21449	else
21450	  tagname=""
21451	fi
21452	;;
21453
21454      GCJ)
21455	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21456	  ac_ext=c
21457ac_cpp='$CPP $CPPFLAGS'
21458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460ac_compiler_gnu=$ac_cv_c_compiler_gnu
21461
21462
21463# Source file extension for Java test sources.
21464ac_ext=java
21465
21466# Object file extension for compiled Java test sources.
21467objext=o
21468objext_GCJ=$objext
21469
21470# Code to be used in simple compile tests
21471lt_simple_compile_test_code="class foo {}\n"
21472
21473# Code to be used in simple link tests
21474lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21475
21476# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21477
21478# If no C compiler was specified, use CC.
21479LTCC=${LTCC-"$CC"}
21480
21481# Allow CC to be a program name with arguments.
21482compiler=$CC
21483
21484
21485# Allow CC to be a program name with arguments.
21486lt_save_CC="$CC"
21487CC=${GCJ-"gcj"}
21488compiler=$CC
21489compiler_GCJ=$CC
21490
21491# GCJ did not exist at the time GCC didn't implicitly link libc in.
21492archive_cmds_need_lc_GCJ=no
21493
21494
21495lt_prog_compiler_no_builtin_flag_GCJ=
21496
21497if test "$GCC" = yes; then
21498  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21499
21500
21501echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21502echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21503if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21504  echo $ECHO_N "(cached) $ECHO_C" >&6
21505else
21506  lt_cv_prog_compiler_rtti_exceptions=no
21507  ac_outfile=conftest.$ac_objext
21508   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21509   lt_compiler_flag="-fno-rtti -fno-exceptions"
21510   # Insert the option either (1) after the last *FLAGS variable, or
21511   # (2) before a word containing "conftest.", or (3) at the end.
21512   # Note that $ac_compile itself does not contain backslashes and begins
21513   # with a dollar sign (not a hyphen), so the echo should work correctly.
21514   # The option is referenced via a variable to avoid confusing sed.
21515   lt_compile=`echo "$ac_compile" | $SED \
21516   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21517   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518   -e 's:$: $lt_compiler_flag:'`
21519   (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
21520   (eval "$lt_compile" 2>conftest.err)
21521   ac_status=$?
21522   cat conftest.err >&5
21523   echo "$as_me:21523: \$? = $ac_status" >&5
21524   if (exit $ac_status) && test -s "$ac_outfile"; then
21525     # The compiler can only warn and ignore the option if not recognized
21526     # So say no if there are warnings
21527     if test ! -s conftest.err; then
21528       lt_cv_prog_compiler_rtti_exceptions=yes
21529     fi
21530   fi
21531   $rm conftest*
21532
21533fi
21534echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21535echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21536
21537if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21538    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21539else
21540    :
21541fi
21542
21543fi
21544
21545lt_prog_compiler_wl_GCJ=
21546lt_prog_compiler_pic_GCJ=
21547lt_prog_compiler_static_GCJ=
21548
21549echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21550echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21551
21552  if test "$GCC" = yes; then
21553    lt_prog_compiler_wl_GCJ='-Wl,'
21554    lt_prog_compiler_static_GCJ='-static'
21555
21556    case $host_os in
21557      aix*)
21558      # All AIX code is PIC.
21559      if test "$host_cpu" = ia64; then
21560	# AIX 5 now supports IA64 processor
21561	lt_prog_compiler_static_GCJ='-Bstatic'
21562      fi
21563      ;;
21564
21565    amigaos*)
21566      # FIXME: we need at least 68020 code to build shared libraries, but
21567      # adding the `-m68020' flag to GCC prevents building anything better,
21568      # like `-m68040'.
21569      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21570      ;;
21571
21572    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21573      # PIC is the default for these OSes.
21574      ;;
21575
21576    mingw* | pw32* | os2*)
21577      # This hack is so that the source file can tell whether it is being
21578      # built for inclusion in a dll (and should export symbols for example).
21579      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21580      ;;
21581
21582    darwin* | rhapsody*)
21583      # PIC is the default on this platform
21584      # Common symbols not allowed in MH_DYLIB files
21585      lt_prog_compiler_pic_GCJ='-fno-common'
21586      ;;
21587
21588    msdosdjgpp*)
21589      # Just because we use GCC doesn't mean we suddenly get shared libraries
21590      # on systems that don't support them.
21591      lt_prog_compiler_can_build_shared_GCJ=no
21592      enable_shared=no
21593      ;;
21594
21595    sysv4*MP*)
21596      if test -d /usr/nec; then
21597	lt_prog_compiler_pic_GCJ=-Kconform_pic
21598      fi
21599      ;;
21600
21601    hpux*)
21602      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603      # not for PA HP-UX.
21604      case "$host_cpu" in
21605      hppa*64*|ia64*)
21606	# +Z the default
21607	;;
21608      *)
21609	lt_prog_compiler_pic_GCJ='-fPIC'
21610	;;
21611      esac
21612      ;;
21613
21614    *)
21615      lt_prog_compiler_pic_GCJ='-fPIC'
21616      ;;
21617    esac
21618  else
21619    # PORTME Check for flag to pass linker flags through the system compiler.
21620    case $host_os in
21621    aix*)
21622      lt_prog_compiler_wl_GCJ='-Wl,'
21623      if test "$host_cpu" = ia64; then
21624	# AIX 5 now supports IA64 processor
21625	lt_prog_compiler_static_GCJ='-Bstatic'
21626      else
21627	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21628      fi
21629      ;;
21630      darwin*)
21631        # PIC is the default on this platform
21632        # Common symbols not allowed in MH_DYLIB files
21633       case "$cc_basename" in
21634         xlc*)
21635         lt_prog_compiler_pic_GCJ='-qnocommon'
21636         lt_prog_compiler_wl_GCJ='-Wl,'
21637         ;;
21638       esac
21639       ;;
21640
21641    mingw* | pw32* | os2*)
21642      # This hack is so that the source file can tell whether it is being
21643      # built for inclusion in a dll (and should export symbols for example).
21644      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21645      ;;
21646
21647    hpux9* | hpux10* | hpux11*)
21648      lt_prog_compiler_wl_GCJ='-Wl,'
21649      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21650      # not for PA HP-UX.
21651      case "$host_cpu" in
21652      hppa*64*|ia64*)
21653	# +Z the default
21654	;;
21655      *)
21656	lt_prog_compiler_pic_GCJ='+Z'
21657	;;
21658      esac
21659      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21660      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21661      ;;
21662
21663    irix5* | irix6* | nonstopux*)
21664      lt_prog_compiler_wl_GCJ='-Wl,'
21665      # PIC (with -KPIC) is the default.
21666      lt_prog_compiler_static_GCJ='-non_shared'
21667      ;;
21668
21669    newsos6)
21670      lt_prog_compiler_pic_GCJ='-KPIC'
21671      lt_prog_compiler_static_GCJ='-Bstatic'
21672      ;;
21673
21674    linux*)
21675      case $CC in
21676      icc* | ecc*)
21677	lt_prog_compiler_wl_GCJ='-Wl,'
21678	lt_prog_compiler_pic_GCJ='-KPIC'
21679	lt_prog_compiler_static_GCJ='-static'
21680        ;;
21681      ccc*)
21682        lt_prog_compiler_wl_GCJ='-Wl,'
21683        # All Alpha code is PIC.
21684        lt_prog_compiler_static_GCJ='-non_shared'
21685        ;;
21686      esac
21687      ;;
21688
21689    osf3* | osf4* | osf5*)
21690      lt_prog_compiler_wl_GCJ='-Wl,'
21691      # All OSF/1 code is PIC.
21692      lt_prog_compiler_static_GCJ='-non_shared'
21693      ;;
21694
21695    sco3.2v5*)
21696      lt_prog_compiler_pic_GCJ='-Kpic'
21697      lt_prog_compiler_static_GCJ='-dn'
21698      ;;
21699
21700    solaris*)
21701      lt_prog_compiler_wl_GCJ='-Wl,'
21702      lt_prog_compiler_pic_GCJ='-KPIC'
21703      lt_prog_compiler_static_GCJ='-Bstatic'
21704      ;;
21705
21706    sunos4*)
21707      lt_prog_compiler_wl_GCJ='-Qoption ld '
21708      lt_prog_compiler_pic_GCJ='-PIC'
21709      lt_prog_compiler_static_GCJ='-Bstatic'
21710      ;;
21711
21712    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21713      lt_prog_compiler_wl_GCJ='-Wl,'
21714      lt_prog_compiler_pic_GCJ='-KPIC'
21715      lt_prog_compiler_static_GCJ='-Bstatic'
21716      ;;
21717
21718    sysv4*MP*)
21719      if test -d /usr/nec ;then
21720	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21721	lt_prog_compiler_static_GCJ='-Bstatic'
21722      fi
21723      ;;
21724
21725    uts4*)
21726      lt_prog_compiler_pic_GCJ='-pic'
21727      lt_prog_compiler_static_GCJ='-Bstatic'
21728      ;;
21729
21730    *)
21731      lt_prog_compiler_can_build_shared_GCJ=no
21732      ;;
21733    esac
21734  fi
21735
21736echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21737echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21738
21739#
21740# Check to make sure the PIC flag actually works.
21741#
21742if test -n "$lt_prog_compiler_pic_GCJ"; then
21743
21744echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21745echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21746if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21747  echo $ECHO_N "(cached) $ECHO_C" >&6
21748else
21749  lt_prog_compiler_pic_works_GCJ=no
21750  ac_outfile=conftest.$ac_objext
21751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21752   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21753   # Insert the option either (1) after the last *FLAGS variable, or
21754   # (2) before a word containing "conftest.", or (3) at the end.
21755   # Note that $ac_compile itself does not contain backslashes and begins
21756   # with a dollar sign (not a hyphen), so the echo should work correctly.
21757   # The option is referenced via a variable to avoid confusing sed.
21758   lt_compile=`echo "$ac_compile" | $SED \
21759   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761   -e 's:$: $lt_compiler_flag:'`
21762   (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763   (eval "$lt_compile" 2>conftest.err)
21764   ac_status=$?
21765   cat conftest.err >&5
21766   echo "$as_me:21766: \$? = $ac_status" >&5
21767   if (exit $ac_status) && test -s "$ac_outfile"; then
21768     # The compiler can only warn and ignore the option if not recognized
21769     # So say no if there are warnings
21770     if test ! -s conftest.err; then
21771       lt_prog_compiler_pic_works_GCJ=yes
21772     fi
21773   fi
21774   $rm conftest*
21775
21776fi
21777echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21778echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21779
21780if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21781    case $lt_prog_compiler_pic_GCJ in
21782     "" | " "*) ;;
21783     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21784     esac
21785else
21786    lt_prog_compiler_pic_GCJ=
21787     lt_prog_compiler_can_build_shared_GCJ=no
21788fi
21789
21790fi
21791case "$host_os" in
21792  # For platforms which do not support PIC, -DPIC is meaningless:
21793  *djgpp*)
21794    lt_prog_compiler_pic_GCJ=
21795    ;;
21796  *)
21797    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21798    ;;
21799esac
21800
21801echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21802echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21803if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21804  echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806  lt_cv_prog_compiler_c_o_GCJ=no
21807   $rm -r conftest 2>/dev/null
21808   mkdir conftest
21809   cd conftest
21810   mkdir out
21811   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21812
21813   lt_compiler_flag="-o out/conftest2.$ac_objext"
21814   # Insert the option either (1) after the last *FLAGS variable, or
21815   # (2) before a word containing "conftest.", or (3) at the end.
21816   # Note that $ac_compile itself does not contain backslashes and begins
21817   # with a dollar sign (not a hyphen), so the echo should work correctly.
21818   lt_compile=`echo "$ac_compile" | $SED \
21819   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21821   -e 's:$: $lt_compiler_flag:'`
21822   (eval echo "\"\$as_me:21822: $lt_compile\"" >&5)
21823   (eval "$lt_compile" 2>out/conftest.err)
21824   ac_status=$?
21825   cat out/conftest.err >&5
21826   echo "$as_me:21826: \$? = $ac_status" >&5
21827   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21828   then
21829     # The compiler can only warn and ignore the option if not recognized
21830     # So say no if there are warnings
21831     if test ! -s out/conftest.err; then
21832       lt_cv_prog_compiler_c_o_GCJ=yes
21833     fi
21834   fi
21835   chmod u+w .
21836   $rm conftest*
21837   # SGI C++ compiler will create directory out/ii_files/ for
21838   # template instantiation
21839   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21840   $rm out/* && rmdir out
21841   cd ..
21842   rmdir conftest
21843   $rm conftest*
21844
21845fi
21846echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21847echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21848
21849
21850hard_links="nottested"
21851if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21852  # do not overwrite the value of need_locks provided by the user
21853  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21854echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21855  hard_links=yes
21856  $rm conftest*
21857  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21858  touch conftest.a
21859  ln conftest.a conftest.b 2>&5 || hard_links=no
21860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21861  echo "$as_me:$LINENO: result: $hard_links" >&5
21862echo "${ECHO_T}$hard_links" >&6
21863  if test "$hard_links" = no; then
21864    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21865echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21866    need_locks=warn
21867  fi
21868else
21869  need_locks=no
21870fi
21871
21872echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21873echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21874
21875  runpath_var=
21876  allow_undefined_flag_GCJ=
21877  enable_shared_with_static_runtimes_GCJ=no
21878  archive_cmds_GCJ=
21879  archive_expsym_cmds_GCJ=
21880  old_archive_From_new_cmds_GCJ=
21881  old_archive_from_expsyms_cmds_GCJ=
21882  export_dynamic_flag_spec_GCJ=
21883  whole_archive_flag_spec_GCJ=
21884  thread_safe_flag_spec_GCJ=
21885  hardcode_libdir_flag_spec_GCJ=
21886  hardcode_libdir_flag_spec_ld_GCJ=
21887  hardcode_libdir_separator_GCJ=
21888  hardcode_direct_GCJ=no
21889  hardcode_minus_L_GCJ=no
21890  hardcode_shlibpath_var_GCJ=unsupported
21891  link_all_deplibs_GCJ=unknown
21892  hardcode_automatic_GCJ=no
21893  module_cmds_GCJ=
21894  module_expsym_cmds_GCJ=
21895  always_export_symbols_GCJ=no
21896  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21897  # include_expsyms should be a list of space-separated symbols to be *always*
21898  # included in the symbol list
21899  include_expsyms_GCJ=
21900  # exclude_expsyms can be an extended regexp of symbols to exclude
21901  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21902  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21903  # as well as any symbol that contains `d'.
21904  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21905  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21906  # platforms (ab)use it in PIC code, but their linkers get confused if
21907  # the symbol is explicitly referenced.  Since portable code cannot
21908  # rely on this symbol name, it's probably fine to never include it in
21909  # preloaded symbol tables.
21910  extract_expsyms_cmds=
21911
21912  case $host_os in
21913  cygwin* | mingw* | pw32*)
21914    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21915    # When not using gcc, we currently assume that we are using
21916    # Microsoft Visual C++.
21917    if test "$GCC" != yes; then
21918      with_gnu_ld=no
21919    fi
21920    ;;
21921  openbsd*)
21922    with_gnu_ld=no
21923    ;;
21924  esac
21925
21926  ld_shlibs_GCJ=yes
21927  if test "$with_gnu_ld" = yes; then
21928    # If archive_cmds runs LD, not CC, wlarc should be empty
21929    wlarc='${wl}'
21930
21931    # See if GNU ld supports shared libraries.
21932    case $host_os in
21933    aix3* | aix4* | aix5*)
21934      # On AIX/PPC, the GNU linker is very broken
21935      if test "$host_cpu" != ia64; then
21936	ld_shlibs_GCJ=no
21937	cat <<EOF 1>&2
21938
21939*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21940*** to be unable to reliably create shared libraries on AIX.
21941*** Therefore, libtool is disabling shared libraries support.  If you
21942*** really care for shared libraries, you may want to modify your PATH
21943*** so that a non-GNU linker is found, and then restart.
21944
21945EOF
21946      fi
21947      ;;
21948
21949    amigaos*)
21950      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)'
21951      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21952      hardcode_minus_L_GCJ=yes
21953
21954      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21955      # that the semantics of dynamic libraries on AmigaOS, at least up
21956      # to version 4, is to share data among multiple programs linked
21957      # with the same dynamic library.  Since this doesn't match the
21958      # behavior of shared libraries on other platforms, we can't use
21959      # them.
21960      ld_shlibs_GCJ=no
21961      ;;
21962
21963    beos*)
21964      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21965	allow_undefined_flag_GCJ=unsupported
21966	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21967	# support --undefined.  This deserves some investigation.  FIXME
21968	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21969      else
21970	ld_shlibs_GCJ=no
21971      fi
21972      ;;
21973
21974    cygwin* | mingw* | pw32*)
21975      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21976      # as there is no search path for DLLs.
21977      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21978      allow_undefined_flag_GCJ=unsupported
21979      always_export_symbols_GCJ=no
21980      enable_shared_with_static_runtimes_GCJ=yes
21981      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21982
21983      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21984        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21985	# If the export-symbols file already is a .def file (1st line
21986	# is EXPORTS), use it as is; otherwise, prepend...
21987	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21988	  cp $export_symbols $output_objdir/$soname.def;
21989	else
21990	  echo EXPORTS > $output_objdir/$soname.def;
21991	  cat $export_symbols >> $output_objdir/$soname.def;
21992	fi~
21993	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21994      else
21995	ld_shlibs=no
21996      fi
21997      ;;
21998
21999    netbsd*)
22000      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22001	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22002	wlarc=
22003      else
22004	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22005	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22006      fi
22007      ;;
22008
22009    solaris* | sysv5*)
22010      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22011	ld_shlibs_GCJ=no
22012	cat <<EOF 1>&2
22013
22014*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22015*** create shared libraries on Solaris systems.  Therefore, libtool
22016*** is disabling shared libraries support.  We urge you to upgrade GNU
22017*** binutils to release 2.9.1 or newer.  Another option is to modify
22018*** your PATH or compiler configuration so that the native linker is
22019*** used, and then restart.
22020
22021EOF
22022      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22023	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22024	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22025      else
22026	ld_shlibs_GCJ=no
22027      fi
22028      ;;
22029
22030    sunos4*)
22031      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032      wlarc=
22033      hardcode_direct_GCJ=yes
22034      hardcode_shlibpath_var_GCJ=no
22035      ;;
22036
22037  linux*)
22038    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040	archive_cmds_GCJ="$tmp_archive_cmds"
22041      supports_anon_versioning=no
22042      case `$LD -v 2>/dev/null` in
22043        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22044        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22045        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22046        *\ 2.11.*) ;; # other 2.11 versions
22047        *) supports_anon_versioning=yes ;;
22048      esac
22049      if test $supports_anon_versioning = yes; then
22050        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22051cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22052$echo "local: *; };" >> $output_objdir/$libname.ver~
22053        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22054      else
22055        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22056      fi
22057    else
22058      ld_shlibs_GCJ=no
22059    fi
22060    ;;
22061
22062    *)
22063      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22064	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22065	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22066      else
22067	ld_shlibs_GCJ=no
22068      fi
22069      ;;
22070    esac
22071
22072    if test "$ld_shlibs_GCJ" = yes; then
22073      runpath_var=LD_RUN_PATH
22074      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22075      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22076      # ancient GNU ld didn't support --whole-archive et. al.
22077      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22078 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22079      else
22080  	whole_archive_flag_spec_GCJ=
22081      fi
22082    fi
22083  else
22084    # PORTME fill in a description of your system's linker (not GNU ld)
22085    case $host_os in
22086    aix3*)
22087      allow_undefined_flag_GCJ=unsupported
22088      always_export_symbols_GCJ=yes
22089      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'
22090      # Note: this linker hardcodes the directories in LIBPATH if there
22091      # are no directories specified by -L.
22092      hardcode_minus_L_GCJ=yes
22093      if test "$GCC" = yes && test -z "$link_static_flag"; then
22094	# Neither direct hardcoding nor static linking is supported with a
22095	# broken collect2.
22096	hardcode_direct_GCJ=unsupported
22097      fi
22098      ;;
22099
22100    aix4* | aix5*)
22101      if test "$host_cpu" = ia64; then
22102	# On IA64, the linker does run time linking by default, so we don't
22103	# have to do anything special.
22104	aix_use_runtimelinking=no
22105	exp_sym_flag='-Bexport'
22106	no_entry_flag=""
22107      else
22108	# If we're using GNU nm, then we don't want the "-C" option.
22109	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22110	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22111	  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'
22112	else
22113	  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'
22114	fi
22115	aix_use_runtimelinking=no
22116
22117	# Test if we are trying to use run time linking or normal
22118	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22119	# need to do runtime linking.
22120	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22121	  for ld_flag in $LDFLAGS; do
22122  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22123  	    aix_use_runtimelinking=yes
22124  	    break
22125  	  fi
22126	  done
22127	esac
22128
22129	exp_sym_flag='-bexport'
22130	no_entry_flag='-bnoentry'
22131      fi
22132
22133      # When large executables or shared objects are built, AIX ld can
22134      # have problems creating the table of contents.  If linking a library
22135      # or program results in "error TOC overflow" add -mminimal-toc to
22136      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22137      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22138
22139      archive_cmds_GCJ=''
22140      hardcode_direct_GCJ=yes
22141      hardcode_libdir_separator_GCJ=':'
22142      link_all_deplibs_GCJ=yes
22143
22144      if test "$GCC" = yes; then
22145	case $host_os in aix4.012|aix4.012.*)
22146	# We only want to do this on AIX 4.2 and lower, the check
22147	# below for broken collect2 doesn't work under 4.3+
22148	  collect2name=`${CC} -print-prog-name=collect2`
22149	  if test -f "$collect2name" && \
22150  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22151	  then
22152  	  # We have reworked collect2
22153  	  hardcode_direct_GCJ=yes
22154	  else
22155  	  # We have old collect2
22156  	  hardcode_direct_GCJ=unsupported
22157  	  # It fails to find uninstalled libraries when the uninstalled
22158  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22159  	  # to unsupported forces relinking
22160  	  hardcode_minus_L_GCJ=yes
22161  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22162  	  hardcode_libdir_separator_GCJ=
22163	  fi
22164	esac
22165	shared_flag='-shared'
22166      else
22167	# not using gcc
22168	if test "$host_cpu" = ia64; then
22169  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22170  	# chokes on -Wl,-G. The following line is correct:
22171	  shared_flag='-G'
22172	else
22173  	if test "$aix_use_runtimelinking" = yes; then
22174	    shared_flag='${wl}-G'
22175	  else
22176	    shared_flag='${wl}-bM:SRE'
22177  	fi
22178	fi
22179      fi
22180
22181      # It seems that -bexpall does not export symbols beginning with
22182      # underscore (_), so it is better to generate a list of symbols to export.
22183      always_export_symbols_GCJ=yes
22184      if test "$aix_use_runtimelinking" = yes; then
22185	# Warning - without using the other runtime loading flags (-brtl),
22186	# -berok will link without error, but may produce a broken library.
22187	allow_undefined_flag_GCJ='-berok'
22188       # Determine the default libpath from the value encoded in an empty executable.
22189       cat >conftest.$ac_ext <<_ACEOF
22190/* confdefs.h.  */
22191_ACEOF
22192cat confdefs.h >>conftest.$ac_ext
22193cat >>conftest.$ac_ext <<_ACEOF
22194/* end confdefs.h.  */
22195
22196int
22197main ()
22198{
22199
22200  ;
22201  return 0;
22202}
22203_ACEOF
22204rm -f conftest.$ac_objext conftest$ac_exeext
22205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22206  (eval $ac_link) 2>conftest.er1
22207  ac_status=$?
22208  grep -v '^ *+' conftest.er1 >conftest.err
22209  rm -f conftest.er1
22210  cat conftest.err >&5
22211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212  (exit $ac_status); } &&
22213	 { ac_try='test -z "$ac_c_werror_flag"
22214			 || test ! -s conftest.err'
22215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216  (eval $ac_try) 2>&5
22217  ac_status=$?
22218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219  (exit $ac_status); }; } &&
22220	 { ac_try='test -s conftest$ac_exeext'
22221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222  (eval $ac_try) 2>&5
22223  ac_status=$?
22224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225  (exit $ac_status); }; }; then
22226
22227aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22228}'`
22229# Check for a 64-bit object if we didn't find anything.
22230if 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; }
22231}'`; fi
22232else
22233  echo "$as_me: failed program was:" >&5
22234sed 's/^/| /' conftest.$ac_ext >&5
22235
22236fi
22237rm -f conftest.err conftest.$ac_objext \
22238      conftest$ac_exeext conftest.$ac_ext
22239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22240
22241       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22242	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"
22243       else
22244	if test "$host_cpu" = ia64; then
22245	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22246	  allow_undefined_flag_GCJ="-z nodefs"
22247	  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"
22248	else
22249	 # Determine the default libpath from the value encoded in an empty executable.
22250	 cat >conftest.$ac_ext <<_ACEOF
22251/* confdefs.h.  */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h.  */
22256
22257int
22258main ()
22259{
22260
22261  ;
22262  return 0;
22263}
22264_ACEOF
22265rm -f conftest.$ac_objext conftest$ac_exeext
22266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22267  (eval $ac_link) 2>conftest.er1
22268  ac_status=$?
22269  grep -v '^ *+' conftest.er1 >conftest.err
22270  rm -f conftest.er1
22271  cat conftest.err >&5
22272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273  (exit $ac_status); } &&
22274	 { ac_try='test -z "$ac_c_werror_flag"
22275			 || test ! -s conftest.err'
22276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277  (eval $ac_try) 2>&5
22278  ac_status=$?
22279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280  (exit $ac_status); }; } &&
22281	 { ac_try='test -s conftest$ac_exeext'
22282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283  (eval $ac_try) 2>&5
22284  ac_status=$?
22285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286  (exit $ac_status); }; }; then
22287
22288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22289}'`
22290# Check for a 64-bit object if we didn't find anything.
22291if 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; }
22292}'`; fi
22293else
22294  echo "$as_me: failed program was:" >&5
22295sed 's/^/| /' conftest.$ac_ext >&5
22296
22297fi
22298rm -f conftest.err conftest.$ac_objext \
22299      conftest$ac_exeext conftest.$ac_ext
22300if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22301
22302	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22303	  # Warning - without using the other run time loading flags,
22304	  # -berok will link without error, but may produce a broken library.
22305	  no_undefined_flag_GCJ=' ${wl}-bernotok'
22306	  allow_undefined_flag_GCJ=' ${wl}-berok'
22307	  # -bexpall does not export symbols beginning with underscore (_)
22308	  always_export_symbols_GCJ=yes
22309	  # Exported symbols can be pulled into shared objects from archives
22310	  whole_archive_flag_spec_GCJ=' '
22311	  archive_cmds_need_lc_GCJ=yes
22312	  # This is similar to how AIX traditionally builds it's shared libraries.
22313	  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'
22314	fi
22315      fi
22316      ;;
22317
22318    amigaos*)
22319      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)'
22320      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22321      hardcode_minus_L_GCJ=yes
22322      # see comment about different semantics on the GNU ld section
22323      ld_shlibs_GCJ=no
22324      ;;
22325
22326    bsdi[45]*)
22327      export_dynamic_flag_spec_GCJ=-rdynamic
22328      ;;
22329
22330    cygwin* | mingw* | pw32*)
22331      # When not using gcc, we currently assume that we are using
22332      # Microsoft Visual C++.
22333      # hardcode_libdir_flag_spec is actually meaningless, as there is
22334      # no search path for DLLs.
22335      hardcode_libdir_flag_spec_GCJ=' '
22336      allow_undefined_flag_GCJ=unsupported
22337      # Tell ltmain to make .lib files, not .a files.
22338      libext=lib
22339      # Tell ltmain to make .dll files, not .so files.
22340      shrext_cmds=".dll"
22341      # FIXME: Setting linknames here is a bad hack.
22342      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22343      # The linker will automatically build a .lib file if we build a DLL.
22344      old_archive_From_new_cmds_GCJ='true'
22345      # FIXME: Should let the user specify the lib program.
22346      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22347      fix_srcfile_path='`cygpath -w "$srcfile"`'
22348      enable_shared_with_static_runtimes_GCJ=yes
22349      ;;
22350
22351    darwin* | rhapsody*)
22352      case "$host_os" in
22353        rhapsody* | darwin1.[012])
22354         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22355         ;;
22356       *) # Darwin 1.3 on
22357         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22358           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22359         else
22360           case ${MACOSX_DEPLOYMENT_TARGET} in
22361             10.[012])
22362               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22363               ;;
22364             10.*)
22365               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22366               ;;
22367           esac
22368         fi
22369         ;;
22370      esac
22371      archive_cmds_need_lc_GCJ=no
22372      hardcode_direct_GCJ=no
22373      hardcode_automatic_GCJ=yes
22374      hardcode_shlibpath_var_GCJ=unsupported
22375      whole_archive_flag_spec_GCJ=''
22376      link_all_deplibs_GCJ=yes
22377    if test "$GCC" = yes ; then
22378    	output_verbose_link_cmd='echo'
22379        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22380      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22381      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22382      archive_expsym_cmds_GCJ='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}'
22383      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22384    else
22385      case "$cc_basename" in
22386        xlc*)
22387         output_verbose_link_cmd='echo'
22388         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22389         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22390          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22391         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22392          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22393          ;;
22394       *)
22395         ld_shlibs_GCJ=no
22396          ;;
22397      esac
22398    fi
22399      ;;
22400
22401    dgux*)
22402      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22403      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22404      hardcode_shlibpath_var_GCJ=no
22405      ;;
22406
22407    freebsd1*)
22408      ld_shlibs_GCJ=no
22409      ;;
22410
22411    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22412    # support.  Future versions do this automatically, but an explicit c++rt0.o
22413    # does not break anything, and helps significantly (at the cost of a little
22414    # extra space).
22415    freebsd2.2*)
22416      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22417      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22418      hardcode_direct_GCJ=yes
22419      hardcode_shlibpath_var_GCJ=no
22420      ;;
22421
22422    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22423    freebsd2*)
22424      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22425      hardcode_direct_GCJ=yes
22426      hardcode_minus_L_GCJ=yes
22427      hardcode_shlibpath_var_GCJ=no
22428      ;;
22429
22430    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22431    freebsd* | kfreebsd*-gnu)
22432      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22433      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22434      hardcode_direct_GCJ=yes
22435      hardcode_shlibpath_var_GCJ=no
22436      ;;
22437
22438    hpux9*)
22439      if test "$GCC" = yes; then
22440	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'
22441      else
22442	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'
22443      fi
22444      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22445      hardcode_libdir_separator_GCJ=:
22446      hardcode_direct_GCJ=yes
22447
22448      # hardcode_minus_L: Not really in the search PATH,
22449      # but as the default location of the library.
22450      hardcode_minus_L_GCJ=yes
22451      export_dynamic_flag_spec_GCJ='${wl}-E'
22452      ;;
22453
22454    hpux10* | hpux11*)
22455      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22456	case "$host_cpu" in
22457	hppa*64*|ia64*)
22458	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22459	  ;;
22460	*)
22461	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22462	  ;;
22463	esac
22464      else
22465	case "$host_cpu" in
22466	hppa*64*|ia64*)
22467	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22468	  ;;
22469	*)
22470	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22471	  ;;
22472	esac
22473      fi
22474      if test "$with_gnu_ld" = no; then
22475	case "$host_cpu" in
22476	hppa*64*)
22477	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22478	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22479	  hardcode_libdir_separator_GCJ=:
22480	  hardcode_direct_GCJ=no
22481	  hardcode_shlibpath_var_GCJ=no
22482	  ;;
22483	ia64*)
22484	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22485	  hardcode_direct_GCJ=no
22486	  hardcode_shlibpath_var_GCJ=no
22487
22488	  # hardcode_minus_L: Not really in the search PATH,
22489	  # but as the default location of the library.
22490	  hardcode_minus_L_GCJ=yes
22491	  ;;
22492	*)
22493	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22494	  hardcode_libdir_separator_GCJ=:
22495	  hardcode_direct_GCJ=yes
22496	  export_dynamic_flag_spec_GCJ='${wl}-E'
22497
22498	  # hardcode_minus_L: Not really in the search PATH,
22499	  # but as the default location of the library.
22500	  hardcode_minus_L_GCJ=yes
22501	  ;;
22502	esac
22503      fi
22504      ;;
22505
22506    irix5* | irix6* | nonstopux*)
22507      if test "$GCC" = yes; then
22508	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'
22509      else
22510	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'
22511	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22512      fi
22513      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22514      hardcode_libdir_separator_GCJ=:
22515      link_all_deplibs_GCJ=yes
22516      ;;
22517
22518    netbsd*)
22519      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22520	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22521      else
22522	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22523      fi
22524      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22525      hardcode_direct_GCJ=yes
22526      hardcode_shlibpath_var_GCJ=no
22527      ;;
22528
22529    newsos6)
22530      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22531      hardcode_direct_GCJ=yes
22532      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22533      hardcode_libdir_separator_GCJ=:
22534      hardcode_shlibpath_var_GCJ=no
22535      ;;
22536
22537    openbsd*)
22538      hardcode_direct_GCJ=yes
22539      hardcode_shlibpath_var_GCJ=no
22540      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22541	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22542	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22543	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22544	export_dynamic_flag_spec_GCJ='${wl}-E'
22545      else
22546       case $host_os in
22547	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22548	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22549	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22550	   ;;
22551	 *)
22552	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22553	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22554	   ;;
22555       esac
22556      fi
22557      ;;
22558
22559    os2*)
22560      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22561      hardcode_minus_L_GCJ=yes
22562      allow_undefined_flag_GCJ=unsupported
22563      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'
22564      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22565      ;;
22566
22567    osf3*)
22568      if test "$GCC" = yes; then
22569	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22570	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'
22571      else
22572	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22573	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'
22574      fi
22575      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22576      hardcode_libdir_separator_GCJ=:
22577      ;;
22578
22579    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22580      if test "$GCC" = yes; then
22581	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22582	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'
22583	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22584      else
22585	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22586	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'
22587	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~
22588	$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'
22589
22590	# Both c and cxx compiler support -rpath directly
22591	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22592      fi
22593      hardcode_libdir_separator_GCJ=:
22594      ;;
22595
22596    sco3.2v5*)
22597      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22598      hardcode_shlibpath_var_GCJ=no
22599      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22600      runpath_var=LD_RUN_PATH
22601      hardcode_runpath_var=yes
22602      ;;
22603
22604    solaris*)
22605      no_undefined_flag_GCJ=' -z text'
22606      if test "$GCC" = yes; then
22607	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22609	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22610      else
22611	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22613  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22614      fi
22615      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22616      hardcode_shlibpath_var_GCJ=no
22617      case $host_os in
22618      solaris2.[0-5] | solaris2.[0-5].*) ;;
22619      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22620	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22621      esac
22622      link_all_deplibs_GCJ=yes
22623      ;;
22624
22625    sunos4*)
22626      if test "x$host_vendor" = xsequent; then
22627	# Use $CC to link under sequent, because it throws in some extra .o
22628	# files that make .init and .fini sections work.
22629	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22630      else
22631	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22632      fi
22633      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22634      hardcode_direct_GCJ=yes
22635      hardcode_minus_L_GCJ=yes
22636      hardcode_shlibpath_var_GCJ=no
22637      ;;
22638
22639    sysv4)
22640      case $host_vendor in
22641	sni)
22642	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643	  hardcode_direct_GCJ=yes # is this really true???
22644	;;
22645	siemens)
22646	  ## LD is ld it makes a PLAMLIB
22647	  ## CC just makes a GrossModule.
22648	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22649	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22650	  hardcode_direct_GCJ=no
22651        ;;
22652	motorola)
22653	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22655	;;
22656      esac
22657      runpath_var='LD_RUN_PATH'
22658      hardcode_shlibpath_var_GCJ=no
22659      ;;
22660
22661    sysv4.3*)
22662      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663      hardcode_shlibpath_var_GCJ=no
22664      export_dynamic_flag_spec_GCJ='-Bexport'
22665      ;;
22666
22667    sysv4*MP*)
22668      if test -d /usr/nec; then
22669	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22670	hardcode_shlibpath_var_GCJ=no
22671	runpath_var=LD_RUN_PATH
22672	hardcode_runpath_var=yes
22673	ld_shlibs_GCJ=yes
22674      fi
22675      ;;
22676
22677    sysv4.2uw2*)
22678      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22679      hardcode_direct_GCJ=yes
22680      hardcode_minus_L_GCJ=no
22681      hardcode_shlibpath_var_GCJ=no
22682      hardcode_runpath_var=yes
22683      runpath_var=LD_RUN_PATH
22684      ;;
22685
22686   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22687      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22688      if test "$GCC" = yes; then
22689	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22690      else
22691	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692      fi
22693      runpath_var='LD_RUN_PATH'
22694      hardcode_shlibpath_var_GCJ=no
22695      ;;
22696
22697    sysv5*)
22698      no_undefined_flag_GCJ=' -z text'
22699      # $CC -shared without GNU ld will not create a library from C++
22700      # object files and a static libstdc++, better avoid it by now
22701      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22702      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22703  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22704      hardcode_libdir_flag_spec_GCJ=
22705      hardcode_shlibpath_var_GCJ=no
22706      runpath_var='LD_RUN_PATH'
22707      ;;
22708
22709    uts4*)
22710      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22711      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22712      hardcode_shlibpath_var_GCJ=no
22713      ;;
22714
22715    *)
22716      ld_shlibs_GCJ=no
22717      ;;
22718    esac
22719  fi
22720
22721echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22722echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22723test "$ld_shlibs_GCJ" = no && can_build_shared=no
22724
22725variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22726if test "$GCC" = yes; then
22727  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22728fi
22729
22730#
22731# Do we need to explicitly link libc?
22732#
22733case "x$archive_cmds_need_lc_GCJ" in
22734x|xyes)
22735  # Assume -lc should be added
22736  archive_cmds_need_lc_GCJ=yes
22737
22738  if test "$enable_shared" = yes && test "$GCC" = yes; then
22739    case $archive_cmds_GCJ in
22740    *'~'*)
22741      # FIXME: we may have to deal with multi-command sequences.
22742      ;;
22743    '$CC '*)
22744      # Test whether the compiler implicitly links with -lc since on some
22745      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22746      # to ld, don't add -lc before -lgcc.
22747      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22748echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22749      $rm conftest*
22750      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22751
22752      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753  (eval $ac_compile) 2>&5
22754  ac_status=$?
22755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756  (exit $ac_status); } 2>conftest.err; then
22757        soname=conftest
22758        lib=conftest
22759        libobjs=conftest.$ac_objext
22760        deplibs=
22761        wl=$lt_prog_compiler_wl_GCJ
22762        compiler_flags=-v
22763        linker_flags=-v
22764        verstring=
22765        output_objdir=.
22766        libname=conftest
22767        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22768        allow_undefined_flag_GCJ=
22769        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22770  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22771  ac_status=$?
22772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773  (exit $ac_status); }
22774        then
22775	  archive_cmds_need_lc_GCJ=no
22776        else
22777	  archive_cmds_need_lc_GCJ=yes
22778        fi
22779        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22780      else
22781        cat conftest.err 1>&5
22782      fi
22783      $rm conftest*
22784      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22785echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22786      ;;
22787    esac
22788  fi
22789  ;;
22790esac
22791
22792echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22793echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22794library_names_spec=
22795libname_spec='lib$name'
22796soname_spec=
22797shrext_cmds=".so"
22798postinstall_cmds=
22799postuninstall_cmds=
22800finish_cmds=
22801finish_eval=
22802shlibpath_var=
22803shlibpath_overrides_runpath=unknown
22804version_type=none
22805dynamic_linker="$host_os ld.so"
22806sys_lib_dlsearch_path_spec="/lib /usr/lib"
22807if test "$GCC" = yes; then
22808  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22809  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22810    # if the path contains ";" then we assume it to be the separator
22811    # otherwise default to the standard path separator (i.e. ":") - it is
22812    # assumed that no part of a normal pathname contains ";" but that should
22813    # okay in the real world where ";" in dirpaths is itself problematic.
22814    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22815  else
22816    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22817  fi
22818else
22819  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22820fi
22821need_lib_prefix=unknown
22822hardcode_into_libs=no
22823
22824# when you set need_version to no, make sure it does not cause -set_version
22825# flags to be left without arguments
22826need_version=unknown
22827
22828case $host_os in
22829aix3*)
22830  version_type=linux
22831  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22832  shlibpath_var=LIBPATH
22833
22834  # AIX 3 has no versioning support, so we append a major version to the name.
22835  soname_spec='${libname}${release}${shared_ext}$major'
22836  ;;
22837
22838aix4* | aix5*)
22839  version_type=linux
22840  need_lib_prefix=no
22841  need_version=no
22842  hardcode_into_libs=yes
22843  if test "$host_cpu" = ia64; then
22844    # AIX 5 supports IA64
22845    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22846    shlibpath_var=LD_LIBRARY_PATH
22847  else
22848    # With GCC up to 2.95.x, collect2 would create an import file
22849    # for dependence libraries.  The import file would start with
22850    # the line `#! .'.  This would cause the generated library to
22851    # depend on `.', always an invalid library.  This was fixed in
22852    # development snapshots of GCC prior to 3.0.
22853    case $host_os in
22854      aix4 | aix4.[01] | aix4.[01].*)
22855      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22856	   echo ' yes '
22857	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22858	:
22859      else
22860	can_build_shared=no
22861      fi
22862      ;;
22863    esac
22864    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22865    # soname into executable. Probably we can add versioning support to
22866    # collect2, so additional links can be useful in future.
22867    if test "$aix_use_runtimelinking" = yes; then
22868      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22869      # instead of lib<name>.a to let people know that these are not
22870      # typical AIX shared libraries.
22871      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22872    else
22873      # We preserve .a as extension for shared libraries through AIX4.2
22874      # and later when we are not doing run time linking.
22875      library_names_spec='${libname}${release}.a $libname.a'
22876      soname_spec='${libname}${release}${shared_ext}$major'
22877    fi
22878    shlibpath_var=LIBPATH
22879  fi
22880  ;;
22881
22882amigaos*)
22883  library_names_spec='$libname.ixlibrary $libname.a'
22884  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22885  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'
22886  ;;
22887
22888beos*)
22889  library_names_spec='${libname}${shared_ext}'
22890  dynamic_linker="$host_os ld.so"
22891  shlibpath_var=LIBRARY_PATH
22892  ;;
22893
22894bsdi[45]*)
22895  version_type=linux
22896  need_version=no
22897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898  soname_spec='${libname}${release}${shared_ext}$major'
22899  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22900  shlibpath_var=LD_LIBRARY_PATH
22901  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22902  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22903  # the default ld.so.conf also contains /usr/contrib/lib and
22904  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22905  # libtool to hard-code these into programs
22906  ;;
22907
22908cygwin* | mingw* | pw32*)
22909  version_type=windows
22910  shrext_cmds=".dll"
22911  need_version=no
22912  need_lib_prefix=no
22913
22914  case $GCC,$host_os in
22915  yes,cygwin* | yes,mingw* | yes,pw32*)
22916    library_names_spec='$libname.dll.a'
22917    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22918    postinstall_cmds='base_file=`basename \${file}`~
22919      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22920      dldir=$destdir/`dirname \$dlpath`~
22921      test -d \$dldir || mkdir -p \$dldir~
22922      $install_prog $dir/$dlname \$dldir/$dlname'
22923    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22924      dlpath=$dir/\$dldll~
22925       $rm \$dlpath'
22926    shlibpath_overrides_runpath=yes
22927
22928    case $host_os in
22929    cygwin*)
22930      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22931      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22932      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22933      ;;
22934    mingw*)
22935      # MinGW DLLs use traditional 'lib' prefix
22936      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22937      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22938      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22939        # It is most probably a Windows format PATH printed by
22940        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22941        # path with ; separators, and with drive letters. We can handle the
22942        # drive letters (cygwin fileutils understands them), so leave them,
22943        # especially as we might pass files found there to a mingw objdump,
22944        # which wouldn't understand a cygwinified path. Ahh.
22945        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22946      else
22947        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22948      fi
22949      ;;
22950    pw32*)
22951      # pw32 DLLs use 'pw' prefix rather than 'lib'
22952      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22953      ;;
22954    esac
22955    ;;
22956
22957  *)
22958    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22959    ;;
22960  esac
22961  dynamic_linker='Win32 ld.exe'
22962  # FIXME: first we should search . and the directory the executable is in
22963  shlibpath_var=PATH
22964  ;;
22965
22966darwin* | rhapsody*)
22967  dynamic_linker="$host_os dyld"
22968  version_type=darwin
22969  need_lib_prefix=no
22970  need_version=no
22971  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22972  soname_spec='${libname}${release}${major}$shared_ext'
22973  shlibpath_overrides_runpath=yes
22974  shlibpath_var=DYLD_LIBRARY_PATH
22975  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22976  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22977  if test "$GCC" = yes; then
22978    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"`
22979  else
22980    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22981  fi
22982  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22983  ;;
22984
22985dgux*)
22986  version_type=linux
22987  need_lib_prefix=no
22988  need_version=no
22989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22990  soname_spec='${libname}${release}${shared_ext}$major'
22991  shlibpath_var=LD_LIBRARY_PATH
22992  ;;
22993
22994freebsd1*)
22995  dynamic_linker=no
22996  ;;
22997
22998kfreebsd*-gnu)
22999  version_type=linux
23000  need_lib_prefix=no
23001  need_version=no
23002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23003  soname_spec='${libname}${release}${shared_ext}$major'
23004  shlibpath_var=LD_LIBRARY_PATH
23005  shlibpath_overrides_runpath=no
23006  hardcode_into_libs=yes
23007  dynamic_linker='GNU ld.so'
23008  ;;
23009
23010freebsd*)
23011  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23012  version_type=freebsd-$objformat
23013  case $version_type in
23014    freebsd-elf*)
23015      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23016      need_version=no
23017      need_lib_prefix=no
23018      ;;
23019    freebsd-*)
23020      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23021      need_version=yes
23022      ;;
23023  esac
23024  shlibpath_var=LD_LIBRARY_PATH
23025  case $host_os in
23026  freebsd2*)
23027    shlibpath_overrides_runpath=yes
23028    ;;
23029  freebsd3.01* | freebsdelf3.01*)
23030    shlibpath_overrides_runpath=yes
23031    hardcode_into_libs=yes
23032    ;;
23033  *) # from 3.2 on
23034    shlibpath_overrides_runpath=no
23035    hardcode_into_libs=yes
23036    ;;
23037  esac
23038  ;;
23039
23040gnu*)
23041  version_type=linux
23042  need_lib_prefix=no
23043  need_version=no
23044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23045  soname_spec='${libname}${release}${shared_ext}$major'
23046  shlibpath_var=LD_LIBRARY_PATH
23047  hardcode_into_libs=yes
23048  ;;
23049
23050hpux9* | hpux10* | hpux11*)
23051  # Give a soname corresponding to the major version so that dld.sl refuses to
23052  # link against other versions.
23053  version_type=sunos
23054  need_lib_prefix=no
23055  need_version=no
23056  case "$host_cpu" in
23057  ia64*)
23058    shrext_cmds='.so'
23059    hardcode_into_libs=yes
23060    dynamic_linker="$host_os dld.so"
23061    shlibpath_var=LD_LIBRARY_PATH
23062    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064    soname_spec='${libname}${release}${shared_ext}$major'
23065    if test "X$HPUX_IA64_MODE" = X32; then
23066      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23067    else
23068      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23069    fi
23070    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23071    ;;
23072   hppa*64*)
23073     shrext_cmds='.sl'
23074     hardcode_into_libs=yes
23075     dynamic_linker="$host_os dld.sl"
23076     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23077     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23079     soname_spec='${libname}${release}${shared_ext}$major'
23080     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23081     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23082     ;;
23083   *)
23084    shrext_cmds='.sl'
23085    dynamic_linker="$host_os dld.sl"
23086    shlibpath_var=SHLIB_PATH
23087    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089    soname_spec='${libname}${release}${shared_ext}$major'
23090    ;;
23091  esac
23092  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23093  postinstall_cmds='chmod 555 $lib'
23094  ;;
23095
23096irix5* | irix6* | nonstopux*)
23097  case $host_os in
23098    nonstopux*) version_type=nonstopux ;;
23099    *)
23100	if test "$lt_cv_prog_gnu_ld" = yes; then
23101		version_type=linux
23102	else
23103		version_type=irix
23104	fi ;;
23105  esac
23106  need_lib_prefix=no
23107  need_version=no
23108  soname_spec='${libname}${release}${shared_ext}$major'
23109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23110  case $host_os in
23111  irix5* | nonstopux*)
23112    libsuff= shlibsuff=
23113    ;;
23114  *)
23115    case $LD in # libtool.m4 will add one of these switches to LD
23116    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23117      libsuff= shlibsuff= libmagic=32-bit;;
23118    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23119      libsuff=32 shlibsuff=N32 libmagic=N32;;
23120    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23121      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23122    *) libsuff= shlibsuff= libmagic=never-match;;
23123    esac
23124    ;;
23125  esac
23126  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23127  shlibpath_overrides_runpath=no
23128  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23129  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23130  hardcode_into_libs=yes
23131  ;;
23132
23133# No shared lib support for Linux oldld, aout, or coff.
23134linux*oldld* | linux*aout* | linux*coff*)
23135  dynamic_linker=no
23136  ;;
23137
23138# This must be Linux ELF.
23139linux*)
23140  version_type=linux
23141  need_lib_prefix=no
23142  need_version=no
23143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144  soname_spec='${libname}${release}${shared_ext}$major'
23145  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23146  shlibpath_var=LD_LIBRARY_PATH
23147  shlibpath_overrides_runpath=no
23148  # This implies no fast_install, which is unacceptable.
23149  # Some rework will be needed to allow for fast_install
23150  # before this can be enabled.
23151  hardcode_into_libs=yes
23152
23153  # Append ld.so.conf contents to the search path
23154  if test -f /etc/ld.so.conf; then
23155    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23156    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23157  fi
23158
23159  # We used to test for /lib/ld.so.1 and disable shared libraries on
23160  # powerpc, because MkLinux only supported shared libraries with the
23161  # GNU dynamic linker.  Since this was broken with cross compilers,
23162  # most powerpc-linux boxes support dynamic linking these days and
23163  # people can always --disable-shared, the test was removed, and we
23164  # assume the GNU/Linux dynamic linker is in use.
23165  dynamic_linker='GNU/Linux ld.so'
23166  ;;
23167
23168knetbsd*-gnu)
23169  version_type=linux
23170  need_lib_prefix=no
23171  need_version=no
23172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23173  soname_spec='${libname}${release}${shared_ext}$major'
23174  shlibpath_var=LD_LIBRARY_PATH
23175  shlibpath_overrides_runpath=no
23176  hardcode_into_libs=yes
23177  dynamic_linker='GNU ld.so'
23178  ;;
23179
23180netbsd*)
23181  version_type=sunos
23182  need_lib_prefix=no
23183  need_version=no
23184  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23185    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23186    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23187    dynamic_linker='NetBSD (a.out) ld.so'
23188  else
23189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23190    soname_spec='${libname}${release}${shared_ext}$major'
23191    dynamic_linker='NetBSD ld.elf_so'
23192  fi
23193  shlibpath_var=LD_LIBRARY_PATH
23194  shlibpath_overrides_runpath=yes
23195  hardcode_into_libs=yes
23196  ;;
23197
23198newsos6)
23199  version_type=linux
23200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23201  shlibpath_var=LD_LIBRARY_PATH
23202  shlibpath_overrides_runpath=yes
23203  ;;
23204
23205nto-qnx*)
23206  version_type=linux
23207  need_lib_prefix=no
23208  need_version=no
23209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23210  soname_spec='${libname}${release}${shared_ext}$major'
23211  shlibpath_var=LD_LIBRARY_PATH
23212  shlibpath_overrides_runpath=yes
23213  ;;
23214
23215openbsd*)
23216  version_type=sunos
23217  need_lib_prefix=no
23218  need_version=no
23219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23221  shlibpath_var=LD_LIBRARY_PATH
23222  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23223    case $host_os in
23224      openbsd2.[89] | openbsd2.[89].*)
23225	shlibpath_overrides_runpath=no
23226	;;
23227      *)
23228	shlibpath_overrides_runpath=yes
23229	;;
23230      esac
23231  else
23232    shlibpath_overrides_runpath=yes
23233  fi
23234  ;;
23235
23236os2*)
23237  libname_spec='$name'
23238  shrext_cmds=".dll"
23239  need_lib_prefix=no
23240  library_names_spec='$libname${shared_ext} $libname.a'
23241  dynamic_linker='OS/2 ld.exe'
23242  shlibpath_var=LIBPATH
23243  ;;
23244
23245osf3* | osf4* | osf5*)
23246  version_type=osf
23247  need_lib_prefix=no
23248  need_version=no
23249  soname_spec='${libname}${release}${shared_ext}$major'
23250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251  shlibpath_var=LD_LIBRARY_PATH
23252  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23253  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23254  ;;
23255
23256sco3.2v5*)
23257  version_type=osf
23258  soname_spec='${libname}${release}${shared_ext}$major'
23259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23260  shlibpath_var=LD_LIBRARY_PATH
23261  ;;
23262
23263solaris*)
23264  version_type=linux
23265  need_lib_prefix=no
23266  need_version=no
23267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23268  soname_spec='${libname}${release}${shared_ext}$major'
23269  shlibpath_var=LD_LIBRARY_PATH
23270  shlibpath_overrides_runpath=yes
23271  hardcode_into_libs=yes
23272  # ldd complains unless libraries are executable
23273  postinstall_cmds='chmod +x $lib'
23274  ;;
23275
23276sunos4*)
23277  version_type=sunos
23278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23279  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23280  shlibpath_var=LD_LIBRARY_PATH
23281  shlibpath_overrides_runpath=yes
23282  if test "$with_gnu_ld" = yes; then
23283    need_lib_prefix=no
23284  fi
23285  need_version=yes
23286  ;;
23287
23288sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23289  version_type=linux
23290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23291  soname_spec='${libname}${release}${shared_ext}$major'
23292  shlibpath_var=LD_LIBRARY_PATH
23293  case $host_vendor in
23294    sni)
23295      shlibpath_overrides_runpath=no
23296      need_lib_prefix=no
23297      export_dynamic_flag_spec='${wl}-Blargedynsym'
23298      runpath_var=LD_RUN_PATH
23299      ;;
23300    siemens)
23301      need_lib_prefix=no
23302      ;;
23303    motorola)
23304      need_lib_prefix=no
23305      need_version=no
23306      shlibpath_overrides_runpath=no
23307      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23308      ;;
23309  esac
23310  ;;
23311
23312sysv4*MP*)
23313  if test -d /usr/nec ;then
23314    version_type=linux
23315    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23316    soname_spec='$libname${shared_ext}.$major'
23317    shlibpath_var=LD_LIBRARY_PATH
23318  fi
23319  ;;
23320
23321uts4*)
23322  version_type=linux
23323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23324  soname_spec='${libname}${release}${shared_ext}$major'
23325  shlibpath_var=LD_LIBRARY_PATH
23326  ;;
23327
23328*)
23329  dynamic_linker=no
23330  ;;
23331esac
23332echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23333echo "${ECHO_T}$dynamic_linker" >&6
23334test "$dynamic_linker" = no && can_build_shared=no
23335
23336echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23337echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23338hardcode_action_GCJ=
23339if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23340   test -n "$runpath_var_GCJ" || \
23341   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23342
23343  # We can hardcode non-existant directories.
23344  if test "$hardcode_direct_GCJ" != no &&
23345     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23346     # have to relink, otherwise we might link with an installed library
23347     # when we should be linking with a yet-to-be-installed one
23348     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23349     test "$hardcode_minus_L_GCJ" != no; then
23350    # Linking always hardcodes the temporary library directory.
23351    hardcode_action_GCJ=relink
23352  else
23353    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23354    hardcode_action_GCJ=immediate
23355  fi
23356else
23357  # We cannot hardcode anything, or else we can only hardcode existing
23358  # directories.
23359  hardcode_action_GCJ=unsupported
23360fi
23361echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23362echo "${ECHO_T}$hardcode_action_GCJ" >&6
23363
23364if test "$hardcode_action_GCJ" = relink; then
23365  # Fast installation is not supported
23366  enable_fast_install=no
23367elif test "$shlibpath_overrides_runpath" = yes ||
23368     test "$enable_shared" = no; then
23369  # Fast installation is not necessary
23370  enable_fast_install=needless
23371fi
23372
23373striplib=
23374old_striplib=
23375echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23376echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23377if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23378  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23379  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23380  echo "$as_me:$LINENO: result: yes" >&5
23381echo "${ECHO_T}yes" >&6
23382else
23383# FIXME - insert some real tests, host_os isn't really good enough
23384  case $host_os in
23385   darwin*)
23386       if test -n "$STRIP" ; then
23387         striplib="$STRIP -x"
23388         echo "$as_me:$LINENO: result: yes" >&5
23389echo "${ECHO_T}yes" >&6
23390       else
23391  echo "$as_me:$LINENO: result: no" >&5
23392echo "${ECHO_T}no" >&6
23393fi
23394       ;;
23395   *)
23396  echo "$as_me:$LINENO: result: no" >&5
23397echo "${ECHO_T}no" >&6
23398    ;;
23399  esac
23400fi
23401
23402if test "x$enable_dlopen" != xyes; then
23403  enable_dlopen=unknown
23404  enable_dlopen_self=unknown
23405  enable_dlopen_self_static=unknown
23406else
23407  lt_cv_dlopen=no
23408  lt_cv_dlopen_libs=
23409
23410  case $host_os in
23411  beos*)
23412    lt_cv_dlopen="load_add_on"
23413    lt_cv_dlopen_libs=
23414    lt_cv_dlopen_self=yes
23415    ;;
23416
23417  mingw* | pw32*)
23418    lt_cv_dlopen="LoadLibrary"
23419    lt_cv_dlopen_libs=
23420   ;;
23421
23422  cygwin*)
23423    lt_cv_dlopen="dlopen"
23424    lt_cv_dlopen_libs=
23425   ;;
23426
23427  darwin*)
23428  # if libdl is installed we need to link against it
23429    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23430echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23431if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23432  echo $ECHO_N "(cached) $ECHO_C" >&6
23433else
23434  ac_check_lib_save_LIBS=$LIBS
23435LIBS="-ldl  $LIBS"
23436cat >conftest.$ac_ext <<_ACEOF
23437/* confdefs.h.  */
23438_ACEOF
23439cat confdefs.h >>conftest.$ac_ext
23440cat >>conftest.$ac_ext <<_ACEOF
23441/* end confdefs.h.  */
23442
23443/* Override any gcc2 internal prototype to avoid an error.  */
23444#ifdef __cplusplus
23445extern "C"
23446#endif
23447/* We use char because int might match the return type of a gcc2
23448   builtin and then its argument prototype would still apply.  */
23449char dlopen ();
23450int
23451main ()
23452{
23453dlopen ();
23454  ;
23455  return 0;
23456}
23457_ACEOF
23458rm -f conftest.$ac_objext conftest$ac_exeext
23459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460  (eval $ac_link) 2>conftest.er1
23461  ac_status=$?
23462  grep -v '^ *+' conftest.er1 >conftest.err
23463  rm -f conftest.er1
23464  cat conftest.err >&5
23465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466  (exit $ac_status); } &&
23467	 { ac_try='test -z "$ac_c_werror_flag"
23468			 || test ! -s conftest.err'
23469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470  (eval $ac_try) 2>&5
23471  ac_status=$?
23472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473  (exit $ac_status); }; } &&
23474	 { ac_try='test -s conftest$ac_exeext'
23475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476  (eval $ac_try) 2>&5
23477  ac_status=$?
23478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479  (exit $ac_status); }; }; then
23480  ac_cv_lib_dl_dlopen=yes
23481else
23482  echo "$as_me: failed program was:" >&5
23483sed 's/^/| /' conftest.$ac_ext >&5
23484
23485ac_cv_lib_dl_dlopen=no
23486fi
23487rm -f conftest.err conftest.$ac_objext \
23488      conftest$ac_exeext conftest.$ac_ext
23489LIBS=$ac_check_lib_save_LIBS
23490fi
23491echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23492echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23493if test $ac_cv_lib_dl_dlopen = yes; then
23494  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23495else
23496
23497    lt_cv_dlopen="dyld"
23498    lt_cv_dlopen_libs=
23499    lt_cv_dlopen_self=yes
23500
23501fi
23502
23503   ;;
23504
23505  *)
23506    echo "$as_me:$LINENO: checking for shl_load" >&5
23507echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23508if test "${ac_cv_func_shl_load+set}" = set; then
23509  echo $ECHO_N "(cached) $ECHO_C" >&6
23510else
23511  cat >conftest.$ac_ext <<_ACEOF
23512/* confdefs.h.  */
23513_ACEOF
23514cat confdefs.h >>conftest.$ac_ext
23515cat >>conftest.$ac_ext <<_ACEOF
23516/* end confdefs.h.  */
23517/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23518   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23519#define shl_load innocuous_shl_load
23520
23521/* System header to define __stub macros and hopefully few prototypes,
23522    which can conflict with char shl_load (); below.
23523    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23524    <limits.h> exists even on freestanding compilers.  */
23525
23526#ifdef __STDC__
23527# include <limits.h>
23528#else
23529# include <assert.h>
23530#endif
23531
23532#undef shl_load
23533
23534/* Override any gcc2 internal prototype to avoid an error.  */
23535#ifdef __cplusplus
23536extern "C"
23537{
23538#endif
23539/* We use char because int might match the return type of a gcc2
23540   builtin and then its argument prototype would still apply.  */
23541char shl_load ();
23542/* The GNU C library defines this for functions which it implements
23543    to always fail with ENOSYS.  Some functions are actually named
23544    something starting with __ and the normal name is an alias.  */
23545#if defined (__stub_shl_load) || defined (__stub___shl_load)
23546choke me
23547#else
23548char (*f) () = shl_load;
23549#endif
23550#ifdef __cplusplus
23551}
23552#endif
23553
23554int
23555main ()
23556{
23557return f != shl_load;
23558  ;
23559  return 0;
23560}
23561_ACEOF
23562rm -f conftest.$ac_objext conftest$ac_exeext
23563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23564  (eval $ac_link) 2>conftest.er1
23565  ac_status=$?
23566  grep -v '^ *+' conftest.er1 >conftest.err
23567  rm -f conftest.er1
23568  cat conftest.err >&5
23569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570  (exit $ac_status); } &&
23571	 { ac_try='test -z "$ac_c_werror_flag"
23572			 || test ! -s conftest.err'
23573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574  (eval $ac_try) 2>&5
23575  ac_status=$?
23576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577  (exit $ac_status); }; } &&
23578	 { ac_try='test -s conftest$ac_exeext'
23579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580  (eval $ac_try) 2>&5
23581  ac_status=$?
23582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583  (exit $ac_status); }; }; then
23584  ac_cv_func_shl_load=yes
23585else
23586  echo "$as_me: failed program was:" >&5
23587sed 's/^/| /' conftest.$ac_ext >&5
23588
23589ac_cv_func_shl_load=no
23590fi
23591rm -f conftest.err conftest.$ac_objext \
23592      conftest$ac_exeext conftest.$ac_ext
23593fi
23594echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23595echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23596if test $ac_cv_func_shl_load = yes; then
23597  lt_cv_dlopen="shl_load"
23598else
23599  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23600echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23601if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23602  echo $ECHO_N "(cached) $ECHO_C" >&6
23603else
23604  ac_check_lib_save_LIBS=$LIBS
23605LIBS="-ldld  $LIBS"
23606cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h.  */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h.  */
23612
23613/* Override any gcc2 internal prototype to avoid an error.  */
23614#ifdef __cplusplus
23615extern "C"
23616#endif
23617/* We use char because int might match the return type of a gcc2
23618   builtin and then its argument prototype would still apply.  */
23619char shl_load ();
23620int
23621main ()
23622{
23623shl_load ();
23624  ;
23625  return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext conftest$ac_exeext
23629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630  (eval $ac_link) 2>conftest.er1
23631  ac_status=$?
23632  grep -v '^ *+' conftest.er1 >conftest.err
23633  rm -f conftest.er1
23634  cat conftest.err >&5
23635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636  (exit $ac_status); } &&
23637	 { ac_try='test -z "$ac_c_werror_flag"
23638			 || test ! -s conftest.err'
23639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640  (eval $ac_try) 2>&5
23641  ac_status=$?
23642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643  (exit $ac_status); }; } &&
23644	 { ac_try='test -s conftest$ac_exeext'
23645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646  (eval $ac_try) 2>&5
23647  ac_status=$?
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); }; }; then
23650  ac_cv_lib_dld_shl_load=yes
23651else
23652  echo "$as_me: failed program was:" >&5
23653sed 's/^/| /' conftest.$ac_ext >&5
23654
23655ac_cv_lib_dld_shl_load=no
23656fi
23657rm -f conftest.err conftest.$ac_objext \
23658      conftest$ac_exeext conftest.$ac_ext
23659LIBS=$ac_check_lib_save_LIBS
23660fi
23661echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23662echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23663if test $ac_cv_lib_dld_shl_load = yes; then
23664  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23665else
23666  echo "$as_me:$LINENO: checking for dlopen" >&5
23667echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23668if test "${ac_cv_func_dlopen+set}" = set; then
23669  echo $ECHO_N "(cached) $ECHO_C" >&6
23670else
23671  cat >conftest.$ac_ext <<_ACEOF
23672/* confdefs.h.  */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h.  */
23677/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23678   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23679#define dlopen innocuous_dlopen
23680
23681/* System header to define __stub macros and hopefully few prototypes,
23682    which can conflict with char dlopen (); below.
23683    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23684    <limits.h> exists even on freestanding compilers.  */
23685
23686#ifdef __STDC__
23687# include <limits.h>
23688#else
23689# include <assert.h>
23690#endif
23691
23692#undef dlopen
23693
23694/* Override any gcc2 internal prototype to avoid an error.  */
23695#ifdef __cplusplus
23696extern "C"
23697{
23698#endif
23699/* We use char because int might match the return type of a gcc2
23700   builtin and then its argument prototype would still apply.  */
23701char dlopen ();
23702/* The GNU C library defines this for functions which it implements
23703    to always fail with ENOSYS.  Some functions are actually named
23704    something starting with __ and the normal name is an alias.  */
23705#if defined (__stub_dlopen) || defined (__stub___dlopen)
23706choke me
23707#else
23708char (*f) () = dlopen;
23709#endif
23710#ifdef __cplusplus
23711}
23712#endif
23713
23714int
23715main ()
23716{
23717return f != dlopen;
23718  ;
23719  return 0;
23720}
23721_ACEOF
23722rm -f conftest.$ac_objext conftest$ac_exeext
23723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724  (eval $ac_link) 2>conftest.er1
23725  ac_status=$?
23726  grep -v '^ *+' conftest.er1 >conftest.err
23727  rm -f conftest.er1
23728  cat conftest.err >&5
23729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730  (exit $ac_status); } &&
23731	 { ac_try='test -z "$ac_c_werror_flag"
23732			 || test ! -s conftest.err'
23733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734  (eval $ac_try) 2>&5
23735  ac_status=$?
23736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737  (exit $ac_status); }; } &&
23738	 { ac_try='test -s conftest$ac_exeext'
23739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740  (eval $ac_try) 2>&5
23741  ac_status=$?
23742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743  (exit $ac_status); }; }; then
23744  ac_cv_func_dlopen=yes
23745else
23746  echo "$as_me: failed program was:" >&5
23747sed 's/^/| /' conftest.$ac_ext >&5
23748
23749ac_cv_func_dlopen=no
23750fi
23751rm -f conftest.err conftest.$ac_objext \
23752      conftest$ac_exeext conftest.$ac_ext
23753fi
23754echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23755echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23756if test $ac_cv_func_dlopen = yes; then
23757  lt_cv_dlopen="dlopen"
23758else
23759  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23760echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23761if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23762  echo $ECHO_N "(cached) $ECHO_C" >&6
23763else
23764  ac_check_lib_save_LIBS=$LIBS
23765LIBS="-ldl  $LIBS"
23766cat >conftest.$ac_ext <<_ACEOF
23767/* confdefs.h.  */
23768_ACEOF
23769cat confdefs.h >>conftest.$ac_ext
23770cat >>conftest.$ac_ext <<_ACEOF
23771/* end confdefs.h.  */
23772
23773/* Override any gcc2 internal prototype to avoid an error.  */
23774#ifdef __cplusplus
23775extern "C"
23776#endif
23777/* We use char because int might match the return type of a gcc2
23778   builtin and then its argument prototype would still apply.  */
23779char dlopen ();
23780int
23781main ()
23782{
23783dlopen ();
23784  ;
23785  return 0;
23786}
23787_ACEOF
23788rm -f conftest.$ac_objext conftest$ac_exeext
23789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23790  (eval $ac_link) 2>conftest.er1
23791  ac_status=$?
23792  grep -v '^ *+' conftest.er1 >conftest.err
23793  rm -f conftest.er1
23794  cat conftest.err >&5
23795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796  (exit $ac_status); } &&
23797	 { ac_try='test -z "$ac_c_werror_flag"
23798			 || test ! -s conftest.err'
23799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800  (eval $ac_try) 2>&5
23801  ac_status=$?
23802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803  (exit $ac_status); }; } &&
23804	 { ac_try='test -s conftest$ac_exeext'
23805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806  (eval $ac_try) 2>&5
23807  ac_status=$?
23808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809  (exit $ac_status); }; }; then
23810  ac_cv_lib_dl_dlopen=yes
23811else
23812  echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815ac_cv_lib_dl_dlopen=no
23816fi
23817rm -f conftest.err conftest.$ac_objext \
23818      conftest$ac_exeext conftest.$ac_ext
23819LIBS=$ac_check_lib_save_LIBS
23820fi
23821echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23822echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23823if test $ac_cv_lib_dl_dlopen = yes; then
23824  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23825else
23826  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23827echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23828if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23829  echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831  ac_check_lib_save_LIBS=$LIBS
23832LIBS="-lsvld  $LIBS"
23833cat >conftest.$ac_ext <<_ACEOF
23834/* confdefs.h.  */
23835_ACEOF
23836cat confdefs.h >>conftest.$ac_ext
23837cat >>conftest.$ac_ext <<_ACEOF
23838/* end confdefs.h.  */
23839
23840/* Override any gcc2 internal prototype to avoid an error.  */
23841#ifdef __cplusplus
23842extern "C"
23843#endif
23844/* We use char because int might match the return type of a gcc2
23845   builtin and then its argument prototype would still apply.  */
23846char dlopen ();
23847int
23848main ()
23849{
23850dlopen ();
23851  ;
23852  return 0;
23853}
23854_ACEOF
23855rm -f conftest.$ac_objext conftest$ac_exeext
23856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857  (eval $ac_link) 2>conftest.er1
23858  ac_status=$?
23859  grep -v '^ *+' conftest.er1 >conftest.err
23860  rm -f conftest.er1
23861  cat conftest.err >&5
23862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863  (exit $ac_status); } &&
23864	 { ac_try='test -z "$ac_c_werror_flag"
23865			 || test ! -s conftest.err'
23866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867  (eval $ac_try) 2>&5
23868  ac_status=$?
23869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870  (exit $ac_status); }; } &&
23871	 { ac_try='test -s conftest$ac_exeext'
23872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873  (eval $ac_try) 2>&5
23874  ac_status=$?
23875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876  (exit $ac_status); }; }; then
23877  ac_cv_lib_svld_dlopen=yes
23878else
23879  echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882ac_cv_lib_svld_dlopen=no
23883fi
23884rm -f conftest.err conftest.$ac_objext \
23885      conftest$ac_exeext conftest.$ac_ext
23886LIBS=$ac_check_lib_save_LIBS
23887fi
23888echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23889echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23890if test $ac_cv_lib_svld_dlopen = yes; then
23891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23892else
23893  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23894echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23895if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23896  echo $ECHO_N "(cached) $ECHO_C" >&6
23897else
23898  ac_check_lib_save_LIBS=$LIBS
23899LIBS="-ldld  $LIBS"
23900cat >conftest.$ac_ext <<_ACEOF
23901/* confdefs.h.  */
23902_ACEOF
23903cat confdefs.h >>conftest.$ac_ext
23904cat >>conftest.$ac_ext <<_ACEOF
23905/* end confdefs.h.  */
23906
23907/* Override any gcc2 internal prototype to avoid an error.  */
23908#ifdef __cplusplus
23909extern "C"
23910#endif
23911/* We use char because int might match the return type of a gcc2
23912   builtin and then its argument prototype would still apply.  */
23913char dld_link ();
23914int
23915main ()
23916{
23917dld_link ();
23918  ;
23919  return 0;
23920}
23921_ACEOF
23922rm -f conftest.$ac_objext conftest$ac_exeext
23923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924  (eval $ac_link) 2>conftest.er1
23925  ac_status=$?
23926  grep -v '^ *+' conftest.er1 >conftest.err
23927  rm -f conftest.er1
23928  cat conftest.err >&5
23929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930  (exit $ac_status); } &&
23931	 { ac_try='test -z "$ac_c_werror_flag"
23932			 || test ! -s conftest.err'
23933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934  (eval $ac_try) 2>&5
23935  ac_status=$?
23936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937  (exit $ac_status); }; } &&
23938	 { ac_try='test -s conftest$ac_exeext'
23939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940  (eval $ac_try) 2>&5
23941  ac_status=$?
23942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943  (exit $ac_status); }; }; then
23944  ac_cv_lib_dld_dld_link=yes
23945else
23946  echo "$as_me: failed program was:" >&5
23947sed 's/^/| /' conftest.$ac_ext >&5
23948
23949ac_cv_lib_dld_dld_link=no
23950fi
23951rm -f conftest.err conftest.$ac_objext \
23952      conftest$ac_exeext conftest.$ac_ext
23953LIBS=$ac_check_lib_save_LIBS
23954fi
23955echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23956echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23957if test $ac_cv_lib_dld_dld_link = yes; then
23958  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23959fi
23960
23961
23962fi
23963
23964
23965fi
23966
23967
23968fi
23969
23970
23971fi
23972
23973
23974fi
23975
23976    ;;
23977  esac
23978
23979  if test "x$lt_cv_dlopen" != xno; then
23980    enable_dlopen=yes
23981  else
23982    enable_dlopen=no
23983  fi
23984
23985  case $lt_cv_dlopen in
23986  dlopen)
23987    save_CPPFLAGS="$CPPFLAGS"
23988    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23989
23990    save_LDFLAGS="$LDFLAGS"
23991    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23992
23993    save_LIBS="$LIBS"
23994    LIBS="$lt_cv_dlopen_libs $LIBS"
23995
23996    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23997echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23998if test "${lt_cv_dlopen_self+set}" = set; then
23999  echo $ECHO_N "(cached) $ECHO_C" >&6
24000else
24001  	  if test "$cross_compiling" = yes; then :
24002  lt_cv_dlopen_self=cross
24003else
24004  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24005  lt_status=$lt_dlunknown
24006  cat > conftest.$ac_ext <<EOF
24007#line 24007 "configure"
24008#include "confdefs.h"
24009
24010#if HAVE_DLFCN_H
24011#include <dlfcn.h>
24012#endif
24013
24014#include <stdio.h>
24015
24016#ifdef RTLD_GLOBAL
24017#  define LT_DLGLOBAL		RTLD_GLOBAL
24018#else
24019#  ifdef DL_GLOBAL
24020#    define LT_DLGLOBAL		DL_GLOBAL
24021#  else
24022#    define LT_DLGLOBAL		0
24023#  endif
24024#endif
24025
24026/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24027   find out it does not work in some platform. */
24028#ifndef LT_DLLAZY_OR_NOW
24029#  ifdef RTLD_LAZY
24030#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
24031#  else
24032#    ifdef DL_LAZY
24033#      define LT_DLLAZY_OR_NOW		DL_LAZY
24034#    else
24035#      ifdef RTLD_NOW
24036#        define LT_DLLAZY_OR_NOW	RTLD_NOW
24037#      else
24038#        ifdef DL_NOW
24039#          define LT_DLLAZY_OR_NOW	DL_NOW
24040#        else
24041#          define LT_DLLAZY_OR_NOW	0
24042#        endif
24043#      endif
24044#    endif
24045#  endif
24046#endif
24047
24048#ifdef __cplusplus
24049extern "C" void exit (int);
24050#endif
24051
24052void fnord() { int i=42;}
24053int main ()
24054{
24055  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24056  int status = $lt_dlunknown;
24057
24058  if (self)
24059    {
24060      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24061      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24062      /* dlclose (self); */
24063    }
24064
24065    exit (status);
24066}
24067EOF
24068  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24069  (eval $ac_link) 2>&5
24070  ac_status=$?
24071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24073    (./conftest; exit; ) 2>/dev/null
24074    lt_status=$?
24075    case x$lt_status in
24076      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24077      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24078      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24079    esac
24080  else :
24081    # compilation failed
24082    lt_cv_dlopen_self=no
24083  fi
24084fi
24085rm -fr conftest*
24086
24087
24088fi
24089echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24090echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24091
24092    if test "x$lt_cv_dlopen_self" = xyes; then
24093      LDFLAGS="$LDFLAGS $link_static_flag"
24094      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24095echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24096if test "${lt_cv_dlopen_self_static+set}" = set; then
24097  echo $ECHO_N "(cached) $ECHO_C" >&6
24098else
24099  	  if test "$cross_compiling" = yes; then :
24100  lt_cv_dlopen_self_static=cross
24101else
24102  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24103  lt_status=$lt_dlunknown
24104  cat > conftest.$ac_ext <<EOF
24105#line 24105 "configure"
24106#include "confdefs.h"
24107
24108#if HAVE_DLFCN_H
24109#include <dlfcn.h>
24110#endif
24111
24112#include <stdio.h>
24113
24114#ifdef RTLD_GLOBAL
24115#  define LT_DLGLOBAL		RTLD_GLOBAL
24116#else
24117#  ifdef DL_GLOBAL
24118#    define LT_DLGLOBAL		DL_GLOBAL
24119#  else
24120#    define LT_DLGLOBAL		0
24121#  endif
24122#endif
24123
24124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24125   find out it does not work in some platform. */
24126#ifndef LT_DLLAZY_OR_NOW
24127#  ifdef RTLD_LAZY
24128#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
24129#  else
24130#    ifdef DL_LAZY
24131#      define LT_DLLAZY_OR_NOW		DL_LAZY
24132#    else
24133#      ifdef RTLD_NOW
24134#        define LT_DLLAZY_OR_NOW	RTLD_NOW
24135#      else
24136#        ifdef DL_NOW
24137#          define LT_DLLAZY_OR_NOW	DL_NOW
24138#        else
24139#          define LT_DLLAZY_OR_NOW	0
24140#        endif
24141#      endif
24142#    endif
24143#  endif
24144#endif
24145
24146#ifdef __cplusplus
24147extern "C" void exit (int);
24148#endif
24149
24150void fnord() { int i=42;}
24151int main ()
24152{
24153  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24154  int status = $lt_dlunknown;
24155
24156  if (self)
24157    {
24158      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24159      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24160      /* dlclose (self); */
24161    }
24162
24163    exit (status);
24164}
24165EOF
24166  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167  (eval $ac_link) 2>&5
24168  ac_status=$?
24169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24171    (./conftest; exit; ) 2>/dev/null
24172    lt_status=$?
24173    case x$lt_status in
24174      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24175      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24176      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24177    esac
24178  else :
24179    # compilation failed
24180    lt_cv_dlopen_self_static=no
24181  fi
24182fi
24183rm -fr conftest*
24184
24185
24186fi
24187echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24188echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24189    fi
24190
24191    CPPFLAGS="$save_CPPFLAGS"
24192    LDFLAGS="$save_LDFLAGS"
24193    LIBS="$save_LIBS"
24194    ;;
24195  esac
24196
24197  case $lt_cv_dlopen_self in
24198  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24199  *) enable_dlopen_self=unknown ;;
24200  esac
24201
24202  case $lt_cv_dlopen_self_static in
24203  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24204  *) enable_dlopen_self_static=unknown ;;
24205  esac
24206fi
24207
24208
24209# The else clause should only fire when bootstrapping the
24210# libtool distribution, otherwise you forgot to ship ltmain.sh
24211# with your package, and you will get complaints that there are
24212# no rules to generate ltmain.sh.
24213if test -f "$ltmain"; then
24214  # See if we are running on zsh, and set the options which allow our commands through
24215  # without removal of \ escapes.
24216  if test -n "${ZSH_VERSION+set}" ; then
24217    setopt NO_GLOB_SUBST
24218  fi
24219  # Now quote all the things that may contain metacharacters while being
24220  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24221  # variables and quote the copies for generation of the libtool script.
24222  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24223    SED SHELL STRIP \
24224    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24225    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24226    deplibs_check_method reload_flag reload_cmds need_locks \
24227    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24228    lt_cv_sys_global_symbol_to_c_name_address \
24229    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24230    old_postinstall_cmds old_postuninstall_cmds \
24231    compiler_GCJ \
24232    CC_GCJ \
24233    LD_GCJ \
24234    lt_prog_compiler_wl_GCJ \
24235    lt_prog_compiler_pic_GCJ \
24236    lt_prog_compiler_static_GCJ \
24237    lt_prog_compiler_no_builtin_flag_GCJ \
24238    export_dynamic_flag_spec_GCJ \
24239    thread_safe_flag_spec_GCJ \
24240    whole_archive_flag_spec_GCJ \
24241    enable_shared_with_static_runtimes_GCJ \
24242    old_archive_cmds_GCJ \
24243    old_archive_from_new_cmds_GCJ \
24244    predep_objects_GCJ \
24245    postdep_objects_GCJ \
24246    predeps_GCJ \
24247    postdeps_GCJ \
24248    compiler_lib_search_path_GCJ \
24249    archive_cmds_GCJ \
24250    archive_expsym_cmds_GCJ \
24251    postinstall_cmds_GCJ \
24252    postuninstall_cmds_GCJ \
24253    old_archive_from_expsyms_cmds_GCJ \
24254    allow_undefined_flag_GCJ \
24255    no_undefined_flag_GCJ \
24256    export_symbols_cmds_GCJ \
24257    hardcode_libdir_flag_spec_GCJ \
24258    hardcode_libdir_flag_spec_ld_GCJ \
24259    hardcode_libdir_separator_GCJ \
24260    hardcode_automatic_GCJ \
24261    module_cmds_GCJ \
24262    module_expsym_cmds_GCJ \
24263    lt_cv_prog_compiler_c_o_GCJ \
24264    exclude_expsyms_GCJ \
24265    include_expsyms_GCJ; do
24266
24267    case $var in
24268    old_archive_cmds_GCJ | \
24269    old_archive_from_new_cmds_GCJ | \
24270    archive_cmds_GCJ | \
24271    archive_expsym_cmds_GCJ | \
24272    module_cmds_GCJ | \
24273    module_expsym_cmds_GCJ | \
24274    old_archive_from_expsyms_cmds_GCJ | \
24275    export_symbols_cmds_GCJ | \
24276    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24277    postinstall_cmds | postuninstall_cmds | \
24278    old_postinstall_cmds | old_postuninstall_cmds | \
24279    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24280      # Double-quote double-evaled strings.
24281      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24282      ;;
24283    *)
24284      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24285      ;;
24286    esac
24287  done
24288
24289  case $lt_echo in
24290  *'\$0 --fallback-echo"')
24291    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24292    ;;
24293  esac
24294
24295cfgfile="$ofile"
24296
24297  cat <<__EOF__ >> "$cfgfile"
24298# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24299
24300# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24301
24302# Shell to use when invoking shell scripts.
24303SHELL=$lt_SHELL
24304
24305# Whether or not to build shared libraries.
24306build_libtool_libs=$enable_shared
24307
24308# Whether or not to build static libraries.
24309build_old_libs=$enable_static
24310
24311# Whether or not to add -lc for building shared libraries.
24312build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24313
24314# Whether or not to disallow shared libs when runtime libs are static
24315allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24316
24317# Whether or not to optimize for fast installation.
24318fast_install=$enable_fast_install
24319
24320# The host system.
24321host_alias=$host_alias
24322host=$host
24323
24324# An echo program that does not interpret backslashes.
24325echo=$lt_echo
24326
24327# The archiver.
24328AR=$lt_AR
24329AR_FLAGS=$lt_AR_FLAGS
24330
24331# A C compiler.
24332LTCC=$lt_LTCC
24333
24334# A language-specific compiler.
24335CC=$lt_compiler_GCJ
24336
24337# Is the compiler the GNU C compiler?
24338with_gcc=$GCC_GCJ
24339
24340# An ERE matcher.
24341EGREP=$lt_EGREP
24342
24343# The linker used to build libraries.
24344LD=$lt_LD_GCJ
24345
24346# Whether we need hard or soft links.
24347LN_S=$lt_LN_S
24348
24349# A BSD-compatible nm program.
24350NM=$lt_NM
24351
24352# A symbol stripping program
24353STRIP=$lt_STRIP
24354
24355# Used to examine libraries when file_magic_cmd begins "file"
24356MAGIC_CMD=$MAGIC_CMD
24357
24358# Used on cygwin: DLL creation program.
24359DLLTOOL="$DLLTOOL"
24360
24361# Used on cygwin: object dumper.
24362OBJDUMP="$OBJDUMP"
24363
24364# Used on cygwin: assembler.
24365AS="$AS"
24366
24367# The name of the directory that contains temporary libtool files.
24368objdir=$objdir
24369
24370# How to create reloadable object files.
24371reload_flag=$lt_reload_flag
24372reload_cmds=$lt_reload_cmds
24373
24374# How to pass a linker flag through the compiler.
24375wl=$lt_lt_prog_compiler_wl_GCJ
24376
24377# Object file suffix (normally "o").
24378objext="$ac_objext"
24379
24380# Old archive suffix (normally "a").
24381libext="$libext"
24382
24383# Shared library suffix (normally ".so").
24384shrext_cmds='$shrext_cmds'
24385
24386# Executable file suffix (normally "").
24387exeext="$exeext"
24388
24389# Additional compiler flags for building library objects.
24390pic_flag=$lt_lt_prog_compiler_pic_GCJ
24391pic_mode=$pic_mode
24392
24393# What is the maximum length of a command?
24394max_cmd_len=$lt_cv_sys_max_cmd_len
24395
24396# Does compiler simultaneously support -c and -o options?
24397compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24398
24399# Must we lock files when doing compilation ?
24400need_locks=$lt_need_locks
24401
24402# Do we need the lib prefix for modules?
24403need_lib_prefix=$need_lib_prefix
24404
24405# Do we need a version for libraries?
24406need_version=$need_version
24407
24408# Whether dlopen is supported.
24409dlopen_support=$enable_dlopen
24410
24411# Whether dlopen of programs is supported.
24412dlopen_self=$enable_dlopen_self
24413
24414# Whether dlopen of statically linked programs is supported.
24415dlopen_self_static=$enable_dlopen_self_static
24416
24417# Compiler flag to prevent dynamic linking.
24418link_static_flag=$lt_lt_prog_compiler_static_GCJ
24419
24420# Compiler flag to turn off builtin functions.
24421no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24422
24423# Compiler flag to allow reflexive dlopens.
24424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24425
24426# Compiler flag to generate shared objects directly from archives.
24427whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24428
24429# Compiler flag to generate thread-safe objects.
24430thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24431
24432# Library versioning type.
24433version_type=$version_type
24434
24435# Format of library name prefix.
24436libname_spec=$lt_libname_spec
24437
24438# List of archive names.  First name is the real one, the rest are links.
24439# The last name is the one that the linker finds with -lNAME.
24440library_names_spec=$lt_library_names_spec
24441
24442# The coded name of the library, if different from the real name.
24443soname_spec=$lt_soname_spec
24444
24445# Commands used to build and install an old-style archive.
24446RANLIB=$lt_RANLIB
24447old_archive_cmds=$lt_old_archive_cmds_GCJ
24448old_postinstall_cmds=$lt_old_postinstall_cmds
24449old_postuninstall_cmds=$lt_old_postuninstall_cmds
24450
24451# Create an old-style archive from a shared archive.
24452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24453
24454# Create a temporary old-style archive to link instead of a shared archive.
24455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24456
24457# Commands used to build and install a shared archive.
24458archive_cmds=$lt_archive_cmds_GCJ
24459archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24460postinstall_cmds=$lt_postinstall_cmds
24461postuninstall_cmds=$lt_postuninstall_cmds
24462
24463# Commands used to build a loadable module (assumed same as above if empty)
24464module_cmds=$lt_module_cmds_GCJ
24465module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24466
24467# Commands to strip libraries.
24468old_striplib=$lt_old_striplib
24469striplib=$lt_striplib
24470
24471# Dependencies to place before the objects being linked to create a
24472# shared library.
24473predep_objects=$lt_predep_objects_GCJ
24474
24475# Dependencies to place after the objects being linked to create a
24476# shared library.
24477postdep_objects=$lt_postdep_objects_GCJ
24478
24479# Dependencies to place before the objects being linked to create a
24480# shared library.
24481predeps=$lt_predeps_GCJ
24482
24483# Dependencies to place after the objects being linked to create a
24484# shared library.
24485postdeps=$lt_postdeps_GCJ
24486
24487# The library search path used internally by the compiler when linking
24488# a shared library.
24489compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24490
24491# Method to check whether dependent libraries are shared objects.
24492deplibs_check_method=$lt_deplibs_check_method
24493
24494# Command to use when deplibs_check_method == file_magic.
24495file_magic_cmd=$lt_file_magic_cmd
24496
24497# Flag that allows shared libraries with undefined symbols to be built.
24498allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24499
24500# Flag that forces no undefined symbols.
24501no_undefined_flag=$lt_no_undefined_flag_GCJ
24502
24503# Commands used to finish a libtool library installation in a directory.
24504finish_cmds=$lt_finish_cmds
24505
24506# Same as above, but a single script fragment to be evaled but not shown.
24507finish_eval=$lt_finish_eval
24508
24509# Take the output of nm and produce a listing of raw symbols and C names.
24510global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24511
24512# Transform the output of nm in a proper C declaration
24513global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24514
24515# Transform the output of nm in a C name address pair
24516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24517
24518# This is the shared library runtime path variable.
24519runpath_var=$runpath_var
24520
24521# This is the shared library path variable.
24522shlibpath_var=$shlibpath_var
24523
24524# Is shlibpath searched before the hard-coded library search path?
24525shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24526
24527# How to hardcode a shared library path into an executable.
24528hardcode_action=$hardcode_action_GCJ
24529
24530# Whether we should hardcode library paths into libraries.
24531hardcode_into_libs=$hardcode_into_libs
24532
24533# Flag to hardcode \$libdir into a binary during linking.
24534# This must work even if \$libdir does not exist.
24535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24536
24537# If ld is used when linking, flag to hardcode \$libdir into
24538# a binary during linking. This must work even if \$libdir does
24539# not exist.
24540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24541
24542# Whether we need a single -rpath flag with a separated argument.
24543hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24544
24545# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24546# resulting binary.
24547hardcode_direct=$hardcode_direct_GCJ
24548
24549# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24550# resulting binary.
24551hardcode_minus_L=$hardcode_minus_L_GCJ
24552
24553# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24554# the resulting binary.
24555hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24556
24557# Set to yes if building a shared library automatically hardcodes DIR into the library
24558# and all subsequent libraries and executables linked against it.
24559hardcode_automatic=$hardcode_automatic_GCJ
24560
24561# Variables whose values should be saved in libtool wrapper scripts and
24562# restored at relink time.
24563variables_saved_for_relink="$variables_saved_for_relink"
24564
24565# Whether libtool must link a program against all its dependency libraries.
24566link_all_deplibs=$link_all_deplibs_GCJ
24567
24568# Compile-time system search path for libraries
24569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24570
24571# Run-time system search path for libraries
24572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24573
24574# Fix the shell variable \$srcfile for the compiler.
24575fix_srcfile_path="$fix_srcfile_path_GCJ"
24576
24577# Set to yes if exported symbols are required.
24578always_export_symbols=$always_export_symbols_GCJ
24579
24580# The commands to list exported symbols.
24581export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24582
24583# The commands to extract the exported symbol list from a shared archive.
24584extract_expsyms_cmds=$lt_extract_expsyms_cmds
24585
24586# Symbols that should not be listed in the preloaded symbols.
24587exclude_expsyms=$lt_exclude_expsyms_GCJ
24588
24589# Symbols that must always be exported.
24590include_expsyms=$lt_include_expsyms_GCJ
24591
24592# ### END LIBTOOL TAG CONFIG: $tagname
24593
24594__EOF__
24595
24596
24597else
24598  # If there is no Makefile yet, we rely on a make rule to execute
24599  # `config.status --recheck' to rerun these tests and create the
24600  # libtool script then.
24601  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24602  if test -f "$ltmain_in"; then
24603    test -f Makefile && make "$ltmain"
24604  fi
24605fi
24606
24607
24608ac_ext=c
24609ac_cpp='$CPP $CPPFLAGS'
24610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612ac_compiler_gnu=$ac_cv_c_compiler_gnu
24613
24614CC="$lt_save_CC"
24615
24616	else
24617	  tagname=""
24618	fi
24619	;;
24620
24621      RC)
24622	ac_ext=c
24623ac_cpp='$CPP $CPPFLAGS'
24624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24626ac_compiler_gnu=$ac_cv_c_compiler_gnu
24627
24628
24629# Source file extension for RC test sources.
24630ac_ext=rc
24631
24632# Object file extension for compiled RC test sources.
24633objext=o
24634objext_RC=$objext
24635
24636# Code to be used in simple compile tests
24637lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24638
24639# Code to be used in simple link tests
24640lt_simple_link_test_code="$lt_simple_compile_test_code"
24641
24642# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24643
24644# If no C compiler was specified, use CC.
24645LTCC=${LTCC-"$CC"}
24646
24647# Allow CC to be a program name with arguments.
24648compiler=$CC
24649
24650
24651# Allow CC to be a program name with arguments.
24652lt_save_CC="$CC"
24653CC=${RC-"windres"}
24654compiler=$CC
24655compiler_RC=$CC
24656lt_cv_prog_compiler_c_o_RC=yes
24657
24658# The else clause should only fire when bootstrapping the
24659# libtool distribution, otherwise you forgot to ship ltmain.sh
24660# with your package, and you will get complaints that there are
24661# no rules to generate ltmain.sh.
24662if test -f "$ltmain"; then
24663  # See if we are running on zsh, and set the options which allow our commands through
24664  # without removal of \ escapes.
24665  if test -n "${ZSH_VERSION+set}" ; then
24666    setopt NO_GLOB_SUBST
24667  fi
24668  # Now quote all the things that may contain metacharacters while being
24669  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24670  # variables and quote the copies for generation of the libtool script.
24671  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24672    SED SHELL STRIP \
24673    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24674    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24675    deplibs_check_method reload_flag reload_cmds need_locks \
24676    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24677    lt_cv_sys_global_symbol_to_c_name_address \
24678    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24679    old_postinstall_cmds old_postuninstall_cmds \
24680    compiler_RC \
24681    CC_RC \
24682    LD_RC \
24683    lt_prog_compiler_wl_RC \
24684    lt_prog_compiler_pic_RC \
24685    lt_prog_compiler_static_RC \
24686    lt_prog_compiler_no_builtin_flag_RC \
24687    export_dynamic_flag_spec_RC \
24688    thread_safe_flag_spec_RC \
24689    whole_archive_flag_spec_RC \
24690    enable_shared_with_static_runtimes_RC \
24691    old_archive_cmds_RC \
24692    old_archive_from_new_cmds_RC \
24693    predep_objects_RC \
24694    postdep_objects_RC \
24695    predeps_RC \
24696    postdeps_RC \
24697    compiler_lib_search_path_RC \
24698    archive_cmds_RC \
24699    archive_expsym_cmds_RC \
24700    postinstall_cmds_RC \
24701    postuninstall_cmds_RC \
24702    old_archive_from_expsyms_cmds_RC \
24703    allow_undefined_flag_RC \
24704    no_undefined_flag_RC \
24705    export_symbols_cmds_RC \
24706    hardcode_libdir_flag_spec_RC \
24707    hardcode_libdir_flag_spec_ld_RC \
24708    hardcode_libdir_separator_RC \
24709    hardcode_automatic_RC \
24710    module_cmds_RC \
24711    module_expsym_cmds_RC \
24712    lt_cv_prog_compiler_c_o_RC \
24713    exclude_expsyms_RC \
24714    include_expsyms_RC; do
24715
24716    case $var in
24717    old_archive_cmds_RC | \
24718    old_archive_from_new_cmds_RC | \
24719    archive_cmds_RC | \
24720    archive_expsym_cmds_RC | \
24721    module_cmds_RC | \
24722    module_expsym_cmds_RC | \
24723    old_archive_from_expsyms_cmds_RC | \
24724    export_symbols_cmds_RC | \
24725    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24726    postinstall_cmds | postuninstall_cmds | \
24727    old_postinstall_cmds | old_postuninstall_cmds | \
24728    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24729      # Double-quote double-evaled strings.
24730      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24731      ;;
24732    *)
24733      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24734      ;;
24735    esac
24736  done
24737
24738  case $lt_echo in
24739  *'\$0 --fallback-echo"')
24740    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24741    ;;
24742  esac
24743
24744cfgfile="$ofile"
24745
24746  cat <<__EOF__ >> "$cfgfile"
24747# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24748
24749# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24750
24751# Shell to use when invoking shell scripts.
24752SHELL=$lt_SHELL
24753
24754# Whether or not to build shared libraries.
24755build_libtool_libs=$enable_shared
24756
24757# Whether or not to build static libraries.
24758build_old_libs=$enable_static
24759
24760# Whether or not to add -lc for building shared libraries.
24761build_libtool_need_lc=$archive_cmds_need_lc_RC
24762
24763# Whether or not to disallow shared libs when runtime libs are static
24764allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24765
24766# Whether or not to optimize for fast installation.
24767fast_install=$enable_fast_install
24768
24769# The host system.
24770host_alias=$host_alias
24771host=$host
24772
24773# An echo program that does not interpret backslashes.
24774echo=$lt_echo
24775
24776# The archiver.
24777AR=$lt_AR
24778AR_FLAGS=$lt_AR_FLAGS
24779
24780# A C compiler.
24781LTCC=$lt_LTCC
24782
24783# A language-specific compiler.
24784CC=$lt_compiler_RC
24785
24786# Is the compiler the GNU C compiler?
24787with_gcc=$GCC_RC
24788
24789# An ERE matcher.
24790EGREP=$lt_EGREP
24791
24792# The linker used to build libraries.
24793LD=$lt_LD_RC
24794
24795# Whether we need hard or soft links.
24796LN_S=$lt_LN_S
24797
24798# A BSD-compatible nm program.
24799NM=$lt_NM
24800
24801# A symbol stripping program
24802STRIP=$lt_STRIP
24803
24804# Used to examine libraries when file_magic_cmd begins "file"
24805MAGIC_CMD=$MAGIC_CMD
24806
24807# Used on cygwin: DLL creation program.
24808DLLTOOL="$DLLTOOL"
24809
24810# Used on cygwin: object dumper.
24811OBJDUMP="$OBJDUMP"
24812
24813# Used on cygwin: assembler.
24814AS="$AS"
24815
24816# The name of the directory that contains temporary libtool files.
24817objdir=$objdir
24818
24819# How to create reloadable object files.
24820reload_flag=$lt_reload_flag
24821reload_cmds=$lt_reload_cmds
24822
24823# How to pass a linker flag through the compiler.
24824wl=$lt_lt_prog_compiler_wl_RC
24825
24826# Object file suffix (normally "o").
24827objext="$ac_objext"
24828
24829# Old archive suffix (normally "a").
24830libext="$libext"
24831
24832# Shared library suffix (normally ".so").
24833shrext_cmds='$shrext_cmds'
24834
24835# Executable file suffix (normally "").
24836exeext="$exeext"
24837
24838# Additional compiler flags for building library objects.
24839pic_flag=$lt_lt_prog_compiler_pic_RC
24840pic_mode=$pic_mode
24841
24842# What is the maximum length of a command?
24843max_cmd_len=$lt_cv_sys_max_cmd_len
24844
24845# Does compiler simultaneously support -c and -o options?
24846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24847
24848# Must we lock files when doing compilation ?
24849need_locks=$lt_need_locks
24850
24851# Do we need the lib prefix for modules?
24852need_lib_prefix=$need_lib_prefix
24853
24854# Do we need a version for libraries?
24855need_version=$need_version
24856
24857# Whether dlopen is supported.
24858dlopen_support=$enable_dlopen
24859
24860# Whether dlopen of programs is supported.
24861dlopen_self=$enable_dlopen_self
24862
24863# Whether dlopen of statically linked programs is supported.
24864dlopen_self_static=$enable_dlopen_self_static
24865
24866# Compiler flag to prevent dynamic linking.
24867link_static_flag=$lt_lt_prog_compiler_static_RC
24868
24869# Compiler flag to turn off builtin functions.
24870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24871
24872# Compiler flag to allow reflexive dlopens.
24873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24874
24875# Compiler flag to generate shared objects directly from archives.
24876whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24877
24878# Compiler flag to generate thread-safe objects.
24879thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24880
24881# Library versioning type.
24882version_type=$version_type
24883
24884# Format of library name prefix.
24885libname_spec=$lt_libname_spec
24886
24887# List of archive names.  First name is the real one, the rest are links.
24888# The last name is the one that the linker finds with -lNAME.
24889library_names_spec=$lt_library_names_spec
24890
24891# The coded name of the library, if different from the real name.
24892soname_spec=$lt_soname_spec
24893
24894# Commands used to build and install an old-style archive.
24895RANLIB=$lt_RANLIB
24896old_archive_cmds=$lt_old_archive_cmds_RC
24897old_postinstall_cmds=$lt_old_postinstall_cmds
24898old_postuninstall_cmds=$lt_old_postuninstall_cmds
24899
24900# Create an old-style archive from a shared archive.
24901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24902
24903# Create a temporary old-style archive to link instead of a shared archive.
24904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24905
24906# Commands used to build and install a shared archive.
24907archive_cmds=$lt_archive_cmds_RC
24908archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24909postinstall_cmds=$lt_postinstall_cmds
24910postuninstall_cmds=$lt_postuninstall_cmds
24911
24912# Commands used to build a loadable module (assumed same as above if empty)
24913module_cmds=$lt_module_cmds_RC
24914module_expsym_cmds=$lt_module_expsym_cmds_RC
24915
24916# Commands to strip libraries.
24917old_striplib=$lt_old_striplib
24918striplib=$lt_striplib
24919
24920# Dependencies to place before the objects being linked to create a
24921# shared library.
24922predep_objects=$lt_predep_objects_RC
24923
24924# Dependencies to place after the objects being linked to create a
24925# shared library.
24926postdep_objects=$lt_postdep_objects_RC
24927
24928# Dependencies to place before the objects being linked to create a
24929# shared library.
24930predeps=$lt_predeps_RC
24931
24932# Dependencies to place after the objects being linked to create a
24933# shared library.
24934postdeps=$lt_postdeps_RC
24935
24936# The library search path used internally by the compiler when linking
24937# a shared library.
24938compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24939
24940# Method to check whether dependent libraries are shared objects.
24941deplibs_check_method=$lt_deplibs_check_method
24942
24943# Command to use when deplibs_check_method == file_magic.
24944file_magic_cmd=$lt_file_magic_cmd
24945
24946# Flag that allows shared libraries with undefined symbols to be built.
24947allow_undefined_flag=$lt_allow_undefined_flag_RC
24948
24949# Flag that forces no undefined symbols.
24950no_undefined_flag=$lt_no_undefined_flag_RC
24951
24952# Commands used to finish a libtool library installation in a directory.
24953finish_cmds=$lt_finish_cmds
24954
24955# Same as above, but a single script fragment to be evaled but not shown.
24956finish_eval=$lt_finish_eval
24957
24958# Take the output of nm and produce a listing of raw symbols and C names.
24959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24960
24961# Transform the output of nm in a proper C declaration
24962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24963
24964# Transform the output of nm in a C name address pair
24965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24966
24967# This is the shared library runtime path variable.
24968runpath_var=$runpath_var
24969
24970# This is the shared library path variable.
24971shlibpath_var=$shlibpath_var
24972
24973# Is shlibpath searched before the hard-coded library search path?
24974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24975
24976# How to hardcode a shared library path into an executable.
24977hardcode_action=$hardcode_action_RC
24978
24979# Whether we should hardcode library paths into libraries.
24980hardcode_into_libs=$hardcode_into_libs
24981
24982# Flag to hardcode \$libdir into a binary during linking.
24983# This must work even if \$libdir does not exist.
24984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24985
24986# If ld is used when linking, flag to hardcode \$libdir into
24987# a binary during linking. This must work even if \$libdir does
24988# not exist.
24989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24990
24991# Whether we need a single -rpath flag with a separated argument.
24992hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24993
24994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24995# resulting binary.
24996hardcode_direct=$hardcode_direct_RC
24997
24998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24999# resulting binary.
25000hardcode_minus_L=$hardcode_minus_L_RC
25001
25002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25003# the resulting binary.
25004hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25005
25006# Set to yes if building a shared library automatically hardcodes DIR into the library
25007# and all subsequent libraries and executables linked against it.
25008hardcode_automatic=$hardcode_automatic_RC
25009
25010# Variables whose values should be saved in libtool wrapper scripts and
25011# restored at relink time.
25012variables_saved_for_relink="$variables_saved_for_relink"
25013
25014# Whether libtool must link a program against all its dependency libraries.
25015link_all_deplibs=$link_all_deplibs_RC
25016
25017# Compile-time system search path for libraries
25018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25019
25020# Run-time system search path for libraries
25021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25022
25023# Fix the shell variable \$srcfile for the compiler.
25024fix_srcfile_path="$fix_srcfile_path_RC"
25025
25026# Set to yes if exported symbols are required.
25027always_export_symbols=$always_export_symbols_RC
25028
25029# The commands to list exported symbols.
25030export_symbols_cmds=$lt_export_symbols_cmds_RC
25031
25032# The commands to extract the exported symbol list from a shared archive.
25033extract_expsyms_cmds=$lt_extract_expsyms_cmds
25034
25035# Symbols that should not be listed in the preloaded symbols.
25036exclude_expsyms=$lt_exclude_expsyms_RC
25037
25038# Symbols that must always be exported.
25039include_expsyms=$lt_include_expsyms_RC
25040
25041# ### END LIBTOOL TAG CONFIG: $tagname
25042
25043__EOF__
25044
25045
25046else
25047  # If there is no Makefile yet, we rely on a make rule to execute
25048  # `config.status --recheck' to rerun these tests and create the
25049  # libtool script then.
25050  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25051  if test -f "$ltmain_in"; then
25052    test -f Makefile && make "$ltmain"
25053  fi
25054fi
25055
25056
25057ac_ext=c
25058ac_cpp='$CPP $CPPFLAGS'
25059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25061ac_compiler_gnu=$ac_cv_c_compiler_gnu
25062
25063CC="$lt_save_CC"
25064
25065	;;
25066
25067      *)
25068	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25069echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25070   { (exit 1); exit 1; }; }
25071	;;
25072      esac
25073
25074      # Append the new tag name to the list of available tags.
25075      if test -n "$tagname" ; then
25076      available_tags="$available_tags $tagname"
25077    fi
25078    fi
25079  done
25080  IFS="$lt_save_ifs"
25081
25082  # Now substitute the updated list of available tags.
25083  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25084    mv "${ofile}T" "$ofile"
25085    chmod +x "$ofile"
25086  else
25087    rm -f "${ofile}T"
25088    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25089echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25090   { (exit 1); exit 1; }; }
25091  fi
25092fi
25093
25094
25095
25096# This can be used to rebuild libtool when needed
25097LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25098
25099# Always use our own libtool.
25100LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25101
25102# Prevent multiple expansion
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124if test "$lt_cv_dlopen_self" = "yes" ; then
25125
25126cat >>confdefs.h <<\_ACEOF
25127#define CAN_DLOPEN_SELF 1
25128_ACEOF
25129
25130fi
25131
25132etags_version=`$ETAGS --version 2>&1`
25133case "$etags_version" in
25134	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25135	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25136	*) ETAGSFLAGS="" ;;
25137esac
25138ETAGSFLAGS=$ETAGSFLAGS
25139
25140
25141if test "$WITH_LLVMGCCDIR" = "default" ; then
25142  LLVMGCC="llvm-gcc${EXEEXT}"
25143  LLVMGXX="llvm-g++${EXEEXT}"
25144  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25145set dummy $LLVMGCC; ac_word=$2
25146echo "$as_me:$LINENO: checking for $ac_word" >&5
25147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25148if test "${ac_cv_path_LLVMGCC+set}" = set; then
25149  echo $ECHO_N "(cached) $ECHO_C" >&6
25150else
25151  case $LLVMGCC in
25152  [\\/]* | ?:[\\/]*)
25153  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25154  ;;
25155  *)
25156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25157for as_dir in $PATH
25158do
25159  IFS=$as_save_IFS
25160  test -z "$as_dir" && as_dir=.
25161  for ac_exec_ext in '' $ac_executable_extensions; do
25162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25163    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25165    break 2
25166  fi
25167done
25168done
25169
25170  ;;
25171esac
25172fi
25173LLVMGCC=$ac_cv_path_LLVMGCC
25174
25175if test -n "$LLVMGCC"; then
25176  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25177echo "${ECHO_T}$LLVMGCC" >&6
25178else
25179  echo "$as_me:$LINENO: result: no" >&5
25180echo "${ECHO_T}no" >&6
25181fi
25182
25183  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25184set dummy $LLVMGXX; ac_word=$2
25185echo "$as_me:$LINENO: checking for $ac_word" >&5
25186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25187if test "${ac_cv_path_LLVMGXX+set}" = set; then
25188  echo $ECHO_N "(cached) $ECHO_C" >&6
25189else
25190  case $LLVMGXX in
25191  [\\/]* | ?:[\\/]*)
25192  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25193  ;;
25194  *)
25195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25196for as_dir in $PATH
25197do
25198  IFS=$as_save_IFS
25199  test -z "$as_dir" && as_dir=.
25200  for ac_exec_ext in '' $ac_executable_extensions; do
25201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25202    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25204    break 2
25205  fi
25206done
25207done
25208
25209  ;;
25210esac
25211fi
25212LLVMGXX=$ac_cv_path_LLVMGXX
25213
25214if test -n "$LLVMGXX"; then
25215  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25216echo "${ECHO_T}$LLVMGXX" >&6
25217else
25218  echo "$as_me:$LINENO: result: no" >&5
25219echo "${ECHO_T}no" >&6
25220fi
25221
25222else
25223  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25224  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25225  LLVMGCC=$LLVMGCC
25226
25227  LLVMGXX=$LLVMGXX
25228
25229fi
25230
25231echo "$as_me:$LINENO: checking tool compatibility" >&5
25232echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25233
25234ICC=no
25235IXX=no
25236case $CC in
25237  icc*|icpc*)
25238    ICC=yes
25239    IXX=yes
25240    ;;
25241   *)
25242    ;;
25243esac
25244
25245if test "$GCC" != "yes" && test "$ICC" != "yes"
25246then
25247  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25248echo "$as_me: error: gcc|icc required but not found" >&2;}
25249   { (exit 1); exit 1; }; }
25250fi
25251
25252if test "$GXX" != "yes" && test "$IXX" != "yes"
25253then
25254  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25255echo "$as_me: error: g++|icc required but not found" >&2;}
25256   { (exit 1); exit 1; }; }
25257fi
25258
25259if test "$GCC" = "yes"
25260then
25261  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25262  if test "$gccmajor" -lt "3"
25263  then
25264    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25265echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25266   { (exit 1); exit 1; }; }
25267  fi
25268fi
25269
25270if test -z "$llvm_cv_gnu_make_command"
25271then
25272  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25273echo "$as_me: error: GNU Make required but not found" >&2;}
25274   { (exit 1); exit 1; }; }
25275fi
25276
25277echo "$as_me:$LINENO: result: ok" >&5
25278echo "${ECHO_T}ok" >&6
25279
25280
25281
25282echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25283echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25284if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25285  echo $ECHO_N "(cached) $ECHO_C" >&6
25286else
25287  ac_check_lib_save_LIBS=$LIBS
25288LIBS="-lelf  $LIBS"
25289cat >conftest.$ac_ext <<_ACEOF
25290/* confdefs.h.  */
25291_ACEOF
25292cat confdefs.h >>conftest.$ac_ext
25293cat >>conftest.$ac_ext <<_ACEOF
25294/* end confdefs.h.  */
25295
25296/* Override any gcc2 internal prototype to avoid an error.  */
25297#ifdef __cplusplus
25298extern "C"
25299#endif
25300/* We use char because int might match the return type of a gcc2
25301   builtin and then its argument prototype would still apply.  */
25302char elf_begin ();
25303int
25304main ()
25305{
25306elf_begin ();
25307  ;
25308  return 0;
25309}
25310_ACEOF
25311rm -f conftest.$ac_objext conftest$ac_exeext
25312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25313  (eval $ac_link) 2>conftest.er1
25314  ac_status=$?
25315  grep -v '^ *+' conftest.er1 >conftest.err
25316  rm -f conftest.er1
25317  cat conftest.err >&5
25318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319  (exit $ac_status); } &&
25320	 { ac_try='test -z "$ac_c_werror_flag"
25321			 || test ! -s conftest.err'
25322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323  (eval $ac_try) 2>&5
25324  ac_status=$?
25325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326  (exit $ac_status); }; } &&
25327	 { ac_try='test -s conftest$ac_exeext'
25328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329  (eval $ac_try) 2>&5
25330  ac_status=$?
25331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332  (exit $ac_status); }; }; then
25333  ac_cv_lib_elf_elf_begin=yes
25334else
25335  echo "$as_me: failed program was:" >&5
25336sed 's/^/| /' conftest.$ac_ext >&5
25337
25338ac_cv_lib_elf_elf_begin=no
25339fi
25340rm -f conftest.err conftest.$ac_objext \
25341      conftest$ac_exeext conftest.$ac_ext
25342LIBS=$ac_check_lib_save_LIBS
25343fi
25344echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25345echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25346if test $ac_cv_lib_elf_elf_begin = yes; then
25347  cat >>confdefs.h <<_ACEOF
25348#define HAVE_LIBELF 1
25349_ACEOF
25350
25351  LIBS="-lelf $LIBS"
25352
25353fi
25354
25355
25356echo "$as_me:$LINENO: checking for sin in -lm" >&5
25357echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25358if test "${ac_cv_lib_m_sin+set}" = set; then
25359  echo $ECHO_N "(cached) $ECHO_C" >&6
25360else
25361  ac_check_lib_save_LIBS=$LIBS
25362LIBS="-lm  $LIBS"
25363cat >conftest.$ac_ext <<_ACEOF
25364/* confdefs.h.  */
25365_ACEOF
25366cat confdefs.h >>conftest.$ac_ext
25367cat >>conftest.$ac_ext <<_ACEOF
25368/* end confdefs.h.  */
25369
25370/* Override any gcc2 internal prototype to avoid an error.  */
25371#ifdef __cplusplus
25372extern "C"
25373#endif
25374/* We use char because int might match the return type of a gcc2
25375   builtin and then its argument prototype would still apply.  */
25376char sin ();
25377int
25378main ()
25379{
25380sin ();
25381  ;
25382  return 0;
25383}
25384_ACEOF
25385rm -f conftest.$ac_objext conftest$ac_exeext
25386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25387  (eval $ac_link) 2>conftest.er1
25388  ac_status=$?
25389  grep -v '^ *+' conftest.er1 >conftest.err
25390  rm -f conftest.er1
25391  cat conftest.err >&5
25392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393  (exit $ac_status); } &&
25394	 { ac_try='test -z "$ac_c_werror_flag"
25395			 || test ! -s conftest.err'
25396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397  (eval $ac_try) 2>&5
25398  ac_status=$?
25399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400  (exit $ac_status); }; } &&
25401	 { ac_try='test -s conftest$ac_exeext'
25402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403  (eval $ac_try) 2>&5
25404  ac_status=$?
25405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406  (exit $ac_status); }; }; then
25407  ac_cv_lib_m_sin=yes
25408else
25409  echo "$as_me: failed program was:" >&5
25410sed 's/^/| /' conftest.$ac_ext >&5
25411
25412ac_cv_lib_m_sin=no
25413fi
25414rm -f conftest.err conftest.$ac_objext \
25415      conftest$ac_exeext conftest.$ac_ext
25416LIBS=$ac_check_lib_save_LIBS
25417fi
25418echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25419echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25420if test $ac_cv_lib_m_sin = yes; then
25421  cat >>confdefs.h <<_ACEOF
25422#define HAVE_LIBM 1
25423_ACEOF
25424
25425  LIBS="-lm $LIBS"
25426
25427fi
25428
25429if test "$llvm_cv_os_type" == "MingW" ; then
25430
25431echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25432echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25433if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25434  echo $ECHO_N "(cached) $ECHO_C" >&6
25435else
25436  ac_check_lib_save_LIBS=$LIBS
25437LIBS="-limagehlp  $LIBS"
25438cat >conftest.$ac_ext <<_ACEOF
25439/* confdefs.h.  */
25440_ACEOF
25441cat confdefs.h >>conftest.$ac_ext
25442cat >>conftest.$ac_ext <<_ACEOF
25443/* end confdefs.h.  */
25444
25445
25446int
25447main ()
25448{
25449main ();
25450  ;
25451  return 0;
25452}
25453_ACEOF
25454rm -f conftest.$ac_objext conftest$ac_exeext
25455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456  (eval $ac_link) 2>conftest.er1
25457  ac_status=$?
25458  grep -v '^ *+' conftest.er1 >conftest.err
25459  rm -f conftest.er1
25460  cat conftest.err >&5
25461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462  (exit $ac_status); } &&
25463	 { ac_try='test -z "$ac_c_werror_flag"
25464			 || test ! -s conftest.err'
25465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466  (eval $ac_try) 2>&5
25467  ac_status=$?
25468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469  (exit $ac_status); }; } &&
25470	 { ac_try='test -s conftest$ac_exeext'
25471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472  (eval $ac_try) 2>&5
25473  ac_status=$?
25474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475  (exit $ac_status); }; }; then
25476  ac_cv_lib_imagehlp_main=yes
25477else
25478  echo "$as_me: failed program was:" >&5
25479sed 's/^/| /' conftest.$ac_ext >&5
25480
25481ac_cv_lib_imagehlp_main=no
25482fi
25483rm -f conftest.err conftest.$ac_objext \
25484      conftest$ac_exeext conftest.$ac_ext
25485LIBS=$ac_check_lib_save_LIBS
25486fi
25487echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25488echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25489if test $ac_cv_lib_imagehlp_main = yes; then
25490  cat >>confdefs.h <<_ACEOF
25491#define HAVE_LIBIMAGEHLP 1
25492_ACEOF
25493
25494  LIBS="-limagehlp $LIBS"
25495
25496fi
25497
25498
25499echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25500echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25501if test "${ac_cv_lib_psapi_main+set}" = set; then
25502  echo $ECHO_N "(cached) $ECHO_C" >&6
25503else
25504  ac_check_lib_save_LIBS=$LIBS
25505LIBS="-lpsapi  $LIBS"
25506cat >conftest.$ac_ext <<_ACEOF
25507/* confdefs.h.  */
25508_ACEOF
25509cat confdefs.h >>conftest.$ac_ext
25510cat >>conftest.$ac_ext <<_ACEOF
25511/* end confdefs.h.  */
25512
25513
25514int
25515main ()
25516{
25517main ();
25518  ;
25519  return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext conftest$ac_exeext
25523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524  (eval $ac_link) 2>conftest.er1
25525  ac_status=$?
25526  grep -v '^ *+' conftest.er1 >conftest.err
25527  rm -f conftest.er1
25528  cat conftest.err >&5
25529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530  (exit $ac_status); } &&
25531	 { ac_try='test -z "$ac_c_werror_flag"
25532			 || test ! -s conftest.err'
25533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534  (eval $ac_try) 2>&5
25535  ac_status=$?
25536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537  (exit $ac_status); }; } &&
25538	 { ac_try='test -s conftest$ac_exeext'
25539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540  (eval $ac_try) 2>&5
25541  ac_status=$?
25542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543  (exit $ac_status); }; }; then
25544  ac_cv_lib_psapi_main=yes
25545else
25546  echo "$as_me: failed program was:" >&5
25547sed 's/^/| /' conftest.$ac_ext >&5
25548
25549ac_cv_lib_psapi_main=no
25550fi
25551rm -f conftest.err conftest.$ac_objext \
25552      conftest$ac_exeext conftest.$ac_ext
25553LIBS=$ac_check_lib_save_LIBS
25554fi
25555echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25556echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25557if test $ac_cv_lib_psapi_main = yes; then
25558  cat >>confdefs.h <<_ACEOF
25559#define HAVE_LIBPSAPI 1
25560_ACEOF
25561
25562  LIBS="-lpsapi $LIBS"
25563
25564fi
25565
25566fi
25567
25568echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25569echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25570if test "${ac_cv_search_lt_dlopen+set}" = set; then
25571  echo $ECHO_N "(cached) $ECHO_C" >&6
25572else
25573  ac_func_search_save_LIBS=$LIBS
25574ac_cv_search_lt_dlopen=no
25575cat >conftest.$ac_ext <<_ACEOF
25576/* confdefs.h.  */
25577_ACEOF
25578cat confdefs.h >>conftest.$ac_ext
25579cat >>conftest.$ac_ext <<_ACEOF
25580/* end confdefs.h.  */
25581
25582/* Override any gcc2 internal prototype to avoid an error.  */
25583#ifdef __cplusplus
25584extern "C"
25585#endif
25586/* We use char because int might match the return type of a gcc2
25587   builtin and then its argument prototype would still apply.  */
25588char lt_dlopen ();
25589int
25590main ()
25591{
25592lt_dlopen ();
25593  ;
25594  return 0;
25595}
25596_ACEOF
25597rm -f conftest.$ac_objext conftest$ac_exeext
25598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599  (eval $ac_link) 2>conftest.er1
25600  ac_status=$?
25601  grep -v '^ *+' conftest.er1 >conftest.err
25602  rm -f conftest.er1
25603  cat conftest.err >&5
25604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605  (exit $ac_status); } &&
25606	 { ac_try='test -z "$ac_c_werror_flag"
25607			 || test ! -s conftest.err'
25608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609  (eval $ac_try) 2>&5
25610  ac_status=$?
25611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612  (exit $ac_status); }; } &&
25613	 { ac_try='test -s conftest$ac_exeext'
25614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615  (eval $ac_try) 2>&5
25616  ac_status=$?
25617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618  (exit $ac_status); }; }; then
25619  ac_cv_search_lt_dlopen="none required"
25620else
25621  echo "$as_me: failed program was:" >&5
25622sed 's/^/| /' conftest.$ac_ext >&5
25623
25624fi
25625rm -f conftest.err conftest.$ac_objext \
25626      conftest$ac_exeext conftest.$ac_ext
25627if test "$ac_cv_search_lt_dlopen" = no; then
25628  for ac_lib in ltdl; do
25629    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25630    cat >conftest.$ac_ext <<_ACEOF
25631/* confdefs.h.  */
25632_ACEOF
25633cat confdefs.h >>conftest.$ac_ext
25634cat >>conftest.$ac_ext <<_ACEOF
25635/* end confdefs.h.  */
25636
25637/* Override any gcc2 internal prototype to avoid an error.  */
25638#ifdef __cplusplus
25639extern "C"
25640#endif
25641/* We use char because int might match the return type of a gcc2
25642   builtin and then its argument prototype would still apply.  */
25643char lt_dlopen ();
25644int
25645main ()
25646{
25647lt_dlopen ();
25648  ;
25649  return 0;
25650}
25651_ACEOF
25652rm -f conftest.$ac_objext conftest$ac_exeext
25653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654  (eval $ac_link) 2>conftest.er1
25655  ac_status=$?
25656  grep -v '^ *+' conftest.er1 >conftest.err
25657  rm -f conftest.er1
25658  cat conftest.err >&5
25659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660  (exit $ac_status); } &&
25661	 { ac_try='test -z "$ac_c_werror_flag"
25662			 || test ! -s conftest.err'
25663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664  (eval $ac_try) 2>&5
25665  ac_status=$?
25666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667  (exit $ac_status); }; } &&
25668	 { ac_try='test -s conftest$ac_exeext'
25669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670  (eval $ac_try) 2>&5
25671  ac_status=$?
25672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673  (exit $ac_status); }; }; then
25674  ac_cv_search_lt_dlopen="-l$ac_lib"
25675break
25676else
25677  echo "$as_me: failed program was:" >&5
25678sed 's/^/| /' conftest.$ac_ext >&5
25679
25680fi
25681rm -f conftest.err conftest.$ac_objext \
25682      conftest$ac_exeext conftest.$ac_ext
25683  done
25684fi
25685LIBS=$ac_func_search_save_LIBS
25686fi
25687echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25688echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25689if test "$ac_cv_search_lt_dlopen" != no; then
25690  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25691
25692cat >>confdefs.h <<\_ACEOF
25693#define HAVE_LT_DLOPEN 1
25694_ACEOF
25695
25696else
25697  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25698                           not be available" >&5
25699echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25700                           not be available" >&2;}
25701fi
25702
25703
25704echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25705echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25706if test "${ac_cv_search_dlopen+set}" = set; then
25707  echo $ECHO_N "(cached) $ECHO_C" >&6
25708else
25709  ac_func_search_save_LIBS=$LIBS
25710ac_cv_search_dlopen=no
25711cat >conftest.$ac_ext <<_ACEOF
25712/* confdefs.h.  */
25713_ACEOF
25714cat confdefs.h >>conftest.$ac_ext
25715cat >>conftest.$ac_ext <<_ACEOF
25716/* end confdefs.h.  */
25717
25718/* Override any gcc2 internal prototype to avoid an error.  */
25719#ifdef __cplusplus
25720extern "C"
25721#endif
25722/* We use char because int might match the return type of a gcc2
25723   builtin and then its argument prototype would still apply.  */
25724char dlopen ();
25725int
25726main ()
25727{
25728dlopen ();
25729  ;
25730  return 0;
25731}
25732_ACEOF
25733rm -f conftest.$ac_objext conftest$ac_exeext
25734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25735  (eval $ac_link) 2>conftest.er1
25736  ac_status=$?
25737  grep -v '^ *+' conftest.er1 >conftest.err
25738  rm -f conftest.er1
25739  cat conftest.err >&5
25740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741  (exit $ac_status); } &&
25742	 { ac_try='test -z "$ac_c_werror_flag"
25743			 || test ! -s conftest.err'
25744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745  (eval $ac_try) 2>&5
25746  ac_status=$?
25747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748  (exit $ac_status); }; } &&
25749	 { ac_try='test -s conftest$ac_exeext'
25750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751  (eval $ac_try) 2>&5
25752  ac_status=$?
25753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754  (exit $ac_status); }; }; then
25755  ac_cv_search_dlopen="none required"
25756else
25757  echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760fi
25761rm -f conftest.err conftest.$ac_objext \
25762      conftest$ac_exeext conftest.$ac_ext
25763if test "$ac_cv_search_dlopen" = no; then
25764  for ac_lib in dl; do
25765    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25766    cat >conftest.$ac_ext <<_ACEOF
25767/* confdefs.h.  */
25768_ACEOF
25769cat confdefs.h >>conftest.$ac_ext
25770cat >>conftest.$ac_ext <<_ACEOF
25771/* end confdefs.h.  */
25772
25773/* Override any gcc2 internal prototype to avoid an error.  */
25774#ifdef __cplusplus
25775extern "C"
25776#endif
25777/* We use char because int might match the return type of a gcc2
25778   builtin and then its argument prototype would still apply.  */
25779char dlopen ();
25780int
25781main ()
25782{
25783dlopen ();
25784  ;
25785  return 0;
25786}
25787_ACEOF
25788rm -f conftest.$ac_objext conftest$ac_exeext
25789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25790  (eval $ac_link) 2>conftest.er1
25791  ac_status=$?
25792  grep -v '^ *+' conftest.er1 >conftest.err
25793  rm -f conftest.er1
25794  cat conftest.err >&5
25795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796  (exit $ac_status); } &&
25797	 { ac_try='test -z "$ac_c_werror_flag"
25798			 || test ! -s conftest.err'
25799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800  (eval $ac_try) 2>&5
25801  ac_status=$?
25802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803  (exit $ac_status); }; } &&
25804	 { ac_try='test -s conftest$ac_exeext'
25805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806  (eval $ac_try) 2>&5
25807  ac_status=$?
25808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809  (exit $ac_status); }; }; then
25810  ac_cv_search_dlopen="-l$ac_lib"
25811break
25812else
25813  echo "$as_me: failed program was:" >&5
25814sed 's/^/| /' conftest.$ac_ext >&5
25815
25816fi
25817rm -f conftest.err conftest.$ac_objext \
25818      conftest$ac_exeext conftest.$ac_ext
25819  done
25820fi
25821LIBS=$ac_func_search_save_LIBS
25822fi
25823echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25824echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25825if test "$ac_cv_search_dlopen" != no; then
25826  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25827
25828cat >>confdefs.h <<\_ACEOF
25829#define HAVE_DLOPEN 1
25830_ACEOF
25831
25832else
25833  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25834echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25835fi
25836
25837
25838echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25839echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25840if test "${ac_cv_search_mallinfo+set}" = set; then
25841  echo $ECHO_N "(cached) $ECHO_C" >&6
25842else
25843  ac_func_search_save_LIBS=$LIBS
25844ac_cv_search_mallinfo=no
25845cat >conftest.$ac_ext <<_ACEOF
25846/* confdefs.h.  */
25847_ACEOF
25848cat confdefs.h >>conftest.$ac_ext
25849cat >>conftest.$ac_ext <<_ACEOF
25850/* end confdefs.h.  */
25851
25852/* Override any gcc2 internal prototype to avoid an error.  */
25853#ifdef __cplusplus
25854extern "C"
25855#endif
25856/* We use char because int might match the return type of a gcc2
25857   builtin and then its argument prototype would still apply.  */
25858char mallinfo ();
25859int
25860main ()
25861{
25862mallinfo ();
25863  ;
25864  return 0;
25865}
25866_ACEOF
25867rm -f conftest.$ac_objext conftest$ac_exeext
25868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25869  (eval $ac_link) 2>conftest.er1
25870  ac_status=$?
25871  grep -v '^ *+' conftest.er1 >conftest.err
25872  rm -f conftest.er1
25873  cat conftest.err >&5
25874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875  (exit $ac_status); } &&
25876	 { ac_try='test -z "$ac_c_werror_flag"
25877			 || test ! -s conftest.err'
25878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879  (eval $ac_try) 2>&5
25880  ac_status=$?
25881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882  (exit $ac_status); }; } &&
25883	 { ac_try='test -s conftest$ac_exeext'
25884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885  (eval $ac_try) 2>&5
25886  ac_status=$?
25887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888  (exit $ac_status); }; }; then
25889  ac_cv_search_mallinfo="none required"
25890else
25891  echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
25894fi
25895rm -f conftest.err conftest.$ac_objext \
25896      conftest$ac_exeext conftest.$ac_ext
25897if test "$ac_cv_search_mallinfo" = no; then
25898  for ac_lib in malloc; do
25899    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25900    cat >conftest.$ac_ext <<_ACEOF
25901/* confdefs.h.  */
25902_ACEOF
25903cat confdefs.h >>conftest.$ac_ext
25904cat >>conftest.$ac_ext <<_ACEOF
25905/* end confdefs.h.  */
25906
25907/* Override any gcc2 internal prototype to avoid an error.  */
25908#ifdef __cplusplus
25909extern "C"
25910#endif
25911/* We use char because int might match the return type of a gcc2
25912   builtin and then its argument prototype would still apply.  */
25913char mallinfo ();
25914int
25915main ()
25916{
25917mallinfo ();
25918  ;
25919  return 0;
25920}
25921_ACEOF
25922rm -f conftest.$ac_objext conftest$ac_exeext
25923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924  (eval $ac_link) 2>conftest.er1
25925  ac_status=$?
25926  grep -v '^ *+' conftest.er1 >conftest.err
25927  rm -f conftest.er1
25928  cat conftest.err >&5
25929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930  (exit $ac_status); } &&
25931	 { ac_try='test -z "$ac_c_werror_flag"
25932			 || test ! -s conftest.err'
25933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934  (eval $ac_try) 2>&5
25935  ac_status=$?
25936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937  (exit $ac_status); }; } &&
25938	 { ac_try='test -s conftest$ac_exeext'
25939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940  (eval $ac_try) 2>&5
25941  ac_status=$?
25942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943  (exit $ac_status); }; }; then
25944  ac_cv_search_mallinfo="-l$ac_lib"
25945break
25946else
25947  echo "$as_me: failed program was:" >&5
25948sed 's/^/| /' conftest.$ac_ext >&5
25949
25950fi
25951rm -f conftest.err conftest.$ac_objext \
25952      conftest$ac_exeext conftest.$ac_ext
25953  done
25954fi
25955LIBS=$ac_func_search_save_LIBS
25956fi
25957echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25958echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25959if test "$ac_cv_search_mallinfo" != no; then
25960  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25961
25962cat >>confdefs.h <<\_ACEOF
25963#define HAVE_MALLINFO 1
25964_ACEOF
25965
25966fi
25967
25968
25969if test "$ENABLE_THREADS" -eq 1 ; then
25970
25971echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25972echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25973if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25974  echo $ECHO_N "(cached) $ECHO_C" >&6
25975else
25976  ac_check_lib_save_LIBS=$LIBS
25977LIBS="-lpthread  $LIBS"
25978cat >conftest.$ac_ext <<_ACEOF
25979/* confdefs.h.  */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h.  */
25984
25985/* Override any gcc2 internal prototype to avoid an error.  */
25986#ifdef __cplusplus
25987extern "C"
25988#endif
25989/* We use char because int might match the return type of a gcc2
25990   builtin and then its argument prototype would still apply.  */
25991char pthread_mutex_init ();
25992int
25993main ()
25994{
25995pthread_mutex_init ();
25996  ;
25997  return 0;
25998}
25999_ACEOF
26000rm -f conftest.$ac_objext conftest$ac_exeext
26001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26002  (eval $ac_link) 2>conftest.er1
26003  ac_status=$?
26004  grep -v '^ *+' conftest.er1 >conftest.err
26005  rm -f conftest.er1
26006  cat conftest.err >&5
26007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008  (exit $ac_status); } &&
26009	 { ac_try='test -z "$ac_c_werror_flag"
26010			 || test ! -s conftest.err'
26011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012  (eval $ac_try) 2>&5
26013  ac_status=$?
26014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015  (exit $ac_status); }; } &&
26016	 { ac_try='test -s conftest$ac_exeext'
26017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018  (eval $ac_try) 2>&5
26019  ac_status=$?
26020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021  (exit $ac_status); }; }; then
26022  ac_cv_lib_pthread_pthread_mutex_init=yes
26023else
26024  echo "$as_me: failed program was:" >&5
26025sed 's/^/| /' conftest.$ac_ext >&5
26026
26027ac_cv_lib_pthread_pthread_mutex_init=no
26028fi
26029rm -f conftest.err conftest.$ac_objext \
26030      conftest$ac_exeext conftest.$ac_ext
26031LIBS=$ac_check_lib_save_LIBS
26032fi
26033echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26034echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26035if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26036  cat >>confdefs.h <<_ACEOF
26037#define HAVE_LIBPTHREAD 1
26038_ACEOF
26039
26040  LIBS="-lpthread $LIBS"
26041
26042fi
26043
26044  echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26045echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26046if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26047  echo $ECHO_N "(cached) $ECHO_C" >&6
26048else
26049  ac_func_search_save_LIBS=$LIBS
26050ac_cv_search_pthread_mutex_lock=no
26051cat >conftest.$ac_ext <<_ACEOF
26052/* confdefs.h.  */
26053_ACEOF
26054cat confdefs.h >>conftest.$ac_ext
26055cat >>conftest.$ac_ext <<_ACEOF
26056/* end confdefs.h.  */
26057
26058/* Override any gcc2 internal prototype to avoid an error.  */
26059#ifdef __cplusplus
26060extern "C"
26061#endif
26062/* We use char because int might match the return type of a gcc2
26063   builtin and then its argument prototype would still apply.  */
26064char pthread_mutex_lock ();
26065int
26066main ()
26067{
26068pthread_mutex_lock ();
26069  ;
26070  return 0;
26071}
26072_ACEOF
26073rm -f conftest.$ac_objext conftest$ac_exeext
26074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26075  (eval $ac_link) 2>conftest.er1
26076  ac_status=$?
26077  grep -v '^ *+' conftest.er1 >conftest.err
26078  rm -f conftest.er1
26079  cat conftest.err >&5
26080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081  (exit $ac_status); } &&
26082	 { ac_try='test -z "$ac_c_werror_flag"
26083			 || test ! -s conftest.err'
26084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26085  (eval $ac_try) 2>&5
26086  ac_status=$?
26087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088  (exit $ac_status); }; } &&
26089	 { ac_try='test -s conftest$ac_exeext'
26090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091  (eval $ac_try) 2>&5
26092  ac_status=$?
26093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094  (exit $ac_status); }; }; then
26095  ac_cv_search_pthread_mutex_lock="none required"
26096else
26097  echo "$as_me: failed program was:" >&5
26098sed 's/^/| /' conftest.$ac_ext >&5
26099
26100fi
26101rm -f conftest.err conftest.$ac_objext \
26102      conftest$ac_exeext conftest.$ac_ext
26103if test "$ac_cv_search_pthread_mutex_lock" = no; then
26104  for ac_lib in pthread; do
26105    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26106    cat >conftest.$ac_ext <<_ACEOF
26107/* confdefs.h.  */
26108_ACEOF
26109cat confdefs.h >>conftest.$ac_ext
26110cat >>conftest.$ac_ext <<_ACEOF
26111/* end confdefs.h.  */
26112
26113/* Override any gcc2 internal prototype to avoid an error.  */
26114#ifdef __cplusplus
26115extern "C"
26116#endif
26117/* We use char because int might match the return type of a gcc2
26118   builtin and then its argument prototype would still apply.  */
26119char pthread_mutex_lock ();
26120int
26121main ()
26122{
26123pthread_mutex_lock ();
26124  ;
26125  return 0;
26126}
26127_ACEOF
26128rm -f conftest.$ac_objext conftest$ac_exeext
26129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26130  (eval $ac_link) 2>conftest.er1
26131  ac_status=$?
26132  grep -v '^ *+' conftest.er1 >conftest.err
26133  rm -f conftest.er1
26134  cat conftest.err >&5
26135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136  (exit $ac_status); } &&
26137	 { ac_try='test -z "$ac_c_werror_flag"
26138			 || test ! -s conftest.err'
26139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140  (eval $ac_try) 2>&5
26141  ac_status=$?
26142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143  (exit $ac_status); }; } &&
26144	 { ac_try='test -s conftest$ac_exeext'
26145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146  (eval $ac_try) 2>&5
26147  ac_status=$?
26148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149  (exit $ac_status); }; }; then
26150  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26151break
26152else
26153  echo "$as_me: failed program was:" >&5
26154sed 's/^/| /' conftest.$ac_ext >&5
26155
26156fi
26157rm -f conftest.err conftest.$ac_objext \
26158      conftest$ac_exeext conftest.$ac_ext
26159  done
26160fi
26161LIBS=$ac_func_search_save_LIBS
26162fi
26163echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26164echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26165if test "$ac_cv_search_pthread_mutex_lock" != no; then
26166  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26167
26168cat >>confdefs.h <<\_ACEOF
26169#define HAVE_PTHREAD_MUTEX_LOCK 1
26170_ACEOF
26171
26172fi
26173
26174fi
26175
26176
26177
26178
26179
26180
26181
26182ac_header_dirent=no
26183for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26184  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26185echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26186echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26187if eval "test \"\${$as_ac_Header+set}\" = set"; then
26188  echo $ECHO_N "(cached) $ECHO_C" >&6
26189else
26190  cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h.  */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h.  */
26196#include <sys/types.h>
26197#include <$ac_hdr>
26198
26199int
26200main ()
26201{
26202if ((DIR *) 0)
26203return 0;
26204  ;
26205  return 0;
26206}
26207_ACEOF
26208rm -f conftest.$ac_objext
26209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26210  (eval $ac_compile) 2>conftest.er1
26211  ac_status=$?
26212  grep -v '^ *+' conftest.er1 >conftest.err
26213  rm -f conftest.er1
26214  cat conftest.err >&5
26215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216  (exit $ac_status); } &&
26217	 { ac_try='test -z "$ac_c_werror_flag"
26218			 || test ! -s conftest.err'
26219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220  (eval $ac_try) 2>&5
26221  ac_status=$?
26222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223  (exit $ac_status); }; } &&
26224	 { ac_try='test -s conftest.$ac_objext'
26225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226  (eval $ac_try) 2>&5
26227  ac_status=$?
26228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229  (exit $ac_status); }; }; then
26230  eval "$as_ac_Header=yes"
26231else
26232  echo "$as_me: failed program was:" >&5
26233sed 's/^/| /' conftest.$ac_ext >&5
26234
26235eval "$as_ac_Header=no"
26236fi
26237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26238fi
26239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26241if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242  cat >>confdefs.h <<_ACEOF
26243#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26244_ACEOF
26245
26246ac_header_dirent=$ac_hdr; break
26247fi
26248
26249done
26250# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26251if test $ac_header_dirent = dirent.h; then
26252  echo "$as_me:$LINENO: checking for library containing opendir" >&5
26253echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26254if test "${ac_cv_search_opendir+set}" = set; then
26255  echo $ECHO_N "(cached) $ECHO_C" >&6
26256else
26257  ac_func_search_save_LIBS=$LIBS
26258ac_cv_search_opendir=no
26259cat >conftest.$ac_ext <<_ACEOF
26260/* confdefs.h.  */
26261_ACEOF
26262cat confdefs.h >>conftest.$ac_ext
26263cat >>conftest.$ac_ext <<_ACEOF
26264/* end confdefs.h.  */
26265
26266/* Override any gcc2 internal prototype to avoid an error.  */
26267#ifdef __cplusplus
26268extern "C"
26269#endif
26270/* We use char because int might match the return type of a gcc2
26271   builtin and then its argument prototype would still apply.  */
26272char opendir ();
26273int
26274main ()
26275{
26276opendir ();
26277  ;
26278  return 0;
26279}
26280_ACEOF
26281rm -f conftest.$ac_objext conftest$ac_exeext
26282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26283  (eval $ac_link) 2>conftest.er1
26284  ac_status=$?
26285  grep -v '^ *+' conftest.er1 >conftest.err
26286  rm -f conftest.er1
26287  cat conftest.err >&5
26288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289  (exit $ac_status); } &&
26290	 { ac_try='test -z "$ac_c_werror_flag"
26291			 || test ! -s conftest.err'
26292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293  (eval $ac_try) 2>&5
26294  ac_status=$?
26295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296  (exit $ac_status); }; } &&
26297	 { ac_try='test -s conftest$ac_exeext'
26298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299  (eval $ac_try) 2>&5
26300  ac_status=$?
26301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302  (exit $ac_status); }; }; then
26303  ac_cv_search_opendir="none required"
26304else
26305  echo "$as_me: failed program was:" >&5
26306sed 's/^/| /' conftest.$ac_ext >&5
26307
26308fi
26309rm -f conftest.err conftest.$ac_objext \
26310      conftest$ac_exeext conftest.$ac_ext
26311if test "$ac_cv_search_opendir" = no; then
26312  for ac_lib in dir; do
26313    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26314    cat >conftest.$ac_ext <<_ACEOF
26315/* confdefs.h.  */
26316_ACEOF
26317cat confdefs.h >>conftest.$ac_ext
26318cat >>conftest.$ac_ext <<_ACEOF
26319/* end confdefs.h.  */
26320
26321/* Override any gcc2 internal prototype to avoid an error.  */
26322#ifdef __cplusplus
26323extern "C"
26324#endif
26325/* We use char because int might match the return type of a gcc2
26326   builtin and then its argument prototype would still apply.  */
26327char opendir ();
26328int
26329main ()
26330{
26331opendir ();
26332  ;
26333  return 0;
26334}
26335_ACEOF
26336rm -f conftest.$ac_objext conftest$ac_exeext
26337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26338  (eval $ac_link) 2>conftest.er1
26339  ac_status=$?
26340  grep -v '^ *+' conftest.er1 >conftest.err
26341  rm -f conftest.er1
26342  cat conftest.err >&5
26343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344  (exit $ac_status); } &&
26345	 { ac_try='test -z "$ac_c_werror_flag"
26346			 || test ! -s conftest.err'
26347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348  (eval $ac_try) 2>&5
26349  ac_status=$?
26350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351  (exit $ac_status); }; } &&
26352	 { ac_try='test -s conftest$ac_exeext'
26353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354  (eval $ac_try) 2>&5
26355  ac_status=$?
26356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357  (exit $ac_status); }; }; then
26358  ac_cv_search_opendir="-l$ac_lib"
26359break
26360else
26361  echo "$as_me: failed program was:" >&5
26362sed 's/^/| /' conftest.$ac_ext >&5
26363
26364fi
26365rm -f conftest.err conftest.$ac_objext \
26366      conftest$ac_exeext conftest.$ac_ext
26367  done
26368fi
26369LIBS=$ac_func_search_save_LIBS
26370fi
26371echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26372echo "${ECHO_T}$ac_cv_search_opendir" >&6
26373if test "$ac_cv_search_opendir" != no; then
26374  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26375
26376fi
26377
26378else
26379  echo "$as_me:$LINENO: checking for library containing opendir" >&5
26380echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26381if test "${ac_cv_search_opendir+set}" = set; then
26382  echo $ECHO_N "(cached) $ECHO_C" >&6
26383else
26384  ac_func_search_save_LIBS=$LIBS
26385ac_cv_search_opendir=no
26386cat >conftest.$ac_ext <<_ACEOF
26387/* confdefs.h.  */
26388_ACEOF
26389cat confdefs.h >>conftest.$ac_ext
26390cat >>conftest.$ac_ext <<_ACEOF
26391/* end confdefs.h.  */
26392
26393/* Override any gcc2 internal prototype to avoid an error.  */
26394#ifdef __cplusplus
26395extern "C"
26396#endif
26397/* We use char because int might match the return type of a gcc2
26398   builtin and then its argument prototype would still apply.  */
26399char opendir ();
26400int
26401main ()
26402{
26403opendir ();
26404  ;
26405  return 0;
26406}
26407_ACEOF
26408rm -f conftest.$ac_objext conftest$ac_exeext
26409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410  (eval $ac_link) 2>conftest.er1
26411  ac_status=$?
26412  grep -v '^ *+' conftest.er1 >conftest.err
26413  rm -f conftest.er1
26414  cat conftest.err >&5
26415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416  (exit $ac_status); } &&
26417	 { ac_try='test -z "$ac_c_werror_flag"
26418			 || test ! -s conftest.err'
26419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420  (eval $ac_try) 2>&5
26421  ac_status=$?
26422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423  (exit $ac_status); }; } &&
26424	 { ac_try='test -s conftest$ac_exeext'
26425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426  (eval $ac_try) 2>&5
26427  ac_status=$?
26428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429  (exit $ac_status); }; }; then
26430  ac_cv_search_opendir="none required"
26431else
26432  echo "$as_me: failed program was:" >&5
26433sed 's/^/| /' conftest.$ac_ext >&5
26434
26435fi
26436rm -f conftest.err conftest.$ac_objext \
26437      conftest$ac_exeext conftest.$ac_ext
26438if test "$ac_cv_search_opendir" = no; then
26439  for ac_lib in x; do
26440    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26441    cat >conftest.$ac_ext <<_ACEOF
26442/* confdefs.h.  */
26443_ACEOF
26444cat confdefs.h >>conftest.$ac_ext
26445cat >>conftest.$ac_ext <<_ACEOF
26446/* end confdefs.h.  */
26447
26448/* Override any gcc2 internal prototype to avoid an error.  */
26449#ifdef __cplusplus
26450extern "C"
26451#endif
26452/* We use char because int might match the return type of a gcc2
26453   builtin and then its argument prototype would still apply.  */
26454char opendir ();
26455int
26456main ()
26457{
26458opendir ();
26459  ;
26460  return 0;
26461}
26462_ACEOF
26463rm -f conftest.$ac_objext conftest$ac_exeext
26464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465  (eval $ac_link) 2>conftest.er1
26466  ac_status=$?
26467  grep -v '^ *+' conftest.er1 >conftest.err
26468  rm -f conftest.er1
26469  cat conftest.err >&5
26470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471  (exit $ac_status); } &&
26472	 { ac_try='test -z "$ac_c_werror_flag"
26473			 || test ! -s conftest.err'
26474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475  (eval $ac_try) 2>&5
26476  ac_status=$?
26477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478  (exit $ac_status); }; } &&
26479	 { ac_try='test -s conftest$ac_exeext'
26480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481  (eval $ac_try) 2>&5
26482  ac_status=$?
26483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484  (exit $ac_status); }; }; then
26485  ac_cv_search_opendir="-l$ac_lib"
26486break
26487else
26488  echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491fi
26492rm -f conftest.err conftest.$ac_objext \
26493      conftest$ac_exeext conftest.$ac_ext
26494  done
26495fi
26496LIBS=$ac_func_search_save_LIBS
26497fi
26498echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26499echo "${ECHO_T}$ac_cv_search_opendir" >&6
26500if test "$ac_cv_search_opendir" != no; then
26501  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26502
26503fi
26504
26505fi
26506
26507echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26508echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26509if test "${ac_cv_header_mmap_anon+set}" = set; then
26510  echo $ECHO_N "(cached) $ECHO_C" >&6
26511else
26512   ac_ext=c
26513ac_cpp='$CPP $CPPFLAGS'
26514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516ac_compiler_gnu=$ac_cv_c_compiler_gnu
26517
26518  cat >conftest.$ac_ext <<_ACEOF
26519/* confdefs.h.  */
26520_ACEOF
26521cat confdefs.h >>conftest.$ac_ext
26522cat >>conftest.$ac_ext <<_ACEOF
26523/* end confdefs.h.  */
26524#include <sys/mman.h>
26525#include <unistd.h>
26526#include <fcntl.h>
26527int
26528main ()
26529{
26530mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26531  ;
26532  return 0;
26533}
26534_ACEOF
26535rm -f conftest.$ac_objext
26536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26537  (eval $ac_compile) 2>conftest.er1
26538  ac_status=$?
26539  grep -v '^ *+' conftest.er1 >conftest.err
26540  rm -f conftest.er1
26541  cat conftest.err >&5
26542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543  (exit $ac_status); } &&
26544	 { ac_try='test -z "$ac_c_werror_flag"
26545			 || test ! -s conftest.err'
26546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547  (eval $ac_try) 2>&5
26548  ac_status=$?
26549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550  (exit $ac_status); }; } &&
26551	 { ac_try='test -s conftest.$ac_objext'
26552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553  (eval $ac_try) 2>&5
26554  ac_status=$?
26555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556  (exit $ac_status); }; }; then
26557  ac_cv_header_mmap_anon=yes
26558else
26559  echo "$as_me: failed program was:" >&5
26560sed 's/^/| /' conftest.$ac_ext >&5
26561
26562ac_cv_header_mmap_anon=no
26563fi
26564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26565  ac_ext=c
26566ac_cpp='$CPP $CPPFLAGS'
26567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569ac_compiler_gnu=$ac_cv_c_compiler_gnu
26570
26571
26572fi
26573echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26574echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26575if test "$ac_cv_header_mmap_anon" = yes; then
26576
26577cat >>confdefs.h <<\_ACEOF
26578#define HAVE_MMAP_ANONYMOUS 1
26579_ACEOF
26580
26581fi
26582
26583echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26584echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26585if test "${ac_cv_header_stat_broken+set}" = set; then
26586  echo $ECHO_N "(cached) $ECHO_C" >&6
26587else
26588  cat >conftest.$ac_ext <<_ACEOF
26589/* confdefs.h.  */
26590_ACEOF
26591cat confdefs.h >>conftest.$ac_ext
26592cat >>conftest.$ac_ext <<_ACEOF
26593/* end confdefs.h.  */
26594#include <sys/types.h>
26595#include <sys/stat.h>
26596
26597#if defined(S_ISBLK) && defined(S_IFDIR)
26598# if S_ISBLK (S_IFDIR)
26599You lose.
26600# endif
26601#endif
26602
26603#if defined(S_ISBLK) && defined(S_IFCHR)
26604# if S_ISBLK (S_IFCHR)
26605You lose.
26606# endif
26607#endif
26608
26609#if defined(S_ISLNK) && defined(S_IFREG)
26610# if S_ISLNK (S_IFREG)
26611You lose.
26612# endif
26613#endif
26614
26615#if defined(S_ISSOCK) && defined(S_IFREG)
26616# if S_ISSOCK (S_IFREG)
26617You lose.
26618# endif
26619#endif
26620
26621_ACEOF
26622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26623  $EGREP "You lose" >/dev/null 2>&1; then
26624  ac_cv_header_stat_broken=yes
26625else
26626  ac_cv_header_stat_broken=no
26627fi
26628rm -f conftest*
26629
26630fi
26631echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26632echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26633if test $ac_cv_header_stat_broken = yes; then
26634
26635cat >>confdefs.h <<\_ACEOF
26636#define STAT_MACROS_BROKEN 1
26637_ACEOF
26638
26639fi
26640
26641echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26642echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26643if test "${ac_cv_header_stdc+set}" = set; then
26644  echo $ECHO_N "(cached) $ECHO_C" >&6
26645else
26646  cat >conftest.$ac_ext <<_ACEOF
26647/* confdefs.h.  */
26648_ACEOF
26649cat confdefs.h >>conftest.$ac_ext
26650cat >>conftest.$ac_ext <<_ACEOF
26651/* end confdefs.h.  */
26652#include <stdlib.h>
26653#include <stdarg.h>
26654#include <string.h>
26655#include <float.h>
26656
26657int
26658main ()
26659{
26660
26661  ;
26662  return 0;
26663}
26664_ACEOF
26665rm -f conftest.$ac_objext
26666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26667  (eval $ac_compile) 2>conftest.er1
26668  ac_status=$?
26669  grep -v '^ *+' conftest.er1 >conftest.err
26670  rm -f conftest.er1
26671  cat conftest.err >&5
26672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673  (exit $ac_status); } &&
26674	 { ac_try='test -z "$ac_c_werror_flag"
26675			 || test ! -s conftest.err'
26676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677  (eval $ac_try) 2>&5
26678  ac_status=$?
26679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680  (exit $ac_status); }; } &&
26681	 { ac_try='test -s conftest.$ac_objext'
26682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683  (eval $ac_try) 2>&5
26684  ac_status=$?
26685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686  (exit $ac_status); }; }; then
26687  ac_cv_header_stdc=yes
26688else
26689  echo "$as_me: failed program was:" >&5
26690sed 's/^/| /' conftest.$ac_ext >&5
26691
26692ac_cv_header_stdc=no
26693fi
26694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26695
26696if test $ac_cv_header_stdc = yes; then
26697  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26698  cat >conftest.$ac_ext <<_ACEOF
26699/* confdefs.h.  */
26700_ACEOF
26701cat confdefs.h >>conftest.$ac_ext
26702cat >>conftest.$ac_ext <<_ACEOF
26703/* end confdefs.h.  */
26704#include <string.h>
26705
26706_ACEOF
26707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26708  $EGREP "memchr" >/dev/null 2>&1; then
26709  :
26710else
26711  ac_cv_header_stdc=no
26712fi
26713rm -f conftest*
26714
26715fi
26716
26717if test $ac_cv_header_stdc = yes; then
26718  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26719  cat >conftest.$ac_ext <<_ACEOF
26720/* confdefs.h.  */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h.  */
26725#include <stdlib.h>
26726
26727_ACEOF
26728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26729  $EGREP "free" >/dev/null 2>&1; then
26730  :
26731else
26732  ac_cv_header_stdc=no
26733fi
26734rm -f conftest*
26735
26736fi
26737
26738if test $ac_cv_header_stdc = yes; then
26739  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26740  if test "$cross_compiling" = yes; then
26741  :
26742else
26743  cat >conftest.$ac_ext <<_ACEOF
26744/* confdefs.h.  */
26745_ACEOF
26746cat confdefs.h >>conftest.$ac_ext
26747cat >>conftest.$ac_ext <<_ACEOF
26748/* end confdefs.h.  */
26749#include <ctype.h>
26750#if ((' ' & 0x0FF) == 0x020)
26751# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26752# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26753#else
26754# define ISLOWER(c) \
26755		   (('a' <= (c) && (c) <= 'i') \
26756		     || ('j' <= (c) && (c) <= 'r') \
26757		     || ('s' <= (c) && (c) <= 'z'))
26758# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26759#endif
26760
26761#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26762int
26763main ()
26764{
26765  int i;
26766  for (i = 0; i < 256; i++)
26767    if (XOR (islower (i), ISLOWER (i))
26768	|| toupper (i) != TOUPPER (i))
26769      exit(2);
26770  exit (0);
26771}
26772_ACEOF
26773rm -f conftest$ac_exeext
26774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26775  (eval $ac_link) 2>&5
26776  ac_status=$?
26777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780  (eval $ac_try) 2>&5
26781  ac_status=$?
26782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783  (exit $ac_status); }; }; then
26784  :
26785else
26786  echo "$as_me: program exited with status $ac_status" >&5
26787echo "$as_me: failed program was:" >&5
26788sed 's/^/| /' conftest.$ac_ext >&5
26789
26790( exit $ac_status )
26791ac_cv_header_stdc=no
26792fi
26793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26794fi
26795fi
26796fi
26797echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26798echo "${ECHO_T}$ac_cv_header_stdc" >&6
26799if test $ac_cv_header_stdc = yes; then
26800
26801cat >>confdefs.h <<\_ACEOF
26802#define STDC_HEADERS 1
26803_ACEOF
26804
26805fi
26806
26807echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26808echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26809if test "${ac_cv_header_sys_wait_h+set}" = set; then
26810  echo $ECHO_N "(cached) $ECHO_C" >&6
26811else
26812  cat >conftest.$ac_ext <<_ACEOF
26813/* confdefs.h.  */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h.  */
26818#include <sys/types.h>
26819#include <sys/wait.h>
26820#ifndef WEXITSTATUS
26821# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26822#endif
26823#ifndef WIFEXITED
26824# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26825#endif
26826
26827int
26828main ()
26829{
26830  int s;
26831  wait (&s);
26832  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26833  ;
26834  return 0;
26835}
26836_ACEOF
26837rm -f conftest.$ac_objext
26838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26839  (eval $ac_compile) 2>conftest.er1
26840  ac_status=$?
26841  grep -v '^ *+' conftest.er1 >conftest.err
26842  rm -f conftest.er1
26843  cat conftest.err >&5
26844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845  (exit $ac_status); } &&
26846	 { ac_try='test -z "$ac_c_werror_flag"
26847			 || test ! -s conftest.err'
26848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849  (eval $ac_try) 2>&5
26850  ac_status=$?
26851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852  (exit $ac_status); }; } &&
26853	 { ac_try='test -s conftest.$ac_objext'
26854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855  (eval $ac_try) 2>&5
26856  ac_status=$?
26857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858  (exit $ac_status); }; }; then
26859  ac_cv_header_sys_wait_h=yes
26860else
26861  echo "$as_me: failed program was:" >&5
26862sed 's/^/| /' conftest.$ac_ext >&5
26863
26864ac_cv_header_sys_wait_h=no
26865fi
26866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26867fi
26868echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26869echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26870if test $ac_cv_header_sys_wait_h = yes; then
26871
26872cat >>confdefs.h <<\_ACEOF
26873#define HAVE_SYS_WAIT_H 1
26874_ACEOF
26875
26876fi
26877
26878echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26879echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26880if test "${ac_cv_header_time+set}" = set; then
26881  echo $ECHO_N "(cached) $ECHO_C" >&6
26882else
26883  cat >conftest.$ac_ext <<_ACEOF
26884/* confdefs.h.  */
26885_ACEOF
26886cat confdefs.h >>conftest.$ac_ext
26887cat >>conftest.$ac_ext <<_ACEOF
26888/* end confdefs.h.  */
26889#include <sys/types.h>
26890#include <sys/time.h>
26891#include <time.h>
26892
26893int
26894main ()
26895{
26896if ((struct tm *) 0)
26897return 0;
26898  ;
26899  return 0;
26900}
26901_ACEOF
26902rm -f conftest.$ac_objext
26903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26904  (eval $ac_compile) 2>conftest.er1
26905  ac_status=$?
26906  grep -v '^ *+' conftest.er1 >conftest.err
26907  rm -f conftest.er1
26908  cat conftest.err >&5
26909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910  (exit $ac_status); } &&
26911	 { ac_try='test -z "$ac_c_werror_flag"
26912			 || test ! -s conftest.err'
26913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914  (eval $ac_try) 2>&5
26915  ac_status=$?
26916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917  (exit $ac_status); }; } &&
26918	 { ac_try='test -s conftest.$ac_objext'
26919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920  (eval $ac_try) 2>&5
26921  ac_status=$?
26922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923  (exit $ac_status); }; }; then
26924  ac_cv_header_time=yes
26925else
26926  echo "$as_me: failed program was:" >&5
26927sed 's/^/| /' conftest.$ac_ext >&5
26928
26929ac_cv_header_time=no
26930fi
26931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26932fi
26933echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26934echo "${ECHO_T}$ac_cv_header_time" >&6
26935if test $ac_cv_header_time = yes; then
26936
26937cat >>confdefs.h <<\_ACEOF
26938#define TIME_WITH_SYS_TIME 1
26939_ACEOF
26940
26941fi
26942
26943
26944
26945
26946
26947
26948
26949
26950for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26951do
26952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26953if eval "test \"\${$as_ac_Header+set}\" = set"; then
26954  echo "$as_me:$LINENO: checking for $ac_header" >&5
26955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26956if eval "test \"\${$as_ac_Header+set}\" = set"; then
26957  echo $ECHO_N "(cached) $ECHO_C" >&6
26958fi
26959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26961else
26962  # Is the header compilable?
26963echo "$as_me:$LINENO: checking $ac_header usability" >&5
26964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26965cat >conftest.$ac_ext <<_ACEOF
26966/* confdefs.h.  */
26967_ACEOF
26968cat confdefs.h >>conftest.$ac_ext
26969cat >>conftest.$ac_ext <<_ACEOF
26970/* end confdefs.h.  */
26971$ac_includes_default
26972#include <$ac_header>
26973_ACEOF
26974rm -f conftest.$ac_objext
26975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26976  (eval $ac_compile) 2>conftest.er1
26977  ac_status=$?
26978  grep -v '^ *+' conftest.er1 >conftest.err
26979  rm -f conftest.er1
26980  cat conftest.err >&5
26981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982  (exit $ac_status); } &&
26983	 { ac_try='test -z "$ac_c_werror_flag"
26984			 || test ! -s conftest.err'
26985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986  (eval $ac_try) 2>&5
26987  ac_status=$?
26988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989  (exit $ac_status); }; } &&
26990	 { ac_try='test -s conftest.$ac_objext'
26991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992  (eval $ac_try) 2>&5
26993  ac_status=$?
26994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995  (exit $ac_status); }; }; then
26996  ac_header_compiler=yes
26997else
26998  echo "$as_me: failed program was:" >&5
26999sed 's/^/| /' conftest.$ac_ext >&5
27000
27001ac_header_compiler=no
27002fi
27003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27005echo "${ECHO_T}$ac_header_compiler" >&6
27006
27007# Is the header present?
27008echo "$as_me:$LINENO: checking $ac_header presence" >&5
27009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27010cat >conftest.$ac_ext <<_ACEOF
27011/* confdefs.h.  */
27012_ACEOF
27013cat confdefs.h >>conftest.$ac_ext
27014cat >>conftest.$ac_ext <<_ACEOF
27015/* end confdefs.h.  */
27016#include <$ac_header>
27017_ACEOF
27018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27019  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27020  ac_status=$?
27021  grep -v '^ *+' conftest.er1 >conftest.err
27022  rm -f conftest.er1
27023  cat conftest.err >&5
27024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025  (exit $ac_status); } >/dev/null; then
27026  if test -s conftest.err; then
27027    ac_cpp_err=$ac_c_preproc_warn_flag
27028    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27029  else
27030    ac_cpp_err=
27031  fi
27032else
27033  ac_cpp_err=yes
27034fi
27035if test -z "$ac_cpp_err"; then
27036  ac_header_preproc=yes
27037else
27038  echo "$as_me: failed program was:" >&5
27039sed 's/^/| /' conftest.$ac_ext >&5
27040
27041  ac_header_preproc=no
27042fi
27043rm -f conftest.err conftest.$ac_ext
27044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27045echo "${ECHO_T}$ac_header_preproc" >&6
27046
27047# So?  What about this header?
27048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27049  yes:no: )
27050    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27052    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27054    ac_header_preproc=yes
27055    ;;
27056  no:yes:* )
27057    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27059    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27060echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27061    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27063    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27064echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27065    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27067    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27069    (
27070      cat <<\_ASBOX
27071## ----------------------------------- ##
27072## Report this to llvmbugs@cs.uiuc.edu ##
27073## ----------------------------------- ##
27074_ASBOX
27075    ) |
27076      sed "s/^/$as_me: WARNING:     /" >&2
27077    ;;
27078esac
27079echo "$as_me:$LINENO: checking for $ac_header" >&5
27080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27081if eval "test \"\${$as_ac_Header+set}\" = set"; then
27082  echo $ECHO_N "(cached) $ECHO_C" >&6
27083else
27084  eval "$as_ac_Header=\$ac_header_preproc"
27085fi
27086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27088
27089fi
27090if test `eval echo '${'$as_ac_Header'}'` = yes; then
27091  cat >>confdefs.h <<_ACEOF
27092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27093_ACEOF
27094
27095fi
27096
27097done
27098
27099
27100
27101
27102
27103
27104
27105for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27106do
27107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27108if eval "test \"\${$as_ac_Header+set}\" = set"; then
27109  echo "$as_me:$LINENO: checking for $ac_header" >&5
27110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27111if eval "test \"\${$as_ac_Header+set}\" = set"; then
27112  echo $ECHO_N "(cached) $ECHO_C" >&6
27113fi
27114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27116else
27117  # Is the header compilable?
27118echo "$as_me:$LINENO: checking $ac_header usability" >&5
27119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h.  */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h.  */
27126$ac_includes_default
27127#include <$ac_header>
27128_ACEOF
27129rm -f conftest.$ac_objext
27130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27131  (eval $ac_compile) 2>conftest.er1
27132  ac_status=$?
27133  grep -v '^ *+' conftest.er1 >conftest.err
27134  rm -f conftest.er1
27135  cat conftest.err >&5
27136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137  (exit $ac_status); } &&
27138	 { ac_try='test -z "$ac_c_werror_flag"
27139			 || test ! -s conftest.err'
27140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141  (eval $ac_try) 2>&5
27142  ac_status=$?
27143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144  (exit $ac_status); }; } &&
27145	 { ac_try='test -s conftest.$ac_objext'
27146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147  (eval $ac_try) 2>&5
27148  ac_status=$?
27149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150  (exit $ac_status); }; }; then
27151  ac_header_compiler=yes
27152else
27153  echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
27156ac_header_compiler=no
27157fi
27158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27160echo "${ECHO_T}$ac_header_compiler" >&6
27161
27162# Is the header present?
27163echo "$as_me:$LINENO: checking $ac_header presence" >&5
27164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27165cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h.  */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h.  */
27171#include <$ac_header>
27172_ACEOF
27173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27174  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27175  ac_status=$?
27176  grep -v '^ *+' conftest.er1 >conftest.err
27177  rm -f conftest.er1
27178  cat conftest.err >&5
27179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180  (exit $ac_status); } >/dev/null; then
27181  if test -s conftest.err; then
27182    ac_cpp_err=$ac_c_preproc_warn_flag
27183    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27184  else
27185    ac_cpp_err=
27186  fi
27187else
27188  ac_cpp_err=yes
27189fi
27190if test -z "$ac_cpp_err"; then
27191  ac_header_preproc=yes
27192else
27193  echo "$as_me: failed program was:" >&5
27194sed 's/^/| /' conftest.$ac_ext >&5
27195
27196  ac_header_preproc=no
27197fi
27198rm -f conftest.err conftest.$ac_ext
27199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27200echo "${ECHO_T}$ac_header_preproc" >&6
27201
27202# So?  What about this header?
27203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27204  yes:no: )
27205    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27209    ac_header_preproc=yes
27210    ;;
27211  no:yes:* )
27212    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27214    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27215echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27216    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27218    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27219echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27220    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27222    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27224    (
27225      cat <<\_ASBOX
27226## ----------------------------------- ##
27227## Report this to llvmbugs@cs.uiuc.edu ##
27228## ----------------------------------- ##
27229_ASBOX
27230    ) |
27231      sed "s/^/$as_me: WARNING:     /" >&2
27232    ;;
27233esac
27234echo "$as_me:$LINENO: checking for $ac_header" >&5
27235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27236if eval "test \"\${$as_ac_Header+set}\" = set"; then
27237  echo $ECHO_N "(cached) $ECHO_C" >&6
27238else
27239  eval "$as_ac_Header=\$ac_header_preproc"
27240fi
27241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27243
27244fi
27245if test `eval echo '${'$as_ac_Header'}'` = yes; then
27246  cat >>confdefs.h <<_ACEOF
27247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27248_ACEOF
27249
27250fi
27251
27252done
27253
27254
27255
27256
27257
27258
27259for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27260do
27261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27262if eval "test \"\${$as_ac_Header+set}\" = set"; then
27263  echo "$as_me:$LINENO: checking for $ac_header" >&5
27264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27265if eval "test \"\${$as_ac_Header+set}\" = set"; then
27266  echo $ECHO_N "(cached) $ECHO_C" >&6
27267fi
27268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27270else
27271  # Is the header compilable?
27272echo "$as_me:$LINENO: checking $ac_header usability" >&5
27273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27274cat >conftest.$ac_ext <<_ACEOF
27275/* confdefs.h.  */
27276_ACEOF
27277cat confdefs.h >>conftest.$ac_ext
27278cat >>conftest.$ac_ext <<_ACEOF
27279/* end confdefs.h.  */
27280$ac_includes_default
27281#include <$ac_header>
27282_ACEOF
27283rm -f conftest.$ac_objext
27284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27285  (eval $ac_compile) 2>conftest.er1
27286  ac_status=$?
27287  grep -v '^ *+' conftest.er1 >conftest.err
27288  rm -f conftest.er1
27289  cat conftest.err >&5
27290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291  (exit $ac_status); } &&
27292	 { ac_try='test -z "$ac_c_werror_flag"
27293			 || test ! -s conftest.err'
27294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295  (eval $ac_try) 2>&5
27296  ac_status=$?
27297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298  (exit $ac_status); }; } &&
27299	 { ac_try='test -s conftest.$ac_objext'
27300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301  (eval $ac_try) 2>&5
27302  ac_status=$?
27303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304  (exit $ac_status); }; }; then
27305  ac_header_compiler=yes
27306else
27307  echo "$as_me: failed program was:" >&5
27308sed 's/^/| /' conftest.$ac_ext >&5
27309
27310ac_header_compiler=no
27311fi
27312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27314echo "${ECHO_T}$ac_header_compiler" >&6
27315
27316# Is the header present?
27317echo "$as_me:$LINENO: checking $ac_header presence" >&5
27318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27319cat >conftest.$ac_ext <<_ACEOF
27320/* confdefs.h.  */
27321_ACEOF
27322cat confdefs.h >>conftest.$ac_ext
27323cat >>conftest.$ac_ext <<_ACEOF
27324/* end confdefs.h.  */
27325#include <$ac_header>
27326_ACEOF
27327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27329  ac_status=$?
27330  grep -v '^ *+' conftest.er1 >conftest.err
27331  rm -f conftest.er1
27332  cat conftest.err >&5
27333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334  (exit $ac_status); } >/dev/null; then
27335  if test -s conftest.err; then
27336    ac_cpp_err=$ac_c_preproc_warn_flag
27337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27338  else
27339    ac_cpp_err=
27340  fi
27341else
27342  ac_cpp_err=yes
27343fi
27344if test -z "$ac_cpp_err"; then
27345  ac_header_preproc=yes
27346else
27347  echo "$as_me: failed program was:" >&5
27348sed 's/^/| /' conftest.$ac_ext >&5
27349
27350  ac_header_preproc=no
27351fi
27352rm -f conftest.err conftest.$ac_ext
27353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27354echo "${ECHO_T}$ac_header_preproc" >&6
27355
27356# So?  What about this header?
27357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27358  yes:no: )
27359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27363    ac_header_preproc=yes
27364    ;;
27365  no:yes:* )
27366    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27368    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27369echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27370    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27372    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27373echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27376    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27378    (
27379      cat <<\_ASBOX
27380## ----------------------------------- ##
27381## Report this to llvmbugs@cs.uiuc.edu ##
27382## ----------------------------------- ##
27383_ASBOX
27384    ) |
27385      sed "s/^/$as_me: WARNING:     /" >&2
27386    ;;
27387esac
27388echo "$as_me:$LINENO: checking for $ac_header" >&5
27389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27390if eval "test \"\${$as_ac_Header+set}\" = set"; then
27391  echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393  eval "$as_ac_Header=\$ac_header_preproc"
27394fi
27395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27397
27398fi
27399if test `eval echo '${'$as_ac_Header'}'` = yes; then
27400  cat >>confdefs.h <<_ACEOF
27401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27402_ACEOF
27403
27404fi
27405
27406done
27407
27408
27409
27410for ac_header in sys/types.h malloc/malloc.h
27411do
27412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27413if eval "test \"\${$as_ac_Header+set}\" = set"; then
27414  echo "$as_me:$LINENO: checking for $ac_header" >&5
27415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27416if eval "test \"\${$as_ac_Header+set}\" = set"; then
27417  echo $ECHO_N "(cached) $ECHO_C" >&6
27418fi
27419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27421else
27422  # Is the header compilable?
27423echo "$as_me:$LINENO: checking $ac_header usability" >&5
27424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27425cat >conftest.$ac_ext <<_ACEOF
27426/* confdefs.h.  */
27427_ACEOF
27428cat confdefs.h >>conftest.$ac_ext
27429cat >>conftest.$ac_ext <<_ACEOF
27430/* end confdefs.h.  */
27431$ac_includes_default
27432#include <$ac_header>
27433_ACEOF
27434rm -f conftest.$ac_objext
27435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436  (eval $ac_compile) 2>conftest.er1
27437  ac_status=$?
27438  grep -v '^ *+' conftest.er1 >conftest.err
27439  rm -f conftest.er1
27440  cat conftest.err >&5
27441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442  (exit $ac_status); } &&
27443	 { ac_try='test -z "$ac_c_werror_flag"
27444			 || test ! -s conftest.err'
27445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446  (eval $ac_try) 2>&5
27447  ac_status=$?
27448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449  (exit $ac_status); }; } &&
27450	 { ac_try='test -s conftest.$ac_objext'
27451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452  (eval $ac_try) 2>&5
27453  ac_status=$?
27454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455  (exit $ac_status); }; }; then
27456  ac_header_compiler=yes
27457else
27458  echo "$as_me: failed program was:" >&5
27459sed 's/^/| /' conftest.$ac_ext >&5
27460
27461ac_header_compiler=no
27462fi
27463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27465echo "${ECHO_T}$ac_header_compiler" >&6
27466
27467# Is the header present?
27468echo "$as_me:$LINENO: checking $ac_header presence" >&5
27469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27470cat >conftest.$ac_ext <<_ACEOF
27471/* confdefs.h.  */
27472_ACEOF
27473cat confdefs.h >>conftest.$ac_ext
27474cat >>conftest.$ac_ext <<_ACEOF
27475/* end confdefs.h.  */
27476#include <$ac_header>
27477_ACEOF
27478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27479  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27480  ac_status=$?
27481  grep -v '^ *+' conftest.er1 >conftest.err
27482  rm -f conftest.er1
27483  cat conftest.err >&5
27484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485  (exit $ac_status); } >/dev/null; then
27486  if test -s conftest.err; then
27487    ac_cpp_err=$ac_c_preproc_warn_flag
27488    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27489  else
27490    ac_cpp_err=
27491  fi
27492else
27493  ac_cpp_err=yes
27494fi
27495if test -z "$ac_cpp_err"; then
27496  ac_header_preproc=yes
27497else
27498  echo "$as_me: failed program was:" >&5
27499sed 's/^/| /' conftest.$ac_ext >&5
27500
27501  ac_header_preproc=no
27502fi
27503rm -f conftest.err conftest.$ac_ext
27504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27505echo "${ECHO_T}$ac_header_preproc" >&6
27506
27507# So?  What about this header?
27508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27509  yes:no: )
27510    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27512    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27514    ac_header_preproc=yes
27515    ;;
27516  no:yes:* )
27517    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27519    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27520echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27521    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27523    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27524echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27525    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27527    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27529    (
27530      cat <<\_ASBOX
27531## ----------------------------------- ##
27532## Report this to llvmbugs@cs.uiuc.edu ##
27533## ----------------------------------- ##
27534_ASBOX
27535    ) |
27536      sed "s/^/$as_me: WARNING:     /" >&2
27537    ;;
27538esac
27539echo "$as_me:$LINENO: checking for $ac_header" >&5
27540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27541if eval "test \"\${$as_ac_Header+set}\" = set"; then
27542  echo $ECHO_N "(cached) $ECHO_C" >&6
27543else
27544  eval "$as_ac_Header=\$ac_header_preproc"
27545fi
27546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27548
27549fi
27550if test `eval echo '${'$as_ac_Header'}'` = yes; then
27551  cat >>confdefs.h <<_ACEOF
27552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27553_ACEOF
27554
27555fi
27556
27557done
27558
27559if test "$ENABLE_THREADS" -eq 1 ; then
27560
27561for ac_header in pthread.h
27562do
27563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27564if eval "test \"\${$as_ac_Header+set}\" = set"; then
27565  echo "$as_me:$LINENO: checking for $ac_header" >&5
27566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27567if eval "test \"\${$as_ac_Header+set}\" = set"; then
27568  echo $ECHO_N "(cached) $ECHO_C" >&6
27569fi
27570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27572else
27573  # Is the header compilable?
27574echo "$as_me:$LINENO: checking $ac_header usability" >&5
27575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27576cat >conftest.$ac_ext <<_ACEOF
27577/* confdefs.h.  */
27578_ACEOF
27579cat confdefs.h >>conftest.$ac_ext
27580cat >>conftest.$ac_ext <<_ACEOF
27581/* end confdefs.h.  */
27582$ac_includes_default
27583#include <$ac_header>
27584_ACEOF
27585rm -f conftest.$ac_objext
27586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27587  (eval $ac_compile) 2>conftest.er1
27588  ac_status=$?
27589  grep -v '^ *+' conftest.er1 >conftest.err
27590  rm -f conftest.er1
27591  cat conftest.err >&5
27592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593  (exit $ac_status); } &&
27594	 { ac_try='test -z "$ac_c_werror_flag"
27595			 || test ! -s conftest.err'
27596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597  (eval $ac_try) 2>&5
27598  ac_status=$?
27599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600  (exit $ac_status); }; } &&
27601	 { ac_try='test -s conftest.$ac_objext'
27602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603  (eval $ac_try) 2>&5
27604  ac_status=$?
27605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606  (exit $ac_status); }; }; then
27607  ac_header_compiler=yes
27608else
27609  echo "$as_me: failed program was:" >&5
27610sed 's/^/| /' conftest.$ac_ext >&5
27611
27612ac_header_compiler=no
27613fi
27614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27616echo "${ECHO_T}$ac_header_compiler" >&6
27617
27618# Is the header present?
27619echo "$as_me:$LINENO: checking $ac_header presence" >&5
27620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27621cat >conftest.$ac_ext <<_ACEOF
27622/* confdefs.h.  */
27623_ACEOF
27624cat confdefs.h >>conftest.$ac_ext
27625cat >>conftest.$ac_ext <<_ACEOF
27626/* end confdefs.h.  */
27627#include <$ac_header>
27628_ACEOF
27629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27631  ac_status=$?
27632  grep -v '^ *+' conftest.er1 >conftest.err
27633  rm -f conftest.er1
27634  cat conftest.err >&5
27635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636  (exit $ac_status); } >/dev/null; then
27637  if test -s conftest.err; then
27638    ac_cpp_err=$ac_c_preproc_warn_flag
27639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27640  else
27641    ac_cpp_err=
27642  fi
27643else
27644  ac_cpp_err=yes
27645fi
27646if test -z "$ac_cpp_err"; then
27647  ac_header_preproc=yes
27648else
27649  echo "$as_me: failed program was:" >&5
27650sed 's/^/| /' conftest.$ac_ext >&5
27651
27652  ac_header_preproc=no
27653fi
27654rm -f conftest.err conftest.$ac_ext
27655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27656echo "${ECHO_T}$ac_header_preproc" >&6
27657
27658# So?  What about this header?
27659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27660  yes:no: )
27661    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27665    ac_header_preproc=yes
27666    ;;
27667  no:yes:* )
27668    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27670    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27671echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27672    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27674    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27675echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27676    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27678    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27680    (
27681      cat <<\_ASBOX
27682## ----------------------------------- ##
27683## Report this to llvmbugs@cs.uiuc.edu ##
27684## ----------------------------------- ##
27685_ASBOX
27686    ) |
27687      sed "s/^/$as_me: WARNING:     /" >&2
27688    ;;
27689esac
27690echo "$as_me:$LINENO: checking for $ac_header" >&5
27691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27692if eval "test \"\${$as_ac_Header+set}\" = set"; then
27693  echo $ECHO_N "(cached) $ECHO_C" >&6
27694else
27695  eval "$as_ac_Header=\$ac_header_preproc"
27696fi
27697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27699
27700fi
27701if test `eval echo '${'$as_ac_Header'}'` = yes; then
27702  cat >>confdefs.h <<_ACEOF
27703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27704_ACEOF
27705
27706fi
27707
27708done
27709
27710fi
27711
27712
27713echo "$as_me:$LINENO: checking for pid_t" >&5
27714echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27715if test "${ac_cv_type_pid_t+set}" = set; then
27716  echo $ECHO_N "(cached) $ECHO_C" >&6
27717else
27718  cat >conftest.$ac_ext <<_ACEOF
27719/* confdefs.h.  */
27720_ACEOF
27721cat confdefs.h >>conftest.$ac_ext
27722cat >>conftest.$ac_ext <<_ACEOF
27723/* end confdefs.h.  */
27724$ac_includes_default
27725int
27726main ()
27727{
27728if ((pid_t *) 0)
27729  return 0;
27730if (sizeof (pid_t))
27731  return 0;
27732  ;
27733  return 0;
27734}
27735_ACEOF
27736rm -f conftest.$ac_objext
27737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27738  (eval $ac_compile) 2>conftest.er1
27739  ac_status=$?
27740  grep -v '^ *+' conftest.er1 >conftest.err
27741  rm -f conftest.er1
27742  cat conftest.err >&5
27743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744  (exit $ac_status); } &&
27745	 { ac_try='test -z "$ac_c_werror_flag"
27746			 || test ! -s conftest.err'
27747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748  (eval $ac_try) 2>&5
27749  ac_status=$?
27750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751  (exit $ac_status); }; } &&
27752	 { ac_try='test -s conftest.$ac_objext'
27753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754  (eval $ac_try) 2>&5
27755  ac_status=$?
27756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757  (exit $ac_status); }; }; then
27758  ac_cv_type_pid_t=yes
27759else
27760  echo "$as_me: failed program was:" >&5
27761sed 's/^/| /' conftest.$ac_ext >&5
27762
27763ac_cv_type_pid_t=no
27764fi
27765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27766fi
27767echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27768echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27769if test $ac_cv_type_pid_t = yes; then
27770  :
27771else
27772
27773cat >>confdefs.h <<_ACEOF
27774#define pid_t int
27775_ACEOF
27776
27777fi
27778
27779echo "$as_me:$LINENO: checking for size_t" >&5
27780echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27781if test "${ac_cv_type_size_t+set}" = set; then
27782  echo $ECHO_N "(cached) $ECHO_C" >&6
27783else
27784  cat >conftest.$ac_ext <<_ACEOF
27785/* confdefs.h.  */
27786_ACEOF
27787cat confdefs.h >>conftest.$ac_ext
27788cat >>conftest.$ac_ext <<_ACEOF
27789/* end confdefs.h.  */
27790$ac_includes_default
27791int
27792main ()
27793{
27794if ((size_t *) 0)
27795  return 0;
27796if (sizeof (size_t))
27797  return 0;
27798  ;
27799  return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext
27803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27804  (eval $ac_compile) 2>conftest.er1
27805  ac_status=$?
27806  grep -v '^ *+' conftest.er1 >conftest.err
27807  rm -f conftest.er1
27808  cat conftest.err >&5
27809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810  (exit $ac_status); } &&
27811	 { ac_try='test -z "$ac_c_werror_flag"
27812			 || test ! -s conftest.err'
27813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814  (eval $ac_try) 2>&5
27815  ac_status=$?
27816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817  (exit $ac_status); }; } &&
27818	 { ac_try='test -s conftest.$ac_objext'
27819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820  (eval $ac_try) 2>&5
27821  ac_status=$?
27822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823  (exit $ac_status); }; }; then
27824  ac_cv_type_size_t=yes
27825else
27826  echo "$as_me: failed program was:" >&5
27827sed 's/^/| /' conftest.$ac_ext >&5
27828
27829ac_cv_type_size_t=no
27830fi
27831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27832fi
27833echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27834echo "${ECHO_T}$ac_cv_type_size_t" >&6
27835if test $ac_cv_type_size_t = yes; then
27836  :
27837else
27838
27839cat >>confdefs.h <<_ACEOF
27840#define size_t unsigned
27841_ACEOF
27842
27843fi
27844
27845echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27846echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27847if test "${ac_cv_type_signal+set}" = set; then
27848  echo $ECHO_N "(cached) $ECHO_C" >&6
27849else
27850  cat >conftest.$ac_ext <<_ACEOF
27851/* confdefs.h.  */
27852_ACEOF
27853cat confdefs.h >>conftest.$ac_ext
27854cat >>conftest.$ac_ext <<_ACEOF
27855/* end confdefs.h.  */
27856#include <sys/types.h>
27857#include <signal.h>
27858#ifdef signal
27859# undef signal
27860#endif
27861#ifdef __cplusplus
27862extern "C" void (*signal (int, void (*)(int)))(int);
27863#else
27864void (*signal ()) ();
27865#endif
27866
27867int
27868main ()
27869{
27870int i;
27871  ;
27872  return 0;
27873}
27874_ACEOF
27875rm -f conftest.$ac_objext
27876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27877  (eval $ac_compile) 2>conftest.er1
27878  ac_status=$?
27879  grep -v '^ *+' conftest.er1 >conftest.err
27880  rm -f conftest.er1
27881  cat conftest.err >&5
27882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883  (exit $ac_status); } &&
27884	 { ac_try='test -z "$ac_c_werror_flag"
27885			 || test ! -s conftest.err'
27886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887  (eval $ac_try) 2>&5
27888  ac_status=$?
27889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890  (exit $ac_status); }; } &&
27891	 { ac_try='test -s conftest.$ac_objext'
27892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893  (eval $ac_try) 2>&5
27894  ac_status=$?
27895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896  (exit $ac_status); }; }; then
27897  ac_cv_type_signal=void
27898else
27899  echo "$as_me: failed program was:" >&5
27900sed 's/^/| /' conftest.$ac_ext >&5
27901
27902ac_cv_type_signal=int
27903fi
27904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27905fi
27906echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27907echo "${ECHO_T}$ac_cv_type_signal" >&6
27908
27909cat >>confdefs.h <<_ACEOF
27910#define RETSIGTYPE $ac_cv_type_signal
27911_ACEOF
27912
27913
27914echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27915echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27916if test "${ac_cv_struct_tm+set}" = set; then
27917  echo $ECHO_N "(cached) $ECHO_C" >&6
27918else
27919  cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h.  */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h.  */
27925#include <sys/types.h>
27926#include <time.h>
27927
27928int
27929main ()
27930{
27931struct tm *tp; tp->tm_sec;
27932  ;
27933  return 0;
27934}
27935_ACEOF
27936rm -f conftest.$ac_objext
27937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27938  (eval $ac_compile) 2>conftest.er1
27939  ac_status=$?
27940  grep -v '^ *+' conftest.er1 >conftest.err
27941  rm -f conftest.er1
27942  cat conftest.err >&5
27943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944  (exit $ac_status); } &&
27945	 { ac_try='test -z "$ac_c_werror_flag"
27946			 || test ! -s conftest.err'
27947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948  (eval $ac_try) 2>&5
27949  ac_status=$?
27950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951  (exit $ac_status); }; } &&
27952	 { ac_try='test -s conftest.$ac_objext'
27953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954  (eval $ac_try) 2>&5
27955  ac_status=$?
27956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957  (exit $ac_status); }; }; then
27958  ac_cv_struct_tm=time.h
27959else
27960  echo "$as_me: failed program was:" >&5
27961sed 's/^/| /' conftest.$ac_ext >&5
27962
27963ac_cv_struct_tm=sys/time.h
27964fi
27965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27966fi
27967echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27968echo "${ECHO_T}$ac_cv_struct_tm" >&6
27969if test $ac_cv_struct_tm = sys/time.h; then
27970
27971cat >>confdefs.h <<\_ACEOF
27972#define TM_IN_SYS_TIME 1
27973_ACEOF
27974
27975fi
27976
27977echo "$as_me:$LINENO: checking for int64_t" >&5
27978echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27979if test "${ac_cv_type_int64_t+set}" = set; then
27980  echo $ECHO_N "(cached) $ECHO_C" >&6
27981else
27982  cat >conftest.$ac_ext <<_ACEOF
27983/* confdefs.h.  */
27984_ACEOF
27985cat confdefs.h >>conftest.$ac_ext
27986cat >>conftest.$ac_ext <<_ACEOF
27987/* end confdefs.h.  */
27988$ac_includes_default
27989int
27990main ()
27991{
27992if ((int64_t *) 0)
27993  return 0;
27994if (sizeof (int64_t))
27995  return 0;
27996  ;
27997  return 0;
27998}
27999_ACEOF
28000rm -f conftest.$ac_objext
28001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28002  (eval $ac_compile) 2>conftest.er1
28003  ac_status=$?
28004  grep -v '^ *+' conftest.er1 >conftest.err
28005  rm -f conftest.er1
28006  cat conftest.err >&5
28007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008  (exit $ac_status); } &&
28009	 { ac_try='test -z "$ac_c_werror_flag"
28010			 || test ! -s conftest.err'
28011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012  (eval $ac_try) 2>&5
28013  ac_status=$?
28014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015  (exit $ac_status); }; } &&
28016	 { ac_try='test -s conftest.$ac_objext'
28017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018  (eval $ac_try) 2>&5
28019  ac_status=$?
28020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021  (exit $ac_status); }; }; then
28022  ac_cv_type_int64_t=yes
28023else
28024  echo "$as_me: failed program was:" >&5
28025sed 's/^/| /' conftest.$ac_ext >&5
28026
28027ac_cv_type_int64_t=no
28028fi
28029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28030fi
28031echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28032echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28033if test $ac_cv_type_int64_t = yes; then
28034
28035cat >>confdefs.h <<_ACEOF
28036#define HAVE_INT64_T 1
28037_ACEOF
28038
28039
28040else
28041  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28042echo "$as_me: error: Type int64_t required but not found" >&2;}
28043   { (exit 1); exit 1; }; }
28044fi
28045
28046echo "$as_me:$LINENO: checking for uint64_t" >&5
28047echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28048if test "${ac_cv_type_uint64_t+set}" = set; then
28049  echo $ECHO_N "(cached) $ECHO_C" >&6
28050else
28051  cat >conftest.$ac_ext <<_ACEOF
28052/* confdefs.h.  */
28053_ACEOF
28054cat confdefs.h >>conftest.$ac_ext
28055cat >>conftest.$ac_ext <<_ACEOF
28056/* end confdefs.h.  */
28057$ac_includes_default
28058int
28059main ()
28060{
28061if ((uint64_t *) 0)
28062  return 0;
28063if (sizeof (uint64_t))
28064  return 0;
28065  ;
28066  return 0;
28067}
28068_ACEOF
28069rm -f conftest.$ac_objext
28070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28071  (eval $ac_compile) 2>conftest.er1
28072  ac_status=$?
28073  grep -v '^ *+' conftest.er1 >conftest.err
28074  rm -f conftest.er1
28075  cat conftest.err >&5
28076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077  (exit $ac_status); } &&
28078	 { ac_try='test -z "$ac_c_werror_flag"
28079			 || test ! -s conftest.err'
28080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081  (eval $ac_try) 2>&5
28082  ac_status=$?
28083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084  (exit $ac_status); }; } &&
28085	 { ac_try='test -s conftest.$ac_objext'
28086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28087  (eval $ac_try) 2>&5
28088  ac_status=$?
28089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090  (exit $ac_status); }; }; then
28091  ac_cv_type_uint64_t=yes
28092else
28093  echo "$as_me: failed program was:" >&5
28094sed 's/^/| /' conftest.$ac_ext >&5
28095
28096ac_cv_type_uint64_t=no
28097fi
28098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28099fi
28100echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28101echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28102if test $ac_cv_type_uint64_t = yes; then
28103
28104cat >>confdefs.h <<_ACEOF
28105#define HAVE_UINT64_T 1
28106_ACEOF
28107
28108
28109else
28110  echo "$as_me:$LINENO: checking for u_int64_t" >&5
28111echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28112if test "${ac_cv_type_u_int64_t+set}" = set; then
28113  echo $ECHO_N "(cached) $ECHO_C" >&6
28114else
28115  cat >conftest.$ac_ext <<_ACEOF
28116/* confdefs.h.  */
28117_ACEOF
28118cat confdefs.h >>conftest.$ac_ext
28119cat >>conftest.$ac_ext <<_ACEOF
28120/* end confdefs.h.  */
28121$ac_includes_default
28122int
28123main ()
28124{
28125if ((u_int64_t *) 0)
28126  return 0;
28127if (sizeof (u_int64_t))
28128  return 0;
28129  ;
28130  return 0;
28131}
28132_ACEOF
28133rm -f conftest.$ac_objext
28134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135  (eval $ac_compile) 2>conftest.er1
28136  ac_status=$?
28137  grep -v '^ *+' conftest.er1 >conftest.err
28138  rm -f conftest.er1
28139  cat conftest.err >&5
28140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141  (exit $ac_status); } &&
28142	 { ac_try='test -z "$ac_c_werror_flag"
28143			 || test ! -s conftest.err'
28144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145  (eval $ac_try) 2>&5
28146  ac_status=$?
28147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148  (exit $ac_status); }; } &&
28149	 { ac_try='test -s conftest.$ac_objext'
28150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151  (eval $ac_try) 2>&5
28152  ac_status=$?
28153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154  (exit $ac_status); }; }; then
28155  ac_cv_type_u_int64_t=yes
28156else
28157  echo "$as_me: failed program was:" >&5
28158sed 's/^/| /' conftest.$ac_ext >&5
28159
28160ac_cv_type_u_int64_t=no
28161fi
28162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28163fi
28164echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28165echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28166if test $ac_cv_type_u_int64_t = yes; then
28167
28168cat >>confdefs.h <<_ACEOF
28169#define HAVE_U_INT64_T 1
28170_ACEOF
28171
28172
28173else
28174  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28175echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28176   { (exit 1); exit 1; }; }
28177fi
28178
28179fi
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28191do
28192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28193echo "$as_me:$LINENO: checking for $ac_func" >&5
28194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28195if eval "test \"\${$as_ac_var+set}\" = set"; then
28196  echo $ECHO_N "(cached) $ECHO_C" >&6
28197else
28198  cat >conftest.$ac_ext <<_ACEOF
28199/* confdefs.h.  */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h.  */
28204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28205   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28206#define $ac_func innocuous_$ac_func
28207
28208/* System header to define __stub macros and hopefully few prototypes,
28209    which can conflict with char $ac_func (); below.
28210    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28211    <limits.h> exists even on freestanding compilers.  */
28212
28213#ifdef __STDC__
28214# include <limits.h>
28215#else
28216# include <assert.h>
28217#endif
28218
28219#undef $ac_func
28220
28221/* Override any gcc2 internal prototype to avoid an error.  */
28222#ifdef __cplusplus
28223extern "C"
28224{
28225#endif
28226/* We use char because int might match the return type of a gcc2
28227   builtin and then its argument prototype would still apply.  */
28228char $ac_func ();
28229/* The GNU C library defines this for functions which it implements
28230    to always fail with ENOSYS.  Some functions are actually named
28231    something starting with __ and the normal name is an alias.  */
28232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28233choke me
28234#else
28235char (*f) () = $ac_func;
28236#endif
28237#ifdef __cplusplus
28238}
28239#endif
28240
28241int
28242main ()
28243{
28244return f != $ac_func;
28245  ;
28246  return 0;
28247}
28248_ACEOF
28249rm -f conftest.$ac_objext conftest$ac_exeext
28250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251  (eval $ac_link) 2>conftest.er1
28252  ac_status=$?
28253  grep -v '^ *+' conftest.er1 >conftest.err
28254  rm -f conftest.er1
28255  cat conftest.err >&5
28256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257  (exit $ac_status); } &&
28258	 { ac_try='test -z "$ac_c_werror_flag"
28259			 || test ! -s conftest.err'
28260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261  (eval $ac_try) 2>&5
28262  ac_status=$?
28263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264  (exit $ac_status); }; } &&
28265	 { ac_try='test -s conftest$ac_exeext'
28266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267  (eval $ac_try) 2>&5
28268  ac_status=$?
28269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270  (exit $ac_status); }; }; then
28271  eval "$as_ac_var=yes"
28272else
28273  echo "$as_me: failed program was:" >&5
28274sed 's/^/| /' conftest.$ac_ext >&5
28275
28276eval "$as_ac_var=no"
28277fi
28278rm -f conftest.err conftest.$ac_objext \
28279      conftest$ac_exeext conftest.$ac_ext
28280fi
28281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28283if test `eval echo '${'$as_ac_var'}'` = yes; then
28284  cat >>confdefs.h <<_ACEOF
28285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28286_ACEOF
28287
28288fi
28289done
28290
28291
28292
28293
28294
28295
28296
28297for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28298do
28299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300echo "$as_me:$LINENO: checking for $ac_func" >&5
28301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302if eval "test \"\${$as_ac_var+set}\" = set"; then
28303  echo $ECHO_N "(cached) $ECHO_C" >&6
28304else
28305  cat >conftest.$ac_ext <<_ACEOF
28306/* confdefs.h.  */
28307_ACEOF
28308cat confdefs.h >>conftest.$ac_ext
28309cat >>conftest.$ac_ext <<_ACEOF
28310/* end confdefs.h.  */
28311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28312   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28313#define $ac_func innocuous_$ac_func
28314
28315/* System header to define __stub macros and hopefully few prototypes,
28316    which can conflict with char $ac_func (); below.
28317    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28318    <limits.h> exists even on freestanding compilers.  */
28319
28320#ifdef __STDC__
28321# include <limits.h>
28322#else
28323# include <assert.h>
28324#endif
28325
28326#undef $ac_func
28327
28328/* Override any gcc2 internal prototype to avoid an error.  */
28329#ifdef __cplusplus
28330extern "C"
28331{
28332#endif
28333/* We use char because int might match the return type of a gcc2
28334   builtin and then its argument prototype would still apply.  */
28335char $ac_func ();
28336/* The GNU C library defines this for functions which it implements
28337    to always fail with ENOSYS.  Some functions are actually named
28338    something starting with __ and the normal name is an alias.  */
28339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28340choke me
28341#else
28342char (*f) () = $ac_func;
28343#endif
28344#ifdef __cplusplus
28345}
28346#endif
28347
28348int
28349main ()
28350{
28351return f != $ac_func;
28352  ;
28353  return 0;
28354}
28355_ACEOF
28356rm -f conftest.$ac_objext conftest$ac_exeext
28357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28358  (eval $ac_link) 2>conftest.er1
28359  ac_status=$?
28360  grep -v '^ *+' conftest.er1 >conftest.err
28361  rm -f conftest.er1
28362  cat conftest.err >&5
28363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364  (exit $ac_status); } &&
28365	 { ac_try='test -z "$ac_c_werror_flag"
28366			 || test ! -s conftest.err'
28367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28368  (eval $ac_try) 2>&5
28369  ac_status=$?
28370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371  (exit $ac_status); }; } &&
28372	 { ac_try='test -s conftest$ac_exeext'
28373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374  (eval $ac_try) 2>&5
28375  ac_status=$?
28376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377  (exit $ac_status); }; }; then
28378  eval "$as_ac_var=yes"
28379else
28380  echo "$as_me: failed program was:" >&5
28381sed 's/^/| /' conftest.$ac_ext >&5
28382
28383eval "$as_ac_var=no"
28384fi
28385rm -f conftest.err conftest.$ac_objext \
28386      conftest$ac_exeext conftest.$ac_ext
28387fi
28388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28389echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28390if test `eval echo '${'$as_ac_var'}'` = yes; then
28391  cat >>confdefs.h <<_ACEOF
28392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28393_ACEOF
28394
28395fi
28396done
28397
28398
28399
28400
28401
28402
28403
28404
28405for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28406do
28407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28408echo "$as_me:$LINENO: checking for $ac_func" >&5
28409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28410if eval "test \"\${$as_ac_var+set}\" = set"; then
28411  echo $ECHO_N "(cached) $ECHO_C" >&6
28412else
28413  cat >conftest.$ac_ext <<_ACEOF
28414/* confdefs.h.  */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h.  */
28419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28420   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28421#define $ac_func innocuous_$ac_func
28422
28423/* System header to define __stub macros and hopefully few prototypes,
28424    which can conflict with char $ac_func (); below.
28425    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28426    <limits.h> exists even on freestanding compilers.  */
28427
28428#ifdef __STDC__
28429# include <limits.h>
28430#else
28431# include <assert.h>
28432#endif
28433
28434#undef $ac_func
28435
28436/* Override any gcc2 internal prototype to avoid an error.  */
28437#ifdef __cplusplus
28438extern "C"
28439{
28440#endif
28441/* We use char because int might match the return type of a gcc2
28442   builtin and then its argument prototype would still apply.  */
28443char $ac_func ();
28444/* The GNU C library defines this for functions which it implements
28445    to always fail with ENOSYS.  Some functions are actually named
28446    something starting with __ and the normal name is an alias.  */
28447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28448choke me
28449#else
28450char (*f) () = $ac_func;
28451#endif
28452#ifdef __cplusplus
28453}
28454#endif
28455
28456int
28457main ()
28458{
28459return f != $ac_func;
28460  ;
28461  return 0;
28462}
28463_ACEOF
28464rm -f conftest.$ac_objext conftest$ac_exeext
28465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28466  (eval $ac_link) 2>conftest.er1
28467  ac_status=$?
28468  grep -v '^ *+' conftest.er1 >conftest.err
28469  rm -f conftest.er1
28470  cat conftest.err >&5
28471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472  (exit $ac_status); } &&
28473	 { ac_try='test -z "$ac_c_werror_flag"
28474			 || test ! -s conftest.err'
28475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476  (eval $ac_try) 2>&5
28477  ac_status=$?
28478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479  (exit $ac_status); }; } &&
28480	 { ac_try='test -s conftest$ac_exeext'
28481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482  (eval $ac_try) 2>&5
28483  ac_status=$?
28484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485  (exit $ac_status); }; }; then
28486  eval "$as_ac_var=yes"
28487else
28488  echo "$as_me: failed program was:" >&5
28489sed 's/^/| /' conftest.$ac_ext >&5
28490
28491eval "$as_ac_var=no"
28492fi
28493rm -f conftest.err conftest.$ac_objext \
28494      conftest$ac_exeext conftest.$ac_ext
28495fi
28496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28497echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28498if test `eval echo '${'$as_ac_var'}'` = yes; then
28499  cat >>confdefs.h <<_ACEOF
28500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28501_ACEOF
28502
28503fi
28504done
28505
28506
28507
28508
28509
28510for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28511do
28512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28513echo "$as_me:$LINENO: checking for $ac_func" >&5
28514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28515if eval "test \"\${$as_ac_var+set}\" = set"; then
28516  echo $ECHO_N "(cached) $ECHO_C" >&6
28517else
28518  cat >conftest.$ac_ext <<_ACEOF
28519/* confdefs.h.  */
28520_ACEOF
28521cat confdefs.h >>conftest.$ac_ext
28522cat >>conftest.$ac_ext <<_ACEOF
28523/* end confdefs.h.  */
28524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28525   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28526#define $ac_func innocuous_$ac_func
28527
28528/* System header to define __stub macros and hopefully few prototypes,
28529    which can conflict with char $ac_func (); below.
28530    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28531    <limits.h> exists even on freestanding compilers.  */
28532
28533#ifdef __STDC__
28534# include <limits.h>
28535#else
28536# include <assert.h>
28537#endif
28538
28539#undef $ac_func
28540
28541/* Override any gcc2 internal prototype to avoid an error.  */
28542#ifdef __cplusplus
28543extern "C"
28544{
28545#endif
28546/* We use char because int might match the return type of a gcc2
28547   builtin and then its argument prototype would still apply.  */
28548char $ac_func ();
28549/* The GNU C library defines this for functions which it implements
28550    to always fail with ENOSYS.  Some functions are actually named
28551    something starting with __ and the normal name is an alias.  */
28552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28553choke me
28554#else
28555char (*f) () = $ac_func;
28556#endif
28557#ifdef __cplusplus
28558}
28559#endif
28560
28561int
28562main ()
28563{
28564return f != $ac_func;
28565  ;
28566  return 0;
28567}
28568_ACEOF
28569rm -f conftest.$ac_objext conftest$ac_exeext
28570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571  (eval $ac_link) 2>conftest.er1
28572  ac_status=$?
28573  grep -v '^ *+' conftest.er1 >conftest.err
28574  rm -f conftest.er1
28575  cat conftest.err >&5
28576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577  (exit $ac_status); } &&
28578	 { ac_try='test -z "$ac_c_werror_flag"
28579			 || test ! -s conftest.err'
28580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581  (eval $ac_try) 2>&5
28582  ac_status=$?
28583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584  (exit $ac_status); }; } &&
28585	 { ac_try='test -s conftest$ac_exeext'
28586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587  (eval $ac_try) 2>&5
28588  ac_status=$?
28589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590  (exit $ac_status); }; }; then
28591  eval "$as_ac_var=yes"
28592else
28593  echo "$as_me: failed program was:" >&5
28594sed 's/^/| /' conftest.$ac_ext >&5
28595
28596eval "$as_ac_var=no"
28597fi
28598rm -f conftest.err conftest.$ac_objext \
28599      conftest$ac_exeext conftest.$ac_ext
28600fi
28601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28603if test `eval echo '${'$as_ac_var'}'` = yes; then
28604  cat >>confdefs.h <<_ACEOF
28605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28606_ACEOF
28607
28608fi
28609done
28610
28611
28612
28613
28614
28615
28616
28617for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28618do
28619as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28620echo "$as_me:$LINENO: checking for $ac_func" >&5
28621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28622if eval "test \"\${$as_ac_var+set}\" = set"; then
28623  echo $ECHO_N "(cached) $ECHO_C" >&6
28624else
28625  cat >conftest.$ac_ext <<_ACEOF
28626/* confdefs.h.  */
28627_ACEOF
28628cat confdefs.h >>conftest.$ac_ext
28629cat >>conftest.$ac_ext <<_ACEOF
28630/* end confdefs.h.  */
28631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28632   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28633#define $ac_func innocuous_$ac_func
28634
28635/* System header to define __stub macros and hopefully few prototypes,
28636    which can conflict with char $ac_func (); below.
28637    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28638    <limits.h> exists even on freestanding compilers.  */
28639
28640#ifdef __STDC__
28641# include <limits.h>
28642#else
28643# include <assert.h>
28644#endif
28645
28646#undef $ac_func
28647
28648/* Override any gcc2 internal prototype to avoid an error.  */
28649#ifdef __cplusplus
28650extern "C"
28651{
28652#endif
28653/* We use char because int might match the return type of a gcc2
28654   builtin and then its argument prototype would still apply.  */
28655char $ac_func ();
28656/* The GNU C library defines this for functions which it implements
28657    to always fail with ENOSYS.  Some functions are actually named
28658    something starting with __ and the normal name is an alias.  */
28659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28660choke me
28661#else
28662char (*f) () = $ac_func;
28663#endif
28664#ifdef __cplusplus
28665}
28666#endif
28667
28668int
28669main ()
28670{
28671return f != $ac_func;
28672  ;
28673  return 0;
28674}
28675_ACEOF
28676rm -f conftest.$ac_objext conftest$ac_exeext
28677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678  (eval $ac_link) 2>conftest.er1
28679  ac_status=$?
28680  grep -v '^ *+' conftest.er1 >conftest.err
28681  rm -f conftest.er1
28682  cat conftest.err >&5
28683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684  (exit $ac_status); } &&
28685	 { ac_try='test -z "$ac_c_werror_flag"
28686			 || test ! -s conftest.err'
28687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688  (eval $ac_try) 2>&5
28689  ac_status=$?
28690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691  (exit $ac_status); }; } &&
28692	 { ac_try='test -s conftest$ac_exeext'
28693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694  (eval $ac_try) 2>&5
28695  ac_status=$?
28696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697  (exit $ac_status); }; }; then
28698  eval "$as_ac_var=yes"
28699else
28700  echo "$as_me: failed program was:" >&5
28701sed 's/^/| /' conftest.$ac_ext >&5
28702
28703eval "$as_ac_var=no"
28704fi
28705rm -f conftest.err conftest.$ac_objext \
28706      conftest$ac_exeext conftest.$ac_ext
28707fi
28708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28710if test `eval echo '${'$as_ac_var'}'` = yes; then
28711  cat >>confdefs.h <<_ACEOF
28712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28713_ACEOF
28714
28715fi
28716done
28717
28718echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28719echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28720if test "${llvm_cv_c_printf_a+set}" = set; then
28721  echo $ECHO_N "(cached) $ECHO_C" >&6
28722else
28723  ac_ext=c
28724ac_cpp='$CPP $CPPFLAGS'
28725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28727ac_compiler_gnu=$ac_cv_c_compiler_gnu
28728
28729 if test "$cross_compiling" = yes; then
28730  llvmac_cv_c_printf_a=no
28731else
28732  cat >conftest.$ac_ext <<_ACEOF
28733
28734  /* confdefs.h.  */
28735_ACEOF
28736cat confdefs.h >>conftest.$ac_ext
28737cat >>conftest.$ac_ext <<_ACEOF
28738/* end confdefs.h.  */
28739
28740#include <stdio.h>
28741#include <stdlib.h>
28742
28743int
28744main ()
28745{
28746
28747volatile double A, B;
28748char Buffer[100];
28749A = 1;
28750A /= 10.0;
28751sprintf(Buffer, "%a", A);
28752B = atof(Buffer);
28753if (A != B)
28754  return (1);
28755if (A != 0x1.999999999999ap-4)
28756  return (1);
28757return (0);
28758  ;
28759  return 0;
28760}
28761_ACEOF
28762rm -f conftest$ac_exeext
28763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28764  (eval $ac_link) 2>&5
28765  ac_status=$?
28766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769  (eval $ac_try) 2>&5
28770  ac_status=$?
28771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772  (exit $ac_status); }; }; then
28773  llvm_cv_c_printf_a=yes
28774else
28775  echo "$as_me: program exited with status $ac_status" >&5
28776echo "$as_me: failed program was:" >&5
28777sed 's/^/| /' conftest.$ac_ext >&5
28778
28779( exit $ac_status )
28780llvmac_cv_c_printf_a=no
28781fi
28782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28783fi
28784 ac_ext=c
28785ac_cpp='$CPP $CPPFLAGS'
28786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28788ac_compiler_gnu=$ac_cv_c_compiler_gnu
28789
28790fi
28791echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28792echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28793 if test "$llvm_cv_c_printf_a" = "yes"; then
28794
28795cat >>confdefs.h <<\_ACEOF
28796#define HAVE_PRINTF_A 1
28797_ACEOF
28798
28799 fi
28800
28801# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28802# for constant arguments.  Useless!
28803echo "$as_me:$LINENO: checking for working alloca.h" >&5
28804echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28805if test "${ac_cv_working_alloca_h+set}" = set; then
28806  echo $ECHO_N "(cached) $ECHO_C" >&6
28807else
28808  cat >conftest.$ac_ext <<_ACEOF
28809/* confdefs.h.  */
28810_ACEOF
28811cat confdefs.h >>conftest.$ac_ext
28812cat >>conftest.$ac_ext <<_ACEOF
28813/* end confdefs.h.  */
28814#include <alloca.h>
28815int
28816main ()
28817{
28818char *p = (char *) alloca (2 * sizeof (int));
28819  ;
28820  return 0;
28821}
28822_ACEOF
28823rm -f conftest.$ac_objext conftest$ac_exeext
28824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825  (eval $ac_link) 2>conftest.er1
28826  ac_status=$?
28827  grep -v '^ *+' conftest.er1 >conftest.err
28828  rm -f conftest.er1
28829  cat conftest.err >&5
28830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831  (exit $ac_status); } &&
28832	 { ac_try='test -z "$ac_c_werror_flag"
28833			 || test ! -s conftest.err'
28834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835  (eval $ac_try) 2>&5
28836  ac_status=$?
28837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838  (exit $ac_status); }; } &&
28839	 { ac_try='test -s conftest$ac_exeext'
28840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841  (eval $ac_try) 2>&5
28842  ac_status=$?
28843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844  (exit $ac_status); }; }; then
28845  ac_cv_working_alloca_h=yes
28846else
28847  echo "$as_me: failed program was:" >&5
28848sed 's/^/| /' conftest.$ac_ext >&5
28849
28850ac_cv_working_alloca_h=no
28851fi
28852rm -f conftest.err conftest.$ac_objext \
28853      conftest$ac_exeext conftest.$ac_ext
28854fi
28855echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28856echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28857if test $ac_cv_working_alloca_h = yes; then
28858
28859cat >>confdefs.h <<\_ACEOF
28860#define HAVE_ALLOCA_H 1
28861_ACEOF
28862
28863fi
28864
28865echo "$as_me:$LINENO: checking for alloca" >&5
28866echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28867if test "${ac_cv_func_alloca_works+set}" = set; then
28868  echo $ECHO_N "(cached) $ECHO_C" >&6
28869else
28870  cat >conftest.$ac_ext <<_ACEOF
28871/* confdefs.h.  */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h.  */
28876#ifdef __GNUC__
28877# define alloca __builtin_alloca
28878#else
28879# ifdef _MSC_VER
28880#  include <malloc.h>
28881#  define alloca _alloca
28882# else
28883#  if HAVE_ALLOCA_H
28884#   include <alloca.h>
28885#  else
28886#   ifdef _AIX
28887 #pragma alloca
28888#   else
28889#    ifndef alloca /* predefined by HP cc +Olibcalls */
28890char *alloca ();
28891#    endif
28892#   endif
28893#  endif
28894# endif
28895#endif
28896
28897int
28898main ()
28899{
28900char *p = (char *) alloca (1);
28901  ;
28902  return 0;
28903}
28904_ACEOF
28905rm -f conftest.$ac_objext conftest$ac_exeext
28906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907  (eval $ac_link) 2>conftest.er1
28908  ac_status=$?
28909  grep -v '^ *+' conftest.er1 >conftest.err
28910  rm -f conftest.er1
28911  cat conftest.err >&5
28912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913  (exit $ac_status); } &&
28914	 { ac_try='test -z "$ac_c_werror_flag"
28915			 || test ! -s conftest.err'
28916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917  (eval $ac_try) 2>&5
28918  ac_status=$?
28919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920  (exit $ac_status); }; } &&
28921	 { ac_try='test -s conftest$ac_exeext'
28922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923  (eval $ac_try) 2>&5
28924  ac_status=$?
28925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926  (exit $ac_status); }; }; then
28927  ac_cv_func_alloca_works=yes
28928else
28929  echo "$as_me: failed program was:" >&5
28930sed 's/^/| /' conftest.$ac_ext >&5
28931
28932ac_cv_func_alloca_works=no
28933fi
28934rm -f conftest.err conftest.$ac_objext \
28935      conftest$ac_exeext conftest.$ac_ext
28936fi
28937echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28938echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28939
28940if test $ac_cv_func_alloca_works = yes; then
28941
28942cat >>confdefs.h <<\_ACEOF
28943#define HAVE_ALLOCA 1
28944_ACEOF
28945
28946else
28947  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28948# that cause trouble.  Some versions do not even contain alloca or
28949# contain a buggy version.  If you still want to use their alloca,
28950# use ar to extract alloca.o from them instead of compiling alloca.c.
28951
28952ALLOCA=alloca.$ac_objext
28953
28954cat >>confdefs.h <<\_ACEOF
28955#define C_ALLOCA 1
28956_ACEOF
28957
28958
28959echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28960echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28961if test "${ac_cv_os_cray+set}" = set; then
28962  echo $ECHO_N "(cached) $ECHO_C" >&6
28963else
28964  cat >conftest.$ac_ext <<_ACEOF
28965/* confdefs.h.  */
28966_ACEOF
28967cat confdefs.h >>conftest.$ac_ext
28968cat >>conftest.$ac_ext <<_ACEOF
28969/* end confdefs.h.  */
28970#if defined(CRAY) && ! defined(CRAY2)
28971webecray
28972#else
28973wenotbecray
28974#endif
28975
28976_ACEOF
28977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28978  $EGREP "webecray" >/dev/null 2>&1; then
28979  ac_cv_os_cray=yes
28980else
28981  ac_cv_os_cray=no
28982fi
28983rm -f conftest*
28984
28985fi
28986echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28987echo "${ECHO_T}$ac_cv_os_cray" >&6
28988if test $ac_cv_os_cray = yes; then
28989  for ac_func in _getb67 GETB67 getb67; do
28990    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28991echo "$as_me:$LINENO: checking for $ac_func" >&5
28992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28993if eval "test \"\${$as_ac_var+set}\" = set"; then
28994  echo $ECHO_N "(cached) $ECHO_C" >&6
28995else
28996  cat >conftest.$ac_ext <<_ACEOF
28997/* confdefs.h.  */
28998_ACEOF
28999cat confdefs.h >>conftest.$ac_ext
29000cat >>conftest.$ac_ext <<_ACEOF
29001/* end confdefs.h.  */
29002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29003   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29004#define $ac_func innocuous_$ac_func
29005
29006/* System header to define __stub macros and hopefully few prototypes,
29007    which can conflict with char $ac_func (); below.
29008    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29009    <limits.h> exists even on freestanding compilers.  */
29010
29011#ifdef __STDC__
29012# include <limits.h>
29013#else
29014# include <assert.h>
29015#endif
29016
29017#undef $ac_func
29018
29019/* Override any gcc2 internal prototype to avoid an error.  */
29020#ifdef __cplusplus
29021extern "C"
29022{
29023#endif
29024/* We use char because int might match the return type of a gcc2
29025   builtin and then its argument prototype would still apply.  */
29026char $ac_func ();
29027/* The GNU C library defines this for functions which it implements
29028    to always fail with ENOSYS.  Some functions are actually named
29029    something starting with __ and the normal name is an alias.  */
29030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29031choke me
29032#else
29033char (*f) () = $ac_func;
29034#endif
29035#ifdef __cplusplus
29036}
29037#endif
29038
29039int
29040main ()
29041{
29042return f != $ac_func;
29043  ;
29044  return 0;
29045}
29046_ACEOF
29047rm -f conftest.$ac_objext conftest$ac_exeext
29048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29049  (eval $ac_link) 2>conftest.er1
29050  ac_status=$?
29051  grep -v '^ *+' conftest.er1 >conftest.err
29052  rm -f conftest.er1
29053  cat conftest.err >&5
29054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055  (exit $ac_status); } &&
29056	 { ac_try='test -z "$ac_c_werror_flag"
29057			 || test ! -s conftest.err'
29058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059  (eval $ac_try) 2>&5
29060  ac_status=$?
29061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062  (exit $ac_status); }; } &&
29063	 { ac_try='test -s conftest$ac_exeext'
29064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29065  (eval $ac_try) 2>&5
29066  ac_status=$?
29067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068  (exit $ac_status); }; }; then
29069  eval "$as_ac_var=yes"
29070else
29071  echo "$as_me: failed program was:" >&5
29072sed 's/^/| /' conftest.$ac_ext >&5
29073
29074eval "$as_ac_var=no"
29075fi
29076rm -f conftest.err conftest.$ac_objext \
29077      conftest$ac_exeext conftest.$ac_ext
29078fi
29079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29081if test `eval echo '${'$as_ac_var'}'` = yes; then
29082
29083cat >>confdefs.h <<_ACEOF
29084#define CRAY_STACKSEG_END $ac_func
29085_ACEOF
29086
29087    break
29088fi
29089
29090  done
29091fi
29092
29093echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29094echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29095if test "${ac_cv_c_stack_direction+set}" = set; then
29096  echo $ECHO_N "(cached) $ECHO_C" >&6
29097else
29098  if test "$cross_compiling" = yes; then
29099  ac_cv_c_stack_direction=0
29100else
29101  cat >conftest.$ac_ext <<_ACEOF
29102/* confdefs.h.  */
29103_ACEOF
29104cat confdefs.h >>conftest.$ac_ext
29105cat >>conftest.$ac_ext <<_ACEOF
29106/* end confdefs.h.  */
29107int
29108find_stack_direction ()
29109{
29110  static char *addr = 0;
29111  auto char dummy;
29112  if (addr == 0)
29113    {
29114      addr = &dummy;
29115      return find_stack_direction ();
29116    }
29117  else
29118    return (&dummy > addr) ? 1 : -1;
29119}
29120
29121int
29122main ()
29123{
29124  exit (find_stack_direction () < 0);
29125}
29126_ACEOF
29127rm -f conftest$ac_exeext
29128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29129  (eval $ac_link) 2>&5
29130  ac_status=$?
29131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134  (eval $ac_try) 2>&5
29135  ac_status=$?
29136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137  (exit $ac_status); }; }; then
29138  ac_cv_c_stack_direction=1
29139else
29140  echo "$as_me: program exited with status $ac_status" >&5
29141echo "$as_me: failed program was:" >&5
29142sed 's/^/| /' conftest.$ac_ext >&5
29143
29144( exit $ac_status )
29145ac_cv_c_stack_direction=-1
29146fi
29147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29148fi
29149fi
29150echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29151echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29152
29153cat >>confdefs.h <<_ACEOF
29154#define STACK_DIRECTION $ac_cv_c_stack_direction
29155_ACEOF
29156
29157
29158fi
29159
29160
29161echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29162echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29163if test "${ac_cv_func_rand48+set}" = set; then
29164  echo $ECHO_N "(cached) $ECHO_C" >&6
29165else
29166  ac_ext=cc
29167ac_cpp='$CXXCPP $CPPFLAGS'
29168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29171
29172   cat >conftest.$ac_ext <<_ACEOF
29173/* confdefs.h.  */
29174_ACEOF
29175cat confdefs.h >>conftest.$ac_ext
29176cat >>conftest.$ac_ext <<_ACEOF
29177/* end confdefs.h.  */
29178#include <stdlib.h>
29179int
29180main ()
29181{
29182srand48(0);lrand48();drand48();
29183  ;
29184  return 0;
29185}
29186_ACEOF
29187rm -f conftest.$ac_objext
29188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29189  (eval $ac_compile) 2>conftest.er1
29190  ac_status=$?
29191  grep -v '^ *+' conftest.er1 >conftest.err
29192  rm -f conftest.er1
29193  cat conftest.err >&5
29194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195  (exit $ac_status); } &&
29196	 { ac_try='test -z "$ac_cxx_werror_flag"
29197			 || test ! -s conftest.err'
29198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199  (eval $ac_try) 2>&5
29200  ac_status=$?
29201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202  (exit $ac_status); }; } &&
29203	 { ac_try='test -s conftest.$ac_objext'
29204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205  (eval $ac_try) 2>&5
29206  ac_status=$?
29207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208  (exit $ac_status); }; }; then
29209  ac_cv_func_rand48=yes
29210else
29211  echo "$as_me: failed program was:" >&5
29212sed 's/^/| /' conftest.$ac_ext >&5
29213
29214ac_cv_func_rand48=no
29215fi
29216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29217  ac_ext=c
29218ac_cpp='$CPP $CPPFLAGS'
29219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221ac_compiler_gnu=$ac_cv_c_compiler_gnu
29222
29223fi
29224echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29225echo "${ECHO_T}$ac_cv_func_rand48" >&6
29226
29227if test "$ac_cv_func_rand48" = "yes" ; then
29228
29229cat >>confdefs.h <<\_ACEOF
29230#define HAVE_RAND48 1
29231_ACEOF
29232
29233fi
29234
29235
29236echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29237echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29238if test "${ac_cv_cxx_namespaces+set}" = set; then
29239  echo $ECHO_N "(cached) $ECHO_C" >&6
29240else
29241  ac_ext=cc
29242ac_cpp='$CXXCPP $CPPFLAGS'
29243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29246
29247 cat >conftest.$ac_ext <<_ACEOF
29248/* confdefs.h.  */
29249_ACEOF
29250cat confdefs.h >>conftest.$ac_ext
29251cat >>conftest.$ac_ext <<_ACEOF
29252/* end confdefs.h.  */
29253namespace Outer { namespace Inner { int i = 0; }}
29254int
29255main ()
29256{
29257using namespace Outer::Inner; return i;
29258  ;
29259  return 0;
29260}
29261_ACEOF
29262rm -f conftest.$ac_objext
29263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29264  (eval $ac_compile) 2>conftest.er1
29265  ac_status=$?
29266  grep -v '^ *+' conftest.er1 >conftest.err
29267  rm -f conftest.er1
29268  cat conftest.err >&5
29269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270  (exit $ac_status); } &&
29271	 { ac_try='test -z "$ac_cxx_werror_flag"
29272			 || test ! -s conftest.err'
29273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274  (eval $ac_try) 2>&5
29275  ac_status=$?
29276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277  (exit $ac_status); }; } &&
29278	 { ac_try='test -s conftest.$ac_objext'
29279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280  (eval $ac_try) 2>&5
29281  ac_status=$?
29282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283  (exit $ac_status); }; }; then
29284  ac_cv_cxx_namespaces=yes
29285else
29286  echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
29289ac_cv_cxx_namespaces=no
29290fi
29291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29292 ac_ext=c
29293ac_cpp='$CPP $CPPFLAGS'
29294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29296ac_compiler_gnu=$ac_cv_c_compiler_gnu
29297
29298
29299fi
29300echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29301echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29302if test "$ac_cv_cxx_namespaces" = yes; then
29303
29304cat >>confdefs.h <<\_ACEOF
29305#define HAVE_NAMESPACES
29306_ACEOF
29307
29308fi
29309
29310echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29311echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29312if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29313  echo $ECHO_N "(cached) $ECHO_C" >&6
29314else
29315
29316  ac_ext=cc
29317ac_cpp='$CXXCPP $CPPFLAGS'
29318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29321
29322  cat >conftest.$ac_ext <<_ACEOF
29323/* confdefs.h.  */
29324_ACEOF
29325cat confdefs.h >>conftest.$ac_ext
29326cat >>conftest.$ac_ext <<_ACEOF
29327/* end confdefs.h.  */
29328#include <ext/hash_map>
29329#ifdef HAVE_NAMESPACES
29330using namespace std;
29331#endif
29332int
29333main ()
29334{
29335hash_map<int, int> t;
29336  ;
29337  return 0;
29338}
29339_ACEOF
29340rm -f conftest.$ac_objext
29341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29342  (eval $ac_compile) 2>conftest.er1
29343  ac_status=$?
29344  grep -v '^ *+' conftest.er1 >conftest.err
29345  rm -f conftest.er1
29346  cat conftest.err >&5
29347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348  (exit $ac_status); } &&
29349	 { ac_try='test -z "$ac_cxx_werror_flag"
29350			 || test ! -s conftest.err'
29351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352  (eval $ac_try) 2>&5
29353  ac_status=$?
29354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355  (exit $ac_status); }; } &&
29356	 { ac_try='test -s conftest.$ac_objext'
29357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358  (eval $ac_try) 2>&5
29359  ac_status=$?
29360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361  (exit $ac_status); }; }; then
29362  ac_cv_cxx_have_std_ext_hash_map=yes
29363else
29364  echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
29367ac_cv_cxx_have_std_ext_hash_map=no
29368fi
29369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29370  ac_ext=c
29371ac_cpp='$CPP $CPPFLAGS'
29372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374ac_compiler_gnu=$ac_cv_c_compiler_gnu
29375
29376fi
29377echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29378echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29379 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29380 then
29381
29382cat >>confdefs.h <<\_ACEOF
29383#define HAVE_STD_EXT_HASH_MAP 1
29384_ACEOF
29385
29386 else
29387
29388cat >>confdefs.h <<\_ACEOF
29389#define HAVE_STD_EXT_HASH_MAP 0
29390_ACEOF
29391
29392 fi
29393
29394 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29395echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29396if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29397  echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399
29400  ac_ext=cc
29401ac_cpp='$CXXCPP $CPPFLAGS'
29402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405
29406  cat >conftest.$ac_ext <<_ACEOF
29407/* confdefs.h.  */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h.  */
29412#include <ext/hash_map>
29413#ifdef HAVE_NAMESPACES
29414using namespace __gnu_cxx;
29415#endif
29416int
29417main ()
29418{
29419hash_map<int,int> t;
29420  ;
29421  return 0;
29422}
29423_ACEOF
29424rm -f conftest.$ac_objext
29425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29426  (eval $ac_compile) 2>conftest.er1
29427  ac_status=$?
29428  grep -v '^ *+' conftest.er1 >conftest.err
29429  rm -f conftest.er1
29430  cat conftest.err >&5
29431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432  (exit $ac_status); } &&
29433	 { ac_try='test -z "$ac_cxx_werror_flag"
29434			 || test ! -s conftest.err'
29435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436  (eval $ac_try) 2>&5
29437  ac_status=$?
29438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439  (exit $ac_status); }; } &&
29440	 { ac_try='test -s conftest.$ac_objext'
29441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442  (eval $ac_try) 2>&5
29443  ac_status=$?
29444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445  (exit $ac_status); }; }; then
29446  ac_cv_cxx_have_gnu_ext_hash_map=yes
29447else
29448  echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
29451ac_cv_cxx_have_gnu_ext_hash_map=no
29452fi
29453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29454  ac_ext=c
29455ac_cpp='$CPP $CPPFLAGS'
29456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458ac_compiler_gnu=$ac_cv_c_compiler_gnu
29459
29460fi
29461echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29462echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29463 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29464 then
29465
29466cat >>confdefs.h <<\_ACEOF
29467#define HAVE_GNU_EXT_HASH_MAP 1
29468_ACEOF
29469
29470 else
29471
29472cat >>confdefs.h <<\_ACEOF
29473#define HAVE_GNU_EXT_HASH_MAP 0
29474_ACEOF
29475
29476 fi
29477
29478 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29479echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29480if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29481  echo $ECHO_N "(cached) $ECHO_C" >&6
29482else
29483
29484  ac_ext=cc
29485ac_cpp='$CXXCPP $CPPFLAGS'
29486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29489
29490  cat >conftest.$ac_ext <<_ACEOF
29491/* confdefs.h.  */
29492_ACEOF
29493cat confdefs.h >>conftest.$ac_ext
29494cat >>conftest.$ac_ext <<_ACEOF
29495/* end confdefs.h.  */
29496#include <hash_map>
29497int
29498main ()
29499{
29500hash_map<int,int> t;
29501  ;
29502  return 0;
29503}
29504_ACEOF
29505rm -f conftest.$ac_objext
29506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29507  (eval $ac_compile) 2>conftest.er1
29508  ac_status=$?
29509  grep -v '^ *+' conftest.er1 >conftest.err
29510  rm -f conftest.er1
29511  cat conftest.err >&5
29512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513  (exit $ac_status); } &&
29514	 { ac_try='test -z "$ac_cxx_werror_flag"
29515			 || test ! -s conftest.err'
29516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29517  (eval $ac_try) 2>&5
29518  ac_status=$?
29519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520  (exit $ac_status); }; } &&
29521	 { ac_try='test -s conftest.$ac_objext'
29522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523  (eval $ac_try) 2>&5
29524  ac_status=$?
29525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526  (exit $ac_status); }; }; then
29527  ac_cv_cxx_have_global_hash_map=yes
29528else
29529  echo "$as_me: failed program was:" >&5
29530sed 's/^/| /' conftest.$ac_ext >&5
29531
29532ac_cv_cxx_have_global_hash_map=no
29533fi
29534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29535  ac_ext=c
29536ac_cpp='$CPP $CPPFLAGS'
29537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29539ac_compiler_gnu=$ac_cv_c_compiler_gnu
29540
29541fi
29542echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29543echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29544 if test "$ac_cv_cxx_have_global_hash_map" = yes
29545 then
29546
29547cat >>confdefs.h <<\_ACEOF
29548#define HAVE_GLOBAL_HASH_MAP 1
29549_ACEOF
29550
29551 else
29552
29553cat >>confdefs.h <<\_ACEOF
29554#define HAVE_GLOBAL_HASH_MAP 0
29555_ACEOF
29556
29557 fi
29558
29559echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29560echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29561if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29562  echo $ECHO_N "(cached) $ECHO_C" >&6
29563else
29564
29565  ac_ext=cc
29566ac_cpp='$CXXCPP $CPPFLAGS'
29567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29570
29571  cat >conftest.$ac_ext <<_ACEOF
29572/* confdefs.h.  */
29573_ACEOF
29574cat confdefs.h >>conftest.$ac_ext
29575cat >>conftest.$ac_ext <<_ACEOF
29576/* end confdefs.h.  */
29577#include <ext/hash_set>
29578#ifdef HAVE_NAMESPACES
29579using namespace std;
29580#endif
29581int
29582main ()
29583{
29584hash_set<int> t;
29585  ;
29586  return 0;
29587}
29588_ACEOF
29589rm -f conftest.$ac_objext
29590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29591  (eval $ac_compile) 2>conftest.er1
29592  ac_status=$?
29593  grep -v '^ *+' conftest.er1 >conftest.err
29594  rm -f conftest.er1
29595  cat conftest.err >&5
29596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597  (exit $ac_status); } &&
29598	 { ac_try='test -z "$ac_cxx_werror_flag"
29599			 || test ! -s conftest.err'
29600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29601  (eval $ac_try) 2>&5
29602  ac_status=$?
29603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604  (exit $ac_status); }; } &&
29605	 { ac_try='test -s conftest.$ac_objext'
29606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607  (eval $ac_try) 2>&5
29608  ac_status=$?
29609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610  (exit $ac_status); }; }; then
29611  ac_cv_cxx_have_std_ext_hash_set=yes
29612else
29613  echo "$as_me: failed program was:" >&5
29614sed 's/^/| /' conftest.$ac_ext >&5
29615
29616ac_cv_cxx_have_std_ext_hash_set=no
29617fi
29618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29619  ac_ext=c
29620ac_cpp='$CPP $CPPFLAGS'
29621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29623ac_compiler_gnu=$ac_cv_c_compiler_gnu
29624
29625fi
29626echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29627echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29628 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29629 then
29630
29631cat >>confdefs.h <<\_ACEOF
29632#define HAVE_STD_EXT_HASH_SET 1
29633_ACEOF
29634
29635 else
29636
29637cat >>confdefs.h <<\_ACEOF
29638#define HAVE_STD_EXT_HASH_SET 0
29639_ACEOF
29640
29641 fi
29642
29643 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29644echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29645if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29646  echo $ECHO_N "(cached) $ECHO_C" >&6
29647else
29648
29649  ac_ext=cc
29650ac_cpp='$CXXCPP $CPPFLAGS'
29651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29654
29655  cat >conftest.$ac_ext <<_ACEOF
29656/* confdefs.h.  */
29657_ACEOF
29658cat confdefs.h >>conftest.$ac_ext
29659cat >>conftest.$ac_ext <<_ACEOF
29660/* end confdefs.h.  */
29661#include <ext/hash_set>
29662#ifdef HAVE_NAMESPACES
29663using namespace __gnu_cxx;
29664#endif
29665int
29666main ()
29667{
29668hash_set<int> t;
29669  ;
29670  return 0;
29671}
29672_ACEOF
29673rm -f conftest.$ac_objext
29674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29675  (eval $ac_compile) 2>conftest.er1
29676  ac_status=$?
29677  grep -v '^ *+' conftest.er1 >conftest.err
29678  rm -f conftest.er1
29679  cat conftest.err >&5
29680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681  (exit $ac_status); } &&
29682	 { ac_try='test -z "$ac_cxx_werror_flag"
29683			 || test ! -s conftest.err'
29684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685  (eval $ac_try) 2>&5
29686  ac_status=$?
29687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688  (exit $ac_status); }; } &&
29689	 { ac_try='test -s conftest.$ac_objext'
29690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691  (eval $ac_try) 2>&5
29692  ac_status=$?
29693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694  (exit $ac_status); }; }; then
29695  ac_cv_cxx_have_gnu_ext_hash_set=yes
29696else
29697  echo "$as_me: failed program was:" >&5
29698sed 's/^/| /' conftest.$ac_ext >&5
29699
29700ac_cv_cxx_have_gnu_ext_hash_set=no
29701fi
29702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29703  ac_ext=c
29704ac_cpp='$CPP $CPPFLAGS'
29705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29707ac_compiler_gnu=$ac_cv_c_compiler_gnu
29708
29709fi
29710echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29711echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29712 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29713 then
29714
29715cat >>confdefs.h <<\_ACEOF
29716#define HAVE_GNU_EXT_HASH_SET 1
29717_ACEOF
29718
29719 else
29720
29721cat >>confdefs.h <<\_ACEOF
29722#define HAVE_GNU_EXT_HASH_SET 0
29723_ACEOF
29724
29725 fi
29726
29727 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29728echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29729if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29730  echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
29732
29733  ac_ext=cc
29734ac_cpp='$CXXCPP $CPPFLAGS'
29735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29738
29739  cat >conftest.$ac_ext <<_ACEOF
29740/* confdefs.h.  */
29741_ACEOF
29742cat confdefs.h >>conftest.$ac_ext
29743cat >>conftest.$ac_ext <<_ACEOF
29744/* end confdefs.h.  */
29745#include <hash_set>
29746int
29747main ()
29748{
29749hash_set<int> t; return 0;
29750  ;
29751  return 0;
29752}
29753_ACEOF
29754rm -f conftest.$ac_objext
29755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29756  (eval $ac_compile) 2>conftest.er1
29757  ac_status=$?
29758  grep -v '^ *+' conftest.er1 >conftest.err
29759  rm -f conftest.er1
29760  cat conftest.err >&5
29761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762  (exit $ac_status); } &&
29763	 { ac_try='test -z "$ac_cxx_werror_flag"
29764			 || test ! -s conftest.err'
29765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766  (eval $ac_try) 2>&5
29767  ac_status=$?
29768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769  (exit $ac_status); }; } &&
29770	 { ac_try='test -s conftest.$ac_objext'
29771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772  (eval $ac_try) 2>&5
29773  ac_status=$?
29774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775  (exit $ac_status); }; }; then
29776  ac_cv_cxx_have_global_hash_set=yes
29777else
29778  echo "$as_me: failed program was:" >&5
29779sed 's/^/| /' conftest.$ac_ext >&5
29780
29781ac_cv_cxx_have_global_hash_set=no
29782fi
29783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29784  ac_ext=c
29785ac_cpp='$CPP $CPPFLAGS'
29786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788ac_compiler_gnu=$ac_cv_c_compiler_gnu
29789
29790fi
29791echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29792echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29793 if test "$ac_cv_cxx_have_global_hash_set" = yes
29794 then
29795
29796cat >>confdefs.h <<\_ACEOF
29797#define HAVE_GLOBAL_HASH_SET 1
29798_ACEOF
29799
29800 else
29801
29802cat >>confdefs.h <<\_ACEOF
29803#define HAVE_GLOBAL_HASH_SET 0
29804_ACEOF
29805
29806 fi
29807
29808echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29809echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29810if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29811  echo $ECHO_N "(cached) $ECHO_C" >&6
29812else
29813
29814  ac_ext=cc
29815ac_cpp='$CXXCPP $CPPFLAGS'
29816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29819
29820  cat >conftest.$ac_ext <<_ACEOF
29821/* confdefs.h.  */
29822_ACEOF
29823cat confdefs.h >>conftest.$ac_ext
29824cat >>conftest.$ac_ext <<_ACEOF
29825/* end confdefs.h.  */
29826#include <iterator>
29827#ifdef HAVE_NAMESPACES
29828using namespace std;
29829#endif
29830int
29831main ()
29832{
29833iterator<int,int,int> t; return 0;
29834  ;
29835  return 0;
29836}
29837_ACEOF
29838rm -f conftest.$ac_objext
29839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29840  (eval $ac_compile) 2>conftest.er1
29841  ac_status=$?
29842  grep -v '^ *+' conftest.er1 >conftest.err
29843  rm -f conftest.er1
29844  cat conftest.err >&5
29845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846  (exit $ac_status); } &&
29847	 { ac_try='test -z "$ac_cxx_werror_flag"
29848			 || test ! -s conftest.err'
29849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850  (eval $ac_try) 2>&5
29851  ac_status=$?
29852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853  (exit $ac_status); }; } &&
29854	 { ac_try='test -s conftest.$ac_objext'
29855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856  (eval $ac_try) 2>&5
29857  ac_status=$?
29858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859  (exit $ac_status); }; }; then
29860  ac_cv_cxx_have_std_iterator=yes
29861else
29862  echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865ac_cv_cxx_have_std_iterator=no
29866fi
29867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29868  ac_ext=c
29869ac_cpp='$CPP $CPPFLAGS'
29870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29872ac_compiler_gnu=$ac_cv_c_compiler_gnu
29873
29874
29875fi
29876echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29877echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29878if test "$ac_cv_cxx_have_std_iterator" = yes
29879then
29880
29881cat >>confdefs.h <<\_ACEOF
29882#define HAVE_STD_ITERATOR 1
29883_ACEOF
29884
29885else
29886
29887cat >>confdefs.h <<\_ACEOF
29888#define HAVE_STD_ITERATOR 0
29889_ACEOF
29890
29891fi
29892
29893echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29894echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29895if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29896  echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898
29899  ac_ext=cc
29900ac_cpp='$CXXCPP $CPPFLAGS'
29901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29904
29905  cat >conftest.$ac_ext <<_ACEOF
29906/* confdefs.h.  */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h.  */
29911#include <iterator>
29912#ifdef HAVE_NAMESPACES
29913using namespace std;
29914#endif
29915int
29916main ()
29917{
29918bidirectional_iterator<int,int> t; return 0;
29919  ;
29920  return 0;
29921}
29922_ACEOF
29923rm -f conftest.$ac_objext
29924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29925  (eval $ac_compile) 2>conftest.er1
29926  ac_status=$?
29927  grep -v '^ *+' conftest.er1 >conftest.err
29928  rm -f conftest.er1
29929  cat conftest.err >&5
29930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931  (exit $ac_status); } &&
29932	 { ac_try='test -z "$ac_cxx_werror_flag"
29933			 || test ! -s conftest.err'
29934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935  (eval $ac_try) 2>&5
29936  ac_status=$?
29937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938  (exit $ac_status); }; } &&
29939	 { ac_try='test -s conftest.$ac_objext'
29940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941  (eval $ac_try) 2>&5
29942  ac_status=$?
29943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944  (exit $ac_status); }; }; then
29945  ac_cv_cxx_have_bi_iterator=yes
29946else
29947  echo "$as_me: failed program was:" >&5
29948sed 's/^/| /' conftest.$ac_ext >&5
29949
29950ac_cv_cxx_have_bi_iterator=no
29951fi
29952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29953  ac_ext=c
29954ac_cpp='$CPP $CPPFLAGS'
29955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29957ac_compiler_gnu=$ac_cv_c_compiler_gnu
29958
29959
29960fi
29961echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29962echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29963if test "$ac_cv_cxx_have_bi_iterator" = yes
29964then
29965
29966cat >>confdefs.h <<\_ACEOF
29967#define HAVE_BI_ITERATOR 1
29968_ACEOF
29969
29970else
29971
29972cat >>confdefs.h <<\_ACEOF
29973#define HAVE_BI_ITERATOR 0
29974_ACEOF
29975
29976fi
29977
29978echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29979echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29980if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29981  echo $ECHO_N "(cached) $ECHO_C" >&6
29982else
29983
29984  ac_ext=cc
29985ac_cpp='$CXXCPP $CPPFLAGS'
29986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29989
29990  cat >conftest.$ac_ext <<_ACEOF
29991/* confdefs.h.  */
29992_ACEOF
29993cat confdefs.h >>conftest.$ac_ext
29994cat >>conftest.$ac_ext <<_ACEOF
29995/* end confdefs.h.  */
29996#include <iterator>
29997#ifdef HAVE_NAMESPACES
29998using namespace std;
29999#endif
30000int
30001main ()
30002{
30003forward_iterator<int,int> t; return 0;
30004  ;
30005  return 0;
30006}
30007_ACEOF
30008rm -f conftest.$ac_objext
30009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010  (eval $ac_compile) 2>conftest.er1
30011  ac_status=$?
30012  grep -v '^ *+' conftest.er1 >conftest.err
30013  rm -f conftest.er1
30014  cat conftest.err >&5
30015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016  (exit $ac_status); } &&
30017	 { ac_try='test -z "$ac_cxx_werror_flag"
30018			 || test ! -s conftest.err'
30019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30020  (eval $ac_try) 2>&5
30021  ac_status=$?
30022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023  (exit $ac_status); }; } &&
30024	 { ac_try='test -s conftest.$ac_objext'
30025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026  (eval $ac_try) 2>&5
30027  ac_status=$?
30028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029  (exit $ac_status); }; }; then
30030  ac_cv_cxx_have_fwd_iterator=yes
30031else
30032  echo "$as_me: failed program was:" >&5
30033sed 's/^/| /' conftest.$ac_ext >&5
30034
30035ac_cv_cxx_have_fwd_iterator=no
30036fi
30037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30038  ac_ext=c
30039ac_cpp='$CPP $CPPFLAGS'
30040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30042ac_compiler_gnu=$ac_cv_c_compiler_gnu
30043
30044
30045fi
30046echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30047echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
30048if test "$ac_cv_cxx_have_fwd_iterator" = yes
30049then
30050
30051cat >>confdefs.h <<\_ACEOF
30052#define HAVE_FWD_ITERATOR 1
30053_ACEOF
30054
30055else
30056
30057cat >>confdefs.h <<\_ACEOF
30058#define HAVE_FWD_ITERATOR 0
30059_ACEOF
30060
30061fi
30062
30063
30064echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30065echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30066if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30067  echo $ECHO_N "(cached) $ECHO_C" >&6
30068else
30069  ac_ext=cc
30070ac_cpp='$CXXCPP $CPPFLAGS'
30071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30074
30075   cat >conftest.$ac_ext <<_ACEOF
30076/* confdefs.h.  */
30077_ACEOF
30078cat confdefs.h >>conftest.$ac_ext
30079cat >>conftest.$ac_ext <<_ACEOF
30080/* end confdefs.h.  */
30081#include <math.h>
30082int
30083main ()
30084{
30085float f; isnan(f);
30086  ;
30087  return 0;
30088}
30089_ACEOF
30090rm -f conftest.$ac_objext
30091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30092  (eval $ac_compile) 2>conftest.er1
30093  ac_status=$?
30094  grep -v '^ *+' conftest.er1 >conftest.err
30095  rm -f conftest.er1
30096  cat conftest.err >&5
30097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098  (exit $ac_status); } &&
30099	 { ac_try='test -z "$ac_cxx_werror_flag"
30100			 || test ! -s conftest.err'
30101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102  (eval $ac_try) 2>&5
30103  ac_status=$?
30104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105  (exit $ac_status); }; } &&
30106	 { ac_try='test -s conftest.$ac_objext'
30107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108  (eval $ac_try) 2>&5
30109  ac_status=$?
30110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111  (exit $ac_status); }; }; then
30112  ac_cv_func_isnan_in_math_h=yes
30113else
30114  echo "$as_me: failed program was:" >&5
30115sed 's/^/| /' conftest.$ac_ext >&5
30116
30117ac_cv_func_isnan_in_math_h=no
30118fi
30119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30120  ac_ext=c
30121ac_cpp='$CPP $CPPFLAGS'
30122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30124ac_compiler_gnu=$ac_cv_c_compiler_gnu
30125
30126fi
30127echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30128echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
30129
30130
30131if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30132
30133cat >>confdefs.h <<\_ACEOF
30134#define HAVE_ISNAN_IN_MATH_H 1
30135_ACEOF
30136
30137fi
30138
30139echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30140echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30141if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30142  echo $ECHO_N "(cached) $ECHO_C" >&6
30143else
30144  ac_ext=cc
30145ac_cpp='$CXXCPP $CPPFLAGS'
30146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30149
30150   cat >conftest.$ac_ext <<_ACEOF
30151/* confdefs.h.  */
30152_ACEOF
30153cat confdefs.h >>conftest.$ac_ext
30154cat >>conftest.$ac_ext <<_ACEOF
30155/* end confdefs.h.  */
30156#include <cmath>
30157int
30158main ()
30159{
30160float f; isnan(f);
30161  ;
30162  return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext
30166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30167  (eval $ac_compile) 2>conftest.er1
30168  ac_status=$?
30169  grep -v '^ *+' conftest.er1 >conftest.err
30170  rm -f conftest.er1
30171  cat conftest.err >&5
30172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173  (exit $ac_status); } &&
30174	 { ac_try='test -z "$ac_cxx_werror_flag"
30175			 || test ! -s conftest.err'
30176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177  (eval $ac_try) 2>&5
30178  ac_status=$?
30179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180  (exit $ac_status); }; } &&
30181	 { ac_try='test -s conftest.$ac_objext'
30182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183  (eval $ac_try) 2>&5
30184  ac_status=$?
30185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186  (exit $ac_status); }; }; then
30187  ac_cv_func_isnan_in_cmath=yes
30188else
30189  echo "$as_me: failed program was:" >&5
30190sed 's/^/| /' conftest.$ac_ext >&5
30191
30192ac_cv_func_isnan_in_cmath=no
30193fi
30194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30195  ac_ext=c
30196ac_cpp='$CPP $CPPFLAGS'
30197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30199ac_compiler_gnu=$ac_cv_c_compiler_gnu
30200
30201fi
30202echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30203echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30204
30205if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30206
30207cat >>confdefs.h <<\_ACEOF
30208#define HAVE_ISNAN_IN_CMATH 1
30209_ACEOF
30210
30211fi
30212
30213echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30214echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30215if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30216  echo $ECHO_N "(cached) $ECHO_C" >&6
30217else
30218  ac_ext=cc
30219ac_cpp='$CXXCPP $CPPFLAGS'
30220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30223
30224   cat >conftest.$ac_ext <<_ACEOF
30225/* confdefs.h.  */
30226_ACEOF
30227cat confdefs.h >>conftest.$ac_ext
30228cat >>conftest.$ac_ext <<_ACEOF
30229/* end confdefs.h.  */
30230#include <cmath>
30231int
30232main ()
30233{
30234float f; std::isnan(f);
30235  ;
30236  return 0;
30237}
30238_ACEOF
30239rm -f conftest.$ac_objext
30240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30241  (eval $ac_compile) 2>conftest.er1
30242  ac_status=$?
30243  grep -v '^ *+' conftest.er1 >conftest.err
30244  rm -f conftest.er1
30245  cat conftest.err >&5
30246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247  (exit $ac_status); } &&
30248	 { ac_try='test -z "$ac_cxx_werror_flag"
30249			 || test ! -s conftest.err'
30250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251  (eval $ac_try) 2>&5
30252  ac_status=$?
30253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254  (exit $ac_status); }; } &&
30255	 { ac_try='test -s conftest.$ac_objext'
30256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257  (eval $ac_try) 2>&5
30258  ac_status=$?
30259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260  (exit $ac_status); }; }; then
30261  ac_cv_func_std_isnan_in_cmath=yes
30262else
30263  echo "$as_me: failed program was:" >&5
30264sed 's/^/| /' conftest.$ac_ext >&5
30265
30266ac_cv_func_std_isnan_in_cmath=no
30267fi
30268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30269  ac_ext=c
30270ac_cpp='$CPP $CPPFLAGS'
30271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30273ac_compiler_gnu=$ac_cv_c_compiler_gnu
30274
30275fi
30276echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30277echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30278
30279if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30280
30281cat >>confdefs.h <<\_ACEOF
30282#define HAVE_STD_ISNAN_IN_CMATH 1
30283_ACEOF
30284
30285fi
30286
30287
30288echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30289echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30290if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30291  echo $ECHO_N "(cached) $ECHO_C" >&6
30292else
30293  ac_ext=cc
30294ac_cpp='$CXXCPP $CPPFLAGS'
30295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30298
30299   cat >conftest.$ac_ext <<_ACEOF
30300/* confdefs.h.  */
30301_ACEOF
30302cat confdefs.h >>conftest.$ac_ext
30303cat >>conftest.$ac_ext <<_ACEOF
30304/* end confdefs.h.  */
30305#include <math.h>
30306int
30307main ()
30308{
30309float f; isinf(f);
30310  ;
30311  return 0;
30312}
30313_ACEOF
30314rm -f conftest.$ac_objext
30315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30316  (eval $ac_compile) 2>conftest.er1
30317  ac_status=$?
30318  grep -v '^ *+' conftest.er1 >conftest.err
30319  rm -f conftest.er1
30320  cat conftest.err >&5
30321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322  (exit $ac_status); } &&
30323	 { ac_try='test -z "$ac_cxx_werror_flag"
30324			 || test ! -s conftest.err'
30325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326  (eval $ac_try) 2>&5
30327  ac_status=$?
30328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329  (exit $ac_status); }; } &&
30330	 { ac_try='test -s conftest.$ac_objext'
30331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332  (eval $ac_try) 2>&5
30333  ac_status=$?
30334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335  (exit $ac_status); }; }; then
30336  ac_cv_func_isinf_in_math_h=yes
30337else
30338  echo "$as_me: failed program was:" >&5
30339sed 's/^/| /' conftest.$ac_ext >&5
30340
30341ac_cv_func_isinf_in_math_h=no
30342fi
30343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30344  ac_ext=c
30345ac_cpp='$CPP $CPPFLAGS'
30346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30348ac_compiler_gnu=$ac_cv_c_compiler_gnu
30349
30350fi
30351echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30352echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30353
30354if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30355
30356cat >>confdefs.h <<\_ACEOF
30357#define HAVE_ISINF_IN_MATH_H 1
30358_ACEOF
30359
30360fi
30361
30362echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30363echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30364if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30365  echo $ECHO_N "(cached) $ECHO_C" >&6
30366else
30367  ac_ext=cc
30368ac_cpp='$CXXCPP $CPPFLAGS'
30369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30372
30373   cat >conftest.$ac_ext <<_ACEOF
30374/* confdefs.h.  */
30375_ACEOF
30376cat confdefs.h >>conftest.$ac_ext
30377cat >>conftest.$ac_ext <<_ACEOF
30378/* end confdefs.h.  */
30379#include <cmath>
30380int
30381main ()
30382{
30383float f; isinf(f);
30384  ;
30385  return 0;
30386}
30387_ACEOF
30388rm -f conftest.$ac_objext
30389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30390  (eval $ac_compile) 2>conftest.er1
30391  ac_status=$?
30392  grep -v '^ *+' conftest.er1 >conftest.err
30393  rm -f conftest.er1
30394  cat conftest.err >&5
30395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396  (exit $ac_status); } &&
30397	 { ac_try='test -z "$ac_cxx_werror_flag"
30398			 || test ! -s conftest.err'
30399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400  (eval $ac_try) 2>&5
30401  ac_status=$?
30402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403  (exit $ac_status); }; } &&
30404	 { ac_try='test -s conftest.$ac_objext'
30405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406  (eval $ac_try) 2>&5
30407  ac_status=$?
30408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409  (exit $ac_status); }; }; then
30410  ac_cv_func_isinf_in_cmath=yes
30411else
30412  echo "$as_me: failed program was:" >&5
30413sed 's/^/| /' conftest.$ac_ext >&5
30414
30415ac_cv_func_isinf_in_cmath=no
30416fi
30417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30418  ac_ext=c
30419ac_cpp='$CPP $CPPFLAGS'
30420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30422ac_compiler_gnu=$ac_cv_c_compiler_gnu
30423
30424fi
30425echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30426echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30427
30428if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30429
30430cat >>confdefs.h <<\_ACEOF
30431#define HAVE_ISINF_IN_CMATH 1
30432_ACEOF
30433
30434fi
30435
30436echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30437echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30438if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30439  echo $ECHO_N "(cached) $ECHO_C" >&6
30440else
30441  ac_ext=cc
30442ac_cpp='$CXXCPP $CPPFLAGS'
30443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30446
30447   cat >conftest.$ac_ext <<_ACEOF
30448/* confdefs.h.  */
30449_ACEOF
30450cat confdefs.h >>conftest.$ac_ext
30451cat >>conftest.$ac_ext <<_ACEOF
30452/* end confdefs.h.  */
30453#include <cmath>
30454int
30455main ()
30456{
30457float f; std::isinf(f)}
30458  ;
30459  return 0;
30460}
30461_ACEOF
30462rm -f conftest.$ac_objext
30463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30464  (eval $ac_compile) 2>conftest.er1
30465  ac_status=$?
30466  grep -v '^ *+' conftest.er1 >conftest.err
30467  rm -f conftest.er1
30468  cat conftest.err >&5
30469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470  (exit $ac_status); } &&
30471	 { ac_try='test -z "$ac_cxx_werror_flag"
30472			 || test ! -s conftest.err'
30473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474  (eval $ac_try) 2>&5
30475  ac_status=$?
30476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477  (exit $ac_status); }; } &&
30478	 { ac_try='test -s conftest.$ac_objext'
30479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480  (eval $ac_try) 2>&5
30481  ac_status=$?
30482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483  (exit $ac_status); }; }; then
30484  ac_cv_func_std_isinf_in_cmath=yes
30485else
30486  echo "$as_me: failed program was:" >&5
30487sed 's/^/| /' conftest.$ac_ext >&5
30488
30489ac_cv_func_std_isinf_in_cmath=no
30490fi
30491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30492  ac_ext=c
30493ac_cpp='$CPP $CPPFLAGS'
30494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30496ac_compiler_gnu=$ac_cv_c_compiler_gnu
30497
30498fi
30499echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30500echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30501
30502if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30503
30504cat >>confdefs.h <<\_ACEOF
30505#define HAVE_STD_ISINF_IN_CMATH 1
30506_ACEOF
30507
30508fi
30509
30510echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30511echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30512if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30513  echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515  ac_ext=cc
30516ac_cpp='$CXXCPP $CPPFLAGS'
30517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30520
30521   cat >conftest.$ac_ext <<_ACEOF
30522/* confdefs.h.  */
30523_ACEOF
30524cat confdefs.h >>conftest.$ac_ext
30525cat >>conftest.$ac_ext <<_ACEOF
30526/* end confdefs.h.  */
30527#include <ieeefp.h>
30528int
30529main ()
30530{
30531float f; finite(f);
30532  ;
30533  return 0;
30534}
30535_ACEOF
30536rm -f conftest.$ac_objext
30537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30538  (eval $ac_compile) 2>conftest.er1
30539  ac_status=$?
30540  grep -v '^ *+' conftest.er1 >conftest.err
30541  rm -f conftest.er1
30542  cat conftest.err >&5
30543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544  (exit $ac_status); } &&
30545	 { ac_try='test -z "$ac_cxx_werror_flag"
30546			 || test ! -s conftest.err'
30547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548  (eval $ac_try) 2>&5
30549  ac_status=$?
30550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551  (exit $ac_status); }; } &&
30552	 { ac_try='test -s conftest.$ac_objext'
30553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30554  (eval $ac_try) 2>&5
30555  ac_status=$?
30556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557  (exit $ac_status); }; }; then
30558  ac_cv_func_finite_in_ieeefp_h=yes
30559else
30560  echo "$as_me: failed program was:" >&5
30561sed 's/^/| /' conftest.$ac_ext >&5
30562
30563ac_cv_func_finite_in_ieeefp_h=no
30564fi
30565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30566  ac_ext=c
30567ac_cpp='$CPP $CPPFLAGS'
30568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570ac_compiler_gnu=$ac_cv_c_compiler_gnu
30571
30572fi
30573echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30574echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30575
30576if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30577
30578cat >>confdefs.h <<\_ACEOF
30579#define HAVE_FINITE_IN_IEEEFP_H 1
30580_ACEOF
30581
30582fi
30583
30584
30585
30586
30587
30588for ac_header in stdlib.h unistd.h
30589do
30590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30591if eval "test \"\${$as_ac_Header+set}\" = set"; then
30592  echo "$as_me:$LINENO: checking for $ac_header" >&5
30593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30594if eval "test \"\${$as_ac_Header+set}\" = set"; then
30595  echo $ECHO_N "(cached) $ECHO_C" >&6
30596fi
30597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30599else
30600  # Is the header compilable?
30601echo "$as_me:$LINENO: checking $ac_header usability" >&5
30602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30603cat >conftest.$ac_ext <<_ACEOF
30604/* confdefs.h.  */
30605_ACEOF
30606cat confdefs.h >>conftest.$ac_ext
30607cat >>conftest.$ac_ext <<_ACEOF
30608/* end confdefs.h.  */
30609$ac_includes_default
30610#include <$ac_header>
30611_ACEOF
30612rm -f conftest.$ac_objext
30613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30614  (eval $ac_compile) 2>conftest.er1
30615  ac_status=$?
30616  grep -v '^ *+' conftest.er1 >conftest.err
30617  rm -f conftest.er1
30618  cat conftest.err >&5
30619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620  (exit $ac_status); } &&
30621	 { ac_try='test -z "$ac_c_werror_flag"
30622			 || test ! -s conftest.err'
30623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624  (eval $ac_try) 2>&5
30625  ac_status=$?
30626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627  (exit $ac_status); }; } &&
30628	 { ac_try='test -s conftest.$ac_objext'
30629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630  (eval $ac_try) 2>&5
30631  ac_status=$?
30632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633  (exit $ac_status); }; }; then
30634  ac_header_compiler=yes
30635else
30636  echo "$as_me: failed program was:" >&5
30637sed 's/^/| /' conftest.$ac_ext >&5
30638
30639ac_header_compiler=no
30640fi
30641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30643echo "${ECHO_T}$ac_header_compiler" >&6
30644
30645# Is the header present?
30646echo "$as_me:$LINENO: checking $ac_header presence" >&5
30647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30648cat >conftest.$ac_ext <<_ACEOF
30649/* confdefs.h.  */
30650_ACEOF
30651cat confdefs.h >>conftest.$ac_ext
30652cat >>conftest.$ac_ext <<_ACEOF
30653/* end confdefs.h.  */
30654#include <$ac_header>
30655_ACEOF
30656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30657  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30658  ac_status=$?
30659  grep -v '^ *+' conftest.er1 >conftest.err
30660  rm -f conftest.er1
30661  cat conftest.err >&5
30662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663  (exit $ac_status); } >/dev/null; then
30664  if test -s conftest.err; then
30665    ac_cpp_err=$ac_c_preproc_warn_flag
30666    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30667  else
30668    ac_cpp_err=
30669  fi
30670else
30671  ac_cpp_err=yes
30672fi
30673if test -z "$ac_cpp_err"; then
30674  ac_header_preproc=yes
30675else
30676  echo "$as_me: failed program was:" >&5
30677sed 's/^/| /' conftest.$ac_ext >&5
30678
30679  ac_header_preproc=no
30680fi
30681rm -f conftest.err conftest.$ac_ext
30682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30683echo "${ECHO_T}$ac_header_preproc" >&6
30684
30685# So?  What about this header?
30686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30687  yes:no: )
30688    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30690    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30692    ac_header_preproc=yes
30693    ;;
30694  no:yes:* )
30695    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30697    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30698echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30699    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30701    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30702echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30703    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30705    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30707    (
30708      cat <<\_ASBOX
30709## ----------------------------------- ##
30710## Report this to llvmbugs@cs.uiuc.edu ##
30711## ----------------------------------- ##
30712_ASBOX
30713    ) |
30714      sed "s/^/$as_me: WARNING:     /" >&2
30715    ;;
30716esac
30717echo "$as_me:$LINENO: checking for $ac_header" >&5
30718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30719if eval "test \"\${$as_ac_Header+set}\" = set"; then
30720  echo $ECHO_N "(cached) $ECHO_C" >&6
30721else
30722  eval "$as_ac_Header=\$ac_header_preproc"
30723fi
30724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30726
30727fi
30728if test `eval echo '${'$as_ac_Header'}'` = yes; then
30729  cat >>confdefs.h <<_ACEOF
30730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30731_ACEOF
30732
30733fi
30734
30735done
30736
30737
30738for ac_func in getpagesize
30739do
30740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30741echo "$as_me:$LINENO: checking for $ac_func" >&5
30742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30743if eval "test \"\${$as_ac_var+set}\" = set"; then
30744  echo $ECHO_N "(cached) $ECHO_C" >&6
30745else
30746  cat >conftest.$ac_ext <<_ACEOF
30747/* confdefs.h.  */
30748_ACEOF
30749cat confdefs.h >>conftest.$ac_ext
30750cat >>conftest.$ac_ext <<_ACEOF
30751/* end confdefs.h.  */
30752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30753   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30754#define $ac_func innocuous_$ac_func
30755
30756/* System header to define __stub macros and hopefully few prototypes,
30757    which can conflict with char $ac_func (); below.
30758    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30759    <limits.h> exists even on freestanding compilers.  */
30760
30761#ifdef __STDC__
30762# include <limits.h>
30763#else
30764# include <assert.h>
30765#endif
30766
30767#undef $ac_func
30768
30769/* Override any gcc2 internal prototype to avoid an error.  */
30770#ifdef __cplusplus
30771extern "C"
30772{
30773#endif
30774/* We use char because int might match the return type of a gcc2
30775   builtin and then its argument prototype would still apply.  */
30776char $ac_func ();
30777/* The GNU C library defines this for functions which it implements
30778    to always fail with ENOSYS.  Some functions are actually named
30779    something starting with __ and the normal name is an alias.  */
30780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30781choke me
30782#else
30783char (*f) () = $ac_func;
30784#endif
30785#ifdef __cplusplus
30786}
30787#endif
30788
30789int
30790main ()
30791{
30792return f != $ac_func;
30793  ;
30794  return 0;
30795}
30796_ACEOF
30797rm -f conftest.$ac_objext conftest$ac_exeext
30798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30799  (eval $ac_link) 2>conftest.er1
30800  ac_status=$?
30801  grep -v '^ *+' conftest.er1 >conftest.err
30802  rm -f conftest.er1
30803  cat conftest.err >&5
30804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805  (exit $ac_status); } &&
30806	 { ac_try='test -z "$ac_c_werror_flag"
30807			 || test ! -s conftest.err'
30808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809  (eval $ac_try) 2>&5
30810  ac_status=$?
30811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812  (exit $ac_status); }; } &&
30813	 { ac_try='test -s conftest$ac_exeext'
30814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30815  (eval $ac_try) 2>&5
30816  ac_status=$?
30817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818  (exit $ac_status); }; }; then
30819  eval "$as_ac_var=yes"
30820else
30821  echo "$as_me: failed program was:" >&5
30822sed 's/^/| /' conftest.$ac_ext >&5
30823
30824eval "$as_ac_var=no"
30825fi
30826rm -f conftest.err conftest.$ac_objext \
30827      conftest$ac_exeext conftest.$ac_ext
30828fi
30829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30830echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30831if test `eval echo '${'$as_ac_var'}'` = yes; then
30832  cat >>confdefs.h <<_ACEOF
30833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30834_ACEOF
30835
30836fi
30837done
30838
30839echo "$as_me:$LINENO: checking for working mmap" >&5
30840echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30841if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30842  echo $ECHO_N "(cached) $ECHO_C" >&6
30843else
30844  if test "$cross_compiling" = yes; then
30845  ac_cv_func_mmap_fixed_mapped=no
30846else
30847  cat >conftest.$ac_ext <<_ACEOF
30848/* confdefs.h.  */
30849_ACEOF
30850cat confdefs.h >>conftest.$ac_ext
30851cat >>conftest.$ac_ext <<_ACEOF
30852/* end confdefs.h.  */
30853$ac_includes_default
30854/* malloc might have been renamed as rpl_malloc. */
30855#undef malloc
30856
30857/* Thanks to Mike Haertel and Jim Avera for this test.
30858   Here is a matrix of mmap possibilities:
30859	mmap private not fixed
30860	mmap private fixed at somewhere currently unmapped
30861	mmap private fixed at somewhere already mapped
30862	mmap shared not fixed
30863	mmap shared fixed at somewhere currently unmapped
30864	mmap shared fixed at somewhere already mapped
30865   For private mappings, we should verify that changes cannot be read()
30866   back from the file, nor mmap's back from the file at a different
30867   address.  (There have been systems where private was not correctly
30868   implemented like the infamous i386 svr4.0, and systems where the
30869   VM page cache was not coherent with the file system buffer cache
30870   like early versions of FreeBSD and possibly contemporary NetBSD.)
30871   For shared mappings, we should conversely verify that changes get
30872   propagated back to all the places they're supposed to be.
30873
30874   Grep wants private fixed already mapped.
30875   The main things grep needs to know about mmap are:
30876   * does it exist and is it safe to write into the mmap'd area
30877   * how to use it (BSD variants)  */
30878
30879#include <fcntl.h>
30880#include <sys/mman.h>
30881
30882#if !STDC_HEADERS && !HAVE_STDLIB_H
30883char *malloc ();
30884#endif
30885
30886/* This mess was copied from the GNU getpagesize.h.  */
30887#if !HAVE_GETPAGESIZE
30888/* Assume that all systems that can run configure have sys/param.h.  */
30889# if !HAVE_SYS_PARAM_H
30890#  define HAVE_SYS_PARAM_H 1
30891# endif
30892
30893# ifdef _SC_PAGESIZE
30894#  define getpagesize() sysconf(_SC_PAGESIZE)
30895# else /* no _SC_PAGESIZE */
30896#  if HAVE_SYS_PARAM_H
30897#   include <sys/param.h>
30898#   ifdef EXEC_PAGESIZE
30899#    define getpagesize() EXEC_PAGESIZE
30900#   else /* no EXEC_PAGESIZE */
30901#    ifdef NBPG
30902#     define getpagesize() NBPG * CLSIZE
30903#     ifndef CLSIZE
30904#      define CLSIZE 1
30905#     endif /* no CLSIZE */
30906#    else /* no NBPG */
30907#     ifdef NBPC
30908#      define getpagesize() NBPC
30909#     else /* no NBPC */
30910#      ifdef PAGESIZE
30911#       define getpagesize() PAGESIZE
30912#      endif /* PAGESIZE */
30913#     endif /* no NBPC */
30914#    endif /* no NBPG */
30915#   endif /* no EXEC_PAGESIZE */
30916#  else /* no HAVE_SYS_PARAM_H */
30917#   define getpagesize() 8192	/* punt totally */
30918#  endif /* no HAVE_SYS_PARAM_H */
30919# endif /* no _SC_PAGESIZE */
30920
30921#endif /* no HAVE_GETPAGESIZE */
30922
30923int
30924main ()
30925{
30926  char *data, *data2, *data3;
30927  int i, pagesize;
30928  int fd;
30929
30930  pagesize = getpagesize ();
30931
30932  /* First, make a file with some known garbage in it. */
30933  data = (char *) malloc (pagesize);
30934  if (!data)
30935    exit (1);
30936  for (i = 0; i < pagesize; ++i)
30937    *(data + i) = rand ();
30938  umask (0);
30939  fd = creat ("conftest.mmap", 0600);
30940  if (fd < 0)
30941    exit (1);
30942  if (write (fd, data, pagesize) != pagesize)
30943    exit (1);
30944  close (fd);
30945
30946  /* Next, try to mmap the file at a fixed address which already has
30947     something else allocated at it.  If we can, also make sure that
30948     we see the same garbage.  */
30949  fd = open ("conftest.mmap", O_RDWR);
30950  if (fd < 0)
30951    exit (1);
30952  data2 = (char *) malloc (2 * pagesize);
30953  if (!data2)
30954    exit (1);
30955  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30956  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30957		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
30958    exit (1);
30959  for (i = 0; i < pagesize; ++i)
30960    if (*(data + i) != *(data2 + i))
30961      exit (1);
30962
30963  /* Finally, make sure that changes to the mapped area do not
30964     percolate back to the file as seen by read().  (This is a bug on
30965     some variants of i386 svr4.0.)  */
30966  for (i = 0; i < pagesize; ++i)
30967    *(data2 + i) = *(data2 + i) + 1;
30968  data3 = (char *) malloc (pagesize);
30969  if (!data3)
30970    exit (1);
30971  if (read (fd, data3, pagesize) != pagesize)
30972    exit (1);
30973  for (i = 0; i < pagesize; ++i)
30974    if (*(data + i) != *(data3 + i))
30975      exit (1);
30976  close (fd);
30977  exit (0);
30978}
30979_ACEOF
30980rm -f conftest$ac_exeext
30981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30982  (eval $ac_link) 2>&5
30983  ac_status=$?
30984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987  (eval $ac_try) 2>&5
30988  ac_status=$?
30989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990  (exit $ac_status); }; }; then
30991  ac_cv_func_mmap_fixed_mapped=yes
30992else
30993  echo "$as_me: program exited with status $ac_status" >&5
30994echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997( exit $ac_status )
30998ac_cv_func_mmap_fixed_mapped=no
30999fi
31000rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31001fi
31002fi
31003echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31004echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31005if test $ac_cv_func_mmap_fixed_mapped = yes; then
31006
31007cat >>confdefs.h <<\_ACEOF
31008#define HAVE_MMAP 1
31009_ACEOF
31010
31011fi
31012rm -f conftest.mmap
31013
31014echo "$as_me:$LINENO: checking for mmap of files" >&5
31015echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31016if test "${ac_cv_func_mmap_file+set}" = set; then
31017  echo $ECHO_N "(cached) $ECHO_C" >&6
31018else
31019   ac_ext=c
31020ac_cpp='$CPP $CPPFLAGS'
31021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31023ac_compiler_gnu=$ac_cv_c_compiler_gnu
31024
31025  if test "$cross_compiling" = yes; then
31026  ac_cv_func_mmap_file=no
31027else
31028  cat >conftest.$ac_ext <<_ACEOF
31029
31030    /* confdefs.h.  */
31031_ACEOF
31032cat confdefs.h >>conftest.$ac_ext
31033cat >>conftest.$ac_ext <<_ACEOF
31034/* end confdefs.h.  */
31035
31036#include <sys/types.h>
31037#include <sys/mman.h>
31038#include <fcntl.h>
31039
31040int
31041main ()
31042{
31043
31044  int fd;
31045  fd = creat ("foo",0777);
31046  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31047  unlink ("foo");
31048  return (fd != (int) MAP_FAILED);
31049  ;
31050  return 0;
31051}
31052_ACEOF
31053rm -f conftest$ac_exeext
31054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055  (eval $ac_link) 2>&5
31056  ac_status=$?
31057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060  (eval $ac_try) 2>&5
31061  ac_status=$?
31062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063  (exit $ac_status); }; }; then
31064  ac_cv_func_mmap_file=yes
31065else
31066  echo "$as_me: program exited with status $ac_status" >&5
31067echo "$as_me: failed program was:" >&5
31068sed 's/^/| /' conftest.$ac_ext >&5
31069
31070( exit $ac_status )
31071ac_cv_func_mmap_file=no
31072fi
31073rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31074fi
31075  ac_ext=c
31076ac_cpp='$CPP $CPPFLAGS'
31077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079ac_compiler_gnu=$ac_cv_c_compiler_gnu
31080
31081
31082fi
31083echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31084echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31085if test "$ac_cv_func_mmap_file" = yes; then
31086
31087cat >>confdefs.h <<\_ACEOF
31088#define HAVE_MMAP_FILE
31089_ACEOF
31090
31091   MMAP_FILE=yes
31092
31093fi
31094
31095echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31096echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31097if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31098  echo $ECHO_N "(cached) $ECHO_C" >&6
31099else
31100  if test "$llvm_cv_os_type" = "Interix" ; then
31101   ac_cv_need_dev_zero_for_mmap=yes
31102 else
31103   ac_cv_need_dev_zero_for_mmap=no
31104 fi
31105
31106fi
31107echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31108echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31109if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31110
31111cat >>confdefs.h <<\_ACEOF
31112#define NEED_DEV_ZERO_FOR_MMAP 1
31113_ACEOF
31114
31115fi
31116echo "$as_me:$LINENO: checking for mprotect" >&5
31117echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31118if test "${ac_cv_func_mprotect+set}" = set; then
31119  echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
31121  cat >conftest.$ac_ext <<_ACEOF
31122/* confdefs.h.  */
31123_ACEOF
31124cat confdefs.h >>conftest.$ac_ext
31125cat >>conftest.$ac_ext <<_ACEOF
31126/* end confdefs.h.  */
31127/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31129#define mprotect innocuous_mprotect
31130
31131/* System header to define __stub macros and hopefully few prototypes,
31132    which can conflict with char mprotect (); below.
31133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31134    <limits.h> exists even on freestanding compilers.  */
31135
31136#ifdef __STDC__
31137# include <limits.h>
31138#else
31139# include <assert.h>
31140#endif
31141
31142#undef mprotect
31143
31144/* Override any gcc2 internal prototype to avoid an error.  */
31145#ifdef __cplusplus
31146extern "C"
31147{
31148#endif
31149/* We use char because int might match the return type of a gcc2
31150   builtin and then its argument prototype would still apply.  */
31151char mprotect ();
31152/* The GNU C library defines this for functions which it implements
31153    to always fail with ENOSYS.  Some functions are actually named
31154    something starting with __ and the normal name is an alias.  */
31155#if defined (__stub_mprotect) || defined (__stub___mprotect)
31156choke me
31157#else
31158char (*f) () = mprotect;
31159#endif
31160#ifdef __cplusplus
31161}
31162#endif
31163
31164int
31165main ()
31166{
31167return f != mprotect;
31168  ;
31169  return 0;
31170}
31171_ACEOF
31172rm -f conftest.$ac_objext conftest$ac_exeext
31173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31174  (eval $ac_link) 2>conftest.er1
31175  ac_status=$?
31176  grep -v '^ *+' conftest.er1 >conftest.err
31177  rm -f conftest.er1
31178  cat conftest.err >&5
31179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180  (exit $ac_status); } &&
31181	 { ac_try='test -z "$ac_c_werror_flag"
31182			 || test ! -s conftest.err'
31183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184  (eval $ac_try) 2>&5
31185  ac_status=$?
31186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187  (exit $ac_status); }; } &&
31188	 { ac_try='test -s conftest$ac_exeext'
31189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190  (eval $ac_try) 2>&5
31191  ac_status=$?
31192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193  (exit $ac_status); }; }; then
31194  ac_cv_func_mprotect=yes
31195else
31196  echo "$as_me: failed program was:" >&5
31197sed 's/^/| /' conftest.$ac_ext >&5
31198
31199ac_cv_func_mprotect=no
31200fi
31201rm -f conftest.err conftest.$ac_objext \
31202      conftest$ac_exeext conftest.$ac_ext
31203fi
31204echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31205echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31206if test $ac_cv_func_mprotect = yes; then
31207  :
31208else
31209  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31210echo "$as_me: error: Function mprotect() required but not found" >&2;}
31211   { (exit 1); exit 1; }; }
31212fi
31213
31214
31215if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31216then
31217  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31218echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31219fi
31220if test "$ac_cv_func_mmap_file" = "no"
31221then
31222  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31223echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31224fi
31225
31226
31227echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31228echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31229if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31230  echo $ECHO_N "(cached) $ECHO_C" >&6
31231else
31232  llvm_cv_llvmgcc_sanity="no"
31233if test -x "$LLVMGCC" ; then
31234  cp /dev/null conftest.c
31235  "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31236  if test $? -eq 0 ; then
31237    llvm_cv_llvmgcc_sanity="yes"
31238  fi
31239  rm conftest.c
31240fi
31241fi
31242echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31243echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31244
31245if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31246  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31247  LLVMCC1=$llvmcc1path
31248
31249  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31250  LLVMCC1PLUS=$llvmcc1pluspath
31251
31252  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31253  LLVMGCCDIR=$llvmgccdir
31254
31255  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31256  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31257  LLVMGCC_VERSION=$llvmgccversion
31258
31259  LLVMGCC_MAJVERS=$llvmgccmajvers
31260
31261fi
31262
31263SHLIBEXT=$libltdl_cv_shlibext
31264
31265
31266# Translate the various configuration directories and other basic
31267# information into substitutions that will end up in Makefile.config.in
31268# that these configured values can be used by the makefiles
31269if test "${prefix}" == "NONE" ; then
31270  prefix="/usr/local"
31271fi
31272eval LLVM_PREFIX="${prefix}";
31273eval LLVM_BINDIR="${prefix}/bin";
31274eval LLVM_LIBDIR="${prefix}/lib";
31275eval LLVM_DATADIR="${prefix}/share/llvm";
31276eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31277eval LLVM_ETCDIR="${prefix}/etc/llvm";
31278eval LLVM_INCLUDEDIR="${prefix}/include";
31279eval LLVM_INFODIR="${prefix}/info";
31280eval LLVM_MANDIR="${prefix}/man";
31281LLVM_CONFIGTIME=`date`
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293# Place the various directores into the config.h file as #defines so that we
31294# can know about the installation paths within LLVM.
31295
31296cat >>confdefs.h <<_ACEOF
31297#define LLVM_PREFIX "$LLVM_PREFIX"
31298_ACEOF
31299
31300
31301cat >>confdefs.h <<_ACEOF
31302#define LLVM_BINDIR "$LLVM_BINDIR"
31303_ACEOF
31304
31305
31306cat >>confdefs.h <<_ACEOF
31307#define LLVM_LIBDIR "$LLVM_LIBDIR"
31308_ACEOF
31309
31310
31311cat >>confdefs.h <<_ACEOF
31312#define LLVM_DATADIR "$LLVM_DATADIR"
31313_ACEOF
31314
31315
31316cat >>confdefs.h <<_ACEOF
31317#define LLVM_DATADIR "$LLVM_DOCSDIR"
31318_ACEOF
31319
31320
31321cat >>confdefs.h <<_ACEOF
31322#define LLVM_ETCDIR "$LLVM_ETCDIR"
31323_ACEOF
31324
31325
31326cat >>confdefs.h <<_ACEOF
31327#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31328_ACEOF
31329
31330
31331cat >>confdefs.h <<_ACEOF
31332#define LLVM_INFODIR "$LLVM_INFODIR"
31333_ACEOF
31334
31335
31336cat >>confdefs.h <<_ACEOF
31337#define LLVM_MANDIR "$LLVM_MANDIR"
31338_ACEOF
31339
31340
31341cat >>confdefs.h <<_ACEOF
31342#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31343_ACEOF
31344
31345
31346
31347          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31348
31349          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31350
31351          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31352
31353          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31354
31355          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31356
31357
31358          ac_config_files="$ac_config_files Makefile.config"
31359
31360
31361          ac_config_files="$ac_config_files docs/doxygen.cfg"
31362
31363
31364          ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31365
31366
31367          ac_config_commands="$ac_config_commands setup"
31368
31369          ac_config_commands="$ac_config_commands Makefile"
31370
31371
31372          ac_config_commands="$ac_config_commands Makefile.common"
31373
31374
31375          ac_config_commands="$ac_config_commands examples/Makefile"
31376
31377
31378          ac_config_commands="$ac_config_commands lib/Makefile"
31379
31380
31381          ac_config_commands="$ac_config_commands runtime/Makefile"
31382
31383
31384          ac_config_commands="$ac_config_commands test/Makefile"
31385
31386
31387          ac_config_commands="$ac_config_commands test/Makefile.tests"
31388
31389
31390          ac_config_commands="$ac_config_commands tools/Makefile"
31391
31392
31393          ac_config_commands="$ac_config_commands utils/Makefile"
31394
31395
31396          ac_config_commands="$ac_config_commands projects/Makefile"
31397
31398
31399
31400cat >confcache <<\_ACEOF
31401# This file is a shell script that caches the results of configure
31402# tests run on this system so they can be shared between configure
31403# scripts and configure runs, see configure's option --config-cache.
31404# It is not useful on other systems.  If it contains results you don't
31405# want to keep, you may remove or edit it.
31406#
31407# config.status only pays attention to the cache file if you give it
31408# the --recheck option to rerun configure.
31409#
31410# `ac_cv_env_foo' variables (set or unset) will be overridden when
31411# loading this file, other *unset* `ac_cv_foo' will be assigned the
31412# following values.
31413
31414_ACEOF
31415
31416# The following way of writing the cache mishandles newlines in values,
31417# but we know of no workaround that is simple, portable, and efficient.
31418# So, don't put newlines in cache variables' values.
31419# Ultrix sh set writes to stderr and can't be redirected directly,
31420# and sets the high bit in the cache file unless we assign to the vars.
31421{
31422  (set) 2>&1 |
31423    case `(ac_space=' '; set | grep ac_space) 2>&1` in
31424    *ac_space=\ *)
31425      # `set' does not quote correctly, so add quotes (double-quote
31426      # substitution turns \\\\ into \\, and sed turns \\ into \).
31427      sed -n \
31428	"s/'/'\\\\''/g;
31429	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31430      ;;
31431    *)
31432      # `set' quotes correctly as required by POSIX, so do not add quotes.
31433      sed -n \
31434	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31435      ;;
31436    esac;
31437} |
31438  sed '
31439     t clear
31440     : clear
31441     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31442     t end
31443     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31444     : end' >>confcache
31445if diff $cache_file confcache >/dev/null 2>&1; then :; else
31446  if test -w $cache_file; then
31447    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31448    cat confcache >$cache_file
31449  else
31450    echo "not updating unwritable cache $cache_file"
31451  fi
31452fi
31453rm -f confcache
31454
31455test "x$prefix" = xNONE && prefix=$ac_default_prefix
31456# Let make expand exec_prefix.
31457test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31458
31459# VPATH may cause trouble with some makes, so we remove $(srcdir),
31460# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31461# trailing colons and then remove the whole line if VPATH becomes empty
31462# (actually we leave an empty line to preserve line numbers).
31463if test "x$srcdir" = x.; then
31464  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31465s/:*\$(srcdir):*/:/;
31466s/:*\${srcdir}:*/:/;
31467s/:*@srcdir@:*/:/;
31468s/^\([^=]*=[	 ]*\):*/\1/;
31469s/:*$//;
31470s/^[^=]*=[	 ]*$//;
31471}'
31472fi
31473
31474DEFS=-DHAVE_CONFIG_H
31475
31476ac_libobjs=
31477ac_ltlibobjs=
31478for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31479  # 1. Remove the extension, and $U if already installed.
31480  ac_i=`echo "$ac_i" |
31481	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31482  # 2. Add them.
31483  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31484  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31485done
31486LIBOBJS=$ac_libobjs
31487
31488LTLIBOBJS=$ac_ltlibobjs
31489
31490
31491if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31492  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31493Usually this means the macro was only invoked conditionally." >&5
31494echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31495Usually this means the macro was only invoked conditionally." >&2;}
31496   { (exit 1); exit 1; }; }
31497fi
31498if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31499  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31500Usually this means the macro was only invoked conditionally." >&5
31501echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31502Usually this means the macro was only invoked conditionally." >&2;}
31503   { (exit 1); exit 1; }; }
31504fi
31505
31506: ${CONFIG_STATUS=./config.status}
31507ac_clean_files_save=$ac_clean_files
31508ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31509{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31510echo "$as_me: creating $CONFIG_STATUS" >&6;}
31511cat >$CONFIG_STATUS <<_ACEOF
31512#! $SHELL
31513# Generated by $as_me.
31514# Run this file to recreate the current configuration.
31515# Compiler output produced by configure, useful for debugging
31516# configure, is in config.log if it exists.
31517
31518debug=false
31519ac_cs_recheck=false
31520ac_cs_silent=false
31521SHELL=\${CONFIG_SHELL-$SHELL}
31522_ACEOF
31523
31524cat >>$CONFIG_STATUS <<\_ACEOF
31525## --------------------- ##
31526## M4sh Initialization.  ##
31527## --------------------- ##
31528
31529# Be Bourne compatible
31530if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31531  emulate sh
31532  NULLCMD=:
31533  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31534  # is contrary to our usage.  Disable this feature.
31535  alias -g '${1+"$@"}'='"$@"'
31536elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31537  set -o posix
31538fi
31539DUALCASE=1; export DUALCASE # for MKS sh
31540
31541# Support unset when possible.
31542if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31543  as_unset=unset
31544else
31545  as_unset=false
31546fi
31547
31548
31549# Work around bugs in pre-3.0 UWIN ksh.
31550$as_unset ENV MAIL MAILPATH
31551PS1='$ '
31552PS2='> '
31553PS4='+ '
31554
31555# NLS nuisances.
31556for as_var in \
31557  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31558  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31559  LC_TELEPHONE LC_TIME
31560do
31561  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31562    eval $as_var=C; export $as_var
31563  else
31564    $as_unset $as_var
31565  fi
31566done
31567
31568# Required to use basename.
31569if expr a : '\(a\)' >/dev/null 2>&1; then
31570  as_expr=expr
31571else
31572  as_expr=false
31573fi
31574
31575if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31576  as_basename=basename
31577else
31578  as_basename=false
31579fi
31580
31581
31582# Name of the executable.
31583as_me=`$as_basename "$0" ||
31584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31585	 X"$0" : 'X\(//\)$' \| \
31586	 X"$0" : 'X\(/\)$' \| \
31587	 .     : '\(.\)' 2>/dev/null ||
31588echo X/"$0" |
31589    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31590  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31591  	  /^X\/\(\/\).*/{ s//\1/; q; }
31592  	  s/.*/./; q'`
31593
31594
31595# PATH needs CR, and LINENO needs CR and PATH.
31596# Avoid depending upon Character Ranges.
31597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31600as_cr_digits='0123456789'
31601as_cr_alnum=$as_cr_Letters$as_cr_digits
31602
31603# The user is always right.
31604if test "${PATH_SEPARATOR+set}" != set; then
31605  echo "#! /bin/sh" >conf$$.sh
31606  echo  "exit 0"   >>conf$$.sh
31607  chmod +x conf$$.sh
31608  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31609    PATH_SEPARATOR=';'
31610  else
31611    PATH_SEPARATOR=:
31612  fi
31613  rm -f conf$$.sh
31614fi
31615
31616
31617  as_lineno_1=$LINENO
31618  as_lineno_2=$LINENO
31619  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31620  test "x$as_lineno_1" != "x$as_lineno_2" &&
31621  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31622  # Find who we are.  Look in the path if we contain no path at all
31623  # relative or not.
31624  case $0 in
31625    *[\\/]* ) as_myself=$0 ;;
31626    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31627for as_dir in $PATH
31628do
31629  IFS=$as_save_IFS
31630  test -z "$as_dir" && as_dir=.
31631  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31632done
31633
31634       ;;
31635  esac
31636  # We did not find ourselves, most probably we were run as `sh COMMAND'
31637  # in which case we are not to be found in the path.
31638  if test "x$as_myself" = x; then
31639    as_myself=$0
31640  fi
31641  if test ! -f "$as_myself"; then
31642    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31643echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31644   { (exit 1); exit 1; }; }
31645  fi
31646  case $CONFIG_SHELL in
31647  '')
31648    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31650do
31651  IFS=$as_save_IFS
31652  test -z "$as_dir" && as_dir=.
31653  for as_base in sh bash ksh sh5; do
31654	 case $as_dir in
31655	 /*)
31656	   if ("$as_dir/$as_base" -c '
31657  as_lineno_1=$LINENO
31658  as_lineno_2=$LINENO
31659  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31660  test "x$as_lineno_1" != "x$as_lineno_2" &&
31661  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31662	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31663	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31664	     CONFIG_SHELL=$as_dir/$as_base
31665	     export CONFIG_SHELL
31666	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31667	   fi;;
31668	 esac
31669       done
31670done
31671;;
31672  esac
31673
31674  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31675  # uniformly replaced by the line number.  The first 'sed' inserts a
31676  # line-number line before each line; the second 'sed' does the real
31677  # work.  The second script uses 'N' to pair each line-number line
31678  # with the numbered line, and appends trailing '-' during
31679  # substitution so that $LINENO is not a special case at line end.
31680  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31681  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31682  sed '=' <$as_myself |
31683    sed '
31684      N
31685      s,$,-,
31686      : loop
31687      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31688      t loop
31689      s,-$,,
31690      s,^['$as_cr_digits']*\n,,
31691    ' >$as_me.lineno &&
31692  chmod +x $as_me.lineno ||
31693    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31694echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31695   { (exit 1); exit 1; }; }
31696
31697  # Don't try to exec as it changes $[0], causing all sort of problems
31698  # (the dirname of $[0] is not the place where we might find the
31699  # original and so on.  Autoconf is especially sensible to this).
31700  . ./$as_me.lineno
31701  # Exit status is that of the last command.
31702  exit
31703}
31704
31705
31706case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31707  *c*,-n*) ECHO_N= ECHO_C='
31708' ECHO_T='	' ;;
31709  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31710  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31711esac
31712
31713if expr a : '\(a\)' >/dev/null 2>&1; then
31714  as_expr=expr
31715else
31716  as_expr=false
31717fi
31718
31719rm -f conf$$ conf$$.exe conf$$.file
31720echo >conf$$.file
31721if ln -s conf$$.file conf$$ 2>/dev/null; then
31722  # We could just check for DJGPP; but this test a) works b) is more generic
31723  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31724  if test -f conf$$.exe; then
31725    # Don't use ln at all; we don't have any links
31726    as_ln_s='cp -p'
31727  else
31728    as_ln_s='ln -s'
31729  fi
31730elif ln conf$$.file conf$$ 2>/dev/null; then
31731  as_ln_s=ln
31732else
31733  as_ln_s='cp -p'
31734fi
31735rm -f conf$$ conf$$.exe conf$$.file
31736
31737if mkdir -p . 2>/dev/null; then
31738  as_mkdir_p=:
31739else
31740  test -d ./-p && rmdir ./-p
31741  as_mkdir_p=false
31742fi
31743
31744as_executable_p="test -f"
31745
31746# Sed expression to map a string onto a valid CPP name.
31747as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31748
31749# Sed expression to map a string onto a valid variable name.
31750as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31751
31752
31753# IFS
31754# We need space, tab and new line, in precisely that order.
31755as_nl='
31756'
31757IFS=" 	$as_nl"
31758
31759# CDPATH.
31760$as_unset CDPATH
31761
31762exec 6>&1
31763
31764# Open the log real soon, to keep \$[0] and so on meaningful, and to
31765# report actual input values of CONFIG_FILES etc. instead of their
31766# values after options handling.  Logging --version etc. is OK.
31767exec 5>>config.log
31768{
31769  echo
31770  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31771## Running $as_me. ##
31772_ASBOX
31773} >&5
31774cat >&5 <<_CSEOF
31775
31776This file was extended by llvm $as_me 1.8cvs, which was
31777generated by GNU Autoconf 2.59.  Invocation command line was
31778
31779  CONFIG_FILES    = $CONFIG_FILES
31780  CONFIG_HEADERS  = $CONFIG_HEADERS
31781  CONFIG_LINKS    = $CONFIG_LINKS
31782  CONFIG_COMMANDS = $CONFIG_COMMANDS
31783  $ $0 $@
31784
31785_CSEOF
31786echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31787echo >&5
31788_ACEOF
31789
31790# Files that config.status was made for.
31791if test -n "$ac_config_files"; then
31792  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31793fi
31794
31795if test -n "$ac_config_headers"; then
31796  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31797fi
31798
31799if test -n "$ac_config_links"; then
31800  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31801fi
31802
31803if test -n "$ac_config_commands"; then
31804  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31805fi
31806
31807cat >>$CONFIG_STATUS <<\_ACEOF
31808
31809ac_cs_usage="\
31810\`$as_me' instantiates files from templates according to the
31811current configuration.
31812
31813Usage: $0 [OPTIONS] [FILE]...
31814
31815  -h, --help       print this help, then exit
31816  -V, --version    print version number, then exit
31817  -q, --quiet      do not print progress messages
31818  -d, --debug      don't remove temporary files
31819      --recheck    update $as_me by reconfiguring in the same conditions
31820  --file=FILE[:TEMPLATE]
31821		   instantiate the configuration file FILE
31822  --header=FILE[:TEMPLATE]
31823		   instantiate the configuration header FILE
31824
31825Configuration files:
31826$config_files
31827
31828Configuration headers:
31829$config_headers
31830
31831Configuration commands:
31832$config_commands
31833
31834Report bugs to <bug-autoconf@gnu.org>."
31835_ACEOF
31836
31837cat >>$CONFIG_STATUS <<_ACEOF
31838ac_cs_version="\\
31839llvm config.status 1.8cvs
31840configured by $0, generated by GNU Autoconf 2.59,
31841  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31842
31843Copyright (C) 2003 Free Software Foundation, Inc.
31844This config.status script is free software; the Free Software Foundation
31845gives unlimited permission to copy, distribute and modify it."
31846srcdir=$srcdir
31847INSTALL="$INSTALL"
31848_ACEOF
31849
31850cat >>$CONFIG_STATUS <<\_ACEOF
31851# If no file are specified by the user, then we need to provide default
31852# value.  By we need to know if files were specified by the user.
31853ac_need_defaults=:
31854while test $# != 0
31855do
31856  case $1 in
31857  --*=*)
31858    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31859    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31860    ac_shift=:
31861    ;;
31862  -*)
31863    ac_option=$1
31864    ac_optarg=$2
31865    ac_shift=shift
31866    ;;
31867  *) # This is not an option, so the user has probably given explicit
31868     # arguments.
31869     ac_option=$1
31870     ac_need_defaults=false;;
31871  esac
31872
31873  case $ac_option in
31874  # Handling of the options.
31875_ACEOF
31876cat >>$CONFIG_STATUS <<\_ACEOF
31877  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31878    ac_cs_recheck=: ;;
31879  --version | --vers* | -V )
31880    echo "$ac_cs_version"; exit 0 ;;
31881  --he | --h)
31882    # Conflict between --help and --header
31883    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31884Try \`$0 --help' for more information." >&5
31885echo "$as_me: error: ambiguous option: $1
31886Try \`$0 --help' for more information." >&2;}
31887   { (exit 1); exit 1; }; };;
31888  --help | --hel | -h )
31889    echo "$ac_cs_usage"; exit 0 ;;
31890  --debug | --d* | -d )
31891    debug=: ;;
31892  --file | --fil | --fi | --f )
31893    $ac_shift
31894    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31895    ac_need_defaults=false;;
31896  --header | --heade | --head | --hea )
31897    $ac_shift
31898    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31899    ac_need_defaults=false;;
31900  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31901  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31902    ac_cs_silent=: ;;
31903
31904  # This is an error.
31905  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31906Try \`$0 --help' for more information." >&5
31907echo "$as_me: error: unrecognized option: $1
31908Try \`$0 --help' for more information." >&2;}
31909   { (exit 1); exit 1; }; } ;;
31910
31911  *) ac_config_targets="$ac_config_targets $1" ;;
31912
31913  esac
31914  shift
31915done
31916
31917ac_configure_extra_args=
31918
31919if $ac_cs_silent; then
31920  exec 6>/dev/null
31921  ac_configure_extra_args="$ac_configure_extra_args --silent"
31922fi
31923
31924_ACEOF
31925cat >>$CONFIG_STATUS <<_ACEOF
31926if \$ac_cs_recheck; then
31927  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31928  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31929fi
31930
31931_ACEOF
31932
31933cat >>$CONFIG_STATUS <<_ACEOF
31934#
31935# INIT-COMMANDS section.
31936#
31937
31938llvm_src="${srcdir}"
31939
31940_ACEOF
31941
31942
31943
31944cat >>$CONFIG_STATUS <<\_ACEOF
31945for ac_config_target in $ac_config_targets
31946do
31947  case "$ac_config_target" in
31948  # Handling of arguments.
31949  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31950  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31951  "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31952  "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31953  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31954  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31955  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31956  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31957  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31958  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31959  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31960  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31961  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31962  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31963  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31964  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31965  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31966  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31967  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31968  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31969echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31970   { (exit 1); exit 1; }; };;
31971  esac
31972done
31973
31974# If the user did not use the arguments to specify the items to instantiate,
31975# then the envvar interface is used.  Set only those that are not.
31976# We use the long form for the default assignment because of an extremely
31977# bizarre bug on SunOS 4.1.3.
31978if $ac_need_defaults; then
31979  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31980  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31981  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31982fi
31983
31984# Have a temporary directory for convenience.  Make it in the build tree
31985# simply because there is no reason to put it here, and in addition,
31986# creating and moving files from /tmp can sometimes cause problems.
31987# Create a temporary directory, and hook for its removal unless debugging.
31988$debug ||
31989{
31990  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31991  trap '{ (exit 1); exit 1; }' 1 2 13 15
31992}
31993
31994# Create a (secure) tmp directory for tmp files.
31995
31996{
31997  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31998  test -n "$tmp" && test -d "$tmp"
31999}  ||
32000{
32001  tmp=./confstat$$-$RANDOM
32002  (umask 077 && mkdir $tmp)
32003} ||
32004{
32005   echo "$me: cannot create a temporary directory in ." >&2
32006   { (exit 1); exit 1; }
32007}
32008
32009_ACEOF
32010
32011cat >>$CONFIG_STATUS <<_ACEOF
32012
32013#
32014# CONFIG_FILES section.
32015#
32016
32017# No need to generate the scripts if there are no CONFIG_FILES.
32018# This happens for instance when ./config.status config.h
32019if test -n "\$CONFIG_FILES"; then
32020  # Protect against being on the right side of a sed subst in config.status.
32021  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32022   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32023s,@SHELL@,$SHELL,;t t
32024s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32025s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32026s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32027s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32028s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32029s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32030s,@exec_prefix@,$exec_prefix,;t t
32031s,@prefix@,$prefix,;t t
32032s,@program_transform_name@,$program_transform_name,;t t
32033s,@bindir@,$bindir,;t t
32034s,@sbindir@,$sbindir,;t t
32035s,@libexecdir@,$libexecdir,;t t
32036s,@datadir@,$datadir,;t t
32037s,@sysconfdir@,$sysconfdir,;t t
32038s,@sharedstatedir@,$sharedstatedir,;t t
32039s,@localstatedir@,$localstatedir,;t t
32040s,@libdir@,$libdir,;t t
32041s,@includedir@,$includedir,;t t
32042s,@oldincludedir@,$oldincludedir,;t t
32043s,@infodir@,$infodir,;t t
32044s,@mandir@,$mandir,;t t
32045s,@build_alias@,$build_alias,;t t
32046s,@host_alias@,$host_alias,;t t
32047s,@target_alias@,$target_alias,;t t
32048s,@DEFS@,$DEFS,;t t
32049s,@ECHO_C@,$ECHO_C,;t t
32050s,@ECHO_N@,$ECHO_N,;t t
32051s,@ECHO_T@,$ECHO_T,;t t
32052s,@LIBS@,$LIBS,;t t
32053s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
32054s,@subdirs@,$subdirs,;t t
32055s,@build@,$build,;t t
32056s,@build_cpu@,$build_cpu,;t t
32057s,@build_vendor@,$build_vendor,;t t
32058s,@build_os@,$build_os,;t t
32059s,@host@,$host,;t t
32060s,@host_cpu@,$host_cpu,;t t
32061s,@host_vendor@,$host_vendor,;t t
32062s,@host_os@,$host_os,;t t
32063s,@target@,$target,;t t
32064s,@target_cpu@,$target_cpu,;t t
32065s,@target_vendor@,$target_vendor,;t t
32066s,@target_os@,$target_os,;t t
32067s,@OS@,$OS,;t t
32068s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32069s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
32070s,@ARCH@,$ARCH,;t t
32071s,@ENDIAN@,$ENDIAN,;t t
32072s,@CC@,$CC,;t t
32073s,@CFLAGS@,$CFLAGS,;t t
32074s,@LDFLAGS@,$LDFLAGS,;t t
32075s,@CPPFLAGS@,$CPPFLAGS,;t t
32076s,@ac_ct_CC@,$ac_ct_CC,;t t
32077s,@EXEEXT@,$EXEEXT,;t t
32078s,@OBJEXT@,$OBJEXT,;t t
32079s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32080s,@BUILD_CC@,$BUILD_CC,;t t
32081s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
32082s,@CVSBUILD@,$CVSBUILD,;t t
32083s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
32084s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
32085s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
32086s,@JIT@,$JIT,;t t
32087s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
32088s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
32089s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
32090s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
32091s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
32092s,@CPP@,$CPP,;t t
32093s,@CXX@,$CXX,;t t
32094s,@CXXFLAGS@,$CXXFLAGS,;t t
32095s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32096s,@LEX@,$LEX,;t t
32097s,@LEXLIB@,$LEXLIB,;t t
32098s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
32099s,@FLEX@,$FLEX,;t t
32100s,@YACC@,$YACC,;t t
32101s,@BISON@,$BISON,;t t
32102s,@ifGNUmake@,$ifGNUmake,;t t
32103s,@LN_S@,$LN_S,;t t
32104s,@CMP@,$CMP,;t t
32105s,@CP@,$CP,;t t
32106s,@DATE@,$DATE,;t t
32107s,@FIND@,$FIND,;t t
32108s,@GREP@,$GREP,;t t
32109s,@MKDIR@,$MKDIR,;t t
32110s,@MV@,$MV,;t t
32111s,@RANLIB@,$RANLIB,;t t
32112s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32113s,@RM@,$RM,;t t
32114s,@SED@,$SED,;t t
32115s,@TAR@,$TAR,;t t
32116s,@GRAPHVIZ@,$GRAPHVIZ,;t t
32117s,@DOT@,$DOT,;t t
32118s,@GV@,$GV,;t t
32119s,@DOTTY@,$DOTTY,;t t
32120s,@PERL@,$PERL,;t t
32121s,@HAVE_PERL@,$HAVE_PERL,;t t
32122s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32123s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32124s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32125s,@BZIP2@,$BZIP2,;t t
32126s,@DOXYGEN@,$DOXYGEN,;t t
32127s,@ETAGS@,$ETAGS,;t t
32128s,@GROFF@,$GROFF,;t t
32129s,@GZIP@,$GZIP,;t t
32130s,@POD2HTML@,$POD2HTML,;t t
32131s,@POD2MAN@,$POD2MAN,;t t
32132s,@RUNTEST@,$RUNTEST,;t t
32133s,@TCLSH@,$TCLSH,;t t
32134s,@ZIP@,$ZIP,;t t
32135s,@EGREP@,$EGREP,;t t
32136s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32137s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32138s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32139s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32140s,@LIBADD_DL@,$LIBADD_DL,;t t
32141s,@ECHO@,$ECHO,;t t
32142s,@AR@,$AR,;t t
32143s,@ac_ct_AR@,$ac_ct_AR,;t t
32144s,@STRIP@,$STRIP,;t t
32145s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32146s,@CXXCPP@,$CXXCPP,;t t
32147s,@F77@,$F77,;t t
32148s,@FFLAGS@,$FFLAGS,;t t
32149s,@ac_ct_F77@,$ac_ct_F77,;t t
32150s,@LIBTOOL@,$LIBTOOL,;t t
32151s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
32152s,@LLVMGCC@,$LLVMGCC,;t t
32153s,@LLVMGXX@,$LLVMGXX,;t t
32154s,@ALLOCA@,$ALLOCA,;t t
32155s,@MMAP_FILE@,$MMAP_FILE,;t t
32156s,@LLVMCC1@,$LLVMCC1,;t t
32157s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
32158s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
32159s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32160s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
32161s,@SHLIBEXT@,$SHLIBEXT,;t t
32162s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32163s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32164s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32165s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32166s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32167s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32168s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32169s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32170s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32171s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
32172s,@LIBOBJS@,$LIBOBJS,;t t
32173s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32174CEOF
32175
32176_ACEOF
32177
32178  cat >>$CONFIG_STATUS <<\_ACEOF
32179  # Split the substitutions into bite-sized pieces for seds with
32180  # small command number limits, like on Digital OSF/1 and HP-UX.
32181  ac_max_sed_lines=48
32182  ac_sed_frag=1 # Number of current file.
32183  ac_beg=1 # First line for current file.
32184  ac_end=$ac_max_sed_lines # Line after last line for current file.
32185  ac_more_lines=:
32186  ac_sed_cmds=
32187  while $ac_more_lines; do
32188    if test $ac_beg -gt 1; then
32189      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32190    else
32191      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32192    fi
32193    if test ! -s $tmp/subs.frag; then
32194      ac_more_lines=false
32195    else
32196      # The purpose of the label and of the branching condition is to
32197      # speed up the sed processing (if there are no `@' at all, there
32198      # is no need to browse any of the substitutions).
32199      # These are the two extra sed commands mentioned above.
32200      (echo ':t
32201  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32202      if test -z "$ac_sed_cmds"; then
32203	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32204      else
32205	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32206      fi
32207      ac_sed_frag=`expr $ac_sed_frag + 1`
32208      ac_beg=$ac_end
32209      ac_end=`expr $ac_end + $ac_max_sed_lines`
32210    fi
32211  done
32212  if test -z "$ac_sed_cmds"; then
32213    ac_sed_cmds=cat
32214  fi
32215fi # test -n "$CONFIG_FILES"
32216
32217_ACEOF
32218cat >>$CONFIG_STATUS <<\_ACEOF
32219for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32220  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32221  case $ac_file in
32222  - | *:- | *:-:* ) # input from stdin
32223	cat >$tmp/stdin
32224	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32225	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32226  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32227	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32228  * )   ac_file_in=$ac_file.in ;;
32229  esac
32230
32231  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32232  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32234	 X"$ac_file" : 'X\(//\)[^/]' \| \
32235	 X"$ac_file" : 'X\(//\)$' \| \
32236	 X"$ac_file" : 'X\(/\)' \| \
32237	 .     : '\(.\)' 2>/dev/null ||
32238echo X"$ac_file" |
32239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32240  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32241  	  /^X\(\/\/\)$/{ s//\1/; q; }
32242  	  /^X\(\/\).*/{ s//\1/; q; }
32243  	  s/.*/./; q'`
32244  { if $as_mkdir_p; then
32245    mkdir -p "$ac_dir"
32246  else
32247    as_dir="$ac_dir"
32248    as_dirs=
32249    while test ! -d "$as_dir"; do
32250      as_dirs="$as_dir $as_dirs"
32251      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32253	 X"$as_dir" : 'X\(//\)[^/]' \| \
32254	 X"$as_dir" : 'X\(//\)$' \| \
32255	 X"$as_dir" : 'X\(/\)' \| \
32256	 .     : '\(.\)' 2>/dev/null ||
32257echo X"$as_dir" |
32258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32259  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32260  	  /^X\(\/\/\)$/{ s//\1/; q; }
32261  	  /^X\(\/\).*/{ s//\1/; q; }
32262  	  s/.*/./; q'`
32263    done
32264    test ! -n "$as_dirs" || mkdir $as_dirs
32265  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32266echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32267   { (exit 1); exit 1; }; }; }
32268
32269  ac_builddir=.
32270
32271if test "$ac_dir" != .; then
32272  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32273  # A "../" for each directory in $ac_dir_suffix.
32274  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32275else
32276  ac_dir_suffix= ac_top_builddir=
32277fi
32278
32279case $srcdir in
32280  .)  # No --srcdir option.  We are building in place.
32281    ac_srcdir=.
32282    if test -z "$ac_top_builddir"; then
32283       ac_top_srcdir=.
32284    else
32285       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32286    fi ;;
32287  [\\/]* | ?:[\\/]* )  # Absolute path.
32288    ac_srcdir=$srcdir$ac_dir_suffix;
32289    ac_top_srcdir=$srcdir ;;
32290  *) # Relative path.
32291    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32292    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32293esac
32294
32295# Do not use `cd foo && pwd` to compute absolute paths, because
32296# the directories may not exist.
32297case `pwd` in
32298.) ac_abs_builddir="$ac_dir";;
32299*)
32300  case "$ac_dir" in
32301  .) ac_abs_builddir=`pwd`;;
32302  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32303  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32304  esac;;
32305esac
32306case $ac_abs_builddir in
32307.) ac_abs_top_builddir=${ac_top_builddir}.;;
32308*)
32309  case ${ac_top_builddir}. in
32310  .) ac_abs_top_builddir=$ac_abs_builddir;;
32311  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32312  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32313  esac;;
32314esac
32315case $ac_abs_builddir in
32316.) ac_abs_srcdir=$ac_srcdir;;
32317*)
32318  case $ac_srcdir in
32319  .) ac_abs_srcdir=$ac_abs_builddir;;
32320  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32321  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32322  esac;;
32323esac
32324case $ac_abs_builddir in
32325.) ac_abs_top_srcdir=$ac_top_srcdir;;
32326*)
32327  case $ac_top_srcdir in
32328  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32329  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32330  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32331  esac;;
32332esac
32333
32334
32335  case $INSTALL in
32336  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32337  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32338  esac
32339
32340  if test x"$ac_file" != x-; then
32341    { echo "$as_me:$LINENO: creating $ac_file" >&5
32342echo "$as_me: creating $ac_file" >&6;}
32343    rm -f "$ac_file"
32344  fi
32345  # Let's still pretend it is `configure' which instantiates (i.e., don't
32346  # use $as_me), people would be surprised to read:
32347  #    /* config.h.  Generated by config.status.  */
32348  if test x"$ac_file" = x-; then
32349    configure_input=
32350  else
32351    configure_input="$ac_file.  "
32352  fi
32353  configure_input=$configure_input"Generated from `echo $ac_file_in |
32354				     sed 's,.*/,,'` by configure."
32355
32356  # First look for the input files in the build tree, otherwise in the
32357  # src tree.
32358  ac_file_inputs=`IFS=:
32359    for f in $ac_file_in; do
32360      case $f in
32361      -) echo $tmp/stdin ;;
32362      [\\/$]*)
32363	 # Absolute (can't be DOS-style, as IFS=:)
32364	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32365echo "$as_me: error: cannot find input file: $f" >&2;}
32366   { (exit 1); exit 1; }; }
32367	 echo "$f";;
32368      *) # Relative
32369	 if test -f "$f"; then
32370	   # Build tree
32371	   echo "$f"
32372	 elif test -f "$srcdir/$f"; then
32373	   # Source tree
32374	   echo "$srcdir/$f"
32375	 else
32376	   # /dev/null tree
32377	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32378echo "$as_me: error: cannot find input file: $f" >&2;}
32379   { (exit 1); exit 1; }; }
32380	 fi;;
32381      esac
32382    done` || { (exit 1); exit 1; }
32383_ACEOF
32384cat >>$CONFIG_STATUS <<_ACEOF
32385  sed "$ac_vpsub
32386$extrasub
32387_ACEOF
32388cat >>$CONFIG_STATUS <<\_ACEOF
32389:t
32390/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32391s,@configure_input@,$configure_input,;t t
32392s,@srcdir@,$ac_srcdir,;t t
32393s,@abs_srcdir@,$ac_abs_srcdir,;t t
32394s,@top_srcdir@,$ac_top_srcdir,;t t
32395s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32396s,@builddir@,$ac_builddir,;t t
32397s,@abs_builddir@,$ac_abs_builddir,;t t
32398s,@top_builddir@,$ac_top_builddir,;t t
32399s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32400s,@INSTALL@,$ac_INSTALL,;t t
32401" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32402  rm -f $tmp/stdin
32403  if test x"$ac_file" != x-; then
32404    mv $tmp/out $ac_file
32405  else
32406    cat $tmp/out
32407    rm -f $tmp/out
32408  fi
32409
32410done
32411_ACEOF
32412cat >>$CONFIG_STATUS <<\_ACEOF
32413
32414#
32415# CONFIG_HEADER section.
32416#
32417
32418# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32419# NAME is the cpp macro being defined and VALUE is the value it is being given.
32420#
32421# ac_d sets the value in "#define NAME VALUE" lines.
32422ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
32423ac_dB='[	 ].*$,\1#\2'
32424ac_dC=' '
32425ac_dD=',;t'
32426# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32427ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
32428ac_uB='$,\1#\2define\3'
32429ac_uC=' '
32430ac_uD=',;t'
32431
32432for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32433  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32434  case $ac_file in
32435  - | *:- | *:-:* ) # input from stdin
32436	cat >$tmp/stdin
32437	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32438	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32439  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32440	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32441  * )   ac_file_in=$ac_file.in ;;
32442  esac
32443
32444  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32445echo "$as_me: creating $ac_file" >&6;}
32446
32447  # First look for the input files in the build tree, otherwise in the
32448  # src tree.
32449  ac_file_inputs=`IFS=:
32450    for f in $ac_file_in; do
32451      case $f in
32452      -) echo $tmp/stdin ;;
32453      [\\/$]*)
32454	 # Absolute (can't be DOS-style, as IFS=:)
32455	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32456echo "$as_me: error: cannot find input file: $f" >&2;}
32457   { (exit 1); exit 1; }; }
32458	 # Do quote $f, to prevent DOS paths from being IFS'd.
32459	 echo "$f";;
32460      *) # Relative
32461	 if test -f "$f"; then
32462	   # Build tree
32463	   echo "$f"
32464	 elif test -f "$srcdir/$f"; then
32465	   # Source tree
32466	   echo "$srcdir/$f"
32467	 else
32468	   # /dev/null tree
32469	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32470echo "$as_me: error: cannot find input file: $f" >&2;}
32471   { (exit 1); exit 1; }; }
32472	 fi;;
32473      esac
32474    done` || { (exit 1); exit 1; }
32475  # Remove the trailing spaces.
32476  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
32477
32478_ACEOF
32479
32480# Transform confdefs.h into two sed scripts, `conftest.defines' and
32481# `conftest.undefs', that substitutes the proper values into
32482# config.h.in to produce config.h.  The first handles `#define'
32483# templates, and the second `#undef' templates.
32484# And first: Protect against being on the right side of a sed subst in
32485# config.status.  Protect against being in an unquoted here document
32486# in config.status.
32487rm -f conftest.defines conftest.undefs
32488# Using a here document instead of a string reduces the quoting nightmare.
32489# Putting comments in sed scripts is not portable.
32490#
32491# `end' is used to avoid that the second main sed command (meant for
32492# 0-ary CPP macros) applies to n-ary macro definitions.
32493# See the Autoconf documentation for `clear'.
32494cat >confdef2sed.sed <<\_ACEOF
32495s/[\\&,]/\\&/g
32496s,[\\$`],\\&,g
32497t clear
32498: clear
32499s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32500t end
32501s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32502: end
32503_ACEOF
32504# If some macros were called several times there might be several times
32505# the same #defines, which is useless.  Nevertheless, we may not want to
32506# sort them, since we want the *last* AC-DEFINE to be honored.
32507uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32508sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32509rm -f confdef2sed.sed
32510
32511# This sed command replaces #undef with comments.  This is necessary, for
32512# example, in the case of _POSIX_SOURCE, which is predefined and required
32513# on some systems where configure will not decide to define it.
32514cat >>conftest.undefs <<\_ACEOF
32515s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32516_ACEOF
32517
32518# Break up conftest.defines because some shells have a limit on the size
32519# of here documents, and old seds have small limits too (100 cmds).
32520echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32521echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32522echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32523echo '  :' >>$CONFIG_STATUS
32524rm -f conftest.tail
32525while grep . conftest.defines >/dev/null
32526do
32527  # Write a limited-size here document to $tmp/defines.sed.
32528  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32529  # Speed up: don't consider the non `#define' lines.
32530  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
32531  # Work around the forget-to-reset-the-flag bug.
32532  echo 't clr' >>$CONFIG_STATUS
32533  echo ': clr' >>$CONFIG_STATUS
32534  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32535  echo 'CEOF
32536  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32537  rm -f $tmp/in
32538  mv $tmp/out $tmp/in
32539' >>$CONFIG_STATUS
32540  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32541  rm -f conftest.defines
32542  mv conftest.tail conftest.defines
32543done
32544rm -f conftest.defines
32545echo '  fi # grep' >>$CONFIG_STATUS
32546echo >>$CONFIG_STATUS
32547
32548# Break up conftest.undefs because some shells have a limit on the size
32549# of here documents, and old seds have small limits too (100 cmds).
32550echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32551rm -f conftest.tail
32552while grep . conftest.undefs >/dev/null
32553do
32554  # Write a limited-size here document to $tmp/undefs.sed.
32555  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32556  # Speed up: don't consider the non `#undef'
32557  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32558  # Work around the forget-to-reset-the-flag bug.
32559  echo 't clr' >>$CONFIG_STATUS
32560  echo ': clr' >>$CONFIG_STATUS
32561  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32562  echo 'CEOF
32563  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32564  rm -f $tmp/in
32565  mv $tmp/out $tmp/in
32566' >>$CONFIG_STATUS
32567  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32568  rm -f conftest.undefs
32569  mv conftest.tail conftest.undefs
32570done
32571rm -f conftest.undefs
32572
32573cat >>$CONFIG_STATUS <<\_ACEOF
32574  # Let's still pretend it is `configure' which instantiates (i.e., don't
32575  # use $as_me), people would be surprised to read:
32576  #    /* config.h.  Generated by config.status.  */
32577  if test x"$ac_file" = x-; then
32578    echo "/* Generated by configure.  */" >$tmp/config.h
32579  else
32580    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32581  fi
32582  cat $tmp/in >>$tmp/config.h
32583  rm -f $tmp/in
32584  if test x"$ac_file" != x-; then
32585    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32586      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32587echo "$as_me: $ac_file is unchanged" >&6;}
32588    else
32589      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32590$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32591	 X"$ac_file" : 'X\(//\)[^/]' \| \
32592	 X"$ac_file" : 'X\(//\)$' \| \
32593	 X"$ac_file" : 'X\(/\)' \| \
32594	 .     : '\(.\)' 2>/dev/null ||
32595echo X"$ac_file" |
32596    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32597  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32598  	  /^X\(\/\/\)$/{ s//\1/; q; }
32599  	  /^X\(\/\).*/{ s//\1/; q; }
32600  	  s/.*/./; q'`
32601      { if $as_mkdir_p; then
32602    mkdir -p "$ac_dir"
32603  else
32604    as_dir="$ac_dir"
32605    as_dirs=
32606    while test ! -d "$as_dir"; do
32607      as_dirs="$as_dir $as_dirs"
32608      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32609$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32610	 X"$as_dir" : 'X\(//\)[^/]' \| \
32611	 X"$as_dir" : 'X\(//\)$' \| \
32612	 X"$as_dir" : 'X\(/\)' \| \
32613	 .     : '\(.\)' 2>/dev/null ||
32614echo X"$as_dir" |
32615    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32616  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32617  	  /^X\(\/\/\)$/{ s//\1/; q; }
32618  	  /^X\(\/\).*/{ s//\1/; q; }
32619  	  s/.*/./; q'`
32620    done
32621    test ! -n "$as_dirs" || mkdir $as_dirs
32622  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32623echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32624   { (exit 1); exit 1; }; }; }
32625
32626      rm -f $ac_file
32627      mv $tmp/config.h $ac_file
32628    fi
32629  else
32630    cat $tmp/config.h
32631    rm -f $tmp/config.h
32632  fi
32633done
32634_ACEOF
32635cat >>$CONFIG_STATUS <<\_ACEOF
32636
32637#
32638# CONFIG_COMMANDS section.
32639#
32640for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32641  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32642  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32643  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32644$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32645	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32646	 X"$ac_dest" : 'X\(//\)$' \| \
32647	 X"$ac_dest" : 'X\(/\)' \| \
32648	 .     : '\(.\)' 2>/dev/null ||
32649echo X"$ac_dest" |
32650    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32651  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32652  	  /^X\(\/\/\)$/{ s//\1/; q; }
32653  	  /^X\(\/\).*/{ s//\1/; q; }
32654  	  s/.*/./; q'`
32655  { if $as_mkdir_p; then
32656    mkdir -p "$ac_dir"
32657  else
32658    as_dir="$ac_dir"
32659    as_dirs=
32660    while test ! -d "$as_dir"; do
32661      as_dirs="$as_dir $as_dirs"
32662      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32664	 X"$as_dir" : 'X\(//\)[^/]' \| \
32665	 X"$as_dir" : 'X\(//\)$' \| \
32666	 X"$as_dir" : 'X\(/\)' \| \
32667	 .     : '\(.\)' 2>/dev/null ||
32668echo X"$as_dir" |
32669    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32670  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32671  	  /^X\(\/\/\)$/{ s//\1/; q; }
32672  	  /^X\(\/\).*/{ s//\1/; q; }
32673  	  s/.*/./; q'`
32674    done
32675    test ! -n "$as_dirs" || mkdir $as_dirs
32676  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32677echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32678   { (exit 1); exit 1; }; }; }
32679
32680  ac_builddir=.
32681
32682if test "$ac_dir" != .; then
32683  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32684  # A "../" for each directory in $ac_dir_suffix.
32685  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32686else
32687  ac_dir_suffix= ac_top_builddir=
32688fi
32689
32690case $srcdir in
32691  .)  # No --srcdir option.  We are building in place.
32692    ac_srcdir=.
32693    if test -z "$ac_top_builddir"; then
32694       ac_top_srcdir=.
32695    else
32696       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32697    fi ;;
32698  [\\/]* | ?:[\\/]* )  # Absolute path.
32699    ac_srcdir=$srcdir$ac_dir_suffix;
32700    ac_top_srcdir=$srcdir ;;
32701  *) # Relative path.
32702    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32703    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32704esac
32705
32706# Do not use `cd foo && pwd` to compute absolute paths, because
32707# the directories may not exist.
32708case `pwd` in
32709.) ac_abs_builddir="$ac_dir";;
32710*)
32711  case "$ac_dir" in
32712  .) ac_abs_builddir=`pwd`;;
32713  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32714  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32715  esac;;
32716esac
32717case $ac_abs_builddir in
32718.) ac_abs_top_builddir=${ac_top_builddir}.;;
32719*)
32720  case ${ac_top_builddir}. in
32721  .) ac_abs_top_builddir=$ac_abs_builddir;;
32722  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32723  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32724  esac;;
32725esac
32726case $ac_abs_builddir in
32727.) ac_abs_srcdir=$ac_srcdir;;
32728*)
32729  case $ac_srcdir in
32730  .) ac_abs_srcdir=$ac_abs_builddir;;
32731  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32732  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32733  esac;;
32734esac
32735case $ac_abs_builddir in
32736.) ac_abs_top_srcdir=$ac_top_srcdir;;
32737*)
32738  case $ac_top_srcdir in
32739  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32740  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32741  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32742  esac;;
32743esac
32744
32745
32746  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32747echo "$as_me: executing $ac_dest commands" >&6;}
32748  case $ac_dest in
32749    Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32750   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32751    Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32752   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32753    examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32754   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32755    lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32756   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32757    runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32758   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32759    test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32760   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32761    test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32762   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32763    tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32764   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32765    utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32766   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32767    projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32768   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32769  esac
32770done
32771_ACEOF
32772
32773cat >>$CONFIG_STATUS <<\_ACEOF
32774
32775{ (exit 0); exit 0; }
32776_ACEOF
32777chmod +x $CONFIG_STATUS
32778ac_clean_files=$ac_clean_files_save
32779
32780
32781# configure is writing to config.log, and then calls config.status.
32782# config.status does its own redirection, appending to config.log.
32783# Unfortunately, on DOS this fails, as config.log is still kept open
32784# by configure, so config.status won't be able to write to it; its
32785# output is simply discarded.  So we exec the FD to /dev/null,
32786# effectively closing config.log, so it can be properly (re)opened and
32787# appended to by config.status.  When coming back to configure, we
32788# need to make the FD available again.
32789if test "$no_create" != yes; then
32790  ac_cs_success=:
32791  ac_config_status_args=
32792  test "$silent" = yes &&
32793    ac_config_status_args="$ac_config_status_args --quiet"
32794  exec 5>/dev/null
32795  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32796  exec 5>>config.log
32797  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32798  # would make configure fail if this is the last instruction.
32799  $ac_cs_success || { (exit 1); exit 1; }
32800fi
32801
32802#
32803# CONFIG_SUBDIRS section.
32804#
32805if test "$no_recursion" != yes; then
32806
32807  # Remove --cache-file and --srcdir arguments so they do not pile up.
32808  ac_sub_configure_args=
32809  ac_prev=
32810  for ac_arg in $ac_configure_args; do
32811    if test -n "$ac_prev"; then
32812      ac_prev=
32813      continue
32814    fi
32815    case $ac_arg in
32816    -cache-file | --cache-file | --cache-fil | --cache-fi \
32817    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32818      ac_prev=cache_file ;;
32819    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32820    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32821    | --c=*)
32822      ;;
32823    --config-cache | -C)
32824      ;;
32825    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32826      ac_prev=srcdir ;;
32827    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32828      ;;
32829    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32830      ac_prev=prefix ;;
32831    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32832      ;;
32833    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32834    esac
32835  done
32836
32837  # Always prepend --prefix to ensure using the same prefix
32838  # in subdir configurations.
32839  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32840
32841  ac_popdir=`pwd`
32842  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32843
32844    # Do not complain, so a configure script can configure whichever
32845    # parts of a large source tree are present.
32846    test -d $srcdir/$ac_dir || continue
32847
32848    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32849echo "$as_me: configuring in $ac_dir" >&6;}
32850    { if $as_mkdir_p; then
32851    mkdir -p "$ac_dir"
32852  else
32853    as_dir="$ac_dir"
32854    as_dirs=
32855    while test ! -d "$as_dir"; do
32856      as_dirs="$as_dir $as_dirs"
32857      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32859	 X"$as_dir" : 'X\(//\)[^/]' \| \
32860	 X"$as_dir" : 'X\(//\)$' \| \
32861	 X"$as_dir" : 'X\(/\)' \| \
32862	 .     : '\(.\)' 2>/dev/null ||
32863echo X"$as_dir" |
32864    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32865  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32866  	  /^X\(\/\/\)$/{ s//\1/; q; }
32867  	  /^X\(\/\).*/{ s//\1/; q; }
32868  	  s/.*/./; q'`
32869    done
32870    test ! -n "$as_dirs" || mkdir $as_dirs
32871  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32872echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32873   { (exit 1); exit 1; }; }; }
32874
32875    ac_builddir=.
32876
32877if test "$ac_dir" != .; then
32878  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32879  # A "../" for each directory in $ac_dir_suffix.
32880  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32881else
32882  ac_dir_suffix= ac_top_builddir=
32883fi
32884
32885case $srcdir in
32886  .)  # No --srcdir option.  We are building in place.
32887    ac_srcdir=.
32888    if test -z "$ac_top_builddir"; then
32889       ac_top_srcdir=.
32890    else
32891       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32892    fi ;;
32893  [\\/]* | ?:[\\/]* )  # Absolute path.
32894    ac_srcdir=$srcdir$ac_dir_suffix;
32895    ac_top_srcdir=$srcdir ;;
32896  *) # Relative path.
32897    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32898    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32899esac
32900
32901# Do not use `cd foo && pwd` to compute absolute paths, because
32902# the directories may not exist.
32903case `pwd` in
32904.) ac_abs_builddir="$ac_dir";;
32905*)
32906  case "$ac_dir" in
32907  .) ac_abs_builddir=`pwd`;;
32908  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32909  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32910  esac;;
32911esac
32912case $ac_abs_builddir in
32913.) ac_abs_top_builddir=${ac_top_builddir}.;;
32914*)
32915  case ${ac_top_builddir}. in
32916  .) ac_abs_top_builddir=$ac_abs_builddir;;
32917  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32918  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32919  esac;;
32920esac
32921case $ac_abs_builddir in
32922.) ac_abs_srcdir=$ac_srcdir;;
32923*)
32924  case $ac_srcdir in
32925  .) ac_abs_srcdir=$ac_abs_builddir;;
32926  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32927  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32928  esac;;
32929esac
32930case $ac_abs_builddir in
32931.) ac_abs_top_srcdir=$ac_top_srcdir;;
32932*)
32933  case $ac_top_srcdir in
32934  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32935  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32936  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32937  esac;;
32938esac
32939
32940
32941    cd $ac_dir
32942
32943    # Check for guested configure; otherwise get Cygnus style configure.
32944    if test -f $ac_srcdir/configure.gnu; then
32945      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32946    elif test -f $ac_srcdir/configure; then
32947      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32948    elif test -f $ac_srcdir/configure.in; then
32949      ac_sub_configure=$ac_configure
32950    else
32951      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32952echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32953      ac_sub_configure=
32954    fi
32955
32956    # The recursion is here.
32957    if test -n "$ac_sub_configure"; then
32958      # Make the cache file name correct relative to the subdirectory.
32959      case $cache_file in
32960      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32961      *) # Relative path.
32962	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32963      esac
32964
32965      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32966echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32967      # The eval makes quoting arguments work.
32968      eval $ac_sub_configure $ac_sub_configure_args \
32969	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32970	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32971echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32972   { (exit 1); exit 1; }; }
32973    fi
32974
32975    cd $ac_popdir
32976  done
32977fi
32978
32979
32980if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32981 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32982echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32983 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32984echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32985 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32986echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32987 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32988echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32989 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32990echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32991fi
32992