1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for librdmacm 1.0.11.
4#
5# Report bugs to <general@lists.openfabrics.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='librdmacm'
425PACKAGE_TARNAME='librdmacm'
426PACKAGE_VERSION='1.0.11'
427PACKAGE_STRING='librdmacm 1.0.11'
428PACKAGE_BUGREPORT='general@lists.openfabrics.org'
429
430ac_unique_file="src/cma.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_LD_VERSION_SCRIPT_TRUE HAVE_LD_VERSION_SCRIPT_FALSE LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures librdmacm 1.0.11 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of librdmacm 1.0.11:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --enable-shared[=PKGS]
1031                          build shared libraries [default=yes]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=yes]
1034  --enable-fast-install[=PKGS]
1035                          optimize for fast installation [default=yes]
1036  --disable-dependency-tracking  speeds up one-time build
1037  --enable-dependency-tracking   do not reject slow dependency extractors
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039  --disable-libcheck      do not test for presence of ib libraries
1040
1041Optional Packages:
1042  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045  --with-pic              try to use only PIC/non-PIC objects [default=use
1046                          both]
1047  --with-tags[=TAGS]
1048                          include additional configurations [automatic]
1049  --with-valgrind         Enable valgrind annotations - default NO
1050
1051Some influential environment variables:
1052  CC          C compiler command
1053  CFLAGS      C compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CPP         C preprocessor
1059  CXX         C++ compiler command
1060  CXXFLAGS    C++ compiler flags
1061  CXXCPP      C++ preprocessor
1062  F77         Fortran 77 compiler command
1063  FFLAGS      Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <general@lists.openfabrics.org>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073  # If there are subdirs, report their specific --help.
1074  ac_popdir=`pwd`
1075  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076    test -d $ac_dir || continue
1077    ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081  # A "../" for each directory in $ac_dir_suffix.
1082  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084  ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088  .)  # No --srcdir option.  We are building in place.
1089    ac_srcdir=.
1090    if test -z "$ac_top_builddir"; then
1091       ac_top_srcdir=.
1092    else
1093       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094    fi ;;
1095  [\\/]* | ?:[\\/]* )  # Absolute path.
1096    ac_srcdir=$srcdir$ac_dir_suffix;
1097    ac_top_srcdir=$srcdir ;;
1098  *) # Relative path.
1099    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102
1103# Do not use `cd foo && pwd` to compute absolute paths, because
1104# the directories may not exist.
1105case `pwd` in
1106.) ac_abs_builddir="$ac_dir";;
1107*)
1108  case "$ac_dir" in
1109  .) ac_abs_builddir=`pwd`;;
1110  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112  esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116*)
1117  case ${ac_top_builddir}. in
1118  .) ac_abs_top_builddir=$ac_abs_builddir;;
1119  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121  esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_srcdir=$ac_srcdir;;
1125*)
1126  case $ac_srcdir in
1127  .) ac_abs_srcdir=$ac_abs_builddir;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134*)
1135  case $ac_top_srcdir in
1136  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139  esac;;
1140esac
1141
1142    cd $ac_dir
1143    # Check for guested configure; otherwise get Cygnus style configure.
1144    if test -f $ac_srcdir/configure.gnu; then
1145      echo
1146      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147    elif test -f $ac_srcdir/configure; then
1148      echo
1149      $SHELL $ac_srcdir/configure  --help=recursive
1150    elif test -f $ac_srcdir/configure.ac ||
1151	   test -f $ac_srcdir/configure.in; then
1152      echo
1153      $ac_configure --help
1154    else
1155      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156    fi
1157    cd "$ac_popdir"
1158  done
1159fi
1160
1161test -n "$ac_init_help" && exit 0
1162if $ac_init_version; then
1163  cat <<\_ACEOF
1164librdmacm configure 1.0.11
1165generated by GNU Autoconf 2.59
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171  exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by librdmacm $as_me 1.0.11, which was
1179generated by GNU Autoconf 2.59.  Invocation command line was
1180
1181  $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1198
1199/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1200/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1203/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1204/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1205/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212  IFS=$as_save_IFS
1213  test -z "$as_dir" && as_dir=.
1214  echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241  for ac_arg
1242  do
1243    case $ac_arg in
1244    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246    | -silent | --silent | --silen | --sile | --sil)
1247      continue ;;
1248    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250    esac
1251    case $ac_pass in
1252    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253    2)
1254      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255      if test $ac_must_keep_next = true; then
1256	ac_must_keep_next=false # Got value, back to normal.
1257      else
1258	case $ac_arg in
1259	  *=* | --config-cache | -C | -disable-* | --disable-* \
1260	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262	  | -with-* | --with-* | -without-* | --without-* | --x)
1263	    case "$ac_configure_args0 " in
1264	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265	    esac
1266	    ;;
1267	  -* ) ac_must_keep_next=true ;;
1268	esac
1269      fi
1270      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271      # Get rid of the leading space.
1272      ac_sep=" "
1273      ;;
1274    esac
1275  done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log.  We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286  # Save into config.log some information that might help in debugging.
1287  {
1288    echo
1289
1290    cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295    echo
1296    # The following way of writing the cache mishandles newlines in values,
1297{
1298  (set) 2>&1 |
1299    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300    *ac_space=\ *)
1301      sed -n \
1302	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304      ;;
1305    *)
1306      sed -n \
1307	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308      ;;
1309    esac;
1310}
1311    echo
1312
1313    cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318    echo
1319    for ac_var in $ac_subst_vars
1320    do
1321      eval ac_val=$`echo $ac_var`
1322      echo "$ac_var='"'"'$ac_val'"'"'"
1323    done | sort
1324    echo
1325
1326    if test -n "$ac_subst_files"; then
1327      cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332      echo
1333      for ac_var in $ac_subst_files
1334      do
1335	eval ac_val=$`echo $ac_var`
1336	echo "$ac_var='"'"'$ac_val'"'"'"
1337      done | sort
1338      echo
1339    fi
1340
1341    if test -s confdefs.h; then
1342      cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347      echo
1348      sed "/^$/d" confdefs.h | sort
1349      echo
1350    fi
1351    test "$ac_signal" != 0 &&
1352      echo "$as_me: caught signal $ac_signal"
1353    echo "$as_me: exit $exit_status"
1354  } >&5
1355  rm -f core *.core &&
1356  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357    exit $exit_status
1358     ' 0
1359for ac_signal in 1 2 13 15; do
1360  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399  if test "x$prefix" != xNONE; then
1400    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401  else
1402    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403  fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406  if test -r "$ac_site_file"; then
1407    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409    sed 's/^/| /' "$ac_site_file" >&5
1410    . "$ac_site_file"
1411  fi
1412done
1413
1414if test -r "$cache_file"; then
1415  # Some versions of bash will fail to source /dev/null (special
1416  # files actually), so we avoid doing that.
1417  if test -f "$cache_file"; then
1418    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420    case $cache_file in
1421      [\\/]* | ?:[\\/]* ) . $cache_file;;
1422      *)                      . ./$cache_file;;
1423    esac
1424  fi
1425else
1426  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428  >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437  eval ac_new_set=\$ac_env_${ac_var}_set
1438  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439  eval ac_new_val="\$ac_env_${ac_var}_value"
1440  case $ac_old_set,$ac_new_set in
1441    set,)
1442      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444      ac_cache_corrupted=: ;;
1445    ,set)
1446      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448      ac_cache_corrupted=: ;;
1449    ,);;
1450    *)
1451      if test "x$ac_old_val" != "x$ac_new_val"; then
1452	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1455echo "$as_me:   former value:  $ac_old_val" >&2;}
1456	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1457echo "$as_me:   current value: $ac_new_val" >&2;}
1458	ac_cache_corrupted=:
1459      fi;;
1460  esac
1461  # Pass precious variables to config.status.
1462  if test "$ac_new_set" = set; then
1463    case $ac_new_val in
1464    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466    *) ac_arg=$ac_var=$ac_new_val ;;
1467    esac
1468    case " $ac_configure_args " in
1469      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1470      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471    esac
1472  fi
1473done
1474if $ac_cache_corrupted; then
1475  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479   { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515ac_aux_dir=
1516for ac_dir in config $srcdir/config; do
1517  if test -f $ac_dir/install-sh; then
1518    ac_aux_dir=$ac_dir
1519    ac_install_sh="$ac_aux_dir/install-sh -c"
1520    break
1521  elif test -f $ac_dir/install.sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install.sh -c"
1524    break
1525  elif test -f $ac_dir/shtool; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/shtool install -c"
1528    break
1529  fi
1530done
1531if test -z "$ac_aux_dir"; then
1532  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1533echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1534   { (exit 1); exit 1; }; }
1535fi
1536ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1540          ac_config_headers="$ac_config_headers config.h"
1541
1542am__api_version="1.9"
1543# Find a good install program.  We prefer a C program (faster),
1544# so one script is as good as another.  But avoid the broken or
1545# incompatible versions:
1546# SysV /etc/install, /usr/sbin/install
1547# SunOS /usr/etc/install
1548# IRIX /sbin/install
1549# AIX /bin/install
1550# AmigaOS /C/install, which installs bootblocks on floppy discs
1551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554# OS/2's system install, which has a completely different semantic
1555# ./install, which can be erroneously created by make from ./install.sh.
1556echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1557echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1558if test -z "$INSTALL"; then
1559if test "${ac_cv_path_install+set}" = set; then
1560  echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565  IFS=$as_save_IFS
1566  test -z "$as_dir" && as_dir=.
1567  # Account for people who put trailing slashes in PATH elements.
1568case $as_dir/ in
1569  ./ | .// | /cC/* | \
1570  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1571  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572  /usr/ucb/* ) ;;
1573  *)
1574    # OSF1 and SCO ODT 3.0 have their own names for install.
1575    # Don't use installbsd from OSF since it installs stuff as root
1576    # by default.
1577    for ac_prog in ginstall scoinst install; do
1578      for ac_exec_ext in '' $ac_executable_extensions; do
1579	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1580	  if test $ac_prog = install &&
1581	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582	    # AIX install.  It has an incompatible calling convention.
1583	    :
1584	  elif test $ac_prog = install &&
1585	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586	    # program-specific install script used by HP pwplus--don't use.
1587	    :
1588	  else
1589	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1590	    break 3
1591	  fi
1592	fi
1593      done
1594    done
1595    ;;
1596esac
1597done
1598
1599
1600fi
1601  if test "${ac_cv_path_install+set}" = set; then
1602    INSTALL=$ac_cv_path_install
1603  else
1604    # As a last resort, use the slow shell script.  We don't cache a
1605    # path for INSTALL within a source directory, because that will
1606    # break other packages using the cache if that directory is
1607    # removed, or if the path is relative.
1608    INSTALL=$ac_install_sh
1609  fi
1610fi
1611echo "$as_me:$LINENO: result: $INSTALL" >&5
1612echo "${ECHO_T}$INSTALL" >&6
1613
1614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1615# It thinks the first close brace ends the variable substitution.
1616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617
1618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619
1620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621
1622echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1623echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624# Just in case
1625sleep 1
1626echo timestamp > conftest.file
1627# Do `set' in a subshell so we don't clobber the current shell's
1628# arguments.  Must try -L first in case configure is actually a
1629# symlink; some systems play weird games with the mod time of symlinks
1630# (eg FreeBSD returns the mod time of the symlink's containing
1631# directory).
1632if (
1633   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1634   if test "$*" = "X"; then
1635      # -L didn't work.
1636      set X `ls -t $srcdir/configure conftest.file`
1637   fi
1638   rm -f conftest.file
1639   if test "$*" != "X $srcdir/configure conftest.file" \
1640      && test "$*" != "X conftest.file $srcdir/configure"; then
1641
1642      # If neither matched, then we have a broken ls.  This can happen
1643      # if, for instance, CONFIG_SHELL is bash and it inherits a
1644      # broken ls alias from the environment.  This has actually
1645      # happened.  Such a system could not be considered "sane".
1646      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1647alias in your environment" >&5
1648echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1649alias in your environment" >&2;}
1650   { (exit 1); exit 1; }; }
1651   fi
1652
1653   test "$2" = conftest.file
1654   )
1655then
1656   # Ok.
1657   :
1658else
1659   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1660Check your system clock" >&5
1661echo "$as_me: error: newly created file is older than distributed files!
1662Check your system clock" >&2;}
1663   { (exit 1); exit 1; }; }
1664fi
1665echo "$as_me:$LINENO: result: yes" >&5
1666echo "${ECHO_T}yes" >&6
1667test "$program_prefix" != NONE &&
1668  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1669# Use a double $ so make ignores it.
1670test "$program_suffix" != NONE &&
1671  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1672# Double any \ or $.  echo might interpret backslashes.
1673# By default was `s,x,x', remove it if useless.
1674cat <<\_ACEOF >conftest.sed
1675s/[\\$]/&&/g;s/;s,x,x,$//
1676_ACEOF
1677program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678rm conftest.sed
1679
1680# expand $ac_aux_dir to an absolute path
1681am_aux_dir=`cd $ac_aux_dir && pwd`
1682
1683test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684# Use eval to expand $SHELL
1685if eval "$MISSING --run true"; then
1686  am_missing_run="$MISSING --run "
1687else
1688  am_missing_run=
1689  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691fi
1692
1693if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1694  # We used to keeping the `.' as first argument, in order to
1695  # allow $(mkdir_p) to be used without argument.  As in
1696  #   $(mkdir_p) $(somedir)
1697  # where $(somedir) is conditionally defined.  However this is wrong
1698  # for two reasons:
1699  #  1. if the package is installed by a user who cannot write `.'
1700  #     make install will fail,
1701  #  2. the above comment should most certainly read
1702  #     $(mkdir_p) $(DESTDIR)$(somedir)
1703  #     so it does not work when $(somedir) is undefined and
1704  #     $(DESTDIR) is not.
1705  #  To support the latter case, we have to write
1706  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1707  #  so the `.' trick is pointless.
1708  mkdir_p='mkdir -p --'
1709else
1710  # On NextStep and OpenStep, the `mkdir' command does not
1711  # recognize any option.  It will interpret all options as
1712  # directories to create, and then abort because `.' already
1713  # exists.
1714  for d in ./-p ./--version;
1715  do
1716    test -d $d && rmdir $d
1717  done
1718  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1719  if test -f "$ac_aux_dir/mkinstalldirs"; then
1720    mkdir_p='$(mkinstalldirs)'
1721  else
1722    mkdir_p='$(install_sh) -d'
1723  fi
1724fi
1725
1726for ac_prog in gawk mawk nawk awk
1727do
1728  # Extract the first word of "$ac_prog", so it can be a program name with args.
1729set dummy $ac_prog; ac_word=$2
1730echo "$as_me:$LINENO: checking for $ac_word" >&5
1731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732if test "${ac_cv_prog_AWK+set}" = set; then
1733  echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735  if test -n "$AWK"; then
1736  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1737else
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741  IFS=$as_save_IFS
1742  test -z "$as_dir" && as_dir=.
1743  for ac_exec_ext in '' $ac_executable_extensions; do
1744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745    ac_cv_prog_AWK="$ac_prog"
1746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747    break 2
1748  fi
1749done
1750done
1751
1752fi
1753fi
1754AWK=$ac_cv_prog_AWK
1755if test -n "$AWK"; then
1756  echo "$as_me:$LINENO: result: $AWK" >&5
1757echo "${ECHO_T}$AWK" >&6
1758else
1759  echo "$as_me:$LINENO: result: no" >&5
1760echo "${ECHO_T}no" >&6
1761fi
1762
1763  test -n "$AWK" && break
1764done
1765
1766echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1767echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1768set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1769if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1770  echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772  cat >conftest.make <<\_ACEOF
1773all:
1774	@echo 'ac_maketemp="$(MAKE)"'
1775_ACEOF
1776# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1777eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1778if test -n "$ac_maketemp"; then
1779  eval ac_cv_prog_make_${ac_make}_set=yes
1780else
1781  eval ac_cv_prog_make_${ac_make}_set=no
1782fi
1783rm -f conftest.make
1784fi
1785if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1786  echo "$as_me:$LINENO: result: yes" >&5
1787echo "${ECHO_T}yes" >&6
1788  SET_MAKE=
1789else
1790  echo "$as_me:$LINENO: result: no" >&5
1791echo "${ECHO_T}no" >&6
1792  SET_MAKE="MAKE=${MAKE-make}"
1793fi
1794
1795rm -rf .tst 2>/dev/null
1796mkdir .tst 2>/dev/null
1797if test -d .tst; then
1798  am__leading_dot=.
1799else
1800  am__leading_dot=_
1801fi
1802rmdir .tst 2>/dev/null
1803
1804# test to see if srcdir already configured
1805if test "`cd $srcdir && pwd`" != "`pwd`" &&
1806   test -f $srcdir/config.status; then
1807  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1808echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1809   { (exit 1); exit 1; }; }
1810fi
1811
1812# test whether we have cygpath
1813if test -z "$CYGPATH_W"; then
1814  if (cygpath --version) >/dev/null 2>/dev/null; then
1815    CYGPATH_W='cygpath -w'
1816  else
1817    CYGPATH_W=echo
1818  fi
1819fi
1820
1821
1822# Define the identity of the package.
1823 PACKAGE=librdmacm
1824 VERSION=1.0.11
1825
1826
1827cat >>confdefs.h <<_ACEOF
1828#define PACKAGE "$PACKAGE"
1829_ACEOF
1830
1831
1832cat >>confdefs.h <<_ACEOF
1833#define VERSION "$VERSION"
1834_ACEOF
1835
1836# Some tools Automake needs.
1837
1838ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1839
1840
1841AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1842
1843
1844AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1845
1846
1847AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1848
1849
1850MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1851
1852install_sh=${install_sh-"$am_aux_dir/install-sh"}
1853
1854# Installed binaries are usually stripped using `strip' when the user
1855# run `make install-strip'.  However `strip' might not be the right
1856# tool to use in cross-compilation environments, therefore Automake
1857# will honor the `STRIP' environment variable to overrule this program.
1858if test "$cross_compiling" != no; then
1859  if test -n "$ac_tool_prefix"; then
1860  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1861set dummy ${ac_tool_prefix}strip; ac_word=$2
1862echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864if test "${ac_cv_prog_STRIP+set}" = set; then
1865  echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867  if test -n "$STRIP"; then
1868  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873  IFS=$as_save_IFS
1874  test -z "$as_dir" && as_dir=.
1875  for ac_exec_ext in '' $ac_executable_extensions; do
1876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879    break 2
1880  fi
1881done
1882done
1883
1884fi
1885fi
1886STRIP=$ac_cv_prog_STRIP
1887if test -n "$STRIP"; then
1888  echo "$as_me:$LINENO: result: $STRIP" >&5
1889echo "${ECHO_T}$STRIP" >&6
1890else
1891  echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6
1893fi
1894
1895fi
1896if test -z "$ac_cv_prog_STRIP"; then
1897  ac_ct_STRIP=$STRIP
1898  # Extract the first word of "strip", so it can be a program name with args.
1899set dummy strip; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test -n "$ac_ct_STRIP"; then
1906  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913  for ac_exec_ext in '' $ac_executable_extensions; do
1914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915    ac_cv_prog_ac_ct_STRIP="strip"
1916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917    break 2
1918  fi
1919done
1920done
1921
1922  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1923fi
1924fi
1925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1926if test -n "$ac_ct_STRIP"; then
1927  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1928echo "${ECHO_T}$ac_ct_STRIP" >&6
1929else
1930  echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6
1932fi
1933
1934  STRIP=$ac_ct_STRIP
1935else
1936  STRIP="$ac_cv_prog_STRIP"
1937fi
1938
1939fi
1940INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1941
1942# We need awk for the "check" target.  The system "awk" is bad on
1943# some platforms.
1944# Always define AMTAR for backward compatibility.
1945
1946AMTAR=${AMTAR-"${am_missing_run}tar"}
1947
1948am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1949
1950
1951
1952
1953
1954
1955# Check whether --enable-shared or --disable-shared was given.
1956if test "${enable_shared+set}" = set; then
1957  enableval="$enable_shared"
1958  p=${PACKAGE-default}
1959    case $enableval in
1960    yes) enable_shared=yes ;;
1961    no) enable_shared=no ;;
1962    *)
1963      enable_shared=no
1964      # Look at the argument we got.  We use all the common list separators.
1965      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1966      for pkg in $enableval; do
1967	IFS="$lt_save_ifs"
1968	if test "X$pkg" = "X$p"; then
1969	  enable_shared=yes
1970	fi
1971      done
1972      IFS="$lt_save_ifs"
1973      ;;
1974    esac
1975else
1976  enable_shared=yes
1977fi;
1978
1979# Check whether --enable-static or --disable-static was given.
1980if test "${enable_static+set}" = set; then
1981  enableval="$enable_static"
1982  p=${PACKAGE-default}
1983    case $enableval in
1984    yes) enable_static=yes ;;
1985    no) enable_static=no ;;
1986    *)
1987     enable_static=no
1988      # Look at the argument we got.  We use all the common list separators.
1989      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1990      for pkg in $enableval; do
1991	IFS="$lt_save_ifs"
1992	if test "X$pkg" = "X$p"; then
1993	  enable_static=yes
1994	fi
1995      done
1996      IFS="$lt_save_ifs"
1997      ;;
1998    esac
1999else
2000  enable_static=yes
2001fi;
2002
2003# Check whether --enable-fast-install or --disable-fast-install was given.
2004if test "${enable_fast_install+set}" = set; then
2005  enableval="$enable_fast_install"
2006  p=${PACKAGE-default}
2007    case $enableval in
2008    yes) enable_fast_install=yes ;;
2009    no) enable_fast_install=no ;;
2010    *)
2011      enable_fast_install=no
2012      # Look at the argument we got.  We use all the common list separators.
2013      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014      for pkg in $enableval; do
2015	IFS="$lt_save_ifs"
2016	if test "X$pkg" = "X$p"; then
2017	  enable_fast_install=yes
2018	fi
2019      done
2020      IFS="$lt_save_ifs"
2021      ;;
2022    esac
2023else
2024  enable_fast_install=yes
2025fi;
2026
2027# Make sure we can run config.sub.
2028$ac_config_sub sun4 >/dev/null 2>&1 ||
2029  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2030echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2031   { (exit 1); exit 1; }; }
2032
2033echo "$as_me:$LINENO: checking build system type" >&5
2034echo $ECHO_N "checking build system type... $ECHO_C" >&6
2035if test "${ac_cv_build+set}" = set; then
2036  echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038  ac_cv_build_alias=$build_alias
2039test -z "$ac_cv_build_alias" &&
2040  ac_cv_build_alias=`$ac_config_guess`
2041test -z "$ac_cv_build_alias" &&
2042  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2043echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2044   { (exit 1); exit 1; }; }
2045ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2046  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2047echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2048   { (exit 1); exit 1; }; }
2049
2050fi
2051echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2052echo "${ECHO_T}$ac_cv_build" >&6
2053build=$ac_cv_build
2054build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057
2058
2059echo "$as_me:$LINENO: checking host system type" >&5
2060echo $ECHO_N "checking host system type... $ECHO_C" >&6
2061if test "${ac_cv_host+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  ac_cv_host_alias=$host_alias
2065test -z "$ac_cv_host_alias" &&
2066  ac_cv_host_alias=$ac_cv_build_alias
2067ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2068  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2069echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2070   { (exit 1); exit 1; }; }
2071
2072fi
2073echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2074echo "${ECHO_T}$ac_cv_host" >&6
2075host=$ac_cv_host
2076host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079
2080
2081DEPDIR="${am__leading_dot}deps"
2082
2083          ac_config_commands="$ac_config_commands depfiles"
2084
2085
2086am_make=${MAKE-make}
2087cat > confinc << 'END'
2088am__doit:
2089	@echo done
2090.PHONY: am__doit
2091END
2092# If we don't find an include directive, just comment out the code.
2093echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2094echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2095am__include="#"
2096am__quote=
2097_am_result=none
2098# First try GNU make style include.
2099echo "include confinc" > confmf
2100# We grep out `Entering directory' and `Leaving directory'
2101# messages which can occur if `w' ends up in MAKEFLAGS.
2102# In particular we don't look at `^make:' because GNU make might
2103# be invoked under some other name (usually "gmake"), in which
2104# case it prints its new name instead of `make'.
2105if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2106   am__include=include
2107   am__quote=
2108   _am_result=GNU
2109fi
2110# Now try BSD make style include.
2111if test "$am__include" = "#"; then
2112   echo '.include "confinc"' > confmf
2113   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2114      am__include=.include
2115      am__quote="\""
2116      _am_result=BSD
2117   fi
2118fi
2119
2120
2121echo "$as_me:$LINENO: result: $_am_result" >&5
2122echo "${ECHO_T}$_am_result" >&6
2123rm -f confinc confmf
2124
2125# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2126if test "${enable_dependency_tracking+set}" = set; then
2127  enableval="$enable_dependency_tracking"
2128
2129fi;
2130if test "x$enable_dependency_tracking" != xno; then
2131  am_depcomp="$ac_aux_dir/depcomp"
2132  AMDEPBACKSLASH='\'
2133fi
2134
2135
2136if test "x$enable_dependency_tracking" != xno; then
2137  AMDEP_TRUE=
2138  AMDEP_FALSE='#'
2139else
2140  AMDEP_TRUE='#'
2141  AMDEP_FALSE=
2142fi
2143
2144
2145
2146ac_ext=c
2147ac_cpp='$CPP $CPPFLAGS'
2148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151if test -n "$ac_tool_prefix"; then
2152  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2153set dummy ${ac_tool_prefix}gcc; ac_word=$2
2154echo "$as_me:$LINENO: checking for $ac_word" >&5
2155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156if test "${ac_cv_prog_CC+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  if test -n "$CC"; then
2160  ac_cv_prog_CC="$CC" # Let the user override the test.
2161else
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165  IFS=$as_save_IFS
2166  test -z "$as_dir" && as_dir=.
2167  for ac_exec_ext in '' $ac_executable_extensions; do
2168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171    break 2
2172  fi
2173done
2174done
2175
2176fi
2177fi
2178CC=$ac_cv_prog_CC
2179if test -n "$CC"; then
2180  echo "$as_me:$LINENO: result: $CC" >&5
2181echo "${ECHO_T}$CC" >&6
2182else
2183  echo "$as_me:$LINENO: result: no" >&5
2184echo "${ECHO_T}no" >&6
2185fi
2186
2187fi
2188if test -z "$ac_cv_prog_CC"; then
2189  ac_ct_CC=$CC
2190  # Extract the first word of "gcc", so it can be a program name with args.
2191set dummy gcc; ac_word=$2
2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197  if test -n "$ac_ct_CC"; then
2198  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199else
2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203  IFS=$as_save_IFS
2204  test -z "$as_dir" && as_dir=.
2205  for ac_exec_ext in '' $ac_executable_extensions; do
2206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207    ac_cv_prog_ac_ct_CC="gcc"
2208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209    break 2
2210  fi
2211done
2212done
2213
2214fi
2215fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then
2218  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6
2220else
2221  echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6
2223fi
2224
2225  CC=$ac_ct_CC
2226else
2227  CC="$ac_cv_prog_CC"
2228fi
2229
2230if test -z "$CC"; then
2231  if test -n "$ac_tool_prefix"; then
2232  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233set dummy ${ac_tool_prefix}cc; ac_word=$2
2234echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236if test "${ac_cv_prog_CC+set}" = set; then
2237  echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239  if test -n "$CC"; then
2240  ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247  for ac_exec_ext in '' $ac_executable_extensions; do
2248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249    ac_cv_prog_CC="${ac_tool_prefix}cc"
2250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251    break 2
2252  fi
2253done
2254done
2255
2256fi
2257fi
2258CC=$ac_cv_prog_CC
2259if test -n "$CC"; then
2260  echo "$as_me:$LINENO: result: $CC" >&5
2261echo "${ECHO_T}$CC" >&6
2262else
2263  echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6
2265fi
2266
2267fi
2268if test -z "$ac_cv_prog_CC"; then
2269  ac_ct_CC=$CC
2270  # Extract the first word of "cc", so it can be a program name with args.
2271set dummy cc; ac_word=$2
2272echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275  echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277  if test -n "$ac_ct_CC"; then
2278  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283  IFS=$as_save_IFS
2284  test -z "$as_dir" && as_dir=.
2285  for ac_exec_ext in '' $ac_executable_extensions; do
2286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287    ac_cv_prog_ac_ct_CC="cc"
2288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289    break 2
2290  fi
2291done
2292done
2293
2294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
2298  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299echo "${ECHO_T}$ac_ct_CC" >&6
2300else
2301  echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6
2303fi
2304
2305  CC=$ac_ct_CC
2306else
2307  CC="$ac_cv_prog_CC"
2308fi
2309
2310fi
2311if test -z "$CC"; then
2312  # Extract the first word of "cc", so it can be a program name with args.
2313set dummy cc; ac_word=$2
2314echo "$as_me:$LINENO: checking for $ac_word" >&5
2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316if test "${ac_cv_prog_CC+set}" = set; then
2317  echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319  if test -n "$CC"; then
2320  ac_cv_prog_CC="$CC" # Let the user override the test.
2321else
2322  ac_prog_rejected=no
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328  for ac_exec_ext in '' $ac_executable_extensions; do
2329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2331       ac_prog_rejected=yes
2332       continue
2333     fi
2334    ac_cv_prog_CC="cc"
2335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336    break 2
2337  fi
2338done
2339done
2340
2341if test $ac_prog_rejected = yes; then
2342  # We found a bogon in the path, so make sure we never use it.
2343  set dummy $ac_cv_prog_CC
2344  shift
2345  if test $# != 0; then
2346    # We chose a different compiler from the bogus one.
2347    # However, it has the same basename, so the bogon will be chosen
2348    # first if we set CC to just the basename; use the full file name.
2349    shift
2350    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2351  fi
2352fi
2353fi
2354fi
2355CC=$ac_cv_prog_CC
2356if test -n "$CC"; then
2357  echo "$as_me:$LINENO: result: $CC" >&5
2358echo "${ECHO_T}$CC" >&6
2359else
2360  echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6
2362fi
2363
2364fi
2365if test -z "$CC"; then
2366  if test -n "$ac_tool_prefix"; then
2367  for ac_prog in cl
2368  do
2369    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2370set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2371echo "$as_me:$LINENO: checking for $ac_word" >&5
2372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373if test "${ac_cv_prog_CC+set}" = set; then
2374  echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376  if test -n "$CC"; then
2377  ac_cv_prog_CC="$CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382  IFS=$as_save_IFS
2383  test -z "$as_dir" && as_dir=.
2384  for ac_exec_ext in '' $ac_executable_extensions; do
2385  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388    break 2
2389  fi
2390done
2391done
2392
2393fi
2394fi
2395CC=$ac_cv_prog_CC
2396if test -n "$CC"; then
2397  echo "$as_me:$LINENO: result: $CC" >&5
2398echo "${ECHO_T}$CC" >&6
2399else
2400  echo "$as_me:$LINENO: result: no" >&5
2401echo "${ECHO_T}no" >&6
2402fi
2403
2404    test -n "$CC" && break
2405  done
2406fi
2407if test -z "$CC"; then
2408  ac_ct_CC=$CC
2409  for ac_prog in cl
2410do
2411  # Extract the first word of "$ac_prog", so it can be a program name with args.
2412set dummy $ac_prog; ac_word=$2
2413echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416  echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418  if test -n "$ac_ct_CC"; then
2419  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426  for ac_exec_ext in '' $ac_executable_extensions; do
2427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428    ac_cv_prog_ac_ct_CC="$ac_prog"
2429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430    break 2
2431  fi
2432done
2433done
2434
2435fi
2436fi
2437ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438if test -n "$ac_ct_CC"; then
2439  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440echo "${ECHO_T}$ac_ct_CC" >&6
2441else
2442  echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6
2444fi
2445
2446  test -n "$ac_ct_CC" && break
2447done
2448
2449  CC=$ac_ct_CC
2450fi
2451
2452fi
2453
2454
2455test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2456See \`config.log' for more details." >&5
2457echo "$as_me: error: no acceptable C compiler found in \$PATH
2458See \`config.log' for more details." >&2;}
2459   { (exit 1); exit 1; }; }
2460
2461# Provide some information about the compiler.
2462echo "$as_me:$LINENO:" \
2463     "checking for C compiler version" >&5
2464ac_compiler=`set X $ac_compile; echo $2`
2465{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2466  (eval $ac_compiler --version </dev/null >&5) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }
2470{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2471  (eval $ac_compiler -v </dev/null >&5) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }
2475{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2476  (eval $ac_compiler -V </dev/null >&5) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }
2480
2481cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h.  */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h.  */
2487
2488int
2489main ()
2490{
2491
2492  ;
2493  return 0;
2494}
2495_ACEOF
2496ac_clean_files_save=$ac_clean_files
2497ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498# Try to create an executable without -o first, disregard a.out.
2499# It will help us diagnose broken compilers, and finding out an intuition
2500# of exeext.
2501echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2503ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2505  (eval $ac_link_default) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; then
2509  # Find the output, starting from the most likely.  This scheme is
2510# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2511# resort.
2512
2513# Be careful to initialize this variable, since it used to be cached.
2514# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2515ac_cv_exeext=
2516# b.out is created by i960 compilers.
2517for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2518do
2519  test -f "$ac_file" || continue
2520  case $ac_file in
2521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2522	;;
2523    conftest.$ac_ext )
2524	# This is the source file.
2525	;;
2526    [ab].out )
2527	# We found the default executable, but exeext='' is most
2528	# certainly right.
2529	break;;
2530    *.* )
2531	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532	# FIXME: I believe we export ac_cv_exeext for Libtool,
2533	# but it would be cool to find out if it's true.  Does anybody
2534	# maintain Libtool? --akim.
2535	export ac_cv_exeext
2536	break;;
2537    * )
2538	break;;
2539  esac
2540done
2541else
2542  echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546See \`config.log' for more details." >&5
2547echo "$as_me: error: C compiler cannot create executables
2548See \`config.log' for more details." >&2;}
2549   { (exit 77); exit 77; }; }
2550fi
2551
2552ac_exeext=$ac_cv_exeext
2553echo "$as_me:$LINENO: result: $ac_file" >&5
2554echo "${ECHO_T}$ac_file" >&6
2555
2556# Check the compiler produces executables we can run.  If not, either
2557# the compiler is broken, or we cross compile.
2558echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2560# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561# If not cross compiling, check that we can run a simple program.
2562if test "$cross_compiling" != yes; then
2563  if { ac_try='./$ac_file'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; }; then
2569    cross_compiling=no
2570  else
2571    if test "$cross_compiling" = maybe; then
2572	cross_compiling=yes
2573    else
2574	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575If you meant to cross compile, use \`--host'.
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: cannot run C compiled programs.
2578If you meant to cross compile, use \`--host'.
2579See \`config.log' for more details." >&2;}
2580   { (exit 1); exit 1; }; }
2581    fi
2582  fi
2583fi
2584echo "$as_me:$LINENO: result: yes" >&5
2585echo "${ECHO_T}yes" >&6
2586
2587rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588ac_clean_files=$ac_clean_files_save
2589# Check the compiler produces executables we can run.  If not, either
2590# the compiler is broken, or we cross compile.
2591echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594echo "${ECHO_T}$cross_compiling" >&6
2595
2596echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599  (eval $ac_link) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; then
2603  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2605# work properly (i.e., refer to `conftest.exe'), while it won't with
2606# `rm'.
2607for ac_file in conftest.exe conftest conftest.*; do
2608  test -f "$ac_file" || continue
2609  case $ac_file in
2610    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612	  export ac_cv_exeext
2613	  break;;
2614    * ) break;;
2615  esac
2616done
2617else
2618  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2619See \`config.log' for more details." >&5
2620echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2621See \`config.log' for more details." >&2;}
2622   { (exit 1); exit 1; }; }
2623fi
2624
2625rm -f conftest$ac_cv_exeext
2626echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2627echo "${ECHO_T}$ac_cv_exeext" >&6
2628
2629rm -f conftest.$ac_ext
2630EXEEXT=$ac_cv_exeext
2631ac_exeext=$EXEEXT
2632echo "$as_me:$LINENO: checking for suffix of object files" >&5
2633echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2634if test "${ac_cv_objext+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643
2644int
2645main ()
2646{
2647
2648  ;
2649  return 0;
2650}
2651_ACEOF
2652rm -f conftest.o conftest.obj
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654  (eval $ac_compile) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; then
2658  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2659  case $ac_file in
2660    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2661    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662       break;;
2663  esac
2664done
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2670See \`config.log' for more details." >&5
2671echo "$as_me: error: cannot compute suffix of object files: cannot compile
2672See \`config.log' for more details." >&2;}
2673   { (exit 1); exit 1; }; }
2674fi
2675
2676rm -f conftest.$ac_cv_objext conftest.$ac_ext
2677fi
2678echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2679echo "${ECHO_T}$ac_cv_objext" >&6
2680OBJEXT=$ac_cv_objext
2681ac_objext=$OBJEXT
2682echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2683echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2684if test "${ac_cv_c_compiler_gnu+set}" = set; then
2685  echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693
2694int
2695main ()
2696{
2697#ifndef __GNUC__
2698       choke me
2699#endif
2700
2701  ;
2702  return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716  (eval $ac_try) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }; } &&
2720	 { ac_try='test -s conftest.$ac_objext'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; }; then
2726  ac_compiler_gnu=yes
2727else
2728  echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731ac_compiler_gnu=no
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_cv_c_compiler_gnu=$ac_compiler_gnu
2735
2736fi
2737echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2738echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2739GCC=`test $ac_compiler_gnu = yes && echo yes`
2740ac_test_CFLAGS=${CFLAGS+set}
2741ac_save_CFLAGS=$CFLAGS
2742CFLAGS="-g"
2743echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2744echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2745if test "${ac_cv_prog_cc_g+set}" = set; then
2746  echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748  cat >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
2755int
2756main ()
2757{
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765  (eval $ac_compile) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; } &&
2778	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2784  ac_cv_prog_cc_g=yes
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789ac_cv_prog_cc_g=no
2790fi
2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792fi
2793echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795if test "$ac_test_CFLAGS" = set; then
2796  CFLAGS=$ac_save_CFLAGS
2797elif test $ac_cv_prog_cc_g = yes; then
2798  if test "$GCC" = yes; then
2799    CFLAGS="-g -O2"
2800  else
2801    CFLAGS="-g"
2802  fi
2803else
2804  if test "$GCC" = yes; then
2805    CFLAGS="-O2"
2806  else
2807    CFLAGS=
2808  fi
2809fi
2810echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813  echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815  ac_cv_prog_cc_stdc=no
2816ac_save_CC=$CC
2817cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823#include <stdarg.h>
2824#include <stdio.h>
2825#include <sys/types.h>
2826#include <sys/stat.h>
2827/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2828struct buf { int x; };
2829FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830static char *e (p, i)
2831     char **p;
2832     int i;
2833{
2834  return p[i];
2835}
2836static char *f (char * (*g) (char **, int), char **p, ...)
2837{
2838  char *s;
2839  va_list v;
2840  va_start (v,p);
2841  s = g (p, va_arg (v,int));
2842  va_end (v);
2843  return s;
2844}
2845
2846/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2847   function prototypes and stuff, but not '\xHH' hex character constants.
2848   These don't provoke an error unfortunately, instead are silently treated
2849   as 'x'.  The following induces an error, until -std1 is added to get
2850   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2851   array size at least.  It's necessary to write '\x00'==0 to get something
2852   that's true only with -std1.  */
2853int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854
2855int test (int i, double x);
2856struct s1 {int (*f) (int a);};
2857struct s2 {int (*f) (double a);};
2858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859int argc;
2860char **argv;
2861int
2862main ()
2863{
2864return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2865  ;
2866  return 0;
2867}
2868_ACEOF
2869# Don't try gcc -ansi; that turns off useful extensions and
2870# breaks some systems' header files.
2871# AIX			-qlanglvl=ansi
2872# Ultrix and OSF/1	-std1
2873# HP-UX 10.20 and later	-Ae
2874# HP-UX older versions	-Aa -D_HPUX_SOURCE
2875# SVR4			-Xc -D__EXTENSIONS__
2876for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2877do
2878  CC="$ac_save_CC $ac_arg"
2879  rm -f conftest.$ac_objext
2880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881  (eval $ac_compile) 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } &&
2888	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894	 { ac_try='test -s conftest.$ac_objext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  ac_cv_prog_cc_stdc=$ac_arg
2901break
2902else
2903  echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
2907rm -f conftest.err conftest.$ac_objext
2908done
2909rm -f conftest.$ac_ext conftest.$ac_objext
2910CC=$ac_save_CC
2911
2912fi
2913
2914case "x$ac_cv_prog_cc_stdc" in
2915  x|xno)
2916    echo "$as_me:$LINENO: result: none needed" >&5
2917echo "${ECHO_T}none needed" >&6 ;;
2918  *)
2919    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2920echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2921    CC="$CC $ac_cv_prog_cc_stdc" ;;
2922esac
2923
2924# Some people use a C++ compiler to compile C.  Since we use `exit',
2925# in C++ we need to declare it.  In case someone uses the same compiler
2926# for both compiling C and C++ we need to have the C++ compiler decide
2927# the declaration of exit, since it's the most demanding environment.
2928cat >conftest.$ac_ext <<_ACEOF
2929#ifndef __cplusplus
2930  choke me
2931#endif
2932_ACEOF
2933rm -f conftest.$ac_objext
2934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935  (eval $ac_compile) 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } &&
2942	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; } &&
2948	 { ac_try='test -s conftest.$ac_objext'
2949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950  (eval $ac_try) 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; }; then
2954  for ac_declaration in \
2955   '' \
2956   'extern "C" void std::exit (int) throw (); using std::exit;' \
2957   'extern "C" void std::exit (int); using std::exit;' \
2958   'extern "C" void exit (int) throw ();' \
2959   'extern "C" void exit (int);' \
2960   'void exit (int);'
2961do
2962  cat >conftest.$ac_ext <<_ACEOF
2963/* confdefs.h.  */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h.  */
2968$ac_declaration
2969#include <stdlib.h>
2970int
2971main ()
2972{
2973exit (42);
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext
2979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980  (eval $ac_compile) 2>conftest.er1
2981  ac_status=$?
2982  grep -v '^ *+' conftest.er1 >conftest.err
2983  rm -f conftest.er1
2984  cat conftest.err >&5
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); } &&
2987	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; } &&
2993	 { ac_try='test -s conftest.$ac_objext'
2994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995  (eval $ac_try) 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }; }; then
2999  :
3000else
3001  echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004continue
3005fi
3006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007  cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h.  */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h.  */
3013$ac_declaration
3014int
3015main ()
3016{
3017exit (42);
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024  (eval $ac_compile) 2>conftest.er1
3025  ac_status=$?
3026  grep -v '^ *+' conftest.er1 >conftest.err
3027  rm -f conftest.er1
3028  cat conftest.err >&5
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); } &&
3031	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033  (eval $ac_try) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; } &&
3037	 { ac_try='test -s conftest.$ac_objext'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; }; then
3043  break
3044else
3045  echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048fi
3049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050done
3051rm -f conftest*
3052if test -n "$ac_declaration"; then
3053  echo '#ifdef __cplusplus' >>confdefs.h
3054  echo $ac_declaration      >>confdefs.h
3055  echo '#endif'             >>confdefs.h
3056fi
3057
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062fi
3063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064ac_ext=c
3065ac_cpp='$CPP $CPPFLAGS'
3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3070depcc="$CC"   am_compiler_list=
3071
3072echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3073echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3074if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3078  # We make a subdir and do the tests there.  Otherwise we can end up
3079  # making bogus files that we don't know about and never remove.  For
3080  # instance it was reported that on HP-UX the gcc test will end up
3081  # making a dummy file named `D' -- because `-MD' means `put the output
3082  # in D'.
3083  mkdir conftest.dir
3084  # Copy depcomp to subdir because otherwise we won't find it if we're
3085  # using a relative directory.
3086  cp "$am_depcomp" conftest.dir
3087  cd conftest.dir
3088  # We will build objects and dependencies in a subdirectory because
3089  # it helps to detect inapplicable dependency modes.  For instance
3090  # both Tru64's cc and ICC support -MD to output dependencies as a
3091  # side effect of compilation, but ICC will put the dependencies in
3092  # the current directory while Tru64 will put them in the object
3093  # directory.
3094  mkdir sub
3095
3096  am_cv_CC_dependencies_compiler_type=none
3097  if test "$am_compiler_list" = ""; then
3098     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3099  fi
3100  for depmode in $am_compiler_list; do
3101    # Setup a source with many dependencies, because some compilers
3102    # like to wrap large dependency lists on column 80 (with \), and
3103    # we should not choose a depcomp mode which is confused by this.
3104    #
3105    # We need to recreate these files for each test, as the compiler may
3106    # overwrite some of them when testing with obscure command lines.
3107    # This happens at least with the AIX C compiler.
3108    : > sub/conftest.c
3109    for i in 1 2 3 4 5 6; do
3110      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3111      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3112      # Solaris 8's {/usr,}/bin/sh.
3113      touch sub/conftst$i.h
3114    done
3115    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3116
3117    case $depmode in
3118    nosideeffect)
3119      # after this tag, mechanisms are not by side-effect, so they'll
3120      # only be used when explicitly requested
3121      if test "x$enable_dependency_tracking" = xyes; then
3122	continue
3123      else
3124	break
3125      fi
3126      ;;
3127    none) break ;;
3128    esac
3129    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3130    # mode.  It turns out that the SunPro C++ compiler does not properly
3131    # handle `-M -o', and we need to detect this.
3132    if depmode=$depmode \
3133       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3134       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3135       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3136         >/dev/null 2>conftest.err &&
3137       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3138       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3139       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3140      # icc doesn't choke on unknown options, it will just issue warnings
3141      # or remarks (even with -Werror).  So we grep stderr for any message
3142      # that says an option was ignored or not supported.
3143      # When given -MP, icc 7.0 and 7.1 complain thusly:
3144      #   icc: Command line warning: ignoring option '-M'; no argument required
3145      # The diagnosis changed in icc 8.0:
3146      #   icc: Command line remark: option '-MP' not supported
3147      if (grep 'ignoring option' conftest.err ||
3148          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3149        am_cv_CC_dependencies_compiler_type=$depmode
3150        break
3151      fi
3152    fi
3153  done
3154
3155  cd ..
3156  rm -rf conftest.dir
3157else
3158  am_cv_CC_dependencies_compiler_type=none
3159fi
3160
3161fi
3162echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3163echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3164CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3165
3166
3167
3168if
3169  test "x$enable_dependency_tracking" != xno \
3170  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3171  am__fastdepCC_TRUE=
3172  am__fastdepCC_FALSE='#'
3173else
3174  am__fastdepCC_TRUE='#'
3175  am__fastdepCC_FALSE=
3176fi
3177
3178
3179echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3180echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3181if test "${lt_cv_path_SED+set}" = set; then
3182  echo $ECHO_N "(cached) $ECHO_C" >&6
3183else
3184  # Loop through the user's path and test for sed and gsed.
3185# Then use that list of sed's as ones to test for truncation.
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189  IFS=$as_save_IFS
3190  test -z "$as_dir" && as_dir=.
3191  for lt_ac_prog in sed gsed; do
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3194        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3195      fi
3196    done
3197  done
3198done
3199lt_ac_max=0
3200lt_ac_count=0
3201# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3202# along with /bin/sed that truncates output.
3203for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3204  test ! -f $lt_ac_sed && continue
3205  cat /dev/null > conftest.in
3206  lt_ac_count=0
3207  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3208  # Check for GNU sed and select it if it is found.
3209  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3210    lt_cv_path_SED=$lt_ac_sed
3211    break
3212  fi
3213  while true; do
3214    cat conftest.in conftest.in >conftest.tmp
3215    mv conftest.tmp conftest.in
3216    cp conftest.in conftest.nl
3217    echo >>conftest.nl
3218    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3219    cmp -s conftest.out conftest.nl || break
3220    # 10000 chars as input seems more than enough
3221    test $lt_ac_count -gt 10 && break
3222    lt_ac_count=`expr $lt_ac_count + 1`
3223    if test $lt_ac_count -gt $lt_ac_max; then
3224      lt_ac_max=$lt_ac_count
3225      lt_cv_path_SED=$lt_ac_sed
3226    fi
3227  done
3228done
3229
3230fi
3231
3232SED=$lt_cv_path_SED
3233echo "$as_me:$LINENO: result: $SED" >&5
3234echo "${ECHO_T}$SED" >&6
3235
3236echo "$as_me:$LINENO: checking for egrep" >&5
3237echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3238if test "${ac_cv_prog_egrep+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3242    then ac_cv_prog_egrep='grep -E'
3243    else ac_cv_prog_egrep='egrep'
3244    fi
3245fi
3246echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3247echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3248 EGREP=$ac_cv_prog_egrep
3249
3250
3251
3252# Check whether --with-gnu-ld or --without-gnu-ld was given.
3253if test "${with_gnu_ld+set}" = set; then
3254  withval="$with_gnu_ld"
3255  test "$withval" = no || with_gnu_ld=yes
3256else
3257  with_gnu_ld=no
3258fi;
3259ac_prog=ld
3260if test "$GCC" = yes; then
3261  # Check if gcc -print-prog-name=ld gives a path.
3262  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3263echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3264  case $host in
3265  *-*-mingw*)
3266    # gcc leaves a trailing carriage return which upsets mingw
3267    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3268  *)
3269    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3270  esac
3271  case $ac_prog in
3272    # Accept absolute paths.
3273    [\\/]* | ?:[\\/]*)
3274      re_direlt='/[^/][^/]*/\.\./'
3275      # Canonicalize the pathname of ld
3276      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3277      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3278	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3279      done
3280      test -z "$LD" && LD="$ac_prog"
3281      ;;
3282  "")
3283    # If it fails, then pretend we aren't using GCC.
3284    ac_prog=ld
3285    ;;
3286  *)
3287    # If it is relative, then search for the first ld in PATH.
3288    with_gnu_ld=unknown
3289    ;;
3290  esac
3291elif test "$with_gnu_ld" = yes; then
3292  echo "$as_me:$LINENO: checking for GNU ld" >&5
3293echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3294else
3295  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3296echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3297fi
3298if test "${lt_cv_path_LD+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  if test -z "$LD"; then
3302  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3303  for ac_dir in $PATH; do
3304    IFS="$lt_save_ifs"
3305    test -z "$ac_dir" && ac_dir=.
3306    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307      lt_cv_path_LD="$ac_dir/$ac_prog"
3308      # Check to see if the program is GNU ld.  I'd rather use --version,
3309      # but apparently some variants of GNU ld only accept -v.
3310      # Break only if it was the GNU/non-GNU ld that we prefer.
3311      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3312      *GNU* | *'with BFD'*)
3313	test "$with_gnu_ld" != no && break
3314	;;
3315      *)
3316	test "$with_gnu_ld" != yes && break
3317	;;
3318      esac
3319    fi
3320  done
3321  IFS="$lt_save_ifs"
3322else
3323  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3324fi
3325fi
3326
3327LD="$lt_cv_path_LD"
3328if test -n "$LD"; then
3329  echo "$as_me:$LINENO: result: $LD" >&5
3330echo "${ECHO_T}$LD" >&6
3331else
3332  echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334fi
3335test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3336echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3337   { (exit 1); exit 1; }; }
3338echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3339echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3340if test "${lt_cv_prog_gnu_ld+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3344case `$LD -v 2>&1 </dev/null` in
3345*GNU* | *'with BFD'*)
3346  lt_cv_prog_gnu_ld=yes
3347  ;;
3348*)
3349  lt_cv_prog_gnu_ld=no
3350  ;;
3351esac
3352fi
3353echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3354echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3355with_gnu_ld=$lt_cv_prog_gnu_ld
3356
3357
3358echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3359echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3360if test "${lt_cv_ld_reload_flag+set}" = set; then
3361  echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363  lt_cv_ld_reload_flag='-r'
3364fi
3365echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3366echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3367reload_flag=$lt_cv_ld_reload_flag
3368case $reload_flag in
3369"" | " "*) ;;
3370*) reload_flag=" $reload_flag" ;;
3371esac
3372reload_cmds='$LD$reload_flag -o $output$reload_objs'
3373case $host_os in
3374  darwin*)
3375    if test "$GCC" = yes; then
3376      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3377    else
3378      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3379    fi
3380    ;;
3381esac
3382
3383echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385if test "${lt_cv_path_NM+set}" = set; then
3386  echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388  if test -n "$NM"; then
3389  # Let the user override the test.
3390  lt_cv_path_NM="$NM"
3391else
3392  lt_nm_to_check="${ac_tool_prefix}nm"
3393  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3394    lt_nm_to_check="$lt_nm_to_check nm"
3395  fi
3396  for lt_tmp_nm in $lt_nm_to_check; do
3397    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3398    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3399      IFS="$lt_save_ifs"
3400      test -z "$ac_dir" && ac_dir=.
3401      tmp_nm="$ac_dir/$lt_tmp_nm"
3402      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3403	# Check to see if the nm accepts a BSD-compat flag.
3404	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3405	#   nm: unknown option "B" ignored
3406	# Tru64's nm complains that /dev/null is an invalid object file
3407	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3408	*/dev/null* | *'Invalid file or object type'*)
3409	  lt_cv_path_NM="$tmp_nm -B"
3410	  break
3411	  ;;
3412	*)
3413	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3414	  */dev/null*)
3415	    lt_cv_path_NM="$tmp_nm -p"
3416	    break
3417	    ;;
3418	  *)
3419	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3420	    continue # so that we can try to find one that supports BSD flags
3421	    ;;
3422	  esac
3423	  ;;
3424	esac
3425      fi
3426    done
3427    IFS="$lt_save_ifs"
3428  done
3429  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3430fi
3431fi
3432echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3433echo "${ECHO_T}$lt_cv_path_NM" >&6
3434NM="$lt_cv_path_NM"
3435
3436echo "$as_me:$LINENO: checking whether ln -s works" >&5
3437echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3438LN_S=$as_ln_s
3439if test "$LN_S" = "ln -s"; then
3440  echo "$as_me:$LINENO: result: yes" >&5
3441echo "${ECHO_T}yes" >&6
3442else
3443  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3444echo "${ECHO_T}no, using $LN_S" >&6
3445fi
3446
3447echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3448echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3449if test "${lt_cv_deplibs_check_method+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  lt_cv_file_magic_cmd='$MAGIC_CMD'
3453lt_cv_file_magic_test_file=
3454lt_cv_deplibs_check_method='unknown'
3455# Need to set the preceding variable on all platforms that support
3456# interlibrary dependencies.
3457# 'none' -- dependencies not supported.
3458# `unknown' -- same as none, but documents that we really don't know.
3459# 'pass_all' -- all dependencies passed with no checks.
3460# 'test_compile' -- check by making test program.
3461# 'file_magic [[regex]]' -- check by looking for files in library path
3462# which responds to the $file_magic_cmd with a given extended regex.
3463# If you have `file' or equivalent on your system and you're not sure
3464# whether `pass_all' will *always* work, you probably want this one.
3465
3466case $host_os in
3467aix4* | aix5*)
3468  lt_cv_deplibs_check_method=pass_all
3469  ;;
3470
3471beos*)
3472  lt_cv_deplibs_check_method=pass_all
3473  ;;
3474
3475bsdi[45]*)
3476  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3477  lt_cv_file_magic_cmd='/usr/bin/file -L'
3478  lt_cv_file_magic_test_file=/shlib/libc.so
3479  ;;
3480
3481cygwin*)
3482  # func_win32_libid is a shell function defined in ltmain.sh
3483  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3484  lt_cv_file_magic_cmd='func_win32_libid'
3485  ;;
3486
3487mingw* | pw32*)
3488  # Base MSYS/MinGW do not provide the 'file' command needed by
3489  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3490  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3491  lt_cv_file_magic_cmd='$OBJDUMP -f'
3492  ;;
3493
3494darwin* | rhapsody*)
3495  lt_cv_deplibs_check_method=pass_all
3496  ;;
3497
3498freebsd* | kfreebsd*-gnu | dragonfly*)
3499  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3500    case $host_cpu in
3501    i*86 )
3502      # Not sure whether the presence of OpenBSD here was a mistake.
3503      # Let's accept both of them until this is cleared up.
3504      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3505      lt_cv_file_magic_cmd=/usr/bin/file
3506      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3507      ;;
3508    esac
3509  else
3510    lt_cv_deplibs_check_method=pass_all
3511  fi
3512  ;;
3513
3514gnu*)
3515  lt_cv_deplibs_check_method=pass_all
3516  ;;
3517
3518hpux10.20* | hpux11*)
3519  lt_cv_file_magic_cmd=/usr/bin/file
3520  case $host_cpu in
3521  ia64*)
3522    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3523    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3524    ;;
3525  hppa*64*)
3526    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]'
3527    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3528    ;;
3529  *)
3530    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3531    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3532    ;;
3533  esac
3534  ;;
3535
3536interix3*)
3537  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3538  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3539  ;;
3540
3541irix5* | irix6* | nonstopux*)
3542  case $LD in
3543  *-32|*"-32 ") libmagic=32-bit;;
3544  *-n32|*"-n32 ") libmagic=N32;;
3545  *-64|*"-64 ") libmagic=64-bit;;
3546  *) libmagic=never-match;;
3547  esac
3548  lt_cv_deplibs_check_method=pass_all
3549  ;;
3550
3551# This must be Linux ELF.
3552linux*)
3553  lt_cv_deplibs_check_method=pass_all
3554  ;;
3555
3556netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3557  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3558    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3559  else
3560    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3561  fi
3562  ;;
3563
3564newos6*)
3565  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3566  lt_cv_file_magic_cmd=/usr/bin/file
3567  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3568  ;;
3569
3570nto-qnx*)
3571  lt_cv_deplibs_check_method=unknown
3572  ;;
3573
3574openbsd*)
3575  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3576    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3577  else
3578    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3579  fi
3580  ;;
3581
3582osf3* | osf4* | osf5*)
3583  lt_cv_deplibs_check_method=pass_all
3584  ;;
3585
3586solaris*)
3587  lt_cv_deplibs_check_method=pass_all
3588  ;;
3589
3590sysv4 | sysv4.3*)
3591  case $host_vendor in
3592  motorola)
3593    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]'
3594    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3595    ;;
3596  ncr)
3597    lt_cv_deplibs_check_method=pass_all
3598    ;;
3599  sequent)
3600    lt_cv_file_magic_cmd='/bin/file'
3601    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3602    ;;
3603  sni)
3604    lt_cv_file_magic_cmd='/bin/file'
3605    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3606    lt_cv_file_magic_test_file=/lib/libc.so
3607    ;;
3608  siemens)
3609    lt_cv_deplibs_check_method=pass_all
3610    ;;
3611  pc)
3612    lt_cv_deplibs_check_method=pass_all
3613    ;;
3614  esac
3615  ;;
3616
3617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3618  lt_cv_deplibs_check_method=pass_all
3619  ;;
3620esac
3621
3622fi
3623echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3624echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3625file_magic_cmd=$lt_cv_file_magic_cmd
3626deplibs_check_method=$lt_cv_deplibs_check_method
3627test -z "$deplibs_check_method" && deplibs_check_method=unknown
3628
3629
3630
3631
3632# If no C compiler was specified, use CC.
3633LTCC=${LTCC-"$CC"}
3634
3635# If no C compiler flags were specified, use CFLAGS.
3636LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3637
3638# Allow CC to be a program name with arguments.
3639compiler=$CC
3640
3641
3642# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3643if test "${enable_libtool_lock+set}" = set; then
3644  enableval="$enable_libtool_lock"
3645
3646fi;
3647test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3648
3649# Some flags need to be propagated to the compiler or linker for good
3650# libtool support.
3651case $host in
3652ia64-*-hpux*)
3653  # Find out which ABI we are using.
3654  echo 'int i;' > conftest.$ac_ext
3655  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656  (eval $ac_compile) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; then
3660    case `/usr/bin/file conftest.$ac_objext` in
3661    *ELF-32*)
3662      HPUX_IA64_MODE="32"
3663      ;;
3664    *ELF-64*)
3665      HPUX_IA64_MODE="64"
3666      ;;
3667    esac
3668  fi
3669  rm -rf conftest*
3670  ;;
3671*-*-irix6*)
3672  # Find out which ABI we are using.
3673  echo '#line 3673 "configure"' > conftest.$ac_ext
3674  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675  (eval $ac_compile) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; then
3679   if test "$lt_cv_prog_gnu_ld" = yes; then
3680    case `/usr/bin/file conftest.$ac_objext` in
3681    *32-bit*)
3682      LD="${LD-ld} -melf32bsmip"
3683      ;;
3684    *N32*)
3685      LD="${LD-ld} -melf32bmipn32"
3686      ;;
3687    *64-bit*)
3688      LD="${LD-ld} -melf64bmip"
3689      ;;
3690    esac
3691   else
3692    case `/usr/bin/file conftest.$ac_objext` in
3693    *32-bit*)
3694      LD="${LD-ld} -32"
3695      ;;
3696    *N32*)
3697      LD="${LD-ld} -n32"
3698      ;;
3699    *64-bit*)
3700      LD="${LD-ld} -64"
3701      ;;
3702    esac
3703   fi
3704  fi
3705  rm -rf conftest*
3706  ;;
3707
3708x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3709  # Find out which ABI we are using.
3710  echo 'int i;' > conftest.$ac_ext
3711  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712  (eval $ac_compile) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; then
3716    case `/usr/bin/file conftest.o` in
3717    *32-bit*)
3718      case $host in
3719        x86_64-*linux*)
3720          LD="${LD-ld} -m elf_i386"
3721          ;;
3722        ppc64-*linux*|powerpc64-*linux*)
3723          LD="${LD-ld} -m elf32ppclinux"
3724          ;;
3725        s390x-*linux*)
3726          LD="${LD-ld} -m elf_s390"
3727          ;;
3728        sparc64-*linux*)
3729          LD="${LD-ld} -m elf32_sparc"
3730          ;;
3731      esac
3732      ;;
3733    *64-bit*)
3734      case $host in
3735        x86_64-*linux*)
3736          LD="${LD-ld} -m elf_x86_64"
3737          ;;
3738        ppc*-*linux*|powerpc*-*linux*)
3739          LD="${LD-ld} -m elf64ppc"
3740          ;;
3741        s390*-*linux*)
3742          LD="${LD-ld} -m elf64_s390"
3743          ;;
3744        sparc*-*linux*)
3745          LD="${LD-ld} -m elf64_sparc"
3746          ;;
3747      esac
3748      ;;
3749    esac
3750  fi
3751  rm -rf conftest*
3752  ;;
3753
3754*-*-sco3.2v5*)
3755  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3756  SAVE_CFLAGS="$CFLAGS"
3757  CFLAGS="$CFLAGS -belf"
3758  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3759echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3760if test "${lt_cv_cc_needs_belf+set}" = set; then
3761  echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
3763  ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769     cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext conftest$ac_exeext
3785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786  (eval $ac_link) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; } &&
3799	 { ac_try='test -s conftest$ac_exeext'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; }; then
3805  lt_cv_cc_needs_belf=yes
3806else
3807  echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810lt_cv_cc_needs_belf=no
3811fi
3812rm -f conftest.err conftest.$ac_objext \
3813      conftest$ac_exeext conftest.$ac_ext
3814     ac_ext=c
3815ac_cpp='$CPP $CPPFLAGS'
3816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820fi
3821echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3822echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3823  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3824    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3825    CFLAGS="$SAVE_CFLAGS"
3826  fi
3827  ;;
3828sparc*-*solaris*)
3829  # Find out which ABI we are using.
3830  echo 'int i;' > conftest.$ac_ext
3831  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832  (eval $ac_compile) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; then
3836    case `/usr/bin/file conftest.o` in
3837    *64-bit*)
3838      case $lt_cv_prog_gnu_ld in
3839      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3840      *)    LD="${LD-ld} -64" ;;
3841      esac
3842      ;;
3843    esac
3844  fi
3845  rm -rf conftest*
3846  ;;
3847
3848
3849esac
3850
3851need_locks="$enable_libtool_lock"
3852
3853
3854ac_ext=c
3855ac_cpp='$CPP $CPPFLAGS'
3856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3860echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3861# On Suns, sometimes $CPP names a directory.
3862if test -n "$CPP" && test -d "$CPP"; then
3863  CPP=
3864fi
3865if test -z "$CPP"; then
3866  if test "${ac_cv_prog_CPP+set}" = set; then
3867  echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869      # Double quotes because CPP needs to be expanded
3870    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3871    do
3872      ac_preproc_ok=false
3873for ac_c_preproc_warn_flag in '' yes
3874do
3875  # Use a header file that comes with gcc, so configuring glibc
3876  # with a fresh cross-compiler works.
3877  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878  # <limits.h> exists even on freestanding compilers.
3879  # On the NeXT, cc -E runs the code through the compiler's parser,
3880  # not just through cpp. "Syntax error" is here to catch this case.
3881  cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h.  */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h.  */
3887#ifdef __STDC__
3888# include <limits.h>
3889#else
3890# include <assert.h>
3891#endif
3892		     Syntax error
3893_ACEOF
3894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896  ac_status=$?
3897  grep -v '^ *+' conftest.er1 >conftest.err
3898  rm -f conftest.er1
3899  cat conftest.err >&5
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); } >/dev/null; then
3902  if test -s conftest.err; then
3903    ac_cpp_err=$ac_c_preproc_warn_flag
3904    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905  else
3906    ac_cpp_err=
3907  fi
3908else
3909  ac_cpp_err=yes
3910fi
3911if test -z "$ac_cpp_err"; then
3912  :
3913else
3914  echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917  # Broken: fails on valid input.
3918continue
3919fi
3920rm -f conftest.err conftest.$ac_ext
3921
3922  # OK, works on sane cases.  Now check whether non-existent headers
3923  # can be detected and how.
3924  cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930#include <ac_nonexistent.h>
3931_ACEOF
3932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3933  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934  ac_status=$?
3935  grep -v '^ *+' conftest.er1 >conftest.err
3936  rm -f conftest.er1
3937  cat conftest.err >&5
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); } >/dev/null; then
3940  if test -s conftest.err; then
3941    ac_cpp_err=$ac_c_preproc_warn_flag
3942    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943  else
3944    ac_cpp_err=
3945  fi
3946else
3947  ac_cpp_err=yes
3948fi
3949if test -z "$ac_cpp_err"; then
3950  # Broken: success on invalid input.
3951continue
3952else
3953  echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956  # Passes both tests.
3957ac_preproc_ok=:
3958break
3959fi
3960rm -f conftest.err conftest.$ac_ext
3961
3962done
3963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964rm -f conftest.err conftest.$ac_ext
3965if $ac_preproc_ok; then
3966  break
3967fi
3968
3969    done
3970    ac_cv_prog_CPP=$CPP
3971
3972fi
3973  CPP=$ac_cv_prog_CPP
3974else
3975  ac_cv_prog_CPP=$CPP
3976fi
3977echo "$as_me:$LINENO: result: $CPP" >&5
3978echo "${ECHO_T}$CPP" >&6
3979ac_preproc_ok=false
3980for ac_c_preproc_warn_flag in '' yes
3981do
3982  # Use a header file that comes with gcc, so configuring glibc
3983  # with a fresh cross-compiler works.
3984  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985  # <limits.h> exists even on freestanding compilers.
3986  # On the NeXT, cc -E runs the code through the compiler's parser,
3987  # not just through cpp. "Syntax error" is here to catch this case.
3988  cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h.  */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h.  */
3994#ifdef __STDC__
3995# include <limits.h>
3996#else
3997# include <assert.h>
3998#endif
3999		     Syntax error
4000_ACEOF
4001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003  ac_status=$?
4004  grep -v '^ *+' conftest.er1 >conftest.err
4005  rm -f conftest.er1
4006  cat conftest.err >&5
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); } >/dev/null; then
4009  if test -s conftest.err; then
4010    ac_cpp_err=$ac_c_preproc_warn_flag
4011    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012  else
4013    ac_cpp_err=
4014  fi
4015else
4016  ac_cpp_err=yes
4017fi
4018if test -z "$ac_cpp_err"; then
4019  :
4020else
4021  echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024  # Broken: fails on valid input.
4025continue
4026fi
4027rm -f conftest.err conftest.$ac_ext
4028
4029  # OK, works on sane cases.  Now check whether non-existent headers
4030  # can be detected and how.
4031  cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h.  */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h.  */
4037#include <ac_nonexistent.h>
4038_ACEOF
4039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4040  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4041  ac_status=$?
4042  grep -v '^ *+' conftest.er1 >conftest.err
4043  rm -f conftest.er1
4044  cat conftest.err >&5
4045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046  (exit $ac_status); } >/dev/null; then
4047  if test -s conftest.err; then
4048    ac_cpp_err=$ac_c_preproc_warn_flag
4049    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050  else
4051    ac_cpp_err=
4052  fi
4053else
4054  ac_cpp_err=yes
4055fi
4056if test -z "$ac_cpp_err"; then
4057  # Broken: success on invalid input.
4058continue
4059else
4060  echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063  # Passes both tests.
4064ac_preproc_ok=:
4065break
4066fi
4067rm -f conftest.err conftest.$ac_ext
4068
4069done
4070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071rm -f conftest.err conftest.$ac_ext
4072if $ac_preproc_ok; then
4073  :
4074else
4075  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4076See \`config.log' for more details." >&5
4077echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4078See \`config.log' for more details." >&2;}
4079   { (exit 1); exit 1; }; }
4080fi
4081
4082ac_ext=c
4083ac_cpp='$CPP $CPPFLAGS'
4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088
4089echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4091if test "${ac_cv_header_stdc+set}" = set; then
4092  echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094  cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h.  */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h.  */
4100#include <stdlib.h>
4101#include <stdarg.h>
4102#include <string.h>
4103#include <float.h>
4104
4105int
4106main ()
4107{
4108
4109  ;
4110  return 0;
4111}
4112_ACEOF
4113rm -f conftest.$ac_objext
4114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115  (eval $ac_compile) 2>conftest.er1
4116  ac_status=$?
4117  grep -v '^ *+' conftest.er1 >conftest.err
4118  rm -f conftest.er1
4119  cat conftest.err >&5
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); } &&
4122	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; } &&
4128	 { ac_try='test -s conftest.$ac_objext'
4129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130  (eval $ac_try) 2>&5
4131  ac_status=$?
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); }; }; then
4134  ac_cv_header_stdc=yes
4135else
4136  echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139ac_cv_header_stdc=no
4140fi
4141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142
4143if test $ac_cv_header_stdc = yes; then
4144  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145  cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151#include <string.h>
4152
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "memchr" >/dev/null 2>&1; then
4156  :
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f conftest*
4161
4162fi
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166  cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h.  */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h.  */
4172#include <stdlib.h>
4173
4174_ACEOF
4175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176  $EGREP "free" >/dev/null 2>&1; then
4177  :
4178else
4179  ac_cv_header_stdc=no
4180fi
4181rm -f conftest*
4182
4183fi
4184
4185if test $ac_cv_header_stdc = yes; then
4186  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187  if test "$cross_compiling" = yes; then
4188  :
4189else
4190  cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h.  */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h.  */
4196#include <ctype.h>
4197#if ((' ' & 0x0FF) == 0x020)
4198# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200#else
4201# define ISLOWER(c) \
4202		   (('a' <= (c) && (c) <= 'i') \
4203		     || ('j' <= (c) && (c) <= 'r') \
4204		     || ('s' <= (c) && (c) <= 'z'))
4205# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206#endif
4207
4208#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209int
4210main ()
4211{
4212  int i;
4213  for (i = 0; i < 256; i++)
4214    if (XOR (islower (i), ISLOWER (i))
4215	|| toupper (i) != TOUPPER (i))
4216      exit(2);
4217  exit (0);
4218}
4219_ACEOF
4220rm -f conftest$ac_exeext
4221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222  (eval $ac_link) 2>&5
4223  ac_status=$?
4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227  (eval $ac_try) 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); }; }; then
4231  :
4232else
4233  echo "$as_me: program exited with status $ac_status" >&5
4234echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237( exit $ac_status )
4238ac_cv_header_stdc=no
4239fi
4240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4241fi
4242fi
4243fi
4244echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4245echo "${ECHO_T}$ac_cv_header_stdc" >&6
4246if test $ac_cv_header_stdc = yes; then
4247
4248cat >>confdefs.h <<\_ACEOF
4249#define STDC_HEADERS 1
4250_ACEOF
4251
4252fi
4253
4254# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4265		  inttypes.h stdint.h unistd.h
4266do
4267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268echo "$as_me:$LINENO: checking for $ac_header" >&5
4269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4270if eval "test \"\${$as_ac_Header+set}\" = set"; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  cat >conftest.$ac_ext <<_ACEOF
4274/* confdefs.h.  */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h.  */
4279$ac_includes_default
4280
4281#include <$ac_header>
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285  (eval $ac_compile) 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } &&
4292	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; } &&
4298	 { ac_try='test -s conftest.$ac_objext'
4299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300  (eval $ac_try) 2>&5
4301  ac_status=$?
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); }; }; then
4304  eval "$as_ac_Header=yes"
4305else
4306  echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309eval "$as_ac_Header=no"
4310fi
4311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4312fi
4313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4315if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316  cat >>confdefs.h <<_ACEOF
4317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324
4325
4326for ac_header in dlfcn.h
4327do
4328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330  echo "$as_me:$LINENO: checking for $ac_header" >&5
4331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334fi
4335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337else
4338  # Is the header compilable?
4339echo "$as_me:$LINENO: checking $ac_header usability" >&5
4340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4341cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h.  */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h.  */
4347$ac_includes_default
4348#include <$ac_header>
4349_ACEOF
4350rm -f conftest.$ac_objext
4351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352  (eval $ac_compile) 2>conftest.er1
4353  ac_status=$?
4354  grep -v '^ *+' conftest.er1 >conftest.err
4355  rm -f conftest.er1
4356  cat conftest.err >&5
4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); } &&
4359	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361  (eval $ac_try) 2>&5
4362  ac_status=$?
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); }; } &&
4365	 { ac_try='test -s conftest.$ac_objext'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; }; then
4371  ac_header_compiler=yes
4372else
4373  echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376ac_header_compiler=no
4377fi
4378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4380echo "${ECHO_T}$ac_header_compiler" >&6
4381
4382# Is the header present?
4383echo "$as_me:$LINENO: checking $ac_header presence" >&5
4384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4385cat >conftest.$ac_ext <<_ACEOF
4386/* confdefs.h.  */
4387_ACEOF
4388cat confdefs.h >>conftest.$ac_ext
4389cat >>conftest.$ac_ext <<_ACEOF
4390/* end confdefs.h.  */
4391#include <$ac_header>
4392_ACEOF
4393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395  ac_status=$?
4396  grep -v '^ *+' conftest.er1 >conftest.err
4397  rm -f conftest.er1
4398  cat conftest.err >&5
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); } >/dev/null; then
4401  if test -s conftest.err; then
4402    ac_cpp_err=$ac_c_preproc_warn_flag
4403    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4404  else
4405    ac_cpp_err=
4406  fi
4407else
4408  ac_cpp_err=yes
4409fi
4410if test -z "$ac_cpp_err"; then
4411  ac_header_preproc=yes
4412else
4413  echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416  ac_header_preproc=no
4417fi
4418rm -f conftest.err conftest.$ac_ext
4419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4420echo "${ECHO_T}$ac_header_preproc" >&6
4421
4422# So?  What about this header?
4423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4424  yes:no: )
4425    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4427    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4429    ac_header_preproc=yes
4430    ;;
4431  no:yes:* )
4432    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4434    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4435echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4436    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4438    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4439echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4442    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4444    (
4445      cat <<\_ASBOX
4446## -------------------------------------------- ##
4447## Report this to general@lists.openfabrics.org ##
4448## -------------------------------------------- ##
4449_ASBOX
4450    ) |
4451      sed "s/^/$as_me: WARNING:     /" >&2
4452    ;;
4453esac
4454echo "$as_me:$LINENO: checking for $ac_header" >&5
4455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4456if eval "test \"\${$as_ac_Header+set}\" = set"; then
4457  echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459  eval "$as_ac_Header=\$ac_header_preproc"
4460fi
4461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463
4464fi
4465if test `eval echo '${'$as_ac_Header'}'` = yes; then
4466  cat >>confdefs.h <<_ACEOF
4467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4468_ACEOF
4469
4470fi
4471
4472done
4473
4474ac_ext=cc
4475ac_cpp='$CXXCPP $CPPFLAGS'
4476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4479if test -n "$ac_tool_prefix"; then
4480  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4481  do
4482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484echo "$as_me:$LINENO: checking for $ac_word" >&5
4485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486if test "${ac_cv_prog_CXX+set}" = set; then
4487  echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489  if test -n "$CXX"; then
4490  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4491else
4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495  IFS=$as_save_IFS
4496  test -z "$as_dir" && as_dir=.
4497  for ac_exec_ext in '' $ac_executable_extensions; do
4498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501    break 2
4502  fi
4503done
4504done
4505
4506fi
4507fi
4508CXX=$ac_cv_prog_CXX
4509if test -n "$CXX"; then
4510  echo "$as_me:$LINENO: result: $CXX" >&5
4511echo "${ECHO_T}$CXX" >&6
4512else
4513  echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515fi
4516
4517    test -n "$CXX" && break
4518  done
4519fi
4520if test -z "$CXX"; then
4521  ac_ct_CXX=$CXX
4522  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4523do
4524  # Extract the first word of "$ac_prog", so it can be a program name with args.
4525set dummy $ac_prog; ac_word=$2
4526echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  if test -n "$ac_ct_CXX"; then
4532  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537  IFS=$as_save_IFS
4538  test -z "$as_dir" && as_dir=.
4539  for ac_exec_ext in '' $ac_executable_extensions; do
4540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541    ac_cv_prog_ac_ct_CXX="$ac_prog"
4542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543    break 2
4544  fi
4545done
4546done
4547
4548fi
4549fi
4550ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4551if test -n "$ac_ct_CXX"; then
4552  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4553echo "${ECHO_T}$ac_ct_CXX" >&6
4554else
4555  echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
4557fi
4558
4559  test -n "$ac_ct_CXX" && break
4560done
4561test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4562
4563  CXX=$ac_ct_CXX
4564fi
4565
4566
4567# Provide some information about the compiler.
4568echo "$as_me:$LINENO:" \
4569     "checking for C++ compiler version" >&5
4570ac_compiler=`set X $ac_compile; echo $2`
4571{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4572  (eval $ac_compiler --version </dev/null >&5) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }
4576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4577  (eval $ac_compiler -v </dev/null >&5) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); }
4581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4582  (eval $ac_compiler -V </dev/null >&5) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }
4586
4587echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4588echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4589if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4590  echo $ECHO_N "(cached) $ECHO_C" >&6
4591else
4592  cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h.  */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h.  */
4598
4599int
4600main ()
4601{
4602#ifndef __GNUC__
4603       choke me
4604#endif
4605
4606  ;
4607  return 0;
4608}
4609_ACEOF
4610rm -f conftest.$ac_objext
4611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612  (eval $ac_compile) 2>conftest.er1
4613  ac_status=$?
4614  grep -v '^ *+' conftest.er1 >conftest.err
4615  rm -f conftest.er1
4616  cat conftest.err >&5
4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618  (exit $ac_status); } &&
4619	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621  (eval $ac_try) 2>&5
4622  ac_status=$?
4623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624  (exit $ac_status); }; } &&
4625	 { ac_try='test -s conftest.$ac_objext'
4626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627  (eval $ac_try) 2>&5
4628  ac_status=$?
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); }; }; then
4631  ac_compiler_gnu=yes
4632else
4633  echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636ac_compiler_gnu=no
4637fi
4638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4640
4641fi
4642echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4643echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4644GXX=`test $ac_compiler_gnu = yes && echo yes`
4645ac_test_CXXFLAGS=${CXXFLAGS+set}
4646ac_save_CXXFLAGS=$CXXFLAGS
4647CXXFLAGS="-g"
4648echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4649echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4650if test "${ac_cv_prog_cxx_g+set}" = set; then
4651  echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653  cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h.  */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h.  */
4659
4660int
4661main ()
4662{
4663
4664  ;
4665  return 0;
4666}
4667_ACEOF
4668rm -f conftest.$ac_objext
4669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670  (eval $ac_compile) 2>conftest.er1
4671  ac_status=$?
4672  grep -v '^ *+' conftest.er1 >conftest.err
4673  rm -f conftest.er1
4674  cat conftest.err >&5
4675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676  (exit $ac_status); } &&
4677	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679  (eval $ac_try) 2>&5
4680  ac_status=$?
4681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682  (exit $ac_status); }; } &&
4683	 { ac_try='test -s conftest.$ac_objext'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; }; then
4689  ac_cv_prog_cxx_g=yes
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694ac_cv_prog_cxx_g=no
4695fi
4696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697fi
4698echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4699echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4700if test "$ac_test_CXXFLAGS" = set; then
4701  CXXFLAGS=$ac_save_CXXFLAGS
4702elif test $ac_cv_prog_cxx_g = yes; then
4703  if test "$GXX" = yes; then
4704    CXXFLAGS="-g -O2"
4705  else
4706    CXXFLAGS="-g"
4707  fi
4708else
4709  if test "$GXX" = yes; then
4710    CXXFLAGS="-O2"
4711  else
4712    CXXFLAGS=
4713  fi
4714fi
4715for ac_declaration in \
4716   '' \
4717   'extern "C" void std::exit (int) throw (); using std::exit;' \
4718   'extern "C" void std::exit (int); using std::exit;' \
4719   'extern "C" void exit (int) throw ();' \
4720   'extern "C" void exit (int);' \
4721   'void exit (int);'
4722do
4723  cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h.  */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h.  */
4729$ac_declaration
4730#include <stdlib.h>
4731int
4732main ()
4733{
4734exit (42);
4735  ;
4736  return 0;
4737}
4738_ACEOF
4739rm -f conftest.$ac_objext
4740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741  (eval $ac_compile) 2>conftest.er1
4742  ac_status=$?
4743  grep -v '^ *+' conftest.er1 >conftest.err
4744  rm -f conftest.er1
4745  cat conftest.err >&5
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); } &&
4748	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; } &&
4754	 { ac_try='test -s conftest.$ac_objext'
4755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756  (eval $ac_try) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; }; then
4760  :
4761else
4762  echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765continue
4766fi
4767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768  cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774$ac_declaration
4775int
4776main ()
4777{
4778exit (42);
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783rm -f conftest.$ac_objext
4784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785  (eval $ac_compile) 2>conftest.er1
4786  ac_status=$?
4787  grep -v '^ *+' conftest.er1 >conftest.err
4788  rm -f conftest.er1
4789  cat conftest.err >&5
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); } &&
4792	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794  (eval $ac_try) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; } &&
4798	 { ac_try='test -s conftest.$ac_objext'
4799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800  (eval $ac_try) 2>&5
4801  ac_status=$?
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; }; then
4804  break
4805else
4806  echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809fi
4810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811done
4812rm -f conftest*
4813if test -n "$ac_declaration"; then
4814  echo '#ifdef __cplusplus' >>confdefs.h
4815  echo $ac_declaration      >>confdefs.h
4816  echo '#endif'             >>confdefs.h
4817fi
4818
4819ac_ext=cc
4820ac_cpp='$CXXCPP $CPPFLAGS'
4821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4824
4825depcc="$CXX"  am_compiler_list=
4826
4827echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4828echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4829if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833  # We make a subdir and do the tests there.  Otherwise we can end up
4834  # making bogus files that we don't know about and never remove.  For
4835  # instance it was reported that on HP-UX the gcc test will end up
4836  # making a dummy file named `D' -- because `-MD' means `put the output
4837  # in D'.
4838  mkdir conftest.dir
4839  # Copy depcomp to subdir because otherwise we won't find it if we're
4840  # using a relative directory.
4841  cp "$am_depcomp" conftest.dir
4842  cd conftest.dir
4843  # We will build objects and dependencies in a subdirectory because
4844  # it helps to detect inapplicable dependency modes.  For instance
4845  # both Tru64's cc and ICC support -MD to output dependencies as a
4846  # side effect of compilation, but ICC will put the dependencies in
4847  # the current directory while Tru64 will put them in the object
4848  # directory.
4849  mkdir sub
4850
4851  am_cv_CXX_dependencies_compiler_type=none
4852  if test "$am_compiler_list" = ""; then
4853     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4854  fi
4855  for depmode in $am_compiler_list; do
4856    # Setup a source with many dependencies, because some compilers
4857    # like to wrap large dependency lists on column 80 (with \), and
4858    # we should not choose a depcomp mode which is confused by this.
4859    #
4860    # We need to recreate these files for each test, as the compiler may
4861    # overwrite some of them when testing with obscure command lines.
4862    # This happens at least with the AIX C compiler.
4863    : > sub/conftest.c
4864    for i in 1 2 3 4 5 6; do
4865      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4866      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4867      # Solaris 8's {/usr,}/bin/sh.
4868      touch sub/conftst$i.h
4869    done
4870    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4871
4872    case $depmode in
4873    nosideeffect)
4874      # after this tag, mechanisms are not by side-effect, so they'll
4875      # only be used when explicitly requested
4876      if test "x$enable_dependency_tracking" = xyes; then
4877	continue
4878      else
4879	break
4880      fi
4881      ;;
4882    none) break ;;
4883    esac
4884    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4885    # mode.  It turns out that the SunPro C++ compiler does not properly
4886    # handle `-M -o', and we need to detect this.
4887    if depmode=$depmode \
4888       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4889       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4890       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4891         >/dev/null 2>conftest.err &&
4892       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4893       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4894       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4895      # icc doesn't choke on unknown options, it will just issue warnings
4896      # or remarks (even with -Werror).  So we grep stderr for any message
4897      # that says an option was ignored or not supported.
4898      # When given -MP, icc 7.0 and 7.1 complain thusly:
4899      #   icc: Command line warning: ignoring option '-M'; no argument required
4900      # The diagnosis changed in icc 8.0:
4901      #   icc: Command line remark: option '-MP' not supported
4902      if (grep 'ignoring option' conftest.err ||
4903          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4904        am_cv_CXX_dependencies_compiler_type=$depmode
4905        break
4906      fi
4907    fi
4908  done
4909
4910  cd ..
4911  rm -rf conftest.dir
4912else
4913  am_cv_CXX_dependencies_compiler_type=none
4914fi
4915
4916fi
4917echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4918echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4919CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4920
4921
4922
4923if
4924  test "x$enable_dependency_tracking" != xno \
4925  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4926  am__fastdepCXX_TRUE=
4927  am__fastdepCXX_FALSE='#'
4928else
4929  am__fastdepCXX_TRUE='#'
4930  am__fastdepCXX_FALSE=
4931fi
4932
4933
4934
4935
4936if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4937    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4938    (test "X$CXX" != "Xg++"))) ; then
4939  ac_ext=cc
4940ac_cpp='$CXXCPP $CPPFLAGS'
4941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4944echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4945echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4946if test -z "$CXXCPP"; then
4947  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950      # Double quotes because CXXCPP needs to be expanded
4951    for CXXCPP in "$CXX -E" "/lib/cpp"
4952    do
4953      ac_preproc_ok=false
4954for ac_cxx_preproc_warn_flag in '' yes
4955do
4956  # Use a header file that comes with gcc, so configuring glibc
4957  # with a fresh cross-compiler works.
4958  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959  # <limits.h> exists even on freestanding compilers.
4960  # On the NeXT, cc -E runs the code through the compiler's parser,
4961  # not just through cpp. "Syntax error" is here to catch this case.
4962  cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968#ifdef __STDC__
4969# include <limits.h>
4970#else
4971# include <assert.h>
4972#endif
4973		     Syntax error
4974_ACEOF
4975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977  ac_status=$?
4978  grep -v '^ *+' conftest.er1 >conftest.err
4979  rm -f conftest.er1
4980  cat conftest.err >&5
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } >/dev/null; then
4983  if test -s conftest.err; then
4984    ac_cpp_err=$ac_cxx_preproc_warn_flag
4985    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986  else
4987    ac_cpp_err=
4988  fi
4989else
4990  ac_cpp_err=yes
4991fi
4992if test -z "$ac_cpp_err"; then
4993  :
4994else
4995  echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998  # Broken: fails on valid input.
4999continue
5000fi
5001rm -f conftest.err conftest.$ac_ext
5002
5003  # OK, works on sane cases.  Now check whether non-existent headers
5004  # can be detected and how.
5005  cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h.  */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h.  */
5011#include <ac_nonexistent.h>
5012_ACEOF
5013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } >/dev/null; then
5021  if test -s conftest.err; then
5022    ac_cpp_err=$ac_cxx_preproc_warn_flag
5023    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024  else
5025    ac_cpp_err=
5026  fi
5027else
5028  ac_cpp_err=yes
5029fi
5030if test -z "$ac_cpp_err"; then
5031  # Broken: success on invalid input.
5032continue
5033else
5034  echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037  # Passes both tests.
5038ac_preproc_ok=:
5039break
5040fi
5041rm -f conftest.err conftest.$ac_ext
5042
5043done
5044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5045rm -f conftest.err conftest.$ac_ext
5046if $ac_preproc_ok; then
5047  break
5048fi
5049
5050    done
5051    ac_cv_prog_CXXCPP=$CXXCPP
5052
5053fi
5054  CXXCPP=$ac_cv_prog_CXXCPP
5055else
5056  ac_cv_prog_CXXCPP=$CXXCPP
5057fi
5058echo "$as_me:$LINENO: result: $CXXCPP" >&5
5059echo "${ECHO_T}$CXXCPP" >&6
5060ac_preproc_ok=false
5061for ac_cxx_preproc_warn_flag in '' yes
5062do
5063  # Use a header file that comes with gcc, so configuring glibc
5064  # with a fresh cross-compiler works.
5065  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5066  # <limits.h> exists even on freestanding compilers.
5067  # On the NeXT, cc -E runs the code through the compiler's parser,
5068  # not just through cpp. "Syntax error" is here to catch this case.
5069  cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h.  */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h.  */
5075#ifdef __STDC__
5076# include <limits.h>
5077#else
5078# include <assert.h>
5079#endif
5080		     Syntax error
5081_ACEOF
5082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5083  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } >/dev/null; then
5090  if test -s conftest.err; then
5091    ac_cpp_err=$ac_cxx_preproc_warn_flag
5092    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093  else
5094    ac_cpp_err=
5095  fi
5096else
5097  ac_cpp_err=yes
5098fi
5099if test -z "$ac_cpp_err"; then
5100  :
5101else
5102  echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105  # Broken: fails on valid input.
5106continue
5107fi
5108rm -f conftest.err conftest.$ac_ext
5109
5110  # OK, works on sane cases.  Now check whether non-existent headers
5111  # can be detected and how.
5112  cat >conftest.$ac_ext <<_ACEOF
5113/* confdefs.h.  */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h.  */
5118#include <ac_nonexistent.h>
5119_ACEOF
5120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122  ac_status=$?
5123  grep -v '^ *+' conftest.er1 >conftest.err
5124  rm -f conftest.er1
5125  cat conftest.err >&5
5126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); } >/dev/null; then
5128  if test -s conftest.err; then
5129    ac_cpp_err=$ac_cxx_preproc_warn_flag
5130    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131  else
5132    ac_cpp_err=
5133  fi
5134else
5135  ac_cpp_err=yes
5136fi
5137if test -z "$ac_cpp_err"; then
5138  # Broken: success on invalid input.
5139continue
5140else
5141  echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
5144  # Passes both tests.
5145ac_preproc_ok=:
5146break
5147fi
5148rm -f conftest.err conftest.$ac_ext
5149
5150done
5151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152rm -f conftest.err conftest.$ac_ext
5153if $ac_preproc_ok; then
5154  :
5155else
5156  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5157See \`config.log' for more details." >&5
5158echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159See \`config.log' for more details." >&2;}
5160   { (exit 1); exit 1; }; }
5161fi
5162
5163ac_ext=cc
5164ac_cpp='$CXXCPP $CPPFLAGS'
5165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168
5169fi
5170
5171
5172ac_ext=f
5173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176if test -n "$ac_tool_prefix"; then
5177  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5178  do
5179    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_F77+set}" = set; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  if test -n "$F77"; then
5187  ac_cv_prog_F77="$F77" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194  for ac_exec_ext in '' $ac_executable_extensions; do
5195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201done
5202
5203fi
5204fi
5205F77=$ac_cv_prog_F77
5206if test -n "$F77"; then
5207  echo "$as_me:$LINENO: result: $F77" >&5
5208echo "${ECHO_T}$F77" >&6
5209else
5210  echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214    test -n "$F77" && break
5215  done
5216fi
5217if test -z "$F77"; then
5218  ac_ct_F77=$F77
5219  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5220do
5221  # Extract the first word of "$ac_prog", so it can be a program name with args.
5222set dummy $ac_prog; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228  if test -n "$ac_ct_F77"; then
5229  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236  for ac_exec_ext in '' $ac_executable_extensions; do
5237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238    ac_cv_prog_ac_ct_F77="$ac_prog"
5239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243done
5244
5245fi
5246fi
5247ac_ct_F77=$ac_cv_prog_ac_ct_F77
5248if test -n "$ac_ct_F77"; then
5249  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250echo "${ECHO_T}$ac_ct_F77" >&6
5251else
5252  echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256  test -n "$ac_ct_F77" && break
5257done
5258
5259  F77=$ac_ct_F77
5260fi
5261
5262
5263# Provide some information about the compiler.
5264echo "$as_me:5264:" \
5265     "checking for Fortran 77 compiler version" >&5
5266ac_compiler=`set X $ac_compile; echo $2`
5267{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268  (eval $ac_compiler --version </dev/null >&5) 2>&5
5269  ac_status=$?
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); }
5272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273  (eval $ac_compiler -v </dev/null >&5) 2>&5
5274  ac_status=$?
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); }
5277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278  (eval $ac_compiler -V </dev/null >&5) 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }
5282rm -f a.out
5283
5284# If we don't use `.F' as extension, the preprocessor is not run on the
5285# input file.  (Note that this only needs to work for GNU compilers.)
5286ac_save_ext=$ac_ext
5287ac_ext=F
5288echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5289echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5290if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  cat >conftest.$ac_ext <<_ACEOF
5294      program main
5295#ifndef __GNUC__
5296       choke me
5297#endif
5298
5299      end
5300_ACEOF
5301rm -f conftest.$ac_objext
5302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303  (eval $ac_compile) 2>conftest.er1
5304  ac_status=$?
5305  grep -v '^ *+' conftest.er1 >conftest.err
5306  rm -f conftest.er1
5307  cat conftest.err >&5
5308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309  (exit $ac_status); } &&
5310	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312  (eval $ac_try) 2>&5
5313  ac_status=$?
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); }; } &&
5316	 { ac_try='test -s conftest.$ac_objext'
5317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318  (eval $ac_try) 2>&5
5319  ac_status=$?
5320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321  (exit $ac_status); }; }; then
5322  ac_compiler_gnu=yes
5323else
5324  echo "$as_me: failed program was:" >&5
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
5327ac_compiler_gnu=no
5328fi
5329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5331
5332fi
5333echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5334echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5335ac_ext=$ac_save_ext
5336ac_test_FFLAGS=${FFLAGS+set}
5337ac_save_FFLAGS=$FFLAGS
5338FFLAGS=
5339echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5341if test "${ac_cv_prog_f77_g+set}" = set; then
5342  echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344  FFLAGS=-g
5345cat >conftest.$ac_ext <<_ACEOF
5346      program main
5347
5348      end
5349_ACEOF
5350rm -f conftest.$ac_objext
5351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352  (eval $ac_compile) 2>conftest.er1
5353  ac_status=$?
5354  grep -v '^ *+' conftest.er1 >conftest.err
5355  rm -f conftest.er1
5356  cat conftest.err >&5
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); } &&
5359	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361  (eval $ac_try) 2>&5
5362  ac_status=$?
5363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364  (exit $ac_status); }; } &&
5365	 { ac_try='test -s conftest.$ac_objext'
5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367  (eval $ac_try) 2>&5
5368  ac_status=$?
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); }; }; then
5371  ac_cv_prog_f77_g=yes
5372else
5373  echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376ac_cv_prog_f77_g=no
5377fi
5378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379
5380fi
5381echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5382echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5383if test "$ac_test_FFLAGS" = set; then
5384  FFLAGS=$ac_save_FFLAGS
5385elif test $ac_cv_prog_f77_g = yes; then
5386  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5387    FFLAGS="-g -O2"
5388  else
5389    FFLAGS="-g"
5390  fi
5391else
5392  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5393    FFLAGS="-O2"
5394  else
5395    FFLAGS=
5396  fi
5397fi
5398
5399G77=`test $ac_compiler_gnu = yes && echo yes`
5400ac_ext=c
5401ac_cpp='$CPP $CPPFLAGS'
5402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405
5406
5407
5408# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5409
5410# find the maximum length of command line arguments
5411echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5412echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5413if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416    i=0
5417  teststring="ABCD"
5418
5419  case $build_os in
5420  msdosdjgpp*)
5421    # On DJGPP, this test can blow up pretty badly due to problems in libc
5422    # (any single argument exceeding 2000 bytes causes a buffer overrun
5423    # during glob expansion).  Even if it were fixed, the result of this
5424    # check would be larger than it should be.
5425    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5426    ;;
5427
5428  gnu*)
5429    # Under GNU Hurd, this test is not required because there is
5430    # no limit to the length of command line arguments.
5431    # Libtool will interpret -1 as no limit whatsoever
5432    lt_cv_sys_max_cmd_len=-1;
5433    ;;
5434
5435  cygwin* | mingw*)
5436    # On Win9x/ME, this test blows up -- it succeeds, but takes
5437    # about 5 minutes as the teststring grows exponentially.
5438    # Worse, since 9x/ME are not pre-emptively multitasking,
5439    # you end up with a "frozen" computer, even though with patience
5440    # the test eventually succeeds (with a max line length of 256k).
5441    # Instead, let's just punt: use the minimum linelength reported by
5442    # all of the supported platforms: 8192 (on NT/2K/XP).
5443    lt_cv_sys_max_cmd_len=8192;
5444    ;;
5445
5446  amigaos*)
5447    # On AmigaOS with pdksh, this test takes hours, literally.
5448    # So we just punt and use a minimum line length of 8192.
5449    lt_cv_sys_max_cmd_len=8192;
5450    ;;
5451
5452  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453    # This has been around since 386BSD, at least.  Likely further.
5454    if test -x /sbin/sysctl; then
5455      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456    elif test -x /usr/sbin/sysctl; then
5457      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5458    else
5459      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5460    fi
5461    # And add a safety zone
5462    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464    ;;
5465
5466  interix*)
5467    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468    lt_cv_sys_max_cmd_len=196608
5469    ;;
5470
5471  osf*)
5472    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5473    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5474    # nice to cause kernel panics so lets avoid the loop below.
5475    # First set a reasonable default.
5476    lt_cv_sys_max_cmd_len=16384
5477    #
5478    if test -x /sbin/sysconfig; then
5479      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5480        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5481      esac
5482    fi
5483    ;;
5484  sco3.2v5*)
5485    lt_cv_sys_max_cmd_len=102400
5486    ;;
5487  sysv5* | sco5v6* | sysv4.2uw2*)
5488    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5489    if test -n "$kargmax"; then
5490      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5491    else
5492      lt_cv_sys_max_cmd_len=32768
5493    fi
5494    ;;
5495  *)
5496    # If test is not a shell built-in, we'll probably end up computing a
5497    # maximum length that is only half of the actual maximum length, but
5498    # we can't tell.
5499    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5500    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5501	       = "XX$teststring") >/dev/null 2>&1 &&
5502	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5503	    lt_cv_sys_max_cmd_len=$new_result &&
5504	    test $i != 17 # 1/2 MB should be enough
5505    do
5506      i=`expr $i + 1`
5507      teststring=$teststring$teststring
5508    done
5509    teststring=
5510    # Add a significant safety factor because C++ compilers can tack on massive
5511    # amounts of additional arguments before passing them to the linker.
5512    # It appears as though 1/2 is a usable value.
5513    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5514    ;;
5515  esac
5516
5517fi
5518
5519if test -n $lt_cv_sys_max_cmd_len ; then
5520  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5521echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5522else
5523  echo "$as_me:$LINENO: result: none" >&5
5524echo "${ECHO_T}none" >&6
5525fi
5526
5527
5528
5529
5530# Check for command to grab the raw symbol name followed by C symbol from nm.
5531echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5532echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5534  echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536
5537# These are sane defaults that work on at least a few old systems.
5538# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5539
5540# Character class describing NM global symbol codes.
5541symcode='[BCDEGRST]'
5542
5543# Regexp to match symbols that can be accessed directly from C.
5544sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5545
5546# Transform an extracted symbol line into a proper C declaration
5547lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5548
5549# Transform an extracted symbol line into symbol name and symbol address
5550lt_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'"
5551
5552# Define system-specific variables.
5553case $host_os in
5554aix*)
5555  symcode='[BCDT]'
5556  ;;
5557cygwin* | mingw* | pw32*)
5558  symcode='[ABCDGISTW]'
5559  ;;
5560hpux*) # Its linker distinguishes data from code symbols
5561  if test "$host_cpu" = ia64; then
5562    symcode='[ABCDEGRST]'
5563  fi
5564  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5565  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'"
5566  ;;
5567linux*)
5568  if test "$host_cpu" = ia64; then
5569    symcode='[ABCDGIRSTW]'
5570    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5571    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'"
5572  fi
5573  ;;
5574irix* | nonstopux*)
5575  symcode='[BCDEGRST]'
5576  ;;
5577osf*)
5578  symcode='[BCDEGQRST]'
5579  ;;
5580solaris*)
5581  symcode='[BDRT]'
5582  ;;
5583sco3.2v5*)
5584  symcode='[DT]'
5585  ;;
5586sysv4.2uw2*)
5587  symcode='[DT]'
5588  ;;
5589sysv5* | sco5v6* | unixware* | OpenUNIX*)
5590  symcode='[ABDT]'
5591  ;;
5592sysv4)
5593  symcode='[DFNSTU]'
5594  ;;
5595esac
5596
5597# Handle CRLF in mingw tool chain
5598opt_cr=
5599case $build_os in
5600mingw*)
5601  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5602  ;;
5603esac
5604
5605# If we're using GNU nm, then use its standard symbol codes.
5606case `$NM -V 2>&1` in
5607*GNU* | *'with BFD'*)
5608  symcode='[ABCDGIRSTW]' ;;
5609esac
5610
5611# Try without a prefix undercore, then with it.
5612for ac_symprfx in "" "_"; do
5613
5614  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5615  symxfrm="\\1 $ac_symprfx\\2 \\2"
5616
5617  # Write the raw and C identifiers.
5618  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5619
5620  # Check to see that the pipe works correctly.
5621  pipe_works=no
5622
5623  rm -f conftest*
5624  cat > conftest.$ac_ext <<EOF
5625#ifdef __cplusplus
5626extern "C" {
5627#endif
5628char nm_test_var;
5629void nm_test_func(){}
5630#ifdef __cplusplus
5631}
5632#endif
5633int main(){nm_test_var='a';nm_test_func();return(0);}
5634EOF
5635
5636  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637  (eval $ac_compile) 2>&5
5638  ac_status=$?
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); }; then
5641    # Now try to grab the symbols.
5642    nlist=conftest.nm
5643    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5644  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5645  ac_status=$?
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); } && test -s "$nlist"; then
5648      # Try sorting and uniquifying the output.
5649      if sort "$nlist" | uniq > "$nlist"T; then
5650	mv -f "$nlist"T "$nlist"
5651      else
5652	rm -f "$nlist"T
5653      fi
5654
5655      # Make sure that we snagged all the symbols we need.
5656      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5657	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5658	  cat <<EOF > conftest.$ac_ext
5659#ifdef __cplusplus
5660extern "C" {
5661#endif
5662
5663EOF
5664	  # Now generate the symbol file.
5665	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5666
5667	  cat <<EOF >> conftest.$ac_ext
5668#if defined (__STDC__) && __STDC__
5669# define lt_ptr_t void *
5670#else
5671# define lt_ptr_t char *
5672# define const
5673#endif
5674
5675/* The mapping between symbol names and symbols. */
5676const struct {
5677  const char *name;
5678  lt_ptr_t address;
5679}
5680lt_preloaded_symbols[] =
5681{
5682EOF
5683	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5684	  cat <<\EOF >> conftest.$ac_ext
5685  {0, (lt_ptr_t) 0}
5686};
5687
5688#ifdef __cplusplus
5689}
5690#endif
5691EOF
5692	  # Now try linking the two files.
5693	  mv conftest.$ac_objext conftstm.$ac_objext
5694	  lt_save_LIBS="$LIBS"
5695	  lt_save_CFLAGS="$CFLAGS"
5696	  LIBS="conftstm.$ac_objext"
5697	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5698	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699  (eval $ac_link) 2>&5
5700  ac_status=$?
5701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5703	    pipe_works=yes
5704	  fi
5705	  LIBS="$lt_save_LIBS"
5706	  CFLAGS="$lt_save_CFLAGS"
5707	else
5708	  echo "cannot find nm_test_func in $nlist" >&5
5709	fi
5710      else
5711	echo "cannot find nm_test_var in $nlist" >&5
5712      fi
5713    else
5714      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5715    fi
5716  else
5717    echo "$progname: failed program was:" >&5
5718    cat conftest.$ac_ext >&5
5719  fi
5720  rm -f conftest* conftst*
5721
5722  # Do not use the global_symbol_pipe unless it works.
5723  if test "$pipe_works" = yes; then
5724    break
5725  else
5726    lt_cv_sys_global_symbol_pipe=
5727  fi
5728done
5729
5730fi
5731
5732if test -z "$lt_cv_sys_global_symbol_pipe"; then
5733  lt_cv_sys_global_symbol_to_cdecl=
5734fi
5735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5736  echo "$as_me:$LINENO: result: failed" >&5
5737echo "${ECHO_T}failed" >&6
5738else
5739  echo "$as_me:$LINENO: result: ok" >&5
5740echo "${ECHO_T}ok" >&6
5741fi
5742
5743echo "$as_me:$LINENO: checking for objdir" >&5
5744echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5745if test "${lt_cv_objdir+set}" = set; then
5746  echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748  rm -f .libs 2>/dev/null
5749mkdir .libs 2>/dev/null
5750if test -d .libs; then
5751  lt_cv_objdir=.libs
5752else
5753  # MS-DOS does not allow filenames that begin with a dot.
5754  lt_cv_objdir=_libs
5755fi
5756rmdir .libs 2>/dev/null
5757fi
5758echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5759echo "${ECHO_T}$lt_cv_objdir" >&6
5760objdir=$lt_cv_objdir
5761
5762
5763
5764
5765
5766case $host_os in
5767aix3*)
5768  # AIX sometimes has problems with the GCC collect2 program.  For some
5769  # reason, if we set the COLLECT_NAMES environment variable, the problems
5770  # vanish in a puff of smoke.
5771  if test "X${COLLECT_NAMES+set}" != Xset; then
5772    COLLECT_NAMES=
5773    export COLLECT_NAMES
5774  fi
5775  ;;
5776esac
5777
5778# Sed substitution that helps us do robust quoting.  It backslashifies
5779# metacharacters that are still active within double-quoted strings.
5780Xsed='sed -e 1s/^X//'
5781sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5782
5783# Same as above, but do not quote variable references.
5784double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5785
5786# Sed substitution to delay expansion of an escaped shell variable in a
5787# double_quote_subst'ed string.
5788delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5789
5790# Sed substitution to avoid accidental globbing in evaled expressions
5791no_glob_subst='s/\*/\\\*/g'
5792
5793# Constants:
5794rm="rm -f"
5795
5796# Global variables:
5797default_ofile=libtool
5798can_build_shared=yes
5799
5800# All known linkers require a `.a' archive for static linking (except MSVC,
5801# which needs '.lib').
5802libext=a
5803ltmain="$ac_aux_dir/ltmain.sh"
5804ofile="$default_ofile"
5805with_gnu_ld="$lt_cv_prog_gnu_ld"
5806
5807if test -n "$ac_tool_prefix"; then
5808  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}ar; ac_word=$2
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_AR+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  if test -n "$AR"; then
5816  ac_cv_prog_AR="$AR" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823  for ac_exec_ext in '' $ac_executable_extensions; do
5824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_AR="${ac_tool_prefix}ar"
5826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830done
5831
5832fi
5833fi
5834AR=$ac_cv_prog_AR
5835if test -n "$AR"; then
5836  echo "$as_me:$LINENO: result: $AR" >&5
5837echo "${ECHO_T}$AR" >&6
5838else
5839  echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841fi
5842
5843fi
5844if test -z "$ac_cv_prog_AR"; then
5845  ac_ct_AR=$AR
5846  # Extract the first word of "ar", so it can be a program name with args.
5847set dummy ar; ac_word=$2
5848echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5851  echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853  if test -n "$ac_ct_AR"; then
5854  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861  for ac_exec_ext in '' $ac_executable_extensions; do
5862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_ac_ct_AR="ar"
5864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868done
5869
5870  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5871fi
5872fi
5873ac_ct_AR=$ac_cv_prog_ac_ct_AR
5874if test -n "$ac_ct_AR"; then
5875  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5876echo "${ECHO_T}$ac_ct_AR" >&6
5877else
5878  echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880fi
5881
5882  AR=$ac_ct_AR
5883else
5884  AR="$ac_cv_prog_AR"
5885fi
5886
5887if test -n "$ac_tool_prefix"; then
5888  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5889set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5890echo "$as_me:$LINENO: checking for $ac_word" >&5
5891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892if test "${ac_cv_prog_RANLIB+set}" = set; then
5893  echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895  if test -n "$RANLIB"; then
5896  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901  IFS=$as_save_IFS
5902  test -z "$as_dir" && as_dir=.
5903  for ac_exec_ext in '' $ac_executable_extensions; do
5904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907    break 2
5908  fi
5909done
5910done
5911
5912fi
5913fi
5914RANLIB=$ac_cv_prog_RANLIB
5915if test -n "$RANLIB"; then
5916  echo "$as_me:$LINENO: result: $RANLIB" >&5
5917echo "${ECHO_T}$RANLIB" >&6
5918else
5919  echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921fi
5922
5923fi
5924if test -z "$ac_cv_prog_RANLIB"; then
5925  ac_ct_RANLIB=$RANLIB
5926  # Extract the first word of "ranlib", so it can be a program name with args.
5927set dummy ranlib; ac_word=$2
5928echo "$as_me:$LINENO: checking for $ac_word" >&5
5929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5931  echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933  if test -n "$ac_ct_RANLIB"; then
5934  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939  IFS=$as_save_IFS
5940  test -z "$as_dir" && as_dir=.
5941  for ac_exec_ext in '' $ac_executable_extensions; do
5942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943    ac_cv_prog_ac_ct_RANLIB="ranlib"
5944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945    break 2
5946  fi
5947done
5948done
5949
5950  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5951fi
5952fi
5953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954if test -n "$ac_ct_RANLIB"; then
5955  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5956echo "${ECHO_T}$ac_ct_RANLIB" >&6
5957else
5958  echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6
5960fi
5961
5962  RANLIB=$ac_ct_RANLIB
5963else
5964  RANLIB="$ac_cv_prog_RANLIB"
5965fi
5966
5967if test -n "$ac_tool_prefix"; then
5968  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5969set dummy ${ac_tool_prefix}strip; ac_word=$2
5970echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972if test "${ac_cv_prog_STRIP+set}" = set; then
5973  echo $ECHO_N "(cached) $ECHO_C" >&6
5974else
5975  if test -n "$STRIP"; then
5976  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983  for ac_exec_ext in '' $ac_executable_extensions; do
5984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987    break 2
5988  fi
5989done
5990done
5991
5992fi
5993fi
5994STRIP=$ac_cv_prog_STRIP
5995if test -n "$STRIP"; then
5996  echo "$as_me:$LINENO: result: $STRIP" >&5
5997echo "${ECHO_T}$STRIP" >&6
5998else
5999  echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
6001fi
6002
6003fi
6004if test -z "$ac_cv_prog_STRIP"; then
6005  ac_ct_STRIP=$STRIP
6006  # Extract the first word of "strip", so it can be a program name with args.
6007set dummy strip; ac_word=$2
6008echo "$as_me:$LINENO: checking for $ac_word" >&5
6009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6011  echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013  if test -n "$ac_ct_STRIP"; then
6014  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019  IFS=$as_save_IFS
6020  test -z "$as_dir" && as_dir=.
6021  for ac_exec_ext in '' $ac_executable_extensions; do
6022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023    ac_cv_prog_ac_ct_STRIP="strip"
6024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025    break 2
6026  fi
6027done
6028done
6029
6030  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6031fi
6032fi
6033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6034if test -n "$ac_ct_STRIP"; then
6035  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6036echo "${ECHO_T}$ac_ct_STRIP" >&6
6037else
6038  echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6
6040fi
6041
6042  STRIP=$ac_ct_STRIP
6043else
6044  STRIP="$ac_cv_prog_STRIP"
6045fi
6046
6047
6048old_CC="$CC"
6049old_CFLAGS="$CFLAGS"
6050
6051# Set sane defaults for various variables
6052test -z "$AR" && AR=ar
6053test -z "$AR_FLAGS" && AR_FLAGS=cru
6054test -z "$AS" && AS=as
6055test -z "$CC" && CC=cc
6056test -z "$LTCC" && LTCC=$CC
6057test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6058test -z "$DLLTOOL" && DLLTOOL=dlltool
6059test -z "$LD" && LD=ld
6060test -z "$LN_S" && LN_S="ln -s"
6061test -z "$MAGIC_CMD" && MAGIC_CMD=file
6062test -z "$NM" && NM=nm
6063test -z "$SED" && SED=sed
6064test -z "$OBJDUMP" && OBJDUMP=objdump
6065test -z "$RANLIB" && RANLIB=:
6066test -z "$STRIP" && STRIP=:
6067test -z "$ac_objext" && ac_objext=o
6068
6069# Determine commands to create old-style static archives.
6070old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6071old_postinstall_cmds='chmod 644 $oldlib'
6072old_postuninstall_cmds=
6073
6074if test -n "$RANLIB"; then
6075  case $host_os in
6076  openbsd*)
6077    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6078    ;;
6079  *)
6080    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6081    ;;
6082  esac
6083  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6084fi
6085
6086for cc_temp in $compiler""; do
6087  case $cc_temp in
6088    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6089    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6090    \-*) ;;
6091    *) break;;
6092  esac
6093done
6094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6095
6096
6097# Only perform the check for file, if the check method requires it
6098case $deplibs_check_method in
6099file_magic*)
6100  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6101    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6102echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6103if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6104  echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
6106  case $MAGIC_CMD in
6107[\\/*] |  ?:[\\/]*)
6108  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6109  ;;
6110*)
6111  lt_save_MAGIC_CMD="$MAGIC_CMD"
6112  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6114  for ac_dir in $ac_dummy; do
6115    IFS="$lt_save_ifs"
6116    test -z "$ac_dir" && ac_dir=.
6117    if test -f $ac_dir/${ac_tool_prefix}file; then
6118      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6119      if test -n "$file_magic_test_file"; then
6120	case $deplibs_check_method in
6121	"file_magic "*)
6122	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6123	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6124	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6125	    $EGREP "$file_magic_regex" > /dev/null; then
6126	    :
6127	  else
6128	    cat <<EOF 1>&2
6129
6130*** Warning: the command libtool uses to detect shared libraries,
6131*** $file_magic_cmd, produces output that libtool cannot recognize.
6132*** The result is that libtool may fail to recognize shared libraries
6133*** as such.  This will affect the creation of libtool libraries that
6134*** depend on shared libraries, but programs linked with such libtool
6135*** libraries will work regardless of this problem.  Nevertheless, you
6136*** may want to report the problem to your system manager and/or to
6137*** bug-libtool@gnu.org
6138
6139EOF
6140	  fi ;;
6141	esac
6142      fi
6143      break
6144    fi
6145  done
6146  IFS="$lt_save_ifs"
6147  MAGIC_CMD="$lt_save_MAGIC_CMD"
6148  ;;
6149esac
6150fi
6151
6152MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153if test -n "$MAGIC_CMD"; then
6154  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6155echo "${ECHO_T}$MAGIC_CMD" >&6
6156else
6157  echo "$as_me:$LINENO: result: no" >&5
6158echo "${ECHO_T}no" >&6
6159fi
6160
6161if test -z "$lt_cv_path_MAGIC_CMD"; then
6162  if test -n "$ac_tool_prefix"; then
6163    echo "$as_me:$LINENO: checking for file" >&5
6164echo $ECHO_N "checking for file... $ECHO_C" >&6
6165if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166  echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168  case $MAGIC_CMD in
6169[\\/*] |  ?:[\\/]*)
6170  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171  ;;
6172*)
6173  lt_save_MAGIC_CMD="$MAGIC_CMD"
6174  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176  for ac_dir in $ac_dummy; do
6177    IFS="$lt_save_ifs"
6178    test -z "$ac_dir" && ac_dir=.
6179    if test -f $ac_dir/file; then
6180      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6181      if test -n "$file_magic_test_file"; then
6182	case $deplibs_check_method in
6183	"file_magic "*)
6184	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187	    $EGREP "$file_magic_regex" > /dev/null; then
6188	    :
6189	  else
6190	    cat <<EOF 1>&2
6191
6192*** Warning: the command libtool uses to detect shared libraries,
6193*** $file_magic_cmd, produces output that libtool cannot recognize.
6194*** The result is that libtool may fail to recognize shared libraries
6195*** as such.  This will affect the creation of libtool libraries that
6196*** depend on shared libraries, but programs linked with such libtool
6197*** libraries will work regardless of this problem.  Nevertheless, you
6198*** may want to report the problem to your system manager and/or to
6199*** bug-libtool@gnu.org
6200
6201EOF
6202	  fi ;;
6203	esac
6204      fi
6205      break
6206    fi
6207  done
6208  IFS="$lt_save_ifs"
6209  MAGIC_CMD="$lt_save_MAGIC_CMD"
6210  ;;
6211esac
6212fi
6213
6214MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215if test -n "$MAGIC_CMD"; then
6216  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217echo "${ECHO_T}$MAGIC_CMD" >&6
6218else
6219  echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6
6221fi
6222
6223  else
6224    MAGIC_CMD=:
6225  fi
6226fi
6227
6228  fi
6229  ;;
6230esac
6231
6232enable_dlopen=no
6233enable_win32_dll=no
6234
6235# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6236if test "${enable_libtool_lock+set}" = set; then
6237  enableval="$enable_libtool_lock"
6238
6239fi;
6240test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241
6242
6243# Check whether --with-pic or --without-pic was given.
6244if test "${with_pic+set}" = set; then
6245  withval="$with_pic"
6246  pic_mode="$withval"
6247else
6248  pic_mode=default
6249fi;
6250test -z "$pic_mode" && pic_mode=default
6251
6252# Use C for the default configuration in the libtool script
6253tagname=
6254lt_save_CC="$CC"
6255ac_ext=c
6256ac_cpp='$CPP $CPPFLAGS'
6257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261
6262# Source file extension for C test sources.
6263ac_ext=c
6264
6265# Object file extension for compiled C test sources.
6266objext=o
6267objext=$objext
6268
6269# Code to be used in simple compile tests
6270lt_simple_compile_test_code="int some_variable = 0;\n"
6271
6272# Code to be used in simple link tests
6273lt_simple_link_test_code='int main(){return(0);}\n'
6274
6275
6276# If no C compiler was specified, use CC.
6277LTCC=${LTCC-"$CC"}
6278
6279# If no C compiler flags were specified, use CFLAGS.
6280LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6281
6282# Allow CC to be a program name with arguments.
6283compiler=$CC
6284
6285
6286# save warnings/boilerplate of simple test code
6287ac_outfile=conftest.$ac_objext
6288printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6290_lt_compiler_boilerplate=`cat conftest.err`
6291$rm conftest*
6292
6293ac_outfile=conftest.$ac_objext
6294printf "$lt_simple_link_test_code" >conftest.$ac_ext
6295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6296_lt_linker_boilerplate=`cat conftest.err`
6297$rm conftest*
6298
6299
6300
6301lt_prog_compiler_no_builtin_flag=
6302
6303if test "$GCC" = yes; then
6304  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6305
6306
6307echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6308echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6309if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6310  echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312  lt_cv_prog_compiler_rtti_exceptions=no
6313  ac_outfile=conftest.$ac_objext
6314   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6315   lt_compiler_flag="-fno-rtti -fno-exceptions"
6316   # Insert the option either (1) after the last *FLAGS variable, or
6317   # (2) before a word containing "conftest.", or (3) at the end.
6318   # Note that $ac_compile itself does not contain backslashes and begins
6319   # with a dollar sign (not a hyphen), so the echo should work correctly.
6320   # The option is referenced via a variable to avoid confusing sed.
6321   lt_compile=`echo "$ac_compile" | $SED \
6322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6324   -e 's:$: $lt_compiler_flag:'`
6325   (eval echo "\"\$as_me:6325: $lt_compile\"" >&5)
6326   (eval "$lt_compile" 2>conftest.err)
6327   ac_status=$?
6328   cat conftest.err >&5
6329   echo "$as_me:6329: \$? = $ac_status" >&5
6330   if (exit $ac_status) && test -s "$ac_outfile"; then
6331     # The compiler can only warn and ignore the option if not recognized
6332     # So say no if there are warnings other than the usual output.
6333     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6334     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6335     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6336       lt_cv_prog_compiler_rtti_exceptions=yes
6337     fi
6338   fi
6339   $rm conftest*
6340
6341fi
6342echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6343echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6344
6345if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6346    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6347else
6348    :
6349fi
6350
6351fi
6352
6353lt_prog_compiler_wl=
6354lt_prog_compiler_pic=
6355lt_prog_compiler_static=
6356
6357echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6358echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6359
6360  if test "$GCC" = yes; then
6361    lt_prog_compiler_wl='-Wl,'
6362    lt_prog_compiler_static='-static'
6363
6364    case $host_os in
6365      aix*)
6366      # All AIX code is PIC.
6367      if test "$host_cpu" = ia64; then
6368	# AIX 5 now supports IA64 processor
6369	lt_prog_compiler_static='-Bstatic'
6370      fi
6371      ;;
6372
6373    amigaos*)
6374      # FIXME: we need at least 68020 code to build shared libraries, but
6375      # adding the `-m68020' flag to GCC prevents building anything better,
6376      # like `-m68040'.
6377      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6378      ;;
6379
6380    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6381      # PIC is the default for these OSes.
6382      ;;
6383
6384    mingw* | pw32* | os2*)
6385      # This hack is so that the source file can tell whether it is being
6386      # built for inclusion in a dll (and should export symbols for example).
6387      lt_prog_compiler_pic='-DDLL_EXPORT'
6388      ;;
6389
6390    darwin* | rhapsody*)
6391      # PIC is the default on this platform
6392      # Common symbols not allowed in MH_DYLIB files
6393      lt_prog_compiler_pic='-fno-common'
6394      ;;
6395
6396    interix3*)
6397      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6398      # Instead, we relocate shared libraries at runtime.
6399      ;;
6400
6401    msdosdjgpp*)
6402      # Just because we use GCC doesn't mean we suddenly get shared libraries
6403      # on systems that don't support them.
6404      lt_prog_compiler_can_build_shared=no
6405      enable_shared=no
6406      ;;
6407
6408    sysv4*MP*)
6409      if test -d /usr/nec; then
6410	lt_prog_compiler_pic=-Kconform_pic
6411      fi
6412      ;;
6413
6414    hpux*)
6415      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6416      # not for PA HP-UX.
6417      case $host_cpu in
6418      hppa*64*|ia64*)
6419	# +Z the default
6420	;;
6421      *)
6422	lt_prog_compiler_pic='-fPIC'
6423	;;
6424      esac
6425      ;;
6426
6427    *)
6428      lt_prog_compiler_pic='-fPIC'
6429      ;;
6430    esac
6431  else
6432    # PORTME Check for flag to pass linker flags through the system compiler.
6433    case $host_os in
6434    aix*)
6435      lt_prog_compiler_wl='-Wl,'
6436      if test "$host_cpu" = ia64; then
6437	# AIX 5 now supports IA64 processor
6438	lt_prog_compiler_static='-Bstatic'
6439      else
6440	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6441      fi
6442      ;;
6443      darwin*)
6444        # PIC is the default on this platform
6445        # Common symbols not allowed in MH_DYLIB files
6446       case $cc_basename in
6447         xlc*)
6448         lt_prog_compiler_pic='-qnocommon'
6449         lt_prog_compiler_wl='-Wl,'
6450         ;;
6451       esac
6452       ;;
6453
6454    mingw* | pw32* | os2*)
6455      # This hack is so that the source file can tell whether it is being
6456      # built for inclusion in a dll (and should export symbols for example).
6457      lt_prog_compiler_pic='-DDLL_EXPORT'
6458      ;;
6459
6460    hpux9* | hpux10* | hpux11*)
6461      lt_prog_compiler_wl='-Wl,'
6462      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6463      # not for PA HP-UX.
6464      case $host_cpu in
6465      hppa*64*|ia64*)
6466	# +Z the default
6467	;;
6468      *)
6469	lt_prog_compiler_pic='+Z'
6470	;;
6471      esac
6472      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6473      lt_prog_compiler_static='${wl}-a ${wl}archive'
6474      ;;
6475
6476    irix5* | irix6* | nonstopux*)
6477      lt_prog_compiler_wl='-Wl,'
6478      # PIC (with -KPIC) is the default.
6479      lt_prog_compiler_static='-non_shared'
6480      ;;
6481
6482    newsos6)
6483      lt_prog_compiler_pic='-KPIC'
6484      lt_prog_compiler_static='-Bstatic'
6485      ;;
6486
6487    linux*)
6488      case $cc_basename in
6489      icc* | ecc*)
6490	lt_prog_compiler_wl='-Wl,'
6491	lt_prog_compiler_pic='-KPIC'
6492	lt_prog_compiler_static='-static'
6493        ;;
6494      pgcc* | pgf77* | pgf90* | pgf95*)
6495        # Portland Group compilers (*not* the Pentium gcc compiler,
6496	# which looks to be a dead project)
6497	lt_prog_compiler_wl='-Wl,'
6498	lt_prog_compiler_pic='-fpic'
6499	lt_prog_compiler_static='-Bstatic'
6500        ;;
6501      ccc*)
6502        lt_prog_compiler_wl='-Wl,'
6503        # All Alpha code is PIC.
6504        lt_prog_compiler_static='-non_shared'
6505        ;;
6506      esac
6507      ;;
6508
6509    osf3* | osf4* | osf5*)
6510      lt_prog_compiler_wl='-Wl,'
6511      # All OSF/1 code is PIC.
6512      lt_prog_compiler_static='-non_shared'
6513      ;;
6514
6515    solaris*)
6516      lt_prog_compiler_pic='-KPIC'
6517      lt_prog_compiler_static='-Bstatic'
6518      case $cc_basename in
6519      f77* | f90* | f95*)
6520	lt_prog_compiler_wl='-Qoption ld ';;
6521      *)
6522	lt_prog_compiler_wl='-Wl,';;
6523      esac
6524      ;;
6525
6526    sunos4*)
6527      lt_prog_compiler_wl='-Qoption ld '
6528      lt_prog_compiler_pic='-PIC'
6529      lt_prog_compiler_static='-Bstatic'
6530      ;;
6531
6532    sysv4 | sysv4.2uw2* | sysv4.3*)
6533      lt_prog_compiler_wl='-Wl,'
6534      lt_prog_compiler_pic='-KPIC'
6535      lt_prog_compiler_static='-Bstatic'
6536      ;;
6537
6538    sysv4*MP*)
6539      if test -d /usr/nec ;then
6540	lt_prog_compiler_pic='-Kconform_pic'
6541	lt_prog_compiler_static='-Bstatic'
6542      fi
6543      ;;
6544
6545    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6546      lt_prog_compiler_wl='-Wl,'
6547      lt_prog_compiler_pic='-KPIC'
6548      lt_prog_compiler_static='-Bstatic'
6549      ;;
6550
6551    unicos*)
6552      lt_prog_compiler_wl='-Wl,'
6553      lt_prog_compiler_can_build_shared=no
6554      ;;
6555
6556    uts4*)
6557      lt_prog_compiler_pic='-pic'
6558      lt_prog_compiler_static='-Bstatic'
6559      ;;
6560
6561    *)
6562      lt_prog_compiler_can_build_shared=no
6563      ;;
6564    esac
6565  fi
6566
6567echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6568echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6569
6570#
6571# Check to make sure the PIC flag actually works.
6572#
6573if test -n "$lt_prog_compiler_pic"; then
6574
6575echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6576echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6577if test "${lt_prog_compiler_pic_works+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  lt_prog_compiler_pic_works=no
6581  ac_outfile=conftest.$ac_objext
6582   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6583   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6584   # Insert the option either (1) after the last *FLAGS variable, or
6585   # (2) before a word containing "conftest.", or (3) at the end.
6586   # Note that $ac_compile itself does not contain backslashes and begins
6587   # with a dollar sign (not a hyphen), so the echo should work correctly.
6588   # The option is referenced via a variable to avoid confusing sed.
6589   lt_compile=`echo "$ac_compile" | $SED \
6590   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6591   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592   -e 's:$: $lt_compiler_flag:'`
6593   (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
6594   (eval "$lt_compile" 2>conftest.err)
6595   ac_status=$?
6596   cat conftest.err >&5
6597   echo "$as_me:6597: \$? = $ac_status" >&5
6598   if (exit $ac_status) && test -s "$ac_outfile"; then
6599     # The compiler can only warn and ignore the option if not recognized
6600     # So say no if there are warnings other than the usual output.
6601     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6602     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6603     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6604       lt_prog_compiler_pic_works=yes
6605     fi
6606   fi
6607   $rm conftest*
6608
6609fi
6610echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6611echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6612
6613if test x"$lt_prog_compiler_pic_works" = xyes; then
6614    case $lt_prog_compiler_pic in
6615     "" | " "*) ;;
6616     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6617     esac
6618else
6619    lt_prog_compiler_pic=
6620     lt_prog_compiler_can_build_shared=no
6621fi
6622
6623fi
6624case $host_os in
6625  # For platforms which do not support PIC, -DPIC is meaningless:
6626  *djgpp*)
6627    lt_prog_compiler_pic=
6628    ;;
6629  *)
6630    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6631    ;;
6632esac
6633
6634#
6635# Check to make sure the static flag actually works.
6636#
6637wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6638echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6639echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6640if test "${lt_prog_compiler_static_works+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  lt_prog_compiler_static_works=no
6644   save_LDFLAGS="$LDFLAGS"
6645   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6646   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6647   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6648     # The linker can only warn and ignore the option if not recognized
6649     # So say no if there are warnings
6650     if test -s conftest.err; then
6651       # Append any errors to the config.log.
6652       cat conftest.err 1>&5
6653       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6654       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6655       if diff conftest.exp conftest.er2 >/dev/null; then
6656         lt_prog_compiler_static_works=yes
6657       fi
6658     else
6659       lt_prog_compiler_static_works=yes
6660     fi
6661   fi
6662   $rm conftest*
6663   LDFLAGS="$save_LDFLAGS"
6664
6665fi
6666echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6667echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6668
6669if test x"$lt_prog_compiler_static_works" = xyes; then
6670    :
6671else
6672    lt_prog_compiler_static=
6673fi
6674
6675
6676echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6677echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6678if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6679  echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681  lt_cv_prog_compiler_c_o=no
6682   $rm -r conftest 2>/dev/null
6683   mkdir conftest
6684   cd conftest
6685   mkdir out
6686   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6687
6688   lt_compiler_flag="-o out/conftest2.$ac_objext"
6689   # Insert the option either (1) after the last *FLAGS variable, or
6690   # (2) before a word containing "conftest.", or (3) at the end.
6691   # Note that $ac_compile itself does not contain backslashes and begins
6692   # with a dollar sign (not a hyphen), so the echo should work correctly.
6693   lt_compile=`echo "$ac_compile" | $SED \
6694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6696   -e 's:$: $lt_compiler_flag:'`
6697   (eval echo "\"\$as_me:6697: $lt_compile\"" >&5)
6698   (eval "$lt_compile" 2>out/conftest.err)
6699   ac_status=$?
6700   cat out/conftest.err >&5
6701   echo "$as_me:6701: \$? = $ac_status" >&5
6702   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6703   then
6704     # The compiler can only warn and ignore the option if not recognized
6705     # So say no if there are warnings
6706     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6707     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6708     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6709       lt_cv_prog_compiler_c_o=yes
6710     fi
6711   fi
6712   chmod u+w . 2>&5
6713   $rm conftest*
6714   # SGI C++ compiler will create directory out/ii_files/ for
6715   # template instantiation
6716   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6717   $rm out/* && rmdir out
6718   cd ..
6719   rmdir conftest
6720   $rm conftest*
6721
6722fi
6723echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6724echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6725
6726
6727hard_links="nottested"
6728if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6729  # do not overwrite the value of need_locks provided by the user
6730  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6731echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6732  hard_links=yes
6733  $rm conftest*
6734  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6735  touch conftest.a
6736  ln conftest.a conftest.b 2>&5 || hard_links=no
6737  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6738  echo "$as_me:$LINENO: result: $hard_links" >&5
6739echo "${ECHO_T}$hard_links" >&6
6740  if test "$hard_links" = no; then
6741    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6742echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6743    need_locks=warn
6744  fi
6745else
6746  need_locks=no
6747fi
6748
6749echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6750echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6751
6752  runpath_var=
6753  allow_undefined_flag=
6754  enable_shared_with_static_runtimes=no
6755  archive_cmds=
6756  archive_expsym_cmds=
6757  old_archive_From_new_cmds=
6758  old_archive_from_expsyms_cmds=
6759  export_dynamic_flag_spec=
6760  whole_archive_flag_spec=
6761  thread_safe_flag_spec=
6762  hardcode_libdir_flag_spec=
6763  hardcode_libdir_flag_spec_ld=
6764  hardcode_libdir_separator=
6765  hardcode_direct=no
6766  hardcode_minus_L=no
6767  hardcode_shlibpath_var=unsupported
6768  link_all_deplibs=unknown
6769  hardcode_automatic=no
6770  module_cmds=
6771  module_expsym_cmds=
6772  always_export_symbols=no
6773  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6774  # include_expsyms should be a list of space-separated symbols to be *always*
6775  # included in the symbol list
6776  include_expsyms=
6777  # exclude_expsyms can be an extended regexp of symbols to exclude
6778  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6779  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6780  # as well as any symbol that contains `d'.
6781  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6782  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6783  # platforms (ab)use it in PIC code, but their linkers get confused if
6784  # the symbol is explicitly referenced.  Since portable code cannot
6785  # rely on this symbol name, it's probably fine to never include it in
6786  # preloaded symbol tables.
6787  extract_expsyms_cmds=
6788  # Just being paranoid about ensuring that cc_basename is set.
6789  for cc_temp in $compiler""; do
6790  case $cc_temp in
6791    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6792    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6793    \-*) ;;
6794    *) break;;
6795  esac
6796done
6797cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6798
6799  case $host_os in
6800  cygwin* | mingw* | pw32*)
6801    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6802    # When not using gcc, we currently assume that we are using
6803    # Microsoft Visual C++.
6804    if test "$GCC" != yes; then
6805      with_gnu_ld=no
6806    fi
6807    ;;
6808  interix*)
6809    # we just hope/assume this is gcc and not c89 (= MSVC++)
6810    with_gnu_ld=yes
6811    ;;
6812  openbsd*)
6813    with_gnu_ld=no
6814    ;;
6815  esac
6816
6817  ld_shlibs=yes
6818  if test "$with_gnu_ld" = yes; then
6819    # If archive_cmds runs LD, not CC, wlarc should be empty
6820    wlarc='${wl}'
6821
6822    # Set some defaults for GNU ld with shared library support. These
6823    # are reset later if shared libraries are not supported. Putting them
6824    # here allows them to be overridden if necessary.
6825    runpath_var=LD_RUN_PATH
6826    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6827    export_dynamic_flag_spec='${wl}--export-dynamic'
6828    # ancient GNU ld didn't support --whole-archive et. al.
6829    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6830	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6831      else
6832  	whole_archive_flag_spec=
6833    fi
6834    supports_anon_versioning=no
6835    case `$LD -v 2>/dev/null` in
6836      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6837      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6838      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6839      *\ 2.11.*) ;; # other 2.11 versions
6840      *) supports_anon_versioning=yes ;;
6841    esac
6842
6843    # See if GNU ld supports shared libraries.
6844    case $host_os in
6845    aix3* | aix4* | aix5*)
6846      # On AIX/PPC, the GNU linker is very broken
6847      if test "$host_cpu" != ia64; then
6848	ld_shlibs=no
6849	cat <<EOF 1>&2
6850
6851*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6852*** to be unable to reliably create shared libraries on AIX.
6853*** Therefore, libtool is disabling shared libraries support.  If you
6854*** really care for shared libraries, you may want to modify your PATH
6855*** so that a non-GNU linker is found, and then restart.
6856
6857EOF
6858      fi
6859      ;;
6860
6861    amigaos*)
6862      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)'
6863      hardcode_libdir_flag_spec='-L$libdir'
6864      hardcode_minus_L=yes
6865
6866      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6867      # that the semantics of dynamic libraries on AmigaOS, at least up
6868      # to version 4, is to share data among multiple programs linked
6869      # with the same dynamic library.  Since this doesn't match the
6870      # behavior of shared libraries on other platforms, we can't use
6871      # them.
6872      ld_shlibs=no
6873      ;;
6874
6875    beos*)
6876      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6877	allow_undefined_flag=unsupported
6878	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6879	# support --undefined.  This deserves some investigation.  FIXME
6880	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6881      else
6882	ld_shlibs=no
6883      fi
6884      ;;
6885
6886    cygwin* | mingw* | pw32*)
6887      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6888      # as there is no search path for DLLs.
6889      hardcode_libdir_flag_spec='-L$libdir'
6890      allow_undefined_flag=unsupported
6891      always_export_symbols=no
6892      enable_shared_with_static_runtimes=yes
6893      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6894
6895      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6896        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6897	# If the export-symbols file already is a .def file (1st line
6898	# is EXPORTS), use it as is; otherwise, prepend...
6899	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6900	  cp $export_symbols $output_objdir/$soname.def;
6901	else
6902	  echo EXPORTS > $output_objdir/$soname.def;
6903	  cat $export_symbols >> $output_objdir/$soname.def;
6904	fi~
6905	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6906      else
6907	ld_shlibs=no
6908      fi
6909      ;;
6910
6911    interix3*)
6912      hardcode_direct=no
6913      hardcode_shlibpath_var=no
6914      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6915      export_dynamic_flag_spec='${wl}-E'
6916      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6917      # Instead, shared libraries are loaded at an image base (0x10000000 by
6918      # default) and relocated if they conflict, which is a slow very memory
6919      # consuming and fragmenting process.  To avoid this, we pick a random,
6920      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6921      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6922      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6923      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6924      ;;
6925
6926    linux*)
6927      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6928	tmp_addflag=
6929	case $cc_basename,$host_cpu in
6930	pgcc*)				# Portland Group C compiler
6931	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6932	  tmp_addflag=' $pic_flag'
6933	  ;;
6934	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6935	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6936	  tmp_addflag=' $pic_flag -Mnomain' ;;
6937	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6938	  tmp_addflag=' -i_dynamic' ;;
6939	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6940	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6941	ifc* | ifort*)			# Intel Fortran compiler
6942	  tmp_addflag=' -nofor_main' ;;
6943	esac
6944	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6945
6946	if test $supports_anon_versioning = yes; then
6947	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6948  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6949  $echo "local: *; };" >> $output_objdir/$libname.ver~
6950	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6951	fi
6952	link_all_deplibs=no
6953      else
6954	ld_shlibs=no
6955      fi
6956      ;;
6957
6958    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6959      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6960	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6961	wlarc=
6962      else
6963	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6964	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6965      fi
6966      ;;
6967
6968    solaris*)
6969      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6970	ld_shlibs=no
6971	cat <<EOF 1>&2
6972
6973*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6974*** create shared libraries on Solaris systems.  Therefore, libtool
6975*** is disabling shared libraries support.  We urge you to upgrade GNU
6976*** binutils to release 2.9.1 or newer.  Another option is to modify
6977*** your PATH or compiler configuration so that the native linker is
6978*** used, and then restart.
6979
6980EOF
6981      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6984      else
6985	ld_shlibs=no
6986      fi
6987      ;;
6988
6989    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6990      case `$LD -v 2>&1` in
6991        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6992	ld_shlibs=no
6993	cat <<_LT_EOF 1>&2
6994
6995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6996*** reliably create shared libraries on SCO systems.  Therefore, libtool
6997*** is disabling shared libraries support.  We urge you to upgrade GNU
6998*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6999*** your PATH or compiler configuration so that the native linker is
7000*** used, and then restart.
7001
7002_LT_EOF
7003	;;
7004	*)
7005	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7006	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7007	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7008	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7009	  else
7010	    ld_shlibs=no
7011	  fi
7012	;;
7013      esac
7014      ;;
7015
7016    sunos4*)
7017      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7018      wlarc=
7019      hardcode_direct=yes
7020      hardcode_shlibpath_var=no
7021      ;;
7022
7023    *)
7024      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7025	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7027      else
7028	ld_shlibs=no
7029      fi
7030      ;;
7031    esac
7032
7033    if test "$ld_shlibs" = no; then
7034      runpath_var=
7035      hardcode_libdir_flag_spec=
7036      export_dynamic_flag_spec=
7037      whole_archive_flag_spec=
7038    fi
7039  else
7040    # PORTME fill in a description of your system's linker (not GNU ld)
7041    case $host_os in
7042    aix3*)
7043      allow_undefined_flag=unsupported
7044      always_export_symbols=yes
7045      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'
7046      # Note: this linker hardcodes the directories in LIBPATH if there
7047      # are no directories specified by -L.
7048      hardcode_minus_L=yes
7049      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7050	# Neither direct hardcoding nor static linking is supported with a
7051	# broken collect2.
7052	hardcode_direct=unsupported
7053      fi
7054      ;;
7055
7056    aix4* | aix5*)
7057      if test "$host_cpu" = ia64; then
7058	# On IA64, the linker does run time linking by default, so we don't
7059	# have to do anything special.
7060	aix_use_runtimelinking=no
7061	exp_sym_flag='-Bexport'
7062	no_entry_flag=""
7063      else
7064	# If we're using GNU nm, then we don't want the "-C" option.
7065	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7066	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7067	  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'
7068	else
7069	  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'
7070	fi
7071	aix_use_runtimelinking=no
7072
7073	# Test if we are trying to use run time linking or normal
7074	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7075	# need to do runtime linking.
7076	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7077	  for ld_flag in $LDFLAGS; do
7078  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7079  	    aix_use_runtimelinking=yes
7080  	    break
7081  	  fi
7082	  done
7083	  ;;
7084	esac
7085
7086	exp_sym_flag='-bexport'
7087	no_entry_flag='-bnoentry'
7088      fi
7089
7090      # When large executables or shared objects are built, AIX ld can
7091      # have problems creating the table of contents.  If linking a library
7092      # or program results in "error TOC overflow" add -mminimal-toc to
7093      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7094      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7095
7096      archive_cmds=''
7097      hardcode_direct=yes
7098      hardcode_libdir_separator=':'
7099      link_all_deplibs=yes
7100
7101      if test "$GCC" = yes; then
7102	case $host_os in aix4.[012]|aix4.[012].*)
7103	# We only want to do this on AIX 4.2 and lower, the check
7104	# below for broken collect2 doesn't work under 4.3+
7105	  collect2name=`${CC} -print-prog-name=collect2`
7106	  if test -f "$collect2name" && \
7107  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7108	  then
7109  	  # We have reworked collect2
7110  	  hardcode_direct=yes
7111	  else
7112  	  # We have old collect2
7113  	  hardcode_direct=unsupported
7114  	  # It fails to find uninstalled libraries when the uninstalled
7115  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7116  	  # to unsupported forces relinking
7117  	  hardcode_minus_L=yes
7118  	  hardcode_libdir_flag_spec='-L$libdir'
7119  	  hardcode_libdir_separator=
7120	  fi
7121	  ;;
7122	esac
7123	shared_flag='-shared'
7124	if test "$aix_use_runtimelinking" = yes; then
7125	  shared_flag="$shared_flag "'${wl}-G'
7126	fi
7127      else
7128	# not using gcc
7129	if test "$host_cpu" = ia64; then
7130  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7131  	# chokes on -Wl,-G. The following line is correct:
7132	  shared_flag='-G'
7133	else
7134	  if test "$aix_use_runtimelinking" = yes; then
7135	    shared_flag='${wl}-G'
7136	  else
7137	    shared_flag='${wl}-bM:SRE'
7138	  fi
7139	fi
7140      fi
7141
7142      # It seems that -bexpall does not export symbols beginning with
7143      # underscore (_), so it is better to generate a list of symbols to export.
7144      always_export_symbols=yes
7145      if test "$aix_use_runtimelinking" = yes; then
7146	# Warning - without using the other runtime loading flags (-brtl),
7147	# -berok will link without error, but may produce a broken library.
7148	allow_undefined_flag='-berok'
7149       # Determine the default libpath from the value encoded in an empty executable.
7150       cat >conftest.$ac_ext <<_ACEOF
7151/* confdefs.h.  */
7152_ACEOF
7153cat confdefs.h >>conftest.$ac_ext
7154cat >>conftest.$ac_ext <<_ACEOF
7155/* end confdefs.h.  */
7156
7157int
7158main ()
7159{
7160
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165rm -f conftest.$ac_objext conftest$ac_exeext
7166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167  (eval $ac_link) 2>conftest.er1
7168  ac_status=$?
7169  grep -v '^ *+' conftest.er1 >conftest.err
7170  rm -f conftest.er1
7171  cat conftest.err >&5
7172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173  (exit $ac_status); } &&
7174	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176  (eval $ac_try) 2>&5
7177  ac_status=$?
7178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179  (exit $ac_status); }; } &&
7180	 { ac_try='test -s conftest$ac_exeext'
7181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182  (eval $ac_try) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); }; }; then
7186
7187aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7188}'`
7189# Check for a 64-bit object if we didn't find anything.
7190if 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; }
7191}'`; fi
7192else
7193  echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
7196fi
7197rm -f conftest.err conftest.$ac_objext \
7198      conftest$ac_exeext conftest.$ac_ext
7199if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7200
7201       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7202	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7203       else
7204	if test "$host_cpu" = ia64; then
7205	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7206	  allow_undefined_flag="-z nodefs"
7207	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7208	else
7209	 # Determine the default libpath from the value encoded in an empty executable.
7210	 cat >conftest.$ac_ext <<_ACEOF
7211/* confdefs.h.  */
7212_ACEOF
7213cat confdefs.h >>conftest.$ac_ext
7214cat >>conftest.$ac_ext <<_ACEOF
7215/* end confdefs.h.  */
7216
7217int
7218main ()
7219{
7220
7221  ;
7222  return 0;
7223}
7224_ACEOF
7225rm -f conftest.$ac_objext conftest$ac_exeext
7226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227  (eval $ac_link) 2>conftest.er1
7228  ac_status=$?
7229  grep -v '^ *+' conftest.er1 >conftest.err
7230  rm -f conftest.er1
7231  cat conftest.err >&5
7232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233  (exit $ac_status); } &&
7234	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236  (eval $ac_try) 2>&5
7237  ac_status=$?
7238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239  (exit $ac_status); }; } &&
7240	 { ac_try='test -s conftest$ac_exeext'
7241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242  (eval $ac_try) 2>&5
7243  ac_status=$?
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); }; }; then
7246
7247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7248}'`
7249# Check for a 64-bit object if we didn't find anything.
7250if 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; }
7251}'`; fi
7252else
7253  echo "$as_me: failed program was:" >&5
7254sed 's/^/| /' conftest.$ac_ext >&5
7255
7256fi
7257rm -f conftest.err conftest.$ac_objext \
7258      conftest$ac_exeext conftest.$ac_ext
7259if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7260
7261	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7262	  # Warning - without using the other run time loading flags,
7263	  # -berok will link without error, but may produce a broken library.
7264	  no_undefined_flag=' ${wl}-bernotok'
7265	  allow_undefined_flag=' ${wl}-berok'
7266	  # Exported symbols can be pulled into shared objects from archives
7267	  whole_archive_flag_spec='$convenience'
7268	  archive_cmds_need_lc=yes
7269	  # This is similar to how AIX traditionally builds its shared libraries.
7270	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7271	fi
7272      fi
7273      ;;
7274
7275    amigaos*)
7276      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)'
7277      hardcode_libdir_flag_spec='-L$libdir'
7278      hardcode_minus_L=yes
7279      # see comment about different semantics on the GNU ld section
7280      ld_shlibs=no
7281      ;;
7282
7283    bsdi[45]*)
7284      export_dynamic_flag_spec=-rdynamic
7285      ;;
7286
7287    cygwin* | mingw* | pw32*)
7288      # When not using gcc, we currently assume that we are using
7289      # Microsoft Visual C++.
7290      # hardcode_libdir_flag_spec is actually meaningless, as there is
7291      # no search path for DLLs.
7292      hardcode_libdir_flag_spec=' '
7293      allow_undefined_flag=unsupported
7294      # Tell ltmain to make .lib files, not .a files.
7295      libext=lib
7296      # Tell ltmain to make .dll files, not .so files.
7297      shrext_cmds=".dll"
7298      # FIXME: Setting linknames here is a bad hack.
7299      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7300      # The linker will automatically build a .lib file if we build a DLL.
7301      old_archive_From_new_cmds='true'
7302      # FIXME: Should let the user specify the lib program.
7303      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7304      fix_srcfile_path='`cygpath -w "$srcfile"`'
7305      enable_shared_with_static_runtimes=yes
7306      ;;
7307
7308    darwin* | rhapsody*)
7309      case $host_os in
7310        rhapsody* | darwin1.[012])
7311         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7312         ;;
7313       *) # Darwin 1.3 on
7314         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7315           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7316         else
7317           case ${MACOSX_DEPLOYMENT_TARGET} in
7318             10.[012])
7319               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7320               ;;
7321             10.*)
7322               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7323               ;;
7324           esac
7325         fi
7326         ;;
7327      esac
7328      archive_cmds_need_lc=no
7329      hardcode_direct=no
7330      hardcode_automatic=yes
7331      hardcode_shlibpath_var=unsupported
7332      whole_archive_flag_spec=''
7333      link_all_deplibs=yes
7334    if test "$GCC" = yes ; then
7335    	output_verbose_link_cmd='echo'
7336        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7337      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7338      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7339      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}'
7340      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}'
7341    else
7342      case $cc_basename in
7343        xlc*)
7344         output_verbose_link_cmd='echo'
7345         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7346         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7347          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7348         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}'
7349          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}'
7350          ;;
7351       *)
7352         ld_shlibs=no
7353          ;;
7354      esac
7355    fi
7356      ;;
7357
7358    dgux*)
7359      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360      hardcode_libdir_flag_spec='-L$libdir'
7361      hardcode_shlibpath_var=no
7362      ;;
7363
7364    freebsd1*)
7365      ld_shlibs=no
7366      ;;
7367
7368    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7369    # support.  Future versions do this automatically, but an explicit c++rt0.o
7370    # does not break anything, and helps significantly (at the cost of a little
7371    # extra space).
7372    freebsd2.2*)
7373      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7374      hardcode_libdir_flag_spec='-R$libdir'
7375      hardcode_direct=yes
7376      hardcode_shlibpath_var=no
7377      ;;
7378
7379    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7380    freebsd2*)
7381      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7382      hardcode_direct=yes
7383      hardcode_minus_L=yes
7384      hardcode_shlibpath_var=no
7385      ;;
7386
7387    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7388    freebsd* | dragonfly*)
7389      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7390      hardcode_libdir_flag_spec='-R$libdir'
7391      hardcode_direct=yes
7392      hardcode_shlibpath_var=no
7393      ;;
7394
7395    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7396    kfreebsd*-gnu)
7397      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7398      hardcode_libdir_flag_spec='-R$libdir'
7399      hardcode_direct=yes
7400      hardcode_shlibpath_var=no
7401      link_all_deplibs=no
7402      ;;
7403
7404    hpux9*)
7405      if test "$GCC" = yes; then
7406	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'
7407      else
7408	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'
7409      fi
7410      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7411      hardcode_libdir_separator=:
7412      hardcode_direct=yes
7413
7414      # hardcode_minus_L: Not really in the search PATH,
7415      # but as the default location of the library.
7416      hardcode_minus_L=yes
7417      export_dynamic_flag_spec='${wl}-E'
7418      ;;
7419
7420    hpux10*)
7421      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7422	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7423      else
7424	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7425      fi
7426      if test "$with_gnu_ld" = no; then
7427	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7428	hardcode_libdir_separator=:
7429
7430	hardcode_direct=yes
7431	export_dynamic_flag_spec='${wl}-E'
7432
7433	# hardcode_minus_L: Not really in the search PATH,
7434	# but as the default location of the library.
7435	hardcode_minus_L=yes
7436      fi
7437      ;;
7438
7439    hpux11*)
7440      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7441	case $host_cpu in
7442	hppa*64*)
7443	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444	  ;;
7445	ia64*)
7446	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7447	  ;;
7448	*)
7449	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7450	  ;;
7451	esac
7452      else
7453	case $host_cpu in
7454	hppa*64*)
7455	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7456	  ;;
7457	ia64*)
7458	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7459	  ;;
7460	*)
7461	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7462	  ;;
7463	esac
7464      fi
7465      if test "$with_gnu_ld" = no; then
7466	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7467	hardcode_libdir_separator=:
7468
7469	case $host_cpu in
7470	hppa*64*|ia64*)
7471	  hardcode_libdir_flag_spec_ld='+b $libdir'
7472	  hardcode_direct=no
7473	  hardcode_shlibpath_var=no
7474	  ;;
7475	*)
7476	  hardcode_direct=yes
7477	  export_dynamic_flag_spec='${wl}-E'
7478
7479	  # hardcode_minus_L: Not really in the search PATH,
7480	  # but as the default location of the library.
7481	  hardcode_minus_L=yes
7482	  ;;
7483	esac
7484      fi
7485      ;;
7486
7487    irix5* | irix6* | nonstopux*)
7488      if test "$GCC" = yes; then
7489	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'
7490      else
7491	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'
7492	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7493      fi
7494      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7495      hardcode_libdir_separator=:
7496      link_all_deplibs=yes
7497      ;;
7498
7499    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7500      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7501	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7502      else
7503	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7504      fi
7505      hardcode_libdir_flag_spec='-R$libdir'
7506      hardcode_direct=yes
7507      hardcode_shlibpath_var=no
7508      ;;
7509
7510    newsos6)
7511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512      hardcode_direct=yes
7513      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7514      hardcode_libdir_separator=:
7515      hardcode_shlibpath_var=no
7516      ;;
7517
7518    openbsd*)
7519      hardcode_direct=yes
7520      hardcode_shlibpath_var=no
7521      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7522	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7523	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7524	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7525	export_dynamic_flag_spec='${wl}-E'
7526      else
7527       case $host_os in
7528	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7529	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7530	   hardcode_libdir_flag_spec='-R$libdir'
7531	   ;;
7532	 *)
7533	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7534	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7535	   ;;
7536       esac
7537      fi
7538      ;;
7539
7540    os2*)
7541      hardcode_libdir_flag_spec='-L$libdir'
7542      hardcode_minus_L=yes
7543      allow_undefined_flag=unsupported
7544      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'
7545      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7546      ;;
7547
7548    osf3*)
7549      if test "$GCC" = yes; then
7550	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7551	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'
7552      else
7553	allow_undefined_flag=' -expect_unresolved \*'
7554	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'
7555      fi
7556      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557      hardcode_libdir_separator=:
7558      ;;
7559
7560    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7561      if test "$GCC" = yes; then
7562	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7563	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'
7564	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7565      else
7566	allow_undefined_flag=' -expect_unresolved \*'
7567	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'
7568	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7569	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7570
7571	# Both c and cxx compiler support -rpath directly
7572	hardcode_libdir_flag_spec='-rpath $libdir'
7573      fi
7574      hardcode_libdir_separator=:
7575      ;;
7576
7577    solaris*)
7578      no_undefined_flag=' -z text'
7579      if test "$GCC" = yes; then
7580	wlarc='${wl}'
7581	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7582	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7583	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7584      else
7585	wlarc=''
7586	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7588  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7589      fi
7590      hardcode_libdir_flag_spec='-R$libdir'
7591      hardcode_shlibpath_var=no
7592      case $host_os in
7593      solaris2.[0-5] | solaris2.[0-5].*) ;;
7594      *)
7595 	# The compiler driver will combine linker options so we
7596 	# cannot just pass the convience library names through
7597 	# without $wl, iff we do not link with $LD.
7598 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7599 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7600 	case $wlarc in
7601 	'')
7602 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7603 	*)
7604 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7605 	esac ;;
7606      esac
7607      link_all_deplibs=yes
7608      ;;
7609
7610    sunos4*)
7611      if test "x$host_vendor" = xsequent; then
7612	# Use $CC to link under sequent, because it throws in some extra .o
7613	# files that make .init and .fini sections work.
7614	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7615      else
7616	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7617      fi
7618      hardcode_libdir_flag_spec='-L$libdir'
7619      hardcode_direct=yes
7620      hardcode_minus_L=yes
7621      hardcode_shlibpath_var=no
7622      ;;
7623
7624    sysv4)
7625      case $host_vendor in
7626	sni)
7627	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628	  hardcode_direct=yes # is this really true???
7629	;;
7630	siemens)
7631	  ## LD is ld it makes a PLAMLIB
7632	  ## CC just makes a GrossModule.
7633	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7634	  reload_cmds='$CC -r -o $output$reload_objs'
7635	  hardcode_direct=no
7636        ;;
7637	motorola)
7638	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7640	;;
7641      esac
7642      runpath_var='LD_RUN_PATH'
7643      hardcode_shlibpath_var=no
7644      ;;
7645
7646    sysv4.3*)
7647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648      hardcode_shlibpath_var=no
7649      export_dynamic_flag_spec='-Bexport'
7650      ;;
7651
7652    sysv4*MP*)
7653      if test -d /usr/nec; then
7654	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655	hardcode_shlibpath_var=no
7656	runpath_var=LD_RUN_PATH
7657	hardcode_runpath_var=yes
7658	ld_shlibs=yes
7659      fi
7660      ;;
7661
7662    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7663      no_undefined_flag='${wl}-z,text'
7664      archive_cmds_need_lc=no
7665      hardcode_shlibpath_var=no
7666      runpath_var='LD_RUN_PATH'
7667
7668      if test "$GCC" = yes; then
7669	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7670	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7671      else
7672	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7673	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7674      fi
7675      ;;
7676
7677    sysv5* | sco3.2v5* | sco5v6*)
7678      # Note: We can NOT use -z defs as we might desire, because we do not
7679      # link with -lc, and that would cause any symbols used from libc to
7680      # always be unresolved, which means just about no library would
7681      # ever link correctly.  If we're not using GNU ld we use -z text
7682      # though, which does catch some bad symbols but isn't as heavy-handed
7683      # as -z defs.
7684      no_undefined_flag='${wl}-z,text'
7685      allow_undefined_flag='${wl}-z,nodefs'
7686      archive_cmds_need_lc=no
7687      hardcode_shlibpath_var=no
7688      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7689      hardcode_libdir_separator=':'
7690      link_all_deplibs=yes
7691      export_dynamic_flag_spec='${wl}-Bexport'
7692      runpath_var='LD_RUN_PATH'
7693
7694      if test "$GCC" = yes; then
7695	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7696	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7697      else
7698	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7699	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7700      fi
7701      ;;
7702
7703    uts4*)
7704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705      hardcode_libdir_flag_spec='-L$libdir'
7706      hardcode_shlibpath_var=no
7707      ;;
7708
7709    *)
7710      ld_shlibs=no
7711      ;;
7712    esac
7713  fi
7714
7715echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7716echo "${ECHO_T}$ld_shlibs" >&6
7717test "$ld_shlibs" = no && can_build_shared=no
7718
7719#
7720# Do we need to explicitly link libc?
7721#
7722case "x$archive_cmds_need_lc" in
7723x|xyes)
7724  # Assume -lc should be added
7725  archive_cmds_need_lc=yes
7726
7727  if test "$enable_shared" = yes && test "$GCC" = yes; then
7728    case $archive_cmds in
7729    *'~'*)
7730      # FIXME: we may have to deal with multi-command sequences.
7731      ;;
7732    '$CC '*)
7733      # Test whether the compiler implicitly links with -lc since on some
7734      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7735      # to ld, don't add -lc before -lgcc.
7736      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7737echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7738      $rm conftest*
7739      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7740
7741      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742  (eval $ac_compile) 2>&5
7743  ac_status=$?
7744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745  (exit $ac_status); } 2>conftest.err; then
7746        soname=conftest
7747        lib=conftest
7748        libobjs=conftest.$ac_objext
7749        deplibs=
7750        wl=$lt_prog_compiler_wl
7751	pic_flag=$lt_prog_compiler_pic
7752        compiler_flags=-v
7753        linker_flags=-v
7754        verstring=
7755        output_objdir=.
7756        libname=conftest
7757        lt_save_allow_undefined_flag=$allow_undefined_flag
7758        allow_undefined_flag=
7759        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7760  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7761  ac_status=$?
7762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763  (exit $ac_status); }
7764        then
7765	  archive_cmds_need_lc=no
7766        else
7767	  archive_cmds_need_lc=yes
7768        fi
7769        allow_undefined_flag=$lt_save_allow_undefined_flag
7770      else
7771        cat conftest.err 1>&5
7772      fi
7773      $rm conftest*
7774      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7775echo "${ECHO_T}$archive_cmds_need_lc" >&6
7776      ;;
7777    esac
7778  fi
7779  ;;
7780esac
7781
7782echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7783echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7784library_names_spec=
7785libname_spec='lib$name'
7786soname_spec=
7787shrext_cmds=".so"
7788postinstall_cmds=
7789postuninstall_cmds=
7790finish_cmds=
7791finish_eval=
7792shlibpath_var=
7793shlibpath_overrides_runpath=unknown
7794version_type=none
7795dynamic_linker="$host_os ld.so"
7796sys_lib_dlsearch_path_spec="/lib /usr/lib"
7797if test "$GCC" = yes; then
7798  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7799  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7800    # if the path contains ";" then we assume it to be the separator
7801    # otherwise default to the standard path separator (i.e. ":") - it is
7802    # assumed that no part of a normal pathname contains ";" but that should
7803    # okay in the real world where ";" in dirpaths is itself problematic.
7804    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7805  else
7806    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7807  fi
7808else
7809  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7810fi
7811need_lib_prefix=unknown
7812hardcode_into_libs=no
7813
7814# when you set need_version to no, make sure it does not cause -set_version
7815# flags to be left without arguments
7816need_version=unknown
7817
7818case $host_os in
7819aix3*)
7820  version_type=linux
7821  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7822  shlibpath_var=LIBPATH
7823
7824  # AIX 3 has no versioning support, so we append a major version to the name.
7825  soname_spec='${libname}${release}${shared_ext}$major'
7826  ;;
7827
7828aix4* | aix5*)
7829  version_type=linux
7830  need_lib_prefix=no
7831  need_version=no
7832  hardcode_into_libs=yes
7833  if test "$host_cpu" = ia64; then
7834    # AIX 5 supports IA64
7835    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7836    shlibpath_var=LD_LIBRARY_PATH
7837  else
7838    # With GCC up to 2.95.x, collect2 would create an import file
7839    # for dependence libraries.  The import file would start with
7840    # the line `#! .'.  This would cause the generated library to
7841    # depend on `.', always an invalid library.  This was fixed in
7842    # development snapshots of GCC prior to 3.0.
7843    case $host_os in
7844      aix4 | aix4.[01] | aix4.[01].*)
7845      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7846	   echo ' yes '
7847	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7848	:
7849      else
7850	can_build_shared=no
7851      fi
7852      ;;
7853    esac
7854    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7855    # soname into executable. Probably we can add versioning support to
7856    # collect2, so additional links can be useful in future.
7857    if test "$aix_use_runtimelinking" = yes; then
7858      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7859      # instead of lib<name>.a to let people know that these are not
7860      # typical AIX shared libraries.
7861      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862    else
7863      # We preserve .a as extension for shared libraries through AIX4.2
7864      # and later when we are not doing run time linking.
7865      library_names_spec='${libname}${release}.a $libname.a'
7866      soname_spec='${libname}${release}${shared_ext}$major'
7867    fi
7868    shlibpath_var=LIBPATH
7869  fi
7870  ;;
7871
7872amigaos*)
7873  library_names_spec='$libname.ixlibrary $libname.a'
7874  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7875  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'
7876  ;;
7877
7878beos*)
7879  library_names_spec='${libname}${shared_ext}'
7880  dynamic_linker="$host_os ld.so"
7881  shlibpath_var=LIBRARY_PATH
7882  ;;
7883
7884bsdi[45]*)
7885  version_type=linux
7886  need_version=no
7887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888  soname_spec='${libname}${release}${shared_ext}$major'
7889  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7890  shlibpath_var=LD_LIBRARY_PATH
7891  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7892  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7893  # the default ld.so.conf also contains /usr/contrib/lib and
7894  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7895  # libtool to hard-code these into programs
7896  ;;
7897
7898cygwin* | mingw* | pw32*)
7899  version_type=windows
7900  shrext_cmds=".dll"
7901  need_version=no
7902  need_lib_prefix=no
7903
7904  case $GCC,$host_os in
7905  yes,cygwin* | yes,mingw* | yes,pw32*)
7906    library_names_spec='$libname.dll.a'
7907    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7908    postinstall_cmds='base_file=`basename \${file}`~
7909      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7910      dldir=$destdir/`dirname \$dlpath`~
7911      test -d \$dldir || mkdir -p \$dldir~
7912      $install_prog $dir/$dlname \$dldir/$dlname~
7913      chmod a+x \$dldir/$dlname'
7914    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7915      dlpath=$dir/\$dldll~
7916       $rm \$dlpath'
7917    shlibpath_overrides_runpath=yes
7918
7919    case $host_os in
7920    cygwin*)
7921      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7922      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7923      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7924      ;;
7925    mingw*)
7926      # MinGW DLLs use traditional 'lib' prefix
7927      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7928      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7929      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7930        # It is most probably a Windows format PATH printed by
7931        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7932        # path with ; separators, and with drive letters. We can handle the
7933        # drive letters (cygwin fileutils understands them), so leave them,
7934        # especially as we might pass files found there to a mingw objdump,
7935        # which wouldn't understand a cygwinified path. Ahh.
7936        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7937      else
7938        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7939      fi
7940      ;;
7941    pw32*)
7942      # pw32 DLLs use 'pw' prefix rather than 'lib'
7943      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7944      ;;
7945    esac
7946    ;;
7947
7948  *)
7949    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7950    ;;
7951  esac
7952  dynamic_linker='Win32 ld.exe'
7953  # FIXME: first we should search . and the directory the executable is in
7954  shlibpath_var=PATH
7955  ;;
7956
7957darwin* | rhapsody*)
7958  dynamic_linker="$host_os dyld"
7959  version_type=darwin
7960  need_lib_prefix=no
7961  need_version=no
7962  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7963  soname_spec='${libname}${release}${major}$shared_ext'
7964  shlibpath_overrides_runpath=yes
7965  shlibpath_var=DYLD_LIBRARY_PATH
7966  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7967  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7968  if test "$GCC" = yes; then
7969    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"`
7970  else
7971    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7972  fi
7973  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7974  ;;
7975
7976dgux*)
7977  version_type=linux
7978  need_lib_prefix=no
7979  need_version=no
7980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7981  soname_spec='${libname}${release}${shared_ext}$major'
7982  shlibpath_var=LD_LIBRARY_PATH
7983  ;;
7984
7985freebsd1*)
7986  dynamic_linker=no
7987  ;;
7988
7989kfreebsd*-gnu)
7990  version_type=linux
7991  need_lib_prefix=no
7992  need_version=no
7993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7994  soname_spec='${libname}${release}${shared_ext}$major'
7995  shlibpath_var=LD_LIBRARY_PATH
7996  shlibpath_overrides_runpath=no
7997  hardcode_into_libs=yes
7998  dynamic_linker='GNU ld.so'
7999  ;;
8000
8001freebsd* | dragonfly*)
8002  # DragonFly does not have aout.  When/if they implement a new
8003  # versioning mechanism, adjust this.
8004  if test -x /usr/bin/objformat; then
8005    objformat=`/usr/bin/objformat`
8006  else
8007    case $host_os in
8008    freebsd[123]*) objformat=aout ;;
8009    *) objformat=elf ;;
8010    esac
8011  fi
8012  version_type=freebsd-$objformat
8013  case $version_type in
8014    freebsd-elf*)
8015      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8016      need_version=no
8017      need_lib_prefix=no
8018      ;;
8019    freebsd-*)
8020      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8021      need_version=yes
8022      ;;
8023  esac
8024  shlibpath_var=LD_LIBRARY_PATH
8025  case $host_os in
8026  freebsd2*)
8027    shlibpath_overrides_runpath=yes
8028    ;;
8029  freebsd3.[01]* | freebsdelf3.[01]*)
8030    shlibpath_overrides_runpath=yes
8031    hardcode_into_libs=yes
8032    ;;
8033  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8034  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8035    shlibpath_overrides_runpath=no
8036    hardcode_into_libs=yes
8037    ;;
8038  freebsd*) # from 4.6 on
8039    shlibpath_overrides_runpath=yes
8040    hardcode_into_libs=yes
8041    ;;
8042  esac
8043  ;;
8044
8045gnu*)
8046  version_type=linux
8047  need_lib_prefix=no
8048  need_version=no
8049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8050  soname_spec='${libname}${release}${shared_ext}$major'
8051  shlibpath_var=LD_LIBRARY_PATH
8052  hardcode_into_libs=yes
8053  ;;
8054
8055hpux9* | hpux10* | hpux11*)
8056  # Give a soname corresponding to the major version so that dld.sl refuses to
8057  # link against other versions.
8058  version_type=sunos
8059  need_lib_prefix=no
8060  need_version=no
8061  case $host_cpu in
8062  ia64*)
8063    shrext_cmds='.so'
8064    hardcode_into_libs=yes
8065    dynamic_linker="$host_os dld.so"
8066    shlibpath_var=LD_LIBRARY_PATH
8067    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8068    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069    soname_spec='${libname}${release}${shared_ext}$major'
8070    if test "X$HPUX_IA64_MODE" = X32; then
8071      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8072    else
8073      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8074    fi
8075    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8076    ;;
8077   hppa*64*)
8078     shrext_cmds='.sl'
8079     hardcode_into_libs=yes
8080     dynamic_linker="$host_os dld.sl"
8081     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8082     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084     soname_spec='${libname}${release}${shared_ext}$major'
8085     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8086     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8087     ;;
8088   *)
8089    shrext_cmds='.sl'
8090    dynamic_linker="$host_os dld.sl"
8091    shlibpath_var=SHLIB_PATH
8092    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8093    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094    soname_spec='${libname}${release}${shared_ext}$major'
8095    ;;
8096  esac
8097  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8098  postinstall_cmds='chmod 555 $lib'
8099  ;;
8100
8101interix3*)
8102  version_type=linux
8103  need_lib_prefix=no
8104  need_version=no
8105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8106  soname_spec='${libname}${release}${shared_ext}$major'
8107  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8108  shlibpath_var=LD_LIBRARY_PATH
8109  shlibpath_overrides_runpath=no
8110  hardcode_into_libs=yes
8111  ;;
8112
8113irix5* | irix6* | nonstopux*)
8114  case $host_os in
8115    nonstopux*) version_type=nonstopux ;;
8116    *)
8117	if test "$lt_cv_prog_gnu_ld" = yes; then
8118		version_type=linux
8119	else
8120		version_type=irix
8121	fi ;;
8122  esac
8123  need_lib_prefix=no
8124  need_version=no
8125  soname_spec='${libname}${release}${shared_ext}$major'
8126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8127  case $host_os in
8128  irix5* | nonstopux*)
8129    libsuff= shlibsuff=
8130    ;;
8131  *)
8132    case $LD in # libtool.m4 will add one of these switches to LD
8133    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8134      libsuff= shlibsuff= libmagic=32-bit;;
8135    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8136      libsuff=32 shlibsuff=N32 libmagic=N32;;
8137    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8138      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8139    *) libsuff= shlibsuff= libmagic=never-match;;
8140    esac
8141    ;;
8142  esac
8143  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8144  shlibpath_overrides_runpath=no
8145  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8146  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8147  hardcode_into_libs=yes
8148  ;;
8149
8150# No shared lib support for Linux oldld, aout, or coff.
8151linux*oldld* | linux*aout* | linux*coff*)
8152  dynamic_linker=no
8153  ;;
8154
8155# This must be Linux ELF.
8156linux*)
8157  version_type=linux
8158  need_lib_prefix=no
8159  need_version=no
8160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161  soname_spec='${libname}${release}${shared_ext}$major'
8162  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8163  shlibpath_var=LD_LIBRARY_PATH
8164  shlibpath_overrides_runpath=no
8165  # This implies no fast_install, which is unacceptable.
8166  # Some rework will be needed to allow for fast_install
8167  # before this can be enabled.
8168  hardcode_into_libs=yes
8169
8170  # Append ld.so.conf contents to the search path
8171  if test -f /etc/ld.so.conf; then
8172    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8173    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8174  fi
8175
8176  # We used to test for /lib/ld.so.1 and disable shared libraries on
8177  # powerpc, because MkLinux only supported shared libraries with the
8178  # GNU dynamic linker.  Since this was broken with cross compilers,
8179  # most powerpc-linux boxes support dynamic linking these days and
8180  # people can always --disable-shared, the test was removed, and we
8181  # assume the GNU/Linux dynamic linker is in use.
8182  dynamic_linker='GNU/Linux ld.so'
8183  ;;
8184
8185netbsdelf*-gnu)
8186  version_type=linux
8187  need_lib_prefix=no
8188  need_version=no
8189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8190  soname_spec='${libname}${release}${shared_ext}$major'
8191  shlibpath_var=LD_LIBRARY_PATH
8192  shlibpath_overrides_runpath=no
8193  hardcode_into_libs=yes
8194  dynamic_linker='NetBSD ld.elf_so'
8195  ;;
8196
8197knetbsd*-gnu)
8198  version_type=linux
8199  need_lib_prefix=no
8200  need_version=no
8201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8202  soname_spec='${libname}${release}${shared_ext}$major'
8203  shlibpath_var=LD_LIBRARY_PATH
8204  shlibpath_overrides_runpath=no
8205  hardcode_into_libs=yes
8206  dynamic_linker='GNU ld.so'
8207  ;;
8208
8209netbsd*)
8210  version_type=sunos
8211  need_lib_prefix=no
8212  need_version=no
8213  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8214    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8215    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8216    dynamic_linker='NetBSD (a.out) ld.so'
8217  else
8218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8219    soname_spec='${libname}${release}${shared_ext}$major'
8220    dynamic_linker='NetBSD ld.elf_so'
8221  fi
8222  shlibpath_var=LD_LIBRARY_PATH
8223  shlibpath_overrides_runpath=yes
8224  hardcode_into_libs=yes
8225  ;;
8226
8227newsos6)
8228  version_type=linux
8229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8230  shlibpath_var=LD_LIBRARY_PATH
8231  shlibpath_overrides_runpath=yes
8232  ;;
8233
8234nto-qnx*)
8235  version_type=linux
8236  need_lib_prefix=no
8237  need_version=no
8238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8239  soname_spec='${libname}${release}${shared_ext}$major'
8240  shlibpath_var=LD_LIBRARY_PATH
8241  shlibpath_overrides_runpath=yes
8242  ;;
8243
8244openbsd*)
8245  version_type=sunos
8246  sys_lib_dlsearch_path_spec="/usr/lib"
8247  need_lib_prefix=no
8248  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8249  case $host_os in
8250    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8251    *)                         need_version=no  ;;
8252  esac
8253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8254  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8255  shlibpath_var=LD_LIBRARY_PATH
8256  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8257    case $host_os in
8258      openbsd2.[89] | openbsd2.[89].*)
8259	shlibpath_overrides_runpath=no
8260	;;
8261      *)
8262	shlibpath_overrides_runpath=yes
8263	;;
8264      esac
8265  else
8266    shlibpath_overrides_runpath=yes
8267  fi
8268  ;;
8269
8270os2*)
8271  libname_spec='$name'
8272  shrext_cmds=".dll"
8273  need_lib_prefix=no
8274  library_names_spec='$libname${shared_ext} $libname.a'
8275  dynamic_linker='OS/2 ld.exe'
8276  shlibpath_var=LIBPATH
8277  ;;
8278
8279osf3* | osf4* | osf5*)
8280  version_type=osf
8281  need_lib_prefix=no
8282  need_version=no
8283  soname_spec='${libname}${release}${shared_ext}$major'
8284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285  shlibpath_var=LD_LIBRARY_PATH
8286  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8287  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8288  ;;
8289
8290solaris*)
8291  version_type=linux
8292  need_lib_prefix=no
8293  need_version=no
8294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295  soname_spec='${libname}${release}${shared_ext}$major'
8296  shlibpath_var=LD_LIBRARY_PATH
8297  shlibpath_overrides_runpath=yes
8298  hardcode_into_libs=yes
8299  # ldd complains unless libraries are executable
8300  postinstall_cmds='chmod +x $lib'
8301  ;;
8302
8303sunos4*)
8304  version_type=sunos
8305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8307  shlibpath_var=LD_LIBRARY_PATH
8308  shlibpath_overrides_runpath=yes
8309  if test "$with_gnu_ld" = yes; then
8310    need_lib_prefix=no
8311  fi
8312  need_version=yes
8313  ;;
8314
8315sysv4 | sysv4.3*)
8316  version_type=linux
8317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318  soname_spec='${libname}${release}${shared_ext}$major'
8319  shlibpath_var=LD_LIBRARY_PATH
8320  case $host_vendor in
8321    sni)
8322      shlibpath_overrides_runpath=no
8323      need_lib_prefix=no
8324      export_dynamic_flag_spec='${wl}-Blargedynsym'
8325      runpath_var=LD_RUN_PATH
8326      ;;
8327    siemens)
8328      need_lib_prefix=no
8329      ;;
8330    motorola)
8331      need_lib_prefix=no
8332      need_version=no
8333      shlibpath_overrides_runpath=no
8334      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8335      ;;
8336  esac
8337  ;;
8338
8339sysv4*MP*)
8340  if test -d /usr/nec ;then
8341    version_type=linux
8342    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8343    soname_spec='$libname${shared_ext}.$major'
8344    shlibpath_var=LD_LIBRARY_PATH
8345  fi
8346  ;;
8347
8348sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8349  version_type=freebsd-elf
8350  need_lib_prefix=no
8351  need_version=no
8352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8353  soname_spec='${libname}${release}${shared_ext}$major'
8354  shlibpath_var=LD_LIBRARY_PATH
8355  hardcode_into_libs=yes
8356  if test "$with_gnu_ld" = yes; then
8357    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8358    shlibpath_overrides_runpath=no
8359  else
8360    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8361    shlibpath_overrides_runpath=yes
8362    case $host_os in
8363      sco3.2v5*)
8364        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8365	;;
8366    esac
8367  fi
8368  sys_lib_dlsearch_path_spec='/usr/lib'
8369  ;;
8370
8371uts4*)
8372  version_type=linux
8373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374  soname_spec='${libname}${release}${shared_ext}$major'
8375  shlibpath_var=LD_LIBRARY_PATH
8376  ;;
8377
8378*)
8379  dynamic_linker=no
8380  ;;
8381esac
8382echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8383echo "${ECHO_T}$dynamic_linker" >&6
8384test "$dynamic_linker" = no && can_build_shared=no
8385
8386variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8387if test "$GCC" = yes; then
8388  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8389fi
8390
8391echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8392echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8393hardcode_action=
8394if test -n "$hardcode_libdir_flag_spec" || \
8395   test -n "$runpath_var" || \
8396   test "X$hardcode_automatic" = "Xyes" ; then
8397
8398  # We can hardcode non-existant directories.
8399  if test "$hardcode_direct" != no &&
8400     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8401     # have to relink, otherwise we might link with an installed library
8402     # when we should be linking with a yet-to-be-installed one
8403     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8404     test "$hardcode_minus_L" != no; then
8405    # Linking always hardcodes the temporary library directory.
8406    hardcode_action=relink
8407  else
8408    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8409    hardcode_action=immediate
8410  fi
8411else
8412  # We cannot hardcode anything, or else we can only hardcode existing
8413  # directories.
8414  hardcode_action=unsupported
8415fi
8416echo "$as_me:$LINENO: result: $hardcode_action" >&5
8417echo "${ECHO_T}$hardcode_action" >&6
8418
8419if test "$hardcode_action" = relink; then
8420  # Fast installation is not supported
8421  enable_fast_install=no
8422elif test "$shlibpath_overrides_runpath" = yes ||
8423     test "$enable_shared" = no; then
8424  # Fast installation is not necessary
8425  enable_fast_install=needless
8426fi
8427
8428striplib=
8429old_striplib=
8430echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8431echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8432if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8433  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8434  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8435  echo "$as_me:$LINENO: result: yes" >&5
8436echo "${ECHO_T}yes" >&6
8437else
8438# FIXME - insert some real tests, host_os isn't really good enough
8439  case $host_os in
8440   darwin*)
8441       if test -n "$STRIP" ; then
8442         striplib="$STRIP -x"
8443         echo "$as_me:$LINENO: result: yes" >&5
8444echo "${ECHO_T}yes" >&6
8445       else
8446  echo "$as_me:$LINENO: result: no" >&5
8447echo "${ECHO_T}no" >&6
8448fi
8449       ;;
8450   *)
8451  echo "$as_me:$LINENO: result: no" >&5
8452echo "${ECHO_T}no" >&6
8453    ;;
8454  esac
8455fi
8456
8457if test "x$enable_dlopen" != xyes; then
8458  enable_dlopen=unknown
8459  enable_dlopen_self=unknown
8460  enable_dlopen_self_static=unknown
8461else
8462  lt_cv_dlopen=no
8463  lt_cv_dlopen_libs=
8464
8465  case $host_os in
8466  beos*)
8467    lt_cv_dlopen="load_add_on"
8468    lt_cv_dlopen_libs=
8469    lt_cv_dlopen_self=yes
8470    ;;
8471
8472  mingw* | pw32*)
8473    lt_cv_dlopen="LoadLibrary"
8474    lt_cv_dlopen_libs=
8475   ;;
8476
8477  cygwin*)
8478    lt_cv_dlopen="dlopen"
8479    lt_cv_dlopen_libs=
8480   ;;
8481
8482  darwin*)
8483  # if libdl is installed we need to link against it
8484    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8485echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8486if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8487  echo $ECHO_N "(cached) $ECHO_C" >&6
8488else
8489  ac_check_lib_save_LIBS=$LIBS
8490LIBS="-ldl  $LIBS"
8491cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h.  */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h.  */
8497
8498/* Override any gcc2 internal prototype to avoid an error.  */
8499#ifdef __cplusplus
8500extern "C"
8501#endif
8502/* We use char because int might match the return type of a gcc2
8503   builtin and then its argument prototype would still apply.  */
8504char dlopen ();
8505int
8506main ()
8507{
8508dlopen ();
8509  ;
8510  return 0;
8511}
8512_ACEOF
8513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515  (eval $ac_link) 2>conftest.er1
8516  ac_status=$?
8517  grep -v '^ *+' conftest.er1 >conftest.err
8518  rm -f conftest.er1
8519  cat conftest.err >&5
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); } &&
8522	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524  (eval $ac_try) 2>&5
8525  ac_status=$?
8526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527  (exit $ac_status); }; } &&
8528	 { ac_try='test -s conftest$ac_exeext'
8529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530  (eval $ac_try) 2>&5
8531  ac_status=$?
8532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533  (exit $ac_status); }; }; then
8534  ac_cv_lib_dl_dlopen=yes
8535else
8536  echo "$as_me: failed program was:" >&5
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
8539ac_cv_lib_dl_dlopen=no
8540fi
8541rm -f conftest.err conftest.$ac_objext \
8542      conftest$ac_exeext conftest.$ac_ext
8543LIBS=$ac_check_lib_save_LIBS
8544fi
8545echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8546echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8547if test $ac_cv_lib_dl_dlopen = yes; then
8548  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8549else
8550
8551    lt_cv_dlopen="dyld"
8552    lt_cv_dlopen_libs=
8553    lt_cv_dlopen_self=yes
8554
8555fi
8556
8557   ;;
8558
8559  *)
8560    echo "$as_me:$LINENO: checking for shl_load" >&5
8561echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8562if test "${ac_cv_func_shl_load+set}" = set; then
8563  echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565  cat >conftest.$ac_ext <<_ACEOF
8566/* confdefs.h.  */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h.  */
8571/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8572   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8573#define shl_load innocuous_shl_load
8574
8575/* System header to define __stub macros and hopefully few prototypes,
8576    which can conflict with char shl_load (); below.
8577    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8578    <limits.h> exists even on freestanding compilers.  */
8579
8580#ifdef __STDC__
8581# include <limits.h>
8582#else
8583# include <assert.h>
8584#endif
8585
8586#undef shl_load
8587
8588/* Override any gcc2 internal prototype to avoid an error.  */
8589#ifdef __cplusplus
8590extern "C"
8591{
8592#endif
8593/* We use char because int might match the return type of a gcc2
8594   builtin and then its argument prototype would still apply.  */
8595char shl_load ();
8596/* The GNU C library defines this for functions which it implements
8597    to always fail with ENOSYS.  Some functions are actually named
8598    something starting with __ and the normal name is an alias.  */
8599#if defined (__stub_shl_load) || defined (__stub___shl_load)
8600choke me
8601#else
8602char (*f) () = shl_load;
8603#endif
8604#ifdef __cplusplus
8605}
8606#endif
8607
8608int
8609main ()
8610{
8611return f != shl_load;
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616rm -f conftest.$ac_objext conftest$ac_exeext
8617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618  (eval $ac_link) 2>conftest.er1
8619  ac_status=$?
8620  grep -v '^ *+' conftest.er1 >conftest.err
8621  rm -f conftest.er1
8622  cat conftest.err >&5
8623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624  (exit $ac_status); } &&
8625	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627  (eval $ac_try) 2>&5
8628  ac_status=$?
8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); }; } &&
8631	 { ac_try='test -s conftest$ac_exeext'
8632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633  (eval $ac_try) 2>&5
8634  ac_status=$?
8635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636  (exit $ac_status); }; }; then
8637  ac_cv_func_shl_load=yes
8638else
8639  echo "$as_me: failed program was:" >&5
8640sed 's/^/| /' conftest.$ac_ext >&5
8641
8642ac_cv_func_shl_load=no
8643fi
8644rm -f conftest.err conftest.$ac_objext \
8645      conftest$ac_exeext conftest.$ac_ext
8646fi
8647echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8648echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8649if test $ac_cv_func_shl_load = yes; then
8650  lt_cv_dlopen="shl_load"
8651else
8652  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8653echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8654if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8655  echo $ECHO_N "(cached) $ECHO_C" >&6
8656else
8657  ac_check_lib_save_LIBS=$LIBS
8658LIBS="-ldld  $LIBS"
8659cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h.  */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h.  */
8665
8666/* Override any gcc2 internal prototype to avoid an error.  */
8667#ifdef __cplusplus
8668extern "C"
8669#endif
8670/* We use char because int might match the return type of a gcc2
8671   builtin and then its argument prototype would still apply.  */
8672char shl_load ();
8673int
8674main ()
8675{
8676shl_load ();
8677  ;
8678  return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext conftest$ac_exeext
8682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683  (eval $ac_link) 2>conftest.er1
8684  ac_status=$?
8685  grep -v '^ *+' conftest.er1 >conftest.err
8686  rm -f conftest.er1
8687  cat conftest.err >&5
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); } &&
8690	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692  (eval $ac_try) 2>&5
8693  ac_status=$?
8694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695  (exit $ac_status); }; } &&
8696	 { ac_try='test -s conftest$ac_exeext'
8697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698  (eval $ac_try) 2>&5
8699  ac_status=$?
8700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701  (exit $ac_status); }; }; then
8702  ac_cv_lib_dld_shl_load=yes
8703else
8704  echo "$as_me: failed program was:" >&5
8705sed 's/^/| /' conftest.$ac_ext >&5
8706
8707ac_cv_lib_dld_shl_load=no
8708fi
8709rm -f conftest.err conftest.$ac_objext \
8710      conftest$ac_exeext conftest.$ac_ext
8711LIBS=$ac_check_lib_save_LIBS
8712fi
8713echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8714echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8715if test $ac_cv_lib_dld_shl_load = yes; then
8716  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8717else
8718  echo "$as_me:$LINENO: checking for dlopen" >&5
8719echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8720if test "${ac_cv_func_dlopen+set}" = set; then
8721  echo $ECHO_N "(cached) $ECHO_C" >&6
8722else
8723  cat >conftest.$ac_ext <<_ACEOF
8724/* confdefs.h.  */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h.  */
8729/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8731#define dlopen innocuous_dlopen
8732
8733/* System header to define __stub macros and hopefully few prototypes,
8734    which can conflict with char dlopen (); below.
8735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736    <limits.h> exists even on freestanding compilers.  */
8737
8738#ifdef __STDC__
8739# include <limits.h>
8740#else
8741# include <assert.h>
8742#endif
8743
8744#undef dlopen
8745
8746/* Override any gcc2 internal prototype to avoid an error.  */
8747#ifdef __cplusplus
8748extern "C"
8749{
8750#endif
8751/* We use char because int might match the return type of a gcc2
8752   builtin and then its argument prototype would still apply.  */
8753char dlopen ();
8754/* The GNU C library defines this for functions which it implements
8755    to always fail with ENOSYS.  Some functions are actually named
8756    something starting with __ and the normal name is an alias.  */
8757#if defined (__stub_dlopen) || defined (__stub___dlopen)
8758choke me
8759#else
8760char (*f) () = dlopen;
8761#endif
8762#ifdef __cplusplus
8763}
8764#endif
8765
8766int
8767main ()
8768{
8769return f != dlopen;
8770  ;
8771  return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext conftest$ac_exeext
8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776  (eval $ac_link) 2>conftest.er1
8777  ac_status=$?
8778  grep -v '^ *+' conftest.er1 >conftest.err
8779  rm -f conftest.er1
8780  cat conftest.err >&5
8781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); } &&
8783	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785  (eval $ac_try) 2>&5
8786  ac_status=$?
8787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788  (exit $ac_status); }; } &&
8789	 { ac_try='test -s conftest$ac_exeext'
8790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791  (eval $ac_try) 2>&5
8792  ac_status=$?
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); }; }; then
8795  ac_cv_func_dlopen=yes
8796else
8797  echo "$as_me: failed program was:" >&5
8798sed 's/^/| /' conftest.$ac_ext >&5
8799
8800ac_cv_func_dlopen=no
8801fi
8802rm -f conftest.err conftest.$ac_objext \
8803      conftest$ac_exeext conftest.$ac_ext
8804fi
8805echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8806echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8807if test $ac_cv_func_dlopen = yes; then
8808  lt_cv_dlopen="dlopen"
8809else
8810  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8811echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8812if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8813  echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815  ac_check_lib_save_LIBS=$LIBS
8816LIBS="-ldl  $LIBS"
8817cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h.  */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h.  */
8823
8824/* Override any gcc2 internal prototype to avoid an error.  */
8825#ifdef __cplusplus
8826extern "C"
8827#endif
8828/* We use char because int might match the return type of a gcc2
8829   builtin and then its argument prototype would still apply.  */
8830char dlopen ();
8831int
8832main ()
8833{
8834dlopen ();
8835  ;
8836  return 0;
8837}
8838_ACEOF
8839rm -f conftest.$ac_objext conftest$ac_exeext
8840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841  (eval $ac_link) 2>conftest.er1
8842  ac_status=$?
8843  grep -v '^ *+' conftest.er1 >conftest.err
8844  rm -f conftest.er1
8845  cat conftest.err >&5
8846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847  (exit $ac_status); } &&
8848	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850  (eval $ac_try) 2>&5
8851  ac_status=$?
8852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); }; } &&
8854	 { ac_try='test -s conftest$ac_exeext'
8855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856  (eval $ac_try) 2>&5
8857  ac_status=$?
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); }; }; then
8860  ac_cv_lib_dl_dlopen=yes
8861else
8862  echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865ac_cv_lib_dl_dlopen=no
8866fi
8867rm -f conftest.err conftest.$ac_objext \
8868      conftest$ac_exeext conftest.$ac_ext
8869LIBS=$ac_check_lib_save_LIBS
8870fi
8871echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8872echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8873if test $ac_cv_lib_dl_dlopen = yes; then
8874  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8875else
8876  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8877echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8878if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8879  echo $ECHO_N "(cached) $ECHO_C" >&6
8880else
8881  ac_check_lib_save_LIBS=$LIBS
8882LIBS="-lsvld  $LIBS"
8883cat >conftest.$ac_ext <<_ACEOF
8884/* confdefs.h.  */
8885_ACEOF
8886cat confdefs.h >>conftest.$ac_ext
8887cat >>conftest.$ac_ext <<_ACEOF
8888/* end confdefs.h.  */
8889
8890/* Override any gcc2 internal prototype to avoid an error.  */
8891#ifdef __cplusplus
8892extern "C"
8893#endif
8894/* We use char because int might match the return type of a gcc2
8895   builtin and then its argument prototype would still apply.  */
8896char dlopen ();
8897int
8898main ()
8899{
8900dlopen ();
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905rm -f conftest.$ac_objext conftest$ac_exeext
8906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907  (eval $ac_link) 2>conftest.er1
8908  ac_status=$?
8909  grep -v '^ *+' conftest.er1 >conftest.err
8910  rm -f conftest.er1
8911  cat conftest.err >&5
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); } &&
8914	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; } &&
8920	 { ac_try='test -s conftest$ac_exeext'
8921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922  (eval $ac_try) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); }; }; then
8926  ac_cv_lib_svld_dlopen=yes
8927else
8928  echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931ac_cv_lib_svld_dlopen=no
8932fi
8933rm -f conftest.err conftest.$ac_objext \
8934      conftest$ac_exeext conftest.$ac_ext
8935LIBS=$ac_check_lib_save_LIBS
8936fi
8937echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8938echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8939if test $ac_cv_lib_svld_dlopen = yes; then
8940  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8941else
8942  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8943echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8944if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8945  echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947  ac_check_lib_save_LIBS=$LIBS
8948LIBS="-ldld  $LIBS"
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
8956/* Override any gcc2 internal prototype to avoid an error.  */
8957#ifdef __cplusplus
8958extern "C"
8959#endif
8960/* We use char because int might match the return type of a gcc2
8961   builtin and then its argument prototype would still apply.  */
8962char dld_link ();
8963int
8964main ()
8965{
8966dld_link ();
8967  ;
8968  return 0;
8969}
8970_ACEOF
8971rm -f conftest.$ac_objext conftest$ac_exeext
8972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973  (eval $ac_link) 2>conftest.er1
8974  ac_status=$?
8975  grep -v '^ *+' conftest.er1 >conftest.err
8976  rm -f conftest.er1
8977  cat conftest.err >&5
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); } &&
8980	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982  (eval $ac_try) 2>&5
8983  ac_status=$?
8984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985  (exit $ac_status); }; } &&
8986	 { ac_try='test -s conftest$ac_exeext'
8987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988  (eval $ac_try) 2>&5
8989  ac_status=$?
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); }; }; then
8992  ac_cv_lib_dld_dld_link=yes
8993else
8994  echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997ac_cv_lib_dld_dld_link=no
8998fi
8999rm -f conftest.err conftest.$ac_objext \
9000      conftest$ac_exeext conftest.$ac_ext
9001LIBS=$ac_check_lib_save_LIBS
9002fi
9003echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9004echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9005if test $ac_cv_lib_dld_dld_link = yes; then
9006  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9007fi
9008
9009
9010fi
9011
9012
9013fi
9014
9015
9016fi
9017
9018
9019fi
9020
9021
9022fi
9023
9024    ;;
9025  esac
9026
9027  if test "x$lt_cv_dlopen" != xno; then
9028    enable_dlopen=yes
9029  else
9030    enable_dlopen=no
9031  fi
9032
9033  case $lt_cv_dlopen in
9034  dlopen)
9035    save_CPPFLAGS="$CPPFLAGS"
9036    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9037
9038    save_LDFLAGS="$LDFLAGS"
9039    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9040
9041    save_LIBS="$LIBS"
9042    LIBS="$lt_cv_dlopen_libs $LIBS"
9043
9044    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9045echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9046if test "${lt_cv_dlopen_self+set}" = set; then
9047  echo $ECHO_N "(cached) $ECHO_C" >&6
9048else
9049  	  if test "$cross_compiling" = yes; then :
9050  lt_cv_dlopen_self=cross
9051else
9052  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9053  lt_status=$lt_dlunknown
9054  cat > conftest.$ac_ext <<EOF
9055#line 9055 "configure"
9056#include "confdefs.h"
9057
9058#if HAVE_DLFCN_H
9059#include <dlfcn.h>
9060#endif
9061
9062#include <stdio.h>
9063
9064#ifdef RTLD_GLOBAL
9065#  define LT_DLGLOBAL		RTLD_GLOBAL
9066#else
9067#  ifdef DL_GLOBAL
9068#    define LT_DLGLOBAL		DL_GLOBAL
9069#  else
9070#    define LT_DLGLOBAL		0
9071#  endif
9072#endif
9073
9074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9075   find out it does not work in some platform. */
9076#ifndef LT_DLLAZY_OR_NOW
9077#  ifdef RTLD_LAZY
9078#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9079#  else
9080#    ifdef DL_LAZY
9081#      define LT_DLLAZY_OR_NOW		DL_LAZY
9082#    else
9083#      ifdef RTLD_NOW
9084#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9085#      else
9086#        ifdef DL_NOW
9087#          define LT_DLLAZY_OR_NOW	DL_NOW
9088#        else
9089#          define LT_DLLAZY_OR_NOW	0
9090#        endif
9091#      endif
9092#    endif
9093#  endif
9094#endif
9095
9096#ifdef __cplusplus
9097extern "C" void exit (int);
9098#endif
9099
9100void fnord() { int i=42;}
9101int main ()
9102{
9103  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9104  int status = $lt_dlunknown;
9105
9106  if (self)
9107    {
9108      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9109      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9110      /* dlclose (self); */
9111    }
9112  else
9113    puts (dlerror ());
9114
9115    exit (status);
9116}
9117EOF
9118  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119  (eval $ac_link) 2>&5
9120  ac_status=$?
9121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9123    (./conftest; exit; ) >&5 2>/dev/null
9124    lt_status=$?
9125    case x$lt_status in
9126      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9127      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9128      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9129    esac
9130  else :
9131    # compilation failed
9132    lt_cv_dlopen_self=no
9133  fi
9134fi
9135rm -fr conftest*
9136
9137
9138fi
9139echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9140echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9141
9142    if test "x$lt_cv_dlopen_self" = xyes; then
9143      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9144      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9145echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9146if test "${lt_cv_dlopen_self_static+set}" = set; then
9147  echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149  	  if test "$cross_compiling" = yes; then :
9150  lt_cv_dlopen_self_static=cross
9151else
9152  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9153  lt_status=$lt_dlunknown
9154  cat > conftest.$ac_ext <<EOF
9155#line 9155 "configure"
9156#include "confdefs.h"
9157
9158#if HAVE_DLFCN_H
9159#include <dlfcn.h>
9160#endif
9161
9162#include <stdio.h>
9163
9164#ifdef RTLD_GLOBAL
9165#  define LT_DLGLOBAL		RTLD_GLOBAL
9166#else
9167#  ifdef DL_GLOBAL
9168#    define LT_DLGLOBAL		DL_GLOBAL
9169#  else
9170#    define LT_DLGLOBAL		0
9171#  endif
9172#endif
9173
9174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9175   find out it does not work in some platform. */
9176#ifndef LT_DLLAZY_OR_NOW
9177#  ifdef RTLD_LAZY
9178#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9179#  else
9180#    ifdef DL_LAZY
9181#      define LT_DLLAZY_OR_NOW		DL_LAZY
9182#    else
9183#      ifdef RTLD_NOW
9184#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9185#      else
9186#        ifdef DL_NOW
9187#          define LT_DLLAZY_OR_NOW	DL_NOW
9188#        else
9189#          define LT_DLLAZY_OR_NOW	0
9190#        endif
9191#      endif
9192#    endif
9193#  endif
9194#endif
9195
9196#ifdef __cplusplus
9197extern "C" void exit (int);
9198#endif
9199
9200void fnord() { int i=42;}
9201int main ()
9202{
9203  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9204  int status = $lt_dlunknown;
9205
9206  if (self)
9207    {
9208      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9209      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9210      /* dlclose (self); */
9211    }
9212  else
9213    puts (dlerror ());
9214
9215    exit (status);
9216}
9217EOF
9218  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219  (eval $ac_link) 2>&5
9220  ac_status=$?
9221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9223    (./conftest; exit; ) >&5 2>/dev/null
9224    lt_status=$?
9225    case x$lt_status in
9226      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9227      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9228      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9229    esac
9230  else :
9231    # compilation failed
9232    lt_cv_dlopen_self_static=no
9233  fi
9234fi
9235rm -fr conftest*
9236
9237
9238fi
9239echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9240echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9241    fi
9242
9243    CPPFLAGS="$save_CPPFLAGS"
9244    LDFLAGS="$save_LDFLAGS"
9245    LIBS="$save_LIBS"
9246    ;;
9247  esac
9248
9249  case $lt_cv_dlopen_self in
9250  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9251  *) enable_dlopen_self=unknown ;;
9252  esac
9253
9254  case $lt_cv_dlopen_self_static in
9255  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9256  *) enable_dlopen_self_static=unknown ;;
9257  esac
9258fi
9259
9260
9261# Report which library types will actually be built
9262echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9263echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9264echo "$as_me:$LINENO: result: $can_build_shared" >&5
9265echo "${ECHO_T}$can_build_shared" >&6
9266
9267echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9268echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9269test "$can_build_shared" = "no" && enable_shared=no
9270
9271# On AIX, shared libraries and static libraries use the same namespace, and
9272# are all built from PIC.
9273case $host_os in
9274aix3*)
9275  test "$enable_shared" = yes && enable_static=no
9276  if test -n "$RANLIB"; then
9277    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9278    postinstall_cmds='$RANLIB $lib'
9279  fi
9280  ;;
9281
9282aix4* | aix5*)
9283  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9284    test "$enable_shared" = yes && enable_static=no
9285  fi
9286    ;;
9287esac
9288echo "$as_me:$LINENO: result: $enable_shared" >&5
9289echo "${ECHO_T}$enable_shared" >&6
9290
9291echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9292echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9293# Make sure either enable_shared or enable_static is yes.
9294test "$enable_shared" = yes || enable_static=yes
9295echo "$as_me:$LINENO: result: $enable_static" >&5
9296echo "${ECHO_T}$enable_static" >&6
9297
9298# The else clause should only fire when bootstrapping the
9299# libtool distribution, otherwise you forgot to ship ltmain.sh
9300# with your package, and you will get complaints that there are
9301# no rules to generate ltmain.sh.
9302if test -f "$ltmain"; then
9303  # See if we are running on zsh, and set the options which allow our commands through
9304  # without removal of \ escapes.
9305  if test -n "${ZSH_VERSION+set}" ; then
9306    setopt NO_GLOB_SUBST
9307  fi
9308  # Now quote all the things that may contain metacharacters while being
9309  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9310  # variables and quote the copies for generation of the libtool script.
9311  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9312    SED SHELL STRIP \
9313    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9314    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9315    deplibs_check_method reload_flag reload_cmds need_locks \
9316    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9317    lt_cv_sys_global_symbol_to_c_name_address \
9318    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9319    old_postinstall_cmds old_postuninstall_cmds \
9320    compiler \
9321    CC \
9322    LD \
9323    lt_prog_compiler_wl \
9324    lt_prog_compiler_pic \
9325    lt_prog_compiler_static \
9326    lt_prog_compiler_no_builtin_flag \
9327    export_dynamic_flag_spec \
9328    thread_safe_flag_spec \
9329    whole_archive_flag_spec \
9330    enable_shared_with_static_runtimes \
9331    old_archive_cmds \
9332    old_archive_from_new_cmds \
9333    predep_objects \
9334    postdep_objects \
9335    predeps \
9336    postdeps \
9337    compiler_lib_search_path \
9338    archive_cmds \
9339    archive_expsym_cmds \
9340    postinstall_cmds \
9341    postuninstall_cmds \
9342    old_archive_from_expsyms_cmds \
9343    allow_undefined_flag \
9344    no_undefined_flag \
9345    export_symbols_cmds \
9346    hardcode_libdir_flag_spec \
9347    hardcode_libdir_flag_spec_ld \
9348    hardcode_libdir_separator \
9349    hardcode_automatic \
9350    module_cmds \
9351    module_expsym_cmds \
9352    lt_cv_prog_compiler_c_o \
9353    exclude_expsyms \
9354    include_expsyms; do
9355
9356    case $var in
9357    old_archive_cmds | \
9358    old_archive_from_new_cmds | \
9359    archive_cmds | \
9360    archive_expsym_cmds | \
9361    module_cmds | \
9362    module_expsym_cmds | \
9363    old_archive_from_expsyms_cmds | \
9364    export_symbols_cmds | \
9365    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9366    postinstall_cmds | postuninstall_cmds | \
9367    old_postinstall_cmds | old_postuninstall_cmds | \
9368    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9369      # Double-quote double-evaled strings.
9370      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9371      ;;
9372    *)
9373      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9374      ;;
9375    esac
9376  done
9377
9378  case $lt_echo in
9379  *'\$0 --fallback-echo"')
9380    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9381    ;;
9382  esac
9383
9384cfgfile="${ofile}T"
9385  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9386  $rm -f "$cfgfile"
9387  { echo "$as_me:$LINENO: creating $ofile" >&5
9388echo "$as_me: creating $ofile" >&6;}
9389
9390  cat <<__EOF__ >> "$cfgfile"
9391#! $SHELL
9392
9393# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9394# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9395# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9396#
9397# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9398# Free Software Foundation, Inc.
9399#
9400# This file is part of GNU Libtool:
9401# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9402#
9403# This program is free software; you can redistribute it and/or modify
9404# it under the terms of the GNU General Public License as published by
9405# the Free Software Foundation; either version 2 of the License, or
9406# (at your option) any later version.
9407#
9408# This program is distributed in the hope that it will be useful, but
9409# WITHOUT ANY WARRANTY; without even the implied warranty of
9410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9411# General Public License for more details.
9412#
9413# You should have received a copy of the GNU General Public License
9414# along with this program; if not, write to the Free Software
9415# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9416#
9417# As a special exception to the GNU General Public License, if you
9418# distribute this file as part of a program that contains a
9419# configuration script generated by Autoconf, you may include it under
9420# the same distribution terms that you use for the rest of that program.
9421
9422# A sed program that does not truncate output.
9423SED=$lt_SED
9424
9425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9426Xsed="$SED -e 1s/^X//"
9427
9428# The HP-UX ksh and POSIX shell print the target directory to stdout
9429# if CDPATH is set.
9430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9431
9432# The names of the tagged configurations supported by this script.
9433available_tags=
9434
9435# ### BEGIN LIBTOOL CONFIG
9436
9437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9438
9439# Shell to use when invoking shell scripts.
9440SHELL=$lt_SHELL
9441
9442# Whether or not to build shared libraries.
9443build_libtool_libs=$enable_shared
9444
9445# Whether or not to build static libraries.
9446build_old_libs=$enable_static
9447
9448# Whether or not to add -lc for building shared libraries.
9449build_libtool_need_lc=$archive_cmds_need_lc
9450
9451# Whether or not to disallow shared libs when runtime libs are static
9452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9453
9454# Whether or not to optimize for fast installation.
9455fast_install=$enable_fast_install
9456
9457# The host system.
9458host_alias=$host_alias
9459host=$host
9460host_os=$host_os
9461
9462# The build system.
9463build_alias=$build_alias
9464build=$build
9465build_os=$build_os
9466
9467# An echo program that does not interpret backslashes.
9468echo=$lt_echo
9469
9470# The archiver.
9471AR=$lt_AR
9472AR_FLAGS=$lt_AR_FLAGS
9473
9474# A C compiler.
9475LTCC=$lt_LTCC
9476
9477# LTCC compiler flags.
9478LTCFLAGS=$lt_LTCFLAGS
9479
9480# A language-specific compiler.
9481CC=$lt_compiler
9482
9483# Is the compiler the GNU C compiler?
9484with_gcc=$GCC
9485
9486# An ERE matcher.
9487EGREP=$lt_EGREP
9488
9489# The linker used to build libraries.
9490LD=$lt_LD
9491
9492# Whether we need hard or soft links.
9493LN_S=$lt_LN_S
9494
9495# A BSD-compatible nm program.
9496NM=$lt_NM
9497
9498# A symbol stripping program
9499STRIP=$lt_STRIP
9500
9501# Used to examine libraries when file_magic_cmd begins "file"
9502MAGIC_CMD=$MAGIC_CMD
9503
9504# Used on cygwin: DLL creation program.
9505DLLTOOL="$DLLTOOL"
9506
9507# Used on cygwin: object dumper.
9508OBJDUMP="$OBJDUMP"
9509
9510# Used on cygwin: assembler.
9511AS="$AS"
9512
9513# The name of the directory that contains temporary libtool files.
9514objdir=$objdir
9515
9516# How to create reloadable object files.
9517reload_flag=$lt_reload_flag
9518reload_cmds=$lt_reload_cmds
9519
9520# How to pass a linker flag through the compiler.
9521wl=$lt_lt_prog_compiler_wl
9522
9523# Object file suffix (normally "o").
9524objext="$ac_objext"
9525
9526# Old archive suffix (normally "a").
9527libext="$libext"
9528
9529# Shared library suffix (normally ".so").
9530shrext_cmds='$shrext_cmds'
9531
9532# Executable file suffix (normally "").
9533exeext="$exeext"
9534
9535# Additional compiler flags for building library objects.
9536pic_flag=$lt_lt_prog_compiler_pic
9537pic_mode=$pic_mode
9538
9539# What is the maximum length of a command?
9540max_cmd_len=$lt_cv_sys_max_cmd_len
9541
9542# Does compiler simultaneously support -c and -o options?
9543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9544
9545# Must we lock files when doing compilation?
9546need_locks=$lt_need_locks
9547
9548# Do we need the lib prefix for modules?
9549need_lib_prefix=$need_lib_prefix
9550
9551# Do we need a version for libraries?
9552need_version=$need_version
9553
9554# Whether dlopen is supported.
9555dlopen_support=$enable_dlopen
9556
9557# Whether dlopen of programs is supported.
9558dlopen_self=$enable_dlopen_self
9559
9560# Whether dlopen of statically linked programs is supported.
9561dlopen_self_static=$enable_dlopen_self_static
9562
9563# Compiler flag to prevent dynamic linking.
9564link_static_flag=$lt_lt_prog_compiler_static
9565
9566# Compiler flag to turn off builtin functions.
9567no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9568
9569# Compiler flag to allow reflexive dlopens.
9570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9571
9572# Compiler flag to generate shared objects directly from archives.
9573whole_archive_flag_spec=$lt_whole_archive_flag_spec
9574
9575# Compiler flag to generate thread-safe objects.
9576thread_safe_flag_spec=$lt_thread_safe_flag_spec
9577
9578# Library versioning type.
9579version_type=$version_type
9580
9581# Format of library name prefix.
9582libname_spec=$lt_libname_spec
9583
9584# List of archive names.  First name is the real one, the rest are links.
9585# The last name is the one that the linker finds with -lNAME.
9586library_names_spec=$lt_library_names_spec
9587
9588# The coded name of the library, if different from the real name.
9589soname_spec=$lt_soname_spec
9590
9591# Commands used to build and install an old-style archive.
9592RANLIB=$lt_RANLIB
9593old_archive_cmds=$lt_old_archive_cmds
9594old_postinstall_cmds=$lt_old_postinstall_cmds
9595old_postuninstall_cmds=$lt_old_postuninstall_cmds
9596
9597# Create an old-style archive from a shared archive.
9598old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9599
9600# Create a temporary old-style archive to link instead of a shared archive.
9601old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9602
9603# Commands used to build and install a shared archive.
9604archive_cmds=$lt_archive_cmds
9605archive_expsym_cmds=$lt_archive_expsym_cmds
9606postinstall_cmds=$lt_postinstall_cmds
9607postuninstall_cmds=$lt_postuninstall_cmds
9608
9609# Commands used to build a loadable module (assumed same as above if empty)
9610module_cmds=$lt_module_cmds
9611module_expsym_cmds=$lt_module_expsym_cmds
9612
9613# Commands to strip libraries.
9614old_striplib=$lt_old_striplib
9615striplib=$lt_striplib
9616
9617# Dependencies to place before the objects being linked to create a
9618# shared library.
9619predep_objects=$lt_predep_objects
9620
9621# Dependencies to place after the objects being linked to create a
9622# shared library.
9623postdep_objects=$lt_postdep_objects
9624
9625# Dependencies to place before the objects being linked to create a
9626# shared library.
9627predeps=$lt_predeps
9628
9629# Dependencies to place after the objects being linked to create a
9630# shared library.
9631postdeps=$lt_postdeps
9632
9633# The library search path used internally by the compiler when linking
9634# a shared library.
9635compiler_lib_search_path=$lt_compiler_lib_search_path
9636
9637# Method to check whether dependent libraries are shared objects.
9638deplibs_check_method=$lt_deplibs_check_method
9639
9640# Command to use when deplibs_check_method == file_magic.
9641file_magic_cmd=$lt_file_magic_cmd
9642
9643# Flag that allows shared libraries with undefined symbols to be built.
9644allow_undefined_flag=$lt_allow_undefined_flag
9645
9646# Flag that forces no undefined symbols.
9647no_undefined_flag=$lt_no_undefined_flag
9648
9649# Commands used to finish a libtool library installation in a directory.
9650finish_cmds=$lt_finish_cmds
9651
9652# Same as above, but a single script fragment to be evaled but not shown.
9653finish_eval=$lt_finish_eval
9654
9655# Take the output of nm and produce a listing of raw symbols and C names.
9656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9657
9658# Transform the output of nm in a proper C declaration
9659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9660
9661# Transform the output of nm in a C name address pair
9662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9663
9664# This is the shared library runtime path variable.
9665runpath_var=$runpath_var
9666
9667# This is the shared library path variable.
9668shlibpath_var=$shlibpath_var
9669
9670# Is shlibpath searched before the hard-coded library search path?
9671shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9672
9673# How to hardcode a shared library path into an executable.
9674hardcode_action=$hardcode_action
9675
9676# Whether we should hardcode library paths into libraries.
9677hardcode_into_libs=$hardcode_into_libs
9678
9679# Flag to hardcode \$libdir into a binary during linking.
9680# This must work even if \$libdir does not exist.
9681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9682
9683# If ld is used when linking, flag to hardcode \$libdir into
9684# a binary during linking. This must work even if \$libdir does
9685# not exist.
9686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9687
9688# Whether we need a single -rpath flag with a separated argument.
9689hardcode_libdir_separator=$lt_hardcode_libdir_separator
9690
9691# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9692# resulting binary.
9693hardcode_direct=$hardcode_direct
9694
9695# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9696# resulting binary.
9697hardcode_minus_L=$hardcode_minus_L
9698
9699# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9700# the resulting binary.
9701hardcode_shlibpath_var=$hardcode_shlibpath_var
9702
9703# Set to yes if building a shared library automatically hardcodes DIR into the library
9704# and all subsequent libraries and executables linked against it.
9705hardcode_automatic=$hardcode_automatic
9706
9707# Variables whose values should be saved in libtool wrapper scripts and
9708# restored at relink time.
9709variables_saved_for_relink="$variables_saved_for_relink"
9710
9711# Whether libtool must link a program against all its dependency libraries.
9712link_all_deplibs=$link_all_deplibs
9713
9714# Compile-time system search path for libraries
9715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9716
9717# Run-time system search path for libraries
9718sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9719
9720# Fix the shell variable \$srcfile for the compiler.
9721fix_srcfile_path="$fix_srcfile_path"
9722
9723# Set to yes if exported symbols are required.
9724always_export_symbols=$always_export_symbols
9725
9726# The commands to list exported symbols.
9727export_symbols_cmds=$lt_export_symbols_cmds
9728
9729# The commands to extract the exported symbol list from a shared archive.
9730extract_expsyms_cmds=$lt_extract_expsyms_cmds
9731
9732# Symbols that should not be listed in the preloaded symbols.
9733exclude_expsyms=$lt_exclude_expsyms
9734
9735# Symbols that must always be exported.
9736include_expsyms=$lt_include_expsyms
9737
9738# ### END LIBTOOL CONFIG
9739
9740__EOF__
9741
9742
9743  case $host_os in
9744  aix3*)
9745    cat <<\EOF >> "$cfgfile"
9746
9747# AIX sometimes has problems with the GCC collect2 program.  For some
9748# reason, if we set the COLLECT_NAMES environment variable, the problems
9749# vanish in a puff of smoke.
9750if test "X${COLLECT_NAMES+set}" != Xset; then
9751  COLLECT_NAMES=
9752  export COLLECT_NAMES
9753fi
9754EOF
9755    ;;
9756  esac
9757
9758  # We use sed instead of cat because bash on DJGPP gets confused if
9759  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9760  # text mode, it properly converts lines to CR/LF.  This bash problem
9761  # is reportedly fixed, but why not run on old versions too?
9762  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9763
9764  mv -f "$cfgfile" "$ofile" || \
9765    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9766  chmod +x "$ofile"
9767
9768else
9769  # If there is no Makefile yet, we rely on a make rule to execute
9770  # `config.status --recheck' to rerun these tests and create the
9771  # libtool script then.
9772  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9773  if test -f "$ltmain_in"; then
9774    test -f Makefile && make "$ltmain"
9775  fi
9776fi
9777
9778
9779ac_ext=c
9780ac_cpp='$CPP $CPPFLAGS'
9781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784
9785CC="$lt_save_CC"
9786
9787
9788# Check whether --with-tags or --without-tags was given.
9789if test "${with_tags+set}" = set; then
9790  withval="$with_tags"
9791  tagnames="$withval"
9792fi;
9793
9794if test -f "$ltmain" && test -n "$tagnames"; then
9795  if test ! -f "${ofile}"; then
9796    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9797echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9798  fi
9799
9800  if test -z "$LTCC"; then
9801    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9802    if test -z "$LTCC"; then
9803      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9804echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9805    else
9806      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9807echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9808    fi
9809  fi
9810  if test -z "$LTCFLAGS"; then
9811    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9812  fi
9813
9814  # Extract list of available tagged configurations in $ofile.
9815  # Note that this assumes the entire list is on one line.
9816  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9817
9818  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9819  for tagname in $tagnames; do
9820    IFS="$lt_save_ifs"
9821    # Check whether tagname contains only valid characters
9822    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9823    "") ;;
9824    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9825echo "$as_me: error: invalid tag name: $tagname" >&2;}
9826   { (exit 1); exit 1; }; }
9827	;;
9828    esac
9829
9830    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9831    then
9832      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9833echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9834   { (exit 1); exit 1; }; }
9835    fi
9836
9837    # Update the list of available tags.
9838    if test -n "$tagname"; then
9839      echo appending configuration tag \"$tagname\" to $ofile
9840
9841      case $tagname in
9842      CXX)
9843	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9844	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9845	    (test "X$CXX" != "Xg++"))) ; then
9846	  ac_ext=cc
9847ac_cpp='$CXXCPP $CPPFLAGS'
9848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9851
9852
9853
9854
9855archive_cmds_need_lc_CXX=no
9856allow_undefined_flag_CXX=
9857always_export_symbols_CXX=no
9858archive_expsym_cmds_CXX=
9859export_dynamic_flag_spec_CXX=
9860hardcode_direct_CXX=no
9861hardcode_libdir_flag_spec_CXX=
9862hardcode_libdir_flag_spec_ld_CXX=
9863hardcode_libdir_separator_CXX=
9864hardcode_minus_L_CXX=no
9865hardcode_shlibpath_var_CXX=unsupported
9866hardcode_automatic_CXX=no
9867module_cmds_CXX=
9868module_expsym_cmds_CXX=
9869link_all_deplibs_CXX=unknown
9870old_archive_cmds_CXX=$old_archive_cmds
9871no_undefined_flag_CXX=
9872whole_archive_flag_spec_CXX=
9873enable_shared_with_static_runtimes_CXX=no
9874
9875# Dependencies to place before and after the object being linked:
9876predep_objects_CXX=
9877postdep_objects_CXX=
9878predeps_CXX=
9879postdeps_CXX=
9880compiler_lib_search_path_CXX=
9881
9882# Source file extension for C++ test sources.
9883ac_ext=cpp
9884
9885# Object file extension for compiled C++ test sources.
9886objext=o
9887objext_CXX=$objext
9888
9889# Code to be used in simple compile tests
9890lt_simple_compile_test_code="int some_variable = 0;\n"
9891
9892# Code to be used in simple link tests
9893lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9894
9895# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9896
9897# If no C compiler was specified, use CC.
9898LTCC=${LTCC-"$CC"}
9899
9900# If no C compiler flags were specified, use CFLAGS.
9901LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9902
9903# Allow CC to be a program name with arguments.
9904compiler=$CC
9905
9906
9907# save warnings/boilerplate of simple test code
9908ac_outfile=conftest.$ac_objext
9909printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9911_lt_compiler_boilerplate=`cat conftest.err`
9912$rm conftest*
9913
9914ac_outfile=conftest.$ac_objext
9915printf "$lt_simple_link_test_code" >conftest.$ac_ext
9916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9917_lt_linker_boilerplate=`cat conftest.err`
9918$rm conftest*
9919
9920
9921# Allow CC to be a program name with arguments.
9922lt_save_CC=$CC
9923lt_save_LD=$LD
9924lt_save_GCC=$GCC
9925GCC=$GXX
9926lt_save_with_gnu_ld=$with_gnu_ld
9927lt_save_path_LD=$lt_cv_path_LD
9928if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9929  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9930else
9931  $as_unset lt_cv_prog_gnu_ld
9932fi
9933if test -n "${lt_cv_path_LDCXX+set}"; then
9934  lt_cv_path_LD=$lt_cv_path_LDCXX
9935else
9936  $as_unset lt_cv_path_LD
9937fi
9938test -z "${LDCXX+set}" || LD=$LDCXX
9939CC=${CXX-"c++"}
9940compiler=$CC
9941compiler_CXX=$CC
9942for cc_temp in $compiler""; do
9943  case $cc_temp in
9944    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9945    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9946    \-*) ;;
9947    *) break;;
9948  esac
9949done
9950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9951
9952
9953# We don't want -fno-exception wen compiling C++ code, so set the
9954# no_builtin_flag separately
9955if test "$GXX" = yes; then
9956  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9957else
9958  lt_prog_compiler_no_builtin_flag_CXX=
9959fi
9960
9961if test "$GXX" = yes; then
9962  # Set up default GNU C++ configuration
9963
9964
9965# Check whether --with-gnu-ld or --without-gnu-ld was given.
9966if test "${with_gnu_ld+set}" = set; then
9967  withval="$with_gnu_ld"
9968  test "$withval" = no || with_gnu_ld=yes
9969else
9970  with_gnu_ld=no
9971fi;
9972ac_prog=ld
9973if test "$GCC" = yes; then
9974  # Check if gcc -print-prog-name=ld gives a path.
9975  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9976echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9977  case $host in
9978  *-*-mingw*)
9979    # gcc leaves a trailing carriage return which upsets mingw
9980    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9981  *)
9982    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9983  esac
9984  case $ac_prog in
9985    # Accept absolute paths.
9986    [\\/]* | ?:[\\/]*)
9987      re_direlt='/[^/][^/]*/\.\./'
9988      # Canonicalize the pathname of ld
9989      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9990      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9991	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9992      done
9993      test -z "$LD" && LD="$ac_prog"
9994      ;;
9995  "")
9996    # If it fails, then pretend we aren't using GCC.
9997    ac_prog=ld
9998    ;;
9999  *)
10000    # If it is relative, then search for the first ld in PATH.
10001    with_gnu_ld=unknown
10002    ;;
10003  esac
10004elif test "$with_gnu_ld" = yes; then
10005  echo "$as_me:$LINENO: checking for GNU ld" >&5
10006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10007else
10008  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10010fi
10011if test "${lt_cv_path_LD+set}" = set; then
10012  echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014  if test -z "$LD"; then
10015  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10016  for ac_dir in $PATH; do
10017    IFS="$lt_save_ifs"
10018    test -z "$ac_dir" && ac_dir=.
10019    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10020      lt_cv_path_LD="$ac_dir/$ac_prog"
10021      # Check to see if the program is GNU ld.  I'd rather use --version,
10022      # but apparently some variants of GNU ld only accept -v.
10023      # Break only if it was the GNU/non-GNU ld that we prefer.
10024      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10025      *GNU* | *'with BFD'*)
10026	test "$with_gnu_ld" != no && break
10027	;;
10028      *)
10029	test "$with_gnu_ld" != yes && break
10030	;;
10031      esac
10032    fi
10033  done
10034  IFS="$lt_save_ifs"
10035else
10036  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10037fi
10038fi
10039
10040LD="$lt_cv_path_LD"
10041if test -n "$LD"; then
10042  echo "$as_me:$LINENO: result: $LD" >&5
10043echo "${ECHO_T}$LD" >&6
10044else
10045  echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047fi
10048test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10049echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10050   { (exit 1); exit 1; }; }
10051echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10052echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10053if test "${lt_cv_prog_gnu_ld+set}" = set; then
10054  echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10057case `$LD -v 2>&1 </dev/null` in
10058*GNU* | *'with BFD'*)
10059  lt_cv_prog_gnu_ld=yes
10060  ;;
10061*)
10062  lt_cv_prog_gnu_ld=no
10063  ;;
10064esac
10065fi
10066echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10067echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10068with_gnu_ld=$lt_cv_prog_gnu_ld
10069
10070
10071
10072  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10073  # archiving commands below assume that GNU ld is being used.
10074  if test "$with_gnu_ld" = yes; then
10075    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076    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'
10077
10078    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10079    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080
10081    # If archive_cmds runs LD, not CC, wlarc should be empty
10082    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10083    #     investigate it a little bit more. (MM)
10084    wlarc='${wl}'
10085
10086    # ancient GNU ld didn't support --whole-archive et. al.
10087    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10088	grep 'no-whole-archive' > /dev/null; then
10089      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10090    else
10091      whole_archive_flag_spec_CXX=
10092    fi
10093  else
10094    with_gnu_ld=no
10095    wlarc=
10096
10097    # A generic and very simple default shared library creation
10098    # command for GNU C++ for the case where it uses the native
10099    # linker, instead of GNU ld.  If possible, this setting should
10100    # overridden to take advantage of the native linker features on
10101    # the platform it is being used on.
10102    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10103  fi
10104
10105  # Commands to make compiler produce verbose output that lists
10106  # what "hidden" libraries, object files and flags are used when
10107  # linking a shared library.
10108  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10109
10110else
10111  GXX=no
10112  with_gnu_ld=no
10113  wlarc=
10114fi
10115
10116# PORTME: fill in a description of your system's C++ link characteristics
10117echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10118echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10119ld_shlibs_CXX=yes
10120case $host_os in
10121  aix3*)
10122    # FIXME: insert proper C++ library support
10123    ld_shlibs_CXX=no
10124    ;;
10125  aix4* | aix5*)
10126    if test "$host_cpu" = ia64; then
10127      # On IA64, the linker does run time linking by default, so we don't
10128      # have to do anything special.
10129      aix_use_runtimelinking=no
10130      exp_sym_flag='-Bexport'
10131      no_entry_flag=""
10132    else
10133      aix_use_runtimelinking=no
10134
10135      # Test if we are trying to use run time linking or normal
10136      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10137      # need to do runtime linking.
10138      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10139	for ld_flag in $LDFLAGS; do
10140	  case $ld_flag in
10141	  *-brtl*)
10142	    aix_use_runtimelinking=yes
10143	    break
10144	    ;;
10145	  esac
10146	done
10147	;;
10148      esac
10149
10150      exp_sym_flag='-bexport'
10151      no_entry_flag='-bnoentry'
10152    fi
10153
10154    # When large executables or shared objects are built, AIX ld can
10155    # have problems creating the table of contents.  If linking a library
10156    # or program results in "error TOC overflow" add -mminimal-toc to
10157    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10158    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10159
10160    archive_cmds_CXX=''
10161    hardcode_direct_CXX=yes
10162    hardcode_libdir_separator_CXX=':'
10163    link_all_deplibs_CXX=yes
10164
10165    if test "$GXX" = yes; then
10166      case $host_os in aix4.[012]|aix4.[012].*)
10167      # We only want to do this on AIX 4.2 and lower, the check
10168      # below for broken collect2 doesn't work under 4.3+
10169	collect2name=`${CC} -print-prog-name=collect2`
10170	if test -f "$collect2name" && \
10171	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10172	then
10173	  # We have reworked collect2
10174	  hardcode_direct_CXX=yes
10175	else
10176	  # We have old collect2
10177	  hardcode_direct_CXX=unsupported
10178	  # It fails to find uninstalled libraries when the uninstalled
10179	  # path is not listed in the libpath.  Setting hardcode_minus_L
10180	  # to unsupported forces relinking
10181	  hardcode_minus_L_CXX=yes
10182	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10183	  hardcode_libdir_separator_CXX=
10184	fi
10185	;;
10186      esac
10187      shared_flag='-shared'
10188      if test "$aix_use_runtimelinking" = yes; then
10189	shared_flag="$shared_flag "'${wl}-G'
10190      fi
10191    else
10192      # not using gcc
10193      if test "$host_cpu" = ia64; then
10194	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10195	# chokes on -Wl,-G. The following line is correct:
10196	shared_flag='-G'
10197      else
10198	if test "$aix_use_runtimelinking" = yes; then
10199	  shared_flag='${wl}-G'
10200	else
10201	  shared_flag='${wl}-bM:SRE'
10202	fi
10203      fi
10204    fi
10205
10206    # It seems that -bexpall does not export symbols beginning with
10207    # underscore (_), so it is better to generate a list of symbols to export.
10208    always_export_symbols_CXX=yes
10209    if test "$aix_use_runtimelinking" = yes; then
10210      # Warning - without using the other runtime loading flags (-brtl),
10211      # -berok will link without error, but may produce a broken library.
10212      allow_undefined_flag_CXX='-berok'
10213      # Determine the default libpath from the value encoded in an empty executable.
10214      cat >conftest.$ac_ext <<_ACEOF
10215/* confdefs.h.  */
10216_ACEOF
10217cat confdefs.h >>conftest.$ac_ext
10218cat >>conftest.$ac_ext <<_ACEOF
10219/* end confdefs.h.  */
10220
10221int
10222main ()
10223{
10224
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231  (eval $ac_link) 2>conftest.er1
10232  ac_status=$?
10233  grep -v '^ *+' conftest.er1 >conftest.err
10234  rm -f conftest.er1
10235  cat conftest.err >&5
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); } &&
10238	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; } &&
10244	 { ac_try='test -s conftest$ac_exeext'
10245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246  (eval $ac_try) 2>&5
10247  ac_status=$?
10248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249  (exit $ac_status); }; }; then
10250
10251aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10252}'`
10253# Check for a 64-bit object if we didn't find anything.
10254if 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; }
10255}'`; fi
10256else
10257  echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260fi
10261rm -f conftest.err conftest.$ac_objext \
10262      conftest$ac_exeext conftest.$ac_ext
10263if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10264
10265      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10266
10267      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10268     else
10269      if test "$host_cpu" = ia64; then
10270	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10271	allow_undefined_flag_CXX="-z nodefs"
10272	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10273      else
10274	# Determine the default libpath from the value encoded in an empty executable.
10275	cat >conftest.$ac_ext <<_ACEOF
10276/* confdefs.h.  */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h.  */
10281
10282int
10283main ()
10284{
10285
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext conftest$ac_exeext
10291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292  (eval $ac_link) 2>conftest.er1
10293  ac_status=$?
10294  grep -v '^ *+' conftest.er1 >conftest.err
10295  rm -f conftest.er1
10296  cat conftest.err >&5
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); } &&
10299	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301  (eval $ac_try) 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); }; } &&
10305	 { ac_try='test -s conftest$ac_exeext'
10306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307  (eval $ac_try) 2>&5
10308  ac_status=$?
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); }; }; then
10311
10312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10313}'`
10314# Check for a 64-bit object if we didn't find anything.
10315if 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; }
10316}'`; fi
10317else
10318  echo "$as_me: failed program was:" >&5
10319sed 's/^/| /' conftest.$ac_ext >&5
10320
10321fi
10322rm -f conftest.err conftest.$ac_objext \
10323      conftest$ac_exeext conftest.$ac_ext
10324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10325
10326	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10327	# Warning - without using the other run time loading flags,
10328	# -berok will link without error, but may produce a broken library.
10329	no_undefined_flag_CXX=' ${wl}-bernotok'
10330	allow_undefined_flag_CXX=' ${wl}-berok'
10331	# Exported symbols can be pulled into shared objects from archives
10332	whole_archive_flag_spec_CXX='$convenience'
10333	archive_cmds_need_lc_CXX=yes
10334	# This is similar to how AIX traditionally builds its shared libraries.
10335	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10336      fi
10337    fi
10338    ;;
10339
10340  beos*)
10341    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10342      allow_undefined_flag_CXX=unsupported
10343      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10344      # support --undefined.  This deserves some investigation.  FIXME
10345      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346    else
10347      ld_shlibs_CXX=no
10348    fi
10349    ;;
10350
10351  chorus*)
10352    case $cc_basename in
10353      *)
10354	# FIXME: insert proper C++ library support
10355	ld_shlibs_CXX=no
10356	;;
10357    esac
10358    ;;
10359
10360  cygwin* | mingw* | pw32*)
10361    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10362    # as there is no search path for DLLs.
10363    hardcode_libdir_flag_spec_CXX='-L$libdir'
10364    allow_undefined_flag_CXX=unsupported
10365    always_export_symbols_CXX=no
10366    enable_shared_with_static_runtimes_CXX=yes
10367
10368    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10369      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10370      # If the export-symbols file already is a .def file (1st line
10371      # is EXPORTS), use it as is; otherwise, prepend...
10372      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10373	cp $export_symbols $output_objdir/$soname.def;
10374      else
10375	echo EXPORTS > $output_objdir/$soname.def;
10376	cat $export_symbols >> $output_objdir/$soname.def;
10377      fi~
10378      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10379    else
10380      ld_shlibs_CXX=no
10381    fi
10382  ;;
10383      darwin* | rhapsody*)
10384        case $host_os in
10385        rhapsody* | darwin1.[012])
10386         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10387         ;;
10388       *) # Darwin 1.3 on
10389         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10390           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10391         else
10392           case ${MACOSX_DEPLOYMENT_TARGET} in
10393             10.[012])
10394               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10395               ;;
10396             10.*)
10397               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10398               ;;
10399           esac
10400         fi
10401         ;;
10402        esac
10403      archive_cmds_need_lc_CXX=no
10404      hardcode_direct_CXX=no
10405      hardcode_automatic_CXX=yes
10406      hardcode_shlibpath_var_CXX=unsupported
10407      whole_archive_flag_spec_CXX=''
10408      link_all_deplibs_CXX=yes
10409
10410    if test "$GXX" = yes ; then
10411      lt_int_apple_cc_single_mod=no
10412      output_verbose_link_cmd='echo'
10413      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10414       lt_int_apple_cc_single_mod=yes
10415      fi
10416      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10417       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10418      else
10419          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'
10420        fi
10421        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10422        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10423          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10424            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}'
10425          else
10426            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}'
10427          fi
10428            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}'
10429      else
10430      case $cc_basename in
10431        xlc*)
10432         output_verbose_link_cmd='echo'
10433          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'
10434          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10435          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10436          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}'
10437          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}'
10438          ;;
10439       *)
10440         ld_shlibs_CXX=no
10441          ;;
10442      esac
10443      fi
10444        ;;
10445
10446  dgux*)
10447    case $cc_basename in
10448      ec++*)
10449	# FIXME: insert proper C++ library support
10450	ld_shlibs_CXX=no
10451	;;
10452      ghcx*)
10453	# Green Hills C++ Compiler
10454	# FIXME: insert proper C++ library support
10455	ld_shlibs_CXX=no
10456	;;
10457      *)
10458	# FIXME: insert proper C++ library support
10459	ld_shlibs_CXX=no
10460	;;
10461    esac
10462    ;;
10463  freebsd[12]*)
10464    # C++ shared libraries reported to be fairly broken before switch to ELF
10465    ld_shlibs_CXX=no
10466    ;;
10467  freebsd-elf*)
10468    archive_cmds_need_lc_CXX=no
10469    ;;
10470  freebsd* | kfreebsd*-gnu | dragonfly*)
10471    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10472    # conventions
10473    ld_shlibs_CXX=yes
10474    ;;
10475  gnu*)
10476    ;;
10477  hpux9*)
10478    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10479    hardcode_libdir_separator_CXX=:
10480    export_dynamic_flag_spec_CXX='${wl}-E'
10481    hardcode_direct_CXX=yes
10482    hardcode_minus_L_CXX=yes # Not in the search PATH,
10483				# but as the default
10484				# location of the library.
10485
10486    case $cc_basename in
10487    CC*)
10488      # FIXME: insert proper C++ library support
10489      ld_shlibs_CXX=no
10490      ;;
10491    aCC*)
10492      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'
10493      # Commands to make compiler produce verbose output that lists
10494      # what "hidden" libraries, object files and flags are used when
10495      # linking a shared library.
10496      #
10497      # There doesn't appear to be a way to prevent this compiler from
10498      # explicitly linking system object files so we need to strip them
10499      # from the output so that they don't get included in the library
10500      # dependencies.
10501      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'
10502      ;;
10503    *)
10504      if test "$GXX" = yes; then
10505        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'
10506      else
10507        # FIXME: insert proper C++ library support
10508        ld_shlibs_CXX=no
10509      fi
10510      ;;
10511    esac
10512    ;;
10513  hpux10*|hpux11*)
10514    if test $with_gnu_ld = no; then
10515      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516      hardcode_libdir_separator_CXX=:
10517
10518      case $host_cpu in
10519      hppa*64*|ia64*)
10520	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10521        ;;
10522      *)
10523	export_dynamic_flag_spec_CXX='${wl}-E'
10524        ;;
10525      esac
10526    fi
10527    case $host_cpu in
10528    hppa*64*|ia64*)
10529      hardcode_direct_CXX=no
10530      hardcode_shlibpath_var_CXX=no
10531      ;;
10532    *)
10533      hardcode_direct_CXX=yes
10534      hardcode_minus_L_CXX=yes # Not in the search PATH,
10535					      # but as the default
10536					      # location of the library.
10537      ;;
10538    esac
10539
10540    case $cc_basename in
10541      CC*)
10542	# FIXME: insert proper C++ library support
10543	ld_shlibs_CXX=no
10544	;;
10545      aCC*)
10546	case $host_cpu in
10547	hppa*64*)
10548	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10549	  ;;
10550	ia64*)
10551	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10552	  ;;
10553	*)
10554	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10555	  ;;
10556	esac
10557	# Commands to make compiler produce verbose output that lists
10558	# what "hidden" libraries, object files and flags are used when
10559	# linking a shared library.
10560	#
10561	# There doesn't appear to be a way to prevent this compiler from
10562	# explicitly linking system object files so we need to strip them
10563	# from the output so that they don't get included in the library
10564	# dependencies.
10565	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'
10566	;;
10567      *)
10568	if test "$GXX" = yes; then
10569	  if test $with_gnu_ld = no; then
10570	    case $host_cpu in
10571	    hppa*64*)
10572	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573	      ;;
10574	    ia64*)
10575	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576	      ;;
10577	    *)
10578	      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'
10579	      ;;
10580	    esac
10581	  fi
10582	else
10583	  # FIXME: insert proper C++ library support
10584	  ld_shlibs_CXX=no
10585	fi
10586	;;
10587    esac
10588    ;;
10589  interix3*)
10590    hardcode_direct_CXX=no
10591    hardcode_shlibpath_var_CXX=no
10592    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10593    export_dynamic_flag_spec_CXX='${wl}-E'
10594    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10595    # Instead, shared libraries are loaded at an image base (0x10000000 by
10596    # default) and relocated if they conflict, which is a slow very memory
10597    # consuming and fragmenting process.  To avoid this, we pick a random,
10598    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10599    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10600    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10601    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10602    ;;
10603  irix5* | irix6*)
10604    case $cc_basename in
10605      CC*)
10606	# SGI C++
10607	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10608
10609	# Archives containing C++ object files must be created using
10610	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10611	# necessary to make sure instantiated templates are included
10612	# in the archive.
10613	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10614	;;
10615      *)
10616	if test "$GXX" = yes; then
10617	  if test "$with_gnu_ld" = no; then
10618	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10619	  else
10620	    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'
10621	  fi
10622	fi
10623	link_all_deplibs_CXX=yes
10624	;;
10625    esac
10626    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10627    hardcode_libdir_separator_CXX=:
10628    ;;
10629  linux*)
10630    case $cc_basename in
10631      KCC*)
10632	# Kuck and Associates, Inc. (KAI) C++ Compiler
10633
10634	# KCC will only create a shared library if the output file
10635	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10636	# to its proper name (with version) after linking.
10637	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'
10638	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'
10639	# Commands to make compiler produce verbose output that lists
10640	# what "hidden" libraries, object files and flags are used when
10641	# linking a shared library.
10642	#
10643	# There doesn't appear to be a way to prevent this compiler from
10644	# explicitly linking system object files so we need to strip them
10645	# from the output so that they don't get included in the library
10646	# dependencies.
10647	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'
10648
10649	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10650	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10651
10652	# Archives containing C++ object files must be created using
10653	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10654	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10655	;;
10656      icpc*)
10657	# Intel C++
10658	with_gnu_ld=yes
10659	# version 8.0 and above of icpc choke on multiply defined symbols
10660	# if we add $predep_objects and $postdep_objects, however 7.1 and
10661	# earlier do not add the objects themselves.
10662	case `$CC -V 2>&1` in
10663	*"Version 7."*)
10664  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665  	  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'
10666	  ;;
10667	*)  # Version 8.0 or newer
10668	  tmp_idyn=
10669	  case $host_cpu in
10670	    ia64*) tmp_idyn=' -i_dynamic';;
10671	  esac
10672  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10674	  ;;
10675	esac
10676	archive_cmds_need_lc_CXX=no
10677	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10680	;;
10681      pgCC*)
10682        # Portland Group C++ compiler
10683	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10684  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10685
10686	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10687	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10689        ;;
10690      cxx*)
10691	# Compaq C++
10692	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693	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'
10694
10695	runpath_var=LD_RUN_PATH
10696	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10697	hardcode_libdir_separator_CXX=:
10698
10699	# Commands to make compiler produce verbose output that lists
10700	# what "hidden" libraries, object files and flags are used when
10701	# linking a shared library.
10702	#
10703	# There doesn't appear to be a way to prevent this compiler from
10704	# explicitly linking system object files so we need to strip them
10705	# from the output so that they don't get included in the library
10706	# dependencies.
10707	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'
10708	;;
10709    esac
10710    ;;
10711  lynxos*)
10712    # FIXME: insert proper C++ library support
10713    ld_shlibs_CXX=no
10714    ;;
10715  m88k*)
10716    # FIXME: insert proper C++ library support
10717    ld_shlibs_CXX=no
10718    ;;
10719  mvs*)
10720    case $cc_basename in
10721      cxx*)
10722	# FIXME: insert proper C++ library support
10723	ld_shlibs_CXX=no
10724	;;
10725      *)
10726	# FIXME: insert proper C++ library support
10727	ld_shlibs_CXX=no
10728	;;
10729    esac
10730    ;;
10731  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10732    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10733      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10734      wlarc=
10735      hardcode_libdir_flag_spec_CXX='-R$libdir'
10736      hardcode_direct_CXX=yes
10737      hardcode_shlibpath_var_CXX=no
10738    fi
10739    # Workaround some broken pre-1.5 toolchains
10740    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10741    ;;
10742  openbsd2*)
10743    # C++ shared libraries are fairly broken
10744    ld_shlibs_CXX=no
10745    ;;
10746  openbsd*)
10747    hardcode_direct_CXX=yes
10748    hardcode_shlibpath_var_CXX=no
10749    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10750    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10751    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10752      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10753      export_dynamic_flag_spec_CXX='${wl}-E'
10754      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10755    fi
10756    output_verbose_link_cmd='echo'
10757    ;;
10758  osf3*)
10759    case $cc_basename in
10760      KCC*)
10761	# Kuck and Associates, Inc. (KAI) C++ Compiler
10762
10763	# KCC will only create a shared library if the output file
10764	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10765	# to its proper name (with version) after linking.
10766	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'
10767
10768	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769	hardcode_libdir_separator_CXX=:
10770
10771	# Archives containing C++ object files must be created using
10772	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10773	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10774
10775	;;
10776      RCC*)
10777	# Rational C++ 2.4.1
10778	# FIXME: insert proper C++ library support
10779	ld_shlibs_CXX=no
10780	;;
10781      cxx*)
10782	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10783	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10784
10785	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10786	hardcode_libdir_separator_CXX=:
10787
10788	# Commands to make compiler produce verbose output that lists
10789	# what "hidden" libraries, object files and flags are used when
10790	# linking a shared library.
10791	#
10792	# There doesn't appear to be a way to prevent this compiler from
10793	# explicitly linking system object files so we need to strip them
10794	# from the output so that they don't get included in the library
10795	# dependencies.
10796	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'
10797	;;
10798      *)
10799	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10800	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10802
10803	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804	  hardcode_libdir_separator_CXX=:
10805
10806	  # Commands to make compiler produce verbose output that lists
10807	  # what "hidden" libraries, object files and flags are used when
10808	  # linking a shared library.
10809	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10810
10811	else
10812	  # FIXME: insert proper C++ library support
10813	  ld_shlibs_CXX=no
10814	fi
10815	;;
10816    esac
10817    ;;
10818  osf4* | osf5*)
10819    case $cc_basename in
10820      KCC*)
10821	# Kuck and Associates, Inc. (KAI) C++ Compiler
10822
10823	# KCC will only create a shared library if the output file
10824	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10825	# to its proper name (with version) after linking.
10826	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'
10827
10828	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10829	hardcode_libdir_separator_CXX=:
10830
10831	# Archives containing C++ object files must be created using
10832	# the KAI C++ compiler.
10833	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10834	;;
10835      RCC*)
10836	# Rational C++ 2.4.1
10837	# FIXME: insert proper C++ library support
10838	ld_shlibs_CXX=no
10839	;;
10840      cxx*)
10841	allow_undefined_flag_CXX=' -expect_unresolved \*'
10842	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10843	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10844	  echo "-hidden">> $lib.exp~
10845	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10846	  $rm $lib.exp'
10847
10848	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10849	hardcode_libdir_separator_CXX=:
10850
10851	# Commands to make compiler produce verbose output that lists
10852	# what "hidden" libraries, object files and flags are used when
10853	# linking a shared library.
10854	#
10855	# There doesn't appear to be a way to prevent this compiler from
10856	# explicitly linking system object files so we need to strip them
10857	# from the output so that they don't get included in the library
10858	# dependencies.
10859	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'
10860	;;
10861      *)
10862	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10865
10866	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867	  hardcode_libdir_separator_CXX=:
10868
10869	  # Commands to make compiler produce verbose output that lists
10870	  # what "hidden" libraries, object files and flags are used when
10871	  # linking a shared library.
10872	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10873
10874	else
10875	  # FIXME: insert proper C++ library support
10876	  ld_shlibs_CXX=no
10877	fi
10878	;;
10879    esac
10880    ;;
10881  psos*)
10882    # FIXME: insert proper C++ library support
10883    ld_shlibs_CXX=no
10884    ;;
10885  sunos4*)
10886    case $cc_basename in
10887      CC*)
10888	# Sun C++ 4.x
10889	# FIXME: insert proper C++ library support
10890	ld_shlibs_CXX=no
10891	;;
10892      lcc*)
10893	# Lucid
10894	# FIXME: insert proper C++ library support
10895	ld_shlibs_CXX=no
10896	;;
10897      *)
10898	# FIXME: insert proper C++ library support
10899	ld_shlibs_CXX=no
10900	;;
10901    esac
10902    ;;
10903  solaris*)
10904    case $cc_basename in
10905      CC*)
10906	# Sun C++ 4.2, 5.x and Centerline C++
10907        archive_cmds_need_lc_CXX=yes
10908	no_undefined_flag_CXX=' -zdefs'
10909	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10910	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10911	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10912
10913	hardcode_libdir_flag_spec_CXX='-R$libdir'
10914	hardcode_shlibpath_var_CXX=no
10915	case $host_os in
10916	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10917	  *)
10918	    # The C++ compiler is used as linker so we must use $wl
10919	    # flag to pass the commands to the underlying system
10920	    # linker. We must also pass each convience library through
10921	    # to the system linker between allextract/defaultextract.
10922	    # The C++ compiler will combine linker options so we
10923	    # cannot just pass the convience library names through
10924	    # without $wl.
10925	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10926	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10927	    ;;
10928	esac
10929	link_all_deplibs_CXX=yes
10930
10931	output_verbose_link_cmd='echo'
10932
10933	# Archives containing C++ object files must be created using
10934	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10935	# necessary to make sure instantiated templates are included
10936	# in the archive.
10937	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10938	;;
10939      gcx*)
10940	# Green Hills C++ Compiler
10941	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10942
10943	# The C++ compiler must be used to create the archive.
10944	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10945	;;
10946      *)
10947	# GNU C++ compiler with Solaris linker
10948	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10949	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10950	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10951	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10952	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10953		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10954
10955	    # Commands to make compiler produce verbose output that lists
10956	    # what "hidden" libraries, object files and flags are used when
10957	    # linking a shared library.
10958	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10959	  else
10960	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10961	    # platform.
10962	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10963	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10964		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10965
10966	    # Commands to make compiler produce verbose output that lists
10967	    # what "hidden" libraries, object files and flags are used when
10968	    # linking a shared library.
10969	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10970	  fi
10971
10972	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10973	fi
10974	;;
10975    esac
10976    ;;
10977  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10978    no_undefined_flag_CXX='${wl}-z,text'
10979    archive_cmds_need_lc_CXX=no
10980    hardcode_shlibpath_var_CXX=no
10981    runpath_var='LD_RUN_PATH'
10982
10983    case $cc_basename in
10984      CC*)
10985	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987	;;
10988      *)
10989	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991	;;
10992    esac
10993    ;;
10994  sysv5* | sco3.2v5* | sco5v6*)
10995    # Note: We can NOT use -z defs as we might desire, because we do not
10996    # link with -lc, and that would cause any symbols used from libc to
10997    # always be unresolved, which means just about no library would
10998    # ever link correctly.  If we're not using GNU ld we use -z text
10999    # though, which does catch some bad symbols but isn't as heavy-handed
11000    # as -z defs.
11001    # For security reasons, it is highly recommended that you always
11002    # use absolute paths for naming shared libraries, and exclude the
11003    # DT_RUNPATH tag from executables and libraries.  But doing so
11004    # requires that you compile everything twice, which is a pain.
11005    # So that behaviour is only enabled if SCOABSPATH is set to a
11006    # non-empty value in the environment.  Most likely only useful for
11007    # creating official distributions of packages.
11008    # This is a hack until libtool officially supports absolute path
11009    # names for shared libraries.
11010    no_undefined_flag_CXX='${wl}-z,text'
11011    allow_undefined_flag_CXX='${wl}-z,nodefs'
11012    archive_cmds_need_lc_CXX=no
11013    hardcode_shlibpath_var_CXX=no
11014    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11015    hardcode_libdir_separator_CXX=':'
11016    link_all_deplibs_CXX=yes
11017    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11018    runpath_var='LD_RUN_PATH'
11019
11020    case $cc_basename in
11021      CC*)
11022	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11023	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11024	;;
11025      *)
11026	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11027	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11028	;;
11029    esac
11030    ;;
11031  tandem*)
11032    case $cc_basename in
11033      NCC*)
11034	# NonStop-UX NCC 3.20
11035	# FIXME: insert proper C++ library support
11036	ld_shlibs_CXX=no
11037	;;
11038      *)
11039	# FIXME: insert proper C++ library support
11040	ld_shlibs_CXX=no
11041	;;
11042    esac
11043    ;;
11044  vxworks*)
11045    # FIXME: insert proper C++ library support
11046    ld_shlibs_CXX=no
11047    ;;
11048  *)
11049    # FIXME: insert proper C++ library support
11050    ld_shlibs_CXX=no
11051    ;;
11052esac
11053echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054echo "${ECHO_T}$ld_shlibs_CXX" >&6
11055test "$ld_shlibs_CXX" = no && can_build_shared=no
11056
11057GCC_CXX="$GXX"
11058LD_CXX="$LD"
11059
11060
11061cat > conftest.$ac_ext <<EOF
11062class Foo
11063{
11064public:
11065  Foo (void) { a = 0; }
11066private:
11067  int a;
11068};
11069EOF
11070
11071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072  (eval $ac_compile) 2>&5
11073  ac_status=$?
11074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075  (exit $ac_status); }; then
11076  # Parse the compiler output and extract the necessary
11077  # objects, libraries and library flags.
11078
11079  # Sentinel used to keep track of whether or not we are before
11080  # the conftest object file.
11081  pre_test_object_deps_done=no
11082
11083  # The `*' in the case matches for architectures that use `case' in
11084  # $output_verbose_cmd can trigger glob expansion during the loop
11085  # eval without this substitution.
11086  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11087
11088  for p in `eval $output_verbose_link_cmd`; do
11089    case $p in
11090
11091    -L* | -R* | -l*)
11092       # Some compilers place space between "-{L,R}" and the path.
11093       # Remove the space.
11094       if test $p = "-L" \
11095	  || test $p = "-R"; then
11096	 prev=$p
11097	 continue
11098       else
11099	 prev=
11100       fi
11101
11102       if test "$pre_test_object_deps_done" = no; then
11103	 case $p in
11104	 -L* | -R*)
11105	   # Internal compiler library paths should come after those
11106	   # provided the user.  The postdeps already come after the
11107	   # user supplied libs so there is no need to process them.
11108	   if test -z "$compiler_lib_search_path_CXX"; then
11109	     compiler_lib_search_path_CXX="${prev}${p}"
11110	   else
11111	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11112	   fi
11113	   ;;
11114	 # The "-l" case would never come before the object being
11115	 # linked, so don't bother handling this case.
11116	 esac
11117       else
11118	 if test -z "$postdeps_CXX"; then
11119	   postdeps_CXX="${prev}${p}"
11120	 else
11121	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11122	 fi
11123       fi
11124       ;;
11125
11126    *.$objext)
11127       # This assumes that the test object file only shows up
11128       # once in the compiler output.
11129       if test "$p" = "conftest.$objext"; then
11130	 pre_test_object_deps_done=yes
11131	 continue
11132       fi
11133
11134       if test "$pre_test_object_deps_done" = no; then
11135	 if test -z "$predep_objects_CXX"; then
11136	   predep_objects_CXX="$p"
11137	 else
11138	   predep_objects_CXX="$predep_objects_CXX $p"
11139	 fi
11140       else
11141	 if test -z "$postdep_objects_CXX"; then
11142	   postdep_objects_CXX="$p"
11143	 else
11144	   postdep_objects_CXX="$postdep_objects_CXX $p"
11145	 fi
11146       fi
11147       ;;
11148
11149    *) ;; # Ignore the rest.
11150
11151    esac
11152  done
11153
11154  # Clean up.
11155  rm -f a.out a.exe
11156else
11157  echo "libtool.m4: error: problem compiling CXX test program"
11158fi
11159
11160$rm -f confest.$objext
11161
11162# PORTME: override above test on systems where it is broken
11163case $host_os in
11164interix3*)
11165  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11166  # hack all around it, let's just trust "g++" to DTRT.
11167  predep_objects_CXX=
11168  postdep_objects_CXX=
11169  postdeps_CXX=
11170  ;;
11171
11172solaris*)
11173  case $cc_basename in
11174  CC*)
11175    # Adding this requires a known-good setup of shared libraries for
11176    # Sun compiler versions before 5.6, else PIC objects from an old
11177    # archive will be linked into the output, leading to subtle bugs.
11178    postdeps_CXX='-lCstd -lCrun'
11179    ;;
11180  esac
11181  ;;
11182esac
11183
11184
11185case " $postdeps_CXX " in
11186*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11187esac
11188
11189lt_prog_compiler_wl_CXX=
11190lt_prog_compiler_pic_CXX=
11191lt_prog_compiler_static_CXX=
11192
11193echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11194echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11195
11196  # C++ specific cases for pic, static, wl, etc.
11197  if test "$GXX" = yes; then
11198    lt_prog_compiler_wl_CXX='-Wl,'
11199    lt_prog_compiler_static_CXX='-static'
11200
11201    case $host_os in
11202    aix*)
11203      # All AIX code is PIC.
11204      if test "$host_cpu" = ia64; then
11205	# AIX 5 now supports IA64 processor
11206	lt_prog_compiler_static_CXX='-Bstatic'
11207      fi
11208      ;;
11209    amigaos*)
11210      # FIXME: we need at least 68020 code to build shared libraries, but
11211      # adding the `-m68020' flag to GCC prevents building anything better,
11212      # like `-m68040'.
11213      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11214      ;;
11215    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11216      # PIC is the default for these OSes.
11217      ;;
11218    mingw* | os2* | pw32*)
11219      # This hack is so that the source file can tell whether it is being
11220      # built for inclusion in a dll (and should export symbols for example).
11221      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11222      ;;
11223    darwin* | rhapsody*)
11224      # PIC is the default on this platform
11225      # Common symbols not allowed in MH_DYLIB files
11226      lt_prog_compiler_pic_CXX='-fno-common'
11227      ;;
11228    *djgpp*)
11229      # DJGPP does not support shared libraries at all
11230      lt_prog_compiler_pic_CXX=
11231      ;;
11232    interix3*)
11233      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11234      # Instead, we relocate shared libraries at runtime.
11235      ;;
11236    sysv4*MP*)
11237      if test -d /usr/nec; then
11238	lt_prog_compiler_pic_CXX=-Kconform_pic
11239      fi
11240      ;;
11241    hpux*)
11242      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11243      # not for PA HP-UX.
11244      case $host_cpu in
11245      hppa*64*|ia64*)
11246	;;
11247      *)
11248	lt_prog_compiler_pic_CXX='-fPIC'
11249	;;
11250      esac
11251      ;;
11252    *)
11253      lt_prog_compiler_pic_CXX='-fPIC'
11254      ;;
11255    esac
11256  else
11257    case $host_os in
11258      aix4* | aix5*)
11259	# All AIX code is PIC.
11260	if test "$host_cpu" = ia64; then
11261	  # AIX 5 now supports IA64 processor
11262	  lt_prog_compiler_static_CXX='-Bstatic'
11263	else
11264	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11265	fi
11266	;;
11267      chorus*)
11268	case $cc_basename in
11269	cxch68*)
11270	  # Green Hills C++ Compiler
11271	  # _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"
11272	  ;;
11273	esac
11274	;;
11275       darwin*)
11276         # PIC is the default on this platform
11277         # Common symbols not allowed in MH_DYLIB files
11278         case $cc_basename in
11279           xlc*)
11280           lt_prog_compiler_pic_CXX='-qnocommon'
11281           lt_prog_compiler_wl_CXX='-Wl,'
11282           ;;
11283         esac
11284       ;;
11285      dgux*)
11286	case $cc_basename in
11287	  ec++*)
11288	    lt_prog_compiler_pic_CXX='-KPIC'
11289	    ;;
11290	  ghcx*)
11291	    # Green Hills C++ Compiler
11292	    lt_prog_compiler_pic_CXX='-pic'
11293	    ;;
11294	  *)
11295	    ;;
11296	esac
11297	;;
11298      freebsd* | kfreebsd*-gnu | dragonfly*)
11299	# FreeBSD uses GNU C++
11300	;;
11301      hpux9* | hpux10* | hpux11*)
11302	case $cc_basename in
11303	  CC*)
11304	    lt_prog_compiler_wl_CXX='-Wl,'
11305	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11306	    if test "$host_cpu" != ia64; then
11307	      lt_prog_compiler_pic_CXX='+Z'
11308	    fi
11309	    ;;
11310	  aCC*)
11311	    lt_prog_compiler_wl_CXX='-Wl,'
11312	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11313	    case $host_cpu in
11314	    hppa*64*|ia64*)
11315	      # +Z the default
11316	      ;;
11317	    *)
11318	      lt_prog_compiler_pic_CXX='+Z'
11319	      ;;
11320	    esac
11321	    ;;
11322	  *)
11323	    ;;
11324	esac
11325	;;
11326      interix*)
11327	# This is c89, which is MS Visual C++ (no shared libs)
11328	# Anyone wants to do a port?
11329	;;
11330      irix5* | irix6* | nonstopux*)
11331	case $cc_basename in
11332	  CC*)
11333	    lt_prog_compiler_wl_CXX='-Wl,'
11334	    lt_prog_compiler_static_CXX='-non_shared'
11335	    # CC pic flag -KPIC is the default.
11336	    ;;
11337	  *)
11338	    ;;
11339	esac
11340	;;
11341      linux*)
11342	case $cc_basename in
11343	  KCC*)
11344	    # KAI C++ Compiler
11345	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11346	    lt_prog_compiler_pic_CXX='-fPIC'
11347	    ;;
11348	  icpc* | ecpc*)
11349	    # Intel C++
11350	    lt_prog_compiler_wl_CXX='-Wl,'
11351	    lt_prog_compiler_pic_CXX='-KPIC'
11352	    lt_prog_compiler_static_CXX='-static'
11353	    ;;
11354	  pgCC*)
11355	    # Portland Group C++ compiler.
11356	    lt_prog_compiler_wl_CXX='-Wl,'
11357	    lt_prog_compiler_pic_CXX='-fpic'
11358	    lt_prog_compiler_static_CXX='-Bstatic'
11359	    ;;
11360	  cxx*)
11361	    # Compaq C++
11362	    # Make sure the PIC flag is empty.  It appears that all Alpha
11363	    # Linux and Compaq Tru64 Unix objects are PIC.
11364	    lt_prog_compiler_pic_CXX=
11365	    lt_prog_compiler_static_CXX='-non_shared'
11366	    ;;
11367	  *)
11368	    ;;
11369	esac
11370	;;
11371      lynxos*)
11372	;;
11373      m88k*)
11374	;;
11375      mvs*)
11376	case $cc_basename in
11377	  cxx*)
11378	    lt_prog_compiler_pic_CXX='-W c,exportall'
11379	    ;;
11380	  *)
11381	    ;;
11382	esac
11383	;;
11384      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11385	;;
11386      osf3* | osf4* | osf5*)
11387	case $cc_basename in
11388	  KCC*)
11389	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11390	    ;;
11391	  RCC*)
11392	    # Rational C++ 2.4.1
11393	    lt_prog_compiler_pic_CXX='-pic'
11394	    ;;
11395	  cxx*)
11396	    # Digital/Compaq C++
11397	    lt_prog_compiler_wl_CXX='-Wl,'
11398	    # Make sure the PIC flag is empty.  It appears that all Alpha
11399	    # Linux and Compaq Tru64 Unix objects are PIC.
11400	    lt_prog_compiler_pic_CXX=
11401	    lt_prog_compiler_static_CXX='-non_shared'
11402	    ;;
11403	  *)
11404	    ;;
11405	esac
11406	;;
11407      psos*)
11408	;;
11409      solaris*)
11410	case $cc_basename in
11411	  CC*)
11412	    # Sun C++ 4.2, 5.x and Centerline C++
11413	    lt_prog_compiler_pic_CXX='-KPIC'
11414	    lt_prog_compiler_static_CXX='-Bstatic'
11415	    lt_prog_compiler_wl_CXX='-Qoption ld '
11416	    ;;
11417	  gcx*)
11418	    # Green Hills C++ Compiler
11419	    lt_prog_compiler_pic_CXX='-PIC'
11420	    ;;
11421	  *)
11422	    ;;
11423	esac
11424	;;
11425      sunos4*)
11426	case $cc_basename in
11427	  CC*)
11428	    # Sun C++ 4.x
11429	    lt_prog_compiler_pic_CXX='-pic'
11430	    lt_prog_compiler_static_CXX='-Bstatic'
11431	    ;;
11432	  lcc*)
11433	    # Lucid
11434	    lt_prog_compiler_pic_CXX='-pic'
11435	    ;;
11436	  *)
11437	    ;;
11438	esac
11439	;;
11440      tandem*)
11441	case $cc_basename in
11442	  NCC*)
11443	    # NonStop-UX NCC 3.20
11444	    lt_prog_compiler_pic_CXX='-KPIC'
11445	    ;;
11446	  *)
11447	    ;;
11448	esac
11449	;;
11450      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11451	case $cc_basename in
11452	  CC*)
11453	    lt_prog_compiler_wl_CXX='-Wl,'
11454	    lt_prog_compiler_pic_CXX='-KPIC'
11455	    lt_prog_compiler_static_CXX='-Bstatic'
11456	    ;;
11457	esac
11458	;;
11459      vxworks*)
11460	;;
11461      *)
11462	lt_prog_compiler_can_build_shared_CXX=no
11463	;;
11464    esac
11465  fi
11466
11467echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11468echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11469
11470#
11471# Check to make sure the PIC flag actually works.
11472#
11473if test -n "$lt_prog_compiler_pic_CXX"; then
11474
11475echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11476echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11477if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11478  echo $ECHO_N "(cached) $ECHO_C" >&6
11479else
11480  lt_prog_compiler_pic_works_CXX=no
11481  ac_outfile=conftest.$ac_objext
11482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11483   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11484   # Insert the option either (1) after the last *FLAGS variable, or
11485   # (2) before a word containing "conftest.", or (3) at the end.
11486   # Note that $ac_compile itself does not contain backslashes and begins
11487   # with a dollar sign (not a hyphen), so the echo should work correctly.
11488   # The option is referenced via a variable to avoid confusing sed.
11489   lt_compile=`echo "$ac_compile" | $SED \
11490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11492   -e 's:$: $lt_compiler_flag:'`
11493   (eval echo "\"\$as_me:11493: $lt_compile\"" >&5)
11494   (eval "$lt_compile" 2>conftest.err)
11495   ac_status=$?
11496   cat conftest.err >&5
11497   echo "$as_me:11497: \$? = $ac_status" >&5
11498   if (exit $ac_status) && test -s "$ac_outfile"; then
11499     # The compiler can only warn and ignore the option if not recognized
11500     # So say no if there are warnings other than the usual output.
11501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11502     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11503     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11504       lt_prog_compiler_pic_works_CXX=yes
11505     fi
11506   fi
11507   $rm conftest*
11508
11509fi
11510echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11511echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11512
11513if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11514    case $lt_prog_compiler_pic_CXX in
11515     "" | " "*) ;;
11516     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11517     esac
11518else
11519    lt_prog_compiler_pic_CXX=
11520     lt_prog_compiler_can_build_shared_CXX=no
11521fi
11522
11523fi
11524case $host_os in
11525  # For platforms which do not support PIC, -DPIC is meaningless:
11526  *djgpp*)
11527    lt_prog_compiler_pic_CXX=
11528    ;;
11529  *)
11530    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11531    ;;
11532esac
11533
11534#
11535# Check to make sure the static flag actually works.
11536#
11537wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11538echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11539echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11540if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11541  echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543  lt_prog_compiler_static_works_CXX=no
11544   save_LDFLAGS="$LDFLAGS"
11545   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11546   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11547   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11548     # The linker can only warn and ignore the option if not recognized
11549     # So say no if there are warnings
11550     if test -s conftest.err; then
11551       # Append any errors to the config.log.
11552       cat conftest.err 1>&5
11553       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11554       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555       if diff conftest.exp conftest.er2 >/dev/null; then
11556         lt_prog_compiler_static_works_CXX=yes
11557       fi
11558     else
11559       lt_prog_compiler_static_works_CXX=yes
11560     fi
11561   fi
11562   $rm conftest*
11563   LDFLAGS="$save_LDFLAGS"
11564
11565fi
11566echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11567echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11568
11569if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11570    :
11571else
11572    lt_prog_compiler_static_CXX=
11573fi
11574
11575
11576echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11577echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11578if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11579  echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581  lt_cv_prog_compiler_c_o_CXX=no
11582   $rm -r conftest 2>/dev/null
11583   mkdir conftest
11584   cd conftest
11585   mkdir out
11586   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11587
11588   lt_compiler_flag="-o out/conftest2.$ac_objext"
11589   # Insert the option either (1) after the last *FLAGS variable, or
11590   # (2) before a word containing "conftest.", or (3) at the end.
11591   # Note that $ac_compile itself does not contain backslashes and begins
11592   # with a dollar sign (not a hyphen), so the echo should work correctly.
11593   lt_compile=`echo "$ac_compile" | $SED \
11594   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11595   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11596   -e 's:$: $lt_compiler_flag:'`
11597   (eval echo "\"\$as_me:11597: $lt_compile\"" >&5)
11598   (eval "$lt_compile" 2>out/conftest.err)
11599   ac_status=$?
11600   cat out/conftest.err >&5
11601   echo "$as_me:11601: \$? = $ac_status" >&5
11602   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11603   then
11604     # The compiler can only warn and ignore the option if not recognized
11605     # So say no if there are warnings
11606     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11607     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11608     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11609       lt_cv_prog_compiler_c_o_CXX=yes
11610     fi
11611   fi
11612   chmod u+w . 2>&5
11613   $rm conftest*
11614   # SGI C++ compiler will create directory out/ii_files/ for
11615   # template instantiation
11616   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11617   $rm out/* && rmdir out
11618   cd ..
11619   rmdir conftest
11620   $rm conftest*
11621
11622fi
11623echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11624echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11625
11626
11627hard_links="nottested"
11628if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11629  # do not overwrite the value of need_locks provided by the user
11630  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11631echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11632  hard_links=yes
11633  $rm conftest*
11634  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11635  touch conftest.a
11636  ln conftest.a conftest.b 2>&5 || hard_links=no
11637  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11638  echo "$as_me:$LINENO: result: $hard_links" >&5
11639echo "${ECHO_T}$hard_links" >&6
11640  if test "$hard_links" = no; then
11641    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11642echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11643    need_locks=warn
11644  fi
11645else
11646  need_locks=no
11647fi
11648
11649echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11650echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11651
11652  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11653  case $host_os in
11654  aix4* | aix5*)
11655    # If we're using GNU nm, then we don't want the "-C" option.
11656    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11657    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11658      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'
11659    else
11660      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'
11661    fi
11662    ;;
11663  pw32*)
11664    export_symbols_cmds_CXX="$ltdll_cmds"
11665  ;;
11666  cygwin* | mingw*)
11667    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11668  ;;
11669  kfreebsd*-gnu)
11670    link_all_deplibs_CXX=no
11671  ;;
11672  linux*)
11673    link_all_deplibs_CXX=no
11674  ;;
11675  *)
11676    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11677  ;;
11678  esac
11679
11680echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11681echo "${ECHO_T}$ld_shlibs_CXX" >&6
11682test "$ld_shlibs_CXX" = no && can_build_shared=no
11683
11684#
11685# Do we need to explicitly link libc?
11686#
11687case "x$archive_cmds_need_lc_CXX" in
11688x|xyes)
11689  # Assume -lc should be added
11690  archive_cmds_need_lc_CXX=yes
11691
11692  if test "$enable_shared" = yes && test "$GCC" = yes; then
11693    case $archive_cmds_CXX in
11694    *'~'*)
11695      # FIXME: we may have to deal with multi-command sequences.
11696      ;;
11697    '$CC '*)
11698      # Test whether the compiler implicitly links with -lc since on some
11699      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11700      # to ld, don't add -lc before -lgcc.
11701      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11702echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11703      $rm conftest*
11704      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11705
11706      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707  (eval $ac_compile) 2>&5
11708  ac_status=$?
11709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710  (exit $ac_status); } 2>conftest.err; then
11711        soname=conftest
11712        lib=conftest
11713        libobjs=conftest.$ac_objext
11714        deplibs=
11715        wl=$lt_prog_compiler_wl_CXX
11716	pic_flag=$lt_prog_compiler_pic_CXX
11717        compiler_flags=-v
11718        linker_flags=-v
11719        verstring=
11720        output_objdir=.
11721        libname=conftest
11722        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11723        allow_undefined_flag_CXX=
11724        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11725  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11726  ac_status=$?
11727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728  (exit $ac_status); }
11729        then
11730	  archive_cmds_need_lc_CXX=no
11731        else
11732	  archive_cmds_need_lc_CXX=yes
11733        fi
11734        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11735      else
11736        cat conftest.err 1>&5
11737      fi
11738      $rm conftest*
11739      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11740echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11741      ;;
11742    esac
11743  fi
11744  ;;
11745esac
11746
11747echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11748echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11749library_names_spec=
11750libname_spec='lib$name'
11751soname_spec=
11752shrext_cmds=".so"
11753postinstall_cmds=
11754postuninstall_cmds=
11755finish_cmds=
11756finish_eval=
11757shlibpath_var=
11758shlibpath_overrides_runpath=unknown
11759version_type=none
11760dynamic_linker="$host_os ld.so"
11761sys_lib_dlsearch_path_spec="/lib /usr/lib"
11762if test "$GCC" = yes; then
11763  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11764  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11765    # if the path contains ";" then we assume it to be the separator
11766    # otherwise default to the standard path separator (i.e. ":") - it is
11767    # assumed that no part of a normal pathname contains ";" but that should
11768    # okay in the real world where ";" in dirpaths is itself problematic.
11769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11770  else
11771    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11772  fi
11773else
11774  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11775fi
11776need_lib_prefix=unknown
11777hardcode_into_libs=no
11778
11779# when you set need_version to no, make sure it does not cause -set_version
11780# flags to be left without arguments
11781need_version=unknown
11782
11783case $host_os in
11784aix3*)
11785  version_type=linux
11786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11787  shlibpath_var=LIBPATH
11788
11789  # AIX 3 has no versioning support, so we append a major version to the name.
11790  soname_spec='${libname}${release}${shared_ext}$major'
11791  ;;
11792
11793aix4* | aix5*)
11794  version_type=linux
11795  need_lib_prefix=no
11796  need_version=no
11797  hardcode_into_libs=yes
11798  if test "$host_cpu" = ia64; then
11799    # AIX 5 supports IA64
11800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11801    shlibpath_var=LD_LIBRARY_PATH
11802  else
11803    # With GCC up to 2.95.x, collect2 would create an import file
11804    # for dependence libraries.  The import file would start with
11805    # the line `#! .'.  This would cause the generated library to
11806    # depend on `.', always an invalid library.  This was fixed in
11807    # development snapshots of GCC prior to 3.0.
11808    case $host_os in
11809      aix4 | aix4.[01] | aix4.[01].*)
11810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11811	   echo ' yes '
11812	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11813	:
11814      else
11815	can_build_shared=no
11816      fi
11817      ;;
11818    esac
11819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11820    # soname into executable. Probably we can add versioning support to
11821    # collect2, so additional links can be useful in future.
11822    if test "$aix_use_runtimelinking" = yes; then
11823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11824      # instead of lib<name>.a to let people know that these are not
11825      # typical AIX shared libraries.
11826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827    else
11828      # We preserve .a as extension for shared libraries through AIX4.2
11829      # and later when we are not doing run time linking.
11830      library_names_spec='${libname}${release}.a $libname.a'
11831      soname_spec='${libname}${release}${shared_ext}$major'
11832    fi
11833    shlibpath_var=LIBPATH
11834  fi
11835  ;;
11836
11837amigaos*)
11838  library_names_spec='$libname.ixlibrary $libname.a'
11839  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11840  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'
11841  ;;
11842
11843beos*)
11844  library_names_spec='${libname}${shared_ext}'
11845  dynamic_linker="$host_os ld.so"
11846  shlibpath_var=LIBRARY_PATH
11847  ;;
11848
11849bsdi[45]*)
11850  version_type=linux
11851  need_version=no
11852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853  soname_spec='${libname}${release}${shared_ext}$major'
11854  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11855  shlibpath_var=LD_LIBRARY_PATH
11856  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11857  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11858  # the default ld.so.conf also contains /usr/contrib/lib and
11859  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11860  # libtool to hard-code these into programs
11861  ;;
11862
11863cygwin* | mingw* | pw32*)
11864  version_type=windows
11865  shrext_cmds=".dll"
11866  need_version=no
11867  need_lib_prefix=no
11868
11869  case $GCC,$host_os in
11870  yes,cygwin* | yes,mingw* | yes,pw32*)
11871    library_names_spec='$libname.dll.a'
11872    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11873    postinstall_cmds='base_file=`basename \${file}`~
11874      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11875      dldir=$destdir/`dirname \$dlpath`~
11876      test -d \$dldir || mkdir -p \$dldir~
11877      $install_prog $dir/$dlname \$dldir/$dlname~
11878      chmod a+x \$dldir/$dlname'
11879    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11880      dlpath=$dir/\$dldll~
11881       $rm \$dlpath'
11882    shlibpath_overrides_runpath=yes
11883
11884    case $host_os in
11885    cygwin*)
11886      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11887      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11889      ;;
11890    mingw*)
11891      # MinGW DLLs use traditional 'lib' prefix
11892      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11894      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11895        # It is most probably a Windows format PATH printed by
11896        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11897        # path with ; separators, and with drive letters. We can handle the
11898        # drive letters (cygwin fileutils understands them), so leave them,
11899        # especially as we might pass files found there to a mingw objdump,
11900        # which wouldn't understand a cygwinified path. Ahh.
11901        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11902      else
11903        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11904      fi
11905      ;;
11906    pw32*)
11907      # pw32 DLLs use 'pw' prefix rather than 'lib'
11908      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909      ;;
11910    esac
11911    ;;
11912
11913  *)
11914    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11915    ;;
11916  esac
11917  dynamic_linker='Win32 ld.exe'
11918  # FIXME: first we should search . and the directory the executable is in
11919  shlibpath_var=PATH
11920  ;;
11921
11922darwin* | rhapsody*)
11923  dynamic_linker="$host_os dyld"
11924  version_type=darwin
11925  need_lib_prefix=no
11926  need_version=no
11927  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11928  soname_spec='${libname}${release}${major}$shared_ext'
11929  shlibpath_overrides_runpath=yes
11930  shlibpath_var=DYLD_LIBRARY_PATH
11931  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11932  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11933  if test "$GCC" = yes; then
11934    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"`
11935  else
11936    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11937  fi
11938  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11939  ;;
11940
11941dgux*)
11942  version_type=linux
11943  need_lib_prefix=no
11944  need_version=no
11945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11946  soname_spec='${libname}${release}${shared_ext}$major'
11947  shlibpath_var=LD_LIBRARY_PATH
11948  ;;
11949
11950freebsd1*)
11951  dynamic_linker=no
11952  ;;
11953
11954kfreebsd*-gnu)
11955  version_type=linux
11956  need_lib_prefix=no
11957  need_version=no
11958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11959  soname_spec='${libname}${release}${shared_ext}$major'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  shlibpath_overrides_runpath=no
11962  hardcode_into_libs=yes
11963  dynamic_linker='GNU ld.so'
11964  ;;
11965
11966freebsd* | dragonfly*)
11967  # DragonFly does not have aout.  When/if they implement a new
11968  # versioning mechanism, adjust this.
11969  if test -x /usr/bin/objformat; then
11970    objformat=`/usr/bin/objformat`
11971  else
11972    case $host_os in
11973    freebsd[123]*) objformat=aout ;;
11974    *) objformat=elf ;;
11975    esac
11976  fi
11977  version_type=freebsd-$objformat
11978  case $version_type in
11979    freebsd-elf*)
11980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11981      need_version=no
11982      need_lib_prefix=no
11983      ;;
11984    freebsd-*)
11985      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11986      need_version=yes
11987      ;;
11988  esac
11989  shlibpath_var=LD_LIBRARY_PATH
11990  case $host_os in
11991  freebsd2*)
11992    shlibpath_overrides_runpath=yes
11993    ;;
11994  freebsd3.[01]* | freebsdelf3.[01]*)
11995    shlibpath_overrides_runpath=yes
11996    hardcode_into_libs=yes
11997    ;;
11998  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11999  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12000    shlibpath_overrides_runpath=no
12001    hardcode_into_libs=yes
12002    ;;
12003  freebsd*) # from 4.6 on
12004    shlibpath_overrides_runpath=yes
12005    hardcode_into_libs=yes
12006    ;;
12007  esac
12008  ;;
12009
12010gnu*)
12011  version_type=linux
12012  need_lib_prefix=no
12013  need_version=no
12014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12015  soname_spec='${libname}${release}${shared_ext}$major'
12016  shlibpath_var=LD_LIBRARY_PATH
12017  hardcode_into_libs=yes
12018  ;;
12019
12020hpux9* | hpux10* | hpux11*)
12021  # Give a soname corresponding to the major version so that dld.sl refuses to
12022  # link against other versions.
12023  version_type=sunos
12024  need_lib_prefix=no
12025  need_version=no
12026  case $host_cpu in
12027  ia64*)
12028    shrext_cmds='.so'
12029    hardcode_into_libs=yes
12030    dynamic_linker="$host_os dld.so"
12031    shlibpath_var=LD_LIBRARY_PATH
12032    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034    soname_spec='${libname}${release}${shared_ext}$major'
12035    if test "X$HPUX_IA64_MODE" = X32; then
12036      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12037    else
12038      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12039    fi
12040    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12041    ;;
12042   hppa*64*)
12043     shrext_cmds='.sl'
12044     hardcode_into_libs=yes
12045     dynamic_linker="$host_os dld.sl"
12046     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049     soname_spec='${libname}${release}${shared_ext}$major'
12050     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052     ;;
12053   *)
12054    shrext_cmds='.sl'
12055    dynamic_linker="$host_os dld.sl"
12056    shlibpath_var=SHLIB_PATH
12057    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059    soname_spec='${libname}${release}${shared_ext}$major'
12060    ;;
12061  esac
12062  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12063  postinstall_cmds='chmod 555 $lib'
12064  ;;
12065
12066interix3*)
12067  version_type=linux
12068  need_lib_prefix=no
12069  need_version=no
12070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12071  soname_spec='${libname}${release}${shared_ext}$major'
12072  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12073  shlibpath_var=LD_LIBRARY_PATH
12074  shlibpath_overrides_runpath=no
12075  hardcode_into_libs=yes
12076  ;;
12077
12078irix5* | irix6* | nonstopux*)
12079  case $host_os in
12080    nonstopux*) version_type=nonstopux ;;
12081    *)
12082	if test "$lt_cv_prog_gnu_ld" = yes; then
12083		version_type=linux
12084	else
12085		version_type=irix
12086	fi ;;
12087  esac
12088  need_lib_prefix=no
12089  need_version=no
12090  soname_spec='${libname}${release}${shared_ext}$major'
12091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12092  case $host_os in
12093  irix5* | nonstopux*)
12094    libsuff= shlibsuff=
12095    ;;
12096  *)
12097    case $LD in # libtool.m4 will add one of these switches to LD
12098    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12099      libsuff= shlibsuff= libmagic=32-bit;;
12100    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12101      libsuff=32 shlibsuff=N32 libmagic=N32;;
12102    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12103      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12104    *) libsuff= shlibsuff= libmagic=never-match;;
12105    esac
12106    ;;
12107  esac
12108  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12109  shlibpath_overrides_runpath=no
12110  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12111  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12112  hardcode_into_libs=yes
12113  ;;
12114
12115# No shared lib support for Linux oldld, aout, or coff.
12116linux*oldld* | linux*aout* | linux*coff*)
12117  dynamic_linker=no
12118  ;;
12119
12120# This must be Linux ELF.
12121linux*)
12122  version_type=linux
12123  need_lib_prefix=no
12124  need_version=no
12125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126  soname_spec='${libname}${release}${shared_ext}$major'
12127  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12128  shlibpath_var=LD_LIBRARY_PATH
12129  shlibpath_overrides_runpath=no
12130  # This implies no fast_install, which is unacceptable.
12131  # Some rework will be needed to allow for fast_install
12132  # before this can be enabled.
12133  hardcode_into_libs=yes
12134
12135  # Append ld.so.conf contents to the search path
12136  if test -f /etc/ld.so.conf; then
12137    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12138    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12139  fi
12140
12141  # We used to test for /lib/ld.so.1 and disable shared libraries on
12142  # powerpc, because MkLinux only supported shared libraries with the
12143  # GNU dynamic linker.  Since this was broken with cross compilers,
12144  # most powerpc-linux boxes support dynamic linking these days and
12145  # people can always --disable-shared, the test was removed, and we
12146  # assume the GNU/Linux dynamic linker is in use.
12147  dynamic_linker='GNU/Linux ld.so'
12148  ;;
12149
12150netbsdelf*-gnu)
12151  version_type=linux
12152  need_lib_prefix=no
12153  need_version=no
12154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12155  soname_spec='${libname}${release}${shared_ext}$major'
12156  shlibpath_var=LD_LIBRARY_PATH
12157  shlibpath_overrides_runpath=no
12158  hardcode_into_libs=yes
12159  dynamic_linker='NetBSD ld.elf_so'
12160  ;;
12161
12162knetbsd*-gnu)
12163  version_type=linux
12164  need_lib_prefix=no
12165  need_version=no
12166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12167  soname_spec='${libname}${release}${shared_ext}$major'
12168  shlibpath_var=LD_LIBRARY_PATH
12169  shlibpath_overrides_runpath=no
12170  hardcode_into_libs=yes
12171  dynamic_linker='GNU ld.so'
12172  ;;
12173
12174netbsd*)
12175  version_type=sunos
12176  need_lib_prefix=no
12177  need_version=no
12178  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12179    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12180    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12181    dynamic_linker='NetBSD (a.out) ld.so'
12182  else
12183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12184    soname_spec='${libname}${release}${shared_ext}$major'
12185    dynamic_linker='NetBSD ld.elf_so'
12186  fi
12187  shlibpath_var=LD_LIBRARY_PATH
12188  shlibpath_overrides_runpath=yes
12189  hardcode_into_libs=yes
12190  ;;
12191
12192newsos6)
12193  version_type=linux
12194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195  shlibpath_var=LD_LIBRARY_PATH
12196  shlibpath_overrides_runpath=yes
12197  ;;
12198
12199nto-qnx*)
12200  version_type=linux
12201  need_lib_prefix=no
12202  need_version=no
12203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204  soname_spec='${libname}${release}${shared_ext}$major'
12205  shlibpath_var=LD_LIBRARY_PATH
12206  shlibpath_overrides_runpath=yes
12207  ;;
12208
12209openbsd*)
12210  version_type=sunos
12211  sys_lib_dlsearch_path_spec="/usr/lib"
12212  need_lib_prefix=no
12213  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12214  case $host_os in
12215    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12216    *)                         need_version=no  ;;
12217  esac
12218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12219  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12220  shlibpath_var=LD_LIBRARY_PATH
12221  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12222    case $host_os in
12223      openbsd2.[89] | openbsd2.[89].*)
12224	shlibpath_overrides_runpath=no
12225	;;
12226      *)
12227	shlibpath_overrides_runpath=yes
12228	;;
12229      esac
12230  else
12231    shlibpath_overrides_runpath=yes
12232  fi
12233  ;;
12234
12235os2*)
12236  libname_spec='$name'
12237  shrext_cmds=".dll"
12238  need_lib_prefix=no
12239  library_names_spec='$libname${shared_ext} $libname.a'
12240  dynamic_linker='OS/2 ld.exe'
12241  shlibpath_var=LIBPATH
12242  ;;
12243
12244osf3* | osf4* | osf5*)
12245  version_type=osf
12246  need_lib_prefix=no
12247  need_version=no
12248  soname_spec='${libname}${release}${shared_ext}$major'
12249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250  shlibpath_var=LD_LIBRARY_PATH
12251  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12252  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12253  ;;
12254
12255solaris*)
12256  version_type=linux
12257  need_lib_prefix=no
12258  need_version=no
12259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260  soname_spec='${libname}${release}${shared_ext}$major'
12261  shlibpath_var=LD_LIBRARY_PATH
12262  shlibpath_overrides_runpath=yes
12263  hardcode_into_libs=yes
12264  # ldd complains unless libraries are executable
12265  postinstall_cmds='chmod +x $lib'
12266  ;;
12267
12268sunos4*)
12269  version_type=sunos
12270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12272  shlibpath_var=LD_LIBRARY_PATH
12273  shlibpath_overrides_runpath=yes
12274  if test "$with_gnu_ld" = yes; then
12275    need_lib_prefix=no
12276  fi
12277  need_version=yes
12278  ;;
12279
12280sysv4 | sysv4.3*)
12281  version_type=linux
12282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283  soname_spec='${libname}${release}${shared_ext}$major'
12284  shlibpath_var=LD_LIBRARY_PATH
12285  case $host_vendor in
12286    sni)
12287      shlibpath_overrides_runpath=no
12288      need_lib_prefix=no
12289      export_dynamic_flag_spec='${wl}-Blargedynsym'
12290      runpath_var=LD_RUN_PATH
12291      ;;
12292    siemens)
12293      need_lib_prefix=no
12294      ;;
12295    motorola)
12296      need_lib_prefix=no
12297      need_version=no
12298      shlibpath_overrides_runpath=no
12299      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12300      ;;
12301  esac
12302  ;;
12303
12304sysv4*MP*)
12305  if test -d /usr/nec ;then
12306    version_type=linux
12307    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12308    soname_spec='$libname${shared_ext}.$major'
12309    shlibpath_var=LD_LIBRARY_PATH
12310  fi
12311  ;;
12312
12313sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12314  version_type=freebsd-elf
12315  need_lib_prefix=no
12316  need_version=no
12317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12318  soname_spec='${libname}${release}${shared_ext}$major'
12319  shlibpath_var=LD_LIBRARY_PATH
12320  hardcode_into_libs=yes
12321  if test "$with_gnu_ld" = yes; then
12322    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12323    shlibpath_overrides_runpath=no
12324  else
12325    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12326    shlibpath_overrides_runpath=yes
12327    case $host_os in
12328      sco3.2v5*)
12329        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12330	;;
12331    esac
12332  fi
12333  sys_lib_dlsearch_path_spec='/usr/lib'
12334  ;;
12335
12336uts4*)
12337  version_type=linux
12338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339  soname_spec='${libname}${release}${shared_ext}$major'
12340  shlibpath_var=LD_LIBRARY_PATH
12341  ;;
12342
12343*)
12344  dynamic_linker=no
12345  ;;
12346esac
12347echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12348echo "${ECHO_T}$dynamic_linker" >&6
12349test "$dynamic_linker" = no && can_build_shared=no
12350
12351variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12352if test "$GCC" = yes; then
12353  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12354fi
12355
12356echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12357echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12358hardcode_action_CXX=
12359if test -n "$hardcode_libdir_flag_spec_CXX" || \
12360   test -n "$runpath_var_CXX" || \
12361   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12362
12363  # We can hardcode non-existant directories.
12364  if test "$hardcode_direct_CXX" != no &&
12365     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12366     # have to relink, otherwise we might link with an installed library
12367     # when we should be linking with a yet-to-be-installed one
12368     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12369     test "$hardcode_minus_L_CXX" != no; then
12370    # Linking always hardcodes the temporary library directory.
12371    hardcode_action_CXX=relink
12372  else
12373    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12374    hardcode_action_CXX=immediate
12375  fi
12376else
12377  # We cannot hardcode anything, or else we can only hardcode existing
12378  # directories.
12379  hardcode_action_CXX=unsupported
12380fi
12381echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12382echo "${ECHO_T}$hardcode_action_CXX" >&6
12383
12384if test "$hardcode_action_CXX" = relink; then
12385  # Fast installation is not supported
12386  enable_fast_install=no
12387elif test "$shlibpath_overrides_runpath" = yes ||
12388     test "$enable_shared" = no; then
12389  # Fast installation is not necessary
12390  enable_fast_install=needless
12391fi
12392
12393
12394# The else clause should only fire when bootstrapping the
12395# libtool distribution, otherwise you forgot to ship ltmain.sh
12396# with your package, and you will get complaints that there are
12397# no rules to generate ltmain.sh.
12398if test -f "$ltmain"; then
12399  # See if we are running on zsh, and set the options which allow our commands through
12400  # without removal of \ escapes.
12401  if test -n "${ZSH_VERSION+set}" ; then
12402    setopt NO_GLOB_SUBST
12403  fi
12404  # Now quote all the things that may contain metacharacters while being
12405  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12406  # variables and quote the copies for generation of the libtool script.
12407  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12408    SED SHELL STRIP \
12409    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12410    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12411    deplibs_check_method reload_flag reload_cmds need_locks \
12412    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12413    lt_cv_sys_global_symbol_to_c_name_address \
12414    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12415    old_postinstall_cmds old_postuninstall_cmds \
12416    compiler_CXX \
12417    CC_CXX \
12418    LD_CXX \
12419    lt_prog_compiler_wl_CXX \
12420    lt_prog_compiler_pic_CXX \
12421    lt_prog_compiler_static_CXX \
12422    lt_prog_compiler_no_builtin_flag_CXX \
12423    export_dynamic_flag_spec_CXX \
12424    thread_safe_flag_spec_CXX \
12425    whole_archive_flag_spec_CXX \
12426    enable_shared_with_static_runtimes_CXX \
12427    old_archive_cmds_CXX \
12428    old_archive_from_new_cmds_CXX \
12429    predep_objects_CXX \
12430    postdep_objects_CXX \
12431    predeps_CXX \
12432    postdeps_CXX \
12433    compiler_lib_search_path_CXX \
12434    archive_cmds_CXX \
12435    archive_expsym_cmds_CXX \
12436    postinstall_cmds_CXX \
12437    postuninstall_cmds_CXX \
12438    old_archive_from_expsyms_cmds_CXX \
12439    allow_undefined_flag_CXX \
12440    no_undefined_flag_CXX \
12441    export_symbols_cmds_CXX \
12442    hardcode_libdir_flag_spec_CXX \
12443    hardcode_libdir_flag_spec_ld_CXX \
12444    hardcode_libdir_separator_CXX \
12445    hardcode_automatic_CXX \
12446    module_cmds_CXX \
12447    module_expsym_cmds_CXX \
12448    lt_cv_prog_compiler_c_o_CXX \
12449    exclude_expsyms_CXX \
12450    include_expsyms_CXX; do
12451
12452    case $var in
12453    old_archive_cmds_CXX | \
12454    old_archive_from_new_cmds_CXX | \
12455    archive_cmds_CXX | \
12456    archive_expsym_cmds_CXX | \
12457    module_cmds_CXX | \
12458    module_expsym_cmds_CXX | \
12459    old_archive_from_expsyms_cmds_CXX | \
12460    export_symbols_cmds_CXX | \
12461    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12462    postinstall_cmds | postuninstall_cmds | \
12463    old_postinstall_cmds | old_postuninstall_cmds | \
12464    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12465      # Double-quote double-evaled strings.
12466      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12467      ;;
12468    *)
12469      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12470      ;;
12471    esac
12472  done
12473
12474  case $lt_echo in
12475  *'\$0 --fallback-echo"')
12476    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12477    ;;
12478  esac
12479
12480cfgfile="$ofile"
12481
12482  cat <<__EOF__ >> "$cfgfile"
12483# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12484
12485# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12486
12487# Shell to use when invoking shell scripts.
12488SHELL=$lt_SHELL
12489
12490# Whether or not to build shared libraries.
12491build_libtool_libs=$enable_shared
12492
12493# Whether or not to build static libraries.
12494build_old_libs=$enable_static
12495
12496# Whether or not to add -lc for building shared libraries.
12497build_libtool_need_lc=$archive_cmds_need_lc_CXX
12498
12499# Whether or not to disallow shared libs when runtime libs are static
12500allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12501
12502# Whether or not to optimize for fast installation.
12503fast_install=$enable_fast_install
12504
12505# The host system.
12506host_alias=$host_alias
12507host=$host
12508host_os=$host_os
12509
12510# The build system.
12511build_alias=$build_alias
12512build=$build
12513build_os=$build_os
12514
12515# An echo program that does not interpret backslashes.
12516echo=$lt_echo
12517
12518# The archiver.
12519AR=$lt_AR
12520AR_FLAGS=$lt_AR_FLAGS
12521
12522# A C compiler.
12523LTCC=$lt_LTCC
12524
12525# LTCC compiler flags.
12526LTCFLAGS=$lt_LTCFLAGS
12527
12528# A language-specific compiler.
12529CC=$lt_compiler_CXX
12530
12531# Is the compiler the GNU C compiler?
12532with_gcc=$GCC_CXX
12533
12534# An ERE matcher.
12535EGREP=$lt_EGREP
12536
12537# The linker used to build libraries.
12538LD=$lt_LD_CXX
12539
12540# Whether we need hard or soft links.
12541LN_S=$lt_LN_S
12542
12543# A BSD-compatible nm program.
12544NM=$lt_NM
12545
12546# A symbol stripping program
12547STRIP=$lt_STRIP
12548
12549# Used to examine libraries when file_magic_cmd begins "file"
12550MAGIC_CMD=$MAGIC_CMD
12551
12552# Used on cygwin: DLL creation program.
12553DLLTOOL="$DLLTOOL"
12554
12555# Used on cygwin: object dumper.
12556OBJDUMP="$OBJDUMP"
12557
12558# Used on cygwin: assembler.
12559AS="$AS"
12560
12561# The name of the directory that contains temporary libtool files.
12562objdir=$objdir
12563
12564# How to create reloadable object files.
12565reload_flag=$lt_reload_flag
12566reload_cmds=$lt_reload_cmds
12567
12568# How to pass a linker flag through the compiler.
12569wl=$lt_lt_prog_compiler_wl_CXX
12570
12571# Object file suffix (normally "o").
12572objext="$ac_objext"
12573
12574# Old archive suffix (normally "a").
12575libext="$libext"
12576
12577# Shared library suffix (normally ".so").
12578shrext_cmds='$shrext_cmds'
12579
12580# Executable file suffix (normally "").
12581exeext="$exeext"
12582
12583# Additional compiler flags for building library objects.
12584pic_flag=$lt_lt_prog_compiler_pic_CXX
12585pic_mode=$pic_mode
12586
12587# What is the maximum length of a command?
12588max_cmd_len=$lt_cv_sys_max_cmd_len
12589
12590# Does compiler simultaneously support -c and -o options?
12591compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12592
12593# Must we lock files when doing compilation?
12594need_locks=$lt_need_locks
12595
12596# Do we need the lib prefix for modules?
12597need_lib_prefix=$need_lib_prefix
12598
12599# Do we need a version for libraries?
12600need_version=$need_version
12601
12602# Whether dlopen is supported.
12603dlopen_support=$enable_dlopen
12604
12605# Whether dlopen of programs is supported.
12606dlopen_self=$enable_dlopen_self
12607
12608# Whether dlopen of statically linked programs is supported.
12609dlopen_self_static=$enable_dlopen_self_static
12610
12611# Compiler flag to prevent dynamic linking.
12612link_static_flag=$lt_lt_prog_compiler_static_CXX
12613
12614# Compiler flag to turn off builtin functions.
12615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12616
12617# Compiler flag to allow reflexive dlopens.
12618export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12619
12620# Compiler flag to generate shared objects directly from archives.
12621whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12622
12623# Compiler flag to generate thread-safe objects.
12624thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12625
12626# Library versioning type.
12627version_type=$version_type
12628
12629# Format of library name prefix.
12630libname_spec=$lt_libname_spec
12631
12632# List of archive names.  First name is the real one, the rest are links.
12633# The last name is the one that the linker finds with -lNAME.
12634library_names_spec=$lt_library_names_spec
12635
12636# The coded name of the library, if different from the real name.
12637soname_spec=$lt_soname_spec
12638
12639# Commands used to build and install an old-style archive.
12640RANLIB=$lt_RANLIB
12641old_archive_cmds=$lt_old_archive_cmds_CXX
12642old_postinstall_cmds=$lt_old_postinstall_cmds
12643old_postuninstall_cmds=$lt_old_postuninstall_cmds
12644
12645# Create an old-style archive from a shared archive.
12646old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12647
12648# Create a temporary old-style archive to link instead of a shared archive.
12649old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12650
12651# Commands used to build and install a shared archive.
12652archive_cmds=$lt_archive_cmds_CXX
12653archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12654postinstall_cmds=$lt_postinstall_cmds
12655postuninstall_cmds=$lt_postuninstall_cmds
12656
12657# Commands used to build a loadable module (assumed same as above if empty)
12658module_cmds=$lt_module_cmds_CXX
12659module_expsym_cmds=$lt_module_expsym_cmds_CXX
12660
12661# Commands to strip libraries.
12662old_striplib=$lt_old_striplib
12663striplib=$lt_striplib
12664
12665# Dependencies to place before the objects being linked to create a
12666# shared library.
12667predep_objects=$lt_predep_objects_CXX
12668
12669# Dependencies to place after the objects being linked to create a
12670# shared library.
12671postdep_objects=$lt_postdep_objects_CXX
12672
12673# Dependencies to place before the objects being linked to create a
12674# shared library.
12675predeps=$lt_predeps_CXX
12676
12677# Dependencies to place after the objects being linked to create a
12678# shared library.
12679postdeps=$lt_postdeps_CXX
12680
12681# The library search path used internally by the compiler when linking
12682# a shared library.
12683compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12684
12685# Method to check whether dependent libraries are shared objects.
12686deplibs_check_method=$lt_deplibs_check_method
12687
12688# Command to use when deplibs_check_method == file_magic.
12689file_magic_cmd=$lt_file_magic_cmd
12690
12691# Flag that allows shared libraries with undefined symbols to be built.
12692allow_undefined_flag=$lt_allow_undefined_flag_CXX
12693
12694# Flag that forces no undefined symbols.
12695no_undefined_flag=$lt_no_undefined_flag_CXX
12696
12697# Commands used to finish a libtool library installation in a directory.
12698finish_cmds=$lt_finish_cmds
12699
12700# Same as above, but a single script fragment to be evaled but not shown.
12701finish_eval=$lt_finish_eval
12702
12703# Take the output of nm and produce a listing of raw symbols and C names.
12704global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12705
12706# Transform the output of nm in a proper C declaration
12707global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12708
12709# Transform the output of nm in a C name address pair
12710global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12711
12712# This is the shared library runtime path variable.
12713runpath_var=$runpath_var
12714
12715# This is the shared library path variable.
12716shlibpath_var=$shlibpath_var
12717
12718# Is shlibpath searched before the hard-coded library search path?
12719shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12720
12721# How to hardcode a shared library path into an executable.
12722hardcode_action=$hardcode_action_CXX
12723
12724# Whether we should hardcode library paths into libraries.
12725hardcode_into_libs=$hardcode_into_libs
12726
12727# Flag to hardcode \$libdir into a binary during linking.
12728# This must work even if \$libdir does not exist.
12729hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12730
12731# If ld is used when linking, flag to hardcode \$libdir into
12732# a binary during linking. This must work even if \$libdir does
12733# not exist.
12734hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12735
12736# Whether we need a single -rpath flag with a separated argument.
12737hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12738
12739# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12740# resulting binary.
12741hardcode_direct=$hardcode_direct_CXX
12742
12743# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12744# resulting binary.
12745hardcode_minus_L=$hardcode_minus_L_CXX
12746
12747# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12748# the resulting binary.
12749hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12750
12751# Set to yes if building a shared library automatically hardcodes DIR into the library
12752# and all subsequent libraries and executables linked against it.
12753hardcode_automatic=$hardcode_automatic_CXX
12754
12755# Variables whose values should be saved in libtool wrapper scripts and
12756# restored at relink time.
12757variables_saved_for_relink="$variables_saved_for_relink"
12758
12759# Whether libtool must link a program against all its dependency libraries.
12760link_all_deplibs=$link_all_deplibs_CXX
12761
12762# Compile-time system search path for libraries
12763sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12764
12765# Run-time system search path for libraries
12766sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12767
12768# Fix the shell variable \$srcfile for the compiler.
12769fix_srcfile_path="$fix_srcfile_path_CXX"
12770
12771# Set to yes if exported symbols are required.
12772always_export_symbols=$always_export_symbols_CXX
12773
12774# The commands to list exported symbols.
12775export_symbols_cmds=$lt_export_symbols_cmds_CXX
12776
12777# The commands to extract the exported symbol list from a shared archive.
12778extract_expsyms_cmds=$lt_extract_expsyms_cmds
12779
12780# Symbols that should not be listed in the preloaded symbols.
12781exclude_expsyms=$lt_exclude_expsyms_CXX
12782
12783# Symbols that must always be exported.
12784include_expsyms=$lt_include_expsyms_CXX
12785
12786# ### END LIBTOOL TAG CONFIG: $tagname
12787
12788__EOF__
12789
12790
12791else
12792  # If there is no Makefile yet, we rely on a make rule to execute
12793  # `config.status --recheck' to rerun these tests and create the
12794  # libtool script then.
12795  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12796  if test -f "$ltmain_in"; then
12797    test -f Makefile && make "$ltmain"
12798  fi
12799fi
12800
12801
12802ac_ext=c
12803ac_cpp='$CPP $CPPFLAGS'
12804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806ac_compiler_gnu=$ac_cv_c_compiler_gnu
12807
12808CC=$lt_save_CC
12809LDCXX=$LD
12810LD=$lt_save_LD
12811GCC=$lt_save_GCC
12812with_gnu_ldcxx=$with_gnu_ld
12813with_gnu_ld=$lt_save_with_gnu_ld
12814lt_cv_path_LDCXX=$lt_cv_path_LD
12815lt_cv_path_LD=$lt_save_path_LD
12816lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12817lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12818
12819	else
12820	  tagname=""
12821	fi
12822	;;
12823
12824      F77)
12825	if test -n "$F77" && test "X$F77" != "Xno"; then
12826
12827ac_ext=f
12828ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12829ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12831
12832
12833archive_cmds_need_lc_F77=no
12834allow_undefined_flag_F77=
12835always_export_symbols_F77=no
12836archive_expsym_cmds_F77=
12837export_dynamic_flag_spec_F77=
12838hardcode_direct_F77=no
12839hardcode_libdir_flag_spec_F77=
12840hardcode_libdir_flag_spec_ld_F77=
12841hardcode_libdir_separator_F77=
12842hardcode_minus_L_F77=no
12843hardcode_automatic_F77=no
12844module_cmds_F77=
12845module_expsym_cmds_F77=
12846link_all_deplibs_F77=unknown
12847old_archive_cmds_F77=$old_archive_cmds
12848no_undefined_flag_F77=
12849whole_archive_flag_spec_F77=
12850enable_shared_with_static_runtimes_F77=no
12851
12852# Source file extension for f77 test sources.
12853ac_ext=f
12854
12855# Object file extension for compiled f77 test sources.
12856objext=o
12857objext_F77=$objext
12858
12859# Code to be used in simple compile tests
12860lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12861
12862# Code to be used in simple link tests
12863lt_simple_link_test_code="      program t\n      end\n"
12864
12865# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12866
12867# If no C compiler was specified, use CC.
12868LTCC=${LTCC-"$CC"}
12869
12870# If no C compiler flags were specified, use CFLAGS.
12871LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12872
12873# Allow CC to be a program name with arguments.
12874compiler=$CC
12875
12876
12877# save warnings/boilerplate of simple test code
12878ac_outfile=conftest.$ac_objext
12879printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12881_lt_compiler_boilerplate=`cat conftest.err`
12882$rm conftest*
12883
12884ac_outfile=conftest.$ac_objext
12885printf "$lt_simple_link_test_code" >conftest.$ac_ext
12886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12887_lt_linker_boilerplate=`cat conftest.err`
12888$rm conftest*
12889
12890
12891# Allow CC to be a program name with arguments.
12892lt_save_CC="$CC"
12893CC=${F77-"f77"}
12894compiler=$CC
12895compiler_F77=$CC
12896for cc_temp in $compiler""; do
12897  case $cc_temp in
12898    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12899    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12900    \-*) ;;
12901    *) break;;
12902  esac
12903done
12904cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12905
12906
12907echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12908echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12909echo "$as_me:$LINENO: result: $can_build_shared" >&5
12910echo "${ECHO_T}$can_build_shared" >&6
12911
12912echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12913echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12914test "$can_build_shared" = "no" && enable_shared=no
12915
12916# On AIX, shared libraries and static libraries use the same namespace, and
12917# are all built from PIC.
12918case $host_os in
12919aix3*)
12920  test "$enable_shared" = yes && enable_static=no
12921  if test -n "$RANLIB"; then
12922    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12923    postinstall_cmds='$RANLIB $lib'
12924  fi
12925  ;;
12926aix4* | aix5*)
12927  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12928    test "$enable_shared" = yes && enable_static=no
12929  fi
12930  ;;
12931esac
12932echo "$as_me:$LINENO: result: $enable_shared" >&5
12933echo "${ECHO_T}$enable_shared" >&6
12934
12935echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12936echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12937# Make sure either enable_shared or enable_static is yes.
12938test "$enable_shared" = yes || enable_static=yes
12939echo "$as_me:$LINENO: result: $enable_static" >&5
12940echo "${ECHO_T}$enable_static" >&6
12941
12942GCC_F77="$G77"
12943LD_F77="$LD"
12944
12945lt_prog_compiler_wl_F77=
12946lt_prog_compiler_pic_F77=
12947lt_prog_compiler_static_F77=
12948
12949echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12950echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12951
12952  if test "$GCC" = yes; then
12953    lt_prog_compiler_wl_F77='-Wl,'
12954    lt_prog_compiler_static_F77='-static'
12955
12956    case $host_os in
12957      aix*)
12958      # All AIX code is PIC.
12959      if test "$host_cpu" = ia64; then
12960	# AIX 5 now supports IA64 processor
12961	lt_prog_compiler_static_F77='-Bstatic'
12962      fi
12963      ;;
12964
12965    amigaos*)
12966      # FIXME: we need at least 68020 code to build shared libraries, but
12967      # adding the `-m68020' flag to GCC prevents building anything better,
12968      # like `-m68040'.
12969      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12970      ;;
12971
12972    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12973      # PIC is the default for these OSes.
12974      ;;
12975
12976    mingw* | pw32* | os2*)
12977      # This hack is so that the source file can tell whether it is being
12978      # built for inclusion in a dll (and should export symbols for example).
12979      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12980      ;;
12981
12982    darwin* | rhapsody*)
12983      # PIC is the default on this platform
12984      # Common symbols not allowed in MH_DYLIB files
12985      lt_prog_compiler_pic_F77='-fno-common'
12986      ;;
12987
12988    interix3*)
12989      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990      # Instead, we relocate shared libraries at runtime.
12991      ;;
12992
12993    msdosdjgpp*)
12994      # Just because we use GCC doesn't mean we suddenly get shared libraries
12995      # on systems that don't support them.
12996      lt_prog_compiler_can_build_shared_F77=no
12997      enable_shared=no
12998      ;;
12999
13000    sysv4*MP*)
13001      if test -d /usr/nec; then
13002	lt_prog_compiler_pic_F77=-Kconform_pic
13003      fi
13004      ;;
13005
13006    hpux*)
13007      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008      # not for PA HP-UX.
13009      case $host_cpu in
13010      hppa*64*|ia64*)
13011	# +Z the default
13012	;;
13013      *)
13014	lt_prog_compiler_pic_F77='-fPIC'
13015	;;
13016      esac
13017      ;;
13018
13019    *)
13020      lt_prog_compiler_pic_F77='-fPIC'
13021      ;;
13022    esac
13023  else
13024    # PORTME Check for flag to pass linker flags through the system compiler.
13025    case $host_os in
13026    aix*)
13027      lt_prog_compiler_wl_F77='-Wl,'
13028      if test "$host_cpu" = ia64; then
13029	# AIX 5 now supports IA64 processor
13030	lt_prog_compiler_static_F77='-Bstatic'
13031      else
13032	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13033      fi
13034      ;;
13035      darwin*)
13036        # PIC is the default on this platform
13037        # Common symbols not allowed in MH_DYLIB files
13038       case $cc_basename in
13039         xlc*)
13040         lt_prog_compiler_pic_F77='-qnocommon'
13041         lt_prog_compiler_wl_F77='-Wl,'
13042         ;;
13043       esac
13044       ;;
13045
13046    mingw* | pw32* | os2*)
13047      # This hack is so that the source file can tell whether it is being
13048      # built for inclusion in a dll (and should export symbols for example).
13049      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13050      ;;
13051
13052    hpux9* | hpux10* | hpux11*)
13053      lt_prog_compiler_wl_F77='-Wl,'
13054      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055      # not for PA HP-UX.
13056      case $host_cpu in
13057      hppa*64*|ia64*)
13058	# +Z the default
13059	;;
13060      *)
13061	lt_prog_compiler_pic_F77='+Z'
13062	;;
13063      esac
13064      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13065      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13066      ;;
13067
13068    irix5* | irix6* | nonstopux*)
13069      lt_prog_compiler_wl_F77='-Wl,'
13070      # PIC (with -KPIC) is the default.
13071      lt_prog_compiler_static_F77='-non_shared'
13072      ;;
13073
13074    newsos6)
13075      lt_prog_compiler_pic_F77='-KPIC'
13076      lt_prog_compiler_static_F77='-Bstatic'
13077      ;;
13078
13079    linux*)
13080      case $cc_basename in
13081      icc* | ecc*)
13082	lt_prog_compiler_wl_F77='-Wl,'
13083	lt_prog_compiler_pic_F77='-KPIC'
13084	lt_prog_compiler_static_F77='-static'
13085        ;;
13086      pgcc* | pgf77* | pgf90* | pgf95*)
13087        # Portland Group compilers (*not* the Pentium gcc compiler,
13088	# which looks to be a dead project)
13089	lt_prog_compiler_wl_F77='-Wl,'
13090	lt_prog_compiler_pic_F77='-fpic'
13091	lt_prog_compiler_static_F77='-Bstatic'
13092        ;;
13093      ccc*)
13094        lt_prog_compiler_wl_F77='-Wl,'
13095        # All Alpha code is PIC.
13096        lt_prog_compiler_static_F77='-non_shared'
13097        ;;
13098      esac
13099      ;;
13100
13101    osf3* | osf4* | osf5*)
13102      lt_prog_compiler_wl_F77='-Wl,'
13103      # All OSF/1 code is PIC.
13104      lt_prog_compiler_static_F77='-non_shared'
13105      ;;
13106
13107    solaris*)
13108      lt_prog_compiler_pic_F77='-KPIC'
13109      lt_prog_compiler_static_F77='-Bstatic'
13110      case $cc_basename in
13111      f77* | f90* | f95*)
13112	lt_prog_compiler_wl_F77='-Qoption ld ';;
13113      *)
13114	lt_prog_compiler_wl_F77='-Wl,';;
13115      esac
13116      ;;
13117
13118    sunos4*)
13119      lt_prog_compiler_wl_F77='-Qoption ld '
13120      lt_prog_compiler_pic_F77='-PIC'
13121      lt_prog_compiler_static_F77='-Bstatic'
13122      ;;
13123
13124    sysv4 | sysv4.2uw2* | sysv4.3*)
13125      lt_prog_compiler_wl_F77='-Wl,'
13126      lt_prog_compiler_pic_F77='-KPIC'
13127      lt_prog_compiler_static_F77='-Bstatic'
13128      ;;
13129
13130    sysv4*MP*)
13131      if test -d /usr/nec ;then
13132	lt_prog_compiler_pic_F77='-Kconform_pic'
13133	lt_prog_compiler_static_F77='-Bstatic'
13134      fi
13135      ;;
13136
13137    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13138      lt_prog_compiler_wl_F77='-Wl,'
13139      lt_prog_compiler_pic_F77='-KPIC'
13140      lt_prog_compiler_static_F77='-Bstatic'
13141      ;;
13142
13143    unicos*)
13144      lt_prog_compiler_wl_F77='-Wl,'
13145      lt_prog_compiler_can_build_shared_F77=no
13146      ;;
13147
13148    uts4*)
13149      lt_prog_compiler_pic_F77='-pic'
13150      lt_prog_compiler_static_F77='-Bstatic'
13151      ;;
13152
13153    *)
13154      lt_prog_compiler_can_build_shared_F77=no
13155      ;;
13156    esac
13157  fi
13158
13159echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13160echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13161
13162#
13163# Check to make sure the PIC flag actually works.
13164#
13165if test -n "$lt_prog_compiler_pic_F77"; then
13166
13167echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13168echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13169if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13170  echo $ECHO_N "(cached) $ECHO_C" >&6
13171else
13172  lt_prog_compiler_pic_works_F77=no
13173  ac_outfile=conftest.$ac_objext
13174   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13176   # Insert the option either (1) after the last *FLAGS variable, or
13177   # (2) before a word containing "conftest.", or (3) at the end.
13178   # Note that $ac_compile itself does not contain backslashes and begins
13179   # with a dollar sign (not a hyphen), so the echo should work correctly.
13180   # The option is referenced via a variable to avoid confusing sed.
13181   lt_compile=`echo "$ac_compile" | $SED \
13182   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184   -e 's:$: $lt_compiler_flag:'`
13185   (eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186   (eval "$lt_compile" 2>conftest.err)
13187   ac_status=$?
13188   cat conftest.err >&5
13189   echo "$as_me:13189: \$? = $ac_status" >&5
13190   if (exit $ac_status) && test -s "$ac_outfile"; then
13191     # The compiler can only warn and ignore the option if not recognized
13192     # So say no if there are warnings other than the usual output.
13193     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13194     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13195     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13196       lt_prog_compiler_pic_works_F77=yes
13197     fi
13198   fi
13199   $rm conftest*
13200
13201fi
13202echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13203echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13204
13205if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13206    case $lt_prog_compiler_pic_F77 in
13207     "" | " "*) ;;
13208     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13209     esac
13210else
13211    lt_prog_compiler_pic_F77=
13212     lt_prog_compiler_can_build_shared_F77=no
13213fi
13214
13215fi
13216case $host_os in
13217  # For platforms which do not support PIC, -DPIC is meaningless:
13218  *djgpp*)
13219    lt_prog_compiler_pic_F77=
13220    ;;
13221  *)
13222    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13223    ;;
13224esac
13225
13226#
13227# Check to make sure the static flag actually works.
13228#
13229wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13230echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13231echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13232if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13233  echo $ECHO_N "(cached) $ECHO_C" >&6
13234else
13235  lt_prog_compiler_static_works_F77=no
13236   save_LDFLAGS="$LDFLAGS"
13237   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13238   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13239   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240     # The linker can only warn and ignore the option if not recognized
13241     # So say no if there are warnings
13242     if test -s conftest.err; then
13243       # Append any errors to the config.log.
13244       cat conftest.err 1>&5
13245       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13246       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247       if diff conftest.exp conftest.er2 >/dev/null; then
13248         lt_prog_compiler_static_works_F77=yes
13249       fi
13250     else
13251       lt_prog_compiler_static_works_F77=yes
13252     fi
13253   fi
13254   $rm conftest*
13255   LDFLAGS="$save_LDFLAGS"
13256
13257fi
13258echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13259echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13260
13261if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13262    :
13263else
13264    lt_prog_compiler_static_F77=
13265fi
13266
13267
13268echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13269echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13270if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13271  echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273  lt_cv_prog_compiler_c_o_F77=no
13274   $rm -r conftest 2>/dev/null
13275   mkdir conftest
13276   cd conftest
13277   mkdir out
13278   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13279
13280   lt_compiler_flag="-o out/conftest2.$ac_objext"
13281   # Insert the option either (1) after the last *FLAGS variable, or
13282   # (2) before a word containing "conftest.", or (3) at the end.
13283   # Note that $ac_compile itself does not contain backslashes and begins
13284   # with a dollar sign (not a hyphen), so the echo should work correctly.
13285   lt_compile=`echo "$ac_compile" | $SED \
13286   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13287   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13288   -e 's:$: $lt_compiler_flag:'`
13289   (eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
13290   (eval "$lt_compile" 2>out/conftest.err)
13291   ac_status=$?
13292   cat out/conftest.err >&5
13293   echo "$as_me:13293: \$? = $ac_status" >&5
13294   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13295   then
13296     # The compiler can only warn and ignore the option if not recognized
13297     # So say no if there are warnings
13298     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13299     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13300     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13301       lt_cv_prog_compiler_c_o_F77=yes
13302     fi
13303   fi
13304   chmod u+w . 2>&5
13305   $rm conftest*
13306   # SGI C++ compiler will create directory out/ii_files/ for
13307   # template instantiation
13308   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309   $rm out/* && rmdir out
13310   cd ..
13311   rmdir conftest
13312   $rm conftest*
13313
13314fi
13315echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13317
13318
13319hard_links="nottested"
13320if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321  # do not overwrite the value of need_locks provided by the user
13322  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13324  hard_links=yes
13325  $rm conftest*
13326  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327  touch conftest.a
13328  ln conftest.a conftest.b 2>&5 || hard_links=no
13329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330  echo "$as_me:$LINENO: result: $hard_links" >&5
13331echo "${ECHO_T}$hard_links" >&6
13332  if test "$hard_links" = no; then
13333    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13335    need_locks=warn
13336  fi
13337else
13338  need_locks=no
13339fi
13340
13341echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13343
13344  runpath_var=
13345  allow_undefined_flag_F77=
13346  enable_shared_with_static_runtimes_F77=no
13347  archive_cmds_F77=
13348  archive_expsym_cmds_F77=
13349  old_archive_From_new_cmds_F77=
13350  old_archive_from_expsyms_cmds_F77=
13351  export_dynamic_flag_spec_F77=
13352  whole_archive_flag_spec_F77=
13353  thread_safe_flag_spec_F77=
13354  hardcode_libdir_flag_spec_F77=
13355  hardcode_libdir_flag_spec_ld_F77=
13356  hardcode_libdir_separator_F77=
13357  hardcode_direct_F77=no
13358  hardcode_minus_L_F77=no
13359  hardcode_shlibpath_var_F77=unsupported
13360  link_all_deplibs_F77=unknown
13361  hardcode_automatic_F77=no
13362  module_cmds_F77=
13363  module_expsym_cmds_F77=
13364  always_export_symbols_F77=no
13365  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366  # include_expsyms should be a list of space-separated symbols to be *always*
13367  # included in the symbol list
13368  include_expsyms_F77=
13369  # exclude_expsyms can be an extended regexp of symbols to exclude
13370  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372  # as well as any symbol that contains `d'.
13373  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375  # platforms (ab)use it in PIC code, but their linkers get confused if
13376  # the symbol is explicitly referenced.  Since portable code cannot
13377  # rely on this symbol name, it's probably fine to never include it in
13378  # preloaded symbol tables.
13379  extract_expsyms_cmds=
13380  # Just being paranoid about ensuring that cc_basename is set.
13381  for cc_temp in $compiler""; do
13382  case $cc_temp in
13383    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13384    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13385    \-*) ;;
13386    *) break;;
13387  esac
13388done
13389cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13390
13391  case $host_os in
13392  cygwin* | mingw* | pw32*)
13393    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13394    # When not using gcc, we currently assume that we are using
13395    # Microsoft Visual C++.
13396    if test "$GCC" != yes; then
13397      with_gnu_ld=no
13398    fi
13399    ;;
13400  interix*)
13401    # we just hope/assume this is gcc and not c89 (= MSVC++)
13402    with_gnu_ld=yes
13403    ;;
13404  openbsd*)
13405    with_gnu_ld=no
13406    ;;
13407  esac
13408
13409  ld_shlibs_F77=yes
13410  if test "$with_gnu_ld" = yes; then
13411    # If archive_cmds runs LD, not CC, wlarc should be empty
13412    wlarc='${wl}'
13413
13414    # Set some defaults for GNU ld with shared library support. These
13415    # are reset later if shared libraries are not supported. Putting them
13416    # here allows them to be overridden if necessary.
13417    runpath_var=LD_RUN_PATH
13418    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13419    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13420    # ancient GNU ld didn't support --whole-archive et. al.
13421    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13422	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13423      else
13424  	whole_archive_flag_spec_F77=
13425    fi
13426    supports_anon_versioning=no
13427    case `$LD -v 2>/dev/null` in
13428      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13429      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13430      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13431      *\ 2.11.*) ;; # other 2.11 versions
13432      *) supports_anon_versioning=yes ;;
13433    esac
13434
13435    # See if GNU ld supports shared libraries.
13436    case $host_os in
13437    aix3* | aix4* | aix5*)
13438      # On AIX/PPC, the GNU linker is very broken
13439      if test "$host_cpu" != ia64; then
13440	ld_shlibs_F77=no
13441	cat <<EOF 1>&2
13442
13443*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13444*** to be unable to reliably create shared libraries on AIX.
13445*** Therefore, libtool is disabling shared libraries support.  If you
13446*** really care for shared libraries, you may want to modify your PATH
13447*** so that a non-GNU linker is found, and then restart.
13448
13449EOF
13450      fi
13451      ;;
13452
13453    amigaos*)
13454      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)'
13455      hardcode_libdir_flag_spec_F77='-L$libdir'
13456      hardcode_minus_L_F77=yes
13457
13458      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13459      # that the semantics of dynamic libraries on AmigaOS, at least up
13460      # to version 4, is to share data among multiple programs linked
13461      # with the same dynamic library.  Since this doesn't match the
13462      # behavior of shared libraries on other platforms, we can't use
13463      # them.
13464      ld_shlibs_F77=no
13465      ;;
13466
13467    beos*)
13468      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13469	allow_undefined_flag_F77=unsupported
13470	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13471	# support --undefined.  This deserves some investigation.  FIXME
13472	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473      else
13474	ld_shlibs_F77=no
13475      fi
13476      ;;
13477
13478    cygwin* | mingw* | pw32*)
13479      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13480      # as there is no search path for DLLs.
13481      hardcode_libdir_flag_spec_F77='-L$libdir'
13482      allow_undefined_flag_F77=unsupported
13483      always_export_symbols_F77=no
13484      enable_shared_with_static_runtimes_F77=yes
13485      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13486
13487      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13488        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13489	# If the export-symbols file already is a .def file (1st line
13490	# is EXPORTS), use it as is; otherwise, prepend...
13491	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13492	  cp $export_symbols $output_objdir/$soname.def;
13493	else
13494	  echo EXPORTS > $output_objdir/$soname.def;
13495	  cat $export_symbols >> $output_objdir/$soname.def;
13496	fi~
13497	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13498      else
13499	ld_shlibs_F77=no
13500      fi
13501      ;;
13502
13503    interix3*)
13504      hardcode_direct_F77=no
13505      hardcode_shlibpath_var_F77=no
13506      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13507      export_dynamic_flag_spec_F77='${wl}-E'
13508      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13509      # Instead, shared libraries are loaded at an image base (0x10000000 by
13510      # default) and relocated if they conflict, which is a slow very memory
13511      # consuming and fragmenting process.  To avoid this, we pick a random,
13512      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13513      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13514      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13515      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13516      ;;
13517
13518    linux*)
13519      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13520	tmp_addflag=
13521	case $cc_basename,$host_cpu in
13522	pgcc*)				# Portland Group C compiler
13523	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13524	  tmp_addflag=' $pic_flag'
13525	  ;;
13526	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13527	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13528	  tmp_addflag=' $pic_flag -Mnomain' ;;
13529	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13530	  tmp_addflag=' -i_dynamic' ;;
13531	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13532	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13533	ifc* | ifort*)			# Intel Fortran compiler
13534	  tmp_addflag=' -nofor_main' ;;
13535	esac
13536	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537
13538	if test $supports_anon_versioning = yes; then
13539	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13540  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13541  $echo "local: *; };" >> $output_objdir/$libname.ver~
13542	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13543	fi
13544	link_all_deplibs_F77=no
13545      else
13546	ld_shlibs_F77=no
13547      fi
13548      ;;
13549
13550    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13551      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13553	wlarc=
13554      else
13555	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13557      fi
13558      ;;
13559
13560    solaris*)
13561      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13562	ld_shlibs_F77=no
13563	cat <<EOF 1>&2
13564
13565*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566*** create shared libraries on Solaris systems.  Therefore, libtool
13567*** is disabling shared libraries support.  We urge you to upgrade GNU
13568*** binutils to release 2.9.1 or newer.  Another option is to modify
13569*** your PATH or compiler configuration so that the native linker is
13570*** used, and then restart.
13571
13572EOF
13573      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576      else
13577	ld_shlibs_F77=no
13578      fi
13579      ;;
13580
13581    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582      case `$LD -v 2>&1` in
13583        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13584	ld_shlibs_F77=no
13585	cat <<_LT_EOF 1>&2
13586
13587*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588*** reliably create shared libraries on SCO systems.  Therefore, libtool
13589*** is disabling shared libraries support.  We urge you to upgrade GNU
13590*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13591*** your PATH or compiler configuration so that the native linker is
13592*** used, and then restart.
13593
13594_LT_EOF
13595	;;
13596	*)
13597	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13601	  else
13602	    ld_shlibs_F77=no
13603	  fi
13604	;;
13605      esac
13606      ;;
13607
13608    sunos4*)
13609      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13610      wlarc=
13611      hardcode_direct_F77=yes
13612      hardcode_shlibpath_var_F77=no
13613      ;;
13614
13615    *)
13616      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13619      else
13620	ld_shlibs_F77=no
13621      fi
13622      ;;
13623    esac
13624
13625    if test "$ld_shlibs_F77" = no; then
13626      runpath_var=
13627      hardcode_libdir_flag_spec_F77=
13628      export_dynamic_flag_spec_F77=
13629      whole_archive_flag_spec_F77=
13630    fi
13631  else
13632    # PORTME fill in a description of your system's linker (not GNU ld)
13633    case $host_os in
13634    aix3*)
13635      allow_undefined_flag_F77=unsupported
13636      always_export_symbols_F77=yes
13637      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'
13638      # Note: this linker hardcodes the directories in LIBPATH if there
13639      # are no directories specified by -L.
13640      hardcode_minus_L_F77=yes
13641      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642	# Neither direct hardcoding nor static linking is supported with a
13643	# broken collect2.
13644	hardcode_direct_F77=unsupported
13645      fi
13646      ;;
13647
13648    aix4* | aix5*)
13649      if test "$host_cpu" = ia64; then
13650	# On IA64, the linker does run time linking by default, so we don't
13651	# have to do anything special.
13652	aix_use_runtimelinking=no
13653	exp_sym_flag='-Bexport'
13654	no_entry_flag=""
13655      else
13656	# If we're using GNU nm, then we don't want the "-C" option.
13657	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13658	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659	  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'
13660	else
13661	  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'
13662	fi
13663	aix_use_runtimelinking=no
13664
13665	# Test if we are trying to use run time linking or normal
13666	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667	# need to do runtime linking.
13668	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669	  for ld_flag in $LDFLAGS; do
13670  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671  	    aix_use_runtimelinking=yes
13672  	    break
13673  	  fi
13674	  done
13675	  ;;
13676	esac
13677
13678	exp_sym_flag='-bexport'
13679	no_entry_flag='-bnoentry'
13680      fi
13681
13682      # When large executables or shared objects are built, AIX ld can
13683      # have problems creating the table of contents.  If linking a library
13684      # or program results in "error TOC overflow" add -mminimal-toc to
13685      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13686      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13687
13688      archive_cmds_F77=''
13689      hardcode_direct_F77=yes
13690      hardcode_libdir_separator_F77=':'
13691      link_all_deplibs_F77=yes
13692
13693      if test "$GCC" = yes; then
13694	case $host_os in aix4.[012]|aix4.[012].*)
13695	# We only want to do this on AIX 4.2 and lower, the check
13696	# below for broken collect2 doesn't work under 4.3+
13697	  collect2name=`${CC} -print-prog-name=collect2`
13698	  if test -f "$collect2name" && \
13699  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13700	  then
13701  	  # We have reworked collect2
13702  	  hardcode_direct_F77=yes
13703	  else
13704  	  # We have old collect2
13705  	  hardcode_direct_F77=unsupported
13706  	  # It fails to find uninstalled libraries when the uninstalled
13707  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13708  	  # to unsupported forces relinking
13709  	  hardcode_minus_L_F77=yes
13710  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13711  	  hardcode_libdir_separator_F77=
13712	  fi
13713	  ;;
13714	esac
13715	shared_flag='-shared'
13716	if test "$aix_use_runtimelinking" = yes; then
13717	  shared_flag="$shared_flag "'${wl}-G'
13718	fi
13719      else
13720	# not using gcc
13721	if test "$host_cpu" = ia64; then
13722  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723  	# chokes on -Wl,-G. The following line is correct:
13724	  shared_flag='-G'
13725	else
13726	  if test "$aix_use_runtimelinking" = yes; then
13727	    shared_flag='${wl}-G'
13728	  else
13729	    shared_flag='${wl}-bM:SRE'
13730	  fi
13731	fi
13732      fi
13733
13734      # It seems that -bexpall does not export symbols beginning with
13735      # underscore (_), so it is better to generate a list of symbols to export.
13736      always_export_symbols_F77=yes
13737      if test "$aix_use_runtimelinking" = yes; then
13738	# Warning - without using the other runtime loading flags (-brtl),
13739	# -berok will link without error, but may produce a broken library.
13740	allow_undefined_flag_F77='-berok'
13741       # Determine the default libpath from the value encoded in an empty executable.
13742       cat >conftest.$ac_ext <<_ACEOF
13743      program main
13744
13745      end
13746_ACEOF
13747rm -f conftest.$ac_objext conftest$ac_exeext
13748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749  (eval $ac_link) 2>conftest.er1
13750  ac_status=$?
13751  grep -v '^ *+' conftest.er1 >conftest.err
13752  rm -f conftest.er1
13753  cat conftest.err >&5
13754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755  (exit $ac_status); } &&
13756	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758  (eval $ac_try) 2>&5
13759  ac_status=$?
13760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761  (exit $ac_status); }; } &&
13762	 { ac_try='test -s conftest$ac_exeext'
13763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764  (eval $ac_try) 2>&5
13765  ac_status=$?
13766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767  (exit $ac_status); }; }; then
13768
13769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13770}'`
13771# Check for a 64-bit object if we didn't find anything.
13772if 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; }
13773}'`; fi
13774else
13775  echo "$as_me: failed program was:" >&5
13776sed 's/^/| /' conftest.$ac_ext >&5
13777
13778fi
13779rm -f conftest.err conftest.$ac_objext \
13780      conftest$ac_exeext conftest.$ac_ext
13781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13782
13783       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13784	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13785       else
13786	if test "$host_cpu" = ia64; then
13787	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13788	  allow_undefined_flag_F77="-z nodefs"
13789	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13790	else
13791	 # Determine the default libpath from the value encoded in an empty executable.
13792	 cat >conftest.$ac_ext <<_ACEOF
13793      program main
13794
13795      end
13796_ACEOF
13797rm -f conftest.$ac_objext conftest$ac_exeext
13798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799  (eval $ac_link) 2>conftest.er1
13800  ac_status=$?
13801  grep -v '^ *+' conftest.er1 >conftest.err
13802  rm -f conftest.er1
13803  cat conftest.err >&5
13804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805  (exit $ac_status); } &&
13806	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808  (eval $ac_try) 2>&5
13809  ac_status=$?
13810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811  (exit $ac_status); }; } &&
13812	 { ac_try='test -s conftest$ac_exeext'
13813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814  (eval $ac_try) 2>&5
13815  ac_status=$?
13816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817  (exit $ac_status); }; }; then
13818
13819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13820}'`
13821# Check for a 64-bit object if we didn't find anything.
13822if 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; }
13823}'`; fi
13824else
13825  echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828fi
13829rm -f conftest.err conftest.$ac_objext \
13830      conftest$ac_exeext conftest.$ac_ext
13831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13832
13833	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13834	  # Warning - without using the other run time loading flags,
13835	  # -berok will link without error, but may produce a broken library.
13836	  no_undefined_flag_F77=' ${wl}-bernotok'
13837	  allow_undefined_flag_F77=' ${wl}-berok'
13838	  # Exported symbols can be pulled into shared objects from archives
13839	  whole_archive_flag_spec_F77='$convenience'
13840	  archive_cmds_need_lc_F77=yes
13841	  # This is similar to how AIX traditionally builds its shared libraries.
13842	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13843	fi
13844      fi
13845      ;;
13846
13847    amigaos*)
13848      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)'
13849      hardcode_libdir_flag_spec_F77='-L$libdir'
13850      hardcode_minus_L_F77=yes
13851      # see comment about different semantics on the GNU ld section
13852      ld_shlibs_F77=no
13853      ;;
13854
13855    bsdi[45]*)
13856      export_dynamic_flag_spec_F77=-rdynamic
13857      ;;
13858
13859    cygwin* | mingw* | pw32*)
13860      # When not using gcc, we currently assume that we are using
13861      # Microsoft Visual C++.
13862      # hardcode_libdir_flag_spec is actually meaningless, as there is
13863      # no search path for DLLs.
13864      hardcode_libdir_flag_spec_F77=' '
13865      allow_undefined_flag_F77=unsupported
13866      # Tell ltmain to make .lib files, not .a files.
13867      libext=lib
13868      # Tell ltmain to make .dll files, not .so files.
13869      shrext_cmds=".dll"
13870      # FIXME: Setting linknames here is a bad hack.
13871      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13872      # The linker will automatically build a .lib file if we build a DLL.
13873      old_archive_From_new_cmds_F77='true'
13874      # FIXME: Should let the user specify the lib program.
13875      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13876      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13877      enable_shared_with_static_runtimes_F77=yes
13878      ;;
13879
13880    darwin* | rhapsody*)
13881      case $host_os in
13882        rhapsody* | darwin1.[012])
13883         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13884         ;;
13885       *) # Darwin 1.3 on
13886         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13887           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13888         else
13889           case ${MACOSX_DEPLOYMENT_TARGET} in
13890             10.[012])
13891               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13892               ;;
13893             10.*)
13894               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13895               ;;
13896           esac
13897         fi
13898         ;;
13899      esac
13900      archive_cmds_need_lc_F77=no
13901      hardcode_direct_F77=no
13902      hardcode_automatic_F77=yes
13903      hardcode_shlibpath_var_F77=unsupported
13904      whole_archive_flag_spec_F77=''
13905      link_all_deplibs_F77=yes
13906    if test "$GCC" = yes ; then
13907    	output_verbose_link_cmd='echo'
13908        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13909      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13910      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13911      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}'
13912      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}'
13913    else
13914      case $cc_basename in
13915        xlc*)
13916         output_verbose_link_cmd='echo'
13917         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13918         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13919          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13920         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}'
13921          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}'
13922          ;;
13923       *)
13924         ld_shlibs_F77=no
13925          ;;
13926      esac
13927    fi
13928      ;;
13929
13930    dgux*)
13931      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932      hardcode_libdir_flag_spec_F77='-L$libdir'
13933      hardcode_shlibpath_var_F77=no
13934      ;;
13935
13936    freebsd1*)
13937      ld_shlibs_F77=no
13938      ;;
13939
13940    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13941    # support.  Future versions do this automatically, but an explicit c++rt0.o
13942    # does not break anything, and helps significantly (at the cost of a little
13943    # extra space).
13944    freebsd2.2*)
13945      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13946      hardcode_libdir_flag_spec_F77='-R$libdir'
13947      hardcode_direct_F77=yes
13948      hardcode_shlibpath_var_F77=no
13949      ;;
13950
13951    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13952    freebsd2*)
13953      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954      hardcode_direct_F77=yes
13955      hardcode_minus_L_F77=yes
13956      hardcode_shlibpath_var_F77=no
13957      ;;
13958
13959    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13960    freebsd* | dragonfly*)
13961      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13962      hardcode_libdir_flag_spec_F77='-R$libdir'
13963      hardcode_direct_F77=yes
13964      hardcode_shlibpath_var_F77=no
13965      ;;
13966
13967    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13968    kfreebsd*-gnu)
13969      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13970      hardcode_libdir_flag_spec_F77='-R$libdir'
13971      hardcode_direct_F77=yes
13972      hardcode_shlibpath_var_F77=no
13973      link_all_deplibs_F77=no
13974      ;;
13975
13976    hpux9*)
13977      if test "$GCC" = yes; then
13978	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'
13979      else
13980	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'
13981      fi
13982      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13983      hardcode_libdir_separator_F77=:
13984      hardcode_direct_F77=yes
13985
13986      # hardcode_minus_L: Not really in the search PATH,
13987      # but as the default location of the library.
13988      hardcode_minus_L_F77=yes
13989      export_dynamic_flag_spec_F77='${wl}-E'
13990      ;;
13991
13992    hpux10*)
13993      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13994	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13995      else
13996	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13997      fi
13998      if test "$with_gnu_ld" = no; then
13999	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000	hardcode_libdir_separator_F77=:
14001
14002	hardcode_direct_F77=yes
14003	export_dynamic_flag_spec_F77='${wl}-E'
14004
14005	# hardcode_minus_L: Not really in the search PATH,
14006	# but as the default location of the library.
14007	hardcode_minus_L_F77=yes
14008      fi
14009      ;;
14010
14011    hpux11*)
14012      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14013	case $host_cpu in
14014	hppa*64*)
14015	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14016	  ;;
14017	ia64*)
14018	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14019	  ;;
14020	*)
14021	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14022	  ;;
14023	esac
14024      else
14025	case $host_cpu in
14026	hppa*64*)
14027	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14028	  ;;
14029	ia64*)
14030	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14031	  ;;
14032	*)
14033	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14034	  ;;
14035	esac
14036      fi
14037      if test "$with_gnu_ld" = no; then
14038	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039	hardcode_libdir_separator_F77=:
14040
14041	case $host_cpu in
14042	hppa*64*|ia64*)
14043	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14044	  hardcode_direct_F77=no
14045	  hardcode_shlibpath_var_F77=no
14046	  ;;
14047	*)
14048	  hardcode_direct_F77=yes
14049	  export_dynamic_flag_spec_F77='${wl}-E'
14050
14051	  # hardcode_minus_L: Not really in the search PATH,
14052	  # but as the default location of the library.
14053	  hardcode_minus_L_F77=yes
14054	  ;;
14055	esac
14056      fi
14057      ;;
14058
14059    irix5* | irix6* | nonstopux*)
14060      if test "$GCC" = yes; then
14061	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'
14062      else
14063	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'
14064	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14065      fi
14066      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067      hardcode_libdir_separator_F77=:
14068      link_all_deplibs_F77=yes
14069      ;;
14070
14071    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14072      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14074      else
14075	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14076      fi
14077      hardcode_libdir_flag_spec_F77='-R$libdir'
14078      hardcode_direct_F77=yes
14079      hardcode_shlibpath_var_F77=no
14080      ;;
14081
14082    newsos6)
14083      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084      hardcode_direct_F77=yes
14085      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086      hardcode_libdir_separator_F77=:
14087      hardcode_shlibpath_var_F77=no
14088      ;;
14089
14090    openbsd*)
14091      hardcode_direct_F77=yes
14092      hardcode_shlibpath_var_F77=no
14093      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14096	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14097	export_dynamic_flag_spec_F77='${wl}-E'
14098      else
14099       case $host_os in
14100	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14101	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102	   hardcode_libdir_flag_spec_F77='-R$libdir'
14103	   ;;
14104	 *)
14105	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14106	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14107	   ;;
14108       esac
14109      fi
14110      ;;
14111
14112    os2*)
14113      hardcode_libdir_flag_spec_F77='-L$libdir'
14114      hardcode_minus_L_F77=yes
14115      allow_undefined_flag_F77=unsupported
14116      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'
14117      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14118      ;;
14119
14120    osf3*)
14121      if test "$GCC" = yes; then
14122	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14123	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'
14124      else
14125	allow_undefined_flag_F77=' -expect_unresolved \*'
14126	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'
14127      fi
14128      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14129      hardcode_libdir_separator_F77=:
14130      ;;
14131
14132    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14133      if test "$GCC" = yes; then
14134	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14135	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'
14136	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14137      else
14138	allow_undefined_flag_F77=' -expect_unresolved \*'
14139	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'
14140	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~
14141	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14142
14143	# Both c and cxx compiler support -rpath directly
14144	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14145      fi
14146      hardcode_libdir_separator_F77=:
14147      ;;
14148
14149    solaris*)
14150      no_undefined_flag_F77=' -z text'
14151      if test "$GCC" = yes; then
14152	wlarc='${wl}'
14153	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14154	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14155	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14156      else
14157	wlarc=''
14158	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14161      fi
14162      hardcode_libdir_flag_spec_F77='-R$libdir'
14163      hardcode_shlibpath_var_F77=no
14164      case $host_os in
14165      solaris2.[0-5] | solaris2.[0-5].*) ;;
14166      *)
14167 	# The compiler driver will combine linker options so we
14168 	# cannot just pass the convience library names through
14169 	# without $wl, iff we do not link with $LD.
14170 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14171 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14172 	case $wlarc in
14173 	'')
14174 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14175 	*)
14176 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14177 	esac ;;
14178      esac
14179      link_all_deplibs_F77=yes
14180      ;;
14181
14182    sunos4*)
14183      if test "x$host_vendor" = xsequent; then
14184	# Use $CC to link under sequent, because it throws in some extra .o
14185	# files that make .init and .fini sections work.
14186	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14187      else
14188	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14189      fi
14190      hardcode_libdir_flag_spec_F77='-L$libdir'
14191      hardcode_direct_F77=yes
14192      hardcode_minus_L_F77=yes
14193      hardcode_shlibpath_var_F77=no
14194      ;;
14195
14196    sysv4)
14197      case $host_vendor in
14198	sni)
14199	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200	  hardcode_direct_F77=yes # is this really true???
14201	;;
14202	siemens)
14203	  ## LD is ld it makes a PLAMLIB
14204	  ## CC just makes a GrossModule.
14205	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14206	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14207	  hardcode_direct_F77=no
14208        ;;
14209	motorola)
14210	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14212	;;
14213      esac
14214      runpath_var='LD_RUN_PATH'
14215      hardcode_shlibpath_var_F77=no
14216      ;;
14217
14218    sysv4.3*)
14219      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220      hardcode_shlibpath_var_F77=no
14221      export_dynamic_flag_spec_F77='-Bexport'
14222      ;;
14223
14224    sysv4*MP*)
14225      if test -d /usr/nec; then
14226	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227	hardcode_shlibpath_var_F77=no
14228	runpath_var=LD_RUN_PATH
14229	hardcode_runpath_var=yes
14230	ld_shlibs_F77=yes
14231      fi
14232      ;;
14233
14234    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14235      no_undefined_flag_F77='${wl}-z,text'
14236      archive_cmds_need_lc_F77=no
14237      hardcode_shlibpath_var_F77=no
14238      runpath_var='LD_RUN_PATH'
14239
14240      if test "$GCC" = yes; then
14241	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243      else
14244	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246      fi
14247      ;;
14248
14249    sysv5* | sco3.2v5* | sco5v6*)
14250      # Note: We can NOT use -z defs as we might desire, because we do not
14251      # link with -lc, and that would cause any symbols used from libc to
14252      # always be unresolved, which means just about no library would
14253      # ever link correctly.  If we're not using GNU ld we use -z text
14254      # though, which does catch some bad symbols but isn't as heavy-handed
14255      # as -z defs.
14256      no_undefined_flag_F77='${wl}-z,text'
14257      allow_undefined_flag_F77='${wl}-z,nodefs'
14258      archive_cmds_need_lc_F77=no
14259      hardcode_shlibpath_var_F77=no
14260      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14261      hardcode_libdir_separator_F77=':'
14262      link_all_deplibs_F77=yes
14263      export_dynamic_flag_spec_F77='${wl}-Bexport'
14264      runpath_var='LD_RUN_PATH'
14265
14266      if test "$GCC" = yes; then
14267	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269      else
14270	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272      fi
14273      ;;
14274
14275    uts4*)
14276      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277      hardcode_libdir_flag_spec_F77='-L$libdir'
14278      hardcode_shlibpath_var_F77=no
14279      ;;
14280
14281    *)
14282      ld_shlibs_F77=no
14283      ;;
14284    esac
14285  fi
14286
14287echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14288echo "${ECHO_T}$ld_shlibs_F77" >&6
14289test "$ld_shlibs_F77" = no && can_build_shared=no
14290
14291#
14292# Do we need to explicitly link libc?
14293#
14294case "x$archive_cmds_need_lc_F77" in
14295x|xyes)
14296  # Assume -lc should be added
14297  archive_cmds_need_lc_F77=yes
14298
14299  if test "$enable_shared" = yes && test "$GCC" = yes; then
14300    case $archive_cmds_F77 in
14301    *'~'*)
14302      # FIXME: we may have to deal with multi-command sequences.
14303      ;;
14304    '$CC '*)
14305      # Test whether the compiler implicitly links with -lc since on some
14306      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14307      # to ld, don't add -lc before -lgcc.
14308      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14309echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14310      $rm conftest*
14311      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14312
14313      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314  (eval $ac_compile) 2>&5
14315  ac_status=$?
14316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317  (exit $ac_status); } 2>conftest.err; then
14318        soname=conftest
14319        lib=conftest
14320        libobjs=conftest.$ac_objext
14321        deplibs=
14322        wl=$lt_prog_compiler_wl_F77
14323	pic_flag=$lt_prog_compiler_pic_F77
14324        compiler_flags=-v
14325        linker_flags=-v
14326        verstring=
14327        output_objdir=.
14328        libname=conftest
14329        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14330        allow_undefined_flag_F77=
14331        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14332  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14333  ac_status=$?
14334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335  (exit $ac_status); }
14336        then
14337	  archive_cmds_need_lc_F77=no
14338        else
14339	  archive_cmds_need_lc_F77=yes
14340        fi
14341        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14342      else
14343        cat conftest.err 1>&5
14344      fi
14345      $rm conftest*
14346      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14347echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14348      ;;
14349    esac
14350  fi
14351  ;;
14352esac
14353
14354echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14355echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14356library_names_spec=
14357libname_spec='lib$name'
14358soname_spec=
14359shrext_cmds=".so"
14360postinstall_cmds=
14361postuninstall_cmds=
14362finish_cmds=
14363finish_eval=
14364shlibpath_var=
14365shlibpath_overrides_runpath=unknown
14366version_type=none
14367dynamic_linker="$host_os ld.so"
14368sys_lib_dlsearch_path_spec="/lib /usr/lib"
14369if test "$GCC" = yes; then
14370  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14371  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14372    # if the path contains ";" then we assume it to be the separator
14373    # otherwise default to the standard path separator (i.e. ":") - it is
14374    # assumed that no part of a normal pathname contains ";" but that should
14375    # okay in the real world where ";" in dirpaths is itself problematic.
14376    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14377  else
14378    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14379  fi
14380else
14381  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14382fi
14383need_lib_prefix=unknown
14384hardcode_into_libs=no
14385
14386# when you set need_version to no, make sure it does not cause -set_version
14387# flags to be left without arguments
14388need_version=unknown
14389
14390case $host_os in
14391aix3*)
14392  version_type=linux
14393  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14394  shlibpath_var=LIBPATH
14395
14396  # AIX 3 has no versioning support, so we append a major version to the name.
14397  soname_spec='${libname}${release}${shared_ext}$major'
14398  ;;
14399
14400aix4* | aix5*)
14401  version_type=linux
14402  need_lib_prefix=no
14403  need_version=no
14404  hardcode_into_libs=yes
14405  if test "$host_cpu" = ia64; then
14406    # AIX 5 supports IA64
14407    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14408    shlibpath_var=LD_LIBRARY_PATH
14409  else
14410    # With GCC up to 2.95.x, collect2 would create an import file
14411    # for dependence libraries.  The import file would start with
14412    # the line `#! .'.  This would cause the generated library to
14413    # depend on `.', always an invalid library.  This was fixed in
14414    # development snapshots of GCC prior to 3.0.
14415    case $host_os in
14416      aix4 | aix4.[01] | aix4.[01].*)
14417      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14418	   echo ' yes '
14419	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14420	:
14421      else
14422	can_build_shared=no
14423      fi
14424      ;;
14425    esac
14426    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14427    # soname into executable. Probably we can add versioning support to
14428    # collect2, so additional links can be useful in future.
14429    if test "$aix_use_runtimelinking" = yes; then
14430      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14431      # instead of lib<name>.a to let people know that these are not
14432      # typical AIX shared libraries.
14433      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434    else
14435      # We preserve .a as extension for shared libraries through AIX4.2
14436      # and later when we are not doing run time linking.
14437      library_names_spec='${libname}${release}.a $libname.a'
14438      soname_spec='${libname}${release}${shared_ext}$major'
14439    fi
14440    shlibpath_var=LIBPATH
14441  fi
14442  ;;
14443
14444amigaos*)
14445  library_names_spec='$libname.ixlibrary $libname.a'
14446  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14447  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'
14448  ;;
14449
14450beos*)
14451  library_names_spec='${libname}${shared_ext}'
14452  dynamic_linker="$host_os ld.so"
14453  shlibpath_var=LIBRARY_PATH
14454  ;;
14455
14456bsdi[45]*)
14457  version_type=linux
14458  need_version=no
14459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460  soname_spec='${libname}${release}${shared_ext}$major'
14461  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14462  shlibpath_var=LD_LIBRARY_PATH
14463  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14464  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14465  # the default ld.so.conf also contains /usr/contrib/lib and
14466  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14467  # libtool to hard-code these into programs
14468  ;;
14469
14470cygwin* | mingw* | pw32*)
14471  version_type=windows
14472  shrext_cmds=".dll"
14473  need_version=no
14474  need_lib_prefix=no
14475
14476  case $GCC,$host_os in
14477  yes,cygwin* | yes,mingw* | yes,pw32*)
14478    library_names_spec='$libname.dll.a'
14479    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14480    postinstall_cmds='base_file=`basename \${file}`~
14481      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14482      dldir=$destdir/`dirname \$dlpath`~
14483      test -d \$dldir || mkdir -p \$dldir~
14484      $install_prog $dir/$dlname \$dldir/$dlname~
14485      chmod a+x \$dldir/$dlname'
14486    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14487      dlpath=$dir/\$dldll~
14488       $rm \$dlpath'
14489    shlibpath_overrides_runpath=yes
14490
14491    case $host_os in
14492    cygwin*)
14493      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14494      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14496      ;;
14497    mingw*)
14498      # MinGW DLLs use traditional 'lib' prefix
14499      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14501      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14502        # It is most probably a Windows format PATH printed by
14503        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14504        # path with ; separators, and with drive letters. We can handle the
14505        # drive letters (cygwin fileutils understands them), so leave them,
14506        # especially as we might pass files found there to a mingw objdump,
14507        # which wouldn't understand a cygwinified path. Ahh.
14508        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14509      else
14510        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14511      fi
14512      ;;
14513    pw32*)
14514      # pw32 DLLs use 'pw' prefix rather than 'lib'
14515      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14516      ;;
14517    esac
14518    ;;
14519
14520  *)
14521    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14522    ;;
14523  esac
14524  dynamic_linker='Win32 ld.exe'
14525  # FIXME: first we should search . and the directory the executable is in
14526  shlibpath_var=PATH
14527  ;;
14528
14529darwin* | rhapsody*)
14530  dynamic_linker="$host_os dyld"
14531  version_type=darwin
14532  need_lib_prefix=no
14533  need_version=no
14534  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14535  soname_spec='${libname}${release}${major}$shared_ext'
14536  shlibpath_overrides_runpath=yes
14537  shlibpath_var=DYLD_LIBRARY_PATH
14538  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14539  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14540  if test "$GCC" = yes; then
14541    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"`
14542  else
14543    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14544  fi
14545  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14546  ;;
14547
14548dgux*)
14549  version_type=linux
14550  need_lib_prefix=no
14551  need_version=no
14552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14553  soname_spec='${libname}${release}${shared_ext}$major'
14554  shlibpath_var=LD_LIBRARY_PATH
14555  ;;
14556
14557freebsd1*)
14558  dynamic_linker=no
14559  ;;
14560
14561kfreebsd*-gnu)
14562  version_type=linux
14563  need_lib_prefix=no
14564  need_version=no
14565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14566  soname_spec='${libname}${release}${shared_ext}$major'
14567  shlibpath_var=LD_LIBRARY_PATH
14568  shlibpath_overrides_runpath=no
14569  hardcode_into_libs=yes
14570  dynamic_linker='GNU ld.so'
14571  ;;
14572
14573freebsd* | dragonfly*)
14574  # DragonFly does not have aout.  When/if they implement a new
14575  # versioning mechanism, adjust this.
14576  if test -x /usr/bin/objformat; then
14577    objformat=`/usr/bin/objformat`
14578  else
14579    case $host_os in
14580    freebsd[123]*) objformat=aout ;;
14581    *) objformat=elf ;;
14582    esac
14583  fi
14584  version_type=freebsd-$objformat
14585  case $version_type in
14586    freebsd-elf*)
14587      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14588      need_version=no
14589      need_lib_prefix=no
14590      ;;
14591    freebsd-*)
14592      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14593      need_version=yes
14594      ;;
14595  esac
14596  shlibpath_var=LD_LIBRARY_PATH
14597  case $host_os in
14598  freebsd2*)
14599    shlibpath_overrides_runpath=yes
14600    ;;
14601  freebsd3.[01]* | freebsdelf3.[01]*)
14602    shlibpath_overrides_runpath=yes
14603    hardcode_into_libs=yes
14604    ;;
14605  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14606  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14607    shlibpath_overrides_runpath=no
14608    hardcode_into_libs=yes
14609    ;;
14610  freebsd*) # from 4.6 on
14611    shlibpath_overrides_runpath=yes
14612    hardcode_into_libs=yes
14613    ;;
14614  esac
14615  ;;
14616
14617gnu*)
14618  version_type=linux
14619  need_lib_prefix=no
14620  need_version=no
14621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622  soname_spec='${libname}${release}${shared_ext}$major'
14623  shlibpath_var=LD_LIBRARY_PATH
14624  hardcode_into_libs=yes
14625  ;;
14626
14627hpux9* | hpux10* | hpux11*)
14628  # Give a soname corresponding to the major version so that dld.sl refuses to
14629  # link against other versions.
14630  version_type=sunos
14631  need_lib_prefix=no
14632  need_version=no
14633  case $host_cpu in
14634  ia64*)
14635    shrext_cmds='.so'
14636    hardcode_into_libs=yes
14637    dynamic_linker="$host_os dld.so"
14638    shlibpath_var=LD_LIBRARY_PATH
14639    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641    soname_spec='${libname}${release}${shared_ext}$major'
14642    if test "X$HPUX_IA64_MODE" = X32; then
14643      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14644    else
14645      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14646    fi
14647    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14648    ;;
14649   hppa*64*)
14650     shrext_cmds='.sl'
14651     hardcode_into_libs=yes
14652     dynamic_linker="$host_os dld.sl"
14653     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656     soname_spec='${libname}${release}${shared_ext}$major'
14657     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14659     ;;
14660   *)
14661    shrext_cmds='.sl'
14662    dynamic_linker="$host_os dld.sl"
14663    shlibpath_var=SHLIB_PATH
14664    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666    soname_spec='${libname}${release}${shared_ext}$major'
14667    ;;
14668  esac
14669  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14670  postinstall_cmds='chmod 555 $lib'
14671  ;;
14672
14673interix3*)
14674  version_type=linux
14675  need_lib_prefix=no
14676  need_version=no
14677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678  soname_spec='${libname}${release}${shared_ext}$major'
14679  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14680  shlibpath_var=LD_LIBRARY_PATH
14681  shlibpath_overrides_runpath=no
14682  hardcode_into_libs=yes
14683  ;;
14684
14685irix5* | irix6* | nonstopux*)
14686  case $host_os in
14687    nonstopux*) version_type=nonstopux ;;
14688    *)
14689	if test "$lt_cv_prog_gnu_ld" = yes; then
14690		version_type=linux
14691	else
14692		version_type=irix
14693	fi ;;
14694  esac
14695  need_lib_prefix=no
14696  need_version=no
14697  soname_spec='${libname}${release}${shared_ext}$major'
14698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14699  case $host_os in
14700  irix5* | nonstopux*)
14701    libsuff= shlibsuff=
14702    ;;
14703  *)
14704    case $LD in # libtool.m4 will add one of these switches to LD
14705    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706      libsuff= shlibsuff= libmagic=32-bit;;
14707    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708      libsuff=32 shlibsuff=N32 libmagic=N32;;
14709    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711    *) libsuff= shlibsuff= libmagic=never-match;;
14712    esac
14713    ;;
14714  esac
14715  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716  shlibpath_overrides_runpath=no
14717  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719  hardcode_into_libs=yes
14720  ;;
14721
14722# No shared lib support for Linux oldld, aout, or coff.
14723linux*oldld* | linux*aout* | linux*coff*)
14724  dynamic_linker=no
14725  ;;
14726
14727# This must be Linux ELF.
14728linux*)
14729  version_type=linux
14730  need_lib_prefix=no
14731  need_version=no
14732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733  soname_spec='${libname}${release}${shared_ext}$major'
14734  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735  shlibpath_var=LD_LIBRARY_PATH
14736  shlibpath_overrides_runpath=no
14737  # This implies no fast_install, which is unacceptable.
14738  # Some rework will be needed to allow for fast_install
14739  # before this can be enabled.
14740  hardcode_into_libs=yes
14741
14742  # Append ld.so.conf contents to the search path
14743  if test -f /etc/ld.so.conf; then
14744    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14745    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746  fi
14747
14748  # We used to test for /lib/ld.so.1 and disable shared libraries on
14749  # powerpc, because MkLinux only supported shared libraries with the
14750  # GNU dynamic linker.  Since this was broken with cross compilers,
14751  # most powerpc-linux boxes support dynamic linking these days and
14752  # people can always --disable-shared, the test was removed, and we
14753  # assume the GNU/Linux dynamic linker is in use.
14754  dynamic_linker='GNU/Linux ld.so'
14755  ;;
14756
14757netbsdelf*-gnu)
14758  version_type=linux
14759  need_lib_prefix=no
14760  need_version=no
14761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762  soname_spec='${libname}${release}${shared_ext}$major'
14763  shlibpath_var=LD_LIBRARY_PATH
14764  shlibpath_overrides_runpath=no
14765  hardcode_into_libs=yes
14766  dynamic_linker='NetBSD ld.elf_so'
14767  ;;
14768
14769knetbsd*-gnu)
14770  version_type=linux
14771  need_lib_prefix=no
14772  need_version=no
14773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774  soname_spec='${libname}${release}${shared_ext}$major'
14775  shlibpath_var=LD_LIBRARY_PATH
14776  shlibpath_overrides_runpath=no
14777  hardcode_into_libs=yes
14778  dynamic_linker='GNU ld.so'
14779  ;;
14780
14781netbsd*)
14782  version_type=sunos
14783  need_lib_prefix=no
14784  need_version=no
14785  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14787    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14788    dynamic_linker='NetBSD (a.out) ld.so'
14789  else
14790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791    soname_spec='${libname}${release}${shared_ext}$major'
14792    dynamic_linker='NetBSD ld.elf_so'
14793  fi
14794  shlibpath_var=LD_LIBRARY_PATH
14795  shlibpath_overrides_runpath=yes
14796  hardcode_into_libs=yes
14797  ;;
14798
14799newsos6)
14800  version_type=linux
14801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802  shlibpath_var=LD_LIBRARY_PATH
14803  shlibpath_overrides_runpath=yes
14804  ;;
14805
14806nto-qnx*)
14807  version_type=linux
14808  need_lib_prefix=no
14809  need_version=no
14810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811  soname_spec='${libname}${release}${shared_ext}$major'
14812  shlibpath_var=LD_LIBRARY_PATH
14813  shlibpath_overrides_runpath=yes
14814  ;;
14815
14816openbsd*)
14817  version_type=sunos
14818  sys_lib_dlsearch_path_spec="/usr/lib"
14819  need_lib_prefix=no
14820  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14821  case $host_os in
14822    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14823    *)                         need_version=no  ;;
14824  esac
14825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14827  shlibpath_var=LD_LIBRARY_PATH
14828  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14829    case $host_os in
14830      openbsd2.[89] | openbsd2.[89].*)
14831	shlibpath_overrides_runpath=no
14832	;;
14833      *)
14834	shlibpath_overrides_runpath=yes
14835	;;
14836      esac
14837  else
14838    shlibpath_overrides_runpath=yes
14839  fi
14840  ;;
14841
14842os2*)
14843  libname_spec='$name'
14844  shrext_cmds=".dll"
14845  need_lib_prefix=no
14846  library_names_spec='$libname${shared_ext} $libname.a'
14847  dynamic_linker='OS/2 ld.exe'
14848  shlibpath_var=LIBPATH
14849  ;;
14850
14851osf3* | osf4* | osf5*)
14852  version_type=osf
14853  need_lib_prefix=no
14854  need_version=no
14855  soname_spec='${libname}${release}${shared_ext}$major'
14856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857  shlibpath_var=LD_LIBRARY_PATH
14858  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14859  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14860  ;;
14861
14862solaris*)
14863  version_type=linux
14864  need_lib_prefix=no
14865  need_version=no
14866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867  soname_spec='${libname}${release}${shared_ext}$major'
14868  shlibpath_var=LD_LIBRARY_PATH
14869  shlibpath_overrides_runpath=yes
14870  hardcode_into_libs=yes
14871  # ldd complains unless libraries are executable
14872  postinstall_cmds='chmod +x $lib'
14873  ;;
14874
14875sunos4*)
14876  version_type=sunos
14877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879  shlibpath_var=LD_LIBRARY_PATH
14880  shlibpath_overrides_runpath=yes
14881  if test "$with_gnu_ld" = yes; then
14882    need_lib_prefix=no
14883  fi
14884  need_version=yes
14885  ;;
14886
14887sysv4 | sysv4.3*)
14888  version_type=linux
14889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890  soname_spec='${libname}${release}${shared_ext}$major'
14891  shlibpath_var=LD_LIBRARY_PATH
14892  case $host_vendor in
14893    sni)
14894      shlibpath_overrides_runpath=no
14895      need_lib_prefix=no
14896      export_dynamic_flag_spec='${wl}-Blargedynsym'
14897      runpath_var=LD_RUN_PATH
14898      ;;
14899    siemens)
14900      need_lib_prefix=no
14901      ;;
14902    motorola)
14903      need_lib_prefix=no
14904      need_version=no
14905      shlibpath_overrides_runpath=no
14906      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14907      ;;
14908  esac
14909  ;;
14910
14911sysv4*MP*)
14912  if test -d /usr/nec ;then
14913    version_type=linux
14914    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14915    soname_spec='$libname${shared_ext}.$major'
14916    shlibpath_var=LD_LIBRARY_PATH
14917  fi
14918  ;;
14919
14920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14921  version_type=freebsd-elf
14922  need_lib_prefix=no
14923  need_version=no
14924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925  soname_spec='${libname}${release}${shared_ext}$major'
14926  shlibpath_var=LD_LIBRARY_PATH
14927  hardcode_into_libs=yes
14928  if test "$with_gnu_ld" = yes; then
14929    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14930    shlibpath_overrides_runpath=no
14931  else
14932    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14933    shlibpath_overrides_runpath=yes
14934    case $host_os in
14935      sco3.2v5*)
14936        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14937	;;
14938    esac
14939  fi
14940  sys_lib_dlsearch_path_spec='/usr/lib'
14941  ;;
14942
14943uts4*)
14944  version_type=linux
14945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946  soname_spec='${libname}${release}${shared_ext}$major'
14947  shlibpath_var=LD_LIBRARY_PATH
14948  ;;
14949
14950*)
14951  dynamic_linker=no
14952  ;;
14953esac
14954echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14955echo "${ECHO_T}$dynamic_linker" >&6
14956test "$dynamic_linker" = no && can_build_shared=no
14957
14958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14959if test "$GCC" = yes; then
14960  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14961fi
14962
14963echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14964echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14965hardcode_action_F77=
14966if test -n "$hardcode_libdir_flag_spec_F77" || \
14967   test -n "$runpath_var_F77" || \
14968   test "X$hardcode_automatic_F77" = "Xyes" ; then
14969
14970  # We can hardcode non-existant directories.
14971  if test "$hardcode_direct_F77" != no &&
14972     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14973     # have to relink, otherwise we might link with an installed library
14974     # when we should be linking with a yet-to-be-installed one
14975     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14976     test "$hardcode_minus_L_F77" != no; then
14977    # Linking always hardcodes the temporary library directory.
14978    hardcode_action_F77=relink
14979  else
14980    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14981    hardcode_action_F77=immediate
14982  fi
14983else
14984  # We cannot hardcode anything, or else we can only hardcode existing
14985  # directories.
14986  hardcode_action_F77=unsupported
14987fi
14988echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14989echo "${ECHO_T}$hardcode_action_F77" >&6
14990
14991if test "$hardcode_action_F77" = relink; then
14992  # Fast installation is not supported
14993  enable_fast_install=no
14994elif test "$shlibpath_overrides_runpath" = yes ||
14995     test "$enable_shared" = no; then
14996  # Fast installation is not necessary
14997  enable_fast_install=needless
14998fi
14999
15000
15001# The else clause should only fire when bootstrapping the
15002# libtool distribution, otherwise you forgot to ship ltmain.sh
15003# with your package, and you will get complaints that there are
15004# no rules to generate ltmain.sh.
15005if test -f "$ltmain"; then
15006  # See if we are running on zsh, and set the options which allow our commands through
15007  # without removal of \ escapes.
15008  if test -n "${ZSH_VERSION+set}" ; then
15009    setopt NO_GLOB_SUBST
15010  fi
15011  # Now quote all the things that may contain metacharacters while being
15012  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15013  # variables and quote the copies for generation of the libtool script.
15014  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15015    SED SHELL STRIP \
15016    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15017    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15018    deplibs_check_method reload_flag reload_cmds need_locks \
15019    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15020    lt_cv_sys_global_symbol_to_c_name_address \
15021    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15022    old_postinstall_cmds old_postuninstall_cmds \
15023    compiler_F77 \
15024    CC_F77 \
15025    LD_F77 \
15026    lt_prog_compiler_wl_F77 \
15027    lt_prog_compiler_pic_F77 \
15028    lt_prog_compiler_static_F77 \
15029    lt_prog_compiler_no_builtin_flag_F77 \
15030    export_dynamic_flag_spec_F77 \
15031    thread_safe_flag_spec_F77 \
15032    whole_archive_flag_spec_F77 \
15033    enable_shared_with_static_runtimes_F77 \
15034    old_archive_cmds_F77 \
15035    old_archive_from_new_cmds_F77 \
15036    predep_objects_F77 \
15037    postdep_objects_F77 \
15038    predeps_F77 \
15039    postdeps_F77 \
15040    compiler_lib_search_path_F77 \
15041    archive_cmds_F77 \
15042    archive_expsym_cmds_F77 \
15043    postinstall_cmds_F77 \
15044    postuninstall_cmds_F77 \
15045    old_archive_from_expsyms_cmds_F77 \
15046    allow_undefined_flag_F77 \
15047    no_undefined_flag_F77 \
15048    export_symbols_cmds_F77 \
15049    hardcode_libdir_flag_spec_F77 \
15050    hardcode_libdir_flag_spec_ld_F77 \
15051    hardcode_libdir_separator_F77 \
15052    hardcode_automatic_F77 \
15053    module_cmds_F77 \
15054    module_expsym_cmds_F77 \
15055    lt_cv_prog_compiler_c_o_F77 \
15056    exclude_expsyms_F77 \
15057    include_expsyms_F77; do
15058
15059    case $var in
15060    old_archive_cmds_F77 | \
15061    old_archive_from_new_cmds_F77 | \
15062    archive_cmds_F77 | \
15063    archive_expsym_cmds_F77 | \
15064    module_cmds_F77 | \
15065    module_expsym_cmds_F77 | \
15066    old_archive_from_expsyms_cmds_F77 | \
15067    export_symbols_cmds_F77 | \
15068    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15069    postinstall_cmds | postuninstall_cmds | \
15070    old_postinstall_cmds | old_postuninstall_cmds | \
15071    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15072      # Double-quote double-evaled strings.
15073      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15074      ;;
15075    *)
15076      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15077      ;;
15078    esac
15079  done
15080
15081  case $lt_echo in
15082  *'\$0 --fallback-echo"')
15083    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15084    ;;
15085  esac
15086
15087cfgfile="$ofile"
15088
15089  cat <<__EOF__ >> "$cfgfile"
15090# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15091
15092# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15093
15094# Shell to use when invoking shell scripts.
15095SHELL=$lt_SHELL
15096
15097# Whether or not to build shared libraries.
15098build_libtool_libs=$enable_shared
15099
15100# Whether or not to build static libraries.
15101build_old_libs=$enable_static
15102
15103# Whether or not to add -lc for building shared libraries.
15104build_libtool_need_lc=$archive_cmds_need_lc_F77
15105
15106# Whether or not to disallow shared libs when runtime libs are static
15107allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15108
15109# Whether or not to optimize for fast installation.
15110fast_install=$enable_fast_install
15111
15112# The host system.
15113host_alias=$host_alias
15114host=$host
15115host_os=$host_os
15116
15117# The build system.
15118build_alias=$build_alias
15119build=$build
15120build_os=$build_os
15121
15122# An echo program that does not interpret backslashes.
15123echo=$lt_echo
15124
15125# The archiver.
15126AR=$lt_AR
15127AR_FLAGS=$lt_AR_FLAGS
15128
15129# A C compiler.
15130LTCC=$lt_LTCC
15131
15132# LTCC compiler flags.
15133LTCFLAGS=$lt_LTCFLAGS
15134
15135# A language-specific compiler.
15136CC=$lt_compiler_F77
15137
15138# Is the compiler the GNU C compiler?
15139with_gcc=$GCC_F77
15140
15141# An ERE matcher.
15142EGREP=$lt_EGREP
15143
15144# The linker used to build libraries.
15145LD=$lt_LD_F77
15146
15147# Whether we need hard or soft links.
15148LN_S=$lt_LN_S
15149
15150# A BSD-compatible nm program.
15151NM=$lt_NM
15152
15153# A symbol stripping program
15154STRIP=$lt_STRIP
15155
15156# Used to examine libraries when file_magic_cmd begins "file"
15157MAGIC_CMD=$MAGIC_CMD
15158
15159# Used on cygwin: DLL creation program.
15160DLLTOOL="$DLLTOOL"
15161
15162# Used on cygwin: object dumper.
15163OBJDUMP="$OBJDUMP"
15164
15165# Used on cygwin: assembler.
15166AS="$AS"
15167
15168# The name of the directory that contains temporary libtool files.
15169objdir=$objdir
15170
15171# How to create reloadable object files.
15172reload_flag=$lt_reload_flag
15173reload_cmds=$lt_reload_cmds
15174
15175# How to pass a linker flag through the compiler.
15176wl=$lt_lt_prog_compiler_wl_F77
15177
15178# Object file suffix (normally "o").
15179objext="$ac_objext"
15180
15181# Old archive suffix (normally "a").
15182libext="$libext"
15183
15184# Shared library suffix (normally ".so").
15185shrext_cmds='$shrext_cmds'
15186
15187# Executable file suffix (normally "").
15188exeext="$exeext"
15189
15190# Additional compiler flags for building library objects.
15191pic_flag=$lt_lt_prog_compiler_pic_F77
15192pic_mode=$pic_mode
15193
15194# What is the maximum length of a command?
15195max_cmd_len=$lt_cv_sys_max_cmd_len
15196
15197# Does compiler simultaneously support -c and -o options?
15198compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15199
15200# Must we lock files when doing compilation?
15201need_locks=$lt_need_locks
15202
15203# Do we need the lib prefix for modules?
15204need_lib_prefix=$need_lib_prefix
15205
15206# Do we need a version for libraries?
15207need_version=$need_version
15208
15209# Whether dlopen is supported.
15210dlopen_support=$enable_dlopen
15211
15212# Whether dlopen of programs is supported.
15213dlopen_self=$enable_dlopen_self
15214
15215# Whether dlopen of statically linked programs is supported.
15216dlopen_self_static=$enable_dlopen_self_static
15217
15218# Compiler flag to prevent dynamic linking.
15219link_static_flag=$lt_lt_prog_compiler_static_F77
15220
15221# Compiler flag to turn off builtin functions.
15222no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15223
15224# Compiler flag to allow reflexive dlopens.
15225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15226
15227# Compiler flag to generate shared objects directly from archives.
15228whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15229
15230# Compiler flag to generate thread-safe objects.
15231thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15232
15233# Library versioning type.
15234version_type=$version_type
15235
15236# Format of library name prefix.
15237libname_spec=$lt_libname_spec
15238
15239# List of archive names.  First name is the real one, the rest are links.
15240# The last name is the one that the linker finds with -lNAME.
15241library_names_spec=$lt_library_names_spec
15242
15243# The coded name of the library, if different from the real name.
15244soname_spec=$lt_soname_spec
15245
15246# Commands used to build and install an old-style archive.
15247RANLIB=$lt_RANLIB
15248old_archive_cmds=$lt_old_archive_cmds_F77
15249old_postinstall_cmds=$lt_old_postinstall_cmds
15250old_postuninstall_cmds=$lt_old_postuninstall_cmds
15251
15252# Create an old-style archive from a shared archive.
15253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15254
15255# Create a temporary old-style archive to link instead of a shared archive.
15256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15257
15258# Commands used to build and install a shared archive.
15259archive_cmds=$lt_archive_cmds_F77
15260archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15261postinstall_cmds=$lt_postinstall_cmds
15262postuninstall_cmds=$lt_postuninstall_cmds
15263
15264# Commands used to build a loadable module (assumed same as above if empty)
15265module_cmds=$lt_module_cmds_F77
15266module_expsym_cmds=$lt_module_expsym_cmds_F77
15267
15268# Commands to strip libraries.
15269old_striplib=$lt_old_striplib
15270striplib=$lt_striplib
15271
15272# Dependencies to place before the objects being linked to create a
15273# shared library.
15274predep_objects=$lt_predep_objects_F77
15275
15276# Dependencies to place after the objects being linked to create a
15277# shared library.
15278postdep_objects=$lt_postdep_objects_F77
15279
15280# Dependencies to place before the objects being linked to create a
15281# shared library.
15282predeps=$lt_predeps_F77
15283
15284# Dependencies to place after the objects being linked to create a
15285# shared library.
15286postdeps=$lt_postdeps_F77
15287
15288# The library search path used internally by the compiler when linking
15289# a shared library.
15290compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15291
15292# Method to check whether dependent libraries are shared objects.
15293deplibs_check_method=$lt_deplibs_check_method
15294
15295# Command to use when deplibs_check_method == file_magic.
15296file_magic_cmd=$lt_file_magic_cmd
15297
15298# Flag that allows shared libraries with undefined symbols to be built.
15299allow_undefined_flag=$lt_allow_undefined_flag_F77
15300
15301# Flag that forces no undefined symbols.
15302no_undefined_flag=$lt_no_undefined_flag_F77
15303
15304# Commands used to finish a libtool library installation in a directory.
15305finish_cmds=$lt_finish_cmds
15306
15307# Same as above, but a single script fragment to be evaled but not shown.
15308finish_eval=$lt_finish_eval
15309
15310# Take the output of nm and produce a listing of raw symbols and C names.
15311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15312
15313# Transform the output of nm in a proper C declaration
15314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15315
15316# Transform the output of nm in a C name address pair
15317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15318
15319# This is the shared library runtime path variable.
15320runpath_var=$runpath_var
15321
15322# This is the shared library path variable.
15323shlibpath_var=$shlibpath_var
15324
15325# Is shlibpath searched before the hard-coded library search path?
15326shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15327
15328# How to hardcode a shared library path into an executable.
15329hardcode_action=$hardcode_action_F77
15330
15331# Whether we should hardcode library paths into libraries.
15332hardcode_into_libs=$hardcode_into_libs
15333
15334# Flag to hardcode \$libdir into a binary during linking.
15335# This must work even if \$libdir does not exist.
15336hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15337
15338# If ld is used when linking, flag to hardcode \$libdir into
15339# a binary during linking. This must work even if \$libdir does
15340# not exist.
15341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15342
15343# Whether we need a single -rpath flag with a separated argument.
15344hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15345
15346# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15347# resulting binary.
15348hardcode_direct=$hardcode_direct_F77
15349
15350# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15351# resulting binary.
15352hardcode_minus_L=$hardcode_minus_L_F77
15353
15354# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15355# the resulting binary.
15356hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15357
15358# Set to yes if building a shared library automatically hardcodes DIR into the library
15359# and all subsequent libraries and executables linked against it.
15360hardcode_automatic=$hardcode_automatic_F77
15361
15362# Variables whose values should be saved in libtool wrapper scripts and
15363# restored at relink time.
15364variables_saved_for_relink="$variables_saved_for_relink"
15365
15366# Whether libtool must link a program against all its dependency libraries.
15367link_all_deplibs=$link_all_deplibs_F77
15368
15369# Compile-time system search path for libraries
15370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15371
15372# Run-time system search path for libraries
15373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15374
15375# Fix the shell variable \$srcfile for the compiler.
15376fix_srcfile_path="$fix_srcfile_path_F77"
15377
15378# Set to yes if exported symbols are required.
15379always_export_symbols=$always_export_symbols_F77
15380
15381# The commands to list exported symbols.
15382export_symbols_cmds=$lt_export_symbols_cmds_F77
15383
15384# The commands to extract the exported symbol list from a shared archive.
15385extract_expsyms_cmds=$lt_extract_expsyms_cmds
15386
15387# Symbols that should not be listed in the preloaded symbols.
15388exclude_expsyms=$lt_exclude_expsyms_F77
15389
15390# Symbols that must always be exported.
15391include_expsyms=$lt_include_expsyms_F77
15392
15393# ### END LIBTOOL TAG CONFIG: $tagname
15394
15395__EOF__
15396
15397
15398else
15399  # If there is no Makefile yet, we rely on a make rule to execute
15400  # `config.status --recheck' to rerun these tests and create the
15401  # libtool script then.
15402  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15403  if test -f "$ltmain_in"; then
15404    test -f Makefile && make "$ltmain"
15405  fi
15406fi
15407
15408
15409ac_ext=c
15410ac_cpp='$CPP $CPPFLAGS'
15411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413ac_compiler_gnu=$ac_cv_c_compiler_gnu
15414
15415CC="$lt_save_CC"
15416
15417	else
15418	  tagname=""
15419	fi
15420	;;
15421
15422      GCJ)
15423	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15424
15425
15426
15427# Source file extension for Java test sources.
15428ac_ext=java
15429
15430# Object file extension for compiled Java test sources.
15431objext=o
15432objext_GCJ=$objext
15433
15434# Code to be used in simple compile tests
15435lt_simple_compile_test_code="class foo {}\n"
15436
15437# Code to be used in simple link tests
15438lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15439
15440# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15441
15442# If no C compiler was specified, use CC.
15443LTCC=${LTCC-"$CC"}
15444
15445# If no C compiler flags were specified, use CFLAGS.
15446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15447
15448# Allow CC to be a program name with arguments.
15449compiler=$CC
15450
15451
15452# save warnings/boilerplate of simple test code
15453ac_outfile=conftest.$ac_objext
15454printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456_lt_compiler_boilerplate=`cat conftest.err`
15457$rm conftest*
15458
15459ac_outfile=conftest.$ac_objext
15460printf "$lt_simple_link_test_code" >conftest.$ac_ext
15461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462_lt_linker_boilerplate=`cat conftest.err`
15463$rm conftest*
15464
15465
15466# Allow CC to be a program name with arguments.
15467lt_save_CC="$CC"
15468CC=${GCJ-"gcj"}
15469compiler=$CC
15470compiler_GCJ=$CC
15471for cc_temp in $compiler""; do
15472  case $cc_temp in
15473    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15474    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15475    \-*) ;;
15476    *) break;;
15477  esac
15478done
15479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15480
15481
15482# GCJ did not exist at the time GCC didn't implicitly link libc in.
15483archive_cmds_need_lc_GCJ=no
15484
15485old_archive_cmds_GCJ=$old_archive_cmds
15486
15487
15488lt_prog_compiler_no_builtin_flag_GCJ=
15489
15490if test "$GCC" = yes; then
15491  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15492
15493
15494echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15495echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15496if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15497  echo $ECHO_N "(cached) $ECHO_C" >&6
15498else
15499  lt_cv_prog_compiler_rtti_exceptions=no
15500  ac_outfile=conftest.$ac_objext
15501   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502   lt_compiler_flag="-fno-rtti -fno-exceptions"
15503   # Insert the option either (1) after the last *FLAGS variable, or
15504   # (2) before a word containing "conftest.", or (3) at the end.
15505   # Note that $ac_compile itself does not contain backslashes and begins
15506   # with a dollar sign (not a hyphen), so the echo should work correctly.
15507   # The option is referenced via a variable to avoid confusing sed.
15508   lt_compile=`echo "$ac_compile" | $SED \
15509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511   -e 's:$: $lt_compiler_flag:'`
15512   (eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513   (eval "$lt_compile" 2>conftest.err)
15514   ac_status=$?
15515   cat conftest.err >&5
15516   echo "$as_me:15516: \$? = $ac_status" >&5
15517   if (exit $ac_status) && test -s "$ac_outfile"; then
15518     # The compiler can only warn and ignore the option if not recognized
15519     # So say no if there are warnings other than the usual output.
15520     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15521     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523       lt_cv_prog_compiler_rtti_exceptions=yes
15524     fi
15525   fi
15526   $rm conftest*
15527
15528fi
15529echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15530echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15531
15532if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15533    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15534else
15535    :
15536fi
15537
15538fi
15539
15540lt_prog_compiler_wl_GCJ=
15541lt_prog_compiler_pic_GCJ=
15542lt_prog_compiler_static_GCJ=
15543
15544echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15545echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15546
15547  if test "$GCC" = yes; then
15548    lt_prog_compiler_wl_GCJ='-Wl,'
15549    lt_prog_compiler_static_GCJ='-static'
15550
15551    case $host_os in
15552      aix*)
15553      # All AIX code is PIC.
15554      if test "$host_cpu" = ia64; then
15555	# AIX 5 now supports IA64 processor
15556	lt_prog_compiler_static_GCJ='-Bstatic'
15557      fi
15558      ;;
15559
15560    amigaos*)
15561      # FIXME: we need at least 68020 code to build shared libraries, but
15562      # adding the `-m68020' flag to GCC prevents building anything better,
15563      # like `-m68040'.
15564      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15565      ;;
15566
15567    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15568      # PIC is the default for these OSes.
15569      ;;
15570
15571    mingw* | pw32* | os2*)
15572      # This hack is so that the source file can tell whether it is being
15573      # built for inclusion in a dll (and should export symbols for example).
15574      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15575      ;;
15576
15577    darwin* | rhapsody*)
15578      # PIC is the default on this platform
15579      # Common symbols not allowed in MH_DYLIB files
15580      lt_prog_compiler_pic_GCJ='-fno-common'
15581      ;;
15582
15583    interix3*)
15584      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15585      # Instead, we relocate shared libraries at runtime.
15586      ;;
15587
15588    msdosdjgpp*)
15589      # Just because we use GCC doesn't mean we suddenly get shared libraries
15590      # on systems that don't support them.
15591      lt_prog_compiler_can_build_shared_GCJ=no
15592      enable_shared=no
15593      ;;
15594
15595    sysv4*MP*)
15596      if test -d /usr/nec; then
15597	lt_prog_compiler_pic_GCJ=-Kconform_pic
15598      fi
15599      ;;
15600
15601    hpux*)
15602      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603      # not for PA HP-UX.
15604      case $host_cpu in
15605      hppa*64*|ia64*)
15606	# +Z the default
15607	;;
15608      *)
15609	lt_prog_compiler_pic_GCJ='-fPIC'
15610	;;
15611      esac
15612      ;;
15613
15614    *)
15615      lt_prog_compiler_pic_GCJ='-fPIC'
15616      ;;
15617    esac
15618  else
15619    # PORTME Check for flag to pass linker flags through the system compiler.
15620    case $host_os in
15621    aix*)
15622      lt_prog_compiler_wl_GCJ='-Wl,'
15623      if test "$host_cpu" = ia64; then
15624	# AIX 5 now supports IA64 processor
15625	lt_prog_compiler_static_GCJ='-Bstatic'
15626      else
15627	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15628      fi
15629      ;;
15630      darwin*)
15631        # PIC is the default on this platform
15632        # Common symbols not allowed in MH_DYLIB files
15633       case $cc_basename in
15634         xlc*)
15635         lt_prog_compiler_pic_GCJ='-qnocommon'
15636         lt_prog_compiler_wl_GCJ='-Wl,'
15637         ;;
15638       esac
15639       ;;
15640
15641    mingw* | pw32* | os2*)
15642      # This hack is so that the source file can tell whether it is being
15643      # built for inclusion in a dll (and should export symbols for example).
15644      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15645      ;;
15646
15647    hpux9* | hpux10* | hpux11*)
15648      lt_prog_compiler_wl_GCJ='-Wl,'
15649      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15650      # not for PA HP-UX.
15651      case $host_cpu in
15652      hppa*64*|ia64*)
15653	# +Z the default
15654	;;
15655      *)
15656	lt_prog_compiler_pic_GCJ='+Z'
15657	;;
15658      esac
15659      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15660      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15661      ;;
15662
15663    irix5* | irix6* | nonstopux*)
15664      lt_prog_compiler_wl_GCJ='-Wl,'
15665      # PIC (with -KPIC) is the default.
15666      lt_prog_compiler_static_GCJ='-non_shared'
15667      ;;
15668
15669    newsos6)
15670      lt_prog_compiler_pic_GCJ='-KPIC'
15671      lt_prog_compiler_static_GCJ='-Bstatic'
15672      ;;
15673
15674    linux*)
15675      case $cc_basename in
15676      icc* | ecc*)
15677	lt_prog_compiler_wl_GCJ='-Wl,'
15678	lt_prog_compiler_pic_GCJ='-KPIC'
15679	lt_prog_compiler_static_GCJ='-static'
15680        ;;
15681      pgcc* | pgf77* | pgf90* | pgf95*)
15682        # Portland Group compilers (*not* the Pentium gcc compiler,
15683	# which looks to be a dead project)
15684	lt_prog_compiler_wl_GCJ='-Wl,'
15685	lt_prog_compiler_pic_GCJ='-fpic'
15686	lt_prog_compiler_static_GCJ='-Bstatic'
15687        ;;
15688      ccc*)
15689        lt_prog_compiler_wl_GCJ='-Wl,'
15690        # All Alpha code is PIC.
15691        lt_prog_compiler_static_GCJ='-non_shared'
15692        ;;
15693      esac
15694      ;;
15695
15696    osf3* | osf4* | osf5*)
15697      lt_prog_compiler_wl_GCJ='-Wl,'
15698      # All OSF/1 code is PIC.
15699      lt_prog_compiler_static_GCJ='-non_shared'
15700      ;;
15701
15702    solaris*)
15703      lt_prog_compiler_pic_GCJ='-KPIC'
15704      lt_prog_compiler_static_GCJ='-Bstatic'
15705      case $cc_basename in
15706      f77* | f90* | f95*)
15707	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15708      *)
15709	lt_prog_compiler_wl_GCJ='-Wl,';;
15710      esac
15711      ;;
15712
15713    sunos4*)
15714      lt_prog_compiler_wl_GCJ='-Qoption ld '
15715      lt_prog_compiler_pic_GCJ='-PIC'
15716      lt_prog_compiler_static_GCJ='-Bstatic'
15717      ;;
15718
15719    sysv4 | sysv4.2uw2* | sysv4.3*)
15720      lt_prog_compiler_wl_GCJ='-Wl,'
15721      lt_prog_compiler_pic_GCJ='-KPIC'
15722      lt_prog_compiler_static_GCJ='-Bstatic'
15723      ;;
15724
15725    sysv4*MP*)
15726      if test -d /usr/nec ;then
15727	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728	lt_prog_compiler_static_GCJ='-Bstatic'
15729      fi
15730      ;;
15731
15732    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15733      lt_prog_compiler_wl_GCJ='-Wl,'
15734      lt_prog_compiler_pic_GCJ='-KPIC'
15735      lt_prog_compiler_static_GCJ='-Bstatic'
15736      ;;
15737
15738    unicos*)
15739      lt_prog_compiler_wl_GCJ='-Wl,'
15740      lt_prog_compiler_can_build_shared_GCJ=no
15741      ;;
15742
15743    uts4*)
15744      lt_prog_compiler_pic_GCJ='-pic'
15745      lt_prog_compiler_static_GCJ='-Bstatic'
15746      ;;
15747
15748    *)
15749      lt_prog_compiler_can_build_shared_GCJ=no
15750      ;;
15751    esac
15752  fi
15753
15754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15755echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15756
15757#
15758# Check to make sure the PIC flag actually works.
15759#
15760if test -n "$lt_prog_compiler_pic_GCJ"; then
15761
15762echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15763echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15764if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15765  echo $ECHO_N "(cached) $ECHO_C" >&6
15766else
15767  lt_prog_compiler_pic_works_GCJ=no
15768  ac_outfile=conftest.$ac_objext
15769   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15770   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15771   # Insert the option either (1) after the last *FLAGS variable, or
15772   # (2) before a word containing "conftest.", or (3) at the end.
15773   # Note that $ac_compile itself does not contain backslashes and begins
15774   # with a dollar sign (not a hyphen), so the echo should work correctly.
15775   # The option is referenced via a variable to avoid confusing sed.
15776   lt_compile=`echo "$ac_compile" | $SED \
15777   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779   -e 's:$: $lt_compiler_flag:'`
15780   (eval echo "\"\$as_me:15780: $lt_compile\"" >&5)
15781   (eval "$lt_compile" 2>conftest.err)
15782   ac_status=$?
15783   cat conftest.err >&5
15784   echo "$as_me:15784: \$? = $ac_status" >&5
15785   if (exit $ac_status) && test -s "$ac_outfile"; then
15786     # The compiler can only warn and ignore the option if not recognized
15787     # So say no if there are warnings other than the usual output.
15788     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15789     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791       lt_prog_compiler_pic_works_GCJ=yes
15792     fi
15793   fi
15794   $rm conftest*
15795
15796fi
15797echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15798echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15799
15800if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15801    case $lt_prog_compiler_pic_GCJ in
15802     "" | " "*) ;;
15803     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15804     esac
15805else
15806    lt_prog_compiler_pic_GCJ=
15807     lt_prog_compiler_can_build_shared_GCJ=no
15808fi
15809
15810fi
15811case $host_os in
15812  # For platforms which do not support PIC, -DPIC is meaningless:
15813  *djgpp*)
15814    lt_prog_compiler_pic_GCJ=
15815    ;;
15816  *)
15817    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15818    ;;
15819esac
15820
15821#
15822# Check to make sure the static flag actually works.
15823#
15824wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15825echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15826echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15827if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15828  echo $ECHO_N "(cached) $ECHO_C" >&6
15829else
15830  lt_prog_compiler_static_works_GCJ=no
15831   save_LDFLAGS="$LDFLAGS"
15832   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15833   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15834   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15835     # The linker can only warn and ignore the option if not recognized
15836     # So say no if there are warnings
15837     if test -s conftest.err; then
15838       # Append any errors to the config.log.
15839       cat conftest.err 1>&5
15840       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15841       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842       if diff conftest.exp conftest.er2 >/dev/null; then
15843         lt_prog_compiler_static_works_GCJ=yes
15844       fi
15845     else
15846       lt_prog_compiler_static_works_GCJ=yes
15847     fi
15848   fi
15849   $rm conftest*
15850   LDFLAGS="$save_LDFLAGS"
15851
15852fi
15853echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15854echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15855
15856if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15857    :
15858else
15859    lt_prog_compiler_static_GCJ=
15860fi
15861
15862
15863echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15864echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15865if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15866  echo $ECHO_N "(cached) $ECHO_C" >&6
15867else
15868  lt_cv_prog_compiler_c_o_GCJ=no
15869   $rm -r conftest 2>/dev/null
15870   mkdir conftest
15871   cd conftest
15872   mkdir out
15873   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15874
15875   lt_compiler_flag="-o out/conftest2.$ac_objext"
15876   # Insert the option either (1) after the last *FLAGS variable, or
15877   # (2) before a word containing "conftest.", or (3) at the end.
15878   # Note that $ac_compile itself does not contain backslashes and begins
15879   # with a dollar sign (not a hyphen), so the echo should work correctly.
15880   lt_compile=`echo "$ac_compile" | $SED \
15881   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883   -e 's:$: $lt_compiler_flag:'`
15884   (eval echo "\"\$as_me:15884: $lt_compile\"" >&5)
15885   (eval "$lt_compile" 2>out/conftest.err)
15886   ac_status=$?
15887   cat out/conftest.err >&5
15888   echo "$as_me:15888: \$? = $ac_status" >&5
15889   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15890   then
15891     # The compiler can only warn and ignore the option if not recognized
15892     # So say no if there are warnings
15893     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15894     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15895     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15896       lt_cv_prog_compiler_c_o_GCJ=yes
15897     fi
15898   fi
15899   chmod u+w . 2>&5
15900   $rm conftest*
15901   # SGI C++ compiler will create directory out/ii_files/ for
15902   # template instantiation
15903   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15904   $rm out/* && rmdir out
15905   cd ..
15906   rmdir conftest
15907   $rm conftest*
15908
15909fi
15910echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15911echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15912
15913
15914hard_links="nottested"
15915if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15916  # do not overwrite the value of need_locks provided by the user
15917  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15918echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15919  hard_links=yes
15920  $rm conftest*
15921  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15922  touch conftest.a
15923  ln conftest.a conftest.b 2>&5 || hard_links=no
15924  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925  echo "$as_me:$LINENO: result: $hard_links" >&5
15926echo "${ECHO_T}$hard_links" >&6
15927  if test "$hard_links" = no; then
15928    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15930    need_locks=warn
15931  fi
15932else
15933  need_locks=no
15934fi
15935
15936echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15937echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15938
15939  runpath_var=
15940  allow_undefined_flag_GCJ=
15941  enable_shared_with_static_runtimes_GCJ=no
15942  archive_cmds_GCJ=
15943  archive_expsym_cmds_GCJ=
15944  old_archive_From_new_cmds_GCJ=
15945  old_archive_from_expsyms_cmds_GCJ=
15946  export_dynamic_flag_spec_GCJ=
15947  whole_archive_flag_spec_GCJ=
15948  thread_safe_flag_spec_GCJ=
15949  hardcode_libdir_flag_spec_GCJ=
15950  hardcode_libdir_flag_spec_ld_GCJ=
15951  hardcode_libdir_separator_GCJ=
15952  hardcode_direct_GCJ=no
15953  hardcode_minus_L_GCJ=no
15954  hardcode_shlibpath_var_GCJ=unsupported
15955  link_all_deplibs_GCJ=unknown
15956  hardcode_automatic_GCJ=no
15957  module_cmds_GCJ=
15958  module_expsym_cmds_GCJ=
15959  always_export_symbols_GCJ=no
15960  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15961  # include_expsyms should be a list of space-separated symbols to be *always*
15962  # included in the symbol list
15963  include_expsyms_GCJ=
15964  # exclude_expsyms can be an extended regexp of symbols to exclude
15965  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15966  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15967  # as well as any symbol that contains `d'.
15968  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15969  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15970  # platforms (ab)use it in PIC code, but their linkers get confused if
15971  # the symbol is explicitly referenced.  Since portable code cannot
15972  # rely on this symbol name, it's probably fine to never include it in
15973  # preloaded symbol tables.
15974  extract_expsyms_cmds=
15975  # Just being paranoid about ensuring that cc_basename is set.
15976  for cc_temp in $compiler""; do
15977  case $cc_temp in
15978    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15979    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15980    \-*) ;;
15981    *) break;;
15982  esac
15983done
15984cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15985
15986  case $host_os in
15987  cygwin* | mingw* | pw32*)
15988    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15989    # When not using gcc, we currently assume that we are using
15990    # Microsoft Visual C++.
15991    if test "$GCC" != yes; then
15992      with_gnu_ld=no
15993    fi
15994    ;;
15995  interix*)
15996    # we just hope/assume this is gcc and not c89 (= MSVC++)
15997    with_gnu_ld=yes
15998    ;;
15999  openbsd*)
16000    with_gnu_ld=no
16001    ;;
16002  esac
16003
16004  ld_shlibs_GCJ=yes
16005  if test "$with_gnu_ld" = yes; then
16006    # If archive_cmds runs LD, not CC, wlarc should be empty
16007    wlarc='${wl}'
16008
16009    # Set some defaults for GNU ld with shared library support. These
16010    # are reset later if shared libraries are not supported. Putting them
16011    # here allows them to be overridden if necessary.
16012    runpath_var=LD_RUN_PATH
16013    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015    # ancient GNU ld didn't support --whole-archive et. al.
16016    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16018      else
16019  	whole_archive_flag_spec_GCJ=
16020    fi
16021    supports_anon_versioning=no
16022    case `$LD -v 2>/dev/null` in
16023      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16024      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16025      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16026      *\ 2.11.*) ;; # other 2.11 versions
16027      *) supports_anon_versioning=yes ;;
16028    esac
16029
16030    # See if GNU ld supports shared libraries.
16031    case $host_os in
16032    aix3* | aix4* | aix5*)
16033      # On AIX/PPC, the GNU linker is very broken
16034      if test "$host_cpu" != ia64; then
16035	ld_shlibs_GCJ=no
16036	cat <<EOF 1>&2
16037
16038*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16039*** to be unable to reliably create shared libraries on AIX.
16040*** Therefore, libtool is disabling shared libraries support.  If you
16041*** really care for shared libraries, you may want to modify your PATH
16042*** so that a non-GNU linker is found, and then restart.
16043
16044EOF
16045      fi
16046      ;;
16047
16048    amigaos*)
16049      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)'
16050      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16051      hardcode_minus_L_GCJ=yes
16052
16053      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16054      # that the semantics of dynamic libraries on AmigaOS, at least up
16055      # to version 4, is to share data among multiple programs linked
16056      # with the same dynamic library.  Since this doesn't match the
16057      # behavior of shared libraries on other platforms, we can't use
16058      # them.
16059      ld_shlibs_GCJ=no
16060      ;;
16061
16062    beos*)
16063      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064	allow_undefined_flag_GCJ=unsupported
16065	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16066	# support --undefined.  This deserves some investigation.  FIXME
16067	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16068      else
16069	ld_shlibs_GCJ=no
16070      fi
16071      ;;
16072
16073    cygwin* | mingw* | pw32*)
16074      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16075      # as there is no search path for DLLs.
16076      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077      allow_undefined_flag_GCJ=unsupported
16078      always_export_symbols_GCJ=no
16079      enable_shared_with_static_runtimes_GCJ=yes
16080      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16081
16082      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16083        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16084	# If the export-symbols file already is a .def file (1st line
16085	# is EXPORTS), use it as is; otherwise, prepend...
16086	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16087	  cp $export_symbols $output_objdir/$soname.def;
16088	else
16089	  echo EXPORTS > $output_objdir/$soname.def;
16090	  cat $export_symbols >> $output_objdir/$soname.def;
16091	fi~
16092	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16093      else
16094	ld_shlibs_GCJ=no
16095      fi
16096      ;;
16097
16098    interix3*)
16099      hardcode_direct_GCJ=no
16100      hardcode_shlibpath_var_GCJ=no
16101      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16102      export_dynamic_flag_spec_GCJ='${wl}-E'
16103      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16104      # Instead, shared libraries are loaded at an image base (0x10000000 by
16105      # default) and relocated if they conflict, which is a slow very memory
16106      # consuming and fragmenting process.  To avoid this, we pick a random,
16107      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16108      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16109      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16110      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16111      ;;
16112
16113    linux*)
16114      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16115	tmp_addflag=
16116	case $cc_basename,$host_cpu in
16117	pgcc*)				# Portland Group C compiler
16118	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16119	  tmp_addflag=' $pic_flag'
16120	  ;;
16121	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16122	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16123	  tmp_addflag=' $pic_flag -Mnomain' ;;
16124	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16125	  tmp_addflag=' -i_dynamic' ;;
16126	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16127	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16128	ifc* | ifort*)			# Intel Fortran compiler
16129	  tmp_addflag=' -nofor_main' ;;
16130	esac
16131	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132
16133	if test $supports_anon_versioning = yes; then
16134	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16135  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16136  $echo "local: *; };" >> $output_objdir/$libname.ver~
16137	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16138	fi
16139	link_all_deplibs_GCJ=no
16140      else
16141	ld_shlibs_GCJ=no
16142      fi
16143      ;;
16144
16145    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16146      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16147	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16148	wlarc=
16149      else
16150	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16152      fi
16153      ;;
16154
16155    solaris*)
16156      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16157	ld_shlibs_GCJ=no
16158	cat <<EOF 1>&2
16159
16160*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16161*** create shared libraries on Solaris systems.  Therefore, libtool
16162*** is disabling shared libraries support.  We urge you to upgrade GNU
16163*** binutils to release 2.9.1 or newer.  Another option is to modify
16164*** your PATH or compiler configuration so that the native linker is
16165*** used, and then restart.
16166
16167EOF
16168      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16169	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16171      else
16172	ld_shlibs_GCJ=no
16173      fi
16174      ;;
16175
16176    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16177      case `$LD -v 2>&1` in
16178        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16179	ld_shlibs_GCJ=no
16180	cat <<_LT_EOF 1>&2
16181
16182*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16183*** reliably create shared libraries on SCO systems.  Therefore, libtool
16184*** is disabling shared libraries support.  We urge you to upgrade GNU
16185*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16186*** your PATH or compiler configuration so that the native linker is
16187*** used, and then restart.
16188
16189_LT_EOF
16190	;;
16191	*)
16192	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16194	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16195	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16196	  else
16197	    ld_shlibs_GCJ=no
16198	  fi
16199	;;
16200      esac
16201      ;;
16202
16203    sunos4*)
16204      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16205      wlarc=
16206      hardcode_direct_GCJ=yes
16207      hardcode_shlibpath_var_GCJ=no
16208      ;;
16209
16210    *)
16211      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16212	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16214      else
16215	ld_shlibs_GCJ=no
16216      fi
16217      ;;
16218    esac
16219
16220    if test "$ld_shlibs_GCJ" = no; then
16221      runpath_var=
16222      hardcode_libdir_flag_spec_GCJ=
16223      export_dynamic_flag_spec_GCJ=
16224      whole_archive_flag_spec_GCJ=
16225    fi
16226  else
16227    # PORTME fill in a description of your system's linker (not GNU ld)
16228    case $host_os in
16229    aix3*)
16230      allow_undefined_flag_GCJ=unsupported
16231      always_export_symbols_GCJ=yes
16232      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'
16233      # Note: this linker hardcodes the directories in LIBPATH if there
16234      # are no directories specified by -L.
16235      hardcode_minus_L_GCJ=yes
16236      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16237	# Neither direct hardcoding nor static linking is supported with a
16238	# broken collect2.
16239	hardcode_direct_GCJ=unsupported
16240      fi
16241      ;;
16242
16243    aix4* | aix5*)
16244      if test "$host_cpu" = ia64; then
16245	# On IA64, the linker does run time linking by default, so we don't
16246	# have to do anything special.
16247	aix_use_runtimelinking=no
16248	exp_sym_flag='-Bexport'
16249	no_entry_flag=""
16250      else
16251	# If we're using GNU nm, then we don't want the "-C" option.
16252	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16253	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16254	  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'
16255	else
16256	  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'
16257	fi
16258	aix_use_runtimelinking=no
16259
16260	# Test if we are trying to use run time linking or normal
16261	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16262	# need to do runtime linking.
16263	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16264	  for ld_flag in $LDFLAGS; do
16265  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16266  	    aix_use_runtimelinking=yes
16267  	    break
16268  	  fi
16269	  done
16270	  ;;
16271	esac
16272
16273	exp_sym_flag='-bexport'
16274	no_entry_flag='-bnoentry'
16275      fi
16276
16277      # When large executables or shared objects are built, AIX ld can
16278      # have problems creating the table of contents.  If linking a library
16279      # or program results in "error TOC overflow" add -mminimal-toc to
16280      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16281      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16282
16283      archive_cmds_GCJ=''
16284      hardcode_direct_GCJ=yes
16285      hardcode_libdir_separator_GCJ=':'
16286      link_all_deplibs_GCJ=yes
16287
16288      if test "$GCC" = yes; then
16289	case $host_os in aix4.[012]|aix4.[012].*)
16290	# We only want to do this on AIX 4.2 and lower, the check
16291	# below for broken collect2 doesn't work under 4.3+
16292	  collect2name=`${CC} -print-prog-name=collect2`
16293	  if test -f "$collect2name" && \
16294  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16295	  then
16296  	  # We have reworked collect2
16297  	  hardcode_direct_GCJ=yes
16298	  else
16299  	  # We have old collect2
16300  	  hardcode_direct_GCJ=unsupported
16301  	  # It fails to find uninstalled libraries when the uninstalled
16302  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16303  	  # to unsupported forces relinking
16304  	  hardcode_minus_L_GCJ=yes
16305  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16306  	  hardcode_libdir_separator_GCJ=
16307	  fi
16308	  ;;
16309	esac
16310	shared_flag='-shared'
16311	if test "$aix_use_runtimelinking" = yes; then
16312	  shared_flag="$shared_flag "'${wl}-G'
16313	fi
16314      else
16315	# not using gcc
16316	if test "$host_cpu" = ia64; then
16317  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16318  	# chokes on -Wl,-G. The following line is correct:
16319	  shared_flag='-G'
16320	else
16321	  if test "$aix_use_runtimelinking" = yes; then
16322	    shared_flag='${wl}-G'
16323	  else
16324	    shared_flag='${wl}-bM:SRE'
16325	  fi
16326	fi
16327      fi
16328
16329      # It seems that -bexpall does not export symbols beginning with
16330      # underscore (_), so it is better to generate a list of symbols to export.
16331      always_export_symbols_GCJ=yes
16332      if test "$aix_use_runtimelinking" = yes; then
16333	# Warning - without using the other runtime loading flags (-brtl),
16334	# -berok will link without error, but may produce a broken library.
16335	allow_undefined_flag_GCJ='-berok'
16336       # Determine the default libpath from the value encoded in an empty executable.
16337       cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h.  */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h.  */
16343
16344int
16345main ()
16346{
16347
16348  ;
16349  return 0;
16350}
16351_ACEOF
16352rm -f conftest.$ac_objext conftest$ac_exeext
16353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354  (eval $ac_link) 2>conftest.er1
16355  ac_status=$?
16356  grep -v '^ *+' conftest.er1 >conftest.err
16357  rm -f conftest.er1
16358  cat conftest.err >&5
16359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360  (exit $ac_status); } &&
16361	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363  (eval $ac_try) 2>&5
16364  ac_status=$?
16365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366  (exit $ac_status); }; } &&
16367	 { ac_try='test -s conftest$ac_exeext'
16368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369  (eval $ac_try) 2>&5
16370  ac_status=$?
16371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372  (exit $ac_status); }; }; then
16373
16374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16375}'`
16376# Check for a 64-bit object if we didn't find anything.
16377if 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; }
16378}'`; fi
16379else
16380  echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383fi
16384rm -f conftest.err conftest.$ac_objext \
16385      conftest$ac_exeext conftest.$ac_ext
16386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16387
16388       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16389	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16390       else
16391	if test "$host_cpu" = ia64; then
16392	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16393	  allow_undefined_flag_GCJ="-z nodefs"
16394	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16395	else
16396	 # Determine the default libpath from the value encoded in an empty executable.
16397	 cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h.  */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h.  */
16403
16404int
16405main ()
16406{
16407
16408  ;
16409  return 0;
16410}
16411_ACEOF
16412rm -f conftest.$ac_objext conftest$ac_exeext
16413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414  (eval $ac_link) 2>conftest.er1
16415  ac_status=$?
16416  grep -v '^ *+' conftest.er1 >conftest.err
16417  rm -f conftest.er1
16418  cat conftest.err >&5
16419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420  (exit $ac_status); } &&
16421	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423  (eval $ac_try) 2>&5
16424  ac_status=$?
16425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426  (exit $ac_status); }; } &&
16427	 { ac_try='test -s conftest$ac_exeext'
16428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429  (eval $ac_try) 2>&5
16430  ac_status=$?
16431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432  (exit $ac_status); }; }; then
16433
16434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16435}'`
16436# Check for a 64-bit object if we didn't find anything.
16437if 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; }
16438}'`; fi
16439else
16440  echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443fi
16444rm -f conftest.err conftest.$ac_objext \
16445      conftest$ac_exeext conftest.$ac_ext
16446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16447
16448	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16449	  # Warning - without using the other run time loading flags,
16450	  # -berok will link without error, but may produce a broken library.
16451	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16452	  allow_undefined_flag_GCJ=' ${wl}-berok'
16453	  # Exported symbols can be pulled into shared objects from archives
16454	  whole_archive_flag_spec_GCJ='$convenience'
16455	  archive_cmds_need_lc_GCJ=yes
16456	  # This is similar to how AIX traditionally builds its shared libraries.
16457	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16458	fi
16459      fi
16460      ;;
16461
16462    amigaos*)
16463      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)'
16464      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16465      hardcode_minus_L_GCJ=yes
16466      # see comment about different semantics on the GNU ld section
16467      ld_shlibs_GCJ=no
16468      ;;
16469
16470    bsdi[45]*)
16471      export_dynamic_flag_spec_GCJ=-rdynamic
16472      ;;
16473
16474    cygwin* | mingw* | pw32*)
16475      # When not using gcc, we currently assume that we are using
16476      # Microsoft Visual C++.
16477      # hardcode_libdir_flag_spec is actually meaningless, as there is
16478      # no search path for DLLs.
16479      hardcode_libdir_flag_spec_GCJ=' '
16480      allow_undefined_flag_GCJ=unsupported
16481      # Tell ltmain to make .lib files, not .a files.
16482      libext=lib
16483      # Tell ltmain to make .dll files, not .so files.
16484      shrext_cmds=".dll"
16485      # FIXME: Setting linknames here is a bad hack.
16486      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16487      # The linker will automatically build a .lib file if we build a DLL.
16488      old_archive_From_new_cmds_GCJ='true'
16489      # FIXME: Should let the user specify the lib program.
16490      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16491      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16492      enable_shared_with_static_runtimes_GCJ=yes
16493      ;;
16494
16495    darwin* | rhapsody*)
16496      case $host_os in
16497        rhapsody* | darwin1.[012])
16498         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16499         ;;
16500       *) # Darwin 1.3 on
16501         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16502           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16503         else
16504           case ${MACOSX_DEPLOYMENT_TARGET} in
16505             10.[012])
16506               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16507               ;;
16508             10.*)
16509               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16510               ;;
16511           esac
16512         fi
16513         ;;
16514      esac
16515      archive_cmds_need_lc_GCJ=no
16516      hardcode_direct_GCJ=no
16517      hardcode_automatic_GCJ=yes
16518      hardcode_shlibpath_var_GCJ=unsupported
16519      whole_archive_flag_spec_GCJ=''
16520      link_all_deplibs_GCJ=yes
16521    if test "$GCC" = yes ; then
16522    	output_verbose_link_cmd='echo'
16523        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16524      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16525      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16526      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}'
16527      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}'
16528    else
16529      case $cc_basename in
16530        xlc*)
16531         output_verbose_link_cmd='echo'
16532         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16533         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16534          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16535         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}'
16536          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}'
16537          ;;
16538       *)
16539         ld_shlibs_GCJ=no
16540          ;;
16541      esac
16542    fi
16543      ;;
16544
16545    dgux*)
16546      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548      hardcode_shlibpath_var_GCJ=no
16549      ;;
16550
16551    freebsd1*)
16552      ld_shlibs_GCJ=no
16553      ;;
16554
16555    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16556    # support.  Future versions do this automatically, but an explicit c++rt0.o
16557    # does not break anything, and helps significantly (at the cost of a little
16558    # extra space).
16559    freebsd2.2*)
16560      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16561      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16562      hardcode_direct_GCJ=yes
16563      hardcode_shlibpath_var_GCJ=no
16564      ;;
16565
16566    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16567    freebsd2*)
16568      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16569      hardcode_direct_GCJ=yes
16570      hardcode_minus_L_GCJ=yes
16571      hardcode_shlibpath_var_GCJ=no
16572      ;;
16573
16574    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16575    freebsd* | dragonfly*)
16576      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16577      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16578      hardcode_direct_GCJ=yes
16579      hardcode_shlibpath_var_GCJ=no
16580      ;;
16581
16582    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16583    kfreebsd*-gnu)
16584      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16585      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16586      hardcode_direct_GCJ=yes
16587      hardcode_shlibpath_var_GCJ=no
16588      link_all_deplibs_GCJ=no
16589      ;;
16590
16591    hpux9*)
16592      if test "$GCC" = yes; then
16593	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'
16594      else
16595	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'
16596      fi
16597      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16598      hardcode_libdir_separator_GCJ=:
16599      hardcode_direct_GCJ=yes
16600
16601      # hardcode_minus_L: Not really in the search PATH,
16602      # but as the default location of the library.
16603      hardcode_minus_L_GCJ=yes
16604      export_dynamic_flag_spec_GCJ='${wl}-E'
16605      ;;
16606
16607    hpux10*)
16608      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16610      else
16611	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16612      fi
16613      if test "$with_gnu_ld" = no; then
16614	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615	hardcode_libdir_separator_GCJ=:
16616
16617	hardcode_direct_GCJ=yes
16618	export_dynamic_flag_spec_GCJ='${wl}-E'
16619
16620	# hardcode_minus_L: Not really in the search PATH,
16621	# but as the default location of the library.
16622	hardcode_minus_L_GCJ=yes
16623      fi
16624      ;;
16625
16626    hpux11*)
16627      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16628	case $host_cpu in
16629	hppa*64*)
16630	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631	  ;;
16632	ia64*)
16633	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16634	  ;;
16635	*)
16636	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637	  ;;
16638	esac
16639      else
16640	case $host_cpu in
16641	hppa*64*)
16642	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16643	  ;;
16644	ia64*)
16645	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16646	  ;;
16647	*)
16648	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16649	  ;;
16650	esac
16651      fi
16652      if test "$with_gnu_ld" = no; then
16653	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654	hardcode_libdir_separator_GCJ=:
16655
16656	case $host_cpu in
16657	hppa*64*|ia64*)
16658	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16659	  hardcode_direct_GCJ=no
16660	  hardcode_shlibpath_var_GCJ=no
16661	  ;;
16662	*)
16663	  hardcode_direct_GCJ=yes
16664	  export_dynamic_flag_spec_GCJ='${wl}-E'
16665
16666	  # hardcode_minus_L: Not really in the search PATH,
16667	  # but as the default location of the library.
16668	  hardcode_minus_L_GCJ=yes
16669	  ;;
16670	esac
16671      fi
16672      ;;
16673
16674    irix5* | irix6* | nonstopux*)
16675      if test "$GCC" = yes; then
16676	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'
16677      else
16678	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'
16679	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16680      fi
16681      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682      hardcode_libdir_separator_GCJ=:
16683      link_all_deplibs_GCJ=yes
16684      ;;
16685
16686    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16687      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16689      else
16690	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16691      fi
16692      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693      hardcode_direct_GCJ=yes
16694      hardcode_shlibpath_var_GCJ=no
16695      ;;
16696
16697    newsos6)
16698      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699      hardcode_direct_GCJ=yes
16700      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16701      hardcode_libdir_separator_GCJ=:
16702      hardcode_shlibpath_var_GCJ=no
16703      ;;
16704
16705    openbsd*)
16706      hardcode_direct_GCJ=yes
16707      hardcode_shlibpath_var_GCJ=no
16708      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16711	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712	export_dynamic_flag_spec_GCJ='${wl}-E'
16713      else
16714       case $host_os in
16715	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16718	   ;;
16719	 *)
16720	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16722	   ;;
16723       esac
16724      fi
16725      ;;
16726
16727    os2*)
16728      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729      hardcode_minus_L_GCJ=yes
16730      allow_undefined_flag_GCJ=unsupported
16731      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'
16732      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16733      ;;
16734
16735    osf3*)
16736      if test "$GCC" = yes; then
16737	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738	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'
16739      else
16740	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741	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'
16742      fi
16743      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744      hardcode_libdir_separator_GCJ=:
16745      ;;
16746
16747    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16748      if test "$GCC" = yes; then
16749	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750	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'
16751	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16752      else
16753	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754	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'
16755	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~
16756	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16757
16758	# Both c and cxx compiler support -rpath directly
16759	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16760      fi
16761      hardcode_libdir_separator_GCJ=:
16762      ;;
16763
16764    solaris*)
16765      no_undefined_flag_GCJ=' -z text'
16766      if test "$GCC" = yes; then
16767	wlarc='${wl}'
16768	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16771      else
16772	wlarc=''
16773	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16776      fi
16777      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778      hardcode_shlibpath_var_GCJ=no
16779      case $host_os in
16780      solaris2.[0-5] | solaris2.[0-5].*) ;;
16781      *)
16782 	# The compiler driver will combine linker options so we
16783 	# cannot just pass the convience library names through
16784 	# without $wl, iff we do not link with $LD.
16785 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16786 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16787 	case $wlarc in
16788 	'')
16789 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16790 	*)
16791 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16792 	esac ;;
16793      esac
16794      link_all_deplibs_GCJ=yes
16795      ;;
16796
16797    sunos4*)
16798      if test "x$host_vendor" = xsequent; then
16799	# Use $CC to link under sequent, because it throws in some extra .o
16800	# files that make .init and .fini sections work.
16801	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16802      else
16803	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16804      fi
16805      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806      hardcode_direct_GCJ=yes
16807      hardcode_minus_L_GCJ=yes
16808      hardcode_shlibpath_var_GCJ=no
16809      ;;
16810
16811    sysv4)
16812      case $host_vendor in
16813	sni)
16814	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815	  hardcode_direct_GCJ=yes # is this really true???
16816	;;
16817	siemens)
16818	  ## LD is ld it makes a PLAMLIB
16819	  ## CC just makes a GrossModule.
16820	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16821	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16822	  hardcode_direct_GCJ=no
16823        ;;
16824	motorola)
16825	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16827	;;
16828      esac
16829      runpath_var='LD_RUN_PATH'
16830      hardcode_shlibpath_var_GCJ=no
16831      ;;
16832
16833    sysv4.3*)
16834      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835      hardcode_shlibpath_var_GCJ=no
16836      export_dynamic_flag_spec_GCJ='-Bexport'
16837      ;;
16838
16839    sysv4*MP*)
16840      if test -d /usr/nec; then
16841	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842	hardcode_shlibpath_var_GCJ=no
16843	runpath_var=LD_RUN_PATH
16844	hardcode_runpath_var=yes
16845	ld_shlibs_GCJ=yes
16846      fi
16847      ;;
16848
16849    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16850      no_undefined_flag_GCJ='${wl}-z,text'
16851      archive_cmds_need_lc_GCJ=no
16852      hardcode_shlibpath_var_GCJ=no
16853      runpath_var='LD_RUN_PATH'
16854
16855      if test "$GCC" = yes; then
16856	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16858      else
16859	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16861      fi
16862      ;;
16863
16864    sysv5* | sco3.2v5* | sco5v6*)
16865      # Note: We can NOT use -z defs as we might desire, because we do not
16866      # link with -lc, and that would cause any symbols used from libc to
16867      # always be unresolved, which means just about no library would
16868      # ever link correctly.  If we're not using GNU ld we use -z text
16869      # though, which does catch some bad symbols but isn't as heavy-handed
16870      # as -z defs.
16871      no_undefined_flag_GCJ='${wl}-z,text'
16872      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16873      archive_cmds_need_lc_GCJ=no
16874      hardcode_shlibpath_var_GCJ=no
16875      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16876      hardcode_libdir_separator_GCJ=':'
16877      link_all_deplibs_GCJ=yes
16878      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16879      runpath_var='LD_RUN_PATH'
16880
16881      if test "$GCC" = yes; then
16882	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16884      else
16885	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16887      fi
16888      ;;
16889
16890    uts4*)
16891      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893      hardcode_shlibpath_var_GCJ=no
16894      ;;
16895
16896    *)
16897      ld_shlibs_GCJ=no
16898      ;;
16899    esac
16900  fi
16901
16902echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16903echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16904test "$ld_shlibs_GCJ" = no && can_build_shared=no
16905
16906#
16907# Do we need to explicitly link libc?
16908#
16909case "x$archive_cmds_need_lc_GCJ" in
16910x|xyes)
16911  # Assume -lc should be added
16912  archive_cmds_need_lc_GCJ=yes
16913
16914  if test "$enable_shared" = yes && test "$GCC" = yes; then
16915    case $archive_cmds_GCJ in
16916    *'~'*)
16917      # FIXME: we may have to deal with multi-command sequences.
16918      ;;
16919    '$CC '*)
16920      # Test whether the compiler implicitly links with -lc since on some
16921      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16922      # to ld, don't add -lc before -lgcc.
16923      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16924echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16925      $rm conftest*
16926      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16927
16928      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929  (eval $ac_compile) 2>&5
16930  ac_status=$?
16931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932  (exit $ac_status); } 2>conftest.err; then
16933        soname=conftest
16934        lib=conftest
16935        libobjs=conftest.$ac_objext
16936        deplibs=
16937        wl=$lt_prog_compiler_wl_GCJ
16938	pic_flag=$lt_prog_compiler_pic_GCJ
16939        compiler_flags=-v
16940        linker_flags=-v
16941        verstring=
16942        output_objdir=.
16943        libname=conftest
16944        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16945        allow_undefined_flag_GCJ=
16946        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16947  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16948  ac_status=$?
16949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950  (exit $ac_status); }
16951        then
16952	  archive_cmds_need_lc_GCJ=no
16953        else
16954	  archive_cmds_need_lc_GCJ=yes
16955        fi
16956        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16957      else
16958        cat conftest.err 1>&5
16959      fi
16960      $rm conftest*
16961      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16962echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16963      ;;
16964    esac
16965  fi
16966  ;;
16967esac
16968
16969echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16970echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16971library_names_spec=
16972libname_spec='lib$name'
16973soname_spec=
16974shrext_cmds=".so"
16975postinstall_cmds=
16976postuninstall_cmds=
16977finish_cmds=
16978finish_eval=
16979shlibpath_var=
16980shlibpath_overrides_runpath=unknown
16981version_type=none
16982dynamic_linker="$host_os ld.so"
16983sys_lib_dlsearch_path_spec="/lib /usr/lib"
16984if test "$GCC" = yes; then
16985  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16987    # if the path contains ";" then we assume it to be the separator
16988    # otherwise default to the standard path separator (i.e. ":") - it is
16989    # assumed that no part of a normal pathname contains ";" but that should
16990    # okay in the real world where ";" in dirpaths is itself problematic.
16991    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16992  else
16993    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16994  fi
16995else
16996  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16997fi
16998need_lib_prefix=unknown
16999hardcode_into_libs=no
17000
17001# when you set need_version to no, make sure it does not cause -set_version
17002# flags to be left without arguments
17003need_version=unknown
17004
17005case $host_os in
17006aix3*)
17007  version_type=linux
17008  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17009  shlibpath_var=LIBPATH
17010
17011  # AIX 3 has no versioning support, so we append a major version to the name.
17012  soname_spec='${libname}${release}${shared_ext}$major'
17013  ;;
17014
17015aix4* | aix5*)
17016  version_type=linux
17017  need_lib_prefix=no
17018  need_version=no
17019  hardcode_into_libs=yes
17020  if test "$host_cpu" = ia64; then
17021    # AIX 5 supports IA64
17022    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17023    shlibpath_var=LD_LIBRARY_PATH
17024  else
17025    # With GCC up to 2.95.x, collect2 would create an import file
17026    # for dependence libraries.  The import file would start with
17027    # the line `#! .'.  This would cause the generated library to
17028    # depend on `.', always an invalid library.  This was fixed in
17029    # development snapshots of GCC prior to 3.0.
17030    case $host_os in
17031      aix4 | aix4.[01] | aix4.[01].*)
17032      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17033	   echo ' yes '
17034	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17035	:
17036      else
17037	can_build_shared=no
17038      fi
17039      ;;
17040    esac
17041    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17042    # soname into executable. Probably we can add versioning support to
17043    # collect2, so additional links can be useful in future.
17044    if test "$aix_use_runtimelinking" = yes; then
17045      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17046      # instead of lib<name>.a to let people know that these are not
17047      # typical AIX shared libraries.
17048      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049    else
17050      # We preserve .a as extension for shared libraries through AIX4.2
17051      # and later when we are not doing run time linking.
17052      library_names_spec='${libname}${release}.a $libname.a'
17053      soname_spec='${libname}${release}${shared_ext}$major'
17054    fi
17055    shlibpath_var=LIBPATH
17056  fi
17057  ;;
17058
17059amigaos*)
17060  library_names_spec='$libname.ixlibrary $libname.a'
17061  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17062  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'
17063  ;;
17064
17065beos*)
17066  library_names_spec='${libname}${shared_ext}'
17067  dynamic_linker="$host_os ld.so"
17068  shlibpath_var=LIBRARY_PATH
17069  ;;
17070
17071bsdi[45]*)
17072  version_type=linux
17073  need_version=no
17074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075  soname_spec='${libname}${release}${shared_ext}$major'
17076  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17077  shlibpath_var=LD_LIBRARY_PATH
17078  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17079  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17080  # the default ld.so.conf also contains /usr/contrib/lib and
17081  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17082  # libtool to hard-code these into programs
17083  ;;
17084
17085cygwin* | mingw* | pw32*)
17086  version_type=windows
17087  shrext_cmds=".dll"
17088  need_version=no
17089  need_lib_prefix=no
17090
17091  case $GCC,$host_os in
17092  yes,cygwin* | yes,mingw* | yes,pw32*)
17093    library_names_spec='$libname.dll.a'
17094    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17095    postinstall_cmds='base_file=`basename \${file}`~
17096      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17097      dldir=$destdir/`dirname \$dlpath`~
17098      test -d \$dldir || mkdir -p \$dldir~
17099      $install_prog $dir/$dlname \$dldir/$dlname~
17100      chmod a+x \$dldir/$dlname'
17101    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102      dlpath=$dir/\$dldll~
17103       $rm \$dlpath'
17104    shlibpath_overrides_runpath=yes
17105
17106    case $host_os in
17107    cygwin*)
17108      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17110      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17111      ;;
17112    mingw*)
17113      # MinGW DLLs use traditional 'lib' prefix
17114      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17116      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17117        # It is most probably a Windows format PATH printed by
17118        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17119        # path with ; separators, and with drive letters. We can handle the
17120        # drive letters (cygwin fileutils understands them), so leave them,
17121        # especially as we might pass files found there to a mingw objdump,
17122        # which wouldn't understand a cygwinified path. Ahh.
17123        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17124      else
17125        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17126      fi
17127      ;;
17128    pw32*)
17129      # pw32 DLLs use 'pw' prefix rather than 'lib'
17130      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131      ;;
17132    esac
17133    ;;
17134
17135  *)
17136    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17137    ;;
17138  esac
17139  dynamic_linker='Win32 ld.exe'
17140  # FIXME: first we should search . and the directory the executable is in
17141  shlibpath_var=PATH
17142  ;;
17143
17144darwin* | rhapsody*)
17145  dynamic_linker="$host_os dyld"
17146  version_type=darwin
17147  need_lib_prefix=no
17148  need_version=no
17149  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17150  soname_spec='${libname}${release}${major}$shared_ext'
17151  shlibpath_overrides_runpath=yes
17152  shlibpath_var=DYLD_LIBRARY_PATH
17153  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17154  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17155  if test "$GCC" = yes; then
17156    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"`
17157  else
17158    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17159  fi
17160  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17161  ;;
17162
17163dgux*)
17164  version_type=linux
17165  need_lib_prefix=no
17166  need_version=no
17167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17168  soname_spec='${libname}${release}${shared_ext}$major'
17169  shlibpath_var=LD_LIBRARY_PATH
17170  ;;
17171
17172freebsd1*)
17173  dynamic_linker=no
17174  ;;
17175
17176kfreebsd*-gnu)
17177  version_type=linux
17178  need_lib_prefix=no
17179  need_version=no
17180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181  soname_spec='${libname}${release}${shared_ext}$major'
17182  shlibpath_var=LD_LIBRARY_PATH
17183  shlibpath_overrides_runpath=no
17184  hardcode_into_libs=yes
17185  dynamic_linker='GNU ld.so'
17186  ;;
17187
17188freebsd* | dragonfly*)
17189  # DragonFly does not have aout.  When/if they implement a new
17190  # versioning mechanism, adjust this.
17191  if test -x /usr/bin/objformat; then
17192    objformat=`/usr/bin/objformat`
17193  else
17194    case $host_os in
17195    freebsd[123]*) objformat=aout ;;
17196    *) objformat=elf ;;
17197    esac
17198  fi
17199  version_type=freebsd-$objformat
17200  case $version_type in
17201    freebsd-elf*)
17202      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17203      need_version=no
17204      need_lib_prefix=no
17205      ;;
17206    freebsd-*)
17207      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17208      need_version=yes
17209      ;;
17210  esac
17211  shlibpath_var=LD_LIBRARY_PATH
17212  case $host_os in
17213  freebsd2*)
17214    shlibpath_overrides_runpath=yes
17215    ;;
17216  freebsd3.[01]* | freebsdelf3.[01]*)
17217    shlibpath_overrides_runpath=yes
17218    hardcode_into_libs=yes
17219    ;;
17220  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17221  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17222    shlibpath_overrides_runpath=no
17223    hardcode_into_libs=yes
17224    ;;
17225  freebsd*) # from 4.6 on
17226    shlibpath_overrides_runpath=yes
17227    hardcode_into_libs=yes
17228    ;;
17229  esac
17230  ;;
17231
17232gnu*)
17233  version_type=linux
17234  need_lib_prefix=no
17235  need_version=no
17236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237  soname_spec='${libname}${release}${shared_ext}$major'
17238  shlibpath_var=LD_LIBRARY_PATH
17239  hardcode_into_libs=yes
17240  ;;
17241
17242hpux9* | hpux10* | hpux11*)
17243  # Give a soname corresponding to the major version so that dld.sl refuses to
17244  # link against other versions.
17245  version_type=sunos
17246  need_lib_prefix=no
17247  need_version=no
17248  case $host_cpu in
17249  ia64*)
17250    shrext_cmds='.so'
17251    hardcode_into_libs=yes
17252    dynamic_linker="$host_os dld.so"
17253    shlibpath_var=LD_LIBRARY_PATH
17254    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
17258      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17259    else
17260      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17261    fi
17262    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263    ;;
17264   hppa*64*)
17265     shrext_cmds='.sl'
17266     hardcode_into_libs=yes
17267     dynamic_linker="$host_os dld.sl"
17268     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17269     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271     soname_spec='${libname}${release}${shared_ext}$major'
17272     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17274     ;;
17275   *)
17276    shrext_cmds='.sl'
17277    dynamic_linker="$host_os dld.sl"
17278    shlibpath_var=SHLIB_PATH
17279    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281    soname_spec='${libname}${release}${shared_ext}$major'
17282    ;;
17283  esac
17284  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17285  postinstall_cmds='chmod 555 $lib'
17286  ;;
17287
17288interix3*)
17289  version_type=linux
17290  need_lib_prefix=no
17291  need_version=no
17292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17293  soname_spec='${libname}${release}${shared_ext}$major'
17294  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17295  shlibpath_var=LD_LIBRARY_PATH
17296  shlibpath_overrides_runpath=no
17297  hardcode_into_libs=yes
17298  ;;
17299
17300irix5* | irix6* | nonstopux*)
17301  case $host_os in
17302    nonstopux*) version_type=nonstopux ;;
17303    *)
17304	if test "$lt_cv_prog_gnu_ld" = yes; then
17305		version_type=linux
17306	else
17307		version_type=irix
17308	fi ;;
17309  esac
17310  need_lib_prefix=no
17311  need_version=no
17312  soname_spec='${libname}${release}${shared_ext}$major'
17313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17314  case $host_os in
17315  irix5* | nonstopux*)
17316    libsuff= shlibsuff=
17317    ;;
17318  *)
17319    case $LD in # libtool.m4 will add one of these switches to LD
17320    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17321      libsuff= shlibsuff= libmagic=32-bit;;
17322    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17323      libsuff=32 shlibsuff=N32 libmagic=N32;;
17324    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17325      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17326    *) libsuff= shlibsuff= libmagic=never-match;;
17327    esac
17328    ;;
17329  esac
17330  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17331  shlibpath_overrides_runpath=no
17332  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17333  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17334  hardcode_into_libs=yes
17335  ;;
17336
17337# No shared lib support for Linux oldld, aout, or coff.
17338linux*oldld* | linux*aout* | linux*coff*)
17339  dynamic_linker=no
17340  ;;
17341
17342# This must be Linux ELF.
17343linux*)
17344  version_type=linux
17345  need_lib_prefix=no
17346  need_version=no
17347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348  soname_spec='${libname}${release}${shared_ext}$major'
17349  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17350  shlibpath_var=LD_LIBRARY_PATH
17351  shlibpath_overrides_runpath=no
17352  # This implies no fast_install, which is unacceptable.
17353  # Some rework will be needed to allow for fast_install
17354  # before this can be enabled.
17355  hardcode_into_libs=yes
17356
17357  # Append ld.so.conf contents to the search path
17358  if test -f /etc/ld.so.conf; then
17359    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17360    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17361  fi
17362
17363  # We used to test for /lib/ld.so.1 and disable shared libraries on
17364  # powerpc, because MkLinux only supported shared libraries with the
17365  # GNU dynamic linker.  Since this was broken with cross compilers,
17366  # most powerpc-linux boxes support dynamic linking these days and
17367  # people can always --disable-shared, the test was removed, and we
17368  # assume the GNU/Linux dynamic linker is in use.
17369  dynamic_linker='GNU/Linux ld.so'
17370  ;;
17371
17372netbsdelf*-gnu)
17373  version_type=linux
17374  need_lib_prefix=no
17375  need_version=no
17376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377  soname_spec='${libname}${release}${shared_ext}$major'
17378  shlibpath_var=LD_LIBRARY_PATH
17379  shlibpath_overrides_runpath=no
17380  hardcode_into_libs=yes
17381  dynamic_linker='NetBSD ld.elf_so'
17382  ;;
17383
17384knetbsd*-gnu)
17385  version_type=linux
17386  need_lib_prefix=no
17387  need_version=no
17388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389  soname_spec='${libname}${release}${shared_ext}$major'
17390  shlibpath_var=LD_LIBRARY_PATH
17391  shlibpath_overrides_runpath=no
17392  hardcode_into_libs=yes
17393  dynamic_linker='GNU ld.so'
17394  ;;
17395
17396netbsd*)
17397  version_type=sunos
17398  need_lib_prefix=no
17399  need_version=no
17400  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403    dynamic_linker='NetBSD (a.out) ld.so'
17404  else
17405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406    soname_spec='${libname}${release}${shared_ext}$major'
17407    dynamic_linker='NetBSD ld.elf_so'
17408  fi
17409  shlibpath_var=LD_LIBRARY_PATH
17410  shlibpath_overrides_runpath=yes
17411  hardcode_into_libs=yes
17412  ;;
17413
17414newsos6)
17415  version_type=linux
17416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417  shlibpath_var=LD_LIBRARY_PATH
17418  shlibpath_overrides_runpath=yes
17419  ;;
17420
17421nto-qnx*)
17422  version_type=linux
17423  need_lib_prefix=no
17424  need_version=no
17425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426  soname_spec='${libname}${release}${shared_ext}$major'
17427  shlibpath_var=LD_LIBRARY_PATH
17428  shlibpath_overrides_runpath=yes
17429  ;;
17430
17431openbsd*)
17432  version_type=sunos
17433  sys_lib_dlsearch_path_spec="/usr/lib"
17434  need_lib_prefix=no
17435  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17436  case $host_os in
17437    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17438    *)                         need_version=no  ;;
17439  esac
17440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17442  shlibpath_var=LD_LIBRARY_PATH
17443  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17444    case $host_os in
17445      openbsd2.[89] | openbsd2.[89].*)
17446	shlibpath_overrides_runpath=no
17447	;;
17448      *)
17449	shlibpath_overrides_runpath=yes
17450	;;
17451      esac
17452  else
17453    shlibpath_overrides_runpath=yes
17454  fi
17455  ;;
17456
17457os2*)
17458  libname_spec='$name'
17459  shrext_cmds=".dll"
17460  need_lib_prefix=no
17461  library_names_spec='$libname${shared_ext} $libname.a'
17462  dynamic_linker='OS/2 ld.exe'
17463  shlibpath_var=LIBPATH
17464  ;;
17465
17466osf3* | osf4* | osf5*)
17467  version_type=osf
17468  need_lib_prefix=no
17469  need_version=no
17470  soname_spec='${libname}${release}${shared_ext}$major'
17471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472  shlibpath_var=LD_LIBRARY_PATH
17473  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17474  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17475  ;;
17476
17477solaris*)
17478  version_type=linux
17479  need_lib_prefix=no
17480  need_version=no
17481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482  soname_spec='${libname}${release}${shared_ext}$major'
17483  shlibpath_var=LD_LIBRARY_PATH
17484  shlibpath_overrides_runpath=yes
17485  hardcode_into_libs=yes
17486  # ldd complains unless libraries are executable
17487  postinstall_cmds='chmod +x $lib'
17488  ;;
17489
17490sunos4*)
17491  version_type=sunos
17492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17494  shlibpath_var=LD_LIBRARY_PATH
17495  shlibpath_overrides_runpath=yes
17496  if test "$with_gnu_ld" = yes; then
17497    need_lib_prefix=no
17498  fi
17499  need_version=yes
17500  ;;
17501
17502sysv4 | sysv4.3*)
17503  version_type=linux
17504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505  soname_spec='${libname}${release}${shared_ext}$major'
17506  shlibpath_var=LD_LIBRARY_PATH
17507  case $host_vendor in
17508    sni)
17509      shlibpath_overrides_runpath=no
17510      need_lib_prefix=no
17511      export_dynamic_flag_spec='${wl}-Blargedynsym'
17512      runpath_var=LD_RUN_PATH
17513      ;;
17514    siemens)
17515      need_lib_prefix=no
17516      ;;
17517    motorola)
17518      need_lib_prefix=no
17519      need_version=no
17520      shlibpath_overrides_runpath=no
17521      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17522      ;;
17523  esac
17524  ;;
17525
17526sysv4*MP*)
17527  if test -d /usr/nec ;then
17528    version_type=linux
17529    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17530    soname_spec='$libname${shared_ext}.$major'
17531    shlibpath_var=LD_LIBRARY_PATH
17532  fi
17533  ;;
17534
17535sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17536  version_type=freebsd-elf
17537  need_lib_prefix=no
17538  need_version=no
17539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540  soname_spec='${libname}${release}${shared_ext}$major'
17541  shlibpath_var=LD_LIBRARY_PATH
17542  hardcode_into_libs=yes
17543  if test "$with_gnu_ld" = yes; then
17544    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17545    shlibpath_overrides_runpath=no
17546  else
17547    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17548    shlibpath_overrides_runpath=yes
17549    case $host_os in
17550      sco3.2v5*)
17551        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17552	;;
17553    esac
17554  fi
17555  sys_lib_dlsearch_path_spec='/usr/lib'
17556  ;;
17557
17558uts4*)
17559  version_type=linux
17560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561  soname_spec='${libname}${release}${shared_ext}$major'
17562  shlibpath_var=LD_LIBRARY_PATH
17563  ;;
17564
17565*)
17566  dynamic_linker=no
17567  ;;
17568esac
17569echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17570echo "${ECHO_T}$dynamic_linker" >&6
17571test "$dynamic_linker" = no && can_build_shared=no
17572
17573variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17574if test "$GCC" = yes; then
17575  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17576fi
17577
17578echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580hardcode_action_GCJ=
17581if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582   test -n "$runpath_var_GCJ" || \
17583   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17584
17585  # We can hardcode non-existant directories.
17586  if test "$hardcode_direct_GCJ" != no &&
17587     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17588     # have to relink, otherwise we might link with an installed library
17589     # when we should be linking with a yet-to-be-installed one
17590     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591     test "$hardcode_minus_L_GCJ" != no; then
17592    # Linking always hardcodes the temporary library directory.
17593    hardcode_action_GCJ=relink
17594  else
17595    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17596    hardcode_action_GCJ=immediate
17597  fi
17598else
17599  # We cannot hardcode anything, or else we can only hardcode existing
17600  # directories.
17601  hardcode_action_GCJ=unsupported
17602fi
17603echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604echo "${ECHO_T}$hardcode_action_GCJ" >&6
17605
17606if test "$hardcode_action_GCJ" = relink; then
17607  # Fast installation is not supported
17608  enable_fast_install=no
17609elif test "$shlibpath_overrides_runpath" = yes ||
17610     test "$enable_shared" = no; then
17611  # Fast installation is not necessary
17612  enable_fast_install=needless
17613fi
17614
17615
17616# The else clause should only fire when bootstrapping the
17617# libtool distribution, otherwise you forgot to ship ltmain.sh
17618# with your package, and you will get complaints that there are
17619# no rules to generate ltmain.sh.
17620if test -f "$ltmain"; then
17621  # See if we are running on zsh, and set the options which allow our commands through
17622  # without removal of \ escapes.
17623  if test -n "${ZSH_VERSION+set}" ; then
17624    setopt NO_GLOB_SUBST
17625  fi
17626  # Now quote all the things that may contain metacharacters while being
17627  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17628  # variables and quote the copies for generation of the libtool script.
17629  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17630    SED SHELL STRIP \
17631    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633    deplibs_check_method reload_flag reload_cmds need_locks \
17634    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635    lt_cv_sys_global_symbol_to_c_name_address \
17636    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637    old_postinstall_cmds old_postuninstall_cmds \
17638    compiler_GCJ \
17639    CC_GCJ \
17640    LD_GCJ \
17641    lt_prog_compiler_wl_GCJ \
17642    lt_prog_compiler_pic_GCJ \
17643    lt_prog_compiler_static_GCJ \
17644    lt_prog_compiler_no_builtin_flag_GCJ \
17645    export_dynamic_flag_spec_GCJ \
17646    thread_safe_flag_spec_GCJ \
17647    whole_archive_flag_spec_GCJ \
17648    enable_shared_with_static_runtimes_GCJ \
17649    old_archive_cmds_GCJ \
17650    old_archive_from_new_cmds_GCJ \
17651    predep_objects_GCJ \
17652    postdep_objects_GCJ \
17653    predeps_GCJ \
17654    postdeps_GCJ \
17655    compiler_lib_search_path_GCJ \
17656    archive_cmds_GCJ \
17657    archive_expsym_cmds_GCJ \
17658    postinstall_cmds_GCJ \
17659    postuninstall_cmds_GCJ \
17660    old_archive_from_expsyms_cmds_GCJ \
17661    allow_undefined_flag_GCJ \
17662    no_undefined_flag_GCJ \
17663    export_symbols_cmds_GCJ \
17664    hardcode_libdir_flag_spec_GCJ \
17665    hardcode_libdir_flag_spec_ld_GCJ \
17666    hardcode_libdir_separator_GCJ \
17667    hardcode_automatic_GCJ \
17668    module_cmds_GCJ \
17669    module_expsym_cmds_GCJ \
17670    lt_cv_prog_compiler_c_o_GCJ \
17671    exclude_expsyms_GCJ \
17672    include_expsyms_GCJ; do
17673
17674    case $var in
17675    old_archive_cmds_GCJ | \
17676    old_archive_from_new_cmds_GCJ | \
17677    archive_cmds_GCJ | \
17678    archive_expsym_cmds_GCJ | \
17679    module_cmds_GCJ | \
17680    module_expsym_cmds_GCJ | \
17681    old_archive_from_expsyms_cmds_GCJ | \
17682    export_symbols_cmds_GCJ | \
17683    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684    postinstall_cmds | postuninstall_cmds | \
17685    old_postinstall_cmds | old_postuninstall_cmds | \
17686    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687      # Double-quote double-evaled strings.
17688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17689      ;;
17690    *)
17691      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17692      ;;
17693    esac
17694  done
17695
17696  case $lt_echo in
17697  *'\$0 --fallback-echo"')
17698    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17699    ;;
17700  esac
17701
17702cfgfile="$ofile"
17703
17704  cat <<__EOF__ >> "$cfgfile"
17705# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17706
17707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708
17709# Shell to use when invoking shell scripts.
17710SHELL=$lt_SHELL
17711
17712# Whether or not to build shared libraries.
17713build_libtool_libs=$enable_shared
17714
17715# Whether or not to build static libraries.
17716build_old_libs=$enable_static
17717
17718# Whether or not to add -lc for building shared libraries.
17719build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17720
17721# Whether or not to disallow shared libs when runtime libs are static
17722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17723
17724# Whether or not to optimize for fast installation.
17725fast_install=$enable_fast_install
17726
17727# The host system.
17728host_alias=$host_alias
17729host=$host
17730host_os=$host_os
17731
17732# The build system.
17733build_alias=$build_alias
17734build=$build
17735build_os=$build_os
17736
17737# An echo program that does not interpret backslashes.
17738echo=$lt_echo
17739
17740# The archiver.
17741AR=$lt_AR
17742AR_FLAGS=$lt_AR_FLAGS
17743
17744# A C compiler.
17745LTCC=$lt_LTCC
17746
17747# LTCC compiler flags.
17748LTCFLAGS=$lt_LTCFLAGS
17749
17750# A language-specific compiler.
17751CC=$lt_compiler_GCJ
17752
17753# Is the compiler the GNU C compiler?
17754with_gcc=$GCC_GCJ
17755
17756# An ERE matcher.
17757EGREP=$lt_EGREP
17758
17759# The linker used to build libraries.
17760LD=$lt_LD_GCJ
17761
17762# Whether we need hard or soft links.
17763LN_S=$lt_LN_S
17764
17765# A BSD-compatible nm program.
17766NM=$lt_NM
17767
17768# A symbol stripping program
17769STRIP=$lt_STRIP
17770
17771# Used to examine libraries when file_magic_cmd begins "file"
17772MAGIC_CMD=$MAGIC_CMD
17773
17774# Used on cygwin: DLL creation program.
17775DLLTOOL="$DLLTOOL"
17776
17777# Used on cygwin: object dumper.
17778OBJDUMP="$OBJDUMP"
17779
17780# Used on cygwin: assembler.
17781AS="$AS"
17782
17783# The name of the directory that contains temporary libtool files.
17784objdir=$objdir
17785
17786# How to create reloadable object files.
17787reload_flag=$lt_reload_flag
17788reload_cmds=$lt_reload_cmds
17789
17790# How to pass a linker flag through the compiler.
17791wl=$lt_lt_prog_compiler_wl_GCJ
17792
17793# Object file suffix (normally "o").
17794objext="$ac_objext"
17795
17796# Old archive suffix (normally "a").
17797libext="$libext"
17798
17799# Shared library suffix (normally ".so").
17800shrext_cmds='$shrext_cmds'
17801
17802# Executable file suffix (normally "").
17803exeext="$exeext"
17804
17805# Additional compiler flags for building library objects.
17806pic_flag=$lt_lt_prog_compiler_pic_GCJ
17807pic_mode=$pic_mode
17808
17809# What is the maximum length of a command?
17810max_cmd_len=$lt_cv_sys_max_cmd_len
17811
17812# Does compiler simultaneously support -c and -o options?
17813compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17814
17815# Must we lock files when doing compilation?
17816need_locks=$lt_need_locks
17817
17818# Do we need the lib prefix for modules?
17819need_lib_prefix=$need_lib_prefix
17820
17821# Do we need a version for libraries?
17822need_version=$need_version
17823
17824# Whether dlopen is supported.
17825dlopen_support=$enable_dlopen
17826
17827# Whether dlopen of programs is supported.
17828dlopen_self=$enable_dlopen_self
17829
17830# Whether dlopen of statically linked programs is supported.
17831dlopen_self_static=$enable_dlopen_self_static
17832
17833# Compiler flag to prevent dynamic linking.
17834link_static_flag=$lt_lt_prog_compiler_static_GCJ
17835
17836# Compiler flag to turn off builtin functions.
17837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17838
17839# Compiler flag to allow reflexive dlopens.
17840export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17841
17842# Compiler flag to generate shared objects directly from archives.
17843whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17844
17845# Compiler flag to generate thread-safe objects.
17846thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17847
17848# Library versioning type.
17849version_type=$version_type
17850
17851# Format of library name prefix.
17852libname_spec=$lt_libname_spec
17853
17854# List of archive names.  First name is the real one, the rest are links.
17855# The last name is the one that the linker finds with -lNAME.
17856library_names_spec=$lt_library_names_spec
17857
17858# The coded name of the library, if different from the real name.
17859soname_spec=$lt_soname_spec
17860
17861# Commands used to build and install an old-style archive.
17862RANLIB=$lt_RANLIB
17863old_archive_cmds=$lt_old_archive_cmds_GCJ
17864old_postinstall_cmds=$lt_old_postinstall_cmds
17865old_postuninstall_cmds=$lt_old_postuninstall_cmds
17866
17867# Create an old-style archive from a shared archive.
17868old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17869
17870# Create a temporary old-style archive to link instead of a shared archive.
17871old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17872
17873# Commands used to build and install a shared archive.
17874archive_cmds=$lt_archive_cmds_GCJ
17875archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17876postinstall_cmds=$lt_postinstall_cmds
17877postuninstall_cmds=$lt_postuninstall_cmds
17878
17879# Commands used to build a loadable module (assumed same as above if empty)
17880module_cmds=$lt_module_cmds_GCJ
17881module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17882
17883# Commands to strip libraries.
17884old_striplib=$lt_old_striplib
17885striplib=$lt_striplib
17886
17887# Dependencies to place before the objects being linked to create a
17888# shared library.
17889predep_objects=$lt_predep_objects_GCJ
17890
17891# Dependencies to place after the objects being linked to create a
17892# shared library.
17893postdep_objects=$lt_postdep_objects_GCJ
17894
17895# Dependencies to place before the objects being linked to create a
17896# shared library.
17897predeps=$lt_predeps_GCJ
17898
17899# Dependencies to place after the objects being linked to create a
17900# shared library.
17901postdeps=$lt_postdeps_GCJ
17902
17903# The library search path used internally by the compiler when linking
17904# a shared library.
17905compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17906
17907# Method to check whether dependent libraries are shared objects.
17908deplibs_check_method=$lt_deplibs_check_method
17909
17910# Command to use when deplibs_check_method == file_magic.
17911file_magic_cmd=$lt_file_magic_cmd
17912
17913# Flag that allows shared libraries with undefined symbols to be built.
17914allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17915
17916# Flag that forces no undefined symbols.
17917no_undefined_flag=$lt_no_undefined_flag_GCJ
17918
17919# Commands used to finish a libtool library installation in a directory.
17920finish_cmds=$lt_finish_cmds
17921
17922# Same as above, but a single script fragment to be evaled but not shown.
17923finish_eval=$lt_finish_eval
17924
17925# Take the output of nm and produce a listing of raw symbols and C names.
17926global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17927
17928# Transform the output of nm in a proper C declaration
17929global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17930
17931# Transform the output of nm in a C name address pair
17932global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17933
17934# This is the shared library runtime path variable.
17935runpath_var=$runpath_var
17936
17937# This is the shared library path variable.
17938shlibpath_var=$shlibpath_var
17939
17940# Is shlibpath searched before the hard-coded library search path?
17941shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17942
17943# How to hardcode a shared library path into an executable.
17944hardcode_action=$hardcode_action_GCJ
17945
17946# Whether we should hardcode library paths into libraries.
17947hardcode_into_libs=$hardcode_into_libs
17948
17949# Flag to hardcode \$libdir into a binary during linking.
17950# This must work even if \$libdir does not exist.
17951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17952
17953# If ld is used when linking, flag to hardcode \$libdir into
17954# a binary during linking. This must work even if \$libdir does
17955# not exist.
17956hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17957
17958# Whether we need a single -rpath flag with a separated argument.
17959hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17960
17961# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962# resulting binary.
17963hardcode_direct=$hardcode_direct_GCJ
17964
17965# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966# resulting binary.
17967hardcode_minus_L=$hardcode_minus_L_GCJ
17968
17969# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970# the resulting binary.
17971hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17972
17973# Set to yes if building a shared library automatically hardcodes DIR into the library
17974# and all subsequent libraries and executables linked against it.
17975hardcode_automatic=$hardcode_automatic_GCJ
17976
17977# Variables whose values should be saved in libtool wrapper scripts and
17978# restored at relink time.
17979variables_saved_for_relink="$variables_saved_for_relink"
17980
17981# Whether libtool must link a program against all its dependency libraries.
17982link_all_deplibs=$link_all_deplibs_GCJ
17983
17984# Compile-time system search path for libraries
17985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17986
17987# Run-time system search path for libraries
17988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17989
17990# Fix the shell variable \$srcfile for the compiler.
17991fix_srcfile_path="$fix_srcfile_path_GCJ"
17992
17993# Set to yes if exported symbols are required.
17994always_export_symbols=$always_export_symbols_GCJ
17995
17996# The commands to list exported symbols.
17997export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17998
17999# The commands to extract the exported symbol list from a shared archive.
18000extract_expsyms_cmds=$lt_extract_expsyms_cmds
18001
18002# Symbols that should not be listed in the preloaded symbols.
18003exclude_expsyms=$lt_exclude_expsyms_GCJ
18004
18005# Symbols that must always be exported.
18006include_expsyms=$lt_include_expsyms_GCJ
18007
18008# ### END LIBTOOL TAG CONFIG: $tagname
18009
18010__EOF__
18011
18012
18013else
18014  # If there is no Makefile yet, we rely on a make rule to execute
18015  # `config.status --recheck' to rerun these tests and create the
18016  # libtool script then.
18017  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18018  if test -f "$ltmain_in"; then
18019    test -f Makefile && make "$ltmain"
18020  fi
18021fi
18022
18023
18024ac_ext=c
18025ac_cpp='$CPP $CPPFLAGS'
18026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029
18030CC="$lt_save_CC"
18031
18032	else
18033	  tagname=""
18034	fi
18035	;;
18036
18037      RC)
18038
18039
18040
18041# Source file extension for RC test sources.
18042ac_ext=rc
18043
18044# Object file extension for compiled RC test sources.
18045objext=o
18046objext_RC=$objext
18047
18048# Code to be used in simple compile tests
18049lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18050
18051# Code to be used in simple link tests
18052lt_simple_link_test_code="$lt_simple_compile_test_code"
18053
18054# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18055
18056# If no C compiler was specified, use CC.
18057LTCC=${LTCC-"$CC"}
18058
18059# If no C compiler flags were specified, use CFLAGS.
18060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18061
18062# Allow CC to be a program name with arguments.
18063compiler=$CC
18064
18065
18066# save warnings/boilerplate of simple test code
18067ac_outfile=conftest.$ac_objext
18068printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18070_lt_compiler_boilerplate=`cat conftest.err`
18071$rm conftest*
18072
18073ac_outfile=conftest.$ac_objext
18074printf "$lt_simple_link_test_code" >conftest.$ac_ext
18075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18076_lt_linker_boilerplate=`cat conftest.err`
18077$rm conftest*
18078
18079
18080# Allow CC to be a program name with arguments.
18081lt_save_CC="$CC"
18082CC=${RC-"windres"}
18083compiler=$CC
18084compiler_RC=$CC
18085for cc_temp in $compiler""; do
18086  case $cc_temp in
18087    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18088    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18089    \-*) ;;
18090    *) break;;
18091  esac
18092done
18093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18094
18095lt_cv_prog_compiler_c_o_RC=yes
18096
18097# The else clause should only fire when bootstrapping the
18098# libtool distribution, otherwise you forgot to ship ltmain.sh
18099# with your package, and you will get complaints that there are
18100# no rules to generate ltmain.sh.
18101if test -f "$ltmain"; then
18102  # See if we are running on zsh, and set the options which allow our commands through
18103  # without removal of \ escapes.
18104  if test -n "${ZSH_VERSION+set}" ; then
18105    setopt NO_GLOB_SUBST
18106  fi
18107  # Now quote all the things that may contain metacharacters while being
18108  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18109  # variables and quote the copies for generation of the libtool script.
18110  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18111    SED SHELL STRIP \
18112    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18113    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18114    deplibs_check_method reload_flag reload_cmds need_locks \
18115    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18116    lt_cv_sys_global_symbol_to_c_name_address \
18117    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18118    old_postinstall_cmds old_postuninstall_cmds \
18119    compiler_RC \
18120    CC_RC \
18121    LD_RC \
18122    lt_prog_compiler_wl_RC \
18123    lt_prog_compiler_pic_RC \
18124    lt_prog_compiler_static_RC \
18125    lt_prog_compiler_no_builtin_flag_RC \
18126    export_dynamic_flag_spec_RC \
18127    thread_safe_flag_spec_RC \
18128    whole_archive_flag_spec_RC \
18129    enable_shared_with_static_runtimes_RC \
18130    old_archive_cmds_RC \
18131    old_archive_from_new_cmds_RC \
18132    predep_objects_RC \
18133    postdep_objects_RC \
18134    predeps_RC \
18135    postdeps_RC \
18136    compiler_lib_search_path_RC \
18137    archive_cmds_RC \
18138    archive_expsym_cmds_RC \
18139    postinstall_cmds_RC \
18140    postuninstall_cmds_RC \
18141    old_archive_from_expsyms_cmds_RC \
18142    allow_undefined_flag_RC \
18143    no_undefined_flag_RC \
18144    export_symbols_cmds_RC \
18145    hardcode_libdir_flag_spec_RC \
18146    hardcode_libdir_flag_spec_ld_RC \
18147    hardcode_libdir_separator_RC \
18148    hardcode_automatic_RC \
18149    module_cmds_RC \
18150    module_expsym_cmds_RC \
18151    lt_cv_prog_compiler_c_o_RC \
18152    exclude_expsyms_RC \
18153    include_expsyms_RC; do
18154
18155    case $var in
18156    old_archive_cmds_RC | \
18157    old_archive_from_new_cmds_RC | \
18158    archive_cmds_RC | \
18159    archive_expsym_cmds_RC | \
18160    module_cmds_RC | \
18161    module_expsym_cmds_RC | \
18162    old_archive_from_expsyms_cmds_RC | \
18163    export_symbols_cmds_RC | \
18164    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18165    postinstall_cmds | postuninstall_cmds | \
18166    old_postinstall_cmds | old_postuninstall_cmds | \
18167    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18168      # Double-quote double-evaled strings.
18169      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18170      ;;
18171    *)
18172      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18173      ;;
18174    esac
18175  done
18176
18177  case $lt_echo in
18178  *'\$0 --fallback-echo"')
18179    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18180    ;;
18181  esac
18182
18183cfgfile="$ofile"
18184
18185  cat <<__EOF__ >> "$cfgfile"
18186# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18187
18188# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18189
18190# Shell to use when invoking shell scripts.
18191SHELL=$lt_SHELL
18192
18193# Whether or not to build shared libraries.
18194build_libtool_libs=$enable_shared
18195
18196# Whether or not to build static libraries.
18197build_old_libs=$enable_static
18198
18199# Whether or not to add -lc for building shared libraries.
18200build_libtool_need_lc=$archive_cmds_need_lc_RC
18201
18202# Whether or not to disallow shared libs when runtime libs are static
18203allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18204
18205# Whether or not to optimize for fast installation.
18206fast_install=$enable_fast_install
18207
18208# The host system.
18209host_alias=$host_alias
18210host=$host
18211host_os=$host_os
18212
18213# The build system.
18214build_alias=$build_alias
18215build=$build
18216build_os=$build_os
18217
18218# An echo program that does not interpret backslashes.
18219echo=$lt_echo
18220
18221# The archiver.
18222AR=$lt_AR
18223AR_FLAGS=$lt_AR_FLAGS
18224
18225# A C compiler.
18226LTCC=$lt_LTCC
18227
18228# LTCC compiler flags.
18229LTCFLAGS=$lt_LTCFLAGS
18230
18231# A language-specific compiler.
18232CC=$lt_compiler_RC
18233
18234# Is the compiler the GNU C compiler?
18235with_gcc=$GCC_RC
18236
18237# An ERE matcher.
18238EGREP=$lt_EGREP
18239
18240# The linker used to build libraries.
18241LD=$lt_LD_RC
18242
18243# Whether we need hard or soft links.
18244LN_S=$lt_LN_S
18245
18246# A BSD-compatible nm program.
18247NM=$lt_NM
18248
18249# A symbol stripping program
18250STRIP=$lt_STRIP
18251
18252# Used to examine libraries when file_magic_cmd begins "file"
18253MAGIC_CMD=$MAGIC_CMD
18254
18255# Used on cygwin: DLL creation program.
18256DLLTOOL="$DLLTOOL"
18257
18258# Used on cygwin: object dumper.
18259OBJDUMP="$OBJDUMP"
18260
18261# Used on cygwin: assembler.
18262AS="$AS"
18263
18264# The name of the directory that contains temporary libtool files.
18265objdir=$objdir
18266
18267# How to create reloadable object files.
18268reload_flag=$lt_reload_flag
18269reload_cmds=$lt_reload_cmds
18270
18271# How to pass a linker flag through the compiler.
18272wl=$lt_lt_prog_compiler_wl_RC
18273
18274# Object file suffix (normally "o").
18275objext="$ac_objext"
18276
18277# Old archive suffix (normally "a").
18278libext="$libext"
18279
18280# Shared library suffix (normally ".so").
18281shrext_cmds='$shrext_cmds'
18282
18283# Executable file suffix (normally "").
18284exeext="$exeext"
18285
18286# Additional compiler flags for building library objects.
18287pic_flag=$lt_lt_prog_compiler_pic_RC
18288pic_mode=$pic_mode
18289
18290# What is the maximum length of a command?
18291max_cmd_len=$lt_cv_sys_max_cmd_len
18292
18293# Does compiler simultaneously support -c and -o options?
18294compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18295
18296# Must we lock files when doing compilation?
18297need_locks=$lt_need_locks
18298
18299# Do we need the lib prefix for modules?
18300need_lib_prefix=$need_lib_prefix
18301
18302# Do we need a version for libraries?
18303need_version=$need_version
18304
18305# Whether dlopen is supported.
18306dlopen_support=$enable_dlopen
18307
18308# Whether dlopen of programs is supported.
18309dlopen_self=$enable_dlopen_self
18310
18311# Whether dlopen of statically linked programs is supported.
18312dlopen_self_static=$enable_dlopen_self_static
18313
18314# Compiler flag to prevent dynamic linking.
18315link_static_flag=$lt_lt_prog_compiler_static_RC
18316
18317# Compiler flag to turn off builtin functions.
18318no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18319
18320# Compiler flag to allow reflexive dlopens.
18321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18322
18323# Compiler flag to generate shared objects directly from archives.
18324whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18325
18326# Compiler flag to generate thread-safe objects.
18327thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18328
18329# Library versioning type.
18330version_type=$version_type
18331
18332# Format of library name prefix.
18333libname_spec=$lt_libname_spec
18334
18335# List of archive names.  First name is the real one, the rest are links.
18336# The last name is the one that the linker finds with -lNAME.
18337library_names_spec=$lt_library_names_spec
18338
18339# The coded name of the library, if different from the real name.
18340soname_spec=$lt_soname_spec
18341
18342# Commands used to build and install an old-style archive.
18343RANLIB=$lt_RANLIB
18344old_archive_cmds=$lt_old_archive_cmds_RC
18345old_postinstall_cmds=$lt_old_postinstall_cmds
18346old_postuninstall_cmds=$lt_old_postuninstall_cmds
18347
18348# Create an old-style archive from a shared archive.
18349old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18350
18351# Create a temporary old-style archive to link instead of a shared archive.
18352old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18353
18354# Commands used to build and install a shared archive.
18355archive_cmds=$lt_archive_cmds_RC
18356archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18357postinstall_cmds=$lt_postinstall_cmds
18358postuninstall_cmds=$lt_postuninstall_cmds
18359
18360# Commands used to build a loadable module (assumed same as above if empty)
18361module_cmds=$lt_module_cmds_RC
18362module_expsym_cmds=$lt_module_expsym_cmds_RC
18363
18364# Commands to strip libraries.
18365old_striplib=$lt_old_striplib
18366striplib=$lt_striplib
18367
18368# Dependencies to place before the objects being linked to create a
18369# shared library.
18370predep_objects=$lt_predep_objects_RC
18371
18372# Dependencies to place after the objects being linked to create a
18373# shared library.
18374postdep_objects=$lt_postdep_objects_RC
18375
18376# Dependencies to place before the objects being linked to create a
18377# shared library.
18378predeps=$lt_predeps_RC
18379
18380# Dependencies to place after the objects being linked to create a
18381# shared library.
18382postdeps=$lt_postdeps_RC
18383
18384# The library search path used internally by the compiler when linking
18385# a shared library.
18386compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18387
18388# Method to check whether dependent libraries are shared objects.
18389deplibs_check_method=$lt_deplibs_check_method
18390
18391# Command to use when deplibs_check_method == file_magic.
18392file_magic_cmd=$lt_file_magic_cmd
18393
18394# Flag that allows shared libraries with undefined symbols to be built.
18395allow_undefined_flag=$lt_allow_undefined_flag_RC
18396
18397# Flag that forces no undefined symbols.
18398no_undefined_flag=$lt_no_undefined_flag_RC
18399
18400# Commands used to finish a libtool library installation in a directory.
18401finish_cmds=$lt_finish_cmds
18402
18403# Same as above, but a single script fragment to be evaled but not shown.
18404finish_eval=$lt_finish_eval
18405
18406# Take the output of nm and produce a listing of raw symbols and C names.
18407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18408
18409# Transform the output of nm in a proper C declaration
18410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18411
18412# Transform the output of nm in a C name address pair
18413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18414
18415# This is the shared library runtime path variable.
18416runpath_var=$runpath_var
18417
18418# This is the shared library path variable.
18419shlibpath_var=$shlibpath_var
18420
18421# Is shlibpath searched before the hard-coded library search path?
18422shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18423
18424# How to hardcode a shared library path into an executable.
18425hardcode_action=$hardcode_action_RC
18426
18427# Whether we should hardcode library paths into libraries.
18428hardcode_into_libs=$hardcode_into_libs
18429
18430# Flag to hardcode \$libdir into a binary during linking.
18431# This must work even if \$libdir does not exist.
18432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18433
18434# If ld is used when linking, flag to hardcode \$libdir into
18435# a binary during linking. This must work even if \$libdir does
18436# not exist.
18437hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18438
18439# Whether we need a single -rpath flag with a separated argument.
18440hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18441
18442# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18443# resulting binary.
18444hardcode_direct=$hardcode_direct_RC
18445
18446# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18447# resulting binary.
18448hardcode_minus_L=$hardcode_minus_L_RC
18449
18450# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18451# the resulting binary.
18452hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18453
18454# Set to yes if building a shared library automatically hardcodes DIR into the library
18455# and all subsequent libraries and executables linked against it.
18456hardcode_automatic=$hardcode_automatic_RC
18457
18458# Variables whose values should be saved in libtool wrapper scripts and
18459# restored at relink time.
18460variables_saved_for_relink="$variables_saved_for_relink"
18461
18462# Whether libtool must link a program against all its dependency libraries.
18463link_all_deplibs=$link_all_deplibs_RC
18464
18465# Compile-time system search path for libraries
18466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18467
18468# Run-time system search path for libraries
18469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18470
18471# Fix the shell variable \$srcfile for the compiler.
18472fix_srcfile_path="$fix_srcfile_path_RC"
18473
18474# Set to yes if exported symbols are required.
18475always_export_symbols=$always_export_symbols_RC
18476
18477# The commands to list exported symbols.
18478export_symbols_cmds=$lt_export_symbols_cmds_RC
18479
18480# The commands to extract the exported symbol list from a shared archive.
18481extract_expsyms_cmds=$lt_extract_expsyms_cmds
18482
18483# Symbols that should not be listed in the preloaded symbols.
18484exclude_expsyms=$lt_exclude_expsyms_RC
18485
18486# Symbols that must always be exported.
18487include_expsyms=$lt_include_expsyms_RC
18488
18489# ### END LIBTOOL TAG CONFIG: $tagname
18490
18491__EOF__
18492
18493
18494else
18495  # If there is no Makefile yet, we rely on a make rule to execute
18496  # `config.status --recheck' to rerun these tests and create the
18497  # libtool script then.
18498  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18499  if test -f "$ltmain_in"; then
18500    test -f Makefile && make "$ltmain"
18501  fi
18502fi
18503
18504
18505ac_ext=c
18506ac_cpp='$CPP $CPPFLAGS'
18507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510
18511CC="$lt_save_CC"
18512
18513	;;
18514
18515      *)
18516	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18517echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18518   { (exit 1); exit 1; }; }
18519	;;
18520      esac
18521
18522      # Append the new tag name to the list of available tags.
18523      if test -n "$tagname" ; then
18524      available_tags="$available_tags $tagname"
18525    fi
18526    fi
18527  done
18528  IFS="$lt_save_ifs"
18529
18530  # Now substitute the updated list of available tags.
18531  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18532    mv "${ofile}T" "$ofile"
18533    chmod +x "$ofile"
18534  else
18535    rm -f "${ofile}T"
18536    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18537echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18538   { (exit 1); exit 1; }; }
18539  fi
18540fi
18541
18542
18543
18544# This can be used to rebuild libtool when needed
18545LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18546
18547# Always use our own libtool.
18548LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18549
18550# Prevent multiple expansion
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573# Check whether --with-valgrind or --without-valgrind was given.
18574if test "${with_valgrind+set}" = set; then
18575  withval="$with_valgrind"
18576
18577fi;
18578
18579if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
18580
18581cat >>confdefs.h <<\_ACEOF
18582#define INCLUDE_VALGRIND 1
18583_ACEOF
18584
18585	if test -d $with_valgrind; then
18586		CPPFLAGS="$CPPLFAGS -I$with_valgrind/include"
18587	fi
18588fi
18589
18590# Check whether --enable-libcheck or --disable-libcheck was given.
18591if test "${enable_libcheck+set}" = set; then
18592  enableval="$enable_libcheck"
18593         if test "$enableval" = "no"; then
18594                disable_libcheck=yes
18595        fi
18596
18597fi;
18598
18599ac_ext=c
18600ac_cpp='$CPP $CPPFLAGS'
18601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18603ac_compiler_gnu=$ac_cv_c_compiler_gnu
18604if test -n "$ac_tool_prefix"; then
18605  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18606set dummy ${ac_tool_prefix}gcc; ac_word=$2
18607echo "$as_me:$LINENO: checking for $ac_word" >&5
18608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18609if test "${ac_cv_prog_CC+set}" = set; then
18610  echo $ECHO_N "(cached) $ECHO_C" >&6
18611else
18612  if test -n "$CC"; then
18613  ac_cv_prog_CC="$CC" # Let the user override the test.
18614else
18615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616for as_dir in $PATH
18617do
18618  IFS=$as_save_IFS
18619  test -z "$as_dir" && as_dir=.
18620  for ac_exec_ext in '' $ac_executable_extensions; do
18621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624    break 2
18625  fi
18626done
18627done
18628
18629fi
18630fi
18631CC=$ac_cv_prog_CC
18632if test -n "$CC"; then
18633  echo "$as_me:$LINENO: result: $CC" >&5
18634echo "${ECHO_T}$CC" >&6
18635else
18636  echo "$as_me:$LINENO: result: no" >&5
18637echo "${ECHO_T}no" >&6
18638fi
18639
18640fi
18641if test -z "$ac_cv_prog_CC"; then
18642  ac_ct_CC=$CC
18643  # Extract the first word of "gcc", so it can be a program name with args.
18644set dummy gcc; ac_word=$2
18645echo "$as_me:$LINENO: checking for $ac_word" >&5
18646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18648  echo $ECHO_N "(cached) $ECHO_C" >&6
18649else
18650  if test -n "$ac_ct_CC"; then
18651  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18652else
18653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654for as_dir in $PATH
18655do
18656  IFS=$as_save_IFS
18657  test -z "$as_dir" && as_dir=.
18658  for ac_exec_ext in '' $ac_executable_extensions; do
18659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660    ac_cv_prog_ac_ct_CC="gcc"
18661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18662    break 2
18663  fi
18664done
18665done
18666
18667fi
18668fi
18669ac_ct_CC=$ac_cv_prog_ac_ct_CC
18670if test -n "$ac_ct_CC"; then
18671  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18672echo "${ECHO_T}$ac_ct_CC" >&6
18673else
18674  echo "$as_me:$LINENO: result: no" >&5
18675echo "${ECHO_T}no" >&6
18676fi
18677
18678  CC=$ac_ct_CC
18679else
18680  CC="$ac_cv_prog_CC"
18681fi
18682
18683if test -z "$CC"; then
18684  if test -n "$ac_tool_prefix"; then
18685  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18686set dummy ${ac_tool_prefix}cc; ac_word=$2
18687echo "$as_me:$LINENO: checking for $ac_word" >&5
18688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18689if test "${ac_cv_prog_CC+set}" = set; then
18690  echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
18692  if test -n "$CC"; then
18693  ac_cv_prog_CC="$CC" # Let the user override the test.
18694else
18695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696for as_dir in $PATH
18697do
18698  IFS=$as_save_IFS
18699  test -z "$as_dir" && as_dir=.
18700  for ac_exec_ext in '' $ac_executable_extensions; do
18701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702    ac_cv_prog_CC="${ac_tool_prefix}cc"
18703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18704    break 2
18705  fi
18706done
18707done
18708
18709fi
18710fi
18711CC=$ac_cv_prog_CC
18712if test -n "$CC"; then
18713  echo "$as_me:$LINENO: result: $CC" >&5
18714echo "${ECHO_T}$CC" >&6
18715else
18716  echo "$as_me:$LINENO: result: no" >&5
18717echo "${ECHO_T}no" >&6
18718fi
18719
18720fi
18721if test -z "$ac_cv_prog_CC"; then
18722  ac_ct_CC=$CC
18723  # Extract the first word of "cc", so it can be a program name with args.
18724set dummy cc; ac_word=$2
18725echo "$as_me:$LINENO: checking for $ac_word" >&5
18726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18728  echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730  if test -n "$ac_ct_CC"; then
18731  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18732else
18733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734for as_dir in $PATH
18735do
18736  IFS=$as_save_IFS
18737  test -z "$as_dir" && as_dir=.
18738  for ac_exec_ext in '' $ac_executable_extensions; do
18739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18740    ac_cv_prog_ac_ct_CC="cc"
18741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18742    break 2
18743  fi
18744done
18745done
18746
18747fi
18748fi
18749ac_ct_CC=$ac_cv_prog_ac_ct_CC
18750if test -n "$ac_ct_CC"; then
18751  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18752echo "${ECHO_T}$ac_ct_CC" >&6
18753else
18754  echo "$as_me:$LINENO: result: no" >&5
18755echo "${ECHO_T}no" >&6
18756fi
18757
18758  CC=$ac_ct_CC
18759else
18760  CC="$ac_cv_prog_CC"
18761fi
18762
18763fi
18764if test -z "$CC"; then
18765  # Extract the first word of "cc", so it can be a program name with args.
18766set dummy cc; ac_word=$2
18767echo "$as_me:$LINENO: checking for $ac_word" >&5
18768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18769if test "${ac_cv_prog_CC+set}" = set; then
18770  echo $ECHO_N "(cached) $ECHO_C" >&6
18771else
18772  if test -n "$CC"; then
18773  ac_cv_prog_CC="$CC" # Let the user override the test.
18774else
18775  ac_prog_rejected=no
18776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18777for as_dir in $PATH
18778do
18779  IFS=$as_save_IFS
18780  test -z "$as_dir" && as_dir=.
18781  for ac_exec_ext in '' $ac_executable_extensions; do
18782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18783    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18784       ac_prog_rejected=yes
18785       continue
18786     fi
18787    ac_cv_prog_CC="cc"
18788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18789    break 2
18790  fi
18791done
18792done
18793
18794if test $ac_prog_rejected = yes; then
18795  # We found a bogon in the path, so make sure we never use it.
18796  set dummy $ac_cv_prog_CC
18797  shift
18798  if test $# != 0; then
18799    # We chose a different compiler from the bogus one.
18800    # However, it has the same basename, so the bogon will be chosen
18801    # first if we set CC to just the basename; use the full file name.
18802    shift
18803    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18804  fi
18805fi
18806fi
18807fi
18808CC=$ac_cv_prog_CC
18809if test -n "$CC"; then
18810  echo "$as_me:$LINENO: result: $CC" >&5
18811echo "${ECHO_T}$CC" >&6
18812else
18813  echo "$as_me:$LINENO: result: no" >&5
18814echo "${ECHO_T}no" >&6
18815fi
18816
18817fi
18818if test -z "$CC"; then
18819  if test -n "$ac_tool_prefix"; then
18820  for ac_prog in cl
18821  do
18822    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18824echo "$as_me:$LINENO: checking for $ac_word" >&5
18825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18826if test "${ac_cv_prog_CC+set}" = set; then
18827  echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829  if test -n "$CC"; then
18830  ac_cv_prog_CC="$CC" # Let the user override the test.
18831else
18832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833for as_dir in $PATH
18834do
18835  IFS=$as_save_IFS
18836  test -z "$as_dir" && as_dir=.
18837  for ac_exec_ext in '' $ac_executable_extensions; do
18838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18839    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841    break 2
18842  fi
18843done
18844done
18845
18846fi
18847fi
18848CC=$ac_cv_prog_CC
18849if test -n "$CC"; then
18850  echo "$as_me:$LINENO: result: $CC" >&5
18851echo "${ECHO_T}$CC" >&6
18852else
18853  echo "$as_me:$LINENO: result: no" >&5
18854echo "${ECHO_T}no" >&6
18855fi
18856
18857    test -n "$CC" && break
18858  done
18859fi
18860if test -z "$CC"; then
18861  ac_ct_CC=$CC
18862  for ac_prog in cl
18863do
18864  # Extract the first word of "$ac_prog", so it can be a program name with args.
18865set dummy $ac_prog; ac_word=$2
18866echo "$as_me:$LINENO: checking for $ac_word" >&5
18867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18869  echo $ECHO_N "(cached) $ECHO_C" >&6
18870else
18871  if test -n "$ac_ct_CC"; then
18872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18873else
18874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875for as_dir in $PATH
18876do
18877  IFS=$as_save_IFS
18878  test -z "$as_dir" && as_dir=.
18879  for ac_exec_ext in '' $ac_executable_extensions; do
18880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18881    ac_cv_prog_ac_ct_CC="$ac_prog"
18882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18883    break 2
18884  fi
18885done
18886done
18887
18888fi
18889fi
18890ac_ct_CC=$ac_cv_prog_ac_ct_CC
18891if test -n "$ac_ct_CC"; then
18892  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18893echo "${ECHO_T}$ac_ct_CC" >&6
18894else
18895  echo "$as_me:$LINENO: result: no" >&5
18896echo "${ECHO_T}no" >&6
18897fi
18898
18899  test -n "$ac_ct_CC" && break
18900done
18901
18902  CC=$ac_ct_CC
18903fi
18904
18905fi
18906
18907
18908test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18909See \`config.log' for more details." >&5
18910echo "$as_me: error: no acceptable C compiler found in \$PATH
18911See \`config.log' for more details." >&2;}
18912   { (exit 1); exit 1; }; }
18913
18914# Provide some information about the compiler.
18915echo "$as_me:$LINENO:" \
18916     "checking for C compiler version" >&5
18917ac_compiler=`set X $ac_compile; echo $2`
18918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18919  (eval $ac_compiler --version </dev/null >&5) 2>&5
18920  ac_status=$?
18921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922  (exit $ac_status); }
18923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18924  (eval $ac_compiler -v </dev/null >&5) 2>&5
18925  ac_status=$?
18926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927  (exit $ac_status); }
18928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18929  (eval $ac_compiler -V </dev/null >&5) 2>&5
18930  ac_status=$?
18931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932  (exit $ac_status); }
18933
18934echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18935echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18936if test "${ac_cv_c_compiler_gnu+set}" = set; then
18937  echo $ECHO_N "(cached) $ECHO_C" >&6
18938else
18939  cat >conftest.$ac_ext <<_ACEOF
18940/* confdefs.h.  */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h.  */
18945
18946int
18947main ()
18948{
18949#ifndef __GNUC__
18950       choke me
18951#endif
18952
18953  ;
18954  return 0;
18955}
18956_ACEOF
18957rm -f conftest.$ac_objext
18958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959  (eval $ac_compile) 2>conftest.er1
18960  ac_status=$?
18961  grep -v '^ *+' conftest.er1 >conftest.err
18962  rm -f conftest.er1
18963  cat conftest.err >&5
18964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965  (exit $ac_status); } &&
18966	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968  (eval $ac_try) 2>&5
18969  ac_status=$?
18970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971  (exit $ac_status); }; } &&
18972	 { ac_try='test -s conftest.$ac_objext'
18973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974  (eval $ac_try) 2>&5
18975  ac_status=$?
18976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977  (exit $ac_status); }; }; then
18978  ac_compiler_gnu=yes
18979else
18980  echo "$as_me: failed program was:" >&5
18981sed 's/^/| /' conftest.$ac_ext >&5
18982
18983ac_compiler_gnu=no
18984fi
18985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18986ac_cv_c_compiler_gnu=$ac_compiler_gnu
18987
18988fi
18989echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
18990echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18991GCC=`test $ac_compiler_gnu = yes && echo yes`
18992ac_test_CFLAGS=${CFLAGS+set}
18993ac_save_CFLAGS=$CFLAGS
18994CFLAGS="-g"
18995echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18996echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18997if test "${ac_cv_prog_cc_g+set}" = set; then
18998  echo $ECHO_N "(cached) $ECHO_C" >&6
18999else
19000  cat >conftest.$ac_ext <<_ACEOF
19001/* confdefs.h.  */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
19005/* end confdefs.h.  */
19006
19007int
19008main ()
19009{
19010
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext
19016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017  (eval $ac_compile) 2>conftest.er1
19018  ac_status=$?
19019  grep -v '^ *+' conftest.er1 >conftest.err
19020  rm -f conftest.er1
19021  cat conftest.err >&5
19022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023  (exit $ac_status); } &&
19024	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026  (eval $ac_try) 2>&5
19027  ac_status=$?
19028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029  (exit $ac_status); }; } &&
19030	 { ac_try='test -s conftest.$ac_objext'
19031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032  (eval $ac_try) 2>&5
19033  ac_status=$?
19034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035  (exit $ac_status); }; }; then
19036  ac_cv_prog_cc_g=yes
19037else
19038  echo "$as_me: failed program was:" >&5
19039sed 's/^/| /' conftest.$ac_ext >&5
19040
19041ac_cv_prog_cc_g=no
19042fi
19043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19044fi
19045echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19046echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19047if test "$ac_test_CFLAGS" = set; then
19048  CFLAGS=$ac_save_CFLAGS
19049elif test $ac_cv_prog_cc_g = yes; then
19050  if test "$GCC" = yes; then
19051    CFLAGS="-g -O2"
19052  else
19053    CFLAGS="-g"
19054  fi
19055else
19056  if test "$GCC" = yes; then
19057    CFLAGS="-O2"
19058  else
19059    CFLAGS=
19060  fi
19061fi
19062echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19063echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19064if test "${ac_cv_prog_cc_stdc+set}" = set; then
19065  echo $ECHO_N "(cached) $ECHO_C" >&6
19066else
19067  ac_cv_prog_cc_stdc=no
19068ac_save_CC=$CC
19069cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h.  */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h.  */
19075#include <stdarg.h>
19076#include <stdio.h>
19077#include <sys/types.h>
19078#include <sys/stat.h>
19079/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19080struct buf { int x; };
19081FILE * (*rcsopen) (struct buf *, struct stat *, int);
19082static char *e (p, i)
19083     char **p;
19084     int i;
19085{
19086  return p[i];
19087}
19088static char *f (char * (*g) (char **, int), char **p, ...)
19089{
19090  char *s;
19091  va_list v;
19092  va_start (v,p);
19093  s = g (p, va_arg (v,int));
19094  va_end (v);
19095  return s;
19096}
19097
19098/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19099   function prototypes and stuff, but not '\xHH' hex character constants.
19100   These don't provoke an error unfortunately, instead are silently treated
19101   as 'x'.  The following induces an error, until -std1 is added to get
19102   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19103   array size at least.  It's necessary to write '\x00'==0 to get something
19104   that's true only with -std1.  */
19105int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19106
19107int test (int i, double x);
19108struct s1 {int (*f) (int a);};
19109struct s2 {int (*f) (double a);};
19110int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19111int argc;
19112char **argv;
19113int
19114main ()
19115{
19116return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19117  ;
19118  return 0;
19119}
19120_ACEOF
19121# Don't try gcc -ansi; that turns off useful extensions and
19122# breaks some systems' header files.
19123# AIX			-qlanglvl=ansi
19124# Ultrix and OSF/1	-std1
19125# HP-UX 10.20 and later	-Ae
19126# HP-UX older versions	-Aa -D_HPUX_SOURCE
19127# SVR4			-Xc -D__EXTENSIONS__
19128for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19129do
19130  CC="$ac_save_CC $ac_arg"
19131  rm -f conftest.$ac_objext
19132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19133  (eval $ac_compile) 2>conftest.er1
19134  ac_status=$?
19135  grep -v '^ *+' conftest.er1 >conftest.err
19136  rm -f conftest.er1
19137  cat conftest.err >&5
19138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139  (exit $ac_status); } &&
19140	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142  (eval $ac_try) 2>&5
19143  ac_status=$?
19144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145  (exit $ac_status); }; } &&
19146	 { ac_try='test -s conftest.$ac_objext'
19147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148  (eval $ac_try) 2>&5
19149  ac_status=$?
19150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151  (exit $ac_status); }; }; then
19152  ac_cv_prog_cc_stdc=$ac_arg
19153break
19154else
19155  echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158fi
19159rm -f conftest.err conftest.$ac_objext
19160done
19161rm -f conftest.$ac_ext conftest.$ac_objext
19162CC=$ac_save_CC
19163
19164fi
19165
19166case "x$ac_cv_prog_cc_stdc" in
19167  x|xno)
19168    echo "$as_me:$LINENO: result: none needed" >&5
19169echo "${ECHO_T}none needed" >&6 ;;
19170  *)
19171    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19172echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19173    CC="$CC $ac_cv_prog_cc_stdc" ;;
19174esac
19175
19176# Some people use a C++ compiler to compile C.  Since we use `exit',
19177# in C++ we need to declare it.  In case someone uses the same compiler
19178# for both compiling C and C++ we need to have the C++ compiler decide
19179# the declaration of exit, since it's the most demanding environment.
19180cat >conftest.$ac_ext <<_ACEOF
19181#ifndef __cplusplus
19182  choke me
19183#endif
19184_ACEOF
19185rm -f conftest.$ac_objext
19186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187  (eval $ac_compile) 2>conftest.er1
19188  ac_status=$?
19189  grep -v '^ *+' conftest.er1 >conftest.err
19190  rm -f conftest.er1
19191  cat conftest.err >&5
19192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193  (exit $ac_status); } &&
19194	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196  (eval $ac_try) 2>&5
19197  ac_status=$?
19198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199  (exit $ac_status); }; } &&
19200	 { ac_try='test -s conftest.$ac_objext'
19201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202  (eval $ac_try) 2>&5
19203  ac_status=$?
19204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205  (exit $ac_status); }; }; then
19206  for ac_declaration in \
19207   '' \
19208   'extern "C" void std::exit (int) throw (); using std::exit;' \
19209   'extern "C" void std::exit (int); using std::exit;' \
19210   'extern "C" void exit (int) throw ();' \
19211   'extern "C" void exit (int);' \
19212   'void exit (int);'
19213do
19214  cat >conftest.$ac_ext <<_ACEOF
19215/* confdefs.h.  */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h.  */
19220$ac_declaration
19221#include <stdlib.h>
19222int
19223main ()
19224{
19225exit (42);
19226  ;
19227  return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232  (eval $ac_compile) 2>conftest.er1
19233  ac_status=$?
19234  grep -v '^ *+' conftest.er1 >conftest.err
19235  rm -f conftest.er1
19236  cat conftest.err >&5
19237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238  (exit $ac_status); } &&
19239	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241  (eval $ac_try) 2>&5
19242  ac_status=$?
19243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244  (exit $ac_status); }; } &&
19245	 { ac_try='test -s conftest.$ac_objext'
19246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247  (eval $ac_try) 2>&5
19248  ac_status=$?
19249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250  (exit $ac_status); }; }; then
19251  :
19252else
19253  echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256continue
19257fi
19258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259  cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h.  */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h.  */
19265$ac_declaration
19266int
19267main ()
19268{
19269exit (42);
19270  ;
19271  return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276  (eval $ac_compile) 2>conftest.er1
19277  ac_status=$?
19278  grep -v '^ *+' conftest.er1 >conftest.err
19279  rm -f conftest.er1
19280  cat conftest.err >&5
19281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282  (exit $ac_status); } &&
19283	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285  (eval $ac_try) 2>&5
19286  ac_status=$?
19287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288  (exit $ac_status); }; } &&
19289	 { ac_try='test -s conftest.$ac_objext'
19290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291  (eval $ac_try) 2>&5
19292  ac_status=$?
19293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294  (exit $ac_status); }; }; then
19295  break
19296else
19297  echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300fi
19301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302done
19303rm -f conftest*
19304if test -n "$ac_declaration"; then
19305  echo '#ifdef __cplusplus' >>confdefs.h
19306  echo $ac_declaration      >>confdefs.h
19307  echo '#endif'             >>confdefs.h
19308fi
19309
19310else
19311  echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314fi
19315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19316ac_ext=c
19317ac_cpp='$CPP $CPPFLAGS'
19318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19320ac_compiler_gnu=$ac_cv_c_compiler_gnu
19321
19322depcc="$CC"   am_compiler_list=
19323
19324echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19325echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19326if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19327  echo $ECHO_N "(cached) $ECHO_C" >&6
19328else
19329  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19330  # We make a subdir and do the tests there.  Otherwise we can end up
19331  # making bogus files that we don't know about and never remove.  For
19332  # instance it was reported that on HP-UX the gcc test will end up
19333  # making a dummy file named `D' -- because `-MD' means `put the output
19334  # in D'.
19335  mkdir conftest.dir
19336  # Copy depcomp to subdir because otherwise we won't find it if we're
19337  # using a relative directory.
19338  cp "$am_depcomp" conftest.dir
19339  cd conftest.dir
19340  # We will build objects and dependencies in a subdirectory because
19341  # it helps to detect inapplicable dependency modes.  For instance
19342  # both Tru64's cc and ICC support -MD to output dependencies as a
19343  # side effect of compilation, but ICC will put the dependencies in
19344  # the current directory while Tru64 will put them in the object
19345  # directory.
19346  mkdir sub
19347
19348  am_cv_CC_dependencies_compiler_type=none
19349  if test "$am_compiler_list" = ""; then
19350     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19351  fi
19352  for depmode in $am_compiler_list; do
19353    # Setup a source with many dependencies, because some compilers
19354    # like to wrap large dependency lists on column 80 (with \), and
19355    # we should not choose a depcomp mode which is confused by this.
19356    #
19357    # We need to recreate these files for each test, as the compiler may
19358    # overwrite some of them when testing with obscure command lines.
19359    # This happens at least with the AIX C compiler.
19360    : > sub/conftest.c
19361    for i in 1 2 3 4 5 6; do
19362      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19363      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19364      # Solaris 8's {/usr,}/bin/sh.
19365      touch sub/conftst$i.h
19366    done
19367    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19368
19369    case $depmode in
19370    nosideeffect)
19371      # after this tag, mechanisms are not by side-effect, so they'll
19372      # only be used when explicitly requested
19373      if test "x$enable_dependency_tracking" = xyes; then
19374	continue
19375      else
19376	break
19377      fi
19378      ;;
19379    none) break ;;
19380    esac
19381    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19382    # mode.  It turns out that the SunPro C++ compiler does not properly
19383    # handle `-M -o', and we need to detect this.
19384    if depmode=$depmode \
19385       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19386       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19387       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19388         >/dev/null 2>conftest.err &&
19389       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19390       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19391       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19392      # icc doesn't choke on unknown options, it will just issue warnings
19393      # or remarks (even with -Werror).  So we grep stderr for any message
19394      # that says an option was ignored or not supported.
19395      # When given -MP, icc 7.0 and 7.1 complain thusly:
19396      #   icc: Command line warning: ignoring option '-M'; no argument required
19397      # The diagnosis changed in icc 8.0:
19398      #   icc: Command line remark: option '-MP' not supported
19399      if (grep 'ignoring option' conftest.err ||
19400          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19401        am_cv_CC_dependencies_compiler_type=$depmode
19402        break
19403      fi
19404    fi
19405  done
19406
19407  cd ..
19408  rm -rf conftest.dir
19409else
19410  am_cv_CC_dependencies_compiler_type=none
19411fi
19412
19413fi
19414echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19415echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19416CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19417
19418
19419
19420if
19421  test "x$enable_dependency_tracking" != xno \
19422  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19423  am__fastdepCC_TRUE=
19424  am__fastdepCC_FALSE='#'
19425else
19426  am__fastdepCC_TRUE='#'
19427  am__fastdepCC_FALSE=
19428fi
19429
19430
19431
19432echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19433echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19434if test "${ac_cv_c_const+set}" = set; then
19435  echo $ECHO_N "(cached) $ECHO_C" >&6
19436else
19437  cat >conftest.$ac_ext <<_ACEOF
19438/* confdefs.h.  */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
19442/* end confdefs.h.  */
19443
19444int
19445main ()
19446{
19447/* FIXME: Include the comments suggested by Paul. */
19448#ifndef __cplusplus
19449  /* Ultrix mips cc rejects this.  */
19450  typedef int charset[2];
19451  const charset x;
19452  /* SunOS 4.1.1 cc rejects this.  */
19453  char const *const *ccp;
19454  char **p;
19455  /* NEC SVR4.0.2 mips cc rejects this.  */
19456  struct point {int x, y;};
19457  static struct point const zero = {0,0};
19458  /* AIX XL C 1.02.0.0 rejects this.
19459     It does not let you subtract one const X* pointer from another in
19460     an arm of an if-expression whose if-part is not a constant
19461     expression */
19462  const char *g = "string";
19463  ccp = &g + (g ? g-g : 0);
19464  /* HPUX 7.0 cc rejects these. */
19465  ++ccp;
19466  p = (char**) ccp;
19467  ccp = (char const *const *) p;
19468  { /* SCO 3.2v4 cc rejects this.  */
19469    char *t;
19470    char const *s = 0 ? (char *) 0 : (char const *) 0;
19471
19472    *t++ = 0;
19473  }
19474  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19475    int x[] = {25, 17};
19476    const int *foo = &x[0];
19477    ++foo;
19478  }
19479  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19480    typedef const int *iptr;
19481    iptr p = 0;
19482    ++p;
19483  }
19484  { /* AIX XL C 1.02.0.0 rejects this saying
19485       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19486    struct s { int j; const int *ap[3]; };
19487    struct s *b; b->j = 5;
19488  }
19489  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19490    const int foo = 10;
19491  }
19492#endif
19493
19494  ;
19495  return 0;
19496}
19497_ACEOF
19498rm -f conftest.$ac_objext
19499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19500  (eval $ac_compile) 2>conftest.er1
19501  ac_status=$?
19502  grep -v '^ *+' conftest.er1 >conftest.err
19503  rm -f conftest.er1
19504  cat conftest.err >&5
19505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506  (exit $ac_status); } &&
19507	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509  (eval $ac_try) 2>&5
19510  ac_status=$?
19511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512  (exit $ac_status); }; } &&
19513	 { ac_try='test -s conftest.$ac_objext'
19514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515  (eval $ac_try) 2>&5
19516  ac_status=$?
19517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518  (exit $ac_status); }; }; then
19519  ac_cv_c_const=yes
19520else
19521  echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524ac_cv_c_const=no
19525fi
19526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19527fi
19528echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19529echo "${ECHO_T}$ac_cv_c_const" >&6
19530if test $ac_cv_c_const = no; then
19531
19532cat >>confdefs.h <<\_ACEOF
19533#define const
19534_ACEOF
19535
19536fi
19537
19538echo "$as_me:$LINENO: checking for long" >&5
19539echo $ECHO_N "checking for long... $ECHO_C" >&6
19540if test "${ac_cv_type_long+set}" = set; then
19541  echo $ECHO_N "(cached) $ECHO_C" >&6
19542else
19543  cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h.  */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h.  */
19549$ac_includes_default
19550int
19551main ()
19552{
19553if ((long *) 0)
19554  return 0;
19555if (sizeof (long))
19556  return 0;
19557  ;
19558  return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563  (eval $ac_compile) 2>conftest.er1
19564  ac_status=$?
19565  grep -v '^ *+' conftest.er1 >conftest.err
19566  rm -f conftest.er1
19567  cat conftest.err >&5
19568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569  (exit $ac_status); } &&
19570	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572  (eval $ac_try) 2>&5
19573  ac_status=$?
19574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575  (exit $ac_status); }; } &&
19576	 { ac_try='test -s conftest.$ac_objext'
19577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578  (eval $ac_try) 2>&5
19579  ac_status=$?
19580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581  (exit $ac_status); }; }; then
19582  ac_cv_type_long=yes
19583else
19584  echo "$as_me: failed program was:" >&5
19585sed 's/^/| /' conftest.$ac_ext >&5
19586
19587ac_cv_type_long=no
19588fi
19589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590fi
19591echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19592echo "${ECHO_T}$ac_cv_type_long" >&6
19593
19594echo "$as_me:$LINENO: checking size of long" >&5
19595echo $ECHO_N "checking size of long... $ECHO_C" >&6
19596if test "${ac_cv_sizeof_long+set}" = set; then
19597  echo $ECHO_N "(cached) $ECHO_C" >&6
19598else
19599  if test "$ac_cv_type_long" = yes; then
19600  # The cast to unsigned long works around a bug in the HP C Compiler
19601  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19602  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19603  # This bug is HP SR number 8606223364.
19604  if test "$cross_compiling" = yes; then
19605  # Depending upon the size, compute the lo and hi bounds.
19606cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h.  */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h.  */
19612$ac_includes_default
19613int
19614main ()
19615{
19616static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19617test_array [0] = 0
19618
19619  ;
19620  return 0;
19621}
19622_ACEOF
19623rm -f conftest.$ac_objext
19624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625  (eval $ac_compile) 2>conftest.er1
19626  ac_status=$?
19627  grep -v '^ *+' conftest.er1 >conftest.err
19628  rm -f conftest.er1
19629  cat conftest.err >&5
19630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631  (exit $ac_status); } &&
19632	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634  (eval $ac_try) 2>&5
19635  ac_status=$?
19636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637  (exit $ac_status); }; } &&
19638	 { ac_try='test -s conftest.$ac_objext'
19639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640  (eval $ac_try) 2>&5
19641  ac_status=$?
19642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643  (exit $ac_status); }; }; then
19644  ac_lo=0 ac_mid=0
19645  while :; do
19646    cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h.  */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h.  */
19652$ac_includes_default
19653int
19654main ()
19655{
19656static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19657test_array [0] = 0
19658
19659  ;
19660  return 0;
19661}
19662_ACEOF
19663rm -f conftest.$ac_objext
19664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665  (eval $ac_compile) 2>conftest.er1
19666  ac_status=$?
19667  grep -v '^ *+' conftest.er1 >conftest.err
19668  rm -f conftest.er1
19669  cat conftest.err >&5
19670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671  (exit $ac_status); } &&
19672	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674  (eval $ac_try) 2>&5
19675  ac_status=$?
19676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677  (exit $ac_status); }; } &&
19678	 { ac_try='test -s conftest.$ac_objext'
19679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680  (eval $ac_try) 2>&5
19681  ac_status=$?
19682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683  (exit $ac_status); }; }; then
19684  ac_hi=$ac_mid; break
19685else
19686  echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689ac_lo=`expr $ac_mid + 1`
19690		    if test $ac_lo -le $ac_mid; then
19691		      ac_lo= ac_hi=
19692		      break
19693		    fi
19694		    ac_mid=`expr 2 '*' $ac_mid + 1`
19695fi
19696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697  done
19698else
19699  echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702cat >conftest.$ac_ext <<_ACEOF
19703/* confdefs.h.  */
19704_ACEOF
19705cat confdefs.h >>conftest.$ac_ext
19706cat >>conftest.$ac_ext <<_ACEOF
19707/* end confdefs.h.  */
19708$ac_includes_default
19709int
19710main ()
19711{
19712static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19713test_array [0] = 0
19714
19715  ;
19716  return 0;
19717}
19718_ACEOF
19719rm -f conftest.$ac_objext
19720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19721  (eval $ac_compile) 2>conftest.er1
19722  ac_status=$?
19723  grep -v '^ *+' conftest.er1 >conftest.err
19724  rm -f conftest.er1
19725  cat conftest.err >&5
19726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727  (exit $ac_status); } &&
19728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730  (eval $ac_try) 2>&5
19731  ac_status=$?
19732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733  (exit $ac_status); }; } &&
19734	 { ac_try='test -s conftest.$ac_objext'
19735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736  (eval $ac_try) 2>&5
19737  ac_status=$?
19738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739  (exit $ac_status); }; }; then
19740  ac_hi=-1 ac_mid=-1
19741  while :; do
19742    cat >conftest.$ac_ext <<_ACEOF
19743/* confdefs.h.  */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
19747/* end confdefs.h.  */
19748$ac_includes_default
19749int
19750main ()
19751{
19752static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19753test_array [0] = 0
19754
19755  ;
19756  return 0;
19757}
19758_ACEOF
19759rm -f conftest.$ac_objext
19760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761  (eval $ac_compile) 2>conftest.er1
19762  ac_status=$?
19763  grep -v '^ *+' conftest.er1 >conftest.err
19764  rm -f conftest.er1
19765  cat conftest.err >&5
19766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767  (exit $ac_status); } &&
19768	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770  (eval $ac_try) 2>&5
19771  ac_status=$?
19772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773  (exit $ac_status); }; } &&
19774	 { ac_try='test -s conftest.$ac_objext'
19775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776  (eval $ac_try) 2>&5
19777  ac_status=$?
19778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779  (exit $ac_status); }; }; then
19780  ac_lo=$ac_mid; break
19781else
19782  echo "$as_me: failed program was:" >&5
19783sed 's/^/| /' conftest.$ac_ext >&5
19784
19785ac_hi=`expr '(' $ac_mid ')' - 1`
19786		       if test $ac_mid -le $ac_hi; then
19787			 ac_lo= ac_hi=
19788			 break
19789		       fi
19790		       ac_mid=`expr 2 '*' $ac_mid`
19791fi
19792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793  done
19794else
19795  echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798ac_lo= ac_hi=
19799fi
19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801fi
19802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803# Binary search between lo and hi bounds.
19804while test "x$ac_lo" != "x$ac_hi"; do
19805  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19806  cat >conftest.$ac_ext <<_ACEOF
19807/* confdefs.h.  */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
19811/* end confdefs.h.  */
19812$ac_includes_default
19813int
19814main ()
19815{
19816static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19817test_array [0] = 0
19818
19819  ;
19820  return 0;
19821}
19822_ACEOF
19823rm -f conftest.$ac_objext
19824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825  (eval $ac_compile) 2>conftest.er1
19826  ac_status=$?
19827  grep -v '^ *+' conftest.er1 >conftest.err
19828  rm -f conftest.er1
19829  cat conftest.err >&5
19830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831  (exit $ac_status); } &&
19832	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834  (eval $ac_try) 2>&5
19835  ac_status=$?
19836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837  (exit $ac_status); }; } &&
19838	 { ac_try='test -s conftest.$ac_objext'
19839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840  (eval $ac_try) 2>&5
19841  ac_status=$?
19842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843  (exit $ac_status); }; }; then
19844  ac_hi=$ac_mid
19845else
19846  echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849ac_lo=`expr '(' $ac_mid ')' + 1`
19850fi
19851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852done
19853case $ac_lo in
19854?*) ac_cv_sizeof_long=$ac_lo;;
19855'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19856See \`config.log' for more details." >&5
19857echo "$as_me: error: cannot compute sizeof (long), 77
19858See \`config.log' for more details." >&2;}
19859   { (exit 1); exit 1; }; } ;;
19860esac
19861else
19862  if test "$cross_compiling" = yes; then
19863  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19864echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19865   { (exit 1); exit 1; }; }
19866else
19867  cat >conftest.$ac_ext <<_ACEOF
19868/* confdefs.h.  */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
19872/* end confdefs.h.  */
19873$ac_includes_default
19874long longval () { return (long) (sizeof (long)); }
19875unsigned long ulongval () { return (long) (sizeof (long)); }
19876#include <stdio.h>
19877#include <stdlib.h>
19878int
19879main ()
19880{
19881
19882  FILE *f = fopen ("conftest.val", "w");
19883  if (! f)
19884    exit (1);
19885  if (((long) (sizeof (long))) < 0)
19886    {
19887      long i = longval ();
19888      if (i != ((long) (sizeof (long))))
19889	exit (1);
19890      fprintf (f, "%ld\n", i);
19891    }
19892  else
19893    {
19894      unsigned long i = ulongval ();
19895      if (i != ((long) (sizeof (long))))
19896	exit (1);
19897      fprintf (f, "%lu\n", i);
19898    }
19899  exit (ferror (f) || fclose (f) != 0);
19900
19901  ;
19902  return 0;
19903}
19904_ACEOF
19905rm -f conftest$ac_exeext
19906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907  (eval $ac_link) 2>&5
19908  ac_status=$?
19909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912  (eval $ac_try) 2>&5
19913  ac_status=$?
19914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915  (exit $ac_status); }; }; then
19916  ac_cv_sizeof_long=`cat conftest.val`
19917else
19918  echo "$as_me: program exited with status $ac_status" >&5
19919echo "$as_me: failed program was:" >&5
19920sed 's/^/| /' conftest.$ac_ext >&5
19921
19922( exit $ac_status )
19923{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19924See \`config.log' for more details." >&5
19925echo "$as_me: error: cannot compute sizeof (long), 77
19926See \`config.log' for more details." >&2;}
19927   { (exit 1); exit 1; }; }
19928fi
19929rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19930fi
19931fi
19932rm -f conftest.val
19933else
19934  ac_cv_sizeof_long=0
19935fi
19936fi
19937echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19938echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19939cat >>confdefs.h <<_ACEOF
19940#define SIZEOF_LONG $ac_cv_sizeof_long
19941_ACEOF
19942
19943
19944
19945if test "$disable_libcheck" != "yes"; then
19946
19947echo "$as_me:$LINENO: checking for ibv_get_device_list in -libverbs" >&5
19948echo $ECHO_N "checking for ibv_get_device_list in -libverbs... $ECHO_C" >&6
19949if test "${ac_cv_lib_ibverbs_ibv_get_device_list+set}" = set; then
19950  echo $ECHO_N "(cached) $ECHO_C" >&6
19951else
19952  ac_check_lib_save_LIBS=$LIBS
19953LIBS="-libverbs  $LIBS"
19954cat >conftest.$ac_ext <<_ACEOF
19955/* confdefs.h.  */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
19959/* end confdefs.h.  */
19960
19961/* Override any gcc2 internal prototype to avoid an error.  */
19962#ifdef __cplusplus
19963extern "C"
19964#endif
19965/* We use char because int might match the return type of a gcc2
19966   builtin and then its argument prototype would still apply.  */
19967char ibv_get_device_list ();
19968int
19969main ()
19970{
19971ibv_get_device_list ();
19972  ;
19973  return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext conftest$ac_exeext
19977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19978  (eval $ac_link) 2>conftest.er1
19979  ac_status=$?
19980  grep -v '^ *+' conftest.er1 >conftest.err
19981  rm -f conftest.er1
19982  cat conftest.err >&5
19983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984  (exit $ac_status); } &&
19985	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987  (eval $ac_try) 2>&5
19988  ac_status=$?
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); }; } &&
19991	 { ac_try='test -s conftest$ac_exeext'
19992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993  (eval $ac_try) 2>&5
19994  ac_status=$?
19995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996  (exit $ac_status); }; }; then
19997  ac_cv_lib_ibverbs_ibv_get_device_list=yes
19998else
19999  echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002ac_cv_lib_ibverbs_ibv_get_device_list=no
20003fi
20004rm -f conftest.err conftest.$ac_objext \
20005      conftest$ac_exeext conftest.$ac_ext
20006LIBS=$ac_check_lib_save_LIBS
20007fi
20008echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
20009echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_get_device_list" >&6
20010if test $ac_cv_lib_ibverbs_ibv_get_device_list = yes; then
20011  cat >>confdefs.h <<_ACEOF
20012#define HAVE_LIBIBVERBS 1
20013_ACEOF
20014
20015  LIBS="-libverbs $LIBS"
20016
20017else
20018  { { echo "$as_me:$LINENO: error: ibv_get_device_list() not found.  librdmacm requires libibverbs." >&5
20019echo "$as_me: error: ibv_get_device_list() not found.  librdmacm requires libibverbs." >&2;}
20020   { (exit 1); exit 1; }; }
20021fi
20022
20023fi
20024
20025echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20026echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20027if test "${ac_cv_header_stdc+set}" = set; then
20028  echo $ECHO_N "(cached) $ECHO_C" >&6
20029else
20030  cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h.  */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h.  */
20036#include <stdlib.h>
20037#include <stdarg.h>
20038#include <string.h>
20039#include <float.h>
20040
20041int
20042main ()
20043{
20044
20045  ;
20046  return 0;
20047}
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051  (eval $ac_compile) 2>conftest.er1
20052  ac_status=$?
20053  grep -v '^ *+' conftest.er1 >conftest.err
20054  rm -f conftest.er1
20055  cat conftest.err >&5
20056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057  (exit $ac_status); } &&
20058	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060  (eval $ac_try) 2>&5
20061  ac_status=$?
20062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063  (exit $ac_status); }; } &&
20064	 { ac_try='test -s conftest.$ac_objext'
20065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066  (eval $ac_try) 2>&5
20067  ac_status=$?
20068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069  (exit $ac_status); }; }; then
20070  ac_cv_header_stdc=yes
20071else
20072  echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075ac_cv_header_stdc=no
20076fi
20077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078
20079if test $ac_cv_header_stdc = yes; then
20080  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20081  cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h.  */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h.  */
20087#include <string.h>
20088
20089_ACEOF
20090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20091  $EGREP "memchr" >/dev/null 2>&1; then
20092  :
20093else
20094  ac_cv_header_stdc=no
20095fi
20096rm -f conftest*
20097
20098fi
20099
20100if test $ac_cv_header_stdc = yes; then
20101  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20102  cat >conftest.$ac_ext <<_ACEOF
20103/* confdefs.h.  */
20104_ACEOF
20105cat confdefs.h >>conftest.$ac_ext
20106cat >>conftest.$ac_ext <<_ACEOF
20107/* end confdefs.h.  */
20108#include <stdlib.h>
20109
20110_ACEOF
20111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20112  $EGREP "free" >/dev/null 2>&1; then
20113  :
20114else
20115  ac_cv_header_stdc=no
20116fi
20117rm -f conftest*
20118
20119fi
20120
20121if test $ac_cv_header_stdc = yes; then
20122  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20123  if test "$cross_compiling" = yes; then
20124  :
20125else
20126  cat >conftest.$ac_ext <<_ACEOF
20127/* confdefs.h.  */
20128_ACEOF
20129cat confdefs.h >>conftest.$ac_ext
20130cat >>conftest.$ac_ext <<_ACEOF
20131/* end confdefs.h.  */
20132#include <ctype.h>
20133#if ((' ' & 0x0FF) == 0x020)
20134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20136#else
20137# define ISLOWER(c) \
20138		   (('a' <= (c) && (c) <= 'i') \
20139		     || ('j' <= (c) && (c) <= 'r') \
20140		     || ('s' <= (c) && (c) <= 'z'))
20141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20142#endif
20143
20144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20145int
20146main ()
20147{
20148  int i;
20149  for (i = 0; i < 256; i++)
20150    if (XOR (islower (i), ISLOWER (i))
20151	|| toupper (i) != TOUPPER (i))
20152      exit(2);
20153  exit (0);
20154}
20155_ACEOF
20156rm -f conftest$ac_exeext
20157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158  (eval $ac_link) 2>&5
20159  ac_status=$?
20160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163  (eval $ac_try) 2>&5
20164  ac_status=$?
20165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166  (exit $ac_status); }; }; then
20167  :
20168else
20169  echo "$as_me: program exited with status $ac_status" >&5
20170echo "$as_me: failed program was:" >&5
20171sed 's/^/| /' conftest.$ac_ext >&5
20172
20173( exit $ac_status )
20174ac_cv_header_stdc=no
20175fi
20176rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177fi
20178fi
20179fi
20180echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20181echo "${ECHO_T}$ac_cv_header_stdc" >&6
20182if test $ac_cv_header_stdc = yes; then
20183
20184cat >>confdefs.h <<\_ACEOF
20185#define STDC_HEADERS 1
20186_ACEOF
20187
20188fi
20189
20190if test "$disable_libcheck" != "yes"; then
20191if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20192  echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
20193echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
20194if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20195  echo $ECHO_N "(cached) $ECHO_C" >&6
20196fi
20197echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
20198echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
20199else
20200  # Is the header compilable?
20201echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
20202echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6
20203cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h.  */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h.  */
20209$ac_includes_default
20210#include <infiniband/verbs.h>
20211_ACEOF
20212rm -f conftest.$ac_objext
20213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214  (eval $ac_compile) 2>conftest.er1
20215  ac_status=$?
20216  grep -v '^ *+' conftest.er1 >conftest.err
20217  rm -f conftest.er1
20218  cat conftest.err >&5
20219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220  (exit $ac_status); } &&
20221	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223  (eval $ac_try) 2>&5
20224  ac_status=$?
20225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226  (exit $ac_status); }; } &&
20227	 { ac_try='test -s conftest.$ac_objext'
20228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229  (eval $ac_try) 2>&5
20230  ac_status=$?
20231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232  (exit $ac_status); }; }; then
20233  ac_header_compiler=yes
20234else
20235  echo "$as_me: failed program was:" >&5
20236sed 's/^/| /' conftest.$ac_ext >&5
20237
20238ac_header_compiler=no
20239fi
20240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20242echo "${ECHO_T}$ac_header_compiler" >&6
20243
20244# Is the header present?
20245echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
20246echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6
20247cat >conftest.$ac_ext <<_ACEOF
20248/* confdefs.h.  */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h.  */
20253#include <infiniband/verbs.h>
20254_ACEOF
20255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20256  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20257  ac_status=$?
20258  grep -v '^ *+' conftest.er1 >conftest.err
20259  rm -f conftest.er1
20260  cat conftest.err >&5
20261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262  (exit $ac_status); } >/dev/null; then
20263  if test -s conftest.err; then
20264    ac_cpp_err=$ac_c_preproc_warn_flag
20265    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20266  else
20267    ac_cpp_err=
20268  fi
20269else
20270  ac_cpp_err=yes
20271fi
20272if test -z "$ac_cpp_err"; then
20273  ac_header_preproc=yes
20274else
20275  echo "$as_me: failed program was:" >&5
20276sed 's/^/| /' conftest.$ac_ext >&5
20277
20278  ac_header_preproc=no
20279fi
20280rm -f conftest.err conftest.$ac_ext
20281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20282echo "${ECHO_T}$ac_header_preproc" >&6
20283
20284# So?  What about this header?
20285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20286  yes:no: )
20287    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20288echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20289    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
20290echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
20291    ac_header_preproc=yes
20292    ;;
20293  no:yes:* )
20294    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
20295echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
20296    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
20297echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
20298    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
20299echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
20300    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
20301echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20302    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
20303echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
20304    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
20305echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
20306    (
20307      cat <<\_ASBOX
20308## -------------------------------------------- ##
20309## Report this to general@lists.openfabrics.org ##
20310## -------------------------------------------- ##
20311_ASBOX
20312    ) |
20313      sed "s/^/$as_me: WARNING:     /" >&2
20314    ;;
20315esac
20316echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
20317echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
20318if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20319  echo $ECHO_N "(cached) $ECHO_C" >&6
20320else
20321  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
20322fi
20323echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
20324echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
20325
20326fi
20327if test $ac_cv_header_infiniband_verbs_h = yes; then
20328  :
20329else
20330  { { echo "$as_me:$LINENO: error: <infiniband/verbs.h> not found.  Is libibverbs installed?" >&5
20331echo "$as_me: error: <infiniband/verbs.h> not found.  Is libibverbs installed?" >&2;}
20332   { (exit 1); exit 1; }; }
20333fi
20334
20335
20336
20337if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
20338if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20339  echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
20340echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
20341if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20342  echo $ECHO_N "(cached) $ECHO_C" >&6
20343fi
20344echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
20345echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
20346else
20347  # Is the header compilable?
20348echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
20349echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6
20350cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h.  */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h.  */
20356$ac_includes_default
20357#include <valgrind/memcheck.h>
20358_ACEOF
20359rm -f conftest.$ac_objext
20360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361  (eval $ac_compile) 2>conftest.er1
20362  ac_status=$?
20363  grep -v '^ *+' conftest.er1 >conftest.err
20364  rm -f conftest.er1
20365  cat conftest.err >&5
20366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367  (exit $ac_status); } &&
20368	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370  (eval $ac_try) 2>&5
20371  ac_status=$?
20372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373  (exit $ac_status); }; } &&
20374	 { ac_try='test -s conftest.$ac_objext'
20375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376  (eval $ac_try) 2>&5
20377  ac_status=$?
20378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379  (exit $ac_status); }; }; then
20380  ac_header_compiler=yes
20381else
20382  echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
20385ac_header_compiler=no
20386fi
20387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20389echo "${ECHO_T}$ac_header_compiler" >&6
20390
20391# Is the header present?
20392echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
20393echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6
20394cat >conftest.$ac_ext <<_ACEOF
20395/* confdefs.h.  */
20396_ACEOF
20397cat confdefs.h >>conftest.$ac_ext
20398cat >>conftest.$ac_ext <<_ACEOF
20399/* end confdefs.h.  */
20400#include <valgrind/memcheck.h>
20401_ACEOF
20402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20403  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20404  ac_status=$?
20405  grep -v '^ *+' conftest.er1 >conftest.err
20406  rm -f conftest.er1
20407  cat conftest.err >&5
20408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409  (exit $ac_status); } >/dev/null; then
20410  if test -s conftest.err; then
20411    ac_cpp_err=$ac_c_preproc_warn_flag
20412    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20413  else
20414    ac_cpp_err=
20415  fi
20416else
20417  ac_cpp_err=yes
20418fi
20419if test -z "$ac_cpp_err"; then
20420  ac_header_preproc=yes
20421else
20422  echo "$as_me: failed program was:" >&5
20423sed 's/^/| /' conftest.$ac_ext >&5
20424
20425  ac_header_preproc=no
20426fi
20427rm -f conftest.err conftest.$ac_ext
20428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20429echo "${ECHO_T}$ac_header_preproc" >&6
20430
20431# So?  What about this header?
20432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20433  yes:no: )
20434    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
20435echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20436    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
20437echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
20438    ac_header_preproc=yes
20439    ;;
20440  no:yes:* )
20441    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&5
20442echo "$as_me: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&2;}
20443    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h:     check for missing prerequisite headers?" >&5
20444echo "$as_me: WARNING: valgrind/memcheck.h:     check for missing prerequisite headers?" >&2;}
20445    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&5
20446echo "$as_me: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&2;}
20447    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h:     section \"Present But Cannot Be Compiled\"" >&5
20448echo "$as_me: WARNING: valgrind/memcheck.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20449    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&5
20450echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&2;}
20451    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&5
20452echo "$as_me: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&2;}
20453    (
20454      cat <<\_ASBOX
20455## -------------------------------------------- ##
20456## Report this to general@lists.openfabrics.org ##
20457## -------------------------------------------- ##
20458_ASBOX
20459    ) |
20460      sed "s/^/$as_me: WARNING:     /" >&2
20461    ;;
20462esac
20463echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
20464echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
20465if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20466  echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468  ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
20469fi
20470echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
20471echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
20472
20473fi
20474if test $ac_cv_header_valgrind_memcheck_h = yes; then
20475  :
20476else
20477  { { echo "$as_me:$LINENO: error: valgrind requested but <valgrind/memcheck.h> not found." >&5
20478echo "$as_me: error: valgrind requested but <valgrind/memcheck.h> not found." >&2;}
20479   { (exit 1); exit 1; }; }
20480fi
20481
20482
20483fi
20484
20485fi
20486
20487echo "$as_me:$LINENO: checking whether ld accepts --version-script" >&5
20488echo $ECHO_N "checking whether ld accepts --version-script... $ECHO_C" >&6
20489if test "${ac_cv_version_script+set}" = set; then
20490  echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492  if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
20493        ac_cv_version_script=yes
20494    else
20495        ac_cv_version_script=no
20496    fi
20497fi
20498echo "$as_me:$LINENO: result: $ac_cv_version_script" >&5
20499echo "${ECHO_T}$ac_cv_version_script" >&6
20500
20501
20502
20503if test "$ac_cv_version_script" = "yes"; then
20504  HAVE_LD_VERSION_SCRIPT_TRUE=
20505  HAVE_LD_VERSION_SCRIPT_FALSE='#'
20506else
20507  HAVE_LD_VERSION_SCRIPT_TRUE='#'
20508  HAVE_LD_VERSION_SCRIPT_FALSE=
20509fi
20510
20511
20512                    ac_config_files="$ac_config_files Makefile librdmacm.spec"
20513
20514cat >confcache <<\_ACEOF
20515# This file is a shell script that caches the results of configure
20516# tests run on this system so they can be shared between configure
20517# scripts and configure runs, see configure's option --config-cache.
20518# It is not useful on other systems.  If it contains results you don't
20519# want to keep, you may remove or edit it.
20520#
20521# config.status only pays attention to the cache file if you give it
20522# the --recheck option to rerun configure.
20523#
20524# `ac_cv_env_foo' variables (set or unset) will be overridden when
20525# loading this file, other *unset* `ac_cv_foo' will be assigned the
20526# following values.
20527
20528_ACEOF
20529
20530# The following way of writing the cache mishandles newlines in values,
20531# but we know of no workaround that is simple, portable, and efficient.
20532# So, don't put newlines in cache variables' values.
20533# Ultrix sh set writes to stderr and can't be redirected directly,
20534# and sets the high bit in the cache file unless we assign to the vars.
20535{
20536  (set) 2>&1 |
20537    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20538    *ac_space=\ *)
20539      # `set' does not quote correctly, so add quotes (double-quote
20540      # substitution turns \\\\ into \\, and sed turns \\ into \).
20541      sed -n \
20542	"s/'/'\\\\''/g;
20543	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20544      ;;
20545    *)
20546      # `set' quotes correctly as required by POSIX, so do not add quotes.
20547      sed -n \
20548	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20549      ;;
20550    esac;
20551} |
20552  sed '
20553     t clear
20554     : clear
20555     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20556     t end
20557     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20558     : end' >>confcache
20559if diff $cache_file confcache >/dev/null 2>&1; then :; else
20560  if test -w $cache_file; then
20561    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20562    cat confcache >$cache_file
20563  else
20564    echo "not updating unwritable cache $cache_file"
20565  fi
20566fi
20567rm -f confcache
20568
20569test "x$prefix" = xNONE && prefix=$ac_default_prefix
20570# Let make expand exec_prefix.
20571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20572
20573# VPATH may cause trouble with some makes, so we remove $(srcdir),
20574# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20575# trailing colons and then remove the whole line if VPATH becomes empty
20576# (actually we leave an empty line to preserve line numbers).
20577if test "x$srcdir" = x.; then
20578  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20579s/:*\$(srcdir):*/:/;
20580s/:*\${srcdir}:*/:/;
20581s/:*@srcdir@:*/:/;
20582s/^\([^=]*=[	 ]*\):*/\1/;
20583s/:*$//;
20584s/^[^=]*=[	 ]*$//;
20585}'
20586fi
20587
20588DEFS=-DHAVE_CONFIG_H
20589
20590ac_libobjs=
20591ac_ltlibobjs=
20592for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20593  # 1. Remove the extension, and $U if already installed.
20594  ac_i=`echo "$ac_i" |
20595	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20596  # 2. Add them.
20597  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20598  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20599done
20600LIBOBJS=$ac_libobjs
20601
20602LTLIBOBJS=$ac_ltlibobjs
20603
20604
20605if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20606  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20607Usually this means the macro was only invoked conditionally." >&5
20608echo "$as_me: error: conditional \"AMDEP\" was never defined.
20609Usually this means the macro was only invoked conditionally." >&2;}
20610   { (exit 1); exit 1; }; }
20611fi
20612if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20613  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20614Usually this means the macro was only invoked conditionally." >&5
20615echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20616Usually this means the macro was only invoked conditionally." >&2;}
20617   { (exit 1); exit 1; }; }
20618fi
20619if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20620  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20621Usually this means the macro was only invoked conditionally." >&5
20622echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20623Usually this means the macro was only invoked conditionally." >&2;}
20624   { (exit 1); exit 1; }; }
20625fi
20626if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20627  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20628Usually this means the macro was only invoked conditionally." >&5
20629echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20630Usually this means the macro was only invoked conditionally." >&2;}
20631   { (exit 1); exit 1; }; }
20632fi
20633if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20634  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20635Usually this means the macro was only invoked conditionally." >&5
20636echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20637Usually this means the macro was only invoked conditionally." >&2;}
20638   { (exit 1); exit 1; }; }
20639fi
20640
20641: ${CONFIG_STATUS=./config.status}
20642ac_clean_files_save=$ac_clean_files
20643ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20644{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20645echo "$as_me: creating $CONFIG_STATUS" >&6;}
20646cat >$CONFIG_STATUS <<_ACEOF
20647#! $SHELL
20648# Generated by $as_me.
20649# Run this file to recreate the current configuration.
20650# Compiler output produced by configure, useful for debugging
20651# configure, is in config.log if it exists.
20652
20653debug=false
20654ac_cs_recheck=false
20655ac_cs_silent=false
20656SHELL=\${CONFIG_SHELL-$SHELL}
20657_ACEOF
20658
20659cat >>$CONFIG_STATUS <<\_ACEOF
20660## --------------------- ##
20661## M4sh Initialization.  ##
20662## --------------------- ##
20663
20664# Be Bourne compatible
20665if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20666  emulate sh
20667  NULLCMD=:
20668  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20669  # is contrary to our usage.  Disable this feature.
20670  alias -g '${1+"$@"}'='"$@"'
20671elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20672  set -o posix
20673fi
20674DUALCASE=1; export DUALCASE # for MKS sh
20675
20676# Support unset when possible.
20677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20678  as_unset=unset
20679else
20680  as_unset=false
20681fi
20682
20683
20684# Work around bugs in pre-3.0 UWIN ksh.
20685$as_unset ENV MAIL MAILPATH
20686PS1='$ '
20687PS2='> '
20688PS4='+ '
20689
20690# NLS nuisances.
20691for as_var in \
20692  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20693  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20694  LC_TELEPHONE LC_TIME
20695do
20696  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20697    eval $as_var=C; export $as_var
20698  else
20699    $as_unset $as_var
20700  fi
20701done
20702
20703# Required to use basename.
20704if expr a : '\(a\)' >/dev/null 2>&1; then
20705  as_expr=expr
20706else
20707  as_expr=false
20708fi
20709
20710if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20711  as_basename=basename
20712else
20713  as_basename=false
20714fi
20715
20716
20717# Name of the executable.
20718as_me=`$as_basename "$0" ||
20719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20720	 X"$0" : 'X\(//\)$' \| \
20721	 X"$0" : 'X\(/\)$' \| \
20722	 .     : '\(.\)' 2>/dev/null ||
20723echo X/"$0" |
20724    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20725  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20726  	  /^X\/\(\/\).*/{ s//\1/; q; }
20727  	  s/.*/./; q'`
20728
20729
20730# PATH needs CR, and LINENO needs CR and PATH.
20731# Avoid depending upon Character Ranges.
20732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20735as_cr_digits='0123456789'
20736as_cr_alnum=$as_cr_Letters$as_cr_digits
20737
20738# The user is always right.
20739if test "${PATH_SEPARATOR+set}" != set; then
20740  echo "#! /bin/sh" >conf$$.sh
20741  echo  "exit 0"   >>conf$$.sh
20742  chmod +x conf$$.sh
20743  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20744    PATH_SEPARATOR=';'
20745  else
20746    PATH_SEPARATOR=:
20747  fi
20748  rm -f conf$$.sh
20749fi
20750
20751
20752  as_lineno_1=$LINENO
20753  as_lineno_2=$LINENO
20754  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20755  test "x$as_lineno_1" != "x$as_lineno_2" &&
20756  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20757  # Find who we are.  Look in the path if we contain no path at all
20758  # relative or not.
20759  case $0 in
20760    *[\\/]* ) as_myself=$0 ;;
20761    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20762for as_dir in $PATH
20763do
20764  IFS=$as_save_IFS
20765  test -z "$as_dir" && as_dir=.
20766  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20767done
20768
20769       ;;
20770  esac
20771  # We did not find ourselves, most probably we were run as `sh COMMAND'
20772  # in which case we are not to be found in the path.
20773  if test "x$as_myself" = x; then
20774    as_myself=$0
20775  fi
20776  if test ! -f "$as_myself"; then
20777    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20778echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20779   { (exit 1); exit 1; }; }
20780  fi
20781  case $CONFIG_SHELL in
20782  '')
20783    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20784for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20785do
20786  IFS=$as_save_IFS
20787  test -z "$as_dir" && as_dir=.
20788  for as_base in sh bash ksh sh5; do
20789	 case $as_dir in
20790	 /*)
20791	   if ("$as_dir/$as_base" -c '
20792  as_lineno_1=$LINENO
20793  as_lineno_2=$LINENO
20794  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20795  test "x$as_lineno_1" != "x$as_lineno_2" &&
20796  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20797	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20798	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20799	     CONFIG_SHELL=$as_dir/$as_base
20800	     export CONFIG_SHELL
20801	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20802	   fi;;
20803	 esac
20804       done
20805done
20806;;
20807  esac
20808
20809  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20810  # uniformly replaced by the line number.  The first 'sed' inserts a
20811  # line-number line before each line; the second 'sed' does the real
20812  # work.  The second script uses 'N' to pair each line-number line
20813  # with the numbered line, and appends trailing '-' during
20814  # substitution so that $LINENO is not a special case at line end.
20815  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20816  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20817  sed '=' <$as_myself |
20818    sed '
20819      N
20820      s,$,-,
20821      : loop
20822      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20823      t loop
20824      s,-$,,
20825      s,^['$as_cr_digits']*\n,,
20826    ' >$as_me.lineno &&
20827  chmod +x $as_me.lineno ||
20828    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20829echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20830   { (exit 1); exit 1; }; }
20831
20832  # Don't try to exec as it changes $[0], causing all sort of problems
20833  # (the dirname of $[0] is not the place where we might find the
20834  # original and so on.  Autoconf is especially sensible to this).
20835  . ./$as_me.lineno
20836  # Exit status is that of the last command.
20837  exit
20838}
20839
20840
20841case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20842  *c*,-n*) ECHO_N= ECHO_C='
20843' ECHO_T='	' ;;
20844  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20845  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20846esac
20847
20848if expr a : '\(a\)' >/dev/null 2>&1; then
20849  as_expr=expr
20850else
20851  as_expr=false
20852fi
20853
20854rm -f conf$$ conf$$.exe conf$$.file
20855echo >conf$$.file
20856if ln -s conf$$.file conf$$ 2>/dev/null; then
20857  # We could just check for DJGPP; but this test a) works b) is more generic
20858  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20859  if test -f conf$$.exe; then
20860    # Don't use ln at all; we don't have any links
20861    as_ln_s='cp -p'
20862  else
20863    as_ln_s='ln -s'
20864  fi
20865elif ln conf$$.file conf$$ 2>/dev/null; then
20866  as_ln_s=ln
20867else
20868  as_ln_s='cp -p'
20869fi
20870rm -f conf$$ conf$$.exe conf$$.file
20871
20872if mkdir -p . 2>/dev/null; then
20873  as_mkdir_p=:
20874else
20875  test -d ./-p && rmdir ./-p
20876  as_mkdir_p=false
20877fi
20878
20879as_executable_p="test -f"
20880
20881# Sed expression to map a string onto a valid CPP name.
20882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20883
20884# Sed expression to map a string onto a valid variable name.
20885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20886
20887
20888# IFS
20889# We need space, tab and new line, in precisely that order.
20890as_nl='
20891'
20892IFS=" 	$as_nl"
20893
20894# CDPATH.
20895$as_unset CDPATH
20896
20897exec 6>&1
20898
20899# Open the log real soon, to keep \$[0] and so on meaningful, and to
20900# report actual input values of CONFIG_FILES etc. instead of their
20901# values after options handling.  Logging --version etc. is OK.
20902exec 5>>config.log
20903{
20904  echo
20905  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20906## Running $as_me. ##
20907_ASBOX
20908} >&5
20909cat >&5 <<_CSEOF
20910
20911This file was extended by librdmacm $as_me 1.0.11, which was
20912generated by GNU Autoconf 2.59.  Invocation command line was
20913
20914  CONFIG_FILES    = $CONFIG_FILES
20915  CONFIG_HEADERS  = $CONFIG_HEADERS
20916  CONFIG_LINKS    = $CONFIG_LINKS
20917  CONFIG_COMMANDS = $CONFIG_COMMANDS
20918  $ $0 $@
20919
20920_CSEOF
20921echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20922echo >&5
20923_ACEOF
20924
20925# Files that config.status was made for.
20926if test -n "$ac_config_files"; then
20927  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20928fi
20929
20930if test -n "$ac_config_headers"; then
20931  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20932fi
20933
20934if test -n "$ac_config_links"; then
20935  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20936fi
20937
20938if test -n "$ac_config_commands"; then
20939  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20940fi
20941
20942cat >>$CONFIG_STATUS <<\_ACEOF
20943
20944ac_cs_usage="\
20945\`$as_me' instantiates files from templates according to the
20946current configuration.
20947
20948Usage: $0 [OPTIONS] [FILE]...
20949
20950  -h, --help       print this help, then exit
20951  -V, --version    print version number, then exit
20952  -q, --quiet      do not print progress messages
20953  -d, --debug      don't remove temporary files
20954      --recheck    update $as_me by reconfiguring in the same conditions
20955  --file=FILE[:TEMPLATE]
20956		   instantiate the configuration file FILE
20957  --header=FILE[:TEMPLATE]
20958		   instantiate the configuration header FILE
20959
20960Configuration files:
20961$config_files
20962
20963Configuration headers:
20964$config_headers
20965
20966Configuration commands:
20967$config_commands
20968
20969Report bugs to <bug-autoconf@gnu.org>."
20970_ACEOF
20971
20972cat >>$CONFIG_STATUS <<_ACEOF
20973ac_cs_version="\\
20974librdmacm config.status 1.0.11
20975configured by $0, generated by GNU Autoconf 2.59,
20976  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20977
20978Copyright (C) 2003 Free Software Foundation, Inc.
20979This config.status script is free software; the Free Software Foundation
20980gives unlimited permission to copy, distribute and modify it."
20981srcdir=$srcdir
20982INSTALL="$INSTALL"
20983_ACEOF
20984
20985cat >>$CONFIG_STATUS <<\_ACEOF
20986# If no file are specified by the user, then we need to provide default
20987# value.  By we need to know if files were specified by the user.
20988ac_need_defaults=:
20989while test $# != 0
20990do
20991  case $1 in
20992  --*=*)
20993    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20994    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20995    ac_shift=:
20996    ;;
20997  -*)
20998    ac_option=$1
20999    ac_optarg=$2
21000    ac_shift=shift
21001    ;;
21002  *) # This is not an option, so the user has probably given explicit
21003     # arguments.
21004     ac_option=$1
21005     ac_need_defaults=false;;
21006  esac
21007
21008  case $ac_option in
21009  # Handling of the options.
21010_ACEOF
21011cat >>$CONFIG_STATUS <<\_ACEOF
21012  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21013    ac_cs_recheck=: ;;
21014  --version | --vers* | -V )
21015    echo "$ac_cs_version"; exit 0 ;;
21016  --he | --h)
21017    # Conflict between --help and --header
21018    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21019Try \`$0 --help' for more information." >&5
21020echo "$as_me: error: ambiguous option: $1
21021Try \`$0 --help' for more information." >&2;}
21022   { (exit 1); exit 1; }; };;
21023  --help | --hel | -h )
21024    echo "$ac_cs_usage"; exit 0 ;;
21025  --debug | --d* | -d )
21026    debug=: ;;
21027  --file | --fil | --fi | --f )
21028    $ac_shift
21029    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21030    ac_need_defaults=false;;
21031  --header | --heade | --head | --hea )
21032    $ac_shift
21033    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21034    ac_need_defaults=false;;
21035  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21036  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21037    ac_cs_silent=: ;;
21038
21039  # This is an error.
21040  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21041Try \`$0 --help' for more information." >&5
21042echo "$as_me: error: unrecognized option: $1
21043Try \`$0 --help' for more information." >&2;}
21044   { (exit 1); exit 1; }; } ;;
21045
21046  *) ac_config_targets="$ac_config_targets $1" ;;
21047
21048  esac
21049  shift
21050done
21051
21052ac_configure_extra_args=
21053
21054if $ac_cs_silent; then
21055  exec 6>/dev/null
21056  ac_configure_extra_args="$ac_configure_extra_args --silent"
21057fi
21058
21059_ACEOF
21060cat >>$CONFIG_STATUS <<_ACEOF
21061if \$ac_cs_recheck; then
21062  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21063  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21064fi
21065
21066_ACEOF
21067
21068cat >>$CONFIG_STATUS <<_ACEOF
21069#
21070# INIT-COMMANDS section.
21071#
21072
21073AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21074
21075_ACEOF
21076
21077
21078
21079cat >>$CONFIG_STATUS <<\_ACEOF
21080for ac_config_target in $ac_config_targets
21081do
21082  case "$ac_config_target" in
21083  # Handling of arguments.
21084  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21085  "librdmacm.spec" ) CONFIG_FILES="$CONFIG_FILES librdmacm.spec" ;;
21086  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21087  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21088  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21089echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21090   { (exit 1); exit 1; }; };;
21091  esac
21092done
21093
21094# If the user did not use the arguments to specify the items to instantiate,
21095# then the envvar interface is used.  Set only those that are not.
21096# We use the long form for the default assignment because of an extremely
21097# bizarre bug on SunOS 4.1.3.
21098if $ac_need_defaults; then
21099  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21100  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21101  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21102fi
21103
21104# Have a temporary directory for convenience.  Make it in the build tree
21105# simply because there is no reason to put it here, and in addition,
21106# creating and moving files from /tmp can sometimes cause problems.
21107# Create a temporary directory, and hook for its removal unless debugging.
21108$debug ||
21109{
21110  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21111  trap '{ (exit 1); exit 1; }' 1 2 13 15
21112}
21113
21114# Create a (secure) tmp directory for tmp files.
21115
21116{
21117  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21118  test -n "$tmp" && test -d "$tmp"
21119}  ||
21120{
21121  tmp=./confstat$$-$RANDOM
21122  (umask 077 && mkdir $tmp)
21123} ||
21124{
21125   echo "$me: cannot create a temporary directory in ." >&2
21126   { (exit 1); exit 1; }
21127}
21128
21129_ACEOF
21130
21131cat >>$CONFIG_STATUS <<_ACEOF
21132
21133#
21134# CONFIG_FILES section.
21135#
21136
21137# No need to generate the scripts if there are no CONFIG_FILES.
21138# This happens for instance when ./config.status config.h
21139if test -n "\$CONFIG_FILES"; then
21140  # Protect against being on the right side of a sed subst in config.status.
21141  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21142   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21143s,@SHELL@,$SHELL,;t t
21144s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21145s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21146s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21147s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21148s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21149s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21150s,@exec_prefix@,$exec_prefix,;t t
21151s,@prefix@,$prefix,;t t
21152s,@program_transform_name@,$program_transform_name,;t t
21153s,@bindir@,$bindir,;t t
21154s,@sbindir@,$sbindir,;t t
21155s,@libexecdir@,$libexecdir,;t t
21156s,@datadir@,$datadir,;t t
21157s,@sysconfdir@,$sysconfdir,;t t
21158s,@sharedstatedir@,$sharedstatedir,;t t
21159s,@localstatedir@,$localstatedir,;t t
21160s,@libdir@,$libdir,;t t
21161s,@includedir@,$includedir,;t t
21162s,@oldincludedir@,$oldincludedir,;t t
21163s,@infodir@,$infodir,;t t
21164s,@mandir@,$mandir,;t t
21165s,@build_alias@,$build_alias,;t t
21166s,@host_alias@,$host_alias,;t t
21167s,@target_alias@,$target_alias,;t t
21168s,@DEFS@,$DEFS,;t t
21169s,@ECHO_C@,$ECHO_C,;t t
21170s,@ECHO_N@,$ECHO_N,;t t
21171s,@ECHO_T@,$ECHO_T,;t t
21172s,@LIBS@,$LIBS,;t t
21173s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21174s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21175s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21176s,@CYGPATH_W@,$CYGPATH_W,;t t
21177s,@PACKAGE@,$PACKAGE,;t t
21178s,@VERSION@,$VERSION,;t t
21179s,@ACLOCAL@,$ACLOCAL,;t t
21180s,@AUTOCONF@,$AUTOCONF,;t t
21181s,@AUTOMAKE@,$AUTOMAKE,;t t
21182s,@AUTOHEADER@,$AUTOHEADER,;t t
21183s,@MAKEINFO@,$MAKEINFO,;t t
21184s,@install_sh@,$install_sh,;t t
21185s,@STRIP@,$STRIP,;t t
21186s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21187s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21188s,@mkdir_p@,$mkdir_p,;t t
21189s,@AWK@,$AWK,;t t
21190s,@SET_MAKE@,$SET_MAKE,;t t
21191s,@am__leading_dot@,$am__leading_dot,;t t
21192s,@AMTAR@,$AMTAR,;t t
21193s,@am__tar@,$am__tar,;t t
21194s,@am__untar@,$am__untar,;t t
21195s,@build@,$build,;t t
21196s,@build_cpu@,$build_cpu,;t t
21197s,@build_vendor@,$build_vendor,;t t
21198s,@build_os@,$build_os,;t t
21199s,@host@,$host,;t t
21200s,@host_cpu@,$host_cpu,;t t
21201s,@host_vendor@,$host_vendor,;t t
21202s,@host_os@,$host_os,;t t
21203s,@CC@,$CC,;t t
21204s,@CFLAGS@,$CFLAGS,;t t
21205s,@LDFLAGS@,$LDFLAGS,;t t
21206s,@CPPFLAGS@,$CPPFLAGS,;t t
21207s,@ac_ct_CC@,$ac_ct_CC,;t t
21208s,@EXEEXT@,$EXEEXT,;t t
21209s,@OBJEXT@,$OBJEXT,;t t
21210s,@DEPDIR@,$DEPDIR,;t t
21211s,@am__include@,$am__include,;t t
21212s,@am__quote@,$am__quote,;t t
21213s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21214s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21215s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21216s,@CCDEPMODE@,$CCDEPMODE,;t t
21217s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21218s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21219s,@EGREP@,$EGREP,;t t
21220s,@LN_S@,$LN_S,;t t
21221s,@ECHO@,$ECHO,;t t
21222s,@AR@,$AR,;t t
21223s,@ac_ct_AR@,$ac_ct_AR,;t t
21224s,@RANLIB@,$RANLIB,;t t
21225s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21226s,@CPP@,$CPP,;t t
21227s,@CXX@,$CXX,;t t
21228s,@CXXFLAGS@,$CXXFLAGS,;t t
21229s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21230s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21231s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21232s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21233s,@CXXCPP@,$CXXCPP,;t t
21234s,@F77@,$F77,;t t
21235s,@FFLAGS@,$FFLAGS,;t t
21236s,@ac_ct_F77@,$ac_ct_F77,;t t
21237s,@LIBTOOL@,$LIBTOOL,;t t
21238s,@HAVE_LD_VERSION_SCRIPT_TRUE@,$HAVE_LD_VERSION_SCRIPT_TRUE,;t t
21239s,@HAVE_LD_VERSION_SCRIPT_FALSE@,$HAVE_LD_VERSION_SCRIPT_FALSE,;t t
21240s,@LIBOBJS@,$LIBOBJS,;t t
21241s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21242CEOF
21243
21244_ACEOF
21245
21246  cat >>$CONFIG_STATUS <<\_ACEOF
21247  # Split the substitutions into bite-sized pieces for seds with
21248  # small command number limits, like on Digital OSF/1 and HP-UX.
21249  ac_max_sed_lines=48
21250  ac_sed_frag=1 # Number of current file.
21251  ac_beg=1 # First line for current file.
21252  ac_end=$ac_max_sed_lines # Line after last line for current file.
21253  ac_more_lines=:
21254  ac_sed_cmds=
21255  while $ac_more_lines; do
21256    if test $ac_beg -gt 1; then
21257      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21258    else
21259      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21260    fi
21261    if test ! -s $tmp/subs.frag; then
21262      ac_more_lines=false
21263    else
21264      # The purpose of the label and of the branching condition is to
21265      # speed up the sed processing (if there are no `@' at all, there
21266      # is no need to browse any of the substitutions).
21267      # These are the two extra sed commands mentioned above.
21268      (echo ':t
21269  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21270      if test -z "$ac_sed_cmds"; then
21271	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21272      else
21273	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21274      fi
21275      ac_sed_frag=`expr $ac_sed_frag + 1`
21276      ac_beg=$ac_end
21277      ac_end=`expr $ac_end + $ac_max_sed_lines`
21278    fi
21279  done
21280  if test -z "$ac_sed_cmds"; then
21281    ac_sed_cmds=cat
21282  fi
21283fi # test -n "$CONFIG_FILES"
21284
21285_ACEOF
21286cat >>$CONFIG_STATUS <<\_ACEOF
21287for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21288  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21289  case $ac_file in
21290  - | *:- | *:-:* ) # input from stdin
21291	cat >$tmp/stdin
21292	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21293	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21294  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21295	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21296  * )   ac_file_in=$ac_file.in ;;
21297  esac
21298
21299  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21300  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21302	 X"$ac_file" : 'X\(//\)[^/]' \| \
21303	 X"$ac_file" : 'X\(//\)$' \| \
21304	 X"$ac_file" : 'X\(/\)' \| \
21305	 .     : '\(.\)' 2>/dev/null ||
21306echo X"$ac_file" |
21307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21308  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21309  	  /^X\(\/\/\)$/{ s//\1/; q; }
21310  	  /^X\(\/\).*/{ s//\1/; q; }
21311  	  s/.*/./; q'`
21312  { if $as_mkdir_p; then
21313    mkdir -p "$ac_dir"
21314  else
21315    as_dir="$ac_dir"
21316    as_dirs=
21317    while test ! -d "$as_dir"; do
21318      as_dirs="$as_dir $as_dirs"
21319      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21321	 X"$as_dir" : 'X\(//\)[^/]' \| \
21322	 X"$as_dir" : 'X\(//\)$' \| \
21323	 X"$as_dir" : 'X\(/\)' \| \
21324	 .     : '\(.\)' 2>/dev/null ||
21325echo X"$as_dir" |
21326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21327  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21328  	  /^X\(\/\/\)$/{ s//\1/; q; }
21329  	  /^X\(\/\).*/{ s//\1/; q; }
21330  	  s/.*/./; q'`
21331    done
21332    test ! -n "$as_dirs" || mkdir $as_dirs
21333  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21334echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21335   { (exit 1); exit 1; }; }; }
21336
21337  ac_builddir=.
21338
21339if test "$ac_dir" != .; then
21340  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21341  # A "../" for each directory in $ac_dir_suffix.
21342  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21343else
21344  ac_dir_suffix= ac_top_builddir=
21345fi
21346
21347case $srcdir in
21348  .)  # No --srcdir option.  We are building in place.
21349    ac_srcdir=.
21350    if test -z "$ac_top_builddir"; then
21351       ac_top_srcdir=.
21352    else
21353       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21354    fi ;;
21355  [\\/]* | ?:[\\/]* )  # Absolute path.
21356    ac_srcdir=$srcdir$ac_dir_suffix;
21357    ac_top_srcdir=$srcdir ;;
21358  *) # Relative path.
21359    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21360    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21361esac
21362
21363# Do not use `cd foo && pwd` to compute absolute paths, because
21364# the directories may not exist.
21365case `pwd` in
21366.) ac_abs_builddir="$ac_dir";;
21367*)
21368  case "$ac_dir" in
21369  .) ac_abs_builddir=`pwd`;;
21370  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21371  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21372  esac;;
21373esac
21374case $ac_abs_builddir in
21375.) ac_abs_top_builddir=${ac_top_builddir}.;;
21376*)
21377  case ${ac_top_builddir}. in
21378  .) ac_abs_top_builddir=$ac_abs_builddir;;
21379  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21380  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21381  esac;;
21382esac
21383case $ac_abs_builddir in
21384.) ac_abs_srcdir=$ac_srcdir;;
21385*)
21386  case $ac_srcdir in
21387  .) ac_abs_srcdir=$ac_abs_builddir;;
21388  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21389  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21390  esac;;
21391esac
21392case $ac_abs_builddir in
21393.) ac_abs_top_srcdir=$ac_top_srcdir;;
21394*)
21395  case $ac_top_srcdir in
21396  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21397  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21398  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21399  esac;;
21400esac
21401
21402
21403  case $INSTALL in
21404  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21405  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21406  esac
21407
21408  # Let's still pretend it is `configure' which instantiates (i.e., don't
21409  # use $as_me), people would be surprised to read:
21410  #    /* config.h.  Generated by config.status.  */
21411  if test x"$ac_file" = x-; then
21412    configure_input=
21413  else
21414    configure_input="$ac_file.  "
21415  fi
21416  configure_input=$configure_input"Generated from `echo $ac_file_in |
21417				     sed 's,.*/,,'` by configure."
21418
21419  # First look for the input files in the build tree, otherwise in the
21420  # src tree.
21421  ac_file_inputs=`IFS=:
21422    for f in $ac_file_in; do
21423      case $f in
21424      -) echo $tmp/stdin ;;
21425      [\\/$]*)
21426	 # Absolute (can't be DOS-style, as IFS=:)
21427	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21428echo "$as_me: error: cannot find input file: $f" >&2;}
21429   { (exit 1); exit 1; }; }
21430	 echo "$f";;
21431      *) # Relative
21432	 if test -f "$f"; then
21433	   # Build tree
21434	   echo "$f"
21435	 elif test -f "$srcdir/$f"; then
21436	   # Source tree
21437	   echo "$srcdir/$f"
21438	 else
21439	   # /dev/null tree
21440	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21441echo "$as_me: error: cannot find input file: $f" >&2;}
21442   { (exit 1); exit 1; }; }
21443	 fi;;
21444      esac
21445    done` || { (exit 1); exit 1; }
21446
21447  if test x"$ac_file" != x-; then
21448    { echo "$as_me:$LINENO: creating $ac_file" >&5
21449echo "$as_me: creating $ac_file" >&6;}
21450    rm -f "$ac_file"
21451  fi
21452_ACEOF
21453cat >>$CONFIG_STATUS <<_ACEOF
21454  sed "$ac_vpsub
21455$extrasub
21456_ACEOF
21457cat >>$CONFIG_STATUS <<\_ACEOF
21458:t
21459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21460s,@configure_input@,$configure_input,;t t
21461s,@srcdir@,$ac_srcdir,;t t
21462s,@abs_srcdir@,$ac_abs_srcdir,;t t
21463s,@top_srcdir@,$ac_top_srcdir,;t t
21464s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21465s,@builddir@,$ac_builddir,;t t
21466s,@abs_builddir@,$ac_abs_builddir,;t t
21467s,@top_builddir@,$ac_top_builddir,;t t
21468s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21469s,@INSTALL@,$ac_INSTALL,;t t
21470" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21471  rm -f $tmp/stdin
21472  if test x"$ac_file" != x-; then
21473    mv $tmp/out $ac_file
21474  else
21475    cat $tmp/out
21476    rm -f $tmp/out
21477  fi
21478
21479done
21480_ACEOF
21481cat >>$CONFIG_STATUS <<\_ACEOF
21482
21483#
21484# CONFIG_HEADER section.
21485#
21486
21487# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21488# NAME is the cpp macro being defined and VALUE is the value it is being given.
21489#
21490# ac_d sets the value in "#define NAME VALUE" lines.
21491ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21492ac_dB='[	 ].*$,\1#\2'
21493ac_dC=' '
21494ac_dD=',;t'
21495# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21496ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21497ac_uB='$,\1#\2define\3'
21498ac_uC=' '
21499ac_uD=',;t'
21500
21501for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21502  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21503  case $ac_file in
21504  - | *:- | *:-:* ) # input from stdin
21505	cat >$tmp/stdin
21506	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21507	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21508  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21509	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21510  * )   ac_file_in=$ac_file.in ;;
21511  esac
21512
21513  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21514echo "$as_me: creating $ac_file" >&6;}
21515
21516  # First look for the input files in the build tree, otherwise in the
21517  # src tree.
21518  ac_file_inputs=`IFS=:
21519    for f in $ac_file_in; do
21520      case $f in
21521      -) echo $tmp/stdin ;;
21522      [\\/$]*)
21523	 # Absolute (can't be DOS-style, as IFS=:)
21524	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21525echo "$as_me: error: cannot find input file: $f" >&2;}
21526   { (exit 1); exit 1; }; }
21527	 # Do quote $f, to prevent DOS paths from being IFS'd.
21528	 echo "$f";;
21529      *) # Relative
21530	 if test -f "$f"; then
21531	   # Build tree
21532	   echo "$f"
21533	 elif test -f "$srcdir/$f"; then
21534	   # Source tree
21535	   echo "$srcdir/$f"
21536	 else
21537	   # /dev/null tree
21538	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21539echo "$as_me: error: cannot find input file: $f" >&2;}
21540   { (exit 1); exit 1; }; }
21541	 fi;;
21542      esac
21543    done` || { (exit 1); exit 1; }
21544  # Remove the trailing spaces.
21545  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21546
21547_ACEOF
21548
21549# Transform confdefs.h into two sed scripts, `conftest.defines' and
21550# `conftest.undefs', that substitutes the proper values into
21551# config.h.in to produce config.h.  The first handles `#define'
21552# templates, and the second `#undef' templates.
21553# And first: Protect against being on the right side of a sed subst in
21554# config.status.  Protect against being in an unquoted here document
21555# in config.status.
21556rm -f conftest.defines conftest.undefs
21557# Using a here document instead of a string reduces the quoting nightmare.
21558# Putting comments in sed scripts is not portable.
21559#
21560# `end' is used to avoid that the second main sed command (meant for
21561# 0-ary CPP macros) applies to n-ary macro definitions.
21562# See the Autoconf documentation for `clear'.
21563cat >confdef2sed.sed <<\_ACEOF
21564s/[\\&,]/\\&/g
21565s,[\\$`],\\&,g
21566t clear
21567: clear
21568s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21569t end
21570s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21571: end
21572_ACEOF
21573# If some macros were called several times there might be several times
21574# the same #defines, which is useless.  Nevertheless, we may not want to
21575# sort them, since we want the *last* AC-DEFINE to be honored.
21576uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21577sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21578rm -f confdef2sed.sed
21579
21580# This sed command replaces #undef with comments.  This is necessary, for
21581# example, in the case of _POSIX_SOURCE, which is predefined and required
21582# on some systems where configure will not decide to define it.
21583cat >>conftest.undefs <<\_ACEOF
21584s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21585_ACEOF
21586
21587# Break up conftest.defines because some shells have a limit on the size
21588# of here documents, and old seds have small limits too (100 cmds).
21589echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21590echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21591echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21592echo '  :' >>$CONFIG_STATUS
21593rm -f conftest.tail
21594while grep . conftest.defines >/dev/null
21595do
21596  # Write a limited-size here document to $tmp/defines.sed.
21597  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21598  # Speed up: don't consider the non `#define' lines.
21599  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21600  # Work around the forget-to-reset-the-flag bug.
21601  echo 't clr' >>$CONFIG_STATUS
21602  echo ': clr' >>$CONFIG_STATUS
21603  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21604  echo 'CEOF
21605  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21606  rm -f $tmp/in
21607  mv $tmp/out $tmp/in
21608' >>$CONFIG_STATUS
21609  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21610  rm -f conftest.defines
21611  mv conftest.tail conftest.defines
21612done
21613rm -f conftest.defines
21614echo '  fi # grep' >>$CONFIG_STATUS
21615echo >>$CONFIG_STATUS
21616
21617# Break up conftest.undefs because some shells have a limit on the size
21618# of here documents, and old seds have small limits too (100 cmds).
21619echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21620rm -f conftest.tail
21621while grep . conftest.undefs >/dev/null
21622do
21623  # Write a limited-size here document to $tmp/undefs.sed.
21624  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21625  # Speed up: don't consider the non `#undef'
21626  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21627  # Work around the forget-to-reset-the-flag bug.
21628  echo 't clr' >>$CONFIG_STATUS
21629  echo ': clr' >>$CONFIG_STATUS
21630  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21631  echo 'CEOF
21632  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21633  rm -f $tmp/in
21634  mv $tmp/out $tmp/in
21635' >>$CONFIG_STATUS
21636  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21637  rm -f conftest.undefs
21638  mv conftest.tail conftest.undefs
21639done
21640rm -f conftest.undefs
21641
21642cat >>$CONFIG_STATUS <<\_ACEOF
21643  # Let's still pretend it is `configure' which instantiates (i.e., don't
21644  # use $as_me), people would be surprised to read:
21645  #    /* config.h.  Generated by config.status.  */
21646  if test x"$ac_file" = x-; then
21647    echo "/* Generated by configure.  */" >$tmp/config.h
21648  else
21649    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21650  fi
21651  cat $tmp/in >>$tmp/config.h
21652  rm -f $tmp/in
21653  if test x"$ac_file" != x-; then
21654    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21655      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21656echo "$as_me: $ac_file is unchanged" >&6;}
21657    else
21658      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660	 X"$ac_file" : 'X\(//\)[^/]' \| \
21661	 X"$ac_file" : 'X\(//\)$' \| \
21662	 X"$ac_file" : 'X\(/\)' \| \
21663	 .     : '\(.\)' 2>/dev/null ||
21664echo X"$ac_file" |
21665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21666  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21667  	  /^X\(\/\/\)$/{ s//\1/; q; }
21668  	  /^X\(\/\).*/{ s//\1/; q; }
21669  	  s/.*/./; q'`
21670      { if $as_mkdir_p; then
21671    mkdir -p "$ac_dir"
21672  else
21673    as_dir="$ac_dir"
21674    as_dirs=
21675    while test ! -d "$as_dir"; do
21676      as_dirs="$as_dir $as_dirs"
21677      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679	 X"$as_dir" : 'X\(//\)[^/]' \| \
21680	 X"$as_dir" : 'X\(//\)$' \| \
21681	 X"$as_dir" : 'X\(/\)' \| \
21682	 .     : '\(.\)' 2>/dev/null ||
21683echo X"$as_dir" |
21684    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21685  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21686  	  /^X\(\/\/\)$/{ s//\1/; q; }
21687  	  /^X\(\/\).*/{ s//\1/; q; }
21688  	  s/.*/./; q'`
21689    done
21690    test ! -n "$as_dirs" || mkdir $as_dirs
21691  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21692echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21693   { (exit 1); exit 1; }; }; }
21694
21695      rm -f $ac_file
21696      mv $tmp/config.h $ac_file
21697    fi
21698  else
21699    cat $tmp/config.h
21700    rm -f $tmp/config.h
21701  fi
21702# Compute $ac_file's index in $config_headers.
21703_am_stamp_count=1
21704for _am_header in $config_headers :; do
21705  case $_am_header in
21706    $ac_file | $ac_file:* )
21707      break ;;
21708    * )
21709      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21710  esac
21711done
21712echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21713$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21714	 X$ac_file : 'X\(//\)[^/]' \| \
21715	 X$ac_file : 'X\(//\)$' \| \
21716	 X$ac_file : 'X\(/\)' \| \
21717	 .     : '\(.\)' 2>/dev/null ||
21718echo X$ac_file |
21719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21720  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21721  	  /^X\(\/\/\)$/{ s//\1/; q; }
21722  	  /^X\(\/\).*/{ s//\1/; q; }
21723  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21724done
21725_ACEOF
21726cat >>$CONFIG_STATUS <<\_ACEOF
21727
21728#
21729# CONFIG_COMMANDS section.
21730#
21731for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21732  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21733  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21734  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21735$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21736	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21737	 X"$ac_dest" : 'X\(//\)$' \| \
21738	 X"$ac_dest" : 'X\(/\)' \| \
21739	 .     : '\(.\)' 2>/dev/null ||
21740echo X"$ac_dest" |
21741    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21742  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21743  	  /^X\(\/\/\)$/{ s//\1/; q; }
21744  	  /^X\(\/\).*/{ s//\1/; q; }
21745  	  s/.*/./; q'`
21746  { if $as_mkdir_p; then
21747    mkdir -p "$ac_dir"
21748  else
21749    as_dir="$ac_dir"
21750    as_dirs=
21751    while test ! -d "$as_dir"; do
21752      as_dirs="$as_dir $as_dirs"
21753      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21755	 X"$as_dir" : 'X\(//\)[^/]' \| \
21756	 X"$as_dir" : 'X\(//\)$' \| \
21757	 X"$as_dir" : 'X\(/\)' \| \
21758	 .     : '\(.\)' 2>/dev/null ||
21759echo X"$as_dir" |
21760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21761  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21762  	  /^X\(\/\/\)$/{ s//\1/; q; }
21763  	  /^X\(\/\).*/{ s//\1/; q; }
21764  	  s/.*/./; q'`
21765    done
21766    test ! -n "$as_dirs" || mkdir $as_dirs
21767  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21769   { (exit 1); exit 1; }; }; }
21770
21771  ac_builddir=.
21772
21773if test "$ac_dir" != .; then
21774  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21775  # A "../" for each directory in $ac_dir_suffix.
21776  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21777else
21778  ac_dir_suffix= ac_top_builddir=
21779fi
21780
21781case $srcdir in
21782  .)  # No --srcdir option.  We are building in place.
21783    ac_srcdir=.
21784    if test -z "$ac_top_builddir"; then
21785       ac_top_srcdir=.
21786    else
21787       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21788    fi ;;
21789  [\\/]* | ?:[\\/]* )  # Absolute path.
21790    ac_srcdir=$srcdir$ac_dir_suffix;
21791    ac_top_srcdir=$srcdir ;;
21792  *) # Relative path.
21793    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21794    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21795esac
21796
21797# Do not use `cd foo && pwd` to compute absolute paths, because
21798# the directories may not exist.
21799case `pwd` in
21800.) ac_abs_builddir="$ac_dir";;
21801*)
21802  case "$ac_dir" in
21803  .) ac_abs_builddir=`pwd`;;
21804  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21805  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21806  esac;;
21807esac
21808case $ac_abs_builddir in
21809.) ac_abs_top_builddir=${ac_top_builddir}.;;
21810*)
21811  case ${ac_top_builddir}. in
21812  .) ac_abs_top_builddir=$ac_abs_builddir;;
21813  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21814  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21815  esac;;
21816esac
21817case $ac_abs_builddir in
21818.) ac_abs_srcdir=$ac_srcdir;;
21819*)
21820  case $ac_srcdir in
21821  .) ac_abs_srcdir=$ac_abs_builddir;;
21822  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21823  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21824  esac;;
21825esac
21826case $ac_abs_builddir in
21827.) ac_abs_top_srcdir=$ac_top_srcdir;;
21828*)
21829  case $ac_top_srcdir in
21830  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21831  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21832  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21833  esac;;
21834esac
21835
21836
21837  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21838echo "$as_me: executing $ac_dest commands" >&6;}
21839  case $ac_dest in
21840    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21841  # Strip MF so we end up with the name of the file.
21842  mf=`echo "$mf" | sed -e 's/:.*$//'`
21843  # Check whether this is an Automake generated Makefile or not.
21844  # We used to match only the files named `Makefile.in', but
21845  # some people rename them; so instead we look at the file content.
21846  # Grep'ing the first line is not enough: some people post-process
21847  # each Makefile.in and add a new line on top of each file to say so.
21848  # So let's grep whole file.
21849  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21850    dirpart=`(dirname "$mf") 2>/dev/null ||
21851$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21852	 X"$mf" : 'X\(//\)[^/]' \| \
21853	 X"$mf" : 'X\(//\)$' \| \
21854	 X"$mf" : 'X\(/\)' \| \
21855	 .     : '\(.\)' 2>/dev/null ||
21856echo X"$mf" |
21857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21858  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21859  	  /^X\(\/\/\)$/{ s//\1/; q; }
21860  	  /^X\(\/\).*/{ s//\1/; q; }
21861  	  s/.*/./; q'`
21862  else
21863    continue
21864  fi
21865  # Extract the definition of DEPDIR, am__include, and am__quote
21866  # from the Makefile without running `make'.
21867  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21868  test -z "$DEPDIR" && continue
21869  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21870  test -z "am__include" && continue
21871  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21872  # When using ansi2knr, U may be empty or an underscore; expand it
21873  U=`sed -n 's/^U = //p' < "$mf"`
21874  # Find all dependency output files, they are included files with
21875  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21876  # simplest approach to changing $(DEPDIR) to its actual value in the
21877  # expansion.
21878  for file in `sed -n "
21879    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21880       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21881    # Make sure the directory exists.
21882    test -f "$dirpart/$file" && continue
21883    fdir=`(dirname "$file") 2>/dev/null ||
21884$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885	 X"$file" : 'X\(//\)[^/]' \| \
21886	 X"$file" : 'X\(//\)$' \| \
21887	 X"$file" : 'X\(/\)' \| \
21888	 .     : '\(.\)' 2>/dev/null ||
21889echo X"$file" |
21890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21891  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21892  	  /^X\(\/\/\)$/{ s//\1/; q; }
21893  	  /^X\(\/\).*/{ s//\1/; q; }
21894  	  s/.*/./; q'`
21895    { if $as_mkdir_p; then
21896    mkdir -p $dirpart/$fdir
21897  else
21898    as_dir=$dirpart/$fdir
21899    as_dirs=
21900    while test ! -d "$as_dir"; do
21901      as_dirs="$as_dir $as_dirs"
21902      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21904	 X"$as_dir" : 'X\(//\)[^/]' \| \
21905	 X"$as_dir" : 'X\(//\)$' \| \
21906	 X"$as_dir" : 'X\(/\)' \| \
21907	 .     : '\(.\)' 2>/dev/null ||
21908echo X"$as_dir" |
21909    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21910  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21911  	  /^X\(\/\/\)$/{ s//\1/; q; }
21912  	  /^X\(\/\).*/{ s//\1/; q; }
21913  	  s/.*/./; q'`
21914    done
21915    test ! -n "$as_dirs" || mkdir $as_dirs
21916  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21917echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21918   { (exit 1); exit 1; }; }; }
21919
21920    # echo "creating $dirpart/$file"
21921    echo '# dummy' > "$dirpart/$file"
21922  done
21923done
21924 ;;
21925  esac
21926done
21927_ACEOF
21928
21929cat >>$CONFIG_STATUS <<\_ACEOF
21930
21931{ (exit 0); exit 0; }
21932_ACEOF
21933chmod +x $CONFIG_STATUS
21934ac_clean_files=$ac_clean_files_save
21935
21936
21937# configure is writing to config.log, and then calls config.status.
21938# config.status does its own redirection, appending to config.log.
21939# Unfortunately, on DOS this fails, as config.log is still kept open
21940# by configure, so config.status won't be able to write to it; its
21941# output is simply discarded.  So we exec the FD to /dev/null,
21942# effectively closing config.log, so it can be properly (re)opened and
21943# appended to by config.status.  When coming back to configure, we
21944# need to make the FD available again.
21945if test "$no_create" != yes; then
21946  ac_cs_success=:
21947  ac_config_status_args=
21948  test "$silent" = yes &&
21949    ac_config_status_args="$ac_config_status_args --quiet"
21950  exec 5>/dev/null
21951  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21952  exec 5>>config.log
21953  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21954  # would make configure fail if this is the last instruction.
21955  $ac_cs_success || { (exit 1); exit 1; }
21956fi
21957
21958