configure revision 99d1fccfb970847c5d610e7c0369715dc4b3cb77
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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# $LLVM_COPYRIGHT
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.5cvs'
429PACKAGE_STRING='llvm 1.5cvs'
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/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456#  include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461#  include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472#  include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
479ac_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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT 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 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480ac_subst_files=''
481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523  # If the previous option needs an argument, assign it.
524  if test -n "$ac_prev"; then
525    eval "$ac_prev=\$ac_option"
526    ac_prev=
527    continue
528  fi
529
530  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532  # Accept the important Cygnus configure options, so we can diagnose typos.
533
534  case $ac_option in
535
536  -bindir | --bindir | --bindi | --bind | --bin | --bi)
537    ac_prev=bindir ;;
538  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539    bindir=$ac_optarg ;;
540
541  -build | --build | --buil | --bui | --bu)
542    ac_prev=build_alias ;;
543  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544    build_alias=$ac_optarg ;;
545
546  -cache-file | --cache-file | --cache-fil | --cache-fi \
547  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548    ac_prev=cache_file ;;
549  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551    cache_file=$ac_optarg ;;
552
553  --config-cache | -C)
554    cache_file=config.cache ;;
555
556  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557    ac_prev=datadir ;;
558  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559  | --da=*)
560    datadir=$ac_optarg ;;
561
562  -disable-* | --disable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    eval "enable_$ac_feature=no" ;;
570
571  -enable-* | --enable-*)
572    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576   { (exit 1); exit 1; }; }
577    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "enable_$ac_feature='$ac_optarg'" ;;
583
584  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586  | --exec | --exe | --ex)
587    ac_prev=exec_prefix ;;
588  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590  | --exec=* | --exe=* | --ex=*)
591    exec_prefix=$ac_optarg ;;
592
593  -gas | --gas | --ga | --g)
594    # Obsolete; use --with-gas.
595    with_gas=yes ;;
596
597  -help | --help | --hel | --he | -h)
598    ac_init_help=long ;;
599  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600    ac_init_help=recursive ;;
601  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602    ac_init_help=short ;;
603
604  -host | --host | --hos | --ho)
605    ac_prev=host_alias ;;
606  -host=* | --host=* | --hos=* | --ho=*)
607    host_alias=$ac_optarg ;;
608
609  -includedir | --includedir | --includedi | --included | --include \
610  | --includ | --inclu | --incl | --inc)
611    ac_prev=includedir ;;
612  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613  | --includ=* | --inclu=* | --incl=* | --inc=*)
614    includedir=$ac_optarg ;;
615
616  -infodir | --infodir | --infodi | --infod | --info | --inf)
617    ac_prev=infodir ;;
618  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619    infodir=$ac_optarg ;;
620
621  -libdir | --libdir | --libdi | --libd)
622    ac_prev=libdir ;;
623  -libdir=* | --libdir=* | --libdi=* | --libd=*)
624    libdir=$ac_optarg ;;
625
626  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627  | --libexe | --libex | --libe)
628    ac_prev=libexecdir ;;
629  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630  | --libexe=* | --libex=* | --libe=*)
631    libexecdir=$ac_optarg ;;
632
633  -localstatedir | --localstatedir | --localstatedi | --localstated \
634  | --localstate | --localstat | --localsta | --localst \
635  | --locals | --local | --loca | --loc | --lo)
636    ac_prev=localstatedir ;;
637  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640    localstatedir=$ac_optarg ;;
641
642  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643    ac_prev=mandir ;;
644  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645    mandir=$ac_optarg ;;
646
647  -nfp | --nfp | --nf)
648    # Obsolete; use --without-fp.
649    with_fp=no ;;
650
651  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652  | --no-cr | --no-c | -n)
653    no_create=yes ;;
654
655  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657    no_recursion=yes ;;
658
659  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661  | --oldin | --oldi | --old | --ol | --o)
662    ac_prev=oldincludedir ;;
663  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666    oldincludedir=$ac_optarg ;;
667
668  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669    ac_prev=prefix ;;
670  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671    prefix=$ac_optarg ;;
672
673  -program-prefix | --program-prefix | --program-prefi | --program-pref \
674  | --program-pre | --program-pr | --program-p)
675    ac_prev=program_prefix ;;
676  -program-prefix=* | --program-prefix=* | --program-prefi=* \
677  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678    program_prefix=$ac_optarg ;;
679
680  -program-suffix | --program-suffix | --program-suffi | --program-suff \
681  | --program-suf | --program-su | --program-s)
682    ac_prev=program_suffix ;;
683  -program-suffix=* | --program-suffix=* | --program-suffi=* \
684  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685    program_suffix=$ac_optarg ;;
686
687  -program-transform-name | --program-transform-name \
688  | --program-transform-nam | --program-transform-na \
689  | --program-transform-n | --program-transform- \
690  | --program-transform | --program-transfor \
691  | --program-transfo | --program-transf \
692  | --program-trans | --program-tran \
693  | --progr-tra | --program-tr | --program-t)
694    ac_prev=program_transform_name ;;
695  -program-transform-name=* | --program-transform-name=* \
696  | --program-transform-nam=* | --program-transform-na=* \
697  | --program-transform-n=* | --program-transform-=* \
698  | --program-transform=* | --program-transfor=* \
699  | --program-transfo=* | --program-transf=* \
700  | --program-trans=* | --program-tran=* \
701  | --progr-tra=* | --program-tr=* | --program-t=*)
702    program_transform_name=$ac_optarg ;;
703
704  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705  | -silent | --silent | --silen | --sile | --sil)
706    silent=yes ;;
707
708  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709    ac_prev=sbindir ;;
710  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711  | --sbi=* | --sb=*)
712    sbindir=$ac_optarg ;;
713
714  -sharedstatedir | --sharedstatedir | --sharedstatedi \
715  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716  | --sharedst | --shareds | --shared | --share | --shar \
717  | --sha | --sh)
718    ac_prev=sharedstatedir ;;
719  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722  | --sha=* | --sh=*)
723    sharedstatedir=$ac_optarg ;;
724
725  -site | --site | --sit)
726    ac_prev=site ;;
727  -site=* | --site=* | --sit=*)
728    site=$ac_optarg ;;
729
730  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731    ac_prev=srcdir ;;
732  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733    srcdir=$ac_optarg ;;
734
735  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736  | --syscon | --sysco | --sysc | --sys | --sy)
737    ac_prev=sysconfdir ;;
738  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740    sysconfdir=$ac_optarg ;;
741
742  -target | --target | --targe | --targ | --tar | --ta | --t)
743    ac_prev=target_alias ;;
744  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745    target_alias=$ac_optarg ;;
746
747  -v | -verbose | --verbose | --verbos | --verbo | --verb)
748    verbose=yes ;;
749
750  -version | --version | --versio | --versi | --vers | -V)
751    ac_init_version=: ;;
752
753  -with-* | --with-*)
754    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package| sed 's/-/_/g'`
760    case $ac_option in
761      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762      *) ac_optarg=yes ;;
763    esac
764    eval "with_$ac_package='$ac_optarg'" ;;
765
766  -without-* | --without-*)
767    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package | sed 's/-/_/g'`
773    eval "with_$ac_package=no" ;;
774
775  --x)
776    # Obsolete; use --with-x.
777    with_x=yes ;;
778
779  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780  | --x-incl | --x-inc | --x-in | --x-i)
781    ac_prev=x_includes ;;
782  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784    x_includes=$ac_optarg ;;
785
786  -x-libraries | --x-libraries | --x-librarie | --x-librari \
787  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788    ac_prev=x_libraries ;;
789  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791    x_libraries=$ac_optarg ;;
792
793  -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795   { (exit 1); exit 1; }; }
796    ;;
797
798  *=*)
799    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800    # Reject names that are not valid shell variable names.
801    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803   { (exit 1); exit 1; }; }
804    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805    eval "$ac_envvar='$ac_optarg'"
806    export $ac_envvar ;;
807
808  *)
809    # FIXME: should be removed in autoconf 3.0.
810    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814    ;;
815
816  esac
817done
818
819if test -n "$ac_prev"; then
820  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821  { echo "$as_me: error: missing argument to $ac_option" >&2
822   { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838	      localstatedir libdir includedir oldincludedir infodir mandir
839do
840  eval ac_val=$`echo $ac_var`
841  case $ac_val in
842    [\\/$]* | ?:[\\/]* ) ;;
843    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844   { (exit 1); exit 1; }; };;
845  esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857  if test "x$build_alias" = x; then
858    cross_compiling=maybe
859    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860    If a cross compiler is detected then cross compile mode will be used." >&2
861  elif test "x$build_alias" != "x$host_alias"; then
862    cross_compiling=yes
863  fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874  ac_srcdir_defaulted=yes
875  # Try the directory containing this script, then its parent.
876  ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878	 X"$0" : 'X\(//\)[^/]' \| \
879	 X"$0" : 'X\(//\)$' \| \
880	 X"$0" : 'X\(/\)' \| \
881	 .     : '\(.\)' 2>/dev/null ||
882echo X"$0" |
883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885  	  /^X\(\/\/\)$/{ s//\1/; q; }
886  	  /^X\(\/\).*/{ s//\1/; q; }
887  	  s/.*/./; q'`
888  srcdir=$ac_confdir
889  if test ! -r $srcdir/$ac_unique_file; then
890    srcdir=..
891  fi
892else
893  ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896  if test "$ac_srcdir_defaulted" = yes; then
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898   { (exit 1); exit 1; }; }
899  else
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901   { (exit 1); exit 1; }; }
902  fi
903fi
904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906   { (exit 1); exit 1; }; }
907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965  # Omit some internal or obsolete options to make the list less imposing.
966  # This message is too long to be a string in the A/UX 3.1 sh.
967  cat <<_ACEOF
968\`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978  -h, --help              display this help and exit
979      --help=short        display options specific to this package
980      --help=recursive    display the short help of all the included packages
981  -V, --version           display version information and exit
982  -q, --quiet, --silent   do not print \`checking...' messages
983      --cache-file=FILE   cache test results in FILE [disabled]
984  -C, --config-cache      alias for \`--cache-file=config.cache'
985  -n, --no-create         do not create output files
986      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990  cat <<_ACEOF
991Installation directories:
992  --prefix=PREFIX         install architecture-independent files in PREFIX
993			  [$ac_default_prefix]
994  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995			  [PREFIX]
996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005  --bindir=DIR           user executables [EPREFIX/bin]
1006  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007  --libexecdir=DIR       program executables [EPREFIX/libexec]
1008  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012  --libdir=DIR           object code libraries [EPREFIX/lib]
1013  --includedir=DIR       C header files [PREFIX/include]
1014  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015  --infodir=DIR          info documentation [PREFIX/info]
1016  --mandir=DIR           man documentation [PREFIX/man]
1017_ACEOF
1018
1019  cat <<\_ACEOF
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024  --target=TARGET   configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029  case $ac_init_help in
1030     short | recursive ) echo "Configuration of llvm 1.5cvs:";;
1031   esac
1032  cat <<\_ACEOF
1033
1034Optional Features:
1035  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037  --enable-optimized
1038  --enable-jit            Enable Just In Time Compiling (default is YES)
1039  --enable-doxygen        Build doxygen documentation (default is NO)
1040  --enable-target         Build specific host targets:
1041                          all,host-only,{target-name} (default=all)
1042  --enable-ltdl-install   install libltdl
1043  --enable-shared[=PKGS]
1044                          build shared libraries [default=yes]
1045  --enable-static[=PKGS]
1046                          build static libraries [default=yes]
1047  --enable-fast-install[=PKGS]
1048                          optimize for fast installation [default=yes]
1049  --disable-libtool-lock  avoid locking (might break parallel builds)
1050
1051Optional Packages:
1052  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1055                          searches PATH)
1056  --with-tclinclude       directory where tcl headers are
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062
1063Some influential environment variables:
1064  CC          C compiler command
1065  CFLAGS      C compiler flags
1066  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1067              nonstandard directory <lib dir>
1068  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069              headers in a nonstandard directory <include dir>
1070  CPP         C preprocessor
1071  CXX         C++ compiler command
1072  CXXFLAGS    C++ compiler flags
1073  CXXCPP      C++ preprocessor
1074  F77         Fortran 77 compiler command
1075  FFLAGS      Fortran 77 compiler flags
1076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
1080Report bugs to <llvmbugs@cs.uiuc.edu>.
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085  # If there are subdirs, report their specific --help.
1086  ac_popdir=`pwd`
1087  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088    test -d $ac_dir || continue
1089    ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093  # A "../" for each directory in $ac_dir_suffix.
1094  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096  ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100  .)  # No --srcdir option.  We are building in place.
1101    ac_srcdir=.
1102    if test -z "$ac_top_builddir"; then
1103       ac_top_srcdir=.
1104    else
1105       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106    fi ;;
1107  [\\/]* | ?:[\\/]* )  # Absolute path.
1108    ac_srcdir=$srcdir$ac_dir_suffix;
1109    ac_top_srcdir=$srcdir ;;
1110  *) # Relative path.
1111    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
1114
1115# Do not use `cd foo && pwd` to compute absolute paths, because
1116# the directories may not exist.
1117case `pwd` in
1118.) ac_abs_builddir="$ac_dir";;
1119*)
1120  case "$ac_dir" in
1121  .) ac_abs_builddir=`pwd`;;
1122  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124  esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_builddir=${ac_top_builddir}.;;
1128*)
1129  case ${ac_top_builddir}. in
1130  .) ac_abs_top_builddir=$ac_abs_builddir;;
1131  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133  esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_srcdir=$ac_srcdir;;
1137*)
1138  case $ac_srcdir in
1139  .) ac_abs_srcdir=$ac_abs_builddir;;
1140  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142  esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_srcdir=$ac_top_srcdir;;
1146*)
1147  case $ac_top_srcdir in
1148  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151  esac;;
1152esac
1153
1154    cd $ac_dir
1155    # Check for guested configure; otherwise get Cygnus style configure.
1156    if test -f $ac_srcdir/configure.gnu; then
1157      echo
1158      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1159    elif test -f $ac_srcdir/configure; then
1160      echo
1161      $SHELL $ac_srcdir/configure  --help=recursive
1162    elif test -f $ac_srcdir/configure.ac ||
1163	   test -f $ac_srcdir/configure.in; then
1164      echo
1165      $ac_configure --help
1166    else
1167      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168    fi
1169    cd $ac_popdir
1170  done
1171fi
1172
1173test -n "$ac_init_help" && exit 0
1174if $ac_init_version; then
1175  cat <<\_ACEOF
1176llvm configure 1.5cvs
1177generated by GNU Autoconf 2.59
1178
1179Copyright (C) 2003 Free Software Foundation, Inc.
1180This configure script is free software; the Free Software Foundation
1181gives unlimited permission to copy, distribute and modify it.
1182
1183$LLVM_COPYRIGHT
1184_ACEOF
1185  exit 0
1186fi
1187exec 5>config.log
1188cat >&5 <<_ACEOF
1189This file contains any messages produced by compilers while
1190running configure, to aid debugging if configure makes a mistake.
1191
1192It was created by llvm $as_me 1.5cvs, which was
1193generated by GNU Autoconf 2.59.  Invocation command line was
1194
1195  $ $0 $@
1196
1197_ACEOF
1198{
1199cat <<_ASUNAME
1200## --------- ##
1201## Platform. ##
1202## --------- ##
1203
1204hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1212
1213/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1214/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1215/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1217/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1218/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1219/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1220
1221_ASUNAME
1222
1223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224for as_dir in $PATH
1225do
1226  IFS=$as_save_IFS
1227  test -z "$as_dir" && as_dir=.
1228  echo "PATH: $as_dir"
1229done
1230
1231} >&5
1232
1233cat >&5 <<_ACEOF
1234
1235
1236## ----------- ##
1237## Core tests. ##
1238## ----------- ##
1239
1240_ACEOF
1241
1242
1243# Keep a trace of the command line.
1244# Strip out --no-create and --no-recursion so they do not pile up.
1245# Strip out --silent because we don't want to record it for future runs.
1246# Also quote any args containing shell meta-characters.
1247# Make two passes to allow for proper duplicate-argument suppression.
1248ac_configure_args=
1249ac_configure_args0=
1250ac_configure_args1=
1251ac_sep=
1252ac_must_keep_next=false
1253for ac_pass in 1 2
1254do
1255  for ac_arg
1256  do
1257    case $ac_arg in
1258    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260    | -silent | --silent | --silen | --sile | --sil)
1261      continue ;;
1262    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264    esac
1265    case $ac_pass in
1266    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267    2)
1268      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269      if test $ac_must_keep_next = true; then
1270	ac_must_keep_next=false # Got value, back to normal.
1271      else
1272	case $ac_arg in
1273	  *=* | --config-cache | -C | -disable-* | --disable-* \
1274	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276	  | -with-* | --with-* | -without-* | --without-* | --x)
1277	    case "$ac_configure_args0 " in
1278	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279	    esac
1280	    ;;
1281	  -* ) ac_must_keep_next=true ;;
1282	esac
1283      fi
1284      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285      # Get rid of the leading space.
1286      ac_sep=" "
1287      ;;
1288    esac
1289  done
1290done
1291$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294# When interrupted or exit'd, cleanup temporary files, and complete
1295# config.log.  We remove comments because anyway the quotes in there
1296# would cause problems or look ugly.
1297# WARNING: Be sure not to use single quotes in there, as some shells,
1298# such as our DU 5.0 friend, will then `close' the trap.
1299trap 'exit_status=$?
1300  # Save into config.log some information that might help in debugging.
1301  {
1302    echo
1303
1304    cat <<\_ASBOX
1305## ---------------- ##
1306## Cache variables. ##
1307## ---------------- ##
1308_ASBOX
1309    echo
1310    # The following way of writing the cache mishandles newlines in values,
1311{
1312  (set) 2>&1 |
1313    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314    *ac_space=\ *)
1315      sed -n \
1316	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318      ;;
1319    *)
1320      sed -n \
1321	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322      ;;
1323    esac;
1324}
1325    echo
1326
1327    cat <<\_ASBOX
1328## ----------------- ##
1329## Output variables. ##
1330## ----------------- ##
1331_ASBOX
1332    echo
1333    for ac_var in $ac_subst_vars
1334    do
1335      eval ac_val=$`echo $ac_var`
1336      echo "$ac_var='"'"'$ac_val'"'"'"
1337    done | sort
1338    echo
1339
1340    if test -n "$ac_subst_files"; then
1341      cat <<\_ASBOX
1342## ------------- ##
1343## Output files. ##
1344## ------------- ##
1345_ASBOX
1346      echo
1347      for ac_var in $ac_subst_files
1348      do
1349	eval ac_val=$`echo $ac_var`
1350	echo "$ac_var='"'"'$ac_val'"'"'"
1351      done | sort
1352      echo
1353    fi
1354
1355    if test -s confdefs.h; then
1356      cat <<\_ASBOX
1357## ----------- ##
1358## confdefs.h. ##
1359## ----------- ##
1360_ASBOX
1361      echo
1362      sed "/^$/d" confdefs.h | sort
1363      echo
1364    fi
1365    test "$ac_signal" != 0 &&
1366      echo "$as_me: caught signal $ac_signal"
1367    echo "$as_me: exit $exit_status"
1368  } >&5
1369  rm -f core *.core &&
1370  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371    exit $exit_status
1372     ' 0
1373for ac_signal in 1 2 13 15; do
1374  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375done
1376ac_signal=0
1377
1378# confdefs.h avoids OS command line length limits that DEFS can exceed.
1379rm -rf conftest* confdefs.h
1380# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381echo >confdefs.h
1382
1383# Predefined preprocessor variables.
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_NAME "$PACKAGE_NAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_VERSION "$PACKAGE_VERSION"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_STRING "$PACKAGE_STRING"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407_ACEOF
1408
1409
1410# Let the site file select an alternate cache file if it wants to.
1411# Prefer explicitly selected file to automatically selected ones.
1412if test -z "$CONFIG_SITE"; then
1413  if test "x$prefix" != xNONE; then
1414    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415  else
1416    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417  fi
1418fi
1419for ac_site_file in $CONFIG_SITE; do
1420  if test -r "$ac_site_file"; then
1421    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422echo "$as_me: loading site script $ac_site_file" >&6;}
1423    sed 's/^/| /' "$ac_site_file" >&5
1424    . "$ac_site_file"
1425  fi
1426done
1427
1428if test -r "$cache_file"; then
1429  # Some versions of bash will fail to source /dev/null (special
1430  # files actually), so we avoid doing that.
1431  if test -f "$cache_file"; then
1432    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433echo "$as_me: loading cache $cache_file" >&6;}
1434    case $cache_file in
1435      [\\/]* | ?:[\\/]* ) . $cache_file;;
1436      *)                      . ./$cache_file;;
1437    esac
1438  fi
1439else
1440  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441echo "$as_me: creating cache $cache_file" >&6;}
1442  >$cache_file
1443fi
1444
1445# Check that the precious variables saved in the cache have kept the same
1446# value.
1447ac_cache_corrupted=false
1448for ac_var in `(set) 2>&1 |
1449	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451  eval ac_new_set=\$ac_env_${ac_var}_set
1452  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453  eval ac_new_val="\$ac_env_${ac_var}_value"
1454  case $ac_old_set,$ac_new_set in
1455    set,)
1456      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458      ac_cache_corrupted=: ;;
1459    ,set)
1460      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462      ac_cache_corrupted=: ;;
1463    ,);;
1464    *)
1465      if test "x$ac_old_val" != "x$ac_new_val"; then
1466	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1469echo "$as_me:   former value:  $ac_old_val" >&2;}
1470	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1471echo "$as_me:   current value: $ac_new_val" >&2;}
1472	ac_cache_corrupted=:
1473      fi;;
1474  esac
1475  # Pass precious variables to config.status.
1476  if test "$ac_new_set" = set; then
1477    case $ac_new_val in
1478    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480    *) ac_arg=$ac_var=$ac_new_val ;;
1481    esac
1482    case " $ac_configure_args " in
1483      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1484      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485    esac
1486  fi
1487done
1488if $ac_cache_corrupted; then
1489  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493   { (exit 1); exit 1; }; }
1494fi
1495
1496ac_ext=c
1497ac_cpp='$CPP $CPPFLAGS'
1498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1530
1531
1532
1533
1534
1535
1536
1537ac_aux_dir=
1538for ac_dir in autoconf $srcdir/autoconf; do
1539  if test -f $ac_dir/install-sh; then
1540    ac_aux_dir=$ac_dir
1541    ac_install_sh="$ac_aux_dir/install-sh -c"
1542    break
1543  elif test -f $ac_dir/install.sh; then
1544    ac_aux_dir=$ac_dir
1545    ac_install_sh="$ac_aux_dir/install.sh -c"
1546    break
1547  elif test -f $ac_dir/shtool; then
1548    ac_aux_dir=$ac_dir
1549    ac_install_sh="$ac_aux_dir/shtool install -c"
1550    break
1551  fi
1552done
1553if test -z "$ac_aux_dir"; then
1554  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1555echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
1562
1563if test ${srcdir} != "." ; then
1564  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1565    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1566echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1567   { (exit 1); exit 1; }; }
1568  fi
1569fi
1570
1571for i in `ls ${srcdir}/projects`
1572do
1573  if test -d ${srcdir}/projects/${i} ; then
1574    case ${i} in
1575      "CVS") ;;
1576      "sample")
1577
1578subdirs="$subdirs projects/sample"
1579    ;;
1580      "Stacker")
1581
1582subdirs="$subdirs projects/Stacker"
1583   ;;
1584      "llvm-test")
1585
1586subdirs="$subdirs projects/llvm-test"
1587 ;;
1588      "llvm-reopt")
1589
1590subdirs="$subdirs projects/llvm-reopt"
1591;;
1592      "llvm-gcc")
1593
1594subdirs="$subdirs projects/llvm-gcc"
1595  ;;
1596      "llvm-java")
1597
1598subdirs="$subdirs projects/llvm-java"
1599 ;;
1600      "llvm-tv")
1601
1602subdirs="$subdirs projects/llvm-tv"
1603   ;;
1604      "llvm-fefw")
1605
1606subdirs="$subdirs projects/llvm-fefw"
1607 ;;
1608      "llvm-poolalloc")
1609
1610subdirs="$subdirs projects/llvm-poolalloc"
1611 ;;
1612      *)
1613        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1614echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1615        ;;
1616    esac
1617  fi
1618done
1619
1620
1621# Make sure we can run config.sub.
1622$ac_config_sub sun4 >/dev/null 2>&1 ||
1623  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1624echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1625   { (exit 1); exit 1; }; }
1626
1627echo "$as_me:$LINENO: checking build system type" >&5
1628echo $ECHO_N "checking build system type... $ECHO_C" >&6
1629if test "${ac_cv_build+set}" = set; then
1630  echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632  ac_cv_build_alias=$build_alias
1633test -z "$ac_cv_build_alias" &&
1634  ac_cv_build_alias=`$ac_config_guess`
1635test -z "$ac_cv_build_alias" &&
1636  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1637echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1638   { (exit 1); exit 1; }; }
1639ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1640  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1642   { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1646echo "${ECHO_T}$ac_cv_build" >&6
1647build=$ac_cv_build
1648build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653echo "$as_me:$LINENO: checking host system type" >&5
1654echo $ECHO_N "checking host system type... $ECHO_C" >&6
1655if test "${ac_cv_host+set}" = set; then
1656  echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658  ac_cv_host_alias=$host_alias
1659test -z "$ac_cv_host_alias" &&
1660  ac_cv_host_alias=$ac_cv_build_alias
1661ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1662  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1663echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1664   { (exit 1); exit 1; }; }
1665
1666fi
1667echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1668echo "${ECHO_T}$ac_cv_host" >&6
1669host=$ac_cv_host
1670host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675echo "$as_me:$LINENO: checking target system type" >&5
1676echo $ECHO_N "checking target system type... $ECHO_C" >&6
1677if test "${ac_cv_target+set}" = set; then
1678  echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680  ac_cv_target_alias=$target_alias
1681test "x$ac_cv_target_alias" = "x" &&
1682  ac_cv_target_alias=$ac_cv_host_alias
1683ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1684  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1685echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1686   { (exit 1); exit 1; }; }
1687
1688fi
1689echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1690echo "${ECHO_T}$ac_cv_target" >&6
1691target=$ac_cv_target
1692target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1693target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1694target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695
1696
1697# The aliases save the names the user supplied, while $host etc.
1698# will get canonicalized.
1699test -n "$target_alias" &&
1700  test "$program_prefix$program_suffix$program_transform_name" = \
1701    NONENONEs,x,x, &&
1702  program_prefix=${target_alias}-
1703
1704echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1705echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1706if test "${llvm_cv_os_type+set}" = set; then
1707  echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709  case $build in
1710  *-*-aix*)
1711    llvm_cv_os_type="AIX"
1712    llvm_cv_platform_type="Unix" ;;
1713  *-*-cygwin*)
1714    llvm_cv_os_type="Cygwin"
1715    llvm_cv_platform_type="Unix" ;;
1716  *-*-darwin*)
1717    llvm_cv_os_type="Darwin"
1718    llvm_cv_platform_type="Unix" ;;
1719  *-*-freebsd*)
1720    llvm_cv_os_type="FreeBSD"
1721    llvm_cv_platform_type="Unix" ;;
1722  *-*-interix*)
1723    llvm_cv_os_type="Interix"
1724    llvm_cv_platform_type="Unix" ;;
1725  *-*-linux*)
1726    llvm_cv_os_type="Linux"
1727    llvm_cv_platform_type="Unix" ;;
1728  *-*-solaris*)
1729    llvm_cv_os_type="SunOS"
1730    llvm_cv_platform_type="Unix" ;;
1731  *-*-win32*)
1732    llvm_cv_os_type="Win32"
1733    llvm_cv_platform_type="Win32" ;;
1734  *-*-mingw*)
1735    llvm_cv_os_type="MingW"
1736    llvm_cv_platform_type="Win32" ;;
1737  *)
1738    llvm_cv_os_type="Unknown"
1739    llvm_cv_platform_type="Unknown" ;;
1740esac
1741fi
1742echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1743echo "${ECHO_T}$llvm_cv_os_type" >&6
1744
1745if test "$llvm_cv_os_type" = "Unknown" ; then
1746  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1747echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1748   { (exit 1); exit 1; }; }
1749fi
1750
1751OS=$llvm_cv_os_type
1752
1753
1754case $llvm_cv_platform_type in
1755  Unix)
1756
1757cat >>confdefs.h <<\_ACEOF
1758#define LLVM_ON_UNIX 1
1759_ACEOF
1760
1761    LLVM_ON_UNIX=1
1762
1763    LLVM_ON_WIN32=0
1764
1765    ;;
1766  Win32)
1767
1768cat >>confdefs.h <<\_ACEOF
1769#define LLVM_ON_WIN32 1
1770_ACEOF
1771
1772    LLVM_ON_UNIX=0
1773
1774    LLVM_ON_WIN32=1
1775
1776    ;;
1777esac
1778
1779case $target in
1780  sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1781
1782  ;;
1783esac
1784
1785echo "$as_me:$LINENO: checking target architecture" >&5
1786echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1787if test "${llvm_cv_target_arch+set}" = set; then
1788  echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790  case $target in
1791  i?86-*)                 llvm_cv_target_arch="x86" ;;
1792  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1793  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1794  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1795  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1796  ia64-*)                 llvm_cv_target_arch="IA64" ;;
1797  *)                      llvm_cv_target_arch="Unknown" ;;
1798esac
1799fi
1800echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801echo "${ECHO_T}$llvm_cv_target_arch" >&6
1802
1803if test "$llvm_cv_target_arch" = "Unknown" ; then
1804  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806fi
1807
1808ARCH=$llvm_cv_target_arch
1809
1810
1811ac_ext=c
1812ac_cpp='$CPP $CPPFLAGS'
1813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816if test -n "$ac_tool_prefix"; then
1817  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822  echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824  if test -n "$CC"; then
1825  ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830  IFS=$as_save_IFS
1831  test -z "$as_dir" && as_dir=.
1832  for ac_exec_ext in '' $ac_executable_extensions; do
1833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836    break 2
1837  fi
1838done
1839done
1840
1841fi
1842fi
1843CC=$ac_cv_prog_CC
1844if test -n "$CC"; then
1845  echo "$as_me:$LINENO: result: $CC" >&5
1846echo "${ECHO_T}$CC" >&6
1847else
1848  echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852fi
1853if test -z "$ac_cv_prog_CC"; then
1854  ac_ct_CC=$CC
1855  # Extract the first word of "gcc", so it can be a program name with args.
1856set dummy gcc; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860  echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862  if test -n "$ac_ct_CC"; then
1863  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868  IFS=$as_save_IFS
1869  test -z "$as_dir" && as_dir=.
1870  for ac_exec_ext in '' $ac_executable_extensions; do
1871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872    ac_cv_prog_ac_ct_CC="gcc"
1873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874    break 2
1875  fi
1876done
1877done
1878
1879fi
1880fi
1881ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882if test -n "$ac_ct_CC"; then
1883  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884echo "${ECHO_T}$ac_ct_CC" >&6
1885else
1886  echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890  CC=$ac_ct_CC
1891else
1892  CC="$ac_cv_prog_CC"
1893fi
1894
1895if test -z "$CC"; then
1896  if test -n "$ac_tool_prefix"; then
1897  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898set dummy ${ac_tool_prefix}cc; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_CC+set}" = set; then
1902  echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904  if test -n "$CC"; then
1905  ac_cv_prog_CC="$CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912  for ac_exec_ext in '' $ac_executable_extensions; do
1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914    ac_cv_prog_CC="${ac_tool_prefix}cc"
1915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916    break 2
1917  fi
1918done
1919done
1920
1921fi
1922fi
1923CC=$ac_cv_prog_CC
1924if test -n "$CC"; then
1925  echo "$as_me:$LINENO: result: $CC" >&5
1926echo "${ECHO_T}$CC" >&6
1927else
1928  echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932fi
1933if test -z "$ac_cv_prog_CC"; then
1934  ac_ct_CC=$CC
1935  # Extract the first word of "cc", so it can be a program name with args.
1936set dummy cc; ac_word=$2
1937echo "$as_me:$LINENO: checking for $ac_word" >&5
1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940  echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942  if test -n "$ac_ct_CC"; then
1943  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944else
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948  IFS=$as_save_IFS
1949  test -z "$as_dir" && as_dir=.
1950  for ac_exec_ext in '' $ac_executable_extensions; do
1951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952    ac_cv_prog_ac_ct_CC="cc"
1953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954    break 2
1955  fi
1956done
1957done
1958
1959fi
1960fi
1961ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962if test -n "$ac_ct_CC"; then
1963  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964echo "${ECHO_T}$ac_ct_CC" >&6
1965else
1966  echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970  CC=$ac_ct_CC
1971else
1972  CC="$ac_cv_prog_CC"
1973fi
1974
1975fi
1976if test -z "$CC"; then
1977  # Extract the first word of "cc", so it can be a program name with args.
1978set dummy cc; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982  echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984  if test -n "$CC"; then
1985  ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987  ac_prog_rejected=no
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996       ac_prog_rejected=yes
1997       continue
1998     fi
1999    ac_cv_prog_CC="cc"
2000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001    break 2
2002  fi
2003done
2004done
2005
2006if test $ac_prog_rejected = yes; then
2007  # We found a bogon in the path, so make sure we never use it.
2008  set dummy $ac_cv_prog_CC
2009  shift
2010  if test $# != 0; then
2011    # We chose a different compiler from the bogus one.
2012    # However, it has the same basename, so the bogon will be chosen
2013    # first if we set CC to just the basename; use the full file name.
2014    shift
2015    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016  fi
2017fi
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022  echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6
2024else
2025  echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029fi
2030if test -z "$CC"; then
2031  if test -n "$ac_tool_prefix"; then
2032  for ac_prog in cl
2033  do
2034    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038if test "${ac_cv_prog_CC+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  if test -n "$CC"; then
2042  ac_cv_prog_CC="$CC" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047  IFS=$as_save_IFS
2048  test -z "$as_dir" && as_dir=.
2049  for ac_exec_ext in '' $ac_executable_extensions; do
2050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053    break 2
2054  fi
2055done
2056done
2057
2058fi
2059fi
2060CC=$ac_cv_prog_CC
2061if test -n "$CC"; then
2062  echo "$as_me:$LINENO: result: $CC" >&5
2063echo "${ECHO_T}$CC" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069    test -n "$CC" && break
2070  done
2071fi
2072if test -z "$CC"; then
2073  ac_ct_CC=$CC
2074  for ac_prog in cl
2075do
2076  # Extract the first word of "$ac_prog", so it can be a program name with args.
2077set dummy $ac_prog; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081  echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083  if test -n "$ac_ct_CC"; then
2084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089  IFS=$as_save_IFS
2090  test -z "$as_dir" && as_dir=.
2091  for ac_exec_ext in '' $ac_executable_extensions; do
2092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093    ac_cv_prog_ac_ct_CC="$ac_prog"
2094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095    break 2
2096  fi
2097done
2098done
2099
2100fi
2101fi
2102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
2104  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6
2106else
2107  echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
2109fi
2110
2111  test -n "$ac_ct_CC" && break
2112done
2113
2114  CC=$ac_ct_CC
2115fi
2116
2117fi
2118
2119
2120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124   { (exit 1); exit 1; }; }
2125
2126# Provide some information about the compiler.
2127echo "$as_me:$LINENO:" \
2128     "checking for C compiler version" >&5
2129ac_compiler=`set X $ac_compile; echo $2`
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131  (eval $ac_compiler --version </dev/null >&5) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136  (eval $ac_compiler -v </dev/null >&5) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141  (eval $ac_compiler -V </dev/null >&5) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }
2145
2146cat >conftest.$ac_ext <<_ACEOF
2147/* confdefs.h.  */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h.  */
2152
2153int
2154main ()
2155{
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161ac_clean_files_save=$ac_clean_files
2162ac_clean_files="$ac_clean_files a.out a.exe b.out"
2163# Try to create an executable without -o first, disregard a.out.
2164# It will help us diagnose broken compilers, and finding out an intuition
2165# of exeext.
2166echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170  (eval $ac_link_default) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }; then
2174  # Find the output, starting from the most likely.  This scheme is
2175# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176# resort.
2177
2178# Be careful to initialize this variable, since it used to be cached.
2179# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180ac_cv_exeext=
2181# b.out is created by i960 compilers.
2182for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183do
2184  test -f "$ac_file" || continue
2185  case $ac_file in
2186    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2187	;;
2188    conftest.$ac_ext )
2189	# This is the source file.
2190	;;
2191    [ab].out )
2192	# We found the default executable, but exeext='' is most
2193	# certainly right.
2194	break;;
2195    *.* )
2196	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197	# FIXME: I believe we export ac_cv_exeext for Libtool,
2198	# but it would be cool to find out if it's true.  Does anybody
2199	# maintain Libtool? --akim.
2200	export ac_cv_exeext
2201	break;;
2202    * )
2203	break;;
2204  esac
2205done
2206else
2207  echo "$as_me: failed program was:" >&5
2208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: C compiler cannot create executables
2213See \`config.log' for more details." >&2;}
2214   { (exit 77); exit 77; }; }
2215fi
2216
2217ac_exeext=$ac_cv_exeext
2218echo "$as_me:$LINENO: result: $ac_file" >&5
2219echo "${ECHO_T}$ac_file" >&6
2220
2221# Check the compiler produces executables we can run.  If not, either
2222# the compiler is broken, or we cross compile.
2223echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228  if { ac_try='./$ac_file'
2229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230  (eval $ac_try) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }; }; then
2234    cross_compiling=no
2235  else
2236    if test "$cross_compiling" = maybe; then
2237	cross_compiling=yes
2238    else
2239	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&2;}
2245   { (exit 1); exit 1; }; }
2246    fi
2247  fi
2248fi
2249echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6
2251
2252rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253ac_clean_files=$ac_clean_files_save
2254# Check the compiler produces executables we can run.  If not, either
2255# the compiler is broken, or we cross compile.
2256echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259echo "${ECHO_T}$cross_compiling" >&6
2260
2261echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264  (eval $ac_link) 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); }; then
2268  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2270# work properly (i.e., refer to `conftest.exe'), while it won't with
2271# `rm'.
2272for ac_file in conftest.exe conftest conftest.*; do
2273  test -f "$ac_file" || continue
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2276    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277	  export ac_cv_exeext
2278	  break;;
2279    * ) break;;
2280  esac
2281done
2282else
2283  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
2287   { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299if test "${ac_cv_objext+set}" = set; then
2300  echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302  cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h.  */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h.  */
2308
2309int
2310main ()
2311{
2312
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319  (eval $ac_compile) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324  case $ac_file in
2325    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2326    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327       break;;
2328  esac
2329done
2330else
2331  echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&2;}
2338   { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344echo "${ECHO_T}$ac_cv_objext" >&6
2345OBJEXT=$ac_cv_objext
2346ac_objext=$OBJEXT
2347echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h.  */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h.  */
2358
2359int
2360main ()
2361{
2362#ifndef __GNUC__
2363       choke me
2364#endif
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372  (eval $ac_compile) 2>conftest.er1
2373  ac_status=$?
2374  grep -v '^ *+' conftest.er1 >conftest.err
2375  rm -f conftest.er1
2376  cat conftest.err >&5
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); } &&
2379	 { ac_try='test -z "$ac_c_werror_flag"
2380			 || test ! -s conftest.err'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; } &&
2386	 { ac_try='test -s conftest.$ac_objext'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; }; then
2392  ac_compiler_gnu=yes
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397ac_compiler_gnu=no
2398fi
2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401
2402fi
2403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405GCC=`test $ac_compiler_gnu = yes && echo yes`
2406ac_test_CFLAGS=${CFLAGS+set}
2407ac_save_CFLAGS=$CFLAGS
2408CFLAGS="-g"
2409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411if test "${ac_cv_prog_cc_g+set}" = set; then
2412  echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414  cat >conftest.$ac_ext <<_ACEOF
2415/* confdefs.h.  */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h.  */
2420
2421int
2422main ()
2423{
2424
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431  (eval $ac_compile) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } &&
2438	 { ac_try='test -z "$ac_c_werror_flag"
2439			 || test ! -s conftest.err'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; } &&
2445	 { ac_try='test -s conftest.$ac_objext'
2446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447  (eval $ac_try) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; }; then
2451  ac_cv_prog_cc_g=yes
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456ac_cv_prog_cc_g=no
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459fi
2460echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462if test "$ac_test_CFLAGS" = set; then
2463  CFLAGS=$ac_save_CFLAGS
2464elif test $ac_cv_prog_cc_g = yes; then
2465  if test "$GCC" = yes; then
2466    CFLAGS="-g -O2"
2467  else
2468    CFLAGS="-g"
2469  fi
2470else
2471  if test "$GCC" = yes; then
2472    CFLAGS="-O2"
2473  else
2474    CFLAGS=
2475  fi
2476fi
2477echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480  echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482  ac_cv_prog_cc_stdc=no
2483ac_save_CC=$CC
2484cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490#include <stdarg.h>
2491#include <stdio.h>
2492#include <sys/types.h>
2493#include <sys/stat.h>
2494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2495struct buf { int x; };
2496FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497static char *e (p, i)
2498     char **p;
2499     int i;
2500{
2501  return p[i];
2502}
2503static char *f (char * (*g) (char **, int), char **p, ...)
2504{
2505  char *s;
2506  va_list v;
2507  va_start (v,p);
2508  s = g (p, va_arg (v,int));
2509  va_end (v);
2510  return s;
2511}
2512
2513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2514   function prototypes and stuff, but not '\xHH' hex character constants.
2515   These don't provoke an error unfortunately, instead are silently treated
2516   as 'x'.  The following induces an error, until -std1 is added to get
2517   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2518   array size at least.  It's necessary to write '\x00'==0 to get something
2519   that's true only with -std1.  */
2520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522int test (int i, double x);
2523struct s1 {int (*f) (int a);};
2524struct s2 {int (*f) (double a);};
2525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526int argc;
2527char **argv;
2528int
2529main ()
2530{
2531return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536# Don't try gcc -ansi; that turns off useful extensions and
2537# breaks some systems' header files.
2538# AIX			-qlanglvl=ansi
2539# Ultrix and OSF/1	-std1
2540# HP-UX 10.20 and later	-Ae
2541# HP-UX older versions	-Aa -D_HPUX_SOURCE
2542# SVR4			-Xc -D__EXTENSIONS__
2543for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544do
2545  CC="$ac_save_CC $ac_arg"
2546  rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548  (eval $ac_compile) 2>conftest.er1
2549  ac_status=$?
2550  grep -v '^ *+' conftest.er1 >conftest.err
2551  rm -f conftest.er1
2552  cat conftest.err >&5
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); } &&
2555	 { ac_try='test -z "$ac_c_werror_flag"
2556			 || test ! -s conftest.err'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; } &&
2562	 { ac_try='test -s conftest.$ac_objext'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; }; then
2568  ac_cv_prog_cc_stdc=$ac_arg
2569break
2570else
2571  echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574fi
2575rm -f conftest.err conftest.$ac_objext
2576done
2577rm -f conftest.$ac_ext conftest.$ac_objext
2578CC=$ac_save_CC
2579
2580fi
2581
2582case "x$ac_cv_prog_cc_stdc" in
2583  x|xno)
2584    echo "$as_me:$LINENO: result: none needed" >&5
2585echo "${ECHO_T}none needed" >&6 ;;
2586  *)
2587    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589    CC="$CC $ac_cv_prog_cc_stdc" ;;
2590esac
2591
2592# Some people use a C++ compiler to compile C.  Since we use `exit',
2593# in C++ we need to declare it.  In case someone uses the same compiler
2594# for both compiling C and C++ we need to have the C++ compiler decide
2595# the declaration of exit, since it's the most demanding environment.
2596cat >conftest.$ac_ext <<_ACEOF
2597#ifndef __cplusplus
2598  choke me
2599#endif
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610	 { ac_try='test -z "$ac_c_werror_flag"
2611			 || test ! -s conftest.err'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; } &&
2617	 { ac_try='test -s conftest.$ac_objext'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; }; then
2623  for ac_declaration in \
2624   '' \
2625   'extern "C" void std::exit (int) throw (); using std::exit;' \
2626   'extern "C" void std::exit (int); using std::exit;' \
2627   'extern "C" void exit (int) throw ();' \
2628   'extern "C" void exit (int);' \
2629   'void exit (int);'
2630do
2631  cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h.  */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h.  */
2637$ac_declaration
2638#include <stdlib.h>
2639int
2640main ()
2641{
2642exit (42);
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649  (eval $ac_compile) 2>conftest.er1
2650  ac_status=$?
2651  grep -v '^ *+' conftest.er1 >conftest.err
2652  rm -f conftest.er1
2653  cat conftest.err >&5
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); } &&
2656	 { ac_try='test -z "$ac_c_werror_flag"
2657			 || test ! -s conftest.err'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; } &&
2663	 { ac_try='test -s conftest.$ac_objext'
2664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665  (eval $ac_try) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); }; }; then
2669  :
2670else
2671  echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5
2673
2674continue
2675fi
2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677  cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h.  */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h.  */
2683$ac_declaration
2684int
2685main ()
2686{
2687exit (42);
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701	 { ac_try='test -z "$ac_c_werror_flag"
2702			 || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708	 { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  break
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721done
2722rm -f conftest*
2723if test -n "$ac_declaration"; then
2724  echo '#ifdef __cplusplus' >>confdefs.h
2725  echo $ac_declaration      >>confdefs.h
2726  echo '#endif'             >>confdefs.h
2727fi
2728
2729else
2730  echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744if test "${ac_cv_c_bigendian+set}" = set; then
2745  echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747  # See if sys/param.h defines the BYTE_ORDER macro.
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754#include <sys/types.h>
2755#include <sys/param.h>
2756
2757int
2758main ()
2759{
2760#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761 bogus endian macros
2762#endif
2763
2764  ;
2765  return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770  (eval $ac_compile) 2>conftest.er1
2771  ac_status=$?
2772  grep -v '^ *+' conftest.er1 >conftest.err
2773  rm -f conftest.er1
2774  cat conftest.err >&5
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); } &&
2777	 { ac_try='test -z "$ac_c_werror_flag"
2778			 || test ! -s conftest.err'
2779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780  (eval $ac_try) 2>&5
2781  ac_status=$?
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); }; } &&
2784	 { ac_try='test -s conftest.$ac_objext'
2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786  (eval $ac_try) 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }; }; then
2790  # It does; now see whether it defined to BIG_ENDIAN or not.
2791cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h.  */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h.  */
2797#include <sys/types.h>
2798#include <sys/param.h>
2799
2800int
2801main ()
2802{
2803#if BYTE_ORDER != BIG_ENDIAN
2804 not big endian
2805#endif
2806
2807  ;
2808  return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813  (eval $ac_compile) 2>conftest.er1
2814  ac_status=$?
2815  grep -v '^ *+' conftest.er1 >conftest.err
2816  rm -f conftest.er1
2817  cat conftest.err >&5
2818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819  (exit $ac_status); } &&
2820	 { ac_try='test -z "$ac_c_werror_flag"
2821			 || test ! -s conftest.err'
2822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; } &&
2827	 { ac_try='test -s conftest.$ac_objext'
2828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829  (eval $ac_try) 2>&5
2830  ac_status=$?
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); }; }; then
2833  ac_cv_c_bigendian=yes
2834else
2835  echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838ac_cv_c_bigendian=no
2839fi
2840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841else
2842  echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845# It does not; compile a test program.
2846if test "$cross_compiling" = yes; then
2847  # try to guess the endianness by grepping values into an object file
2848  ac_cv_c_bigendian=unknown
2849  cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861int
2862main ()
2863{
2864 _ascii (); _ebcdic ();
2865  ;
2866  return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871  (eval $ac_compile) 2>conftest.er1
2872  ac_status=$?
2873  grep -v '^ *+' conftest.er1 >conftest.err
2874  rm -f conftest.er1
2875  cat conftest.err >&5
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); } &&
2878	 { ac_try='test -z "$ac_c_werror_flag"
2879			 || test ! -s conftest.err'
2880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881  (eval $ac_try) 2>&5
2882  ac_status=$?
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }; } &&
2885	 { ac_try='test -s conftest.$ac_objext'
2886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887  (eval $ac_try) 2>&5
2888  ac_status=$?
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); }; }; then
2891  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892  ac_cv_c_bigendian=yes
2893fi
2894if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895  if test "$ac_cv_c_bigendian" = unknown; then
2896    ac_cv_c_bigendian=no
2897  else
2898    # finding both strings is unlikely to happen, but who knows?
2899    ac_cv_c_bigendian=unknown
2900  fi
2901fi
2902else
2903  echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908else
2909  cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h.  */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h.  */
2915int
2916main ()
2917{
2918  /* Are we little or big endian?  From Harbison&Steele.  */
2919  union
2920  {
2921    long l;
2922    char c[sizeof (long)];
2923  } u;
2924  u.l = 1;
2925  exit (u.c[sizeof (long) - 1] == 1);
2926}
2927_ACEOF
2928rm -f conftest$ac_exeext
2929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930  (eval $ac_link) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; }; then
2939  ac_cv_c_bigendian=no
2940else
2941  echo "$as_me: program exited with status $ac_status" >&5
2942echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945( exit $ac_status )
2946ac_cv_c_bigendian=yes
2947fi
2948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949fi
2950fi
2951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952fi
2953echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955case $ac_cv_c_bigendian in
2956  yes)
2957    ENDIAN=big
2958 ;;
2959  no)
2960    ENDIAN=little
2961 ;;
2962  *)
2963    { { echo "$as_me:$LINENO: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965echo "$as_me: error: unknown endianness
2966presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967   { (exit 1); exit 1; }; } ;;
2968esac
2969
2970
2971
2972# Check whether --enable-optimized or --disable-optimized was given.
2973if test "${enable_optimized+set}" = set; then
2974  enableval="$enable_optimized"
2975
2976else
2977  enableval=no
2978fi;
2979if test ${enableval} = "no" ; then
2980  ENABLE_OPTIMIZED=
2981
2982else
2983  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2984
2985fi
2986
2987# Check whether --enable-jit or --disable-jit was given.
2988if test "${enable_jit+set}" = set; then
2989  enableval="$enable_jit"
2990
2991else
2992  enableval=default
2993fi;
2994if test ${enableval} = "no"
2995then
2996  JIT=
2997
2998else
2999  case "$llvm_cv_target_arch" in
3000    x86)     JIT=TARGET_HAS_JIT=1
3001 ;;
3002    Sparc)   JIT=TARGET_HAS_JIT=1
3003 ;;
3004    PowerPC) JIT=TARGET_HAS_JIT=1
3005 ;;
3006    x86_64)  JIT=
3007 ;;
3008    Alpha)   JIT=
3009 ;;
3010    IA64)    JIT=
3011 ;;
3012    *)       JIT=
3013 ;;
3014  esac
3015fi
3016
3017# Check whether --enable-doxygen or --disable-doxygen was given.
3018if test "${enable_doxygen+set}" = set; then
3019  enableval="$enable_doxygen"
3020
3021else
3022  enableval=default
3023fi;
3024case "$enableval" in
3025  yes) ENABLE_DOXYGEN=1
3026 ;;
3027  no)  ENABLE_DOXYGEN=0
3028 ;;
3029  default) ENABLE_DOXYGEN=0
3030 ;;
3031  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3032echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3033   { (exit 1); exit 1; }; } ;;
3034esac
3035
3036TARGETS_TO_BUILD=""
3037# Check whether --enable-targets or --disable-targets was given.
3038if test "${enable_targets+set}" = set; then
3039  enableval="$enable_targets"
3040
3041else
3042  enableval=all
3043fi;
3044case "$enableval" in
3045  all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64" ;;
3046  host-only)
3047    case "$llvm_cv_target_arch" in
3048      x86)     TARGETS_TO_BUILD="X86" ;;
3049      x86_64)  TARGETS_TO_BUILD="X86" ;;
3050      Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3051      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3052      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3053      IA64)    TARGETS_TO_BUILD="IA64" ;;
3054      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3055echo "$as_me: error: Can not set target to build" >&2;}
3056   { (exit 1); exit 1; }; } ;;
3057    esac
3058    ;;
3059  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3060      case "$a_target" in
3061        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3062        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3063        sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3064        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3065        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3066        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3067        skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3068        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3069echo "$as_me: error: Unrecognized target $a_target" >&2;}
3070   { (exit 1); exit 1; }; } ;;
3071      esac
3072  done
3073  ;;
3074esac
3075TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3076
3077
3078
3079# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3080if test "${with_llvmgccdir+set}" = set; then
3081  withval="$with_llvmgccdir"
3082
3083else
3084  withval=default
3085fi;
3086case "$withval" in
3087  default) WITH_LLVMGCCDIR=default ;;
3088  /*)      WITH_LLVMGCCDIR=$withval ;;
3089  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3090echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3091   { (exit 1); exit 1; }; } ;;
3092esac
3093
3094
3095
3096ac_ext=c
3097ac_cpp='$CPP $CPPFLAGS'
3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3102echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3103# On Suns, sometimes $CPP names a directory.
3104if test -n "$CPP" && test -d "$CPP"; then
3105  CPP=
3106fi
3107if test -z "$CPP"; then
3108  if test "${ac_cv_prog_CPP+set}" = set; then
3109  echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111      # Double quotes because CPP needs to be expanded
3112    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3113    do
3114      ac_preproc_ok=false
3115for ac_c_preproc_warn_flag in '' yes
3116do
3117  # Use a header file that comes with gcc, so configuring glibc
3118  # with a fresh cross-compiler works.
3119  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120  # <limits.h> exists even on freestanding compilers.
3121  # On the NeXT, cc -E runs the code through the compiler's parser,
3122  # not just through cpp. "Syntax error" is here to catch this case.
3123  cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h.  */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h.  */
3129#ifdef __STDC__
3130# include <limits.h>
3131#else
3132# include <assert.h>
3133#endif
3134		     Syntax error
3135_ACEOF
3136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138  ac_status=$?
3139  grep -v '^ *+' conftest.er1 >conftest.err
3140  rm -f conftest.er1
3141  cat conftest.err >&5
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); } >/dev/null; then
3144  if test -s conftest.err; then
3145    ac_cpp_err=$ac_c_preproc_warn_flag
3146    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3147  else
3148    ac_cpp_err=
3149  fi
3150else
3151  ac_cpp_err=yes
3152fi
3153if test -z "$ac_cpp_err"; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159  # Broken: fails on valid input.
3160continue
3161fi
3162rm -f conftest.err conftest.$ac_ext
3163
3164  # OK, works on sane cases.  Now check whether non-existent headers
3165  # can be detected and how.
3166  cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172#include <ac_nonexistent.h>
3173_ACEOF
3174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } >/dev/null; then
3182  if test -s conftest.err; then
3183    ac_cpp_err=$ac_c_preproc_warn_flag
3184    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185  else
3186    ac_cpp_err=
3187  fi
3188else
3189  ac_cpp_err=yes
3190fi
3191if test -z "$ac_cpp_err"; then
3192  # Broken: success on invalid input.
3193continue
3194else
3195  echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198  # Passes both tests.
3199ac_preproc_ok=:
3200break
3201fi
3202rm -f conftest.err conftest.$ac_ext
3203
3204done
3205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206rm -f conftest.err conftest.$ac_ext
3207if $ac_preproc_ok; then
3208  break
3209fi
3210
3211    done
3212    ac_cv_prog_CPP=$CPP
3213
3214fi
3215  CPP=$ac_cv_prog_CPP
3216else
3217  ac_cv_prog_CPP=$CPP
3218fi
3219echo "$as_me:$LINENO: result: $CPP" >&5
3220echo "${ECHO_T}$CPP" >&6
3221ac_preproc_ok=false
3222for ac_c_preproc_warn_flag in '' yes
3223do
3224  # Use a header file that comes with gcc, so configuring glibc
3225  # with a fresh cross-compiler works.
3226  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227  # <limits.h> exists even on freestanding compilers.
3228  # On the NeXT, cc -E runs the code through the compiler's parser,
3229  # not just through cpp. "Syntax error" is here to catch this case.
3230  cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h.  */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h.  */
3236#ifdef __STDC__
3237# include <limits.h>
3238#else
3239# include <assert.h>
3240#endif
3241		     Syntax error
3242_ACEOF
3243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3245  ac_status=$?
3246  grep -v '^ *+' conftest.er1 >conftest.err
3247  rm -f conftest.er1
3248  cat conftest.err >&5
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); } >/dev/null; then
3251  if test -s conftest.err; then
3252    ac_cpp_err=$ac_c_preproc_warn_flag
3253    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254  else
3255    ac_cpp_err=
3256  fi
3257else
3258  ac_cpp_err=yes
3259fi
3260if test -z "$ac_cpp_err"; then
3261  :
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266  # Broken: fails on valid input.
3267continue
3268fi
3269rm -f conftest.err conftest.$ac_ext
3270
3271  # OK, works on sane cases.  Now check whether non-existent headers
3272  # can be detected and how.
3273  cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h.  */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h.  */
3279#include <ac_nonexistent.h>
3280_ACEOF
3281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3282  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3283  ac_status=$?
3284  grep -v '^ *+' conftest.er1 >conftest.err
3285  rm -f conftest.er1
3286  cat conftest.err >&5
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); } >/dev/null; then
3289  if test -s conftest.err; then
3290    ac_cpp_err=$ac_c_preproc_warn_flag
3291    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292  else
3293    ac_cpp_err=
3294  fi
3295else
3296  ac_cpp_err=yes
3297fi
3298if test -z "$ac_cpp_err"; then
3299  # Broken: success on invalid input.
3300continue
3301else
3302  echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305  # Passes both tests.
3306ac_preproc_ok=:
3307break
3308fi
3309rm -f conftest.err conftest.$ac_ext
3310
3311done
3312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3313rm -f conftest.err conftest.$ac_ext
3314if $ac_preproc_ok; then
3315  :
3316else
3317  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3318See \`config.log' for more details." >&5
3319echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3320See \`config.log' for more details." >&2;}
3321   { (exit 1); exit 1; }; }
3322fi
3323
3324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335if test -n "$ac_tool_prefix"; then
3336  for ac_prog in gcc
3337  do
3338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_CC+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  if test -n "$CC"; then
3346  ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353  for ac_exec_ext in '' $ac_executable_extensions; do
3354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360done
3361
3362fi
3363fi
3364CC=$ac_cv_prog_CC
3365if test -n "$CC"; then
3366  echo "$as_me:$LINENO: result: $CC" >&5
3367echo "${ECHO_T}$CC" >&6
3368else
3369  echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371fi
3372
3373    test -n "$CC" && break
3374  done
3375fi
3376if test -z "$CC"; then
3377  ac_ct_CC=$CC
3378  for ac_prog in gcc
3379do
3380  # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382echo "$as_me:$LINENO: checking for $ac_word" >&5
3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  if test -n "$ac_ct_CC"; then
3388  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393  IFS=$as_save_IFS
3394  test -z "$as_dir" && as_dir=.
3395  for ac_exec_ext in '' $ac_executable_extensions; do
3396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397    ac_cv_prog_ac_ct_CC="$ac_prog"
3398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402done
3403
3404fi
3405fi
3406ac_ct_CC=$ac_cv_prog_ac_ct_CC
3407if test -n "$ac_ct_CC"; then
3408  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3409echo "${ECHO_T}$ac_ct_CC" >&6
3410else
3411  echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413fi
3414
3415  test -n "$ac_ct_CC" && break
3416done
3417
3418  CC=$ac_ct_CC
3419fi
3420
3421
3422test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3423See \`config.log' for more details." >&5
3424echo "$as_me: error: no acceptable C compiler found in \$PATH
3425See \`config.log' for more details." >&2;}
3426   { (exit 1); exit 1; }; }
3427
3428# Provide some information about the compiler.
3429echo "$as_me:$LINENO:" \
3430     "checking for C compiler version" >&5
3431ac_compiler=`set X $ac_compile; echo $2`
3432{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3433  (eval $ac_compiler --version </dev/null >&5) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }
3437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3438  (eval $ac_compiler -v </dev/null >&5) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }
3442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3443  (eval $ac_compiler -V </dev/null >&5) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }
3447
3448echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3449echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3450if test "${ac_cv_c_compiler_gnu+set}" = set; then
3451  echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453  cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h.  */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h.  */
3459
3460int
3461main ()
3462{
3463#ifndef __GNUC__
3464       choke me
3465#endif
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473  (eval $ac_compile) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480	 { ac_try='test -z "$ac_c_werror_flag"
3481			 || test ! -s conftest.err'
3482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483  (eval $ac_try) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; } &&
3487	 { ac_try='test -s conftest.$ac_objext'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; }; then
3493  ac_compiler_gnu=yes
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498ac_compiler_gnu=no
3499fi
3500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502
3503fi
3504echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3505echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3506GCC=`test $ac_compiler_gnu = yes && echo yes`
3507ac_test_CFLAGS=${CFLAGS+set}
3508ac_save_CFLAGS=$CFLAGS
3509CFLAGS="-g"
3510echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3511echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3512if test "${ac_cv_prog_cc_g+set}" = set; then
3513  echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515  cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h.  */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h.  */
3521
3522int
3523main ()
3524{
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532  (eval $ac_compile) 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } &&
3539	 { ac_try='test -z "$ac_c_werror_flag"
3540			 || test ! -s conftest.err'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; } &&
3546	 { ac_try='test -s conftest.$ac_objext'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; }; then
3552  ac_cv_prog_cc_g=yes
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557ac_cv_prog_cc_g=no
3558fi
3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
3561echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3562echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3563if test "$ac_test_CFLAGS" = set; then
3564  CFLAGS=$ac_save_CFLAGS
3565elif test $ac_cv_prog_cc_g = yes; then
3566  if test "$GCC" = yes; then
3567    CFLAGS="-g -O2"
3568  else
3569    CFLAGS="-g"
3570  fi
3571else
3572  if test "$GCC" = yes; then
3573    CFLAGS="-O2"
3574  else
3575    CFLAGS=
3576  fi
3577fi
3578echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3579echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3580if test "${ac_cv_prog_cc_stdc+set}" = set; then
3581  echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583  ac_cv_prog_cc_stdc=no
3584ac_save_CC=$CC
3585cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591#include <stdarg.h>
3592#include <stdio.h>
3593#include <sys/types.h>
3594#include <sys/stat.h>
3595/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3596struct buf { int x; };
3597FILE * (*rcsopen) (struct buf *, struct stat *, int);
3598static char *e (p, i)
3599     char **p;
3600     int i;
3601{
3602  return p[i];
3603}
3604static char *f (char * (*g) (char **, int), char **p, ...)
3605{
3606  char *s;
3607  va_list v;
3608  va_start (v,p);
3609  s = g (p, va_arg (v,int));
3610  va_end (v);
3611  return s;
3612}
3613
3614/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3615   function prototypes and stuff, but not '\xHH' hex character constants.
3616   These don't provoke an error unfortunately, instead are silently treated
3617   as 'x'.  The following induces an error, until -std1 is added to get
3618   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3619   array size at least.  It's necessary to write '\x00'==0 to get something
3620   that's true only with -std1.  */
3621int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3622
3623int test (int i, double x);
3624struct s1 {int (*f) (int a);};
3625struct s2 {int (*f) (double a);};
3626int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3627int argc;
3628char **argv;
3629int
3630main ()
3631{
3632return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637# Don't try gcc -ansi; that turns off useful extensions and
3638# breaks some systems' header files.
3639# AIX			-qlanglvl=ansi
3640# Ultrix and OSF/1	-std1
3641# HP-UX 10.20 and later	-Ae
3642# HP-UX older versions	-Aa -D_HPUX_SOURCE
3643# SVR4			-Xc -D__EXTENSIONS__
3644for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645do
3646  CC="$ac_save_CC $ac_arg"
3647  rm -f conftest.$ac_objext
3648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649  (eval $ac_compile) 2>conftest.er1
3650  ac_status=$?
3651  grep -v '^ *+' conftest.er1 >conftest.err
3652  rm -f conftest.er1
3653  cat conftest.err >&5
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); } &&
3656	 { ac_try='test -z "$ac_c_werror_flag"
3657			 || test ! -s conftest.err'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; } &&
3663	 { ac_try='test -s conftest.$ac_objext'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; }; then
3669  ac_cv_prog_cc_stdc=$ac_arg
3670break
3671else
3672  echo "$as_me: failed program was:" >&5
3673sed 's/^/| /' conftest.$ac_ext >&5
3674
3675fi
3676rm -f conftest.err conftest.$ac_objext
3677done
3678rm -f conftest.$ac_ext conftest.$ac_objext
3679CC=$ac_save_CC
3680
3681fi
3682
3683case "x$ac_cv_prog_cc_stdc" in
3684  x|xno)
3685    echo "$as_me:$LINENO: result: none needed" >&5
3686echo "${ECHO_T}none needed" >&6 ;;
3687  *)
3688    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3689echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3690    CC="$CC $ac_cv_prog_cc_stdc" ;;
3691esac
3692
3693# Some people use a C++ compiler to compile C.  Since we use `exit',
3694# in C++ we need to declare it.  In case someone uses the same compiler
3695# for both compiling C and C++ we need to have the C++ compiler decide
3696# the declaration of exit, since it's the most demanding environment.
3697cat >conftest.$ac_ext <<_ACEOF
3698#ifndef __cplusplus
3699  choke me
3700#endif
3701_ACEOF
3702rm -f conftest.$ac_objext
3703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704  (eval $ac_compile) 2>conftest.er1
3705  ac_status=$?
3706  grep -v '^ *+' conftest.er1 >conftest.err
3707  rm -f conftest.er1
3708  cat conftest.err >&5
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); } &&
3711	 { ac_try='test -z "$ac_c_werror_flag"
3712			 || test ! -s conftest.err'
3713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714  (eval $ac_try) 2>&5
3715  ac_status=$?
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); }; } &&
3718	 { ac_try='test -s conftest.$ac_objext'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; }; then
3724  for ac_declaration in \
3725   '' \
3726   'extern "C" void std::exit (int) throw (); using std::exit;' \
3727   'extern "C" void std::exit (int); using std::exit;' \
3728   'extern "C" void exit (int) throw ();' \
3729   'extern "C" void exit (int);' \
3730   'void exit (int);'
3731do
3732  cat >conftest.$ac_ext <<_ACEOF
3733/* confdefs.h.  */
3734_ACEOF
3735cat confdefs.h >>conftest.$ac_ext
3736cat >>conftest.$ac_ext <<_ACEOF
3737/* end confdefs.h.  */
3738$ac_declaration
3739#include <stdlib.h>
3740int
3741main ()
3742{
3743exit (42);
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748rm -f conftest.$ac_objext
3749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750  (eval $ac_compile) 2>conftest.er1
3751  ac_status=$?
3752  grep -v '^ *+' conftest.er1 >conftest.err
3753  rm -f conftest.er1
3754  cat conftest.err >&5
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); } &&
3757	 { ac_try='test -z "$ac_c_werror_flag"
3758			 || test ! -s conftest.err'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; } &&
3764	 { ac_try='test -s conftest.$ac_objext'
3765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766  (eval $ac_try) 2>&5
3767  ac_status=$?
3768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); }; }; then
3770  :
3771else
3772  echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775continue
3776fi
3777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778  cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784$ac_declaration
3785int
3786main ()
3787{
3788exit (42);
3789  ;
3790  return 0;
3791}
3792_ACEOF
3793rm -f conftest.$ac_objext
3794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795  (eval $ac_compile) 2>conftest.er1
3796  ac_status=$?
3797  grep -v '^ *+' conftest.er1 >conftest.err
3798  rm -f conftest.er1
3799  cat conftest.err >&5
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); } &&
3802	 { ac_try='test -z "$ac_c_werror_flag"
3803			 || test ! -s conftest.err'
3804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805  (eval $ac_try) 2>&5
3806  ac_status=$?
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); }; } &&
3809	 { ac_try='test -s conftest.$ac_objext'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; }; then
3815  break
3816else
3817  echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820fi
3821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822done
3823rm -f conftest*
3824if test -n "$ac_declaration"; then
3825  echo '#ifdef __cplusplus' >>confdefs.h
3826  echo $ac_declaration      >>confdefs.h
3827  echo '#endif'             >>confdefs.h
3828fi
3829
3830else
3831  echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834fi
3835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836ac_ext=c
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842ac_ext=cc
3843ac_cpp='$CXXCPP $CPPFLAGS'
3844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3847if test -n "$ac_tool_prefix"; then
3848  for ac_prog in $CCC g++
3849  do
3850    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3851set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3852echo "$as_me:$LINENO: checking for $ac_word" >&5
3853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854if test "${ac_cv_prog_CXX+set}" = set; then
3855  echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857  if test -n "$CXX"; then
3858  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863  IFS=$as_save_IFS
3864  test -z "$as_dir" && as_dir=.
3865  for ac_exec_ext in '' $ac_executable_extensions; do
3866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869    break 2
3870  fi
3871done
3872done
3873
3874fi
3875fi
3876CXX=$ac_cv_prog_CXX
3877if test -n "$CXX"; then
3878  echo "$as_me:$LINENO: result: $CXX" >&5
3879echo "${ECHO_T}$CXX" >&6
3880else
3881  echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
3883fi
3884
3885    test -n "$CXX" && break
3886  done
3887fi
3888if test -z "$CXX"; then
3889  ac_ct_CXX=$CXX
3890  for ac_prog in $CCC g++
3891do
3892  # Extract the first word of "$ac_prog", so it can be a program name with args.
3893set dummy $ac_prog; ac_word=$2
3894echo "$as_me:$LINENO: checking for $ac_word" >&5
3895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3897  echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899  if test -n "$ac_ct_CXX"; then
3900  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905  IFS=$as_save_IFS
3906  test -z "$as_dir" && as_dir=.
3907  for ac_exec_ext in '' $ac_executable_extensions; do
3908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909    ac_cv_prog_ac_ct_CXX="$ac_prog"
3910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911    break 2
3912  fi
3913done
3914done
3915
3916fi
3917fi
3918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919if test -n "$ac_ct_CXX"; then
3920  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3921echo "${ECHO_T}$ac_ct_CXX" >&6
3922else
3923  echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
3925fi
3926
3927  test -n "$ac_ct_CXX" && break
3928done
3929test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3930
3931  CXX=$ac_ct_CXX
3932fi
3933
3934
3935# Provide some information about the compiler.
3936echo "$as_me:$LINENO:" \
3937     "checking for C++ compiler version" >&5
3938ac_compiler=`set X $ac_compile; echo $2`
3939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3940  (eval $ac_compiler --version </dev/null >&5) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }
3944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3945  (eval $ac_compiler -v </dev/null >&5) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }
3949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3950  (eval $ac_compiler -V </dev/null >&5) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }
3954
3955echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3956echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3957if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3958  echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960  cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h.  */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h.  */
3966
3967int
3968main ()
3969{
3970#ifndef __GNUC__
3971       choke me
3972#endif
3973
3974  ;
3975  return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980  (eval $ac_compile) 2>conftest.er1
3981  ac_status=$?
3982  grep -v '^ *+' conftest.er1 >conftest.err
3983  rm -f conftest.er1
3984  cat conftest.err >&5
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); } &&
3987	 { ac_try='test -z "$ac_cxx_werror_flag"
3988			 || test ! -s conftest.err'
3989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990  (eval $ac_try) 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; } &&
3994	 { ac_try='test -s conftest.$ac_objext'
3995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996  (eval $ac_try) 2>&5
3997  ac_status=$?
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); }; }; then
4000  ac_compiler_gnu=yes
4001else
4002  echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005ac_compiler_gnu=no
4006fi
4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4012echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4013GXX=`test $ac_compiler_gnu = yes && echo yes`
4014ac_test_CXXFLAGS=${CXXFLAGS+set}
4015ac_save_CXXFLAGS=$CXXFLAGS
4016CXXFLAGS="-g"
4017echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4018echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4019if test "${ac_cv_prog_cxx_g+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022  cat >conftest.$ac_ext <<_ACEOF
4023/* confdefs.h.  */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext
4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039  (eval $ac_compile) 2>conftest.er1
4040  ac_status=$?
4041  grep -v '^ *+' conftest.er1 >conftest.err
4042  rm -f conftest.er1
4043  cat conftest.err >&5
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); } &&
4046	 { ac_try='test -z "$ac_cxx_werror_flag"
4047			 || test ! -s conftest.err'
4048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049  (eval $ac_try) 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }; } &&
4053	 { ac_try='test -s conftest.$ac_objext'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; }; then
4059  ac_cv_prog_cxx_g=yes
4060else
4061  echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064ac_cv_prog_cxx_g=no
4065fi
4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067fi
4068echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4069echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4070if test "$ac_test_CXXFLAGS" = set; then
4071  CXXFLAGS=$ac_save_CXXFLAGS
4072elif test $ac_cv_prog_cxx_g = yes; then
4073  if test "$GXX" = yes; then
4074    CXXFLAGS="-g -O2"
4075  else
4076    CXXFLAGS="-g"
4077  fi
4078else
4079  if test "$GXX" = yes; then
4080    CXXFLAGS="-O2"
4081  else
4082    CXXFLAGS=
4083  fi
4084fi
4085for ac_declaration in \
4086   '' \
4087   'extern "C" void std::exit (int) throw (); using std::exit;' \
4088   'extern "C" void std::exit (int); using std::exit;' \
4089   'extern "C" void exit (int) throw ();' \
4090   'extern "C" void exit (int);' \
4091   'void exit (int);'
4092do
4093  cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h.  */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h.  */
4099$ac_declaration
4100#include <stdlib.h>
4101int
4102main ()
4103{
4104exit (42);
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111  (eval $ac_compile) 2>conftest.er1
4112  ac_status=$?
4113  grep -v '^ *+' conftest.er1 >conftest.err
4114  rm -f conftest.er1
4115  cat conftest.err >&5
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); } &&
4118	 { ac_try='test -z "$ac_cxx_werror_flag"
4119			 || test ! -s conftest.err'
4120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121  (eval $ac_try) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; } &&
4125	 { ac_try='test -s conftest.$ac_objext'
4126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127  (eval $ac_try) 2>&5
4128  ac_status=$?
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); }; }; then
4131  :
4132else
4133  echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136continue
4137fi
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139  cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h.  */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h.  */
4145$ac_declaration
4146int
4147main ()
4148{
4149exit (42);
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156  (eval $ac_compile) 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } &&
4163	 { ac_try='test -z "$ac_cxx_werror_flag"
4164			 || test ! -s conftest.err'
4165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166  (eval $ac_try) 2>&5
4167  ac_status=$?
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); }; } &&
4170	 { ac_try='test -s conftest.$ac_objext'
4171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172  (eval $ac_try) 2>&5
4173  ac_status=$?
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); }; }; then
4176  break
4177else
4178  echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
4181fi
4182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183done
4184rm -f conftest*
4185if test -n "$ac_declaration"; then
4186  echo '#ifdef __cplusplus' >>confdefs.h
4187  echo $ac_declaration      >>confdefs.h
4188  echo '#endif'             >>confdefs.h
4189fi
4190
4191ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197echo "$as_me:$LINENO: checking " >&5
4198echo $ECHO_N "checking ... $ECHO_C" >&6
4199if test "${ac_cv_has_flex+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  for ac_prog in flex lex
4203do
4204  # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
4206echo "$as_me:$LINENO: checking for $ac_word" >&5
4207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208if test "${ac_cv_prog_LEX+set}" = set; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211  if test -n "$LEX"; then
4212  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219  for ac_exec_ext in '' $ac_executable_extensions; do
4220  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221    ac_cv_prog_LEX="$ac_prog"
4222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226done
4227
4228fi
4229fi
4230LEX=$ac_cv_prog_LEX
4231if test -n "$LEX"; then
4232  echo "$as_me:$LINENO: result: $LEX" >&5
4233echo "${ECHO_T}$LEX" >&6
4234else
4235  echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237fi
4238
4239  test -n "$LEX" && break
4240done
4241test -n "$LEX" || LEX=":"
4242
4243if test -z "$LEXLIB"
4244then
4245  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4246echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4247if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4248  echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250  ac_check_lib_save_LIBS=$LIBS
4251LIBS="-lfl  $LIBS"
4252cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h.  */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h.  */
4258
4259/* Override any gcc2 internal prototype to avoid an error.  */
4260#ifdef __cplusplus
4261extern "C"
4262#endif
4263/* We use char because int might match the return type of a gcc2
4264   builtin and then its argument prototype would still apply.  */
4265char yywrap ();
4266int
4267main ()
4268{
4269yywrap ();
4270  ;
4271  return 0;
4272}
4273_ACEOF
4274rm -f conftest.$ac_objext conftest$ac_exeext
4275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276  (eval $ac_link) 2>conftest.er1
4277  ac_status=$?
4278  grep -v '^ *+' conftest.er1 >conftest.err
4279  rm -f conftest.er1
4280  cat conftest.err >&5
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); } &&
4283	 { ac_try='test -z "$ac_c_werror_flag"
4284			 || test ! -s conftest.err'
4285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286  (eval $ac_try) 2>&5
4287  ac_status=$?
4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289  (exit $ac_status); }; } &&
4290	 { ac_try='test -s conftest$ac_exeext'
4291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292  (eval $ac_try) 2>&5
4293  ac_status=$?
4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295  (exit $ac_status); }; }; then
4296  ac_cv_lib_fl_yywrap=yes
4297else
4298  echo "$as_me: failed program was:" >&5
4299sed 's/^/| /' conftest.$ac_ext >&5
4300
4301ac_cv_lib_fl_yywrap=no
4302fi
4303rm -f conftest.err conftest.$ac_objext \
4304      conftest$ac_exeext conftest.$ac_ext
4305LIBS=$ac_check_lib_save_LIBS
4306fi
4307echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4308echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4309if test $ac_cv_lib_fl_yywrap = yes; then
4310  LEXLIB="-lfl"
4311else
4312  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4313echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4314if test "${ac_cv_lib_l_yywrap+set}" = set; then
4315  echo $ECHO_N "(cached) $ECHO_C" >&6
4316else
4317  ac_check_lib_save_LIBS=$LIBS
4318LIBS="-ll  $LIBS"
4319cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h.  */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h.  */
4325
4326/* Override any gcc2 internal prototype to avoid an error.  */
4327#ifdef __cplusplus
4328extern "C"
4329#endif
4330/* We use char because int might match the return type of a gcc2
4331   builtin and then its argument prototype would still apply.  */
4332char yywrap ();
4333int
4334main ()
4335{
4336yywrap ();
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext conftest$ac_exeext
4342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343  (eval $ac_link) 2>conftest.er1
4344  ac_status=$?
4345  grep -v '^ *+' conftest.er1 >conftest.err
4346  rm -f conftest.er1
4347  cat conftest.err >&5
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); } &&
4350	 { ac_try='test -z "$ac_c_werror_flag"
4351			 || test ! -s conftest.err'
4352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353  (eval $ac_try) 2>&5
4354  ac_status=$?
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); }; } &&
4357	 { ac_try='test -s conftest$ac_exeext'
4358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359  (eval $ac_try) 2>&5
4360  ac_status=$?
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); }; }; then
4363  ac_cv_lib_l_yywrap=yes
4364else
4365  echo "$as_me: failed program was:" >&5
4366sed 's/^/| /' conftest.$ac_ext >&5
4367
4368ac_cv_lib_l_yywrap=no
4369fi
4370rm -f conftest.err conftest.$ac_objext \
4371      conftest$ac_exeext conftest.$ac_ext
4372LIBS=$ac_check_lib_save_LIBS
4373fi
4374echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4375echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4376if test $ac_cv_lib_l_yywrap = yes; then
4377  LEXLIB="-ll"
4378fi
4379
4380fi
4381
4382fi
4383
4384if test "x$LEX" != "x:"; then
4385  echo "$as_me:$LINENO: checking lex output file root" >&5
4386echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4387if test "${ac_cv_prog_lex_root+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  # The minimal lex program is just a single line: %%.  But some broken lexes
4391# (Solaris, I think it was) want two %% lines, so accommodate them.
4392cat >conftest.l <<_ACEOF
4393%%
4394%%
4395_ACEOF
4396{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4397  (eval $LEX conftest.l) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }
4401if test -f lex.yy.c; then
4402  ac_cv_prog_lex_root=lex.yy
4403elif test -f lexyy.c; then
4404  ac_cv_prog_lex_root=lexyy
4405else
4406  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4407echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4408   { (exit 1); exit 1; }; }
4409fi
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4412echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4413rm -f conftest.l
4414LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4415
4416echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4417echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4418if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4419  echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421  # POSIX says lex can declare yytext either as a pointer or an array; the
4422# default is implementation-dependent. Figure out which it is, since
4423# not all implementations provide the %pointer and %array declarations.
4424ac_cv_prog_lex_yytext_pointer=no
4425echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4426ac_save_LIBS=$LIBS
4427LIBS="$LIBS $LEXLIB"
4428cat >conftest.$ac_ext <<_ACEOF
4429`cat $LEX_OUTPUT_ROOT.c`
4430_ACEOF
4431rm -f conftest.$ac_objext conftest$ac_exeext
4432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4433  (eval $ac_link) 2>conftest.er1
4434  ac_status=$?
4435  grep -v '^ *+' conftest.er1 >conftest.err
4436  rm -f conftest.er1
4437  cat conftest.err >&5
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); } &&
4440	 { ac_try='test -z "$ac_c_werror_flag"
4441			 || test ! -s conftest.err'
4442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443  (eval $ac_try) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; } &&
4447	 { ac_try='test -s conftest$ac_exeext'
4448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449  (eval $ac_try) 2>&5
4450  ac_status=$?
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); }; }; then
4453  ac_cv_prog_lex_yytext_pointer=yes
4454else
4455  echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458fi
4459rm -f conftest.err conftest.$ac_objext \
4460      conftest$ac_exeext conftest.$ac_ext
4461LIBS=$ac_save_LIBS
4462rm -f "${LEX_OUTPUT_ROOT}.c"
4463
4464fi
4465echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4466echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4467if test $ac_cv_prog_lex_yytext_pointer = yes; then
4468
4469cat >>confdefs.h <<\_ACEOF
4470#define YYTEXT_POINTER 1
4471_ACEOF
4472
4473fi
4474
4475fi
4476
4477fi
4478echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4479echo "${ECHO_T}$ac_cv_has_flex" >&6
4480if test "$LEX" != "flex"; then
4481  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4482echo "$as_me: error: flex not found but required" >&2;}
4483   { (exit 1); exit 1; }; }
4484else
4485  FLEX=flex
4486
4487fi
4488
4489echo "$as_me:$LINENO: checking " >&5
4490echo $ECHO_N "checking ... $ECHO_C" >&6
4491if test "${llvm_cv_has_bison+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  for ac_prog in 'bison -y' byacc
4495do
4496  # Extract the first word of "$ac_prog", so it can be a program name with args.
4497set dummy $ac_prog; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_YACC+set}" = set; then
4501  echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503  if test -n "$YACC"; then
4504  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509  IFS=$as_save_IFS
4510  test -z "$as_dir" && as_dir=.
4511  for ac_exec_ext in '' $ac_executable_extensions; do
4512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513    ac_cv_prog_YACC="$ac_prog"
4514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518done
4519
4520fi
4521fi
4522YACC=$ac_cv_prog_YACC
4523if test -n "$YACC"; then
4524  echo "$as_me:$LINENO: result: $YACC" >&5
4525echo "${ECHO_T}$YACC" >&6
4526else
4527  echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531  test -n "$YACC" && break
4532done
4533test -n "$YACC" || YACC="yacc"
4534
4535fi
4536echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4537echo "${ECHO_T}$llvm_cv_has_bison" >&6
4538if test "$YACC" != "bison -y"; then
4539  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4540echo "$as_me: error: bison not found but required" >&2;}
4541   { (exit 1); exit 1; }; }
4542else
4543  BISON=bison
4544
4545fi
4546
4547echo "$as_me:$LINENO: checking for GNU make" >&5
4548echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4549if test "${llvm_cv_gnu_make_command+set}" = set; then
4550  echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552  llvm_cv_gnu_make_command=''
4553 for a in "$MAKE" make gmake gnumake ; do
4554  if test -z "$a" ; then continue ; fi ;
4555  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4556  then
4557   llvm_cv_gnu_make_command=$a ;
4558   break;
4559  fi
4560 done
4561fi
4562echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4563echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4564 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4565   ifGNUmake='' ;
4566 else
4567   ifGNUmake='#' ;
4568   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4569echo "${ECHO_T}\"Not found\"" >&6;
4570 fi
4571
4572
4573echo "$as_me:$LINENO: checking whether ln -s works" >&5
4574echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4575LN_S=$as_ln_s
4576if test "$LN_S" = "ln -s"; then
4577  echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579else
4580  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4581echo "${ECHO_T}no, using $LN_S" >&6
4582fi
4583
4584# Extract the first word of "cmp", so it can be a program name with args.
4585set dummy cmp; ac_word=$2
4586echo "$as_me:$LINENO: checking for $ac_word" >&5
4587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588if test "${ac_cv_path_CMP+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  case $CMP in
4592  [\\/]* | ?:[\\/]*)
4593  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4594  ;;
4595  *)
4596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601  for ac_exec_ext in '' $ac_executable_extensions; do
4602  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4604    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605    break 2
4606  fi
4607done
4608done
4609
4610  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4611  ;;
4612esac
4613fi
4614CMP=$ac_cv_path_CMP
4615
4616if test -n "$CMP"; then
4617  echo "$as_me:$LINENO: result: $CMP" >&5
4618echo "${ECHO_T}$CMP" >&6
4619else
4620  echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6
4622fi
4623
4624# Extract the first word of "cp", so it can be a program name with args.
4625set dummy cp; ac_word=$2
4626echo "$as_me:$LINENO: checking for $ac_word" >&5
4627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628if test "${ac_cv_path_CP+set}" = set; then
4629  echo $ECHO_N "(cached) $ECHO_C" >&6
4630else
4631  case $CP in
4632  [\\/]* | ?:[\\/]*)
4633  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4634  ;;
4635  *)
4636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639  IFS=$as_save_IFS
4640  test -z "$as_dir" && as_dir=.
4641  for ac_exec_ext in '' $ac_executable_extensions; do
4642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645    break 2
4646  fi
4647done
4648done
4649
4650  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4651  ;;
4652esac
4653fi
4654CP=$ac_cv_path_CP
4655
4656if test -n "$CP"; then
4657  echo "$as_me:$LINENO: result: $CP" >&5
4658echo "${ECHO_T}$CP" >&6
4659else
4660  echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662fi
4663
4664# Extract the first word of "date", so it can be a program name with args.
4665set dummy date; ac_word=$2
4666echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668if test "${ac_cv_path_DATE+set}" = set; then
4669  echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671  case $DATE in
4672  [\\/]* | ?:[\\/]*)
4673  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4674  ;;
4675  *)
4676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679  IFS=$as_save_IFS
4680  test -z "$as_dir" && as_dir=.
4681  for ac_exec_ext in '' $ac_executable_extensions; do
4682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685    break 2
4686  fi
4687done
4688done
4689
4690  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4691  ;;
4692esac
4693fi
4694DATE=$ac_cv_path_DATE
4695
4696if test -n "$DATE"; then
4697  echo "$as_me:$LINENO: result: $DATE" >&5
4698echo "${ECHO_T}$DATE" >&6
4699else
4700  echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6
4702fi
4703
4704# Extract the first word of "find", so it can be a program name with args.
4705set dummy find; ac_word=$2
4706echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708if test "${ac_cv_path_FIND+set}" = set; then
4709  echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711  case $FIND in
4712  [\\/]* | ?:[\\/]*)
4713  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4714  ;;
4715  *)
4716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719  IFS=$as_save_IFS
4720  test -z "$as_dir" && as_dir=.
4721  for ac_exec_ext in '' $ac_executable_extensions; do
4722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725    break 2
4726  fi
4727done
4728done
4729
4730  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4731  ;;
4732esac
4733fi
4734FIND=$ac_cv_path_FIND
4735
4736if test -n "$FIND"; then
4737  echo "$as_me:$LINENO: result: $FIND" >&5
4738echo "${ECHO_T}$FIND" >&6
4739else
4740  echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
4742fi
4743
4744# Extract the first word of "grep", so it can be a program name with args.
4745set dummy grep; ac_word=$2
4746echo "$as_me:$LINENO: checking for $ac_word" >&5
4747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4748if test "${ac_cv_path_GREP+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  case $GREP in
4752  [\\/]* | ?:[\\/]*)
4753  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4754  ;;
4755  *)
4756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761  for ac_exec_ext in '' $ac_executable_extensions; do
4762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765    break 2
4766  fi
4767done
4768done
4769
4770  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4771  ;;
4772esac
4773fi
4774GREP=$ac_cv_path_GREP
4775
4776if test -n "$GREP"; then
4777  echo "$as_me:$LINENO: result: $GREP" >&5
4778echo "${ECHO_T}$GREP" >&6
4779else
4780  echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6
4782fi
4783
4784# Extract the first word of "mkdir", so it can be a program name with args.
4785set dummy mkdir; ac_word=$2
4786echo "$as_me:$LINENO: checking for $ac_word" >&5
4787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788if test "${ac_cv_path_MKDIR+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  case $MKDIR in
4792  [\\/]* | ?:[\\/]*)
4793  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4794  ;;
4795  *)
4796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801  for ac_exec_ext in '' $ac_executable_extensions; do
4802  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805    break 2
4806  fi
4807done
4808done
4809
4810  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4811  ;;
4812esac
4813fi
4814MKDIR=$ac_cv_path_MKDIR
4815
4816if test -n "$MKDIR"; then
4817  echo "$as_me:$LINENO: result: $MKDIR" >&5
4818echo "${ECHO_T}$MKDIR" >&6
4819else
4820  echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6
4822fi
4823
4824# Extract the first word of "mv", so it can be a program name with args.
4825set dummy mv; ac_word=$2
4826echo "$as_me:$LINENO: checking for $ac_word" >&5
4827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4828if test "${ac_cv_path_MV+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  case $MV in
4832  [\\/]* | ?:[\\/]*)
4833  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4834  ;;
4835  *)
4836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841  for ac_exec_ext in '' $ac_executable_extensions; do
4842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848done
4849
4850  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4851  ;;
4852esac
4853fi
4854MV=$ac_cv_path_MV
4855
4856if test -n "$MV"; then
4857  echo "$as_me:$LINENO: result: $MV" >&5
4858echo "${ECHO_T}$MV" >&6
4859else
4860  echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862fi
4863
4864if test -n "$ac_tool_prefix"; then
4865  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4867echo "$as_me:$LINENO: checking for $ac_word" >&5
4868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869if test "${ac_cv_prog_RANLIB+set}" = set; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872  if test -n "$RANLIB"; then
4873  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878  IFS=$as_save_IFS
4879  test -z "$as_dir" && as_dir=.
4880  for ac_exec_ext in '' $ac_executable_extensions; do
4881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884    break 2
4885  fi
4886done
4887done
4888
4889fi
4890fi
4891RANLIB=$ac_cv_prog_RANLIB
4892if test -n "$RANLIB"; then
4893  echo "$as_me:$LINENO: result: $RANLIB" >&5
4894echo "${ECHO_T}$RANLIB" >&6
4895else
4896  echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898fi
4899
4900fi
4901if test -z "$ac_cv_prog_RANLIB"; then
4902  ac_ct_RANLIB=$RANLIB
4903  # Extract the first word of "ranlib", so it can be a program name with args.
4904set dummy ranlib; ac_word=$2
4905echo "$as_me:$LINENO: checking for $ac_word" >&5
4906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  if test -n "$ac_ct_RANLIB"; then
4911  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916  IFS=$as_save_IFS
4917  test -z "$as_dir" && as_dir=.
4918  for ac_exec_ext in '' $ac_executable_extensions; do
4919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920    ac_cv_prog_ac_ct_RANLIB="ranlib"
4921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922    break 2
4923  fi
4924done
4925done
4926
4927  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4928fi
4929fi
4930ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4931if test -n "$ac_ct_RANLIB"; then
4932  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4933echo "${ECHO_T}$ac_ct_RANLIB" >&6
4934else
4935  echo "$as_me:$LINENO: result: no" >&5
4936echo "${ECHO_T}no" >&6
4937fi
4938
4939  RANLIB=$ac_ct_RANLIB
4940else
4941  RANLIB="$ac_cv_prog_RANLIB"
4942fi
4943
4944# Extract the first word of "rm", so it can be a program name with args.
4945set dummy rm; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
4947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948if test "${ac_cv_path_RM+set}" = set; then
4949  echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951  case $RM in
4952  [\\/]* | ?:[\\/]*)
4953  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4954  ;;
4955  *)
4956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961  for ac_exec_ext in '' $ac_executable_extensions; do
4962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965    break 2
4966  fi
4967done
4968done
4969
4970  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4971  ;;
4972esac
4973fi
4974RM=$ac_cv_path_RM
4975
4976if test -n "$RM"; then
4977  echo "$as_me:$LINENO: result: $RM" >&5
4978echo "${ECHO_T}$RM" >&6
4979else
4980  echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
4982fi
4983
4984# Extract the first word of "sed", so it can be a program name with args.
4985set dummy sed; ac_word=$2
4986echo "$as_me:$LINENO: checking for $ac_word" >&5
4987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988if test "${ac_cv_path_SED+set}" = set; then
4989  echo $ECHO_N "(cached) $ECHO_C" >&6
4990else
4991  case $SED in
4992  [\\/]* | ?:[\\/]*)
4993  ac_cv_path_SED="$SED" # Let the user override the test with a path.
4994  ;;
4995  *)
4996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997for as_dir in $PATH
4998do
4999  IFS=$as_save_IFS
5000  test -z "$as_dir" && as_dir=.
5001  for ac_exec_ext in '' $ac_executable_extensions; do
5002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005    break 2
5006  fi
5007done
5008done
5009
5010  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5011  ;;
5012esac
5013fi
5014SED=$ac_cv_path_SED
5015
5016if test -n "$SED"; then
5017  echo "$as_me:$LINENO: result: $SED" >&5
5018echo "${ECHO_T}$SED" >&6
5019else
5020  echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022fi
5023
5024# Extract the first word of "tar", so it can be a program name with args.
5025set dummy tar; ac_word=$2
5026echo "$as_me:$LINENO: checking for $ac_word" >&5
5027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028if test "${ac_cv_path_TAR+set}" = set; then
5029  echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031  case $TAR in
5032  [\\/]* | ?:[\\/]*)
5033  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5034  ;;
5035  *)
5036  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039  IFS=$as_save_IFS
5040  test -z "$as_dir" && as_dir=.
5041  for ac_exec_ext in '' $ac_executable_extensions; do
5042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045    break 2
5046  fi
5047done
5048done
5049
5050  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5051  ;;
5052esac
5053fi
5054TAR=$ac_cv_path_TAR
5055
5056if test -n "$TAR"; then
5057  echo "$as_me:$LINENO: result: $TAR" >&5
5058echo "${ECHO_T}$TAR" >&6
5059else
5060  echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062fi
5063
5064
5065# Find a good install program.  We prefer a C program (faster),
5066# so one script is as good as another.  But avoid the broken or
5067# incompatible versions:
5068# SysV /etc/install, /usr/sbin/install
5069# SunOS /usr/etc/install
5070# IRIX /sbin/install
5071# AIX /bin/install
5072# AmigaOS /C/install, which installs bootblocks on floppy discs
5073# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5074# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5075# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5076# OS/2's system install, which has a completely different semantic
5077# ./install, which can be erroneously created by make from ./install.sh.
5078echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5079echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5080if test -z "$INSTALL"; then
5081if test "${ac_cv_path_install+set}" = set; then
5082  echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087  IFS=$as_save_IFS
5088  test -z "$as_dir" && as_dir=.
5089  # Account for people who put trailing slashes in PATH elements.
5090case $as_dir/ in
5091  ./ | .// | /cC/* | \
5092  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5093  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5094  /usr/ucb/* ) ;;
5095  *)
5096    # OSF1 and SCO ODT 3.0 have their own names for install.
5097    # Don't use installbsd from OSF since it installs stuff as root
5098    # by default.
5099    for ac_prog in ginstall scoinst install; do
5100      for ac_exec_ext in '' $ac_executable_extensions; do
5101	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5102	  if test $ac_prog = install &&
5103	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5104	    # AIX install.  It has an incompatible calling convention.
5105	    :
5106	  elif test $ac_prog = install &&
5107	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5108	    # program-specific install script used by HP pwplus--don't use.
5109	    :
5110	  else
5111	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5112	    break 3
5113	  fi
5114	fi
5115      done
5116    done
5117    ;;
5118esac
5119done
5120
5121
5122fi
5123  if test "${ac_cv_path_install+set}" = set; then
5124    INSTALL=$ac_cv_path_install
5125  else
5126    # As a last resort, use the slow shell script.  We don't cache a
5127    # path for INSTALL within a source directory, because that will
5128    # break other packages using the cache if that directory is
5129    # removed, or if the path is relative.
5130    INSTALL=$ac_install_sh
5131  fi
5132fi
5133echo "$as_me:$LINENO: result: $INSTALL" >&5
5134echo "${ECHO_T}$INSTALL" >&6
5135
5136# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5137# It thinks the first close brace ends the variable substitution.
5138test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5139
5140test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5141
5142test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5143
5144
5145# Extract the first word of "bzip2", so it can be a program name with args.
5146set dummy bzip2; ac_word=$2
5147echo "$as_me:$LINENO: checking for $ac_word" >&5
5148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149if test "${ac_cv_path_BZIP2+set}" = set; then
5150  echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152  case $BZIP2 in
5153  [\\/]* | ?:[\\/]*)
5154  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5155  ;;
5156  *)
5157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162  for ac_exec_ext in '' $ac_executable_extensions; do
5163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166    break 2
5167  fi
5168done
5169done
5170
5171  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5172  ;;
5173esac
5174fi
5175BZIP2=$ac_cv_path_BZIP2
5176
5177if test -n "$BZIP2"; then
5178  echo "$as_me:$LINENO: result: $BZIP2" >&5
5179echo "${ECHO_T}$BZIP2" >&6
5180else
5181  echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183fi
5184
5185# Extract the first word of "dot", so it can be a program name with args.
5186set dummy dot; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_path_DOT+set}" = set; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  case $DOT in
5193  [\\/]* | ?:[\\/]*)
5194  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5195  ;;
5196  *)
5197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202  for ac_exec_ext in '' $ac_executable_extensions; do
5203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206    break 2
5207  fi
5208done
5209done
5210
5211  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5212  ;;
5213esac
5214fi
5215DOT=$ac_cv_path_DOT
5216
5217if test -n "$DOT"; then
5218  echo "$as_me:$LINENO: result: $DOT" >&5
5219echo "${ECHO_T}$DOT" >&6
5220else
5221  echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223fi
5224
5225# Extract the first word of "doxygen", so it can be a program name with args.
5226set dummy doxygen; ac_word=$2
5227echo "$as_me:$LINENO: checking for $ac_word" >&5
5228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229if test "${ac_cv_path_DOXYGEN+set}" = set; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232  case $DOXYGEN in
5233  [\\/]* | ?:[\\/]*)
5234  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5235  ;;
5236  *)
5237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242  for ac_exec_ext in '' $ac_executable_extensions; do
5243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249done
5250
5251  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5252  ;;
5253esac
5254fi
5255DOXYGEN=$ac_cv_path_DOXYGEN
5256
5257if test -n "$DOXYGEN"; then
5258  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5259echo "${ECHO_T}$DOXYGEN" >&6
5260else
5261  echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
5265# Extract the first word of "etags", so it can be a program name with args.
5266set dummy etags; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_path_ETAGS+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  case $ETAGS in
5273  [\\/]* | ?:[\\/]*)
5274  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5275  ;;
5276  *)
5277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282  for ac_exec_ext in '' $ac_executable_extensions; do
5283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289done
5290
5291  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5292  ;;
5293esac
5294fi
5295ETAGS=$ac_cv_path_ETAGS
5296
5297if test -n "$ETAGS"; then
5298  echo "$as_me:$LINENO: result: $ETAGS" >&5
5299echo "${ECHO_T}$ETAGS" >&6
5300else
5301  echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
5304
5305# Extract the first word of "groff", so it can be a program name with args.
5306set dummy groff; ac_word=$2
5307echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309if test "${ac_cv_path_GROFF+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  case $GROFF in
5313  [\\/]* | ?:[\\/]*)
5314  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5315  ;;
5316  *)
5317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320  IFS=$as_save_IFS
5321  test -z "$as_dir" && as_dir=.
5322  for ac_exec_ext in '' $ac_executable_extensions; do
5323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326    break 2
5327  fi
5328done
5329done
5330
5331  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5332  ;;
5333esac
5334fi
5335GROFF=$ac_cv_path_GROFF
5336
5337if test -n "$GROFF"; then
5338  echo "$as_me:$LINENO: result: $GROFF" >&5
5339echo "${ECHO_T}$GROFF" >&6
5340else
5341  echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345# Extract the first word of "gzip", so it can be a program name with args.
5346set dummy gzip; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_path_GZIP+set}" = set; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  case $GZIP in
5353  [\\/]* | ?:[\\/]*)
5354  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5355  ;;
5356  *)
5357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362  for ac_exec_ext in '' $ac_executable_extensions; do
5363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369done
5370
5371  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5372  ;;
5373esac
5374fi
5375GZIP=$ac_cv_path_GZIP
5376
5377if test -n "$GZIP"; then
5378  echo "$as_me:$LINENO: result: $GZIP" >&5
5379echo "${ECHO_T}$GZIP" >&6
5380else
5381  echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6
5383fi
5384
5385# Extract the first word of "pod2html", so it can be a program name with args.
5386set dummy pod2html; ac_word=$2
5387echo "$as_me:$LINENO: checking for $ac_word" >&5
5388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389if test "${ac_cv_path_POD2HTML+set}" = set; then
5390  echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392  case $POD2HTML in
5393  [\\/]* | ?:[\\/]*)
5394  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5395  ;;
5396  *)
5397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402  for ac_exec_ext in '' $ac_executable_extensions; do
5403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409done
5410
5411  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5412  ;;
5413esac
5414fi
5415POD2HTML=$ac_cv_path_POD2HTML
5416
5417if test -n "$POD2HTML"; then
5418  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5419echo "${ECHO_T}$POD2HTML" >&6
5420else
5421  echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425# Extract the first word of "pod2man", so it can be a program name with args.
5426set dummy pod2man; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_path_POD2MAN+set}" = set; then
5430  echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432  case $POD2MAN in
5433  [\\/]* | ?:[\\/]*)
5434  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5435  ;;
5436  *)
5437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440  IFS=$as_save_IFS
5441  test -z "$as_dir" && as_dir=.
5442  for ac_exec_ext in '' $ac_executable_extensions; do
5443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446    break 2
5447  fi
5448done
5449done
5450
5451  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5452  ;;
5453esac
5454fi
5455POD2MAN=$ac_cv_path_POD2MAN
5456
5457if test -n "$POD2MAN"; then
5458  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5459echo "${ECHO_T}$POD2MAN" >&6
5460else
5461  echo "$as_me:$LINENO: result: no" >&5
5462echo "${ECHO_T}no" >&6
5463fi
5464
5465# Extract the first word of "runtest", so it can be a program name with args.
5466set dummy runtest; ac_word=$2
5467echo "$as_me:$LINENO: checking for $ac_word" >&5
5468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469if test "${ac_cv_path_RUNTEST+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  case $RUNTEST in
5473  [\\/]* | ?:[\\/]*)
5474  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5475  ;;
5476  *)
5477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489done
5490
5491  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5492  ;;
5493esac
5494fi
5495RUNTEST=$ac_cv_path_RUNTEST
5496
5497if test -n "$RUNTEST"; then
5498  echo "$as_me:$LINENO: result: $RUNTEST" >&5
5499echo "${ECHO_T}$RUNTEST" >&6
5500else
5501  echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6
5503fi
5504
5505
5506no_itcl=true
5507echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5508echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5509
5510# Check whether --with-tclinclude or --without-tclinclude was given.
5511if test "${with_tclinclude+set}" = set; then
5512  withval="$with_tclinclude"
5513  with_tclinclude=${withval}
5514else
5515  with_tclinclude=''
5516fi;
5517if test "${ac_cv_path_tclsh+set}" = set; then
5518  echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520
5521if test x"${with_tclinclude}" != x ; then
5522  if test -f ${with_tclinclude}/tclsh ; then
5523    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5524  elif test -f ${with_tclinclude}/src/tclsh ; then
5525    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5526  else
5527    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5528echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5529   { (exit 1); exit 1; }; }
5530  fi
5531fi
5532
5533if test x"${ac_cv_path_tclsh}" = x ; then
5534  echo "$as_me:$LINENO: result: none" >&5
5535echo "${ECHO_T}none" >&6
5536  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
5537do
5538  # Extract the first word of "$ac_prog", so it can be a program name with args.
5539set dummy $ac_prog; ac_word=$2
5540echo "$as_me:$LINENO: checking for $ac_word" >&5
5541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5542if test "${ac_cv_path_TCLSH+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  case $TCLSH in
5546  [\\/]* | ?:[\\/]*)
5547  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5548  ;;
5549  *)
5550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553  IFS=$as_save_IFS
5554  test -z "$as_dir" && as_dir=.
5555  for ac_exec_ext in '' $ac_executable_extensions; do
5556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559    break 2
5560  fi
5561done
5562done
5563
5564  ;;
5565esac
5566fi
5567TCLSH=$ac_cv_path_TCLSH
5568
5569if test -n "$TCLSH"; then
5570  echo "$as_me:$LINENO: result: $TCLSH" >&5
5571echo "${ECHO_T}$TCLSH" >&6
5572else
5573  echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575fi
5576
5577  test -n "$TCLSH" && break
5578done
5579
5580  if test x"${TCLSH}" = x ; then
5581    ac_cv_path_tclsh='';
5582  else
5583    ac_cv_path_tclsh="${TCLSH}";
5584  fi
5585else
5586  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5587echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5588  TCLSH="${ac_cv_path_tclsh}"
5589
5590fi
5591
5592fi
5593
5594# Extract the first word of "zip", so it can be a program name with args.
5595set dummy zip; ac_word=$2
5596echo "$as_me:$LINENO: checking for $ac_word" >&5
5597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598if test "${ac_cv_path_ZIP+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  case $ZIP in
5602  [\\/]* | ?:[\\/]*)
5603  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5604  ;;
5605  *)
5606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609  IFS=$as_save_IFS
5610  test -z "$as_dir" && as_dir=.
5611  for ac_exec_ext in '' $ac_executable_extensions; do
5612  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615    break 2
5616  fi
5617done
5618done
5619
5620  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5621  ;;
5622esac
5623fi
5624ZIP=$ac_cv_path_ZIP
5625
5626if test -n "$ZIP"; then
5627  echo "$as_me:$LINENO: result: $ZIP" >&5
5628echo "${ECHO_T}$ZIP" >&6
5629else
5630  echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
5632fi
5633
5634
5635echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5636echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5637if test "${llvm_cv_link_use_r+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640   ac_ext=c
5641ac_cpp='$CPP $CPPFLAGS'
5642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645
5646  oldcflags="$CFLAGS"
5647  CFLAGS="$CFLAGS -Wl,-R."
5648  cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h.  */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h.  */
5654
5655int
5656main ()
5657{
5658int main() { return 0; }
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663rm -f conftest.$ac_objext conftest$ac_exeext
5664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665  (eval $ac_link) 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } &&
5672	 { ac_try='test -z "$ac_c_werror_flag"
5673			 || test ! -s conftest.err'
5674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675  (eval $ac_try) 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; } &&
5679	 { ac_try='test -s conftest$ac_exeext'
5680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681  (eval $ac_try) 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }; }; then
5685  llvm_cv_link_use_r=yes
5686else
5687  echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690llvm_cv_link_use_r=no
5691fi
5692rm -f conftest.err conftest.$ac_objext \
5693      conftest$ac_exeext conftest.$ac_ext
5694  CFLAGS="$oldcflags"
5695  ac_ext=c
5696ac_cpp='$CPP $CPPFLAGS'
5697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
5701
5702fi
5703echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5704echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5705if test "$llvm_cv_link_use_r" = yes ; then
5706
5707cat >>confdefs.h <<\_ACEOF
5708#define HAVE_LINK_R 1
5709_ACEOF
5710
5711  fi
5712
5713
5714
5715
5716echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5717echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5718if test "${ac_cv_c_const+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  cat >conftest.$ac_ext <<_ACEOF
5722/* confdefs.h.  */
5723_ACEOF
5724cat confdefs.h >>conftest.$ac_ext
5725cat >>conftest.$ac_ext <<_ACEOF
5726/* end confdefs.h.  */
5727
5728int
5729main ()
5730{
5731/* FIXME: Include the comments suggested by Paul. */
5732#ifndef __cplusplus
5733  /* Ultrix mips cc rejects this.  */
5734  typedef int charset[2];
5735  const charset x;
5736  /* SunOS 4.1.1 cc rejects this.  */
5737  char const *const *ccp;
5738  char **p;
5739  /* NEC SVR4.0.2 mips cc rejects this.  */
5740  struct point {int x, y;};
5741  static struct point const zero = {0,0};
5742  /* AIX XL C 1.02.0.0 rejects this.
5743     It does not let you subtract one const X* pointer from another in
5744     an arm of an if-expression whose if-part is not a constant
5745     expression */
5746  const char *g = "string";
5747  ccp = &g + (g ? g-g : 0);
5748  /* HPUX 7.0 cc rejects these. */
5749  ++ccp;
5750  p = (char**) ccp;
5751  ccp = (char const *const *) p;
5752  { /* SCO 3.2v4 cc rejects this.  */
5753    char *t;
5754    char const *s = 0 ? (char *) 0 : (char const *) 0;
5755
5756    *t++ = 0;
5757  }
5758  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5759    int x[] = {25, 17};
5760    const int *foo = &x[0];
5761    ++foo;
5762  }
5763  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5764    typedef const int *iptr;
5765    iptr p = 0;
5766    ++p;
5767  }
5768  { /* AIX XL C 1.02.0.0 rejects this saying
5769       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5770    struct s { int j; const int *ap[3]; };
5771    struct s *b; b->j = 5;
5772  }
5773  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5774    const int foo = 10;
5775  }
5776#endif
5777
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784  (eval $ac_compile) 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); } &&
5791	 { ac_try='test -z "$ac_c_werror_flag"
5792			 || test ! -s conftest.err'
5793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794  (eval $ac_try) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }; } &&
5798	 { ac_try='test -s conftest.$ac_objext'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; }; then
5804  ac_cv_c_const=yes
5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_cv_c_const=no
5810fi
5811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5814echo "${ECHO_T}$ac_cv_c_const" >&6
5815if test $ac_cv_c_const = no; then
5816
5817cat >>confdefs.h <<\_ACEOF
5818#define const
5819_ACEOF
5820
5821fi
5822
5823
5824echo "$as_me:$LINENO: checking for egrep" >&5
5825echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5826if test "${ac_cv_prog_egrep+set}" = set; then
5827  echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5830    then ac_cv_prog_egrep='grep -E'
5831    else ac_cv_prog_egrep='egrep'
5832    fi
5833fi
5834echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5835echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5836 EGREP=$ac_cv_prog_egrep
5837
5838
5839echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5840echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5841if test "${ac_cv_header_stdc+set}" = set; then
5842  echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844  cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h.  */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h.  */
5850#include <stdlib.h>
5851#include <stdarg.h>
5852#include <string.h>
5853#include <float.h>
5854
5855int
5856main ()
5857{
5858
5859  ;
5860  return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865  (eval $ac_compile) 2>conftest.er1
5866  ac_status=$?
5867  grep -v '^ *+' conftest.er1 >conftest.err
5868  rm -f conftest.er1
5869  cat conftest.err >&5
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); } &&
5872	 { ac_try='test -z "$ac_c_werror_flag"
5873			 || test ! -s conftest.err'
5874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875  (eval $ac_try) 2>&5
5876  ac_status=$?
5877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); }; } &&
5879	 { ac_try='test -s conftest.$ac_objext'
5880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881  (eval $ac_try) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); }; }; then
5885  ac_cv_header_stdc=yes
5886else
5887  echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890ac_cv_header_stdc=no
5891fi
5892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893
5894if test $ac_cv_header_stdc = yes; then
5895  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5896  cat >conftest.$ac_ext <<_ACEOF
5897/* confdefs.h.  */
5898_ACEOF
5899cat confdefs.h >>conftest.$ac_ext
5900cat >>conftest.$ac_ext <<_ACEOF
5901/* end confdefs.h.  */
5902#include <string.h>
5903
5904_ACEOF
5905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5906  $EGREP "memchr" >/dev/null 2>&1; then
5907  :
5908else
5909  ac_cv_header_stdc=no
5910fi
5911rm -f conftest*
5912
5913fi
5914
5915if test $ac_cv_header_stdc = yes; then
5916  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5917  cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923#include <stdlib.h>
5924
5925_ACEOF
5926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927  $EGREP "free" >/dev/null 2>&1; then
5928  :
5929else
5930  ac_cv_header_stdc=no
5931fi
5932rm -f conftest*
5933
5934fi
5935
5936if test $ac_cv_header_stdc = yes; then
5937  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5938  if test "$cross_compiling" = yes; then
5939  :
5940else
5941  cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h.  */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h.  */
5947#include <ctype.h>
5948#if ((' ' & 0x0FF) == 0x020)
5949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951#else
5952# define ISLOWER(c) \
5953		   (('a' <= (c) && (c) <= 'i') \
5954		     || ('j' <= (c) && (c) <= 'r') \
5955		     || ('s' <= (c) && (c) <= 'z'))
5956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5957#endif
5958
5959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5960int
5961main ()
5962{
5963  int i;
5964  for (i = 0; i < 256; i++)
5965    if (XOR (islower (i), ISLOWER (i))
5966	|| toupper (i) != TOUPPER (i))
5967      exit(2);
5968  exit (0);
5969}
5970_ACEOF
5971rm -f conftest$ac_exeext
5972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973  (eval $ac_link) 2>&5
5974  ac_status=$?
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978  (eval $ac_try) 2>&5
5979  ac_status=$?
5980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981  (exit $ac_status); }; }; then
5982  :
5983else
5984  echo "$as_me: program exited with status $ac_status" >&5
5985echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988( exit $ac_status )
5989ac_cv_header_stdc=no
5990fi
5991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5992fi
5993fi
5994fi
5995echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5996echo "${ECHO_T}$ac_cv_header_stdc" >&6
5997if test $ac_cv_header_stdc = yes; then
5998
5999cat >>confdefs.h <<\_ACEOF
6000#define STDC_HEADERS 1
6001_ACEOF
6002
6003fi
6004
6005
6006
6007
6008
6009
6010ac_header_dirent=no
6011for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6012  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6013echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6014echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6015if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#include <sys/types.h>
6025#include <$ac_hdr>
6026
6027int
6028main ()
6029{
6030if ((DIR *) 0)
6031return 0;
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext
6037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038  (eval $ac_compile) 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } &&
6045	 { ac_try='test -z "$ac_c_werror_flag"
6046			 || test ! -s conftest.err'
6047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048  (eval $ac_try) 2>&5
6049  ac_status=$?
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); }; } &&
6052	 { ac_try='test -s conftest.$ac_objext'
6053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054  (eval $ac_try) 2>&5
6055  ac_status=$?
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); }; }; then
6058  eval "$as_ac_Header=yes"
6059else
6060  echo "$as_me: failed program was:" >&5
6061sed 's/^/| /' conftest.$ac_ext >&5
6062
6063eval "$as_ac_Header=no"
6064fi
6065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6066fi
6067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6069if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070  cat >>confdefs.h <<_ACEOF
6071#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6072_ACEOF
6073
6074ac_header_dirent=$ac_hdr; break
6075fi
6076
6077done
6078# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6079if test $ac_header_dirent = dirent.h; then
6080  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6081echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6082if test "${ac_cv_search_opendir+set}" = set; then
6083  echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085  ac_func_search_save_LIBS=$LIBS
6086ac_cv_search_opendir=no
6087cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h.  */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h.  */
6093
6094/* Override any gcc2 internal prototype to avoid an error.  */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098/* We use char because int might match the return type of a gcc2
6099   builtin and then its argument prototype would still apply.  */
6100char opendir ();
6101int
6102main ()
6103{
6104opendir ();
6105  ;
6106  return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext conftest$ac_exeext
6110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111  (eval $ac_link) 2>conftest.er1
6112  ac_status=$?
6113  grep -v '^ *+' conftest.er1 >conftest.err
6114  rm -f conftest.er1
6115  cat conftest.err >&5
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); } &&
6118	 { ac_try='test -z "$ac_c_werror_flag"
6119			 || test ! -s conftest.err'
6120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121  (eval $ac_try) 2>&5
6122  ac_status=$?
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); }; } &&
6125	 { ac_try='test -s conftest$ac_exeext'
6126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127  (eval $ac_try) 2>&5
6128  ac_status=$?
6129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130  (exit $ac_status); }; }; then
6131  ac_cv_search_opendir="none required"
6132else
6133  echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136fi
6137rm -f conftest.err conftest.$ac_objext \
6138      conftest$ac_exeext conftest.$ac_ext
6139if test "$ac_cv_search_opendir" = no; then
6140  for ac_lib in dir; do
6141    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6142    cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h.  */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h.  */
6148
6149/* Override any gcc2 internal prototype to avoid an error.  */
6150#ifdef __cplusplus
6151extern "C"
6152#endif
6153/* We use char because int might match the return type of a gcc2
6154   builtin and then its argument prototype would still apply.  */
6155char opendir ();
6156int
6157main ()
6158{
6159opendir ();
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164rm -f conftest.$ac_objext conftest$ac_exeext
6165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166  (eval $ac_link) 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } &&
6173	 { ac_try='test -z "$ac_c_werror_flag"
6174			 || test ! -s conftest.err'
6175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176  (eval $ac_try) 2>&5
6177  ac_status=$?
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); }; } &&
6180	 { ac_try='test -s conftest$ac_exeext'
6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182  (eval $ac_try) 2>&5
6183  ac_status=$?
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }; }; then
6186  ac_cv_search_opendir="-l$ac_lib"
6187break
6188else
6189  echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192fi
6193rm -f conftest.err conftest.$ac_objext \
6194      conftest$ac_exeext conftest.$ac_ext
6195  done
6196fi
6197LIBS=$ac_func_search_save_LIBS
6198fi
6199echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6200echo "${ECHO_T}$ac_cv_search_opendir" >&6
6201if test "$ac_cv_search_opendir" != no; then
6202  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6203
6204fi
6205
6206else
6207  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6208echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6209if test "${ac_cv_search_opendir+set}" = set; then
6210  echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212  ac_func_search_save_LIBS=$LIBS
6213ac_cv_search_opendir=no
6214cat >conftest.$ac_ext <<_ACEOF
6215/* confdefs.h.  */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h.  */
6220
6221/* Override any gcc2 internal prototype to avoid an error.  */
6222#ifdef __cplusplus
6223extern "C"
6224#endif
6225/* We use char because int might match the return type of a gcc2
6226   builtin and then its argument prototype would still apply.  */
6227char opendir ();
6228int
6229main ()
6230{
6231opendir ();
6232  ;
6233  return 0;
6234}
6235_ACEOF
6236rm -f conftest.$ac_objext conftest$ac_exeext
6237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238  (eval $ac_link) 2>conftest.er1
6239  ac_status=$?
6240  grep -v '^ *+' conftest.er1 >conftest.err
6241  rm -f conftest.er1
6242  cat conftest.err >&5
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); } &&
6245	 { ac_try='test -z "$ac_c_werror_flag"
6246			 || test ! -s conftest.err'
6247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248  (eval $ac_try) 2>&5
6249  ac_status=$?
6250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251  (exit $ac_status); }; } &&
6252	 { ac_try='test -s conftest$ac_exeext'
6253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254  (eval $ac_try) 2>&5
6255  ac_status=$?
6256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257  (exit $ac_status); }; }; then
6258  ac_cv_search_opendir="none required"
6259else
6260  echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263fi
6264rm -f conftest.err conftest.$ac_objext \
6265      conftest$ac_exeext conftest.$ac_ext
6266if test "$ac_cv_search_opendir" = no; then
6267  for ac_lib in x; do
6268    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6269    cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h.  */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h.  */
6275
6276/* Override any gcc2 internal prototype to avoid an error.  */
6277#ifdef __cplusplus
6278extern "C"
6279#endif
6280/* We use char because int might match the return type of a gcc2
6281   builtin and then its argument prototype would still apply.  */
6282char opendir ();
6283int
6284main ()
6285{
6286opendir ();
6287  ;
6288  return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext conftest$ac_exeext
6292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293  (eval $ac_link) 2>conftest.er1
6294  ac_status=$?
6295  grep -v '^ *+' conftest.er1 >conftest.err
6296  rm -f conftest.er1
6297  cat conftest.err >&5
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); } &&
6300	 { ac_try='test -z "$ac_c_werror_flag"
6301			 || test ! -s conftest.err'
6302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303  (eval $ac_try) 2>&5
6304  ac_status=$?
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); }; } &&
6307	 { ac_try='test -s conftest$ac_exeext'
6308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309  (eval $ac_try) 2>&5
6310  ac_status=$?
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); }; }; then
6313  ac_cv_search_opendir="-l$ac_lib"
6314break
6315else
6316  echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
6319fi
6320rm -f conftest.err conftest.$ac_objext \
6321      conftest$ac_exeext conftest.$ac_ext
6322  done
6323fi
6324LIBS=$ac_func_search_save_LIBS
6325fi
6326echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6327echo "${ECHO_T}$ac_cv_search_opendir" >&6
6328if test "$ac_cv_search_opendir" != no; then
6329  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6330
6331fi
6332
6333fi
6334
6335# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6346		  inttypes.h stdint.h unistd.h
6347do
6348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349echo "$as_me:$LINENO: checking for $ac_header" >&5
6350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6351if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354  cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h.  */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h.  */
6360$ac_includes_default
6361
6362#include <$ac_header>
6363_ACEOF
6364rm -f conftest.$ac_objext
6365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366  (eval $ac_compile) 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } &&
6373	 { ac_try='test -z "$ac_c_werror_flag"
6374			 || test ! -s conftest.err'
6375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376  (eval $ac_try) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); }; } &&
6380	 { ac_try='test -s conftest.$ac_objext'
6381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382  (eval $ac_try) 2>&5
6383  ac_status=$?
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); }; }; then
6386  eval "$as_ac_Header=yes"
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391eval "$as_ac_Header=no"
6392fi
6393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394fi
6395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6397if test `eval echo '${'$as_ac_Header'}'` = yes; then
6398  cat >>confdefs.h <<_ACEOF
6399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400_ACEOF
6401
6402fi
6403
6404done
6405
6406
6407
6408for ac_header in dlfcn.h
6409do
6410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412  echo "$as_me:$LINENO: checking for $ac_header" >&5
6413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415  echo $ECHO_N "(cached) $ECHO_C" >&6
6416fi
6417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419else
6420  # Is the header compilable?
6421echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429$ac_includes_default
6430#include <$ac_header>
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434  (eval $ac_compile) 2>conftest.er1
6435  ac_status=$?
6436  grep -v '^ *+' conftest.er1 >conftest.err
6437  rm -f conftest.er1
6438  cat conftest.err >&5
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); } &&
6441	 { ac_try='test -z "$ac_c_werror_flag"
6442			 || test ! -s conftest.err'
6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444  (eval $ac_try) 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }; } &&
6448	 { ac_try='test -s conftest.$ac_objext'
6449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450  (eval $ac_try) 2>&5
6451  ac_status=$?
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); }; }; then
6454  ac_header_compiler=yes
6455else
6456  echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
6459ac_header_compiler=no
6460fi
6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463echo "${ECHO_T}$ac_header_compiler" >&6
6464
6465# Is the header present?
6466echo "$as_me:$LINENO: checking $ac_header presence" >&5
6467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6468cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h.  */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h.  */
6474#include <$ac_header>
6475_ACEOF
6476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } >/dev/null; then
6484  if test -s conftest.err; then
6485    ac_cpp_err=$ac_c_preproc_warn_flag
6486    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487  else
6488    ac_cpp_err=
6489  fi
6490else
6491  ac_cpp_err=yes
6492fi
6493if test -z "$ac_cpp_err"; then
6494  ac_header_preproc=yes
6495else
6496  echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499  ac_header_preproc=no
6500fi
6501rm -f conftest.err conftest.$ac_ext
6502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6503echo "${ECHO_T}$ac_header_preproc" >&6
6504
6505# So?  What about this header?
6506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507  yes:no: )
6508    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6512    ac_header_preproc=yes
6513    ;;
6514  no:yes:* )
6515    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6518echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6519    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6521    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6522echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6527    (
6528      cat <<\_ASBOX
6529## ----------------------------------- ##
6530## Report this to llvmbugs@cs.uiuc.edu ##
6531## ----------------------------------- ##
6532_ASBOX
6533    ) |
6534      sed "s/^/$as_me: WARNING:     /" >&2
6535    ;;
6536esac
6537echo "$as_me:$LINENO: checking for $ac_header" >&5
6538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540  echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542  eval "$as_ac_Header=\$ac_header_preproc"
6543fi
6544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546
6547fi
6548if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549  cat >>confdefs.h <<_ACEOF
6550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551_ACEOF
6552
6553fi
6554
6555done
6556
6557# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6558if test "${enable_ltdl_install+set}" = set; then
6559  enableval="$enable_ltdl_install"
6560
6561fi;
6562
6563
6564
6565if test x"${enable_ltdl_install-no}" != xno; then
6566  INSTALL_LTDL_TRUE=
6567  INSTALL_LTDL_FALSE='#'
6568else
6569  INSTALL_LTDL_TRUE='#'
6570  INSTALL_LTDL_FALSE=
6571fi
6572
6573
6574
6575if test x"${enable_ltdl_convenience-no}" != xno; then
6576  CONVENIENCE_LTDL_TRUE=
6577  CONVENIENCE_LTDL_FALSE='#'
6578else
6579  CONVENIENCE_LTDL_TRUE='#'
6580  CONVENIENCE_LTDL_FALSE=
6581fi
6582
6583
6584echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6585echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6586library_names_spec=
6587libname_spec='lib$name'
6588soname_spec=
6589shrext_cmds=".so"
6590postinstall_cmds=
6591postuninstall_cmds=
6592finish_cmds=
6593finish_eval=
6594shlibpath_var=
6595shlibpath_overrides_runpath=unknown
6596version_type=none
6597dynamic_linker="$host_os ld.so"
6598sys_lib_dlsearch_path_spec="/lib /usr/lib"
6599if test "$GCC" = yes; then
6600  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6601  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6602    # if the path contains ";" then we assume it to be the separator
6603    # otherwise default to the standard path separator (i.e. ":") - it is
6604    # assumed that no part of a normal pathname contains ";" but that should
6605    # okay in the real world where ";" in dirpaths is itself problematic.
6606    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6607  else
6608    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6609  fi
6610else
6611  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6612fi
6613need_lib_prefix=unknown
6614hardcode_into_libs=no
6615
6616# when you set need_version to no, make sure it does not cause -set_version
6617# flags to be left without arguments
6618need_version=unknown
6619
6620case $host_os in
6621aix3*)
6622  version_type=linux
6623  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6624  shlibpath_var=LIBPATH
6625
6626  # AIX 3 has no versioning support, so we append a major version to the name.
6627  soname_spec='${libname}${release}${shared_ext}$major'
6628  ;;
6629
6630aix4* | aix5*)
6631  version_type=linux
6632  need_lib_prefix=no
6633  need_version=no
6634  hardcode_into_libs=yes
6635  if test "$host_cpu" = ia64; then
6636    # AIX 5 supports IA64
6637    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6638    shlibpath_var=LD_LIBRARY_PATH
6639  else
6640    # With GCC up to 2.95.x, collect2 would create an import file
6641    # for dependence libraries.  The import file would start with
6642    # the line `#! .'.  This would cause the generated library to
6643    # depend on `.', always an invalid library.  This was fixed in
6644    # development snapshots of GCC prior to 3.0.
6645    case $host_os in
6646      aix4 | aix4.[01] | aix4.[01].*)
6647      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6648	   echo ' yes '
6649	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6650	:
6651      else
6652	can_build_shared=no
6653      fi
6654      ;;
6655    esac
6656    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6657    # soname into executable. Probably we can add versioning support to
6658    # collect2, so additional links can be useful in future.
6659    if test "$aix_use_runtimelinking" = yes; then
6660      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6661      # instead of lib<name>.a to let people know that these are not
6662      # typical AIX shared libraries.
6663      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6664    else
6665      # We preserve .a as extension for shared libraries through AIX4.2
6666      # and later when we are not doing run time linking.
6667      library_names_spec='${libname}${release}.a $libname.a'
6668      soname_spec='${libname}${release}${shared_ext}$major'
6669    fi
6670    shlibpath_var=LIBPATH
6671  fi
6672  ;;
6673
6674amigaos*)
6675  library_names_spec='$libname.ixlibrary $libname.a'
6676  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6677  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'
6678  ;;
6679
6680beos*)
6681  library_names_spec='${libname}${shared_ext}'
6682  dynamic_linker="$host_os ld.so"
6683  shlibpath_var=LIBRARY_PATH
6684  ;;
6685
6686bsdi[45]*)
6687  version_type=linux
6688  need_version=no
6689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6690  soname_spec='${libname}${release}${shared_ext}$major'
6691  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6692  shlibpath_var=LD_LIBRARY_PATH
6693  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6694  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6695  # the default ld.so.conf also contains /usr/contrib/lib and
6696  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6697  # libtool to hard-code these into programs
6698  ;;
6699
6700cygwin* | mingw* | pw32*)
6701  version_type=windows
6702  shrext_cmds=".dll"
6703  need_version=no
6704  need_lib_prefix=no
6705
6706  case $GCC,$host_os in
6707  yes,cygwin* | yes,mingw* | yes,pw32*)
6708    library_names_spec='$libname.dll.a'
6709    # DLL is installed to $(libdir)/../bin by postinstall_cmds
6710    postinstall_cmds='base_file=`basename \${file}`~
6711      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6712      dldir=$destdir/`dirname \$dlpath`~
6713      test -d \$dldir || mkdir -p \$dldir~
6714      $install_prog $dir/$dlname \$dldir/$dlname'
6715    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6716      dlpath=$dir/\$dldll~
6717       $rm \$dlpath'
6718    shlibpath_overrides_runpath=yes
6719
6720    case $host_os in
6721    cygwin*)
6722      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6723      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6724      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6725      ;;
6726    mingw*)
6727      # MinGW DLLs use traditional 'lib' prefix
6728      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6729      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6730      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6731        # It is most probably a Windows format PATH printed by
6732        # mingw gcc, but we are running on Cygwin. Gcc prints its search
6733        # path with ; separators, and with drive letters. We can handle the
6734        # drive letters (cygwin fileutils understands them), so leave them,
6735        # especially as we might pass files found there to a mingw objdump,
6736        # which wouldn't understand a cygwinified path. Ahh.
6737        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6738      else
6739        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6740      fi
6741      ;;
6742    pw32*)
6743      # pw32 DLLs use 'pw' prefix rather than 'lib'
6744      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6745      ;;
6746    esac
6747    ;;
6748
6749  *)
6750    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6751    ;;
6752  esac
6753  dynamic_linker='Win32 ld.exe'
6754  # FIXME: first we should search . and the directory the executable is in
6755  shlibpath_var=PATH
6756  ;;
6757
6758darwin* | rhapsody*)
6759  dynamic_linker="$host_os dyld"
6760  version_type=darwin
6761  need_lib_prefix=no
6762  need_version=no
6763  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6764  soname_spec='${libname}${release}${major}$shared_ext'
6765  shlibpath_overrides_runpath=yes
6766  shlibpath_var=DYLD_LIBRARY_PATH
6767  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6768  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6769  if test "$GCC" = yes; then
6770    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"`
6771  else
6772    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6773  fi
6774  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6775  ;;
6776
6777dgux*)
6778  version_type=linux
6779  need_lib_prefix=no
6780  need_version=no
6781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6782  soname_spec='${libname}${release}${shared_ext}$major'
6783  shlibpath_var=LD_LIBRARY_PATH
6784  ;;
6785
6786freebsd1*)
6787  dynamic_linker=no
6788  ;;
6789
6790kfreebsd*-gnu)
6791  version_type=linux
6792  need_lib_prefix=no
6793  need_version=no
6794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6795  soname_spec='${libname}${release}${shared_ext}$major'
6796  shlibpath_var=LD_LIBRARY_PATH
6797  shlibpath_overrides_runpath=no
6798  hardcode_into_libs=yes
6799  dynamic_linker='GNU ld.so'
6800  ;;
6801
6802freebsd*)
6803  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6804  version_type=freebsd-$objformat
6805  case $version_type in
6806    freebsd-elf*)
6807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6808      need_version=no
6809      need_lib_prefix=no
6810      ;;
6811    freebsd-*)
6812      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6813      need_version=yes
6814      ;;
6815  esac
6816  shlibpath_var=LD_LIBRARY_PATH
6817  case $host_os in
6818  freebsd2*)
6819    shlibpath_overrides_runpath=yes
6820    ;;
6821  freebsd3.01* | freebsdelf3.01*)
6822    shlibpath_overrides_runpath=yes
6823    hardcode_into_libs=yes
6824    ;;
6825  *) # from 3.2 on
6826    shlibpath_overrides_runpath=no
6827    hardcode_into_libs=yes
6828    ;;
6829  esac
6830  ;;
6831
6832gnu*)
6833  version_type=linux
6834  need_lib_prefix=no
6835  need_version=no
6836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6837  soname_spec='${libname}${release}${shared_ext}$major'
6838  shlibpath_var=LD_LIBRARY_PATH
6839  hardcode_into_libs=yes
6840  ;;
6841
6842hpux9* | hpux10* | hpux11*)
6843  # Give a soname corresponding to the major version so that dld.sl refuses to
6844  # link against other versions.
6845  version_type=sunos
6846  need_lib_prefix=no
6847  need_version=no
6848  case "$host_cpu" in
6849  ia64*)
6850    shrext_cmds='.so'
6851    hardcode_into_libs=yes
6852    dynamic_linker="$host_os dld.so"
6853    shlibpath_var=LD_LIBRARY_PATH
6854    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6856    soname_spec='${libname}${release}${shared_ext}$major'
6857    if test "X$HPUX_IA64_MODE" = X32; then
6858      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6859    else
6860      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6861    fi
6862    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6863    ;;
6864   hppa*64*)
6865     shrext_cmds='.sl'
6866     hardcode_into_libs=yes
6867     dynamic_linker="$host_os dld.sl"
6868     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6871     soname_spec='${libname}${release}${shared_ext}$major'
6872     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6874     ;;
6875   *)
6876    shrext_cmds='.sl'
6877    dynamic_linker="$host_os dld.sl"
6878    shlibpath_var=SHLIB_PATH
6879    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6881    soname_spec='${libname}${release}${shared_ext}$major'
6882    ;;
6883  esac
6884  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6885  postinstall_cmds='chmod 555 $lib'
6886  ;;
6887
6888irix5* | irix6* | nonstopux*)
6889  case $host_os in
6890    nonstopux*) version_type=nonstopux ;;
6891    *)
6892	if test "$lt_cv_prog_gnu_ld" = yes; then
6893		version_type=linux
6894	else
6895		version_type=irix
6896	fi ;;
6897  esac
6898  need_lib_prefix=no
6899  need_version=no
6900  soname_spec='${libname}${release}${shared_ext}$major'
6901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6902  case $host_os in
6903  irix5* | nonstopux*)
6904    libsuff= shlibsuff=
6905    ;;
6906  *)
6907    case $LD in # libtool.m4 will add one of these switches to LD
6908    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6909      libsuff= shlibsuff= libmagic=32-bit;;
6910    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6911      libsuff=32 shlibsuff=N32 libmagic=N32;;
6912    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6913      libsuff=64 shlibsuff=64 libmagic=64-bit;;
6914    *) libsuff= shlibsuff= libmagic=never-match;;
6915    esac
6916    ;;
6917  esac
6918  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6919  shlibpath_overrides_runpath=no
6920  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6921  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6922  hardcode_into_libs=yes
6923  ;;
6924
6925# No shared lib support for Linux oldld, aout, or coff.
6926linux*oldld* | linux*aout* | linux*coff*)
6927  dynamic_linker=no
6928  ;;
6929
6930# This must be Linux ELF.
6931linux*)
6932  version_type=linux
6933  need_lib_prefix=no
6934  need_version=no
6935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6936  soname_spec='${libname}${release}${shared_ext}$major'
6937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6938  shlibpath_var=LD_LIBRARY_PATH
6939  shlibpath_overrides_runpath=no
6940  # This implies no fast_install, which is unacceptable.
6941  # Some rework will be needed to allow for fast_install
6942  # before this can be enabled.
6943  hardcode_into_libs=yes
6944
6945  # Append ld.so.conf contents to the search path
6946  if test -f /etc/ld.so.conf; then
6947    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6948    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6949  fi
6950
6951  # We used to test for /lib/ld.so.1 and disable shared libraries on
6952  # powerpc, because MkLinux only supported shared libraries with the
6953  # GNU dynamic linker.  Since this was broken with cross compilers,
6954  # most powerpc-linux boxes support dynamic linking these days and
6955  # people can always --disable-shared, the test was removed, and we
6956  # assume the GNU/Linux dynamic linker is in use.
6957  dynamic_linker='GNU/Linux ld.so'
6958  ;;
6959
6960knetbsd*-gnu)
6961  version_type=linux
6962  need_lib_prefix=no
6963  need_version=no
6964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6965  soname_spec='${libname}${release}${shared_ext}$major'
6966  shlibpath_var=LD_LIBRARY_PATH
6967  shlibpath_overrides_runpath=no
6968  hardcode_into_libs=yes
6969  dynamic_linker='GNU ld.so'
6970  ;;
6971
6972netbsd*)
6973  version_type=sunos
6974  need_lib_prefix=no
6975  need_version=no
6976  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6978    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6979    dynamic_linker='NetBSD (a.out) ld.so'
6980  else
6981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6982    soname_spec='${libname}${release}${shared_ext}$major'
6983    dynamic_linker='NetBSD ld.elf_so'
6984  fi
6985  shlibpath_var=LD_LIBRARY_PATH
6986  shlibpath_overrides_runpath=yes
6987  hardcode_into_libs=yes
6988  ;;
6989
6990newsos6)
6991  version_type=linux
6992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6993  shlibpath_var=LD_LIBRARY_PATH
6994  shlibpath_overrides_runpath=yes
6995  ;;
6996
6997nto-qnx*)
6998  version_type=linux
6999  need_lib_prefix=no
7000  need_version=no
7001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7002  soname_spec='${libname}${release}${shared_ext}$major'
7003  shlibpath_var=LD_LIBRARY_PATH
7004  shlibpath_overrides_runpath=yes
7005  ;;
7006
7007openbsd*)
7008  version_type=sunos
7009  need_lib_prefix=no
7010  need_version=no
7011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7012  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7013  shlibpath_var=LD_LIBRARY_PATH
7014  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7015    case $host_os in
7016      openbsd2.[89] | openbsd2.[89].*)
7017	shlibpath_overrides_runpath=no
7018	;;
7019      *)
7020	shlibpath_overrides_runpath=yes
7021	;;
7022      esac
7023  else
7024    shlibpath_overrides_runpath=yes
7025  fi
7026  ;;
7027
7028os2*)
7029  libname_spec='$name'
7030  shrext_cmds=".dll"
7031  need_lib_prefix=no
7032  library_names_spec='$libname${shared_ext} $libname.a'
7033  dynamic_linker='OS/2 ld.exe'
7034  shlibpath_var=LIBPATH
7035  ;;
7036
7037osf3* | osf4* | osf5*)
7038  version_type=osf
7039  need_lib_prefix=no
7040  need_version=no
7041  soname_spec='${libname}${release}${shared_ext}$major'
7042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7043  shlibpath_var=LD_LIBRARY_PATH
7044  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7045  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7046  ;;
7047
7048sco3.2v5*)
7049  version_type=osf
7050  soname_spec='${libname}${release}${shared_ext}$major'
7051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7052  shlibpath_var=LD_LIBRARY_PATH
7053  ;;
7054
7055solaris*)
7056  version_type=linux
7057  need_lib_prefix=no
7058  need_version=no
7059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7060  soname_spec='${libname}${release}${shared_ext}$major'
7061  shlibpath_var=LD_LIBRARY_PATH
7062  shlibpath_overrides_runpath=yes
7063  hardcode_into_libs=yes
7064  # ldd complains unless libraries are executable
7065  postinstall_cmds='chmod +x $lib'
7066  ;;
7067
7068sunos4*)
7069  version_type=sunos
7070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7071  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7072  shlibpath_var=LD_LIBRARY_PATH
7073  shlibpath_overrides_runpath=yes
7074  if test "$with_gnu_ld" = yes; then
7075    need_lib_prefix=no
7076  fi
7077  need_version=yes
7078  ;;
7079
7080sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7081  version_type=linux
7082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7083  soname_spec='${libname}${release}${shared_ext}$major'
7084  shlibpath_var=LD_LIBRARY_PATH
7085  case $host_vendor in
7086    sni)
7087      shlibpath_overrides_runpath=no
7088      need_lib_prefix=no
7089      export_dynamic_flag_spec='${wl}-Blargedynsym'
7090      runpath_var=LD_RUN_PATH
7091      ;;
7092    siemens)
7093      need_lib_prefix=no
7094      ;;
7095    motorola)
7096      need_lib_prefix=no
7097      need_version=no
7098      shlibpath_overrides_runpath=no
7099      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7100      ;;
7101  esac
7102  ;;
7103
7104sysv4*MP*)
7105  if test -d /usr/nec ;then
7106    version_type=linux
7107    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7108    soname_spec='$libname${shared_ext}.$major'
7109    shlibpath_var=LD_LIBRARY_PATH
7110  fi
7111  ;;
7112
7113uts4*)
7114  version_type=linux
7115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7116  soname_spec='${libname}${release}${shared_ext}$major'
7117  shlibpath_var=LD_LIBRARY_PATH
7118  ;;
7119
7120*)
7121  dynamic_linker=no
7122  ;;
7123esac
7124echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7125echo "${ECHO_T}$dynamic_linker" >&6
7126test "$dynamic_linker" = no && can_build_shared=no
7127
7128
7129echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7130echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7131if test "${libltdl_cv_shlibext+set}" = set; then
7132  echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134
7135module=yes
7136eval libltdl_cv_shlibext=$shrext_cmds
7137
7138fi
7139echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7140echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7141if test -n "$libltdl_cv_shlibext"; then
7142
7143cat >>confdefs.h <<_ACEOF
7144#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7145_ACEOF
7146
7147fi
7148
7149
7150echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7151echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7152if test "${libltdl_cv_shlibpath_var+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  libltdl_cv_shlibpath_var="$shlibpath_var"
7156fi
7157echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7158echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7159if test -n "$libltdl_cv_shlibpath_var"; then
7160
7161cat >>confdefs.h <<_ACEOF
7162#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7163_ACEOF
7164
7165fi
7166
7167
7168echo "$as_me:$LINENO: checking for the default library search path" >&5
7169echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7170if test "${libltdl_cv_sys_search_path+set}" = set; then
7171  echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7174fi
7175echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7176echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7177if test -n "$libltdl_cv_sys_search_path"; then
7178  sys_search_path=
7179  for dir in $libltdl_cv_sys_search_path; do
7180    if test -z "$sys_search_path"; then
7181      sys_search_path="$dir"
7182    else
7183      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7184    fi
7185  done
7186
7187cat >>confdefs.h <<_ACEOF
7188#define LTDL_SYSSEARCHPATH "$sys_search_path"
7189_ACEOF
7190
7191fi
7192
7193echo "$as_me:$LINENO: checking for objdir" >&5
7194echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7195if test "${libltdl_cv_objdir+set}" = set; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  libltdl_cv_objdir="$objdir"
7199  if test -n "$objdir"; then
7200    :
7201  else
7202    rm -f .libs 2>/dev/null
7203    mkdir .libs 2>/dev/null
7204    if test -d .libs; then
7205      libltdl_cv_objdir=.libs
7206    else
7207      # MS-DOS does not allow filenames that begin with a dot.
7208      libltdl_cv_objdir=_libs
7209    fi
7210  rmdir .libs 2>/dev/null
7211  fi
7212
7213fi
7214echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7215echo "${ECHO_T}$libltdl_cv_objdir" >&6
7216
7217cat >>confdefs.h <<_ACEOF
7218#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7219_ACEOF
7220
7221
7222echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7223echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7224if test "${lt_cv_path_NM+set}" = set; then
7225  echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227  if test -n "$NM"; then
7228  # Let the user override the test.
7229  lt_cv_path_NM="$NM"
7230else
7231  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7232  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7233    IFS="$lt_save_ifs"
7234    test -z "$ac_dir" && ac_dir=.
7235    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7236    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7237      # Check to see if the nm accepts a BSD-compat flag.
7238      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7239      #   nm: unknown option "B" ignored
7240      # Tru64's nm complains that /dev/null is an invalid object file
7241      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7242      */dev/null* | *'Invalid file or object type'*)
7243	lt_cv_path_NM="$tmp_nm -B"
7244	break
7245        ;;
7246      *)
7247	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7248	*/dev/null*)
7249	  lt_cv_path_NM="$tmp_nm -p"
7250	  break
7251	  ;;
7252	*)
7253	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7254	  continue # so that we can try to find one that supports BSD flags
7255	  ;;
7256	esac
7257      esac
7258    fi
7259  done
7260  IFS="$lt_save_ifs"
7261  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7262fi
7263fi
7264echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7265echo "${ECHO_T}$lt_cv_path_NM" >&6
7266NM="$lt_cv_path_NM"
7267
7268
7269
7270
7271
7272# Check for command to grab the raw symbol name followed by C symbol from nm.
7273echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7274echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7275if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7276  echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278
7279# These are sane defaults that work on at least a few old systems.
7280# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7281
7282# Character class describing NM global symbol codes.
7283symcode='[BCDEGRST]'
7284
7285# Regexp to match symbols that can be accessed directly from C.
7286sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7287
7288# Transform the above into a raw symbol and a C symbol.
7289symxfrm='\1 \2\3 \3'
7290
7291# Transform an extracted symbol line into a proper C declaration
7292lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7293
7294# Transform an extracted symbol line into symbol name and symbol address
7295lt_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'"
7296
7297# Define system-specific variables.
7298case $host_os in
7299aix*)
7300  symcode='[BCDT]'
7301  ;;
7302cygwin* | mingw* | pw32*)
7303  symcode='[ABCDGISTW]'
7304  ;;
7305hpux*) # Its linker distinguishes data from code symbols
7306  if test "$host_cpu" = ia64; then
7307    symcode='[ABCDEGRST]'
7308  fi
7309  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7310  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'"
7311  ;;
7312linux*)
7313  if test "$host_cpu" = ia64; then
7314    symcode='[ABCDGIRSTW]'
7315    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7316    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'"
7317  fi
7318  ;;
7319irix* | nonstopux*)
7320  symcode='[BCDEGRST]'
7321  ;;
7322osf*)
7323  symcode='[BCDEGQRST]'
7324  ;;
7325solaris* | sysv5*)
7326  symcode='[BDRT]'
7327  ;;
7328sysv4)
7329  symcode='[DFNSTU]'
7330  ;;
7331esac
7332
7333# Handle CRLF in mingw tool chain
7334opt_cr=
7335case $build_os in
7336mingw*)
7337  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7338  ;;
7339esac
7340
7341# If we're using GNU nm, then use its standard symbol codes.
7342case `$NM -V 2>&1` in
7343*GNU* | *'with BFD'*)
7344  symcode='[ABCDGIRSTW]' ;;
7345esac
7346
7347# Try without a prefix undercore, then with it.
7348for ac_symprfx in "" "_"; do
7349
7350  # Write the raw and C identifiers.
7351  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7352
7353  # Check to see that the pipe works correctly.
7354  pipe_works=no
7355
7356  rm -f conftest*
7357  cat > conftest.$ac_ext <<EOF
7358#ifdef __cplusplus
7359extern "C" {
7360#endif
7361char nm_test_var;
7362void nm_test_func(){}
7363#ifdef __cplusplus
7364}
7365#endif
7366int main(){nm_test_var='a';nm_test_func();return(0);}
7367EOF
7368
7369  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370  (eval $ac_compile) 2>&5
7371  ac_status=$?
7372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373  (exit $ac_status); }; then
7374    # Now try to grab the symbols.
7375    nlist=conftest.nm
7376    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7377  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7378  ac_status=$?
7379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380  (exit $ac_status); } && test -s "$nlist"; then
7381      # Try sorting and uniquifying the output.
7382      if sort "$nlist" | uniq > "$nlist"T; then
7383	mv -f "$nlist"T "$nlist"
7384      else
7385	rm -f "$nlist"T
7386      fi
7387
7388      # Make sure that we snagged all the symbols we need.
7389      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7390	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7391	  cat <<EOF > conftest.$ac_ext
7392#ifdef __cplusplus
7393extern "C" {
7394#endif
7395
7396EOF
7397	  # Now generate the symbol file.
7398	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7399
7400	  cat <<EOF >> conftest.$ac_ext
7401#if defined (__STDC__) && __STDC__
7402# define lt_ptr_t void *
7403#else
7404# define lt_ptr_t char *
7405# define const
7406#endif
7407
7408/* The mapping between symbol names and symbols. */
7409const struct {
7410  const char *name;
7411  lt_ptr_t address;
7412}
7413lt_preloaded_symbols[] =
7414{
7415EOF
7416	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7417	  cat <<\EOF >> conftest.$ac_ext
7418  {0, (lt_ptr_t) 0}
7419};
7420
7421#ifdef __cplusplus
7422}
7423#endif
7424EOF
7425	  # Now try linking the two files.
7426	  mv conftest.$ac_objext conftstm.$ac_objext
7427	  lt_save_LIBS="$LIBS"
7428	  lt_save_CFLAGS="$CFLAGS"
7429	  LIBS="conftstm.$ac_objext"
7430	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7431	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432  (eval $ac_link) 2>&5
7433  ac_status=$?
7434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7436	    pipe_works=yes
7437	  fi
7438	  LIBS="$lt_save_LIBS"
7439	  CFLAGS="$lt_save_CFLAGS"
7440	else
7441	  echo "cannot find nm_test_func in $nlist" >&5
7442	fi
7443      else
7444	echo "cannot find nm_test_var in $nlist" >&5
7445      fi
7446    else
7447      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7448    fi
7449  else
7450    echo "$progname: failed program was:" >&5
7451    cat conftest.$ac_ext >&5
7452  fi
7453  rm -f conftest* conftst*
7454
7455  # Do not use the global_symbol_pipe unless it works.
7456  if test "$pipe_works" = yes; then
7457    break
7458  else
7459    lt_cv_sys_global_symbol_pipe=
7460  fi
7461done
7462
7463fi
7464
7465if test -z "$lt_cv_sys_global_symbol_pipe"; then
7466  lt_cv_sys_global_symbol_to_cdecl=
7467fi
7468if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7469  echo "$as_me:$LINENO: result: failed" >&5
7470echo "${ECHO_T}failed" >&6
7471else
7472  echo "$as_me:$LINENO: result: ok" >&5
7473echo "${ECHO_T}ok" >&6
7474fi
7475
7476
7477echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7478echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7479if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7480  echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7483    libltdl_cv_preloaded_symbols=yes
7484  else
7485    libltdl_cv_preloaded_symbols=no
7486  fi
7487
7488fi
7489echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7490echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7491if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7492
7493cat >>confdefs.h <<\_ACEOF
7494#define HAVE_PRELOADED_SYMBOLS 1
7495_ACEOF
7496
7497fi
7498
7499LIBADD_DL=
7500
7501ac_ext=c
7502ac_cpp='$CPP $CPPFLAGS'
7503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507
7508echo "$as_me:$LINENO: checking for shl_load" >&5
7509echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7510if test "${ac_cv_func_shl_load+set}" = set; then
7511  echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513  cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h.  */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h.  */
7519/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7521#define shl_load innocuous_shl_load
7522
7523/* System header to define __stub macros and hopefully few prototypes,
7524    which can conflict with char shl_load (); below.
7525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7526    <limits.h> exists even on freestanding compilers.  */
7527
7528#ifdef __STDC__
7529# include <limits.h>
7530#else
7531# include <assert.h>
7532#endif
7533
7534#undef shl_load
7535
7536/* Override any gcc2 internal prototype to avoid an error.  */
7537#ifdef __cplusplus
7538extern "C"
7539{
7540#endif
7541/* We use char because int might match the return type of a gcc2
7542   builtin and then its argument prototype would still apply.  */
7543char shl_load ();
7544/* The GNU C library defines this for functions which it implements
7545    to always fail with ENOSYS.  Some functions are actually named
7546    something starting with __ and the normal name is an alias.  */
7547#if defined (__stub_shl_load) || defined (__stub___shl_load)
7548choke me
7549#else
7550char (*f) () = shl_load;
7551#endif
7552#ifdef __cplusplus
7553}
7554#endif
7555
7556int
7557main ()
7558{
7559return f != shl_load;
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564rm -f conftest.$ac_objext conftest$ac_exeext
7565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566  (eval $ac_link) 2>conftest.er1
7567  ac_status=$?
7568  grep -v '^ *+' conftest.er1 >conftest.err
7569  rm -f conftest.er1
7570  cat conftest.err >&5
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); } &&
7573	 { ac_try='test -z "$ac_c_werror_flag"
7574			 || test ! -s conftest.err'
7575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576  (eval $ac_try) 2>&5
7577  ac_status=$?
7578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579  (exit $ac_status); }; } &&
7580	 { ac_try='test -s conftest$ac_exeext'
7581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582  (eval $ac_try) 2>&5
7583  ac_status=$?
7584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585  (exit $ac_status); }; }; then
7586  ac_cv_func_shl_load=yes
7587else
7588  echo "$as_me: failed program was:" >&5
7589sed 's/^/| /' conftest.$ac_ext >&5
7590
7591ac_cv_func_shl_load=no
7592fi
7593rm -f conftest.err conftest.$ac_objext \
7594      conftest$ac_exeext conftest.$ac_ext
7595fi
7596echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7597echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7598if test $ac_cv_func_shl_load = yes; then
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define HAVE_SHL_LOAD 1
7602_ACEOF
7603
7604else
7605  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7606echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7607if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7608  echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610  ac_check_lib_save_LIBS=$LIBS
7611LIBS="-ldld  $LIBS"
7612cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h.  */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h.  */
7618
7619/* Override any gcc2 internal prototype to avoid an error.  */
7620#ifdef __cplusplus
7621extern "C"
7622#endif
7623/* We use char because int might match the return type of a gcc2
7624   builtin and then its argument prototype would still apply.  */
7625char shl_load ();
7626int
7627main ()
7628{
7629shl_load ();
7630  ;
7631  return 0;
7632}
7633_ACEOF
7634rm -f conftest.$ac_objext conftest$ac_exeext
7635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636  (eval $ac_link) 2>conftest.er1
7637  ac_status=$?
7638  grep -v '^ *+' conftest.er1 >conftest.err
7639  rm -f conftest.er1
7640  cat conftest.err >&5
7641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642  (exit $ac_status); } &&
7643	 { ac_try='test -z "$ac_c_werror_flag"
7644			 || test ! -s conftest.err'
7645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646  (eval $ac_try) 2>&5
7647  ac_status=$?
7648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649  (exit $ac_status); }; } &&
7650	 { ac_try='test -s conftest$ac_exeext'
7651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652  (eval $ac_try) 2>&5
7653  ac_status=$?
7654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655  (exit $ac_status); }; }; then
7656  ac_cv_lib_dld_shl_load=yes
7657else
7658  echo "$as_me: failed program was:" >&5
7659sed 's/^/| /' conftest.$ac_ext >&5
7660
7661ac_cv_lib_dld_shl_load=no
7662fi
7663rm -f conftest.err conftest.$ac_objext \
7664      conftest$ac_exeext conftest.$ac_ext
7665LIBS=$ac_check_lib_save_LIBS
7666fi
7667echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7668echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7669if test $ac_cv_lib_dld_shl_load = yes; then
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define HAVE_SHL_LOAD 1
7673_ACEOF
7674
7675	LIBADD_DL="$LIBADD_DL -ldld"
7676else
7677  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7678echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7679if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7680  echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682  ac_check_lib_save_LIBS=$LIBS
7683LIBS="-ldl  $LIBS"
7684cat >conftest.$ac_ext <<_ACEOF
7685/* confdefs.h.  */
7686_ACEOF
7687cat confdefs.h >>conftest.$ac_ext
7688cat >>conftest.$ac_ext <<_ACEOF
7689/* end confdefs.h.  */
7690
7691/* Override any gcc2 internal prototype to avoid an error.  */
7692#ifdef __cplusplus
7693extern "C"
7694#endif
7695/* We use char because int might match the return type of a gcc2
7696   builtin and then its argument prototype would still apply.  */
7697char dlopen ();
7698int
7699main ()
7700{
7701dlopen ();
7702  ;
7703  return 0;
7704}
7705_ACEOF
7706rm -f conftest.$ac_objext conftest$ac_exeext
7707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708  (eval $ac_link) 2>conftest.er1
7709  ac_status=$?
7710  grep -v '^ *+' conftest.er1 >conftest.err
7711  rm -f conftest.er1
7712  cat conftest.err >&5
7713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714  (exit $ac_status); } &&
7715	 { ac_try='test -z "$ac_c_werror_flag"
7716			 || test ! -s conftest.err'
7717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718  (eval $ac_try) 2>&5
7719  ac_status=$?
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); }; } &&
7722	 { ac_try='test -s conftest$ac_exeext'
7723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724  (eval $ac_try) 2>&5
7725  ac_status=$?
7726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727  (exit $ac_status); }; }; then
7728  ac_cv_lib_dl_dlopen=yes
7729else
7730  echo "$as_me: failed program was:" >&5
7731sed 's/^/| /' conftest.$ac_ext >&5
7732
7733ac_cv_lib_dl_dlopen=no
7734fi
7735rm -f conftest.err conftest.$ac_objext \
7736      conftest$ac_exeext conftest.$ac_ext
7737LIBS=$ac_check_lib_save_LIBS
7738fi
7739echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7740echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7741if test $ac_cv_lib_dl_dlopen = yes; then
7742
7743cat >>confdefs.h <<\_ACEOF
7744#define HAVE_LIBDL 1
7745_ACEOF
7746
7747	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7748else
7749  cat >conftest.$ac_ext <<_ACEOF
7750/* confdefs.h.  */
7751_ACEOF
7752cat confdefs.h >>conftest.$ac_ext
7753cat >>conftest.$ac_ext <<_ACEOF
7754/* end confdefs.h.  */
7755#if HAVE_DLFCN_H
7756#  include <dlfcn.h>
7757#endif
7758
7759int
7760main ()
7761{
7762dlopen(0, 0);
7763  ;
7764  return 0;
7765}
7766_ACEOF
7767rm -f conftest.$ac_objext conftest$ac_exeext
7768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769  (eval $ac_link) 2>conftest.er1
7770  ac_status=$?
7771  grep -v '^ *+' conftest.er1 >conftest.err
7772  rm -f conftest.er1
7773  cat conftest.err >&5
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); } &&
7776	 { ac_try='test -z "$ac_c_werror_flag"
7777			 || test ! -s conftest.err'
7778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779  (eval $ac_try) 2>&5
7780  ac_status=$?
7781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782  (exit $ac_status); }; } &&
7783	 { ac_try='test -s conftest$ac_exeext'
7784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785  (eval $ac_try) 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }; }; then
7789
7790cat >>confdefs.h <<\_ACEOF
7791#define HAVE_LIBDL 1
7792_ACEOF
7793 libltdl_cv_func_dlopen="yes"
7794else
7795  echo "$as_me: failed program was:" >&5
7796sed 's/^/| /' conftest.$ac_ext >&5
7797
7798echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7799echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7800if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7801  echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803  ac_check_lib_save_LIBS=$LIBS
7804LIBS="-lsvld  $LIBS"
7805cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h.  */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h.  */
7811
7812/* Override any gcc2 internal prototype to avoid an error.  */
7813#ifdef __cplusplus
7814extern "C"
7815#endif
7816/* We use char because int might match the return type of a gcc2
7817   builtin and then its argument prototype would still apply.  */
7818char dlopen ();
7819int
7820main ()
7821{
7822dlopen ();
7823  ;
7824  return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext conftest$ac_exeext
7828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829  (eval $ac_link) 2>conftest.er1
7830  ac_status=$?
7831  grep -v '^ *+' conftest.er1 >conftest.err
7832  rm -f conftest.er1
7833  cat conftest.err >&5
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); } &&
7836	 { ac_try='test -z "$ac_c_werror_flag"
7837			 || test ! -s conftest.err'
7838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839  (eval $ac_try) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); }; } &&
7843	 { ac_try='test -s conftest$ac_exeext'
7844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845  (eval $ac_try) 2>&5
7846  ac_status=$?
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); }; }; then
7849  ac_cv_lib_svld_dlopen=yes
7850else
7851  echo "$as_me: failed program was:" >&5
7852sed 's/^/| /' conftest.$ac_ext >&5
7853
7854ac_cv_lib_svld_dlopen=no
7855fi
7856rm -f conftest.err conftest.$ac_objext \
7857      conftest$ac_exeext conftest.$ac_ext
7858LIBS=$ac_check_lib_save_LIBS
7859fi
7860echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7861echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7862if test $ac_cv_lib_svld_dlopen = yes; then
7863
7864cat >>confdefs.h <<\_ACEOF
7865#define HAVE_LIBDL 1
7866_ACEOF
7867
7868	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7869else
7870  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7871echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7872if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7873  echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875  ac_check_lib_save_LIBS=$LIBS
7876LIBS="-ldld  $LIBS"
7877cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h.  */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h.  */
7883
7884/* Override any gcc2 internal prototype to avoid an error.  */
7885#ifdef __cplusplus
7886extern "C"
7887#endif
7888/* We use char because int might match the return type of a gcc2
7889   builtin and then its argument prototype would still apply.  */
7890char dld_link ();
7891int
7892main ()
7893{
7894dld_link ();
7895  ;
7896  return 0;
7897}
7898_ACEOF
7899rm -f conftest.$ac_objext conftest$ac_exeext
7900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901  (eval $ac_link) 2>conftest.er1
7902  ac_status=$?
7903  grep -v '^ *+' conftest.er1 >conftest.err
7904  rm -f conftest.er1
7905  cat conftest.err >&5
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); } &&
7908	 { ac_try='test -z "$ac_c_werror_flag"
7909			 || test ! -s conftest.err'
7910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911  (eval $ac_try) 2>&5
7912  ac_status=$?
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); }; } &&
7915	 { ac_try='test -s conftest$ac_exeext'
7916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917  (eval $ac_try) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }; }; then
7921  ac_cv_lib_dld_dld_link=yes
7922else
7923  echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
7926ac_cv_lib_dld_dld_link=no
7927fi
7928rm -f conftest.err conftest.$ac_objext \
7929      conftest$ac_exeext conftest.$ac_ext
7930LIBS=$ac_check_lib_save_LIBS
7931fi
7932echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7933echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7934if test $ac_cv_lib_dld_dld_link = yes; then
7935
7936cat >>confdefs.h <<\_ACEOF
7937#define HAVE_DLD 1
7938_ACEOF
7939
7940	 	LIBADD_DL="$LIBADD_DL -ldld"
7941else
7942  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7943echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7944if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947  cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h.  */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h.  */
7953/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7954   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7955#define _dyld_func_lookup innocuous__dyld_func_lookup
7956
7957/* System header to define __stub macros and hopefully few prototypes,
7958    which can conflict with char _dyld_func_lookup (); below.
7959    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960    <limits.h> exists even on freestanding compilers.  */
7961
7962#ifdef __STDC__
7963# include <limits.h>
7964#else
7965# include <assert.h>
7966#endif
7967
7968#undef _dyld_func_lookup
7969
7970/* Override any gcc2 internal prototype to avoid an error.  */
7971#ifdef __cplusplus
7972extern "C"
7973{
7974#endif
7975/* We use char because int might match the return type of a gcc2
7976   builtin and then its argument prototype would still apply.  */
7977char _dyld_func_lookup ();
7978/* The GNU C library defines this for functions which it implements
7979    to always fail with ENOSYS.  Some functions are actually named
7980    something starting with __ and the normal name is an alias.  */
7981#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7982choke me
7983#else
7984char (*f) () = _dyld_func_lookup;
7985#endif
7986#ifdef __cplusplus
7987}
7988#endif
7989
7990int
7991main ()
7992{
7993return f != _dyld_func_lookup;
7994  ;
7995  return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext conftest$ac_exeext
7999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000  (eval $ac_link) 2>conftest.er1
8001  ac_status=$?
8002  grep -v '^ *+' conftest.er1 >conftest.err
8003  rm -f conftest.er1
8004  cat conftest.err >&5
8005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006  (exit $ac_status); } &&
8007	 { ac_try='test -z "$ac_c_werror_flag"
8008			 || test ! -s conftest.err'
8009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010  (eval $ac_try) 2>&5
8011  ac_status=$?
8012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013  (exit $ac_status); }; } &&
8014	 { ac_try='test -s conftest$ac_exeext'
8015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016  (eval $ac_try) 2>&5
8017  ac_status=$?
8018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019  (exit $ac_status); }; }; then
8020  ac_cv_func__dyld_func_lookup=yes
8021else
8022  echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025ac_cv_func__dyld_func_lookup=no
8026fi
8027rm -f conftest.err conftest.$ac_objext \
8028      conftest$ac_exeext conftest.$ac_ext
8029fi
8030echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8031echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8032if test $ac_cv_func__dyld_func_lookup = yes; then
8033
8034cat >>confdefs.h <<\_ACEOF
8035#define HAVE_DYLD 1
8036_ACEOF
8037
8038fi
8039
8040
8041fi
8042
8043
8044fi
8045
8046
8047fi
8048rm -f conftest.err conftest.$ac_objext \
8049      conftest$ac_exeext conftest.$ac_ext
8050
8051fi
8052
8053
8054fi
8055
8056
8057fi
8058
8059
8060if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8061then
8062  lt_save_LIBS="$LIBS"
8063  LIBS="$LIBS $LIBADD_DL"
8064
8065for ac_func in dlerror
8066do
8067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8068echo "$as_me:$LINENO: checking for $ac_func" >&5
8069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8070if eval "test \"\${$as_ac_var+set}\" = set"; then
8071  echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073  cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h.  */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h.  */
8079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8081#define $ac_func innocuous_$ac_func
8082
8083/* System header to define __stub macros and hopefully few prototypes,
8084    which can conflict with char $ac_func (); below.
8085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086    <limits.h> exists even on freestanding compilers.  */
8087
8088#ifdef __STDC__
8089# include <limits.h>
8090#else
8091# include <assert.h>
8092#endif
8093
8094#undef $ac_func
8095
8096/* Override any gcc2 internal prototype to avoid an error.  */
8097#ifdef __cplusplus
8098extern "C"
8099{
8100#endif
8101/* We use char because int might match the return type of a gcc2
8102   builtin and then its argument prototype would still apply.  */
8103char $ac_func ();
8104/* The GNU C library defines this for functions which it implements
8105    to always fail with ENOSYS.  Some functions are actually named
8106    something starting with __ and the normal name is an alias.  */
8107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108choke me
8109#else
8110char (*f) () = $ac_func;
8111#endif
8112#ifdef __cplusplus
8113}
8114#endif
8115
8116int
8117main ()
8118{
8119return f != $ac_func;
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext conftest$ac_exeext
8125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126  (eval $ac_link) 2>conftest.er1
8127  ac_status=$?
8128  grep -v '^ *+' conftest.er1 >conftest.err
8129  rm -f conftest.er1
8130  cat conftest.err >&5
8131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132  (exit $ac_status); } &&
8133	 { ac_try='test -z "$ac_c_werror_flag"
8134			 || test ! -s conftest.err'
8135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136  (eval $ac_try) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); }; } &&
8140	 { ac_try='test -s conftest$ac_exeext'
8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142  (eval $ac_try) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); }; }; then
8146  eval "$as_ac_var=yes"
8147else
8148  echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
8151eval "$as_ac_var=no"
8152fi
8153rm -f conftest.err conftest.$ac_objext \
8154      conftest$ac_exeext conftest.$ac_ext
8155fi
8156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8158if test `eval echo '${'$as_ac_var'}'` = yes; then
8159  cat >>confdefs.h <<_ACEOF
8160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8161_ACEOF
8162
8163fi
8164done
8165
8166  LIBS="$lt_save_LIBS"
8167fi
8168ac_ext=c
8169ac_cpp='$CPP $CPPFLAGS'
8170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173
8174
8175
8176echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8177echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8178if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8179  echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181  ac_cv_sys_symbol_underscore=no
8182  cat > conftest.$ac_ext <<EOF
8183void nm_test_func(){}
8184int main(){nm_test_func;return 0;}
8185EOF
8186  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187  (eval $ac_compile) 2>&5
8188  ac_status=$?
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); }; then
8191    # Now try to grab the symbols.
8192    ac_nlist=conftest.nm
8193    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8194  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8195  ac_status=$?
8196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197  (exit $ac_status); } && test -s "$ac_nlist"; then
8198      # See whether the symbols have a leading underscore.
8199      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8200        ac_cv_sys_symbol_underscore=yes
8201      else
8202        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8203	  :
8204        else
8205	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8206        fi
8207      fi
8208    else
8209      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8210    fi
8211  else
8212    echo "configure: failed program was:" >&5
8213    cat conftest.c >&5
8214  fi
8215  rm -rf conftest*
8216
8217fi
8218echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8219echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8220
8221
8222if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8223  if test x"$libltdl_cv_func_dlopen" = xyes ||
8224     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8225	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8226echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8227if test "${libltdl_cv_need_uscore+set}" = set; then
8228  echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230  libltdl_cv_need_uscore=unknown
8231          save_LIBS="$LIBS"
8232          LIBS="$LIBS $LIBADD_DL"
8233	  if test "$cross_compiling" = yes; then :
8234  libltdl_cv_need_uscore=cross
8235else
8236  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8237  lt_status=$lt_dlunknown
8238  cat > conftest.$ac_ext <<EOF
8239#line 8239 "configure"
8240#include "confdefs.h"
8241
8242#if HAVE_DLFCN_H
8243#include <dlfcn.h>
8244#endif
8245
8246#include <stdio.h>
8247
8248#ifdef RTLD_GLOBAL
8249#  define LT_DLGLOBAL		RTLD_GLOBAL
8250#else
8251#  ifdef DL_GLOBAL
8252#    define LT_DLGLOBAL		DL_GLOBAL
8253#  else
8254#    define LT_DLGLOBAL		0
8255#  endif
8256#endif
8257
8258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8259   find out it does not work in some platform. */
8260#ifndef LT_DLLAZY_OR_NOW
8261#  ifdef RTLD_LAZY
8262#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8263#  else
8264#    ifdef DL_LAZY
8265#      define LT_DLLAZY_OR_NOW		DL_LAZY
8266#    else
8267#      ifdef RTLD_NOW
8268#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8269#      else
8270#        ifdef DL_NOW
8271#          define LT_DLLAZY_OR_NOW	DL_NOW
8272#        else
8273#          define LT_DLLAZY_OR_NOW	0
8274#        endif
8275#      endif
8276#    endif
8277#  endif
8278#endif
8279
8280#ifdef __cplusplus
8281extern "C" void exit (int);
8282#endif
8283
8284void fnord() { int i=42;}
8285int main ()
8286{
8287  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8288  int status = $lt_dlunknown;
8289
8290  if (self)
8291    {
8292      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8293      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8294      /* dlclose (self); */
8295    }
8296
8297    exit (status);
8298}
8299EOF
8300  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8301  (eval $ac_link) 2>&5
8302  ac_status=$?
8303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8305    (./conftest; exit; ) 2>/dev/null
8306    lt_status=$?
8307    case x$lt_status in
8308      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8309      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8310      x$lt_unknown|x*)  ;;
8311    esac
8312  else :
8313    # compilation failed
8314
8315  fi
8316fi
8317rm -fr conftest*
8318
8319	  LIBS="$save_LIBS"
8320
8321fi
8322echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8323echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8324  fi
8325fi
8326
8327if test x"$libltdl_cv_need_uscore" = xyes; then
8328
8329cat >>confdefs.h <<\_ACEOF
8330#define NEED_USCORE 1
8331_ACEOF
8332
8333fi
8334
8335
8336echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8337echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8338if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8339  echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341  # PORTME does your system automatically load deplibs for dlopen?
8342  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8343  # For now, we just catch OSes we know something about -- in the
8344  # future, we'll try test this programmatically.
8345  libltdl_cv_sys_dlopen_deplibs=unknown
8346  case "$host_os" in
8347  aix3*|aix4.1.*|aix4.2.*)
8348    # Unknown whether this is true for these versions of AIX, but
8349    # we want this `case' here to explicitly catch those versions.
8350    libltdl_cv_sys_dlopen_deplibs=unknown
8351    ;;
8352  aix[45]*)
8353    libltdl_cv_sys_dlopen_deplibs=yes
8354    ;;
8355  darwin*)
8356    # Assuming the user has installed a libdl from somewhere, this is true
8357    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8358    libltdl_cv_sys_dlopen_deplibs=yes
8359    ;;
8360  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8361    # GNU and its variants, using gnu ld.so (Glibc)
8362    libltdl_cv_sys_dlopen_deplibs=yes
8363    ;;
8364  hpux10*|hpux11*)
8365    libltdl_cv_sys_dlopen_deplibs=yes
8366    ;;
8367  irix[12345]*|irix6.[01]*)
8368    # Catch all versions of IRIX before 6.2, and indicate that we don't
8369    # know how it worked for any of those versions.
8370    libltdl_cv_sys_dlopen_deplibs=unknown
8371    ;;
8372  irix*)
8373    # The case above catches anything before 6.2, and it's known that
8374    # at 6.2 and later dlopen does load deplibs.
8375    libltdl_cv_sys_dlopen_deplibs=yes
8376    ;;
8377  netbsd*)
8378    libltdl_cv_sys_dlopen_deplibs=yes
8379    ;;
8380  openbsd*)
8381    libltdl_cv_sys_dlopen_deplibs=yes
8382    ;;
8383  osf[1234]*)
8384    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8385    # it did *not* use an RPATH in a shared library to find objects the
8386    # library depends on, so we explictly say `no'.
8387    libltdl_cv_sys_dlopen_deplibs=no
8388    ;;
8389  osf5.0|osf5.0a|osf5.1)
8390    # dlopen *does* load deplibs and with the right loader patch applied
8391    # it even uses RPATH in a shared library to search for shared objects
8392    # that the library depends on, but there's no easy way to know if that
8393    # patch is installed.  Since this is the case, all we can really
8394    # say is unknown -- it depends on the patch being installed.  If
8395    # it is, this changes to `yes'.  Without it, it would be `no'.
8396    libltdl_cv_sys_dlopen_deplibs=unknown
8397    ;;
8398  osf*)
8399    # the two cases above should catch all versions of osf <= 5.1.  Read
8400    # the comments above for what we know about them.
8401    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8402    # is used to find them so we can finally say `yes'.
8403    libltdl_cv_sys_dlopen_deplibs=yes
8404    ;;
8405  solaris*)
8406    libltdl_cv_sys_dlopen_deplibs=yes
8407    ;;
8408  esac
8409
8410fi
8411echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8412echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8413if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8414
8415cat >>confdefs.h <<\_ACEOF
8416#define LTDL_DLOPEN_DEPLIBS 1
8417_ACEOF
8418
8419fi
8420
8421
8422for ac_header in argz.h
8423do
8424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8425if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426  echo "$as_me:$LINENO: checking for $ac_header" >&5
8427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8428if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429  echo $ECHO_N "(cached) $ECHO_C" >&6
8430fi
8431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8433else
8434  # Is the header compilable?
8435echo "$as_me:$LINENO: checking $ac_header usability" >&5
8436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8437cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h.  */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h.  */
8443$ac_includes_default
8444#include <$ac_header>
8445_ACEOF
8446rm -f conftest.$ac_objext
8447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448  (eval $ac_compile) 2>conftest.er1
8449  ac_status=$?
8450  grep -v '^ *+' conftest.er1 >conftest.err
8451  rm -f conftest.er1
8452  cat conftest.err >&5
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); } &&
8455	 { ac_try='test -z "$ac_c_werror_flag"
8456			 || test ! -s conftest.err'
8457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458  (eval $ac_try) 2>&5
8459  ac_status=$?
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); }; } &&
8462	 { ac_try='test -s conftest.$ac_objext'
8463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464  (eval $ac_try) 2>&5
8465  ac_status=$?
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); }; }; then
8468  ac_header_compiler=yes
8469else
8470  echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473ac_header_compiler=no
8474fi
8475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8477echo "${ECHO_T}$ac_header_compiler" >&6
8478
8479# Is the header present?
8480echo "$as_me:$LINENO: checking $ac_header presence" >&5
8481echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8482cat >conftest.$ac_ext <<_ACEOF
8483/* confdefs.h.  */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h.  */
8488#include <$ac_header>
8489_ACEOF
8490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8491  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8492  ac_status=$?
8493  grep -v '^ *+' conftest.er1 >conftest.err
8494  rm -f conftest.er1
8495  cat conftest.err >&5
8496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); } >/dev/null; then
8498  if test -s conftest.err; then
8499    ac_cpp_err=$ac_c_preproc_warn_flag
8500    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8501  else
8502    ac_cpp_err=
8503  fi
8504else
8505  ac_cpp_err=yes
8506fi
8507if test -z "$ac_cpp_err"; then
8508  ac_header_preproc=yes
8509else
8510  echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513  ac_header_preproc=no
8514fi
8515rm -f conftest.err conftest.$ac_ext
8516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8517echo "${ECHO_T}$ac_header_preproc" >&6
8518
8519# So?  What about this header?
8520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8521  yes:no: )
8522    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8526    ac_header_preproc=yes
8527    ;;
8528  no:yes:* )
8529    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8531    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8532echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8533    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8535    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8536echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8539    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8541    (
8542      cat <<\_ASBOX
8543## ----------------------------------- ##
8544## Report this to llvmbugs@cs.uiuc.edu ##
8545## ----------------------------------- ##
8546_ASBOX
8547    ) |
8548      sed "s/^/$as_me: WARNING:     /" >&2
8549    ;;
8550esac
8551echo "$as_me:$LINENO: checking for $ac_header" >&5
8552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8553if eval "test \"\${$as_ac_Header+set}\" = set"; then
8554  echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556  eval "$as_ac_Header=\$ac_header_preproc"
8557fi
8558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560
8561fi
8562if test `eval echo '${'$as_ac_Header'}'` = yes; then
8563  cat >>confdefs.h <<_ACEOF
8564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8565_ACEOF
8566
8567fi
8568
8569done
8570
8571
8572echo "$as_me:$LINENO: checking for error_t" >&5
8573echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8574if test "${ac_cv_type_error_t+set}" = set; then
8575  echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577  cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h.  */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h.  */
8583#if HAVE_ARGZ_H
8584#  include <argz.h>
8585#endif
8586
8587int
8588main ()
8589{
8590if ((error_t *) 0)
8591  return 0;
8592if (sizeof (error_t))
8593  return 0;
8594  ;
8595  return 0;
8596}
8597_ACEOF
8598rm -f conftest.$ac_objext
8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600  (eval $ac_compile) 2>conftest.er1
8601  ac_status=$?
8602  grep -v '^ *+' conftest.er1 >conftest.err
8603  rm -f conftest.er1
8604  cat conftest.err >&5
8605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606  (exit $ac_status); } &&
8607	 { ac_try='test -z "$ac_c_werror_flag"
8608			 || test ! -s conftest.err'
8609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610  (eval $ac_try) 2>&5
8611  ac_status=$?
8612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613  (exit $ac_status); }; } &&
8614	 { ac_try='test -s conftest.$ac_objext'
8615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616  (eval $ac_try) 2>&5
8617  ac_status=$?
8618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619  (exit $ac_status); }; }; then
8620  ac_cv_type_error_t=yes
8621else
8622  echo "$as_me: failed program was:" >&5
8623sed 's/^/| /' conftest.$ac_ext >&5
8624
8625ac_cv_type_error_t=no
8626fi
8627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628fi
8629echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8630echo "${ECHO_T}$ac_cv_type_error_t" >&6
8631if test $ac_cv_type_error_t = yes; then
8632
8633cat >>confdefs.h <<_ACEOF
8634#define HAVE_ERROR_T 1
8635_ACEOF
8636
8637
8638else
8639
8640cat >>confdefs.h <<\_ACEOF
8641#define error_t int
8642_ACEOF
8643
8644fi
8645
8646
8647
8648
8649
8650
8651
8652for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8653do
8654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8655echo "$as_me:$LINENO: checking for $ac_func" >&5
8656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8657if eval "test \"\${$as_ac_var+set}\" = set"; then
8658  echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660  cat >conftest.$ac_ext <<_ACEOF
8661/* confdefs.h.  */
8662_ACEOF
8663cat confdefs.h >>conftest.$ac_ext
8664cat >>conftest.$ac_ext <<_ACEOF
8665/* end confdefs.h.  */
8666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8668#define $ac_func innocuous_$ac_func
8669
8670/* System header to define __stub macros and hopefully few prototypes,
8671    which can conflict with char $ac_func (); below.
8672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673    <limits.h> exists even on freestanding compilers.  */
8674
8675#ifdef __STDC__
8676# include <limits.h>
8677#else
8678# include <assert.h>
8679#endif
8680
8681#undef $ac_func
8682
8683/* Override any gcc2 internal prototype to avoid an error.  */
8684#ifdef __cplusplus
8685extern "C"
8686{
8687#endif
8688/* We use char because int might match the return type of a gcc2
8689   builtin and then its argument prototype would still apply.  */
8690char $ac_func ();
8691/* The GNU C library defines this for functions which it implements
8692    to always fail with ENOSYS.  Some functions are actually named
8693    something starting with __ and the normal name is an alias.  */
8694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8695choke me
8696#else
8697char (*f) () = $ac_func;
8698#endif
8699#ifdef __cplusplus
8700}
8701#endif
8702
8703int
8704main ()
8705{
8706return f != $ac_func;
8707  ;
8708  return 0;
8709}
8710_ACEOF
8711rm -f conftest.$ac_objext conftest$ac_exeext
8712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713  (eval $ac_link) 2>conftest.er1
8714  ac_status=$?
8715  grep -v '^ *+' conftest.er1 >conftest.err
8716  rm -f conftest.er1
8717  cat conftest.err >&5
8718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719  (exit $ac_status); } &&
8720	 { ac_try='test -z "$ac_c_werror_flag"
8721			 || test ! -s conftest.err'
8722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723  (eval $ac_try) 2>&5
8724  ac_status=$?
8725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726  (exit $ac_status); }; } &&
8727	 { ac_try='test -s conftest$ac_exeext'
8728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729  (eval $ac_try) 2>&5
8730  ac_status=$?
8731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732  (exit $ac_status); }; }; then
8733  eval "$as_ac_var=yes"
8734else
8735  echo "$as_me: failed program was:" >&5
8736sed 's/^/| /' conftest.$ac_ext >&5
8737
8738eval "$as_ac_var=no"
8739fi
8740rm -f conftest.err conftest.$ac_objext \
8741      conftest$ac_exeext conftest.$ac_ext
8742fi
8743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745if test `eval echo '${'$as_ac_var'}'` = yes; then
8746  cat >>confdefs.h <<_ACEOF
8747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8748_ACEOF
8749
8750fi
8751done
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8781		  stdio.h unistd.h
8782do
8783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8784if eval "test \"\${$as_ac_Header+set}\" = set"; then
8785  echo "$as_me:$LINENO: checking for $ac_header" >&5
8786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8787if eval "test \"\${$as_ac_Header+set}\" = set"; then
8788  echo $ECHO_N "(cached) $ECHO_C" >&6
8789fi
8790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792else
8793  # Is the header compilable?
8794echo "$as_me:$LINENO: checking $ac_header usability" >&5
8795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8796cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h.  */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h.  */
8802$ac_includes_default
8803#include <$ac_header>
8804_ACEOF
8805rm -f conftest.$ac_objext
8806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8807  (eval $ac_compile) 2>conftest.er1
8808  ac_status=$?
8809  grep -v '^ *+' conftest.er1 >conftest.err
8810  rm -f conftest.er1
8811  cat conftest.err >&5
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } &&
8814	 { ac_try='test -z "$ac_c_werror_flag"
8815			 || test ! -s conftest.err'
8816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817  (eval $ac_try) 2>&5
8818  ac_status=$?
8819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820  (exit $ac_status); }; } &&
8821	 { ac_try='test -s conftest.$ac_objext'
8822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823  (eval $ac_try) 2>&5
8824  ac_status=$?
8825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826  (exit $ac_status); }; }; then
8827  ac_header_compiler=yes
8828else
8829  echo "$as_me: failed program was:" >&5
8830sed 's/^/| /' conftest.$ac_ext >&5
8831
8832ac_header_compiler=no
8833fi
8834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8836echo "${ECHO_T}$ac_header_compiler" >&6
8837
8838# Is the header present?
8839echo "$as_me:$LINENO: checking $ac_header presence" >&5
8840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8841cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h.  */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h.  */
8847#include <$ac_header>
8848_ACEOF
8849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8850  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8851  ac_status=$?
8852  grep -v '^ *+' conftest.er1 >conftest.err
8853  rm -f conftest.er1
8854  cat conftest.err >&5
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); } >/dev/null; then
8857  if test -s conftest.err; then
8858    ac_cpp_err=$ac_c_preproc_warn_flag
8859    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8860  else
8861    ac_cpp_err=
8862  fi
8863else
8864  ac_cpp_err=yes
8865fi
8866if test -z "$ac_cpp_err"; then
8867  ac_header_preproc=yes
8868else
8869  echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
8872  ac_header_preproc=no
8873fi
8874rm -f conftest.err conftest.$ac_ext
8875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8876echo "${ECHO_T}$ac_header_preproc" >&6
8877
8878# So?  What about this header?
8879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8880  yes:no: )
8881    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8883    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8885    ac_header_preproc=yes
8886    ;;
8887  no:yes:* )
8888    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8890    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8891echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8892    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8894    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8895echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8896    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8898    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8900    (
8901      cat <<\_ASBOX
8902## ----------------------------------- ##
8903## Report this to llvmbugs@cs.uiuc.edu ##
8904## ----------------------------------- ##
8905_ASBOX
8906    ) |
8907      sed "s/^/$as_me: WARNING:     /" >&2
8908    ;;
8909esac
8910echo "$as_me:$LINENO: checking for $ac_header" >&5
8911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8912if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915  eval "$as_ac_Header=\$ac_header_preproc"
8916fi
8917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8919
8920fi
8921if test `eval echo '${'$as_ac_Header'}'` = yes; then
8922  cat >>confdefs.h <<_ACEOF
8923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8924_ACEOF
8925
8926fi
8927
8928done
8929
8930
8931
8932
8933
8934for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8935do
8936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8937if eval "test \"\${$as_ac_Header+set}\" = set"; then
8938  echo "$as_me:$LINENO: checking for $ac_header" >&5
8939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8940if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941  echo $ECHO_N "(cached) $ECHO_C" >&6
8942fi
8943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8945else
8946  # Is the header compilable?
8947echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8949cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h.  */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h.  */
8955$ac_includes_default
8956#include <$ac_header>
8957_ACEOF
8958rm -f conftest.$ac_objext
8959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960  (eval $ac_compile) 2>conftest.er1
8961  ac_status=$?
8962  grep -v '^ *+' conftest.er1 >conftest.err
8963  rm -f conftest.er1
8964  cat conftest.err >&5
8965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966  (exit $ac_status); } &&
8967	 { ac_try='test -z "$ac_c_werror_flag"
8968			 || test ! -s conftest.err'
8969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970  (eval $ac_try) 2>&5
8971  ac_status=$?
8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973  (exit $ac_status); }; } &&
8974	 { ac_try='test -s conftest.$ac_objext'
8975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976  (eval $ac_try) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); }; }; then
8980  ac_header_compiler=yes
8981else
8982  echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985ac_header_compiler=no
8986fi
8987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8989echo "${ECHO_T}$ac_header_compiler" >&6
8990
8991# Is the header present?
8992echo "$as_me:$LINENO: checking $ac_header presence" >&5
8993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8994cat >conftest.$ac_ext <<_ACEOF
8995/* confdefs.h.  */
8996_ACEOF
8997cat confdefs.h >>conftest.$ac_ext
8998cat >>conftest.$ac_ext <<_ACEOF
8999/* end confdefs.h.  */
9000#include <$ac_header>
9001_ACEOF
9002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9003  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9004  ac_status=$?
9005  grep -v '^ *+' conftest.er1 >conftest.err
9006  rm -f conftest.er1
9007  cat conftest.err >&5
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); } >/dev/null; then
9010  if test -s conftest.err; then
9011    ac_cpp_err=$ac_c_preproc_warn_flag
9012    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9013  else
9014    ac_cpp_err=
9015  fi
9016else
9017  ac_cpp_err=yes
9018fi
9019if test -z "$ac_cpp_err"; then
9020  ac_header_preproc=yes
9021else
9022  echo "$as_me: failed program was:" >&5
9023sed 's/^/| /' conftest.$ac_ext >&5
9024
9025  ac_header_preproc=no
9026fi
9027rm -f conftest.err conftest.$ac_ext
9028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9029echo "${ECHO_T}$ac_header_preproc" >&6
9030
9031# So?  What about this header?
9032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9033  yes:no: )
9034    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9038    ac_header_preproc=yes
9039    ;;
9040  no:yes:* )
9041    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9043    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9044echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9045    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9047    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9048echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9051    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9053    (
9054      cat <<\_ASBOX
9055## ----------------------------------- ##
9056## Report this to llvmbugs@cs.uiuc.edu ##
9057## ----------------------------------- ##
9058_ASBOX
9059    ) |
9060      sed "s/^/$as_me: WARNING:     /" >&2
9061    ;;
9062esac
9063echo "$as_me:$LINENO: checking for $ac_header" >&5
9064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066  echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068  eval "$as_ac_Header=\$ac_header_preproc"
9069fi
9070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9072
9073fi
9074if test `eval echo '${'$as_ac_Header'}'` = yes; then
9075  cat >>confdefs.h <<_ACEOF
9076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9077_ACEOF
9078
9079fi
9080
9081done
9082
9083
9084
9085for ac_header in string.h strings.h
9086do
9087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9088if eval "test \"\${$as_ac_Header+set}\" = set"; then
9089  echo "$as_me:$LINENO: checking for $ac_header" >&5
9090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9091if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092  echo $ECHO_N "(cached) $ECHO_C" >&6
9093fi
9094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9096else
9097  # Is the header compilable?
9098echo "$as_me:$LINENO: checking $ac_header usability" >&5
9099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9100cat >conftest.$ac_ext <<_ACEOF
9101/* confdefs.h.  */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h.  */
9106$ac_includes_default
9107#include <$ac_header>
9108_ACEOF
9109rm -f conftest.$ac_objext
9110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111  (eval $ac_compile) 2>conftest.er1
9112  ac_status=$?
9113  grep -v '^ *+' conftest.er1 >conftest.err
9114  rm -f conftest.er1
9115  cat conftest.err >&5
9116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117  (exit $ac_status); } &&
9118	 { ac_try='test -z "$ac_c_werror_flag"
9119			 || test ! -s conftest.err'
9120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121  (eval $ac_try) 2>&5
9122  ac_status=$?
9123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124  (exit $ac_status); }; } &&
9125	 { ac_try='test -s conftest.$ac_objext'
9126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127  (eval $ac_try) 2>&5
9128  ac_status=$?
9129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130  (exit $ac_status); }; }; then
9131  ac_header_compiler=yes
9132else
9133  echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
9136ac_header_compiler=no
9137fi
9138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9140echo "${ECHO_T}$ac_header_compiler" >&6
9141
9142# Is the header present?
9143echo "$as_me:$LINENO: checking $ac_header presence" >&5
9144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9145cat >conftest.$ac_ext <<_ACEOF
9146/* confdefs.h.  */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h.  */
9151#include <$ac_header>
9152_ACEOF
9153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9155  ac_status=$?
9156  grep -v '^ *+' conftest.er1 >conftest.err
9157  rm -f conftest.er1
9158  cat conftest.err >&5
9159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160  (exit $ac_status); } >/dev/null; then
9161  if test -s conftest.err; then
9162    ac_cpp_err=$ac_c_preproc_warn_flag
9163    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9164  else
9165    ac_cpp_err=
9166  fi
9167else
9168  ac_cpp_err=yes
9169fi
9170if test -z "$ac_cpp_err"; then
9171  ac_header_preproc=yes
9172else
9173  echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
9176  ac_header_preproc=no
9177fi
9178rm -f conftest.err conftest.$ac_ext
9179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9180echo "${ECHO_T}$ac_header_preproc" >&6
9181
9182# So?  What about this header?
9183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9184  yes:no: )
9185    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9189    ac_header_preproc=yes
9190    ;;
9191  no:yes:* )
9192    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9194    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9195echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9196    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9198    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9199echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9200    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9202    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9204    (
9205      cat <<\_ASBOX
9206## ----------------------------------- ##
9207## Report this to llvmbugs@cs.uiuc.edu ##
9208## ----------------------------------- ##
9209_ASBOX
9210    ) |
9211      sed "s/^/$as_me: WARNING:     /" >&2
9212    ;;
9213esac
9214echo "$as_me:$LINENO: checking for $ac_header" >&5
9215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217  echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219  eval "$as_ac_Header=\$ac_header_preproc"
9220fi
9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9223
9224fi
9225if test `eval echo '${'$as_ac_Header'}'` = yes; then
9226  cat >>confdefs.h <<_ACEOF
9227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9228_ACEOF
9229 break
9230fi
9231
9232done
9233
9234
9235
9236
9237for ac_func in strchr index
9238do
9239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9240echo "$as_me:$LINENO: checking for $ac_func" >&5
9241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9242if eval "test \"\${$as_ac_var+set}\" = set"; then
9243  echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245  cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h.  */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h.  */
9251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9252   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9253#define $ac_func innocuous_$ac_func
9254
9255/* System header to define __stub macros and hopefully few prototypes,
9256    which can conflict with char $ac_func (); below.
9257    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9258    <limits.h> exists even on freestanding compilers.  */
9259
9260#ifdef __STDC__
9261# include <limits.h>
9262#else
9263# include <assert.h>
9264#endif
9265
9266#undef $ac_func
9267
9268/* Override any gcc2 internal prototype to avoid an error.  */
9269#ifdef __cplusplus
9270extern "C"
9271{
9272#endif
9273/* We use char because int might match the return type of a gcc2
9274   builtin and then its argument prototype would still apply.  */
9275char $ac_func ();
9276/* The GNU C library defines this for functions which it implements
9277    to always fail with ENOSYS.  Some functions are actually named
9278    something starting with __ and the normal name is an alias.  */
9279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9280choke me
9281#else
9282char (*f) () = $ac_func;
9283#endif
9284#ifdef __cplusplus
9285}
9286#endif
9287
9288int
9289main ()
9290{
9291return f != $ac_func;
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296rm -f conftest.$ac_objext conftest$ac_exeext
9297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298  (eval $ac_link) 2>conftest.er1
9299  ac_status=$?
9300  grep -v '^ *+' conftest.er1 >conftest.err
9301  rm -f conftest.er1
9302  cat conftest.err >&5
9303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304  (exit $ac_status); } &&
9305	 { ac_try='test -z "$ac_c_werror_flag"
9306			 || test ! -s conftest.err'
9307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308  (eval $ac_try) 2>&5
9309  ac_status=$?
9310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311  (exit $ac_status); }; } &&
9312	 { ac_try='test -s conftest$ac_exeext'
9313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314  (eval $ac_try) 2>&5
9315  ac_status=$?
9316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317  (exit $ac_status); }; }; then
9318  eval "$as_ac_var=yes"
9319else
9320  echo "$as_me: failed program was:" >&5
9321sed 's/^/| /' conftest.$ac_ext >&5
9322
9323eval "$as_ac_var=no"
9324fi
9325rm -f conftest.err conftest.$ac_objext \
9326      conftest$ac_exeext conftest.$ac_ext
9327fi
9328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9330if test `eval echo '${'$as_ac_var'}'` = yes; then
9331  cat >>confdefs.h <<_ACEOF
9332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9333_ACEOF
9334 break
9335fi
9336done
9337
9338
9339
9340for ac_func in strrchr rindex
9341do
9342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9343echo "$as_me:$LINENO: checking for $ac_func" >&5
9344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9345if eval "test \"\${$as_ac_var+set}\" = set"; then
9346  echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348  cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h.  */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h.  */
9354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9356#define $ac_func innocuous_$ac_func
9357
9358/* System header to define __stub macros and hopefully few prototypes,
9359    which can conflict with char $ac_func (); below.
9360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361    <limits.h> exists even on freestanding compilers.  */
9362
9363#ifdef __STDC__
9364# include <limits.h>
9365#else
9366# include <assert.h>
9367#endif
9368
9369#undef $ac_func
9370
9371/* Override any gcc2 internal prototype to avoid an error.  */
9372#ifdef __cplusplus
9373extern "C"
9374{
9375#endif
9376/* We use char because int might match the return type of a gcc2
9377   builtin and then its argument prototype would still apply.  */
9378char $ac_func ();
9379/* The GNU C library defines this for functions which it implements
9380    to always fail with ENOSYS.  Some functions are actually named
9381    something starting with __ and the normal name is an alias.  */
9382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9383choke me
9384#else
9385char (*f) () = $ac_func;
9386#endif
9387#ifdef __cplusplus
9388}
9389#endif
9390
9391int
9392main ()
9393{
9394return f != $ac_func;
9395  ;
9396  return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext conftest$ac_exeext
9400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401  (eval $ac_link) 2>conftest.er1
9402  ac_status=$?
9403  grep -v '^ *+' conftest.er1 >conftest.err
9404  rm -f conftest.er1
9405  cat conftest.err >&5
9406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407  (exit $ac_status); } &&
9408	 { ac_try='test -z "$ac_c_werror_flag"
9409			 || test ! -s conftest.err'
9410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411  (eval $ac_try) 2>&5
9412  ac_status=$?
9413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414  (exit $ac_status); }; } &&
9415	 { ac_try='test -s conftest$ac_exeext'
9416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417  (eval $ac_try) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); }; }; then
9421  eval "$as_ac_var=yes"
9422else
9423  echo "$as_me: failed program was:" >&5
9424sed 's/^/| /' conftest.$ac_ext >&5
9425
9426eval "$as_ac_var=no"
9427fi
9428rm -f conftest.err conftest.$ac_objext \
9429      conftest$ac_exeext conftest.$ac_ext
9430fi
9431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9433if test `eval echo '${'$as_ac_var'}'` = yes; then
9434  cat >>confdefs.h <<_ACEOF
9435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9436_ACEOF
9437 break
9438fi
9439done
9440
9441
9442
9443for ac_func in memcpy bcopy
9444do
9445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9446echo "$as_me:$LINENO: checking for $ac_func" >&5
9447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9448if eval "test \"\${$as_ac_var+set}\" = set"; then
9449  echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451  cat >conftest.$ac_ext <<_ACEOF
9452/* confdefs.h.  */
9453_ACEOF
9454cat confdefs.h >>conftest.$ac_ext
9455cat >>conftest.$ac_ext <<_ACEOF
9456/* end confdefs.h.  */
9457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9458   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9459#define $ac_func innocuous_$ac_func
9460
9461/* System header to define __stub macros and hopefully few prototypes,
9462    which can conflict with char $ac_func (); below.
9463    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9464    <limits.h> exists even on freestanding compilers.  */
9465
9466#ifdef __STDC__
9467# include <limits.h>
9468#else
9469# include <assert.h>
9470#endif
9471
9472#undef $ac_func
9473
9474/* Override any gcc2 internal prototype to avoid an error.  */
9475#ifdef __cplusplus
9476extern "C"
9477{
9478#endif
9479/* We use char because int might match the return type of a gcc2
9480   builtin and then its argument prototype would still apply.  */
9481char $ac_func ();
9482/* The GNU C library defines this for functions which it implements
9483    to always fail with ENOSYS.  Some functions are actually named
9484    something starting with __ and the normal name is an alias.  */
9485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9486choke me
9487#else
9488char (*f) () = $ac_func;
9489#endif
9490#ifdef __cplusplus
9491}
9492#endif
9493
9494int
9495main ()
9496{
9497return f != $ac_func;
9498  ;
9499  return 0;
9500}
9501_ACEOF
9502rm -f conftest.$ac_objext conftest$ac_exeext
9503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504  (eval $ac_link) 2>conftest.er1
9505  ac_status=$?
9506  grep -v '^ *+' conftest.er1 >conftest.err
9507  rm -f conftest.er1
9508  cat conftest.err >&5
9509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510  (exit $ac_status); } &&
9511	 { ac_try='test -z "$ac_c_werror_flag"
9512			 || test ! -s conftest.err'
9513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514  (eval $ac_try) 2>&5
9515  ac_status=$?
9516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); }; } &&
9518	 { ac_try='test -s conftest$ac_exeext'
9519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520  (eval $ac_try) 2>&5
9521  ac_status=$?
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); }; }; then
9524  eval "$as_ac_var=yes"
9525else
9526  echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529eval "$as_ac_var=no"
9530fi
9531rm -f conftest.err conftest.$ac_objext \
9532      conftest$ac_exeext conftest.$ac_ext
9533fi
9534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9536if test `eval echo '${'$as_ac_var'}'` = yes; then
9537  cat >>confdefs.h <<_ACEOF
9538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9539_ACEOF
9540 break
9541fi
9542done
9543
9544
9545
9546for ac_func in memmove strcmp
9547do
9548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9549echo "$as_me:$LINENO: checking for $ac_func" >&5
9550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9551if eval "test \"\${$as_ac_var+set}\" = set"; then
9552  echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554  cat >conftest.$ac_ext <<_ACEOF
9555/* confdefs.h.  */
9556_ACEOF
9557cat confdefs.h >>conftest.$ac_ext
9558cat >>conftest.$ac_ext <<_ACEOF
9559/* end confdefs.h.  */
9560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9561   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9562#define $ac_func innocuous_$ac_func
9563
9564/* System header to define __stub macros and hopefully few prototypes,
9565    which can conflict with char $ac_func (); below.
9566    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9567    <limits.h> exists even on freestanding compilers.  */
9568
9569#ifdef __STDC__
9570# include <limits.h>
9571#else
9572# include <assert.h>
9573#endif
9574
9575#undef $ac_func
9576
9577/* Override any gcc2 internal prototype to avoid an error.  */
9578#ifdef __cplusplus
9579extern "C"
9580{
9581#endif
9582/* We use char because int might match the return type of a gcc2
9583   builtin and then its argument prototype would still apply.  */
9584char $ac_func ();
9585/* The GNU C library defines this for functions which it implements
9586    to always fail with ENOSYS.  Some functions are actually named
9587    something starting with __ and the normal name is an alias.  */
9588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589choke me
9590#else
9591char (*f) () = $ac_func;
9592#endif
9593#ifdef __cplusplus
9594}
9595#endif
9596
9597int
9598main ()
9599{
9600return f != $ac_func;
9601  ;
9602  return 0;
9603}
9604_ACEOF
9605rm -f conftest.$ac_objext conftest$ac_exeext
9606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607  (eval $ac_link) 2>conftest.er1
9608  ac_status=$?
9609  grep -v '^ *+' conftest.er1 >conftest.err
9610  rm -f conftest.er1
9611  cat conftest.err >&5
9612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613  (exit $ac_status); } &&
9614	 { ac_try='test -z "$ac_c_werror_flag"
9615			 || test ! -s conftest.err'
9616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617  (eval $ac_try) 2>&5
9618  ac_status=$?
9619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620  (exit $ac_status); }; } &&
9621	 { ac_try='test -s conftest$ac_exeext'
9622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623  (eval $ac_try) 2>&5
9624  ac_status=$?
9625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626  (exit $ac_status); }; }; then
9627  eval "$as_ac_var=yes"
9628else
9629  echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632eval "$as_ac_var=no"
9633fi
9634rm -f conftest.err conftest.$ac_objext \
9635      conftest$ac_exeext conftest.$ac_ext
9636fi
9637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9639if test `eval echo '${'$as_ac_var'}'` = yes; then
9640  cat >>confdefs.h <<_ACEOF
9641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9642_ACEOF
9643
9644fi
9645done
9646
9647
9648
9649
9650for ac_func in closedir opendir readdir
9651do
9652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9653echo "$as_me:$LINENO: checking for $ac_func" >&5
9654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9655if eval "test \"\${$as_ac_var+set}\" = set"; then
9656  echo $ECHO_N "(cached) $ECHO_C" >&6
9657else
9658  cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9666#define $ac_func innocuous_$ac_func
9667
9668/* System header to define __stub macros and hopefully few prototypes,
9669    which can conflict with char $ac_func (); below.
9670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9671    <limits.h> exists even on freestanding compilers.  */
9672
9673#ifdef __STDC__
9674# include <limits.h>
9675#else
9676# include <assert.h>
9677#endif
9678
9679#undef $ac_func
9680
9681/* Override any gcc2 internal prototype to avoid an error.  */
9682#ifdef __cplusplus
9683extern "C"
9684{
9685#endif
9686/* We use char because int might match the return type of a gcc2
9687   builtin and then its argument prototype would still apply.  */
9688char $ac_func ();
9689/* The GNU C library defines this for functions which it implements
9690    to always fail with ENOSYS.  Some functions are actually named
9691    something starting with __ and the normal name is an alias.  */
9692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9693choke me
9694#else
9695char (*f) () = $ac_func;
9696#endif
9697#ifdef __cplusplus
9698}
9699#endif
9700
9701int
9702main ()
9703{
9704return f != $ac_func;
9705  ;
9706  return 0;
9707}
9708_ACEOF
9709rm -f conftest.$ac_objext conftest$ac_exeext
9710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711  (eval $ac_link) 2>conftest.er1
9712  ac_status=$?
9713  grep -v '^ *+' conftest.er1 >conftest.err
9714  rm -f conftest.er1
9715  cat conftest.err >&5
9716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); } &&
9718	 { ac_try='test -z "$ac_c_werror_flag"
9719			 || test ! -s conftest.err'
9720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721  (eval $ac_try) 2>&5
9722  ac_status=$?
9723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724  (exit $ac_status); }; } &&
9725	 { ac_try='test -s conftest$ac_exeext'
9726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727  (eval $ac_try) 2>&5
9728  ac_status=$?
9729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); }; }; then
9731  eval "$as_ac_var=yes"
9732else
9733  echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
9736eval "$as_ac_var=no"
9737fi
9738rm -f conftest.err conftest.$ac_objext \
9739      conftest$ac_exeext conftest.$ac_ext
9740fi
9741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9743if test `eval echo '${'$as_ac_var'}'` = yes; then
9744  cat >>confdefs.h <<_ACEOF
9745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9746_ACEOF
9747
9748fi
9749done
9750
9751
9752# Check whether --enable-shared or --disable-shared was given.
9753if test "${enable_shared+set}" = set; then
9754  enableval="$enable_shared"
9755  p=${PACKAGE-default}
9756    case $enableval in
9757    yes) enable_shared=yes ;;
9758    no) enable_shared=no ;;
9759    *)
9760      enable_shared=no
9761      # Look at the argument we got.  We use all the common list separators.
9762      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9763      for pkg in $enableval; do
9764	IFS="$lt_save_ifs"
9765	if test "X$pkg" = "X$p"; then
9766	  enable_shared=yes
9767	fi
9768      done
9769      IFS="$lt_save_ifs"
9770      ;;
9771    esac
9772else
9773  enable_shared=yes
9774fi;
9775
9776# Check whether --enable-static or --disable-static was given.
9777if test "${enable_static+set}" = set; then
9778  enableval="$enable_static"
9779  p=${PACKAGE-default}
9780    case $enableval in
9781    yes) enable_static=yes ;;
9782    no) enable_static=no ;;
9783    *)
9784     enable_static=no
9785      # Look at the argument we got.  We use all the common list separators.
9786      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9787      for pkg in $enableval; do
9788	IFS="$lt_save_ifs"
9789	if test "X$pkg" = "X$p"; then
9790	  enable_static=yes
9791	fi
9792      done
9793      IFS="$lt_save_ifs"
9794      ;;
9795    esac
9796else
9797  enable_static=yes
9798fi;
9799
9800# Check whether --enable-fast-install or --disable-fast-install was given.
9801if test "${enable_fast_install+set}" = set; then
9802  enableval="$enable_fast_install"
9803  p=${PACKAGE-default}
9804    case $enableval in
9805    yes) enable_fast_install=yes ;;
9806    no) enable_fast_install=no ;;
9807    *)
9808      enable_fast_install=no
9809      # Look at the argument we got.  We use all the common list separators.
9810      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9811      for pkg in $enableval; do
9812	IFS="$lt_save_ifs"
9813	if test "X$pkg" = "X$p"; then
9814	  enable_fast_install=yes
9815	fi
9816      done
9817      IFS="$lt_save_ifs"
9818      ;;
9819    esac
9820else
9821  enable_fast_install=yes
9822fi;
9823
9824echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9825echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9826if test "${lt_cv_path_SED+set}" = set; then
9827  echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829  # Loop through the user's path and test for sed and gsed.
9830# Then use that list of sed's as ones to test for truncation.
9831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834  IFS=$as_save_IFS
9835  test -z "$as_dir" && as_dir=.
9836  for lt_ac_prog in sed gsed; do
9837    for ac_exec_ext in '' $ac_executable_extensions; do
9838      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9839        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9840      fi
9841    done
9842  done
9843done
9844lt_ac_max=0
9845lt_ac_count=0
9846# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9847# along with /bin/sed that truncates output.
9848for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9849  test ! -f $lt_ac_sed && break
9850  cat /dev/null > conftest.in
9851  lt_ac_count=0
9852  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9853  # Check for GNU sed and select it if it is found.
9854  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9855    lt_cv_path_SED=$lt_ac_sed
9856    break
9857  fi
9858  while true; do
9859    cat conftest.in conftest.in >conftest.tmp
9860    mv conftest.tmp conftest.in
9861    cp conftest.in conftest.nl
9862    echo >>conftest.nl
9863    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9864    cmp -s conftest.out conftest.nl || break
9865    # 10000 chars as input seems more than enough
9866    test $lt_ac_count -gt 10 && break
9867    lt_ac_count=`expr $lt_ac_count + 1`
9868    if test $lt_ac_count -gt $lt_ac_max; then
9869      lt_ac_max=$lt_ac_count
9870      lt_cv_path_SED=$lt_ac_sed
9871    fi
9872  done
9873done
9874
9875fi
9876
9877SED=$lt_cv_path_SED
9878echo "$as_me:$LINENO: result: $SED" >&5
9879echo "${ECHO_T}$SED" >&6
9880
9881
9882# Check whether --with-gnu-ld or --without-gnu-ld was given.
9883if test "${with_gnu_ld+set}" = set; then
9884  withval="$with_gnu_ld"
9885  test "$withval" = no || with_gnu_ld=yes
9886else
9887  with_gnu_ld=no
9888fi;
9889ac_prog=ld
9890if test "$GCC" = yes; then
9891  # Check if gcc -print-prog-name=ld gives a path.
9892  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9893echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9894  case $host in
9895  *-*-mingw*)
9896    # gcc leaves a trailing carriage return which upsets mingw
9897    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9898  *)
9899    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9900  esac
9901  case $ac_prog in
9902    # Accept absolute paths.
9903    [\\/]* | ?:[\\/]*)
9904      re_direlt='/[^/][^/]*/\.\./'
9905      # Canonicalize the pathname of ld
9906      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9907      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9908	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9909      done
9910      test -z "$LD" && LD="$ac_prog"
9911      ;;
9912  "")
9913    # If it fails, then pretend we aren't using GCC.
9914    ac_prog=ld
9915    ;;
9916  *)
9917    # If it is relative, then search for the first ld in PATH.
9918    with_gnu_ld=unknown
9919    ;;
9920  esac
9921elif test "$with_gnu_ld" = yes; then
9922  echo "$as_me:$LINENO: checking for GNU ld" >&5
9923echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9924else
9925  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9926echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9927fi
9928if test "${lt_cv_path_LD+set}" = set; then
9929  echo $ECHO_N "(cached) $ECHO_C" >&6
9930else
9931  if test -z "$LD"; then
9932  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9933  for ac_dir in $PATH; do
9934    IFS="$lt_save_ifs"
9935    test -z "$ac_dir" && ac_dir=.
9936    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9937      lt_cv_path_LD="$ac_dir/$ac_prog"
9938      # Check to see if the program is GNU ld.  I'd rather use --version,
9939      # but apparently some GNU ld's only accept -v.
9940      # Break only if it was the GNU/non-GNU ld that we prefer.
9941      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9942      *GNU* | *'with BFD'*)
9943	test "$with_gnu_ld" != no && break
9944	;;
9945      *)
9946	test "$with_gnu_ld" != yes && break
9947	;;
9948      esac
9949    fi
9950  done
9951  IFS="$lt_save_ifs"
9952else
9953  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9954fi
9955fi
9956
9957LD="$lt_cv_path_LD"
9958if test -n "$LD"; then
9959  echo "$as_me:$LINENO: result: $LD" >&5
9960echo "${ECHO_T}$LD" >&6
9961else
9962  echo "$as_me:$LINENO: result: no" >&5
9963echo "${ECHO_T}no" >&6
9964fi
9965test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9966echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9967   { (exit 1); exit 1; }; }
9968echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9969echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9970if test "${lt_cv_prog_gnu_ld+set}" = set; then
9971  echo $ECHO_N "(cached) $ECHO_C" >&6
9972else
9973  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9974case `$LD -v 2>&1 </dev/null` in
9975*GNU* | *'with BFD'*)
9976  lt_cv_prog_gnu_ld=yes
9977  ;;
9978*)
9979  lt_cv_prog_gnu_ld=no
9980  ;;
9981esac
9982fi
9983echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9984echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9985with_gnu_ld=$lt_cv_prog_gnu_ld
9986
9987
9988echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9989echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9990if test "${lt_cv_ld_reload_flag+set}" = set; then
9991  echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993  lt_cv_ld_reload_flag='-r'
9994fi
9995echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9996echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9997reload_flag=$lt_cv_ld_reload_flag
9998case $reload_flag in
9999"" | " "*) ;;
10000*) reload_flag=" $reload_flag" ;;
10001esac
10002reload_cmds='$LD$reload_flag -o $output$reload_objs'
10003case $host_os in
10004  darwin*)
10005    if test "$GCC" = yes; then
10006      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10007    else
10008      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10009    fi
10010    ;;
10011esac
10012
10013echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10014echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10015if test "${lt_cv_deplibs_check_method+set}" = set; then
10016  echo $ECHO_N "(cached) $ECHO_C" >&6
10017else
10018  lt_cv_file_magic_cmd='$MAGIC_CMD'
10019lt_cv_file_magic_test_file=
10020lt_cv_deplibs_check_method='unknown'
10021# Need to set the preceding variable on all platforms that support
10022# interlibrary dependencies.
10023# 'none' -- dependencies not supported.
10024# `unknown' -- same as none, but documents that we really don't know.
10025# 'pass_all' -- all dependencies passed with no checks.
10026# 'test_compile' -- check by making test program.
10027# 'file_magic [[regex]]' -- check by looking for files in library path
10028# which responds to the $file_magic_cmd with a given extended regex.
10029# If you have `file' or equivalent on your system and you're not sure
10030# whether `pass_all' will *always* work, you probably want this one.
10031
10032case $host_os in
10033aix4* | aix5*)
10034  lt_cv_deplibs_check_method=pass_all
10035  ;;
10036
10037beos*)
10038  lt_cv_deplibs_check_method=pass_all
10039  ;;
10040
10041bsdi[45]*)
10042  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10043  lt_cv_file_magic_cmd='/usr/bin/file -L'
10044  lt_cv_file_magic_test_file=/shlib/libc.so
10045  ;;
10046
10047cygwin*)
10048  # func_win32_libid is a shell function defined in ltmain.sh
10049  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10050  lt_cv_file_magic_cmd='func_win32_libid'
10051  ;;
10052
10053mingw* | pw32*)
10054  # Base MSYS/MinGW do not provide the 'file' command needed by
10055  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10056  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10057  lt_cv_file_magic_cmd='$OBJDUMP -f'
10058  ;;
10059
10060darwin* | rhapsody*)
10061  lt_cv_deplibs_check_method=pass_all
10062  ;;
10063
10064freebsd* | kfreebsd*-gnu)
10065  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10066    case $host_cpu in
10067    i*86 )
10068      # Not sure whether the presence of OpenBSD here was a mistake.
10069      # Let's accept both of them until this is cleared up.
10070      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10071      lt_cv_file_magic_cmd=/usr/bin/file
10072      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10073      ;;
10074    esac
10075  else
10076    lt_cv_deplibs_check_method=pass_all
10077  fi
10078  ;;
10079
10080gnu*)
10081  lt_cv_deplibs_check_method=pass_all
10082  ;;
10083
10084hpux10.20* | hpux11*)
10085  lt_cv_file_magic_cmd=/usr/bin/file
10086  case "$host_cpu" in
10087  ia64*)
10088    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10089    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10090    ;;
10091  hppa*64*)
10092    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]'
10093    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10094    ;;
10095  *)
10096    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10097    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10098    ;;
10099  esac
10100  ;;
10101
10102irix5* | irix6* | nonstopux*)
10103  case $LD in
10104  *-32|*"-32 ") libmagic=32-bit;;
10105  *-n32|*"-n32 ") libmagic=N32;;
10106  *-64|*"-64 ") libmagic=64-bit;;
10107  *) libmagic=never-match;;
10108  esac
10109  lt_cv_deplibs_check_method=pass_all
10110  ;;
10111
10112# This must be Linux ELF.
10113linux*)
10114  lt_cv_deplibs_check_method=pass_all
10115  ;;
10116
10117netbsd*)
10118  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10119    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10120  else
10121    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10122  fi
10123  ;;
10124
10125newos6*)
10126  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10127  lt_cv_file_magic_cmd=/usr/bin/file
10128  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10129  ;;
10130
10131nto-qnx*)
10132  lt_cv_deplibs_check_method=unknown
10133  ;;
10134
10135openbsd*)
10136  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10137    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10138  else
10139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10140  fi
10141  ;;
10142
10143osf3* | osf4* | osf5*)
10144  lt_cv_deplibs_check_method=pass_all
10145  ;;
10146
10147sco3.2v5*)
10148  lt_cv_deplibs_check_method=pass_all
10149  ;;
10150
10151solaris*)
10152  lt_cv_deplibs_check_method=pass_all
10153  ;;
10154
10155sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10156  case $host_vendor in
10157  motorola)
10158    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]'
10159    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10160    ;;
10161  ncr)
10162    lt_cv_deplibs_check_method=pass_all
10163    ;;
10164  sequent)
10165    lt_cv_file_magic_cmd='/bin/file'
10166    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10167    ;;
10168  sni)
10169    lt_cv_file_magic_cmd='/bin/file'
10170    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10171    lt_cv_file_magic_test_file=/lib/libc.so
10172    ;;
10173  siemens)
10174    lt_cv_deplibs_check_method=pass_all
10175    ;;
10176  esac
10177  ;;
10178
10179sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10180  lt_cv_deplibs_check_method=pass_all
10181  ;;
10182esac
10183
10184fi
10185echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10186echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10187file_magic_cmd=$lt_cv_file_magic_cmd
10188deplibs_check_method=$lt_cv_deplibs_check_method
10189test -z "$deplibs_check_method" && deplibs_check_method=unknown
10190
10191
10192
10193# If no C compiler was specified, use CC.
10194LTCC=${LTCC-"$CC"}
10195
10196# Allow CC to be a program name with arguments.
10197compiler=$CC
10198
10199# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10200if test "${enable_libtool_lock+set}" = set; then
10201  enableval="$enable_libtool_lock"
10202
10203fi;
10204test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10205
10206# Some flags need to be propagated to the compiler or linker for good
10207# libtool support.
10208case $host in
10209ia64-*-hpux*)
10210  # Find out which ABI we are using.
10211  echo 'int i;' > conftest.$ac_ext
10212  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213  (eval $ac_compile) 2>&5
10214  ac_status=$?
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); }; then
10217    case `/usr/bin/file conftest.$ac_objext` in
10218    *ELF-32*)
10219      HPUX_IA64_MODE="32"
10220      ;;
10221    *ELF-64*)
10222      HPUX_IA64_MODE="64"
10223      ;;
10224    esac
10225  fi
10226  rm -rf conftest*
10227  ;;
10228*-*-irix6*)
10229  # Find out which ABI we are using.
10230  echo '#line 10230 "configure"' > conftest.$ac_ext
10231  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232  (eval $ac_compile) 2>&5
10233  ac_status=$?
10234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235  (exit $ac_status); }; then
10236   if test "$lt_cv_prog_gnu_ld" = yes; then
10237    case `/usr/bin/file conftest.$ac_objext` in
10238    *32-bit*)
10239      LD="${LD-ld} -melf32bsmip"
10240      ;;
10241    *N32*)
10242      LD="${LD-ld} -melf32bmipn32"
10243      ;;
10244    *64-bit*)
10245      LD="${LD-ld} -melf64bmip"
10246      ;;
10247    esac
10248   else
10249    case `/usr/bin/file conftest.$ac_objext` in
10250    *32-bit*)
10251      LD="${LD-ld} -32"
10252      ;;
10253    *N32*)
10254      LD="${LD-ld} -n32"
10255      ;;
10256    *64-bit*)
10257      LD="${LD-ld} -64"
10258      ;;
10259    esac
10260   fi
10261  fi
10262  rm -rf conftest*
10263  ;;
10264
10265x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10266  # Find out which ABI we are using.
10267  echo 'int i;' > conftest.$ac_ext
10268  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269  (eval $ac_compile) 2>&5
10270  ac_status=$?
10271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272  (exit $ac_status); }; then
10273    case "`/usr/bin/file conftest.o`" in
10274    *32-bit*)
10275      case $host in
10276        x86_64-*linux*)
10277          LD="${LD-ld} -m elf_i386"
10278          ;;
10279        ppc64-*linux*|powerpc64-*linux*)
10280          LD="${LD-ld} -m elf32ppclinux"
10281          ;;
10282        s390x-*linux*)
10283          LD="${LD-ld} -m elf_s390"
10284          ;;
10285        sparc64-*linux*)
10286          LD="${LD-ld} -m elf32_sparc"
10287          ;;
10288      esac
10289      ;;
10290    *64-bit*)
10291      case $host in
10292        x86_64-*linux*)
10293          LD="${LD-ld} -m elf_x86_64"
10294          ;;
10295        ppc*-*linux*|powerpc*-*linux*)
10296          LD="${LD-ld} -m elf64ppc"
10297          ;;
10298        s390*-*linux*)
10299          LD="${LD-ld} -m elf64_s390"
10300          ;;
10301        sparc*-*linux*)
10302          LD="${LD-ld} -m elf64_sparc"
10303          ;;
10304      esac
10305      ;;
10306    esac
10307  fi
10308  rm -rf conftest*
10309  ;;
10310
10311*-*-sco3.2v5*)
10312  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10313  SAVE_CFLAGS="$CFLAGS"
10314  CFLAGS="$CFLAGS -belf"
10315  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10316echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10317if test "${lt_cv_cc_needs_belf+set}" = set; then
10318  echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320  ac_ext=c
10321ac_cpp='$CPP $CPPFLAGS'
10322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10324ac_compiler_gnu=$ac_cv_c_compiler_gnu
10325
10326     cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332
10333_ACEOF
10334rm -f conftest.$ac_objext conftest$ac_exeext
10335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336  (eval $ac_link) 2>conftest.er1
10337  ac_status=$?
10338  grep -v '^ *+' conftest.er1 >conftest.err
10339  rm -f conftest.er1
10340  cat conftest.err >&5
10341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342  (exit $ac_status); } &&
10343	 { ac_try='test -z "$ac_c_werror_flag"
10344			 || test ! -s conftest.err'
10345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346  (eval $ac_try) 2>&5
10347  ac_status=$?
10348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349  (exit $ac_status); }; } &&
10350	 { ac_try='test -s conftest$ac_exeext'
10351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352  (eval $ac_try) 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); }; }; then
10356  lt_cv_cc_needs_belf=yes
10357else
10358  echo "$as_me: failed program was:" >&5
10359sed 's/^/| /' conftest.$ac_ext >&5
10360
10361lt_cv_cc_needs_belf=no
10362fi
10363rm -f conftest.err conftest.$ac_objext \
10364      conftest$ac_exeext conftest.$ac_ext
10365     ac_ext=c
10366ac_cpp='$CPP $CPPFLAGS'
10367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10369ac_compiler_gnu=$ac_cv_c_compiler_gnu
10370
10371fi
10372echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10373echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10374  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10375    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10376    CFLAGS="$SAVE_CFLAGS"
10377  fi
10378  ;;
10379
10380esac
10381
10382need_locks="$enable_libtool_lock"
10383
10384
10385
10386
10387if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10388    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10389    (test "X$CXX" != "Xg++"))) ; then
10390  ac_ext=cc
10391ac_cpp='$CXXCPP $CPPFLAGS'
10392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10395echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10396echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10397if test -z "$CXXCPP"; then
10398  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10399  echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401      # Double quotes because CXXCPP needs to be expanded
10402    for CXXCPP in "$CXX -E" "/lib/cpp"
10403    do
10404      ac_preproc_ok=false
10405for ac_cxx_preproc_warn_flag in '' yes
10406do
10407  # Use a header file that comes with gcc, so configuring glibc
10408  # with a fresh cross-compiler works.
10409  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410  # <limits.h> exists even on freestanding compilers.
10411  # On the NeXT, cc -E runs the code through the compiler's parser,
10412  # not just through cpp. "Syntax error" is here to catch this case.
10413  cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h.  */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
10418/* end confdefs.h.  */
10419#ifdef __STDC__
10420# include <limits.h>
10421#else
10422# include <assert.h>
10423#endif
10424		     Syntax error
10425_ACEOF
10426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10427  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } >/dev/null; then
10434  if test -s conftest.err; then
10435    ac_cpp_err=$ac_cxx_preproc_warn_flag
10436    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10437  else
10438    ac_cpp_err=
10439  fi
10440else
10441  ac_cpp_err=yes
10442fi
10443if test -z "$ac_cpp_err"; then
10444  :
10445else
10446  echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449  # Broken: fails on valid input.
10450continue
10451fi
10452rm -f conftest.err conftest.$ac_ext
10453
10454  # OK, works on sane cases.  Now check whether non-existent headers
10455  # can be detected and how.
10456  cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h.  */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h.  */
10462#include <ac_nonexistent.h>
10463_ACEOF
10464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10466  ac_status=$?
10467  grep -v '^ *+' conftest.er1 >conftest.err
10468  rm -f conftest.er1
10469  cat conftest.err >&5
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); } >/dev/null; then
10472  if test -s conftest.err; then
10473    ac_cpp_err=$ac_cxx_preproc_warn_flag
10474    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10475  else
10476    ac_cpp_err=
10477  fi
10478else
10479  ac_cpp_err=yes
10480fi
10481if test -z "$ac_cpp_err"; then
10482  # Broken: success on invalid input.
10483continue
10484else
10485  echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488  # Passes both tests.
10489ac_preproc_ok=:
10490break
10491fi
10492rm -f conftest.err conftest.$ac_ext
10493
10494done
10495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10496rm -f conftest.err conftest.$ac_ext
10497if $ac_preproc_ok; then
10498  break
10499fi
10500
10501    done
10502    ac_cv_prog_CXXCPP=$CXXCPP
10503
10504fi
10505  CXXCPP=$ac_cv_prog_CXXCPP
10506else
10507  ac_cv_prog_CXXCPP=$CXXCPP
10508fi
10509echo "$as_me:$LINENO: result: $CXXCPP" >&5
10510echo "${ECHO_T}$CXXCPP" >&6
10511ac_preproc_ok=false
10512for ac_cxx_preproc_warn_flag in '' yes
10513do
10514  # Use a header file that comes with gcc, so configuring glibc
10515  # with a fresh cross-compiler works.
10516  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10517  # <limits.h> exists even on freestanding compilers.
10518  # On the NeXT, cc -E runs the code through the compiler's parser,
10519  # not just through cpp. "Syntax error" is here to catch this case.
10520  cat >conftest.$ac_ext <<_ACEOF
10521/* confdefs.h.  */
10522_ACEOF
10523cat confdefs.h >>conftest.$ac_ext
10524cat >>conftest.$ac_ext <<_ACEOF
10525/* end confdefs.h.  */
10526#ifdef __STDC__
10527# include <limits.h>
10528#else
10529# include <assert.h>
10530#endif
10531		     Syntax error
10532_ACEOF
10533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535  ac_status=$?
10536  grep -v '^ *+' conftest.er1 >conftest.err
10537  rm -f conftest.er1
10538  cat conftest.err >&5
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); } >/dev/null; then
10541  if test -s conftest.err; then
10542    ac_cpp_err=$ac_cxx_preproc_warn_flag
10543    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10544  else
10545    ac_cpp_err=
10546  fi
10547else
10548  ac_cpp_err=yes
10549fi
10550if test -z "$ac_cpp_err"; then
10551  :
10552else
10553  echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556  # Broken: fails on valid input.
10557continue
10558fi
10559rm -f conftest.err conftest.$ac_ext
10560
10561  # OK, works on sane cases.  Now check whether non-existent headers
10562  # can be detected and how.
10563  cat >conftest.$ac_ext <<_ACEOF
10564/* confdefs.h.  */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h.  */
10569#include <ac_nonexistent.h>
10570_ACEOF
10571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10572  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10573  ac_status=$?
10574  grep -v '^ *+' conftest.er1 >conftest.err
10575  rm -f conftest.er1
10576  cat conftest.err >&5
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); } >/dev/null; then
10579  if test -s conftest.err; then
10580    ac_cpp_err=$ac_cxx_preproc_warn_flag
10581    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10582  else
10583    ac_cpp_err=
10584  fi
10585else
10586  ac_cpp_err=yes
10587fi
10588if test -z "$ac_cpp_err"; then
10589  # Broken: success on invalid input.
10590continue
10591else
10592  echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595  # Passes both tests.
10596ac_preproc_ok=:
10597break
10598fi
10599rm -f conftest.err conftest.$ac_ext
10600
10601done
10602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10603rm -f conftest.err conftest.$ac_ext
10604if $ac_preproc_ok; then
10605  :
10606else
10607  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10608See \`config.log' for more details." >&5
10609echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10610See \`config.log' for more details." >&2;}
10611   { (exit 1); exit 1; }; }
10612fi
10613
10614ac_ext=cc
10615ac_cpp='$CXXCPP $CPPFLAGS'
10616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10619
10620fi
10621
10622
10623ac_ext=f
10624ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10625ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10627if test -n "$ac_tool_prefix"; then
10628  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10629  do
10630    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10632echo "$as_me:$LINENO: checking for $ac_word" >&5
10633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10634if test "${ac_cv_prog_F77+set}" = set; then
10635  echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637  if test -n "$F77"; then
10638  ac_cv_prog_F77="$F77" # Let the user override the test.
10639else
10640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641for as_dir in $PATH
10642do
10643  IFS=$as_save_IFS
10644  test -z "$as_dir" && as_dir=.
10645  for ac_exec_ext in '' $ac_executable_extensions; do
10646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10649    break 2
10650  fi
10651done
10652done
10653
10654fi
10655fi
10656F77=$ac_cv_prog_F77
10657if test -n "$F77"; then
10658  echo "$as_me:$LINENO: result: $F77" >&5
10659echo "${ECHO_T}$F77" >&6
10660else
10661  echo "$as_me:$LINENO: result: no" >&5
10662echo "${ECHO_T}no" >&6
10663fi
10664
10665    test -n "$F77" && break
10666  done
10667fi
10668if test -z "$F77"; then
10669  ac_ct_F77=$F77
10670  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10671do
10672  # Extract the first word of "$ac_prog", so it can be a program name with args.
10673set dummy $ac_prog; ac_word=$2
10674echo "$as_me:$LINENO: checking for $ac_word" >&5
10675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10676if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10677  echo $ECHO_N "(cached) $ECHO_C" >&6
10678else
10679  if test -n "$ac_ct_F77"; then
10680  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10681else
10682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683for as_dir in $PATH
10684do
10685  IFS=$as_save_IFS
10686  test -z "$as_dir" && as_dir=.
10687  for ac_exec_ext in '' $ac_executable_extensions; do
10688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689    ac_cv_prog_ac_ct_F77="$ac_prog"
10690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691    break 2
10692  fi
10693done
10694done
10695
10696fi
10697fi
10698ac_ct_F77=$ac_cv_prog_ac_ct_F77
10699if test -n "$ac_ct_F77"; then
10700  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10701echo "${ECHO_T}$ac_ct_F77" >&6
10702else
10703  echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705fi
10706
10707  test -n "$ac_ct_F77" && break
10708done
10709
10710  F77=$ac_ct_F77
10711fi
10712
10713
10714# Provide some information about the compiler.
10715echo "$as_me:10715:" \
10716     "checking for Fortran 77 compiler version" >&5
10717ac_compiler=`set X $ac_compile; echo $2`
10718{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10719  (eval $ac_compiler --version </dev/null >&5) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); }
10723{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10724  (eval $ac_compiler -v </dev/null >&5) 2>&5
10725  ac_status=$?
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); }
10728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10729  (eval $ac_compiler -V </dev/null >&5) 2>&5
10730  ac_status=$?
10731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732  (exit $ac_status); }
10733rm -f a.out
10734
10735# If we don't use `.F' as extension, the preprocessor is not run on the
10736# input file.  (Note that this only needs to work for GNU compilers.)
10737ac_save_ext=$ac_ext
10738ac_ext=F
10739echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10740echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10741if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10742  echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744  cat >conftest.$ac_ext <<_ACEOF
10745      program main
10746#ifndef __GNUC__
10747       choke me
10748#endif
10749
10750      end
10751_ACEOF
10752rm -f conftest.$ac_objext
10753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754  (eval $ac_compile) 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } &&
10761	 { ac_try='test -z "$ac_f77_werror_flag"
10762			 || test ! -s conftest.err'
10763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764  (eval $ac_try) 2>&5
10765  ac_status=$?
10766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767  (exit $ac_status); }; } &&
10768	 { ac_try='test -s conftest.$ac_objext'
10769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770  (eval $ac_try) 2>&5
10771  ac_status=$?
10772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773  (exit $ac_status); }; }; then
10774  ac_compiler_gnu=yes
10775else
10776  echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779ac_compiler_gnu=no
10780fi
10781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10782ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10783
10784fi
10785echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10786echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10787ac_ext=$ac_save_ext
10788ac_test_FFLAGS=${FFLAGS+set}
10789ac_save_FFLAGS=$FFLAGS
10790FFLAGS=
10791echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10792echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10793if test "${ac_cv_prog_f77_g+set}" = set; then
10794  echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796  FFLAGS=-g
10797cat >conftest.$ac_ext <<_ACEOF
10798      program main
10799
10800      end
10801_ACEOF
10802rm -f conftest.$ac_objext
10803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10804  (eval $ac_compile) 2>conftest.er1
10805  ac_status=$?
10806  grep -v '^ *+' conftest.er1 >conftest.err
10807  rm -f conftest.er1
10808  cat conftest.err >&5
10809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810  (exit $ac_status); } &&
10811	 { ac_try='test -z "$ac_f77_werror_flag"
10812			 || test ! -s conftest.err'
10813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814  (eval $ac_try) 2>&5
10815  ac_status=$?
10816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817  (exit $ac_status); }; } &&
10818	 { ac_try='test -s conftest.$ac_objext'
10819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820  (eval $ac_try) 2>&5
10821  ac_status=$?
10822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823  (exit $ac_status); }; }; then
10824  ac_cv_prog_f77_g=yes
10825else
10826  echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829ac_cv_prog_f77_g=no
10830fi
10831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10832
10833fi
10834echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10835echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10836if test "$ac_test_FFLAGS" = set; then
10837  FFLAGS=$ac_save_FFLAGS
10838elif test $ac_cv_prog_f77_g = yes; then
10839  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10840    FFLAGS="-g -O2"
10841  else
10842    FFLAGS="-g"
10843  fi
10844else
10845  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10846    FFLAGS="-O2"
10847  else
10848    FFLAGS=
10849  fi
10850fi
10851
10852G77=`test $ac_compiler_gnu = yes && echo yes`
10853ac_ext=c
10854ac_cpp='$CPP $CPPFLAGS'
10855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10857ac_compiler_gnu=$ac_cv_c_compiler_gnu
10858
10859
10860
10861# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10862
10863# find the maximum length of command line arguments
10864echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10865echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10866if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10867  echo $ECHO_N "(cached) $ECHO_C" >&6
10868else
10869    i=0
10870  teststring="ABCD"
10871
10872  case $build_os in
10873  msdosdjgpp*)
10874    # On DJGPP, this test can blow up pretty badly due to problems in libc
10875    # (any single argument exceeding 2000 bytes causes a buffer overrun
10876    # during glob expansion).  Even if it were fixed, the result of this
10877    # check would be larger than it should be.
10878    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10879    ;;
10880
10881  gnu*)
10882    # Under GNU Hurd, this test is not required because there is
10883    # no limit to the length of command line arguments.
10884    # Libtool will interpret -1 as no limit whatsoever
10885    lt_cv_sys_max_cmd_len=-1;
10886    ;;
10887
10888  cygwin* | mingw*)
10889    # On Win9x/ME, this test blows up -- it succeeds, but takes
10890    # about 5 minutes as the teststring grows exponentially.
10891    # Worse, since 9x/ME are not pre-emptively multitasking,
10892    # you end up with a "frozen" computer, even though with patience
10893    # the test eventually succeeds (with a max line length of 256k).
10894    # Instead, let's just punt: use the minimum linelength reported by
10895    # all of the supported platforms: 8192 (on NT/2K/XP).
10896    lt_cv_sys_max_cmd_len=8192;
10897    ;;
10898
10899  amigaos*)
10900    # On AmigaOS with pdksh, this test takes hours, literally.
10901    # So we just punt and use a minimum line length of 8192.
10902    lt_cv_sys_max_cmd_len=8192;
10903    ;;
10904
10905  netbsd* | freebsd* | openbsd* | darwin* )
10906    # This has been around since 386BSD, at least.  Likely further.
10907    if test -x /sbin/sysctl; then
10908      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10909    elif test -x /usr/sbin/sysctl; then
10910      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10911    else
10912      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10913    fi
10914    # And add a safety zone
10915    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10916    ;;
10917
10918 *)
10919    # If test is not a shell built-in, we'll probably end up computing a
10920    # maximum length that is only half of the actual maximum length, but
10921    # we can't tell.
10922    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10923    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10924	       = "XX$teststring") >/dev/null 2>&1 &&
10925	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
10926	    lt_cv_sys_max_cmd_len=$new_result &&
10927	    test $i != 17 # 1/2 MB should be enough
10928    do
10929      i=`expr $i + 1`
10930      teststring=$teststring$teststring
10931    done
10932    teststring=
10933    # Add a significant safety factor because C++ compilers can tack on massive
10934    # amounts of additional arguments before passing them to the linker.
10935    # It appears as though 1/2 is a usable value.
10936    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10937    ;;
10938  esac
10939
10940fi
10941
10942if test -n $lt_cv_sys_max_cmd_len ; then
10943  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10944echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10945else
10946  echo "$as_me:$LINENO: result: none" >&5
10947echo "${ECHO_T}none" >&6
10948fi
10949
10950
10951
10952
10953# Check for command to grab the raw symbol name followed by C symbol from nm.
10954echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10955echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10956if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10957  echo $ECHO_N "(cached) $ECHO_C" >&6
10958else
10959
10960# These are sane defaults that work on at least a few old systems.
10961# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10962
10963# Character class describing NM global symbol codes.
10964symcode='[BCDEGRST]'
10965
10966# Regexp to match symbols that can be accessed directly from C.
10967sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10968
10969# Transform the above into a raw symbol and a C symbol.
10970symxfrm='\1 \2\3 \3'
10971
10972# Transform an extracted symbol line into a proper C declaration
10973lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10974
10975# Transform an extracted symbol line into symbol name and symbol address
10976lt_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'"
10977
10978# Define system-specific variables.
10979case $host_os in
10980aix*)
10981  symcode='[BCDT]'
10982  ;;
10983cygwin* | mingw* | pw32*)
10984  symcode='[ABCDGISTW]'
10985  ;;
10986hpux*) # Its linker distinguishes data from code symbols
10987  if test "$host_cpu" = ia64; then
10988    symcode='[ABCDEGRST]'
10989  fi
10990  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10991  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'"
10992  ;;
10993linux*)
10994  if test "$host_cpu" = ia64; then
10995    symcode='[ABCDGIRSTW]'
10996    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10997    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'"
10998  fi
10999  ;;
11000irix* | nonstopux*)
11001  symcode='[BCDEGRST]'
11002  ;;
11003osf*)
11004  symcode='[BCDEGQRST]'
11005  ;;
11006solaris* | sysv5*)
11007  symcode='[BDRT]'
11008  ;;
11009sysv4)
11010  symcode='[DFNSTU]'
11011  ;;
11012esac
11013
11014# Handle CRLF in mingw tool chain
11015opt_cr=
11016case $build_os in
11017mingw*)
11018  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11019  ;;
11020esac
11021
11022# If we're using GNU nm, then use its standard symbol codes.
11023case `$NM -V 2>&1` in
11024*GNU* | *'with BFD'*)
11025  symcode='[ABCDGIRSTW]' ;;
11026esac
11027
11028# Try without a prefix undercore, then with it.
11029for ac_symprfx in "" "_"; do
11030
11031  # Write the raw and C identifiers.
11032  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11033
11034  # Check to see that the pipe works correctly.
11035  pipe_works=no
11036
11037  rm -f conftest*
11038  cat > conftest.$ac_ext <<EOF
11039#ifdef __cplusplus
11040extern "C" {
11041#endif
11042char nm_test_var;
11043void nm_test_func(){}
11044#ifdef __cplusplus
11045}
11046#endif
11047int main(){nm_test_var='a';nm_test_func();return(0);}
11048EOF
11049
11050  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051  (eval $ac_compile) 2>&5
11052  ac_status=$?
11053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054  (exit $ac_status); }; then
11055    # Now try to grab the symbols.
11056    nlist=conftest.nm
11057    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11058  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11059  ac_status=$?
11060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061  (exit $ac_status); } && test -s "$nlist"; then
11062      # Try sorting and uniquifying the output.
11063      if sort "$nlist" | uniq > "$nlist"T; then
11064	mv -f "$nlist"T "$nlist"
11065      else
11066	rm -f "$nlist"T
11067      fi
11068
11069      # Make sure that we snagged all the symbols we need.
11070      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11071	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11072	  cat <<EOF > conftest.$ac_ext
11073#ifdef __cplusplus
11074extern "C" {
11075#endif
11076
11077EOF
11078	  # Now generate the symbol file.
11079	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11080
11081	  cat <<EOF >> conftest.$ac_ext
11082#if defined (__STDC__) && __STDC__
11083# define lt_ptr_t void *
11084#else
11085# define lt_ptr_t char *
11086# define const
11087#endif
11088
11089/* The mapping between symbol names and symbols. */
11090const struct {
11091  const char *name;
11092  lt_ptr_t address;
11093}
11094lt_preloaded_symbols[] =
11095{
11096EOF
11097	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11098	  cat <<\EOF >> conftest.$ac_ext
11099  {0, (lt_ptr_t) 0}
11100};
11101
11102#ifdef __cplusplus
11103}
11104#endif
11105EOF
11106	  # Now try linking the two files.
11107	  mv conftest.$ac_objext conftstm.$ac_objext
11108	  lt_save_LIBS="$LIBS"
11109	  lt_save_CFLAGS="$CFLAGS"
11110	  LIBS="conftstm.$ac_objext"
11111	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11112	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113  (eval $ac_link) 2>&5
11114  ac_status=$?
11115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11117	    pipe_works=yes
11118	  fi
11119	  LIBS="$lt_save_LIBS"
11120	  CFLAGS="$lt_save_CFLAGS"
11121	else
11122	  echo "cannot find nm_test_func in $nlist" >&5
11123	fi
11124      else
11125	echo "cannot find nm_test_var in $nlist" >&5
11126      fi
11127    else
11128      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11129    fi
11130  else
11131    echo "$progname: failed program was:" >&5
11132    cat conftest.$ac_ext >&5
11133  fi
11134  rm -f conftest* conftst*
11135
11136  # Do not use the global_symbol_pipe unless it works.
11137  if test "$pipe_works" = yes; then
11138    break
11139  else
11140    lt_cv_sys_global_symbol_pipe=
11141  fi
11142done
11143
11144fi
11145
11146if test -z "$lt_cv_sys_global_symbol_pipe"; then
11147  lt_cv_sys_global_symbol_to_cdecl=
11148fi
11149if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11150  echo "$as_me:$LINENO: result: failed" >&5
11151echo "${ECHO_T}failed" >&6
11152else
11153  echo "$as_me:$LINENO: result: ok" >&5
11154echo "${ECHO_T}ok" >&6
11155fi
11156
11157echo "$as_me:$LINENO: checking for objdir" >&5
11158echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11159if test "${lt_cv_objdir+set}" = set; then
11160  echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162  rm -f .libs 2>/dev/null
11163mkdir .libs 2>/dev/null
11164if test -d .libs; then
11165  lt_cv_objdir=.libs
11166else
11167  # MS-DOS does not allow filenames that begin with a dot.
11168  lt_cv_objdir=_libs
11169fi
11170rmdir .libs 2>/dev/null
11171fi
11172echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11173echo "${ECHO_T}$lt_cv_objdir" >&6
11174objdir=$lt_cv_objdir
11175
11176
11177
11178
11179
11180case $host_os in
11181aix3*)
11182  # AIX sometimes has problems with the GCC collect2 program.  For some
11183  # reason, if we set the COLLECT_NAMES environment variable, the problems
11184  # vanish in a puff of smoke.
11185  if test "X${COLLECT_NAMES+set}" != Xset; then
11186    COLLECT_NAMES=
11187    export COLLECT_NAMES
11188  fi
11189  ;;
11190esac
11191
11192# Sed substitution that helps us do robust quoting.  It backslashifies
11193# metacharacters that are still active within double-quoted strings.
11194Xsed='sed -e s/^X//'
11195sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11196
11197# Same as above, but do not quote variable references.
11198double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11199
11200# Sed substitution to delay expansion of an escaped shell variable in a
11201# double_quote_subst'ed string.
11202delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11203
11204# Sed substitution to avoid accidental globbing in evaled expressions
11205no_glob_subst='s/\*/\\\*/g'
11206
11207# Constants:
11208rm="rm -f"
11209
11210# Global variables:
11211default_ofile=mklib
11212can_build_shared=yes
11213
11214# All known linkers require a `.a' archive for static linking (except M$VC,
11215# which needs '.lib').
11216libext=a
11217ltmain="$ac_aux_dir/ltmain.sh"
11218ofile="$default_ofile"
11219with_gnu_ld="$lt_cv_prog_gnu_ld"
11220
11221if test -n "$ac_tool_prefix"; then
11222  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11223set dummy ${ac_tool_prefix}ar; ac_word=$2
11224echo "$as_me:$LINENO: checking for $ac_word" >&5
11225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11226if test "${ac_cv_prog_AR+set}" = set; then
11227  echo $ECHO_N "(cached) $ECHO_C" >&6
11228else
11229  if test -n "$AR"; then
11230  ac_cv_prog_AR="$AR" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235  IFS=$as_save_IFS
11236  test -z "$as_dir" && as_dir=.
11237  for ac_exec_ext in '' $ac_executable_extensions; do
11238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239    ac_cv_prog_AR="${ac_tool_prefix}ar"
11240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11241    break 2
11242  fi
11243done
11244done
11245
11246fi
11247fi
11248AR=$ac_cv_prog_AR
11249if test -n "$AR"; then
11250  echo "$as_me:$LINENO: result: $AR" >&5
11251echo "${ECHO_T}$AR" >&6
11252else
11253  echo "$as_me:$LINENO: result: no" >&5
11254echo "${ECHO_T}no" >&6
11255fi
11256
11257fi
11258if test -z "$ac_cv_prog_AR"; then
11259  ac_ct_AR=$AR
11260  # Extract the first word of "ar", so it can be a program name with args.
11261set dummy ar; ac_word=$2
11262echo "$as_me:$LINENO: checking for $ac_word" >&5
11263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11264if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11265  echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267  if test -n "$ac_ct_AR"; then
11268  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11269else
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273  IFS=$as_save_IFS
11274  test -z "$as_dir" && as_dir=.
11275  for ac_exec_ext in '' $ac_executable_extensions; do
11276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277    ac_cv_prog_ac_ct_AR="ar"
11278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279    break 2
11280  fi
11281done
11282done
11283
11284  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11285fi
11286fi
11287ac_ct_AR=$ac_cv_prog_ac_ct_AR
11288if test -n "$ac_ct_AR"; then
11289  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11290echo "${ECHO_T}$ac_ct_AR" >&6
11291else
11292  echo "$as_me:$LINENO: result: no" >&5
11293echo "${ECHO_T}no" >&6
11294fi
11295
11296  AR=$ac_ct_AR
11297else
11298  AR="$ac_cv_prog_AR"
11299fi
11300
11301if test -n "$ac_tool_prefix"; then
11302  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11303set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11304echo "$as_me:$LINENO: checking for $ac_word" >&5
11305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11306if test "${ac_cv_prog_RANLIB+set}" = set; then
11307  echo $ECHO_N "(cached) $ECHO_C" >&6
11308else
11309  if test -n "$RANLIB"; then
11310  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315  IFS=$as_save_IFS
11316  test -z "$as_dir" && as_dir=.
11317  for ac_exec_ext in '' $ac_executable_extensions; do
11318  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321    break 2
11322  fi
11323done
11324done
11325
11326fi
11327fi
11328RANLIB=$ac_cv_prog_RANLIB
11329if test -n "$RANLIB"; then
11330  echo "$as_me:$LINENO: result: $RANLIB" >&5
11331echo "${ECHO_T}$RANLIB" >&6
11332else
11333  echo "$as_me:$LINENO: result: no" >&5
11334echo "${ECHO_T}no" >&6
11335fi
11336
11337fi
11338if test -z "$ac_cv_prog_RANLIB"; then
11339  ac_ct_RANLIB=$RANLIB
11340  # Extract the first word of "ranlib", so it can be a program name with args.
11341set dummy ranlib; ac_word=$2
11342echo "$as_me:$LINENO: checking for $ac_word" >&5
11343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11344if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11345  echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347  if test -n "$ac_ct_RANLIB"; then
11348  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11349else
11350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353  IFS=$as_save_IFS
11354  test -z "$as_dir" && as_dir=.
11355  for ac_exec_ext in '' $ac_executable_extensions; do
11356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357    ac_cv_prog_ac_ct_RANLIB="ranlib"
11358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11359    break 2
11360  fi
11361done
11362done
11363
11364  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11365fi
11366fi
11367ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11368if test -n "$ac_ct_RANLIB"; then
11369  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11370echo "${ECHO_T}$ac_ct_RANLIB" >&6
11371else
11372  echo "$as_me:$LINENO: result: no" >&5
11373echo "${ECHO_T}no" >&6
11374fi
11375
11376  RANLIB=$ac_ct_RANLIB
11377else
11378  RANLIB="$ac_cv_prog_RANLIB"
11379fi
11380
11381if test -n "$ac_tool_prefix"; then
11382  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11383set dummy ${ac_tool_prefix}strip; ac_word=$2
11384echo "$as_me:$LINENO: checking for $ac_word" >&5
11385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11386if test "${ac_cv_prog_STRIP+set}" = set; then
11387  echo $ECHO_N "(cached) $ECHO_C" >&6
11388else
11389  if test -n "$STRIP"; then
11390  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11391else
11392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $PATH
11394do
11395  IFS=$as_save_IFS
11396  test -z "$as_dir" && as_dir=.
11397  for ac_exec_ext in '' $ac_executable_extensions; do
11398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401    break 2
11402  fi
11403done
11404done
11405
11406fi
11407fi
11408STRIP=$ac_cv_prog_STRIP
11409if test -n "$STRIP"; then
11410  echo "$as_me:$LINENO: result: $STRIP" >&5
11411echo "${ECHO_T}$STRIP" >&6
11412else
11413  echo "$as_me:$LINENO: result: no" >&5
11414echo "${ECHO_T}no" >&6
11415fi
11416
11417fi
11418if test -z "$ac_cv_prog_STRIP"; then
11419  ac_ct_STRIP=$STRIP
11420  # Extract the first word of "strip", so it can be a program name with args.
11421set dummy strip; ac_word=$2
11422echo "$as_me:$LINENO: checking for $ac_word" >&5
11423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11424if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11425  echo $ECHO_N "(cached) $ECHO_C" >&6
11426else
11427  if test -n "$ac_ct_STRIP"; then
11428  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11429else
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433  IFS=$as_save_IFS
11434  test -z "$as_dir" && as_dir=.
11435  for ac_exec_ext in '' $ac_executable_extensions; do
11436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11437    ac_cv_prog_ac_ct_STRIP="strip"
11438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11439    break 2
11440  fi
11441done
11442done
11443
11444  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11445fi
11446fi
11447ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11448if test -n "$ac_ct_STRIP"; then
11449  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11450echo "${ECHO_T}$ac_ct_STRIP" >&6
11451else
11452  echo "$as_me:$LINENO: result: no" >&5
11453echo "${ECHO_T}no" >&6
11454fi
11455
11456  STRIP=$ac_ct_STRIP
11457else
11458  STRIP="$ac_cv_prog_STRIP"
11459fi
11460
11461
11462old_CC="$CC"
11463old_CFLAGS="$CFLAGS"
11464
11465# Set sane defaults for various variables
11466test -z "$AR" && AR=ar
11467test -z "$AR_FLAGS" && AR_FLAGS=cru
11468test -z "$AS" && AS=as
11469test -z "$CC" && CC=cc
11470test -z "$LTCC" && LTCC=$CC
11471test -z "$DLLTOOL" && DLLTOOL=dlltool
11472test -z "$LD" && LD=ld
11473test -z "$LN_S" && LN_S="ln -s"
11474test -z "$MAGIC_CMD" && MAGIC_CMD=file
11475test -z "$NM" && NM=nm
11476test -z "$SED" && SED=sed
11477test -z "$OBJDUMP" && OBJDUMP=objdump
11478test -z "$RANLIB" && RANLIB=:
11479test -z "$STRIP" && STRIP=:
11480test -z "$ac_objext" && ac_objext=o
11481
11482# Determine commands to create old-style static archives.
11483old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11484old_postinstall_cmds='chmod 644 $oldlib'
11485old_postuninstall_cmds=
11486
11487if test -n "$RANLIB"; then
11488  case $host_os in
11489  openbsd*)
11490    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11491    ;;
11492  *)
11493    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11494    ;;
11495  esac
11496  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11497fi
11498
11499cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11500
11501# Only perform the check for file, if the check method requires it
11502case $deplibs_check_method in
11503file_magic*)
11504  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11505    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11506echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11507if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11508  echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510  case $MAGIC_CMD in
11511[\\/*] |  ?:[\\/]*)
11512  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11513  ;;
11514*)
11515  lt_save_MAGIC_CMD="$MAGIC_CMD"
11516  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11517  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11518  for ac_dir in $ac_dummy; do
11519    IFS="$lt_save_ifs"
11520    test -z "$ac_dir" && ac_dir=.
11521    if test -f $ac_dir/${ac_tool_prefix}file; then
11522      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11523      if test -n "$file_magic_test_file"; then
11524	case $deplibs_check_method in
11525	"file_magic "*)
11526	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11527	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11528	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11529	    $EGREP "$file_magic_regex" > /dev/null; then
11530	    :
11531	  else
11532	    cat <<EOF 1>&2
11533
11534*** Warning: the command libtool uses to detect shared libraries,
11535*** $file_magic_cmd, produces output that libtool cannot recognize.
11536*** The result is that libtool may fail to recognize shared libraries
11537*** as such.  This will affect the creation of libtool libraries that
11538*** depend on shared libraries, but programs linked with such libtool
11539*** libraries will work regardless of this problem.  Nevertheless, you
11540*** may want to report the problem to your system manager and/or to
11541*** bug-libtool@gnu.org
11542
11543EOF
11544	  fi ;;
11545	esac
11546      fi
11547      break
11548    fi
11549  done
11550  IFS="$lt_save_ifs"
11551  MAGIC_CMD="$lt_save_MAGIC_CMD"
11552  ;;
11553esac
11554fi
11555
11556MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11557if test -n "$MAGIC_CMD"; then
11558  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11559echo "${ECHO_T}$MAGIC_CMD" >&6
11560else
11561  echo "$as_me:$LINENO: result: no" >&5
11562echo "${ECHO_T}no" >&6
11563fi
11564
11565if test -z "$lt_cv_path_MAGIC_CMD"; then
11566  if test -n "$ac_tool_prefix"; then
11567    echo "$as_me:$LINENO: checking for file" >&5
11568echo $ECHO_N "checking for file... $ECHO_C" >&6
11569if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11570  echo $ECHO_N "(cached) $ECHO_C" >&6
11571else
11572  case $MAGIC_CMD in
11573[\\/*] |  ?:[\\/]*)
11574  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11575  ;;
11576*)
11577  lt_save_MAGIC_CMD="$MAGIC_CMD"
11578  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11579  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11580  for ac_dir in $ac_dummy; do
11581    IFS="$lt_save_ifs"
11582    test -z "$ac_dir" && ac_dir=.
11583    if test -f $ac_dir/file; then
11584      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11585      if test -n "$file_magic_test_file"; then
11586	case $deplibs_check_method in
11587	"file_magic "*)
11588	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11589	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11590	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11591	    $EGREP "$file_magic_regex" > /dev/null; then
11592	    :
11593	  else
11594	    cat <<EOF 1>&2
11595
11596*** Warning: the command libtool uses to detect shared libraries,
11597*** $file_magic_cmd, produces output that libtool cannot recognize.
11598*** The result is that libtool may fail to recognize shared libraries
11599*** as such.  This will affect the creation of libtool libraries that
11600*** depend on shared libraries, but programs linked with such libtool
11601*** libraries will work regardless of this problem.  Nevertheless, you
11602*** may want to report the problem to your system manager and/or to
11603*** bug-libtool@gnu.org
11604
11605EOF
11606	  fi ;;
11607	esac
11608      fi
11609      break
11610    fi
11611  done
11612  IFS="$lt_save_ifs"
11613  MAGIC_CMD="$lt_save_MAGIC_CMD"
11614  ;;
11615esac
11616fi
11617
11618MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11619if test -n "$MAGIC_CMD"; then
11620  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11621echo "${ECHO_T}$MAGIC_CMD" >&6
11622else
11623  echo "$as_me:$LINENO: result: no" >&5
11624echo "${ECHO_T}no" >&6
11625fi
11626
11627  else
11628    MAGIC_CMD=:
11629  fi
11630fi
11631
11632  fi
11633  ;;
11634esac
11635
11636enable_dlopen=yes
11637enable_win32_dll=no
11638
11639# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11640if test "${enable_libtool_lock+set}" = set; then
11641  enableval="$enable_libtool_lock"
11642
11643fi;
11644test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11645
11646
11647# Check whether --with-pic or --without-pic was given.
11648if test "${with_pic+set}" = set; then
11649  withval="$with_pic"
11650  pic_mode="$withval"
11651else
11652  pic_mode=default
11653fi;
11654test -z "$pic_mode" && pic_mode=default
11655
11656# Use C for the default configuration in the libtool script
11657tagname=
11658lt_save_CC="$CC"
11659ac_ext=c
11660ac_cpp='$CPP $CPPFLAGS'
11661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11663ac_compiler_gnu=$ac_cv_c_compiler_gnu
11664
11665
11666# Source file extension for C test sources.
11667ac_ext=c
11668
11669# Object file extension for compiled C test sources.
11670objext=o
11671objext=$objext
11672
11673# Code to be used in simple compile tests
11674lt_simple_compile_test_code="int some_variable = 0;\n"
11675
11676# Code to be used in simple link tests
11677lt_simple_link_test_code='int main(){return(0);}\n'
11678
11679
11680# If no C compiler was specified, use CC.
11681LTCC=${LTCC-"$CC"}
11682
11683# Allow CC to be a program name with arguments.
11684compiler=$CC
11685
11686
11687#
11688# Check for any special shared library compilation flags.
11689#
11690lt_prog_cc_shlib=
11691if test "$GCC" = no; then
11692  case $host_os in
11693  sco3.2v5*)
11694    lt_prog_cc_shlib='-belf'
11695    ;;
11696  esac
11697fi
11698if test -n "$lt_prog_cc_shlib"; then
11699  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11700echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11701  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
11702  else
11703    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11704echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11705    lt_cv_prog_cc_can_build_shared=no
11706  fi
11707fi
11708
11709
11710#
11711# Check to make sure the static flag actually works.
11712#
11713echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11714echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11715if test "${lt_prog_compiler_static_works+set}" = set; then
11716  echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718  lt_prog_compiler_static_works=no
11719   save_LDFLAGS="$LDFLAGS"
11720   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11721   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11722   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11723     # The compiler can only warn and ignore the option if not recognized
11724     # So say no if there are warnings
11725     if test -s conftest.err; then
11726       # Append any errors to the config.log.
11727       cat conftest.err 1>&5
11728     else
11729       lt_prog_compiler_static_works=yes
11730     fi
11731   fi
11732   $rm conftest*
11733   LDFLAGS="$save_LDFLAGS"
11734
11735fi
11736echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11737echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11738
11739if test x"$lt_prog_compiler_static_works" = xyes; then
11740    :
11741else
11742    lt_prog_compiler_static=
11743fi
11744
11745
11746
11747
11748lt_prog_compiler_no_builtin_flag=
11749
11750if test "$GCC" = yes; then
11751  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11752
11753
11754echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11755echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11756if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11757  echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759  lt_cv_prog_compiler_rtti_exceptions=no
11760  ac_outfile=conftest.$ac_objext
11761   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11762   lt_compiler_flag="-fno-rtti -fno-exceptions"
11763   # Insert the option either (1) after the last *FLAGS variable, or
11764   # (2) before a word containing "conftest.", or (3) at the end.
11765   # Note that $ac_compile itself does not contain backslashes and begins
11766   # with a dollar sign (not a hyphen), so the echo should work correctly.
11767   # The option is referenced via a variable to avoid confusing sed.
11768   lt_compile=`echo "$ac_compile" | $SED \
11769   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11770   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11771   -e 's:$: $lt_compiler_flag:'`
11772   (eval echo "\"\$as_me:11772: $lt_compile\"" >&5)
11773   (eval "$lt_compile" 2>conftest.err)
11774   ac_status=$?
11775   cat conftest.err >&5
11776   echo "$as_me:11776: \$? = $ac_status" >&5
11777   if (exit $ac_status) && test -s "$ac_outfile"; then
11778     # The compiler can only warn and ignore the option if not recognized
11779     # So say no if there are warnings
11780     if test ! -s conftest.err; then
11781       lt_cv_prog_compiler_rtti_exceptions=yes
11782     fi
11783   fi
11784   $rm conftest*
11785
11786fi
11787echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11788echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11789
11790if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11791    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11792else
11793    :
11794fi
11795
11796fi
11797
11798lt_prog_compiler_wl=
11799lt_prog_compiler_pic=
11800lt_prog_compiler_static=
11801
11802echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11803echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11804
11805  if test "$GCC" = yes; then
11806    lt_prog_compiler_wl='-Wl,'
11807    lt_prog_compiler_static='-static'
11808
11809    case $host_os in
11810      aix*)
11811      # All AIX code is PIC.
11812      if test "$host_cpu" = ia64; then
11813	# AIX 5 now supports IA64 processor
11814	lt_prog_compiler_static='-Bstatic'
11815      fi
11816      ;;
11817
11818    amigaos*)
11819      # FIXME: we need at least 68020 code to build shared libraries, but
11820      # adding the `-m68020' flag to GCC prevents building anything better,
11821      # like `-m68040'.
11822      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11823      ;;
11824
11825    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11826      # PIC is the default for these OSes.
11827      ;;
11828
11829    mingw* | pw32* | os2*)
11830      # This hack is so that the source file can tell whether it is being
11831      # built for inclusion in a dll (and should export symbols for example).
11832      lt_prog_compiler_pic='-DDLL_EXPORT'
11833      ;;
11834
11835    darwin* | rhapsody*)
11836      # PIC is the default on this platform
11837      # Common symbols not allowed in MH_DYLIB files
11838      lt_prog_compiler_pic='-fno-common'
11839      ;;
11840
11841    msdosdjgpp*)
11842      # Just because we use GCC doesn't mean we suddenly get shared libraries
11843      # on systems that don't support them.
11844      lt_prog_compiler_can_build_shared=no
11845      enable_shared=no
11846      ;;
11847
11848    sysv4*MP*)
11849      if test -d /usr/nec; then
11850	lt_prog_compiler_pic=-Kconform_pic
11851      fi
11852      ;;
11853
11854    hpux*)
11855      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856      # not for PA HP-UX.
11857      case "$host_cpu" in
11858      hppa*64*|ia64*)
11859	# +Z the default
11860	;;
11861      *)
11862	lt_prog_compiler_pic='-fPIC'
11863	;;
11864      esac
11865      ;;
11866
11867    *)
11868      lt_prog_compiler_pic='-fPIC'
11869      ;;
11870    esac
11871  else
11872    # PORTME Check for flag to pass linker flags through the system compiler.
11873    case $host_os in
11874    aix*)
11875      lt_prog_compiler_wl='-Wl,'
11876      if test "$host_cpu" = ia64; then
11877	# AIX 5 now supports IA64 processor
11878	lt_prog_compiler_static='-Bstatic'
11879      else
11880	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11881      fi
11882      ;;
11883      darwin*)
11884        # PIC is the default on this platform
11885        # Common symbols not allowed in MH_DYLIB files
11886       case "$cc_basename" in
11887         xlc*)
11888         lt_prog_compiler_pic='-qnocommon'
11889         lt_prog_compiler_wl='-Wl,'
11890         ;;
11891       esac
11892       ;;
11893
11894    mingw* | pw32* | os2*)
11895      # This hack is so that the source file can tell whether it is being
11896      # built for inclusion in a dll (and should export symbols for example).
11897      lt_prog_compiler_pic='-DDLL_EXPORT'
11898      ;;
11899
11900    hpux9* | hpux10* | hpux11*)
11901      lt_prog_compiler_wl='-Wl,'
11902      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11903      # not for PA HP-UX.
11904      case "$host_cpu" in
11905      hppa*64*|ia64*)
11906	# +Z the default
11907	;;
11908      *)
11909	lt_prog_compiler_pic='+Z'
11910	;;
11911      esac
11912      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11913      lt_prog_compiler_static='${wl}-a ${wl}archive'
11914      ;;
11915
11916    irix5* | irix6* | nonstopux*)
11917      lt_prog_compiler_wl='-Wl,'
11918      # PIC (with -KPIC) is the default.
11919      lt_prog_compiler_static='-non_shared'
11920      ;;
11921
11922    newsos6)
11923      lt_prog_compiler_pic='-KPIC'
11924      lt_prog_compiler_static='-Bstatic'
11925      ;;
11926
11927    linux*)
11928      case $CC in
11929      icc* | ecc*)
11930	lt_prog_compiler_wl='-Wl,'
11931	lt_prog_compiler_pic='-KPIC'
11932	lt_prog_compiler_static='-static'
11933        ;;
11934      ccc*)
11935        lt_prog_compiler_wl='-Wl,'
11936        # All Alpha code is PIC.
11937        lt_prog_compiler_static='-non_shared'
11938        ;;
11939      esac
11940      ;;
11941
11942    osf3* | osf4* | osf5*)
11943      lt_prog_compiler_wl='-Wl,'
11944      # All OSF/1 code is PIC.
11945      lt_prog_compiler_static='-non_shared'
11946      ;;
11947
11948    sco3.2v5*)
11949      lt_prog_compiler_pic='-Kpic'
11950      lt_prog_compiler_static='-dn'
11951      ;;
11952
11953    solaris*)
11954      lt_prog_compiler_wl='-Wl,'
11955      lt_prog_compiler_pic='-KPIC'
11956      lt_prog_compiler_static='-Bstatic'
11957      ;;
11958
11959    sunos4*)
11960      lt_prog_compiler_wl='-Qoption ld '
11961      lt_prog_compiler_pic='-PIC'
11962      lt_prog_compiler_static='-Bstatic'
11963      ;;
11964
11965    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11966      lt_prog_compiler_wl='-Wl,'
11967      lt_prog_compiler_pic='-KPIC'
11968      lt_prog_compiler_static='-Bstatic'
11969      ;;
11970
11971    sysv4*MP*)
11972      if test -d /usr/nec ;then
11973	lt_prog_compiler_pic='-Kconform_pic'
11974	lt_prog_compiler_static='-Bstatic'
11975      fi
11976      ;;
11977
11978    uts4*)
11979      lt_prog_compiler_pic='-pic'
11980      lt_prog_compiler_static='-Bstatic'
11981      ;;
11982
11983    *)
11984      lt_prog_compiler_can_build_shared=no
11985      ;;
11986    esac
11987  fi
11988
11989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11990echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11991
11992#
11993# Check to make sure the PIC flag actually works.
11994#
11995if test -n "$lt_prog_compiler_pic"; then
11996
11997echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11999if test "${lt_prog_compiler_pic_works+set}" = set; then
12000  echo $ECHO_N "(cached) $ECHO_C" >&6
12001else
12002  lt_prog_compiler_pic_works=no
12003  ac_outfile=conftest.$ac_objext
12004   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12005   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12006   # Insert the option either (1) after the last *FLAGS variable, or
12007   # (2) before a word containing "conftest.", or (3) at the end.
12008   # Note that $ac_compile itself does not contain backslashes and begins
12009   # with a dollar sign (not a hyphen), so the echo should work correctly.
12010   # The option is referenced via a variable to avoid confusing sed.
12011   lt_compile=`echo "$ac_compile" | $SED \
12012   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12014   -e 's:$: $lt_compiler_flag:'`
12015   (eval echo "\"\$as_me:12015: $lt_compile\"" >&5)
12016   (eval "$lt_compile" 2>conftest.err)
12017   ac_status=$?
12018   cat conftest.err >&5
12019   echo "$as_me:12019: \$? = $ac_status" >&5
12020   if (exit $ac_status) && test -s "$ac_outfile"; then
12021     # The compiler can only warn and ignore the option if not recognized
12022     # So say no if there are warnings
12023     if test ! -s conftest.err; then
12024       lt_prog_compiler_pic_works=yes
12025     fi
12026   fi
12027   $rm conftest*
12028
12029fi
12030echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12031echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12032
12033if test x"$lt_prog_compiler_pic_works" = xyes; then
12034    case $lt_prog_compiler_pic in
12035     "" | " "*) ;;
12036     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12037     esac
12038else
12039    lt_prog_compiler_pic=
12040     lt_prog_compiler_can_build_shared=no
12041fi
12042
12043fi
12044case "$host_os" in
12045  # For platforms which do not support PIC, -DPIC is meaningless:
12046  *djgpp*)
12047    lt_prog_compiler_pic=
12048    ;;
12049  *)
12050    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12051    ;;
12052esac
12053
12054echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12055echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12056if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12057  echo $ECHO_N "(cached) $ECHO_C" >&6
12058else
12059  lt_cv_prog_compiler_c_o=no
12060   $rm -r conftest 2>/dev/null
12061   mkdir conftest
12062   cd conftest
12063   mkdir out
12064   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12065
12066   lt_compiler_flag="-o out/conftest2.$ac_objext"
12067   # Insert the option either (1) after the last *FLAGS variable, or
12068   # (2) before a word containing "conftest.", or (3) at the end.
12069   # Note that $ac_compile itself does not contain backslashes and begins
12070   # with a dollar sign (not a hyphen), so the echo should work correctly.
12071   lt_compile=`echo "$ac_compile" | $SED \
12072   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12074   -e 's:$: $lt_compiler_flag:'`
12075   (eval echo "\"\$as_me:12075: $lt_compile\"" >&5)
12076   (eval "$lt_compile" 2>out/conftest.err)
12077   ac_status=$?
12078   cat out/conftest.err >&5
12079   echo "$as_me:12079: \$? = $ac_status" >&5
12080   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12081   then
12082     # The compiler can only warn and ignore the option if not recognized
12083     # So say no if there are warnings
12084     if test ! -s out/conftest.err; then
12085       lt_cv_prog_compiler_c_o=yes
12086     fi
12087   fi
12088   chmod u+w .
12089   $rm conftest*
12090   # SGI C++ compiler will create directory out/ii_files/ for
12091   # template instantiation
12092   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12093   $rm out/* && rmdir out
12094   cd ..
12095   rmdir conftest
12096   $rm conftest*
12097
12098fi
12099echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12100echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12101
12102
12103hard_links="nottested"
12104if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12105  # do not overwrite the value of need_locks provided by the user
12106  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12107echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12108  hard_links=yes
12109  $rm conftest*
12110  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12111  touch conftest.a
12112  ln conftest.a conftest.b 2>&5 || hard_links=no
12113  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12114  echo "$as_me:$LINENO: result: $hard_links" >&5
12115echo "${ECHO_T}$hard_links" >&6
12116  if test "$hard_links" = no; then
12117    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12118echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12119    need_locks=warn
12120  fi
12121else
12122  need_locks=no
12123fi
12124
12125echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12126echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12127
12128  runpath_var=
12129  allow_undefined_flag=
12130  enable_shared_with_static_runtimes=no
12131  archive_cmds=
12132  archive_expsym_cmds=
12133  old_archive_From_new_cmds=
12134  old_archive_from_expsyms_cmds=
12135  export_dynamic_flag_spec=
12136  whole_archive_flag_spec=
12137  thread_safe_flag_spec=
12138  hardcode_libdir_flag_spec=
12139  hardcode_libdir_flag_spec_ld=
12140  hardcode_libdir_separator=
12141  hardcode_direct=no
12142  hardcode_minus_L=no
12143  hardcode_shlibpath_var=unsupported
12144  link_all_deplibs=unknown
12145  hardcode_automatic=no
12146  module_cmds=
12147  module_expsym_cmds=
12148  always_export_symbols=no
12149  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12150  # include_expsyms should be a list of space-separated symbols to be *always*
12151  # included in the symbol list
12152  include_expsyms=
12153  # exclude_expsyms can be an extended regexp of symbols to exclude
12154  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12155  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12156  # as well as any symbol that contains `d'.
12157  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12158  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12159  # platforms (ab)use it in PIC code, but their linkers get confused if
12160  # the symbol is explicitly referenced.  Since portable code cannot
12161  # rely on this symbol name, it's probably fine to never include it in
12162  # preloaded symbol tables.
12163  extract_expsyms_cmds=
12164
12165  case $host_os in
12166  cygwin* | mingw* | pw32*)
12167    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12168    # When not using gcc, we currently assume that we are using
12169    # Microsoft Visual C++.
12170    if test "$GCC" != yes; then
12171      with_gnu_ld=no
12172    fi
12173    ;;
12174  openbsd*)
12175    with_gnu_ld=no
12176    ;;
12177  esac
12178
12179  ld_shlibs=yes
12180  if test "$with_gnu_ld" = yes; then
12181    # If archive_cmds runs LD, not CC, wlarc should be empty
12182    wlarc='${wl}'
12183
12184    # See if GNU ld supports shared libraries.
12185    case $host_os in
12186    aix3* | aix4* | aix5*)
12187      # On AIX/PPC, the GNU linker is very broken
12188      if test "$host_cpu" != ia64; then
12189	ld_shlibs=no
12190	cat <<EOF 1>&2
12191
12192*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12193*** to be unable to reliably create shared libraries on AIX.
12194*** Therefore, libtool is disabling shared libraries support.  If you
12195*** really care for shared libraries, you may want to modify your PATH
12196*** so that a non-GNU linker is found, and then restart.
12197
12198EOF
12199      fi
12200      ;;
12201
12202    amigaos*)
12203      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)'
12204      hardcode_libdir_flag_spec='-L$libdir'
12205      hardcode_minus_L=yes
12206
12207      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12208      # that the semantics of dynamic libraries on AmigaOS, at least up
12209      # to version 4, is to share data among multiple programs linked
12210      # with the same dynamic library.  Since this doesn't match the
12211      # behavior of shared libraries on other platforms, we can't use
12212      # them.
12213      ld_shlibs=no
12214      ;;
12215
12216    beos*)
12217      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12218	allow_undefined_flag=unsupported
12219	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12220	# support --undefined.  This deserves some investigation.  FIXME
12221	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12222      else
12223	ld_shlibs=no
12224      fi
12225      ;;
12226
12227    cygwin* | mingw* | pw32*)
12228      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12229      # as there is no search path for DLLs.
12230      hardcode_libdir_flag_spec='-L$libdir'
12231      allow_undefined_flag=unsupported
12232      always_export_symbols=no
12233      enable_shared_with_static_runtimes=yes
12234      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12235
12236      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12237        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12238	# If the export-symbols file already is a .def file (1st line
12239	# is EXPORTS), use it as is; otherwise, prepend...
12240	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12241	  cp $export_symbols $output_objdir/$soname.def;
12242	else
12243	  echo EXPORTS > $output_objdir/$soname.def;
12244	  cat $export_symbols >> $output_objdir/$soname.def;
12245	fi~
12246	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12247      else
12248	ld_shlibs=no
12249      fi
12250      ;;
12251
12252    netbsd*)
12253      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12254	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12255	wlarc=
12256      else
12257	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259      fi
12260      ;;
12261
12262    solaris* | sysv5*)
12263      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12264	ld_shlibs=no
12265	cat <<EOF 1>&2
12266
12267*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12268*** create shared libraries on Solaris systems.  Therefore, libtool
12269*** is disabling shared libraries support.  We urge you to upgrade GNU
12270*** binutils to release 2.9.1 or newer.  Another option is to modify
12271*** your PATH or compiler configuration so that the native linker is
12272*** used, and then restart.
12273
12274EOF
12275      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12276	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12278      else
12279	ld_shlibs=no
12280      fi
12281      ;;
12282
12283    sunos4*)
12284      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12285      wlarc=
12286      hardcode_direct=yes
12287      hardcode_shlibpath_var=no
12288      ;;
12289
12290  linux*)
12291    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12292        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293	archive_cmds="$tmp_archive_cmds"
12294      supports_anon_versioning=no
12295      case `$LD -v 2>/dev/null` in
12296        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12297        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12298        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12299        *\ 2.11.*) ;; # other 2.11 versions
12300        *) supports_anon_versioning=yes ;;
12301      esac
12302      if test $supports_anon_versioning = yes; then
12303        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12304cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12305$echo "local: *; };" >> $output_objdir/$libname.ver~
12306        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12307      else
12308        archive_expsym_cmds="$tmp_archive_cmds"
12309      fi
12310    else
12311      ld_shlibs=no
12312    fi
12313    ;;
12314
12315    *)
12316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12317	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12318	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12319      else
12320	ld_shlibs=no
12321      fi
12322      ;;
12323    esac
12324
12325    if test "$ld_shlibs" = yes; then
12326      runpath_var=LD_RUN_PATH
12327      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12328      export_dynamic_flag_spec='${wl}--export-dynamic'
12329      # ancient GNU ld didn't support --whole-archive et. al.
12330      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12331 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12332      else
12333  	whole_archive_flag_spec=
12334      fi
12335    fi
12336  else
12337    # PORTME fill in a description of your system's linker (not GNU ld)
12338    case $host_os in
12339    aix3*)
12340      allow_undefined_flag=unsupported
12341      always_export_symbols=yes
12342      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'
12343      # Note: this linker hardcodes the directories in LIBPATH if there
12344      # are no directories specified by -L.
12345      hardcode_minus_L=yes
12346      if test "$GCC" = yes && test -z "$link_static_flag"; then
12347	# Neither direct hardcoding nor static linking is supported with a
12348	# broken collect2.
12349	hardcode_direct=unsupported
12350      fi
12351      ;;
12352
12353    aix4* | aix5*)
12354      if test "$host_cpu" = ia64; then
12355	# On IA64, the linker does run time linking by default, so we don't
12356	# have to do anything special.
12357	aix_use_runtimelinking=no
12358	exp_sym_flag='-Bexport'
12359	no_entry_flag=""
12360      else
12361	# If we're using GNU nm, then we don't want the "-C" option.
12362	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12363	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12364	  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'
12365	else
12366	  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'
12367	fi
12368	aix_use_runtimelinking=no
12369
12370	# Test if we are trying to use run time linking or normal
12371	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12372	# need to do runtime linking.
12373	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12374	  for ld_flag in $LDFLAGS; do
12375  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12376  	    aix_use_runtimelinking=yes
12377  	    break
12378  	  fi
12379	  done
12380	esac
12381
12382	exp_sym_flag='-bexport'
12383	no_entry_flag='-bnoentry'
12384      fi
12385
12386      # When large executables or shared objects are built, AIX ld can
12387      # have problems creating the table of contents.  If linking a library
12388      # or program results in "error TOC overflow" add -mminimal-toc to
12389      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12390      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12391
12392      archive_cmds=''
12393      hardcode_direct=yes
12394      hardcode_libdir_separator=':'
12395      link_all_deplibs=yes
12396
12397      if test "$GCC" = yes; then
12398	case $host_os in aix4.012|aix4.012.*)
12399	# We only want to do this on AIX 4.2 and lower, the check
12400	# below for broken collect2 doesn't work under 4.3+
12401	  collect2name=`${CC} -print-prog-name=collect2`
12402	  if test -f "$collect2name" && \
12403  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12404	  then
12405  	  # We have reworked collect2
12406  	  hardcode_direct=yes
12407	  else
12408  	  # We have old collect2
12409  	  hardcode_direct=unsupported
12410  	  # It fails to find uninstalled libraries when the uninstalled
12411  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12412  	  # to unsupported forces relinking
12413  	  hardcode_minus_L=yes
12414  	  hardcode_libdir_flag_spec='-L$libdir'
12415  	  hardcode_libdir_separator=
12416	  fi
12417	esac
12418	shared_flag='-shared'
12419      else
12420	# not using gcc
12421	if test "$host_cpu" = ia64; then
12422  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12423  	# chokes on -Wl,-G. The following line is correct:
12424	  shared_flag='-G'
12425	else
12426  	if test "$aix_use_runtimelinking" = yes; then
12427	    shared_flag='${wl}-G'
12428	  else
12429	    shared_flag='${wl}-bM:SRE'
12430  	fi
12431	fi
12432      fi
12433
12434      # It seems that -bexpall does not export symbols beginning with
12435      # underscore (_), so it is better to generate a list of symbols to export.
12436      always_export_symbols=yes
12437      if test "$aix_use_runtimelinking" = yes; then
12438	# Warning - without using the other runtime loading flags (-brtl),
12439	# -berok will link without error, but may produce a broken library.
12440	allow_undefined_flag='-berok'
12441       # Determine the default libpath from the value encoded in an empty executable.
12442       cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h.  */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h.  */
12448
12449int
12450main ()
12451{
12452
12453  ;
12454  return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext conftest$ac_exeext
12458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12459  (eval $ac_link) 2>conftest.er1
12460  ac_status=$?
12461  grep -v '^ *+' conftest.er1 >conftest.err
12462  rm -f conftest.er1
12463  cat conftest.err >&5
12464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465  (exit $ac_status); } &&
12466	 { ac_try='test -z "$ac_c_werror_flag"
12467			 || test ! -s conftest.err'
12468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469  (eval $ac_try) 2>&5
12470  ac_status=$?
12471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472  (exit $ac_status); }; } &&
12473	 { ac_try='test -s conftest$ac_exeext'
12474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475  (eval $ac_try) 2>&5
12476  ac_status=$?
12477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478  (exit $ac_status); }; }; then
12479
12480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12481}'`
12482# Check for a 64-bit object if we didn't find anything.
12483if 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; }
12484}'`; fi
12485else
12486  echo "$as_me: failed program was:" >&5
12487sed 's/^/| /' conftest.$ac_ext >&5
12488
12489fi
12490rm -f conftest.err conftest.$ac_objext \
12491      conftest$ac_exeext conftest.$ac_ext
12492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12493
12494       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12495	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"
12496       else
12497	if test "$host_cpu" = ia64; then
12498	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12499	  allow_undefined_flag="-z nodefs"
12500	  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"
12501	else
12502	 # Determine the default libpath from the value encoded in an empty executable.
12503	 cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h.  */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h.  */
12509
12510int
12511main ()
12512{
12513
12514  ;
12515  return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
12519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520  (eval $ac_link) 2>conftest.er1
12521  ac_status=$?
12522  grep -v '^ *+' conftest.er1 >conftest.err
12523  rm -f conftest.er1
12524  cat conftest.err >&5
12525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526  (exit $ac_status); } &&
12527	 { ac_try='test -z "$ac_c_werror_flag"
12528			 || test ! -s conftest.err'
12529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530  (eval $ac_try) 2>&5
12531  ac_status=$?
12532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533  (exit $ac_status); }; } &&
12534	 { ac_try='test -s conftest$ac_exeext'
12535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536  (eval $ac_try) 2>&5
12537  ac_status=$?
12538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539  (exit $ac_status); }; }; then
12540
12541aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12542}'`
12543# Check for a 64-bit object if we didn't find anything.
12544if 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; }
12545}'`; fi
12546else
12547  echo "$as_me: failed program was:" >&5
12548sed 's/^/| /' conftest.$ac_ext >&5
12549
12550fi
12551rm -f conftest.err conftest.$ac_objext \
12552      conftest$ac_exeext conftest.$ac_ext
12553if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12554
12555	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12556	  # Warning - without using the other run time loading flags,
12557	  # -berok will link without error, but may produce a broken library.
12558	  no_undefined_flag=' ${wl}-bernotok'
12559	  allow_undefined_flag=' ${wl}-berok'
12560	  # -bexpall does not export symbols beginning with underscore (_)
12561	  always_export_symbols=yes
12562	  # Exported symbols can be pulled into shared objects from archives
12563	  whole_archive_flag_spec=' '
12564	  archive_cmds_need_lc=yes
12565	  # This is similar to how AIX traditionally builds it's shared libraries.
12566	  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'
12567	fi
12568      fi
12569      ;;
12570
12571    amigaos*)
12572      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)'
12573      hardcode_libdir_flag_spec='-L$libdir'
12574      hardcode_minus_L=yes
12575      # see comment about different semantics on the GNU ld section
12576      ld_shlibs=no
12577      ;;
12578
12579    bsdi[45]*)
12580      export_dynamic_flag_spec=-rdynamic
12581      ;;
12582
12583    cygwin* | mingw* | pw32*)
12584      # When not using gcc, we currently assume that we are using
12585      # Microsoft Visual C++.
12586      # hardcode_libdir_flag_spec is actually meaningless, as there is
12587      # no search path for DLLs.
12588      hardcode_libdir_flag_spec=' '
12589      allow_undefined_flag=unsupported
12590      # Tell ltmain to make .lib files, not .a files.
12591      libext=lib
12592      # Tell ltmain to make .dll files, not .so files.
12593      shrext_cmds=".dll"
12594      # FIXME: Setting linknames here is a bad hack.
12595      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12596      # The linker will automatically build a .lib file if we build a DLL.
12597      old_archive_From_new_cmds='true'
12598      # FIXME: Should let the user specify the lib program.
12599      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12600      fix_srcfile_path='`cygpath -w "$srcfile"`'
12601      enable_shared_with_static_runtimes=yes
12602      ;;
12603
12604    darwin* | rhapsody*)
12605      case "$host_os" in
12606        rhapsody* | darwin1.[012])
12607         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12608         ;;
12609       *) # Darwin 1.3 on
12610         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12611           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12612         else
12613           case ${MACOSX_DEPLOYMENT_TARGET} in
12614             10.[012])
12615               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12616               ;;
12617             10.*)
12618               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12619               ;;
12620           esac
12621         fi
12622         ;;
12623      esac
12624      archive_cmds_need_lc=no
12625      hardcode_direct=no
12626      hardcode_automatic=yes
12627      hardcode_shlibpath_var=unsupported
12628      whole_archive_flag_spec=''
12629      link_all_deplibs=yes
12630    if test "$GCC" = yes ; then
12631    	output_verbose_link_cmd='echo'
12632        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12633      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12634      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12635      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}'
12636      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}'
12637    else
12638      case "$cc_basename" in
12639        xlc*)
12640         output_verbose_link_cmd='echo'
12641         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12642         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12643          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12644         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}'
12645          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}'
12646          ;;
12647       *)
12648         ld_shlibs=no
12649          ;;
12650      esac
12651    fi
12652      ;;
12653
12654    dgux*)
12655      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12656      hardcode_libdir_flag_spec='-L$libdir'
12657      hardcode_shlibpath_var=no
12658      ;;
12659
12660    freebsd1*)
12661      ld_shlibs=no
12662      ;;
12663
12664    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12665    # support.  Future versions do this automatically, but an explicit c++rt0.o
12666    # does not break anything, and helps significantly (at the cost of a little
12667    # extra space).
12668    freebsd2.2*)
12669      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12670      hardcode_libdir_flag_spec='-R$libdir'
12671      hardcode_direct=yes
12672      hardcode_shlibpath_var=no
12673      ;;
12674
12675    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12676    freebsd2*)
12677      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12678      hardcode_direct=yes
12679      hardcode_minus_L=yes
12680      hardcode_shlibpath_var=no
12681      ;;
12682
12683    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12684    freebsd* | kfreebsd*-gnu)
12685      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12686      hardcode_libdir_flag_spec='-R$libdir'
12687      hardcode_direct=yes
12688      hardcode_shlibpath_var=no
12689      ;;
12690
12691    hpux9*)
12692      if test "$GCC" = yes; then
12693	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'
12694      else
12695	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'
12696      fi
12697      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12698      hardcode_libdir_separator=:
12699      hardcode_direct=yes
12700
12701      # hardcode_minus_L: Not really in the search PATH,
12702      # but as the default location of the library.
12703      hardcode_minus_L=yes
12704      export_dynamic_flag_spec='${wl}-E'
12705      ;;
12706
12707    hpux10* | hpux11*)
12708      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12709	case "$host_cpu" in
12710	hppa*64*|ia64*)
12711	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12712	  ;;
12713	*)
12714	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12715	  ;;
12716	esac
12717      else
12718	case "$host_cpu" in
12719	hppa*64*|ia64*)
12720	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12721	  ;;
12722	*)
12723	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12724	  ;;
12725	esac
12726      fi
12727      if test "$with_gnu_ld" = no; then
12728	case "$host_cpu" in
12729	hppa*64*)
12730	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12731	  hardcode_libdir_flag_spec_ld='+b $libdir'
12732	  hardcode_libdir_separator=:
12733	  hardcode_direct=no
12734	  hardcode_shlibpath_var=no
12735	  ;;
12736	ia64*)
12737	  hardcode_libdir_flag_spec='-L$libdir'
12738	  hardcode_direct=no
12739	  hardcode_shlibpath_var=no
12740
12741	  # hardcode_minus_L: Not really in the search PATH,
12742	  # but as the default location of the library.
12743	  hardcode_minus_L=yes
12744	  ;;
12745	*)
12746	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12747	  hardcode_libdir_separator=:
12748	  hardcode_direct=yes
12749	  export_dynamic_flag_spec='${wl}-E'
12750
12751	  # hardcode_minus_L: Not really in the search PATH,
12752	  # but as the default location of the library.
12753	  hardcode_minus_L=yes
12754	  ;;
12755	esac
12756      fi
12757      ;;
12758
12759    irix5* | irix6* | nonstopux*)
12760      if test "$GCC" = yes; then
12761	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'
12762      else
12763	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'
12764	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12765      fi
12766      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12767      hardcode_libdir_separator=:
12768      link_all_deplibs=yes
12769      ;;
12770
12771    netbsd*)
12772      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12773	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12774      else
12775	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12776      fi
12777      hardcode_libdir_flag_spec='-R$libdir'
12778      hardcode_direct=yes
12779      hardcode_shlibpath_var=no
12780      ;;
12781
12782    newsos6)
12783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12784      hardcode_direct=yes
12785      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12786      hardcode_libdir_separator=:
12787      hardcode_shlibpath_var=no
12788      ;;
12789
12790    openbsd*)
12791      hardcode_direct=yes
12792      hardcode_shlibpath_var=no
12793      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12794	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12796	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12797	export_dynamic_flag_spec='${wl}-E'
12798      else
12799       case $host_os in
12800	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12801	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12802	   hardcode_libdir_flag_spec='-R$libdir'
12803	   ;;
12804	 *)
12805	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12806	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12807	   ;;
12808       esac
12809      fi
12810      ;;
12811
12812    os2*)
12813      hardcode_libdir_flag_spec='-L$libdir'
12814      hardcode_minus_L=yes
12815      allow_undefined_flag=unsupported
12816      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'
12817      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12818      ;;
12819
12820    osf3*)
12821      if test "$GCC" = yes; then
12822	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12823	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'
12824      else
12825	allow_undefined_flag=' -expect_unresolved \*'
12826	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'
12827      fi
12828      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12829      hardcode_libdir_separator=:
12830      ;;
12831
12832    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12833      if test "$GCC" = yes; then
12834	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12835	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'
12836	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12837      else
12838	allow_undefined_flag=' -expect_unresolved \*'
12839	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'
12840	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12841	$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'
12842
12843	# Both c and cxx compiler support -rpath directly
12844	hardcode_libdir_flag_spec='-rpath $libdir'
12845      fi
12846      hardcode_libdir_separator=:
12847      ;;
12848
12849    sco3.2v5*)
12850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851      hardcode_shlibpath_var=no
12852      export_dynamic_flag_spec='${wl}-Bexport'
12853      runpath_var=LD_RUN_PATH
12854      hardcode_runpath_var=yes
12855      ;;
12856
12857    solaris*)
12858      no_undefined_flag=' -z text'
12859      if test "$GCC" = yes; then
12860	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12861	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12862	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12863      else
12864	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12865	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12866  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12867      fi
12868      hardcode_libdir_flag_spec='-R$libdir'
12869      hardcode_shlibpath_var=no
12870      case $host_os in
12871      solaris2.[0-5] | solaris2.[0-5].*) ;;
12872      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12873	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12874      esac
12875      link_all_deplibs=yes
12876      ;;
12877
12878    sunos4*)
12879      if test "x$host_vendor" = xsequent; then
12880	# Use $CC to link under sequent, because it throws in some extra .o
12881	# files that make .init and .fini sections work.
12882	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12883      else
12884	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12885      fi
12886      hardcode_libdir_flag_spec='-L$libdir'
12887      hardcode_direct=yes
12888      hardcode_minus_L=yes
12889      hardcode_shlibpath_var=no
12890      ;;
12891
12892    sysv4)
12893      case $host_vendor in
12894	sni)
12895	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896	  hardcode_direct=yes # is this really true???
12897	;;
12898	siemens)
12899	  ## LD is ld it makes a PLAMLIB
12900	  ## CC just makes a GrossModule.
12901	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12902	  reload_cmds='$CC -r -o $output$reload_objs'
12903	  hardcode_direct=no
12904        ;;
12905	motorola)
12906	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12907	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12908	;;
12909      esac
12910      runpath_var='LD_RUN_PATH'
12911      hardcode_shlibpath_var=no
12912      ;;
12913
12914    sysv4.3*)
12915      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916      hardcode_shlibpath_var=no
12917      export_dynamic_flag_spec='-Bexport'
12918      ;;
12919
12920    sysv4*MP*)
12921      if test -d /usr/nec; then
12922	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923	hardcode_shlibpath_var=no
12924	runpath_var=LD_RUN_PATH
12925	hardcode_runpath_var=yes
12926	ld_shlibs=yes
12927      fi
12928      ;;
12929
12930    sysv4.2uw2*)
12931      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12932      hardcode_direct=yes
12933      hardcode_minus_L=no
12934      hardcode_shlibpath_var=no
12935      hardcode_runpath_var=yes
12936      runpath_var=LD_RUN_PATH
12937      ;;
12938
12939   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12940      no_undefined_flag='${wl}-z ${wl}text'
12941      if test "$GCC" = yes; then
12942	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943      else
12944	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12945      fi
12946      runpath_var='LD_RUN_PATH'
12947      hardcode_shlibpath_var=no
12948      ;;
12949
12950    sysv5*)
12951      no_undefined_flag=' -z text'
12952      # $CC -shared without GNU ld will not create a library from C++
12953      # object files and a static libstdc++, better avoid it by now
12954      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12955      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12956  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12957      hardcode_libdir_flag_spec=
12958      hardcode_shlibpath_var=no
12959      runpath_var='LD_RUN_PATH'
12960      ;;
12961
12962    uts4*)
12963      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12964      hardcode_libdir_flag_spec='-L$libdir'
12965      hardcode_shlibpath_var=no
12966      ;;
12967
12968    *)
12969      ld_shlibs=no
12970      ;;
12971    esac
12972  fi
12973
12974echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12975echo "${ECHO_T}$ld_shlibs" >&6
12976test "$ld_shlibs" = no && can_build_shared=no
12977
12978variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12979if test "$GCC" = yes; then
12980  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12981fi
12982
12983#
12984# Do we need to explicitly link libc?
12985#
12986case "x$archive_cmds_need_lc" in
12987x|xyes)
12988  # Assume -lc should be added
12989  archive_cmds_need_lc=yes
12990
12991  if test "$enable_shared" = yes && test "$GCC" = yes; then
12992    case $archive_cmds in
12993    *'~'*)
12994      # FIXME: we may have to deal with multi-command sequences.
12995      ;;
12996    '$CC '*)
12997      # Test whether the compiler implicitly links with -lc since on some
12998      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12999      # to ld, don't add -lc before -lgcc.
13000      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13001echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13002      $rm conftest*
13003      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13004
13005      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006  (eval $ac_compile) 2>&5
13007  ac_status=$?
13008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009  (exit $ac_status); } 2>conftest.err; then
13010        soname=conftest
13011        lib=conftest
13012        libobjs=conftest.$ac_objext
13013        deplibs=
13014        wl=$lt_prog_compiler_wl
13015        compiler_flags=-v
13016        linker_flags=-v
13017        verstring=
13018        output_objdir=.
13019        libname=conftest
13020        lt_save_allow_undefined_flag=$allow_undefined_flag
13021        allow_undefined_flag=
13022        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13023  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13024  ac_status=$?
13025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026  (exit $ac_status); }
13027        then
13028	  archive_cmds_need_lc=no
13029        else
13030	  archive_cmds_need_lc=yes
13031        fi
13032        allow_undefined_flag=$lt_save_allow_undefined_flag
13033      else
13034        cat conftest.err 1>&5
13035      fi
13036      $rm conftest*
13037      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13038echo "${ECHO_T}$archive_cmds_need_lc" >&6
13039      ;;
13040    esac
13041  fi
13042  ;;
13043esac
13044
13045echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13046echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13047library_names_spec=
13048libname_spec='lib$name'
13049soname_spec=
13050shrext_cmds=".so"
13051postinstall_cmds=
13052postuninstall_cmds=
13053finish_cmds=
13054finish_eval=
13055shlibpath_var=
13056shlibpath_overrides_runpath=unknown
13057version_type=none
13058dynamic_linker="$host_os ld.so"
13059sys_lib_dlsearch_path_spec="/lib /usr/lib"
13060if test "$GCC" = yes; then
13061  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13062  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13063    # if the path contains ";" then we assume it to be the separator
13064    # otherwise default to the standard path separator (i.e. ":") - it is
13065    # assumed that no part of a normal pathname contains ";" but that should
13066    # okay in the real world where ";" in dirpaths is itself problematic.
13067    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13068  else
13069    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13070  fi
13071else
13072  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13073fi
13074need_lib_prefix=unknown
13075hardcode_into_libs=no
13076
13077# when you set need_version to no, make sure it does not cause -set_version
13078# flags to be left without arguments
13079need_version=unknown
13080
13081case $host_os in
13082aix3*)
13083  version_type=linux
13084  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13085  shlibpath_var=LIBPATH
13086
13087  # AIX 3 has no versioning support, so we append a major version to the name.
13088  soname_spec='${libname}${release}${shared_ext}$major'
13089  ;;
13090
13091aix4* | aix5*)
13092  version_type=linux
13093  need_lib_prefix=no
13094  need_version=no
13095  hardcode_into_libs=yes
13096  if test "$host_cpu" = ia64; then
13097    # AIX 5 supports IA64
13098    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13099    shlibpath_var=LD_LIBRARY_PATH
13100  else
13101    # With GCC up to 2.95.x, collect2 would create an import file
13102    # for dependence libraries.  The import file would start with
13103    # the line `#! .'.  This would cause the generated library to
13104    # depend on `.', always an invalid library.  This was fixed in
13105    # development snapshots of GCC prior to 3.0.
13106    case $host_os in
13107      aix4 | aix4.[01] | aix4.[01].*)
13108      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13109	   echo ' yes '
13110	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13111	:
13112      else
13113	can_build_shared=no
13114      fi
13115      ;;
13116    esac
13117    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13118    # soname into executable. Probably we can add versioning support to
13119    # collect2, so additional links can be useful in future.
13120    if test "$aix_use_runtimelinking" = yes; then
13121      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13122      # instead of lib<name>.a to let people know that these are not
13123      # typical AIX shared libraries.
13124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125    else
13126      # We preserve .a as extension for shared libraries through AIX4.2
13127      # and later when we are not doing run time linking.
13128      library_names_spec='${libname}${release}.a $libname.a'
13129      soname_spec='${libname}${release}${shared_ext}$major'
13130    fi
13131    shlibpath_var=LIBPATH
13132  fi
13133  ;;
13134
13135amigaos*)
13136  library_names_spec='$libname.ixlibrary $libname.a'
13137  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13138  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'
13139  ;;
13140
13141beos*)
13142  library_names_spec='${libname}${shared_ext}'
13143  dynamic_linker="$host_os ld.so"
13144  shlibpath_var=LIBRARY_PATH
13145  ;;
13146
13147bsdi[45]*)
13148  version_type=linux
13149  need_version=no
13150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13151  soname_spec='${libname}${release}${shared_ext}$major'
13152  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13153  shlibpath_var=LD_LIBRARY_PATH
13154  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13155  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13156  # the default ld.so.conf also contains /usr/contrib/lib and
13157  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13158  # libtool to hard-code these into programs
13159  ;;
13160
13161cygwin* | mingw* | pw32*)
13162  version_type=windows
13163  shrext_cmds=".dll"
13164  need_version=no
13165  need_lib_prefix=no
13166
13167  case $GCC,$host_os in
13168  yes,cygwin* | yes,mingw* | yes,pw32*)
13169    library_names_spec='$libname.dll.a'
13170    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13171    postinstall_cmds='base_file=`basename \${file}`~
13172      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13173      dldir=$destdir/`dirname \$dlpath`~
13174      test -d \$dldir || mkdir -p \$dldir~
13175      $install_prog $dir/$dlname \$dldir/$dlname'
13176    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13177      dlpath=$dir/\$dldll~
13178       $rm \$dlpath'
13179    shlibpath_overrides_runpath=yes
13180
13181    case $host_os in
13182    cygwin*)
13183      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13184      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13185      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13186      ;;
13187    mingw*)
13188      # MinGW DLLs use traditional 'lib' prefix
13189      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13190      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13191      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13192        # It is most probably a Windows format PATH printed by
13193        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13194        # path with ; separators, and with drive letters. We can handle the
13195        # drive letters (cygwin fileutils understands them), so leave them,
13196        # especially as we might pass files found there to a mingw objdump,
13197        # which wouldn't understand a cygwinified path. Ahh.
13198        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13199      else
13200        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13201      fi
13202      ;;
13203    pw32*)
13204      # pw32 DLLs use 'pw' prefix rather than 'lib'
13205      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13206      ;;
13207    esac
13208    ;;
13209
13210  *)
13211    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13212    ;;
13213  esac
13214  dynamic_linker='Win32 ld.exe'
13215  # FIXME: first we should search . and the directory the executable is in
13216  shlibpath_var=PATH
13217  ;;
13218
13219darwin* | rhapsody*)
13220  dynamic_linker="$host_os dyld"
13221  version_type=darwin
13222  need_lib_prefix=no
13223  need_version=no
13224  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13225  soname_spec='${libname}${release}${major}$shared_ext'
13226  shlibpath_overrides_runpath=yes
13227  shlibpath_var=DYLD_LIBRARY_PATH
13228  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13229  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13230  if test "$GCC" = yes; then
13231    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"`
13232  else
13233    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13234  fi
13235  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13236  ;;
13237
13238dgux*)
13239  version_type=linux
13240  need_lib_prefix=no
13241  need_version=no
13242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13243  soname_spec='${libname}${release}${shared_ext}$major'
13244  shlibpath_var=LD_LIBRARY_PATH
13245  ;;
13246
13247freebsd1*)
13248  dynamic_linker=no
13249  ;;
13250
13251kfreebsd*-gnu)
13252  version_type=linux
13253  need_lib_prefix=no
13254  need_version=no
13255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13256  soname_spec='${libname}${release}${shared_ext}$major'
13257  shlibpath_var=LD_LIBRARY_PATH
13258  shlibpath_overrides_runpath=no
13259  hardcode_into_libs=yes
13260  dynamic_linker='GNU ld.so'
13261  ;;
13262
13263freebsd*)
13264  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13265  version_type=freebsd-$objformat
13266  case $version_type in
13267    freebsd-elf*)
13268      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13269      need_version=no
13270      need_lib_prefix=no
13271      ;;
13272    freebsd-*)
13273      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13274      need_version=yes
13275      ;;
13276  esac
13277  shlibpath_var=LD_LIBRARY_PATH
13278  case $host_os in
13279  freebsd2*)
13280    shlibpath_overrides_runpath=yes
13281    ;;
13282  freebsd3.01* | freebsdelf3.01*)
13283    shlibpath_overrides_runpath=yes
13284    hardcode_into_libs=yes
13285    ;;
13286  *) # from 3.2 on
13287    shlibpath_overrides_runpath=no
13288    hardcode_into_libs=yes
13289    ;;
13290  esac
13291  ;;
13292
13293gnu*)
13294  version_type=linux
13295  need_lib_prefix=no
13296  need_version=no
13297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13298  soname_spec='${libname}${release}${shared_ext}$major'
13299  shlibpath_var=LD_LIBRARY_PATH
13300  hardcode_into_libs=yes
13301  ;;
13302
13303hpux9* | hpux10* | hpux11*)
13304  # Give a soname corresponding to the major version so that dld.sl refuses to
13305  # link against other versions.
13306  version_type=sunos
13307  need_lib_prefix=no
13308  need_version=no
13309  case "$host_cpu" in
13310  ia64*)
13311    shrext_cmds='.so'
13312    hardcode_into_libs=yes
13313    dynamic_linker="$host_os dld.so"
13314    shlibpath_var=LD_LIBRARY_PATH
13315    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13317    soname_spec='${libname}${release}${shared_ext}$major'
13318    if test "X$HPUX_IA64_MODE" = X32; then
13319      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13320    else
13321      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13322    fi
13323    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13324    ;;
13325   hppa*64*)
13326     shrext_cmds='.sl'
13327     hardcode_into_libs=yes
13328     dynamic_linker="$host_os dld.sl"
13329     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13330     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332     soname_spec='${libname}${release}${shared_ext}$major'
13333     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13334     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13335     ;;
13336   *)
13337    shrext_cmds='.sl'
13338    dynamic_linker="$host_os dld.sl"
13339    shlibpath_var=SHLIB_PATH
13340    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342    soname_spec='${libname}${release}${shared_ext}$major'
13343    ;;
13344  esac
13345  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13346  postinstall_cmds='chmod 555 $lib'
13347  ;;
13348
13349irix5* | irix6* | nonstopux*)
13350  case $host_os in
13351    nonstopux*) version_type=nonstopux ;;
13352    *)
13353	if test "$lt_cv_prog_gnu_ld" = yes; then
13354		version_type=linux
13355	else
13356		version_type=irix
13357	fi ;;
13358  esac
13359  need_lib_prefix=no
13360  need_version=no
13361  soname_spec='${libname}${release}${shared_ext}$major'
13362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13363  case $host_os in
13364  irix5* | nonstopux*)
13365    libsuff= shlibsuff=
13366    ;;
13367  *)
13368    case $LD in # libtool.m4 will add one of these switches to LD
13369    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13370      libsuff= shlibsuff= libmagic=32-bit;;
13371    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13372      libsuff=32 shlibsuff=N32 libmagic=N32;;
13373    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13374      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13375    *) libsuff= shlibsuff= libmagic=never-match;;
13376    esac
13377    ;;
13378  esac
13379  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13380  shlibpath_overrides_runpath=no
13381  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13382  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13383  hardcode_into_libs=yes
13384  ;;
13385
13386# No shared lib support for Linux oldld, aout, or coff.
13387linux*oldld* | linux*aout* | linux*coff*)
13388  dynamic_linker=no
13389  ;;
13390
13391# This must be Linux ELF.
13392linux*)
13393  version_type=linux
13394  need_lib_prefix=no
13395  need_version=no
13396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397  soname_spec='${libname}${release}${shared_ext}$major'
13398  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13399  shlibpath_var=LD_LIBRARY_PATH
13400  shlibpath_overrides_runpath=no
13401  # This implies no fast_install, which is unacceptable.
13402  # Some rework will be needed to allow for fast_install
13403  # before this can be enabled.
13404  hardcode_into_libs=yes
13405
13406  # Append ld.so.conf contents to the search path
13407  if test -f /etc/ld.so.conf; then
13408    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13409    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13410  fi
13411
13412  # We used to test for /lib/ld.so.1 and disable shared libraries on
13413  # powerpc, because MkLinux only supported shared libraries with the
13414  # GNU dynamic linker.  Since this was broken with cross compilers,
13415  # most powerpc-linux boxes support dynamic linking these days and
13416  # people can always --disable-shared, the test was removed, and we
13417  # assume the GNU/Linux dynamic linker is in use.
13418  dynamic_linker='GNU/Linux ld.so'
13419  ;;
13420
13421knetbsd*-gnu)
13422  version_type=linux
13423  need_lib_prefix=no
13424  need_version=no
13425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426  soname_spec='${libname}${release}${shared_ext}$major'
13427  shlibpath_var=LD_LIBRARY_PATH
13428  shlibpath_overrides_runpath=no
13429  hardcode_into_libs=yes
13430  dynamic_linker='GNU ld.so'
13431  ;;
13432
13433netbsd*)
13434  version_type=sunos
13435  need_lib_prefix=no
13436  need_version=no
13437  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13439    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13440    dynamic_linker='NetBSD (a.out) ld.so'
13441  else
13442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13443    soname_spec='${libname}${release}${shared_ext}$major'
13444    dynamic_linker='NetBSD ld.elf_so'
13445  fi
13446  shlibpath_var=LD_LIBRARY_PATH
13447  shlibpath_overrides_runpath=yes
13448  hardcode_into_libs=yes
13449  ;;
13450
13451newsos6)
13452  version_type=linux
13453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454  shlibpath_var=LD_LIBRARY_PATH
13455  shlibpath_overrides_runpath=yes
13456  ;;
13457
13458nto-qnx*)
13459  version_type=linux
13460  need_lib_prefix=no
13461  need_version=no
13462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463  soname_spec='${libname}${release}${shared_ext}$major'
13464  shlibpath_var=LD_LIBRARY_PATH
13465  shlibpath_overrides_runpath=yes
13466  ;;
13467
13468openbsd*)
13469  version_type=sunos
13470  need_lib_prefix=no
13471  need_version=no
13472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13473  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13474  shlibpath_var=LD_LIBRARY_PATH
13475  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13476    case $host_os in
13477      openbsd2.[89] | openbsd2.[89].*)
13478	shlibpath_overrides_runpath=no
13479	;;
13480      *)
13481	shlibpath_overrides_runpath=yes
13482	;;
13483      esac
13484  else
13485    shlibpath_overrides_runpath=yes
13486  fi
13487  ;;
13488
13489os2*)
13490  libname_spec='$name'
13491  shrext_cmds=".dll"
13492  need_lib_prefix=no
13493  library_names_spec='$libname${shared_ext} $libname.a'
13494  dynamic_linker='OS/2 ld.exe'
13495  shlibpath_var=LIBPATH
13496  ;;
13497
13498osf3* | osf4* | osf5*)
13499  version_type=osf
13500  need_lib_prefix=no
13501  need_version=no
13502  soname_spec='${libname}${release}${shared_ext}$major'
13503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504  shlibpath_var=LD_LIBRARY_PATH
13505  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13506  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13507  ;;
13508
13509sco3.2v5*)
13510  version_type=osf
13511  soname_spec='${libname}${release}${shared_ext}$major'
13512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513  shlibpath_var=LD_LIBRARY_PATH
13514  ;;
13515
13516solaris*)
13517  version_type=linux
13518  need_lib_prefix=no
13519  need_version=no
13520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521  soname_spec='${libname}${release}${shared_ext}$major'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  shlibpath_overrides_runpath=yes
13524  hardcode_into_libs=yes
13525  # ldd complains unless libraries are executable
13526  postinstall_cmds='chmod +x $lib'
13527  ;;
13528
13529sunos4*)
13530  version_type=sunos
13531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13533  shlibpath_var=LD_LIBRARY_PATH
13534  shlibpath_overrides_runpath=yes
13535  if test "$with_gnu_ld" = yes; then
13536    need_lib_prefix=no
13537  fi
13538  need_version=yes
13539  ;;
13540
13541sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13542  version_type=linux
13543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544  soname_spec='${libname}${release}${shared_ext}$major'
13545  shlibpath_var=LD_LIBRARY_PATH
13546  case $host_vendor in
13547    sni)
13548      shlibpath_overrides_runpath=no
13549      need_lib_prefix=no
13550      export_dynamic_flag_spec='${wl}-Blargedynsym'
13551      runpath_var=LD_RUN_PATH
13552      ;;
13553    siemens)
13554      need_lib_prefix=no
13555      ;;
13556    motorola)
13557      need_lib_prefix=no
13558      need_version=no
13559      shlibpath_overrides_runpath=no
13560      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13561      ;;
13562  esac
13563  ;;
13564
13565sysv4*MP*)
13566  if test -d /usr/nec ;then
13567    version_type=linux
13568    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13569    soname_spec='$libname${shared_ext}.$major'
13570    shlibpath_var=LD_LIBRARY_PATH
13571  fi
13572  ;;
13573
13574uts4*)
13575  version_type=linux
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577  soname_spec='${libname}${release}${shared_ext}$major'
13578  shlibpath_var=LD_LIBRARY_PATH
13579  ;;
13580
13581*)
13582  dynamic_linker=no
13583  ;;
13584esac
13585echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13586echo "${ECHO_T}$dynamic_linker" >&6
13587test "$dynamic_linker" = no && can_build_shared=no
13588
13589echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13590echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13591hardcode_action=
13592if test -n "$hardcode_libdir_flag_spec" || \
13593   test -n "$runpath_var" || \
13594   test "X$hardcode_automatic" = "Xyes" ; then
13595
13596  # We can hardcode non-existant directories.
13597  if test "$hardcode_direct" != no &&
13598     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13599     # have to relink, otherwise we might link with an installed library
13600     # when we should be linking with a yet-to-be-installed one
13601     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13602     test "$hardcode_minus_L" != no; then
13603    # Linking always hardcodes the temporary library directory.
13604    hardcode_action=relink
13605  else
13606    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13607    hardcode_action=immediate
13608  fi
13609else
13610  # We cannot hardcode anything, or else we can only hardcode existing
13611  # directories.
13612  hardcode_action=unsupported
13613fi
13614echo "$as_me:$LINENO: result: $hardcode_action" >&5
13615echo "${ECHO_T}$hardcode_action" >&6
13616
13617if test "$hardcode_action" = relink; then
13618  # Fast installation is not supported
13619  enable_fast_install=no
13620elif test "$shlibpath_overrides_runpath" = yes ||
13621     test "$enable_shared" = no; then
13622  # Fast installation is not necessary
13623  enable_fast_install=needless
13624fi
13625
13626striplib=
13627old_striplib=
13628echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13629echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13630if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13631  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13632  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13633  echo "$as_me:$LINENO: result: yes" >&5
13634echo "${ECHO_T}yes" >&6
13635else
13636# FIXME - insert some real tests, host_os isn't really good enough
13637  case $host_os in
13638   darwin*)
13639       if test -n "$STRIP" ; then
13640         striplib="$STRIP -x"
13641         echo "$as_me:$LINENO: result: yes" >&5
13642echo "${ECHO_T}yes" >&6
13643       else
13644  echo "$as_me:$LINENO: result: no" >&5
13645echo "${ECHO_T}no" >&6
13646fi
13647       ;;
13648   *)
13649  echo "$as_me:$LINENO: result: no" >&5
13650echo "${ECHO_T}no" >&6
13651    ;;
13652  esac
13653fi
13654
13655if test "x$enable_dlopen" != xyes; then
13656  enable_dlopen=unknown
13657  enable_dlopen_self=unknown
13658  enable_dlopen_self_static=unknown
13659else
13660  lt_cv_dlopen=no
13661  lt_cv_dlopen_libs=
13662
13663  case $host_os in
13664  beos*)
13665    lt_cv_dlopen="load_add_on"
13666    lt_cv_dlopen_libs=
13667    lt_cv_dlopen_self=yes
13668    ;;
13669
13670  mingw* | pw32*)
13671    lt_cv_dlopen="LoadLibrary"
13672    lt_cv_dlopen_libs=
13673   ;;
13674
13675  cygwin*)
13676    lt_cv_dlopen="dlopen"
13677    lt_cv_dlopen_libs=
13678   ;;
13679
13680  darwin*)
13681  # if libdl is installed we need to link against it
13682    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13684if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13685  echo $ECHO_N "(cached) $ECHO_C" >&6
13686else
13687  ac_check_lib_save_LIBS=$LIBS
13688LIBS="-ldl  $LIBS"
13689cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h.  */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h.  */
13695
13696/* Override any gcc2 internal prototype to avoid an error.  */
13697#ifdef __cplusplus
13698extern "C"
13699#endif
13700/* We use char because int might match the return type of a gcc2
13701   builtin and then its argument prototype would still apply.  */
13702char dlopen ();
13703int
13704main ()
13705{
13706dlopen ();
13707  ;
13708  return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext conftest$ac_exeext
13712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713  (eval $ac_link) 2>conftest.er1
13714  ac_status=$?
13715  grep -v '^ *+' conftest.er1 >conftest.err
13716  rm -f conftest.er1
13717  cat conftest.err >&5
13718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719  (exit $ac_status); } &&
13720	 { ac_try='test -z "$ac_c_werror_flag"
13721			 || test ! -s conftest.err'
13722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723  (eval $ac_try) 2>&5
13724  ac_status=$?
13725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726  (exit $ac_status); }; } &&
13727	 { ac_try='test -s conftest$ac_exeext'
13728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729  (eval $ac_try) 2>&5
13730  ac_status=$?
13731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732  (exit $ac_status); }; }; then
13733  ac_cv_lib_dl_dlopen=yes
13734else
13735  echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738ac_cv_lib_dl_dlopen=no
13739fi
13740rm -f conftest.err conftest.$ac_objext \
13741      conftest$ac_exeext conftest.$ac_ext
13742LIBS=$ac_check_lib_save_LIBS
13743fi
13744echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13745echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13746if test $ac_cv_lib_dl_dlopen = yes; then
13747  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13748else
13749
13750    lt_cv_dlopen="dyld"
13751    lt_cv_dlopen_libs=
13752    lt_cv_dlopen_self=yes
13753
13754fi
13755
13756   ;;
13757
13758  *)
13759    echo "$as_me:$LINENO: checking for shl_load" >&5
13760echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13761if test "${ac_cv_func_shl_load+set}" = set; then
13762  echo $ECHO_N "(cached) $ECHO_C" >&6
13763else
13764  cat >conftest.$ac_ext <<_ACEOF
13765/* confdefs.h.  */
13766_ACEOF
13767cat confdefs.h >>conftest.$ac_ext
13768cat >>conftest.$ac_ext <<_ACEOF
13769/* end confdefs.h.  */
13770/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13772#define shl_load innocuous_shl_load
13773
13774/* System header to define __stub macros and hopefully few prototypes,
13775    which can conflict with char shl_load (); below.
13776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13777    <limits.h> exists even on freestanding compilers.  */
13778
13779#ifdef __STDC__
13780# include <limits.h>
13781#else
13782# include <assert.h>
13783#endif
13784
13785#undef shl_load
13786
13787/* Override any gcc2 internal prototype to avoid an error.  */
13788#ifdef __cplusplus
13789extern "C"
13790{
13791#endif
13792/* We use char because int might match the return type of a gcc2
13793   builtin and then its argument prototype would still apply.  */
13794char shl_load ();
13795/* The GNU C library defines this for functions which it implements
13796    to always fail with ENOSYS.  Some functions are actually named
13797    something starting with __ and the normal name is an alias.  */
13798#if defined (__stub_shl_load) || defined (__stub___shl_load)
13799choke me
13800#else
13801char (*f) () = shl_load;
13802#endif
13803#ifdef __cplusplus
13804}
13805#endif
13806
13807int
13808main ()
13809{
13810return f != shl_load;
13811  ;
13812  return 0;
13813}
13814_ACEOF
13815rm -f conftest.$ac_objext conftest$ac_exeext
13816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817  (eval $ac_link) 2>conftest.er1
13818  ac_status=$?
13819  grep -v '^ *+' conftest.er1 >conftest.err
13820  rm -f conftest.er1
13821  cat conftest.err >&5
13822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823  (exit $ac_status); } &&
13824	 { ac_try='test -z "$ac_c_werror_flag"
13825			 || test ! -s conftest.err'
13826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827  (eval $ac_try) 2>&5
13828  ac_status=$?
13829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830  (exit $ac_status); }; } &&
13831	 { ac_try='test -s conftest$ac_exeext'
13832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833  (eval $ac_try) 2>&5
13834  ac_status=$?
13835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836  (exit $ac_status); }; }; then
13837  ac_cv_func_shl_load=yes
13838else
13839  echo "$as_me: failed program was:" >&5
13840sed 's/^/| /' conftest.$ac_ext >&5
13841
13842ac_cv_func_shl_load=no
13843fi
13844rm -f conftest.err conftest.$ac_objext \
13845      conftest$ac_exeext conftest.$ac_ext
13846fi
13847echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13848echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13849if test $ac_cv_func_shl_load = yes; then
13850  lt_cv_dlopen="shl_load"
13851else
13852  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13853echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13854if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13855  echo $ECHO_N "(cached) $ECHO_C" >&6
13856else
13857  ac_check_lib_save_LIBS=$LIBS
13858LIBS="-ldld  $LIBS"
13859cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h.  */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h.  */
13865
13866/* Override any gcc2 internal prototype to avoid an error.  */
13867#ifdef __cplusplus
13868extern "C"
13869#endif
13870/* We use char because int might match the return type of a gcc2
13871   builtin and then its argument prototype would still apply.  */
13872char shl_load ();
13873int
13874main ()
13875{
13876shl_load ();
13877  ;
13878  return 0;
13879}
13880_ACEOF
13881rm -f conftest.$ac_objext conftest$ac_exeext
13882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13883  (eval $ac_link) 2>conftest.er1
13884  ac_status=$?
13885  grep -v '^ *+' conftest.er1 >conftest.err
13886  rm -f conftest.er1
13887  cat conftest.err >&5
13888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889  (exit $ac_status); } &&
13890	 { ac_try='test -z "$ac_c_werror_flag"
13891			 || test ! -s conftest.err'
13892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893  (eval $ac_try) 2>&5
13894  ac_status=$?
13895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896  (exit $ac_status); }; } &&
13897	 { ac_try='test -s conftest$ac_exeext'
13898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899  (eval $ac_try) 2>&5
13900  ac_status=$?
13901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902  (exit $ac_status); }; }; then
13903  ac_cv_lib_dld_shl_load=yes
13904else
13905  echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908ac_cv_lib_dld_shl_load=no
13909fi
13910rm -f conftest.err conftest.$ac_objext \
13911      conftest$ac_exeext conftest.$ac_ext
13912LIBS=$ac_check_lib_save_LIBS
13913fi
13914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13915echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13916if test $ac_cv_lib_dld_shl_load = yes; then
13917  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13918else
13919  echo "$as_me:$LINENO: checking for dlopen" >&5
13920echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13921if test "${ac_cv_func_dlopen+set}" = set; then
13922  echo $ECHO_N "(cached) $ECHO_C" >&6
13923else
13924  cat >conftest.$ac_ext <<_ACEOF
13925/* confdefs.h.  */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h.  */
13930/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13931   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13932#define dlopen innocuous_dlopen
13933
13934/* System header to define __stub macros and hopefully few prototypes,
13935    which can conflict with char dlopen (); below.
13936    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13937    <limits.h> exists even on freestanding compilers.  */
13938
13939#ifdef __STDC__
13940# include <limits.h>
13941#else
13942# include <assert.h>
13943#endif
13944
13945#undef dlopen
13946
13947/* Override any gcc2 internal prototype to avoid an error.  */
13948#ifdef __cplusplus
13949extern "C"
13950{
13951#endif
13952/* We use char because int might match the return type of a gcc2
13953   builtin and then its argument prototype would still apply.  */
13954char dlopen ();
13955/* The GNU C library defines this for functions which it implements
13956    to always fail with ENOSYS.  Some functions are actually named
13957    something starting with __ and the normal name is an alias.  */
13958#if defined (__stub_dlopen) || defined (__stub___dlopen)
13959choke me
13960#else
13961char (*f) () = dlopen;
13962#endif
13963#ifdef __cplusplus
13964}
13965#endif
13966
13967int
13968main ()
13969{
13970return f != dlopen;
13971  ;
13972  return 0;
13973}
13974_ACEOF
13975rm -f conftest.$ac_objext conftest$ac_exeext
13976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13977  (eval $ac_link) 2>conftest.er1
13978  ac_status=$?
13979  grep -v '^ *+' conftest.er1 >conftest.err
13980  rm -f conftest.er1
13981  cat conftest.err >&5
13982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983  (exit $ac_status); } &&
13984	 { ac_try='test -z "$ac_c_werror_flag"
13985			 || test ! -s conftest.err'
13986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987  (eval $ac_try) 2>&5
13988  ac_status=$?
13989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990  (exit $ac_status); }; } &&
13991	 { ac_try='test -s conftest$ac_exeext'
13992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993  (eval $ac_try) 2>&5
13994  ac_status=$?
13995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996  (exit $ac_status); }; }; then
13997  ac_cv_func_dlopen=yes
13998else
13999  echo "$as_me: failed program was:" >&5
14000sed 's/^/| /' conftest.$ac_ext >&5
14001
14002ac_cv_func_dlopen=no
14003fi
14004rm -f conftest.err conftest.$ac_objext \
14005      conftest$ac_exeext conftest.$ac_ext
14006fi
14007echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14008echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14009if test $ac_cv_func_dlopen = yes; then
14010  lt_cv_dlopen="dlopen"
14011else
14012  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14013echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14014if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14015  echo $ECHO_N "(cached) $ECHO_C" >&6
14016else
14017  ac_check_lib_save_LIBS=$LIBS
14018LIBS="-ldl  $LIBS"
14019cat >conftest.$ac_ext <<_ACEOF
14020/* confdefs.h.  */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h.  */
14025
14026/* Override any gcc2 internal prototype to avoid an error.  */
14027#ifdef __cplusplus
14028extern "C"
14029#endif
14030/* We use char because int might match the return type of a gcc2
14031   builtin and then its argument prototype would still apply.  */
14032char dlopen ();
14033int
14034main ()
14035{
14036dlopen ();
14037  ;
14038  return 0;
14039}
14040_ACEOF
14041rm -f conftest.$ac_objext conftest$ac_exeext
14042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043  (eval $ac_link) 2>conftest.er1
14044  ac_status=$?
14045  grep -v '^ *+' conftest.er1 >conftest.err
14046  rm -f conftest.er1
14047  cat conftest.err >&5
14048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049  (exit $ac_status); } &&
14050	 { ac_try='test -z "$ac_c_werror_flag"
14051			 || test ! -s conftest.err'
14052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053  (eval $ac_try) 2>&5
14054  ac_status=$?
14055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056  (exit $ac_status); }; } &&
14057	 { ac_try='test -s conftest$ac_exeext'
14058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059  (eval $ac_try) 2>&5
14060  ac_status=$?
14061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062  (exit $ac_status); }; }; then
14063  ac_cv_lib_dl_dlopen=yes
14064else
14065  echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5
14067
14068ac_cv_lib_dl_dlopen=no
14069fi
14070rm -f conftest.err conftest.$ac_objext \
14071      conftest$ac_exeext conftest.$ac_ext
14072LIBS=$ac_check_lib_save_LIBS
14073fi
14074echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14075echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14076if test $ac_cv_lib_dl_dlopen = yes; then
14077  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14078else
14079  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14080echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14081if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14082  echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084  ac_check_lib_save_LIBS=$LIBS
14085LIBS="-lsvld  $LIBS"
14086cat >conftest.$ac_ext <<_ACEOF
14087/* confdefs.h.  */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h.  */
14092
14093/* Override any gcc2 internal prototype to avoid an error.  */
14094#ifdef __cplusplus
14095extern "C"
14096#endif
14097/* We use char because int might match the return type of a gcc2
14098   builtin and then its argument prototype would still apply.  */
14099char dlopen ();
14100int
14101main ()
14102{
14103dlopen ();
14104  ;
14105  return 0;
14106}
14107_ACEOF
14108rm -f conftest.$ac_objext conftest$ac_exeext
14109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110  (eval $ac_link) 2>conftest.er1
14111  ac_status=$?
14112  grep -v '^ *+' conftest.er1 >conftest.err
14113  rm -f conftest.er1
14114  cat conftest.err >&5
14115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116  (exit $ac_status); } &&
14117	 { ac_try='test -z "$ac_c_werror_flag"
14118			 || test ! -s conftest.err'
14119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120  (eval $ac_try) 2>&5
14121  ac_status=$?
14122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123  (exit $ac_status); }; } &&
14124	 { ac_try='test -s conftest$ac_exeext'
14125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126  (eval $ac_try) 2>&5
14127  ac_status=$?
14128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129  (exit $ac_status); }; }; then
14130  ac_cv_lib_svld_dlopen=yes
14131else
14132  echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135ac_cv_lib_svld_dlopen=no
14136fi
14137rm -f conftest.err conftest.$ac_objext \
14138      conftest$ac_exeext conftest.$ac_ext
14139LIBS=$ac_check_lib_save_LIBS
14140fi
14141echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14142echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14143if test $ac_cv_lib_svld_dlopen = yes; then
14144  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14145else
14146  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14147echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14148if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14149  echo $ECHO_N "(cached) $ECHO_C" >&6
14150else
14151  ac_check_lib_save_LIBS=$LIBS
14152LIBS="-ldld  $LIBS"
14153cat >conftest.$ac_ext <<_ACEOF
14154/* confdefs.h.  */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h.  */
14159
14160/* Override any gcc2 internal prototype to avoid an error.  */
14161#ifdef __cplusplus
14162extern "C"
14163#endif
14164/* We use char because int might match the return type of a gcc2
14165   builtin and then its argument prototype would still apply.  */
14166char dld_link ();
14167int
14168main ()
14169{
14170dld_link ();
14171  ;
14172  return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext conftest$ac_exeext
14176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177  (eval $ac_link) 2>conftest.er1
14178  ac_status=$?
14179  grep -v '^ *+' conftest.er1 >conftest.err
14180  rm -f conftest.er1
14181  cat conftest.err >&5
14182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183  (exit $ac_status); } &&
14184	 { ac_try='test -z "$ac_c_werror_flag"
14185			 || test ! -s conftest.err'
14186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187  (eval $ac_try) 2>&5
14188  ac_status=$?
14189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190  (exit $ac_status); }; } &&
14191	 { ac_try='test -s conftest$ac_exeext'
14192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193  (eval $ac_try) 2>&5
14194  ac_status=$?
14195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196  (exit $ac_status); }; }; then
14197  ac_cv_lib_dld_dld_link=yes
14198else
14199  echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202ac_cv_lib_dld_dld_link=no
14203fi
14204rm -f conftest.err conftest.$ac_objext \
14205      conftest$ac_exeext conftest.$ac_ext
14206LIBS=$ac_check_lib_save_LIBS
14207fi
14208echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14209echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14210if test $ac_cv_lib_dld_dld_link = yes; then
14211  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14212fi
14213
14214
14215fi
14216
14217
14218fi
14219
14220
14221fi
14222
14223
14224fi
14225
14226
14227fi
14228
14229    ;;
14230  esac
14231
14232  if test "x$lt_cv_dlopen" != xno; then
14233    enable_dlopen=yes
14234  else
14235    enable_dlopen=no
14236  fi
14237
14238  case $lt_cv_dlopen in
14239  dlopen)
14240    save_CPPFLAGS="$CPPFLAGS"
14241    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14242
14243    save_LDFLAGS="$LDFLAGS"
14244    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14245
14246    save_LIBS="$LIBS"
14247    LIBS="$lt_cv_dlopen_libs $LIBS"
14248
14249    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14250echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14251if test "${lt_cv_dlopen_self+set}" = set; then
14252  echo $ECHO_N "(cached) $ECHO_C" >&6
14253else
14254  	  if test "$cross_compiling" = yes; then :
14255  lt_cv_dlopen_self=cross
14256else
14257  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14258  lt_status=$lt_dlunknown
14259  cat > conftest.$ac_ext <<EOF
14260#line 14260 "configure"
14261#include "confdefs.h"
14262
14263#if HAVE_DLFCN_H
14264#include <dlfcn.h>
14265#endif
14266
14267#include <stdio.h>
14268
14269#ifdef RTLD_GLOBAL
14270#  define LT_DLGLOBAL		RTLD_GLOBAL
14271#else
14272#  ifdef DL_GLOBAL
14273#    define LT_DLGLOBAL		DL_GLOBAL
14274#  else
14275#    define LT_DLGLOBAL		0
14276#  endif
14277#endif
14278
14279/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14280   find out it does not work in some platform. */
14281#ifndef LT_DLLAZY_OR_NOW
14282#  ifdef RTLD_LAZY
14283#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14284#  else
14285#    ifdef DL_LAZY
14286#      define LT_DLLAZY_OR_NOW		DL_LAZY
14287#    else
14288#      ifdef RTLD_NOW
14289#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14290#      else
14291#        ifdef DL_NOW
14292#          define LT_DLLAZY_OR_NOW	DL_NOW
14293#        else
14294#          define LT_DLLAZY_OR_NOW	0
14295#        endif
14296#      endif
14297#    endif
14298#  endif
14299#endif
14300
14301#ifdef __cplusplus
14302extern "C" void exit (int);
14303#endif
14304
14305void fnord() { int i=42;}
14306int main ()
14307{
14308  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14309  int status = $lt_dlunknown;
14310
14311  if (self)
14312    {
14313      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14314      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14315      /* dlclose (self); */
14316    }
14317
14318    exit (status);
14319}
14320EOF
14321  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14322  (eval $ac_link) 2>&5
14323  ac_status=$?
14324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14326    (./conftest; exit; ) 2>/dev/null
14327    lt_status=$?
14328    case x$lt_status in
14329      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14330      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14331      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14332    esac
14333  else :
14334    # compilation failed
14335    lt_cv_dlopen_self=no
14336  fi
14337fi
14338rm -fr conftest*
14339
14340
14341fi
14342echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14343echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14344
14345    if test "x$lt_cv_dlopen_self" = xyes; then
14346      LDFLAGS="$LDFLAGS $link_static_flag"
14347      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14348echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14349if test "${lt_cv_dlopen_self_static+set}" = set; then
14350  echo $ECHO_N "(cached) $ECHO_C" >&6
14351else
14352  	  if test "$cross_compiling" = yes; then :
14353  lt_cv_dlopen_self_static=cross
14354else
14355  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14356  lt_status=$lt_dlunknown
14357  cat > conftest.$ac_ext <<EOF
14358#line 14358 "configure"
14359#include "confdefs.h"
14360
14361#if HAVE_DLFCN_H
14362#include <dlfcn.h>
14363#endif
14364
14365#include <stdio.h>
14366
14367#ifdef RTLD_GLOBAL
14368#  define LT_DLGLOBAL		RTLD_GLOBAL
14369#else
14370#  ifdef DL_GLOBAL
14371#    define LT_DLGLOBAL		DL_GLOBAL
14372#  else
14373#    define LT_DLGLOBAL		0
14374#  endif
14375#endif
14376
14377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14378   find out it does not work in some platform. */
14379#ifndef LT_DLLAZY_OR_NOW
14380#  ifdef RTLD_LAZY
14381#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14382#  else
14383#    ifdef DL_LAZY
14384#      define LT_DLLAZY_OR_NOW		DL_LAZY
14385#    else
14386#      ifdef RTLD_NOW
14387#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14388#      else
14389#        ifdef DL_NOW
14390#          define LT_DLLAZY_OR_NOW	DL_NOW
14391#        else
14392#          define LT_DLLAZY_OR_NOW	0
14393#        endif
14394#      endif
14395#    endif
14396#  endif
14397#endif
14398
14399#ifdef __cplusplus
14400extern "C" void exit (int);
14401#endif
14402
14403void fnord() { int i=42;}
14404int main ()
14405{
14406  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14407  int status = $lt_dlunknown;
14408
14409  if (self)
14410    {
14411      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14412      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14413      /* dlclose (self); */
14414    }
14415
14416    exit (status);
14417}
14418EOF
14419  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14420  (eval $ac_link) 2>&5
14421  ac_status=$?
14422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14424    (./conftest; exit; ) 2>/dev/null
14425    lt_status=$?
14426    case x$lt_status in
14427      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14428      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14429      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14430    esac
14431  else :
14432    # compilation failed
14433    lt_cv_dlopen_self_static=no
14434  fi
14435fi
14436rm -fr conftest*
14437
14438
14439fi
14440echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14441echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14442    fi
14443
14444    CPPFLAGS="$save_CPPFLAGS"
14445    LDFLAGS="$save_LDFLAGS"
14446    LIBS="$save_LIBS"
14447    ;;
14448  esac
14449
14450  case $lt_cv_dlopen_self in
14451  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14452  *) enable_dlopen_self=unknown ;;
14453  esac
14454
14455  case $lt_cv_dlopen_self_static in
14456  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14457  *) enable_dlopen_self_static=unknown ;;
14458  esac
14459fi
14460
14461
14462# Report which librarie types wil actually be built
14463echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14464echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14465echo "$as_me:$LINENO: result: $can_build_shared" >&5
14466echo "${ECHO_T}$can_build_shared" >&6
14467
14468echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14469echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14470test "$can_build_shared" = "no" && enable_shared=no
14471
14472# On AIX, shared libraries and static libraries use the same namespace, and
14473# are all built from PIC.
14474case "$host_os" in
14475aix3*)
14476  test "$enable_shared" = yes && enable_static=no
14477  if test -n "$RANLIB"; then
14478    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14479    postinstall_cmds='$RANLIB $lib'
14480  fi
14481  ;;
14482
14483aix4* | aix5*)
14484  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14485    test "$enable_shared" = yes && enable_static=no
14486  fi
14487    ;;
14488esac
14489echo "$as_me:$LINENO: result: $enable_shared" >&5
14490echo "${ECHO_T}$enable_shared" >&6
14491
14492echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14493echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14494# Make sure either enable_shared or enable_static is yes.
14495test "$enable_shared" = yes || enable_static=yes
14496echo "$as_me:$LINENO: result: $enable_static" >&5
14497echo "${ECHO_T}$enable_static" >&6
14498
14499# The else clause should only fire when bootstrapping the
14500# libtool distribution, otherwise you forgot to ship ltmain.sh
14501# with your package, and you will get complaints that there are
14502# no rules to generate ltmain.sh.
14503if test -f "$ltmain"; then
14504  # See if we are running on zsh, and set the options which allow our commands through
14505  # without removal of \ escapes.
14506  if test -n "${ZSH_VERSION+set}" ; then
14507    setopt NO_GLOB_SUBST
14508  fi
14509  # Now quote all the things that may contain metacharacters while being
14510  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14511  # variables and quote the copies for generation of the libtool script.
14512  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14513    SED SHELL STRIP \
14514    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14515    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14516    deplibs_check_method reload_flag reload_cmds need_locks \
14517    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14518    lt_cv_sys_global_symbol_to_c_name_address \
14519    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14520    old_postinstall_cmds old_postuninstall_cmds \
14521    compiler \
14522    CC \
14523    LD \
14524    lt_prog_compiler_wl \
14525    lt_prog_compiler_pic \
14526    lt_prog_compiler_static \
14527    lt_prog_compiler_no_builtin_flag \
14528    export_dynamic_flag_spec \
14529    thread_safe_flag_spec \
14530    whole_archive_flag_spec \
14531    enable_shared_with_static_runtimes \
14532    old_archive_cmds \
14533    old_archive_from_new_cmds \
14534    predep_objects \
14535    postdep_objects \
14536    predeps \
14537    postdeps \
14538    compiler_lib_search_path \
14539    archive_cmds \
14540    archive_expsym_cmds \
14541    postinstall_cmds \
14542    postuninstall_cmds \
14543    old_archive_from_expsyms_cmds \
14544    allow_undefined_flag \
14545    no_undefined_flag \
14546    export_symbols_cmds \
14547    hardcode_libdir_flag_spec \
14548    hardcode_libdir_flag_spec_ld \
14549    hardcode_libdir_separator \
14550    hardcode_automatic \
14551    module_cmds \
14552    module_expsym_cmds \
14553    lt_cv_prog_compiler_c_o \
14554    exclude_expsyms \
14555    include_expsyms; do
14556
14557    case $var in
14558    old_archive_cmds | \
14559    old_archive_from_new_cmds | \
14560    archive_cmds | \
14561    archive_expsym_cmds | \
14562    module_cmds | \
14563    module_expsym_cmds | \
14564    old_archive_from_expsyms_cmds | \
14565    export_symbols_cmds | \
14566    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14567    postinstall_cmds | postuninstall_cmds | \
14568    old_postinstall_cmds | old_postuninstall_cmds | \
14569    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14570      # Double-quote double-evaled strings.
14571      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14572      ;;
14573    *)
14574      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14575      ;;
14576    esac
14577  done
14578
14579  case $lt_echo in
14580  *'\$0 --fallback-echo"')
14581    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14582    ;;
14583  esac
14584
14585cfgfile="${ofile}T"
14586  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14587  $rm -f "$cfgfile"
14588  { echo "$as_me:$LINENO: creating $ofile" >&5
14589echo "$as_me: creating $ofile" >&6;}
14590
14591  cat <<__EOF__ >> "$cfgfile"
14592#! $SHELL
14593
14594# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14595# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14596# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14597#
14598# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14599# Free Software Foundation, Inc.
14600#
14601# This file is part of GNU Libtool:
14602# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14603#
14604# This program is free software; you can redistribute it and/or modify
14605# it under the terms of the GNU General Public License as published by
14606# the Free Software Foundation; either version 2 of the License, or
14607# (at your option) any later version.
14608#
14609# This program is distributed in the hope that it will be useful, but
14610# WITHOUT ANY WARRANTY; without even the implied warranty of
14611# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14612# General Public License for more details.
14613#
14614# You should have received a copy of the GNU General Public License
14615# along with this program; if not, write to the Free Software
14616# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14617#
14618# As a special exception to the GNU General Public License, if you
14619# distribute this file as part of a program that contains a
14620# configuration script generated by Autoconf, you may include it under
14621# the same distribution terms that you use for the rest of that program.
14622
14623# A sed program that does not truncate output.
14624SED=$lt_SED
14625
14626# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14627Xsed="$SED -e s/^X//"
14628
14629# The HP-UX ksh and POSIX shell print the target directory to stdout
14630# if CDPATH is set.
14631(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14632
14633# The names of the tagged configurations supported by this script.
14634available_tags=
14635
14636# ### BEGIN LIBTOOL CONFIG
14637
14638# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14639
14640# Shell to use when invoking shell scripts.
14641SHELL=$lt_SHELL
14642
14643# Whether or not to build shared libraries.
14644build_libtool_libs=$enable_shared
14645
14646# Whether or not to build static libraries.
14647build_old_libs=$enable_static
14648
14649# Whether or not to add -lc for building shared libraries.
14650build_libtool_need_lc=$archive_cmds_need_lc
14651
14652# Whether or not to disallow shared libs when runtime libs are static
14653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14654
14655# Whether or not to optimize for fast installation.
14656fast_install=$enable_fast_install
14657
14658# The host system.
14659host_alias=$host_alias
14660host=$host
14661
14662# An echo program that does not interpret backslashes.
14663echo=$lt_echo
14664
14665# The archiver.
14666AR=$lt_AR
14667AR_FLAGS=$lt_AR_FLAGS
14668
14669# A C compiler.
14670LTCC=$lt_LTCC
14671
14672# A language-specific compiler.
14673CC=$lt_compiler
14674
14675# Is the compiler the GNU C compiler?
14676with_gcc=$GCC
14677
14678# An ERE matcher.
14679EGREP=$lt_EGREP
14680
14681# The linker used to build libraries.
14682LD=$lt_LD
14683
14684# Whether we need hard or soft links.
14685LN_S=$lt_LN_S
14686
14687# A BSD-compatible nm program.
14688NM=$lt_NM
14689
14690# A symbol stripping program
14691STRIP=$lt_STRIP
14692
14693# Used to examine libraries when file_magic_cmd begins "file"
14694MAGIC_CMD=$MAGIC_CMD
14695
14696# Used on cygwin: DLL creation program.
14697DLLTOOL="$DLLTOOL"
14698
14699# Used on cygwin: object dumper.
14700OBJDUMP="$OBJDUMP"
14701
14702# Used on cygwin: assembler.
14703AS="$AS"
14704
14705# The name of the directory that contains temporary libtool files.
14706objdir=$objdir
14707
14708# How to create reloadable object files.
14709reload_flag=$lt_reload_flag
14710reload_cmds=$lt_reload_cmds
14711
14712# How to pass a linker flag through the compiler.
14713wl=$lt_lt_prog_compiler_wl
14714
14715# Object file suffix (normally "o").
14716objext="$ac_objext"
14717
14718# Old archive suffix (normally "a").
14719libext="$libext"
14720
14721# Shared library suffix (normally ".so").
14722shrext_cmds='$shrext_cmds'
14723
14724# Executable file suffix (normally "").
14725exeext="$exeext"
14726
14727# Additional compiler flags for building library objects.
14728pic_flag=$lt_lt_prog_compiler_pic
14729pic_mode=$pic_mode
14730
14731# What is the maximum length of a command?
14732max_cmd_len=$lt_cv_sys_max_cmd_len
14733
14734# Does compiler simultaneously support -c and -o options?
14735compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14736
14737# Must we lock files when doing compilation ?
14738need_locks=$lt_need_locks
14739
14740# Do we need the lib prefix for modules?
14741need_lib_prefix=$need_lib_prefix
14742
14743# Do we need a version for libraries?
14744need_version=$need_version
14745
14746# Whether dlopen is supported.
14747dlopen_support=$enable_dlopen
14748
14749# Whether dlopen of programs is supported.
14750dlopen_self=$enable_dlopen_self
14751
14752# Whether dlopen of statically linked programs is supported.
14753dlopen_self_static=$enable_dlopen_self_static
14754
14755# Compiler flag to prevent dynamic linking.
14756link_static_flag=$lt_lt_prog_compiler_static
14757
14758# Compiler flag to turn off builtin functions.
14759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14760
14761# Compiler flag to allow reflexive dlopens.
14762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14763
14764# Compiler flag to generate shared objects directly from archives.
14765whole_archive_flag_spec=$lt_whole_archive_flag_spec
14766
14767# Compiler flag to generate thread-safe objects.
14768thread_safe_flag_spec=$lt_thread_safe_flag_spec
14769
14770# Library versioning type.
14771version_type=$version_type
14772
14773# Format of library name prefix.
14774libname_spec=$lt_libname_spec
14775
14776# List of archive names.  First name is the real one, the rest are links.
14777# The last name is the one that the linker finds with -lNAME.
14778library_names_spec=$lt_library_names_spec
14779
14780# The coded name of the library, if different from the real name.
14781soname_spec=$lt_soname_spec
14782
14783# Commands used to build and install an old-style archive.
14784RANLIB=$lt_RANLIB
14785old_archive_cmds=$lt_old_archive_cmds
14786old_postinstall_cmds=$lt_old_postinstall_cmds
14787old_postuninstall_cmds=$lt_old_postuninstall_cmds
14788
14789# Create an old-style archive from a shared archive.
14790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14791
14792# Create a temporary old-style archive to link instead of a shared archive.
14793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14794
14795# Commands used to build and install a shared archive.
14796archive_cmds=$lt_archive_cmds
14797archive_expsym_cmds=$lt_archive_expsym_cmds
14798postinstall_cmds=$lt_postinstall_cmds
14799postuninstall_cmds=$lt_postuninstall_cmds
14800
14801# Commands used to build a loadable module (assumed same as above if empty)
14802module_cmds=$lt_module_cmds
14803module_expsym_cmds=$lt_module_expsym_cmds
14804
14805# Commands to strip libraries.
14806old_striplib=$lt_old_striplib
14807striplib=$lt_striplib
14808
14809# Dependencies to place before the objects being linked to create a
14810# shared library.
14811predep_objects=$lt_predep_objects
14812
14813# Dependencies to place after the objects being linked to create a
14814# shared library.
14815postdep_objects=$lt_postdep_objects
14816
14817# Dependencies to place before the objects being linked to create a
14818# shared library.
14819predeps=$lt_predeps
14820
14821# Dependencies to place after the objects being linked to create a
14822# shared library.
14823postdeps=$lt_postdeps
14824
14825# The library search path used internally by the compiler when linking
14826# a shared library.
14827compiler_lib_search_path=$lt_compiler_lib_search_path
14828
14829# Method to check whether dependent libraries are shared objects.
14830deplibs_check_method=$lt_deplibs_check_method
14831
14832# Command to use when deplibs_check_method == file_magic.
14833file_magic_cmd=$lt_file_magic_cmd
14834
14835# Flag that allows shared libraries with undefined symbols to be built.
14836allow_undefined_flag=$lt_allow_undefined_flag
14837
14838# Flag that forces no undefined symbols.
14839no_undefined_flag=$lt_no_undefined_flag
14840
14841# Commands used to finish a libtool library installation in a directory.
14842finish_cmds=$lt_finish_cmds
14843
14844# Same as above, but a single script fragment to be evaled but not shown.
14845finish_eval=$lt_finish_eval
14846
14847# Take the output of nm and produce a listing of raw symbols and C names.
14848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14849
14850# Transform the output of nm in a proper C declaration
14851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14852
14853# Transform the output of nm in a C name address pair
14854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14855
14856# This is the shared library runtime path variable.
14857runpath_var=$runpath_var
14858
14859# This is the shared library path variable.
14860shlibpath_var=$shlibpath_var
14861
14862# Is shlibpath searched before the hard-coded library search path?
14863shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14864
14865# How to hardcode a shared library path into an executable.
14866hardcode_action=$hardcode_action
14867
14868# Whether we should hardcode library paths into libraries.
14869hardcode_into_libs=$hardcode_into_libs
14870
14871# Flag to hardcode \$libdir into a binary during linking.
14872# This must work even if \$libdir does not exist.
14873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14874
14875# If ld is used when linking, flag to hardcode \$libdir into
14876# a binary during linking. This must work even if \$libdir does
14877# not exist.
14878hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14879
14880# Whether we need a single -rpath flag with a separated argument.
14881hardcode_libdir_separator=$lt_hardcode_libdir_separator
14882
14883# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14884# resulting binary.
14885hardcode_direct=$hardcode_direct
14886
14887# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14888# resulting binary.
14889hardcode_minus_L=$hardcode_minus_L
14890
14891# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14892# the resulting binary.
14893hardcode_shlibpath_var=$hardcode_shlibpath_var
14894
14895# Set to yes if building a shared library automatically hardcodes DIR into the library
14896# and all subsequent libraries and executables linked against it.
14897hardcode_automatic=$hardcode_automatic
14898
14899# Variables whose values should be saved in libtool wrapper scripts and
14900# restored at relink time.
14901variables_saved_for_relink="$variables_saved_for_relink"
14902
14903# Whether libtool must link a program against all its dependency libraries.
14904link_all_deplibs=$link_all_deplibs
14905
14906# Compile-time system search path for libraries
14907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14908
14909# Run-time system search path for libraries
14910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14911
14912# Fix the shell variable \$srcfile for the compiler.
14913fix_srcfile_path="$fix_srcfile_path"
14914
14915# Set to yes if exported symbols are required.
14916always_export_symbols=$always_export_symbols
14917
14918# The commands to list exported symbols.
14919export_symbols_cmds=$lt_export_symbols_cmds
14920
14921# The commands to extract the exported symbol list from a shared archive.
14922extract_expsyms_cmds=$lt_extract_expsyms_cmds
14923
14924# Symbols that should not be listed in the preloaded symbols.
14925exclude_expsyms=$lt_exclude_expsyms
14926
14927# Symbols that must always be exported.
14928include_expsyms=$lt_include_expsyms
14929
14930# ### END LIBTOOL CONFIG
14931
14932__EOF__
14933
14934
14935  case $host_os in
14936  aix3*)
14937    cat <<\EOF >> "$cfgfile"
14938
14939# AIX sometimes has problems with the GCC collect2 program.  For some
14940# reason, if we set the COLLECT_NAMES environment variable, the problems
14941# vanish in a puff of smoke.
14942if test "X${COLLECT_NAMES+set}" != Xset; then
14943  COLLECT_NAMES=
14944  export COLLECT_NAMES
14945fi
14946EOF
14947    ;;
14948  esac
14949
14950  # We use sed instead of cat because bash on DJGPP gets confused if
14951  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14952  # text mode, it properly converts lines to CR/LF.  This bash problem
14953  # is reportedly fixed, but why not run on old versions too?
14954  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14955
14956  mv -f "$cfgfile" "$ofile" || \
14957    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14958  chmod +x "$ofile"
14959
14960else
14961  # If there is no Makefile yet, we rely on a make rule to execute
14962  # `config.status --recheck' to rerun these tests and create the
14963  # libtool script then.
14964  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14965  if test -f "$ltmain_in"; then
14966    test -f Makefile && make "$ltmain"
14967  fi
14968fi
14969
14970
14971ac_ext=c
14972ac_cpp='$CPP $CPPFLAGS'
14973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14975ac_compiler_gnu=$ac_cv_c_compiler_gnu
14976
14977CC="$lt_save_CC"
14978
14979
14980# Check whether --with-tags or --without-tags was given.
14981if test "${with_tags+set}" = set; then
14982  withval="$with_tags"
14983  tagnames="$withval"
14984fi;
14985
14986if test -f "$ltmain" && test -n "$tagnames"; then
14987  if test ! -f "${ofile}"; then
14988    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14989echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14990  fi
14991
14992  if test -z "$LTCC"; then
14993    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14994    if test -z "$LTCC"; then
14995      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14996echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14997    else
14998      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14999echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15000    fi
15001  fi
15002
15003  # Extract list of available tagged configurations in $ofile.
15004  # Note that this assumes the entire list is on one line.
15005  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15006
15007  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15008  for tagname in $tagnames; do
15009    IFS="$lt_save_ifs"
15010    # Check whether tagname contains only valid characters
15011    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15012    "") ;;
15013    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15014echo "$as_me: error: invalid tag name: $tagname" >&2;}
15015   { (exit 1); exit 1; }; }
15016	;;
15017    esac
15018
15019    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15020    then
15021      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15022echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15023   { (exit 1); exit 1; }; }
15024    fi
15025
15026    # Update the list of available tags.
15027    if test -n "$tagname"; then
15028      echo appending configuration tag "$tagname" to $ofile
15029
15030      case $tagname in
15031      CXX)
15032	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15033	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15034	    (test "X$CXX" != "Xg++"))) ; then
15035	  ac_ext=cc
15036ac_cpp='$CXXCPP $CPPFLAGS'
15037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15040
15041
15042
15043
15044archive_cmds_need_lc_CXX=no
15045allow_undefined_flag_CXX=
15046always_export_symbols_CXX=no
15047archive_expsym_cmds_CXX=
15048export_dynamic_flag_spec_CXX=
15049hardcode_direct_CXX=no
15050hardcode_libdir_flag_spec_CXX=
15051hardcode_libdir_flag_spec_ld_CXX=
15052hardcode_libdir_separator_CXX=
15053hardcode_minus_L_CXX=no
15054hardcode_automatic_CXX=no
15055module_cmds_CXX=
15056module_expsym_cmds_CXX=
15057link_all_deplibs_CXX=unknown
15058old_archive_cmds_CXX=$old_archive_cmds
15059no_undefined_flag_CXX=
15060whole_archive_flag_spec_CXX=
15061enable_shared_with_static_runtimes_CXX=no
15062
15063# Dependencies to place before and after the object being linked:
15064predep_objects_CXX=
15065postdep_objects_CXX=
15066predeps_CXX=
15067postdeps_CXX=
15068compiler_lib_search_path_CXX=
15069
15070# Source file extension for C++ test sources.
15071ac_ext=cc
15072
15073# Object file extension for compiled C++ test sources.
15074objext=o
15075objext_CXX=$objext
15076
15077# Code to be used in simple compile tests
15078lt_simple_compile_test_code="int some_variable = 0;\n"
15079
15080# Code to be used in simple link tests
15081lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15082
15083# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15084
15085# If no C compiler was specified, use CC.
15086LTCC=${LTCC-"$CC"}
15087
15088# Allow CC to be a program name with arguments.
15089compiler=$CC
15090
15091
15092# Allow CC to be a program name with arguments.
15093lt_save_CC=$CC
15094lt_save_LD=$LD
15095lt_save_GCC=$GCC
15096GCC=$GXX
15097lt_save_with_gnu_ld=$with_gnu_ld
15098lt_save_path_LD=$lt_cv_path_LD
15099if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15100  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15101else
15102  unset lt_cv_prog_gnu_ld
15103fi
15104if test -n "${lt_cv_path_LDCXX+set}"; then
15105  lt_cv_path_LD=$lt_cv_path_LDCXX
15106else
15107  unset lt_cv_path_LD
15108fi
15109test -z "${LDCXX+set}" || LD=$LDCXX
15110CC=${CXX-"c++"}
15111compiler=$CC
15112compiler_CXX=$CC
15113cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15114
15115# We don't want -fno-exception wen compiling C++ code, so set the
15116# no_builtin_flag separately
15117if test "$GXX" = yes; then
15118  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15119else
15120  lt_prog_compiler_no_builtin_flag_CXX=
15121fi
15122
15123if test "$GXX" = yes; then
15124  # Set up default GNU C++ configuration
15125
15126
15127# Check whether --with-gnu-ld or --without-gnu-ld was given.
15128if test "${with_gnu_ld+set}" = set; then
15129  withval="$with_gnu_ld"
15130  test "$withval" = no || with_gnu_ld=yes
15131else
15132  with_gnu_ld=no
15133fi;
15134ac_prog=ld
15135if test "$GCC" = yes; then
15136  # Check if gcc -print-prog-name=ld gives a path.
15137  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15138echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15139  case $host in
15140  *-*-mingw*)
15141    # gcc leaves a trailing carriage return which upsets mingw
15142    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15143  *)
15144    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15145  esac
15146  case $ac_prog in
15147    # Accept absolute paths.
15148    [\\/]* | ?:[\\/]*)
15149      re_direlt='/[^/][^/]*/\.\./'
15150      # Canonicalize the pathname of ld
15151      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15152      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15153	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15154      done
15155      test -z "$LD" && LD="$ac_prog"
15156      ;;
15157  "")
15158    # If it fails, then pretend we aren't using GCC.
15159    ac_prog=ld
15160    ;;
15161  *)
15162    # If it is relative, then search for the first ld in PATH.
15163    with_gnu_ld=unknown
15164    ;;
15165  esac
15166elif test "$with_gnu_ld" = yes; then
15167  echo "$as_me:$LINENO: checking for GNU ld" >&5
15168echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15169else
15170  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15171echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15172fi
15173if test "${lt_cv_path_LD+set}" = set; then
15174  echo $ECHO_N "(cached) $ECHO_C" >&6
15175else
15176  if test -z "$LD"; then
15177  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15178  for ac_dir in $PATH; do
15179    IFS="$lt_save_ifs"
15180    test -z "$ac_dir" && ac_dir=.
15181    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15182      lt_cv_path_LD="$ac_dir/$ac_prog"
15183      # Check to see if the program is GNU ld.  I'd rather use --version,
15184      # but apparently some GNU ld's only accept -v.
15185      # Break only if it was the GNU/non-GNU ld that we prefer.
15186      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15187      *GNU* | *'with BFD'*)
15188	test "$with_gnu_ld" != no && break
15189	;;
15190      *)
15191	test "$with_gnu_ld" != yes && break
15192	;;
15193      esac
15194    fi
15195  done
15196  IFS="$lt_save_ifs"
15197else
15198  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15199fi
15200fi
15201
15202LD="$lt_cv_path_LD"
15203if test -n "$LD"; then
15204  echo "$as_me:$LINENO: result: $LD" >&5
15205echo "${ECHO_T}$LD" >&6
15206else
15207  echo "$as_me:$LINENO: result: no" >&5
15208echo "${ECHO_T}no" >&6
15209fi
15210test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15211echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15212   { (exit 1); exit 1; }; }
15213echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15214echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15215if test "${lt_cv_prog_gnu_ld+set}" = set; then
15216  echo $ECHO_N "(cached) $ECHO_C" >&6
15217else
15218  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15219case `$LD -v 2>&1 </dev/null` in
15220*GNU* | *'with BFD'*)
15221  lt_cv_prog_gnu_ld=yes
15222  ;;
15223*)
15224  lt_cv_prog_gnu_ld=no
15225  ;;
15226esac
15227fi
15228echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15229echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15230with_gnu_ld=$lt_cv_prog_gnu_ld
15231
15232
15233
15234  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15235  # archiving commands below assume that GNU ld is being used.
15236  if test "$with_gnu_ld" = yes; then
15237    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238    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'
15239
15240    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15241    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15242
15243    # If archive_cmds runs LD, not CC, wlarc should be empty
15244    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15245    #     investigate it a little bit more. (MM)
15246    wlarc='${wl}'
15247
15248    # ancient GNU ld didn't support --whole-archive et. al.
15249    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15250	grep 'no-whole-archive' > /dev/null; then
15251      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15252    else
15253      whole_archive_flag_spec_CXX=
15254    fi
15255  else
15256    with_gnu_ld=no
15257    wlarc=
15258
15259    # A generic and very simple default shared library creation
15260    # command for GNU C++ for the case where it uses the native
15261    # linker, instead of GNU ld.  If possible, this setting should
15262    # overridden to take advantage of the native linker features on
15263    # the platform it is being used on.
15264    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15265  fi
15266
15267  # Commands to make compiler produce verbose output that lists
15268  # what "hidden" libraries, object files and flags are used when
15269  # linking a shared library.
15270  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15271
15272else
15273  GXX=no
15274  with_gnu_ld=no
15275  wlarc=
15276fi
15277
15278# PORTME: fill in a description of your system's C++ link characteristics
15279echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15280echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15281ld_shlibs_CXX=yes
15282case $host_os in
15283  aix3*)
15284    # FIXME: insert proper C++ library support
15285    ld_shlibs_CXX=no
15286    ;;
15287  aix4* | aix5*)
15288    if test "$host_cpu" = ia64; then
15289      # On IA64, the linker does run time linking by default, so we don't
15290      # have to do anything special.
15291      aix_use_runtimelinking=no
15292      exp_sym_flag='-Bexport'
15293      no_entry_flag=""
15294    else
15295      aix_use_runtimelinking=no
15296
15297      # Test if we are trying to use run time linking or normal
15298      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15299      # need to do runtime linking.
15300      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15301	for ld_flag in $LDFLAGS; do
15302	  case $ld_flag in
15303	  *-brtl*)
15304	    aix_use_runtimelinking=yes
15305	    break
15306	    ;;
15307	  esac
15308	done
15309      esac
15310
15311      exp_sym_flag='-bexport'
15312      no_entry_flag='-bnoentry'
15313    fi
15314
15315    # When large executables or shared objects are built, AIX ld can
15316    # have problems creating the table of contents.  If linking a library
15317    # or program results in "error TOC overflow" add -mminimal-toc to
15318    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15319    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15320
15321    archive_cmds_CXX=''
15322    hardcode_direct_CXX=yes
15323    hardcode_libdir_separator_CXX=':'
15324    link_all_deplibs_CXX=yes
15325
15326    if test "$GXX" = yes; then
15327      case $host_os in aix4.012|aix4.012.*)
15328      # We only want to do this on AIX 4.2 and lower, the check
15329      # below for broken collect2 doesn't work under 4.3+
15330	collect2name=`${CC} -print-prog-name=collect2`
15331	if test -f "$collect2name" && \
15332	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15333	then
15334	  # We have reworked collect2
15335	  hardcode_direct_CXX=yes
15336	else
15337	  # We have old collect2
15338	  hardcode_direct_CXX=unsupported
15339	  # It fails to find uninstalled libraries when the uninstalled
15340	  # path is not listed in the libpath.  Setting hardcode_minus_L
15341	  # to unsupported forces relinking
15342	  hardcode_minus_L_CXX=yes
15343	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15344	  hardcode_libdir_separator_CXX=
15345	fi
15346      esac
15347      shared_flag='-shared'
15348    else
15349      # not using gcc
15350      if test "$host_cpu" = ia64; then
15351	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15352	# chokes on -Wl,-G. The following line is correct:
15353	shared_flag='-G'
15354      else
15355	if test "$aix_use_runtimelinking" = yes; then
15356	  shared_flag='${wl}-G'
15357	else
15358	  shared_flag='${wl}-bM:SRE'
15359	fi
15360      fi
15361    fi
15362
15363    # It seems that -bexpall does not export symbols beginning with
15364    # underscore (_), so it is better to generate a list of symbols to export.
15365    always_export_symbols_CXX=yes
15366    if test "$aix_use_runtimelinking" = yes; then
15367      # Warning - without using the other runtime loading flags (-brtl),
15368      # -berok will link without error, but may produce a broken library.
15369      allow_undefined_flag_CXX='-berok'
15370      # Determine the default libpath from the value encoded in an empty executable.
15371      cat >conftest.$ac_ext <<_ACEOF
15372/* confdefs.h.  */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h.  */
15377
15378int
15379main ()
15380{
15381
15382  ;
15383  return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext conftest$ac_exeext
15387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388  (eval $ac_link) 2>conftest.er1
15389  ac_status=$?
15390  grep -v '^ *+' conftest.er1 >conftest.err
15391  rm -f conftest.er1
15392  cat conftest.err >&5
15393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394  (exit $ac_status); } &&
15395	 { ac_try='test -z "$ac_cxx_werror_flag"
15396			 || test ! -s conftest.err'
15397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398  (eval $ac_try) 2>&5
15399  ac_status=$?
15400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401  (exit $ac_status); }; } &&
15402	 { ac_try='test -s conftest$ac_exeext'
15403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404  (eval $ac_try) 2>&5
15405  ac_status=$?
15406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407  (exit $ac_status); }; }; then
15408
15409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15410}'`
15411# Check for a 64-bit object if we didn't find anything.
15412if 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; }
15413}'`; fi
15414else
15415  echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418fi
15419rm -f conftest.err conftest.$ac_objext \
15420      conftest$ac_exeext conftest.$ac_ext
15421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15422
15423      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15424
15425      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"
15426     else
15427      if test "$host_cpu" = ia64; then
15428	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15429	allow_undefined_flag_CXX="-z nodefs"
15430	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"
15431      else
15432	# Determine the default libpath from the value encoded in an empty executable.
15433	cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h.  */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h.  */
15439
15440int
15441main ()
15442{
15443
15444  ;
15445  return 0;
15446}
15447_ACEOF
15448rm -f conftest.$ac_objext conftest$ac_exeext
15449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15450  (eval $ac_link) 2>conftest.er1
15451  ac_status=$?
15452  grep -v '^ *+' conftest.er1 >conftest.err
15453  rm -f conftest.er1
15454  cat conftest.err >&5
15455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456  (exit $ac_status); } &&
15457	 { ac_try='test -z "$ac_cxx_werror_flag"
15458			 || test ! -s conftest.err'
15459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460  (eval $ac_try) 2>&5
15461  ac_status=$?
15462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463  (exit $ac_status); }; } &&
15464	 { ac_try='test -s conftest$ac_exeext'
15465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466  (eval $ac_try) 2>&5
15467  ac_status=$?
15468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469  (exit $ac_status); }; }; then
15470
15471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15472}'`
15473# Check for a 64-bit object if we didn't find anything.
15474if 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; }
15475}'`; fi
15476else
15477  echo "$as_me: failed program was:" >&5
15478sed 's/^/| /' conftest.$ac_ext >&5
15479
15480fi
15481rm -f conftest.err conftest.$ac_objext \
15482      conftest$ac_exeext conftest.$ac_ext
15483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15484
15485	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15486	# Warning - without using the other run time loading flags,
15487	# -berok will link without error, but may produce a broken library.
15488	no_undefined_flag_CXX=' ${wl}-bernotok'
15489	allow_undefined_flag_CXX=' ${wl}-berok'
15490	# -bexpall does not export symbols beginning with underscore (_)
15491	always_export_symbols_CXX=yes
15492	# Exported symbols can be pulled into shared objects from archives
15493	whole_archive_flag_spec_CXX=' '
15494	archive_cmds_need_lc_CXX=yes
15495	# This is similar to how AIX traditionally builds it's shared libraries.
15496	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'
15497      fi
15498    fi
15499    ;;
15500  chorus*)
15501    case $cc_basename in
15502      *)
15503	# FIXME: insert proper C++ library support
15504	ld_shlibs_CXX=no
15505	;;
15506    esac
15507    ;;
15508
15509
15510  cygwin* | mingw* | pw32*)
15511    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15512    # as there is no search path for DLLs.
15513    hardcode_libdir_flag_spec_CXX='-L$libdir'
15514    allow_undefined_flag_CXX=unsupported
15515    always_export_symbols_CXX=no
15516    enable_shared_with_static_runtimes_CXX=yes
15517
15518    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519      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'
15520      # If the export-symbols file already is a .def file (1st line
15521      # is EXPORTS), use it as is; otherwise, prepend...
15522      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523	cp $export_symbols $output_objdir/$soname.def;
15524      else
15525	echo EXPORTS > $output_objdir/$soname.def;
15526	cat $export_symbols >> $output_objdir/$soname.def;
15527      fi~
15528      $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'
15529    else
15530      ld_shlibs_CXX=no
15531    fi
15532  ;;
15533      darwin* | rhapsody*)
15534        case "$host_os" in
15535        rhapsody* | darwin1.[012])
15536         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15537         ;;
15538       *) # Darwin 1.3 on
15539         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15540           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15541         else
15542           case ${MACOSX_DEPLOYMENT_TARGET} in
15543             10.[012])
15544               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15545               ;;
15546             10.*)
15547               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15548               ;;
15549           esac
15550         fi
15551         ;;
15552        esac
15553      archive_cmds_need_lc_CXX=no
15554      hardcode_direct_CXX=no
15555      hardcode_automatic_CXX=yes
15556      hardcode_shlibpath_var_CXX=unsupported
15557      whole_archive_flag_spec_CXX=''
15558      link_all_deplibs_CXX=yes
15559
15560    if test "$GXX" = yes ; then
15561      lt_int_apple_cc_single_mod=no
15562      output_verbose_link_cmd='echo'
15563      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15564       lt_int_apple_cc_single_mod=yes
15565      fi
15566      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15567       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15568      else
15569          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'
15570        fi
15571        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15572        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15573          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15574            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}'
15575          else
15576            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}'
15577          fi
15578            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}'
15579      else
15580      case "$cc_basename" in
15581        xlc*)
15582         output_verbose_link_cmd='echo'
15583          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'
15584          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15585          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15586          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}'
15587          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}'
15588          ;;
15589       *)
15590         ld_shlibs_CXX=no
15591          ;;
15592      esac
15593      fi
15594        ;;
15595
15596  dgux*)
15597    case $cc_basename in
15598      ec++)
15599	# FIXME: insert proper C++ library support
15600	ld_shlibs_CXX=no
15601	;;
15602      ghcx)
15603	# Green Hills C++ Compiler
15604	# FIXME: insert proper C++ library support
15605	ld_shlibs_CXX=no
15606	;;
15607      *)
15608	# FIXME: insert proper C++ library support
15609	ld_shlibs_CXX=no
15610	;;
15611    esac
15612    ;;
15613  freebsd12*)
15614    # C++ shared libraries reported to be fairly broken before switch to ELF
15615    ld_shlibs_CXX=no
15616    ;;
15617  freebsd-elf*)
15618    archive_cmds_need_lc_CXX=no
15619    ;;
15620  freebsd* | kfreebsd*-gnu)
15621    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15622    # conventions
15623    ld_shlibs_CXX=yes
15624    ;;
15625  gnu*)
15626    ;;
15627  hpux9*)
15628    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15629    hardcode_libdir_separator_CXX=:
15630    export_dynamic_flag_spec_CXX='${wl}-E'
15631    hardcode_direct_CXX=yes
15632    hardcode_minus_L_CXX=yes # Not in the search PATH,
15633				# but as the default
15634				# location of the library.
15635
15636    case $cc_basename in
15637    CC)
15638      # FIXME: insert proper C++ library support
15639      ld_shlibs_CXX=no
15640      ;;
15641    aCC)
15642      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'
15643      # Commands to make compiler produce verbose output that lists
15644      # what "hidden" libraries, object files and flags are used when
15645      # linking a shared library.
15646      #
15647      # There doesn't appear to be a way to prevent this compiler from
15648      # explicitly linking system object files so we need to strip them
15649      # from the output so that they don't get included in the library
15650      # dependencies.
15651      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'
15652      ;;
15653    *)
15654      if test "$GXX" = yes; then
15655        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'
15656      else
15657        # FIXME: insert proper C++ library support
15658        ld_shlibs_CXX=no
15659      fi
15660      ;;
15661    esac
15662    ;;
15663  hpux10*|hpux11*)
15664    if test $with_gnu_ld = no; then
15665      case "$host_cpu" in
15666      hppa*64*)
15667	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15668	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15669	hardcode_libdir_separator_CXX=:
15670        ;;
15671      ia64*)
15672	hardcode_libdir_flag_spec_CXX='-L$libdir'
15673        ;;
15674      *)
15675	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15676	hardcode_libdir_separator_CXX=:
15677	export_dynamic_flag_spec_CXX='${wl}-E'
15678        ;;
15679      esac
15680    fi
15681    case "$host_cpu" in
15682    hppa*64*)
15683      hardcode_direct_CXX=no
15684      hardcode_shlibpath_var_CXX=no
15685      ;;
15686    ia64*)
15687      hardcode_direct_CXX=no
15688      hardcode_shlibpath_var_CXX=no
15689      hardcode_minus_L_CXX=yes # Not in the search PATH,
15690					      # but as the default
15691					      # location of the library.
15692      ;;
15693    *)
15694      hardcode_direct_CXX=yes
15695      hardcode_minus_L_CXX=yes # Not in the search PATH,
15696					      # but as the default
15697					      # location of the library.
15698      ;;
15699    esac
15700
15701    case $cc_basename in
15702      CC)
15703	# FIXME: insert proper C++ library support
15704	ld_shlibs_CXX=no
15705	;;
15706      aCC)
15707	case "$host_cpu" in
15708	hppa*64*|ia64*)
15709	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15710	  ;;
15711	*)
15712	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15713	  ;;
15714	esac
15715	# Commands to make compiler produce verbose output that lists
15716	# what "hidden" libraries, object files and flags are used when
15717	# linking a shared library.
15718	#
15719	# There doesn't appear to be a way to prevent this compiler from
15720	# explicitly linking system object files so we need to strip them
15721	# from the output so that they don't get included in the library
15722	# dependencies.
15723	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'
15724	;;
15725      *)
15726	if test "$GXX" = yes; then
15727	  if test $with_gnu_ld = no; then
15728	    case "$host_cpu" in
15729	    ia64*|hppa*64*)
15730	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15731	      ;;
15732	    *)
15733	      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'
15734	      ;;
15735	    esac
15736	  fi
15737	else
15738	  # FIXME: insert proper C++ library support
15739	  ld_shlibs_CXX=no
15740	fi
15741	;;
15742    esac
15743    ;;
15744  irix5* | irix6*)
15745    case $cc_basename in
15746      CC)
15747	# SGI C++
15748	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'
15749
15750	# Archives containing C++ object files must be created using
15751	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15752	# necessary to make sure instantiated templates are included
15753	# in the archive.
15754	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15755	;;
15756      *)
15757	if test "$GXX" = yes; then
15758	  if test "$with_gnu_ld" = no; then
15759	    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'
15760	  else
15761	    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'
15762	  fi
15763	fi
15764	link_all_deplibs_CXX=yes
15765	;;
15766    esac
15767    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15768    hardcode_libdir_separator_CXX=:
15769    ;;
15770  linux*)
15771    case $cc_basename in
15772      KCC)
15773	# Kuck and Associates, Inc. (KAI) C++ Compiler
15774
15775	# KCC will only create a shared library if the output file
15776	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15777	# to its proper name (with version) after linking.
15778	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'
15779	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'
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	#
15784	# There doesn't appear to be a way to prevent this compiler from
15785	# explicitly linking system object files so we need to strip them
15786	# from the output so that they don't get included in the library
15787	# dependencies.
15788	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'
15789
15790	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15791	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15792
15793	# Archives containing C++ object files must be created using
15794	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15795	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15796	;;
15797      icpc)
15798	# Intel C++
15799	with_gnu_ld=yes
15800	# version 8.0 and above of icpc choke on multiply defined symbols
15801	# if we add $predep_objects and $postdep_objects, however 7.1 and
15802	# earlier do not add the objects themselves.
15803	case `$CC -V 2>&1` in
15804	*"Version 7."*)
15805  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806  	  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'
15807	  ;;
15808	*)  # Version 8.0 or newer
15809  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15811	  ;;
15812	esac
15813	archive_cmds_need_lc_CXX=no
15814	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15815	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15816	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15817	;;
15818      cxx)
15819	# Compaq C++
15820	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15821	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'
15822
15823	runpath_var=LD_RUN_PATH
15824	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15825	hardcode_libdir_separator_CXX=:
15826
15827	# Commands to make compiler produce verbose output that lists
15828	# what "hidden" libraries, object files and flags are used when
15829	# linking a shared library.
15830	#
15831	# There doesn't appear to be a way to prevent this compiler from
15832	# explicitly linking system object files so we need to strip them
15833	# from the output so that they don't get included in the library
15834	# dependencies.
15835	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'
15836	;;
15837    esac
15838    ;;
15839  lynxos*)
15840    # FIXME: insert proper C++ library support
15841    ld_shlibs_CXX=no
15842    ;;
15843  m88k*)
15844    # FIXME: insert proper C++ library support
15845    ld_shlibs_CXX=no
15846    ;;
15847  mvs*)
15848    case $cc_basename in
15849      cxx)
15850	# FIXME: insert proper C++ library support
15851	ld_shlibs_CXX=no
15852	;;
15853      *)
15854	# FIXME: insert proper C++ library support
15855	ld_shlibs_CXX=no
15856	;;
15857    esac
15858    ;;
15859  netbsd*)
15860    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15861      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15862      wlarc=
15863      hardcode_libdir_flag_spec_CXX='-R$libdir'
15864      hardcode_direct_CXX=yes
15865      hardcode_shlibpath_var_CXX=no
15866    fi
15867    # Workaround some broken pre-1.5 toolchains
15868    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15869    ;;
15870  openbsd2*)
15871    # C++ shared libraries are fairly broken
15872    ld_shlibs_CXX=no
15873    ;;
15874  openbsd*)
15875    hardcode_direct_CXX=yes
15876    hardcode_shlibpath_var_CXX=no
15877    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15878    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15879    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15880      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15881      export_dynamic_flag_spec_CXX='${wl}-E'
15882      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15883    fi
15884    output_verbose_link_cmd='echo'
15885    ;;
15886  osf3*)
15887    case $cc_basename in
15888      KCC)
15889	# Kuck and Associates, Inc. (KAI) C++ Compiler
15890
15891	# KCC will only create a shared library if the output file
15892	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15893	# to its proper name (with version) after linking.
15894	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'
15895
15896	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15897	hardcode_libdir_separator_CXX=:
15898
15899	# Archives containing C++ object files must be created using
15900	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15901	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15902
15903	;;
15904      RCC)
15905	# Rational C++ 2.4.1
15906	# FIXME: insert proper C++ library support
15907	ld_shlibs_CXX=no
15908	;;
15909      cxx)
15910	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15911	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'
15912
15913	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15914	hardcode_libdir_separator_CXX=:
15915
15916	# Commands to make compiler produce verbose output that lists
15917	# what "hidden" libraries, object files and flags are used when
15918	# linking a shared library.
15919	#
15920	# There doesn't appear to be a way to prevent this compiler from
15921	# explicitly linking system object files so we need to strip them
15922	# from the output so that they don't get included in the library
15923	# dependencies.
15924	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'
15925	;;
15926      *)
15927	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15928	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15929	  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'
15930
15931	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15932	  hardcode_libdir_separator_CXX=:
15933
15934	  # Commands to make compiler produce verbose output that lists
15935	  # what "hidden" libraries, object files and flags are used when
15936	  # linking a shared library.
15937	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15938
15939	else
15940	  # FIXME: insert proper C++ library support
15941	  ld_shlibs_CXX=no
15942	fi
15943	;;
15944    esac
15945    ;;
15946  osf4* | osf5*)
15947    case $cc_basename in
15948      KCC)
15949	# Kuck and Associates, Inc. (KAI) C++ Compiler
15950
15951	# KCC will only create a shared library if the output file
15952	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15953	# to its proper name (with version) after linking.
15954	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'
15955
15956	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15957	hardcode_libdir_separator_CXX=:
15958
15959	# Archives containing C++ object files must be created using
15960	# the KAI C++ compiler.
15961	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15962	;;
15963      RCC)
15964	# Rational C++ 2.4.1
15965	# FIXME: insert proper C++ library support
15966	ld_shlibs_CXX=no
15967	;;
15968      cxx)
15969	allow_undefined_flag_CXX=' -expect_unresolved \*'
15970	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'
15971	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15972	  echo "-hidden">> $lib.exp~
15973	  $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~
15974	  $rm $lib.exp'
15975
15976	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15977	hardcode_libdir_separator_CXX=:
15978
15979	# Commands to make compiler produce verbose output that lists
15980	# what "hidden" libraries, object files and flags are used when
15981	# linking a shared library.
15982	#
15983	# There doesn't appear to be a way to prevent this compiler from
15984	# explicitly linking system object files so we need to strip them
15985	# from the output so that they don't get included in the library
15986	# dependencies.
15987	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'
15988	;;
15989      *)
15990	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15991	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15992	 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'
15993
15994	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15995	  hardcode_libdir_separator_CXX=:
15996
15997	  # Commands to make compiler produce verbose output that lists
15998	  # what "hidden" libraries, object files and flags are used when
15999	  # linking a shared library.
16000	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16001
16002	else
16003	  # FIXME: insert proper C++ library support
16004	  ld_shlibs_CXX=no
16005	fi
16006	;;
16007    esac
16008    ;;
16009  psos*)
16010    # FIXME: insert proper C++ library support
16011    ld_shlibs_CXX=no
16012    ;;
16013  sco*)
16014    archive_cmds_need_lc_CXX=no
16015    case $cc_basename in
16016      CC)
16017	# FIXME: insert proper C++ library support
16018	ld_shlibs_CXX=no
16019	;;
16020      *)
16021	# FIXME: insert proper C++ library support
16022	ld_shlibs_CXX=no
16023	;;
16024    esac
16025    ;;
16026  sunos4*)
16027    case $cc_basename in
16028      CC)
16029	# Sun C++ 4.x
16030	# FIXME: insert proper C++ library support
16031	ld_shlibs_CXX=no
16032	;;
16033      lcc)
16034	# Lucid
16035	# FIXME: insert proper C++ library support
16036	ld_shlibs_CXX=no
16037	;;
16038      *)
16039	# FIXME: insert proper C++ library support
16040	ld_shlibs_CXX=no
16041	;;
16042    esac
16043    ;;
16044  solaris*)
16045    case $cc_basename in
16046      CC)
16047	# Sun C++ 4.2, 5.x and Centerline C++
16048	no_undefined_flag_CXX=' -zdefs'
16049	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16050	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051	$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'
16052
16053	hardcode_libdir_flag_spec_CXX='-R$libdir'
16054	hardcode_shlibpath_var_CXX=no
16055	case $host_os in
16056	  solaris2.0-5 | solaris2.0-5.*) ;;
16057	  *)
16058	    # The C++ compiler is used as linker so we must use $wl
16059	    # flag to pass the commands to the underlying system
16060	    # linker.
16061	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16062	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16063	    ;;
16064	esac
16065	link_all_deplibs_CXX=yes
16066
16067	# Commands to make compiler produce verbose output that lists
16068	# what "hidden" libraries, object files and flags are used when
16069	# linking a shared library.
16070	#
16071	# There doesn't appear to be a way to prevent this compiler from
16072	# explicitly linking system object files so we need to strip them
16073	# from the output so that they don't get included in the library
16074	# dependencies.
16075	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'
16076
16077	# Archives containing C++ object files must be created using
16078	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16079	# necessary to make sure instantiated templates are included
16080	# in the archive.
16081	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16082	;;
16083      gcx)
16084	# Green Hills C++ Compiler
16085	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16086
16087	# The C++ compiler must be used to create the archive.
16088	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16089	;;
16090      *)
16091	# GNU C++ compiler with Solaris linker
16092	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16093	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16094	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16095	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16096	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16098
16099	    # Commands to make compiler produce verbose output that lists
16100	    # what "hidden" libraries, object files and flags are used when
16101	    # linking a shared library.
16102	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16103	  else
16104	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16105	    # platform.
16106	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16107	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16108		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16109
16110	    # Commands to make compiler produce verbose output that lists
16111	    # what "hidden" libraries, object files and flags are used when
16112	    # linking a shared library.
16113	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16114	  fi
16115
16116	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16117	fi
16118	;;
16119    esac
16120    ;;
16121  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16122    archive_cmds_need_lc_CXX=no
16123    ;;
16124  tandem*)
16125    case $cc_basename in
16126      NCC)
16127	# NonStop-UX NCC 3.20
16128	# FIXME: insert proper C++ library support
16129	ld_shlibs_CXX=no
16130	;;
16131      *)
16132	# FIXME: insert proper C++ library support
16133	ld_shlibs_CXX=no
16134	;;
16135    esac
16136    ;;
16137  vxworks*)
16138    # FIXME: insert proper C++ library support
16139    ld_shlibs_CXX=no
16140    ;;
16141  *)
16142    # FIXME: insert proper C++ library support
16143    ld_shlibs_CXX=no
16144    ;;
16145esac
16146echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16147echo "${ECHO_T}$ld_shlibs_CXX" >&6
16148test "$ld_shlibs_CXX" = no && can_build_shared=no
16149
16150GCC_CXX="$GXX"
16151LD_CXX="$LD"
16152
16153
16154cat > conftest.$ac_ext <<EOF
16155class Foo
16156{
16157public:
16158  Foo (void) { a = 0; }
16159private:
16160  int a;
16161};
16162EOF
16163
16164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165  (eval $ac_compile) 2>&5
16166  ac_status=$?
16167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168  (exit $ac_status); }; then
16169  # Parse the compiler output and extract the necessary
16170  # objects, libraries and library flags.
16171
16172  # Sentinel used to keep track of whether or not we are before
16173  # the conftest object file.
16174  pre_test_object_deps_done=no
16175
16176  # The `*' in the case matches for architectures that use `case' in
16177  # $output_verbose_cmd can trigger glob expansion during the loop
16178  # eval without this substitution.
16179  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16180
16181  for p in `eval $output_verbose_link_cmd`; do
16182    case $p in
16183
16184    -L* | -R* | -l*)
16185       # Some compilers place space between "-{L,R}" and the path.
16186       # Remove the space.
16187       if test $p = "-L" \
16188	  || test $p = "-R"; then
16189	 prev=$p
16190	 continue
16191       else
16192	 prev=
16193       fi
16194
16195       if test "$pre_test_object_deps_done" = no; then
16196	 case $p in
16197	 -L* | -R*)
16198	   # Internal compiler library paths should come after those
16199	   # provided the user.  The postdeps already come after the
16200	   # user supplied libs so there is no need to process them.
16201	   if test -z "$compiler_lib_search_path_CXX"; then
16202	     compiler_lib_search_path_CXX="${prev}${p}"
16203	   else
16204	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16205	   fi
16206	   ;;
16207	 # The "-l" case would never come before the object being
16208	 # linked, so don't bother handling this case.
16209	 esac
16210       else
16211	 if test -z "$postdeps_CXX"; then
16212	   postdeps_CXX="${prev}${p}"
16213	 else
16214	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16215	 fi
16216       fi
16217       ;;
16218
16219    *.$objext)
16220       # This assumes that the test object file only shows up
16221       # once in the compiler output.
16222       if test "$p" = "conftest.$objext"; then
16223	 pre_test_object_deps_done=yes
16224	 continue
16225       fi
16226
16227       if test "$pre_test_object_deps_done" = no; then
16228	 if test -z "$predep_objects_CXX"; then
16229	   predep_objects_CXX="$p"
16230	 else
16231	   predep_objects_CXX="$predep_objects_CXX $p"
16232	 fi
16233       else
16234	 if test -z "$postdep_objects_CXX"; then
16235	   postdep_objects_CXX="$p"
16236	 else
16237	   postdep_objects_CXX="$postdep_objects_CXX $p"
16238	 fi
16239       fi
16240       ;;
16241
16242    *) ;; # Ignore the rest.
16243
16244    esac
16245  done
16246
16247  # Clean up.
16248  rm -f a.out a.exe
16249else
16250  echo "libtool.m4: error: problem compiling CXX test program"
16251fi
16252
16253$rm -f confest.$objext
16254
16255case " $postdeps_CXX " in
16256*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16257esac
16258
16259lt_prog_compiler_wl_CXX=
16260lt_prog_compiler_pic_CXX=
16261lt_prog_compiler_static_CXX=
16262
16263echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16264echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16265
16266  # C++ specific cases for pic, static, wl, etc.
16267  if test "$GXX" = yes; then
16268    lt_prog_compiler_wl_CXX='-Wl,'
16269    lt_prog_compiler_static_CXX='-static'
16270
16271    case $host_os in
16272    aix*)
16273      # All AIX code is PIC.
16274      if test "$host_cpu" = ia64; then
16275	# AIX 5 now supports IA64 processor
16276	lt_prog_compiler_static_CXX='-Bstatic'
16277      fi
16278      ;;
16279    amigaos*)
16280      # FIXME: we need at least 68020 code to build shared libraries, but
16281      # adding the `-m68020' flag to GCC prevents building anything better,
16282      # like `-m68040'.
16283      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16284      ;;
16285    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16286      # PIC is the default for these OSes.
16287      ;;
16288    mingw* | os2* | pw32*)
16289      # This hack is so that the source file can tell whether it is being
16290      # built for inclusion in a dll (and should export symbols for example).
16291      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16292      ;;
16293    darwin* | rhapsody*)
16294      # PIC is the default on this platform
16295      # Common symbols not allowed in MH_DYLIB files
16296      lt_prog_compiler_pic_CXX='-fno-common'
16297      ;;
16298    *djgpp*)
16299      # DJGPP does not support shared libraries at all
16300      lt_prog_compiler_pic_CXX=
16301      ;;
16302    sysv4*MP*)
16303      if test -d /usr/nec; then
16304	lt_prog_compiler_pic_CXX=-Kconform_pic
16305      fi
16306      ;;
16307    hpux*)
16308      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16309      # not for PA HP-UX.
16310      case "$host_cpu" in
16311      hppa*64*|ia64*)
16312	;;
16313      *)
16314	lt_prog_compiler_pic_CXX='-fPIC'
16315	;;
16316      esac
16317      ;;
16318    *)
16319      lt_prog_compiler_pic_CXX='-fPIC'
16320      ;;
16321    esac
16322  else
16323    case $host_os in
16324      aix4* | aix5*)
16325	# All AIX code is PIC.
16326	if test "$host_cpu" = ia64; then
16327	  # AIX 5 now supports IA64 processor
16328	  lt_prog_compiler_static_CXX='-Bstatic'
16329	else
16330	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16331	fi
16332	;;
16333      chorus*)
16334	case $cc_basename in
16335	cxch68)
16336	  # Green Hills C++ Compiler
16337	  # _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"
16338	  ;;
16339	esac
16340	;;
16341       darwin*)
16342         # PIC is the default on this platform
16343         # Common symbols not allowed in MH_DYLIB files
16344         case "$cc_basename" in
16345           xlc*)
16346           lt_prog_compiler_pic_CXX='-qnocommon'
16347           lt_prog_compiler_wl_CXX='-Wl,'
16348           ;;
16349         esac
16350       ;;
16351      dgux*)
16352	case $cc_basename in
16353	  ec++)
16354	    lt_prog_compiler_pic_CXX='-KPIC'
16355	    ;;
16356	  ghcx)
16357	    # Green Hills C++ Compiler
16358	    lt_prog_compiler_pic_CXX='-pic'
16359	    ;;
16360	  *)
16361	    ;;
16362	esac
16363	;;
16364      freebsd* | kfreebsd*-gnu)
16365	# FreeBSD uses GNU C++
16366	;;
16367      hpux9* | hpux10* | hpux11*)
16368	case $cc_basename in
16369	  CC)
16370	    lt_prog_compiler_wl_CXX='-Wl,'
16371	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16372	    if test "$host_cpu" != ia64; then
16373	      lt_prog_compiler_pic_CXX='+Z'
16374	    fi
16375	    ;;
16376	  aCC)
16377	    lt_prog_compiler_wl_CXX='-Wl,'
16378	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16379	    case "$host_cpu" in
16380	    hppa*64*|ia64*)
16381	      # +Z the default
16382	      ;;
16383	    *)
16384	      lt_prog_compiler_pic_CXX='+Z'
16385	      ;;
16386	    esac
16387	    ;;
16388	  *)
16389	    ;;
16390	esac
16391	;;
16392      irix5* | irix6* | nonstopux*)
16393	case $cc_basename in
16394	  CC)
16395	    lt_prog_compiler_wl_CXX='-Wl,'
16396	    lt_prog_compiler_static_CXX='-non_shared'
16397	    # CC pic flag -KPIC is the default.
16398	    ;;
16399	  *)
16400	    ;;
16401	esac
16402	;;
16403      linux*)
16404	case $cc_basename in
16405	  KCC)
16406	    # KAI C++ Compiler
16407	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16408	    lt_prog_compiler_pic_CXX='-fPIC'
16409	    ;;
16410	  icpc)
16411	    # Intel C++
16412	    lt_prog_compiler_wl_CXX='-Wl,'
16413	    lt_prog_compiler_pic_CXX='-KPIC'
16414	    lt_prog_compiler_static_CXX='-static'
16415	    ;;
16416	  cxx)
16417	    # Compaq C++
16418	    # Make sure the PIC flag is empty.  It appears that all Alpha
16419	    # Linux and Compaq Tru64 Unix objects are PIC.
16420	    lt_prog_compiler_pic_CXX=
16421	    lt_prog_compiler_static_CXX='-non_shared'
16422	    ;;
16423	  *)
16424	    ;;
16425	esac
16426	;;
16427      lynxos*)
16428	;;
16429      m88k*)
16430	;;
16431      mvs*)
16432	case $cc_basename in
16433	  cxx)
16434	    lt_prog_compiler_pic_CXX='-W c,exportall'
16435	    ;;
16436	  *)
16437	    ;;
16438	esac
16439	;;
16440      netbsd*)
16441	;;
16442      osf3* | osf4* | osf5*)
16443	case $cc_basename in
16444	  KCC)
16445	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16446	    ;;
16447	  RCC)
16448	    # Rational C++ 2.4.1
16449	    lt_prog_compiler_pic_CXX='-pic'
16450	    ;;
16451	  cxx)
16452	    # Digital/Compaq C++
16453	    lt_prog_compiler_wl_CXX='-Wl,'
16454	    # Make sure the PIC flag is empty.  It appears that all Alpha
16455	    # Linux and Compaq Tru64 Unix objects are PIC.
16456	    lt_prog_compiler_pic_CXX=
16457	    lt_prog_compiler_static_CXX='-non_shared'
16458	    ;;
16459	  *)
16460	    ;;
16461	esac
16462	;;
16463      psos*)
16464	;;
16465      sco*)
16466	case $cc_basename in
16467	  CC)
16468	    lt_prog_compiler_pic_CXX='-fPIC'
16469	    ;;
16470	  *)
16471	    ;;
16472	esac
16473	;;
16474      solaris*)
16475	case $cc_basename in
16476	  CC)
16477	    # Sun C++ 4.2, 5.x and Centerline C++
16478	    lt_prog_compiler_pic_CXX='-KPIC'
16479	    lt_prog_compiler_static_CXX='-Bstatic'
16480	    lt_prog_compiler_wl_CXX='-Qoption ld '
16481	    ;;
16482	  gcx)
16483	    # Green Hills C++ Compiler
16484	    lt_prog_compiler_pic_CXX='-PIC'
16485	    ;;
16486	  *)
16487	    ;;
16488	esac
16489	;;
16490      sunos4*)
16491	case $cc_basename in
16492	  CC)
16493	    # Sun C++ 4.x
16494	    lt_prog_compiler_pic_CXX='-pic'
16495	    lt_prog_compiler_static_CXX='-Bstatic'
16496	    ;;
16497	  lcc)
16498	    # Lucid
16499	    lt_prog_compiler_pic_CXX='-pic'
16500	    ;;
16501	  *)
16502	    ;;
16503	esac
16504	;;
16505      tandem*)
16506	case $cc_basename in
16507	  NCC)
16508	    # NonStop-UX NCC 3.20
16509	    lt_prog_compiler_pic_CXX='-KPIC'
16510	    ;;
16511	  *)
16512	    ;;
16513	esac
16514	;;
16515      unixware*)
16516	;;
16517      vxworks*)
16518	;;
16519      *)
16520	lt_prog_compiler_can_build_shared_CXX=no
16521	;;
16522    esac
16523  fi
16524
16525echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16526echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16527
16528#
16529# Check to make sure the PIC flag actually works.
16530#
16531if test -n "$lt_prog_compiler_pic_CXX"; then
16532
16533echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16534echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16535if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16536  echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538  lt_prog_compiler_pic_works_CXX=no
16539  ac_outfile=conftest.$ac_objext
16540   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16541   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16542   # Insert the option either (1) after the last *FLAGS variable, or
16543   # (2) before a word containing "conftest.", or (3) at the end.
16544   # Note that $ac_compile itself does not contain backslashes and begins
16545   # with a dollar sign (not a hyphen), so the echo should work correctly.
16546   # The option is referenced via a variable to avoid confusing sed.
16547   lt_compile=`echo "$ac_compile" | $SED \
16548   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16550   -e 's:$: $lt_compiler_flag:'`
16551   (eval echo "\"\$as_me:16551: $lt_compile\"" >&5)
16552   (eval "$lt_compile" 2>conftest.err)
16553   ac_status=$?
16554   cat conftest.err >&5
16555   echo "$as_me:16555: \$? = $ac_status" >&5
16556   if (exit $ac_status) && test -s "$ac_outfile"; then
16557     # The compiler can only warn and ignore the option if not recognized
16558     # So say no if there are warnings
16559     if test ! -s conftest.err; then
16560       lt_prog_compiler_pic_works_CXX=yes
16561     fi
16562   fi
16563   $rm conftest*
16564
16565fi
16566echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16567echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16568
16569if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16570    case $lt_prog_compiler_pic_CXX in
16571     "" | " "*) ;;
16572     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16573     esac
16574else
16575    lt_prog_compiler_pic_CXX=
16576     lt_prog_compiler_can_build_shared_CXX=no
16577fi
16578
16579fi
16580case "$host_os" in
16581  # For platforms which do not support PIC, -DPIC is meaningless:
16582  *djgpp*)
16583    lt_prog_compiler_pic_CXX=
16584    ;;
16585  *)
16586    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16587    ;;
16588esac
16589
16590echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16591echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16592if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16593  echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595  lt_cv_prog_compiler_c_o_CXX=no
16596   $rm -r conftest 2>/dev/null
16597   mkdir conftest
16598   cd conftest
16599   mkdir out
16600   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16601
16602   lt_compiler_flag="-o out/conftest2.$ac_objext"
16603   # Insert the option either (1) after the last *FLAGS variable, or
16604   # (2) before a word containing "conftest.", or (3) at the end.
16605   # Note that $ac_compile itself does not contain backslashes and begins
16606   # with a dollar sign (not a hyphen), so the echo should work correctly.
16607   lt_compile=`echo "$ac_compile" | $SED \
16608   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16609   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16610   -e 's:$: $lt_compiler_flag:'`
16611   (eval echo "\"\$as_me:16611: $lt_compile\"" >&5)
16612   (eval "$lt_compile" 2>out/conftest.err)
16613   ac_status=$?
16614   cat out/conftest.err >&5
16615   echo "$as_me:16615: \$? = $ac_status" >&5
16616   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16617   then
16618     # The compiler can only warn and ignore the option if not recognized
16619     # So say no if there are warnings
16620     if test ! -s out/conftest.err; then
16621       lt_cv_prog_compiler_c_o_CXX=yes
16622     fi
16623   fi
16624   chmod u+w .
16625   $rm conftest*
16626   # SGI C++ compiler will create directory out/ii_files/ for
16627   # template instantiation
16628   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16629   $rm out/* && rmdir out
16630   cd ..
16631   rmdir conftest
16632   $rm conftest*
16633
16634fi
16635echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16636echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16637
16638
16639hard_links="nottested"
16640if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16641  # do not overwrite the value of need_locks provided by the user
16642  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16643echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16644  hard_links=yes
16645  $rm conftest*
16646  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16647  touch conftest.a
16648  ln conftest.a conftest.b 2>&5 || hard_links=no
16649  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16650  echo "$as_me:$LINENO: result: $hard_links" >&5
16651echo "${ECHO_T}$hard_links" >&6
16652  if test "$hard_links" = no; then
16653    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16654echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16655    need_locks=warn
16656  fi
16657else
16658  need_locks=no
16659fi
16660
16661echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16662echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16663
16664  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16665  case $host_os in
16666  aix4* | aix5*)
16667    # If we're using GNU nm, then we don't want the "-C" option.
16668    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16669    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16670      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'
16671    else
16672      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'
16673    fi
16674    ;;
16675  pw32*)
16676    export_symbols_cmds_CXX="$ltdll_cmds"
16677  ;;
16678  cygwin* | mingw*)
16679    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16680  ;;
16681  *)
16682    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16683  ;;
16684  esac
16685
16686echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16687echo "${ECHO_T}$ld_shlibs_CXX" >&6
16688test "$ld_shlibs_CXX" = no && can_build_shared=no
16689
16690variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16691if test "$GCC" = yes; then
16692  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16693fi
16694
16695#
16696# Do we need to explicitly link libc?
16697#
16698case "x$archive_cmds_need_lc_CXX" in
16699x|xyes)
16700  # Assume -lc should be added
16701  archive_cmds_need_lc_CXX=yes
16702
16703  if test "$enable_shared" = yes && test "$GCC" = yes; then
16704    case $archive_cmds_CXX in
16705    *'~'*)
16706      # FIXME: we may have to deal with multi-command sequences.
16707      ;;
16708    '$CC '*)
16709      # Test whether the compiler implicitly links with -lc since on some
16710      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16711      # to ld, don't add -lc before -lgcc.
16712      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16713echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16714      $rm conftest*
16715      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16716
16717      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718  (eval $ac_compile) 2>&5
16719  ac_status=$?
16720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721  (exit $ac_status); } 2>conftest.err; then
16722        soname=conftest
16723        lib=conftest
16724        libobjs=conftest.$ac_objext
16725        deplibs=
16726        wl=$lt_prog_compiler_wl_CXX
16727        compiler_flags=-v
16728        linker_flags=-v
16729        verstring=
16730        output_objdir=.
16731        libname=conftest
16732        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16733        allow_undefined_flag_CXX=
16734        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16735  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16736  ac_status=$?
16737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738  (exit $ac_status); }
16739        then
16740	  archive_cmds_need_lc_CXX=no
16741        else
16742	  archive_cmds_need_lc_CXX=yes
16743        fi
16744        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16745      else
16746        cat conftest.err 1>&5
16747      fi
16748      $rm conftest*
16749      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16750echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16751      ;;
16752    esac
16753  fi
16754  ;;
16755esac
16756
16757echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16758echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16759library_names_spec=
16760libname_spec='lib$name'
16761soname_spec=
16762shrext_cmds=".so"
16763postinstall_cmds=
16764postuninstall_cmds=
16765finish_cmds=
16766finish_eval=
16767shlibpath_var=
16768shlibpath_overrides_runpath=unknown
16769version_type=none
16770dynamic_linker="$host_os ld.so"
16771sys_lib_dlsearch_path_spec="/lib /usr/lib"
16772if test "$GCC" = yes; then
16773  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16774  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16775    # if the path contains ";" then we assume it to be the separator
16776    # otherwise default to the standard path separator (i.e. ":") - it is
16777    # assumed that no part of a normal pathname contains ";" but that should
16778    # okay in the real world where ";" in dirpaths is itself problematic.
16779    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16780  else
16781    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16782  fi
16783else
16784  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16785fi
16786need_lib_prefix=unknown
16787hardcode_into_libs=no
16788
16789# when you set need_version to no, make sure it does not cause -set_version
16790# flags to be left without arguments
16791need_version=unknown
16792
16793case $host_os in
16794aix3*)
16795  version_type=linux
16796  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16797  shlibpath_var=LIBPATH
16798
16799  # AIX 3 has no versioning support, so we append a major version to the name.
16800  soname_spec='${libname}${release}${shared_ext}$major'
16801  ;;
16802
16803aix4* | aix5*)
16804  version_type=linux
16805  need_lib_prefix=no
16806  need_version=no
16807  hardcode_into_libs=yes
16808  if test "$host_cpu" = ia64; then
16809    # AIX 5 supports IA64
16810    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16811    shlibpath_var=LD_LIBRARY_PATH
16812  else
16813    # With GCC up to 2.95.x, collect2 would create an import file
16814    # for dependence libraries.  The import file would start with
16815    # the line `#! .'.  This would cause the generated library to
16816    # depend on `.', always an invalid library.  This was fixed in
16817    # development snapshots of GCC prior to 3.0.
16818    case $host_os in
16819      aix4 | aix4.[01] | aix4.[01].*)
16820      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16821	   echo ' yes '
16822	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16823	:
16824      else
16825	can_build_shared=no
16826      fi
16827      ;;
16828    esac
16829    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16830    # soname into executable. Probably we can add versioning support to
16831    # collect2, so additional links can be useful in future.
16832    if test "$aix_use_runtimelinking" = yes; then
16833      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16834      # instead of lib<name>.a to let people know that these are not
16835      # typical AIX shared libraries.
16836      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837    else
16838      # We preserve .a as extension for shared libraries through AIX4.2
16839      # and later when we are not doing run time linking.
16840      library_names_spec='${libname}${release}.a $libname.a'
16841      soname_spec='${libname}${release}${shared_ext}$major'
16842    fi
16843    shlibpath_var=LIBPATH
16844  fi
16845  ;;
16846
16847amigaos*)
16848  library_names_spec='$libname.ixlibrary $libname.a'
16849  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16850  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'
16851  ;;
16852
16853beos*)
16854  library_names_spec='${libname}${shared_ext}'
16855  dynamic_linker="$host_os ld.so"
16856  shlibpath_var=LIBRARY_PATH
16857  ;;
16858
16859bsdi[45]*)
16860  version_type=linux
16861  need_version=no
16862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863  soname_spec='${libname}${release}${shared_ext}$major'
16864  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16865  shlibpath_var=LD_LIBRARY_PATH
16866  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16867  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16868  # the default ld.so.conf also contains /usr/contrib/lib and
16869  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16870  # libtool to hard-code these into programs
16871  ;;
16872
16873cygwin* | mingw* | pw32*)
16874  version_type=windows
16875  shrext_cmds=".dll"
16876  need_version=no
16877  need_lib_prefix=no
16878
16879  case $GCC,$host_os in
16880  yes,cygwin* | yes,mingw* | yes,pw32*)
16881    library_names_spec='$libname.dll.a'
16882    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16883    postinstall_cmds='base_file=`basename \${file}`~
16884      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16885      dldir=$destdir/`dirname \$dlpath`~
16886      test -d \$dldir || mkdir -p \$dldir~
16887      $install_prog $dir/$dlname \$dldir/$dlname'
16888    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16889      dlpath=$dir/\$dldll~
16890       $rm \$dlpath'
16891    shlibpath_overrides_runpath=yes
16892
16893    case $host_os in
16894    cygwin*)
16895      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16896      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16897      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16898      ;;
16899    mingw*)
16900      # MinGW DLLs use traditional 'lib' prefix
16901      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16902      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16903      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16904        # It is most probably a Windows format PATH printed by
16905        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16906        # path with ; separators, and with drive letters. We can handle the
16907        # drive letters (cygwin fileutils understands them), so leave them,
16908        # especially as we might pass files found there to a mingw objdump,
16909        # which wouldn't understand a cygwinified path. Ahh.
16910        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16911      else
16912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16913      fi
16914      ;;
16915    pw32*)
16916      # pw32 DLLs use 'pw' prefix rather than 'lib'
16917      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16918      ;;
16919    esac
16920    ;;
16921
16922  *)
16923    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16924    ;;
16925  esac
16926  dynamic_linker='Win32 ld.exe'
16927  # FIXME: first we should search . and the directory the executable is in
16928  shlibpath_var=PATH
16929  ;;
16930
16931darwin* | rhapsody*)
16932  dynamic_linker="$host_os dyld"
16933  version_type=darwin
16934  need_lib_prefix=no
16935  need_version=no
16936  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16937  soname_spec='${libname}${release}${major}$shared_ext'
16938  shlibpath_overrides_runpath=yes
16939  shlibpath_var=DYLD_LIBRARY_PATH
16940  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16941  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16942  if test "$GCC" = yes; then
16943    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"`
16944  else
16945    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16946  fi
16947  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16948  ;;
16949
16950dgux*)
16951  version_type=linux
16952  need_lib_prefix=no
16953  need_version=no
16954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16955  soname_spec='${libname}${release}${shared_ext}$major'
16956  shlibpath_var=LD_LIBRARY_PATH
16957  ;;
16958
16959freebsd1*)
16960  dynamic_linker=no
16961  ;;
16962
16963kfreebsd*-gnu)
16964  version_type=linux
16965  need_lib_prefix=no
16966  need_version=no
16967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16968  soname_spec='${libname}${release}${shared_ext}$major'
16969  shlibpath_var=LD_LIBRARY_PATH
16970  shlibpath_overrides_runpath=no
16971  hardcode_into_libs=yes
16972  dynamic_linker='GNU ld.so'
16973  ;;
16974
16975freebsd*)
16976  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16977  version_type=freebsd-$objformat
16978  case $version_type in
16979    freebsd-elf*)
16980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16981      need_version=no
16982      need_lib_prefix=no
16983      ;;
16984    freebsd-*)
16985      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16986      need_version=yes
16987      ;;
16988  esac
16989  shlibpath_var=LD_LIBRARY_PATH
16990  case $host_os in
16991  freebsd2*)
16992    shlibpath_overrides_runpath=yes
16993    ;;
16994  freebsd3.01* | freebsdelf3.01*)
16995    shlibpath_overrides_runpath=yes
16996    hardcode_into_libs=yes
16997    ;;
16998  *) # from 3.2 on
16999    shlibpath_overrides_runpath=no
17000    hardcode_into_libs=yes
17001    ;;
17002  esac
17003  ;;
17004
17005gnu*)
17006  version_type=linux
17007  need_lib_prefix=no
17008  need_version=no
17009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17010  soname_spec='${libname}${release}${shared_ext}$major'
17011  shlibpath_var=LD_LIBRARY_PATH
17012  hardcode_into_libs=yes
17013  ;;
17014
17015hpux9* | hpux10* | hpux11*)
17016  # Give a soname corresponding to the major version so that dld.sl refuses to
17017  # link against other versions.
17018  version_type=sunos
17019  need_lib_prefix=no
17020  need_version=no
17021  case "$host_cpu" in
17022  ia64*)
17023    shrext_cmds='.so'
17024    hardcode_into_libs=yes
17025    dynamic_linker="$host_os dld.so"
17026    shlibpath_var=LD_LIBRARY_PATH
17027    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17029    soname_spec='${libname}${release}${shared_ext}$major'
17030    if test "X$HPUX_IA64_MODE" = X32; then
17031      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17032    else
17033      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17034    fi
17035    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17036    ;;
17037   hppa*64*)
17038     shrext_cmds='.sl'
17039     hardcode_into_libs=yes
17040     dynamic_linker="$host_os dld.sl"
17041     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17042     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044     soname_spec='${libname}${release}${shared_ext}$major'
17045     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17046     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17047     ;;
17048   *)
17049    shrext_cmds='.sl'
17050    dynamic_linker="$host_os dld.sl"
17051    shlibpath_var=SHLIB_PATH
17052    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054    soname_spec='${libname}${release}${shared_ext}$major'
17055    ;;
17056  esac
17057  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17058  postinstall_cmds='chmod 555 $lib'
17059  ;;
17060
17061irix5* | irix6* | nonstopux*)
17062  case $host_os in
17063    nonstopux*) version_type=nonstopux ;;
17064    *)
17065	if test "$lt_cv_prog_gnu_ld" = yes; then
17066		version_type=linux
17067	else
17068		version_type=irix
17069	fi ;;
17070  esac
17071  need_lib_prefix=no
17072  need_version=no
17073  soname_spec='${libname}${release}${shared_ext}$major'
17074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17075  case $host_os in
17076  irix5* | nonstopux*)
17077    libsuff= shlibsuff=
17078    ;;
17079  *)
17080    case $LD in # libtool.m4 will add one of these switches to LD
17081    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17082      libsuff= shlibsuff= libmagic=32-bit;;
17083    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17084      libsuff=32 shlibsuff=N32 libmagic=N32;;
17085    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17086      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17087    *) libsuff= shlibsuff= libmagic=never-match;;
17088    esac
17089    ;;
17090  esac
17091  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17092  shlibpath_overrides_runpath=no
17093  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17094  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17095  hardcode_into_libs=yes
17096  ;;
17097
17098# No shared lib support for Linux oldld, aout, or coff.
17099linux*oldld* | linux*aout* | linux*coff*)
17100  dynamic_linker=no
17101  ;;
17102
17103# This must be Linux ELF.
17104linux*)
17105  version_type=linux
17106  need_lib_prefix=no
17107  need_version=no
17108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109  soname_spec='${libname}${release}${shared_ext}$major'
17110  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17111  shlibpath_var=LD_LIBRARY_PATH
17112  shlibpath_overrides_runpath=no
17113  # This implies no fast_install, which is unacceptable.
17114  # Some rework will be needed to allow for fast_install
17115  # before this can be enabled.
17116  hardcode_into_libs=yes
17117
17118  # Append ld.so.conf contents to the search path
17119  if test -f /etc/ld.so.conf; then
17120    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17121    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17122  fi
17123
17124  # We used to test for /lib/ld.so.1 and disable shared libraries on
17125  # powerpc, because MkLinux only supported shared libraries with the
17126  # GNU dynamic linker.  Since this was broken with cross compilers,
17127  # most powerpc-linux boxes support dynamic linking these days and
17128  # people can always --disable-shared, the test was removed, and we
17129  # assume the GNU/Linux dynamic linker is in use.
17130  dynamic_linker='GNU/Linux ld.so'
17131  ;;
17132
17133knetbsd*-gnu)
17134  version_type=linux
17135  need_lib_prefix=no
17136  need_version=no
17137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17138  soname_spec='${libname}${release}${shared_ext}$major'
17139  shlibpath_var=LD_LIBRARY_PATH
17140  shlibpath_overrides_runpath=no
17141  hardcode_into_libs=yes
17142  dynamic_linker='GNU ld.so'
17143  ;;
17144
17145netbsd*)
17146  version_type=sunos
17147  need_lib_prefix=no
17148  need_version=no
17149  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17150    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17151    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17152    dynamic_linker='NetBSD (a.out) ld.so'
17153  else
17154    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17155    soname_spec='${libname}${release}${shared_ext}$major'
17156    dynamic_linker='NetBSD ld.elf_so'
17157  fi
17158  shlibpath_var=LD_LIBRARY_PATH
17159  shlibpath_overrides_runpath=yes
17160  hardcode_into_libs=yes
17161  ;;
17162
17163newsos6)
17164  version_type=linux
17165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166  shlibpath_var=LD_LIBRARY_PATH
17167  shlibpath_overrides_runpath=yes
17168  ;;
17169
17170nto-qnx*)
17171  version_type=linux
17172  need_lib_prefix=no
17173  need_version=no
17174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175  soname_spec='${libname}${release}${shared_ext}$major'
17176  shlibpath_var=LD_LIBRARY_PATH
17177  shlibpath_overrides_runpath=yes
17178  ;;
17179
17180openbsd*)
17181  version_type=sunos
17182  need_lib_prefix=no
17183  need_version=no
17184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17186  shlibpath_var=LD_LIBRARY_PATH
17187  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17188    case $host_os in
17189      openbsd2.[89] | openbsd2.[89].*)
17190	shlibpath_overrides_runpath=no
17191	;;
17192      *)
17193	shlibpath_overrides_runpath=yes
17194	;;
17195      esac
17196  else
17197    shlibpath_overrides_runpath=yes
17198  fi
17199  ;;
17200
17201os2*)
17202  libname_spec='$name'
17203  shrext_cmds=".dll"
17204  need_lib_prefix=no
17205  library_names_spec='$libname${shared_ext} $libname.a'
17206  dynamic_linker='OS/2 ld.exe'
17207  shlibpath_var=LIBPATH
17208  ;;
17209
17210osf3* | osf4* | osf5*)
17211  version_type=osf
17212  need_lib_prefix=no
17213  need_version=no
17214  soname_spec='${libname}${release}${shared_ext}$major'
17215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216  shlibpath_var=LD_LIBRARY_PATH
17217  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17218  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17219  ;;
17220
17221sco3.2v5*)
17222  version_type=osf
17223  soname_spec='${libname}${release}${shared_ext}$major'
17224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225  shlibpath_var=LD_LIBRARY_PATH
17226  ;;
17227
17228solaris*)
17229  version_type=linux
17230  need_lib_prefix=no
17231  need_version=no
17232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233  soname_spec='${libname}${release}${shared_ext}$major'
17234  shlibpath_var=LD_LIBRARY_PATH
17235  shlibpath_overrides_runpath=yes
17236  hardcode_into_libs=yes
17237  # ldd complains unless libraries are executable
17238  postinstall_cmds='chmod +x $lib'
17239  ;;
17240
17241sunos4*)
17242  version_type=sunos
17243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17244  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17245  shlibpath_var=LD_LIBRARY_PATH
17246  shlibpath_overrides_runpath=yes
17247  if test "$with_gnu_ld" = yes; then
17248    need_lib_prefix=no
17249  fi
17250  need_version=yes
17251  ;;
17252
17253sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17254  version_type=linux
17255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256  soname_spec='${libname}${release}${shared_ext}$major'
17257  shlibpath_var=LD_LIBRARY_PATH
17258  case $host_vendor in
17259    sni)
17260      shlibpath_overrides_runpath=no
17261      need_lib_prefix=no
17262      export_dynamic_flag_spec='${wl}-Blargedynsym'
17263      runpath_var=LD_RUN_PATH
17264      ;;
17265    siemens)
17266      need_lib_prefix=no
17267      ;;
17268    motorola)
17269      need_lib_prefix=no
17270      need_version=no
17271      shlibpath_overrides_runpath=no
17272      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17273      ;;
17274  esac
17275  ;;
17276
17277sysv4*MP*)
17278  if test -d /usr/nec ;then
17279    version_type=linux
17280    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17281    soname_spec='$libname${shared_ext}.$major'
17282    shlibpath_var=LD_LIBRARY_PATH
17283  fi
17284  ;;
17285
17286uts4*)
17287  version_type=linux
17288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289  soname_spec='${libname}${release}${shared_ext}$major'
17290  shlibpath_var=LD_LIBRARY_PATH
17291  ;;
17292
17293*)
17294  dynamic_linker=no
17295  ;;
17296esac
17297echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17298echo "${ECHO_T}$dynamic_linker" >&6
17299test "$dynamic_linker" = no && can_build_shared=no
17300
17301echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17302echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17303hardcode_action_CXX=
17304if test -n "$hardcode_libdir_flag_spec_CXX" || \
17305   test -n "$runpath_var_CXX" || \
17306   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17307
17308  # We can hardcode non-existant directories.
17309  if test "$hardcode_direct_CXX" != no &&
17310     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17311     # have to relink, otherwise we might link with an installed library
17312     # when we should be linking with a yet-to-be-installed one
17313     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17314     test "$hardcode_minus_L_CXX" != no; then
17315    # Linking always hardcodes the temporary library directory.
17316    hardcode_action_CXX=relink
17317  else
17318    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17319    hardcode_action_CXX=immediate
17320  fi
17321else
17322  # We cannot hardcode anything, or else we can only hardcode existing
17323  # directories.
17324  hardcode_action_CXX=unsupported
17325fi
17326echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17327echo "${ECHO_T}$hardcode_action_CXX" >&6
17328
17329if test "$hardcode_action_CXX" = relink; then
17330  # Fast installation is not supported
17331  enable_fast_install=no
17332elif test "$shlibpath_overrides_runpath" = yes ||
17333     test "$enable_shared" = no; then
17334  # Fast installation is not necessary
17335  enable_fast_install=needless
17336fi
17337
17338striplib=
17339old_striplib=
17340echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17341echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17342if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17343  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17344  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17345  echo "$as_me:$LINENO: result: yes" >&5
17346echo "${ECHO_T}yes" >&6
17347else
17348# FIXME - insert some real tests, host_os isn't really good enough
17349  case $host_os in
17350   darwin*)
17351       if test -n "$STRIP" ; then
17352         striplib="$STRIP -x"
17353         echo "$as_me:$LINENO: result: yes" >&5
17354echo "${ECHO_T}yes" >&6
17355       else
17356  echo "$as_me:$LINENO: result: no" >&5
17357echo "${ECHO_T}no" >&6
17358fi
17359       ;;
17360   *)
17361  echo "$as_me:$LINENO: result: no" >&5
17362echo "${ECHO_T}no" >&6
17363    ;;
17364  esac
17365fi
17366
17367if test "x$enable_dlopen" != xyes; then
17368  enable_dlopen=unknown
17369  enable_dlopen_self=unknown
17370  enable_dlopen_self_static=unknown
17371else
17372  lt_cv_dlopen=no
17373  lt_cv_dlopen_libs=
17374
17375  case $host_os in
17376  beos*)
17377    lt_cv_dlopen="load_add_on"
17378    lt_cv_dlopen_libs=
17379    lt_cv_dlopen_self=yes
17380    ;;
17381
17382  mingw* | pw32*)
17383    lt_cv_dlopen="LoadLibrary"
17384    lt_cv_dlopen_libs=
17385   ;;
17386
17387  cygwin*)
17388    lt_cv_dlopen="dlopen"
17389    lt_cv_dlopen_libs=
17390   ;;
17391
17392  darwin*)
17393  # if libdl is installed we need to link against it
17394    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17395echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17396if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17397  echo $ECHO_N "(cached) $ECHO_C" >&6
17398else
17399  ac_check_lib_save_LIBS=$LIBS
17400LIBS="-ldl  $LIBS"
17401cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h.  */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h.  */
17407
17408/* Override any gcc2 internal prototype to avoid an error.  */
17409#ifdef __cplusplus
17410extern "C"
17411#endif
17412/* We use char because int might match the return type of a gcc2
17413   builtin and then its argument prototype would still apply.  */
17414char dlopen ();
17415int
17416main ()
17417{
17418dlopen ();
17419  ;
17420  return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext conftest$ac_exeext
17424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425  (eval $ac_link) 2>conftest.er1
17426  ac_status=$?
17427  grep -v '^ *+' conftest.er1 >conftest.err
17428  rm -f conftest.er1
17429  cat conftest.err >&5
17430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431  (exit $ac_status); } &&
17432	 { ac_try='test -z "$ac_cxx_werror_flag"
17433			 || test ! -s conftest.err'
17434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435  (eval $ac_try) 2>&5
17436  ac_status=$?
17437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438  (exit $ac_status); }; } &&
17439	 { ac_try='test -s conftest$ac_exeext'
17440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441  (eval $ac_try) 2>&5
17442  ac_status=$?
17443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444  (exit $ac_status); }; }; then
17445  ac_cv_lib_dl_dlopen=yes
17446else
17447  echo "$as_me: failed program was:" >&5
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
17450ac_cv_lib_dl_dlopen=no
17451fi
17452rm -f conftest.err conftest.$ac_objext \
17453      conftest$ac_exeext conftest.$ac_ext
17454LIBS=$ac_check_lib_save_LIBS
17455fi
17456echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17457echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17458if test $ac_cv_lib_dl_dlopen = yes; then
17459  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17460else
17461
17462    lt_cv_dlopen="dyld"
17463    lt_cv_dlopen_libs=
17464    lt_cv_dlopen_self=yes
17465
17466fi
17467
17468   ;;
17469
17470  *)
17471    echo "$as_me:$LINENO: checking for shl_load" >&5
17472echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17473if test "${ac_cv_func_shl_load+set}" = set; then
17474  echo $ECHO_N "(cached) $ECHO_C" >&6
17475else
17476  cat >conftest.$ac_ext <<_ACEOF
17477/* confdefs.h.  */
17478_ACEOF
17479cat confdefs.h >>conftest.$ac_ext
17480cat >>conftest.$ac_ext <<_ACEOF
17481/* end confdefs.h.  */
17482/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17483   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17484#define shl_load innocuous_shl_load
17485
17486/* System header to define __stub macros and hopefully few prototypes,
17487    which can conflict with char shl_load (); below.
17488    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17489    <limits.h> exists even on freestanding compilers.  */
17490
17491#ifdef __STDC__
17492# include <limits.h>
17493#else
17494# include <assert.h>
17495#endif
17496
17497#undef shl_load
17498
17499/* Override any gcc2 internal prototype to avoid an error.  */
17500#ifdef __cplusplus
17501extern "C"
17502{
17503#endif
17504/* We use char because int might match the return type of a gcc2
17505   builtin and then its argument prototype would still apply.  */
17506char shl_load ();
17507/* The GNU C library defines this for functions which it implements
17508    to always fail with ENOSYS.  Some functions are actually named
17509    something starting with __ and the normal name is an alias.  */
17510#if defined (__stub_shl_load) || defined (__stub___shl_load)
17511choke me
17512#else
17513char (*f) () = shl_load;
17514#endif
17515#ifdef __cplusplus
17516}
17517#endif
17518
17519int
17520main ()
17521{
17522return f != shl_load;
17523  ;
17524  return 0;
17525}
17526_ACEOF
17527rm -f conftest.$ac_objext conftest$ac_exeext
17528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529  (eval $ac_link) 2>conftest.er1
17530  ac_status=$?
17531  grep -v '^ *+' conftest.er1 >conftest.err
17532  rm -f conftest.er1
17533  cat conftest.err >&5
17534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535  (exit $ac_status); } &&
17536	 { ac_try='test -z "$ac_cxx_werror_flag"
17537			 || test ! -s conftest.err'
17538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539  (eval $ac_try) 2>&5
17540  ac_status=$?
17541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542  (exit $ac_status); }; } &&
17543	 { ac_try='test -s conftest$ac_exeext'
17544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545  (eval $ac_try) 2>&5
17546  ac_status=$?
17547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548  (exit $ac_status); }; }; then
17549  ac_cv_func_shl_load=yes
17550else
17551  echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554ac_cv_func_shl_load=no
17555fi
17556rm -f conftest.err conftest.$ac_objext \
17557      conftest$ac_exeext conftest.$ac_ext
17558fi
17559echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17560echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17561if test $ac_cv_func_shl_load = yes; then
17562  lt_cv_dlopen="shl_load"
17563else
17564  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17565echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17566if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17567  echo $ECHO_N "(cached) $ECHO_C" >&6
17568else
17569  ac_check_lib_save_LIBS=$LIBS
17570LIBS="-ldld  $LIBS"
17571cat >conftest.$ac_ext <<_ACEOF
17572/* confdefs.h.  */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h.  */
17577
17578/* Override any gcc2 internal prototype to avoid an error.  */
17579#ifdef __cplusplus
17580extern "C"
17581#endif
17582/* We use char because int might match the return type of a gcc2
17583   builtin and then its argument prototype would still apply.  */
17584char shl_load ();
17585int
17586main ()
17587{
17588shl_load ();
17589  ;
17590  return 0;
17591}
17592_ACEOF
17593rm -f conftest.$ac_objext conftest$ac_exeext
17594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595  (eval $ac_link) 2>conftest.er1
17596  ac_status=$?
17597  grep -v '^ *+' conftest.er1 >conftest.err
17598  rm -f conftest.er1
17599  cat conftest.err >&5
17600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601  (exit $ac_status); } &&
17602	 { ac_try='test -z "$ac_cxx_werror_flag"
17603			 || test ! -s conftest.err'
17604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605  (eval $ac_try) 2>&5
17606  ac_status=$?
17607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608  (exit $ac_status); }; } &&
17609	 { ac_try='test -s conftest$ac_exeext'
17610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611  (eval $ac_try) 2>&5
17612  ac_status=$?
17613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614  (exit $ac_status); }; }; then
17615  ac_cv_lib_dld_shl_load=yes
17616else
17617  echo "$as_me: failed program was:" >&5
17618sed 's/^/| /' conftest.$ac_ext >&5
17619
17620ac_cv_lib_dld_shl_load=no
17621fi
17622rm -f conftest.err conftest.$ac_objext \
17623      conftest$ac_exeext conftest.$ac_ext
17624LIBS=$ac_check_lib_save_LIBS
17625fi
17626echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17627echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17628if test $ac_cv_lib_dld_shl_load = yes; then
17629  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17630else
17631  echo "$as_me:$LINENO: checking for dlopen" >&5
17632echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17633if test "${ac_cv_func_dlopen+set}" = set; then
17634  echo $ECHO_N "(cached) $ECHO_C" >&6
17635else
17636  cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h.  */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h.  */
17642/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17643   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17644#define dlopen innocuous_dlopen
17645
17646/* System header to define __stub macros and hopefully few prototypes,
17647    which can conflict with char dlopen (); below.
17648    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17649    <limits.h> exists even on freestanding compilers.  */
17650
17651#ifdef __STDC__
17652# include <limits.h>
17653#else
17654# include <assert.h>
17655#endif
17656
17657#undef dlopen
17658
17659/* Override any gcc2 internal prototype to avoid an error.  */
17660#ifdef __cplusplus
17661extern "C"
17662{
17663#endif
17664/* We use char because int might match the return type of a gcc2
17665   builtin and then its argument prototype would still apply.  */
17666char dlopen ();
17667/* The GNU C library defines this for functions which it implements
17668    to always fail with ENOSYS.  Some functions are actually named
17669    something starting with __ and the normal name is an alias.  */
17670#if defined (__stub_dlopen) || defined (__stub___dlopen)
17671choke me
17672#else
17673char (*f) () = dlopen;
17674#endif
17675#ifdef __cplusplus
17676}
17677#endif
17678
17679int
17680main ()
17681{
17682return f != dlopen;
17683  ;
17684  return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext conftest$ac_exeext
17688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17689  (eval $ac_link) 2>conftest.er1
17690  ac_status=$?
17691  grep -v '^ *+' conftest.er1 >conftest.err
17692  rm -f conftest.er1
17693  cat conftest.err >&5
17694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695  (exit $ac_status); } &&
17696	 { ac_try='test -z "$ac_cxx_werror_flag"
17697			 || test ! -s conftest.err'
17698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699  (eval $ac_try) 2>&5
17700  ac_status=$?
17701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702  (exit $ac_status); }; } &&
17703	 { ac_try='test -s conftest$ac_exeext'
17704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705  (eval $ac_try) 2>&5
17706  ac_status=$?
17707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708  (exit $ac_status); }; }; then
17709  ac_cv_func_dlopen=yes
17710else
17711  echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714ac_cv_func_dlopen=no
17715fi
17716rm -f conftest.err conftest.$ac_objext \
17717      conftest$ac_exeext conftest.$ac_ext
17718fi
17719echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17720echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17721if test $ac_cv_func_dlopen = yes; then
17722  lt_cv_dlopen="dlopen"
17723else
17724  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17725echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17726if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17727  echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729  ac_check_lib_save_LIBS=$LIBS
17730LIBS="-ldl  $LIBS"
17731cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h.  */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h.  */
17737
17738/* Override any gcc2 internal prototype to avoid an error.  */
17739#ifdef __cplusplus
17740extern "C"
17741#endif
17742/* We use char because int might match the return type of a gcc2
17743   builtin and then its argument prototype would still apply.  */
17744char dlopen ();
17745int
17746main ()
17747{
17748dlopen ();
17749  ;
17750  return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext conftest$ac_exeext
17754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755  (eval $ac_link) 2>conftest.er1
17756  ac_status=$?
17757  grep -v '^ *+' conftest.er1 >conftest.err
17758  rm -f conftest.er1
17759  cat conftest.err >&5
17760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761  (exit $ac_status); } &&
17762	 { ac_try='test -z "$ac_cxx_werror_flag"
17763			 || test ! -s conftest.err'
17764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765  (eval $ac_try) 2>&5
17766  ac_status=$?
17767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768  (exit $ac_status); }; } &&
17769	 { ac_try='test -s conftest$ac_exeext'
17770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771  (eval $ac_try) 2>&5
17772  ac_status=$?
17773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774  (exit $ac_status); }; }; then
17775  ac_cv_lib_dl_dlopen=yes
17776else
17777  echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780ac_cv_lib_dl_dlopen=no
17781fi
17782rm -f conftest.err conftest.$ac_objext \
17783      conftest$ac_exeext conftest.$ac_ext
17784LIBS=$ac_check_lib_save_LIBS
17785fi
17786echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17787echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17788if test $ac_cv_lib_dl_dlopen = yes; then
17789  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17790else
17791  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17792echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17793if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17794  echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796  ac_check_lib_save_LIBS=$LIBS
17797LIBS="-lsvld  $LIBS"
17798cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h.  */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h.  */
17804
17805/* Override any gcc2 internal prototype to avoid an error.  */
17806#ifdef __cplusplus
17807extern "C"
17808#endif
17809/* We use char because int might match the return type of a gcc2
17810   builtin and then its argument prototype would still apply.  */
17811char dlopen ();
17812int
17813main ()
17814{
17815dlopen ();
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext conftest$ac_exeext
17821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822  (eval $ac_link) 2>conftest.er1
17823  ac_status=$?
17824  grep -v '^ *+' conftest.er1 >conftest.err
17825  rm -f conftest.er1
17826  cat conftest.err >&5
17827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828  (exit $ac_status); } &&
17829	 { ac_try='test -z "$ac_cxx_werror_flag"
17830			 || test ! -s conftest.err'
17831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832  (eval $ac_try) 2>&5
17833  ac_status=$?
17834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835  (exit $ac_status); }; } &&
17836	 { ac_try='test -s conftest$ac_exeext'
17837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838  (eval $ac_try) 2>&5
17839  ac_status=$?
17840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841  (exit $ac_status); }; }; then
17842  ac_cv_lib_svld_dlopen=yes
17843else
17844  echo "$as_me: failed program was:" >&5
17845sed 's/^/| /' conftest.$ac_ext >&5
17846
17847ac_cv_lib_svld_dlopen=no
17848fi
17849rm -f conftest.err conftest.$ac_objext \
17850      conftest$ac_exeext conftest.$ac_ext
17851LIBS=$ac_check_lib_save_LIBS
17852fi
17853echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17854echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17855if test $ac_cv_lib_svld_dlopen = yes; then
17856  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17857else
17858  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17859echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17860if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17861  echo $ECHO_N "(cached) $ECHO_C" >&6
17862else
17863  ac_check_lib_save_LIBS=$LIBS
17864LIBS="-ldld  $LIBS"
17865cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h.  */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h.  */
17871
17872/* Override any gcc2 internal prototype to avoid an error.  */
17873#ifdef __cplusplus
17874extern "C"
17875#endif
17876/* We use char because int might match the return type of a gcc2
17877   builtin and then its argument prototype would still apply.  */
17878char dld_link ();
17879int
17880main ()
17881{
17882dld_link ();
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889  (eval $ac_link) 2>conftest.er1
17890  ac_status=$?
17891  grep -v '^ *+' conftest.er1 >conftest.err
17892  rm -f conftest.er1
17893  cat conftest.err >&5
17894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895  (exit $ac_status); } &&
17896	 { ac_try='test -z "$ac_cxx_werror_flag"
17897			 || test ! -s conftest.err'
17898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899  (eval $ac_try) 2>&5
17900  ac_status=$?
17901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902  (exit $ac_status); }; } &&
17903	 { ac_try='test -s conftest$ac_exeext'
17904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905  (eval $ac_try) 2>&5
17906  ac_status=$?
17907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908  (exit $ac_status); }; }; then
17909  ac_cv_lib_dld_dld_link=yes
17910else
17911  echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914ac_cv_lib_dld_dld_link=no
17915fi
17916rm -f conftest.err conftest.$ac_objext \
17917      conftest$ac_exeext conftest.$ac_ext
17918LIBS=$ac_check_lib_save_LIBS
17919fi
17920echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17921echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17922if test $ac_cv_lib_dld_dld_link = yes; then
17923  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17924fi
17925
17926
17927fi
17928
17929
17930fi
17931
17932
17933fi
17934
17935
17936fi
17937
17938
17939fi
17940
17941    ;;
17942  esac
17943
17944  if test "x$lt_cv_dlopen" != xno; then
17945    enable_dlopen=yes
17946  else
17947    enable_dlopen=no
17948  fi
17949
17950  case $lt_cv_dlopen in
17951  dlopen)
17952    save_CPPFLAGS="$CPPFLAGS"
17953    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17954
17955    save_LDFLAGS="$LDFLAGS"
17956    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17957
17958    save_LIBS="$LIBS"
17959    LIBS="$lt_cv_dlopen_libs $LIBS"
17960
17961    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17962echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17963if test "${lt_cv_dlopen_self+set}" = set; then
17964  echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966  	  if test "$cross_compiling" = yes; then :
17967  lt_cv_dlopen_self=cross
17968else
17969  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17970  lt_status=$lt_dlunknown
17971  cat > conftest.$ac_ext <<EOF
17972#line 17972 "configure"
17973#include "confdefs.h"
17974
17975#if HAVE_DLFCN_H
17976#include <dlfcn.h>
17977#endif
17978
17979#include <stdio.h>
17980
17981#ifdef RTLD_GLOBAL
17982#  define LT_DLGLOBAL		RTLD_GLOBAL
17983#else
17984#  ifdef DL_GLOBAL
17985#    define LT_DLGLOBAL		DL_GLOBAL
17986#  else
17987#    define LT_DLGLOBAL		0
17988#  endif
17989#endif
17990
17991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17992   find out it does not work in some platform. */
17993#ifndef LT_DLLAZY_OR_NOW
17994#  ifdef RTLD_LAZY
17995#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17996#  else
17997#    ifdef DL_LAZY
17998#      define LT_DLLAZY_OR_NOW		DL_LAZY
17999#    else
18000#      ifdef RTLD_NOW
18001#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18002#      else
18003#        ifdef DL_NOW
18004#          define LT_DLLAZY_OR_NOW	DL_NOW
18005#        else
18006#          define LT_DLLAZY_OR_NOW	0
18007#        endif
18008#      endif
18009#    endif
18010#  endif
18011#endif
18012
18013#ifdef __cplusplus
18014extern "C" void exit (int);
18015#endif
18016
18017void fnord() { int i=42;}
18018int main ()
18019{
18020  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18021  int status = $lt_dlunknown;
18022
18023  if (self)
18024    {
18025      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18026      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18027      /* dlclose (self); */
18028    }
18029
18030    exit (status);
18031}
18032EOF
18033  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18034  (eval $ac_link) 2>&5
18035  ac_status=$?
18036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18038    (./conftest; exit; ) 2>/dev/null
18039    lt_status=$?
18040    case x$lt_status in
18041      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18042      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18043      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18044    esac
18045  else :
18046    # compilation failed
18047    lt_cv_dlopen_self=no
18048  fi
18049fi
18050rm -fr conftest*
18051
18052
18053fi
18054echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18055echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18056
18057    if test "x$lt_cv_dlopen_self" = xyes; then
18058      LDFLAGS="$LDFLAGS $link_static_flag"
18059      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18060echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18061if test "${lt_cv_dlopen_self_static+set}" = set; then
18062  echo $ECHO_N "(cached) $ECHO_C" >&6
18063else
18064  	  if test "$cross_compiling" = yes; then :
18065  lt_cv_dlopen_self_static=cross
18066else
18067  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18068  lt_status=$lt_dlunknown
18069  cat > conftest.$ac_ext <<EOF
18070#line 18070 "configure"
18071#include "confdefs.h"
18072
18073#if HAVE_DLFCN_H
18074#include <dlfcn.h>
18075#endif
18076
18077#include <stdio.h>
18078
18079#ifdef RTLD_GLOBAL
18080#  define LT_DLGLOBAL		RTLD_GLOBAL
18081#else
18082#  ifdef DL_GLOBAL
18083#    define LT_DLGLOBAL		DL_GLOBAL
18084#  else
18085#    define LT_DLGLOBAL		0
18086#  endif
18087#endif
18088
18089/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18090   find out it does not work in some platform. */
18091#ifndef LT_DLLAZY_OR_NOW
18092#  ifdef RTLD_LAZY
18093#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18094#  else
18095#    ifdef DL_LAZY
18096#      define LT_DLLAZY_OR_NOW		DL_LAZY
18097#    else
18098#      ifdef RTLD_NOW
18099#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18100#      else
18101#        ifdef DL_NOW
18102#          define LT_DLLAZY_OR_NOW	DL_NOW
18103#        else
18104#          define LT_DLLAZY_OR_NOW	0
18105#        endif
18106#      endif
18107#    endif
18108#  endif
18109#endif
18110
18111#ifdef __cplusplus
18112extern "C" void exit (int);
18113#endif
18114
18115void fnord() { int i=42;}
18116int main ()
18117{
18118  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18119  int status = $lt_dlunknown;
18120
18121  if (self)
18122    {
18123      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18124      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18125      /* dlclose (self); */
18126    }
18127
18128    exit (status);
18129}
18130EOF
18131  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18132  (eval $ac_link) 2>&5
18133  ac_status=$?
18134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18136    (./conftest; exit; ) 2>/dev/null
18137    lt_status=$?
18138    case x$lt_status in
18139      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18140      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18141      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18142    esac
18143  else :
18144    # compilation failed
18145    lt_cv_dlopen_self_static=no
18146  fi
18147fi
18148rm -fr conftest*
18149
18150
18151fi
18152echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18153echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18154    fi
18155
18156    CPPFLAGS="$save_CPPFLAGS"
18157    LDFLAGS="$save_LDFLAGS"
18158    LIBS="$save_LIBS"
18159    ;;
18160  esac
18161
18162  case $lt_cv_dlopen_self in
18163  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18164  *) enable_dlopen_self=unknown ;;
18165  esac
18166
18167  case $lt_cv_dlopen_self_static in
18168  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18169  *) enable_dlopen_self_static=unknown ;;
18170  esac
18171fi
18172
18173
18174# The else clause should only fire when bootstrapping the
18175# libtool distribution, otherwise you forgot to ship ltmain.sh
18176# with your package, and you will get complaints that there are
18177# no rules to generate ltmain.sh.
18178if test -f "$ltmain"; then
18179  # See if we are running on zsh, and set the options which allow our commands through
18180  # without removal of \ escapes.
18181  if test -n "${ZSH_VERSION+set}" ; then
18182    setopt NO_GLOB_SUBST
18183  fi
18184  # Now quote all the things that may contain metacharacters while being
18185  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18186  # variables and quote the copies for generation of the libtool script.
18187  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18188    SED SHELL STRIP \
18189    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18190    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18191    deplibs_check_method reload_flag reload_cmds need_locks \
18192    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18193    lt_cv_sys_global_symbol_to_c_name_address \
18194    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18195    old_postinstall_cmds old_postuninstall_cmds \
18196    compiler_CXX \
18197    CC_CXX \
18198    LD_CXX \
18199    lt_prog_compiler_wl_CXX \
18200    lt_prog_compiler_pic_CXX \
18201    lt_prog_compiler_static_CXX \
18202    lt_prog_compiler_no_builtin_flag_CXX \
18203    export_dynamic_flag_spec_CXX \
18204    thread_safe_flag_spec_CXX \
18205    whole_archive_flag_spec_CXX \
18206    enable_shared_with_static_runtimes_CXX \
18207    old_archive_cmds_CXX \
18208    old_archive_from_new_cmds_CXX \
18209    predep_objects_CXX \
18210    postdep_objects_CXX \
18211    predeps_CXX \
18212    postdeps_CXX \
18213    compiler_lib_search_path_CXX \
18214    archive_cmds_CXX \
18215    archive_expsym_cmds_CXX \
18216    postinstall_cmds_CXX \
18217    postuninstall_cmds_CXX \
18218    old_archive_from_expsyms_cmds_CXX \
18219    allow_undefined_flag_CXX \
18220    no_undefined_flag_CXX \
18221    export_symbols_cmds_CXX \
18222    hardcode_libdir_flag_spec_CXX \
18223    hardcode_libdir_flag_spec_ld_CXX \
18224    hardcode_libdir_separator_CXX \
18225    hardcode_automatic_CXX \
18226    module_cmds_CXX \
18227    module_expsym_cmds_CXX \
18228    lt_cv_prog_compiler_c_o_CXX \
18229    exclude_expsyms_CXX \
18230    include_expsyms_CXX; do
18231
18232    case $var in
18233    old_archive_cmds_CXX | \
18234    old_archive_from_new_cmds_CXX | \
18235    archive_cmds_CXX | \
18236    archive_expsym_cmds_CXX | \
18237    module_cmds_CXX | \
18238    module_expsym_cmds_CXX | \
18239    old_archive_from_expsyms_cmds_CXX | \
18240    export_symbols_cmds_CXX | \
18241    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18242    postinstall_cmds | postuninstall_cmds | \
18243    old_postinstall_cmds | old_postuninstall_cmds | \
18244    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18245      # Double-quote double-evaled strings.
18246      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18247      ;;
18248    *)
18249      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18250      ;;
18251    esac
18252  done
18253
18254  case $lt_echo in
18255  *'\$0 --fallback-echo"')
18256    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18257    ;;
18258  esac
18259
18260cfgfile="$ofile"
18261
18262  cat <<__EOF__ >> "$cfgfile"
18263# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18264
18265# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18266
18267# Shell to use when invoking shell scripts.
18268SHELL=$lt_SHELL
18269
18270# Whether or not to build shared libraries.
18271build_libtool_libs=$enable_shared
18272
18273# Whether or not to build static libraries.
18274build_old_libs=$enable_static
18275
18276# Whether or not to add -lc for building shared libraries.
18277build_libtool_need_lc=$archive_cmds_need_lc_CXX
18278
18279# Whether or not to disallow shared libs when runtime libs are static
18280allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18281
18282# Whether or not to optimize for fast installation.
18283fast_install=$enable_fast_install
18284
18285# The host system.
18286host_alias=$host_alias
18287host=$host
18288
18289# An echo program that does not interpret backslashes.
18290echo=$lt_echo
18291
18292# The archiver.
18293AR=$lt_AR
18294AR_FLAGS=$lt_AR_FLAGS
18295
18296# A C compiler.
18297LTCC=$lt_LTCC
18298
18299# A language-specific compiler.
18300CC=$lt_compiler_CXX
18301
18302# Is the compiler the GNU C compiler?
18303with_gcc=$GCC_CXX
18304
18305# An ERE matcher.
18306EGREP=$lt_EGREP
18307
18308# The linker used to build libraries.
18309LD=$lt_LD_CXX
18310
18311# Whether we need hard or soft links.
18312LN_S=$lt_LN_S
18313
18314# A BSD-compatible nm program.
18315NM=$lt_NM
18316
18317# A symbol stripping program
18318STRIP=$lt_STRIP
18319
18320# Used to examine libraries when file_magic_cmd begins "file"
18321MAGIC_CMD=$MAGIC_CMD
18322
18323# Used on cygwin: DLL creation program.
18324DLLTOOL="$DLLTOOL"
18325
18326# Used on cygwin: object dumper.
18327OBJDUMP="$OBJDUMP"
18328
18329# Used on cygwin: assembler.
18330AS="$AS"
18331
18332# The name of the directory that contains temporary libtool files.
18333objdir=$objdir
18334
18335# How to create reloadable object files.
18336reload_flag=$lt_reload_flag
18337reload_cmds=$lt_reload_cmds
18338
18339# How to pass a linker flag through the compiler.
18340wl=$lt_lt_prog_compiler_wl_CXX
18341
18342# Object file suffix (normally "o").
18343objext="$ac_objext"
18344
18345# Old archive suffix (normally "a").
18346libext="$libext"
18347
18348# Shared library suffix (normally ".so").
18349shrext_cmds='$shrext_cmds'
18350
18351# Executable file suffix (normally "").
18352exeext="$exeext"
18353
18354# Additional compiler flags for building library objects.
18355pic_flag=$lt_lt_prog_compiler_pic_CXX
18356pic_mode=$pic_mode
18357
18358# What is the maximum length of a command?
18359max_cmd_len=$lt_cv_sys_max_cmd_len
18360
18361# Does compiler simultaneously support -c and -o options?
18362compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18363
18364# Must we lock files when doing compilation ?
18365need_locks=$lt_need_locks
18366
18367# Do we need the lib prefix for modules?
18368need_lib_prefix=$need_lib_prefix
18369
18370# Do we need a version for libraries?
18371need_version=$need_version
18372
18373# Whether dlopen is supported.
18374dlopen_support=$enable_dlopen
18375
18376# Whether dlopen of programs is supported.
18377dlopen_self=$enable_dlopen_self
18378
18379# Whether dlopen of statically linked programs is supported.
18380dlopen_self_static=$enable_dlopen_self_static
18381
18382# Compiler flag to prevent dynamic linking.
18383link_static_flag=$lt_lt_prog_compiler_static_CXX
18384
18385# Compiler flag to turn off builtin functions.
18386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18387
18388# Compiler flag to allow reflexive dlopens.
18389export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18390
18391# Compiler flag to generate shared objects directly from archives.
18392whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18393
18394# Compiler flag to generate thread-safe objects.
18395thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18396
18397# Library versioning type.
18398version_type=$version_type
18399
18400# Format of library name prefix.
18401libname_spec=$lt_libname_spec
18402
18403# List of archive names.  First name is the real one, the rest are links.
18404# The last name is the one that the linker finds with -lNAME.
18405library_names_spec=$lt_library_names_spec
18406
18407# The coded name of the library, if different from the real name.
18408soname_spec=$lt_soname_spec
18409
18410# Commands used to build and install an old-style archive.
18411RANLIB=$lt_RANLIB
18412old_archive_cmds=$lt_old_archive_cmds_CXX
18413old_postinstall_cmds=$lt_old_postinstall_cmds
18414old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415
18416# Create an old-style archive from a shared archive.
18417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18418
18419# Create a temporary old-style archive to link instead of a shared archive.
18420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18421
18422# Commands used to build and install a shared archive.
18423archive_cmds=$lt_archive_cmds_CXX
18424archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18425postinstall_cmds=$lt_postinstall_cmds
18426postuninstall_cmds=$lt_postuninstall_cmds
18427
18428# Commands used to build a loadable module (assumed same as above if empty)
18429module_cmds=$lt_module_cmds_CXX
18430module_expsym_cmds=$lt_module_expsym_cmds_CXX
18431
18432# Commands to strip libraries.
18433old_striplib=$lt_old_striplib
18434striplib=$lt_striplib
18435
18436# Dependencies to place before the objects being linked to create a
18437# shared library.
18438predep_objects=$lt_predep_objects_CXX
18439
18440# Dependencies to place after the objects being linked to create a
18441# shared library.
18442postdep_objects=$lt_postdep_objects_CXX
18443
18444# Dependencies to place before the objects being linked to create a
18445# shared library.
18446predeps=$lt_predeps_CXX
18447
18448# Dependencies to place after the objects being linked to create a
18449# shared library.
18450postdeps=$lt_postdeps_CXX
18451
18452# The library search path used internally by the compiler when linking
18453# a shared library.
18454compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18455
18456# Method to check whether dependent libraries are shared objects.
18457deplibs_check_method=$lt_deplibs_check_method
18458
18459# Command to use when deplibs_check_method == file_magic.
18460file_magic_cmd=$lt_file_magic_cmd
18461
18462# Flag that allows shared libraries with undefined symbols to be built.
18463allow_undefined_flag=$lt_allow_undefined_flag_CXX
18464
18465# Flag that forces no undefined symbols.
18466no_undefined_flag=$lt_no_undefined_flag_CXX
18467
18468# Commands used to finish a libtool library installation in a directory.
18469finish_cmds=$lt_finish_cmds
18470
18471# Same as above, but a single script fragment to be evaled but not shown.
18472finish_eval=$lt_finish_eval
18473
18474# Take the output of nm and produce a listing of raw symbols and C names.
18475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476
18477# Transform the output of nm in a proper C declaration
18478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479
18480# Transform the output of nm in a C name address pair
18481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482
18483# This is the shared library runtime path variable.
18484runpath_var=$runpath_var
18485
18486# This is the shared library path variable.
18487shlibpath_var=$shlibpath_var
18488
18489# Is shlibpath searched before the hard-coded library search path?
18490shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491
18492# How to hardcode a shared library path into an executable.
18493hardcode_action=$hardcode_action_CXX
18494
18495# Whether we should hardcode library paths into libraries.
18496hardcode_into_libs=$hardcode_into_libs
18497
18498# Flag to hardcode \$libdir into a binary during linking.
18499# This must work even if \$libdir does not exist.
18500hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18501
18502# If ld is used when linking, flag to hardcode \$libdir into
18503# a binary during linking. This must work even if \$libdir does
18504# not exist.
18505hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18506
18507# Whether we need a single -rpath flag with a separated argument.
18508hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18509
18510# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511# resulting binary.
18512hardcode_direct=$hardcode_direct_CXX
18513
18514# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515# resulting binary.
18516hardcode_minus_L=$hardcode_minus_L_CXX
18517
18518# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519# the resulting binary.
18520hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18521
18522# Set to yes if building a shared library automatically hardcodes DIR into the library
18523# and all subsequent libraries and executables linked against it.
18524hardcode_automatic=$hardcode_automatic_CXX
18525
18526# Variables whose values should be saved in libtool wrapper scripts and
18527# restored at relink time.
18528variables_saved_for_relink="$variables_saved_for_relink"
18529
18530# Whether libtool must link a program against all its dependency libraries.
18531link_all_deplibs=$link_all_deplibs_CXX
18532
18533# Compile-time system search path for libraries
18534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535
18536# Run-time system search path for libraries
18537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538
18539# Fix the shell variable \$srcfile for the compiler.
18540fix_srcfile_path="$fix_srcfile_path_CXX"
18541
18542# Set to yes if exported symbols are required.
18543always_export_symbols=$always_export_symbols_CXX
18544
18545# The commands to list exported symbols.
18546export_symbols_cmds=$lt_export_symbols_cmds_CXX
18547
18548# The commands to extract the exported symbol list from a shared archive.
18549extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550
18551# Symbols that should not be listed in the preloaded symbols.
18552exclude_expsyms=$lt_exclude_expsyms_CXX
18553
18554# Symbols that must always be exported.
18555include_expsyms=$lt_include_expsyms_CXX
18556
18557# ### END LIBTOOL TAG CONFIG: $tagname
18558
18559__EOF__
18560
18561
18562else
18563  # If there is no Makefile yet, we rely on a make rule to execute
18564  # `config.status --recheck' to rerun these tests and create the
18565  # libtool script then.
18566  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18567  if test -f "$ltmain_in"; then
18568    test -f Makefile && make "$ltmain"
18569  fi
18570fi
18571
18572
18573ac_ext=c
18574ac_cpp='$CPP $CPPFLAGS'
18575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579CC=$lt_save_CC
18580LDCXX=$LD
18581LD=$lt_save_LD
18582GCC=$lt_save_GCC
18583with_gnu_ldcxx=$with_gnu_ld
18584with_gnu_ld=$lt_save_with_gnu_ld
18585lt_cv_path_LDCXX=$lt_cv_path_LD
18586lt_cv_path_LD=$lt_save_path_LD
18587lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18588lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18589
18590	else
18591	  tagname=""
18592	fi
18593	;;
18594
18595      F77)
18596	if test -n "$F77" && test "X$F77" != "Xno"; then
18597
18598ac_ext=f
18599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18602
18603
18604archive_cmds_need_lc_F77=no
18605allow_undefined_flag_F77=
18606always_export_symbols_F77=no
18607archive_expsym_cmds_F77=
18608export_dynamic_flag_spec_F77=
18609hardcode_direct_F77=no
18610hardcode_libdir_flag_spec_F77=
18611hardcode_libdir_flag_spec_ld_F77=
18612hardcode_libdir_separator_F77=
18613hardcode_minus_L_F77=no
18614hardcode_automatic_F77=no
18615module_cmds_F77=
18616module_expsym_cmds_F77=
18617link_all_deplibs_F77=unknown
18618old_archive_cmds_F77=$old_archive_cmds
18619no_undefined_flag_F77=
18620whole_archive_flag_spec_F77=
18621enable_shared_with_static_runtimes_F77=no
18622
18623# Source file extension for f77 test sources.
18624ac_ext=f
18625
18626# Object file extension for compiled f77 test sources.
18627objext=o
18628objext_F77=$objext
18629
18630# Code to be used in simple compile tests
18631lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18632
18633# Code to be used in simple link tests
18634lt_simple_link_test_code="      program t\n      end\n"
18635
18636# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18637
18638# If no C compiler was specified, use CC.
18639LTCC=${LTCC-"$CC"}
18640
18641# Allow CC to be a program name with arguments.
18642compiler=$CC
18643
18644
18645# Allow CC to be a program name with arguments.
18646lt_save_CC="$CC"
18647CC=${F77-"f77"}
18648compiler=$CC
18649compiler_F77=$CC
18650cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18651
18652echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18653echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18654echo "$as_me:$LINENO: result: $can_build_shared" >&5
18655echo "${ECHO_T}$can_build_shared" >&6
18656
18657echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18658echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18659test "$can_build_shared" = "no" && enable_shared=no
18660
18661# On AIX, shared libraries and static libraries use the same namespace, and
18662# are all built from PIC.
18663case "$host_os" in
18664aix3*)
18665  test "$enable_shared" = yes && enable_static=no
18666  if test -n "$RANLIB"; then
18667    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18668    postinstall_cmds='$RANLIB $lib'
18669  fi
18670  ;;
18671aix4* | aix5*)
18672  test "$enable_shared" = yes && enable_static=no
18673  ;;
18674esac
18675echo "$as_me:$LINENO: result: $enable_shared" >&5
18676echo "${ECHO_T}$enable_shared" >&6
18677
18678echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18679echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18680# Make sure either enable_shared or enable_static is yes.
18681test "$enable_shared" = yes || enable_static=yes
18682echo "$as_me:$LINENO: result: $enable_static" >&5
18683echo "${ECHO_T}$enable_static" >&6
18684
18685test "$ld_shlibs_F77" = no && can_build_shared=no
18686
18687GCC_F77="$G77"
18688LD_F77="$LD"
18689
18690lt_prog_compiler_wl_F77=
18691lt_prog_compiler_pic_F77=
18692lt_prog_compiler_static_F77=
18693
18694echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18695echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18696
18697  if test "$GCC" = yes; then
18698    lt_prog_compiler_wl_F77='-Wl,'
18699    lt_prog_compiler_static_F77='-static'
18700
18701    case $host_os in
18702      aix*)
18703      # All AIX code is PIC.
18704      if test "$host_cpu" = ia64; then
18705	# AIX 5 now supports IA64 processor
18706	lt_prog_compiler_static_F77='-Bstatic'
18707      fi
18708      ;;
18709
18710    amigaos*)
18711      # FIXME: we need at least 68020 code to build shared libraries, but
18712      # adding the `-m68020' flag to GCC prevents building anything better,
18713      # like `-m68040'.
18714      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18715      ;;
18716
18717    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18718      # PIC is the default for these OSes.
18719      ;;
18720
18721    mingw* | pw32* | os2*)
18722      # This hack is so that the source file can tell whether it is being
18723      # built for inclusion in a dll (and should export symbols for example).
18724      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18725      ;;
18726
18727    darwin* | rhapsody*)
18728      # PIC is the default on this platform
18729      # Common symbols not allowed in MH_DYLIB files
18730      lt_prog_compiler_pic_F77='-fno-common'
18731      ;;
18732
18733    msdosdjgpp*)
18734      # Just because we use GCC doesn't mean we suddenly get shared libraries
18735      # on systems that don't support them.
18736      lt_prog_compiler_can_build_shared_F77=no
18737      enable_shared=no
18738      ;;
18739
18740    sysv4*MP*)
18741      if test -d /usr/nec; then
18742	lt_prog_compiler_pic_F77=-Kconform_pic
18743      fi
18744      ;;
18745
18746    hpux*)
18747      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18748      # not for PA HP-UX.
18749      case "$host_cpu" in
18750      hppa*64*|ia64*)
18751	# +Z the default
18752	;;
18753      *)
18754	lt_prog_compiler_pic_F77='-fPIC'
18755	;;
18756      esac
18757      ;;
18758
18759    *)
18760      lt_prog_compiler_pic_F77='-fPIC'
18761      ;;
18762    esac
18763  else
18764    # PORTME Check for flag to pass linker flags through the system compiler.
18765    case $host_os in
18766    aix*)
18767      lt_prog_compiler_wl_F77='-Wl,'
18768      if test "$host_cpu" = ia64; then
18769	# AIX 5 now supports IA64 processor
18770	lt_prog_compiler_static_F77='-Bstatic'
18771      else
18772	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18773      fi
18774      ;;
18775      darwin*)
18776        # PIC is the default on this platform
18777        # Common symbols not allowed in MH_DYLIB files
18778       case "$cc_basename" in
18779         xlc*)
18780         lt_prog_compiler_pic_F77='-qnocommon'
18781         lt_prog_compiler_wl_F77='-Wl,'
18782         ;;
18783       esac
18784       ;;
18785
18786    mingw* | pw32* | os2*)
18787      # This hack is so that the source file can tell whether it is being
18788      # built for inclusion in a dll (and should export symbols for example).
18789      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18790      ;;
18791
18792    hpux9* | hpux10* | hpux11*)
18793      lt_prog_compiler_wl_F77='-Wl,'
18794      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18795      # not for PA HP-UX.
18796      case "$host_cpu" in
18797      hppa*64*|ia64*)
18798	# +Z the default
18799	;;
18800      *)
18801	lt_prog_compiler_pic_F77='+Z'
18802	;;
18803      esac
18804      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18805      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18806      ;;
18807
18808    irix5* | irix6* | nonstopux*)
18809      lt_prog_compiler_wl_F77='-Wl,'
18810      # PIC (with -KPIC) is the default.
18811      lt_prog_compiler_static_F77='-non_shared'
18812      ;;
18813
18814    newsos6)
18815      lt_prog_compiler_pic_F77='-KPIC'
18816      lt_prog_compiler_static_F77='-Bstatic'
18817      ;;
18818
18819    linux*)
18820      case $CC in
18821      icc* | ecc*)
18822	lt_prog_compiler_wl_F77='-Wl,'
18823	lt_prog_compiler_pic_F77='-KPIC'
18824	lt_prog_compiler_static_F77='-static'
18825        ;;
18826      ccc*)
18827        lt_prog_compiler_wl_F77='-Wl,'
18828        # All Alpha code is PIC.
18829        lt_prog_compiler_static_F77='-non_shared'
18830        ;;
18831      esac
18832      ;;
18833
18834    osf3* | osf4* | osf5*)
18835      lt_prog_compiler_wl_F77='-Wl,'
18836      # All OSF/1 code is PIC.
18837      lt_prog_compiler_static_F77='-non_shared'
18838      ;;
18839
18840    sco3.2v5*)
18841      lt_prog_compiler_pic_F77='-Kpic'
18842      lt_prog_compiler_static_F77='-dn'
18843      ;;
18844
18845    solaris*)
18846      lt_prog_compiler_wl_F77='-Wl,'
18847      lt_prog_compiler_pic_F77='-KPIC'
18848      lt_prog_compiler_static_F77='-Bstatic'
18849      ;;
18850
18851    sunos4*)
18852      lt_prog_compiler_wl_F77='-Qoption ld '
18853      lt_prog_compiler_pic_F77='-PIC'
18854      lt_prog_compiler_static_F77='-Bstatic'
18855      ;;
18856
18857    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18858      lt_prog_compiler_wl_F77='-Wl,'
18859      lt_prog_compiler_pic_F77='-KPIC'
18860      lt_prog_compiler_static_F77='-Bstatic'
18861      ;;
18862
18863    sysv4*MP*)
18864      if test -d /usr/nec ;then
18865	lt_prog_compiler_pic_F77='-Kconform_pic'
18866	lt_prog_compiler_static_F77='-Bstatic'
18867      fi
18868      ;;
18869
18870    uts4*)
18871      lt_prog_compiler_pic_F77='-pic'
18872      lt_prog_compiler_static_F77='-Bstatic'
18873      ;;
18874
18875    *)
18876      lt_prog_compiler_can_build_shared_F77=no
18877      ;;
18878    esac
18879  fi
18880
18881echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18882echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18883
18884#
18885# Check to make sure the PIC flag actually works.
18886#
18887if test -n "$lt_prog_compiler_pic_F77"; then
18888
18889echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18890echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18891if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18892  echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894  lt_prog_compiler_pic_works_F77=no
18895  ac_outfile=conftest.$ac_objext
18896   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18897   lt_compiler_flag="$lt_prog_compiler_pic_F77"
18898   # Insert the option either (1) after the last *FLAGS variable, or
18899   # (2) before a word containing "conftest.", or (3) at the end.
18900   # Note that $ac_compile itself does not contain backslashes and begins
18901   # with a dollar sign (not a hyphen), so the echo should work correctly.
18902   # The option is referenced via a variable to avoid confusing sed.
18903   lt_compile=`echo "$ac_compile" | $SED \
18904   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18906   -e 's:$: $lt_compiler_flag:'`
18907   (eval echo "\"\$as_me:18907: $lt_compile\"" >&5)
18908   (eval "$lt_compile" 2>conftest.err)
18909   ac_status=$?
18910   cat conftest.err >&5
18911   echo "$as_me:18911: \$? = $ac_status" >&5
18912   if (exit $ac_status) && test -s "$ac_outfile"; then
18913     # The compiler can only warn and ignore the option if not recognized
18914     # So say no if there are warnings
18915     if test ! -s conftest.err; then
18916       lt_prog_compiler_pic_works_F77=yes
18917     fi
18918   fi
18919   $rm conftest*
18920
18921fi
18922echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18923echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18924
18925if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18926    case $lt_prog_compiler_pic_F77 in
18927     "" | " "*) ;;
18928     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18929     esac
18930else
18931    lt_prog_compiler_pic_F77=
18932     lt_prog_compiler_can_build_shared_F77=no
18933fi
18934
18935fi
18936case "$host_os" in
18937  # For platforms which do not support PIC, -DPIC is meaningless:
18938  *djgpp*)
18939    lt_prog_compiler_pic_F77=
18940    ;;
18941  *)
18942    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18943    ;;
18944esac
18945
18946echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18947echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18948if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18949  echo $ECHO_N "(cached) $ECHO_C" >&6
18950else
18951  lt_cv_prog_compiler_c_o_F77=no
18952   $rm -r conftest 2>/dev/null
18953   mkdir conftest
18954   cd conftest
18955   mkdir out
18956   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18957
18958   lt_compiler_flag="-o out/conftest2.$ac_objext"
18959   # Insert the option either (1) after the last *FLAGS variable, or
18960   # (2) before a word containing "conftest.", or (3) at the end.
18961   # Note that $ac_compile itself does not contain backslashes and begins
18962   # with a dollar sign (not a hyphen), so the echo should work correctly.
18963   lt_compile=`echo "$ac_compile" | $SED \
18964   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18966   -e 's:$: $lt_compiler_flag:'`
18967   (eval echo "\"\$as_me:18967: $lt_compile\"" >&5)
18968   (eval "$lt_compile" 2>out/conftest.err)
18969   ac_status=$?
18970   cat out/conftest.err >&5
18971   echo "$as_me:18971: \$? = $ac_status" >&5
18972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18973   then
18974     # The compiler can only warn and ignore the option if not recognized
18975     # So say no if there are warnings
18976     if test ! -s out/conftest.err; then
18977       lt_cv_prog_compiler_c_o_F77=yes
18978     fi
18979   fi
18980   chmod u+w .
18981   $rm conftest*
18982   # SGI C++ compiler will create directory out/ii_files/ for
18983   # template instantiation
18984   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18985   $rm out/* && rmdir out
18986   cd ..
18987   rmdir conftest
18988   $rm conftest*
18989
18990fi
18991echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18992echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18993
18994
18995hard_links="nottested"
18996if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18997  # do not overwrite the value of need_locks provided by the user
18998  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18999echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19000  hard_links=yes
19001  $rm conftest*
19002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19003  touch conftest.a
19004  ln conftest.a conftest.b 2>&5 || hard_links=no
19005  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19006  echo "$as_me:$LINENO: result: $hard_links" >&5
19007echo "${ECHO_T}$hard_links" >&6
19008  if test "$hard_links" = no; then
19009    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19010echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19011    need_locks=warn
19012  fi
19013else
19014  need_locks=no
19015fi
19016
19017echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19018echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19019
19020  runpath_var=
19021  allow_undefined_flag_F77=
19022  enable_shared_with_static_runtimes_F77=no
19023  archive_cmds_F77=
19024  archive_expsym_cmds_F77=
19025  old_archive_From_new_cmds_F77=
19026  old_archive_from_expsyms_cmds_F77=
19027  export_dynamic_flag_spec_F77=
19028  whole_archive_flag_spec_F77=
19029  thread_safe_flag_spec_F77=
19030  hardcode_libdir_flag_spec_F77=
19031  hardcode_libdir_flag_spec_ld_F77=
19032  hardcode_libdir_separator_F77=
19033  hardcode_direct_F77=no
19034  hardcode_minus_L_F77=no
19035  hardcode_shlibpath_var_F77=unsupported
19036  link_all_deplibs_F77=unknown
19037  hardcode_automatic_F77=no
19038  module_cmds_F77=
19039  module_expsym_cmds_F77=
19040  always_export_symbols_F77=no
19041  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19042  # include_expsyms should be a list of space-separated symbols to be *always*
19043  # included in the symbol list
19044  include_expsyms_F77=
19045  # exclude_expsyms can be an extended regexp of symbols to exclude
19046  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19047  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19048  # as well as any symbol that contains `d'.
19049  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19050  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19051  # platforms (ab)use it in PIC code, but their linkers get confused if
19052  # the symbol is explicitly referenced.  Since portable code cannot
19053  # rely on this symbol name, it's probably fine to never include it in
19054  # preloaded symbol tables.
19055  extract_expsyms_cmds=
19056
19057  case $host_os in
19058  cygwin* | mingw* | pw32*)
19059    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19060    # When not using gcc, we currently assume that we are using
19061    # Microsoft Visual C++.
19062    if test "$GCC" != yes; then
19063      with_gnu_ld=no
19064    fi
19065    ;;
19066  openbsd*)
19067    with_gnu_ld=no
19068    ;;
19069  esac
19070
19071  ld_shlibs_F77=yes
19072  if test "$with_gnu_ld" = yes; then
19073    # If archive_cmds runs LD, not CC, wlarc should be empty
19074    wlarc='${wl}'
19075
19076    # See if GNU ld supports shared libraries.
19077    case $host_os in
19078    aix3* | aix4* | aix5*)
19079      # On AIX/PPC, the GNU linker is very broken
19080      if test "$host_cpu" != ia64; then
19081	ld_shlibs_F77=no
19082	cat <<EOF 1>&2
19083
19084*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19085*** to be unable to reliably create shared libraries on AIX.
19086*** Therefore, libtool is disabling shared libraries support.  If you
19087*** really care for shared libraries, you may want to modify your PATH
19088*** so that a non-GNU linker is found, and then restart.
19089
19090EOF
19091      fi
19092      ;;
19093
19094    amigaos*)
19095      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)'
19096      hardcode_libdir_flag_spec_F77='-L$libdir'
19097      hardcode_minus_L_F77=yes
19098
19099      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19100      # that the semantics of dynamic libraries on AmigaOS, at least up
19101      # to version 4, is to share data among multiple programs linked
19102      # with the same dynamic library.  Since this doesn't match the
19103      # behavior of shared libraries on other platforms, we can't use
19104      # them.
19105      ld_shlibs_F77=no
19106      ;;
19107
19108    beos*)
19109      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19110	allow_undefined_flag_F77=unsupported
19111	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19112	# support --undefined.  This deserves some investigation.  FIXME
19113	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114      else
19115	ld_shlibs_F77=no
19116      fi
19117      ;;
19118
19119    cygwin* | mingw* | pw32*)
19120      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19121      # as there is no search path for DLLs.
19122      hardcode_libdir_flag_spec_F77='-L$libdir'
19123      allow_undefined_flag_F77=unsupported
19124      always_export_symbols_F77=no
19125      enable_shared_with_static_runtimes_F77=yes
19126      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19127
19128      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19129        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19130	# If the export-symbols file already is a .def file (1st line
19131	# is EXPORTS), use it as is; otherwise, prepend...
19132	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19133	  cp $export_symbols $output_objdir/$soname.def;
19134	else
19135	  echo EXPORTS > $output_objdir/$soname.def;
19136	  cat $export_symbols >> $output_objdir/$soname.def;
19137	fi~
19138	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19139      else
19140	ld_shlibs=no
19141      fi
19142      ;;
19143
19144    netbsd*)
19145      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19146	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19147	wlarc=
19148      else
19149	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19151      fi
19152      ;;
19153
19154    solaris* | sysv5*)
19155      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19156	ld_shlibs_F77=no
19157	cat <<EOF 1>&2
19158
19159*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19160*** create shared libraries on Solaris systems.  Therefore, libtool
19161*** is disabling shared libraries support.  We urge you to upgrade GNU
19162*** binutils to release 2.9.1 or newer.  Another option is to modify
19163*** your PATH or compiler configuration so that the native linker is
19164*** used, and then restart.
19165
19166EOF
19167      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19168	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19170      else
19171	ld_shlibs_F77=no
19172      fi
19173      ;;
19174
19175    sunos4*)
19176      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19177      wlarc=
19178      hardcode_direct_F77=yes
19179      hardcode_shlibpath_var_F77=no
19180      ;;
19181
19182  linux*)
19183    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19184        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19185	archive_cmds_F77="$tmp_archive_cmds"
19186      supports_anon_versioning=no
19187      case `$LD -v 2>/dev/null` in
19188        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19189        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19190        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19191        *\ 2.11.*) ;; # other 2.11 versions
19192        *) supports_anon_versioning=yes ;;
19193      esac
19194      if test $supports_anon_versioning = yes; then
19195        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19196cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197$echo "local: *; };" >> $output_objdir/$libname.ver~
19198        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19199      else
19200        archive_expsym_cmds_F77="$tmp_archive_cmds"
19201      fi
19202    else
19203      ld_shlibs_F77=no
19204    fi
19205    ;;
19206
19207    *)
19208      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19209	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19210	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19211      else
19212	ld_shlibs_F77=no
19213      fi
19214      ;;
19215    esac
19216
19217    if test "$ld_shlibs_F77" = yes; then
19218      runpath_var=LD_RUN_PATH
19219      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19220      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19221      # ancient GNU ld didn't support --whole-archive et. al.
19222      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19223 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19224      else
19225  	whole_archive_flag_spec_F77=
19226      fi
19227    fi
19228  else
19229    # PORTME fill in a description of your system's linker (not GNU ld)
19230    case $host_os in
19231    aix3*)
19232      allow_undefined_flag_F77=unsupported
19233      always_export_symbols_F77=yes
19234      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'
19235      # Note: this linker hardcodes the directories in LIBPATH if there
19236      # are no directories specified by -L.
19237      hardcode_minus_L_F77=yes
19238      if test "$GCC" = yes && test -z "$link_static_flag"; then
19239	# Neither direct hardcoding nor static linking is supported with a
19240	# broken collect2.
19241	hardcode_direct_F77=unsupported
19242      fi
19243      ;;
19244
19245    aix4* | aix5*)
19246      if test "$host_cpu" = ia64; then
19247	# On IA64, the linker does run time linking by default, so we don't
19248	# have to do anything special.
19249	aix_use_runtimelinking=no
19250	exp_sym_flag='-Bexport'
19251	no_entry_flag=""
19252      else
19253	# If we're using GNU nm, then we don't want the "-C" option.
19254	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19255	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19256	  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'
19257	else
19258	  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'
19259	fi
19260	aix_use_runtimelinking=no
19261
19262	# Test if we are trying to use run time linking or normal
19263	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19264	# need to do runtime linking.
19265	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19266	  for ld_flag in $LDFLAGS; do
19267  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19268  	    aix_use_runtimelinking=yes
19269  	    break
19270  	  fi
19271	  done
19272	esac
19273
19274	exp_sym_flag='-bexport'
19275	no_entry_flag='-bnoentry'
19276      fi
19277
19278      # When large executables or shared objects are built, AIX ld can
19279      # have problems creating the table of contents.  If linking a library
19280      # or program results in "error TOC overflow" add -mminimal-toc to
19281      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19282      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19283
19284      archive_cmds_F77=''
19285      hardcode_direct_F77=yes
19286      hardcode_libdir_separator_F77=':'
19287      link_all_deplibs_F77=yes
19288
19289      if test "$GCC" = yes; then
19290	case $host_os in aix4.012|aix4.012.*)
19291	# We only want to do this on AIX 4.2 and lower, the check
19292	# below for broken collect2 doesn't work under 4.3+
19293	  collect2name=`${CC} -print-prog-name=collect2`
19294	  if test -f "$collect2name" && \
19295  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19296	  then
19297  	  # We have reworked collect2
19298  	  hardcode_direct_F77=yes
19299	  else
19300  	  # We have old collect2
19301  	  hardcode_direct_F77=unsupported
19302  	  # It fails to find uninstalled libraries when the uninstalled
19303  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19304  	  # to unsupported forces relinking
19305  	  hardcode_minus_L_F77=yes
19306  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19307  	  hardcode_libdir_separator_F77=
19308	  fi
19309	esac
19310	shared_flag='-shared'
19311      else
19312	# not using gcc
19313	if test "$host_cpu" = ia64; then
19314  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19315  	# chokes on -Wl,-G. The following line is correct:
19316	  shared_flag='-G'
19317	else
19318  	if test "$aix_use_runtimelinking" = yes; then
19319	    shared_flag='${wl}-G'
19320	  else
19321	    shared_flag='${wl}-bM:SRE'
19322  	fi
19323	fi
19324      fi
19325
19326      # It seems that -bexpall does not export symbols beginning with
19327      # underscore (_), so it is better to generate a list of symbols to export.
19328      always_export_symbols_F77=yes
19329      if test "$aix_use_runtimelinking" = yes; then
19330	# Warning - without using the other runtime loading flags (-brtl),
19331	# -berok will link without error, but may produce a broken library.
19332	allow_undefined_flag_F77='-berok'
19333       # Determine the default libpath from the value encoded in an empty executable.
19334       cat >conftest.$ac_ext <<_ACEOF
19335      program main
19336
19337      end
19338_ACEOF
19339rm -f conftest.$ac_objext conftest$ac_exeext
19340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341  (eval $ac_link) 2>conftest.er1
19342  ac_status=$?
19343  grep -v '^ *+' conftest.er1 >conftest.err
19344  rm -f conftest.er1
19345  cat conftest.err >&5
19346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347  (exit $ac_status); } &&
19348	 { ac_try='test -z "$ac_f77_werror_flag"
19349			 || test ! -s conftest.err'
19350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351  (eval $ac_try) 2>&5
19352  ac_status=$?
19353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354  (exit $ac_status); }; } &&
19355	 { ac_try='test -s conftest$ac_exeext'
19356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357  (eval $ac_try) 2>&5
19358  ac_status=$?
19359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360  (exit $ac_status); }; }; then
19361
19362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19363}'`
19364# Check for a 64-bit object if we didn't find anything.
19365if 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; }
19366}'`; fi
19367else
19368  echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371fi
19372rm -f conftest.err conftest.$ac_objext \
19373      conftest$ac_exeext conftest.$ac_ext
19374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19375
19376       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19377	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"
19378       else
19379	if test "$host_cpu" = ia64; then
19380	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19381	  allow_undefined_flag_F77="-z nodefs"
19382	  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"
19383	else
19384	 # Determine the default libpath from the value encoded in an empty executable.
19385	 cat >conftest.$ac_ext <<_ACEOF
19386      program main
19387
19388      end
19389_ACEOF
19390rm -f conftest.$ac_objext conftest$ac_exeext
19391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19392  (eval $ac_link) 2>conftest.er1
19393  ac_status=$?
19394  grep -v '^ *+' conftest.er1 >conftest.err
19395  rm -f conftest.er1
19396  cat conftest.err >&5
19397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398  (exit $ac_status); } &&
19399	 { ac_try='test -z "$ac_f77_werror_flag"
19400			 || test ! -s conftest.err'
19401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402  (eval $ac_try) 2>&5
19403  ac_status=$?
19404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405  (exit $ac_status); }; } &&
19406	 { ac_try='test -s conftest$ac_exeext'
19407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408  (eval $ac_try) 2>&5
19409  ac_status=$?
19410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411  (exit $ac_status); }; }; then
19412
19413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19414}'`
19415# Check for a 64-bit object if we didn't find anything.
19416if 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; }
19417}'`; fi
19418else
19419  echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422fi
19423rm -f conftest.err conftest.$ac_objext \
19424      conftest$ac_exeext conftest.$ac_ext
19425if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19426
19427	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19428	  # Warning - without using the other run time loading flags,
19429	  # -berok will link without error, but may produce a broken library.
19430	  no_undefined_flag_F77=' ${wl}-bernotok'
19431	  allow_undefined_flag_F77=' ${wl}-berok'
19432	  # -bexpall does not export symbols beginning with underscore (_)
19433	  always_export_symbols_F77=yes
19434	  # Exported symbols can be pulled into shared objects from archives
19435	  whole_archive_flag_spec_F77=' '
19436	  archive_cmds_need_lc_F77=yes
19437	  # This is similar to how AIX traditionally builds it's shared libraries.
19438	  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'
19439	fi
19440      fi
19441      ;;
19442
19443    amigaos*)
19444      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)'
19445      hardcode_libdir_flag_spec_F77='-L$libdir'
19446      hardcode_minus_L_F77=yes
19447      # see comment about different semantics on the GNU ld section
19448      ld_shlibs_F77=no
19449      ;;
19450
19451    bsdi[45]*)
19452      export_dynamic_flag_spec_F77=-rdynamic
19453      ;;
19454
19455    cygwin* | mingw* | pw32*)
19456      # When not using gcc, we currently assume that we are using
19457      # Microsoft Visual C++.
19458      # hardcode_libdir_flag_spec is actually meaningless, as there is
19459      # no search path for DLLs.
19460      hardcode_libdir_flag_spec_F77=' '
19461      allow_undefined_flag_F77=unsupported
19462      # Tell ltmain to make .lib files, not .a files.
19463      libext=lib
19464      # Tell ltmain to make .dll files, not .so files.
19465      shrext_cmds=".dll"
19466      # FIXME: Setting linknames here is a bad hack.
19467      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19468      # The linker will automatically build a .lib file if we build a DLL.
19469      old_archive_From_new_cmds_F77='true'
19470      # FIXME: Should let the user specify the lib program.
19471      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19472      fix_srcfile_path='`cygpath -w "$srcfile"`'
19473      enable_shared_with_static_runtimes_F77=yes
19474      ;;
19475
19476    darwin* | rhapsody*)
19477      case "$host_os" in
19478        rhapsody* | darwin1.[012])
19479         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19480         ;;
19481       *) # Darwin 1.3 on
19482         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19483           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19484         else
19485           case ${MACOSX_DEPLOYMENT_TARGET} in
19486             10.[012])
19487               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19488               ;;
19489             10.*)
19490               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19491               ;;
19492           esac
19493         fi
19494         ;;
19495      esac
19496      archive_cmds_need_lc_F77=no
19497      hardcode_direct_F77=no
19498      hardcode_automatic_F77=yes
19499      hardcode_shlibpath_var_F77=unsupported
19500      whole_archive_flag_spec_F77=''
19501      link_all_deplibs_F77=yes
19502    if test "$GCC" = yes ; then
19503    	output_verbose_link_cmd='echo'
19504        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19505      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19506      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19507      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}'
19508      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}'
19509    else
19510      case "$cc_basename" in
19511        xlc*)
19512         output_verbose_link_cmd='echo'
19513         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19514         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19515          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19516         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}'
19517          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}'
19518          ;;
19519       *)
19520         ld_shlibs_F77=no
19521          ;;
19522      esac
19523    fi
19524      ;;
19525
19526    dgux*)
19527      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19528      hardcode_libdir_flag_spec_F77='-L$libdir'
19529      hardcode_shlibpath_var_F77=no
19530      ;;
19531
19532    freebsd1*)
19533      ld_shlibs_F77=no
19534      ;;
19535
19536    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19537    # support.  Future versions do this automatically, but an explicit c++rt0.o
19538    # does not break anything, and helps significantly (at the cost of a little
19539    # extra space).
19540    freebsd2.2*)
19541      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19542      hardcode_libdir_flag_spec_F77='-R$libdir'
19543      hardcode_direct_F77=yes
19544      hardcode_shlibpath_var_F77=no
19545      ;;
19546
19547    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19548    freebsd2*)
19549      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19550      hardcode_direct_F77=yes
19551      hardcode_minus_L_F77=yes
19552      hardcode_shlibpath_var_F77=no
19553      ;;
19554
19555    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19556    freebsd* | kfreebsd*-gnu)
19557      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19558      hardcode_libdir_flag_spec_F77='-R$libdir'
19559      hardcode_direct_F77=yes
19560      hardcode_shlibpath_var_F77=no
19561      ;;
19562
19563    hpux9*)
19564      if test "$GCC" = yes; then
19565	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'
19566      else
19567	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'
19568      fi
19569      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19570      hardcode_libdir_separator_F77=:
19571      hardcode_direct_F77=yes
19572
19573      # hardcode_minus_L: Not really in the search PATH,
19574      # but as the default location of the library.
19575      hardcode_minus_L_F77=yes
19576      export_dynamic_flag_spec_F77='${wl}-E'
19577      ;;
19578
19579    hpux10* | hpux11*)
19580      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19581	case "$host_cpu" in
19582	hppa*64*|ia64*)
19583	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19584	  ;;
19585	*)
19586	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19587	  ;;
19588	esac
19589      else
19590	case "$host_cpu" in
19591	hppa*64*|ia64*)
19592	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19593	  ;;
19594	*)
19595	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19596	  ;;
19597	esac
19598      fi
19599      if test "$with_gnu_ld" = no; then
19600	case "$host_cpu" in
19601	hppa*64*)
19602	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19603	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19604	  hardcode_libdir_separator_F77=:
19605	  hardcode_direct_F77=no
19606	  hardcode_shlibpath_var_F77=no
19607	  ;;
19608	ia64*)
19609	  hardcode_libdir_flag_spec_F77='-L$libdir'
19610	  hardcode_direct_F77=no
19611	  hardcode_shlibpath_var_F77=no
19612
19613	  # hardcode_minus_L: Not really in the search PATH,
19614	  # but as the default location of the library.
19615	  hardcode_minus_L_F77=yes
19616	  ;;
19617	*)
19618	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19619	  hardcode_libdir_separator_F77=:
19620	  hardcode_direct_F77=yes
19621	  export_dynamic_flag_spec_F77='${wl}-E'
19622
19623	  # hardcode_minus_L: Not really in the search PATH,
19624	  # but as the default location of the library.
19625	  hardcode_minus_L_F77=yes
19626	  ;;
19627	esac
19628      fi
19629      ;;
19630
19631    irix5* | irix6* | nonstopux*)
19632      if test "$GCC" = yes; then
19633	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'
19634      else
19635	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'
19636	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19637      fi
19638      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19639      hardcode_libdir_separator_F77=:
19640      link_all_deplibs_F77=yes
19641      ;;
19642
19643    netbsd*)
19644      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19645	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19646      else
19647	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19648      fi
19649      hardcode_libdir_flag_spec_F77='-R$libdir'
19650      hardcode_direct_F77=yes
19651      hardcode_shlibpath_var_F77=no
19652      ;;
19653
19654    newsos6)
19655      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19656      hardcode_direct_F77=yes
19657      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19658      hardcode_libdir_separator_F77=:
19659      hardcode_shlibpath_var_F77=no
19660      ;;
19661
19662    openbsd*)
19663      hardcode_direct_F77=yes
19664      hardcode_shlibpath_var_F77=no
19665      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19666	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19667	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19668	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19669	export_dynamic_flag_spec_F77='${wl}-E'
19670      else
19671       case $host_os in
19672	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19673	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19674	   hardcode_libdir_flag_spec_F77='-R$libdir'
19675	   ;;
19676	 *)
19677	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19678	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19679	   ;;
19680       esac
19681      fi
19682      ;;
19683
19684    os2*)
19685      hardcode_libdir_flag_spec_F77='-L$libdir'
19686      hardcode_minus_L_F77=yes
19687      allow_undefined_flag_F77=unsupported
19688      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'
19689      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19690      ;;
19691
19692    osf3*)
19693      if test "$GCC" = yes; then
19694	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19695	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'
19696      else
19697	allow_undefined_flag_F77=' -expect_unresolved \*'
19698	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'
19699      fi
19700      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19701      hardcode_libdir_separator_F77=:
19702      ;;
19703
19704    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19705      if test "$GCC" = yes; then
19706	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19707	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'
19708	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19709      else
19710	allow_undefined_flag_F77=' -expect_unresolved \*'
19711	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'
19712	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~
19713	$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'
19714
19715	# Both c and cxx compiler support -rpath directly
19716	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19717      fi
19718      hardcode_libdir_separator_F77=:
19719      ;;
19720
19721    sco3.2v5*)
19722      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19723      hardcode_shlibpath_var_F77=no
19724      export_dynamic_flag_spec_F77='${wl}-Bexport'
19725      runpath_var=LD_RUN_PATH
19726      hardcode_runpath_var=yes
19727      ;;
19728
19729    solaris*)
19730      no_undefined_flag_F77=' -z text'
19731      if test "$GCC" = yes; then
19732	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19733	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19734	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19735      else
19736	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19737	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19738  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19739      fi
19740      hardcode_libdir_flag_spec_F77='-R$libdir'
19741      hardcode_shlibpath_var_F77=no
19742      case $host_os in
19743      solaris2.[0-5] | solaris2.[0-5].*) ;;
19744      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19745	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19746      esac
19747      link_all_deplibs_F77=yes
19748      ;;
19749
19750    sunos4*)
19751      if test "x$host_vendor" = xsequent; then
19752	# Use $CC to link under sequent, because it throws in some extra .o
19753	# files that make .init and .fini sections work.
19754	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19755      else
19756	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19757      fi
19758      hardcode_libdir_flag_spec_F77='-L$libdir'
19759      hardcode_direct_F77=yes
19760      hardcode_minus_L_F77=yes
19761      hardcode_shlibpath_var_F77=no
19762      ;;
19763
19764    sysv4)
19765      case $host_vendor in
19766	sni)
19767	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19768	  hardcode_direct_F77=yes # is this really true???
19769	;;
19770	siemens)
19771	  ## LD is ld it makes a PLAMLIB
19772	  ## CC just makes a GrossModule.
19773	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19774	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19775	  hardcode_direct_F77=no
19776        ;;
19777	motorola)
19778	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19779	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19780	;;
19781      esac
19782      runpath_var='LD_RUN_PATH'
19783      hardcode_shlibpath_var_F77=no
19784      ;;
19785
19786    sysv4.3*)
19787      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19788      hardcode_shlibpath_var_F77=no
19789      export_dynamic_flag_spec_F77='-Bexport'
19790      ;;
19791
19792    sysv4*MP*)
19793      if test -d /usr/nec; then
19794	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19795	hardcode_shlibpath_var_F77=no
19796	runpath_var=LD_RUN_PATH
19797	hardcode_runpath_var=yes
19798	ld_shlibs_F77=yes
19799      fi
19800      ;;
19801
19802    sysv4.2uw2*)
19803      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19804      hardcode_direct_F77=yes
19805      hardcode_minus_L_F77=no
19806      hardcode_shlibpath_var_F77=no
19807      hardcode_runpath_var=yes
19808      runpath_var=LD_RUN_PATH
19809      ;;
19810
19811   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19812      no_undefined_flag_F77='${wl}-z ${wl}text'
19813      if test "$GCC" = yes; then
19814	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19815      else
19816	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19817      fi
19818      runpath_var='LD_RUN_PATH'
19819      hardcode_shlibpath_var_F77=no
19820      ;;
19821
19822    sysv5*)
19823      no_undefined_flag_F77=' -z text'
19824      # $CC -shared without GNU ld will not create a library from C++
19825      # object files and a static libstdc++, better avoid it by now
19826      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19827      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19828  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19829      hardcode_libdir_flag_spec_F77=
19830      hardcode_shlibpath_var_F77=no
19831      runpath_var='LD_RUN_PATH'
19832      ;;
19833
19834    uts4*)
19835      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19836      hardcode_libdir_flag_spec_F77='-L$libdir'
19837      hardcode_shlibpath_var_F77=no
19838      ;;
19839
19840    *)
19841      ld_shlibs_F77=no
19842      ;;
19843    esac
19844  fi
19845
19846echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19847echo "${ECHO_T}$ld_shlibs_F77" >&6
19848test "$ld_shlibs_F77" = no && can_build_shared=no
19849
19850variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19851if test "$GCC" = yes; then
19852  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19853fi
19854
19855#
19856# Do we need to explicitly link libc?
19857#
19858case "x$archive_cmds_need_lc_F77" in
19859x|xyes)
19860  # Assume -lc should be added
19861  archive_cmds_need_lc_F77=yes
19862
19863  if test "$enable_shared" = yes && test "$GCC" = yes; then
19864    case $archive_cmds_F77 in
19865    *'~'*)
19866      # FIXME: we may have to deal with multi-command sequences.
19867      ;;
19868    '$CC '*)
19869      # Test whether the compiler implicitly links with -lc since on some
19870      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19871      # to ld, don't add -lc before -lgcc.
19872      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19873echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19874      $rm conftest*
19875      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19876
19877      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878  (eval $ac_compile) 2>&5
19879  ac_status=$?
19880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881  (exit $ac_status); } 2>conftest.err; then
19882        soname=conftest
19883        lib=conftest
19884        libobjs=conftest.$ac_objext
19885        deplibs=
19886        wl=$lt_prog_compiler_wl_F77
19887        compiler_flags=-v
19888        linker_flags=-v
19889        verstring=
19890        output_objdir=.
19891        libname=conftest
19892        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19893        allow_undefined_flag_F77=
19894        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19895  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19896  ac_status=$?
19897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898  (exit $ac_status); }
19899        then
19900	  archive_cmds_need_lc_F77=no
19901        else
19902	  archive_cmds_need_lc_F77=yes
19903        fi
19904        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19905      else
19906        cat conftest.err 1>&5
19907      fi
19908      $rm conftest*
19909      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19910echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19911      ;;
19912    esac
19913  fi
19914  ;;
19915esac
19916
19917echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19918echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19919library_names_spec=
19920libname_spec='lib$name'
19921soname_spec=
19922shrext_cmds=".so"
19923postinstall_cmds=
19924postuninstall_cmds=
19925finish_cmds=
19926finish_eval=
19927shlibpath_var=
19928shlibpath_overrides_runpath=unknown
19929version_type=none
19930dynamic_linker="$host_os ld.so"
19931sys_lib_dlsearch_path_spec="/lib /usr/lib"
19932if test "$GCC" = yes; then
19933  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19934  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19935    # if the path contains ";" then we assume it to be the separator
19936    # otherwise default to the standard path separator (i.e. ":") - it is
19937    # assumed that no part of a normal pathname contains ";" but that should
19938    # okay in the real world where ";" in dirpaths is itself problematic.
19939    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19940  else
19941    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19942  fi
19943else
19944  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19945fi
19946need_lib_prefix=unknown
19947hardcode_into_libs=no
19948
19949# when you set need_version to no, make sure it does not cause -set_version
19950# flags to be left without arguments
19951need_version=unknown
19952
19953case $host_os in
19954aix3*)
19955  version_type=linux
19956  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19957  shlibpath_var=LIBPATH
19958
19959  # AIX 3 has no versioning support, so we append a major version to the name.
19960  soname_spec='${libname}${release}${shared_ext}$major'
19961  ;;
19962
19963aix4* | aix5*)
19964  version_type=linux
19965  need_lib_prefix=no
19966  need_version=no
19967  hardcode_into_libs=yes
19968  if test "$host_cpu" = ia64; then
19969    # AIX 5 supports IA64
19970    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19971    shlibpath_var=LD_LIBRARY_PATH
19972  else
19973    # With GCC up to 2.95.x, collect2 would create an import file
19974    # for dependence libraries.  The import file would start with
19975    # the line `#! .'.  This would cause the generated library to
19976    # depend on `.', always an invalid library.  This was fixed in
19977    # development snapshots of GCC prior to 3.0.
19978    case $host_os in
19979      aix4 | aix4.[01] | aix4.[01].*)
19980      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19981	   echo ' yes '
19982	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19983	:
19984      else
19985	can_build_shared=no
19986      fi
19987      ;;
19988    esac
19989    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19990    # soname into executable. Probably we can add versioning support to
19991    # collect2, so additional links can be useful in future.
19992    if test "$aix_use_runtimelinking" = yes; then
19993      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19994      # instead of lib<name>.a to let people know that these are not
19995      # typical AIX shared libraries.
19996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997    else
19998      # We preserve .a as extension for shared libraries through AIX4.2
19999      # and later when we are not doing run time linking.
20000      library_names_spec='${libname}${release}.a $libname.a'
20001      soname_spec='${libname}${release}${shared_ext}$major'
20002    fi
20003    shlibpath_var=LIBPATH
20004  fi
20005  ;;
20006
20007amigaos*)
20008  library_names_spec='$libname.ixlibrary $libname.a'
20009  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20010  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'
20011  ;;
20012
20013beos*)
20014  library_names_spec='${libname}${shared_ext}'
20015  dynamic_linker="$host_os ld.so"
20016  shlibpath_var=LIBRARY_PATH
20017  ;;
20018
20019bsdi[45]*)
20020  version_type=linux
20021  need_version=no
20022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20023  soname_spec='${libname}${release}${shared_ext}$major'
20024  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20025  shlibpath_var=LD_LIBRARY_PATH
20026  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20027  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20028  # the default ld.so.conf also contains /usr/contrib/lib and
20029  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20030  # libtool to hard-code these into programs
20031  ;;
20032
20033cygwin* | mingw* | pw32*)
20034  version_type=windows
20035  shrext_cmds=".dll"
20036  need_version=no
20037  need_lib_prefix=no
20038
20039  case $GCC,$host_os in
20040  yes,cygwin* | yes,mingw* | yes,pw32*)
20041    library_names_spec='$libname.dll.a'
20042    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20043    postinstall_cmds='base_file=`basename \${file}`~
20044      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20045      dldir=$destdir/`dirname \$dlpath`~
20046      test -d \$dldir || mkdir -p \$dldir~
20047      $install_prog $dir/$dlname \$dldir/$dlname'
20048    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20049      dlpath=$dir/\$dldll~
20050       $rm \$dlpath'
20051    shlibpath_overrides_runpath=yes
20052
20053    case $host_os in
20054    cygwin*)
20055      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20056      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20057      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20058      ;;
20059    mingw*)
20060      # MinGW DLLs use traditional 'lib' prefix
20061      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20062      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20063      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20064        # It is most probably a Windows format PATH printed by
20065        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20066        # path with ; separators, and with drive letters. We can handle the
20067        # drive letters (cygwin fileutils understands them), so leave them,
20068        # especially as we might pass files found there to a mingw objdump,
20069        # which wouldn't understand a cygwinified path. Ahh.
20070        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20071      else
20072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20073      fi
20074      ;;
20075    pw32*)
20076      # pw32 DLLs use 'pw' prefix rather than 'lib'
20077      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20078      ;;
20079    esac
20080    ;;
20081
20082  *)
20083    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20084    ;;
20085  esac
20086  dynamic_linker='Win32 ld.exe'
20087  # FIXME: first we should search . and the directory the executable is in
20088  shlibpath_var=PATH
20089  ;;
20090
20091darwin* | rhapsody*)
20092  dynamic_linker="$host_os dyld"
20093  version_type=darwin
20094  need_lib_prefix=no
20095  need_version=no
20096  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20097  soname_spec='${libname}${release}${major}$shared_ext'
20098  shlibpath_overrides_runpath=yes
20099  shlibpath_var=DYLD_LIBRARY_PATH
20100  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20101  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20102  if test "$GCC" = yes; then
20103    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"`
20104  else
20105    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20106  fi
20107  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20108  ;;
20109
20110dgux*)
20111  version_type=linux
20112  need_lib_prefix=no
20113  need_version=no
20114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20115  soname_spec='${libname}${release}${shared_ext}$major'
20116  shlibpath_var=LD_LIBRARY_PATH
20117  ;;
20118
20119freebsd1*)
20120  dynamic_linker=no
20121  ;;
20122
20123kfreebsd*-gnu)
20124  version_type=linux
20125  need_lib_prefix=no
20126  need_version=no
20127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20128  soname_spec='${libname}${release}${shared_ext}$major'
20129  shlibpath_var=LD_LIBRARY_PATH
20130  shlibpath_overrides_runpath=no
20131  hardcode_into_libs=yes
20132  dynamic_linker='GNU ld.so'
20133  ;;
20134
20135freebsd*)
20136  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20137  version_type=freebsd-$objformat
20138  case $version_type in
20139    freebsd-elf*)
20140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20141      need_version=no
20142      need_lib_prefix=no
20143      ;;
20144    freebsd-*)
20145      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20146      need_version=yes
20147      ;;
20148  esac
20149  shlibpath_var=LD_LIBRARY_PATH
20150  case $host_os in
20151  freebsd2*)
20152    shlibpath_overrides_runpath=yes
20153    ;;
20154  freebsd3.01* | freebsdelf3.01*)
20155    shlibpath_overrides_runpath=yes
20156    hardcode_into_libs=yes
20157    ;;
20158  *) # from 3.2 on
20159    shlibpath_overrides_runpath=no
20160    hardcode_into_libs=yes
20161    ;;
20162  esac
20163  ;;
20164
20165gnu*)
20166  version_type=linux
20167  need_lib_prefix=no
20168  need_version=no
20169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20170  soname_spec='${libname}${release}${shared_ext}$major'
20171  shlibpath_var=LD_LIBRARY_PATH
20172  hardcode_into_libs=yes
20173  ;;
20174
20175hpux9* | hpux10* | hpux11*)
20176  # Give a soname corresponding to the major version so that dld.sl refuses to
20177  # link against other versions.
20178  version_type=sunos
20179  need_lib_prefix=no
20180  need_version=no
20181  case "$host_cpu" in
20182  ia64*)
20183    shrext_cmds='.so'
20184    hardcode_into_libs=yes
20185    dynamic_linker="$host_os dld.so"
20186    shlibpath_var=LD_LIBRARY_PATH
20187    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189    soname_spec='${libname}${release}${shared_ext}$major'
20190    if test "X$HPUX_IA64_MODE" = X32; then
20191      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20192    else
20193      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20194    fi
20195    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20196    ;;
20197   hppa*64*)
20198     shrext_cmds='.sl'
20199     hardcode_into_libs=yes
20200     dynamic_linker="$host_os dld.sl"
20201     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204     soname_spec='${libname}${release}${shared_ext}$major'
20205     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20206     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20207     ;;
20208   *)
20209    shrext_cmds='.sl'
20210    dynamic_linker="$host_os dld.sl"
20211    shlibpath_var=SHLIB_PATH
20212    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20214    soname_spec='${libname}${release}${shared_ext}$major'
20215    ;;
20216  esac
20217  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20218  postinstall_cmds='chmod 555 $lib'
20219  ;;
20220
20221irix5* | irix6* | nonstopux*)
20222  case $host_os in
20223    nonstopux*) version_type=nonstopux ;;
20224    *)
20225	if test "$lt_cv_prog_gnu_ld" = yes; then
20226		version_type=linux
20227	else
20228		version_type=irix
20229	fi ;;
20230  esac
20231  need_lib_prefix=no
20232  need_version=no
20233  soname_spec='${libname}${release}${shared_ext}$major'
20234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20235  case $host_os in
20236  irix5* | nonstopux*)
20237    libsuff= shlibsuff=
20238    ;;
20239  *)
20240    case $LD in # libtool.m4 will add one of these switches to LD
20241    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20242      libsuff= shlibsuff= libmagic=32-bit;;
20243    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20244      libsuff=32 shlibsuff=N32 libmagic=N32;;
20245    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20246      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20247    *) libsuff= shlibsuff= libmagic=never-match;;
20248    esac
20249    ;;
20250  esac
20251  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20252  shlibpath_overrides_runpath=no
20253  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20254  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20255  hardcode_into_libs=yes
20256  ;;
20257
20258# No shared lib support for Linux oldld, aout, or coff.
20259linux*oldld* | linux*aout* | linux*coff*)
20260  dynamic_linker=no
20261  ;;
20262
20263# This must be Linux ELF.
20264linux*)
20265  version_type=linux
20266  need_lib_prefix=no
20267  need_version=no
20268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269  soname_spec='${libname}${release}${shared_ext}$major'
20270  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20271  shlibpath_var=LD_LIBRARY_PATH
20272  shlibpath_overrides_runpath=no
20273  # This implies no fast_install, which is unacceptable.
20274  # Some rework will be needed to allow for fast_install
20275  # before this can be enabled.
20276  hardcode_into_libs=yes
20277
20278  # Append ld.so.conf contents to the search path
20279  if test -f /etc/ld.so.conf; then
20280    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20281    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20282  fi
20283
20284  # We used to test for /lib/ld.so.1 and disable shared libraries on
20285  # powerpc, because MkLinux only supported shared libraries with the
20286  # GNU dynamic linker.  Since this was broken with cross compilers,
20287  # most powerpc-linux boxes support dynamic linking these days and
20288  # people can always --disable-shared, the test was removed, and we
20289  # assume the GNU/Linux dynamic linker is in use.
20290  dynamic_linker='GNU/Linux ld.so'
20291  ;;
20292
20293knetbsd*-gnu)
20294  version_type=linux
20295  need_lib_prefix=no
20296  need_version=no
20297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20298  soname_spec='${libname}${release}${shared_ext}$major'
20299  shlibpath_var=LD_LIBRARY_PATH
20300  shlibpath_overrides_runpath=no
20301  hardcode_into_libs=yes
20302  dynamic_linker='GNU ld.so'
20303  ;;
20304
20305netbsd*)
20306  version_type=sunos
20307  need_lib_prefix=no
20308  need_version=no
20309  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20311    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20312    dynamic_linker='NetBSD (a.out) ld.so'
20313  else
20314    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20315    soname_spec='${libname}${release}${shared_ext}$major'
20316    dynamic_linker='NetBSD ld.elf_so'
20317  fi
20318  shlibpath_var=LD_LIBRARY_PATH
20319  shlibpath_overrides_runpath=yes
20320  hardcode_into_libs=yes
20321  ;;
20322
20323newsos6)
20324  version_type=linux
20325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326  shlibpath_var=LD_LIBRARY_PATH
20327  shlibpath_overrides_runpath=yes
20328  ;;
20329
20330nto-qnx*)
20331  version_type=linux
20332  need_lib_prefix=no
20333  need_version=no
20334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335  soname_spec='${libname}${release}${shared_ext}$major'
20336  shlibpath_var=LD_LIBRARY_PATH
20337  shlibpath_overrides_runpath=yes
20338  ;;
20339
20340openbsd*)
20341  version_type=sunos
20342  need_lib_prefix=no
20343  need_version=no
20344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20345  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20346  shlibpath_var=LD_LIBRARY_PATH
20347  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20348    case $host_os in
20349      openbsd2.[89] | openbsd2.[89].*)
20350	shlibpath_overrides_runpath=no
20351	;;
20352      *)
20353	shlibpath_overrides_runpath=yes
20354	;;
20355      esac
20356  else
20357    shlibpath_overrides_runpath=yes
20358  fi
20359  ;;
20360
20361os2*)
20362  libname_spec='$name'
20363  shrext_cmds=".dll"
20364  need_lib_prefix=no
20365  library_names_spec='$libname${shared_ext} $libname.a'
20366  dynamic_linker='OS/2 ld.exe'
20367  shlibpath_var=LIBPATH
20368  ;;
20369
20370osf3* | osf4* | osf5*)
20371  version_type=osf
20372  need_lib_prefix=no
20373  need_version=no
20374  soname_spec='${libname}${release}${shared_ext}$major'
20375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20376  shlibpath_var=LD_LIBRARY_PATH
20377  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20378  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20379  ;;
20380
20381sco3.2v5*)
20382  version_type=osf
20383  soname_spec='${libname}${release}${shared_ext}$major'
20384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385  shlibpath_var=LD_LIBRARY_PATH
20386  ;;
20387
20388solaris*)
20389  version_type=linux
20390  need_lib_prefix=no
20391  need_version=no
20392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393  soname_spec='${libname}${release}${shared_ext}$major'
20394  shlibpath_var=LD_LIBRARY_PATH
20395  shlibpath_overrides_runpath=yes
20396  hardcode_into_libs=yes
20397  # ldd complains unless libraries are executable
20398  postinstall_cmds='chmod +x $lib'
20399  ;;
20400
20401sunos4*)
20402  version_type=sunos
20403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20404  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20405  shlibpath_var=LD_LIBRARY_PATH
20406  shlibpath_overrides_runpath=yes
20407  if test "$with_gnu_ld" = yes; then
20408    need_lib_prefix=no
20409  fi
20410  need_version=yes
20411  ;;
20412
20413sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20414  version_type=linux
20415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416  soname_spec='${libname}${release}${shared_ext}$major'
20417  shlibpath_var=LD_LIBRARY_PATH
20418  case $host_vendor in
20419    sni)
20420      shlibpath_overrides_runpath=no
20421      need_lib_prefix=no
20422      export_dynamic_flag_spec='${wl}-Blargedynsym'
20423      runpath_var=LD_RUN_PATH
20424      ;;
20425    siemens)
20426      need_lib_prefix=no
20427      ;;
20428    motorola)
20429      need_lib_prefix=no
20430      need_version=no
20431      shlibpath_overrides_runpath=no
20432      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20433      ;;
20434  esac
20435  ;;
20436
20437sysv4*MP*)
20438  if test -d /usr/nec ;then
20439    version_type=linux
20440    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20441    soname_spec='$libname${shared_ext}.$major'
20442    shlibpath_var=LD_LIBRARY_PATH
20443  fi
20444  ;;
20445
20446uts4*)
20447  version_type=linux
20448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20449  soname_spec='${libname}${release}${shared_ext}$major'
20450  shlibpath_var=LD_LIBRARY_PATH
20451  ;;
20452
20453*)
20454  dynamic_linker=no
20455  ;;
20456esac
20457echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20458echo "${ECHO_T}$dynamic_linker" >&6
20459test "$dynamic_linker" = no && can_build_shared=no
20460
20461echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20463hardcode_action_F77=
20464if test -n "$hardcode_libdir_flag_spec_F77" || \
20465   test -n "$runpath_var_F77" || \
20466   test "X$hardcode_automatic_F77" = "Xyes" ; then
20467
20468  # We can hardcode non-existant directories.
20469  if test "$hardcode_direct_F77" != no &&
20470     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20471     # have to relink, otherwise we might link with an installed library
20472     # when we should be linking with a yet-to-be-installed one
20473     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20474     test "$hardcode_minus_L_F77" != no; then
20475    # Linking always hardcodes the temporary library directory.
20476    hardcode_action_F77=relink
20477  else
20478    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20479    hardcode_action_F77=immediate
20480  fi
20481else
20482  # We cannot hardcode anything, or else we can only hardcode existing
20483  # directories.
20484  hardcode_action_F77=unsupported
20485fi
20486echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20487echo "${ECHO_T}$hardcode_action_F77" >&6
20488
20489if test "$hardcode_action_F77" = relink; then
20490  # Fast installation is not supported
20491  enable_fast_install=no
20492elif test "$shlibpath_overrides_runpath" = yes ||
20493     test "$enable_shared" = no; then
20494  # Fast installation is not necessary
20495  enable_fast_install=needless
20496fi
20497
20498striplib=
20499old_striplib=
20500echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20501echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20502if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20503  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20504  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20505  echo "$as_me:$LINENO: result: yes" >&5
20506echo "${ECHO_T}yes" >&6
20507else
20508# FIXME - insert some real tests, host_os isn't really good enough
20509  case $host_os in
20510   darwin*)
20511       if test -n "$STRIP" ; then
20512         striplib="$STRIP -x"
20513         echo "$as_me:$LINENO: result: yes" >&5
20514echo "${ECHO_T}yes" >&6
20515       else
20516  echo "$as_me:$LINENO: result: no" >&5
20517echo "${ECHO_T}no" >&6
20518fi
20519       ;;
20520   *)
20521  echo "$as_me:$LINENO: result: no" >&5
20522echo "${ECHO_T}no" >&6
20523    ;;
20524  esac
20525fi
20526
20527
20528
20529# The else clause should only fire when bootstrapping the
20530# libtool distribution, otherwise you forgot to ship ltmain.sh
20531# with your package, and you will get complaints that there are
20532# no rules to generate ltmain.sh.
20533if test -f "$ltmain"; then
20534  # See if we are running on zsh, and set the options which allow our commands through
20535  # without removal of \ escapes.
20536  if test -n "${ZSH_VERSION+set}" ; then
20537    setopt NO_GLOB_SUBST
20538  fi
20539  # Now quote all the things that may contain metacharacters while being
20540  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20541  # variables and quote the copies for generation of the libtool script.
20542  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20543    SED SHELL STRIP \
20544    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20545    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20546    deplibs_check_method reload_flag reload_cmds need_locks \
20547    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20548    lt_cv_sys_global_symbol_to_c_name_address \
20549    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20550    old_postinstall_cmds old_postuninstall_cmds \
20551    compiler_F77 \
20552    CC_F77 \
20553    LD_F77 \
20554    lt_prog_compiler_wl_F77 \
20555    lt_prog_compiler_pic_F77 \
20556    lt_prog_compiler_static_F77 \
20557    lt_prog_compiler_no_builtin_flag_F77 \
20558    export_dynamic_flag_spec_F77 \
20559    thread_safe_flag_spec_F77 \
20560    whole_archive_flag_spec_F77 \
20561    enable_shared_with_static_runtimes_F77 \
20562    old_archive_cmds_F77 \
20563    old_archive_from_new_cmds_F77 \
20564    predep_objects_F77 \
20565    postdep_objects_F77 \
20566    predeps_F77 \
20567    postdeps_F77 \
20568    compiler_lib_search_path_F77 \
20569    archive_cmds_F77 \
20570    archive_expsym_cmds_F77 \
20571    postinstall_cmds_F77 \
20572    postuninstall_cmds_F77 \
20573    old_archive_from_expsyms_cmds_F77 \
20574    allow_undefined_flag_F77 \
20575    no_undefined_flag_F77 \
20576    export_symbols_cmds_F77 \
20577    hardcode_libdir_flag_spec_F77 \
20578    hardcode_libdir_flag_spec_ld_F77 \
20579    hardcode_libdir_separator_F77 \
20580    hardcode_automatic_F77 \
20581    module_cmds_F77 \
20582    module_expsym_cmds_F77 \
20583    lt_cv_prog_compiler_c_o_F77 \
20584    exclude_expsyms_F77 \
20585    include_expsyms_F77; do
20586
20587    case $var in
20588    old_archive_cmds_F77 | \
20589    old_archive_from_new_cmds_F77 | \
20590    archive_cmds_F77 | \
20591    archive_expsym_cmds_F77 | \
20592    module_cmds_F77 | \
20593    module_expsym_cmds_F77 | \
20594    old_archive_from_expsyms_cmds_F77 | \
20595    export_symbols_cmds_F77 | \
20596    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20597    postinstall_cmds | postuninstall_cmds | \
20598    old_postinstall_cmds | old_postuninstall_cmds | \
20599    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20600      # Double-quote double-evaled strings.
20601      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20602      ;;
20603    *)
20604      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20605      ;;
20606    esac
20607  done
20608
20609  case $lt_echo in
20610  *'\$0 --fallback-echo"')
20611    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20612    ;;
20613  esac
20614
20615cfgfile="$ofile"
20616
20617  cat <<__EOF__ >> "$cfgfile"
20618# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20619
20620# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20621
20622# Shell to use when invoking shell scripts.
20623SHELL=$lt_SHELL
20624
20625# Whether or not to build shared libraries.
20626build_libtool_libs=$enable_shared
20627
20628# Whether or not to build static libraries.
20629build_old_libs=$enable_static
20630
20631# Whether or not to add -lc for building shared libraries.
20632build_libtool_need_lc=$archive_cmds_need_lc_F77
20633
20634# Whether or not to disallow shared libs when runtime libs are static
20635allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20636
20637# Whether or not to optimize for fast installation.
20638fast_install=$enable_fast_install
20639
20640# The host system.
20641host_alias=$host_alias
20642host=$host
20643
20644# An echo program that does not interpret backslashes.
20645echo=$lt_echo
20646
20647# The archiver.
20648AR=$lt_AR
20649AR_FLAGS=$lt_AR_FLAGS
20650
20651# A C compiler.
20652LTCC=$lt_LTCC
20653
20654# A language-specific compiler.
20655CC=$lt_compiler_F77
20656
20657# Is the compiler the GNU C compiler?
20658with_gcc=$GCC_F77
20659
20660# An ERE matcher.
20661EGREP=$lt_EGREP
20662
20663# The linker used to build libraries.
20664LD=$lt_LD_F77
20665
20666# Whether we need hard or soft links.
20667LN_S=$lt_LN_S
20668
20669# A BSD-compatible nm program.
20670NM=$lt_NM
20671
20672# A symbol stripping program
20673STRIP=$lt_STRIP
20674
20675# Used to examine libraries when file_magic_cmd begins "file"
20676MAGIC_CMD=$MAGIC_CMD
20677
20678# Used on cygwin: DLL creation program.
20679DLLTOOL="$DLLTOOL"
20680
20681# Used on cygwin: object dumper.
20682OBJDUMP="$OBJDUMP"
20683
20684# Used on cygwin: assembler.
20685AS="$AS"
20686
20687# The name of the directory that contains temporary libtool files.
20688objdir=$objdir
20689
20690# How to create reloadable object files.
20691reload_flag=$lt_reload_flag
20692reload_cmds=$lt_reload_cmds
20693
20694# How to pass a linker flag through the compiler.
20695wl=$lt_lt_prog_compiler_wl_F77
20696
20697# Object file suffix (normally "o").
20698objext="$ac_objext"
20699
20700# Old archive suffix (normally "a").
20701libext="$libext"
20702
20703# Shared library suffix (normally ".so").
20704shrext_cmds='$shrext_cmds'
20705
20706# Executable file suffix (normally "").
20707exeext="$exeext"
20708
20709# Additional compiler flags for building library objects.
20710pic_flag=$lt_lt_prog_compiler_pic_F77
20711pic_mode=$pic_mode
20712
20713# What is the maximum length of a command?
20714max_cmd_len=$lt_cv_sys_max_cmd_len
20715
20716# Does compiler simultaneously support -c and -o options?
20717compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20718
20719# Must we lock files when doing compilation ?
20720need_locks=$lt_need_locks
20721
20722# Do we need the lib prefix for modules?
20723need_lib_prefix=$need_lib_prefix
20724
20725# Do we need a version for libraries?
20726need_version=$need_version
20727
20728# Whether dlopen is supported.
20729dlopen_support=$enable_dlopen
20730
20731# Whether dlopen of programs is supported.
20732dlopen_self=$enable_dlopen_self
20733
20734# Whether dlopen of statically linked programs is supported.
20735dlopen_self_static=$enable_dlopen_self_static
20736
20737# Compiler flag to prevent dynamic linking.
20738link_static_flag=$lt_lt_prog_compiler_static_F77
20739
20740# Compiler flag to turn off builtin functions.
20741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20742
20743# Compiler flag to allow reflexive dlopens.
20744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20745
20746# Compiler flag to generate shared objects directly from archives.
20747whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20748
20749# Compiler flag to generate thread-safe objects.
20750thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20751
20752# Library versioning type.
20753version_type=$version_type
20754
20755# Format of library name prefix.
20756libname_spec=$lt_libname_spec
20757
20758# List of archive names.  First name is the real one, the rest are links.
20759# The last name is the one that the linker finds with -lNAME.
20760library_names_spec=$lt_library_names_spec
20761
20762# The coded name of the library, if different from the real name.
20763soname_spec=$lt_soname_spec
20764
20765# Commands used to build and install an old-style archive.
20766RANLIB=$lt_RANLIB
20767old_archive_cmds=$lt_old_archive_cmds_F77
20768old_postinstall_cmds=$lt_old_postinstall_cmds
20769old_postuninstall_cmds=$lt_old_postuninstall_cmds
20770
20771# Create an old-style archive from a shared archive.
20772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20773
20774# Create a temporary old-style archive to link instead of a shared archive.
20775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20776
20777# Commands used to build and install a shared archive.
20778archive_cmds=$lt_archive_cmds_F77
20779archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20780postinstall_cmds=$lt_postinstall_cmds
20781postuninstall_cmds=$lt_postuninstall_cmds
20782
20783# Commands used to build a loadable module (assumed same as above if empty)
20784module_cmds=$lt_module_cmds_F77
20785module_expsym_cmds=$lt_module_expsym_cmds_F77
20786
20787# Commands to strip libraries.
20788old_striplib=$lt_old_striplib
20789striplib=$lt_striplib
20790
20791# Dependencies to place before the objects being linked to create a
20792# shared library.
20793predep_objects=$lt_predep_objects_F77
20794
20795# Dependencies to place after the objects being linked to create a
20796# shared library.
20797postdep_objects=$lt_postdep_objects_F77
20798
20799# Dependencies to place before the objects being linked to create a
20800# shared library.
20801predeps=$lt_predeps_F77
20802
20803# Dependencies to place after the objects being linked to create a
20804# shared library.
20805postdeps=$lt_postdeps_F77
20806
20807# The library search path used internally by the compiler when linking
20808# a shared library.
20809compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20810
20811# Method to check whether dependent libraries are shared objects.
20812deplibs_check_method=$lt_deplibs_check_method
20813
20814# Command to use when deplibs_check_method == file_magic.
20815file_magic_cmd=$lt_file_magic_cmd
20816
20817# Flag that allows shared libraries with undefined symbols to be built.
20818allow_undefined_flag=$lt_allow_undefined_flag_F77
20819
20820# Flag that forces no undefined symbols.
20821no_undefined_flag=$lt_no_undefined_flag_F77
20822
20823# Commands used to finish a libtool library installation in a directory.
20824finish_cmds=$lt_finish_cmds
20825
20826# Same as above, but a single script fragment to be evaled but not shown.
20827finish_eval=$lt_finish_eval
20828
20829# Take the output of nm and produce a listing of raw symbols and C names.
20830global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20831
20832# Transform the output of nm in a proper C declaration
20833global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20834
20835# Transform the output of nm in a C name address pair
20836global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20837
20838# This is the shared library runtime path variable.
20839runpath_var=$runpath_var
20840
20841# This is the shared library path variable.
20842shlibpath_var=$shlibpath_var
20843
20844# Is shlibpath searched before the hard-coded library search path?
20845shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20846
20847# How to hardcode a shared library path into an executable.
20848hardcode_action=$hardcode_action_F77
20849
20850# Whether we should hardcode library paths into libraries.
20851hardcode_into_libs=$hardcode_into_libs
20852
20853# Flag to hardcode \$libdir into a binary during linking.
20854# This must work even if \$libdir does not exist.
20855hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20856
20857# If ld is used when linking, flag to hardcode \$libdir into
20858# a binary during linking. This must work even if \$libdir does
20859# not exist.
20860hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20861
20862# Whether we need a single -rpath flag with a separated argument.
20863hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20864
20865# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20866# resulting binary.
20867hardcode_direct=$hardcode_direct_F77
20868
20869# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20870# resulting binary.
20871hardcode_minus_L=$hardcode_minus_L_F77
20872
20873# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20874# the resulting binary.
20875hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20876
20877# Set to yes if building a shared library automatically hardcodes DIR into the library
20878# and all subsequent libraries and executables linked against it.
20879hardcode_automatic=$hardcode_automatic_F77
20880
20881# Variables whose values should be saved in libtool wrapper scripts and
20882# restored at relink time.
20883variables_saved_for_relink="$variables_saved_for_relink"
20884
20885# Whether libtool must link a program against all its dependency libraries.
20886link_all_deplibs=$link_all_deplibs_F77
20887
20888# Compile-time system search path for libraries
20889sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20890
20891# Run-time system search path for libraries
20892sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20893
20894# Fix the shell variable \$srcfile for the compiler.
20895fix_srcfile_path="$fix_srcfile_path_F77"
20896
20897# Set to yes if exported symbols are required.
20898always_export_symbols=$always_export_symbols_F77
20899
20900# The commands to list exported symbols.
20901export_symbols_cmds=$lt_export_symbols_cmds_F77
20902
20903# The commands to extract the exported symbol list from a shared archive.
20904extract_expsyms_cmds=$lt_extract_expsyms_cmds
20905
20906# Symbols that should not be listed in the preloaded symbols.
20907exclude_expsyms=$lt_exclude_expsyms_F77
20908
20909# Symbols that must always be exported.
20910include_expsyms=$lt_include_expsyms_F77
20911
20912# ### END LIBTOOL TAG CONFIG: $tagname
20913
20914__EOF__
20915
20916
20917else
20918  # If there is no Makefile yet, we rely on a make rule to execute
20919  # `config.status --recheck' to rerun these tests and create the
20920  # libtool script then.
20921  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20922  if test -f "$ltmain_in"; then
20923    test -f Makefile && make "$ltmain"
20924  fi
20925fi
20926
20927
20928ac_ext=c
20929ac_cpp='$CPP $CPPFLAGS'
20930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933
20934CC="$lt_save_CC"
20935
20936	else
20937	  tagname=""
20938	fi
20939	;;
20940
20941      GCJ)
20942	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20943	  ac_ext=c
20944ac_cpp='$CPP $CPPFLAGS'
20945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947ac_compiler_gnu=$ac_cv_c_compiler_gnu
20948
20949
20950# Source file extension for Java test sources.
20951ac_ext=java
20952
20953# Object file extension for compiled Java test sources.
20954objext=o
20955objext_GCJ=$objext
20956
20957# Code to be used in simple compile tests
20958lt_simple_compile_test_code="class foo {}\n"
20959
20960# Code to be used in simple link tests
20961lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20962
20963# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20964
20965# If no C compiler was specified, use CC.
20966LTCC=${LTCC-"$CC"}
20967
20968# Allow CC to be a program name with arguments.
20969compiler=$CC
20970
20971
20972# Allow CC to be a program name with arguments.
20973lt_save_CC="$CC"
20974CC=${GCJ-"gcj"}
20975compiler=$CC
20976compiler_GCJ=$CC
20977
20978# GCJ did not exist at the time GCC didn't implicitly link libc in.
20979archive_cmds_need_lc_GCJ=no
20980
20981
20982lt_prog_compiler_no_builtin_flag_GCJ=
20983
20984if test "$GCC" = yes; then
20985  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20986
20987
20988echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20989echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20990if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20991  echo $ECHO_N "(cached) $ECHO_C" >&6
20992else
20993  lt_cv_prog_compiler_rtti_exceptions=no
20994  ac_outfile=conftest.$ac_objext
20995   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20996   lt_compiler_flag="-fno-rtti -fno-exceptions"
20997   # Insert the option either (1) after the last *FLAGS variable, or
20998   # (2) before a word containing "conftest.", or (3) at the end.
20999   # Note that $ac_compile itself does not contain backslashes and begins
21000   # with a dollar sign (not a hyphen), so the echo should work correctly.
21001   # The option is referenced via a variable to avoid confusing sed.
21002   lt_compile=`echo "$ac_compile" | $SED \
21003   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21004   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21005   -e 's:$: $lt_compiler_flag:'`
21006   (eval echo "\"\$as_me:21006: $lt_compile\"" >&5)
21007   (eval "$lt_compile" 2>conftest.err)
21008   ac_status=$?
21009   cat conftest.err >&5
21010   echo "$as_me:21010: \$? = $ac_status" >&5
21011   if (exit $ac_status) && test -s "$ac_outfile"; then
21012     # The compiler can only warn and ignore the option if not recognized
21013     # So say no if there are warnings
21014     if test ! -s conftest.err; then
21015       lt_cv_prog_compiler_rtti_exceptions=yes
21016     fi
21017   fi
21018   $rm conftest*
21019
21020fi
21021echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21022echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21023
21024if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21025    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21026else
21027    :
21028fi
21029
21030fi
21031
21032lt_prog_compiler_wl_GCJ=
21033lt_prog_compiler_pic_GCJ=
21034lt_prog_compiler_static_GCJ=
21035
21036echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21037echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21038
21039  if test "$GCC" = yes; then
21040    lt_prog_compiler_wl_GCJ='-Wl,'
21041    lt_prog_compiler_static_GCJ='-static'
21042
21043    case $host_os in
21044      aix*)
21045      # All AIX code is PIC.
21046      if test "$host_cpu" = ia64; then
21047	# AIX 5 now supports IA64 processor
21048	lt_prog_compiler_static_GCJ='-Bstatic'
21049      fi
21050      ;;
21051
21052    amigaos*)
21053      # FIXME: we need at least 68020 code to build shared libraries, but
21054      # adding the `-m68020' flag to GCC prevents building anything better,
21055      # like `-m68040'.
21056      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21057      ;;
21058
21059    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21060      # PIC is the default for these OSes.
21061      ;;
21062
21063    mingw* | pw32* | os2*)
21064      # This hack is so that the source file can tell whether it is being
21065      # built for inclusion in a dll (and should export symbols for example).
21066      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21067      ;;
21068
21069    darwin* | rhapsody*)
21070      # PIC is the default on this platform
21071      # Common symbols not allowed in MH_DYLIB files
21072      lt_prog_compiler_pic_GCJ='-fno-common'
21073      ;;
21074
21075    msdosdjgpp*)
21076      # Just because we use GCC doesn't mean we suddenly get shared libraries
21077      # on systems that don't support them.
21078      lt_prog_compiler_can_build_shared_GCJ=no
21079      enable_shared=no
21080      ;;
21081
21082    sysv4*MP*)
21083      if test -d /usr/nec; then
21084	lt_prog_compiler_pic_GCJ=-Kconform_pic
21085      fi
21086      ;;
21087
21088    hpux*)
21089      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21090      # not for PA HP-UX.
21091      case "$host_cpu" in
21092      hppa*64*|ia64*)
21093	# +Z the default
21094	;;
21095      *)
21096	lt_prog_compiler_pic_GCJ='-fPIC'
21097	;;
21098      esac
21099      ;;
21100
21101    *)
21102      lt_prog_compiler_pic_GCJ='-fPIC'
21103      ;;
21104    esac
21105  else
21106    # PORTME Check for flag to pass linker flags through the system compiler.
21107    case $host_os in
21108    aix*)
21109      lt_prog_compiler_wl_GCJ='-Wl,'
21110      if test "$host_cpu" = ia64; then
21111	# AIX 5 now supports IA64 processor
21112	lt_prog_compiler_static_GCJ='-Bstatic'
21113      else
21114	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21115      fi
21116      ;;
21117      darwin*)
21118        # PIC is the default on this platform
21119        # Common symbols not allowed in MH_DYLIB files
21120       case "$cc_basename" in
21121         xlc*)
21122         lt_prog_compiler_pic_GCJ='-qnocommon'
21123         lt_prog_compiler_wl_GCJ='-Wl,'
21124         ;;
21125       esac
21126       ;;
21127
21128    mingw* | pw32* | os2*)
21129      # This hack is so that the source file can tell whether it is being
21130      # built for inclusion in a dll (and should export symbols for example).
21131      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21132      ;;
21133
21134    hpux9* | hpux10* | hpux11*)
21135      lt_prog_compiler_wl_GCJ='-Wl,'
21136      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21137      # not for PA HP-UX.
21138      case "$host_cpu" in
21139      hppa*64*|ia64*)
21140	# +Z the default
21141	;;
21142      *)
21143	lt_prog_compiler_pic_GCJ='+Z'
21144	;;
21145      esac
21146      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21147      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21148      ;;
21149
21150    irix5* | irix6* | nonstopux*)
21151      lt_prog_compiler_wl_GCJ='-Wl,'
21152      # PIC (with -KPIC) is the default.
21153      lt_prog_compiler_static_GCJ='-non_shared'
21154      ;;
21155
21156    newsos6)
21157      lt_prog_compiler_pic_GCJ='-KPIC'
21158      lt_prog_compiler_static_GCJ='-Bstatic'
21159      ;;
21160
21161    linux*)
21162      case $CC in
21163      icc* | ecc*)
21164	lt_prog_compiler_wl_GCJ='-Wl,'
21165	lt_prog_compiler_pic_GCJ='-KPIC'
21166	lt_prog_compiler_static_GCJ='-static'
21167        ;;
21168      ccc*)
21169        lt_prog_compiler_wl_GCJ='-Wl,'
21170        # All Alpha code is PIC.
21171        lt_prog_compiler_static_GCJ='-non_shared'
21172        ;;
21173      esac
21174      ;;
21175
21176    osf3* | osf4* | osf5*)
21177      lt_prog_compiler_wl_GCJ='-Wl,'
21178      # All OSF/1 code is PIC.
21179      lt_prog_compiler_static_GCJ='-non_shared'
21180      ;;
21181
21182    sco3.2v5*)
21183      lt_prog_compiler_pic_GCJ='-Kpic'
21184      lt_prog_compiler_static_GCJ='-dn'
21185      ;;
21186
21187    solaris*)
21188      lt_prog_compiler_wl_GCJ='-Wl,'
21189      lt_prog_compiler_pic_GCJ='-KPIC'
21190      lt_prog_compiler_static_GCJ='-Bstatic'
21191      ;;
21192
21193    sunos4*)
21194      lt_prog_compiler_wl_GCJ='-Qoption ld '
21195      lt_prog_compiler_pic_GCJ='-PIC'
21196      lt_prog_compiler_static_GCJ='-Bstatic'
21197      ;;
21198
21199    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21200      lt_prog_compiler_wl_GCJ='-Wl,'
21201      lt_prog_compiler_pic_GCJ='-KPIC'
21202      lt_prog_compiler_static_GCJ='-Bstatic'
21203      ;;
21204
21205    sysv4*MP*)
21206      if test -d /usr/nec ;then
21207	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21208	lt_prog_compiler_static_GCJ='-Bstatic'
21209      fi
21210      ;;
21211
21212    uts4*)
21213      lt_prog_compiler_pic_GCJ='-pic'
21214      lt_prog_compiler_static_GCJ='-Bstatic'
21215      ;;
21216
21217    *)
21218      lt_prog_compiler_can_build_shared_GCJ=no
21219      ;;
21220    esac
21221  fi
21222
21223echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21224echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21225
21226#
21227# Check to make sure the PIC flag actually works.
21228#
21229if test -n "$lt_prog_compiler_pic_GCJ"; then
21230
21231echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21233if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21234  echo $ECHO_N "(cached) $ECHO_C" >&6
21235else
21236  lt_prog_compiler_pic_works_GCJ=no
21237  ac_outfile=conftest.$ac_objext
21238   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21239   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21240   # Insert the option either (1) after the last *FLAGS variable, or
21241   # (2) before a word containing "conftest.", or (3) at the end.
21242   # Note that $ac_compile itself does not contain backslashes and begins
21243   # with a dollar sign (not a hyphen), so the echo should work correctly.
21244   # The option is referenced via a variable to avoid confusing sed.
21245   lt_compile=`echo "$ac_compile" | $SED \
21246   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21247   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21248   -e 's:$: $lt_compiler_flag:'`
21249   (eval echo "\"\$as_me:21249: $lt_compile\"" >&5)
21250   (eval "$lt_compile" 2>conftest.err)
21251   ac_status=$?
21252   cat conftest.err >&5
21253   echo "$as_me:21253: \$? = $ac_status" >&5
21254   if (exit $ac_status) && test -s "$ac_outfile"; then
21255     # The compiler can only warn and ignore the option if not recognized
21256     # So say no if there are warnings
21257     if test ! -s conftest.err; then
21258       lt_prog_compiler_pic_works_GCJ=yes
21259     fi
21260   fi
21261   $rm conftest*
21262
21263fi
21264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21265echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21266
21267if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21268    case $lt_prog_compiler_pic_GCJ in
21269     "" | " "*) ;;
21270     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21271     esac
21272else
21273    lt_prog_compiler_pic_GCJ=
21274     lt_prog_compiler_can_build_shared_GCJ=no
21275fi
21276
21277fi
21278case "$host_os" in
21279  # For platforms which do not support PIC, -DPIC is meaningless:
21280  *djgpp*)
21281    lt_prog_compiler_pic_GCJ=
21282    ;;
21283  *)
21284    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21285    ;;
21286esac
21287
21288echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21290if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21291  echo $ECHO_N "(cached) $ECHO_C" >&6
21292else
21293  lt_cv_prog_compiler_c_o_GCJ=no
21294   $rm -r conftest 2>/dev/null
21295   mkdir conftest
21296   cd conftest
21297   mkdir out
21298   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21299
21300   lt_compiler_flag="-o out/conftest2.$ac_objext"
21301   # Insert the option either (1) after the last *FLAGS variable, or
21302   # (2) before a word containing "conftest.", or (3) at the end.
21303   # Note that $ac_compile itself does not contain backslashes and begins
21304   # with a dollar sign (not a hyphen), so the echo should work correctly.
21305   lt_compile=`echo "$ac_compile" | $SED \
21306   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21307   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21308   -e 's:$: $lt_compiler_flag:'`
21309   (eval echo "\"\$as_me:21309: $lt_compile\"" >&5)
21310   (eval "$lt_compile" 2>out/conftest.err)
21311   ac_status=$?
21312   cat out/conftest.err >&5
21313   echo "$as_me:21313: \$? = $ac_status" >&5
21314   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21315   then
21316     # The compiler can only warn and ignore the option if not recognized
21317     # So say no if there are warnings
21318     if test ! -s out/conftest.err; then
21319       lt_cv_prog_compiler_c_o_GCJ=yes
21320     fi
21321   fi
21322   chmod u+w .
21323   $rm conftest*
21324   # SGI C++ compiler will create directory out/ii_files/ for
21325   # template instantiation
21326   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21327   $rm out/* && rmdir out
21328   cd ..
21329   rmdir conftest
21330   $rm conftest*
21331
21332fi
21333echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21334echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21335
21336
21337hard_links="nottested"
21338if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21339  # do not overwrite the value of need_locks provided by the user
21340  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21341echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21342  hard_links=yes
21343  $rm conftest*
21344  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21345  touch conftest.a
21346  ln conftest.a conftest.b 2>&5 || hard_links=no
21347  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21348  echo "$as_me:$LINENO: result: $hard_links" >&5
21349echo "${ECHO_T}$hard_links" >&6
21350  if test "$hard_links" = no; then
21351    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21352echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21353    need_locks=warn
21354  fi
21355else
21356  need_locks=no
21357fi
21358
21359echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21360echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21361
21362  runpath_var=
21363  allow_undefined_flag_GCJ=
21364  enable_shared_with_static_runtimes_GCJ=no
21365  archive_cmds_GCJ=
21366  archive_expsym_cmds_GCJ=
21367  old_archive_From_new_cmds_GCJ=
21368  old_archive_from_expsyms_cmds_GCJ=
21369  export_dynamic_flag_spec_GCJ=
21370  whole_archive_flag_spec_GCJ=
21371  thread_safe_flag_spec_GCJ=
21372  hardcode_libdir_flag_spec_GCJ=
21373  hardcode_libdir_flag_spec_ld_GCJ=
21374  hardcode_libdir_separator_GCJ=
21375  hardcode_direct_GCJ=no
21376  hardcode_minus_L_GCJ=no
21377  hardcode_shlibpath_var_GCJ=unsupported
21378  link_all_deplibs_GCJ=unknown
21379  hardcode_automatic_GCJ=no
21380  module_cmds_GCJ=
21381  module_expsym_cmds_GCJ=
21382  always_export_symbols_GCJ=no
21383  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21384  # include_expsyms should be a list of space-separated symbols to be *always*
21385  # included in the symbol list
21386  include_expsyms_GCJ=
21387  # exclude_expsyms can be an extended regexp of symbols to exclude
21388  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21389  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21390  # as well as any symbol that contains `d'.
21391  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21392  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21393  # platforms (ab)use it in PIC code, but their linkers get confused if
21394  # the symbol is explicitly referenced.  Since portable code cannot
21395  # rely on this symbol name, it's probably fine to never include it in
21396  # preloaded symbol tables.
21397  extract_expsyms_cmds=
21398
21399  case $host_os in
21400  cygwin* | mingw* | pw32*)
21401    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21402    # When not using gcc, we currently assume that we are using
21403    # Microsoft Visual C++.
21404    if test "$GCC" != yes; then
21405      with_gnu_ld=no
21406    fi
21407    ;;
21408  openbsd*)
21409    with_gnu_ld=no
21410    ;;
21411  esac
21412
21413  ld_shlibs_GCJ=yes
21414  if test "$with_gnu_ld" = yes; then
21415    # If archive_cmds runs LD, not CC, wlarc should be empty
21416    wlarc='${wl}'
21417
21418    # See if GNU ld supports shared libraries.
21419    case $host_os in
21420    aix3* | aix4* | aix5*)
21421      # On AIX/PPC, the GNU linker is very broken
21422      if test "$host_cpu" != ia64; then
21423	ld_shlibs_GCJ=no
21424	cat <<EOF 1>&2
21425
21426*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21427*** to be unable to reliably create shared libraries on AIX.
21428*** Therefore, libtool is disabling shared libraries support.  If you
21429*** really care for shared libraries, you may want to modify your PATH
21430*** so that a non-GNU linker is found, and then restart.
21431
21432EOF
21433      fi
21434      ;;
21435
21436    amigaos*)
21437      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)'
21438      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21439      hardcode_minus_L_GCJ=yes
21440
21441      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21442      # that the semantics of dynamic libraries on AmigaOS, at least up
21443      # to version 4, is to share data among multiple programs linked
21444      # with the same dynamic library.  Since this doesn't match the
21445      # behavior of shared libraries on other platforms, we can't use
21446      # them.
21447      ld_shlibs_GCJ=no
21448      ;;
21449
21450    beos*)
21451      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21452	allow_undefined_flag_GCJ=unsupported
21453	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21454	# support --undefined.  This deserves some investigation.  FIXME
21455	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21456      else
21457	ld_shlibs_GCJ=no
21458      fi
21459      ;;
21460
21461    cygwin* | mingw* | pw32*)
21462      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21463      # as there is no search path for DLLs.
21464      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21465      allow_undefined_flag_GCJ=unsupported
21466      always_export_symbols_GCJ=no
21467      enable_shared_with_static_runtimes_GCJ=yes
21468      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21469
21470      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21471        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21472	# If the export-symbols file already is a .def file (1st line
21473	# is EXPORTS), use it as is; otherwise, prepend...
21474	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21475	  cp $export_symbols $output_objdir/$soname.def;
21476	else
21477	  echo EXPORTS > $output_objdir/$soname.def;
21478	  cat $export_symbols >> $output_objdir/$soname.def;
21479	fi~
21480	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21481      else
21482	ld_shlibs=no
21483      fi
21484      ;;
21485
21486    netbsd*)
21487      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21488	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21489	wlarc=
21490      else
21491	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21492	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21493      fi
21494      ;;
21495
21496    solaris* | sysv5*)
21497      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21498	ld_shlibs_GCJ=no
21499	cat <<EOF 1>&2
21500
21501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21502*** create shared libraries on Solaris systems.  Therefore, libtool
21503*** is disabling shared libraries support.  We urge you to upgrade GNU
21504*** binutils to release 2.9.1 or newer.  Another option is to modify
21505*** your PATH or compiler configuration so that the native linker is
21506*** used, and then restart.
21507
21508EOF
21509      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21510	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21511	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21512      else
21513	ld_shlibs_GCJ=no
21514      fi
21515      ;;
21516
21517    sunos4*)
21518      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21519      wlarc=
21520      hardcode_direct_GCJ=yes
21521      hardcode_shlibpath_var_GCJ=no
21522      ;;
21523
21524  linux*)
21525    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21526        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21527	archive_cmds_GCJ="$tmp_archive_cmds"
21528      supports_anon_versioning=no
21529      case `$LD -v 2>/dev/null` in
21530        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21531        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21532        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21533        *\ 2.11.*) ;; # other 2.11 versions
21534        *) supports_anon_versioning=yes ;;
21535      esac
21536      if test $supports_anon_versioning = yes; then
21537        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21538cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21539$echo "local: *; };" >> $output_objdir/$libname.ver~
21540        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21541      else
21542        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21543      fi
21544    else
21545      ld_shlibs_GCJ=no
21546    fi
21547    ;;
21548
21549    *)
21550      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21551	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21552	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21553      else
21554	ld_shlibs_GCJ=no
21555      fi
21556      ;;
21557    esac
21558
21559    if test "$ld_shlibs_GCJ" = yes; then
21560      runpath_var=LD_RUN_PATH
21561      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21562      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21563      # ancient GNU ld didn't support --whole-archive et. al.
21564      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21565 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21566      else
21567  	whole_archive_flag_spec_GCJ=
21568      fi
21569    fi
21570  else
21571    # PORTME fill in a description of your system's linker (not GNU ld)
21572    case $host_os in
21573    aix3*)
21574      allow_undefined_flag_GCJ=unsupported
21575      always_export_symbols_GCJ=yes
21576      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'
21577      # Note: this linker hardcodes the directories in LIBPATH if there
21578      # are no directories specified by -L.
21579      hardcode_minus_L_GCJ=yes
21580      if test "$GCC" = yes && test -z "$link_static_flag"; then
21581	# Neither direct hardcoding nor static linking is supported with a
21582	# broken collect2.
21583	hardcode_direct_GCJ=unsupported
21584      fi
21585      ;;
21586
21587    aix4* | aix5*)
21588      if test "$host_cpu" = ia64; then
21589	# On IA64, the linker does run time linking by default, so we don't
21590	# have to do anything special.
21591	aix_use_runtimelinking=no
21592	exp_sym_flag='-Bexport'
21593	no_entry_flag=""
21594      else
21595	# If we're using GNU nm, then we don't want the "-C" option.
21596	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21597	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21598	  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'
21599	else
21600	  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'
21601	fi
21602	aix_use_runtimelinking=no
21603
21604	# Test if we are trying to use run time linking or normal
21605	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21606	# need to do runtime linking.
21607	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21608	  for ld_flag in $LDFLAGS; do
21609  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21610  	    aix_use_runtimelinking=yes
21611  	    break
21612  	  fi
21613	  done
21614	esac
21615
21616	exp_sym_flag='-bexport'
21617	no_entry_flag='-bnoentry'
21618      fi
21619
21620      # When large executables or shared objects are built, AIX ld can
21621      # have problems creating the table of contents.  If linking a library
21622      # or program results in "error TOC overflow" add -mminimal-toc to
21623      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21624      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21625
21626      archive_cmds_GCJ=''
21627      hardcode_direct_GCJ=yes
21628      hardcode_libdir_separator_GCJ=':'
21629      link_all_deplibs_GCJ=yes
21630
21631      if test "$GCC" = yes; then
21632	case $host_os in aix4.012|aix4.012.*)
21633	# We only want to do this on AIX 4.2 and lower, the check
21634	# below for broken collect2 doesn't work under 4.3+
21635	  collect2name=`${CC} -print-prog-name=collect2`
21636	  if test -f "$collect2name" && \
21637  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21638	  then
21639  	  # We have reworked collect2
21640  	  hardcode_direct_GCJ=yes
21641	  else
21642  	  # We have old collect2
21643  	  hardcode_direct_GCJ=unsupported
21644  	  # It fails to find uninstalled libraries when the uninstalled
21645  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21646  	  # to unsupported forces relinking
21647  	  hardcode_minus_L_GCJ=yes
21648  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21649  	  hardcode_libdir_separator_GCJ=
21650	  fi
21651	esac
21652	shared_flag='-shared'
21653      else
21654	# not using gcc
21655	if test "$host_cpu" = ia64; then
21656  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21657  	# chokes on -Wl,-G. The following line is correct:
21658	  shared_flag='-G'
21659	else
21660  	if test "$aix_use_runtimelinking" = yes; then
21661	    shared_flag='${wl}-G'
21662	  else
21663	    shared_flag='${wl}-bM:SRE'
21664  	fi
21665	fi
21666      fi
21667
21668      # It seems that -bexpall does not export symbols beginning with
21669      # underscore (_), so it is better to generate a list of symbols to export.
21670      always_export_symbols_GCJ=yes
21671      if test "$aix_use_runtimelinking" = yes; then
21672	# Warning - without using the other runtime loading flags (-brtl),
21673	# -berok will link without error, but may produce a broken library.
21674	allow_undefined_flag_GCJ='-berok'
21675       # Determine the default libpath from the value encoded in an empty executable.
21676       cat >conftest.$ac_ext <<_ACEOF
21677/* confdefs.h.  */
21678_ACEOF
21679cat confdefs.h >>conftest.$ac_ext
21680cat >>conftest.$ac_ext <<_ACEOF
21681/* end confdefs.h.  */
21682
21683int
21684main ()
21685{
21686
21687  ;
21688  return 0;
21689}
21690_ACEOF
21691rm -f conftest.$ac_objext conftest$ac_exeext
21692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693  (eval $ac_link) 2>conftest.er1
21694  ac_status=$?
21695  grep -v '^ *+' conftest.er1 >conftest.err
21696  rm -f conftest.er1
21697  cat conftest.err >&5
21698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699  (exit $ac_status); } &&
21700	 { ac_try='test -z "$ac_c_werror_flag"
21701			 || test ! -s conftest.err'
21702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703  (eval $ac_try) 2>&5
21704  ac_status=$?
21705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706  (exit $ac_status); }; } &&
21707	 { ac_try='test -s conftest$ac_exeext'
21708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709  (eval $ac_try) 2>&5
21710  ac_status=$?
21711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712  (exit $ac_status); }; }; then
21713
21714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21715}'`
21716# Check for a 64-bit object if we didn't find anything.
21717if 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; }
21718}'`; fi
21719else
21720  echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
21723fi
21724rm -f conftest.err conftest.$ac_objext \
21725      conftest$ac_exeext conftest.$ac_ext
21726if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21727
21728       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21729	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"
21730       else
21731	if test "$host_cpu" = ia64; then
21732	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21733	  allow_undefined_flag_GCJ="-z nodefs"
21734	  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"
21735	else
21736	 # Determine the default libpath from the value encoded in an empty executable.
21737	 cat >conftest.$ac_ext <<_ACEOF
21738/* confdefs.h.  */
21739_ACEOF
21740cat confdefs.h >>conftest.$ac_ext
21741cat >>conftest.$ac_ext <<_ACEOF
21742/* end confdefs.h.  */
21743
21744int
21745main ()
21746{
21747
21748  ;
21749  return 0;
21750}
21751_ACEOF
21752rm -f conftest.$ac_objext conftest$ac_exeext
21753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21754  (eval $ac_link) 2>conftest.er1
21755  ac_status=$?
21756  grep -v '^ *+' conftest.er1 >conftest.err
21757  rm -f conftest.er1
21758  cat conftest.err >&5
21759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760  (exit $ac_status); } &&
21761	 { ac_try='test -z "$ac_c_werror_flag"
21762			 || test ! -s conftest.err'
21763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764  (eval $ac_try) 2>&5
21765  ac_status=$?
21766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767  (exit $ac_status); }; } &&
21768	 { ac_try='test -s conftest$ac_exeext'
21769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770  (eval $ac_try) 2>&5
21771  ac_status=$?
21772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773  (exit $ac_status); }; }; then
21774
21775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21776}'`
21777# Check for a 64-bit object if we didn't find anything.
21778if 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; }
21779}'`; fi
21780else
21781  echo "$as_me: failed program was:" >&5
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
21784fi
21785rm -f conftest.err conftest.$ac_objext \
21786      conftest$ac_exeext conftest.$ac_ext
21787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21788
21789	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21790	  # Warning - without using the other run time loading flags,
21791	  # -berok will link without error, but may produce a broken library.
21792	  no_undefined_flag_GCJ=' ${wl}-bernotok'
21793	  allow_undefined_flag_GCJ=' ${wl}-berok'
21794	  # -bexpall does not export symbols beginning with underscore (_)
21795	  always_export_symbols_GCJ=yes
21796	  # Exported symbols can be pulled into shared objects from archives
21797	  whole_archive_flag_spec_GCJ=' '
21798	  archive_cmds_need_lc_GCJ=yes
21799	  # This is similar to how AIX traditionally builds it's shared libraries.
21800	  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'
21801	fi
21802      fi
21803      ;;
21804
21805    amigaos*)
21806      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)'
21807      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21808      hardcode_minus_L_GCJ=yes
21809      # see comment about different semantics on the GNU ld section
21810      ld_shlibs_GCJ=no
21811      ;;
21812
21813    bsdi[45]*)
21814      export_dynamic_flag_spec_GCJ=-rdynamic
21815      ;;
21816
21817    cygwin* | mingw* | pw32*)
21818      # When not using gcc, we currently assume that we are using
21819      # Microsoft Visual C++.
21820      # hardcode_libdir_flag_spec is actually meaningless, as there is
21821      # no search path for DLLs.
21822      hardcode_libdir_flag_spec_GCJ=' '
21823      allow_undefined_flag_GCJ=unsupported
21824      # Tell ltmain to make .lib files, not .a files.
21825      libext=lib
21826      # Tell ltmain to make .dll files, not .so files.
21827      shrext_cmds=".dll"
21828      # FIXME: Setting linknames here is a bad hack.
21829      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21830      # The linker will automatically build a .lib file if we build a DLL.
21831      old_archive_From_new_cmds_GCJ='true'
21832      # FIXME: Should let the user specify the lib program.
21833      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21834      fix_srcfile_path='`cygpath -w "$srcfile"`'
21835      enable_shared_with_static_runtimes_GCJ=yes
21836      ;;
21837
21838    darwin* | rhapsody*)
21839      case "$host_os" in
21840        rhapsody* | darwin1.[012])
21841         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21842         ;;
21843       *) # Darwin 1.3 on
21844         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21845           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21846         else
21847           case ${MACOSX_DEPLOYMENT_TARGET} in
21848             10.[012])
21849               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21850               ;;
21851             10.*)
21852               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21853               ;;
21854           esac
21855         fi
21856         ;;
21857      esac
21858      archive_cmds_need_lc_GCJ=no
21859      hardcode_direct_GCJ=no
21860      hardcode_automatic_GCJ=yes
21861      hardcode_shlibpath_var_GCJ=unsupported
21862      whole_archive_flag_spec_GCJ=''
21863      link_all_deplibs_GCJ=yes
21864    if test "$GCC" = yes ; then
21865    	output_verbose_link_cmd='echo'
21866        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21867      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21868      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21869      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}'
21870      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}'
21871    else
21872      case "$cc_basename" in
21873        xlc*)
21874         output_verbose_link_cmd='echo'
21875         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21876         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21877          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21878         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}'
21879          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}'
21880          ;;
21881       *)
21882         ld_shlibs_GCJ=no
21883          ;;
21884      esac
21885    fi
21886      ;;
21887
21888    dgux*)
21889      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21890      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21891      hardcode_shlibpath_var_GCJ=no
21892      ;;
21893
21894    freebsd1*)
21895      ld_shlibs_GCJ=no
21896      ;;
21897
21898    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21899    # support.  Future versions do this automatically, but an explicit c++rt0.o
21900    # does not break anything, and helps significantly (at the cost of a little
21901    # extra space).
21902    freebsd2.2*)
21903      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21904      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21905      hardcode_direct_GCJ=yes
21906      hardcode_shlibpath_var_GCJ=no
21907      ;;
21908
21909    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21910    freebsd2*)
21911      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21912      hardcode_direct_GCJ=yes
21913      hardcode_minus_L_GCJ=yes
21914      hardcode_shlibpath_var_GCJ=no
21915      ;;
21916
21917    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21918    freebsd* | kfreebsd*-gnu)
21919      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21920      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21921      hardcode_direct_GCJ=yes
21922      hardcode_shlibpath_var_GCJ=no
21923      ;;
21924
21925    hpux9*)
21926      if test "$GCC" = yes; then
21927	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'
21928      else
21929	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'
21930      fi
21931      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21932      hardcode_libdir_separator_GCJ=:
21933      hardcode_direct_GCJ=yes
21934
21935      # hardcode_minus_L: Not really in the search PATH,
21936      # but as the default location of the library.
21937      hardcode_minus_L_GCJ=yes
21938      export_dynamic_flag_spec_GCJ='${wl}-E'
21939      ;;
21940
21941    hpux10* | hpux11*)
21942      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21943	case "$host_cpu" in
21944	hppa*64*|ia64*)
21945	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21946	  ;;
21947	*)
21948	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21949	  ;;
21950	esac
21951      else
21952	case "$host_cpu" in
21953	hppa*64*|ia64*)
21954	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21955	  ;;
21956	*)
21957	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21958	  ;;
21959	esac
21960      fi
21961      if test "$with_gnu_ld" = no; then
21962	case "$host_cpu" in
21963	hppa*64*)
21964	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21965	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21966	  hardcode_libdir_separator_GCJ=:
21967	  hardcode_direct_GCJ=no
21968	  hardcode_shlibpath_var_GCJ=no
21969	  ;;
21970	ia64*)
21971	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21972	  hardcode_direct_GCJ=no
21973	  hardcode_shlibpath_var_GCJ=no
21974
21975	  # hardcode_minus_L: Not really in the search PATH,
21976	  # but as the default location of the library.
21977	  hardcode_minus_L_GCJ=yes
21978	  ;;
21979	*)
21980	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21981	  hardcode_libdir_separator_GCJ=:
21982	  hardcode_direct_GCJ=yes
21983	  export_dynamic_flag_spec_GCJ='${wl}-E'
21984
21985	  # hardcode_minus_L: Not really in the search PATH,
21986	  # but as the default location of the library.
21987	  hardcode_minus_L_GCJ=yes
21988	  ;;
21989	esac
21990      fi
21991      ;;
21992
21993    irix5* | irix6* | nonstopux*)
21994      if test "$GCC" = yes; then
21995	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'
21996      else
21997	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'
21998	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21999      fi
22000      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22001      hardcode_libdir_separator_GCJ=:
22002      link_all_deplibs_GCJ=yes
22003      ;;
22004
22005    netbsd*)
22006      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22007	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22008      else
22009	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22010      fi
22011      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22012      hardcode_direct_GCJ=yes
22013      hardcode_shlibpath_var_GCJ=no
22014      ;;
22015
22016    newsos6)
22017      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22018      hardcode_direct_GCJ=yes
22019      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22020      hardcode_libdir_separator_GCJ=:
22021      hardcode_shlibpath_var_GCJ=no
22022      ;;
22023
22024    openbsd*)
22025      hardcode_direct_GCJ=yes
22026      hardcode_shlibpath_var_GCJ=no
22027      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22028	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22029	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22030	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22031	export_dynamic_flag_spec_GCJ='${wl}-E'
22032      else
22033       case $host_os in
22034	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22035	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22036	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22037	   ;;
22038	 *)
22039	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22040	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22041	   ;;
22042       esac
22043      fi
22044      ;;
22045
22046    os2*)
22047      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22048      hardcode_minus_L_GCJ=yes
22049      allow_undefined_flag_GCJ=unsupported
22050      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'
22051      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22052      ;;
22053
22054    osf3*)
22055      if test "$GCC" = yes; then
22056	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22057	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'
22058      else
22059	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22060	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'
22061      fi
22062      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22063      hardcode_libdir_separator_GCJ=:
22064      ;;
22065
22066    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22067      if test "$GCC" = yes; then
22068	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22069	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'
22070	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22071      else
22072	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22073	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'
22074	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~
22075	$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'
22076
22077	# Both c and cxx compiler support -rpath directly
22078	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22079      fi
22080      hardcode_libdir_separator_GCJ=:
22081      ;;
22082
22083    sco3.2v5*)
22084      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22085      hardcode_shlibpath_var_GCJ=no
22086      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22087      runpath_var=LD_RUN_PATH
22088      hardcode_runpath_var=yes
22089      ;;
22090
22091    solaris*)
22092      no_undefined_flag_GCJ=' -z text'
22093      if test "$GCC" = yes; then
22094	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22095	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22096	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22097      else
22098	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22099	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22100  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22101      fi
22102      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22103      hardcode_shlibpath_var_GCJ=no
22104      case $host_os in
22105      solaris2.[0-5] | solaris2.[0-5].*) ;;
22106      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22107	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22108      esac
22109      link_all_deplibs_GCJ=yes
22110      ;;
22111
22112    sunos4*)
22113      if test "x$host_vendor" = xsequent; then
22114	# Use $CC to link under sequent, because it throws in some extra .o
22115	# files that make .init and .fini sections work.
22116	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22117      else
22118	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22119      fi
22120      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22121      hardcode_direct_GCJ=yes
22122      hardcode_minus_L_GCJ=yes
22123      hardcode_shlibpath_var_GCJ=no
22124      ;;
22125
22126    sysv4)
22127      case $host_vendor in
22128	sni)
22129	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130	  hardcode_direct_GCJ=yes # is this really true???
22131	;;
22132	siemens)
22133	  ## LD is ld it makes a PLAMLIB
22134	  ## CC just makes a GrossModule.
22135	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22136	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22137	  hardcode_direct_GCJ=no
22138        ;;
22139	motorola)
22140	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22141	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22142	;;
22143      esac
22144      runpath_var='LD_RUN_PATH'
22145      hardcode_shlibpath_var_GCJ=no
22146      ;;
22147
22148    sysv4.3*)
22149      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150      hardcode_shlibpath_var_GCJ=no
22151      export_dynamic_flag_spec_GCJ='-Bexport'
22152      ;;
22153
22154    sysv4*MP*)
22155      if test -d /usr/nec; then
22156	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22157	hardcode_shlibpath_var_GCJ=no
22158	runpath_var=LD_RUN_PATH
22159	hardcode_runpath_var=yes
22160	ld_shlibs_GCJ=yes
22161      fi
22162      ;;
22163
22164    sysv4.2uw2*)
22165      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22166      hardcode_direct_GCJ=yes
22167      hardcode_minus_L_GCJ=no
22168      hardcode_shlibpath_var_GCJ=no
22169      hardcode_runpath_var=yes
22170      runpath_var=LD_RUN_PATH
22171      ;;
22172
22173   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22174      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22175      if test "$GCC" = yes; then
22176	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22177      else
22178	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22179      fi
22180      runpath_var='LD_RUN_PATH'
22181      hardcode_shlibpath_var_GCJ=no
22182      ;;
22183
22184    sysv5*)
22185      no_undefined_flag_GCJ=' -z text'
22186      # $CC -shared without GNU ld will not create a library from C++
22187      # object files and a static libstdc++, better avoid it by now
22188      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22189      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22190  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22191      hardcode_libdir_flag_spec_GCJ=
22192      hardcode_shlibpath_var_GCJ=no
22193      runpath_var='LD_RUN_PATH'
22194      ;;
22195
22196    uts4*)
22197      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22198      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22199      hardcode_shlibpath_var_GCJ=no
22200      ;;
22201
22202    *)
22203      ld_shlibs_GCJ=no
22204      ;;
22205    esac
22206  fi
22207
22208echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22209echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22210test "$ld_shlibs_GCJ" = no && can_build_shared=no
22211
22212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22213if test "$GCC" = yes; then
22214  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22215fi
22216
22217#
22218# Do we need to explicitly link libc?
22219#
22220case "x$archive_cmds_need_lc_GCJ" in
22221x|xyes)
22222  # Assume -lc should be added
22223  archive_cmds_need_lc_GCJ=yes
22224
22225  if test "$enable_shared" = yes && test "$GCC" = yes; then
22226    case $archive_cmds_GCJ in
22227    *'~'*)
22228      # FIXME: we may have to deal with multi-command sequences.
22229      ;;
22230    '$CC '*)
22231      # Test whether the compiler implicitly links with -lc since on some
22232      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22233      # to ld, don't add -lc before -lgcc.
22234      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22235echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22236      $rm conftest*
22237      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22238
22239      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22240  (eval $ac_compile) 2>&5
22241  ac_status=$?
22242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243  (exit $ac_status); } 2>conftest.err; then
22244        soname=conftest
22245        lib=conftest
22246        libobjs=conftest.$ac_objext
22247        deplibs=
22248        wl=$lt_prog_compiler_wl_GCJ
22249        compiler_flags=-v
22250        linker_flags=-v
22251        verstring=
22252        output_objdir=.
22253        libname=conftest
22254        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22255        allow_undefined_flag_GCJ=
22256        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22257  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22258  ac_status=$?
22259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260  (exit $ac_status); }
22261        then
22262	  archive_cmds_need_lc_GCJ=no
22263        else
22264	  archive_cmds_need_lc_GCJ=yes
22265        fi
22266        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22267      else
22268        cat conftest.err 1>&5
22269      fi
22270      $rm conftest*
22271      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22272echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22273      ;;
22274    esac
22275  fi
22276  ;;
22277esac
22278
22279echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22280echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22281library_names_spec=
22282libname_spec='lib$name'
22283soname_spec=
22284shrext_cmds=".so"
22285postinstall_cmds=
22286postuninstall_cmds=
22287finish_cmds=
22288finish_eval=
22289shlibpath_var=
22290shlibpath_overrides_runpath=unknown
22291version_type=none
22292dynamic_linker="$host_os ld.so"
22293sys_lib_dlsearch_path_spec="/lib /usr/lib"
22294if test "$GCC" = yes; then
22295  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22296  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22297    # if the path contains ";" then we assume it to be the separator
22298    # otherwise default to the standard path separator (i.e. ":") - it is
22299    # assumed that no part of a normal pathname contains ";" but that should
22300    # okay in the real world where ";" in dirpaths is itself problematic.
22301    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22302  else
22303    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22304  fi
22305else
22306  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22307fi
22308need_lib_prefix=unknown
22309hardcode_into_libs=no
22310
22311# when you set need_version to no, make sure it does not cause -set_version
22312# flags to be left without arguments
22313need_version=unknown
22314
22315case $host_os in
22316aix3*)
22317  version_type=linux
22318  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22319  shlibpath_var=LIBPATH
22320
22321  # AIX 3 has no versioning support, so we append a major version to the name.
22322  soname_spec='${libname}${release}${shared_ext}$major'
22323  ;;
22324
22325aix4* | aix5*)
22326  version_type=linux
22327  need_lib_prefix=no
22328  need_version=no
22329  hardcode_into_libs=yes
22330  if test "$host_cpu" = ia64; then
22331    # AIX 5 supports IA64
22332    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22333    shlibpath_var=LD_LIBRARY_PATH
22334  else
22335    # With GCC up to 2.95.x, collect2 would create an import file
22336    # for dependence libraries.  The import file would start with
22337    # the line `#! .'.  This would cause the generated library to
22338    # depend on `.', always an invalid library.  This was fixed in
22339    # development snapshots of GCC prior to 3.0.
22340    case $host_os in
22341      aix4 | aix4.[01] | aix4.[01].*)
22342      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22343	   echo ' yes '
22344	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22345	:
22346      else
22347	can_build_shared=no
22348      fi
22349      ;;
22350    esac
22351    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22352    # soname into executable. Probably we can add versioning support to
22353    # collect2, so additional links can be useful in future.
22354    if test "$aix_use_runtimelinking" = yes; then
22355      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22356      # instead of lib<name>.a to let people know that these are not
22357      # typical AIX shared libraries.
22358      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22359    else
22360      # We preserve .a as extension for shared libraries through AIX4.2
22361      # and later when we are not doing run time linking.
22362      library_names_spec='${libname}${release}.a $libname.a'
22363      soname_spec='${libname}${release}${shared_ext}$major'
22364    fi
22365    shlibpath_var=LIBPATH
22366  fi
22367  ;;
22368
22369amigaos*)
22370  library_names_spec='$libname.ixlibrary $libname.a'
22371  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22372  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'
22373  ;;
22374
22375beos*)
22376  library_names_spec='${libname}${shared_ext}'
22377  dynamic_linker="$host_os ld.so"
22378  shlibpath_var=LIBRARY_PATH
22379  ;;
22380
22381bsdi[45]*)
22382  version_type=linux
22383  need_version=no
22384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22385  soname_spec='${libname}${release}${shared_ext}$major'
22386  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22387  shlibpath_var=LD_LIBRARY_PATH
22388  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22389  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22390  # the default ld.so.conf also contains /usr/contrib/lib and
22391  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22392  # libtool to hard-code these into programs
22393  ;;
22394
22395cygwin* | mingw* | pw32*)
22396  version_type=windows
22397  shrext_cmds=".dll"
22398  need_version=no
22399  need_lib_prefix=no
22400
22401  case $GCC,$host_os in
22402  yes,cygwin* | yes,mingw* | yes,pw32*)
22403    library_names_spec='$libname.dll.a'
22404    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22405    postinstall_cmds='base_file=`basename \${file}`~
22406      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22407      dldir=$destdir/`dirname \$dlpath`~
22408      test -d \$dldir || mkdir -p \$dldir~
22409      $install_prog $dir/$dlname \$dldir/$dlname'
22410    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22411      dlpath=$dir/\$dldll~
22412       $rm \$dlpath'
22413    shlibpath_overrides_runpath=yes
22414
22415    case $host_os in
22416    cygwin*)
22417      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22418      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22419      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22420      ;;
22421    mingw*)
22422      # MinGW DLLs use traditional 'lib' prefix
22423      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22424      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22425      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22426        # It is most probably a Windows format PATH printed by
22427        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22428        # path with ; separators, and with drive letters. We can handle the
22429        # drive letters (cygwin fileutils understands them), so leave them,
22430        # especially as we might pass files found there to a mingw objdump,
22431        # which wouldn't understand a cygwinified path. Ahh.
22432        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22433      else
22434        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22435      fi
22436      ;;
22437    pw32*)
22438      # pw32 DLLs use 'pw' prefix rather than 'lib'
22439      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22440      ;;
22441    esac
22442    ;;
22443
22444  *)
22445    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22446    ;;
22447  esac
22448  dynamic_linker='Win32 ld.exe'
22449  # FIXME: first we should search . and the directory the executable is in
22450  shlibpath_var=PATH
22451  ;;
22452
22453darwin* | rhapsody*)
22454  dynamic_linker="$host_os dyld"
22455  version_type=darwin
22456  need_lib_prefix=no
22457  need_version=no
22458  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22459  soname_spec='${libname}${release}${major}$shared_ext'
22460  shlibpath_overrides_runpath=yes
22461  shlibpath_var=DYLD_LIBRARY_PATH
22462  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22463  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22464  if test "$GCC" = yes; then
22465    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"`
22466  else
22467    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22468  fi
22469  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22470  ;;
22471
22472dgux*)
22473  version_type=linux
22474  need_lib_prefix=no
22475  need_version=no
22476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22477  soname_spec='${libname}${release}${shared_ext}$major'
22478  shlibpath_var=LD_LIBRARY_PATH
22479  ;;
22480
22481freebsd1*)
22482  dynamic_linker=no
22483  ;;
22484
22485kfreebsd*-gnu)
22486  version_type=linux
22487  need_lib_prefix=no
22488  need_version=no
22489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22490  soname_spec='${libname}${release}${shared_ext}$major'
22491  shlibpath_var=LD_LIBRARY_PATH
22492  shlibpath_overrides_runpath=no
22493  hardcode_into_libs=yes
22494  dynamic_linker='GNU ld.so'
22495  ;;
22496
22497freebsd*)
22498  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22499  version_type=freebsd-$objformat
22500  case $version_type in
22501    freebsd-elf*)
22502      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22503      need_version=no
22504      need_lib_prefix=no
22505      ;;
22506    freebsd-*)
22507      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22508      need_version=yes
22509      ;;
22510  esac
22511  shlibpath_var=LD_LIBRARY_PATH
22512  case $host_os in
22513  freebsd2*)
22514    shlibpath_overrides_runpath=yes
22515    ;;
22516  freebsd3.01* | freebsdelf3.01*)
22517    shlibpath_overrides_runpath=yes
22518    hardcode_into_libs=yes
22519    ;;
22520  *) # from 3.2 on
22521    shlibpath_overrides_runpath=no
22522    hardcode_into_libs=yes
22523    ;;
22524  esac
22525  ;;
22526
22527gnu*)
22528  version_type=linux
22529  need_lib_prefix=no
22530  need_version=no
22531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22532  soname_spec='${libname}${release}${shared_ext}$major'
22533  shlibpath_var=LD_LIBRARY_PATH
22534  hardcode_into_libs=yes
22535  ;;
22536
22537hpux9* | hpux10* | hpux11*)
22538  # Give a soname corresponding to the major version so that dld.sl refuses to
22539  # link against other versions.
22540  version_type=sunos
22541  need_lib_prefix=no
22542  need_version=no
22543  case "$host_cpu" in
22544  ia64*)
22545    shrext_cmds='.so'
22546    hardcode_into_libs=yes
22547    dynamic_linker="$host_os dld.so"
22548    shlibpath_var=LD_LIBRARY_PATH
22549    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22550    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22551    soname_spec='${libname}${release}${shared_ext}$major'
22552    if test "X$HPUX_IA64_MODE" = X32; then
22553      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22554    else
22555      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22556    fi
22557    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22558    ;;
22559   hppa*64*)
22560     shrext_cmds='.sl'
22561     hardcode_into_libs=yes
22562     dynamic_linker="$host_os dld.sl"
22563     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22566     soname_spec='${libname}${release}${shared_ext}$major'
22567     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22569     ;;
22570   *)
22571    shrext_cmds='.sl'
22572    dynamic_linker="$host_os dld.sl"
22573    shlibpath_var=SHLIB_PATH
22574    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22576    soname_spec='${libname}${release}${shared_ext}$major'
22577    ;;
22578  esac
22579  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22580  postinstall_cmds='chmod 555 $lib'
22581  ;;
22582
22583irix5* | irix6* | nonstopux*)
22584  case $host_os in
22585    nonstopux*) version_type=nonstopux ;;
22586    *)
22587	if test "$lt_cv_prog_gnu_ld" = yes; then
22588		version_type=linux
22589	else
22590		version_type=irix
22591	fi ;;
22592  esac
22593  need_lib_prefix=no
22594  need_version=no
22595  soname_spec='${libname}${release}${shared_ext}$major'
22596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22597  case $host_os in
22598  irix5* | nonstopux*)
22599    libsuff= shlibsuff=
22600    ;;
22601  *)
22602    case $LD in # libtool.m4 will add one of these switches to LD
22603    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22604      libsuff= shlibsuff= libmagic=32-bit;;
22605    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22606      libsuff=32 shlibsuff=N32 libmagic=N32;;
22607    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22608      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22609    *) libsuff= shlibsuff= libmagic=never-match;;
22610    esac
22611    ;;
22612  esac
22613  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22614  shlibpath_overrides_runpath=no
22615  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22616  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22617  hardcode_into_libs=yes
22618  ;;
22619
22620# No shared lib support for Linux oldld, aout, or coff.
22621linux*oldld* | linux*aout* | linux*coff*)
22622  dynamic_linker=no
22623  ;;
22624
22625# This must be Linux ELF.
22626linux*)
22627  version_type=linux
22628  need_lib_prefix=no
22629  need_version=no
22630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22631  soname_spec='${libname}${release}${shared_ext}$major'
22632  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22633  shlibpath_var=LD_LIBRARY_PATH
22634  shlibpath_overrides_runpath=no
22635  # This implies no fast_install, which is unacceptable.
22636  # Some rework will be needed to allow for fast_install
22637  # before this can be enabled.
22638  hardcode_into_libs=yes
22639
22640  # Append ld.so.conf contents to the search path
22641  if test -f /etc/ld.so.conf; then
22642    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22643    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22644  fi
22645
22646  # We used to test for /lib/ld.so.1 and disable shared libraries on
22647  # powerpc, because MkLinux only supported shared libraries with the
22648  # GNU dynamic linker.  Since this was broken with cross compilers,
22649  # most powerpc-linux boxes support dynamic linking these days and
22650  # people can always --disable-shared, the test was removed, and we
22651  # assume the GNU/Linux dynamic linker is in use.
22652  dynamic_linker='GNU/Linux ld.so'
22653  ;;
22654
22655knetbsd*-gnu)
22656  version_type=linux
22657  need_lib_prefix=no
22658  need_version=no
22659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22660  soname_spec='${libname}${release}${shared_ext}$major'
22661  shlibpath_var=LD_LIBRARY_PATH
22662  shlibpath_overrides_runpath=no
22663  hardcode_into_libs=yes
22664  dynamic_linker='GNU ld.so'
22665  ;;
22666
22667netbsd*)
22668  version_type=sunos
22669  need_lib_prefix=no
22670  need_version=no
22671  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22673    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22674    dynamic_linker='NetBSD (a.out) ld.so'
22675  else
22676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22677    soname_spec='${libname}${release}${shared_ext}$major'
22678    dynamic_linker='NetBSD ld.elf_so'
22679  fi
22680  shlibpath_var=LD_LIBRARY_PATH
22681  shlibpath_overrides_runpath=yes
22682  hardcode_into_libs=yes
22683  ;;
22684
22685newsos6)
22686  version_type=linux
22687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688  shlibpath_var=LD_LIBRARY_PATH
22689  shlibpath_overrides_runpath=yes
22690  ;;
22691
22692nto-qnx*)
22693  version_type=linux
22694  need_lib_prefix=no
22695  need_version=no
22696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697  soname_spec='${libname}${release}${shared_ext}$major'
22698  shlibpath_var=LD_LIBRARY_PATH
22699  shlibpath_overrides_runpath=yes
22700  ;;
22701
22702openbsd*)
22703  version_type=sunos
22704  need_lib_prefix=no
22705  need_version=no
22706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22708  shlibpath_var=LD_LIBRARY_PATH
22709  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22710    case $host_os in
22711      openbsd2.[89] | openbsd2.[89].*)
22712	shlibpath_overrides_runpath=no
22713	;;
22714      *)
22715	shlibpath_overrides_runpath=yes
22716	;;
22717      esac
22718  else
22719    shlibpath_overrides_runpath=yes
22720  fi
22721  ;;
22722
22723os2*)
22724  libname_spec='$name'
22725  shrext_cmds=".dll"
22726  need_lib_prefix=no
22727  library_names_spec='$libname${shared_ext} $libname.a'
22728  dynamic_linker='OS/2 ld.exe'
22729  shlibpath_var=LIBPATH
22730  ;;
22731
22732osf3* | osf4* | osf5*)
22733  version_type=osf
22734  need_lib_prefix=no
22735  need_version=no
22736  soname_spec='${libname}${release}${shared_ext}$major'
22737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22738  shlibpath_var=LD_LIBRARY_PATH
22739  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22740  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22741  ;;
22742
22743sco3.2v5*)
22744  version_type=osf
22745  soname_spec='${libname}${release}${shared_ext}$major'
22746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22747  shlibpath_var=LD_LIBRARY_PATH
22748  ;;
22749
22750solaris*)
22751  version_type=linux
22752  need_lib_prefix=no
22753  need_version=no
22754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22755  soname_spec='${libname}${release}${shared_ext}$major'
22756  shlibpath_var=LD_LIBRARY_PATH
22757  shlibpath_overrides_runpath=yes
22758  hardcode_into_libs=yes
22759  # ldd complains unless libraries are executable
22760  postinstall_cmds='chmod +x $lib'
22761  ;;
22762
22763sunos4*)
22764  version_type=sunos
22765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22766  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22767  shlibpath_var=LD_LIBRARY_PATH
22768  shlibpath_overrides_runpath=yes
22769  if test "$with_gnu_ld" = yes; then
22770    need_lib_prefix=no
22771  fi
22772  need_version=yes
22773  ;;
22774
22775sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22776  version_type=linux
22777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22778  soname_spec='${libname}${release}${shared_ext}$major'
22779  shlibpath_var=LD_LIBRARY_PATH
22780  case $host_vendor in
22781    sni)
22782      shlibpath_overrides_runpath=no
22783      need_lib_prefix=no
22784      export_dynamic_flag_spec='${wl}-Blargedynsym'
22785      runpath_var=LD_RUN_PATH
22786      ;;
22787    siemens)
22788      need_lib_prefix=no
22789      ;;
22790    motorola)
22791      need_lib_prefix=no
22792      need_version=no
22793      shlibpath_overrides_runpath=no
22794      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22795      ;;
22796  esac
22797  ;;
22798
22799sysv4*MP*)
22800  if test -d /usr/nec ;then
22801    version_type=linux
22802    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22803    soname_spec='$libname${shared_ext}.$major'
22804    shlibpath_var=LD_LIBRARY_PATH
22805  fi
22806  ;;
22807
22808uts4*)
22809  version_type=linux
22810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22811  soname_spec='${libname}${release}${shared_ext}$major'
22812  shlibpath_var=LD_LIBRARY_PATH
22813  ;;
22814
22815*)
22816  dynamic_linker=no
22817  ;;
22818esac
22819echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22820echo "${ECHO_T}$dynamic_linker" >&6
22821test "$dynamic_linker" = no && can_build_shared=no
22822
22823echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22824echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22825hardcode_action_GCJ=
22826if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22827   test -n "$runpath_var_GCJ" || \
22828   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22829
22830  # We can hardcode non-existant directories.
22831  if test "$hardcode_direct_GCJ" != no &&
22832     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22833     # have to relink, otherwise we might link with an installed library
22834     # when we should be linking with a yet-to-be-installed one
22835     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22836     test "$hardcode_minus_L_GCJ" != no; then
22837    # Linking always hardcodes the temporary library directory.
22838    hardcode_action_GCJ=relink
22839  else
22840    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22841    hardcode_action_GCJ=immediate
22842  fi
22843else
22844  # We cannot hardcode anything, or else we can only hardcode existing
22845  # directories.
22846  hardcode_action_GCJ=unsupported
22847fi
22848echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22849echo "${ECHO_T}$hardcode_action_GCJ" >&6
22850
22851if test "$hardcode_action_GCJ" = relink; then
22852  # Fast installation is not supported
22853  enable_fast_install=no
22854elif test "$shlibpath_overrides_runpath" = yes ||
22855     test "$enable_shared" = no; then
22856  # Fast installation is not necessary
22857  enable_fast_install=needless
22858fi
22859
22860striplib=
22861old_striplib=
22862echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22863echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22864if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22865  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22866  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22867  echo "$as_me:$LINENO: result: yes" >&5
22868echo "${ECHO_T}yes" >&6
22869else
22870# FIXME - insert some real tests, host_os isn't really good enough
22871  case $host_os in
22872   darwin*)
22873       if test -n "$STRIP" ; then
22874         striplib="$STRIP -x"
22875         echo "$as_me:$LINENO: result: yes" >&5
22876echo "${ECHO_T}yes" >&6
22877       else
22878  echo "$as_me:$LINENO: result: no" >&5
22879echo "${ECHO_T}no" >&6
22880fi
22881       ;;
22882   *)
22883  echo "$as_me:$LINENO: result: no" >&5
22884echo "${ECHO_T}no" >&6
22885    ;;
22886  esac
22887fi
22888
22889if test "x$enable_dlopen" != xyes; then
22890  enable_dlopen=unknown
22891  enable_dlopen_self=unknown
22892  enable_dlopen_self_static=unknown
22893else
22894  lt_cv_dlopen=no
22895  lt_cv_dlopen_libs=
22896
22897  case $host_os in
22898  beos*)
22899    lt_cv_dlopen="load_add_on"
22900    lt_cv_dlopen_libs=
22901    lt_cv_dlopen_self=yes
22902    ;;
22903
22904  mingw* | pw32*)
22905    lt_cv_dlopen="LoadLibrary"
22906    lt_cv_dlopen_libs=
22907   ;;
22908
22909  cygwin*)
22910    lt_cv_dlopen="dlopen"
22911    lt_cv_dlopen_libs=
22912   ;;
22913
22914  darwin*)
22915  # if libdl is installed we need to link against it
22916    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22917echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22918if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22919  echo $ECHO_N "(cached) $ECHO_C" >&6
22920else
22921  ac_check_lib_save_LIBS=$LIBS
22922LIBS="-ldl  $LIBS"
22923cat >conftest.$ac_ext <<_ACEOF
22924/* confdefs.h.  */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h.  */
22929
22930/* Override any gcc2 internal prototype to avoid an error.  */
22931#ifdef __cplusplus
22932extern "C"
22933#endif
22934/* We use char because int might match the return type of a gcc2
22935   builtin and then its argument prototype would still apply.  */
22936char dlopen ();
22937int
22938main ()
22939{
22940dlopen ();
22941  ;
22942  return 0;
22943}
22944_ACEOF
22945rm -f conftest.$ac_objext conftest$ac_exeext
22946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22947  (eval $ac_link) 2>conftest.er1
22948  ac_status=$?
22949  grep -v '^ *+' conftest.er1 >conftest.err
22950  rm -f conftest.er1
22951  cat conftest.err >&5
22952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953  (exit $ac_status); } &&
22954	 { ac_try='test -z "$ac_c_werror_flag"
22955			 || test ! -s conftest.err'
22956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957  (eval $ac_try) 2>&5
22958  ac_status=$?
22959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960  (exit $ac_status); }; } &&
22961	 { ac_try='test -s conftest$ac_exeext'
22962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963  (eval $ac_try) 2>&5
22964  ac_status=$?
22965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966  (exit $ac_status); }; }; then
22967  ac_cv_lib_dl_dlopen=yes
22968else
22969  echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972ac_cv_lib_dl_dlopen=no
22973fi
22974rm -f conftest.err conftest.$ac_objext \
22975      conftest$ac_exeext conftest.$ac_ext
22976LIBS=$ac_check_lib_save_LIBS
22977fi
22978echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22979echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22980if test $ac_cv_lib_dl_dlopen = yes; then
22981  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22982else
22983
22984    lt_cv_dlopen="dyld"
22985    lt_cv_dlopen_libs=
22986    lt_cv_dlopen_self=yes
22987
22988fi
22989
22990   ;;
22991
22992  *)
22993    echo "$as_me:$LINENO: checking for shl_load" >&5
22994echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22995if test "${ac_cv_func_shl_load+set}" = set; then
22996  echo $ECHO_N "(cached) $ECHO_C" >&6
22997else
22998  cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h.  */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h.  */
23004/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23006#define shl_load innocuous_shl_load
23007
23008/* System header to define __stub macros and hopefully few prototypes,
23009    which can conflict with char shl_load (); below.
23010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23011    <limits.h> exists even on freestanding compilers.  */
23012
23013#ifdef __STDC__
23014# include <limits.h>
23015#else
23016# include <assert.h>
23017#endif
23018
23019#undef shl_load
23020
23021/* Override any gcc2 internal prototype to avoid an error.  */
23022#ifdef __cplusplus
23023extern "C"
23024{
23025#endif
23026/* We use char because int might match the return type of a gcc2
23027   builtin and then its argument prototype would still apply.  */
23028char shl_load ();
23029/* The GNU C library defines this for functions which it implements
23030    to always fail with ENOSYS.  Some functions are actually named
23031    something starting with __ and the normal name is an alias.  */
23032#if defined (__stub_shl_load) || defined (__stub___shl_load)
23033choke me
23034#else
23035char (*f) () = shl_load;
23036#endif
23037#ifdef __cplusplus
23038}
23039#endif
23040
23041int
23042main ()
23043{
23044return f != shl_load;
23045  ;
23046  return 0;
23047}
23048_ACEOF
23049rm -f conftest.$ac_objext conftest$ac_exeext
23050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23051  (eval $ac_link) 2>conftest.er1
23052  ac_status=$?
23053  grep -v '^ *+' conftest.er1 >conftest.err
23054  rm -f conftest.er1
23055  cat conftest.err >&5
23056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057  (exit $ac_status); } &&
23058	 { ac_try='test -z "$ac_c_werror_flag"
23059			 || test ! -s conftest.err'
23060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061  (eval $ac_try) 2>&5
23062  ac_status=$?
23063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064  (exit $ac_status); }; } &&
23065	 { ac_try='test -s conftest$ac_exeext'
23066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067  (eval $ac_try) 2>&5
23068  ac_status=$?
23069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070  (exit $ac_status); }; }; then
23071  ac_cv_func_shl_load=yes
23072else
23073  echo "$as_me: failed program was:" >&5
23074sed 's/^/| /' conftest.$ac_ext >&5
23075
23076ac_cv_func_shl_load=no
23077fi
23078rm -f conftest.err conftest.$ac_objext \
23079      conftest$ac_exeext conftest.$ac_ext
23080fi
23081echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23082echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23083if test $ac_cv_func_shl_load = yes; then
23084  lt_cv_dlopen="shl_load"
23085else
23086  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23087echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23088if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23089  echo $ECHO_N "(cached) $ECHO_C" >&6
23090else
23091  ac_check_lib_save_LIBS=$LIBS
23092LIBS="-ldld  $LIBS"
23093cat >conftest.$ac_ext <<_ACEOF
23094/* confdefs.h.  */
23095_ACEOF
23096cat confdefs.h >>conftest.$ac_ext
23097cat >>conftest.$ac_ext <<_ACEOF
23098/* end confdefs.h.  */
23099
23100/* Override any gcc2 internal prototype to avoid an error.  */
23101#ifdef __cplusplus
23102extern "C"
23103#endif
23104/* We use char because int might match the return type of a gcc2
23105   builtin and then its argument prototype would still apply.  */
23106char shl_load ();
23107int
23108main ()
23109{
23110shl_load ();
23111  ;
23112  return 0;
23113}
23114_ACEOF
23115rm -f conftest.$ac_objext conftest$ac_exeext
23116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23117  (eval $ac_link) 2>conftest.er1
23118  ac_status=$?
23119  grep -v '^ *+' conftest.er1 >conftest.err
23120  rm -f conftest.er1
23121  cat conftest.err >&5
23122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123  (exit $ac_status); } &&
23124	 { ac_try='test -z "$ac_c_werror_flag"
23125			 || test ! -s conftest.err'
23126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127  (eval $ac_try) 2>&5
23128  ac_status=$?
23129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130  (exit $ac_status); }; } &&
23131	 { ac_try='test -s conftest$ac_exeext'
23132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133  (eval $ac_try) 2>&5
23134  ac_status=$?
23135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136  (exit $ac_status); }; }; then
23137  ac_cv_lib_dld_shl_load=yes
23138else
23139  echo "$as_me: failed program was:" >&5
23140sed 's/^/| /' conftest.$ac_ext >&5
23141
23142ac_cv_lib_dld_shl_load=no
23143fi
23144rm -f conftest.err conftest.$ac_objext \
23145      conftest$ac_exeext conftest.$ac_ext
23146LIBS=$ac_check_lib_save_LIBS
23147fi
23148echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23149echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23150if test $ac_cv_lib_dld_shl_load = yes; then
23151  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23152else
23153  echo "$as_me:$LINENO: checking for dlopen" >&5
23154echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23155if test "${ac_cv_func_dlopen+set}" = set; then
23156  echo $ECHO_N "(cached) $ECHO_C" >&6
23157else
23158  cat >conftest.$ac_ext <<_ACEOF
23159/* confdefs.h.  */
23160_ACEOF
23161cat confdefs.h >>conftest.$ac_ext
23162cat >>conftest.$ac_ext <<_ACEOF
23163/* end confdefs.h.  */
23164/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23165   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23166#define dlopen innocuous_dlopen
23167
23168/* System header to define __stub macros and hopefully few prototypes,
23169    which can conflict with char dlopen (); below.
23170    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23171    <limits.h> exists even on freestanding compilers.  */
23172
23173#ifdef __STDC__
23174# include <limits.h>
23175#else
23176# include <assert.h>
23177#endif
23178
23179#undef dlopen
23180
23181/* Override any gcc2 internal prototype to avoid an error.  */
23182#ifdef __cplusplus
23183extern "C"
23184{
23185#endif
23186/* We use char because int might match the return type of a gcc2
23187   builtin and then its argument prototype would still apply.  */
23188char dlopen ();
23189/* The GNU C library defines this for functions which it implements
23190    to always fail with ENOSYS.  Some functions are actually named
23191    something starting with __ and the normal name is an alias.  */
23192#if defined (__stub_dlopen) || defined (__stub___dlopen)
23193choke me
23194#else
23195char (*f) () = dlopen;
23196#endif
23197#ifdef __cplusplus
23198}
23199#endif
23200
23201int
23202main ()
23203{
23204return f != dlopen;
23205  ;
23206  return 0;
23207}
23208_ACEOF
23209rm -f conftest.$ac_objext conftest$ac_exeext
23210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23211  (eval $ac_link) 2>conftest.er1
23212  ac_status=$?
23213  grep -v '^ *+' conftest.er1 >conftest.err
23214  rm -f conftest.er1
23215  cat conftest.err >&5
23216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217  (exit $ac_status); } &&
23218	 { ac_try='test -z "$ac_c_werror_flag"
23219			 || test ! -s conftest.err'
23220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221  (eval $ac_try) 2>&5
23222  ac_status=$?
23223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224  (exit $ac_status); }; } &&
23225	 { ac_try='test -s conftest$ac_exeext'
23226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227  (eval $ac_try) 2>&5
23228  ac_status=$?
23229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230  (exit $ac_status); }; }; then
23231  ac_cv_func_dlopen=yes
23232else
23233  echo "$as_me: failed program was:" >&5
23234sed 's/^/| /' conftest.$ac_ext >&5
23235
23236ac_cv_func_dlopen=no
23237fi
23238rm -f conftest.err conftest.$ac_objext \
23239      conftest$ac_exeext conftest.$ac_ext
23240fi
23241echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23242echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23243if test $ac_cv_func_dlopen = yes; then
23244  lt_cv_dlopen="dlopen"
23245else
23246  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23247echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23248if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23249  echo $ECHO_N "(cached) $ECHO_C" >&6
23250else
23251  ac_check_lib_save_LIBS=$LIBS
23252LIBS="-ldl  $LIBS"
23253cat >conftest.$ac_ext <<_ACEOF
23254/* confdefs.h.  */
23255_ACEOF
23256cat confdefs.h >>conftest.$ac_ext
23257cat >>conftest.$ac_ext <<_ACEOF
23258/* end confdefs.h.  */
23259
23260/* Override any gcc2 internal prototype to avoid an error.  */
23261#ifdef __cplusplus
23262extern "C"
23263#endif
23264/* We use char because int might match the return type of a gcc2
23265   builtin and then its argument prototype would still apply.  */
23266char dlopen ();
23267int
23268main ()
23269{
23270dlopen ();
23271  ;
23272  return 0;
23273}
23274_ACEOF
23275rm -f conftest.$ac_objext conftest$ac_exeext
23276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23277  (eval $ac_link) 2>conftest.er1
23278  ac_status=$?
23279  grep -v '^ *+' conftest.er1 >conftest.err
23280  rm -f conftest.er1
23281  cat conftest.err >&5
23282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283  (exit $ac_status); } &&
23284	 { ac_try='test -z "$ac_c_werror_flag"
23285			 || test ! -s conftest.err'
23286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287  (eval $ac_try) 2>&5
23288  ac_status=$?
23289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290  (exit $ac_status); }; } &&
23291	 { ac_try='test -s conftest$ac_exeext'
23292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293  (eval $ac_try) 2>&5
23294  ac_status=$?
23295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296  (exit $ac_status); }; }; then
23297  ac_cv_lib_dl_dlopen=yes
23298else
23299  echo "$as_me: failed program was:" >&5
23300sed 's/^/| /' conftest.$ac_ext >&5
23301
23302ac_cv_lib_dl_dlopen=no
23303fi
23304rm -f conftest.err conftest.$ac_objext \
23305      conftest$ac_exeext conftest.$ac_ext
23306LIBS=$ac_check_lib_save_LIBS
23307fi
23308echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23309echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23310if test $ac_cv_lib_dl_dlopen = yes; then
23311  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23312else
23313  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23314echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23315if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23316  echo $ECHO_N "(cached) $ECHO_C" >&6
23317else
23318  ac_check_lib_save_LIBS=$LIBS
23319LIBS="-lsvld  $LIBS"
23320cat >conftest.$ac_ext <<_ACEOF
23321/* confdefs.h.  */
23322_ACEOF
23323cat confdefs.h >>conftest.$ac_ext
23324cat >>conftest.$ac_ext <<_ACEOF
23325/* end confdefs.h.  */
23326
23327/* Override any gcc2 internal prototype to avoid an error.  */
23328#ifdef __cplusplus
23329extern "C"
23330#endif
23331/* We use char because int might match the return type of a gcc2
23332   builtin and then its argument prototype would still apply.  */
23333char dlopen ();
23334int
23335main ()
23336{
23337dlopen ();
23338  ;
23339  return 0;
23340}
23341_ACEOF
23342rm -f conftest.$ac_objext conftest$ac_exeext
23343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23344  (eval $ac_link) 2>conftest.er1
23345  ac_status=$?
23346  grep -v '^ *+' conftest.er1 >conftest.err
23347  rm -f conftest.er1
23348  cat conftest.err >&5
23349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350  (exit $ac_status); } &&
23351	 { ac_try='test -z "$ac_c_werror_flag"
23352			 || test ! -s conftest.err'
23353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354  (eval $ac_try) 2>&5
23355  ac_status=$?
23356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357  (exit $ac_status); }; } &&
23358	 { ac_try='test -s conftest$ac_exeext'
23359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360  (eval $ac_try) 2>&5
23361  ac_status=$?
23362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363  (exit $ac_status); }; }; then
23364  ac_cv_lib_svld_dlopen=yes
23365else
23366  echo "$as_me: failed program was:" >&5
23367sed 's/^/| /' conftest.$ac_ext >&5
23368
23369ac_cv_lib_svld_dlopen=no
23370fi
23371rm -f conftest.err conftest.$ac_objext \
23372      conftest$ac_exeext conftest.$ac_ext
23373LIBS=$ac_check_lib_save_LIBS
23374fi
23375echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23376echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23377if test $ac_cv_lib_svld_dlopen = yes; then
23378  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23379else
23380  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23381echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23382if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23383  echo $ECHO_N "(cached) $ECHO_C" >&6
23384else
23385  ac_check_lib_save_LIBS=$LIBS
23386LIBS="-ldld  $LIBS"
23387cat >conftest.$ac_ext <<_ACEOF
23388/* confdefs.h.  */
23389_ACEOF
23390cat confdefs.h >>conftest.$ac_ext
23391cat >>conftest.$ac_ext <<_ACEOF
23392/* end confdefs.h.  */
23393
23394/* Override any gcc2 internal prototype to avoid an error.  */
23395#ifdef __cplusplus
23396extern "C"
23397#endif
23398/* We use char because int might match the return type of a gcc2
23399   builtin and then its argument prototype would still apply.  */
23400char dld_link ();
23401int
23402main ()
23403{
23404dld_link ();
23405  ;
23406  return 0;
23407}
23408_ACEOF
23409rm -f conftest.$ac_objext conftest$ac_exeext
23410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23411  (eval $ac_link) 2>conftest.er1
23412  ac_status=$?
23413  grep -v '^ *+' conftest.er1 >conftest.err
23414  rm -f conftest.er1
23415  cat conftest.err >&5
23416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417  (exit $ac_status); } &&
23418	 { ac_try='test -z "$ac_c_werror_flag"
23419			 || test ! -s conftest.err'
23420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421  (eval $ac_try) 2>&5
23422  ac_status=$?
23423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424  (exit $ac_status); }; } &&
23425	 { ac_try='test -s conftest$ac_exeext'
23426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427  (eval $ac_try) 2>&5
23428  ac_status=$?
23429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430  (exit $ac_status); }; }; then
23431  ac_cv_lib_dld_dld_link=yes
23432else
23433  echo "$as_me: failed program was:" >&5
23434sed 's/^/| /' conftest.$ac_ext >&5
23435
23436ac_cv_lib_dld_dld_link=no
23437fi
23438rm -f conftest.err conftest.$ac_objext \
23439      conftest$ac_exeext conftest.$ac_ext
23440LIBS=$ac_check_lib_save_LIBS
23441fi
23442echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23443echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23444if test $ac_cv_lib_dld_dld_link = yes; then
23445  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23446fi
23447
23448
23449fi
23450
23451
23452fi
23453
23454
23455fi
23456
23457
23458fi
23459
23460
23461fi
23462
23463    ;;
23464  esac
23465
23466  if test "x$lt_cv_dlopen" != xno; then
23467    enable_dlopen=yes
23468  else
23469    enable_dlopen=no
23470  fi
23471
23472  case $lt_cv_dlopen in
23473  dlopen)
23474    save_CPPFLAGS="$CPPFLAGS"
23475    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23476
23477    save_LDFLAGS="$LDFLAGS"
23478    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23479
23480    save_LIBS="$LIBS"
23481    LIBS="$lt_cv_dlopen_libs $LIBS"
23482
23483    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23484echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23485if test "${lt_cv_dlopen_self+set}" = set; then
23486  echo $ECHO_N "(cached) $ECHO_C" >&6
23487else
23488  	  if test "$cross_compiling" = yes; then :
23489  lt_cv_dlopen_self=cross
23490else
23491  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23492  lt_status=$lt_dlunknown
23493  cat > conftest.$ac_ext <<EOF
23494#line 23494 "configure"
23495#include "confdefs.h"
23496
23497#if HAVE_DLFCN_H
23498#include <dlfcn.h>
23499#endif
23500
23501#include <stdio.h>
23502
23503#ifdef RTLD_GLOBAL
23504#  define LT_DLGLOBAL		RTLD_GLOBAL
23505#else
23506#  ifdef DL_GLOBAL
23507#    define LT_DLGLOBAL		DL_GLOBAL
23508#  else
23509#    define LT_DLGLOBAL		0
23510#  endif
23511#endif
23512
23513/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23514   find out it does not work in some platform. */
23515#ifndef LT_DLLAZY_OR_NOW
23516#  ifdef RTLD_LAZY
23517#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23518#  else
23519#    ifdef DL_LAZY
23520#      define LT_DLLAZY_OR_NOW		DL_LAZY
23521#    else
23522#      ifdef RTLD_NOW
23523#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23524#      else
23525#        ifdef DL_NOW
23526#          define LT_DLLAZY_OR_NOW	DL_NOW
23527#        else
23528#          define LT_DLLAZY_OR_NOW	0
23529#        endif
23530#      endif
23531#    endif
23532#  endif
23533#endif
23534
23535#ifdef __cplusplus
23536extern "C" void exit (int);
23537#endif
23538
23539void fnord() { int i=42;}
23540int main ()
23541{
23542  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23543  int status = $lt_dlunknown;
23544
23545  if (self)
23546    {
23547      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23548      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23549      /* dlclose (self); */
23550    }
23551
23552    exit (status);
23553}
23554EOF
23555  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556  (eval $ac_link) 2>&5
23557  ac_status=$?
23558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23560    (./conftest; exit; ) 2>/dev/null
23561    lt_status=$?
23562    case x$lt_status in
23563      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23564      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23565      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23566    esac
23567  else :
23568    # compilation failed
23569    lt_cv_dlopen_self=no
23570  fi
23571fi
23572rm -fr conftest*
23573
23574
23575fi
23576echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23577echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23578
23579    if test "x$lt_cv_dlopen_self" = xyes; then
23580      LDFLAGS="$LDFLAGS $link_static_flag"
23581      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23582echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23583if test "${lt_cv_dlopen_self_static+set}" = set; then
23584  echo $ECHO_N "(cached) $ECHO_C" >&6
23585else
23586  	  if test "$cross_compiling" = yes; then :
23587  lt_cv_dlopen_self_static=cross
23588else
23589  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23590  lt_status=$lt_dlunknown
23591  cat > conftest.$ac_ext <<EOF
23592#line 23592 "configure"
23593#include "confdefs.h"
23594
23595#if HAVE_DLFCN_H
23596#include <dlfcn.h>
23597#endif
23598
23599#include <stdio.h>
23600
23601#ifdef RTLD_GLOBAL
23602#  define LT_DLGLOBAL		RTLD_GLOBAL
23603#else
23604#  ifdef DL_GLOBAL
23605#    define LT_DLGLOBAL		DL_GLOBAL
23606#  else
23607#    define LT_DLGLOBAL		0
23608#  endif
23609#endif
23610
23611/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23612   find out it does not work in some platform. */
23613#ifndef LT_DLLAZY_OR_NOW
23614#  ifdef RTLD_LAZY
23615#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23616#  else
23617#    ifdef DL_LAZY
23618#      define LT_DLLAZY_OR_NOW		DL_LAZY
23619#    else
23620#      ifdef RTLD_NOW
23621#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23622#      else
23623#        ifdef DL_NOW
23624#          define LT_DLLAZY_OR_NOW	DL_NOW
23625#        else
23626#          define LT_DLLAZY_OR_NOW	0
23627#        endif
23628#      endif
23629#    endif
23630#  endif
23631#endif
23632
23633#ifdef __cplusplus
23634extern "C" void exit (int);
23635#endif
23636
23637void fnord() { int i=42;}
23638int main ()
23639{
23640  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23641  int status = $lt_dlunknown;
23642
23643  if (self)
23644    {
23645      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23646      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23647      /* dlclose (self); */
23648    }
23649
23650    exit (status);
23651}
23652EOF
23653  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23654  (eval $ac_link) 2>&5
23655  ac_status=$?
23656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23658    (./conftest; exit; ) 2>/dev/null
23659    lt_status=$?
23660    case x$lt_status in
23661      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23662      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23663      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23664    esac
23665  else :
23666    # compilation failed
23667    lt_cv_dlopen_self_static=no
23668  fi
23669fi
23670rm -fr conftest*
23671
23672
23673fi
23674echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23675echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23676    fi
23677
23678    CPPFLAGS="$save_CPPFLAGS"
23679    LDFLAGS="$save_LDFLAGS"
23680    LIBS="$save_LIBS"
23681    ;;
23682  esac
23683
23684  case $lt_cv_dlopen_self in
23685  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23686  *) enable_dlopen_self=unknown ;;
23687  esac
23688
23689  case $lt_cv_dlopen_self_static in
23690  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23691  *) enable_dlopen_self_static=unknown ;;
23692  esac
23693fi
23694
23695
23696# The else clause should only fire when bootstrapping the
23697# libtool distribution, otherwise you forgot to ship ltmain.sh
23698# with your package, and you will get complaints that there are
23699# no rules to generate ltmain.sh.
23700if test -f "$ltmain"; then
23701  # See if we are running on zsh, and set the options which allow our commands through
23702  # without removal of \ escapes.
23703  if test -n "${ZSH_VERSION+set}" ; then
23704    setopt NO_GLOB_SUBST
23705  fi
23706  # Now quote all the things that may contain metacharacters while being
23707  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23708  # variables and quote the copies for generation of the libtool script.
23709  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23710    SED SHELL STRIP \
23711    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23712    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23713    deplibs_check_method reload_flag reload_cmds need_locks \
23714    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23715    lt_cv_sys_global_symbol_to_c_name_address \
23716    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23717    old_postinstall_cmds old_postuninstall_cmds \
23718    compiler_GCJ \
23719    CC_GCJ \
23720    LD_GCJ \
23721    lt_prog_compiler_wl_GCJ \
23722    lt_prog_compiler_pic_GCJ \
23723    lt_prog_compiler_static_GCJ \
23724    lt_prog_compiler_no_builtin_flag_GCJ \
23725    export_dynamic_flag_spec_GCJ \
23726    thread_safe_flag_spec_GCJ \
23727    whole_archive_flag_spec_GCJ \
23728    enable_shared_with_static_runtimes_GCJ \
23729    old_archive_cmds_GCJ \
23730    old_archive_from_new_cmds_GCJ \
23731    predep_objects_GCJ \
23732    postdep_objects_GCJ \
23733    predeps_GCJ \
23734    postdeps_GCJ \
23735    compiler_lib_search_path_GCJ \
23736    archive_cmds_GCJ \
23737    archive_expsym_cmds_GCJ \
23738    postinstall_cmds_GCJ \
23739    postuninstall_cmds_GCJ \
23740    old_archive_from_expsyms_cmds_GCJ \
23741    allow_undefined_flag_GCJ \
23742    no_undefined_flag_GCJ \
23743    export_symbols_cmds_GCJ \
23744    hardcode_libdir_flag_spec_GCJ \
23745    hardcode_libdir_flag_spec_ld_GCJ \
23746    hardcode_libdir_separator_GCJ \
23747    hardcode_automatic_GCJ \
23748    module_cmds_GCJ \
23749    module_expsym_cmds_GCJ \
23750    lt_cv_prog_compiler_c_o_GCJ \
23751    exclude_expsyms_GCJ \
23752    include_expsyms_GCJ; do
23753
23754    case $var in
23755    old_archive_cmds_GCJ | \
23756    old_archive_from_new_cmds_GCJ | \
23757    archive_cmds_GCJ | \
23758    archive_expsym_cmds_GCJ | \
23759    module_cmds_GCJ | \
23760    module_expsym_cmds_GCJ | \
23761    old_archive_from_expsyms_cmds_GCJ | \
23762    export_symbols_cmds_GCJ | \
23763    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23764    postinstall_cmds | postuninstall_cmds | \
23765    old_postinstall_cmds | old_postuninstall_cmds | \
23766    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23767      # Double-quote double-evaled strings.
23768      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23769      ;;
23770    *)
23771      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23772      ;;
23773    esac
23774  done
23775
23776  case $lt_echo in
23777  *'\$0 --fallback-echo"')
23778    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23779    ;;
23780  esac
23781
23782cfgfile="$ofile"
23783
23784  cat <<__EOF__ >> "$cfgfile"
23785# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23786
23787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23788
23789# Shell to use when invoking shell scripts.
23790SHELL=$lt_SHELL
23791
23792# Whether or not to build shared libraries.
23793build_libtool_libs=$enable_shared
23794
23795# Whether or not to build static libraries.
23796build_old_libs=$enable_static
23797
23798# Whether or not to add -lc for building shared libraries.
23799build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23800
23801# Whether or not to disallow shared libs when runtime libs are static
23802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23803
23804# Whether or not to optimize for fast installation.
23805fast_install=$enable_fast_install
23806
23807# The host system.
23808host_alias=$host_alias
23809host=$host
23810
23811# An echo program that does not interpret backslashes.
23812echo=$lt_echo
23813
23814# The archiver.
23815AR=$lt_AR
23816AR_FLAGS=$lt_AR_FLAGS
23817
23818# A C compiler.
23819LTCC=$lt_LTCC
23820
23821# A language-specific compiler.
23822CC=$lt_compiler_GCJ
23823
23824# Is the compiler the GNU C compiler?
23825with_gcc=$GCC_GCJ
23826
23827# An ERE matcher.
23828EGREP=$lt_EGREP
23829
23830# The linker used to build libraries.
23831LD=$lt_LD_GCJ
23832
23833# Whether we need hard or soft links.
23834LN_S=$lt_LN_S
23835
23836# A BSD-compatible nm program.
23837NM=$lt_NM
23838
23839# A symbol stripping program
23840STRIP=$lt_STRIP
23841
23842# Used to examine libraries when file_magic_cmd begins "file"
23843MAGIC_CMD=$MAGIC_CMD
23844
23845# Used on cygwin: DLL creation program.
23846DLLTOOL="$DLLTOOL"
23847
23848# Used on cygwin: object dumper.
23849OBJDUMP="$OBJDUMP"
23850
23851# Used on cygwin: assembler.
23852AS="$AS"
23853
23854# The name of the directory that contains temporary libtool files.
23855objdir=$objdir
23856
23857# How to create reloadable object files.
23858reload_flag=$lt_reload_flag
23859reload_cmds=$lt_reload_cmds
23860
23861# How to pass a linker flag through the compiler.
23862wl=$lt_lt_prog_compiler_wl_GCJ
23863
23864# Object file suffix (normally "o").
23865objext="$ac_objext"
23866
23867# Old archive suffix (normally "a").
23868libext="$libext"
23869
23870# Shared library suffix (normally ".so").
23871shrext_cmds='$shrext_cmds'
23872
23873# Executable file suffix (normally "").
23874exeext="$exeext"
23875
23876# Additional compiler flags for building library objects.
23877pic_flag=$lt_lt_prog_compiler_pic_GCJ
23878pic_mode=$pic_mode
23879
23880# What is the maximum length of a command?
23881max_cmd_len=$lt_cv_sys_max_cmd_len
23882
23883# Does compiler simultaneously support -c and -o options?
23884compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23885
23886# Must we lock files when doing compilation ?
23887need_locks=$lt_need_locks
23888
23889# Do we need the lib prefix for modules?
23890need_lib_prefix=$need_lib_prefix
23891
23892# Do we need a version for libraries?
23893need_version=$need_version
23894
23895# Whether dlopen is supported.
23896dlopen_support=$enable_dlopen
23897
23898# Whether dlopen of programs is supported.
23899dlopen_self=$enable_dlopen_self
23900
23901# Whether dlopen of statically linked programs is supported.
23902dlopen_self_static=$enable_dlopen_self_static
23903
23904# Compiler flag to prevent dynamic linking.
23905link_static_flag=$lt_lt_prog_compiler_static_GCJ
23906
23907# Compiler flag to turn off builtin functions.
23908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23909
23910# Compiler flag to allow reflexive dlopens.
23911export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23912
23913# Compiler flag to generate shared objects directly from archives.
23914whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23915
23916# Compiler flag to generate thread-safe objects.
23917thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23918
23919# Library versioning type.
23920version_type=$version_type
23921
23922# Format of library name prefix.
23923libname_spec=$lt_libname_spec
23924
23925# List of archive names.  First name is the real one, the rest are links.
23926# The last name is the one that the linker finds with -lNAME.
23927library_names_spec=$lt_library_names_spec
23928
23929# The coded name of the library, if different from the real name.
23930soname_spec=$lt_soname_spec
23931
23932# Commands used to build and install an old-style archive.
23933RANLIB=$lt_RANLIB
23934old_archive_cmds=$lt_old_archive_cmds_GCJ
23935old_postinstall_cmds=$lt_old_postinstall_cmds
23936old_postuninstall_cmds=$lt_old_postuninstall_cmds
23937
23938# Create an old-style archive from a shared archive.
23939old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23940
23941# Create a temporary old-style archive to link instead of a shared archive.
23942old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23943
23944# Commands used to build and install a shared archive.
23945archive_cmds=$lt_archive_cmds_GCJ
23946archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23947postinstall_cmds=$lt_postinstall_cmds
23948postuninstall_cmds=$lt_postuninstall_cmds
23949
23950# Commands used to build a loadable module (assumed same as above if empty)
23951module_cmds=$lt_module_cmds_GCJ
23952module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23953
23954# Commands to strip libraries.
23955old_striplib=$lt_old_striplib
23956striplib=$lt_striplib
23957
23958# Dependencies to place before the objects being linked to create a
23959# shared library.
23960predep_objects=$lt_predep_objects_GCJ
23961
23962# Dependencies to place after the objects being linked to create a
23963# shared library.
23964postdep_objects=$lt_postdep_objects_GCJ
23965
23966# Dependencies to place before the objects being linked to create a
23967# shared library.
23968predeps=$lt_predeps_GCJ
23969
23970# Dependencies to place after the objects being linked to create a
23971# shared library.
23972postdeps=$lt_postdeps_GCJ
23973
23974# The library search path used internally by the compiler when linking
23975# a shared library.
23976compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23977
23978# Method to check whether dependent libraries are shared objects.
23979deplibs_check_method=$lt_deplibs_check_method
23980
23981# Command to use when deplibs_check_method == file_magic.
23982file_magic_cmd=$lt_file_magic_cmd
23983
23984# Flag that allows shared libraries with undefined symbols to be built.
23985allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23986
23987# Flag that forces no undefined symbols.
23988no_undefined_flag=$lt_no_undefined_flag_GCJ
23989
23990# Commands used to finish a libtool library installation in a directory.
23991finish_cmds=$lt_finish_cmds
23992
23993# Same as above, but a single script fragment to be evaled but not shown.
23994finish_eval=$lt_finish_eval
23995
23996# Take the output of nm and produce a listing of raw symbols and C names.
23997global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23998
23999# Transform the output of nm in a proper C declaration
24000global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24001
24002# Transform the output of nm in a C name address pair
24003global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24004
24005# This is the shared library runtime path variable.
24006runpath_var=$runpath_var
24007
24008# This is the shared library path variable.
24009shlibpath_var=$shlibpath_var
24010
24011# Is shlibpath searched before the hard-coded library search path?
24012shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24013
24014# How to hardcode a shared library path into an executable.
24015hardcode_action=$hardcode_action_GCJ
24016
24017# Whether we should hardcode library paths into libraries.
24018hardcode_into_libs=$hardcode_into_libs
24019
24020# Flag to hardcode \$libdir into a binary during linking.
24021# This must work even if \$libdir does not exist.
24022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24023
24024# If ld is used when linking, flag to hardcode \$libdir into
24025# a binary during linking. This must work even if \$libdir does
24026# not exist.
24027hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24028
24029# Whether we need a single -rpath flag with a separated argument.
24030hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24031
24032# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24033# resulting binary.
24034hardcode_direct=$hardcode_direct_GCJ
24035
24036# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24037# resulting binary.
24038hardcode_minus_L=$hardcode_minus_L_GCJ
24039
24040# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24041# the resulting binary.
24042hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24043
24044# Set to yes if building a shared library automatically hardcodes DIR into the library
24045# and all subsequent libraries and executables linked against it.
24046hardcode_automatic=$hardcode_automatic_GCJ
24047
24048# Variables whose values should be saved in libtool wrapper scripts and
24049# restored at relink time.
24050variables_saved_for_relink="$variables_saved_for_relink"
24051
24052# Whether libtool must link a program against all its dependency libraries.
24053link_all_deplibs=$link_all_deplibs_GCJ
24054
24055# Compile-time system search path for libraries
24056sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24057
24058# Run-time system search path for libraries
24059sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24060
24061# Fix the shell variable \$srcfile for the compiler.
24062fix_srcfile_path="$fix_srcfile_path_GCJ"
24063
24064# Set to yes if exported symbols are required.
24065always_export_symbols=$always_export_symbols_GCJ
24066
24067# The commands to list exported symbols.
24068export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24069
24070# The commands to extract the exported symbol list from a shared archive.
24071extract_expsyms_cmds=$lt_extract_expsyms_cmds
24072
24073# Symbols that should not be listed in the preloaded symbols.
24074exclude_expsyms=$lt_exclude_expsyms_GCJ
24075
24076# Symbols that must always be exported.
24077include_expsyms=$lt_include_expsyms_GCJ
24078
24079# ### END LIBTOOL TAG CONFIG: $tagname
24080
24081__EOF__
24082
24083
24084else
24085  # If there is no Makefile yet, we rely on a make rule to execute
24086  # `config.status --recheck' to rerun these tests and create the
24087  # libtool script then.
24088  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24089  if test -f "$ltmain_in"; then
24090    test -f Makefile && make "$ltmain"
24091  fi
24092fi
24093
24094
24095ac_ext=c
24096ac_cpp='$CPP $CPPFLAGS'
24097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24099ac_compiler_gnu=$ac_cv_c_compiler_gnu
24100
24101CC="$lt_save_CC"
24102
24103	else
24104	  tagname=""
24105	fi
24106	;;
24107
24108      RC)
24109	ac_ext=c
24110ac_cpp='$CPP $CPPFLAGS'
24111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24113ac_compiler_gnu=$ac_cv_c_compiler_gnu
24114
24115
24116# Source file extension for RC test sources.
24117ac_ext=rc
24118
24119# Object file extension for compiled RC test sources.
24120objext=o
24121objext_RC=$objext
24122
24123# Code to be used in simple compile tests
24124lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24125
24126# Code to be used in simple link tests
24127lt_simple_link_test_code="$lt_simple_compile_test_code"
24128
24129# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24130
24131# If no C compiler was specified, use CC.
24132LTCC=${LTCC-"$CC"}
24133
24134# Allow CC to be a program name with arguments.
24135compiler=$CC
24136
24137
24138# Allow CC to be a program name with arguments.
24139lt_save_CC="$CC"
24140CC=${RC-"windres"}
24141compiler=$CC
24142compiler_RC=$CC
24143lt_cv_prog_compiler_c_o_RC=yes
24144
24145# The else clause should only fire when bootstrapping the
24146# libtool distribution, otherwise you forgot to ship ltmain.sh
24147# with your package, and you will get complaints that there are
24148# no rules to generate ltmain.sh.
24149if test -f "$ltmain"; then
24150  # See if we are running on zsh, and set the options which allow our commands through
24151  # without removal of \ escapes.
24152  if test -n "${ZSH_VERSION+set}" ; then
24153    setopt NO_GLOB_SUBST
24154  fi
24155  # Now quote all the things that may contain metacharacters while being
24156  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24157  # variables and quote the copies for generation of the libtool script.
24158  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24159    SED SHELL STRIP \
24160    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24161    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24162    deplibs_check_method reload_flag reload_cmds need_locks \
24163    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24164    lt_cv_sys_global_symbol_to_c_name_address \
24165    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24166    old_postinstall_cmds old_postuninstall_cmds \
24167    compiler_RC \
24168    CC_RC \
24169    LD_RC \
24170    lt_prog_compiler_wl_RC \
24171    lt_prog_compiler_pic_RC \
24172    lt_prog_compiler_static_RC \
24173    lt_prog_compiler_no_builtin_flag_RC \
24174    export_dynamic_flag_spec_RC \
24175    thread_safe_flag_spec_RC \
24176    whole_archive_flag_spec_RC \
24177    enable_shared_with_static_runtimes_RC \
24178    old_archive_cmds_RC \
24179    old_archive_from_new_cmds_RC \
24180    predep_objects_RC \
24181    postdep_objects_RC \
24182    predeps_RC \
24183    postdeps_RC \
24184    compiler_lib_search_path_RC \
24185    archive_cmds_RC \
24186    archive_expsym_cmds_RC \
24187    postinstall_cmds_RC \
24188    postuninstall_cmds_RC \
24189    old_archive_from_expsyms_cmds_RC \
24190    allow_undefined_flag_RC \
24191    no_undefined_flag_RC \
24192    export_symbols_cmds_RC \
24193    hardcode_libdir_flag_spec_RC \
24194    hardcode_libdir_flag_spec_ld_RC \
24195    hardcode_libdir_separator_RC \
24196    hardcode_automatic_RC \
24197    module_cmds_RC \
24198    module_expsym_cmds_RC \
24199    lt_cv_prog_compiler_c_o_RC \
24200    exclude_expsyms_RC \
24201    include_expsyms_RC; do
24202
24203    case $var in
24204    old_archive_cmds_RC | \
24205    old_archive_from_new_cmds_RC | \
24206    archive_cmds_RC | \
24207    archive_expsym_cmds_RC | \
24208    module_cmds_RC | \
24209    module_expsym_cmds_RC | \
24210    old_archive_from_expsyms_cmds_RC | \
24211    export_symbols_cmds_RC | \
24212    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24213    postinstall_cmds | postuninstall_cmds | \
24214    old_postinstall_cmds | old_postuninstall_cmds | \
24215    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24216      # Double-quote double-evaled strings.
24217      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24218      ;;
24219    *)
24220      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24221      ;;
24222    esac
24223  done
24224
24225  case $lt_echo in
24226  *'\$0 --fallback-echo"')
24227    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24228    ;;
24229  esac
24230
24231cfgfile="$ofile"
24232
24233  cat <<__EOF__ >> "$cfgfile"
24234# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24235
24236# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24237
24238# Shell to use when invoking shell scripts.
24239SHELL=$lt_SHELL
24240
24241# Whether or not to build shared libraries.
24242build_libtool_libs=$enable_shared
24243
24244# Whether or not to build static libraries.
24245build_old_libs=$enable_static
24246
24247# Whether or not to add -lc for building shared libraries.
24248build_libtool_need_lc=$archive_cmds_need_lc_RC
24249
24250# Whether or not to disallow shared libs when runtime libs are static
24251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24252
24253# Whether or not to optimize for fast installation.
24254fast_install=$enable_fast_install
24255
24256# The host system.
24257host_alias=$host_alias
24258host=$host
24259
24260# An echo program that does not interpret backslashes.
24261echo=$lt_echo
24262
24263# The archiver.
24264AR=$lt_AR
24265AR_FLAGS=$lt_AR_FLAGS
24266
24267# A C compiler.
24268LTCC=$lt_LTCC
24269
24270# A language-specific compiler.
24271CC=$lt_compiler_RC
24272
24273# Is the compiler the GNU C compiler?
24274with_gcc=$GCC_RC
24275
24276# An ERE matcher.
24277EGREP=$lt_EGREP
24278
24279# The linker used to build libraries.
24280LD=$lt_LD_RC
24281
24282# Whether we need hard or soft links.
24283LN_S=$lt_LN_S
24284
24285# A BSD-compatible nm program.
24286NM=$lt_NM
24287
24288# A symbol stripping program
24289STRIP=$lt_STRIP
24290
24291# Used to examine libraries when file_magic_cmd begins "file"
24292MAGIC_CMD=$MAGIC_CMD
24293
24294# Used on cygwin: DLL creation program.
24295DLLTOOL="$DLLTOOL"
24296
24297# Used on cygwin: object dumper.
24298OBJDUMP="$OBJDUMP"
24299
24300# Used on cygwin: assembler.
24301AS="$AS"
24302
24303# The name of the directory that contains temporary libtool files.
24304objdir=$objdir
24305
24306# How to create reloadable object files.
24307reload_flag=$lt_reload_flag
24308reload_cmds=$lt_reload_cmds
24309
24310# How to pass a linker flag through the compiler.
24311wl=$lt_lt_prog_compiler_wl_RC
24312
24313# Object file suffix (normally "o").
24314objext="$ac_objext"
24315
24316# Old archive suffix (normally "a").
24317libext="$libext"
24318
24319# Shared library suffix (normally ".so").
24320shrext_cmds='$shrext_cmds'
24321
24322# Executable file suffix (normally "").
24323exeext="$exeext"
24324
24325# Additional compiler flags for building library objects.
24326pic_flag=$lt_lt_prog_compiler_pic_RC
24327pic_mode=$pic_mode
24328
24329# What is the maximum length of a command?
24330max_cmd_len=$lt_cv_sys_max_cmd_len
24331
24332# Does compiler simultaneously support -c and -o options?
24333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24334
24335# Must we lock files when doing compilation ?
24336need_locks=$lt_need_locks
24337
24338# Do we need the lib prefix for modules?
24339need_lib_prefix=$need_lib_prefix
24340
24341# Do we need a version for libraries?
24342need_version=$need_version
24343
24344# Whether dlopen is supported.
24345dlopen_support=$enable_dlopen
24346
24347# Whether dlopen of programs is supported.
24348dlopen_self=$enable_dlopen_self
24349
24350# Whether dlopen of statically linked programs is supported.
24351dlopen_self_static=$enable_dlopen_self_static
24352
24353# Compiler flag to prevent dynamic linking.
24354link_static_flag=$lt_lt_prog_compiler_static_RC
24355
24356# Compiler flag to turn off builtin functions.
24357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24358
24359# Compiler flag to allow reflexive dlopens.
24360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24361
24362# Compiler flag to generate shared objects directly from archives.
24363whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24364
24365# Compiler flag to generate thread-safe objects.
24366thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24367
24368# Library versioning type.
24369version_type=$version_type
24370
24371# Format of library name prefix.
24372libname_spec=$lt_libname_spec
24373
24374# List of archive names.  First name is the real one, the rest are links.
24375# The last name is the one that the linker finds with -lNAME.
24376library_names_spec=$lt_library_names_spec
24377
24378# The coded name of the library, if different from the real name.
24379soname_spec=$lt_soname_spec
24380
24381# Commands used to build and install an old-style archive.
24382RANLIB=$lt_RANLIB
24383old_archive_cmds=$lt_old_archive_cmds_RC
24384old_postinstall_cmds=$lt_old_postinstall_cmds
24385old_postuninstall_cmds=$lt_old_postuninstall_cmds
24386
24387# Create an old-style archive from a shared archive.
24388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24389
24390# Create a temporary old-style archive to link instead of a shared archive.
24391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24392
24393# Commands used to build and install a shared archive.
24394archive_cmds=$lt_archive_cmds_RC
24395archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24396postinstall_cmds=$lt_postinstall_cmds
24397postuninstall_cmds=$lt_postuninstall_cmds
24398
24399# Commands used to build a loadable module (assumed same as above if empty)
24400module_cmds=$lt_module_cmds_RC
24401module_expsym_cmds=$lt_module_expsym_cmds_RC
24402
24403# Commands to strip libraries.
24404old_striplib=$lt_old_striplib
24405striplib=$lt_striplib
24406
24407# Dependencies to place before the objects being linked to create a
24408# shared library.
24409predep_objects=$lt_predep_objects_RC
24410
24411# Dependencies to place after the objects being linked to create a
24412# shared library.
24413postdep_objects=$lt_postdep_objects_RC
24414
24415# Dependencies to place before the objects being linked to create a
24416# shared library.
24417predeps=$lt_predeps_RC
24418
24419# Dependencies to place after the objects being linked to create a
24420# shared library.
24421postdeps=$lt_postdeps_RC
24422
24423# The library search path used internally by the compiler when linking
24424# a shared library.
24425compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24426
24427# Method to check whether dependent libraries are shared objects.
24428deplibs_check_method=$lt_deplibs_check_method
24429
24430# Command to use when deplibs_check_method == file_magic.
24431file_magic_cmd=$lt_file_magic_cmd
24432
24433# Flag that allows shared libraries with undefined symbols to be built.
24434allow_undefined_flag=$lt_allow_undefined_flag_RC
24435
24436# Flag that forces no undefined symbols.
24437no_undefined_flag=$lt_no_undefined_flag_RC
24438
24439# Commands used to finish a libtool library installation in a directory.
24440finish_cmds=$lt_finish_cmds
24441
24442# Same as above, but a single script fragment to be evaled but not shown.
24443finish_eval=$lt_finish_eval
24444
24445# Take the output of nm and produce a listing of raw symbols and C names.
24446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24447
24448# Transform the output of nm in a proper C declaration
24449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24450
24451# Transform the output of nm in a C name address pair
24452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24453
24454# This is the shared library runtime path variable.
24455runpath_var=$runpath_var
24456
24457# This is the shared library path variable.
24458shlibpath_var=$shlibpath_var
24459
24460# Is shlibpath searched before the hard-coded library search path?
24461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24462
24463# How to hardcode a shared library path into an executable.
24464hardcode_action=$hardcode_action_RC
24465
24466# Whether we should hardcode library paths into libraries.
24467hardcode_into_libs=$hardcode_into_libs
24468
24469# Flag to hardcode \$libdir into a binary during linking.
24470# This must work even if \$libdir does not exist.
24471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24472
24473# If ld is used when linking, flag to hardcode \$libdir into
24474# a binary during linking. This must work even if \$libdir does
24475# not exist.
24476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24477
24478# Whether we need a single -rpath flag with a separated argument.
24479hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24480
24481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24482# resulting binary.
24483hardcode_direct=$hardcode_direct_RC
24484
24485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24486# resulting binary.
24487hardcode_minus_L=$hardcode_minus_L_RC
24488
24489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24490# the resulting binary.
24491hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24492
24493# Set to yes if building a shared library automatically hardcodes DIR into the library
24494# and all subsequent libraries and executables linked against it.
24495hardcode_automatic=$hardcode_automatic_RC
24496
24497# Variables whose values should be saved in libtool wrapper scripts and
24498# restored at relink time.
24499variables_saved_for_relink="$variables_saved_for_relink"
24500
24501# Whether libtool must link a program against all its dependency libraries.
24502link_all_deplibs=$link_all_deplibs_RC
24503
24504# Compile-time system search path for libraries
24505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24506
24507# Run-time system search path for libraries
24508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24509
24510# Fix the shell variable \$srcfile for the compiler.
24511fix_srcfile_path="$fix_srcfile_path_RC"
24512
24513# Set to yes if exported symbols are required.
24514always_export_symbols=$always_export_symbols_RC
24515
24516# The commands to list exported symbols.
24517export_symbols_cmds=$lt_export_symbols_cmds_RC
24518
24519# The commands to extract the exported symbol list from a shared archive.
24520extract_expsyms_cmds=$lt_extract_expsyms_cmds
24521
24522# Symbols that should not be listed in the preloaded symbols.
24523exclude_expsyms=$lt_exclude_expsyms_RC
24524
24525# Symbols that must always be exported.
24526include_expsyms=$lt_include_expsyms_RC
24527
24528# ### END LIBTOOL TAG CONFIG: $tagname
24529
24530__EOF__
24531
24532
24533else
24534  # If there is no Makefile yet, we rely on a make rule to execute
24535  # `config.status --recheck' to rerun these tests and create the
24536  # libtool script then.
24537  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24538  if test -f "$ltmain_in"; then
24539    test -f Makefile && make "$ltmain"
24540  fi
24541fi
24542
24543
24544ac_ext=c
24545ac_cpp='$CPP $CPPFLAGS'
24546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24548ac_compiler_gnu=$ac_cv_c_compiler_gnu
24549
24550CC="$lt_save_CC"
24551
24552	;;
24553
24554      *)
24555	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24556echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24557   { (exit 1); exit 1; }; }
24558	;;
24559      esac
24560
24561      # Append the new tag name to the list of available tags.
24562      if test -n "$tagname" ; then
24563      available_tags="$available_tags $tagname"
24564    fi
24565    fi
24566  done
24567  IFS="$lt_save_ifs"
24568
24569  # Now substitute the updated list of available tags.
24570  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24571    mv "${ofile}T" "$ofile"
24572    chmod +x "$ofile"
24573  else
24574    rm -f "${ofile}T"
24575    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24576echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24577   { (exit 1); exit 1; }; }
24578  fi
24579fi
24580
24581
24582
24583# This can be used to rebuild libtool when needed
24584LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24585
24586# Always use our own libtool.
24587LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24588
24589# Prevent multiple expansion
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611if test "$lt_cv_dlopen_self" = "yes" ; then
24612
24613cat >>confdefs.h <<\_ACEOF
24614#define CAN_DLOPEN_SELF 1
24615_ACEOF
24616
24617fi
24618
24619etags_version=`$ETAGS --version 2>&1`
24620case "$etags_version" in
24621	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24622	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24623	*) ETAGSFLAGS="" ;;
24624esac
24625ETAGSFLAGS=$ETAGSFLAGS
24626
24627
24628if test "$WITH_LLVMGCCDIR" = "default" ; then
24629  # Extract the first word of "llvm-gcc", so it can be a program name with args.
24630set dummy llvm-gcc; ac_word=$2
24631echo "$as_me:$LINENO: checking for $ac_word" >&5
24632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24633if test "${ac_cv_path_LLVMGCC+set}" = set; then
24634  echo $ECHO_N "(cached) $ECHO_C" >&6
24635else
24636  case $LLVMGCC in
24637  [\\/]* | ?:[\\/]*)
24638  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24639  ;;
24640  *)
24641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24642for as_dir in $PATH
24643do
24644  IFS=$as_save_IFS
24645  test -z "$as_dir" && as_dir=.
24646  for ac_exec_ext in '' $ac_executable_extensions; do
24647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24648    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24650    break 2
24651  fi
24652done
24653done
24654
24655  test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24656  ;;
24657esac
24658fi
24659LLVMGCC=$ac_cv_path_LLVMGCC
24660
24661if test -n "$LLVMGCC"; then
24662  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24663echo "${ECHO_T}$LLVMGCC" >&6
24664else
24665  echo "$as_me:$LINENO: result: no" >&5
24666echo "${ECHO_T}no" >&6
24667fi
24668
24669  # Extract the first word of "llvm-g++", so it can be a program name with args.
24670set dummy llvm-g++; ac_word=$2
24671echo "$as_me:$LINENO: checking for $ac_word" >&5
24672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24673if test "${ac_cv_path_LLVMGXX+set}" = set; then
24674  echo $ECHO_N "(cached) $ECHO_C" >&6
24675else
24676  case $LLVMGXX in
24677  [\\/]* | ?:[\\/]*)
24678  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24679  ;;
24680  *)
24681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24682for as_dir in $PATH
24683do
24684  IFS=$as_save_IFS
24685  test -z "$as_dir" && as_dir=.
24686  for ac_exec_ext in '' $ac_executable_extensions; do
24687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24688    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24690    break 2
24691  fi
24692done
24693done
24694
24695  test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24696  ;;
24697esac
24698fi
24699LLVMGXX=$ac_cv_path_LLVMGXX
24700
24701if test -n "$LLVMGXX"; then
24702  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24703echo "${ECHO_T}$LLVMGXX" >&6
24704else
24705  echo "$as_me:$LINENO: result: no" >&5
24706echo "${ECHO_T}no" >&6
24707fi
24708
24709else
24710  LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24711  LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24712  LLVMGCC=$LLVMGCC
24713
24714  LLVMGXX=$LLVMGXX
24715
24716fi
24717
24718echo "$as_me:$LINENO: checking tool compatibility" >&5
24719echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24720
24721ICC=no
24722IXX=no
24723case $CC in
24724  icc*|icpc*)
24725    ICC=yes
24726    IXX=yes
24727    ;;
24728   *)
24729    ;;
24730esac
24731
24732if test "$GCC" != "yes" && test "$ICC" != "yes"
24733then
24734  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24735echo "$as_me: error: gcc|icc required but not found" >&2;}
24736   { (exit 1); exit 1; }; }
24737fi
24738
24739if test "$GXX" != "yes" && test "$IXX" != "yes"
24740then
24741  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24742echo "$as_me: error: g++|icc required but not found" >&2;}
24743   { (exit 1); exit 1; }; }
24744fi
24745
24746if test "$GCC" = "yes"
24747then
24748  gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24749  if test "$gccmajor" -lt "3"
24750  then
24751    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24752echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24753   { (exit 1); exit 1; }; }
24754  fi
24755fi
24756
24757if test -z "$llvm_cv_gnu_make_command"
24758then
24759  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24760echo "$as_me: error: GNU Make required but not found" >&2;}
24761   { (exit 1); exit 1; }; }
24762fi
24763
24764echo "$as_me:$LINENO: result: ok" >&5
24765echo "${ECHO_T}ok" >&6
24766
24767
24768
24769echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24770echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24771if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24772  echo $ECHO_N "(cached) $ECHO_C" >&6
24773else
24774  ac_check_lib_save_LIBS=$LIBS
24775LIBS="-lelf  $LIBS"
24776cat >conftest.$ac_ext <<_ACEOF
24777/* confdefs.h.  */
24778_ACEOF
24779cat confdefs.h >>conftest.$ac_ext
24780cat >>conftest.$ac_ext <<_ACEOF
24781/* end confdefs.h.  */
24782
24783/* Override any gcc2 internal prototype to avoid an error.  */
24784#ifdef __cplusplus
24785extern "C"
24786#endif
24787/* We use char because int might match the return type of a gcc2
24788   builtin and then its argument prototype would still apply.  */
24789char elf_begin ();
24790int
24791main ()
24792{
24793elf_begin ();
24794  ;
24795  return 0;
24796}
24797_ACEOF
24798rm -f conftest.$ac_objext conftest$ac_exeext
24799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24800  (eval $ac_link) 2>conftest.er1
24801  ac_status=$?
24802  grep -v '^ *+' conftest.er1 >conftest.err
24803  rm -f conftest.er1
24804  cat conftest.err >&5
24805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806  (exit $ac_status); } &&
24807	 { ac_try='test -z "$ac_c_werror_flag"
24808			 || test ! -s conftest.err'
24809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810  (eval $ac_try) 2>&5
24811  ac_status=$?
24812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813  (exit $ac_status); }; } &&
24814	 { ac_try='test -s conftest$ac_exeext'
24815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816  (eval $ac_try) 2>&5
24817  ac_status=$?
24818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819  (exit $ac_status); }; }; then
24820  ac_cv_lib_elf_elf_begin=yes
24821else
24822  echo "$as_me: failed program was:" >&5
24823sed 's/^/| /' conftest.$ac_ext >&5
24824
24825ac_cv_lib_elf_elf_begin=no
24826fi
24827rm -f conftest.err conftest.$ac_objext \
24828      conftest$ac_exeext conftest.$ac_ext
24829LIBS=$ac_check_lib_save_LIBS
24830fi
24831echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24832echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24833if test $ac_cv_lib_elf_elf_begin = yes; then
24834  cat >>confdefs.h <<_ACEOF
24835#define HAVE_LIBELF 1
24836_ACEOF
24837
24838  LIBS="-lelf $LIBS"
24839
24840fi
24841
24842
24843echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24844echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24845if test "${ac_cv_search_lt_dlopen+set}" = set; then
24846  echo $ECHO_N "(cached) $ECHO_C" >&6
24847else
24848  ac_func_search_save_LIBS=$LIBS
24849ac_cv_search_lt_dlopen=no
24850cat >conftest.$ac_ext <<_ACEOF
24851/* confdefs.h.  */
24852_ACEOF
24853cat confdefs.h >>conftest.$ac_ext
24854cat >>conftest.$ac_ext <<_ACEOF
24855/* end confdefs.h.  */
24856
24857/* Override any gcc2 internal prototype to avoid an error.  */
24858#ifdef __cplusplus
24859extern "C"
24860#endif
24861/* We use char because int might match the return type of a gcc2
24862   builtin and then its argument prototype would still apply.  */
24863char lt_dlopen ();
24864int
24865main ()
24866{
24867lt_dlopen ();
24868  ;
24869  return 0;
24870}
24871_ACEOF
24872rm -f conftest.$ac_objext conftest$ac_exeext
24873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24874  (eval $ac_link) 2>conftest.er1
24875  ac_status=$?
24876  grep -v '^ *+' conftest.er1 >conftest.err
24877  rm -f conftest.er1
24878  cat conftest.err >&5
24879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880  (exit $ac_status); } &&
24881	 { ac_try='test -z "$ac_c_werror_flag"
24882			 || test ! -s conftest.err'
24883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884  (eval $ac_try) 2>&5
24885  ac_status=$?
24886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887  (exit $ac_status); }; } &&
24888	 { ac_try='test -s conftest$ac_exeext'
24889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890  (eval $ac_try) 2>&5
24891  ac_status=$?
24892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893  (exit $ac_status); }; }; then
24894  ac_cv_search_lt_dlopen="none required"
24895else
24896  echo "$as_me: failed program was:" >&5
24897sed 's/^/| /' conftest.$ac_ext >&5
24898
24899fi
24900rm -f conftest.err conftest.$ac_objext \
24901      conftest$ac_exeext conftest.$ac_ext
24902if test "$ac_cv_search_lt_dlopen" = no; then
24903  for ac_lib in ltdl; do
24904    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24905    cat >conftest.$ac_ext <<_ACEOF
24906/* confdefs.h.  */
24907_ACEOF
24908cat confdefs.h >>conftest.$ac_ext
24909cat >>conftest.$ac_ext <<_ACEOF
24910/* end confdefs.h.  */
24911
24912/* Override any gcc2 internal prototype to avoid an error.  */
24913#ifdef __cplusplus
24914extern "C"
24915#endif
24916/* We use char because int might match the return type of a gcc2
24917   builtin and then its argument prototype would still apply.  */
24918char lt_dlopen ();
24919int
24920main ()
24921{
24922lt_dlopen ();
24923  ;
24924  return 0;
24925}
24926_ACEOF
24927rm -f conftest.$ac_objext conftest$ac_exeext
24928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24929  (eval $ac_link) 2>conftest.er1
24930  ac_status=$?
24931  grep -v '^ *+' conftest.er1 >conftest.err
24932  rm -f conftest.er1
24933  cat conftest.err >&5
24934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935  (exit $ac_status); } &&
24936	 { ac_try='test -z "$ac_c_werror_flag"
24937			 || test ! -s conftest.err'
24938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939  (eval $ac_try) 2>&5
24940  ac_status=$?
24941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942  (exit $ac_status); }; } &&
24943	 { ac_try='test -s conftest$ac_exeext'
24944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945  (eval $ac_try) 2>&5
24946  ac_status=$?
24947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948  (exit $ac_status); }; }; then
24949  ac_cv_search_lt_dlopen="-l$ac_lib"
24950break
24951else
24952  echo "$as_me: failed program was:" >&5
24953sed 's/^/| /' conftest.$ac_ext >&5
24954
24955fi
24956rm -f conftest.err conftest.$ac_objext \
24957      conftest$ac_exeext conftest.$ac_ext
24958  done
24959fi
24960LIBS=$ac_func_search_save_LIBS
24961fi
24962echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24963echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24964if test "$ac_cv_search_lt_dlopen" != no; then
24965  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24966
24967cat >>confdefs.h <<\_ACEOF
24968#define HAVE_LT_DLOPEN 1
24969_ACEOF
24970
24971else
24972  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24973                           not be available" >&5
24974echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24975                           not be available" >&2;}
24976fi
24977
24978
24979echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24980echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24981if test "${ac_cv_search_dlopen+set}" = set; then
24982  echo $ECHO_N "(cached) $ECHO_C" >&6
24983else
24984  ac_func_search_save_LIBS=$LIBS
24985ac_cv_search_dlopen=no
24986cat >conftest.$ac_ext <<_ACEOF
24987/* confdefs.h.  */
24988_ACEOF
24989cat confdefs.h >>conftest.$ac_ext
24990cat >>conftest.$ac_ext <<_ACEOF
24991/* end confdefs.h.  */
24992
24993/* Override any gcc2 internal prototype to avoid an error.  */
24994#ifdef __cplusplus
24995extern "C"
24996#endif
24997/* We use char because int might match the return type of a gcc2
24998   builtin and then its argument prototype would still apply.  */
24999char dlopen ();
25000int
25001main ()
25002{
25003dlopen ();
25004  ;
25005  return 0;
25006}
25007_ACEOF
25008rm -f conftest.$ac_objext conftest$ac_exeext
25009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25010  (eval $ac_link) 2>conftest.er1
25011  ac_status=$?
25012  grep -v '^ *+' conftest.er1 >conftest.err
25013  rm -f conftest.er1
25014  cat conftest.err >&5
25015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016  (exit $ac_status); } &&
25017	 { ac_try='test -z "$ac_c_werror_flag"
25018			 || test ! -s conftest.err'
25019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020  (eval $ac_try) 2>&5
25021  ac_status=$?
25022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023  (exit $ac_status); }; } &&
25024	 { ac_try='test -s conftest$ac_exeext'
25025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026  (eval $ac_try) 2>&5
25027  ac_status=$?
25028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029  (exit $ac_status); }; }; then
25030  ac_cv_search_dlopen="none required"
25031else
25032  echo "$as_me: failed program was:" >&5
25033sed 's/^/| /' conftest.$ac_ext >&5
25034
25035fi
25036rm -f conftest.err conftest.$ac_objext \
25037      conftest$ac_exeext conftest.$ac_ext
25038if test "$ac_cv_search_dlopen" = no; then
25039  for ac_lib in dl; do
25040    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25041    cat >conftest.$ac_ext <<_ACEOF
25042/* confdefs.h.  */
25043_ACEOF
25044cat confdefs.h >>conftest.$ac_ext
25045cat >>conftest.$ac_ext <<_ACEOF
25046/* end confdefs.h.  */
25047
25048/* Override any gcc2 internal prototype to avoid an error.  */
25049#ifdef __cplusplus
25050extern "C"
25051#endif
25052/* We use char because int might match the return type of a gcc2
25053   builtin and then its argument prototype would still apply.  */
25054char dlopen ();
25055int
25056main ()
25057{
25058dlopen ();
25059  ;
25060  return 0;
25061}
25062_ACEOF
25063rm -f conftest.$ac_objext conftest$ac_exeext
25064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25065  (eval $ac_link) 2>conftest.er1
25066  ac_status=$?
25067  grep -v '^ *+' conftest.er1 >conftest.err
25068  rm -f conftest.er1
25069  cat conftest.err >&5
25070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071  (exit $ac_status); } &&
25072	 { ac_try='test -z "$ac_c_werror_flag"
25073			 || test ! -s conftest.err'
25074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075  (eval $ac_try) 2>&5
25076  ac_status=$?
25077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078  (exit $ac_status); }; } &&
25079	 { ac_try='test -s conftest$ac_exeext'
25080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25081  (eval $ac_try) 2>&5
25082  ac_status=$?
25083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084  (exit $ac_status); }; }; then
25085  ac_cv_search_dlopen="-l$ac_lib"
25086break
25087else
25088  echo "$as_me: failed program was:" >&5
25089sed 's/^/| /' conftest.$ac_ext >&5
25090
25091fi
25092rm -f conftest.err conftest.$ac_objext \
25093      conftest$ac_exeext conftest.$ac_ext
25094  done
25095fi
25096LIBS=$ac_func_search_save_LIBS
25097fi
25098echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25099echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25100if test "$ac_cv_search_dlopen" != no; then
25101  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25102
25103cat >>confdefs.h <<\_ACEOF
25104#define HAVE_DLOPEN 1
25105_ACEOF
25106
25107else
25108  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25109echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25110fi
25111
25112
25113echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25114echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25115if test "${ac_cv_search_mallinfo+set}" = set; then
25116  echo $ECHO_N "(cached) $ECHO_C" >&6
25117else
25118  ac_func_search_save_LIBS=$LIBS
25119ac_cv_search_mallinfo=no
25120cat >conftest.$ac_ext <<_ACEOF
25121/* confdefs.h.  */
25122_ACEOF
25123cat confdefs.h >>conftest.$ac_ext
25124cat >>conftest.$ac_ext <<_ACEOF
25125/* end confdefs.h.  */
25126
25127/* Override any gcc2 internal prototype to avoid an error.  */
25128#ifdef __cplusplus
25129extern "C"
25130#endif
25131/* We use char because int might match the return type of a gcc2
25132   builtin and then its argument prototype would still apply.  */
25133char mallinfo ();
25134int
25135main ()
25136{
25137mallinfo ();
25138  ;
25139  return 0;
25140}
25141_ACEOF
25142rm -f conftest.$ac_objext conftest$ac_exeext
25143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144  (eval $ac_link) 2>conftest.er1
25145  ac_status=$?
25146  grep -v '^ *+' conftest.er1 >conftest.err
25147  rm -f conftest.er1
25148  cat conftest.err >&5
25149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150  (exit $ac_status); } &&
25151	 { ac_try='test -z "$ac_c_werror_flag"
25152			 || test ! -s conftest.err'
25153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154  (eval $ac_try) 2>&5
25155  ac_status=$?
25156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157  (exit $ac_status); }; } &&
25158	 { ac_try='test -s conftest$ac_exeext'
25159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160  (eval $ac_try) 2>&5
25161  ac_status=$?
25162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163  (exit $ac_status); }; }; then
25164  ac_cv_search_mallinfo="none required"
25165else
25166  echo "$as_me: failed program was:" >&5
25167sed 's/^/| /' conftest.$ac_ext >&5
25168
25169fi
25170rm -f conftest.err conftest.$ac_objext \
25171      conftest$ac_exeext conftest.$ac_ext
25172if test "$ac_cv_search_mallinfo" = no; then
25173  for ac_lib in malloc; do
25174    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25175    cat >conftest.$ac_ext <<_ACEOF
25176/* confdefs.h.  */
25177_ACEOF
25178cat confdefs.h >>conftest.$ac_ext
25179cat >>conftest.$ac_ext <<_ACEOF
25180/* end confdefs.h.  */
25181
25182/* Override any gcc2 internal prototype to avoid an error.  */
25183#ifdef __cplusplus
25184extern "C"
25185#endif
25186/* We use char because int might match the return type of a gcc2
25187   builtin and then its argument prototype would still apply.  */
25188char mallinfo ();
25189int
25190main ()
25191{
25192mallinfo ();
25193  ;
25194  return 0;
25195}
25196_ACEOF
25197rm -f conftest.$ac_objext conftest$ac_exeext
25198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25199  (eval $ac_link) 2>conftest.er1
25200  ac_status=$?
25201  grep -v '^ *+' conftest.er1 >conftest.err
25202  rm -f conftest.er1
25203  cat conftest.err >&5
25204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205  (exit $ac_status); } &&
25206	 { ac_try='test -z "$ac_c_werror_flag"
25207			 || test ! -s conftest.err'
25208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209  (eval $ac_try) 2>&5
25210  ac_status=$?
25211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212  (exit $ac_status); }; } &&
25213	 { ac_try='test -s conftest$ac_exeext'
25214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215  (eval $ac_try) 2>&5
25216  ac_status=$?
25217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218  (exit $ac_status); }; }; then
25219  ac_cv_search_mallinfo="-l$ac_lib"
25220break
25221else
25222  echo "$as_me: failed program was:" >&5
25223sed 's/^/| /' conftest.$ac_ext >&5
25224
25225fi
25226rm -f conftest.err conftest.$ac_objext \
25227      conftest$ac_exeext conftest.$ac_ext
25228  done
25229fi
25230LIBS=$ac_func_search_save_LIBS
25231fi
25232echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25233echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25234if test "$ac_cv_search_mallinfo" != no; then
25235  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25236
25237cat >>confdefs.h <<\_ACEOF
25238#define HAVE_MALLINFO 1
25239_ACEOF
25240
25241fi
25242
25243
25244echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25245echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25246if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25247  echo $ECHO_N "(cached) $ECHO_C" >&6
25248else
25249  ac_func_search_save_LIBS=$LIBS
25250ac_cv_search_pthread_mutex_lock=no
25251cat >conftest.$ac_ext <<_ACEOF
25252/* confdefs.h.  */
25253_ACEOF
25254cat confdefs.h >>conftest.$ac_ext
25255cat >>conftest.$ac_ext <<_ACEOF
25256/* end confdefs.h.  */
25257
25258/* Override any gcc2 internal prototype to avoid an error.  */
25259#ifdef __cplusplus
25260extern "C"
25261#endif
25262/* We use char because int might match the return type of a gcc2
25263   builtin and then its argument prototype would still apply.  */
25264char pthread_mutex_lock ();
25265int
25266main ()
25267{
25268pthread_mutex_lock ();
25269  ;
25270  return 0;
25271}
25272_ACEOF
25273rm -f conftest.$ac_objext conftest$ac_exeext
25274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25275  (eval $ac_link) 2>conftest.er1
25276  ac_status=$?
25277  grep -v '^ *+' conftest.er1 >conftest.err
25278  rm -f conftest.er1
25279  cat conftest.err >&5
25280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281  (exit $ac_status); } &&
25282	 { ac_try='test -z "$ac_c_werror_flag"
25283			 || test ! -s conftest.err'
25284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285  (eval $ac_try) 2>&5
25286  ac_status=$?
25287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288  (exit $ac_status); }; } &&
25289	 { ac_try='test -s conftest$ac_exeext'
25290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291  (eval $ac_try) 2>&5
25292  ac_status=$?
25293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294  (exit $ac_status); }; }; then
25295  ac_cv_search_pthread_mutex_lock="none required"
25296else
25297  echo "$as_me: failed program was:" >&5
25298sed 's/^/| /' conftest.$ac_ext >&5
25299
25300fi
25301rm -f conftest.err conftest.$ac_objext \
25302      conftest$ac_exeext conftest.$ac_ext
25303if test "$ac_cv_search_pthread_mutex_lock" = no; then
25304  for ac_lib in pthread; do
25305    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25306    cat >conftest.$ac_ext <<_ACEOF
25307/* confdefs.h.  */
25308_ACEOF
25309cat confdefs.h >>conftest.$ac_ext
25310cat >>conftest.$ac_ext <<_ACEOF
25311/* end confdefs.h.  */
25312
25313/* Override any gcc2 internal prototype to avoid an error.  */
25314#ifdef __cplusplus
25315extern "C"
25316#endif
25317/* We use char because int might match the return type of a gcc2
25318   builtin and then its argument prototype would still apply.  */
25319char pthread_mutex_lock ();
25320int
25321main ()
25322{
25323pthread_mutex_lock ();
25324  ;
25325  return 0;
25326}
25327_ACEOF
25328rm -f conftest.$ac_objext conftest$ac_exeext
25329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25330  (eval $ac_link) 2>conftest.er1
25331  ac_status=$?
25332  grep -v '^ *+' conftest.er1 >conftest.err
25333  rm -f conftest.er1
25334  cat conftest.err >&5
25335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336  (exit $ac_status); } &&
25337	 { ac_try='test -z "$ac_c_werror_flag"
25338			 || test ! -s conftest.err'
25339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340  (eval $ac_try) 2>&5
25341  ac_status=$?
25342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343  (exit $ac_status); }; } &&
25344	 { ac_try='test -s conftest$ac_exeext'
25345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346  (eval $ac_try) 2>&5
25347  ac_status=$?
25348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349  (exit $ac_status); }; }; then
25350  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25351break
25352else
25353  echo "$as_me: failed program was:" >&5
25354sed 's/^/| /' conftest.$ac_ext >&5
25355
25356fi
25357rm -f conftest.err conftest.$ac_objext \
25358      conftest$ac_exeext conftest.$ac_ext
25359  done
25360fi
25361LIBS=$ac_func_search_save_LIBS
25362fi
25363echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25364echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25365if test "$ac_cv_search_pthread_mutex_lock" != no; then
25366  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25367
25368cat >>confdefs.h <<\_ACEOF
25369#define HAVE_PTHREAD_MUTEX_LOCK 1
25370_ACEOF
25371
25372fi
25373
25374
25375
25376
25377
25378
25379
25380
25381ac_header_dirent=no
25382for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25383  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25384echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25385echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25386if eval "test \"\${$as_ac_Header+set}\" = set"; then
25387  echo $ECHO_N "(cached) $ECHO_C" >&6
25388else
25389  cat >conftest.$ac_ext <<_ACEOF
25390/* confdefs.h.  */
25391_ACEOF
25392cat confdefs.h >>conftest.$ac_ext
25393cat >>conftest.$ac_ext <<_ACEOF
25394/* end confdefs.h.  */
25395#include <sys/types.h>
25396#include <$ac_hdr>
25397
25398int
25399main ()
25400{
25401if ((DIR *) 0)
25402return 0;
25403  ;
25404  return 0;
25405}
25406_ACEOF
25407rm -f conftest.$ac_objext
25408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25409  (eval $ac_compile) 2>conftest.er1
25410  ac_status=$?
25411  grep -v '^ *+' conftest.er1 >conftest.err
25412  rm -f conftest.er1
25413  cat conftest.err >&5
25414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415  (exit $ac_status); } &&
25416	 { ac_try='test -z "$ac_c_werror_flag"
25417			 || test ! -s conftest.err'
25418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419  (eval $ac_try) 2>&5
25420  ac_status=$?
25421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422  (exit $ac_status); }; } &&
25423	 { ac_try='test -s conftest.$ac_objext'
25424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25425  (eval $ac_try) 2>&5
25426  ac_status=$?
25427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428  (exit $ac_status); }; }; then
25429  eval "$as_ac_Header=yes"
25430else
25431  echo "$as_me: failed program was:" >&5
25432sed 's/^/| /' conftest.$ac_ext >&5
25433
25434eval "$as_ac_Header=no"
25435fi
25436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25437fi
25438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25440if test `eval echo '${'$as_ac_Header'}'` = yes; then
25441  cat >>confdefs.h <<_ACEOF
25442#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25443_ACEOF
25444
25445ac_header_dirent=$ac_hdr; break
25446fi
25447
25448done
25449# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25450if test $ac_header_dirent = dirent.h; then
25451  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25452echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25453if test "${ac_cv_search_opendir+set}" = set; then
25454  echo $ECHO_N "(cached) $ECHO_C" >&6
25455else
25456  ac_func_search_save_LIBS=$LIBS
25457ac_cv_search_opendir=no
25458cat >conftest.$ac_ext <<_ACEOF
25459/* confdefs.h.  */
25460_ACEOF
25461cat confdefs.h >>conftest.$ac_ext
25462cat >>conftest.$ac_ext <<_ACEOF
25463/* end confdefs.h.  */
25464
25465/* Override any gcc2 internal prototype to avoid an error.  */
25466#ifdef __cplusplus
25467extern "C"
25468#endif
25469/* We use char because int might match the return type of a gcc2
25470   builtin and then its argument prototype would still apply.  */
25471char opendir ();
25472int
25473main ()
25474{
25475opendir ();
25476  ;
25477  return 0;
25478}
25479_ACEOF
25480rm -f conftest.$ac_objext conftest$ac_exeext
25481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25482  (eval $ac_link) 2>conftest.er1
25483  ac_status=$?
25484  grep -v '^ *+' conftest.er1 >conftest.err
25485  rm -f conftest.er1
25486  cat conftest.err >&5
25487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488  (exit $ac_status); } &&
25489	 { ac_try='test -z "$ac_c_werror_flag"
25490			 || test ! -s conftest.err'
25491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492  (eval $ac_try) 2>&5
25493  ac_status=$?
25494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495  (exit $ac_status); }; } &&
25496	 { ac_try='test -s conftest$ac_exeext'
25497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498  (eval $ac_try) 2>&5
25499  ac_status=$?
25500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501  (exit $ac_status); }; }; then
25502  ac_cv_search_opendir="none required"
25503else
25504  echo "$as_me: failed program was:" >&5
25505sed 's/^/| /' conftest.$ac_ext >&5
25506
25507fi
25508rm -f conftest.err conftest.$ac_objext \
25509      conftest$ac_exeext conftest.$ac_ext
25510if test "$ac_cv_search_opendir" = no; then
25511  for ac_lib in dir; do
25512    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25513    cat >conftest.$ac_ext <<_ACEOF
25514/* confdefs.h.  */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h.  */
25519
25520/* Override any gcc2 internal prototype to avoid an error.  */
25521#ifdef __cplusplus
25522extern "C"
25523#endif
25524/* We use char because int might match the return type of a gcc2
25525   builtin and then its argument prototype would still apply.  */
25526char opendir ();
25527int
25528main ()
25529{
25530opendir ();
25531  ;
25532  return 0;
25533}
25534_ACEOF
25535rm -f conftest.$ac_objext conftest$ac_exeext
25536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25537  (eval $ac_link) 2>conftest.er1
25538  ac_status=$?
25539  grep -v '^ *+' conftest.er1 >conftest.err
25540  rm -f conftest.er1
25541  cat conftest.err >&5
25542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543  (exit $ac_status); } &&
25544	 { ac_try='test -z "$ac_c_werror_flag"
25545			 || test ! -s conftest.err'
25546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547  (eval $ac_try) 2>&5
25548  ac_status=$?
25549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550  (exit $ac_status); }; } &&
25551	 { ac_try='test -s conftest$ac_exeext'
25552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25553  (eval $ac_try) 2>&5
25554  ac_status=$?
25555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556  (exit $ac_status); }; }; then
25557  ac_cv_search_opendir="-l$ac_lib"
25558break
25559else
25560  echo "$as_me: failed program was:" >&5
25561sed 's/^/| /' conftest.$ac_ext >&5
25562
25563fi
25564rm -f conftest.err conftest.$ac_objext \
25565      conftest$ac_exeext conftest.$ac_ext
25566  done
25567fi
25568LIBS=$ac_func_search_save_LIBS
25569fi
25570echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25571echo "${ECHO_T}$ac_cv_search_opendir" >&6
25572if test "$ac_cv_search_opendir" != no; then
25573  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25574
25575fi
25576
25577else
25578  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25579echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25580if test "${ac_cv_search_opendir+set}" = set; then
25581  echo $ECHO_N "(cached) $ECHO_C" >&6
25582else
25583  ac_func_search_save_LIBS=$LIBS
25584ac_cv_search_opendir=no
25585cat >conftest.$ac_ext <<_ACEOF
25586/* confdefs.h.  */
25587_ACEOF
25588cat confdefs.h >>conftest.$ac_ext
25589cat >>conftest.$ac_ext <<_ACEOF
25590/* end confdefs.h.  */
25591
25592/* Override any gcc2 internal prototype to avoid an error.  */
25593#ifdef __cplusplus
25594extern "C"
25595#endif
25596/* We use char because int might match the return type of a gcc2
25597   builtin and then its argument prototype would still apply.  */
25598char opendir ();
25599int
25600main ()
25601{
25602opendir ();
25603  ;
25604  return 0;
25605}
25606_ACEOF
25607rm -f conftest.$ac_objext conftest$ac_exeext
25608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25609  (eval $ac_link) 2>conftest.er1
25610  ac_status=$?
25611  grep -v '^ *+' conftest.er1 >conftest.err
25612  rm -f conftest.er1
25613  cat conftest.err >&5
25614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615  (exit $ac_status); } &&
25616	 { ac_try='test -z "$ac_c_werror_flag"
25617			 || test ! -s conftest.err'
25618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619  (eval $ac_try) 2>&5
25620  ac_status=$?
25621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622  (exit $ac_status); }; } &&
25623	 { ac_try='test -s conftest$ac_exeext'
25624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625  (eval $ac_try) 2>&5
25626  ac_status=$?
25627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628  (exit $ac_status); }; }; then
25629  ac_cv_search_opendir="none required"
25630else
25631  echo "$as_me: failed program was:" >&5
25632sed 's/^/| /' conftest.$ac_ext >&5
25633
25634fi
25635rm -f conftest.err conftest.$ac_objext \
25636      conftest$ac_exeext conftest.$ac_ext
25637if test "$ac_cv_search_opendir" = no; then
25638  for ac_lib in x; do
25639    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25640    cat >conftest.$ac_ext <<_ACEOF
25641/* confdefs.h.  */
25642_ACEOF
25643cat confdefs.h >>conftest.$ac_ext
25644cat >>conftest.$ac_ext <<_ACEOF
25645/* end confdefs.h.  */
25646
25647/* Override any gcc2 internal prototype to avoid an error.  */
25648#ifdef __cplusplus
25649extern "C"
25650#endif
25651/* We use char because int might match the return type of a gcc2
25652   builtin and then its argument prototype would still apply.  */
25653char opendir ();
25654int
25655main ()
25656{
25657opendir ();
25658  ;
25659  return 0;
25660}
25661_ACEOF
25662rm -f conftest.$ac_objext conftest$ac_exeext
25663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25664  (eval $ac_link) 2>conftest.er1
25665  ac_status=$?
25666  grep -v '^ *+' conftest.er1 >conftest.err
25667  rm -f conftest.er1
25668  cat conftest.err >&5
25669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670  (exit $ac_status); } &&
25671	 { ac_try='test -z "$ac_c_werror_flag"
25672			 || test ! -s conftest.err'
25673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674  (eval $ac_try) 2>&5
25675  ac_status=$?
25676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677  (exit $ac_status); }; } &&
25678	 { ac_try='test -s conftest$ac_exeext'
25679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680  (eval $ac_try) 2>&5
25681  ac_status=$?
25682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683  (exit $ac_status); }; }; then
25684  ac_cv_search_opendir="-l$ac_lib"
25685break
25686else
25687  echo "$as_me: failed program was:" >&5
25688sed 's/^/| /' conftest.$ac_ext >&5
25689
25690fi
25691rm -f conftest.err conftest.$ac_objext \
25692      conftest$ac_exeext conftest.$ac_ext
25693  done
25694fi
25695LIBS=$ac_func_search_save_LIBS
25696fi
25697echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25698echo "${ECHO_T}$ac_cv_search_opendir" >&6
25699if test "$ac_cv_search_opendir" != no; then
25700  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25701
25702fi
25703
25704fi
25705
25706echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25707echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25708if test "${ac_cv_header_mmap_anon+set}" = set; then
25709  echo $ECHO_N "(cached) $ECHO_C" >&6
25710else
25711   ac_ext=c
25712ac_cpp='$CPP $CPPFLAGS'
25713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25715ac_compiler_gnu=$ac_cv_c_compiler_gnu
25716
25717  cat >conftest.$ac_ext <<_ACEOF
25718/* confdefs.h.  */
25719_ACEOF
25720cat confdefs.h >>conftest.$ac_ext
25721cat >>conftest.$ac_ext <<_ACEOF
25722/* end confdefs.h.  */
25723#include <sys/mman.h>
25724#include <unistd.h>
25725#include <fcntl.h>
25726int
25727main ()
25728{
25729mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25730  ;
25731  return 0;
25732}
25733_ACEOF
25734rm -f conftest.$ac_objext
25735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25736  (eval $ac_compile) 2>conftest.er1
25737  ac_status=$?
25738  grep -v '^ *+' conftest.er1 >conftest.err
25739  rm -f conftest.er1
25740  cat conftest.err >&5
25741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742  (exit $ac_status); } &&
25743	 { ac_try='test -z "$ac_c_werror_flag"
25744			 || test ! -s conftest.err'
25745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746  (eval $ac_try) 2>&5
25747  ac_status=$?
25748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749  (exit $ac_status); }; } &&
25750	 { ac_try='test -s conftest.$ac_objext'
25751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752  (eval $ac_try) 2>&5
25753  ac_status=$?
25754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755  (exit $ac_status); }; }; then
25756  ac_cv_header_mmap_anon=yes
25757else
25758  echo "$as_me: failed program was:" >&5
25759sed 's/^/| /' conftest.$ac_ext >&5
25760
25761ac_cv_header_mmap_anon=no
25762fi
25763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25764  ac_ext=c
25765ac_cpp='$CPP $CPPFLAGS'
25766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25768ac_compiler_gnu=$ac_cv_c_compiler_gnu
25769
25770
25771fi
25772echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25773echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25774if test "$ac_cv_header_mmap_anon" = yes; then
25775
25776cat >>confdefs.h <<\_ACEOF
25777#define HAVE_MMAP_ANONYMOUS 1
25778_ACEOF
25779
25780fi
25781
25782echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25783echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25784if test "${ac_cv_header_stat_broken+set}" = set; then
25785  echo $ECHO_N "(cached) $ECHO_C" >&6
25786else
25787  cat >conftest.$ac_ext <<_ACEOF
25788/* confdefs.h.  */
25789_ACEOF
25790cat confdefs.h >>conftest.$ac_ext
25791cat >>conftest.$ac_ext <<_ACEOF
25792/* end confdefs.h.  */
25793#include <sys/types.h>
25794#include <sys/stat.h>
25795
25796#if defined(S_ISBLK) && defined(S_IFDIR)
25797# if S_ISBLK (S_IFDIR)
25798You lose.
25799# endif
25800#endif
25801
25802#if defined(S_ISBLK) && defined(S_IFCHR)
25803# if S_ISBLK (S_IFCHR)
25804You lose.
25805# endif
25806#endif
25807
25808#if defined(S_ISLNK) && defined(S_IFREG)
25809# if S_ISLNK (S_IFREG)
25810You lose.
25811# endif
25812#endif
25813
25814#if defined(S_ISSOCK) && defined(S_IFREG)
25815# if S_ISSOCK (S_IFREG)
25816You lose.
25817# endif
25818#endif
25819
25820_ACEOF
25821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25822  $EGREP "You lose" >/dev/null 2>&1; then
25823  ac_cv_header_stat_broken=yes
25824else
25825  ac_cv_header_stat_broken=no
25826fi
25827rm -f conftest*
25828
25829fi
25830echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25831echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25832if test $ac_cv_header_stat_broken = yes; then
25833
25834cat >>confdefs.h <<\_ACEOF
25835#define STAT_MACROS_BROKEN 1
25836_ACEOF
25837
25838fi
25839
25840echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25841echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25842if test "${ac_cv_header_stdc+set}" = set; then
25843  echo $ECHO_N "(cached) $ECHO_C" >&6
25844else
25845  cat >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#include <stdlib.h>
25852#include <stdarg.h>
25853#include <string.h>
25854#include <float.h>
25855
25856int
25857main ()
25858{
25859
25860  ;
25861  return 0;
25862}
25863_ACEOF
25864rm -f conftest.$ac_objext
25865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866  (eval $ac_compile) 2>conftest.er1
25867  ac_status=$?
25868  grep -v '^ *+' conftest.er1 >conftest.err
25869  rm -f conftest.er1
25870  cat conftest.err >&5
25871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872  (exit $ac_status); } &&
25873	 { ac_try='test -z "$ac_c_werror_flag"
25874			 || test ! -s conftest.err'
25875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876  (eval $ac_try) 2>&5
25877  ac_status=$?
25878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879  (exit $ac_status); }; } &&
25880	 { ac_try='test -s conftest.$ac_objext'
25881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882  (eval $ac_try) 2>&5
25883  ac_status=$?
25884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885  (exit $ac_status); }; }; then
25886  ac_cv_header_stdc=yes
25887else
25888  echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891ac_cv_header_stdc=no
25892fi
25893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25894
25895if test $ac_cv_header_stdc = yes; then
25896  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25897  cat >conftest.$ac_ext <<_ACEOF
25898/* confdefs.h.  */
25899_ACEOF
25900cat confdefs.h >>conftest.$ac_ext
25901cat >>conftest.$ac_ext <<_ACEOF
25902/* end confdefs.h.  */
25903#include <string.h>
25904
25905_ACEOF
25906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25907  $EGREP "memchr" >/dev/null 2>&1; then
25908  :
25909else
25910  ac_cv_header_stdc=no
25911fi
25912rm -f conftest*
25913
25914fi
25915
25916if test $ac_cv_header_stdc = yes; then
25917  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25918  cat >conftest.$ac_ext <<_ACEOF
25919/* confdefs.h.  */
25920_ACEOF
25921cat confdefs.h >>conftest.$ac_ext
25922cat >>conftest.$ac_ext <<_ACEOF
25923/* end confdefs.h.  */
25924#include <stdlib.h>
25925
25926_ACEOF
25927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25928  $EGREP "free" >/dev/null 2>&1; then
25929  :
25930else
25931  ac_cv_header_stdc=no
25932fi
25933rm -f conftest*
25934
25935fi
25936
25937if test $ac_cv_header_stdc = yes; then
25938  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25939  if test "$cross_compiling" = yes; then
25940  :
25941else
25942  cat >conftest.$ac_ext <<_ACEOF
25943/* confdefs.h.  */
25944_ACEOF
25945cat confdefs.h >>conftest.$ac_ext
25946cat >>conftest.$ac_ext <<_ACEOF
25947/* end confdefs.h.  */
25948#include <ctype.h>
25949#if ((' ' & 0x0FF) == 0x020)
25950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25952#else
25953# define ISLOWER(c) \
25954		   (('a' <= (c) && (c) <= 'i') \
25955		     || ('j' <= (c) && (c) <= 'r') \
25956		     || ('s' <= (c) && (c) <= 'z'))
25957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25958#endif
25959
25960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25961int
25962main ()
25963{
25964  int i;
25965  for (i = 0; i < 256; i++)
25966    if (XOR (islower (i), ISLOWER (i))
25967	|| toupper (i) != TOUPPER (i))
25968      exit(2);
25969  exit (0);
25970}
25971_ACEOF
25972rm -f conftest$ac_exeext
25973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25974  (eval $ac_link) 2>&5
25975  ac_status=$?
25976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979  (eval $ac_try) 2>&5
25980  ac_status=$?
25981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982  (exit $ac_status); }; }; then
25983  :
25984else
25985  echo "$as_me: program exited with status $ac_status" >&5
25986echo "$as_me: failed program was:" >&5
25987sed 's/^/| /' conftest.$ac_ext >&5
25988
25989( exit $ac_status )
25990ac_cv_header_stdc=no
25991fi
25992rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25993fi
25994fi
25995fi
25996echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25997echo "${ECHO_T}$ac_cv_header_stdc" >&6
25998if test $ac_cv_header_stdc = yes; then
25999
26000cat >>confdefs.h <<\_ACEOF
26001#define STDC_HEADERS 1
26002_ACEOF
26003
26004fi
26005
26006echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26007echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26008if test "${ac_cv_header_sys_wait_h+set}" = set; then
26009  echo $ECHO_N "(cached) $ECHO_C" >&6
26010else
26011  cat >conftest.$ac_ext <<_ACEOF
26012/* confdefs.h.  */
26013_ACEOF
26014cat confdefs.h >>conftest.$ac_ext
26015cat >>conftest.$ac_ext <<_ACEOF
26016/* end confdefs.h.  */
26017#include <sys/types.h>
26018#include <sys/wait.h>
26019#ifndef WEXITSTATUS
26020# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26021#endif
26022#ifndef WIFEXITED
26023# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26024#endif
26025
26026int
26027main ()
26028{
26029  int s;
26030  wait (&s);
26031  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26032  ;
26033  return 0;
26034}
26035_ACEOF
26036rm -f conftest.$ac_objext
26037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26038  (eval $ac_compile) 2>conftest.er1
26039  ac_status=$?
26040  grep -v '^ *+' conftest.er1 >conftest.err
26041  rm -f conftest.er1
26042  cat conftest.err >&5
26043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044  (exit $ac_status); } &&
26045	 { ac_try='test -z "$ac_c_werror_flag"
26046			 || test ! -s conftest.err'
26047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048  (eval $ac_try) 2>&5
26049  ac_status=$?
26050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051  (exit $ac_status); }; } &&
26052	 { ac_try='test -s conftest.$ac_objext'
26053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054  (eval $ac_try) 2>&5
26055  ac_status=$?
26056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057  (exit $ac_status); }; }; then
26058  ac_cv_header_sys_wait_h=yes
26059else
26060  echo "$as_me: failed program was:" >&5
26061sed 's/^/| /' conftest.$ac_ext >&5
26062
26063ac_cv_header_sys_wait_h=no
26064fi
26065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26066fi
26067echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26068echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26069if test $ac_cv_header_sys_wait_h = yes; then
26070
26071cat >>confdefs.h <<\_ACEOF
26072#define HAVE_SYS_WAIT_H 1
26073_ACEOF
26074
26075fi
26076
26077echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26078echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26079if test "${ac_cv_header_time+set}" = set; then
26080  echo $ECHO_N "(cached) $ECHO_C" >&6
26081else
26082  cat >conftest.$ac_ext <<_ACEOF
26083/* confdefs.h.  */
26084_ACEOF
26085cat confdefs.h >>conftest.$ac_ext
26086cat >>conftest.$ac_ext <<_ACEOF
26087/* end confdefs.h.  */
26088#include <sys/types.h>
26089#include <sys/time.h>
26090#include <time.h>
26091
26092int
26093main ()
26094{
26095if ((struct tm *) 0)
26096return 0;
26097  ;
26098  return 0;
26099}
26100_ACEOF
26101rm -f conftest.$ac_objext
26102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26103  (eval $ac_compile) 2>conftest.er1
26104  ac_status=$?
26105  grep -v '^ *+' conftest.er1 >conftest.err
26106  rm -f conftest.er1
26107  cat conftest.err >&5
26108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109  (exit $ac_status); } &&
26110	 { ac_try='test -z "$ac_c_werror_flag"
26111			 || test ! -s conftest.err'
26112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113  (eval $ac_try) 2>&5
26114  ac_status=$?
26115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116  (exit $ac_status); }; } &&
26117	 { ac_try='test -s conftest.$ac_objext'
26118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119  (eval $ac_try) 2>&5
26120  ac_status=$?
26121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122  (exit $ac_status); }; }; then
26123  ac_cv_header_time=yes
26124else
26125  echo "$as_me: failed program was:" >&5
26126sed 's/^/| /' conftest.$ac_ext >&5
26127
26128ac_cv_header_time=no
26129fi
26130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26131fi
26132echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26133echo "${ECHO_T}$ac_cv_header_time" >&6
26134if test $ac_cv_header_time = yes; then
26135
26136cat >>confdefs.h <<\_ACEOF
26137#define TIME_WITH_SYS_TIME 1
26138_ACEOF
26139
26140fi
26141
26142
26143
26144
26145
26146
26147
26148
26149for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26150do
26151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26152if eval "test \"\${$as_ac_Header+set}\" = set"; then
26153  echo "$as_me:$LINENO: checking for $ac_header" >&5
26154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26155if eval "test \"\${$as_ac_Header+set}\" = set"; then
26156  echo $ECHO_N "(cached) $ECHO_C" >&6
26157fi
26158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26160else
26161  # Is the header compilable?
26162echo "$as_me:$LINENO: checking $ac_header usability" >&5
26163echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26164cat >conftest.$ac_ext <<_ACEOF
26165/* confdefs.h.  */
26166_ACEOF
26167cat confdefs.h >>conftest.$ac_ext
26168cat >>conftest.$ac_ext <<_ACEOF
26169/* end confdefs.h.  */
26170$ac_includes_default
26171#include <$ac_header>
26172_ACEOF
26173rm -f conftest.$ac_objext
26174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26175  (eval $ac_compile) 2>conftest.er1
26176  ac_status=$?
26177  grep -v '^ *+' conftest.er1 >conftest.err
26178  rm -f conftest.er1
26179  cat conftest.err >&5
26180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181  (exit $ac_status); } &&
26182	 { ac_try='test -z "$ac_c_werror_flag"
26183			 || test ! -s conftest.err'
26184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185  (eval $ac_try) 2>&5
26186  ac_status=$?
26187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188  (exit $ac_status); }; } &&
26189	 { ac_try='test -s conftest.$ac_objext'
26190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191  (eval $ac_try) 2>&5
26192  ac_status=$?
26193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194  (exit $ac_status); }; }; then
26195  ac_header_compiler=yes
26196else
26197  echo "$as_me: failed program was:" >&5
26198sed 's/^/| /' conftest.$ac_ext >&5
26199
26200ac_header_compiler=no
26201fi
26202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26204echo "${ECHO_T}$ac_header_compiler" >&6
26205
26206# Is the header present?
26207echo "$as_me:$LINENO: checking $ac_header presence" >&5
26208echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26209cat >conftest.$ac_ext <<_ACEOF
26210/* confdefs.h.  */
26211_ACEOF
26212cat confdefs.h >>conftest.$ac_ext
26213cat >>conftest.$ac_ext <<_ACEOF
26214/* end confdefs.h.  */
26215#include <$ac_header>
26216_ACEOF
26217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26218  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26219  ac_status=$?
26220  grep -v '^ *+' conftest.er1 >conftest.err
26221  rm -f conftest.er1
26222  cat conftest.err >&5
26223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224  (exit $ac_status); } >/dev/null; then
26225  if test -s conftest.err; then
26226    ac_cpp_err=$ac_c_preproc_warn_flag
26227    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26228  else
26229    ac_cpp_err=
26230  fi
26231else
26232  ac_cpp_err=yes
26233fi
26234if test -z "$ac_cpp_err"; then
26235  ac_header_preproc=yes
26236else
26237  echo "$as_me: failed program was:" >&5
26238sed 's/^/| /' conftest.$ac_ext >&5
26239
26240  ac_header_preproc=no
26241fi
26242rm -f conftest.err conftest.$ac_ext
26243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26244echo "${ECHO_T}$ac_header_preproc" >&6
26245
26246# So?  What about this header?
26247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26248  yes:no: )
26249    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26251    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26253    ac_header_preproc=yes
26254    ;;
26255  no:yes:* )
26256    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26258    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26259echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26260    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26262    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26263echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26264    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26266    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26268    (
26269      cat <<\_ASBOX
26270## ----------------------------------- ##
26271## Report this to llvmbugs@cs.uiuc.edu ##
26272## ----------------------------------- ##
26273_ASBOX
26274    ) |
26275      sed "s/^/$as_me: WARNING:     /" >&2
26276    ;;
26277esac
26278echo "$as_me:$LINENO: checking for $ac_header" >&5
26279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26280if eval "test \"\${$as_ac_Header+set}\" = set"; then
26281  echo $ECHO_N "(cached) $ECHO_C" >&6
26282else
26283  eval "$as_ac_Header=\$ac_header_preproc"
26284fi
26285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26287
26288fi
26289if test `eval echo '${'$as_ac_Header'}'` = yes; then
26290  cat >>confdefs.h <<_ACEOF
26291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26292_ACEOF
26293
26294fi
26295
26296done
26297
26298
26299
26300
26301
26302
26303
26304for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26305do
26306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26307if eval "test \"\${$as_ac_Header+set}\" = set"; then
26308  echo "$as_me:$LINENO: checking for $ac_header" >&5
26309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26310if eval "test \"\${$as_ac_Header+set}\" = set"; then
26311  echo $ECHO_N "(cached) $ECHO_C" >&6
26312fi
26313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26315else
26316  # Is the header compilable?
26317echo "$as_me:$LINENO: checking $ac_header usability" >&5
26318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26319cat >conftest.$ac_ext <<_ACEOF
26320/* confdefs.h.  */
26321_ACEOF
26322cat confdefs.h >>conftest.$ac_ext
26323cat >>conftest.$ac_ext <<_ACEOF
26324/* end confdefs.h.  */
26325$ac_includes_default
26326#include <$ac_header>
26327_ACEOF
26328rm -f conftest.$ac_objext
26329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26330  (eval $ac_compile) 2>conftest.er1
26331  ac_status=$?
26332  grep -v '^ *+' conftest.er1 >conftest.err
26333  rm -f conftest.er1
26334  cat conftest.err >&5
26335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336  (exit $ac_status); } &&
26337	 { ac_try='test -z "$ac_c_werror_flag"
26338			 || test ! -s conftest.err'
26339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340  (eval $ac_try) 2>&5
26341  ac_status=$?
26342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343  (exit $ac_status); }; } &&
26344	 { ac_try='test -s conftest.$ac_objext'
26345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346  (eval $ac_try) 2>&5
26347  ac_status=$?
26348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349  (exit $ac_status); }; }; then
26350  ac_header_compiler=yes
26351else
26352  echo "$as_me: failed program was:" >&5
26353sed 's/^/| /' conftest.$ac_ext >&5
26354
26355ac_header_compiler=no
26356fi
26357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26359echo "${ECHO_T}$ac_header_compiler" >&6
26360
26361# Is the header present?
26362echo "$as_me:$LINENO: checking $ac_header presence" >&5
26363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26364cat >conftest.$ac_ext <<_ACEOF
26365/* confdefs.h.  */
26366_ACEOF
26367cat confdefs.h >>conftest.$ac_ext
26368cat >>conftest.$ac_ext <<_ACEOF
26369/* end confdefs.h.  */
26370#include <$ac_header>
26371_ACEOF
26372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26373  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26374  ac_status=$?
26375  grep -v '^ *+' conftest.er1 >conftest.err
26376  rm -f conftest.er1
26377  cat conftest.err >&5
26378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379  (exit $ac_status); } >/dev/null; then
26380  if test -s conftest.err; then
26381    ac_cpp_err=$ac_c_preproc_warn_flag
26382    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26383  else
26384    ac_cpp_err=
26385  fi
26386else
26387  ac_cpp_err=yes
26388fi
26389if test -z "$ac_cpp_err"; then
26390  ac_header_preproc=yes
26391else
26392  echo "$as_me: failed program was:" >&5
26393sed 's/^/| /' conftest.$ac_ext >&5
26394
26395  ac_header_preproc=no
26396fi
26397rm -f conftest.err conftest.$ac_ext
26398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26399echo "${ECHO_T}$ac_header_preproc" >&6
26400
26401# So?  What about this header?
26402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26403  yes:no: )
26404    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26408    ac_header_preproc=yes
26409    ;;
26410  no:yes:* )
26411    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26413    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26414echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26415    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26417    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26418echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26421    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26423    (
26424      cat <<\_ASBOX
26425## ----------------------------------- ##
26426## Report this to llvmbugs@cs.uiuc.edu ##
26427## ----------------------------------- ##
26428_ASBOX
26429    ) |
26430      sed "s/^/$as_me: WARNING:     /" >&2
26431    ;;
26432esac
26433echo "$as_me:$LINENO: checking for $ac_header" >&5
26434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26435if eval "test \"\${$as_ac_Header+set}\" = set"; then
26436  echo $ECHO_N "(cached) $ECHO_C" >&6
26437else
26438  eval "$as_ac_Header=\$ac_header_preproc"
26439fi
26440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26442
26443fi
26444if test `eval echo '${'$as_ac_Header'}'` = yes; then
26445  cat >>confdefs.h <<_ACEOF
26446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26447_ACEOF
26448
26449fi
26450
26451done
26452
26453
26454
26455
26456
26457
26458for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26459do
26460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26461if eval "test \"\${$as_ac_Header+set}\" = set"; then
26462  echo "$as_me:$LINENO: checking for $ac_header" >&5
26463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26464if eval "test \"\${$as_ac_Header+set}\" = set"; then
26465  echo $ECHO_N "(cached) $ECHO_C" >&6
26466fi
26467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26469else
26470  # Is the header compilable?
26471echo "$as_me:$LINENO: checking $ac_header usability" >&5
26472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26473cat >conftest.$ac_ext <<_ACEOF
26474/* confdefs.h.  */
26475_ACEOF
26476cat confdefs.h >>conftest.$ac_ext
26477cat >>conftest.$ac_ext <<_ACEOF
26478/* end confdefs.h.  */
26479$ac_includes_default
26480#include <$ac_header>
26481_ACEOF
26482rm -f conftest.$ac_objext
26483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26484  (eval $ac_compile) 2>conftest.er1
26485  ac_status=$?
26486  grep -v '^ *+' conftest.er1 >conftest.err
26487  rm -f conftest.er1
26488  cat conftest.err >&5
26489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490  (exit $ac_status); } &&
26491	 { ac_try='test -z "$ac_c_werror_flag"
26492			 || test ! -s conftest.err'
26493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494  (eval $ac_try) 2>&5
26495  ac_status=$?
26496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497  (exit $ac_status); }; } &&
26498	 { ac_try='test -s conftest.$ac_objext'
26499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500  (eval $ac_try) 2>&5
26501  ac_status=$?
26502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503  (exit $ac_status); }; }; then
26504  ac_header_compiler=yes
26505else
26506  echo "$as_me: failed program was:" >&5
26507sed 's/^/| /' conftest.$ac_ext >&5
26508
26509ac_header_compiler=no
26510fi
26511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26512echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26513echo "${ECHO_T}$ac_header_compiler" >&6
26514
26515# Is the header present?
26516echo "$as_me:$LINENO: checking $ac_header presence" >&5
26517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26518cat >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 <$ac_header>
26525_ACEOF
26526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26527  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26528  ac_status=$?
26529  grep -v '^ *+' conftest.er1 >conftest.err
26530  rm -f conftest.er1
26531  cat conftest.err >&5
26532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533  (exit $ac_status); } >/dev/null; then
26534  if test -s conftest.err; then
26535    ac_cpp_err=$ac_c_preproc_warn_flag
26536    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26537  else
26538    ac_cpp_err=
26539  fi
26540else
26541  ac_cpp_err=yes
26542fi
26543if test -z "$ac_cpp_err"; then
26544  ac_header_preproc=yes
26545else
26546  echo "$as_me: failed program was:" >&5
26547sed 's/^/| /' conftest.$ac_ext >&5
26548
26549  ac_header_preproc=no
26550fi
26551rm -f conftest.err conftest.$ac_ext
26552echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26553echo "${ECHO_T}$ac_header_preproc" >&6
26554
26555# So?  What about this header?
26556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26557  yes:no: )
26558    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26562    ac_header_preproc=yes
26563    ;;
26564  no:yes:* )
26565    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26567    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26568echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26569    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26571    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26572echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26573    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26575    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26577    (
26578      cat <<\_ASBOX
26579## ----------------------------------- ##
26580## Report this to llvmbugs@cs.uiuc.edu ##
26581## ----------------------------------- ##
26582_ASBOX
26583    ) |
26584      sed "s/^/$as_me: WARNING:     /" >&2
26585    ;;
26586esac
26587echo "$as_me:$LINENO: checking for $ac_header" >&5
26588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26589if eval "test \"\${$as_ac_Header+set}\" = set"; then
26590  echo $ECHO_N "(cached) $ECHO_C" >&6
26591else
26592  eval "$as_ac_Header=\$ac_header_preproc"
26593fi
26594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26596
26597fi
26598if test `eval echo '${'$as_ac_Header'}'` = yes; then
26599  cat >>confdefs.h <<_ACEOF
26600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26601_ACEOF
26602
26603fi
26604
26605done
26606
26607
26608
26609for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26610do
26611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26612if eval "test \"\${$as_ac_Header+set}\" = set"; then
26613  echo "$as_me:$LINENO: checking for $ac_header" >&5
26614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26615if eval "test \"\${$as_ac_Header+set}\" = set"; then
26616  echo $ECHO_N "(cached) $ECHO_C" >&6
26617fi
26618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26620else
26621  # Is the header compilable?
26622echo "$as_me:$LINENO: checking $ac_header usability" >&5
26623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26624cat >conftest.$ac_ext <<_ACEOF
26625/* confdefs.h.  */
26626_ACEOF
26627cat confdefs.h >>conftest.$ac_ext
26628cat >>conftest.$ac_ext <<_ACEOF
26629/* end confdefs.h.  */
26630$ac_includes_default
26631#include <$ac_header>
26632_ACEOF
26633rm -f conftest.$ac_objext
26634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26635  (eval $ac_compile) 2>conftest.er1
26636  ac_status=$?
26637  grep -v '^ *+' conftest.er1 >conftest.err
26638  rm -f conftest.er1
26639  cat conftest.err >&5
26640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641  (exit $ac_status); } &&
26642	 { ac_try='test -z "$ac_c_werror_flag"
26643			 || test ! -s conftest.err'
26644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645  (eval $ac_try) 2>&5
26646  ac_status=$?
26647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648  (exit $ac_status); }; } &&
26649	 { ac_try='test -s conftest.$ac_objext'
26650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651  (eval $ac_try) 2>&5
26652  ac_status=$?
26653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654  (exit $ac_status); }; }; then
26655  ac_header_compiler=yes
26656else
26657  echo "$as_me: failed program was:" >&5
26658sed 's/^/| /' conftest.$ac_ext >&5
26659
26660ac_header_compiler=no
26661fi
26662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26664echo "${ECHO_T}$ac_header_compiler" >&6
26665
26666# Is the header present?
26667echo "$as_me:$LINENO: checking $ac_header presence" >&5
26668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26669cat >conftest.$ac_ext <<_ACEOF
26670/* confdefs.h.  */
26671_ACEOF
26672cat confdefs.h >>conftest.$ac_ext
26673cat >>conftest.$ac_ext <<_ACEOF
26674/* end confdefs.h.  */
26675#include <$ac_header>
26676_ACEOF
26677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26679  ac_status=$?
26680  grep -v '^ *+' conftest.er1 >conftest.err
26681  rm -f conftest.er1
26682  cat conftest.err >&5
26683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684  (exit $ac_status); } >/dev/null; then
26685  if test -s conftest.err; then
26686    ac_cpp_err=$ac_c_preproc_warn_flag
26687    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26688  else
26689    ac_cpp_err=
26690  fi
26691else
26692  ac_cpp_err=yes
26693fi
26694if test -z "$ac_cpp_err"; then
26695  ac_header_preproc=yes
26696else
26697  echo "$as_me: failed program was:" >&5
26698sed 's/^/| /' conftest.$ac_ext >&5
26699
26700  ac_header_preproc=no
26701fi
26702rm -f conftest.err conftest.$ac_ext
26703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26704echo "${ECHO_T}$ac_header_preproc" >&6
26705
26706# So?  What about this header?
26707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26708  yes:no: )
26709    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26711    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26713    ac_header_preproc=yes
26714    ;;
26715  no:yes:* )
26716    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26718    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26719echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26720    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26722    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26723echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26724    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26726    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26728    (
26729      cat <<\_ASBOX
26730## ----------------------------------- ##
26731## Report this to llvmbugs@cs.uiuc.edu ##
26732## ----------------------------------- ##
26733_ASBOX
26734    ) |
26735      sed "s/^/$as_me: WARNING:     /" >&2
26736    ;;
26737esac
26738echo "$as_me:$LINENO: checking for $ac_header" >&5
26739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26740if eval "test \"\${$as_ac_Header+set}\" = set"; then
26741  echo $ECHO_N "(cached) $ECHO_C" >&6
26742else
26743  eval "$as_ac_Header=\$ac_header_preproc"
26744fi
26745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26747
26748fi
26749if test `eval echo '${'$as_ac_Header'}'` = yes; then
26750  cat >>confdefs.h <<_ACEOF
26751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26752_ACEOF
26753
26754fi
26755
26756done
26757
26758
26759
26760echo "$as_me:$LINENO: checking for pid_t" >&5
26761echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26762if test "${ac_cv_type_pid_t+set}" = set; then
26763  echo $ECHO_N "(cached) $ECHO_C" >&6
26764else
26765  cat >conftest.$ac_ext <<_ACEOF
26766/* confdefs.h.  */
26767_ACEOF
26768cat confdefs.h >>conftest.$ac_ext
26769cat >>conftest.$ac_ext <<_ACEOF
26770/* end confdefs.h.  */
26771$ac_includes_default
26772int
26773main ()
26774{
26775if ((pid_t *) 0)
26776  return 0;
26777if (sizeof (pid_t))
26778  return 0;
26779  ;
26780  return 0;
26781}
26782_ACEOF
26783rm -f conftest.$ac_objext
26784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26785  (eval $ac_compile) 2>conftest.er1
26786  ac_status=$?
26787  grep -v '^ *+' conftest.er1 >conftest.err
26788  rm -f conftest.er1
26789  cat conftest.err >&5
26790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791  (exit $ac_status); } &&
26792	 { ac_try='test -z "$ac_c_werror_flag"
26793			 || test ! -s conftest.err'
26794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795  (eval $ac_try) 2>&5
26796  ac_status=$?
26797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798  (exit $ac_status); }; } &&
26799	 { ac_try='test -s conftest.$ac_objext'
26800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801  (eval $ac_try) 2>&5
26802  ac_status=$?
26803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804  (exit $ac_status); }; }; then
26805  ac_cv_type_pid_t=yes
26806else
26807  echo "$as_me: failed program was:" >&5
26808sed 's/^/| /' conftest.$ac_ext >&5
26809
26810ac_cv_type_pid_t=no
26811fi
26812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26813fi
26814echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26815echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26816if test $ac_cv_type_pid_t = yes; then
26817  :
26818else
26819
26820cat >>confdefs.h <<_ACEOF
26821#define pid_t int
26822_ACEOF
26823
26824fi
26825
26826echo "$as_me:$LINENO: checking for size_t" >&5
26827echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26828if test "${ac_cv_type_size_t+set}" = set; then
26829  echo $ECHO_N "(cached) $ECHO_C" >&6
26830else
26831  cat >conftest.$ac_ext <<_ACEOF
26832/* confdefs.h.  */
26833_ACEOF
26834cat confdefs.h >>conftest.$ac_ext
26835cat >>conftest.$ac_ext <<_ACEOF
26836/* end confdefs.h.  */
26837$ac_includes_default
26838int
26839main ()
26840{
26841if ((size_t *) 0)
26842  return 0;
26843if (sizeof (size_t))
26844  return 0;
26845  ;
26846  return 0;
26847}
26848_ACEOF
26849rm -f conftest.$ac_objext
26850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26851  (eval $ac_compile) 2>conftest.er1
26852  ac_status=$?
26853  grep -v '^ *+' conftest.er1 >conftest.err
26854  rm -f conftest.er1
26855  cat conftest.err >&5
26856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857  (exit $ac_status); } &&
26858	 { ac_try='test -z "$ac_c_werror_flag"
26859			 || test ! -s conftest.err'
26860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861  (eval $ac_try) 2>&5
26862  ac_status=$?
26863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864  (exit $ac_status); }; } &&
26865	 { ac_try='test -s conftest.$ac_objext'
26866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26867  (eval $ac_try) 2>&5
26868  ac_status=$?
26869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870  (exit $ac_status); }; }; then
26871  ac_cv_type_size_t=yes
26872else
26873  echo "$as_me: failed program was:" >&5
26874sed 's/^/| /' conftest.$ac_ext >&5
26875
26876ac_cv_type_size_t=no
26877fi
26878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26879fi
26880echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26881echo "${ECHO_T}$ac_cv_type_size_t" >&6
26882if test $ac_cv_type_size_t = yes; then
26883  :
26884else
26885
26886cat >>confdefs.h <<_ACEOF
26887#define size_t unsigned
26888_ACEOF
26889
26890fi
26891
26892echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26893echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26894if test "${ac_cv_type_signal+set}" = set; then
26895  echo $ECHO_N "(cached) $ECHO_C" >&6
26896else
26897  cat >conftest.$ac_ext <<_ACEOF
26898/* confdefs.h.  */
26899_ACEOF
26900cat confdefs.h >>conftest.$ac_ext
26901cat >>conftest.$ac_ext <<_ACEOF
26902/* end confdefs.h.  */
26903#include <sys/types.h>
26904#include <signal.h>
26905#ifdef signal
26906# undef signal
26907#endif
26908#ifdef __cplusplus
26909extern "C" void (*signal (int, void (*)(int)))(int);
26910#else
26911void (*signal ()) ();
26912#endif
26913
26914int
26915main ()
26916{
26917int i;
26918  ;
26919  return 0;
26920}
26921_ACEOF
26922rm -f conftest.$ac_objext
26923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26924  (eval $ac_compile) 2>conftest.er1
26925  ac_status=$?
26926  grep -v '^ *+' conftest.er1 >conftest.err
26927  rm -f conftest.er1
26928  cat conftest.err >&5
26929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930  (exit $ac_status); } &&
26931	 { ac_try='test -z "$ac_c_werror_flag"
26932			 || test ! -s conftest.err'
26933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934  (eval $ac_try) 2>&5
26935  ac_status=$?
26936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937  (exit $ac_status); }; } &&
26938	 { ac_try='test -s conftest.$ac_objext'
26939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940  (eval $ac_try) 2>&5
26941  ac_status=$?
26942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943  (exit $ac_status); }; }; then
26944  ac_cv_type_signal=void
26945else
26946  echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949ac_cv_type_signal=int
26950fi
26951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26952fi
26953echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26954echo "${ECHO_T}$ac_cv_type_signal" >&6
26955
26956cat >>confdefs.h <<_ACEOF
26957#define RETSIGTYPE $ac_cv_type_signal
26958_ACEOF
26959
26960
26961echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26962echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26963if test "${ac_cv_struct_tm+set}" = set; then
26964  echo $ECHO_N "(cached) $ECHO_C" >&6
26965else
26966  cat >conftest.$ac_ext <<_ACEOF
26967/* confdefs.h.  */
26968_ACEOF
26969cat confdefs.h >>conftest.$ac_ext
26970cat >>conftest.$ac_ext <<_ACEOF
26971/* end confdefs.h.  */
26972#include <sys/types.h>
26973#include <time.h>
26974
26975int
26976main ()
26977{
26978struct tm *tp; tp->tm_sec;
26979  ;
26980  return 0;
26981}
26982_ACEOF
26983rm -f conftest.$ac_objext
26984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26985  (eval $ac_compile) 2>conftest.er1
26986  ac_status=$?
26987  grep -v '^ *+' conftest.er1 >conftest.err
26988  rm -f conftest.er1
26989  cat conftest.err >&5
26990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991  (exit $ac_status); } &&
26992	 { ac_try='test -z "$ac_c_werror_flag"
26993			 || test ! -s conftest.err'
26994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995  (eval $ac_try) 2>&5
26996  ac_status=$?
26997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998  (exit $ac_status); }; } &&
26999	 { ac_try='test -s conftest.$ac_objext'
27000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001  (eval $ac_try) 2>&5
27002  ac_status=$?
27003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004  (exit $ac_status); }; }; then
27005  ac_cv_struct_tm=time.h
27006else
27007  echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
27010ac_cv_struct_tm=sys/time.h
27011fi
27012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27013fi
27014echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27015echo "${ECHO_T}$ac_cv_struct_tm" >&6
27016if test $ac_cv_struct_tm = sys/time.h; then
27017
27018cat >>confdefs.h <<\_ACEOF
27019#define TM_IN_SYS_TIME 1
27020_ACEOF
27021
27022fi
27023
27024echo "$as_me:$LINENO: checking for int64_t" >&5
27025echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27026if test "${ac_cv_type_int64_t+set}" = set; then
27027  echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029  cat >conftest.$ac_ext <<_ACEOF
27030/* confdefs.h.  */
27031_ACEOF
27032cat confdefs.h >>conftest.$ac_ext
27033cat >>conftest.$ac_ext <<_ACEOF
27034/* end confdefs.h.  */
27035$ac_includes_default
27036int
27037main ()
27038{
27039if ((int64_t *) 0)
27040  return 0;
27041if (sizeof (int64_t))
27042  return 0;
27043  ;
27044  return 0;
27045}
27046_ACEOF
27047rm -f conftest.$ac_objext
27048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27049  (eval $ac_compile) 2>conftest.er1
27050  ac_status=$?
27051  grep -v '^ *+' conftest.er1 >conftest.err
27052  rm -f conftest.er1
27053  cat conftest.err >&5
27054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055  (exit $ac_status); } &&
27056	 { ac_try='test -z "$ac_c_werror_flag"
27057			 || test ! -s conftest.err'
27058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059  (eval $ac_try) 2>&5
27060  ac_status=$?
27061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062  (exit $ac_status); }; } &&
27063	 { ac_try='test -s conftest.$ac_objext'
27064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065  (eval $ac_try) 2>&5
27066  ac_status=$?
27067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068  (exit $ac_status); }; }; then
27069  ac_cv_type_int64_t=yes
27070else
27071  echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
27074ac_cv_type_int64_t=no
27075fi
27076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27077fi
27078echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27079echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27080if test $ac_cv_type_int64_t = yes; then
27081
27082cat >>confdefs.h <<_ACEOF
27083#define HAVE_INT64_T 1
27084_ACEOF
27085
27086
27087else
27088  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27089echo "$as_me: error: Type int64_t required but not found" >&2;}
27090   { (exit 1); exit 1; }; }
27091fi
27092
27093echo "$as_me:$LINENO: checking for uint64_t" >&5
27094echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27095if test "${ac_cv_type_uint64_t+set}" = set; then
27096  echo $ECHO_N "(cached) $ECHO_C" >&6
27097else
27098  cat >conftest.$ac_ext <<_ACEOF
27099/* confdefs.h.  */
27100_ACEOF
27101cat confdefs.h >>conftest.$ac_ext
27102cat >>conftest.$ac_ext <<_ACEOF
27103/* end confdefs.h.  */
27104$ac_includes_default
27105int
27106main ()
27107{
27108if ((uint64_t *) 0)
27109  return 0;
27110if (sizeof (uint64_t))
27111  return 0;
27112  ;
27113  return 0;
27114}
27115_ACEOF
27116rm -f conftest.$ac_objext
27117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27118  (eval $ac_compile) 2>conftest.er1
27119  ac_status=$?
27120  grep -v '^ *+' conftest.er1 >conftest.err
27121  rm -f conftest.er1
27122  cat conftest.err >&5
27123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124  (exit $ac_status); } &&
27125	 { ac_try='test -z "$ac_c_werror_flag"
27126			 || test ! -s conftest.err'
27127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128  (eval $ac_try) 2>&5
27129  ac_status=$?
27130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131  (exit $ac_status); }; } &&
27132	 { ac_try='test -s conftest.$ac_objext'
27133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134  (eval $ac_try) 2>&5
27135  ac_status=$?
27136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137  (exit $ac_status); }; }; then
27138  ac_cv_type_uint64_t=yes
27139else
27140  echo "$as_me: failed program was:" >&5
27141sed 's/^/| /' conftest.$ac_ext >&5
27142
27143ac_cv_type_uint64_t=no
27144fi
27145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27146fi
27147echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27148echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27149if test $ac_cv_type_uint64_t = yes; then
27150
27151cat >>confdefs.h <<_ACEOF
27152#define HAVE_UINT64_T 1
27153_ACEOF
27154
27155
27156else
27157  echo "$as_me:$LINENO: checking for u_int64_t" >&5
27158echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27159if test "${ac_cv_type_u_int64_t+set}" = set; then
27160  echo $ECHO_N "(cached) $ECHO_C" >&6
27161else
27162  cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h.  */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h.  */
27168$ac_includes_default
27169int
27170main ()
27171{
27172if ((u_int64_t *) 0)
27173  return 0;
27174if (sizeof (u_int64_t))
27175  return 0;
27176  ;
27177  return 0;
27178}
27179_ACEOF
27180rm -f conftest.$ac_objext
27181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182  (eval $ac_compile) 2>conftest.er1
27183  ac_status=$?
27184  grep -v '^ *+' conftest.er1 >conftest.err
27185  rm -f conftest.er1
27186  cat conftest.err >&5
27187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188  (exit $ac_status); } &&
27189	 { ac_try='test -z "$ac_c_werror_flag"
27190			 || test ! -s conftest.err'
27191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192  (eval $ac_try) 2>&5
27193  ac_status=$?
27194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195  (exit $ac_status); }; } &&
27196	 { ac_try='test -s conftest.$ac_objext'
27197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198  (eval $ac_try) 2>&5
27199  ac_status=$?
27200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201  (exit $ac_status); }; }; then
27202  ac_cv_type_u_int64_t=yes
27203else
27204  echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207ac_cv_type_u_int64_t=no
27208fi
27209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210fi
27211echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27212echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27213if test $ac_cv_type_u_int64_t = yes; then
27214
27215cat >>confdefs.h <<_ACEOF
27216#define HAVE_U_INT64_T 1
27217_ACEOF
27218
27219
27220else
27221  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27222echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27223   { (exit 1); exit 1; }; }
27224fi
27225
27226fi
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27237do
27238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27239echo "$as_me:$LINENO: checking for $ac_func" >&5
27240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27241if eval "test \"\${$as_ac_var+set}\" = set"; then
27242  echo $ECHO_N "(cached) $ECHO_C" >&6
27243else
27244  cat >conftest.$ac_ext <<_ACEOF
27245/* confdefs.h.  */
27246_ACEOF
27247cat confdefs.h >>conftest.$ac_ext
27248cat >>conftest.$ac_ext <<_ACEOF
27249/* end confdefs.h.  */
27250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27251   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27252#define $ac_func innocuous_$ac_func
27253
27254/* System header to define __stub macros and hopefully few prototypes,
27255    which can conflict with char $ac_func (); below.
27256    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27257    <limits.h> exists even on freestanding compilers.  */
27258
27259#ifdef __STDC__
27260# include <limits.h>
27261#else
27262# include <assert.h>
27263#endif
27264
27265#undef $ac_func
27266
27267/* Override any gcc2 internal prototype to avoid an error.  */
27268#ifdef __cplusplus
27269extern "C"
27270{
27271#endif
27272/* We use char because int might match the return type of a gcc2
27273   builtin and then its argument prototype would still apply.  */
27274char $ac_func ();
27275/* The GNU C library defines this for functions which it implements
27276    to always fail with ENOSYS.  Some functions are actually named
27277    something starting with __ and the normal name is an alias.  */
27278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27279choke me
27280#else
27281char (*f) () = $ac_func;
27282#endif
27283#ifdef __cplusplus
27284}
27285#endif
27286
27287int
27288main ()
27289{
27290return f != $ac_func;
27291  ;
27292  return 0;
27293}
27294_ACEOF
27295rm -f conftest.$ac_objext conftest$ac_exeext
27296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27297  (eval $ac_link) 2>conftest.er1
27298  ac_status=$?
27299  grep -v '^ *+' conftest.er1 >conftest.err
27300  rm -f conftest.er1
27301  cat conftest.err >&5
27302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303  (exit $ac_status); } &&
27304	 { ac_try='test -z "$ac_c_werror_flag"
27305			 || test ! -s conftest.err'
27306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307  (eval $ac_try) 2>&5
27308  ac_status=$?
27309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310  (exit $ac_status); }; } &&
27311	 { ac_try='test -s conftest$ac_exeext'
27312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313  (eval $ac_try) 2>&5
27314  ac_status=$?
27315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316  (exit $ac_status); }; }; then
27317  eval "$as_ac_var=yes"
27318else
27319  echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
27322eval "$as_ac_var=no"
27323fi
27324rm -f conftest.err conftest.$ac_objext \
27325      conftest$ac_exeext conftest.$ac_ext
27326fi
27327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27329if test `eval echo '${'$as_ac_var'}'` = yes; then
27330  cat >>confdefs.h <<_ACEOF
27331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27332_ACEOF
27333
27334fi
27335done
27336
27337
27338
27339
27340for ac_func in mkdtemp mkstemp mktemp
27341do
27342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27343echo "$as_me:$LINENO: checking for $ac_func" >&5
27344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27345if eval "test \"\${$as_ac_var+set}\" = set"; then
27346  echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348  cat >conftest.$ac_ext <<_ACEOF
27349/* confdefs.h.  */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h.  */
27354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27356#define $ac_func innocuous_$ac_func
27357
27358/* System header to define __stub macros and hopefully few prototypes,
27359    which can conflict with char $ac_func (); below.
27360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27361    <limits.h> exists even on freestanding compilers.  */
27362
27363#ifdef __STDC__
27364# include <limits.h>
27365#else
27366# include <assert.h>
27367#endif
27368
27369#undef $ac_func
27370
27371/* Override any gcc2 internal prototype to avoid an error.  */
27372#ifdef __cplusplus
27373extern "C"
27374{
27375#endif
27376/* We use char because int might match the return type of a gcc2
27377   builtin and then its argument prototype would still apply.  */
27378char $ac_func ();
27379/* The GNU C library defines this for functions which it implements
27380    to always fail with ENOSYS.  Some functions are actually named
27381    something starting with __ and the normal name is an alias.  */
27382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27383choke me
27384#else
27385char (*f) () = $ac_func;
27386#endif
27387#ifdef __cplusplus
27388}
27389#endif
27390
27391int
27392main ()
27393{
27394return f != $ac_func;
27395  ;
27396  return 0;
27397}
27398_ACEOF
27399rm -f conftest.$ac_objext conftest$ac_exeext
27400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27401  (eval $ac_link) 2>conftest.er1
27402  ac_status=$?
27403  grep -v '^ *+' conftest.er1 >conftest.err
27404  rm -f conftest.er1
27405  cat conftest.err >&5
27406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407  (exit $ac_status); } &&
27408	 { ac_try='test -z "$ac_c_werror_flag"
27409			 || test ! -s conftest.err'
27410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411  (eval $ac_try) 2>&5
27412  ac_status=$?
27413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414  (exit $ac_status); }; } &&
27415	 { ac_try='test -s conftest$ac_exeext'
27416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417  (eval $ac_try) 2>&5
27418  ac_status=$?
27419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420  (exit $ac_status); }; }; then
27421  eval "$as_ac_var=yes"
27422else
27423  echo "$as_me: failed program was:" >&5
27424sed 's/^/| /' conftest.$ac_ext >&5
27425
27426eval "$as_ac_var=no"
27427fi
27428rm -f conftest.err conftest.$ac_objext \
27429      conftest$ac_exeext conftest.$ac_ext
27430fi
27431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27433if test `eval echo '${'$as_ac_var'}'` = yes; then
27434  cat >>confdefs.h <<_ACEOF
27435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27436_ACEOF
27437
27438fi
27439done
27440
27441
27442
27443
27444
27445
27446
27447for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27448do
27449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450echo "$as_me:$LINENO: checking for $ac_func" >&5
27451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27452if eval "test \"\${$as_ac_var+set}\" = set"; then
27453  echo $ECHO_N "(cached) $ECHO_C" >&6
27454else
27455  cat >conftest.$ac_ext <<_ACEOF
27456/* confdefs.h.  */
27457_ACEOF
27458cat confdefs.h >>conftest.$ac_ext
27459cat >>conftest.$ac_ext <<_ACEOF
27460/* end confdefs.h.  */
27461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27463#define $ac_func innocuous_$ac_func
27464
27465/* System header to define __stub macros and hopefully few prototypes,
27466    which can conflict with char $ac_func (); below.
27467    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468    <limits.h> exists even on freestanding compilers.  */
27469
27470#ifdef __STDC__
27471# include <limits.h>
27472#else
27473# include <assert.h>
27474#endif
27475
27476#undef $ac_func
27477
27478/* Override any gcc2 internal prototype to avoid an error.  */
27479#ifdef __cplusplus
27480extern "C"
27481{
27482#endif
27483/* We use char because int might match the return type of a gcc2
27484   builtin and then its argument prototype would still apply.  */
27485char $ac_func ();
27486/* The GNU C library defines this for functions which it implements
27487    to always fail with ENOSYS.  Some functions are actually named
27488    something starting with __ and the normal name is an alias.  */
27489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27490choke me
27491#else
27492char (*f) () = $ac_func;
27493#endif
27494#ifdef __cplusplus
27495}
27496#endif
27497
27498int
27499main ()
27500{
27501return f != $ac_func;
27502  ;
27503  return 0;
27504}
27505_ACEOF
27506rm -f conftest.$ac_objext conftest$ac_exeext
27507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508  (eval $ac_link) 2>conftest.er1
27509  ac_status=$?
27510  grep -v '^ *+' conftest.er1 >conftest.err
27511  rm -f conftest.er1
27512  cat conftest.err >&5
27513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514  (exit $ac_status); } &&
27515	 { ac_try='test -z "$ac_c_werror_flag"
27516			 || test ! -s conftest.err'
27517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518  (eval $ac_try) 2>&5
27519  ac_status=$?
27520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521  (exit $ac_status); }; } &&
27522	 { ac_try='test -s conftest$ac_exeext'
27523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524  (eval $ac_try) 2>&5
27525  ac_status=$?
27526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527  (exit $ac_status); }; }; then
27528  eval "$as_ac_var=yes"
27529else
27530  echo "$as_me: failed program was:" >&5
27531sed 's/^/| /' conftest.$ac_ext >&5
27532
27533eval "$as_ac_var=no"
27534fi
27535rm -f conftest.err conftest.$ac_objext \
27536      conftest$ac_exeext conftest.$ac_ext
27537fi
27538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27540if test `eval echo '${'$as_ac_var'}'` = yes; then
27541  cat >>confdefs.h <<_ACEOF
27542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543_ACEOF
27544
27545fi
27546done
27547
27548
27549
27550
27551for ac_func in strtoll strtoq sysconf
27552do
27553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27554echo "$as_me:$LINENO: checking for $ac_func" >&5
27555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27556if eval "test \"\${$as_ac_var+set}\" = set"; then
27557  echo $ECHO_N "(cached) $ECHO_C" >&6
27558else
27559  cat >conftest.$ac_ext <<_ACEOF
27560/* confdefs.h.  */
27561_ACEOF
27562cat confdefs.h >>conftest.$ac_ext
27563cat >>conftest.$ac_ext <<_ACEOF
27564/* end confdefs.h.  */
27565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27566   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27567#define $ac_func innocuous_$ac_func
27568
27569/* System header to define __stub macros and hopefully few prototypes,
27570    which can conflict with char $ac_func (); below.
27571    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27572    <limits.h> exists even on freestanding compilers.  */
27573
27574#ifdef __STDC__
27575# include <limits.h>
27576#else
27577# include <assert.h>
27578#endif
27579
27580#undef $ac_func
27581
27582/* Override any gcc2 internal prototype to avoid an error.  */
27583#ifdef __cplusplus
27584extern "C"
27585{
27586#endif
27587/* We use char because int might match the return type of a gcc2
27588   builtin and then its argument prototype would still apply.  */
27589char $ac_func ();
27590/* The GNU C library defines this for functions which it implements
27591    to always fail with ENOSYS.  Some functions are actually named
27592    something starting with __ and the normal name is an alias.  */
27593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27594choke me
27595#else
27596char (*f) () = $ac_func;
27597#endif
27598#ifdef __cplusplus
27599}
27600#endif
27601
27602int
27603main ()
27604{
27605return f != $ac_func;
27606  ;
27607  return 0;
27608}
27609_ACEOF
27610rm -f conftest.$ac_objext conftest$ac_exeext
27611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27612  (eval $ac_link) 2>conftest.er1
27613  ac_status=$?
27614  grep -v '^ *+' conftest.er1 >conftest.err
27615  rm -f conftest.er1
27616  cat conftest.err >&5
27617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618  (exit $ac_status); } &&
27619	 { ac_try='test -z "$ac_c_werror_flag"
27620			 || test ! -s conftest.err'
27621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27622  (eval $ac_try) 2>&5
27623  ac_status=$?
27624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625  (exit $ac_status); }; } &&
27626	 { ac_try='test -s conftest$ac_exeext'
27627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628  (eval $ac_try) 2>&5
27629  ac_status=$?
27630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631  (exit $ac_status); }; }; then
27632  eval "$as_ac_var=yes"
27633else
27634  echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637eval "$as_ac_var=no"
27638fi
27639rm -f conftest.err conftest.$ac_objext \
27640      conftest$ac_exeext conftest.$ac_ext
27641fi
27642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27644if test `eval echo '${'$as_ac_var'}'` = yes; then
27645  cat >>confdefs.h <<_ACEOF
27646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27647_ACEOF
27648
27649fi
27650done
27651
27652echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27653echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27654if test "${llvm_cv_c_printf_a+set}" = set; then
27655  echo $ECHO_N "(cached) $ECHO_C" >&6
27656else
27657  ac_ext=c
27658ac_cpp='$CPP $CPPFLAGS'
27659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27661ac_compiler_gnu=$ac_cv_c_compiler_gnu
27662
27663 if test "$cross_compiling" = yes; then
27664  llvmac_cv_c_printf_a=no
27665else
27666  cat >conftest.$ac_ext <<_ACEOF
27667
27668  /* confdefs.h.  */
27669_ACEOF
27670cat confdefs.h >>conftest.$ac_ext
27671cat >>conftest.$ac_ext <<_ACEOF
27672/* end confdefs.h.  */
27673
27674#include <stdio.h>
27675#include <stdlib.h>
27676
27677int
27678main ()
27679{
27680
27681volatile double A, B;
27682char Buffer[100];
27683A = 1;
27684A /= 10.0;
27685sprintf(Buffer, "%a", A);
27686B = atof(Buffer);
27687if (A != B)
27688  return (1);
27689if (A != 0x1.999999999999ap-4)
27690  return (1);
27691return (0);
27692  ;
27693  return 0;
27694}
27695_ACEOF
27696rm -f conftest$ac_exeext
27697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27698  (eval $ac_link) 2>&5
27699  ac_status=$?
27700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703  (eval $ac_try) 2>&5
27704  ac_status=$?
27705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706  (exit $ac_status); }; }; then
27707  llvm_cv_c_printf_a=yes
27708else
27709  echo "$as_me: program exited with status $ac_status" >&5
27710echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
27713( exit $ac_status )
27714llvmac_cv_c_printf_a=no
27715fi
27716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27717fi
27718 ac_ext=c
27719ac_cpp='$CPP $CPPFLAGS'
27720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27722ac_compiler_gnu=$ac_cv_c_compiler_gnu
27723
27724fi
27725echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27726echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27727 if test "$llvm_cv_c_printf_a" = "yes"; then
27728
27729cat >>confdefs.h <<\_ACEOF
27730#define HAVE_PRINTF_A 1
27731_ACEOF
27732
27733 fi
27734
27735# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27736# for constant arguments.  Useless!
27737echo "$as_me:$LINENO: checking for working alloca.h" >&5
27738echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27739if test "${ac_cv_working_alloca_h+set}" = set; then
27740  echo $ECHO_N "(cached) $ECHO_C" >&6
27741else
27742  cat >conftest.$ac_ext <<_ACEOF
27743/* confdefs.h.  */
27744_ACEOF
27745cat confdefs.h >>conftest.$ac_ext
27746cat >>conftest.$ac_ext <<_ACEOF
27747/* end confdefs.h.  */
27748#include <alloca.h>
27749int
27750main ()
27751{
27752char *p = (char *) alloca (2 * sizeof (int));
27753  ;
27754  return 0;
27755}
27756_ACEOF
27757rm -f conftest.$ac_objext conftest$ac_exeext
27758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27759  (eval $ac_link) 2>conftest.er1
27760  ac_status=$?
27761  grep -v '^ *+' conftest.er1 >conftest.err
27762  rm -f conftest.er1
27763  cat conftest.err >&5
27764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765  (exit $ac_status); } &&
27766	 { ac_try='test -z "$ac_c_werror_flag"
27767			 || test ! -s conftest.err'
27768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769  (eval $ac_try) 2>&5
27770  ac_status=$?
27771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772  (exit $ac_status); }; } &&
27773	 { ac_try='test -s conftest$ac_exeext'
27774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27775  (eval $ac_try) 2>&5
27776  ac_status=$?
27777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778  (exit $ac_status); }; }; then
27779  ac_cv_working_alloca_h=yes
27780else
27781  echo "$as_me: failed program was:" >&5
27782sed 's/^/| /' conftest.$ac_ext >&5
27783
27784ac_cv_working_alloca_h=no
27785fi
27786rm -f conftest.err conftest.$ac_objext \
27787      conftest$ac_exeext conftest.$ac_ext
27788fi
27789echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27790echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27791if test $ac_cv_working_alloca_h = yes; then
27792
27793cat >>confdefs.h <<\_ACEOF
27794#define HAVE_ALLOCA_H 1
27795_ACEOF
27796
27797fi
27798
27799echo "$as_me:$LINENO: checking for alloca" >&5
27800echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27801if test "${ac_cv_func_alloca_works+set}" = set; then
27802  echo $ECHO_N "(cached) $ECHO_C" >&6
27803else
27804  cat >conftest.$ac_ext <<_ACEOF
27805/* confdefs.h.  */
27806_ACEOF
27807cat confdefs.h >>conftest.$ac_ext
27808cat >>conftest.$ac_ext <<_ACEOF
27809/* end confdefs.h.  */
27810#ifdef __GNUC__
27811# define alloca __builtin_alloca
27812#else
27813# ifdef _MSC_VER
27814#  include <malloc.h>
27815#  define alloca _alloca
27816# else
27817#  if HAVE_ALLOCA_H
27818#   include <alloca.h>
27819#  else
27820#   ifdef _AIX
27821 #pragma alloca
27822#   else
27823#    ifndef alloca /* predefined by HP cc +Olibcalls */
27824char *alloca ();
27825#    endif
27826#   endif
27827#  endif
27828# endif
27829#endif
27830
27831int
27832main ()
27833{
27834char *p = (char *) alloca (1);
27835  ;
27836  return 0;
27837}
27838_ACEOF
27839rm -f conftest.$ac_objext conftest$ac_exeext
27840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27841  (eval $ac_link) 2>conftest.er1
27842  ac_status=$?
27843  grep -v '^ *+' conftest.er1 >conftest.err
27844  rm -f conftest.er1
27845  cat conftest.err >&5
27846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847  (exit $ac_status); } &&
27848	 { ac_try='test -z "$ac_c_werror_flag"
27849			 || test ! -s conftest.err'
27850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851  (eval $ac_try) 2>&5
27852  ac_status=$?
27853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854  (exit $ac_status); }; } &&
27855	 { ac_try='test -s conftest$ac_exeext'
27856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857  (eval $ac_try) 2>&5
27858  ac_status=$?
27859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860  (exit $ac_status); }; }; then
27861  ac_cv_func_alloca_works=yes
27862else
27863  echo "$as_me: failed program was:" >&5
27864sed 's/^/| /' conftest.$ac_ext >&5
27865
27866ac_cv_func_alloca_works=no
27867fi
27868rm -f conftest.err conftest.$ac_objext \
27869      conftest$ac_exeext conftest.$ac_ext
27870fi
27871echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27872echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27873
27874if test $ac_cv_func_alloca_works = yes; then
27875
27876cat >>confdefs.h <<\_ACEOF
27877#define HAVE_ALLOCA 1
27878_ACEOF
27879
27880else
27881  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27882# that cause trouble.  Some versions do not even contain alloca or
27883# contain a buggy version.  If you still want to use their alloca,
27884# use ar to extract alloca.o from them instead of compiling alloca.c.
27885
27886ALLOCA=alloca.$ac_objext
27887
27888cat >>confdefs.h <<\_ACEOF
27889#define C_ALLOCA 1
27890_ACEOF
27891
27892
27893echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27894echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27895if test "${ac_cv_os_cray+set}" = set; then
27896  echo $ECHO_N "(cached) $ECHO_C" >&6
27897else
27898  cat >conftest.$ac_ext <<_ACEOF
27899/* confdefs.h.  */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h.  */
27904#if defined(CRAY) && ! defined(CRAY2)
27905webecray
27906#else
27907wenotbecray
27908#endif
27909
27910_ACEOF
27911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27912  $EGREP "webecray" >/dev/null 2>&1; then
27913  ac_cv_os_cray=yes
27914else
27915  ac_cv_os_cray=no
27916fi
27917rm -f conftest*
27918
27919fi
27920echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27921echo "${ECHO_T}$ac_cv_os_cray" >&6
27922if test $ac_cv_os_cray = yes; then
27923  for ac_func in _getb67 GETB67 getb67; do
27924    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27925echo "$as_me:$LINENO: checking for $ac_func" >&5
27926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27927if eval "test \"\${$as_ac_var+set}\" = set"; then
27928  echo $ECHO_N "(cached) $ECHO_C" >&6
27929else
27930  cat >conftest.$ac_ext <<_ACEOF
27931/* confdefs.h.  */
27932_ACEOF
27933cat confdefs.h >>conftest.$ac_ext
27934cat >>conftest.$ac_ext <<_ACEOF
27935/* end confdefs.h.  */
27936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27937   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27938#define $ac_func innocuous_$ac_func
27939
27940/* System header to define __stub macros and hopefully few prototypes,
27941    which can conflict with char $ac_func (); below.
27942    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27943    <limits.h> exists even on freestanding compilers.  */
27944
27945#ifdef __STDC__
27946# include <limits.h>
27947#else
27948# include <assert.h>
27949#endif
27950
27951#undef $ac_func
27952
27953/* Override any gcc2 internal prototype to avoid an error.  */
27954#ifdef __cplusplus
27955extern "C"
27956{
27957#endif
27958/* We use char because int might match the return type of a gcc2
27959   builtin and then its argument prototype would still apply.  */
27960char $ac_func ();
27961/* The GNU C library defines this for functions which it implements
27962    to always fail with ENOSYS.  Some functions are actually named
27963    something starting with __ and the normal name is an alias.  */
27964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27965choke me
27966#else
27967char (*f) () = $ac_func;
27968#endif
27969#ifdef __cplusplus
27970}
27971#endif
27972
27973int
27974main ()
27975{
27976return f != $ac_func;
27977  ;
27978  return 0;
27979}
27980_ACEOF
27981rm -f conftest.$ac_objext conftest$ac_exeext
27982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27983  (eval $ac_link) 2>conftest.er1
27984  ac_status=$?
27985  grep -v '^ *+' conftest.er1 >conftest.err
27986  rm -f conftest.er1
27987  cat conftest.err >&5
27988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989  (exit $ac_status); } &&
27990	 { ac_try='test -z "$ac_c_werror_flag"
27991			 || test ! -s conftest.err'
27992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993  (eval $ac_try) 2>&5
27994  ac_status=$?
27995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996  (exit $ac_status); }; } &&
27997	 { ac_try='test -s conftest$ac_exeext'
27998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999  (eval $ac_try) 2>&5
28000  ac_status=$?
28001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002  (exit $ac_status); }; }; then
28003  eval "$as_ac_var=yes"
28004else
28005  echo "$as_me: failed program was:" >&5
28006sed 's/^/| /' conftest.$ac_ext >&5
28007
28008eval "$as_ac_var=no"
28009fi
28010rm -f conftest.err conftest.$ac_objext \
28011      conftest$ac_exeext conftest.$ac_ext
28012fi
28013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28015if test `eval echo '${'$as_ac_var'}'` = yes; then
28016
28017cat >>confdefs.h <<_ACEOF
28018#define CRAY_STACKSEG_END $ac_func
28019_ACEOF
28020
28021    break
28022fi
28023
28024  done
28025fi
28026
28027echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28028echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28029if test "${ac_cv_c_stack_direction+set}" = set; then
28030  echo $ECHO_N "(cached) $ECHO_C" >&6
28031else
28032  if test "$cross_compiling" = yes; then
28033  ac_cv_c_stack_direction=0
28034else
28035  cat >conftest.$ac_ext <<_ACEOF
28036/* confdefs.h.  */
28037_ACEOF
28038cat confdefs.h >>conftest.$ac_ext
28039cat >>conftest.$ac_ext <<_ACEOF
28040/* end confdefs.h.  */
28041int
28042find_stack_direction ()
28043{
28044  static char *addr = 0;
28045  auto char dummy;
28046  if (addr == 0)
28047    {
28048      addr = &dummy;
28049      return find_stack_direction ();
28050    }
28051  else
28052    return (&dummy > addr) ? 1 : -1;
28053}
28054
28055int
28056main ()
28057{
28058  exit (find_stack_direction () < 0);
28059}
28060_ACEOF
28061rm -f conftest$ac_exeext
28062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063  (eval $ac_link) 2>&5
28064  ac_status=$?
28065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28068  (eval $ac_try) 2>&5
28069  ac_status=$?
28070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071  (exit $ac_status); }; }; then
28072  ac_cv_c_stack_direction=1
28073else
28074  echo "$as_me: program exited with status $ac_status" >&5
28075echo "$as_me: failed program was:" >&5
28076sed 's/^/| /' conftest.$ac_ext >&5
28077
28078( exit $ac_status )
28079ac_cv_c_stack_direction=-1
28080fi
28081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28082fi
28083fi
28084echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28085echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28086
28087cat >>confdefs.h <<_ACEOF
28088#define STACK_DIRECTION $ac_cv_c_stack_direction
28089_ACEOF
28090
28091
28092fi
28093
28094
28095echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28096echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28097if test "${ac_cv_func_rand48+set}" = set; then
28098  echo $ECHO_N "(cached) $ECHO_C" >&6
28099else
28100  ac_ext=cc
28101ac_cpp='$CXXCPP $CPPFLAGS'
28102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28105
28106   cat >conftest.$ac_ext <<_ACEOF
28107/* confdefs.h.  */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h.  */
28112#include <stdlib.h>
28113int
28114main ()
28115{
28116srand48(0);lrand48();drand48();
28117  ;
28118  return 0;
28119}
28120_ACEOF
28121rm -f conftest.$ac_objext
28122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28123  (eval $ac_compile) 2>conftest.er1
28124  ac_status=$?
28125  grep -v '^ *+' conftest.er1 >conftest.err
28126  rm -f conftest.er1
28127  cat conftest.err >&5
28128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129  (exit $ac_status); } &&
28130	 { ac_try='test -z "$ac_cxx_werror_flag"
28131			 || test ! -s conftest.err'
28132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133  (eval $ac_try) 2>&5
28134  ac_status=$?
28135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136  (exit $ac_status); }; } &&
28137	 { ac_try='test -s conftest.$ac_objext'
28138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139  (eval $ac_try) 2>&5
28140  ac_status=$?
28141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142  (exit $ac_status); }; }; then
28143  ac_cv_func_rand48=yes
28144else
28145  echo "$as_me: failed program was:" >&5
28146sed 's/^/| /' conftest.$ac_ext >&5
28147
28148ac_cv_func_rand48=no
28149fi
28150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28151  ac_ext=c
28152ac_cpp='$CPP $CPPFLAGS'
28153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28155ac_compiler_gnu=$ac_cv_c_compiler_gnu
28156
28157fi
28158echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28159echo "${ECHO_T}$ac_cv_func_rand48" >&6
28160
28161if test "$ac_cv_func_rand48" = "yes" ; then
28162
28163cat >>confdefs.h <<\_ACEOF
28164#define HAVE_RAND48 1
28165_ACEOF
28166
28167fi
28168
28169
28170echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28171echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28172if test "${ac_cv_cxx_namespaces+set}" = set; then
28173  echo $ECHO_N "(cached) $ECHO_C" >&6
28174else
28175  ac_ext=cc
28176ac_cpp='$CXXCPP $CPPFLAGS'
28177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28180
28181 cat >conftest.$ac_ext <<_ACEOF
28182/* confdefs.h.  */
28183_ACEOF
28184cat confdefs.h >>conftest.$ac_ext
28185cat >>conftest.$ac_ext <<_ACEOF
28186/* end confdefs.h.  */
28187namespace Outer { namespace Inner { int i = 0; }}
28188int
28189main ()
28190{
28191using namespace Outer::Inner; return i;
28192  ;
28193  return 0;
28194}
28195_ACEOF
28196rm -f conftest.$ac_objext
28197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28198  (eval $ac_compile) 2>conftest.er1
28199  ac_status=$?
28200  grep -v '^ *+' conftest.er1 >conftest.err
28201  rm -f conftest.er1
28202  cat conftest.err >&5
28203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204  (exit $ac_status); } &&
28205	 { ac_try='test -z "$ac_cxx_werror_flag"
28206			 || test ! -s conftest.err'
28207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208  (eval $ac_try) 2>&5
28209  ac_status=$?
28210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211  (exit $ac_status); }; } &&
28212	 { ac_try='test -s conftest.$ac_objext'
28213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214  (eval $ac_try) 2>&5
28215  ac_status=$?
28216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217  (exit $ac_status); }; }; then
28218  ac_cv_cxx_namespaces=yes
28219else
28220  echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223ac_cv_cxx_namespaces=no
28224fi
28225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28226 ac_ext=c
28227ac_cpp='$CPP $CPPFLAGS'
28228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28230ac_compiler_gnu=$ac_cv_c_compiler_gnu
28231
28232
28233fi
28234echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28235echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28236if test "$ac_cv_cxx_namespaces" = yes; then
28237
28238cat >>confdefs.h <<\_ACEOF
28239#define HAVE_NAMESPACES
28240_ACEOF
28241
28242fi
28243
28244echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28245echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28246if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28247  echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249
28250  ac_ext=cc
28251ac_cpp='$CXXCPP $CPPFLAGS'
28252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28255
28256  cat >conftest.$ac_ext <<_ACEOF
28257/* confdefs.h.  */
28258_ACEOF
28259cat confdefs.h >>conftest.$ac_ext
28260cat >>conftest.$ac_ext <<_ACEOF
28261/* end confdefs.h.  */
28262#include <ext/hash_map>
28263#ifdef HAVE_NAMESPACES
28264using namespace std;
28265#endif
28266int
28267main ()
28268{
28269hash_map<int, int> t;
28270  ;
28271  return 0;
28272}
28273_ACEOF
28274rm -f conftest.$ac_objext
28275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28276  (eval $ac_compile) 2>conftest.er1
28277  ac_status=$?
28278  grep -v '^ *+' conftest.er1 >conftest.err
28279  rm -f conftest.er1
28280  cat conftest.err >&5
28281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282  (exit $ac_status); } &&
28283	 { ac_try='test -z "$ac_cxx_werror_flag"
28284			 || test ! -s conftest.err'
28285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286  (eval $ac_try) 2>&5
28287  ac_status=$?
28288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289  (exit $ac_status); }; } &&
28290	 { ac_try='test -s conftest.$ac_objext'
28291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292  (eval $ac_try) 2>&5
28293  ac_status=$?
28294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295  (exit $ac_status); }; }; then
28296  ac_cv_cxx_have_std_ext_hash_map=yes
28297else
28298  echo "$as_me: failed program was:" >&5
28299sed 's/^/| /' conftest.$ac_ext >&5
28300
28301ac_cv_cxx_have_std_ext_hash_map=no
28302fi
28303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28304  ac_ext=c
28305ac_cpp='$CPP $CPPFLAGS'
28306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28308ac_compiler_gnu=$ac_cv_c_compiler_gnu
28309
28310fi
28311echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28312echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28313 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28314 then
28315
28316cat >>confdefs.h <<\_ACEOF
28317#define HAVE_STD_EXT_HASH_MAP 1
28318_ACEOF
28319
28320 else
28321
28322cat >>confdefs.h <<\_ACEOF
28323#define HAVE_STD_EXT_HASH_MAP 0
28324_ACEOF
28325
28326 fi
28327
28328 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28329echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28330if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28331  echo $ECHO_N "(cached) $ECHO_C" >&6
28332else
28333
28334  ac_ext=cc
28335ac_cpp='$CXXCPP $CPPFLAGS'
28336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28339
28340  cat >conftest.$ac_ext <<_ACEOF
28341/* confdefs.h.  */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h.  */
28346#include <ext/hash_map>
28347#ifdef HAVE_NAMESPACES
28348using namespace __gnu_cxx;
28349#endif
28350int
28351main ()
28352{
28353hash_map<int,int> t;
28354  ;
28355  return 0;
28356}
28357_ACEOF
28358rm -f conftest.$ac_objext
28359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28360  (eval $ac_compile) 2>conftest.er1
28361  ac_status=$?
28362  grep -v '^ *+' conftest.er1 >conftest.err
28363  rm -f conftest.er1
28364  cat conftest.err >&5
28365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366  (exit $ac_status); } &&
28367	 { ac_try='test -z "$ac_cxx_werror_flag"
28368			 || test ! -s conftest.err'
28369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370  (eval $ac_try) 2>&5
28371  ac_status=$?
28372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373  (exit $ac_status); }; } &&
28374	 { ac_try='test -s conftest.$ac_objext'
28375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376  (eval $ac_try) 2>&5
28377  ac_status=$?
28378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379  (exit $ac_status); }; }; then
28380  ac_cv_cxx_have_gnu_ext_hash_map=yes
28381else
28382  echo "$as_me: failed program was:" >&5
28383sed 's/^/| /' conftest.$ac_ext >&5
28384
28385ac_cv_cxx_have_gnu_ext_hash_map=no
28386fi
28387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28388  ac_ext=c
28389ac_cpp='$CPP $CPPFLAGS'
28390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28392ac_compiler_gnu=$ac_cv_c_compiler_gnu
28393
28394fi
28395echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28396echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28397 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28398 then
28399
28400cat >>confdefs.h <<\_ACEOF
28401#define HAVE_GNU_EXT_HASH_MAP 1
28402_ACEOF
28403
28404 else
28405
28406cat >>confdefs.h <<\_ACEOF
28407#define HAVE_GNU_EXT_HASH_MAP 0
28408_ACEOF
28409
28410 fi
28411
28412 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28413echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28414if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28415  echo $ECHO_N "(cached) $ECHO_C" >&6
28416else
28417
28418  ac_ext=cc
28419ac_cpp='$CXXCPP $CPPFLAGS'
28420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28423
28424  cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h.  */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h.  */
28430#include <hash_map>
28431int
28432main ()
28433{
28434hash_map<int,int> t;
28435  ;
28436  return 0;
28437}
28438_ACEOF
28439rm -f conftest.$ac_objext
28440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28441  (eval $ac_compile) 2>conftest.er1
28442  ac_status=$?
28443  grep -v '^ *+' conftest.er1 >conftest.err
28444  rm -f conftest.er1
28445  cat conftest.err >&5
28446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447  (exit $ac_status); } &&
28448	 { ac_try='test -z "$ac_cxx_werror_flag"
28449			 || test ! -s conftest.err'
28450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451  (eval $ac_try) 2>&5
28452  ac_status=$?
28453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454  (exit $ac_status); }; } &&
28455	 { ac_try='test -s conftest.$ac_objext'
28456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457  (eval $ac_try) 2>&5
28458  ac_status=$?
28459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460  (exit $ac_status); }; }; then
28461  ac_cv_cxx_have_global_hash_map=yes
28462else
28463  echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
28466ac_cv_cxx_have_global_hash_map=no
28467fi
28468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28469  ac_ext=c
28470ac_cpp='$CPP $CPPFLAGS'
28471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28473ac_compiler_gnu=$ac_cv_c_compiler_gnu
28474
28475fi
28476echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28477echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28478 if test "$ac_cv_cxx_have_global_hash_map" = yes
28479 then
28480
28481cat >>confdefs.h <<\_ACEOF
28482#define HAVE_GLOBAL_HASH_MAP 1
28483_ACEOF
28484
28485 else
28486
28487cat >>confdefs.h <<\_ACEOF
28488#define HAVE_GLOBAL_HASH_MAP 0
28489_ACEOF
28490
28491 fi
28492
28493echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28494echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28495if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28496  echo $ECHO_N "(cached) $ECHO_C" >&6
28497else
28498
28499  ac_ext=cc
28500ac_cpp='$CXXCPP $CPPFLAGS'
28501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28504
28505  cat >conftest.$ac_ext <<_ACEOF
28506/* confdefs.h.  */
28507_ACEOF
28508cat confdefs.h >>conftest.$ac_ext
28509cat >>conftest.$ac_ext <<_ACEOF
28510/* end confdefs.h.  */
28511#include <ext/hash_set>
28512#ifdef HAVE_NAMESPACES
28513using namespace std;
28514#endif
28515int
28516main ()
28517{
28518hash_set<int> t;
28519  ;
28520  return 0;
28521}
28522_ACEOF
28523rm -f conftest.$ac_objext
28524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28525  (eval $ac_compile) 2>conftest.er1
28526  ac_status=$?
28527  grep -v '^ *+' conftest.er1 >conftest.err
28528  rm -f conftest.er1
28529  cat conftest.err >&5
28530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531  (exit $ac_status); } &&
28532	 { ac_try='test -z "$ac_cxx_werror_flag"
28533			 || test ! -s conftest.err'
28534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535  (eval $ac_try) 2>&5
28536  ac_status=$?
28537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538  (exit $ac_status); }; } &&
28539	 { ac_try='test -s conftest.$ac_objext'
28540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541  (eval $ac_try) 2>&5
28542  ac_status=$?
28543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544  (exit $ac_status); }; }; then
28545  ac_cv_cxx_have_std_ext_hash_set=yes
28546else
28547  echo "$as_me: failed program was:" >&5
28548sed 's/^/| /' conftest.$ac_ext >&5
28549
28550ac_cv_cxx_have_std_ext_hash_set=no
28551fi
28552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28553  ac_ext=c
28554ac_cpp='$CPP $CPPFLAGS'
28555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28557ac_compiler_gnu=$ac_cv_c_compiler_gnu
28558
28559fi
28560echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28561echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28562 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28563 then
28564
28565cat >>confdefs.h <<\_ACEOF
28566#define HAVE_STD_EXT_HASH_SET 1
28567_ACEOF
28568
28569 else
28570
28571cat >>confdefs.h <<\_ACEOF
28572#define HAVE_STD_EXT_HASH_SET 0
28573_ACEOF
28574
28575 fi
28576
28577 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28578echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28579if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28580  echo $ECHO_N "(cached) $ECHO_C" >&6
28581else
28582
28583  ac_ext=cc
28584ac_cpp='$CXXCPP $CPPFLAGS'
28585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28588
28589  cat >conftest.$ac_ext <<_ACEOF
28590/* confdefs.h.  */
28591_ACEOF
28592cat confdefs.h >>conftest.$ac_ext
28593cat >>conftest.$ac_ext <<_ACEOF
28594/* end confdefs.h.  */
28595#include <ext/hash_set>
28596#ifdef HAVE_NAMESPACES
28597using namespace __gnu_cxx;
28598#endif
28599int
28600main ()
28601{
28602hash_set<int> t;
28603  ;
28604  return 0;
28605}
28606_ACEOF
28607rm -f conftest.$ac_objext
28608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28609  (eval $ac_compile) 2>conftest.er1
28610  ac_status=$?
28611  grep -v '^ *+' conftest.er1 >conftest.err
28612  rm -f conftest.er1
28613  cat conftest.err >&5
28614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615  (exit $ac_status); } &&
28616	 { ac_try='test -z "$ac_cxx_werror_flag"
28617			 || test ! -s conftest.err'
28618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619  (eval $ac_try) 2>&5
28620  ac_status=$?
28621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622  (exit $ac_status); }; } &&
28623	 { ac_try='test -s conftest.$ac_objext'
28624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625  (eval $ac_try) 2>&5
28626  ac_status=$?
28627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628  (exit $ac_status); }; }; then
28629  ac_cv_cxx_have_gnu_ext_hash_set=yes
28630else
28631  echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634ac_cv_cxx_have_gnu_ext_hash_set=no
28635fi
28636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28637  ac_ext=c
28638ac_cpp='$CPP $CPPFLAGS'
28639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28641ac_compiler_gnu=$ac_cv_c_compiler_gnu
28642
28643fi
28644echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28645echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28646 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28647 then
28648
28649cat >>confdefs.h <<\_ACEOF
28650#define HAVE_GNU_EXT_HASH_SET 1
28651_ACEOF
28652
28653 else
28654
28655cat >>confdefs.h <<\_ACEOF
28656#define HAVE_GNU_EXT_HASH_SET 0
28657_ACEOF
28658
28659 fi
28660
28661 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28662echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28663if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28664  echo $ECHO_N "(cached) $ECHO_C" >&6
28665else
28666
28667  ac_ext=cc
28668ac_cpp='$CXXCPP $CPPFLAGS'
28669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28672
28673  cat >conftest.$ac_ext <<_ACEOF
28674/* confdefs.h.  */
28675_ACEOF
28676cat confdefs.h >>conftest.$ac_ext
28677cat >>conftest.$ac_ext <<_ACEOF
28678/* end confdefs.h.  */
28679#include <hash_set>
28680int
28681main ()
28682{
28683hash_set<int> t; return 0;
28684  ;
28685  return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext
28689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28690  (eval $ac_compile) 2>conftest.er1
28691  ac_status=$?
28692  grep -v '^ *+' conftest.er1 >conftest.err
28693  rm -f conftest.er1
28694  cat conftest.err >&5
28695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696  (exit $ac_status); } &&
28697	 { ac_try='test -z "$ac_cxx_werror_flag"
28698			 || test ! -s conftest.err'
28699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700  (eval $ac_try) 2>&5
28701  ac_status=$?
28702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703  (exit $ac_status); }; } &&
28704	 { ac_try='test -s conftest.$ac_objext'
28705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28706  (eval $ac_try) 2>&5
28707  ac_status=$?
28708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709  (exit $ac_status); }; }; then
28710  ac_cv_cxx_have_global_hash_set=yes
28711else
28712  echo "$as_me: failed program was:" >&5
28713sed 's/^/| /' conftest.$ac_ext >&5
28714
28715ac_cv_cxx_have_global_hash_set=no
28716fi
28717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28718  ac_ext=c
28719ac_cpp='$CPP $CPPFLAGS'
28720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28722ac_compiler_gnu=$ac_cv_c_compiler_gnu
28723
28724fi
28725echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28726echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28727 if test "$ac_cv_cxx_have_global_hash_set" = yes
28728 then
28729
28730cat >>confdefs.h <<\_ACEOF
28731#define HAVE_GLOBAL_HASH_SET 1
28732_ACEOF
28733
28734 else
28735
28736cat >>confdefs.h <<\_ACEOF
28737#define HAVE_GLOBAL_HASH_SET 0
28738_ACEOF
28739
28740 fi
28741
28742echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28743echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28744if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28745  echo $ECHO_N "(cached) $ECHO_C" >&6
28746else
28747
28748  ac_ext=cc
28749ac_cpp='$CXXCPP $CPPFLAGS'
28750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28753
28754  cat >conftest.$ac_ext <<_ACEOF
28755/* confdefs.h.  */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h.  */
28760#include <iterator>
28761#ifdef HAVE_NAMESPACES
28762using namespace std;
28763#endif
28764int
28765main ()
28766{
28767iterator<int,int,int> t; return 0;
28768  ;
28769  return 0;
28770}
28771_ACEOF
28772rm -f conftest.$ac_objext
28773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28774  (eval $ac_compile) 2>conftest.er1
28775  ac_status=$?
28776  grep -v '^ *+' conftest.er1 >conftest.err
28777  rm -f conftest.er1
28778  cat conftest.err >&5
28779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780  (exit $ac_status); } &&
28781	 { ac_try='test -z "$ac_cxx_werror_flag"
28782			 || test ! -s conftest.err'
28783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784  (eval $ac_try) 2>&5
28785  ac_status=$?
28786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787  (exit $ac_status); }; } &&
28788	 { ac_try='test -s conftest.$ac_objext'
28789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790  (eval $ac_try) 2>&5
28791  ac_status=$?
28792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793  (exit $ac_status); }; }; then
28794  ac_cv_cxx_have_std_iterator=yes
28795else
28796  echo "$as_me: failed program was:" >&5
28797sed 's/^/| /' conftest.$ac_ext >&5
28798
28799ac_cv_cxx_have_std_iterator=no
28800fi
28801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28802  ac_ext=c
28803ac_cpp='$CPP $CPPFLAGS'
28804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28806ac_compiler_gnu=$ac_cv_c_compiler_gnu
28807
28808
28809fi
28810echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28811echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28812if test "$ac_cv_cxx_have_std_iterator" = yes
28813then
28814
28815cat >>confdefs.h <<\_ACEOF
28816#define HAVE_STD_ITERATOR 1
28817_ACEOF
28818
28819else
28820
28821cat >>confdefs.h <<\_ACEOF
28822#define HAVE_STD_ITERATOR 0
28823_ACEOF
28824
28825fi
28826
28827echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28828echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28829if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28830  echo $ECHO_N "(cached) $ECHO_C" >&6
28831else
28832
28833  ac_ext=cc
28834ac_cpp='$CXXCPP $CPPFLAGS'
28835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28838
28839  cat >conftest.$ac_ext <<_ACEOF
28840/* confdefs.h.  */
28841_ACEOF
28842cat confdefs.h >>conftest.$ac_ext
28843cat >>conftest.$ac_ext <<_ACEOF
28844/* end confdefs.h.  */
28845#include <iterator>
28846#ifdef HAVE_NAMESPACES
28847using namespace std;
28848#endif
28849int
28850main ()
28851{
28852bidirectional_iterator<int,int> t; return 0;
28853  ;
28854  return 0;
28855}
28856_ACEOF
28857rm -f conftest.$ac_objext
28858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28859  (eval $ac_compile) 2>conftest.er1
28860  ac_status=$?
28861  grep -v '^ *+' conftest.er1 >conftest.err
28862  rm -f conftest.er1
28863  cat conftest.err >&5
28864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865  (exit $ac_status); } &&
28866	 { ac_try='test -z "$ac_cxx_werror_flag"
28867			 || test ! -s conftest.err'
28868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869  (eval $ac_try) 2>&5
28870  ac_status=$?
28871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872  (exit $ac_status); }; } &&
28873	 { ac_try='test -s conftest.$ac_objext'
28874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875  (eval $ac_try) 2>&5
28876  ac_status=$?
28877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878  (exit $ac_status); }; }; then
28879  ac_cv_cxx_have_bi_iterator=yes
28880else
28881  echo "$as_me: failed program was:" >&5
28882sed 's/^/| /' conftest.$ac_ext >&5
28883
28884ac_cv_cxx_have_bi_iterator=no
28885fi
28886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28887  ac_ext=c
28888ac_cpp='$CPP $CPPFLAGS'
28889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28891ac_compiler_gnu=$ac_cv_c_compiler_gnu
28892
28893
28894fi
28895echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28896echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28897if test "$ac_cv_cxx_have_bi_iterator" = yes
28898then
28899
28900cat >>confdefs.h <<\_ACEOF
28901#define HAVE_BI_ITERATOR 1
28902_ACEOF
28903
28904else
28905
28906cat >>confdefs.h <<\_ACEOF
28907#define HAVE_BI_ITERATOR 0
28908_ACEOF
28909
28910fi
28911
28912echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28913echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28914if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28915  echo $ECHO_N "(cached) $ECHO_C" >&6
28916else
28917
28918  ac_ext=cc
28919ac_cpp='$CXXCPP $CPPFLAGS'
28920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28923
28924  cat >conftest.$ac_ext <<_ACEOF
28925/* confdefs.h.  */
28926_ACEOF
28927cat confdefs.h >>conftest.$ac_ext
28928cat >>conftest.$ac_ext <<_ACEOF
28929/* end confdefs.h.  */
28930#include <iterator>
28931#ifdef HAVE_NAMESPACES
28932using namespace std;
28933#endif
28934int
28935main ()
28936{
28937forward_iterator<int,int> t; return 0;
28938  ;
28939  return 0;
28940}
28941_ACEOF
28942rm -f conftest.$ac_objext
28943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28944  (eval $ac_compile) 2>conftest.er1
28945  ac_status=$?
28946  grep -v '^ *+' conftest.er1 >conftest.err
28947  rm -f conftest.er1
28948  cat conftest.err >&5
28949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950  (exit $ac_status); } &&
28951	 { ac_try='test -z "$ac_cxx_werror_flag"
28952			 || test ! -s conftest.err'
28953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954  (eval $ac_try) 2>&5
28955  ac_status=$?
28956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957  (exit $ac_status); }; } &&
28958	 { ac_try='test -s conftest.$ac_objext'
28959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960  (eval $ac_try) 2>&5
28961  ac_status=$?
28962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963  (exit $ac_status); }; }; then
28964  ac_cv_cxx_have_fwd_iterator=yes
28965else
28966  echo "$as_me: failed program was:" >&5
28967sed 's/^/| /' conftest.$ac_ext >&5
28968
28969ac_cv_cxx_have_fwd_iterator=no
28970fi
28971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28972  ac_ext=c
28973ac_cpp='$CPP $CPPFLAGS'
28974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28976ac_compiler_gnu=$ac_cv_c_compiler_gnu
28977
28978
28979fi
28980echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28981echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28982if test "$ac_cv_cxx_have_fwd_iterator" = yes
28983then
28984
28985cat >>confdefs.h <<\_ACEOF
28986#define HAVE_FWD_ITERATOR 1
28987_ACEOF
28988
28989else
28990
28991cat >>confdefs.h <<\_ACEOF
28992#define HAVE_FWD_ITERATOR 0
28993_ACEOF
28994
28995fi
28996
28997
28998echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28999echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29000if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29001  echo $ECHO_N "(cached) $ECHO_C" >&6
29002else
29003  ac_ext=cc
29004ac_cpp='$CXXCPP $CPPFLAGS'
29005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29008
29009   cat >conftest.$ac_ext <<_ACEOF
29010/* confdefs.h.  */
29011_ACEOF
29012cat confdefs.h >>conftest.$ac_ext
29013cat >>conftest.$ac_ext <<_ACEOF
29014/* end confdefs.h.  */
29015#include <math.h>
29016int
29017main ()
29018{
29019float f; isnan(f);
29020  ;
29021  return 0;
29022}
29023_ACEOF
29024rm -f conftest.$ac_objext
29025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29026  (eval $ac_compile) 2>conftest.er1
29027  ac_status=$?
29028  grep -v '^ *+' conftest.er1 >conftest.err
29029  rm -f conftest.er1
29030  cat conftest.err >&5
29031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032  (exit $ac_status); } &&
29033	 { ac_try='test -z "$ac_cxx_werror_flag"
29034			 || test ! -s conftest.err'
29035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036  (eval $ac_try) 2>&5
29037  ac_status=$?
29038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039  (exit $ac_status); }; } &&
29040	 { ac_try='test -s conftest.$ac_objext'
29041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042  (eval $ac_try) 2>&5
29043  ac_status=$?
29044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045  (exit $ac_status); }; }; then
29046  ac_cv_func_isnan_in_math_h=yes
29047else
29048  echo "$as_me: failed program was:" >&5
29049sed 's/^/| /' conftest.$ac_ext >&5
29050
29051ac_cv_func_isnan_in_math_h=no
29052fi
29053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29054  ac_ext=c
29055ac_cpp='$CPP $CPPFLAGS'
29056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29058ac_compiler_gnu=$ac_cv_c_compiler_gnu
29059
29060fi
29061echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29062echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29063
29064
29065if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29066
29067cat >>confdefs.h <<\_ACEOF
29068#define HAVE_ISNAN_IN_MATH_H 1
29069_ACEOF
29070
29071fi
29072
29073echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29074echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29075if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29076  echo $ECHO_N "(cached) $ECHO_C" >&6
29077else
29078  ac_ext=cc
29079ac_cpp='$CXXCPP $CPPFLAGS'
29080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29083
29084   cat >conftest.$ac_ext <<_ACEOF
29085/* confdefs.h.  */
29086_ACEOF
29087cat confdefs.h >>conftest.$ac_ext
29088cat >>conftest.$ac_ext <<_ACEOF
29089/* end confdefs.h.  */
29090#include <cmath>
29091int
29092main ()
29093{
29094float f; isnan(f);
29095  ;
29096  return 0;
29097}
29098_ACEOF
29099rm -f conftest.$ac_objext
29100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29101  (eval $ac_compile) 2>conftest.er1
29102  ac_status=$?
29103  grep -v '^ *+' conftest.er1 >conftest.err
29104  rm -f conftest.er1
29105  cat conftest.err >&5
29106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107  (exit $ac_status); } &&
29108	 { ac_try='test -z "$ac_cxx_werror_flag"
29109			 || test ! -s conftest.err'
29110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111  (eval $ac_try) 2>&5
29112  ac_status=$?
29113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114  (exit $ac_status); }; } &&
29115	 { ac_try='test -s conftest.$ac_objext'
29116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29117  (eval $ac_try) 2>&5
29118  ac_status=$?
29119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120  (exit $ac_status); }; }; then
29121  ac_cv_func_isnan_in_cmath=yes
29122else
29123  echo "$as_me: failed program was:" >&5
29124sed 's/^/| /' conftest.$ac_ext >&5
29125
29126ac_cv_func_isnan_in_cmath=no
29127fi
29128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29129  ac_ext=c
29130ac_cpp='$CPP $CPPFLAGS'
29131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29133ac_compiler_gnu=$ac_cv_c_compiler_gnu
29134
29135fi
29136echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29137echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29138
29139if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29140
29141cat >>confdefs.h <<\_ACEOF
29142#define HAVE_ISNAN_IN_CMATH 1
29143_ACEOF
29144
29145fi
29146
29147echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29148echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29149if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29150  echo $ECHO_N "(cached) $ECHO_C" >&6
29151else
29152  ac_ext=cc
29153ac_cpp='$CXXCPP $CPPFLAGS'
29154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29157
29158   cat >conftest.$ac_ext <<_ACEOF
29159/* confdefs.h.  */
29160_ACEOF
29161cat confdefs.h >>conftest.$ac_ext
29162cat >>conftest.$ac_ext <<_ACEOF
29163/* end confdefs.h.  */
29164#include <cmath>
29165int
29166main ()
29167{
29168float f; std::isnan(f);
29169  ;
29170  return 0;
29171}
29172_ACEOF
29173rm -f conftest.$ac_objext
29174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29175  (eval $ac_compile) 2>conftest.er1
29176  ac_status=$?
29177  grep -v '^ *+' conftest.er1 >conftest.err
29178  rm -f conftest.er1
29179  cat conftest.err >&5
29180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181  (exit $ac_status); } &&
29182	 { ac_try='test -z "$ac_cxx_werror_flag"
29183			 || test ! -s conftest.err'
29184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185  (eval $ac_try) 2>&5
29186  ac_status=$?
29187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188  (exit $ac_status); }; } &&
29189	 { ac_try='test -s conftest.$ac_objext'
29190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191  (eval $ac_try) 2>&5
29192  ac_status=$?
29193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194  (exit $ac_status); }; }; then
29195  ac_cv_func_std_isnan_in_cmath=yes
29196else
29197  echo "$as_me: failed program was:" >&5
29198sed 's/^/| /' conftest.$ac_ext >&5
29199
29200ac_cv_func_std_isnan_in_cmath=no
29201fi
29202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29203  ac_ext=c
29204ac_cpp='$CPP $CPPFLAGS'
29205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207ac_compiler_gnu=$ac_cv_c_compiler_gnu
29208
29209fi
29210echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29211echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29212
29213if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29214
29215cat >>confdefs.h <<\_ACEOF
29216#define HAVE_STD_ISNAN_IN_CMATH 1
29217_ACEOF
29218
29219fi
29220
29221
29222echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29223echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29224if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29225  echo $ECHO_N "(cached) $ECHO_C" >&6
29226else
29227  ac_ext=cc
29228ac_cpp='$CXXCPP $CPPFLAGS'
29229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29232
29233   cat >conftest.$ac_ext <<_ACEOF
29234/* confdefs.h.  */
29235_ACEOF
29236cat confdefs.h >>conftest.$ac_ext
29237cat >>conftest.$ac_ext <<_ACEOF
29238/* end confdefs.h.  */
29239#include <math.h>
29240int
29241main ()
29242{
29243float f; isinf(f);
29244  ;
29245  return 0;
29246}
29247_ACEOF
29248rm -f conftest.$ac_objext
29249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29250  (eval $ac_compile) 2>conftest.er1
29251  ac_status=$?
29252  grep -v '^ *+' conftest.er1 >conftest.err
29253  rm -f conftest.er1
29254  cat conftest.err >&5
29255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256  (exit $ac_status); } &&
29257	 { ac_try='test -z "$ac_cxx_werror_flag"
29258			 || test ! -s conftest.err'
29259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260  (eval $ac_try) 2>&5
29261  ac_status=$?
29262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263  (exit $ac_status); }; } &&
29264	 { ac_try='test -s conftest.$ac_objext'
29265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266  (eval $ac_try) 2>&5
29267  ac_status=$?
29268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269  (exit $ac_status); }; }; then
29270  ac_cv_func_isinf_in_math_h=yes
29271else
29272  echo "$as_me: failed program was:" >&5
29273sed 's/^/| /' conftest.$ac_ext >&5
29274
29275ac_cv_func_isinf_in_math_h=no
29276fi
29277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29278  ac_ext=c
29279ac_cpp='$CPP $CPPFLAGS'
29280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29282ac_compiler_gnu=$ac_cv_c_compiler_gnu
29283
29284fi
29285echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29286echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29287
29288if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29289
29290cat >>confdefs.h <<\_ACEOF
29291#define HAVE_ISINF_IN_MATH_H 1
29292_ACEOF
29293
29294fi
29295
29296echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29297echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29298if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29299  echo $ECHO_N "(cached) $ECHO_C" >&6
29300else
29301  ac_ext=cc
29302ac_cpp='$CXXCPP $CPPFLAGS'
29303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29306
29307   cat >conftest.$ac_ext <<_ACEOF
29308/* confdefs.h.  */
29309_ACEOF
29310cat confdefs.h >>conftest.$ac_ext
29311cat >>conftest.$ac_ext <<_ACEOF
29312/* end confdefs.h.  */
29313#include <cmath>
29314int
29315main ()
29316{
29317float f; isinf(f);
29318  ;
29319  return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext
29323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29324  (eval $ac_compile) 2>conftest.er1
29325  ac_status=$?
29326  grep -v '^ *+' conftest.er1 >conftest.err
29327  rm -f conftest.er1
29328  cat conftest.err >&5
29329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330  (exit $ac_status); } &&
29331	 { ac_try='test -z "$ac_cxx_werror_flag"
29332			 || test ! -s conftest.err'
29333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334  (eval $ac_try) 2>&5
29335  ac_status=$?
29336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337  (exit $ac_status); }; } &&
29338	 { ac_try='test -s conftest.$ac_objext'
29339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29340  (eval $ac_try) 2>&5
29341  ac_status=$?
29342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343  (exit $ac_status); }; }; then
29344  ac_cv_func_isinf_in_cmath=yes
29345else
29346  echo "$as_me: failed program was:" >&5
29347sed 's/^/| /' conftest.$ac_ext >&5
29348
29349ac_cv_func_isinf_in_cmath=no
29350fi
29351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29352  ac_ext=c
29353ac_cpp='$CPP $CPPFLAGS'
29354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29356ac_compiler_gnu=$ac_cv_c_compiler_gnu
29357
29358fi
29359echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29360echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29361
29362if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29363
29364cat >>confdefs.h <<\_ACEOF
29365#define HAVE_ISINF_IN_CMATH 1
29366_ACEOF
29367
29368fi
29369
29370echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29371echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29372if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29373  echo $ECHO_N "(cached) $ECHO_C" >&6
29374else
29375  ac_ext=cc
29376ac_cpp='$CXXCPP $CPPFLAGS'
29377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29380
29381   cat >conftest.$ac_ext <<_ACEOF
29382/* confdefs.h.  */
29383_ACEOF
29384cat confdefs.h >>conftest.$ac_ext
29385cat >>conftest.$ac_ext <<_ACEOF
29386/* end confdefs.h.  */
29387#include <cmath>
29388int
29389main ()
29390{
29391float f; std::isinf(f)}
29392  ;
29393  return 0;
29394}
29395_ACEOF
29396rm -f conftest.$ac_objext
29397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29398  (eval $ac_compile) 2>conftest.er1
29399  ac_status=$?
29400  grep -v '^ *+' conftest.er1 >conftest.err
29401  rm -f conftest.er1
29402  cat conftest.err >&5
29403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404  (exit $ac_status); } &&
29405	 { ac_try='test -z "$ac_cxx_werror_flag"
29406			 || test ! -s conftest.err'
29407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408  (eval $ac_try) 2>&5
29409  ac_status=$?
29410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411  (exit $ac_status); }; } &&
29412	 { ac_try='test -s conftest.$ac_objext'
29413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414  (eval $ac_try) 2>&5
29415  ac_status=$?
29416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417  (exit $ac_status); }; }; then
29418  ac_cv_func_std_isinf_in_cmath=yes
29419else
29420  echo "$as_me: failed program was:" >&5
29421sed 's/^/| /' conftest.$ac_ext >&5
29422
29423ac_cv_func_std_isinf_in_cmath=no
29424fi
29425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29426  ac_ext=c
29427ac_cpp='$CPP $CPPFLAGS'
29428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430ac_compiler_gnu=$ac_cv_c_compiler_gnu
29431
29432fi
29433echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29434echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29435
29436if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29437
29438cat >>confdefs.h <<\_ACEOF
29439#define HAVE_STD_ISINF_IN_CMATH 1
29440_ACEOF
29441
29442fi
29443
29444echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29445echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29446if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29447  echo $ECHO_N "(cached) $ECHO_C" >&6
29448else
29449  ac_ext=cc
29450ac_cpp='$CXXCPP $CPPFLAGS'
29451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29454
29455   cat >conftest.$ac_ext <<_ACEOF
29456/* confdefs.h.  */
29457_ACEOF
29458cat confdefs.h >>conftest.$ac_ext
29459cat >>conftest.$ac_ext <<_ACEOF
29460/* end confdefs.h.  */
29461#include <ieeefp.h>
29462int
29463main ()
29464{
29465float f; finite(f);
29466  ;
29467  return 0;
29468}
29469_ACEOF
29470rm -f conftest.$ac_objext
29471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29472  (eval $ac_compile) 2>conftest.er1
29473  ac_status=$?
29474  grep -v '^ *+' conftest.er1 >conftest.err
29475  rm -f conftest.er1
29476  cat conftest.err >&5
29477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478  (exit $ac_status); } &&
29479	 { ac_try='test -z "$ac_cxx_werror_flag"
29480			 || test ! -s conftest.err'
29481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482  (eval $ac_try) 2>&5
29483  ac_status=$?
29484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485  (exit $ac_status); }; } &&
29486	 { ac_try='test -s conftest.$ac_objext'
29487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29488  (eval $ac_try) 2>&5
29489  ac_status=$?
29490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491  (exit $ac_status); }; }; then
29492  ac_cv_func_finite_in_ieeefp_h=yes
29493else
29494  echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497ac_cv_func_finite_in_ieeefp_h=no
29498fi
29499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29500  ac_ext=c
29501ac_cpp='$CPP $CPPFLAGS'
29502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29504ac_compiler_gnu=$ac_cv_c_compiler_gnu
29505
29506fi
29507echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29508echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29509
29510if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29511
29512cat >>confdefs.h <<\_ACEOF
29513#define HAVE_FINITE_IN_IEEEFP_H 1
29514_ACEOF
29515
29516fi
29517
29518
29519
29520
29521
29522for ac_header in stdlib.h unistd.h
29523do
29524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29525if eval "test \"\${$as_ac_Header+set}\" = set"; then
29526  echo "$as_me:$LINENO: checking for $ac_header" >&5
29527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29528if eval "test \"\${$as_ac_Header+set}\" = set"; then
29529  echo $ECHO_N "(cached) $ECHO_C" >&6
29530fi
29531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29533else
29534  # Is the header compilable?
29535echo "$as_me:$LINENO: checking $ac_header usability" >&5
29536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29537cat >conftest.$ac_ext <<_ACEOF
29538/* confdefs.h.  */
29539_ACEOF
29540cat confdefs.h >>conftest.$ac_ext
29541cat >>conftest.$ac_ext <<_ACEOF
29542/* end confdefs.h.  */
29543$ac_includes_default
29544#include <$ac_header>
29545_ACEOF
29546rm -f conftest.$ac_objext
29547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29548  (eval $ac_compile) 2>conftest.er1
29549  ac_status=$?
29550  grep -v '^ *+' conftest.er1 >conftest.err
29551  rm -f conftest.er1
29552  cat conftest.err >&5
29553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554  (exit $ac_status); } &&
29555	 { ac_try='test -z "$ac_c_werror_flag"
29556			 || test ! -s conftest.err'
29557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558  (eval $ac_try) 2>&5
29559  ac_status=$?
29560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561  (exit $ac_status); }; } &&
29562	 { ac_try='test -s conftest.$ac_objext'
29563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564  (eval $ac_try) 2>&5
29565  ac_status=$?
29566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567  (exit $ac_status); }; }; then
29568  ac_header_compiler=yes
29569else
29570  echo "$as_me: failed program was:" >&5
29571sed 's/^/| /' conftest.$ac_ext >&5
29572
29573ac_header_compiler=no
29574fi
29575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29577echo "${ECHO_T}$ac_header_compiler" >&6
29578
29579# Is the header present?
29580echo "$as_me:$LINENO: checking $ac_header presence" >&5
29581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29582cat >conftest.$ac_ext <<_ACEOF
29583/* confdefs.h.  */
29584_ACEOF
29585cat confdefs.h >>conftest.$ac_ext
29586cat >>conftest.$ac_ext <<_ACEOF
29587/* end confdefs.h.  */
29588#include <$ac_header>
29589_ACEOF
29590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29591  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
29598  if test -s conftest.err; then
29599    ac_cpp_err=$ac_c_preproc_warn_flag
29600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29601  else
29602    ac_cpp_err=
29603  fi
29604else
29605  ac_cpp_err=yes
29606fi
29607if test -z "$ac_cpp_err"; then
29608  ac_header_preproc=yes
29609else
29610  echo "$as_me: failed program was:" >&5
29611sed 's/^/| /' conftest.$ac_ext >&5
29612
29613  ac_header_preproc=no
29614fi
29615rm -f conftest.err conftest.$ac_ext
29616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29617echo "${ECHO_T}$ac_header_preproc" >&6
29618
29619# So?  What about this header?
29620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29621  yes:no: )
29622    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29626    ac_header_preproc=yes
29627    ;;
29628  no:yes:* )
29629    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29631    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29632echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29633    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29635    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29636echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29639    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29641    (
29642      cat <<\_ASBOX
29643## ----------------------------------- ##
29644## Report this to llvmbugs@cs.uiuc.edu ##
29645## ----------------------------------- ##
29646_ASBOX
29647    ) |
29648      sed "s/^/$as_me: WARNING:     /" >&2
29649    ;;
29650esac
29651echo "$as_me:$LINENO: checking for $ac_header" >&5
29652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29653if eval "test \"\${$as_ac_Header+set}\" = set"; then
29654  echo $ECHO_N "(cached) $ECHO_C" >&6
29655else
29656  eval "$as_ac_Header=\$ac_header_preproc"
29657fi
29658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29660
29661fi
29662if test `eval echo '${'$as_ac_Header'}'` = yes; then
29663  cat >>confdefs.h <<_ACEOF
29664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29665_ACEOF
29666
29667fi
29668
29669done
29670
29671
29672for ac_func in getpagesize
29673do
29674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29675echo "$as_me:$LINENO: checking for $ac_func" >&5
29676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29677if eval "test \"\${$as_ac_var+set}\" = set"; then
29678  echo $ECHO_N "(cached) $ECHO_C" >&6
29679else
29680  cat >conftest.$ac_ext <<_ACEOF
29681/* confdefs.h.  */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h.  */
29686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29687   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29688#define $ac_func innocuous_$ac_func
29689
29690/* System header to define __stub macros and hopefully few prototypes,
29691    which can conflict with char $ac_func (); below.
29692    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29693    <limits.h> exists even on freestanding compilers.  */
29694
29695#ifdef __STDC__
29696# include <limits.h>
29697#else
29698# include <assert.h>
29699#endif
29700
29701#undef $ac_func
29702
29703/* Override any gcc2 internal prototype to avoid an error.  */
29704#ifdef __cplusplus
29705extern "C"
29706{
29707#endif
29708/* We use char because int might match the return type of a gcc2
29709   builtin and then its argument prototype would still apply.  */
29710char $ac_func ();
29711/* The GNU C library defines this for functions which it implements
29712    to always fail with ENOSYS.  Some functions are actually named
29713    something starting with __ and the normal name is an alias.  */
29714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29715choke me
29716#else
29717char (*f) () = $ac_func;
29718#endif
29719#ifdef __cplusplus
29720}
29721#endif
29722
29723int
29724main ()
29725{
29726return f != $ac_func;
29727  ;
29728  return 0;
29729}
29730_ACEOF
29731rm -f conftest.$ac_objext conftest$ac_exeext
29732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29733  (eval $ac_link) 2>conftest.er1
29734  ac_status=$?
29735  grep -v '^ *+' conftest.er1 >conftest.err
29736  rm -f conftest.er1
29737  cat conftest.err >&5
29738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739  (exit $ac_status); } &&
29740	 { ac_try='test -z "$ac_c_werror_flag"
29741			 || test ! -s conftest.err'
29742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743  (eval $ac_try) 2>&5
29744  ac_status=$?
29745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746  (exit $ac_status); }; } &&
29747	 { ac_try='test -s conftest$ac_exeext'
29748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749  (eval $ac_try) 2>&5
29750  ac_status=$?
29751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752  (exit $ac_status); }; }; then
29753  eval "$as_ac_var=yes"
29754else
29755  echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
29758eval "$as_ac_var=no"
29759fi
29760rm -f conftest.err conftest.$ac_objext \
29761      conftest$ac_exeext conftest.$ac_ext
29762fi
29763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29765if test `eval echo '${'$as_ac_var'}'` = yes; then
29766  cat >>confdefs.h <<_ACEOF
29767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29768_ACEOF
29769
29770fi
29771done
29772
29773echo "$as_me:$LINENO: checking for working mmap" >&5
29774echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29775if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29776  echo $ECHO_N "(cached) $ECHO_C" >&6
29777else
29778  if test "$cross_compiling" = yes; then
29779  ac_cv_func_mmap_fixed_mapped=no
29780else
29781  cat >conftest.$ac_ext <<_ACEOF
29782/* confdefs.h.  */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h.  */
29787$ac_includes_default
29788/* malloc might have been renamed as rpl_malloc. */
29789#undef malloc
29790
29791/* Thanks to Mike Haertel and Jim Avera for this test.
29792   Here is a matrix of mmap possibilities:
29793	mmap private not fixed
29794	mmap private fixed at somewhere currently unmapped
29795	mmap private fixed at somewhere already mapped
29796	mmap shared not fixed
29797	mmap shared fixed at somewhere currently unmapped
29798	mmap shared fixed at somewhere already mapped
29799   For private mappings, we should verify that changes cannot be read()
29800   back from the file, nor mmap's back from the file at a different
29801   address.  (There have been systems where private was not correctly
29802   implemented like the infamous i386 svr4.0, and systems where the
29803   VM page cache was not coherent with the file system buffer cache
29804   like early versions of FreeBSD and possibly contemporary NetBSD.)
29805   For shared mappings, we should conversely verify that changes get
29806   propagated back to all the places they're supposed to be.
29807
29808   Grep wants private fixed already mapped.
29809   The main things grep needs to know about mmap are:
29810   * does it exist and is it safe to write into the mmap'd area
29811   * how to use it (BSD variants)  */
29812
29813#include <fcntl.h>
29814#include <sys/mman.h>
29815
29816#if !STDC_HEADERS && !HAVE_STDLIB_H
29817char *malloc ();
29818#endif
29819
29820/* This mess was copied from the GNU getpagesize.h.  */
29821#if !HAVE_GETPAGESIZE
29822/* Assume that all systems that can run configure have sys/param.h.  */
29823# if !HAVE_SYS_PARAM_H
29824#  define HAVE_SYS_PARAM_H 1
29825# endif
29826
29827# ifdef _SC_PAGESIZE
29828#  define getpagesize() sysconf(_SC_PAGESIZE)
29829# else /* no _SC_PAGESIZE */
29830#  if HAVE_SYS_PARAM_H
29831#   include <sys/param.h>
29832#   ifdef EXEC_PAGESIZE
29833#    define getpagesize() EXEC_PAGESIZE
29834#   else /* no EXEC_PAGESIZE */
29835#    ifdef NBPG
29836#     define getpagesize() NBPG * CLSIZE
29837#     ifndef CLSIZE
29838#      define CLSIZE 1
29839#     endif /* no CLSIZE */
29840#    else /* no NBPG */
29841#     ifdef NBPC
29842#      define getpagesize() NBPC
29843#     else /* no NBPC */
29844#      ifdef PAGESIZE
29845#       define getpagesize() PAGESIZE
29846#      endif /* PAGESIZE */
29847#     endif /* no NBPC */
29848#    endif /* no NBPG */
29849#   endif /* no EXEC_PAGESIZE */
29850#  else /* no HAVE_SYS_PARAM_H */
29851#   define getpagesize() 8192	/* punt totally */
29852#  endif /* no HAVE_SYS_PARAM_H */
29853# endif /* no _SC_PAGESIZE */
29854
29855#endif /* no HAVE_GETPAGESIZE */
29856
29857int
29858main ()
29859{
29860  char *data, *data2, *data3;
29861  int i, pagesize;
29862  int fd;
29863
29864  pagesize = getpagesize ();
29865
29866  /* First, make a file with some known garbage in it. */
29867  data = (char *) malloc (pagesize);
29868  if (!data)
29869    exit (1);
29870  for (i = 0; i < pagesize; ++i)
29871    *(data + i) = rand ();
29872  umask (0);
29873  fd = creat ("conftest.mmap", 0600);
29874  if (fd < 0)
29875    exit (1);
29876  if (write (fd, data, pagesize) != pagesize)
29877    exit (1);
29878  close (fd);
29879
29880  /* Next, try to mmap the file at a fixed address which already has
29881     something else allocated at it.  If we can, also make sure that
29882     we see the same garbage.  */
29883  fd = open ("conftest.mmap", O_RDWR);
29884  if (fd < 0)
29885    exit (1);
29886  data2 = (char *) malloc (2 * pagesize);
29887  if (!data2)
29888    exit (1);
29889  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29890  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29891		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
29892    exit (1);
29893  for (i = 0; i < pagesize; ++i)
29894    if (*(data + i) != *(data2 + i))
29895      exit (1);
29896
29897  /* Finally, make sure that changes to the mapped area do not
29898     percolate back to the file as seen by read().  (This is a bug on
29899     some variants of i386 svr4.0.)  */
29900  for (i = 0; i < pagesize; ++i)
29901    *(data2 + i) = *(data2 + i) + 1;
29902  data3 = (char *) malloc (pagesize);
29903  if (!data3)
29904    exit (1);
29905  if (read (fd, data3, pagesize) != pagesize)
29906    exit (1);
29907  for (i = 0; i < pagesize; ++i)
29908    if (*(data + i) != *(data3 + i))
29909      exit (1);
29910  close (fd);
29911  exit (0);
29912}
29913_ACEOF
29914rm -f conftest$ac_exeext
29915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29916  (eval $ac_link) 2>&5
29917  ac_status=$?
29918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921  (eval $ac_try) 2>&5
29922  ac_status=$?
29923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924  (exit $ac_status); }; }; then
29925  ac_cv_func_mmap_fixed_mapped=yes
29926else
29927  echo "$as_me: program exited with status $ac_status" >&5
29928echo "$as_me: failed program was:" >&5
29929sed 's/^/| /' conftest.$ac_ext >&5
29930
29931( exit $ac_status )
29932ac_cv_func_mmap_fixed_mapped=no
29933fi
29934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29935fi
29936fi
29937echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29938echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29939if test $ac_cv_func_mmap_fixed_mapped = yes; then
29940
29941cat >>confdefs.h <<\_ACEOF
29942#define HAVE_MMAP 1
29943_ACEOF
29944
29945fi
29946rm -f conftest.mmap
29947
29948echo "$as_me:$LINENO: checking for mmap of files" >&5
29949echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29950if test "${ac_cv_func_mmap_file+set}" = set; then
29951  echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
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  if test "$cross_compiling" = yes; then
29960  ac_cv_func_mmap_file=no
29961else
29962  cat >conftest.$ac_ext <<_ACEOF
29963
29964    /* confdefs.h.  */
29965_ACEOF
29966cat confdefs.h >>conftest.$ac_ext
29967cat >>conftest.$ac_ext <<_ACEOF
29968/* end confdefs.h.  */
29969
29970#include <sys/types.h>
29971#include <sys/mman.h>
29972#include <fcntl.h>
29973
29974int
29975main ()
29976{
29977
29978  int fd;
29979  fd = creat ("foo",0777);
29980  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29981  unlink ("foo");
29982  return (fd != (int) MAP_FAILED);
29983  ;
29984  return 0;
29985}
29986_ACEOF
29987rm -f conftest$ac_exeext
29988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29989  (eval $ac_link) 2>&5
29990  ac_status=$?
29991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29994  (eval $ac_try) 2>&5
29995  ac_status=$?
29996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997  (exit $ac_status); }; }; then
29998  ac_cv_func_mmap_file=yes
29999else
30000  echo "$as_me: program exited with status $ac_status" >&5
30001echo "$as_me: failed program was:" >&5
30002sed 's/^/| /' conftest.$ac_ext >&5
30003
30004( exit $ac_status )
30005ac_cv_func_mmap_file=no
30006fi
30007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30008fi
30009  ac_ext=c
30010ac_cpp='$CPP $CPPFLAGS'
30011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30013ac_compiler_gnu=$ac_cv_c_compiler_gnu
30014
30015
30016fi
30017echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30018echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30019if test "$ac_cv_func_mmap_file" = yes; then
30020
30021cat >>confdefs.h <<\_ACEOF
30022#define HAVE_MMAP_FILE
30023_ACEOF
30024
30025   MMAP_FILE=yes
30026
30027fi
30028
30029echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30030echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30031if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30032  echo $ECHO_N "(cached) $ECHO_C" >&6
30033else
30034  if test "$llvm_cv_os_type" = "Interix" ; then
30035   ac_cv_need_dev_zero_for_mmap=yes
30036 else
30037   ac_cv_need_dev_zero_for_mmap=no
30038 fi
30039
30040fi
30041echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30042echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30043if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30044
30045cat >>confdefs.h <<\_ACEOF
30046#define NEED_DEV_ZERO_FOR_MMAP 1
30047_ACEOF
30048
30049fi
30050echo "$as_me:$LINENO: checking for mprotect" >&5
30051echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30052if test "${ac_cv_func_mprotect+set}" = set; then
30053  echo $ECHO_N "(cached) $ECHO_C" >&6
30054else
30055  cat >conftest.$ac_ext <<_ACEOF
30056/* confdefs.h.  */
30057_ACEOF
30058cat confdefs.h >>conftest.$ac_ext
30059cat >>conftest.$ac_ext <<_ACEOF
30060/* end confdefs.h.  */
30061/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30062   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30063#define mprotect innocuous_mprotect
30064
30065/* System header to define __stub macros and hopefully few prototypes,
30066    which can conflict with char mprotect (); below.
30067    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30068    <limits.h> exists even on freestanding compilers.  */
30069
30070#ifdef __STDC__
30071# include <limits.h>
30072#else
30073# include <assert.h>
30074#endif
30075
30076#undef mprotect
30077
30078/* Override any gcc2 internal prototype to avoid an error.  */
30079#ifdef __cplusplus
30080extern "C"
30081{
30082#endif
30083/* We use char because int might match the return type of a gcc2
30084   builtin and then its argument prototype would still apply.  */
30085char mprotect ();
30086/* The GNU C library defines this for functions which it implements
30087    to always fail with ENOSYS.  Some functions are actually named
30088    something starting with __ and the normal name is an alias.  */
30089#if defined (__stub_mprotect) || defined (__stub___mprotect)
30090choke me
30091#else
30092char (*f) () = mprotect;
30093#endif
30094#ifdef __cplusplus
30095}
30096#endif
30097
30098int
30099main ()
30100{
30101return f != mprotect;
30102  ;
30103  return 0;
30104}
30105_ACEOF
30106rm -f conftest.$ac_objext conftest$ac_exeext
30107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30108  (eval $ac_link) 2>conftest.er1
30109  ac_status=$?
30110  grep -v '^ *+' conftest.er1 >conftest.err
30111  rm -f conftest.er1
30112  cat conftest.err >&5
30113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114  (exit $ac_status); } &&
30115	 { ac_try='test -z "$ac_c_werror_flag"
30116			 || test ! -s conftest.err'
30117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118  (eval $ac_try) 2>&5
30119  ac_status=$?
30120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121  (exit $ac_status); }; } &&
30122	 { ac_try='test -s conftest$ac_exeext'
30123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30124  (eval $ac_try) 2>&5
30125  ac_status=$?
30126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127  (exit $ac_status); }; }; then
30128  ac_cv_func_mprotect=yes
30129else
30130  echo "$as_me: failed program was:" >&5
30131sed 's/^/| /' conftest.$ac_ext >&5
30132
30133ac_cv_func_mprotect=no
30134fi
30135rm -f conftest.err conftest.$ac_objext \
30136      conftest$ac_exeext conftest.$ac_ext
30137fi
30138echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30139echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30140if test $ac_cv_func_mprotect = yes; then
30141  :
30142else
30143  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30144echo "$as_me: error: Function mprotect() required but not found" >&2;}
30145   { (exit 1); exit 1; }; }
30146fi
30147
30148
30149if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30150then
30151  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30152echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30153fi
30154if test "$ac_cv_func_mmap_file" = "no"
30155then
30156  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30157echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30158fi
30159
30160
30161echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30162echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30163if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30164  echo $ECHO_N "(cached) $ECHO_C" >&6
30165else
30166  llvm_cv_llvmgcc_sanity="no"
30167if test -x "$LLVMGCC" ; then
30168  cp /dev/null conftest.c
30169  "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30170  if test $? -eq 0 ; then
30171    llvm_cv_llvmgcc_sanity="yes"
30172  fi
30173  rm conftest.c
30174fi
30175fi
30176echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30177echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30178
30179if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30180  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30181  LLVMCC1=$llvmcc1path
30182
30183  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30184  LLVMCC1PLUS=$llvmcc1pluspath
30185
30186  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30187  LLVMGCCDIR=$llvmgccdir
30188
30189fi
30190
30191SHLIBEXT=$libltdl_cv_shlibext
30192
30193
30194# Translate the various configuration directories and other basic
30195# information into substitutions that will end up in Makefile.config.in
30196# that these configured values can be used by the makefiles
30197eval LLVM_PREFIX="${prefix}";
30198eval LLVM_BINDIR="${prefix}/bin";
30199eval LLVM_LIBDIR="${prefix}/lib";
30200eval LLVM_DATADIR="${prefix}/share/llvm";
30201eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30202eval LLVM_ETCDIR="${prefix}/etc/llvm";
30203eval LLVM_INCLUDEDIR="${prefix}/include";
30204eval LLVM_INFODIR="${prefix}/info";
30205eval LLVM_MANDIR="${prefix}/man";
30206LLVM_CONFIGTIME=`date`
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218# Place the various directores into the config.h file as #defines so that we
30219# can know about the installation paths within LLVM.
30220
30221cat >>confdefs.h <<_ACEOF
30222#define LLVM_PREFIX "$LLVM_PREFIX"
30223_ACEOF
30224
30225
30226cat >>confdefs.h <<_ACEOF
30227#define LLVM_BINDIR "$LLVM_BINDIR"
30228_ACEOF
30229
30230
30231cat >>confdefs.h <<_ACEOF
30232#define LLVM_LIBDIR "$LLVM_LIBDIR"
30233_ACEOF
30234
30235
30236cat >>confdefs.h <<_ACEOF
30237#define LLVM_DATADIR "$LLVM_DATADIR"
30238_ACEOF
30239
30240
30241cat >>confdefs.h <<_ACEOF
30242#define LLVM_DATADIR "$LLVM_DOCSDIR"
30243_ACEOF
30244
30245
30246cat >>confdefs.h <<_ACEOF
30247#define LLVM_ETCDIR "$LLVM_ETCDIR"
30248_ACEOF
30249
30250
30251cat >>confdefs.h <<_ACEOF
30252#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30253_ACEOF
30254
30255
30256cat >>confdefs.h <<_ACEOF
30257#define LLVM_INFODIR "$LLVM_INFODIR"
30258_ACEOF
30259
30260
30261cat >>confdefs.h <<_ACEOF
30262#define LLVM_MANDIR "$LLVM_MANDIR"
30263_ACEOF
30264
30265
30266cat >>confdefs.h <<_ACEOF
30267#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30268_ACEOF
30269
30270
30271
30272          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30273
30274
30275          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30276
30277          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30278
30279          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30280
30281          ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30282
30283          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30284
30285
30286          ac_config_files="$ac_config_files Makefile.config"
30287
30288
30289                                        ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30290
30291
30292          ac_config_files="$ac_config_files docs/doxygen.cfg"
30293
30294
30295          ac_config_commands="$ac_config_commands setup"
30296
30297          ac_config_commands="$ac_config_commands Makefile"
30298
30299
30300          ac_config_commands="$ac_config_commands Makefile.common"
30301
30302
30303          ac_config_commands="$ac_config_commands examples/Makefile"
30304
30305
30306          ac_config_commands="$ac_config_commands lib/Makefile"
30307
30308
30309          ac_config_commands="$ac_config_commands runtime/Makefile"
30310
30311
30312          ac_config_commands="$ac_config_commands test/Makefile"
30313
30314
30315          ac_config_commands="$ac_config_commands test/Makefile.tests"
30316
30317
30318          ac_config_commands="$ac_config_commands tools/Makefile"
30319
30320
30321          ac_config_commands="$ac_config_commands utils/Makefile"
30322
30323
30324          ac_config_commands="$ac_config_commands projects/Makefile"
30325
30326
30327
30328cat >confcache <<\_ACEOF
30329# This file is a shell script that caches the results of configure
30330# tests run on this system so they can be shared between configure
30331# scripts and configure runs, see configure's option --config-cache.
30332# It is not useful on other systems.  If it contains results you don't
30333# want to keep, you may remove or edit it.
30334#
30335# config.status only pays attention to the cache file if you give it
30336# the --recheck option to rerun configure.
30337#
30338# `ac_cv_env_foo' variables (set or unset) will be overridden when
30339# loading this file, other *unset* `ac_cv_foo' will be assigned the
30340# following values.
30341
30342_ACEOF
30343
30344# The following way of writing the cache mishandles newlines in values,
30345# but we know of no workaround that is simple, portable, and efficient.
30346# So, don't put newlines in cache variables' values.
30347# Ultrix sh set writes to stderr and can't be redirected directly,
30348# and sets the high bit in the cache file unless we assign to the vars.
30349{
30350  (set) 2>&1 |
30351    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30352    *ac_space=\ *)
30353      # `set' does not quote correctly, so add quotes (double-quote
30354      # substitution turns \\\\ into \\, and sed turns \\ into \).
30355      sed -n \
30356	"s/'/'\\\\''/g;
30357	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30358      ;;
30359    *)
30360      # `set' quotes correctly as required by POSIX, so do not add quotes.
30361      sed -n \
30362	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30363      ;;
30364    esac;
30365} |
30366  sed '
30367     t clear
30368     : clear
30369     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30370     t end
30371     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30372     : end' >>confcache
30373if diff $cache_file confcache >/dev/null 2>&1; then :; else
30374  if test -w $cache_file; then
30375    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30376    cat confcache >$cache_file
30377  else
30378    echo "not updating unwritable cache $cache_file"
30379  fi
30380fi
30381rm -f confcache
30382
30383test "x$prefix" = xNONE && prefix=$ac_default_prefix
30384# Let make expand exec_prefix.
30385test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30386
30387# VPATH may cause trouble with some makes, so we remove $(srcdir),
30388# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30389# trailing colons and then remove the whole line if VPATH becomes empty
30390# (actually we leave an empty line to preserve line numbers).
30391if test "x$srcdir" = x.; then
30392  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30393s/:*\$(srcdir):*/:/;
30394s/:*\${srcdir}:*/:/;
30395s/:*@srcdir@:*/:/;
30396s/^\([^=]*=[	 ]*\):*/\1/;
30397s/:*$//;
30398s/^[^=]*=[	 ]*$//;
30399}'
30400fi
30401
30402DEFS=-DHAVE_CONFIG_H
30403
30404ac_libobjs=
30405ac_ltlibobjs=
30406for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30407  # 1. Remove the extension, and $U if already installed.
30408  ac_i=`echo "$ac_i" |
30409	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30410  # 2. Add them.
30411  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30412  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30413done
30414LIBOBJS=$ac_libobjs
30415
30416LTLIBOBJS=$ac_ltlibobjs
30417
30418
30419if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30420  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30421Usually this means the macro was only invoked conditionally." >&5
30422echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30423Usually this means the macro was only invoked conditionally." >&2;}
30424   { (exit 1); exit 1; }; }
30425fi
30426if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30427  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30428Usually this means the macro was only invoked conditionally." >&5
30429echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30430Usually this means the macro was only invoked conditionally." >&2;}
30431   { (exit 1); exit 1; }; }
30432fi
30433
30434: ${CONFIG_STATUS=./config.status}
30435ac_clean_files_save=$ac_clean_files
30436ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30437{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30438echo "$as_me: creating $CONFIG_STATUS" >&6;}
30439cat >$CONFIG_STATUS <<_ACEOF
30440#! $SHELL
30441# Generated by $as_me.
30442# Run this file to recreate the current configuration.
30443# Compiler output produced by configure, useful for debugging
30444# configure, is in config.log if it exists.
30445
30446debug=false
30447ac_cs_recheck=false
30448ac_cs_silent=false
30449SHELL=\${CONFIG_SHELL-$SHELL}
30450_ACEOF
30451
30452cat >>$CONFIG_STATUS <<\_ACEOF
30453## --------------------- ##
30454## M4sh Initialization.  ##
30455## --------------------- ##
30456
30457# Be Bourne compatible
30458if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30459  emulate sh
30460  NULLCMD=:
30461  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30462  # is contrary to our usage.  Disable this feature.
30463  alias -g '${1+"$@"}'='"$@"'
30464elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30465  set -o posix
30466fi
30467DUALCASE=1; export DUALCASE # for MKS sh
30468
30469# Support unset when possible.
30470if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30471  as_unset=unset
30472else
30473  as_unset=false
30474fi
30475
30476
30477# Work around bugs in pre-3.0 UWIN ksh.
30478$as_unset ENV MAIL MAILPATH
30479PS1='$ '
30480PS2='> '
30481PS4='+ '
30482
30483# NLS nuisances.
30484for as_var in \
30485  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30486  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30487  LC_TELEPHONE LC_TIME
30488do
30489  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30490    eval $as_var=C; export $as_var
30491  else
30492    $as_unset $as_var
30493  fi
30494done
30495
30496# Required to use basename.
30497if expr a : '\(a\)' >/dev/null 2>&1; then
30498  as_expr=expr
30499else
30500  as_expr=false
30501fi
30502
30503if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30504  as_basename=basename
30505else
30506  as_basename=false
30507fi
30508
30509
30510# Name of the executable.
30511as_me=`$as_basename "$0" ||
30512$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30513	 X"$0" : 'X\(//\)$' \| \
30514	 X"$0" : 'X\(/\)$' \| \
30515	 .     : '\(.\)' 2>/dev/null ||
30516echo X/"$0" |
30517    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30518  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
30519  	  /^X\/\(\/\).*/{ s//\1/; q; }
30520  	  s/.*/./; q'`
30521
30522
30523# PATH needs CR, and LINENO needs CR and PATH.
30524# Avoid depending upon Character Ranges.
30525as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30526as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30527as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30528as_cr_digits='0123456789'
30529as_cr_alnum=$as_cr_Letters$as_cr_digits
30530
30531# The user is always right.
30532if test "${PATH_SEPARATOR+set}" != set; then
30533  echo "#! /bin/sh" >conf$$.sh
30534  echo  "exit 0"   >>conf$$.sh
30535  chmod +x conf$$.sh
30536  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30537    PATH_SEPARATOR=';'
30538  else
30539    PATH_SEPARATOR=:
30540  fi
30541  rm -f conf$$.sh
30542fi
30543
30544
30545  as_lineno_1=$LINENO
30546  as_lineno_2=$LINENO
30547  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30548  test "x$as_lineno_1" != "x$as_lineno_2" &&
30549  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30550  # Find who we are.  Look in the path if we contain no path at all
30551  # relative or not.
30552  case $0 in
30553    *[\\/]* ) as_myself=$0 ;;
30554    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30555for as_dir in $PATH
30556do
30557  IFS=$as_save_IFS
30558  test -z "$as_dir" && as_dir=.
30559  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30560done
30561
30562       ;;
30563  esac
30564  # We did not find ourselves, most probably we were run as `sh COMMAND'
30565  # in which case we are not to be found in the path.
30566  if test "x$as_myself" = x; then
30567    as_myself=$0
30568  fi
30569  if test ! -f "$as_myself"; then
30570    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30571echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30572   { (exit 1); exit 1; }; }
30573  fi
30574  case $CONFIG_SHELL in
30575  '')
30576    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30577for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30578do
30579  IFS=$as_save_IFS
30580  test -z "$as_dir" && as_dir=.
30581  for as_base in sh bash ksh sh5; do
30582	 case $as_dir in
30583	 /*)
30584	   if ("$as_dir/$as_base" -c '
30585  as_lineno_1=$LINENO
30586  as_lineno_2=$LINENO
30587  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30588  test "x$as_lineno_1" != "x$as_lineno_2" &&
30589  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30590	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30591	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30592	     CONFIG_SHELL=$as_dir/$as_base
30593	     export CONFIG_SHELL
30594	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30595	   fi;;
30596	 esac
30597       done
30598done
30599;;
30600  esac
30601
30602  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30603  # uniformly replaced by the line number.  The first 'sed' inserts a
30604  # line-number line before each line; the second 'sed' does the real
30605  # work.  The second script uses 'N' to pair each line-number line
30606  # with the numbered line, and appends trailing '-' during
30607  # substitution so that $LINENO is not a special case at line end.
30608  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30609  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30610  sed '=' <$as_myself |
30611    sed '
30612      N
30613      s,$,-,
30614      : loop
30615      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30616      t loop
30617      s,-$,,
30618      s,^['$as_cr_digits']*\n,,
30619    ' >$as_me.lineno &&
30620  chmod +x $as_me.lineno ||
30621    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30622echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30623   { (exit 1); exit 1; }; }
30624
30625  # Don't try to exec as it changes $[0], causing all sort of problems
30626  # (the dirname of $[0] is not the place where we might find the
30627  # original and so on.  Autoconf is especially sensible to this).
30628  . ./$as_me.lineno
30629  # Exit status is that of the last command.
30630  exit
30631}
30632
30633
30634case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30635  *c*,-n*) ECHO_N= ECHO_C='
30636' ECHO_T='	' ;;
30637  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30638  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30639esac
30640
30641if expr a : '\(a\)' >/dev/null 2>&1; then
30642  as_expr=expr
30643else
30644  as_expr=false
30645fi
30646
30647rm -f conf$$ conf$$.exe conf$$.file
30648echo >conf$$.file
30649if ln -s conf$$.file conf$$ 2>/dev/null; then
30650  # We could just check for DJGPP; but this test a) works b) is more generic
30651  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30652  if test -f conf$$.exe; then
30653    # Don't use ln at all; we don't have any links
30654    as_ln_s='cp -p'
30655  else
30656    as_ln_s='ln -s'
30657  fi
30658elif ln conf$$.file conf$$ 2>/dev/null; then
30659  as_ln_s=ln
30660else
30661  as_ln_s='cp -p'
30662fi
30663rm -f conf$$ conf$$.exe conf$$.file
30664
30665if mkdir -p . 2>/dev/null; then
30666  as_mkdir_p=:
30667else
30668  test -d ./-p && rmdir ./-p
30669  as_mkdir_p=false
30670fi
30671
30672as_executable_p="test -f"
30673
30674# Sed expression to map a string onto a valid CPP name.
30675as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30676
30677# Sed expression to map a string onto a valid variable name.
30678as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30679
30680
30681# IFS
30682# We need space, tab and new line, in precisely that order.
30683as_nl='
30684'
30685IFS=" 	$as_nl"
30686
30687# CDPATH.
30688$as_unset CDPATH
30689
30690exec 6>&1
30691
30692# Open the log real soon, to keep \$[0] and so on meaningful, and to
30693# report actual input values of CONFIG_FILES etc. instead of their
30694# values after options handling.  Logging --version etc. is OK.
30695exec 5>>config.log
30696{
30697  echo
30698  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30699## Running $as_me. ##
30700_ASBOX
30701} >&5
30702cat >&5 <<_CSEOF
30703
30704This file was extended by llvm $as_me 1.5cvs, which was
30705generated by GNU Autoconf 2.59.  Invocation command line was
30706
30707  CONFIG_FILES    = $CONFIG_FILES
30708  CONFIG_HEADERS  = $CONFIG_HEADERS
30709  CONFIG_LINKS    = $CONFIG_LINKS
30710  CONFIG_COMMANDS = $CONFIG_COMMANDS
30711  $ $0 $@
30712
30713_CSEOF
30714echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30715echo >&5
30716_ACEOF
30717
30718# Files that config.status was made for.
30719if test -n "$ac_config_files"; then
30720  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30721fi
30722
30723if test -n "$ac_config_headers"; then
30724  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30725fi
30726
30727if test -n "$ac_config_links"; then
30728  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30729fi
30730
30731if test -n "$ac_config_commands"; then
30732  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30733fi
30734
30735cat >>$CONFIG_STATUS <<\_ACEOF
30736
30737ac_cs_usage="\
30738\`$as_me' instantiates files from templates according to the
30739current configuration.
30740
30741Usage: $0 [OPTIONS] [FILE]...
30742
30743  -h, --help       print this help, then exit
30744  -V, --version    print version number, then exit
30745  -q, --quiet      do not print progress messages
30746  -d, --debug      don't remove temporary files
30747      --recheck    update $as_me by reconfiguring in the same conditions
30748  --file=FILE[:TEMPLATE]
30749		   instantiate the configuration file FILE
30750  --header=FILE[:TEMPLATE]
30751		   instantiate the configuration header FILE
30752
30753Configuration files:
30754$config_files
30755
30756Configuration headers:
30757$config_headers
30758
30759Configuration commands:
30760$config_commands
30761
30762Report bugs to <bug-autoconf@gnu.org>."
30763_ACEOF
30764
30765cat >>$CONFIG_STATUS <<_ACEOF
30766ac_cs_version="\\
30767llvm config.status 1.5cvs
30768configured by $0, generated by GNU Autoconf 2.59,
30769  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30770
30771Copyright (C) 2003 Free Software Foundation, Inc.
30772This config.status script is free software; the Free Software Foundation
30773gives unlimited permission to copy, distribute and modify it."
30774srcdir=$srcdir
30775INSTALL="$INSTALL"
30776_ACEOF
30777
30778cat >>$CONFIG_STATUS <<\_ACEOF
30779# If no file are specified by the user, then we need to provide default
30780# value.  By we need to know if files were specified by the user.
30781ac_need_defaults=:
30782while test $# != 0
30783do
30784  case $1 in
30785  --*=*)
30786    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30787    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30788    ac_shift=:
30789    ;;
30790  -*)
30791    ac_option=$1
30792    ac_optarg=$2
30793    ac_shift=shift
30794    ;;
30795  *) # This is not an option, so the user has probably given explicit
30796     # arguments.
30797     ac_option=$1
30798     ac_need_defaults=false;;
30799  esac
30800
30801  case $ac_option in
30802  # Handling of the options.
30803_ACEOF
30804cat >>$CONFIG_STATUS <<\_ACEOF
30805  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30806    ac_cs_recheck=: ;;
30807  --version | --vers* | -V )
30808    echo "$ac_cs_version"; exit 0 ;;
30809  --he | --h)
30810    # Conflict between --help and --header
30811    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30812Try \`$0 --help' for more information." >&5
30813echo "$as_me: error: ambiguous option: $1
30814Try \`$0 --help' for more information." >&2;}
30815   { (exit 1); exit 1; }; };;
30816  --help | --hel | -h )
30817    echo "$ac_cs_usage"; exit 0 ;;
30818  --debug | --d* | -d )
30819    debug=: ;;
30820  --file | --fil | --fi | --f )
30821    $ac_shift
30822    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30823    ac_need_defaults=false;;
30824  --header | --heade | --head | --hea )
30825    $ac_shift
30826    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30827    ac_need_defaults=false;;
30828  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30829  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30830    ac_cs_silent=: ;;
30831
30832  # This is an error.
30833  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30834Try \`$0 --help' for more information." >&5
30835echo "$as_me: error: unrecognized option: $1
30836Try \`$0 --help' for more information." >&2;}
30837   { (exit 1); exit 1; }; } ;;
30838
30839  *) ac_config_targets="$ac_config_targets $1" ;;
30840
30841  esac
30842  shift
30843done
30844
30845ac_configure_extra_args=
30846
30847if $ac_cs_silent; then
30848  exec 6>/dev/null
30849  ac_configure_extra_args="$ac_configure_extra_args --silent"
30850fi
30851
30852_ACEOF
30853cat >>$CONFIG_STATUS <<_ACEOF
30854if \$ac_cs_recheck; then
30855  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30856  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30857fi
30858
30859_ACEOF
30860
30861cat >>$CONFIG_STATUS <<_ACEOF
30862#
30863# INIT-COMMANDS section.
30864#
30865
30866llvm_src="${srcdir}"
30867
30868_ACEOF
30869
30870
30871
30872cat >>$CONFIG_STATUS <<\_ACEOF
30873for ac_config_target in $ac_config_targets
30874do
30875  case "$ac_config_target" in
30876  # Handling of arguments.
30877  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30878  "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30879  "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30880  "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30881  "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30882  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30883  "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30884  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30885  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30886  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30887  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30888  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30889  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30890  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30891  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30892  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30893  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30894  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30895  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30896  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30897  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30898  "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30899  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30900  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30901echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30902   { (exit 1); exit 1; }; };;
30903  esac
30904done
30905
30906# If the user did not use the arguments to specify the items to instantiate,
30907# then the envvar interface is used.  Set only those that are not.
30908# We use the long form for the default assignment because of an extremely
30909# bizarre bug on SunOS 4.1.3.
30910if $ac_need_defaults; then
30911  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30912  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30913  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30914fi
30915
30916# Have a temporary directory for convenience.  Make it in the build tree
30917# simply because there is no reason to put it here, and in addition,
30918# creating and moving files from /tmp can sometimes cause problems.
30919# Create a temporary directory, and hook for its removal unless debugging.
30920$debug ||
30921{
30922  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30923  trap '{ (exit 1); exit 1; }' 1 2 13 15
30924}
30925
30926# Create a (secure) tmp directory for tmp files.
30927
30928{
30929  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30930  test -n "$tmp" && test -d "$tmp"
30931}  ||
30932{
30933  tmp=./confstat$$-$RANDOM
30934  (umask 077 && mkdir $tmp)
30935} ||
30936{
30937   echo "$me: cannot create a temporary directory in ." >&2
30938   { (exit 1); exit 1; }
30939}
30940
30941_ACEOF
30942
30943cat >>$CONFIG_STATUS <<_ACEOF
30944
30945#
30946# CONFIG_FILES section.
30947#
30948
30949# No need to generate the scripts if there are no CONFIG_FILES.
30950# This happens for instance when ./config.status config.h
30951if test -n "\$CONFIG_FILES"; then
30952  # Protect against being on the right side of a sed subst in config.status.
30953  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30954   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30955s,@SHELL@,$SHELL,;t t
30956s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30957s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30958s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30959s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30960s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30961s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30962s,@exec_prefix@,$exec_prefix,;t t
30963s,@prefix@,$prefix,;t t
30964s,@program_transform_name@,$program_transform_name,;t t
30965s,@bindir@,$bindir,;t t
30966s,@sbindir@,$sbindir,;t t
30967s,@libexecdir@,$libexecdir,;t t
30968s,@datadir@,$datadir,;t t
30969s,@sysconfdir@,$sysconfdir,;t t
30970s,@sharedstatedir@,$sharedstatedir,;t t
30971s,@localstatedir@,$localstatedir,;t t
30972s,@libdir@,$libdir,;t t
30973s,@includedir@,$includedir,;t t
30974s,@oldincludedir@,$oldincludedir,;t t
30975s,@infodir@,$infodir,;t t
30976s,@mandir@,$mandir,;t t
30977s,@build_alias@,$build_alias,;t t
30978s,@host_alias@,$host_alias,;t t
30979s,@target_alias@,$target_alias,;t t
30980s,@DEFS@,$DEFS,;t t
30981s,@ECHO_C@,$ECHO_C,;t t
30982s,@ECHO_N@,$ECHO_N,;t t
30983s,@ECHO_T@,$ECHO_T,;t t
30984s,@LIBS@,$LIBS,;t t
30985s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30986s,@subdirs@,$subdirs,;t t
30987s,@build@,$build,;t t
30988s,@build_cpu@,$build_cpu,;t t
30989s,@build_vendor@,$build_vendor,;t t
30990s,@build_os@,$build_os,;t t
30991s,@host@,$host,;t t
30992s,@host_cpu@,$host_cpu,;t t
30993s,@host_vendor@,$host_vendor,;t t
30994s,@host_os@,$host_os,;t t
30995s,@target@,$target,;t t
30996s,@target_cpu@,$target_cpu,;t t
30997s,@target_vendor@,$target_vendor,;t t
30998s,@target_os@,$target_os,;t t
30999s,@OS@,$OS,;t t
31000s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31001s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31002s,@ARCH@,$ARCH,;t t
31003s,@ENDIAN@,$ENDIAN,;t t
31004s,@CC@,$CC,;t t
31005s,@CFLAGS@,$CFLAGS,;t t
31006s,@LDFLAGS@,$LDFLAGS,;t t
31007s,@CPPFLAGS@,$CPPFLAGS,;t t
31008s,@ac_ct_CC@,$ac_ct_CC,;t t
31009s,@EXEEXT@,$EXEEXT,;t t
31010s,@OBJEXT@,$OBJEXT,;t t
31011s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31012s,@JIT@,$JIT,;t t
31013s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31014s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31015s,@CPP@,$CPP,;t t
31016s,@CXX@,$CXX,;t t
31017s,@CXXFLAGS@,$CXXFLAGS,;t t
31018s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31019s,@LEX@,$LEX,;t t
31020s,@LEXLIB@,$LEXLIB,;t t
31021s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31022s,@FLEX@,$FLEX,;t t
31023s,@YACC@,$YACC,;t t
31024s,@BISON@,$BISON,;t t
31025s,@ifGNUmake@,$ifGNUmake,;t t
31026s,@LN_S@,$LN_S,;t t
31027s,@CMP@,$CMP,;t t
31028s,@CP@,$CP,;t t
31029s,@DATE@,$DATE,;t t
31030s,@FIND@,$FIND,;t t
31031s,@GREP@,$GREP,;t t
31032s,@MKDIR@,$MKDIR,;t t
31033s,@MV@,$MV,;t t
31034s,@RANLIB@,$RANLIB,;t t
31035s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31036s,@RM@,$RM,;t t
31037s,@SED@,$SED,;t t
31038s,@TAR@,$TAR,;t t
31039s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31040s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31041s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31042s,@BZIP2@,$BZIP2,;t t
31043s,@DOT@,$DOT,;t t
31044s,@DOXYGEN@,$DOXYGEN,;t t
31045s,@ETAGS@,$ETAGS,;t t
31046s,@GROFF@,$GROFF,;t t
31047s,@GZIP@,$GZIP,;t t
31048s,@POD2HTML@,$POD2HTML,;t t
31049s,@POD2MAN@,$POD2MAN,;t t
31050s,@RUNTEST@,$RUNTEST,;t t
31051s,@TCLSH@,$TCLSH,;t t
31052s,@ZIP@,$ZIP,;t t
31053s,@EGREP@,$EGREP,;t t
31054s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31055s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31056s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31057s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31058s,@LIBADD_DL@,$LIBADD_DL,;t t
31059s,@ECHO@,$ECHO,;t t
31060s,@AR@,$AR,;t t
31061s,@ac_ct_AR@,$ac_ct_AR,;t t
31062s,@STRIP@,$STRIP,;t t
31063s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31064s,@CXXCPP@,$CXXCPP,;t t
31065s,@F77@,$F77,;t t
31066s,@FFLAGS@,$FFLAGS,;t t
31067s,@ac_ct_F77@,$ac_ct_F77,;t t
31068s,@LIBTOOL@,$LIBTOOL,;t t
31069s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31070s,@LLVMGCC@,$LLVMGCC,;t t
31071s,@LLVMGXX@,$LLVMGXX,;t t
31072s,@ALLOCA@,$ALLOCA,;t t
31073s,@MMAP_FILE@,$MMAP_FILE,;t t
31074s,@LLVMCC1@,$LLVMCC1,;t t
31075s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31076s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31077s,@SHLIBEXT@,$SHLIBEXT,;t t
31078s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31079s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31080s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31081s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31082s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31083s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31084s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31085s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31086s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31087s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31088s,@LIBOBJS@,$LIBOBJS,;t t
31089s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31090CEOF
31091
31092_ACEOF
31093
31094  cat >>$CONFIG_STATUS <<\_ACEOF
31095  # Split the substitutions into bite-sized pieces for seds with
31096  # small command number limits, like on Digital OSF/1 and HP-UX.
31097  ac_max_sed_lines=48
31098  ac_sed_frag=1 # Number of current file.
31099  ac_beg=1 # First line for current file.
31100  ac_end=$ac_max_sed_lines # Line after last line for current file.
31101  ac_more_lines=:
31102  ac_sed_cmds=
31103  while $ac_more_lines; do
31104    if test $ac_beg -gt 1; then
31105      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31106    else
31107      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31108    fi
31109    if test ! -s $tmp/subs.frag; then
31110      ac_more_lines=false
31111    else
31112      # The purpose of the label and of the branching condition is to
31113      # speed up the sed processing (if there are no `@' at all, there
31114      # is no need to browse any of the substitutions).
31115      # These are the two extra sed commands mentioned above.
31116      (echo ':t
31117  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31118      if test -z "$ac_sed_cmds"; then
31119	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31120      else
31121	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31122      fi
31123      ac_sed_frag=`expr $ac_sed_frag + 1`
31124      ac_beg=$ac_end
31125      ac_end=`expr $ac_end + $ac_max_sed_lines`
31126    fi
31127  done
31128  if test -z "$ac_sed_cmds"; then
31129    ac_sed_cmds=cat
31130  fi
31131fi # test -n "$CONFIG_FILES"
31132
31133_ACEOF
31134cat >>$CONFIG_STATUS <<\_ACEOF
31135for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31136  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31137  case $ac_file in
31138  - | *:- | *:-:* ) # input from stdin
31139	cat >$tmp/stdin
31140	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31141	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31142  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31143	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31144  * )   ac_file_in=$ac_file.in ;;
31145  esac
31146
31147  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31148  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31149$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31150	 X"$ac_file" : 'X\(//\)[^/]' \| \
31151	 X"$ac_file" : 'X\(//\)$' \| \
31152	 X"$ac_file" : 'X\(/\)' \| \
31153	 .     : '\(.\)' 2>/dev/null ||
31154echo X"$ac_file" |
31155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31156  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31157  	  /^X\(\/\/\)$/{ s//\1/; q; }
31158  	  /^X\(\/\).*/{ s//\1/; q; }
31159  	  s/.*/./; q'`
31160  { if $as_mkdir_p; then
31161    mkdir -p "$ac_dir"
31162  else
31163    as_dir="$ac_dir"
31164    as_dirs=
31165    while test ! -d "$as_dir"; do
31166      as_dirs="$as_dir $as_dirs"
31167      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31169	 X"$as_dir" : 'X\(//\)[^/]' \| \
31170	 X"$as_dir" : 'X\(//\)$' \| \
31171	 X"$as_dir" : 'X\(/\)' \| \
31172	 .     : '\(.\)' 2>/dev/null ||
31173echo X"$as_dir" |
31174    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31175  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31176  	  /^X\(\/\/\)$/{ s//\1/; q; }
31177  	  /^X\(\/\).*/{ s//\1/; q; }
31178  	  s/.*/./; q'`
31179    done
31180    test ! -n "$as_dirs" || mkdir $as_dirs
31181  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31182echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31183   { (exit 1); exit 1; }; }; }
31184
31185  ac_builddir=.
31186
31187if test "$ac_dir" != .; then
31188  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31189  # A "../" for each directory in $ac_dir_suffix.
31190  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31191else
31192  ac_dir_suffix= ac_top_builddir=
31193fi
31194
31195case $srcdir in
31196  .)  # No --srcdir option.  We are building in place.
31197    ac_srcdir=.
31198    if test -z "$ac_top_builddir"; then
31199       ac_top_srcdir=.
31200    else
31201       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31202    fi ;;
31203  [\\/]* | ?:[\\/]* )  # Absolute path.
31204    ac_srcdir=$srcdir$ac_dir_suffix;
31205    ac_top_srcdir=$srcdir ;;
31206  *) # Relative path.
31207    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31208    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31209esac
31210
31211# Do not use `cd foo && pwd` to compute absolute paths, because
31212# the directories may not exist.
31213case `pwd` in
31214.) ac_abs_builddir="$ac_dir";;
31215*)
31216  case "$ac_dir" in
31217  .) ac_abs_builddir=`pwd`;;
31218  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31219  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31220  esac;;
31221esac
31222case $ac_abs_builddir in
31223.) ac_abs_top_builddir=${ac_top_builddir}.;;
31224*)
31225  case ${ac_top_builddir}. in
31226  .) ac_abs_top_builddir=$ac_abs_builddir;;
31227  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31228  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31229  esac;;
31230esac
31231case $ac_abs_builddir in
31232.) ac_abs_srcdir=$ac_srcdir;;
31233*)
31234  case $ac_srcdir in
31235  .) ac_abs_srcdir=$ac_abs_builddir;;
31236  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31237  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31238  esac;;
31239esac
31240case $ac_abs_builddir in
31241.) ac_abs_top_srcdir=$ac_top_srcdir;;
31242*)
31243  case $ac_top_srcdir in
31244  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31245  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31246  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31247  esac;;
31248esac
31249
31250
31251  case $INSTALL in
31252  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31253  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31254  esac
31255
31256  if test x"$ac_file" != x-; then
31257    { echo "$as_me:$LINENO: creating $ac_file" >&5
31258echo "$as_me: creating $ac_file" >&6;}
31259    rm -f "$ac_file"
31260  fi
31261  # Let's still pretend it is `configure' which instantiates (i.e., don't
31262  # use $as_me), people would be surprised to read:
31263  #    /* config.h.  Generated by config.status.  */
31264  if test x"$ac_file" = x-; then
31265    configure_input=
31266  else
31267    configure_input="$ac_file.  "
31268  fi
31269  configure_input=$configure_input"Generated from `echo $ac_file_in |
31270				     sed 's,.*/,,'` by configure."
31271
31272  # First look for the input files in the build tree, otherwise in the
31273  # src tree.
31274  ac_file_inputs=`IFS=:
31275    for f in $ac_file_in; do
31276      case $f in
31277      -) echo $tmp/stdin ;;
31278      [\\/$]*)
31279	 # Absolute (can't be DOS-style, as IFS=:)
31280	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31281echo "$as_me: error: cannot find input file: $f" >&2;}
31282   { (exit 1); exit 1; }; }
31283	 echo "$f";;
31284      *) # Relative
31285	 if test -f "$f"; then
31286	   # Build tree
31287	   echo "$f"
31288	 elif test -f "$srcdir/$f"; then
31289	   # Source tree
31290	   echo "$srcdir/$f"
31291	 else
31292	   # /dev/null tree
31293	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31294echo "$as_me: error: cannot find input file: $f" >&2;}
31295   { (exit 1); exit 1; }; }
31296	 fi;;
31297      esac
31298    done` || { (exit 1); exit 1; }
31299_ACEOF
31300cat >>$CONFIG_STATUS <<_ACEOF
31301  sed "$ac_vpsub
31302$extrasub
31303_ACEOF
31304cat >>$CONFIG_STATUS <<\_ACEOF
31305:t
31306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31307s,@configure_input@,$configure_input,;t t
31308s,@srcdir@,$ac_srcdir,;t t
31309s,@abs_srcdir@,$ac_abs_srcdir,;t t
31310s,@top_srcdir@,$ac_top_srcdir,;t t
31311s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31312s,@builddir@,$ac_builddir,;t t
31313s,@abs_builddir@,$ac_abs_builddir,;t t
31314s,@top_builddir@,$ac_top_builddir,;t t
31315s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31316s,@INSTALL@,$ac_INSTALL,;t t
31317" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31318  rm -f $tmp/stdin
31319  if test x"$ac_file" != x-; then
31320    mv $tmp/out $ac_file
31321  else
31322    cat $tmp/out
31323    rm -f $tmp/out
31324  fi
31325
31326done
31327_ACEOF
31328cat >>$CONFIG_STATUS <<\_ACEOF
31329
31330#
31331# CONFIG_HEADER section.
31332#
31333
31334# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31335# NAME is the cpp macro being defined and VALUE is the value it is being given.
31336#
31337# ac_d sets the value in "#define NAME VALUE" lines.
31338ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31339ac_dB='[	 ].*$,\1#\2'
31340ac_dC=' '
31341ac_dD=',;t'
31342# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31343ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31344ac_uB='$,\1#\2define\3'
31345ac_uC=' '
31346ac_uD=',;t'
31347
31348for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31349  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31350  case $ac_file in
31351  - | *:- | *:-:* ) # input from stdin
31352	cat >$tmp/stdin
31353	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31354	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31355  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31356	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31357  * )   ac_file_in=$ac_file.in ;;
31358  esac
31359
31360  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31361echo "$as_me: creating $ac_file" >&6;}
31362
31363  # First look for the input files in the build tree, otherwise in the
31364  # src tree.
31365  ac_file_inputs=`IFS=:
31366    for f in $ac_file_in; do
31367      case $f in
31368      -) echo $tmp/stdin ;;
31369      [\\/$]*)
31370	 # Absolute (can't be DOS-style, as IFS=:)
31371	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31372echo "$as_me: error: cannot find input file: $f" >&2;}
31373   { (exit 1); exit 1; }; }
31374	 # Do quote $f, to prevent DOS paths from being IFS'd.
31375	 echo "$f";;
31376      *) # Relative
31377	 if test -f "$f"; then
31378	   # Build tree
31379	   echo "$f"
31380	 elif test -f "$srcdir/$f"; then
31381	   # Source tree
31382	   echo "$srcdir/$f"
31383	 else
31384	   # /dev/null tree
31385	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31386echo "$as_me: error: cannot find input file: $f" >&2;}
31387   { (exit 1); exit 1; }; }
31388	 fi;;
31389      esac
31390    done` || { (exit 1); exit 1; }
31391  # Remove the trailing spaces.
31392  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31393
31394_ACEOF
31395
31396# Transform confdefs.h into two sed scripts, `conftest.defines' and
31397# `conftest.undefs', that substitutes the proper values into
31398# config.h.in to produce config.h.  The first handles `#define'
31399# templates, and the second `#undef' templates.
31400# And first: Protect against being on the right side of a sed subst in
31401# config.status.  Protect against being in an unquoted here document
31402# in config.status.
31403rm -f conftest.defines conftest.undefs
31404# Using a here document instead of a string reduces the quoting nightmare.
31405# Putting comments in sed scripts is not portable.
31406#
31407# `end' is used to avoid that the second main sed command (meant for
31408# 0-ary CPP macros) applies to n-ary macro definitions.
31409# See the Autoconf documentation for `clear'.
31410cat >confdef2sed.sed <<\_ACEOF
31411s/[\\&,]/\\&/g
31412s,[\\$`],\\&,g
31413t clear
31414: clear
31415s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31416t end
31417s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31418: end
31419_ACEOF
31420# If some macros were called several times there might be several times
31421# the same #defines, which is useless.  Nevertheless, we may not want to
31422# sort them, since we want the *last* AC-DEFINE to be honored.
31423uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31424sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31425rm -f confdef2sed.sed
31426
31427# This sed command replaces #undef with comments.  This is necessary, for
31428# example, in the case of _POSIX_SOURCE, which is predefined and required
31429# on some systems where configure will not decide to define it.
31430cat >>conftest.undefs <<\_ACEOF
31431s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31432_ACEOF
31433
31434# Break up conftest.defines because some shells have a limit on the size
31435# of here documents, and old seds have small limits too (100 cmds).
31436echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31437echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31438echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31439echo '  :' >>$CONFIG_STATUS
31440rm -f conftest.tail
31441while grep . conftest.defines >/dev/null
31442do
31443  # Write a limited-size here document to $tmp/defines.sed.
31444  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31445  # Speed up: don't consider the non `#define' lines.
31446  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31447  # Work around the forget-to-reset-the-flag bug.
31448  echo 't clr' >>$CONFIG_STATUS
31449  echo ': clr' >>$CONFIG_STATUS
31450  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31451  echo 'CEOF
31452  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31453  rm -f $tmp/in
31454  mv $tmp/out $tmp/in
31455' >>$CONFIG_STATUS
31456  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31457  rm -f conftest.defines
31458  mv conftest.tail conftest.defines
31459done
31460rm -f conftest.defines
31461echo '  fi # grep' >>$CONFIG_STATUS
31462echo >>$CONFIG_STATUS
31463
31464# Break up conftest.undefs because some shells have a limit on the size
31465# of here documents, and old seds have small limits too (100 cmds).
31466echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31467rm -f conftest.tail
31468while grep . conftest.undefs >/dev/null
31469do
31470  # Write a limited-size here document to $tmp/undefs.sed.
31471  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31472  # Speed up: don't consider the non `#undef'
31473  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
31474  # Work around the forget-to-reset-the-flag bug.
31475  echo 't clr' >>$CONFIG_STATUS
31476  echo ': clr' >>$CONFIG_STATUS
31477  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31478  echo 'CEOF
31479  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31480  rm -f $tmp/in
31481  mv $tmp/out $tmp/in
31482' >>$CONFIG_STATUS
31483  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31484  rm -f conftest.undefs
31485  mv conftest.tail conftest.undefs
31486done
31487rm -f conftest.undefs
31488
31489cat >>$CONFIG_STATUS <<\_ACEOF
31490  # Let's still pretend it is `configure' which instantiates (i.e., don't
31491  # use $as_me), people would be surprised to read:
31492  #    /* config.h.  Generated by config.status.  */
31493  if test x"$ac_file" = x-; then
31494    echo "/* Generated by configure.  */" >$tmp/config.h
31495  else
31496    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31497  fi
31498  cat $tmp/in >>$tmp/config.h
31499  rm -f $tmp/in
31500  if test x"$ac_file" != x-; then
31501    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31502      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31503echo "$as_me: $ac_file is unchanged" >&6;}
31504    else
31505      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31506$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31507	 X"$ac_file" : 'X\(//\)[^/]' \| \
31508	 X"$ac_file" : 'X\(//\)$' \| \
31509	 X"$ac_file" : 'X\(/\)' \| \
31510	 .     : '\(.\)' 2>/dev/null ||
31511echo X"$ac_file" |
31512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31513  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31514  	  /^X\(\/\/\)$/{ s//\1/; q; }
31515  	  /^X\(\/\).*/{ s//\1/; q; }
31516  	  s/.*/./; q'`
31517      { if $as_mkdir_p; then
31518    mkdir -p "$ac_dir"
31519  else
31520    as_dir="$ac_dir"
31521    as_dirs=
31522    while test ! -d "$as_dir"; do
31523      as_dirs="$as_dir $as_dirs"
31524      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31525$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31526	 X"$as_dir" : 'X\(//\)[^/]' \| \
31527	 X"$as_dir" : 'X\(//\)$' \| \
31528	 X"$as_dir" : 'X\(/\)' \| \
31529	 .     : '\(.\)' 2>/dev/null ||
31530echo X"$as_dir" |
31531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31532  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31533  	  /^X\(\/\/\)$/{ s//\1/; q; }
31534  	  /^X\(\/\).*/{ s//\1/; q; }
31535  	  s/.*/./; q'`
31536    done
31537    test ! -n "$as_dirs" || mkdir $as_dirs
31538  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31539echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31540   { (exit 1); exit 1; }; }; }
31541
31542      rm -f $ac_file
31543      mv $tmp/config.h $ac_file
31544    fi
31545  else
31546    cat $tmp/config.h
31547    rm -f $tmp/config.h
31548  fi
31549done
31550_ACEOF
31551cat >>$CONFIG_STATUS <<\_ACEOF
31552
31553#
31554# CONFIG_COMMANDS section.
31555#
31556for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31557  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31558  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31559  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31560$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31561	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31562	 X"$ac_dest" : 'X\(//\)$' \| \
31563	 X"$ac_dest" : 'X\(/\)' \| \
31564	 .     : '\(.\)' 2>/dev/null ||
31565echo X"$ac_dest" |
31566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31567  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31568  	  /^X\(\/\/\)$/{ s//\1/; q; }
31569  	  /^X\(\/\).*/{ s//\1/; q; }
31570  	  s/.*/./; q'`
31571  { if $as_mkdir_p; then
31572    mkdir -p "$ac_dir"
31573  else
31574    as_dir="$ac_dir"
31575    as_dirs=
31576    while test ! -d "$as_dir"; do
31577      as_dirs="$as_dir $as_dirs"
31578      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31580	 X"$as_dir" : 'X\(//\)[^/]' \| \
31581	 X"$as_dir" : 'X\(//\)$' \| \
31582	 X"$as_dir" : 'X\(/\)' \| \
31583	 .     : '\(.\)' 2>/dev/null ||
31584echo X"$as_dir" |
31585    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31586  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31587  	  /^X\(\/\/\)$/{ s//\1/; q; }
31588  	  /^X\(\/\).*/{ s//\1/; q; }
31589  	  s/.*/./; q'`
31590    done
31591    test ! -n "$as_dirs" || mkdir $as_dirs
31592  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31593echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31594   { (exit 1); exit 1; }; }; }
31595
31596  ac_builddir=.
31597
31598if test "$ac_dir" != .; then
31599  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31600  # A "../" for each directory in $ac_dir_suffix.
31601  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31602else
31603  ac_dir_suffix= ac_top_builddir=
31604fi
31605
31606case $srcdir in
31607  .)  # No --srcdir option.  We are building in place.
31608    ac_srcdir=.
31609    if test -z "$ac_top_builddir"; then
31610       ac_top_srcdir=.
31611    else
31612       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31613    fi ;;
31614  [\\/]* | ?:[\\/]* )  # Absolute path.
31615    ac_srcdir=$srcdir$ac_dir_suffix;
31616    ac_top_srcdir=$srcdir ;;
31617  *) # Relative path.
31618    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31619    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31620esac
31621
31622# Do not use `cd foo && pwd` to compute absolute paths, because
31623# the directories may not exist.
31624case `pwd` in
31625.) ac_abs_builddir="$ac_dir";;
31626*)
31627  case "$ac_dir" in
31628  .) ac_abs_builddir=`pwd`;;
31629  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31630  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31631  esac;;
31632esac
31633case $ac_abs_builddir in
31634.) ac_abs_top_builddir=${ac_top_builddir}.;;
31635*)
31636  case ${ac_top_builddir}. in
31637  .) ac_abs_top_builddir=$ac_abs_builddir;;
31638  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31639  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31640  esac;;
31641esac
31642case $ac_abs_builddir in
31643.) ac_abs_srcdir=$ac_srcdir;;
31644*)
31645  case $ac_srcdir in
31646  .) ac_abs_srcdir=$ac_abs_builddir;;
31647  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31648  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31649  esac;;
31650esac
31651case $ac_abs_builddir in
31652.) ac_abs_top_srcdir=$ac_top_srcdir;;
31653*)
31654  case $ac_top_srcdir in
31655  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31656  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31657  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31658  esac;;
31659esac
31660
31661
31662  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31663echo "$as_me: executing $ac_dest commands" >&6;}
31664  case $ac_dest in
31665    Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31666   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31667    Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31668   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31669    examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31670   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31671    lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31672   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31673    runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31674   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31675    test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31676   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31677    test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31678   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31679    tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31680   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31681    utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31682   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31683    projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31684   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31685  esac
31686done
31687_ACEOF
31688
31689cat >>$CONFIG_STATUS <<\_ACEOF
31690
31691{ (exit 0); exit 0; }
31692_ACEOF
31693chmod +x $CONFIG_STATUS
31694ac_clean_files=$ac_clean_files_save
31695
31696
31697# configure is writing to config.log, and then calls config.status.
31698# config.status does its own redirection, appending to config.log.
31699# Unfortunately, on DOS this fails, as config.log is still kept open
31700# by configure, so config.status won't be able to write to it; its
31701# output is simply discarded.  So we exec the FD to /dev/null,
31702# effectively closing config.log, so it can be properly (re)opened and
31703# appended to by config.status.  When coming back to configure, we
31704# need to make the FD available again.
31705if test "$no_create" != yes; then
31706  ac_cs_success=:
31707  ac_config_status_args=
31708  test "$silent" = yes &&
31709    ac_config_status_args="$ac_config_status_args --quiet"
31710  exec 5>/dev/null
31711  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31712  exec 5>>config.log
31713  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31714  # would make configure fail if this is the last instruction.
31715  $ac_cs_success || { (exit 1); exit 1; }
31716fi
31717
31718#
31719# CONFIG_SUBDIRS section.
31720#
31721if test "$no_recursion" != yes; then
31722
31723  # Remove --cache-file and --srcdir arguments so they do not pile up.
31724  ac_sub_configure_args=
31725  ac_prev=
31726  for ac_arg in $ac_configure_args; do
31727    if test -n "$ac_prev"; then
31728      ac_prev=
31729      continue
31730    fi
31731    case $ac_arg in
31732    -cache-file | --cache-file | --cache-fil | --cache-fi \
31733    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31734      ac_prev=cache_file ;;
31735    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31736    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31737    | --c=*)
31738      ;;
31739    --config-cache | -C)
31740      ;;
31741    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31742      ac_prev=srcdir ;;
31743    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31744      ;;
31745    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31746      ac_prev=prefix ;;
31747    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31748      ;;
31749    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31750    esac
31751  done
31752
31753  # Always prepend --prefix to ensure using the same prefix
31754  # in subdir configurations.
31755  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31756
31757  ac_popdir=`pwd`
31758  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31759
31760    # Do not complain, so a configure script can configure whichever
31761    # parts of a large source tree are present.
31762    test -d $srcdir/$ac_dir || continue
31763
31764    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31765echo "$as_me: configuring in $ac_dir" >&6;}
31766    { if $as_mkdir_p; then
31767    mkdir -p "$ac_dir"
31768  else
31769    as_dir="$ac_dir"
31770    as_dirs=
31771    while test ! -d "$as_dir"; do
31772      as_dirs="$as_dir $as_dirs"
31773      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31775	 X"$as_dir" : 'X\(//\)[^/]' \| \
31776	 X"$as_dir" : 'X\(//\)$' \| \
31777	 X"$as_dir" : 'X\(/\)' \| \
31778	 .     : '\(.\)' 2>/dev/null ||
31779echo X"$as_dir" |
31780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31781  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31782  	  /^X\(\/\/\)$/{ s//\1/; q; }
31783  	  /^X\(\/\).*/{ s//\1/; q; }
31784  	  s/.*/./; q'`
31785    done
31786    test ! -n "$as_dirs" || mkdir $as_dirs
31787  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31788echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31789   { (exit 1); exit 1; }; }; }
31790
31791    ac_builddir=.
31792
31793if test "$ac_dir" != .; then
31794  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31795  # A "../" for each directory in $ac_dir_suffix.
31796  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31797else
31798  ac_dir_suffix= ac_top_builddir=
31799fi
31800
31801case $srcdir in
31802  .)  # No --srcdir option.  We are building in place.
31803    ac_srcdir=.
31804    if test -z "$ac_top_builddir"; then
31805       ac_top_srcdir=.
31806    else
31807       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31808    fi ;;
31809  [\\/]* | ?:[\\/]* )  # Absolute path.
31810    ac_srcdir=$srcdir$ac_dir_suffix;
31811    ac_top_srcdir=$srcdir ;;
31812  *) # Relative path.
31813    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31814    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31815esac
31816
31817# Do not use `cd foo && pwd` to compute absolute paths, because
31818# the directories may not exist.
31819case `pwd` in
31820.) ac_abs_builddir="$ac_dir";;
31821*)
31822  case "$ac_dir" in
31823  .) ac_abs_builddir=`pwd`;;
31824  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31825  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31826  esac;;
31827esac
31828case $ac_abs_builddir in
31829.) ac_abs_top_builddir=${ac_top_builddir}.;;
31830*)
31831  case ${ac_top_builddir}. in
31832  .) ac_abs_top_builddir=$ac_abs_builddir;;
31833  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31834  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31835  esac;;
31836esac
31837case $ac_abs_builddir in
31838.) ac_abs_srcdir=$ac_srcdir;;
31839*)
31840  case $ac_srcdir in
31841  .) ac_abs_srcdir=$ac_abs_builddir;;
31842  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31843  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31844  esac;;
31845esac
31846case $ac_abs_builddir in
31847.) ac_abs_top_srcdir=$ac_top_srcdir;;
31848*)
31849  case $ac_top_srcdir in
31850  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31851  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31852  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31853  esac;;
31854esac
31855
31856
31857    cd $ac_dir
31858
31859    # Check for guested configure; otherwise get Cygnus style configure.
31860    if test -f $ac_srcdir/configure.gnu; then
31861      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31862    elif test -f $ac_srcdir/configure; then
31863      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31864    elif test -f $ac_srcdir/configure.in; then
31865      ac_sub_configure=$ac_configure
31866    else
31867      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31868echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31869      ac_sub_configure=
31870    fi
31871
31872    # The recursion is here.
31873    if test -n "$ac_sub_configure"; then
31874      # Make the cache file name correct relative to the subdirectory.
31875      case $cache_file in
31876      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31877      *) # Relative path.
31878	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31879      esac
31880
31881      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31882echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31883      # The eval makes quoting arguments work.
31884      eval $ac_sub_configure $ac_sub_configure_args \
31885	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31886	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31887echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31888   { (exit 1); exit 1; }; }
31889    fi
31890
31891    cd $ac_popdir
31892  done
31893fi
31894
31895
31896if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31897 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31898echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31899 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31900echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31901 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31902echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31903 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31904echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31905 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31906echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31907fi
31908