1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libpcl 1.5.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME='libpcl'
423PACKAGE_TARNAME='libpcl'
424PACKAGE_VERSION='1.5'
425PACKAGE_STRING='libpcl 1.5'
426PACKAGE_BUGREPORT=''
427
428# Factoring default headers for most tests.
429ac_includes_default="\
430#include <stdio.h>
431#if HAVE_SYS_TYPES_H
432# include <sys/types.h>
433#endif
434#if HAVE_SYS_STAT_H
435# include <sys/stat.h>
436#endif
437#if STDC_HEADERS
438# include <stdlib.h>
439# include <stddef.h>
440#else
441# if HAVE_STDLIB_H
442#  include <stdlib.h>
443# endif
444#endif
445#if HAVE_STRING_H
446# if !STDC_HEADERS && HAVE_MEMORY_H
447#  include <memory.h>
448# endif
449# include <string.h>
450#endif
451#if HAVE_STRINGS_H
452# include <strings.h>
453#endif
454#if HAVE_INTTYPES_H
455# include <inttypes.h>
456#else
457# if HAVE_STDINT_H
458#  include <stdint.h>
459# endif
460#endif
461#if HAVE_UNISTD_H
462# include <unistd.h>
463#endif"
464
465ac_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 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 RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
466ac_subst_files=''
467
468# Initialize some variables set by options.
469ac_init_help=
470ac_init_version=false
471# The variables have the same names as the options, with
472# dashes changed to underlines.
473cache_file=/dev/null
474exec_prefix=NONE
475no_create=
476no_recursion=
477prefix=NONE
478program_prefix=NONE
479program_suffix=NONE
480program_transform_name=s,x,x,
481silent=
482site=
483srcdir=
484verbose=
485x_includes=NONE
486x_libraries=NONE
487
488# Installation directory options.
489# These are left unexpanded so users can "make install exec_prefix=/foo"
490# and all the variables that are supposed to be based on exec_prefix
491# by default will actually change.
492# Use braces instead of parens because sh, perl, etc. also accept them.
493bindir='${exec_prefix}/bin'
494sbindir='${exec_prefix}/sbin'
495libexecdir='${exec_prefix}/libexec'
496datadir='${prefix}/share'
497sysconfdir='${prefix}/etc'
498sharedstatedir='${prefix}/com'
499localstatedir='${prefix}/var'
500libdir='${exec_prefix}/lib'
501includedir='${prefix}/include'
502oldincludedir='/usr/include'
503infodir='${prefix}/info'
504mandir='${prefix}/man'
505
506ac_prev=
507for ac_option
508do
509  # If the previous option needs an argument, assign it.
510  if test -n "$ac_prev"; then
511    eval "$ac_prev=\$ac_option"
512    ac_prev=
513    continue
514  fi
515
516  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518  # Accept the important Cygnus configure options, so we can diagnose typos.
519
520  case $ac_option in
521
522  -bindir | --bindir | --bindi | --bind | --bin | --bi)
523    ac_prev=bindir ;;
524  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525    bindir=$ac_optarg ;;
526
527  -build | --build | --buil | --bui | --bu)
528    ac_prev=build_alias ;;
529  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530    build_alias=$ac_optarg ;;
531
532  -cache-file | --cache-file | --cache-fil | --cache-fi \
533  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534    ac_prev=cache_file ;;
535  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537    cache_file=$ac_optarg ;;
538
539  --config-cache | -C)
540    cache_file=config.cache ;;
541
542  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543    ac_prev=datadir ;;
544  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545  | --da=*)
546    datadir=$ac_optarg ;;
547
548  -disable-* | --disable-*)
549    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553   { (exit 1); exit 1; }; }
554    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555    eval "enable_$ac_feature=no" ;;
556
557  -enable-* | --enable-*)
558    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559    # Reject names that are not valid shell variable names.
560    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562   { (exit 1); exit 1; }; }
563    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564    case $ac_option in
565      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566      *) ac_optarg=yes ;;
567    esac
568    eval "enable_$ac_feature='$ac_optarg'" ;;
569
570  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572  | --exec | --exe | --ex)
573    ac_prev=exec_prefix ;;
574  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576  | --exec=* | --exe=* | --ex=*)
577    exec_prefix=$ac_optarg ;;
578
579  -gas | --gas | --ga | --g)
580    # Obsolete; use --with-gas.
581    with_gas=yes ;;
582
583  -help | --help | --hel | --he | -h)
584    ac_init_help=long ;;
585  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586    ac_init_help=recursive ;;
587  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588    ac_init_help=short ;;
589
590  -host | --host | --hos | --ho)
591    ac_prev=host_alias ;;
592  -host=* | --host=* | --hos=* | --ho=*)
593    host_alias=$ac_optarg ;;
594
595  -includedir | --includedir | --includedi | --included | --include \
596  | --includ | --inclu | --incl | --inc)
597    ac_prev=includedir ;;
598  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599  | --includ=* | --inclu=* | --incl=* | --inc=*)
600    includedir=$ac_optarg ;;
601
602  -infodir | --infodir | --infodi | --infod | --info | --inf)
603    ac_prev=infodir ;;
604  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605    infodir=$ac_optarg ;;
606
607  -libdir | --libdir | --libdi | --libd)
608    ac_prev=libdir ;;
609  -libdir=* | --libdir=* | --libdi=* | --libd=*)
610    libdir=$ac_optarg ;;
611
612  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613  | --libexe | --libex | --libe)
614    ac_prev=libexecdir ;;
615  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616  | --libexe=* | --libex=* | --libe=*)
617    libexecdir=$ac_optarg ;;
618
619  -localstatedir | --localstatedir | --localstatedi | --localstated \
620  | --localstate | --localstat | --localsta | --localst \
621  | --locals | --local | --loca | --loc | --lo)
622    ac_prev=localstatedir ;;
623  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626    localstatedir=$ac_optarg ;;
627
628  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629    ac_prev=mandir ;;
630  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631    mandir=$ac_optarg ;;
632
633  -nfp | --nfp | --nf)
634    # Obsolete; use --without-fp.
635    with_fp=no ;;
636
637  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638  | --no-cr | --no-c | -n)
639    no_create=yes ;;
640
641  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643    no_recursion=yes ;;
644
645  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647  | --oldin | --oldi | --old | --ol | --o)
648    ac_prev=oldincludedir ;;
649  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652    oldincludedir=$ac_optarg ;;
653
654  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655    ac_prev=prefix ;;
656  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657    prefix=$ac_optarg ;;
658
659  -program-prefix | --program-prefix | --program-prefi | --program-pref \
660  | --program-pre | --program-pr | --program-p)
661    ac_prev=program_prefix ;;
662  -program-prefix=* | --program-prefix=* | --program-prefi=* \
663  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664    program_prefix=$ac_optarg ;;
665
666  -program-suffix | --program-suffix | --program-suffi | --program-suff \
667  | --program-suf | --program-su | --program-s)
668    ac_prev=program_suffix ;;
669  -program-suffix=* | --program-suffix=* | --program-suffi=* \
670  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671    program_suffix=$ac_optarg ;;
672
673  -program-transform-name | --program-transform-name \
674  | --program-transform-nam | --program-transform-na \
675  | --program-transform-n | --program-transform- \
676  | --program-transform | --program-transfor \
677  | --program-transfo | --program-transf \
678  | --program-trans | --program-tran \
679  | --progr-tra | --program-tr | --program-t)
680    ac_prev=program_transform_name ;;
681  -program-transform-name=* | --program-transform-name=* \
682  | --program-transform-nam=* | --program-transform-na=* \
683  | --program-transform-n=* | --program-transform-=* \
684  | --program-transform=* | --program-transfor=* \
685  | --program-transfo=* | --program-transf=* \
686  | --program-trans=* | --program-tran=* \
687  | --progr-tra=* | --program-tr=* | --program-t=*)
688    program_transform_name=$ac_optarg ;;
689
690  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691  | -silent | --silent | --silen | --sile | --sil)
692    silent=yes ;;
693
694  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695    ac_prev=sbindir ;;
696  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697  | --sbi=* | --sb=*)
698    sbindir=$ac_optarg ;;
699
700  -sharedstatedir | --sharedstatedir | --sharedstatedi \
701  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702  | --sharedst | --shareds | --shared | --share | --shar \
703  | --sha | --sh)
704    ac_prev=sharedstatedir ;;
705  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708  | --sha=* | --sh=*)
709    sharedstatedir=$ac_optarg ;;
710
711  -site | --site | --sit)
712    ac_prev=site ;;
713  -site=* | --site=* | --sit=*)
714    site=$ac_optarg ;;
715
716  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717    ac_prev=srcdir ;;
718  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719    srcdir=$ac_optarg ;;
720
721  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722  | --syscon | --sysco | --sysc | --sys | --sy)
723    ac_prev=sysconfdir ;;
724  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726    sysconfdir=$ac_optarg ;;
727
728  -target | --target | --targe | --targ | --tar | --ta | --t)
729    ac_prev=target_alias ;;
730  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731    target_alias=$ac_optarg ;;
732
733  -v | -verbose | --verbose | --verbos | --verbo | --verb)
734    verbose=yes ;;
735
736  -version | --version | --versio | --versi | --vers | -V)
737    ac_init_version=: ;;
738
739  -with-* | --with-*)
740    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741    # Reject names that are not valid shell variable names.
742    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743      { echo "$as_me: error: invalid package name: $ac_package" >&2
744   { (exit 1); exit 1; }; }
745    ac_package=`echo $ac_package| sed 's/-/_/g'`
746    case $ac_option in
747      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748      *) ac_optarg=yes ;;
749    esac
750    eval "with_$ac_package='$ac_optarg'" ;;
751
752  -without-* | --without-*)
753    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754    # Reject names that are not valid shell variable names.
755    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756      { echo "$as_me: error: invalid package name: $ac_package" >&2
757   { (exit 1); exit 1; }; }
758    ac_package=`echo $ac_package | sed 's/-/_/g'`
759    eval "with_$ac_package=no" ;;
760
761  --x)
762    # Obsolete; use --with-x.
763    with_x=yes ;;
764
765  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766  | --x-incl | --x-inc | --x-in | --x-i)
767    ac_prev=x_includes ;;
768  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770    x_includes=$ac_optarg ;;
771
772  -x-libraries | --x-libraries | --x-librarie | --x-librari \
773  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774    ac_prev=x_libraries ;;
775  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777    x_libraries=$ac_optarg ;;
778
779  -*) { echo "$as_me: error: unrecognized option: $ac_option
780Try \`$0 --help' for more information." >&2
781   { (exit 1); exit 1; }; }
782    ;;
783
784  *=*)
785    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786    # Reject names that are not valid shell variable names.
787    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789   { (exit 1); exit 1; }; }
790    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791    eval "$ac_envvar='$ac_optarg'"
792    export $ac_envvar ;;
793
794  *)
795    # FIXME: should be removed in autoconf 3.0.
796    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800    ;;
801
802  esac
803done
804
805if test -n "$ac_prev"; then
806  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807  { echo "$as_me: error: missing argument to $ac_option" >&2
808   { (exit 1); exit 1; }; }
809fi
810
811# Be sure to have absolute paths.
812for ac_var in exec_prefix prefix
813do
814  eval ac_val=$`echo $ac_var`
815  case $ac_val in
816    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818   { (exit 1); exit 1; }; };;
819  esac
820done
821
822# Be sure to have absolute paths.
823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824	      localstatedir libdir includedir oldincludedir infodir mandir
825do
826  eval ac_val=$`echo $ac_var`
827  case $ac_val in
828    [\\/$]* | ?:[\\/]* ) ;;
829    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830   { (exit 1); exit 1; }; };;
831  esac
832done
833
834# There might be people who depend on the old broken behavior: `$host'
835# used to hold the argument of --host etc.
836# FIXME: To remove some day.
837build=$build_alias
838host=$host_alias
839target=$target_alias
840
841# FIXME: To remove some day.
842if test "x$host_alias" != x; then
843  if test "x$build_alias" = x; then
844    cross_compiling=maybe
845    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846    If a cross compiler is detected then cross compile mode will be used." >&2
847  elif test "x$build_alias" != "x$host_alias"; then
848    cross_compiling=yes
849  fi
850fi
851
852ac_tool_prefix=
853test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855test "$silent" = yes && exec 6>/dev/null
856
857
858# Find the source files, if location was not specified.
859if test -z "$srcdir"; then
860  ac_srcdir_defaulted=yes
861  # Try the directory containing this script, then its parent.
862  ac_confdir=`(dirname "$0") 2>/dev/null ||
863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864	 X"$0" : 'X\(//\)[^/]' \| \
865	 X"$0" : 'X\(//\)$' \| \
866	 X"$0" : 'X\(/\)' \| \
867	 .     : '\(.\)' 2>/dev/null ||
868echo X"$0" |
869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871  	  /^X\(\/\/\)$/{ s//\1/; q; }
872  	  /^X\(\/\).*/{ s//\1/; q; }
873  	  s/.*/./; q'`
874  srcdir=$ac_confdir
875  if test ! -r $srcdir/$ac_unique_file; then
876    srcdir=..
877  fi
878else
879  ac_srcdir_defaulted=no
880fi
881if test ! -r $srcdir/$ac_unique_file; then
882  if test "$ac_srcdir_defaulted" = yes; then
883    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884   { (exit 1); exit 1; }; }
885  else
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887   { (exit 1); exit 1; }; }
888  fi
889fi
890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892   { (exit 1); exit 1; }; }
893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894ac_env_build_alias_set=${build_alias+set}
895ac_env_build_alias_value=$build_alias
896ac_cv_env_build_alias_set=${build_alias+set}
897ac_cv_env_build_alias_value=$build_alias
898ac_env_host_alias_set=${host_alias+set}
899ac_env_host_alias_value=$host_alias
900ac_cv_env_host_alias_set=${host_alias+set}
901ac_cv_env_host_alias_value=$host_alias
902ac_env_target_alias_set=${target_alias+set}
903ac_env_target_alias_value=$target_alias
904ac_cv_env_target_alias_set=${target_alias+set}
905ac_cv_env_target_alias_value=$target_alias
906ac_env_CC_set=${CC+set}
907ac_env_CC_value=$CC
908ac_cv_env_CC_set=${CC+set}
909ac_cv_env_CC_value=$CC
910ac_env_CFLAGS_set=${CFLAGS+set}
911ac_env_CFLAGS_value=$CFLAGS
912ac_cv_env_CFLAGS_set=${CFLAGS+set}
913ac_cv_env_CFLAGS_value=$CFLAGS
914ac_env_LDFLAGS_set=${LDFLAGS+set}
915ac_env_LDFLAGS_value=$LDFLAGS
916ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917ac_cv_env_LDFLAGS_value=$LDFLAGS
918ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919ac_env_CPPFLAGS_value=$CPPFLAGS
920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922ac_env_CPP_set=${CPP+set}
923ac_env_CPP_value=$CPP
924ac_cv_env_CPP_set=${CPP+set}
925ac_cv_env_CPP_value=$CPP
926ac_env_CXX_set=${CXX+set}
927ac_env_CXX_value=$CXX
928ac_cv_env_CXX_set=${CXX+set}
929ac_cv_env_CXX_value=$CXX
930ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_env_CXXFLAGS_value=$CXXFLAGS
932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934ac_env_CXXCPP_set=${CXXCPP+set}
935ac_env_CXXCPP_value=$CXXCPP
936ac_cv_env_CXXCPP_set=${CXXCPP+set}
937ac_cv_env_CXXCPP_value=$CXXCPP
938ac_env_F77_set=${F77+set}
939ac_env_F77_value=$F77
940ac_cv_env_F77_set=${F77+set}
941ac_cv_env_F77_value=$F77
942ac_env_FFLAGS_set=${FFLAGS+set}
943ac_env_FFLAGS_value=$FFLAGS
944ac_cv_env_FFLAGS_set=${FFLAGS+set}
945ac_cv_env_FFLAGS_value=$FFLAGS
946
947#
948# Report the --help message.
949#
950if test "$ac_init_help" = "long"; then
951  # Omit some internal or obsolete options to make the list less imposing.
952  # This message is too long to be a string in the A/UX 3.1 sh.
953  cat <<_ACEOF
954\`configure' configures libpcl 1.5 to adapt to many kinds of systems.
955
956Usage: $0 [OPTION]... [VAR=VALUE]...
957
958To assign environment variables (e.g., CC, CFLAGS...), specify them as
959VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961Defaults for the options are specified in brackets.
962
963Configuration:
964  -h, --help              display this help and exit
965      --help=short        display options specific to this package
966      --help=recursive    display the short help of all the included packages
967  -V, --version           display version information and exit
968  -q, --quiet, --silent   do not print \`checking...' messages
969      --cache-file=FILE   cache test results in FILE [disabled]
970  -C, --config-cache      alias for \`--cache-file=config.cache'
971  -n, --no-create         do not create output files
972      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974_ACEOF
975
976  cat <<_ACEOF
977Installation directories:
978  --prefix=PREFIX         install architecture-independent files in PREFIX
979			  [$ac_default_prefix]
980  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981			  [PREFIX]
982
983By default, \`make install' will install all the files in
984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986for instance \`--prefix=\$HOME'.
987
988For better control, use the options below.
989
990Fine tuning of the installation directories:
991  --bindir=DIR           user executables [EPREFIX/bin]
992  --sbindir=DIR          system admin executables [EPREFIX/sbin]
993  --libexecdir=DIR       program executables [EPREFIX/libexec]
994  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998  --libdir=DIR           object code libraries [EPREFIX/lib]
999  --includedir=DIR       C header files [PREFIX/include]
1000  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001  --infodir=DIR          info documentation [PREFIX/info]
1002  --mandir=DIR           man documentation [PREFIX/man]
1003_ACEOF
1004
1005  cat <<\_ACEOF
1006
1007Program names:
1008  --program-prefix=PREFIX            prepend PREFIX to installed program names
1009  --program-suffix=SUFFIX            append SUFFIX to installed program names
1010  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011
1012System types:
1013  --build=BUILD     configure for building on BUILD [guessed]
1014  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019  case $ac_init_help in
1020     short | recursive ) echo "Configuration of libpcl 1.5:";;
1021   esac
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --disable-dependency-tracking  speeds up one-time build
1028  --enable-dependency-tracking   do not reject slow dependency extractors
1029  --enable-shared[=PKGS]
1030                          build shared libraries [default=yes]
1031  --enable-static[=PKGS]
1032                          build static libraries [default=yes]
1033  --enable-fast-install[=PKGS]
1034                          optimize for fast installation [default=yes]
1035  --disable-libtool-lock  avoid locking (might break parallel builds)
1036
1037Optional Packages:
1038  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041  --with-pic              try to use only PIC/non-PIC objects [default=use
1042                          both]
1043  --with-tags[=TAGS]
1044                          include additional configurations [automatic]
1045
1046Some influential environment variables:
1047  CC          C compiler command
1048  CFLAGS      C compiler flags
1049  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1050              nonstandard directory <lib dir>
1051  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052              headers in a nonstandard directory <include dir>
1053  CPP         C preprocessor
1054  CXX         C++ compiler command
1055  CXXFLAGS    C++ compiler flags
1056  CXXCPP      C++ preprocessor
1057  F77         Fortran 77 compiler command
1058  FFLAGS      Fortran 77 compiler flags
1059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
1063_ACEOF
1064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067  # If there are subdirs, report their specific --help.
1068  ac_popdir=`pwd`
1069  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070    test -d $ac_dir || continue
1071    ac_builddir=.
1072
1073if test "$ac_dir" != .; then
1074  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075  # A "../" for each directory in $ac_dir_suffix.
1076  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078  ac_dir_suffix= ac_top_builddir=
1079fi
1080
1081case $srcdir in
1082  .)  # No --srcdir option.  We are building in place.
1083    ac_srcdir=.
1084    if test -z "$ac_top_builddir"; then
1085       ac_top_srcdir=.
1086    else
1087       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088    fi ;;
1089  [\\/]* | ?:[\\/]* )  # Absolute path.
1090    ac_srcdir=$srcdir$ac_dir_suffix;
1091    ac_top_srcdir=$srcdir ;;
1092  *) # Relative path.
1093    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
1096
1097# Do not use `cd foo && pwd` to compute absolute paths, because
1098# the directories may not exist.
1099case `pwd` in
1100.) ac_abs_builddir="$ac_dir";;
1101*)
1102  case "$ac_dir" in
1103  .) ac_abs_builddir=`pwd`;;
1104  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106  esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111  case ${ac_top_builddir}. in
1112  .) ac_abs_top_builddir=$ac_abs_builddir;;
1113  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115  esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120  case $ac_srcdir in
1121  .) ac_abs_srcdir=$ac_abs_builddir;;
1122  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124  esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129  case $ac_top_srcdir in
1130  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133  esac;;
1134esac
1135
1136    cd $ac_dir
1137    # Check for guested configure; otherwise get Cygnus style configure.
1138    if test -f $ac_srcdir/configure.gnu; then
1139      echo
1140      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1141    elif test -f $ac_srcdir/configure; then
1142      echo
1143      $SHELL $ac_srcdir/configure  --help=recursive
1144    elif test -f $ac_srcdir/configure.ac ||
1145	   test -f $ac_srcdir/configure.in; then
1146      echo
1147      $ac_configure --help
1148    else
1149      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150    fi
1151    cd "$ac_popdir"
1152  done
1153fi
1154
1155test -n "$ac_init_help" && exit 0
1156if $ac_init_version; then
1157  cat <<\_ACEOF
1158libpcl configure 1.5
1159generated by GNU Autoconf 2.59
1160
1161Copyright (C) 2003 Free Software Foundation, Inc.
1162This configure script is free software; the Free Software Foundation
1163gives unlimited permission to copy, distribute and modify it.
1164_ACEOF
1165  exit 0
1166fi
1167exec 5>config.log
1168cat >&5 <<_ACEOF
1169This file contains any messages produced by compilers while
1170running configure, to aid debugging if configure makes a mistake.
1171
1172It was created by libpcl $as_me 1.5, which was
1173generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175  $ $0 $@
1176
1177_ACEOF
1178{
1179cat <<_ASUNAME
1180## --------- ##
1181## Platform. ##
1182## --------- ##
1183
1184hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201_ASUNAME
1202
1203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204for as_dir in $PATH
1205do
1206  IFS=$as_save_IFS
1207  test -z "$as_dir" && as_dir=.
1208  echo "PATH: $as_dir"
1209done
1210
1211} >&5
1212
1213cat >&5 <<_ACEOF
1214
1215
1216## ----------- ##
1217## Core tests. ##
1218## ----------- ##
1219
1220_ACEOF
1221
1222
1223# Keep a trace of the command line.
1224# Strip out --no-create and --no-recursion so they do not pile up.
1225# Strip out --silent because we don't want to record it for future runs.
1226# Also quote any args containing shell meta-characters.
1227# Make two passes to allow for proper duplicate-argument suppression.
1228ac_configure_args=
1229ac_configure_args0=
1230ac_configure_args1=
1231ac_sep=
1232ac_must_keep_next=false
1233for ac_pass in 1 2
1234do
1235  for ac_arg
1236  do
1237    case $ac_arg in
1238    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240    | -silent | --silent | --silen | --sile | --sil)
1241      continue ;;
1242    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244    esac
1245    case $ac_pass in
1246    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247    2)
1248      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249      if test $ac_must_keep_next = true; then
1250	ac_must_keep_next=false # Got value, back to normal.
1251      else
1252	case $ac_arg in
1253	  *=* | --config-cache | -C | -disable-* | --disable-* \
1254	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256	  | -with-* | --with-* | -without-* | --without-* | --x)
1257	    case "$ac_configure_args0 " in
1258	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259	    esac
1260	    ;;
1261	  -* ) ac_must_keep_next=true ;;
1262	esac
1263      fi
1264      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265      # Get rid of the leading space.
1266      ac_sep=" "
1267      ;;
1268    esac
1269  done
1270done
1271$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274# When interrupted or exit'd, cleanup temporary files, and complete
1275# config.log.  We remove comments because anyway the quotes in there
1276# would cause problems or look ugly.
1277# WARNING: Be sure not to use single quotes in there, as some shells,
1278# such as our DU 5.0 friend, will then `close' the trap.
1279trap 'exit_status=$?
1280  # Save into config.log some information that might help in debugging.
1281  {
1282    echo
1283
1284    cat <<\_ASBOX
1285## ---------------- ##
1286## Cache variables. ##
1287## ---------------- ##
1288_ASBOX
1289    echo
1290    # The following way of writing the cache mishandles newlines in values,
1291{
1292  (set) 2>&1 |
1293    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294    *ac_space=\ *)
1295      sed -n \
1296	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298      ;;
1299    *)
1300      sed -n \
1301	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302      ;;
1303    esac;
1304}
1305    echo
1306
1307    cat <<\_ASBOX
1308## ----------------- ##
1309## Output variables. ##
1310## ----------------- ##
1311_ASBOX
1312    echo
1313    for ac_var in $ac_subst_vars
1314    do
1315      eval ac_val=$`echo $ac_var`
1316      echo "$ac_var='"'"'$ac_val'"'"'"
1317    done | sort
1318    echo
1319
1320    if test -n "$ac_subst_files"; then
1321      cat <<\_ASBOX
1322## ------------- ##
1323## Output files. ##
1324## ------------- ##
1325_ASBOX
1326      echo
1327      for ac_var in $ac_subst_files
1328      do
1329	eval ac_val=$`echo $ac_var`
1330	echo "$ac_var='"'"'$ac_val'"'"'"
1331      done | sort
1332      echo
1333    fi
1334
1335    if test -s confdefs.h; then
1336      cat <<\_ASBOX
1337## ----------- ##
1338## confdefs.h. ##
1339## ----------- ##
1340_ASBOX
1341      echo
1342      sed "/^$/d" confdefs.h | sort
1343      echo
1344    fi
1345    test "$ac_signal" != 0 &&
1346      echo "$as_me: caught signal $ac_signal"
1347    echo "$as_me: exit $exit_status"
1348  } >&5
1349  rm -f core *.core &&
1350  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351    exit $exit_status
1352     ' 0
1353for ac_signal in 1 2 13 15; do
1354  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355done
1356ac_signal=0
1357
1358# confdefs.h avoids OS command line length limits that DEFS can exceed.
1359rm -rf conftest* confdefs.h
1360# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361echo >confdefs.h
1362
1363# Predefined preprocessor variables.
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_NAME "$PACKAGE_NAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_VERSION "$PACKAGE_VERSION"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_STRING "$PACKAGE_STRING"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387_ACEOF
1388
1389
1390# Let the site file select an alternate cache file if it wants to.
1391# Prefer explicitly selected file to automatically selected ones.
1392if test -z "$CONFIG_SITE"; then
1393  if test "x$prefix" != xNONE; then
1394    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395  else
1396    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397  fi
1398fi
1399for ac_site_file in $CONFIG_SITE; do
1400  if test -r "$ac_site_file"; then
1401    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402echo "$as_me: loading site script $ac_site_file" >&6;}
1403    sed 's/^/| /' "$ac_site_file" >&5
1404    . "$ac_site_file"
1405  fi
1406done
1407
1408if test -r "$cache_file"; then
1409  # Some versions of bash will fail to source /dev/null (special
1410  # files actually), so we avoid doing that.
1411  if test -f "$cache_file"; then
1412    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413echo "$as_me: loading cache $cache_file" >&6;}
1414    case $cache_file in
1415      [\\/]* | ?:[\\/]* ) . $cache_file;;
1416      *)                      . ./$cache_file;;
1417    esac
1418  fi
1419else
1420  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421echo "$as_me: creating cache $cache_file" >&6;}
1422  >$cache_file
1423fi
1424
1425# Check that the precious variables saved in the cache have kept the same
1426# value.
1427ac_cache_corrupted=false
1428for ac_var in `(set) 2>&1 |
1429	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431  eval ac_new_set=\$ac_env_${ac_var}_set
1432  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433  eval ac_new_val="\$ac_env_${ac_var}_value"
1434  case $ac_old_set,$ac_new_set in
1435    set,)
1436      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438      ac_cache_corrupted=: ;;
1439    ,set)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,);;
1444    *)
1445      if test "x$ac_old_val" != "x$ac_new_val"; then
1446	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449echo "$as_me:   former value:  $ac_old_val" >&2;}
1450	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451echo "$as_me:   current value: $ac_new_val" >&2;}
1452	ac_cache_corrupted=:
1453      fi;;
1454  esac
1455  # Pass precious variables to config.status.
1456  if test "$ac_new_set" = set; then
1457    case $ac_new_val in
1458    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460    *) ac_arg=$ac_var=$ac_new_val ;;
1461    esac
1462    case " $ac_configure_args " in
1463      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465    esac
1466  fi
1467done
1468if $ac_cache_corrupted; then
1469  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473   { (exit 1); exit 1; }; }
1474fi
1475
1476ac_ext=c
1477ac_cpp='$CPP $CPPFLAGS'
1478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508am__api_version="1.9"
1509ac_aux_dir=
1510for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1511  if test -f $ac_dir/install-sh; then
1512    ac_aux_dir=$ac_dir
1513    ac_install_sh="$ac_aux_dir/install-sh -c"
1514    break
1515  elif test -f $ac_dir/install.sh; then
1516    ac_aux_dir=$ac_dir
1517    ac_install_sh="$ac_aux_dir/install.sh -c"
1518    break
1519  elif test -f $ac_dir/shtool; then
1520    ac_aux_dir=$ac_dir
1521    ac_install_sh="$ac_aux_dir/shtool install -c"
1522    break
1523  fi
1524done
1525if test -z "$ac_aux_dir"; then
1526  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1527echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1528   { (exit 1); exit 1; }; }
1529fi
1530ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1533
1534# Find a good install program.  We prefer a C program (faster),
1535# so one script is as good as another.  But avoid the broken or
1536# incompatible versions:
1537# SysV /etc/install, /usr/sbin/install
1538# SunOS /usr/etc/install
1539# IRIX /sbin/install
1540# AIX /bin/install
1541# AmigaOS /C/install, which installs bootblocks on floppy discs
1542# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1543# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1544# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1545# OS/2's system install, which has a completely different semantic
1546# ./install, which can be erroneously created by make from ./install.sh.
1547echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1548echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1549if test -z "$INSTALL"; then
1550if test "${ac_cv_path_install+set}" = set; then
1551  echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556  IFS=$as_save_IFS
1557  test -z "$as_dir" && as_dir=.
1558  # Account for people who put trailing slashes in PATH elements.
1559case $as_dir/ in
1560  ./ | .// | /cC/* | \
1561  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1562  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1563  /usr/ucb/* ) ;;
1564  *)
1565    # OSF1 and SCO ODT 3.0 have their own names for install.
1566    # Don't use installbsd from OSF since it installs stuff as root
1567    # by default.
1568    for ac_prog in ginstall scoinst install; do
1569      for ac_exec_ext in '' $ac_executable_extensions; do
1570	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1571	  if test $ac_prog = install &&
1572	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573	    # AIX install.  It has an incompatible calling convention.
1574	    :
1575	  elif test $ac_prog = install &&
1576	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577	    # program-specific install script used by HP pwplus--don't use.
1578	    :
1579	  else
1580	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1581	    break 3
1582	  fi
1583	fi
1584      done
1585    done
1586    ;;
1587esac
1588done
1589
1590
1591fi
1592  if test "${ac_cv_path_install+set}" = set; then
1593    INSTALL=$ac_cv_path_install
1594  else
1595    # As a last resort, use the slow shell script.  We don't cache a
1596    # path for INSTALL within a source directory, because that will
1597    # break other packages using the cache if that directory is
1598    # removed, or if the path is relative.
1599    INSTALL=$ac_install_sh
1600  fi
1601fi
1602echo "$as_me:$LINENO: result: $INSTALL" >&5
1603echo "${ECHO_T}$INSTALL" >&6
1604
1605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1606# It thinks the first close brace ends the variable substitution.
1607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1608
1609test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1610
1611test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1612
1613echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1614echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1615# Just in case
1616sleep 1
1617echo timestamp > conftest.file
1618# Do `set' in a subshell so we don't clobber the current shell's
1619# arguments.  Must try -L first in case configure is actually a
1620# symlink; some systems play weird games with the mod time of symlinks
1621# (eg FreeBSD returns the mod time of the symlink's containing
1622# directory).
1623if (
1624   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1625   if test "$*" = "X"; then
1626      # -L didn't work.
1627      set X `ls -t $srcdir/configure conftest.file`
1628   fi
1629   rm -f conftest.file
1630   if test "$*" != "X $srcdir/configure conftest.file" \
1631      && test "$*" != "X conftest.file $srcdir/configure"; then
1632
1633      # If neither matched, then we have a broken ls.  This can happen
1634      # if, for instance, CONFIG_SHELL is bash and it inherits a
1635      # broken ls alias from the environment.  This has actually
1636      # happened.  Such a system could not be considered "sane".
1637      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1638alias in your environment" >&5
1639echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1640alias in your environment" >&2;}
1641   { (exit 1); exit 1; }; }
1642   fi
1643
1644   test "$2" = conftest.file
1645   )
1646then
1647   # Ok.
1648   :
1649else
1650   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1651Check your system clock" >&5
1652echo "$as_me: error: newly created file is older than distributed files!
1653Check your system clock" >&2;}
1654   { (exit 1); exit 1; }; }
1655fi
1656echo "$as_me:$LINENO: result: yes" >&5
1657echo "${ECHO_T}yes" >&6
1658test "$program_prefix" != NONE &&
1659  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1660# Use a double $ so make ignores it.
1661test "$program_suffix" != NONE &&
1662  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1663# Double any \ or $.  echo might interpret backslashes.
1664# By default was `s,x,x', remove it if useless.
1665cat <<\_ACEOF >conftest.sed
1666s/[\\$]/&&/g;s/;s,x,x,$//
1667_ACEOF
1668program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1669rm conftest.sed
1670
1671# expand $ac_aux_dir to an absolute path
1672am_aux_dir=`cd $ac_aux_dir && pwd`
1673
1674test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1675# Use eval to expand $SHELL
1676if eval "$MISSING --run true"; then
1677  am_missing_run="$MISSING --run "
1678else
1679  am_missing_run=
1680  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1681echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1682fi
1683
1684if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1685  # We used to keeping the `.' as first argument, in order to
1686  # allow $(mkdir_p) to be used without argument.  As in
1687  #   $(mkdir_p) $(somedir)
1688  # where $(somedir) is conditionally defined.  However this is wrong
1689  # for two reasons:
1690  #  1. if the package is installed by a user who cannot write `.'
1691  #     make install will fail,
1692  #  2. the above comment should most certainly read
1693  #     $(mkdir_p) $(DESTDIR)$(somedir)
1694  #     so it does not work when $(somedir) is undefined and
1695  #     $(DESTDIR) is not.
1696  #  To support the latter case, we have to write
1697  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1698  #  so the `.' trick is pointless.
1699  mkdir_p='mkdir -p --'
1700else
1701  # On NextStep and OpenStep, the `mkdir' command does not
1702  # recognize any option.  It will interpret all options as
1703  # directories to create, and then abort because `.' already
1704  # exists.
1705  for d in ./-p ./--version;
1706  do
1707    test -d $d && rmdir $d
1708  done
1709  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1710  if test -f "$ac_aux_dir/mkinstalldirs"; then
1711    mkdir_p='$(mkinstalldirs)'
1712  else
1713    mkdir_p='$(install_sh) -d'
1714  fi
1715fi
1716
1717for ac_prog in gawk mawk nawk awk
1718do
1719  # Extract the first word of "$ac_prog", so it can be a program name with args.
1720set dummy $ac_prog; ac_word=$2
1721echo "$as_me:$LINENO: checking for $ac_word" >&5
1722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723if test "${ac_cv_prog_AWK+set}" = set; then
1724  echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726  if test -n "$AWK"; then
1727  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728else
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732  IFS=$as_save_IFS
1733  test -z "$as_dir" && as_dir=.
1734  for ac_exec_ext in '' $ac_executable_extensions; do
1735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736    ac_cv_prog_AWK="$ac_prog"
1737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738    break 2
1739  fi
1740done
1741done
1742
1743fi
1744fi
1745AWK=$ac_cv_prog_AWK
1746if test -n "$AWK"; then
1747  echo "$as_me:$LINENO: result: $AWK" >&5
1748echo "${ECHO_T}$AWK" >&6
1749else
1750  echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754  test -n "$AWK" && break
1755done
1756
1757echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1760if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  cat >conftest.make <<\_ACEOF
1764all:
1765	@echo 'ac_maketemp="$(MAKE)"'
1766_ACEOF
1767# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769if test -n "$ac_maketemp"; then
1770  eval ac_cv_prog_make_${ac_make}_set=yes
1771else
1772  eval ac_cv_prog_make_${ac_make}_set=no
1773fi
1774rm -f conftest.make
1775fi
1776if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777  echo "$as_me:$LINENO: result: yes" >&5
1778echo "${ECHO_T}yes" >&6
1779  SET_MAKE=
1780else
1781  echo "$as_me:$LINENO: result: no" >&5
1782echo "${ECHO_T}no" >&6
1783  SET_MAKE="MAKE=${MAKE-make}"
1784fi
1785
1786rm -rf .tst 2>/dev/null
1787mkdir .tst 2>/dev/null
1788if test -d .tst; then
1789  am__leading_dot=.
1790else
1791  am__leading_dot=_
1792fi
1793rmdir .tst 2>/dev/null
1794
1795# test to see if srcdir already configured
1796if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797   test -f $srcdir/config.status; then
1798  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800   { (exit 1); exit 1; }; }
1801fi
1802
1803# test whether we have cygpath
1804if test -z "$CYGPATH_W"; then
1805  if (cygpath --version) >/dev/null 2>/dev/null; then
1806    CYGPATH_W='cygpath -w'
1807  else
1808    CYGPATH_W=echo
1809  fi
1810fi
1811
1812
1813# Define the identity of the package.
1814 PACKAGE=libpcl
1815 VERSION=1.6
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE "$PACKAGE"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define VERSION "$VERSION"
1825_ACEOF
1826
1827# Some tools Automake needs.
1828
1829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1830
1831
1832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1833
1834
1835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1836
1837
1838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1839
1840
1841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1842
1843install_sh=${install_sh-"$am_aux_dir/install-sh"}
1844
1845# Installed binaries are usually stripped using `strip' when the user
1846# run `make install-strip'.  However `strip' might not be the right
1847# tool to use in cross-compilation environments, therefore Automake
1848# will honor the `STRIP' environment variable to overrule this program.
1849if test "$cross_compiling" != no; then
1850  if test -n "$ac_tool_prefix"; then
1851  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852set dummy ${ac_tool_prefix}strip; ac_word=$2
1853echo "$as_me:$LINENO: checking for $ac_word" >&5
1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855if test "${ac_cv_prog_STRIP+set}" = set; then
1856  echo $ECHO_N "(cached) $ECHO_C" >&6
1857else
1858  if test -n "$STRIP"; then
1859  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1860else
1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862for as_dir in $PATH
1863do
1864  IFS=$as_save_IFS
1865  test -z "$as_dir" && as_dir=.
1866  for ac_exec_ext in '' $ac_executable_extensions; do
1867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870    break 2
1871  fi
1872done
1873done
1874
1875fi
1876fi
1877STRIP=$ac_cv_prog_STRIP
1878if test -n "$STRIP"; then
1879  echo "$as_me:$LINENO: result: $STRIP" >&5
1880echo "${ECHO_T}$STRIP" >&6
1881else
1882  echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
1884fi
1885
1886fi
1887if test -z "$ac_cv_prog_STRIP"; then
1888  ac_ct_STRIP=$STRIP
1889  # Extract the first word of "strip", so it can be a program name with args.
1890set dummy strip; ac_word=$2
1891echo "$as_me:$LINENO: checking for $ac_word" >&5
1892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1894  echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896  if test -n "$ac_ct_STRIP"; then
1897  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1898else
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH
1901do
1902  IFS=$as_save_IFS
1903  test -z "$as_dir" && as_dir=.
1904  for ac_exec_ext in '' $ac_executable_extensions; do
1905  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906    ac_cv_prog_ac_ct_STRIP="strip"
1907    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908    break 2
1909  fi
1910done
1911done
1912
1913  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1914fi
1915fi
1916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1917if test -n "$ac_ct_STRIP"; then
1918  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1919echo "${ECHO_T}$ac_ct_STRIP" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925  STRIP=$ac_ct_STRIP
1926else
1927  STRIP="$ac_cv_prog_STRIP"
1928fi
1929
1930fi
1931INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1932
1933# We need awk for the "check" target.  The system "awk" is bad on
1934# some platforms.
1935# Always define AMTAR for backward compatibility.
1936
1937AMTAR=${AMTAR-"${am_missing_run}tar"}
1938
1939am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1940
1941
1942
1943
1944
1945          ac_config_headers="$ac_config_headers config.h"
1946
1947
1948echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1949echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1950set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1951if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954  cat >conftest.make <<\_ACEOF
1955all:
1956	@echo 'ac_maketemp="$(MAKE)"'
1957_ACEOF
1958# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1959eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1960if test -n "$ac_maketemp"; then
1961  eval ac_cv_prog_make_${ac_make}_set=yes
1962else
1963  eval ac_cv_prog_make_${ac_make}_set=no
1964fi
1965rm -f conftest.make
1966fi
1967if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1968  echo "$as_me:$LINENO: result: yes" >&5
1969echo "${ECHO_T}yes" >&6
1970  SET_MAKE=
1971else
1972  echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974  SET_MAKE="MAKE=${MAKE-make}"
1975fi
1976
1977ac_ext=c
1978ac_cpp='$CPP $CPPFLAGS'
1979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982if test -n "$ac_tool_prefix"; then
1983  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1984set dummy ${ac_tool_prefix}gcc; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_CC+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$CC"; then
1991  ac_cv_prog_CC="$CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011  echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6
2013else
2014  echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018fi
2019if test -z "$ac_cv_prog_CC"; then
2020  ac_ct_CC=$CC
2021  # Extract the first word of "gcc", so it can be a program name with args.
2022set dummy gcc; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  if test -n "$ac_ct_CC"; then
2029  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  for ac_exec_ext in '' $ac_executable_extensions; do
2037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038    ac_cv_prog_ac_ct_CC="gcc"
2039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040    break 2
2041  fi
2042done
2043done
2044
2045fi
2046fi
2047ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048if test -n "$ac_ct_CC"; then
2049  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050echo "${ECHO_T}$ac_ct_CC" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056  CC=$ac_ct_CC
2057else
2058  CC="$ac_cv_prog_CC"
2059fi
2060
2061if test -z "$CC"; then
2062  if test -n "$ac_tool_prefix"; then
2063  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2064set dummy ${ac_tool_prefix}cc; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_CC+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$CC"; then
2071  ac_cv_prog_CC="$CC" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078  for ac_exec_ext in '' $ac_executable_extensions; do
2079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080    ac_cv_prog_CC="${ac_tool_prefix}cc"
2081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082    break 2
2083  fi
2084done
2085done
2086
2087fi
2088fi
2089CC=$ac_cv_prog_CC
2090if test -n "$CC"; then
2091  echo "$as_me:$LINENO: result: $CC" >&5
2092echo "${ECHO_T}$CC" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098fi
2099if test -z "$ac_cv_prog_CC"; then
2100  ac_ct_CC=$CC
2101  # Extract the first word of "cc", so it can be a program name with args.
2102set dummy cc; ac_word=$2
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  if test -n "$ac_ct_CC"; then
2109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110else
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_exec_ext in '' $ac_executable_extensions; do
2117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118    ac_cv_prog_ac_ct_CC="cc"
2119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120    break 2
2121  fi
2122done
2123done
2124
2125fi
2126fi
2127ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128if test -n "$ac_ct_CC"; then
2129  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130echo "${ECHO_T}$ac_ct_CC" >&6
2131else
2132  echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6
2134fi
2135
2136  CC=$ac_ct_CC
2137else
2138  CC="$ac_cv_prog_CC"
2139fi
2140
2141fi
2142if test -z "$CC"; then
2143  # Extract the first word of "cc", so it can be a program name with args.
2144set dummy cc; ac_word=$2
2145echo "$as_me:$LINENO: checking for $ac_word" >&5
2146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147if test "${ac_cv_prog_CC+set}" = set; then
2148  echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150  if test -n "$CC"; then
2151  ac_cv_prog_CC="$CC" # Let the user override the test.
2152else
2153  ac_prog_rejected=no
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_exec_ext in '' $ac_executable_extensions; do
2160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162       ac_prog_rejected=yes
2163       continue
2164     fi
2165    ac_cv_prog_CC="cc"
2166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167    break 2
2168  fi
2169done
2170done
2171
2172if test $ac_prog_rejected = yes; then
2173  # We found a bogon in the path, so make sure we never use it.
2174  set dummy $ac_cv_prog_CC
2175  shift
2176  if test $# != 0; then
2177    # We chose a different compiler from the bogus one.
2178    # However, it has the same basename, so the bogon will be chosen
2179    # first if we set CC to just the basename; use the full file name.
2180    shift
2181    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2182  fi
2183fi
2184fi
2185fi
2186CC=$ac_cv_prog_CC
2187if test -n "$CC"; then
2188  echo "$as_me:$LINENO: result: $CC" >&5
2189echo "${ECHO_T}$CC" >&6
2190else
2191  echo "$as_me:$LINENO: result: no" >&5
2192echo "${ECHO_T}no" >&6
2193fi
2194
2195fi
2196if test -z "$CC"; then
2197  if test -n "$ac_tool_prefix"; then
2198  for ac_prog in cl
2199  do
2200    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2202echo "$as_me:$LINENO: checking for $ac_word" >&5
2203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2204if test "${ac_cv_prog_CC+set}" = set; then
2205  echo $ECHO_N "(cached) $ECHO_C" >&6
2206else
2207  if test -n "$CC"; then
2208  ac_cv_prog_CC="$CC" # Let the user override the test.
2209else
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213  IFS=$as_save_IFS
2214  test -z "$as_dir" && as_dir=.
2215  for ac_exec_ext in '' $ac_executable_extensions; do
2216  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2217    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219    break 2
2220  fi
2221done
2222done
2223
2224fi
2225fi
2226CC=$ac_cv_prog_CC
2227if test -n "$CC"; then
2228  echo "$as_me:$LINENO: result: $CC" >&5
2229echo "${ECHO_T}$CC" >&6
2230else
2231  echo "$as_me:$LINENO: result: no" >&5
2232echo "${ECHO_T}no" >&6
2233fi
2234
2235    test -n "$CC" && break
2236  done
2237fi
2238if test -z "$CC"; then
2239  ac_ct_CC=$CC
2240  for ac_prog in cl
2241do
2242  # Extract the first word of "$ac_prog", so it can be a program name with args.
2243set dummy $ac_prog; ac_word=$2
2244echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2247  echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249  if test -n "$ac_ct_CC"; then
2250  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2251else
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255  IFS=$as_save_IFS
2256  test -z "$as_dir" && as_dir=.
2257  for ac_exec_ext in '' $ac_executable_extensions; do
2258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259    ac_cv_prog_ac_ct_CC="$ac_prog"
2260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261    break 2
2262  fi
2263done
2264done
2265
2266fi
2267fi
2268ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269if test -n "$ac_ct_CC"; then
2270  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271echo "${ECHO_T}$ac_ct_CC" >&6
2272else
2273  echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6
2275fi
2276
2277  test -n "$ac_ct_CC" && break
2278done
2279
2280  CC=$ac_ct_CC
2281fi
2282
2283fi
2284
2285
2286test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: no acceptable C compiler found in \$PATH
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291
2292# Provide some information about the compiler.
2293echo "$as_me:$LINENO:" \
2294     "checking for C compiler version" >&5
2295ac_compiler=`set X $ac_compile; echo $2`
2296{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2297  (eval $ac_compiler --version </dev/null >&5) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }
2301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2302  (eval $ac_compiler -v </dev/null >&5) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }
2306{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2307  (eval $ac_compiler -V </dev/null >&5) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }
2311
2312cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h.  */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h.  */
2318
2319int
2320main ()
2321{
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327ac_clean_files_save=$ac_clean_files
2328ac_clean_files="$ac_clean_files a.out a.exe b.out"
2329# Try to create an executable without -o first, disregard a.out.
2330# It will help us diagnose broken compilers, and finding out an intuition
2331# of exeext.
2332echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2333echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2334ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2335if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2336  (eval $ac_link_default) 2>&5
2337  ac_status=$?
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); }; then
2340  # Find the output, starting from the most likely.  This scheme is
2341# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2342# resort.
2343
2344# Be careful to initialize this variable, since it used to be cached.
2345# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2346ac_cv_exeext=
2347# b.out is created by i960 compilers.
2348for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2349do
2350  test -f "$ac_file" || continue
2351  case $ac_file in
2352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2353	;;
2354    conftest.$ac_ext )
2355	# This is the source file.
2356	;;
2357    [ab].out )
2358	# We found the default executable, but exeext='' is most
2359	# certainly right.
2360	break;;
2361    *.* )
2362	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363	# FIXME: I believe we export ac_cv_exeext for Libtool,
2364	# but it would be cool to find out if it's true.  Does anybody
2365	# maintain Libtool? --akim.
2366	export ac_cv_exeext
2367	break;;
2368    * )
2369	break;;
2370  esac
2371done
2372else
2373  echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2377See \`config.log' for more details." >&5
2378echo "$as_me: error: C compiler cannot create executables
2379See \`config.log' for more details." >&2;}
2380   { (exit 77); exit 77; }; }
2381fi
2382
2383ac_exeext=$ac_cv_exeext
2384echo "$as_me:$LINENO: result: $ac_file" >&5
2385echo "${ECHO_T}$ac_file" >&6
2386
2387# Check the compiler produces executables we can run.  If not, either
2388# the compiler is broken, or we cross compile.
2389echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2390echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2391# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2392# If not cross compiling, check that we can run a simple program.
2393if test "$cross_compiling" != yes; then
2394  if { ac_try='./$ac_file'
2395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396  (eval $ac_try) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; }; then
2400    cross_compiling=no
2401  else
2402    if test "$cross_compiling" = maybe; then
2403	cross_compiling=yes
2404    else
2405	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2406If you meant to cross compile, use \`--host'.
2407See \`config.log' for more details." >&5
2408echo "$as_me: error: cannot run C compiled programs.
2409If you meant to cross compile, use \`--host'.
2410See \`config.log' for more details." >&2;}
2411   { (exit 1); exit 1; }; }
2412    fi
2413  fi
2414fi
2415echo "$as_me:$LINENO: result: yes" >&5
2416echo "${ECHO_T}yes" >&6
2417
2418rm -f a.out a.exe conftest$ac_cv_exeext b.out
2419ac_clean_files=$ac_clean_files_save
2420# Check the compiler produces executables we can run.  If not, either
2421# the compiler is broken, or we cross compile.
2422echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2423echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2424echo "$as_me:$LINENO: result: $cross_compiling" >&5
2425echo "${ECHO_T}$cross_compiling" >&6
2426
2427echo "$as_me:$LINENO: checking for suffix of executables" >&5
2428echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2430  (eval $ac_link) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; then
2434  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2435# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2436# work properly (i.e., refer to `conftest.exe'), while it won't with
2437# `rm'.
2438for ac_file in conftest.exe conftest conftest.*; do
2439  test -f "$ac_file" || continue
2440  case $ac_file in
2441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2442    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443	  export ac_cv_exeext
2444	  break;;
2445    * ) break;;
2446  esac
2447done
2448else
2449  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2450See \`config.log' for more details." >&5
2451echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2452See \`config.log' for more details." >&2;}
2453   { (exit 1); exit 1; }; }
2454fi
2455
2456rm -f conftest$ac_cv_exeext
2457echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2458echo "${ECHO_T}$ac_cv_exeext" >&6
2459
2460rm -f conftest.$ac_ext
2461EXEEXT=$ac_cv_exeext
2462ac_exeext=$EXEEXT
2463echo "$as_me:$LINENO: checking for suffix of object files" >&5
2464echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2465if test "${ac_cv_objext+set}" = set; then
2466  echo $ECHO_N "(cached) $ECHO_C" >&6
2467else
2468  cat >conftest.$ac_ext <<_ACEOF
2469/* confdefs.h.  */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h.  */
2474
2475int
2476main ()
2477{
2478
2479  ;
2480  return 0;
2481}
2482_ACEOF
2483rm -f conftest.o conftest.obj
2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485  (eval $ac_compile) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; then
2489  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2490  case $ac_file in
2491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2492    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2493       break;;
2494  esac
2495done
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2501See \`config.log' for more details." >&5
2502echo "$as_me: error: cannot compute suffix of object files: cannot compile
2503See \`config.log' for more details." >&2;}
2504   { (exit 1); exit 1; }; }
2505fi
2506
2507rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508fi
2509echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2510echo "${ECHO_T}$ac_cv_objext" >&6
2511OBJEXT=$ac_cv_objext
2512ac_objext=$OBJEXT
2513echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2514echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2515if test "${ac_cv_c_compiler_gnu+set}" = set; then
2516  echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518  cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h.  */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h.  */
2524
2525int
2526main ()
2527{
2528#ifndef __GNUC__
2529       choke me
2530#endif
2531
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext
2537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538  (eval $ac_compile) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } &&
2545	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551	 { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  ac_compiler_gnu=yes
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562ac_compiler_gnu=no
2563fi
2564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565ac_cv_c_compiler_gnu=$ac_compiler_gnu
2566
2567fi
2568echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2569echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2570GCC=`test $ac_compiler_gnu = yes && echo yes`
2571ac_test_CFLAGS=${CFLAGS+set}
2572ac_save_CFLAGS=$CFLAGS
2573CFLAGS="-g"
2574echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2575echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2576if test "${ac_cv_prog_cc_g+set}" = set; then
2577  echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579  cat >conftest.$ac_ext <<_ACEOF
2580/* confdefs.h.  */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h.  */
2585
2586int
2587main ()
2588{
2589
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594rm -f conftest.$ac_objext
2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596  (eval $ac_compile) 2>conftest.er1
2597  ac_status=$?
2598  grep -v '^ *+' conftest.er1 >conftest.err
2599  rm -f conftest.er1
2600  cat conftest.err >&5
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); } &&
2603	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609	 { ac_try='test -s conftest.$ac_objext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  ac_cv_prog_cc_g=yes
2616else
2617  echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620ac_cv_prog_cc_g=no
2621fi
2622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623fi
2624echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2625echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2626if test "$ac_test_CFLAGS" = set; then
2627  CFLAGS=$ac_save_CFLAGS
2628elif test $ac_cv_prog_cc_g = yes; then
2629  if test "$GCC" = yes; then
2630    CFLAGS="-g -O2"
2631  else
2632    CFLAGS="-g"
2633  fi
2634else
2635  if test "$GCC" = yes; then
2636    CFLAGS="-O2"
2637  else
2638    CFLAGS=
2639  fi
2640fi
2641echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2642echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2643if test "${ac_cv_prog_cc_stdc+set}" = set; then
2644  echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646  ac_cv_prog_cc_stdc=no
2647ac_save_CC=$CC
2648cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h.  */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h.  */
2654#include <stdarg.h>
2655#include <stdio.h>
2656#include <sys/types.h>
2657#include <sys/stat.h>
2658/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2659struct buf { int x; };
2660FILE * (*rcsopen) (struct buf *, struct stat *, int);
2661static char *e (p, i)
2662     char **p;
2663     int i;
2664{
2665  return p[i];
2666}
2667static char *f (char * (*g) (char **, int), char **p, ...)
2668{
2669  char *s;
2670  va_list v;
2671  va_start (v,p);
2672  s = g (p, va_arg (v,int));
2673  va_end (v);
2674  return s;
2675}
2676
2677/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2678   function prototypes and stuff, but not '\xHH' hex character constants.
2679   These don't provoke an error unfortunately, instead are silently treated
2680   as 'x'.  The following induces an error, until -std1 is added to get
2681   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2682   array size at least.  It's necessary to write '\x00'==0 to get something
2683   that's true only with -std1.  */
2684int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685
2686int test (int i, double x);
2687struct s1 {int (*f) (int a);};
2688struct s2 {int (*f) (double a);};
2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690int argc;
2691char **argv;
2692int
2693main ()
2694{
2695return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700# Don't try gcc -ansi; that turns off useful extensions and
2701# breaks some systems' header files.
2702# AIX			-qlanglvl=ansi
2703# Ultrix and OSF/1	-std1
2704# HP-UX 10.20 and later	-Ae
2705# HP-UX older versions	-Aa -D_HPUX_SOURCE
2706# SVR4			-Xc -D__EXTENSIONS__
2707for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708do
2709  CC="$ac_save_CC $ac_arg"
2710  rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; } &&
2725	 { ac_try='test -s conftest.$ac_objext'
2726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727  (eval $ac_try) 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }; }; then
2731  ac_cv_prog_cc_stdc=$ac_arg
2732break
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext
2739done
2740rm -f conftest.$ac_ext conftest.$ac_objext
2741CC=$ac_save_CC
2742
2743fi
2744
2745case "x$ac_cv_prog_cc_stdc" in
2746  x|xno)
2747    echo "$as_me:$LINENO: result: none needed" >&5
2748echo "${ECHO_T}none needed" >&6 ;;
2749  *)
2750    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2751echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2752    CC="$CC $ac_cv_prog_cc_stdc" ;;
2753esac
2754
2755# Some people use a C++ compiler to compile C.  Since we use `exit',
2756# in C++ we need to declare it.  In case someone uses the same compiler
2757# for both compiling C and C++ we need to have the C++ compiler decide
2758# the declaration of exit, since it's the most demanding environment.
2759cat >conftest.$ac_ext <<_ACEOF
2760#ifndef __cplusplus
2761  choke me
2762#endif
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766  (eval $ac_compile) 2>conftest.er1
2767  ac_status=$?
2768  grep -v '^ *+' conftest.er1 >conftest.err
2769  rm -f conftest.er1
2770  cat conftest.err >&5
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); } &&
2773	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779	 { ac_try='test -s conftest.$ac_objext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  for ac_declaration in \
2786   '' \
2787   'extern "C" void std::exit (int) throw (); using std::exit;' \
2788   'extern "C" void std::exit (int); using std::exit;' \
2789   'extern "C" void exit (int) throw ();' \
2790   'extern "C" void exit (int);' \
2791   'void exit (int);'
2792do
2793  cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799$ac_declaration
2800#include <stdlib.h>
2801int
2802main ()
2803{
2804exit (42);
2805  ;
2806  return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811  (eval $ac_compile) 2>conftest.er1
2812  ac_status=$?
2813  grep -v '^ *+' conftest.er1 >conftest.err
2814  rm -f conftest.er1
2815  cat conftest.err >&5
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); } &&
2818	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820  (eval $ac_try) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }; } &&
2824	 { ac_try='test -s conftest.$ac_objext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  :
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835continue
2836fi
2837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838  cat >conftest.$ac_ext <<_ACEOF
2839/* confdefs.h.  */
2840_ACEOF
2841cat confdefs.h >>conftest.$ac_ext
2842cat >>conftest.$ac_ext <<_ACEOF
2843/* end confdefs.h.  */
2844$ac_declaration
2845int
2846main ()
2847{
2848exit (42);
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853rm -f conftest.$ac_objext
2854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855  (eval $ac_compile) 2>conftest.er1
2856  ac_status=$?
2857  grep -v '^ *+' conftest.er1 >conftest.err
2858  rm -f conftest.er1
2859  cat conftest.err >&5
2860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861  (exit $ac_status); } &&
2862	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864  (eval $ac_try) 2>&5
2865  ac_status=$?
2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867  (exit $ac_status); }; } &&
2868	 { ac_try='test -s conftest.$ac_objext'
2869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870  (eval $ac_try) 2>&5
2871  ac_status=$?
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); }; }; then
2874  break
2875else
2876  echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
2878
2879fi
2880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881done
2882rm -f conftest*
2883if test -n "$ac_declaration"; then
2884  echo '#ifdef __cplusplus' >>confdefs.h
2885  echo $ac_declaration      >>confdefs.h
2886  echo '#endif'             >>confdefs.h
2887fi
2888
2889else
2890  echo "$as_me: failed program was:" >&5
2891sed 's/^/| /' conftest.$ac_ext >&5
2892
2893fi
2894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2895ac_ext=c
2896ac_cpp='$CPP $CPPFLAGS'
2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900DEPDIR="${am__leading_dot}deps"
2901
2902          ac_config_commands="$ac_config_commands depfiles"
2903
2904
2905am_make=${MAKE-make}
2906cat > confinc << 'END'
2907am__doit:
2908	@echo done
2909.PHONY: am__doit
2910END
2911# If we don't find an include directive, just comment out the code.
2912echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2913echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2914am__include="#"
2915am__quote=
2916_am_result=none
2917# First try GNU make style include.
2918echo "include confinc" > confmf
2919# We grep out `Entering directory' and `Leaving directory'
2920# messages which can occur if `w' ends up in MAKEFLAGS.
2921# In particular we don't look at `^make:' because GNU make might
2922# be invoked under some other name (usually "gmake"), in which
2923# case it prints its new name instead of `make'.
2924if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2925   am__include=include
2926   am__quote=
2927   _am_result=GNU
2928fi
2929# Now try BSD make style include.
2930if test "$am__include" = "#"; then
2931   echo '.include "confinc"' > confmf
2932   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2933      am__include=.include
2934      am__quote="\""
2935      _am_result=BSD
2936   fi
2937fi
2938
2939
2940echo "$as_me:$LINENO: result: $_am_result" >&5
2941echo "${ECHO_T}$_am_result" >&6
2942rm -f confinc confmf
2943
2944# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2945if test "${enable_dependency_tracking+set}" = set; then
2946  enableval="$enable_dependency_tracking"
2947
2948fi;
2949if test "x$enable_dependency_tracking" != xno; then
2950  am_depcomp="$ac_aux_dir/depcomp"
2951  AMDEPBACKSLASH='\'
2952fi
2953
2954
2955if test "x$enable_dependency_tracking" != xno; then
2956  AMDEP_TRUE=
2957  AMDEP_FALSE='#'
2958else
2959  AMDEP_TRUE='#'
2960  AMDEP_FALSE=
2961fi
2962
2963
2964
2965
2966depcc="$CC"   am_compiler_list=
2967
2968echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971  echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974  # We make a subdir and do the tests there.  Otherwise we can end up
2975  # making bogus files that we don't know about and never remove.  For
2976  # instance it was reported that on HP-UX the gcc test will end up
2977  # making a dummy file named `D' -- because `-MD' means `put the output
2978  # in D'.
2979  mkdir conftest.dir
2980  # Copy depcomp to subdir because otherwise we won't find it if we're
2981  # using a relative directory.
2982  cp "$am_depcomp" conftest.dir
2983  cd conftest.dir
2984  # We will build objects and dependencies in a subdirectory because
2985  # it helps to detect inapplicable dependency modes.  For instance
2986  # both Tru64's cc and ICC support -MD to output dependencies as a
2987  # side effect of compilation, but ICC will put the dependencies in
2988  # the current directory while Tru64 will put them in the object
2989  # directory.
2990  mkdir sub
2991
2992  am_cv_CC_dependencies_compiler_type=none
2993  if test "$am_compiler_list" = ""; then
2994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995  fi
2996  for depmode in $am_compiler_list; do
2997    # Setup a source with many dependencies, because some compilers
2998    # like to wrap large dependency lists on column 80 (with \), and
2999    # we should not choose a depcomp mode which is confused by this.
3000    #
3001    # We need to recreate these files for each test, as the compiler may
3002    # overwrite some of them when testing with obscure command lines.
3003    # This happens at least with the AIX C compiler.
3004    : > sub/conftest.c
3005    for i in 1 2 3 4 5 6; do
3006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008      # Solaris 8's {/usr,}/bin/sh.
3009      touch sub/conftst$i.h
3010    done
3011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013    case $depmode in
3014    nosideeffect)
3015      # after this tag, mechanisms are not by side-effect, so they'll
3016      # only be used when explicitly requested
3017      if test "x$enable_dependency_tracking" = xyes; then
3018	continue
3019      else
3020	break
3021      fi
3022      ;;
3023    none) break ;;
3024    esac
3025    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026    # mode.  It turns out that the SunPro C++ compiler does not properly
3027    # handle `-M -o', and we need to detect this.
3028    if depmode=$depmode \
3029       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032         >/dev/null 2>conftest.err &&
3033       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036      # icc doesn't choke on unknown options, it will just issue warnings
3037      # or remarks (even with -Werror).  So we grep stderr for any message
3038      # that says an option was ignored or not supported.
3039      # When given -MP, icc 7.0 and 7.1 complain thusly:
3040      #   icc: Command line warning: ignoring option '-M'; no argument required
3041      # The diagnosis changed in icc 8.0:
3042      #   icc: Command line remark: option '-MP' not supported
3043      if (grep 'ignoring option' conftest.err ||
3044          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045        am_cv_CC_dependencies_compiler_type=$depmode
3046        break
3047      fi
3048    fi
3049  done
3050
3051  cd ..
3052  rm -rf conftest.dir
3053else
3054  am_cv_CC_dependencies_compiler_type=none
3055fi
3056
3057fi
3058echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061
3062
3063
3064if
3065  test "x$enable_dependency_tracking" != xno \
3066  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067  am__fastdepCC_TRUE=
3068  am__fastdepCC_FALSE='#'
3069else
3070  am__fastdepCC_TRUE='#'
3071  am__fastdepCC_FALSE=
3072fi
3073
3074
3075if test -n "$ac_tool_prefix"; then
3076  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3077set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3078echo "$as_me:$LINENO: checking for $ac_word" >&5
3079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080if test "${ac_cv_prog_RANLIB+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083  if test -n "$RANLIB"; then
3084  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091  for ac_exec_ext in '' $ac_executable_extensions; do
3092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098done
3099
3100fi
3101fi
3102RANLIB=$ac_cv_prog_RANLIB
3103if test -n "$RANLIB"; then
3104  echo "$as_me:$LINENO: result: $RANLIB" >&5
3105echo "${ECHO_T}$RANLIB" >&6
3106else
3107  echo "$as_me:$LINENO: result: no" >&5
3108echo "${ECHO_T}no" >&6
3109fi
3110
3111fi
3112if test -z "$ac_cv_prog_RANLIB"; then
3113  ac_ct_RANLIB=$RANLIB
3114  # Extract the first word of "ranlib", so it can be a program name with args.
3115set dummy ranlib; ac_word=$2
3116echo "$as_me:$LINENO: checking for $ac_word" >&5
3117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121  if test -n "$ac_ct_RANLIB"; then
3122  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129  for ac_exec_ext in '' $ac_executable_extensions; do
3130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    ac_cv_prog_ac_ct_RANLIB="ranlib"
3132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136done
3137
3138  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3139fi
3140fi
3141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3142if test -n "$ac_ct_RANLIB"; then
3143  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3144echo "${ECHO_T}$ac_ct_RANLIB" >&6
3145else
3146  echo "$as_me:$LINENO: result: no" >&5
3147echo "${ECHO_T}no" >&6
3148fi
3149
3150  RANLIB=$ac_ct_RANLIB
3151else
3152  RANLIB="$ac_cv_prog_RANLIB"
3153fi
3154
3155# Find a good install program.  We prefer a C program (faster),
3156# so one script is as good as another.  But avoid the broken or
3157# incompatible versions:
3158# SysV /etc/install, /usr/sbin/install
3159# SunOS /usr/etc/install
3160# IRIX /sbin/install
3161# AIX /bin/install
3162# AmigaOS /C/install, which installs bootblocks on floppy discs
3163# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3164# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3165# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3166# OS/2's system install, which has a completely different semantic
3167# ./install, which can be erroneously created by make from ./install.sh.
3168echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3169echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3170if test -z "$INSTALL"; then
3171if test "${ac_cv_path_install+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179  # Account for people who put trailing slashes in PATH elements.
3180case $as_dir/ in
3181  ./ | .// | /cC/* | \
3182  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3183  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3184  /usr/ucb/* ) ;;
3185  *)
3186    # OSF1 and SCO ODT 3.0 have their own names for install.
3187    # Don't use installbsd from OSF since it installs stuff as root
3188    # by default.
3189    for ac_prog in ginstall scoinst install; do
3190      for ac_exec_ext in '' $ac_executable_extensions; do
3191	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3192	  if test $ac_prog = install &&
3193	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3194	    # AIX install.  It has an incompatible calling convention.
3195	    :
3196	  elif test $ac_prog = install &&
3197	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3198	    # program-specific install script used by HP pwplus--don't use.
3199	    :
3200	  else
3201	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3202	    break 3
3203	  fi
3204	fi
3205      done
3206    done
3207    ;;
3208esac
3209done
3210
3211
3212fi
3213  if test "${ac_cv_path_install+set}" = set; then
3214    INSTALL=$ac_cv_path_install
3215  else
3216    # As a last resort, use the slow shell script.  We don't cache a
3217    # path for INSTALL within a source directory, because that will
3218    # break other packages using the cache if that directory is
3219    # removed, or if the path is relative.
3220    INSTALL=$ac_install_sh
3221  fi
3222fi
3223echo "$as_me:$LINENO: result: $INSTALL" >&5
3224echo "${ECHO_T}$INSTALL" >&6
3225
3226# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3227# It thinks the first close brace ends the variable substitution.
3228test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3229
3230test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3231
3232test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3233
3234# Check whether --enable-shared or --disable-shared was given.
3235if test "${enable_shared+set}" = set; then
3236  enableval="$enable_shared"
3237  p=${PACKAGE-default}
3238    case $enableval in
3239    yes) enable_shared=yes ;;
3240    no) enable_shared=no ;;
3241    *)
3242      enable_shared=no
3243      # Look at the argument we got.  We use all the common list separators.
3244      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3245      for pkg in $enableval; do
3246	IFS="$lt_save_ifs"
3247	if test "X$pkg" = "X$p"; then
3248	  enable_shared=yes
3249	fi
3250      done
3251      IFS="$lt_save_ifs"
3252      ;;
3253    esac
3254else
3255  enable_shared=yes
3256fi;
3257
3258# Check whether --enable-static or --disable-static was given.
3259if test "${enable_static+set}" = set; then
3260  enableval="$enable_static"
3261  p=${PACKAGE-default}
3262    case $enableval in
3263    yes) enable_static=yes ;;
3264    no) enable_static=no ;;
3265    *)
3266     enable_static=no
3267      # Look at the argument we got.  We use all the common list separators.
3268      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3269      for pkg in $enableval; do
3270	IFS="$lt_save_ifs"
3271	if test "X$pkg" = "X$p"; then
3272	  enable_static=yes
3273	fi
3274      done
3275      IFS="$lt_save_ifs"
3276      ;;
3277    esac
3278else
3279  enable_static=yes
3280fi;
3281
3282# Check whether --enable-fast-install or --disable-fast-install was given.
3283if test "${enable_fast_install+set}" = set; then
3284  enableval="$enable_fast_install"
3285  p=${PACKAGE-default}
3286    case $enableval in
3287    yes) enable_fast_install=yes ;;
3288    no) enable_fast_install=no ;;
3289    *)
3290      enable_fast_install=no
3291      # Look at the argument we got.  We use all the common list separators.
3292      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3293      for pkg in $enableval; do
3294	IFS="$lt_save_ifs"
3295	if test "X$pkg" = "X$p"; then
3296	  enable_fast_install=yes
3297	fi
3298      done
3299      IFS="$lt_save_ifs"
3300      ;;
3301    esac
3302else
3303  enable_fast_install=yes
3304fi;
3305
3306# Make sure we can run config.sub.
3307$ac_config_sub sun4 >/dev/null 2>&1 ||
3308  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3309echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3310   { (exit 1); exit 1; }; }
3311
3312echo "$as_me:$LINENO: checking build system type" >&5
3313echo $ECHO_N "checking build system type... $ECHO_C" >&6
3314if test "${ac_cv_build+set}" = set; then
3315  echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317  ac_cv_build_alias=$build_alias
3318test -z "$ac_cv_build_alias" &&
3319  ac_cv_build_alias=`$ac_config_guess`
3320test -z "$ac_cv_build_alias" &&
3321  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3322echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3323   { (exit 1); exit 1; }; }
3324ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3325  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3326echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3327   { (exit 1); exit 1; }; }
3328
3329fi
3330echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3331echo "${ECHO_T}$ac_cv_build" >&6
3332build=$ac_cv_build
3333build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3334build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3335build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3336
3337
3338echo "$as_me:$LINENO: checking host system type" >&5
3339echo $ECHO_N "checking host system type... $ECHO_C" >&6
3340if test "${ac_cv_host+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  ac_cv_host_alias=$host_alias
3344test -z "$ac_cv_host_alias" &&
3345  ac_cv_host_alias=$ac_cv_build_alias
3346ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3347  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3348echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3349   { (exit 1); exit 1; }; }
3350
3351fi
3352echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3353echo "${ECHO_T}$ac_cv_host" >&6
3354host=$ac_cv_host
3355host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3356host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3357host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3358
3359
3360echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3361echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3362if test "${lt_cv_path_SED+set}" = set; then
3363  echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365  # Loop through the user's path and test for sed and gsed.
3366# Then use that list of sed's as ones to test for truncation.
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372  for lt_ac_prog in sed gsed; do
3373    for ac_exec_ext in '' $ac_executable_extensions; do
3374      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3375        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3376      fi
3377    done
3378  done
3379done
3380lt_ac_max=0
3381lt_ac_count=0
3382# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3383# along with /bin/sed that truncates output.
3384for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3385  test ! -f $lt_ac_sed && continue
3386  cat /dev/null > conftest.in
3387  lt_ac_count=0
3388  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3389  # Check for GNU sed and select it if it is found.
3390  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3391    lt_cv_path_SED=$lt_ac_sed
3392    break
3393  fi
3394  while true; do
3395    cat conftest.in conftest.in >conftest.tmp
3396    mv conftest.tmp conftest.in
3397    cp conftest.in conftest.nl
3398    echo >>conftest.nl
3399    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3400    cmp -s conftest.out conftest.nl || break
3401    # 10000 chars as input seems more than enough
3402    test $lt_ac_count -gt 10 && break
3403    lt_ac_count=`expr $lt_ac_count + 1`
3404    if test $lt_ac_count -gt $lt_ac_max; then
3405      lt_ac_max=$lt_ac_count
3406      lt_cv_path_SED=$lt_ac_sed
3407    fi
3408  done
3409done
3410
3411fi
3412
3413SED=$lt_cv_path_SED
3414echo "$as_me:$LINENO: result: $SED" >&5
3415echo "${ECHO_T}$SED" >&6
3416
3417echo "$as_me:$LINENO: checking for egrep" >&5
3418echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3419if test "${ac_cv_prog_egrep+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3423    then ac_cv_prog_egrep='grep -E'
3424    else ac_cv_prog_egrep='egrep'
3425    fi
3426fi
3427echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3428echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3429 EGREP=$ac_cv_prog_egrep
3430
3431
3432
3433# Check whether --with-gnu-ld or --without-gnu-ld was given.
3434if test "${with_gnu_ld+set}" = set; then
3435  withval="$with_gnu_ld"
3436  test "$withval" = no || with_gnu_ld=yes
3437else
3438  with_gnu_ld=no
3439fi;
3440ac_prog=ld
3441if test "$GCC" = yes; then
3442  # Check if gcc -print-prog-name=ld gives a path.
3443  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3444echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3445  case $host in
3446  *-*-mingw*)
3447    # gcc leaves a trailing carriage return which upsets mingw
3448    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3449  *)
3450    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3451  esac
3452  case $ac_prog in
3453    # Accept absolute paths.
3454    [\\/]* | ?:[\\/]*)
3455      re_direlt='/[^/][^/]*/\.\./'
3456      # Canonicalize the pathname of ld
3457      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3458      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3459	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3460      done
3461      test -z "$LD" && LD="$ac_prog"
3462      ;;
3463  "")
3464    # If it fails, then pretend we aren't using GCC.
3465    ac_prog=ld
3466    ;;
3467  *)
3468    # If it is relative, then search for the first ld in PATH.
3469    with_gnu_ld=unknown
3470    ;;
3471  esac
3472elif test "$with_gnu_ld" = yes; then
3473  echo "$as_me:$LINENO: checking for GNU ld" >&5
3474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3475else
3476  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3478fi
3479if test "${lt_cv_path_LD+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  if test -z "$LD"; then
3483  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3484  for ac_dir in $PATH; do
3485    IFS="$lt_save_ifs"
3486    test -z "$ac_dir" && ac_dir=.
3487    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3488      lt_cv_path_LD="$ac_dir/$ac_prog"
3489      # Check to see if the program is GNU ld.  I'd rather use --version,
3490      # but apparently some variants of GNU ld only accept -v.
3491      # Break only if it was the GNU/non-GNU ld that we prefer.
3492      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3493      *GNU* | *'with BFD'*)
3494	test "$with_gnu_ld" != no && break
3495	;;
3496      *)
3497	test "$with_gnu_ld" != yes && break
3498	;;
3499      esac
3500    fi
3501  done
3502  IFS="$lt_save_ifs"
3503else
3504  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3505fi
3506fi
3507
3508LD="$lt_cv_path_LD"
3509if test -n "$LD"; then
3510  echo "$as_me:$LINENO: result: $LD" >&5
3511echo "${ECHO_T}$LD" >&6
3512else
3513  echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6
3515fi
3516test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3517echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3518   { (exit 1); exit 1; }; }
3519echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3520echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3521if test "${lt_cv_prog_gnu_ld+set}" = set; then
3522  echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3525case `$LD -v 2>&1 </dev/null` in
3526*GNU* | *'with BFD'*)
3527  lt_cv_prog_gnu_ld=yes
3528  ;;
3529*)
3530  lt_cv_prog_gnu_ld=no
3531  ;;
3532esac
3533fi
3534echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3535echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3536with_gnu_ld=$lt_cv_prog_gnu_ld
3537
3538
3539echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3540echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3541if test "${lt_cv_ld_reload_flag+set}" = set; then
3542  echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544  lt_cv_ld_reload_flag='-r'
3545fi
3546echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3547echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3548reload_flag=$lt_cv_ld_reload_flag
3549case $reload_flag in
3550"" | " "*) ;;
3551*) reload_flag=" $reload_flag" ;;
3552esac
3553reload_cmds='$LD$reload_flag -o $output$reload_objs'
3554case $host_os in
3555  darwin*)
3556    if test "$GCC" = yes; then
3557      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3558    else
3559      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3560    fi
3561    ;;
3562esac
3563
3564echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3565echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3566if test "${lt_cv_path_NM+set}" = set; then
3567  echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569  if test -n "$NM"; then
3570  # Let the user override the test.
3571  lt_cv_path_NM="$NM"
3572else
3573  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3575    IFS="$lt_save_ifs"
3576    test -z "$ac_dir" && ac_dir=.
3577    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3578    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3579      # Check to see if the nm accepts a BSD-compat flag.
3580      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3581      #   nm: unknown option "B" ignored
3582      # Tru64's nm complains that /dev/null is an invalid object file
3583      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3584      */dev/null* | *'Invalid file or object type'*)
3585	lt_cv_path_NM="$tmp_nm -B"
3586	break
3587        ;;
3588      *)
3589	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3590	*/dev/null*)
3591	  lt_cv_path_NM="$tmp_nm -p"
3592	  break
3593	  ;;
3594	*)
3595	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3596	  continue # so that we can try to find one that supports BSD flags
3597	  ;;
3598	esac
3599      esac
3600    fi
3601  done
3602  IFS="$lt_save_ifs"
3603  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3604fi
3605fi
3606echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3607echo "${ECHO_T}$lt_cv_path_NM" >&6
3608NM="$lt_cv_path_NM"
3609
3610echo "$as_me:$LINENO: checking whether ln -s works" >&5
3611echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3612LN_S=$as_ln_s
3613if test "$LN_S" = "ln -s"; then
3614  echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
3616else
3617  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3618echo "${ECHO_T}no, using $LN_S" >&6
3619fi
3620
3621echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3622echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3623if test "${lt_cv_deplibs_check_method+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  lt_cv_file_magic_cmd='$MAGIC_CMD'
3627lt_cv_file_magic_test_file=
3628lt_cv_deplibs_check_method='unknown'
3629# Need to set the preceding variable on all platforms that support
3630# interlibrary dependencies.
3631# 'none' -- dependencies not supported.
3632# `unknown' -- same as none, but documents that we really don't know.
3633# 'pass_all' -- all dependencies passed with no checks.
3634# 'test_compile' -- check by making test program.
3635# 'file_magic [[regex]]' -- check by looking for files in library path
3636# which responds to the $file_magic_cmd with a given extended regex.
3637# If you have `file' or equivalent on your system and you're not sure
3638# whether `pass_all' will *always* work, you probably want this one.
3639
3640case $host_os in
3641aix4* | aix5*)
3642  lt_cv_deplibs_check_method=pass_all
3643  ;;
3644
3645beos*)
3646  lt_cv_deplibs_check_method=pass_all
3647  ;;
3648
3649bsdi[45]*)
3650  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3651  lt_cv_file_magic_cmd='/usr/bin/file -L'
3652  lt_cv_file_magic_test_file=/shlib/libc.so
3653  ;;
3654
3655cygwin*)
3656  # func_win32_libid is a shell function defined in ltmain.sh
3657  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3658  lt_cv_file_magic_cmd='func_win32_libid'
3659  ;;
3660
3661mingw* | pw32*)
3662  # Base MSYS/MinGW do not provide the 'file' command needed by
3663  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3664  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3665  lt_cv_file_magic_cmd='$OBJDUMP -f'
3666  ;;
3667
3668darwin* | rhapsody*)
3669  lt_cv_deplibs_check_method=pass_all
3670  ;;
3671
3672freebsd* | kfreebsd*-gnu | dragonfly*)
3673  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3674    case $host_cpu in
3675    i*86 )
3676      # Not sure whether the presence of OpenBSD here was a mistake.
3677      # Let's accept both of them until this is cleared up.
3678      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3679      lt_cv_file_magic_cmd=/usr/bin/file
3680      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3681      ;;
3682    esac
3683  else
3684    lt_cv_deplibs_check_method=pass_all
3685  fi
3686  ;;
3687
3688gnu*)
3689  lt_cv_deplibs_check_method=pass_all
3690  ;;
3691
3692hpux10.20* | hpux11*)
3693  lt_cv_file_magic_cmd=/usr/bin/file
3694  case $host_cpu in
3695  ia64*)
3696    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3697    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3698    ;;
3699  hppa*64*)
3700    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]'
3701    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3702    ;;
3703  *)
3704    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3705    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3706    ;;
3707  esac
3708  ;;
3709
3710irix5* | irix6* | nonstopux*)
3711  case $LD in
3712  *-32|*"-32 ") libmagic=32-bit;;
3713  *-n32|*"-n32 ") libmagic=N32;;
3714  *-64|*"-64 ") libmagic=64-bit;;
3715  *) libmagic=never-match;;
3716  esac
3717  lt_cv_deplibs_check_method=pass_all
3718  ;;
3719
3720# This must be Linux ELF.
3721linux*)
3722  lt_cv_deplibs_check_method=pass_all
3723  ;;
3724
3725netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3726  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3727    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3728  else
3729    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3730  fi
3731  ;;
3732
3733newos6*)
3734  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3735  lt_cv_file_magic_cmd=/usr/bin/file
3736  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3737  ;;
3738
3739nto-qnx*)
3740  lt_cv_deplibs_check_method=unknown
3741  ;;
3742
3743openbsd*)
3744  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3745    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3746  else
3747    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3748  fi
3749  ;;
3750
3751osf3* | osf4* | osf5*)
3752  lt_cv_deplibs_check_method=pass_all
3753  ;;
3754
3755sco3.2v5*)
3756  lt_cv_deplibs_check_method=pass_all
3757  ;;
3758
3759solaris*)
3760  lt_cv_deplibs_check_method=pass_all
3761  ;;
3762
3763sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3764  case $host_vendor in
3765  motorola)
3766    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]'
3767    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3768    ;;
3769  ncr)
3770    lt_cv_deplibs_check_method=pass_all
3771    ;;
3772  sequent)
3773    lt_cv_file_magic_cmd='/bin/file'
3774    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3775    ;;
3776  sni)
3777    lt_cv_file_magic_cmd='/bin/file'
3778    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3779    lt_cv_file_magic_test_file=/lib/libc.so
3780    ;;
3781  siemens)
3782    lt_cv_deplibs_check_method=pass_all
3783    ;;
3784  esac
3785  ;;
3786
3787sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3788  lt_cv_deplibs_check_method=pass_all
3789  ;;
3790esac
3791
3792fi
3793echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3794echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3795file_magic_cmd=$lt_cv_file_magic_cmd
3796deplibs_check_method=$lt_cv_deplibs_check_method
3797test -z "$deplibs_check_method" && deplibs_check_method=unknown
3798
3799
3800
3801
3802# If no C compiler was specified, use CC.
3803LTCC=${LTCC-"$CC"}
3804
3805# Allow CC to be a program name with arguments.
3806compiler=$CC
3807
3808
3809# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3810if test "${enable_libtool_lock+set}" = set; then
3811  enableval="$enable_libtool_lock"
3812
3813fi;
3814test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3815
3816# Some flags need to be propagated to the compiler or linker for good
3817# libtool support.
3818case $host in
3819ia64-*-hpux*)
3820  # Find out which ABI we are using.
3821  echo 'int i;' > conftest.$ac_ext
3822  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823  (eval $ac_compile) 2>&5
3824  ac_status=$?
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); }; then
3827    case `/usr/bin/file conftest.$ac_objext` in
3828    *ELF-32*)
3829      HPUX_IA64_MODE="32"
3830      ;;
3831    *ELF-64*)
3832      HPUX_IA64_MODE="64"
3833      ;;
3834    esac
3835  fi
3836  rm -rf conftest*
3837  ;;
3838*-*-irix6*)
3839  # Find out which ABI we are using.
3840  echo '#line 3840 "configure"' > conftest.$ac_ext
3841  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842  (eval $ac_compile) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; then
3846   if test "$lt_cv_prog_gnu_ld" = yes; then
3847    case `/usr/bin/file conftest.$ac_objext` in
3848    *32-bit*)
3849      LD="${LD-ld} -melf32bsmip"
3850      ;;
3851    *N32*)
3852      LD="${LD-ld} -melf32bmipn32"
3853      ;;
3854    *64-bit*)
3855      LD="${LD-ld} -melf64bmip"
3856      ;;
3857    esac
3858   else
3859    case `/usr/bin/file conftest.$ac_objext` in
3860    *32-bit*)
3861      LD="${LD-ld} -32"
3862      ;;
3863    *N32*)
3864      LD="${LD-ld} -n32"
3865      ;;
3866    *64-bit*)
3867      LD="${LD-ld} -64"
3868      ;;
3869    esac
3870   fi
3871  fi
3872  rm -rf conftest*
3873  ;;
3874
3875x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3876  # Find out which ABI we are using.
3877  echo 'int i;' > conftest.$ac_ext
3878  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879  (eval $ac_compile) 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; then
3883    case `/usr/bin/file conftest.o` in
3884    *32-bit*)
3885      case $host in
3886        x86_64-*linux*)
3887          LD="${LD-ld} -m elf_i386"
3888          ;;
3889        ppc64-*linux*|powerpc64-*linux*)
3890          LD="${LD-ld} -m elf32ppclinux"
3891          ;;
3892        s390x-*linux*)
3893          LD="${LD-ld} -m elf_s390"
3894          ;;
3895        sparc64-*linux*)
3896          LD="${LD-ld} -m elf32_sparc"
3897          ;;
3898      esac
3899      ;;
3900    *64-bit*)
3901      case $host in
3902        x86_64-*linux*)
3903          LD="${LD-ld} -m elf_x86_64"
3904          ;;
3905        ppc*-*linux*|powerpc*-*linux*)
3906          LD="${LD-ld} -m elf64ppc"
3907          ;;
3908        s390*-*linux*)
3909          LD="${LD-ld} -m elf64_s390"
3910          ;;
3911        sparc*-*linux*)
3912          LD="${LD-ld} -m elf64_sparc"
3913          ;;
3914      esac
3915      ;;
3916    esac
3917  fi
3918  rm -rf conftest*
3919  ;;
3920
3921*-*-sco3.2v5*)
3922  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3923  SAVE_CFLAGS="$CFLAGS"
3924  CFLAGS="$CFLAGS -belf"
3925  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3926echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3927if test "${lt_cv_cc_needs_belf+set}" = set; then
3928  echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930  ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
3936     cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h.  */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h.  */
3942
3943int
3944main ()
3945{
3946
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext conftest$ac_exeext
3952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953  (eval $ac_link) 2>conftest.er1
3954  ac_status=$?
3955  grep -v '^ *+' conftest.er1 >conftest.err
3956  rm -f conftest.er1
3957  cat conftest.err >&5
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } &&
3960	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962  (eval $ac_try) 2>&5
3963  ac_status=$?
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); }; } &&
3966	 { ac_try='test -s conftest$ac_exeext'
3967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968  (eval $ac_try) 2>&5
3969  ac_status=$?
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); }; }; then
3972  lt_cv_cc_needs_belf=yes
3973else
3974  echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977lt_cv_cc_needs_belf=no
3978fi
3979rm -f conftest.err conftest.$ac_objext \
3980      conftest$ac_exeext conftest.$ac_ext
3981     ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987fi
3988echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3989echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3990  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3991    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3992    CFLAGS="$SAVE_CFLAGS"
3993  fi
3994  ;;
3995
3996esac
3997
3998need_locks="$enable_libtool_lock"
3999
4000
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4007echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4008# On Suns, sometimes $CPP names a directory.
4009if test -n "$CPP" && test -d "$CPP"; then
4010  CPP=
4011fi
4012if test -z "$CPP"; then
4013  if test "${ac_cv_prog_CPP+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016      # Double quotes because CPP needs to be expanded
4017    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4018    do
4019      ac_preproc_ok=false
4020for ac_c_preproc_warn_flag in '' yes
4021do
4022  # Use a header file that comes with gcc, so configuring glibc
4023  # with a fresh cross-compiler works.
4024  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025  # <limits.h> exists even on freestanding compilers.
4026  # On the NeXT, cc -E runs the code through the compiler's parser,
4027  # not just through cpp. "Syntax error" is here to catch this case.
4028  cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h.  */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h.  */
4034#ifdef __STDC__
4035# include <limits.h>
4036#else
4037# include <assert.h>
4038#endif
4039		     Syntax error
4040_ACEOF
4041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4042  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4043  ac_status=$?
4044  grep -v '^ *+' conftest.er1 >conftest.err
4045  rm -f conftest.er1
4046  cat conftest.err >&5
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); } >/dev/null; then
4049  if test -s conftest.err; then
4050    ac_cpp_err=$ac_c_preproc_warn_flag
4051    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052  else
4053    ac_cpp_err=
4054  fi
4055else
4056  ac_cpp_err=yes
4057fi
4058if test -z "$ac_cpp_err"; then
4059  :
4060else
4061  echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064  # Broken: fails on valid input.
4065continue
4066fi
4067rm -f conftest.err conftest.$ac_ext
4068
4069  # OK, works on sane cases.  Now check whether non-existent headers
4070  # can be detected and how.
4071  cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h.  */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h.  */
4077#include <ac_nonexistent.h>
4078_ACEOF
4079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4080  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4081  ac_status=$?
4082  grep -v '^ *+' conftest.er1 >conftest.err
4083  rm -f conftest.er1
4084  cat conftest.err >&5
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); } >/dev/null; then
4087  if test -s conftest.err; then
4088    ac_cpp_err=$ac_c_preproc_warn_flag
4089    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4090  else
4091    ac_cpp_err=
4092  fi
4093else
4094  ac_cpp_err=yes
4095fi
4096if test -z "$ac_cpp_err"; then
4097  # Broken: success on invalid input.
4098continue
4099else
4100  echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103  # Passes both tests.
4104ac_preproc_ok=:
4105break
4106fi
4107rm -f conftest.err conftest.$ac_ext
4108
4109done
4110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4111rm -f conftest.err conftest.$ac_ext
4112if $ac_preproc_ok; then
4113  break
4114fi
4115
4116    done
4117    ac_cv_prog_CPP=$CPP
4118
4119fi
4120  CPP=$ac_cv_prog_CPP
4121else
4122  ac_cv_prog_CPP=$CPP
4123fi
4124echo "$as_me:$LINENO: result: $CPP" >&5
4125echo "${ECHO_T}$CPP" >&6
4126ac_preproc_ok=false
4127for ac_c_preproc_warn_flag in '' yes
4128do
4129  # Use a header file that comes with gcc, so configuring glibc
4130  # with a fresh cross-compiler works.
4131  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132  # <limits.h> exists even on freestanding compilers.
4133  # On the NeXT, cc -E runs the code through the compiler's parser,
4134  # not just through cpp. "Syntax error" is here to catch this case.
4135  cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h.  */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h.  */
4141#ifdef __STDC__
4142# include <limits.h>
4143#else
4144# include <assert.h>
4145#endif
4146		     Syntax error
4147_ACEOF
4148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4150  ac_status=$?
4151  grep -v '^ *+' conftest.er1 >conftest.err
4152  rm -f conftest.er1
4153  cat conftest.err >&5
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); } >/dev/null; then
4156  if test -s conftest.err; then
4157    ac_cpp_err=$ac_c_preproc_warn_flag
4158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4159  else
4160    ac_cpp_err=
4161  fi
4162else
4163  ac_cpp_err=yes
4164fi
4165if test -z "$ac_cpp_err"; then
4166  :
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171  # Broken: fails on valid input.
4172continue
4173fi
4174rm -f conftest.err conftest.$ac_ext
4175
4176  # OK, works on sane cases.  Now check whether non-existent headers
4177  # can be detected and how.
4178  cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h.  */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h.  */
4184#include <ac_nonexistent.h>
4185_ACEOF
4186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4187  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4188  ac_status=$?
4189  grep -v '^ *+' conftest.er1 >conftest.err
4190  rm -f conftest.er1
4191  cat conftest.err >&5
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); } >/dev/null; then
4194  if test -s conftest.err; then
4195    ac_cpp_err=$ac_c_preproc_warn_flag
4196    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4197  else
4198    ac_cpp_err=
4199  fi
4200else
4201  ac_cpp_err=yes
4202fi
4203if test -z "$ac_cpp_err"; then
4204  # Broken: success on invalid input.
4205continue
4206else
4207  echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210  # Passes both tests.
4211ac_preproc_ok=:
4212break
4213fi
4214rm -f conftest.err conftest.$ac_ext
4215
4216done
4217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4218rm -f conftest.err conftest.$ac_ext
4219if $ac_preproc_ok; then
4220  :
4221else
4222  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4223See \`config.log' for more details." >&5
4224echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4225See \`config.log' for more details." >&2;}
4226   { (exit 1); exit 1; }; }
4227fi
4228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235
4236echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4237echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4238if test "${ac_cv_header_stdc+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h.  */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h.  */
4247#include <stdlib.h>
4248#include <stdarg.h>
4249#include <string.h>
4250#include <float.h>
4251
4252int
4253main ()
4254{
4255
4256  ;
4257  return 0;
4258}
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262  (eval $ac_compile) 2>conftest.er1
4263  ac_status=$?
4264  grep -v '^ *+' conftest.er1 >conftest.err
4265  rm -f conftest.er1
4266  cat conftest.err >&5
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); } &&
4269	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271  (eval $ac_try) 2>&5
4272  ac_status=$?
4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); }; } &&
4275	 { ac_try='test -s conftest.$ac_objext'
4276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277  (eval $ac_try) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }; }; then
4281  ac_cv_header_stdc=yes
4282else
4283  echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286ac_cv_header_stdc=no
4287fi
4288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289
4290if test $ac_cv_header_stdc = yes; then
4291  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4292  cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h.  */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h.  */
4298#include <string.h>
4299
4300_ACEOF
4301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302  $EGREP "memchr" >/dev/null 2>&1; then
4303  :
4304else
4305  ac_cv_header_stdc=no
4306fi
4307rm -f conftest*
4308
4309fi
4310
4311if test $ac_cv_header_stdc = yes; then
4312  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4313  cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h.  */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h.  */
4319#include <stdlib.h>
4320
4321_ACEOF
4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323  $EGREP "free" >/dev/null 2>&1; then
4324  :
4325else
4326  ac_cv_header_stdc=no
4327fi
4328rm -f conftest*
4329
4330fi
4331
4332if test $ac_cv_header_stdc = yes; then
4333  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334  if test "$cross_compiling" = yes; then
4335  :
4336else
4337  cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h.  */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h.  */
4343#include <ctype.h>
4344#if ((' ' & 0x0FF) == 0x020)
4345# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4346# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4347#else
4348# define ISLOWER(c) \
4349		   (('a' <= (c) && (c) <= 'i') \
4350		     || ('j' <= (c) && (c) <= 'r') \
4351		     || ('s' <= (c) && (c) <= 'z'))
4352# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4353#endif
4354
4355#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4356int
4357main ()
4358{
4359  int i;
4360  for (i = 0; i < 256; i++)
4361    if (XOR (islower (i), ISLOWER (i))
4362	|| toupper (i) != TOUPPER (i))
4363      exit(2);
4364  exit (0);
4365}
4366_ACEOF
4367rm -f conftest$ac_exeext
4368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4369  (eval $ac_link) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374  (eval $ac_try) 2>&5
4375  ac_status=$?
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); }; }; then
4378  :
4379else
4380  echo "$as_me: program exited with status $ac_status" >&5
4381echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384( exit $ac_status )
4385ac_cv_header_stdc=no
4386fi
4387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388fi
4389fi
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4392echo "${ECHO_T}$ac_cv_header_stdc" >&6
4393if test $ac_cv_header_stdc = yes; then
4394
4395cat >>confdefs.h <<\_ACEOF
4396#define STDC_HEADERS 1
4397_ACEOF
4398
4399fi
4400
4401# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4412		  inttypes.h stdint.h unistd.h
4413do
4414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4415echo "$as_me:$LINENO: checking for $ac_header" >&5
4416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418  echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420  cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426$ac_includes_default
4427
4428#include <$ac_header>
4429_ACEOF
4430rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432  (eval $ac_compile) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } &&
4439	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445	 { ac_try='test -s conftest.$ac_objext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  eval "$as_ac_Header=yes"
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456eval "$as_ac_Header=no"
4457fi
4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459fi
4460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463  cat >>confdefs.h <<_ACEOF
4464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473for ac_header in dlfcn.h
4474do
4475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477  echo "$as_me:$LINENO: checking for $ac_header" >&5
4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481fi
4482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484else
4485  # Is the header compilable?
4486echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494$ac_includes_default
4495#include <$ac_header>
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499  (eval $ac_compile) 2>conftest.er1
4500  ac_status=$?
4501  grep -v '^ *+' conftest.er1 >conftest.err
4502  rm -f conftest.er1
4503  cat conftest.err >&5
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } &&
4506	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; } &&
4512	 { ac_try='test -s conftest.$ac_objext'
4513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514  (eval $ac_try) 2>&5
4515  ac_status=$?
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); }; }; then
4518  ac_header_compiler=yes
4519else
4520  echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523ac_header_compiler=no
4524fi
4525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4527echo "${ECHO_T}$ac_header_compiler" >&6
4528
4529# Is the header present?
4530echo "$as_me:$LINENO: checking $ac_header presence" >&5
4531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4532cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538#include <$ac_header>
4539_ACEOF
4540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4541  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } >/dev/null; then
4548  if test -s conftest.err; then
4549    ac_cpp_err=$ac_c_preproc_warn_flag
4550    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4551  else
4552    ac_cpp_err=
4553  fi
4554else
4555  ac_cpp_err=yes
4556fi
4557if test -z "$ac_cpp_err"; then
4558  ac_header_preproc=yes
4559else
4560  echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563  ac_header_preproc=no
4564fi
4565rm -f conftest.err conftest.$ac_ext
4566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4567echo "${ECHO_T}$ac_header_preproc" >&6
4568
4569# So?  What about this header?
4570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4571  yes:no: )
4572    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4574    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4576    ac_header_preproc=yes
4577    ;;
4578  no:yes:* )
4579    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4581    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4582echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4583    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4585    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4586echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4587    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4589    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4591    (
4592      cat <<\_ASBOX
4593## --------------------------------- ##
4594## Report this to the libpcl lists.  ##
4595## --------------------------------- ##
4596_ASBOX
4597    ) |
4598      sed "s/^/$as_me: WARNING:     /" >&2
4599    ;;
4600esac
4601echo "$as_me:$LINENO: checking for $ac_header" >&5
4602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4603if eval "test \"\${$as_ac_Header+set}\" = set"; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  eval "$as_ac_Header=\$ac_header_preproc"
4607fi
4608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4610
4611fi
4612if test `eval echo '${'$as_ac_Header'}'` = yes; then
4613  cat >>confdefs.h <<_ACEOF
4614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4615_ACEOF
4616
4617fi
4618
4619done
4620
4621ac_ext=cc
4622ac_cpp='$CXXCPP $CPPFLAGS'
4623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4626if test -n "$ac_tool_prefix"; then
4627  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4628  do
4629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631echo "$as_me:$LINENO: checking for $ac_word" >&5
4632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633if test "${ac_cv_prog_CXX+set}" = set; then
4634  echo $ECHO_N "(cached) $ECHO_C" >&6
4635else
4636  if test -n "$CXX"; then
4637  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644  for ac_exec_ext in '' $ac_executable_extensions; do
4645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648    break 2
4649  fi
4650done
4651done
4652
4653fi
4654fi
4655CXX=$ac_cv_prog_CXX
4656if test -n "$CXX"; then
4657  echo "$as_me:$LINENO: result: $CXX" >&5
4658echo "${ECHO_T}$CXX" >&6
4659else
4660  echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662fi
4663
4664    test -n "$CXX" && break
4665  done
4666fi
4667if test -z "$CXX"; then
4668  ac_ct_CXX=$CXX
4669  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4670do
4671  # Extract the first word of "$ac_prog", so it can be a program name with args.
4672set dummy $ac_prog; ac_word=$2
4673echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  if test -n "$ac_ct_CXX"; then
4679  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4680else
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684  IFS=$as_save_IFS
4685  test -z "$as_dir" && as_dir=.
4686  for ac_exec_ext in '' $ac_executable_extensions; do
4687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688    ac_cv_prog_ac_ct_CXX="$ac_prog"
4689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690    break 2
4691  fi
4692done
4693done
4694
4695fi
4696fi
4697ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4698if test -n "$ac_ct_CXX"; then
4699  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4700echo "${ECHO_T}$ac_ct_CXX" >&6
4701else
4702  echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704fi
4705
4706  test -n "$ac_ct_CXX" && break
4707done
4708test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4709
4710  CXX=$ac_ct_CXX
4711fi
4712
4713
4714# Provide some information about the compiler.
4715echo "$as_me:$LINENO:" \
4716     "checking for C++ compiler version" >&5
4717ac_compiler=`set X $ac_compile; echo $2`
4718{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4719  (eval $ac_compiler --version </dev/null >&5) 2>&5
4720  ac_status=$?
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }
4723{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4724  (eval $ac_compiler -v </dev/null >&5) 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }
4728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4729  (eval $ac_compiler -V </dev/null >&5) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }
4733
4734echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4735echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4736if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4737  echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739  cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h.  */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h.  */
4745
4746int
4747main ()
4748{
4749#ifndef __GNUC__
4750       choke me
4751#endif
4752
4753  ;
4754  return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext
4758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759  (eval $ac_compile) 2>conftest.er1
4760  ac_status=$?
4761  grep -v '^ *+' conftest.er1 >conftest.err
4762  rm -f conftest.er1
4763  cat conftest.err >&5
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); } &&
4766	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768  (eval $ac_try) 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); }; } &&
4772	 { ac_try='test -s conftest.$ac_objext'
4773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774  (eval $ac_try) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; }; then
4778  ac_compiler_gnu=yes
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783ac_compiler_gnu=no
4784fi
4785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4787
4788fi
4789echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4790echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4791GXX=`test $ac_compiler_gnu = yes && echo yes`
4792ac_test_CXXFLAGS=${CXXFLAGS+set}
4793ac_save_CXXFLAGS=$CXXFLAGS
4794CXXFLAGS="-g"
4795echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4796echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4797if test "${ac_cv_prog_cxx_g+set}" = set; then
4798  echo $ECHO_N "(cached) $ECHO_C" >&6
4799else
4800  cat >conftest.$ac_ext <<_ACEOF
4801/* confdefs.h.  */
4802_ACEOF
4803cat confdefs.h >>conftest.$ac_ext
4804cat >>conftest.$ac_ext <<_ACEOF
4805/* end confdefs.h.  */
4806
4807int
4808main ()
4809{
4810
4811  ;
4812  return 0;
4813}
4814_ACEOF
4815rm -f conftest.$ac_objext
4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817  (eval $ac_compile) 2>conftest.er1
4818  ac_status=$?
4819  grep -v '^ *+' conftest.er1 >conftest.err
4820  rm -f conftest.er1
4821  cat conftest.err >&5
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); } &&
4824	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826  (eval $ac_try) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; } &&
4830	 { ac_try='test -s conftest.$ac_objext'
4831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832  (eval $ac_try) 2>&5
4833  ac_status=$?
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); }; }; then
4836  ac_cv_prog_cxx_g=yes
4837else
4838  echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841ac_cv_prog_cxx_g=no
4842fi
4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844fi
4845echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4846echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4847if test "$ac_test_CXXFLAGS" = set; then
4848  CXXFLAGS=$ac_save_CXXFLAGS
4849elif test $ac_cv_prog_cxx_g = yes; then
4850  if test "$GXX" = yes; then
4851    CXXFLAGS="-g -O2"
4852  else
4853    CXXFLAGS="-g"
4854  fi
4855else
4856  if test "$GXX" = yes; then
4857    CXXFLAGS="-O2"
4858  else
4859    CXXFLAGS=
4860  fi
4861fi
4862for ac_declaration in \
4863   '' \
4864   'extern "C" void std::exit (int) throw (); using std::exit;' \
4865   'extern "C" void std::exit (int); using std::exit;' \
4866   'extern "C" void exit (int) throw ();' \
4867   'extern "C" void exit (int);' \
4868   'void exit (int);'
4869do
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876$ac_declaration
4877#include <stdlib.h>
4878int
4879main ()
4880{
4881exit (42);
4882  ;
4883  return 0;
4884}
4885_ACEOF
4886rm -f conftest.$ac_objext
4887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888  (eval $ac_compile) 2>conftest.er1
4889  ac_status=$?
4890  grep -v '^ *+' conftest.er1 >conftest.err
4891  rm -f conftest.er1
4892  cat conftest.err >&5
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } &&
4895	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897  (eval $ac_try) 2>&5
4898  ac_status=$?
4899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900  (exit $ac_status); }; } &&
4901	 { ac_try='test -s conftest.$ac_objext'
4902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903  (eval $ac_try) 2>&5
4904  ac_status=$?
4905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906  (exit $ac_status); }; }; then
4907  :
4908else
4909  echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912continue
4913fi
4914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915  cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h.  */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h.  */
4921$ac_declaration
4922int
4923main ()
4924{
4925exit (42);
4926  ;
4927  return 0;
4928}
4929_ACEOF
4930rm -f conftest.$ac_objext
4931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932  (eval $ac_compile) 2>conftest.er1
4933  ac_status=$?
4934  grep -v '^ *+' conftest.er1 >conftest.err
4935  rm -f conftest.er1
4936  cat conftest.err >&5
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); } &&
4939	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; } &&
4945	 { ac_try='test -s conftest.$ac_objext'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; }; then
4951  break
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956fi
4957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958done
4959rm -f conftest*
4960if test -n "$ac_declaration"; then
4961  echo '#ifdef __cplusplus' >>confdefs.h
4962  echo $ac_declaration      >>confdefs.h
4963  echo '#endif'             >>confdefs.h
4964fi
4965
4966ac_ext=cc
4967ac_cpp='$CXXCPP $CPPFLAGS'
4968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4971
4972depcc="$CXX"  am_compiler_list=
4973
4974echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4975echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4976if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4977  echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4980  # We make a subdir and do the tests there.  Otherwise we can end up
4981  # making bogus files that we don't know about and never remove.  For
4982  # instance it was reported that on HP-UX the gcc test will end up
4983  # making a dummy file named `D' -- because `-MD' means `put the output
4984  # in D'.
4985  mkdir conftest.dir
4986  # Copy depcomp to subdir because otherwise we won't find it if we're
4987  # using a relative directory.
4988  cp "$am_depcomp" conftest.dir
4989  cd conftest.dir
4990  # We will build objects and dependencies in a subdirectory because
4991  # it helps to detect inapplicable dependency modes.  For instance
4992  # both Tru64's cc and ICC support -MD to output dependencies as a
4993  # side effect of compilation, but ICC will put the dependencies in
4994  # the current directory while Tru64 will put them in the object
4995  # directory.
4996  mkdir sub
4997
4998  am_cv_CXX_dependencies_compiler_type=none
4999  if test "$am_compiler_list" = ""; then
5000     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5001  fi
5002  for depmode in $am_compiler_list; do
5003    # Setup a source with many dependencies, because some compilers
5004    # like to wrap large dependency lists on column 80 (with \), and
5005    # we should not choose a depcomp mode which is confused by this.
5006    #
5007    # We need to recreate these files for each test, as the compiler may
5008    # overwrite some of them when testing with obscure command lines.
5009    # This happens at least with the AIX C compiler.
5010    : > sub/conftest.c
5011    for i in 1 2 3 4 5 6; do
5012      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5013      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5014      # Solaris 8's {/usr,}/bin/sh.
5015      touch sub/conftst$i.h
5016    done
5017    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5018
5019    case $depmode in
5020    nosideeffect)
5021      # after this tag, mechanisms are not by side-effect, so they'll
5022      # only be used when explicitly requested
5023      if test "x$enable_dependency_tracking" = xyes; then
5024	continue
5025      else
5026	break
5027      fi
5028      ;;
5029    none) break ;;
5030    esac
5031    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5032    # mode.  It turns out that the SunPro C++ compiler does not properly
5033    # handle `-M -o', and we need to detect this.
5034    if depmode=$depmode \
5035       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5036       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5037       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5038         >/dev/null 2>conftest.err &&
5039       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5040       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5041       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5042      # icc doesn't choke on unknown options, it will just issue warnings
5043      # or remarks (even with -Werror).  So we grep stderr for any message
5044      # that says an option was ignored or not supported.
5045      # When given -MP, icc 7.0 and 7.1 complain thusly:
5046      #   icc: Command line warning: ignoring option '-M'; no argument required
5047      # The diagnosis changed in icc 8.0:
5048      #   icc: Command line remark: option '-MP' not supported
5049      if (grep 'ignoring option' conftest.err ||
5050          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5051        am_cv_CXX_dependencies_compiler_type=$depmode
5052        break
5053      fi
5054    fi
5055  done
5056
5057  cd ..
5058  rm -rf conftest.dir
5059else
5060  am_cv_CXX_dependencies_compiler_type=none
5061fi
5062
5063fi
5064echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5065echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5066CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5067
5068
5069
5070if
5071  test "x$enable_dependency_tracking" != xno \
5072  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5073  am__fastdepCXX_TRUE=
5074  am__fastdepCXX_FALSE='#'
5075else
5076  am__fastdepCXX_TRUE='#'
5077  am__fastdepCXX_FALSE=
5078fi
5079
5080
5081
5082
5083if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5084    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5085    (test "X$CXX" != "Xg++"))) ; then
5086  ac_ext=cc
5087ac_cpp='$CXXCPP $CPPFLAGS'
5088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5092echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5093if test -z "$CXXCPP"; then
5094  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5095  echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097      # Double quotes because CXXCPP needs to be expanded
5098    for CXXCPP in "$CXX -E" "/lib/cpp"
5099    do
5100      ac_preproc_ok=false
5101for ac_cxx_preproc_warn_flag in '' yes
5102do
5103  # Use a header file that comes with gcc, so configuring glibc
5104  # with a fresh cross-compiler works.
5105  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106  # <limits.h> exists even on freestanding compilers.
5107  # On the NeXT, cc -E runs the code through the compiler's parser,
5108  # not just through cpp. "Syntax error" is here to catch this case.
5109  cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h.  */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h.  */
5115#ifdef __STDC__
5116# include <limits.h>
5117#else
5118# include <assert.h>
5119#endif
5120		     Syntax error
5121_ACEOF
5122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5124  ac_status=$?
5125  grep -v '^ *+' conftest.er1 >conftest.err
5126  rm -f conftest.er1
5127  cat conftest.err >&5
5128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } >/dev/null; then
5130  if test -s conftest.err; then
5131    ac_cpp_err=$ac_cxx_preproc_warn_flag
5132    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5133  else
5134    ac_cpp_err=
5135  fi
5136else
5137  ac_cpp_err=yes
5138fi
5139if test -z "$ac_cpp_err"; then
5140  :
5141else
5142  echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
5145  # Broken: fails on valid input.
5146continue
5147fi
5148rm -f conftest.err conftest.$ac_ext
5149
5150  # OK, works on sane cases.  Now check whether non-existent headers
5151  # can be detected and how.
5152  cat >conftest.$ac_ext <<_ACEOF
5153/* confdefs.h.  */
5154_ACEOF
5155cat confdefs.h >>conftest.$ac_ext
5156cat >>conftest.$ac_ext <<_ACEOF
5157/* end confdefs.h.  */
5158#include <ac_nonexistent.h>
5159_ACEOF
5160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5161  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162  ac_status=$?
5163  grep -v '^ *+' conftest.er1 >conftest.err
5164  rm -f conftest.er1
5165  cat conftest.err >&5
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); } >/dev/null; then
5168  if test -s conftest.err; then
5169    ac_cpp_err=$ac_cxx_preproc_warn_flag
5170    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5171  else
5172    ac_cpp_err=
5173  fi
5174else
5175  ac_cpp_err=yes
5176fi
5177if test -z "$ac_cpp_err"; then
5178  # Broken: success on invalid input.
5179continue
5180else
5181  echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184  # Passes both tests.
5185ac_preproc_ok=:
5186break
5187fi
5188rm -f conftest.err conftest.$ac_ext
5189
5190done
5191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5192rm -f conftest.err conftest.$ac_ext
5193if $ac_preproc_ok; then
5194  break
5195fi
5196
5197    done
5198    ac_cv_prog_CXXCPP=$CXXCPP
5199
5200fi
5201  CXXCPP=$ac_cv_prog_CXXCPP
5202else
5203  ac_cv_prog_CXXCPP=$CXXCPP
5204fi
5205echo "$as_me:$LINENO: result: $CXXCPP" >&5
5206echo "${ECHO_T}$CXXCPP" >&6
5207ac_preproc_ok=false
5208for ac_cxx_preproc_warn_flag in '' yes
5209do
5210  # Use a header file that comes with gcc, so configuring glibc
5211  # with a fresh cross-compiler works.
5212  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5213  # <limits.h> exists even on freestanding compilers.
5214  # On the NeXT, cc -E runs the code through the compiler's parser,
5215  # not just through cpp. "Syntax error" is here to catch this case.
5216  cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h.  */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h.  */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227		     Syntax error
5228_ACEOF
5229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } >/dev/null; then
5237  if test -s conftest.err; then
5238    ac_cpp_err=$ac_cxx_preproc_warn_flag
5239    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5240  else
5241    ac_cpp_err=
5242  fi
5243else
5244  ac_cpp_err=yes
5245fi
5246if test -z "$ac_cpp_err"; then
5247  :
5248else
5249  echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252  # Broken: fails on valid input.
5253continue
5254fi
5255rm -f conftest.err conftest.$ac_ext
5256
5257  # OK, works on sane cases.  Now check whether non-existent headers
5258  # can be detected and how.
5259  cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h.  */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h.  */
5265#include <ac_nonexistent.h>
5266_ACEOF
5267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5268  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } >/dev/null; then
5275  if test -s conftest.err; then
5276    ac_cpp_err=$ac_cxx_preproc_warn_flag
5277    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5278  else
5279    ac_cpp_err=
5280  fi
5281else
5282  ac_cpp_err=yes
5283fi
5284if test -z "$ac_cpp_err"; then
5285  # Broken: success on invalid input.
5286continue
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291  # Passes both tests.
5292ac_preproc_ok=:
5293break
5294fi
5295rm -f conftest.err conftest.$ac_ext
5296
5297done
5298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5299rm -f conftest.err conftest.$ac_ext
5300if $ac_preproc_ok; then
5301  :
5302else
5303  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5304See \`config.log' for more details." >&5
5305echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5306See \`config.log' for more details." >&2;}
5307   { (exit 1); exit 1; }; }
5308fi
5309
5310ac_ext=cc
5311ac_cpp='$CXXCPP $CPPFLAGS'
5312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5315
5316fi
5317
5318
5319ac_ext=f
5320ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5321ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5323if test -n "$ac_tool_prefix"; then
5324  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5325  do
5326    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5328echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330if test "${ac_cv_prog_F77+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333  if test -n "$F77"; then
5334  ac_cv_prog_F77="$F77" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339  IFS=$as_save_IFS
5340  test -z "$as_dir" && as_dir=.
5341  for ac_exec_ext in '' $ac_executable_extensions; do
5342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345    break 2
5346  fi
5347done
5348done
5349
5350fi
5351fi
5352F77=$ac_cv_prog_F77
5353if test -n "$F77"; then
5354  echo "$as_me:$LINENO: result: $F77" >&5
5355echo "${ECHO_T}$F77" >&6
5356else
5357  echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6
5359fi
5360
5361    test -n "$F77" && break
5362  done
5363fi
5364if test -z "$F77"; then
5365  ac_ct_F77=$F77
5366  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5367do
5368  # Extract the first word of "$ac_prog", so it can be a program name with args.
5369set dummy $ac_prog; ac_word=$2
5370echo "$as_me:$LINENO: checking for $ac_word" >&5
5371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5372if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5373  echo $ECHO_N "(cached) $ECHO_C" >&6
5374else
5375  if test -n "$ac_ct_F77"; then
5376  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5377else
5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381  IFS=$as_save_IFS
5382  test -z "$as_dir" && as_dir=.
5383  for ac_exec_ext in '' $ac_executable_extensions; do
5384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385    ac_cv_prog_ac_ct_F77="$ac_prog"
5386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387    break 2
5388  fi
5389done
5390done
5391
5392fi
5393fi
5394ac_ct_F77=$ac_cv_prog_ac_ct_F77
5395if test -n "$ac_ct_F77"; then
5396  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5397echo "${ECHO_T}$ac_ct_F77" >&6
5398else
5399  echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401fi
5402
5403  test -n "$ac_ct_F77" && break
5404done
5405
5406  F77=$ac_ct_F77
5407fi
5408
5409
5410# Provide some information about the compiler.
5411echo "$as_me:5411:" \
5412     "checking for Fortran 77 compiler version" >&5
5413ac_compiler=`set X $ac_compile; echo $2`
5414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5415  (eval $ac_compiler --version </dev/null >&5) 2>&5
5416  ac_status=$?
5417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418  (exit $ac_status); }
5419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5420  (eval $ac_compiler -v </dev/null >&5) 2>&5
5421  ac_status=$?
5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); }
5424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5425  (eval $ac_compiler -V </dev/null >&5) 2>&5
5426  ac_status=$?
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); }
5429rm -f a.out
5430
5431# If we don't use `.F' as extension, the preprocessor is not run on the
5432# input file.  (Note that this only needs to work for GNU compilers.)
5433ac_save_ext=$ac_ext
5434ac_ext=F
5435echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5436echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5437if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  cat >conftest.$ac_ext <<_ACEOF
5441      program main
5442#ifndef __GNUC__
5443       choke me
5444#endif
5445
5446      end
5447_ACEOF
5448rm -f conftest.$ac_objext
5449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450  (eval $ac_compile) 2>conftest.er1
5451  ac_status=$?
5452  grep -v '^ *+' conftest.er1 >conftest.err
5453  rm -f conftest.er1
5454  cat conftest.err >&5
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); } &&
5457	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459  (eval $ac_try) 2>&5
5460  ac_status=$?
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); }; } &&
5463	 { ac_try='test -s conftest.$ac_objext'
5464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465  (eval $ac_try) 2>&5
5466  ac_status=$?
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); }; }; then
5469  ac_compiler_gnu=yes
5470else
5471  echo "$as_me: failed program was:" >&5
5472sed 's/^/| /' conftest.$ac_ext >&5
5473
5474ac_compiler_gnu=no
5475fi
5476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5478
5479fi
5480echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5481echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5482ac_ext=$ac_save_ext
5483ac_test_FFLAGS=${FFLAGS+set}
5484ac_save_FFLAGS=$FFLAGS
5485FFLAGS=
5486echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5487echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5488if test "${ac_cv_prog_f77_g+set}" = set; then
5489  echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491  FFLAGS=-g
5492cat >conftest.$ac_ext <<_ACEOF
5493      program main
5494
5495      end
5496_ACEOF
5497rm -f conftest.$ac_objext
5498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499  (eval $ac_compile) 2>conftest.er1
5500  ac_status=$?
5501  grep -v '^ *+' conftest.er1 >conftest.err
5502  rm -f conftest.er1
5503  cat conftest.err >&5
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); } &&
5506	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508  (eval $ac_try) 2>&5
5509  ac_status=$?
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); }; } &&
5512	 { ac_try='test -s conftest.$ac_objext'
5513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514  (eval $ac_try) 2>&5
5515  ac_status=$?
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); }; }; then
5518  ac_cv_prog_f77_g=yes
5519else
5520  echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523ac_cv_prog_f77_g=no
5524fi
5525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527fi
5528echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5529echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5530if test "$ac_test_FFLAGS" = set; then
5531  FFLAGS=$ac_save_FFLAGS
5532elif test $ac_cv_prog_f77_g = yes; then
5533  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5534    FFLAGS="-g -O2"
5535  else
5536    FFLAGS="-g"
5537  fi
5538else
5539  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5540    FFLAGS="-O2"
5541  else
5542    FFLAGS=
5543  fi
5544fi
5545
5546G77=`test $ac_compiler_gnu = yes && echo yes`
5547ac_ext=c
5548ac_cpp='$CPP $CPPFLAGS'
5549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553
5554
5555# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5556
5557# find the maximum length of command line arguments
5558echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5559echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5560if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563    i=0
5564  teststring="ABCD"
5565
5566  case $build_os in
5567  msdosdjgpp*)
5568    # On DJGPP, this test can blow up pretty badly due to problems in libc
5569    # (any single argument exceeding 2000 bytes causes a buffer overrun
5570    # during glob expansion).  Even if it were fixed, the result of this
5571    # check would be larger than it should be.
5572    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5573    ;;
5574
5575  gnu*)
5576    # Under GNU Hurd, this test is not required because there is
5577    # no limit to the length of command line arguments.
5578    # Libtool will interpret -1 as no limit whatsoever
5579    lt_cv_sys_max_cmd_len=-1;
5580    ;;
5581
5582  cygwin* | mingw*)
5583    # On Win9x/ME, this test blows up -- it succeeds, but takes
5584    # about 5 minutes as the teststring grows exponentially.
5585    # Worse, since 9x/ME are not pre-emptively multitasking,
5586    # you end up with a "frozen" computer, even though with patience
5587    # the test eventually succeeds (with a max line length of 256k).
5588    # Instead, let's just punt: use the minimum linelength reported by
5589    # all of the supported platforms: 8192 (on NT/2K/XP).
5590    lt_cv_sys_max_cmd_len=8192;
5591    ;;
5592
5593  amigaos*)
5594    # On AmigaOS with pdksh, this test takes hours, literally.
5595    # So we just punt and use a minimum line length of 8192.
5596    lt_cv_sys_max_cmd_len=8192;
5597    ;;
5598
5599  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5600    # This has been around since 386BSD, at least.  Likely further.
5601    if test -x /sbin/sysctl; then
5602      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5603    elif test -x /usr/sbin/sysctl; then
5604      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5605    else
5606      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5607    fi
5608    # And add a safety zone
5609    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5610    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5611    ;;
5612  osf*)
5613    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5614    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5615    # nice to cause kernel panics so lets avoid the loop below.
5616    # First set a reasonable default.
5617    lt_cv_sys_max_cmd_len=16384
5618    #
5619    if test -x /sbin/sysconfig; then
5620      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5621        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5622      esac
5623    fi
5624    ;;
5625  *)
5626    # If test is not a shell built-in, we'll probably end up computing a
5627    # maximum length that is only half of the actual maximum length, but
5628    # we can't tell.
5629    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5630    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5631	       = "XX$teststring") >/dev/null 2>&1 &&
5632	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5633	    lt_cv_sys_max_cmd_len=$new_result &&
5634	    test $i != 17 # 1/2 MB should be enough
5635    do
5636      i=`expr $i + 1`
5637      teststring=$teststring$teststring
5638    done
5639    teststring=
5640    # Add a significant safety factor because C++ compilers can tack on massive
5641    # amounts of additional arguments before passing them to the linker.
5642    # It appears as though 1/2 is a usable value.
5643    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5644    ;;
5645  esac
5646
5647fi
5648
5649if test -n $lt_cv_sys_max_cmd_len ; then
5650  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5651echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5652else
5653  echo "$as_me:$LINENO: result: none" >&5
5654echo "${ECHO_T}none" >&6
5655fi
5656
5657
5658
5659
5660# Check for command to grab the raw symbol name followed by C symbol from nm.
5661echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5662echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5663if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5664  echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666
5667# These are sane defaults that work on at least a few old systems.
5668# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5669
5670# Character class describing NM global symbol codes.
5671symcode='[BCDEGRST]'
5672
5673# Regexp to match symbols that can be accessed directly from C.
5674sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5675
5676# Transform an extracted symbol line into a proper C declaration
5677lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5678
5679# Transform an extracted symbol line into symbol name and symbol address
5680lt_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'"
5681
5682# Define system-specific variables.
5683case $host_os in
5684aix*)
5685  symcode='[BCDT]'
5686  ;;
5687cygwin* | mingw* | pw32*)
5688  symcode='[ABCDGISTW]'
5689  ;;
5690hpux*) # Its linker distinguishes data from code symbols
5691  if test "$host_cpu" = ia64; then
5692    symcode='[ABCDEGRST]'
5693  fi
5694  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5695  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'"
5696  ;;
5697linux*)
5698  if test "$host_cpu" = ia64; then
5699    symcode='[ABCDGIRSTW]'
5700    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5701    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'"
5702  fi
5703  ;;
5704irix* | nonstopux*)
5705  symcode='[BCDEGRST]'
5706  ;;
5707osf*)
5708  symcode='[BCDEGQRST]'
5709  ;;
5710solaris* | sysv5*)
5711  symcode='[BDRT]'
5712  ;;
5713sysv4)
5714  symcode='[DFNSTU]'
5715  ;;
5716esac
5717
5718# Handle CRLF in mingw tool chain
5719opt_cr=
5720case $build_os in
5721mingw*)
5722  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5723  ;;
5724esac
5725
5726# If we're using GNU nm, then use its standard symbol codes.
5727case `$NM -V 2>&1` in
5728*GNU* | *'with BFD'*)
5729  symcode='[ABCDGIRSTW]' ;;
5730esac
5731
5732# Try without a prefix undercore, then with it.
5733for ac_symprfx in "" "_"; do
5734
5735  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5736  symxfrm="\\1 $ac_symprfx\\2 \\2"
5737
5738  # Write the raw and C identifiers.
5739  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5740
5741  # Check to see that the pipe works correctly.
5742  pipe_works=no
5743
5744  rm -f conftest*
5745  cat > conftest.$ac_ext <<EOF
5746#ifdef __cplusplus
5747extern "C" {
5748#endif
5749char nm_test_var;
5750void nm_test_func(){}
5751#ifdef __cplusplus
5752}
5753#endif
5754int main(){nm_test_var='a';nm_test_func();return(0);}
5755EOF
5756
5757  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758  (eval $ac_compile) 2>&5
5759  ac_status=$?
5760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761  (exit $ac_status); }; then
5762    # Now try to grab the symbols.
5763    nlist=conftest.nm
5764    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5765  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5766  ac_status=$?
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); } && test -s "$nlist"; then
5769      # Try sorting and uniquifying the output.
5770      if sort "$nlist" | uniq > "$nlist"T; then
5771	mv -f "$nlist"T "$nlist"
5772      else
5773	rm -f "$nlist"T
5774      fi
5775
5776      # Make sure that we snagged all the symbols we need.
5777      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5778	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5779	  cat <<EOF > conftest.$ac_ext
5780#ifdef __cplusplus
5781extern "C" {
5782#endif
5783
5784EOF
5785	  # Now generate the symbol file.
5786	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5787
5788	  cat <<EOF >> conftest.$ac_ext
5789#if defined (__STDC__) && __STDC__
5790# define lt_ptr_t void *
5791#else
5792# define lt_ptr_t char *
5793# define const
5794#endif
5795
5796/* The mapping between symbol names and symbols. */
5797const struct {
5798  const char *name;
5799  lt_ptr_t address;
5800}
5801lt_preloaded_symbols[] =
5802{
5803EOF
5804	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5805	  cat <<\EOF >> conftest.$ac_ext
5806  {0, (lt_ptr_t) 0}
5807};
5808
5809#ifdef __cplusplus
5810}
5811#endif
5812EOF
5813	  # Now try linking the two files.
5814	  mv conftest.$ac_objext conftstm.$ac_objext
5815	  lt_save_LIBS="$LIBS"
5816	  lt_save_CFLAGS="$CFLAGS"
5817	  LIBS="conftstm.$ac_objext"
5818	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5819	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820  (eval $ac_link) 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5824	    pipe_works=yes
5825	  fi
5826	  LIBS="$lt_save_LIBS"
5827	  CFLAGS="$lt_save_CFLAGS"
5828	else
5829	  echo "cannot find nm_test_func in $nlist" >&5
5830	fi
5831      else
5832	echo "cannot find nm_test_var in $nlist" >&5
5833      fi
5834    else
5835      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5836    fi
5837  else
5838    echo "$progname: failed program was:" >&5
5839    cat conftest.$ac_ext >&5
5840  fi
5841  rm -f conftest* conftst*
5842
5843  # Do not use the global_symbol_pipe unless it works.
5844  if test "$pipe_works" = yes; then
5845    break
5846  else
5847    lt_cv_sys_global_symbol_pipe=
5848  fi
5849done
5850
5851fi
5852
5853if test -z "$lt_cv_sys_global_symbol_pipe"; then
5854  lt_cv_sys_global_symbol_to_cdecl=
5855fi
5856if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5857  echo "$as_me:$LINENO: result: failed" >&5
5858echo "${ECHO_T}failed" >&6
5859else
5860  echo "$as_me:$LINENO: result: ok" >&5
5861echo "${ECHO_T}ok" >&6
5862fi
5863
5864echo "$as_me:$LINENO: checking for objdir" >&5
5865echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5866if test "${lt_cv_objdir+set}" = set; then
5867  echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869  rm -f .libs 2>/dev/null
5870mkdir .libs 2>/dev/null
5871if test -d .libs; then
5872  lt_cv_objdir=.libs
5873else
5874  # MS-DOS does not allow filenames that begin with a dot.
5875  lt_cv_objdir=_libs
5876fi
5877rmdir .libs 2>/dev/null
5878fi
5879echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5880echo "${ECHO_T}$lt_cv_objdir" >&6
5881objdir=$lt_cv_objdir
5882
5883
5884
5885
5886
5887case $host_os in
5888aix3*)
5889  # AIX sometimes has problems with the GCC collect2 program.  For some
5890  # reason, if we set the COLLECT_NAMES environment variable, the problems
5891  # vanish in a puff of smoke.
5892  if test "X${COLLECT_NAMES+set}" != Xset; then
5893    COLLECT_NAMES=
5894    export COLLECT_NAMES
5895  fi
5896  ;;
5897esac
5898
5899# Sed substitution that helps us do robust quoting.  It backslashifies
5900# metacharacters that are still active within double-quoted strings.
5901Xsed='sed -e 1s/^X//'
5902sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5903
5904# Same as above, but do not quote variable references.
5905double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5906
5907# Sed substitution to delay expansion of an escaped shell variable in a
5908# double_quote_subst'ed string.
5909delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5910
5911# Sed substitution to avoid accidental globbing in evaled expressions
5912no_glob_subst='s/\*/\\\*/g'
5913
5914# Constants:
5915rm="rm -f"
5916
5917# Global variables:
5918default_ofile=libtool
5919can_build_shared=yes
5920
5921# All known linkers require a `.a' archive for static linking (except MSVC,
5922# which needs '.lib').
5923libext=a
5924ltmain="$ac_aux_dir/ltmain.sh"
5925ofile="$default_ofile"
5926with_gnu_ld="$lt_cv_prog_gnu_ld"
5927
5928if test -n "$ac_tool_prefix"; then
5929  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5930set dummy ${ac_tool_prefix}ar; ac_word=$2
5931echo "$as_me:$LINENO: checking for $ac_word" >&5
5932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933if test "${ac_cv_prog_AR+set}" = set; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936  if test -n "$AR"; then
5937  ac_cv_prog_AR="$AR" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942  IFS=$as_save_IFS
5943  test -z "$as_dir" && as_dir=.
5944  for ac_exec_ext in '' $ac_executable_extensions; do
5945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946    ac_cv_prog_AR="${ac_tool_prefix}ar"
5947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948    break 2
5949  fi
5950done
5951done
5952
5953fi
5954fi
5955AR=$ac_cv_prog_AR
5956if test -n "$AR"; then
5957  echo "$as_me:$LINENO: result: $AR" >&5
5958echo "${ECHO_T}$AR" >&6
5959else
5960  echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962fi
5963
5964fi
5965if test -z "$ac_cv_prog_AR"; then
5966  ac_ct_AR=$AR
5967  # Extract the first word of "ar", so it can be a program name with args.
5968set dummy ar; ac_word=$2
5969echo "$as_me:$LINENO: checking for $ac_word" >&5
5970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5972  echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974  if test -n "$ac_ct_AR"; then
5975  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982  for ac_exec_ext in '' $ac_executable_extensions; do
5983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984    ac_cv_prog_ac_ct_AR="ar"
5985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986    break 2
5987  fi
5988done
5989done
5990
5991  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5992fi
5993fi
5994ac_ct_AR=$ac_cv_prog_ac_ct_AR
5995if test -n "$ac_ct_AR"; then
5996  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5997echo "${ECHO_T}$ac_ct_AR" >&6
5998else
5999  echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
6001fi
6002
6003  AR=$ac_ct_AR
6004else
6005  AR="$ac_cv_prog_AR"
6006fi
6007
6008if test -n "$ac_tool_prefix"; then
6009  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6010set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6011echo "$as_me:$LINENO: checking for $ac_word" >&5
6012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013if test "${ac_cv_prog_RANLIB+set}" = set; then
6014  echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016  if test -n "$RANLIB"; then
6017  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024  for ac_exec_ext in '' $ac_executable_extensions; do
6025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031done
6032
6033fi
6034fi
6035RANLIB=$ac_cv_prog_RANLIB
6036if test -n "$RANLIB"; then
6037  echo "$as_me:$LINENO: result: $RANLIB" >&5
6038echo "${ECHO_T}$RANLIB" >&6
6039else
6040  echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6
6042fi
6043
6044fi
6045if test -z "$ac_cv_prog_RANLIB"; then
6046  ac_ct_RANLIB=$RANLIB
6047  # Extract the first word of "ranlib", so it can be a program name with args.
6048set dummy ranlib; ac_word=$2
6049echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6052  echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054  if test -n "$ac_ct_RANLIB"; then
6055  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060  IFS=$as_save_IFS
6061  test -z "$as_dir" && as_dir=.
6062  for ac_exec_ext in '' $ac_executable_extensions; do
6063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064    ac_cv_prog_ac_ct_RANLIB="ranlib"
6065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069done
6070
6071  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6072fi
6073fi
6074ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6075if test -n "$ac_ct_RANLIB"; then
6076  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6077echo "${ECHO_T}$ac_ct_RANLIB" >&6
6078else
6079  echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6
6081fi
6082
6083  RANLIB=$ac_ct_RANLIB
6084else
6085  RANLIB="$ac_cv_prog_RANLIB"
6086fi
6087
6088if test -n "$ac_tool_prefix"; then
6089  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}strip; ac_word=$2
6091echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093if test "${ac_cv_prog_STRIP+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  if test -n "$STRIP"; then
6097  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104  for ac_exec_ext in '' $ac_executable_extensions; do
6105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111done
6112
6113fi
6114fi
6115STRIP=$ac_cv_prog_STRIP
6116if test -n "$STRIP"; then
6117  echo "$as_me:$LINENO: result: $STRIP" >&5
6118echo "${ECHO_T}$STRIP" >&6
6119else
6120  echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6
6122fi
6123
6124fi
6125if test -z "$ac_cv_prog_STRIP"; then
6126  ac_ct_STRIP=$STRIP
6127  # Extract the first word of "strip", so it can be a program name with args.
6128set dummy strip; ac_word=$2
6129echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  if test -n "$ac_ct_STRIP"; then
6135  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  test -z "$as_dir" && as_dir=.
6142  for ac_exec_ext in '' $ac_executable_extensions; do
6143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144    ac_cv_prog_ac_ct_STRIP="strip"
6145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149done
6150
6151  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6152fi
6153fi
6154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6155if test -n "$ac_ct_STRIP"; then
6156  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6157echo "${ECHO_T}$ac_ct_STRIP" >&6
6158else
6159  echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161fi
6162
6163  STRIP=$ac_ct_STRIP
6164else
6165  STRIP="$ac_cv_prog_STRIP"
6166fi
6167
6168
6169old_CC="$CC"
6170old_CFLAGS="$CFLAGS"
6171
6172# Set sane defaults for various variables
6173test -z "$AR" && AR=ar
6174test -z "$AR_FLAGS" && AR_FLAGS=cru
6175test -z "$AS" && AS=as
6176test -z "$CC" && CC=cc
6177test -z "$LTCC" && LTCC=$CC
6178test -z "$DLLTOOL" && DLLTOOL=dlltool
6179test -z "$LD" && LD=ld
6180test -z "$LN_S" && LN_S="ln -s"
6181test -z "$MAGIC_CMD" && MAGIC_CMD=file
6182test -z "$NM" && NM=nm
6183test -z "$SED" && SED=sed
6184test -z "$OBJDUMP" && OBJDUMP=objdump
6185test -z "$RANLIB" && RANLIB=:
6186test -z "$STRIP" && STRIP=:
6187test -z "$ac_objext" && ac_objext=o
6188
6189# Determine commands to create old-style static archives.
6190old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6191old_postinstall_cmds='chmod 644 $oldlib'
6192old_postuninstall_cmds=
6193
6194if test -n "$RANLIB"; then
6195  case $host_os in
6196  openbsd*)
6197    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6198    ;;
6199  *)
6200    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6201    ;;
6202  esac
6203  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6204fi
6205
6206for cc_temp in $compiler""; do
6207  case $cc_temp in
6208    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6209    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6210    \-*) ;;
6211    *) break;;
6212  esac
6213done
6214cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6215
6216
6217# Only perform the check for file, if the check method requires it
6218case $deplibs_check_method in
6219file_magic*)
6220  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6221    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6222echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6223if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  case $MAGIC_CMD in
6227[\\/*] |  ?:[\\/]*)
6228  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6229  ;;
6230*)
6231  lt_save_MAGIC_CMD="$MAGIC_CMD"
6232  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6233  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6234  for ac_dir in $ac_dummy; do
6235    IFS="$lt_save_ifs"
6236    test -z "$ac_dir" && ac_dir=.
6237    if test -f $ac_dir/${ac_tool_prefix}file; then
6238      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6239      if test -n "$file_magic_test_file"; then
6240	case $deplibs_check_method in
6241	"file_magic "*)
6242	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6243	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6244	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6245	    $EGREP "$file_magic_regex" > /dev/null; then
6246	    :
6247	  else
6248	    cat <<EOF 1>&2
6249
6250*** Warning: the command libtool uses to detect shared libraries,
6251*** $file_magic_cmd, produces output that libtool cannot recognize.
6252*** The result is that libtool may fail to recognize shared libraries
6253*** as such.  This will affect the creation of libtool libraries that
6254*** depend on shared libraries, but programs linked with such libtool
6255*** libraries will work regardless of this problem.  Nevertheless, you
6256*** may want to report the problem to your system manager and/or to
6257*** bug-libtool@gnu.org
6258
6259EOF
6260	  fi ;;
6261	esac
6262      fi
6263      break
6264    fi
6265  done
6266  IFS="$lt_save_ifs"
6267  MAGIC_CMD="$lt_save_MAGIC_CMD"
6268  ;;
6269esac
6270fi
6271
6272MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6273if test -n "$MAGIC_CMD"; then
6274  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6275echo "${ECHO_T}$MAGIC_CMD" >&6
6276else
6277  echo "$as_me:$LINENO: result: no" >&5
6278echo "${ECHO_T}no" >&6
6279fi
6280
6281if test -z "$lt_cv_path_MAGIC_CMD"; then
6282  if test -n "$ac_tool_prefix"; then
6283    echo "$as_me:$LINENO: checking for file" >&5
6284echo $ECHO_N "checking for file... $ECHO_C" >&6
6285if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288  case $MAGIC_CMD in
6289[\\/*] |  ?:[\\/]*)
6290  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6291  ;;
6292*)
6293  lt_save_MAGIC_CMD="$MAGIC_CMD"
6294  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6295  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6296  for ac_dir in $ac_dummy; do
6297    IFS="$lt_save_ifs"
6298    test -z "$ac_dir" && ac_dir=.
6299    if test -f $ac_dir/file; then
6300      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6301      if test -n "$file_magic_test_file"; then
6302	case $deplibs_check_method in
6303	"file_magic "*)
6304	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6305	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6306	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6307	    $EGREP "$file_magic_regex" > /dev/null; then
6308	    :
6309	  else
6310	    cat <<EOF 1>&2
6311
6312*** Warning: the command libtool uses to detect shared libraries,
6313*** $file_magic_cmd, produces output that libtool cannot recognize.
6314*** The result is that libtool may fail to recognize shared libraries
6315*** as such.  This will affect the creation of libtool libraries that
6316*** depend on shared libraries, but programs linked with such libtool
6317*** libraries will work regardless of this problem.  Nevertheless, you
6318*** may want to report the problem to your system manager and/or to
6319*** bug-libtool@gnu.org
6320
6321EOF
6322	  fi ;;
6323	esac
6324      fi
6325      break
6326    fi
6327  done
6328  IFS="$lt_save_ifs"
6329  MAGIC_CMD="$lt_save_MAGIC_CMD"
6330  ;;
6331esac
6332fi
6333
6334MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6335if test -n "$MAGIC_CMD"; then
6336  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6337echo "${ECHO_T}$MAGIC_CMD" >&6
6338else
6339  echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6
6341fi
6342
6343  else
6344    MAGIC_CMD=:
6345  fi
6346fi
6347
6348  fi
6349  ;;
6350esac
6351
6352enable_dlopen=no
6353enable_win32_dll=no
6354
6355# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6356if test "${enable_libtool_lock+set}" = set; then
6357  enableval="$enable_libtool_lock"
6358
6359fi;
6360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6361
6362
6363# Check whether --with-pic or --without-pic was given.
6364if test "${with_pic+set}" = set; then
6365  withval="$with_pic"
6366  pic_mode="$withval"
6367else
6368  pic_mode=default
6369fi;
6370test -z "$pic_mode" && pic_mode=default
6371
6372# Use C for the default configuration in the libtool script
6373tagname=
6374lt_save_CC="$CC"
6375ac_ext=c
6376ac_cpp='$CPP $CPPFLAGS'
6377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380
6381
6382# Source file extension for C test sources.
6383ac_ext=c
6384
6385# Object file extension for compiled C test sources.
6386objext=o
6387objext=$objext
6388
6389# Code to be used in simple compile tests
6390lt_simple_compile_test_code="int some_variable = 0;\n"
6391
6392# Code to be used in simple link tests
6393lt_simple_link_test_code='int main(){return(0);}\n'
6394
6395
6396# If no C compiler was specified, use CC.
6397LTCC=${LTCC-"$CC"}
6398
6399# Allow CC to be a program name with arguments.
6400compiler=$CC
6401
6402
6403# save warnings/boilerplate of simple test code
6404ac_outfile=conftest.$ac_objext
6405printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6407_lt_compiler_boilerplate=`cat conftest.err`
6408$rm conftest*
6409
6410ac_outfile=conftest.$ac_objext
6411printf "$lt_simple_link_test_code" >conftest.$ac_ext
6412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6413_lt_linker_boilerplate=`cat conftest.err`
6414$rm conftest*
6415
6416
6417#
6418# Check for any special shared library compilation flags.
6419#
6420lt_prog_cc_shlib=
6421if test "$GCC" = no; then
6422  case $host_os in
6423  sco3.2v5*)
6424    lt_prog_cc_shlib='-belf'
6425    ;;
6426  esac
6427fi
6428if test -n "$lt_prog_cc_shlib"; then
6429  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6430echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6431  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6432  else
6433    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6434echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6435    lt_cv_prog_cc_can_build_shared=no
6436  fi
6437fi
6438
6439
6440#
6441# Check to make sure the static flag actually works.
6442#
6443echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6444echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6445if test "${lt_prog_compiler_static_works+set}" = set; then
6446  echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
6448  lt_prog_compiler_static_works=no
6449   save_LDFLAGS="$LDFLAGS"
6450   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6451   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6452   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6453     # The linker can only warn and ignore the option if not recognized
6454     # So say no if there are warnings
6455     if test -s conftest.err; then
6456       # Append any errors to the config.log.
6457       cat conftest.err 1>&5
6458       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6459       $SED '/^$/d' conftest.err >conftest.er2
6460       if diff conftest.exp conftest.er2 >/dev/null; then
6461         lt_prog_compiler_static_works=yes
6462       fi
6463     else
6464       lt_prog_compiler_static_works=yes
6465     fi
6466   fi
6467   $rm conftest*
6468   LDFLAGS="$save_LDFLAGS"
6469
6470fi
6471echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6472echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6473
6474if test x"$lt_prog_compiler_static_works" = xyes; then
6475    :
6476else
6477    lt_prog_compiler_static=
6478fi
6479
6480
6481
6482
6483lt_prog_compiler_no_builtin_flag=
6484
6485if test "$GCC" = yes; then
6486  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6487
6488
6489echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6490echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6491if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  lt_cv_prog_compiler_rtti_exceptions=no
6495  ac_outfile=conftest.$ac_objext
6496   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6497   lt_compiler_flag="-fno-rtti -fno-exceptions"
6498   # Insert the option either (1) after the last *FLAGS variable, or
6499   # (2) before a word containing "conftest.", or (3) at the end.
6500   # Note that $ac_compile itself does not contain backslashes and begins
6501   # with a dollar sign (not a hyphen), so the echo should work correctly.
6502   # The option is referenced via a variable to avoid confusing sed.
6503   lt_compile=`echo "$ac_compile" | $SED \
6504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6506   -e 's:$: $lt_compiler_flag:'`
6507   (eval echo "\"\$as_me:6507: $lt_compile\"" >&5)
6508   (eval "$lt_compile" 2>conftest.err)
6509   ac_status=$?
6510   cat conftest.err >&5
6511   echo "$as_me:6511: \$? = $ac_status" >&5
6512   if (exit $ac_status) && test -s "$ac_outfile"; then
6513     # The compiler can only warn and ignore the option if not recognized
6514     # So say no if there are warnings other than the usual output.
6515     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6516     $SED '/^$/d' conftest.err >conftest.er2
6517     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6518       lt_cv_prog_compiler_rtti_exceptions=yes
6519     fi
6520   fi
6521   $rm conftest*
6522
6523fi
6524echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6525echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6526
6527if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6528    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6529else
6530    :
6531fi
6532
6533fi
6534
6535lt_prog_compiler_wl=
6536lt_prog_compiler_pic=
6537lt_prog_compiler_static=
6538
6539echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6540echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6541
6542  if test "$GCC" = yes; then
6543    lt_prog_compiler_wl='-Wl,'
6544    lt_prog_compiler_static='-static'
6545
6546    case $host_os in
6547      aix*)
6548      # All AIX code is PIC.
6549      if test "$host_cpu" = ia64; then
6550	# AIX 5 now supports IA64 processor
6551	lt_prog_compiler_static='-Bstatic'
6552      fi
6553      ;;
6554
6555    amigaos*)
6556      # FIXME: we need at least 68020 code to build shared libraries, but
6557      # adding the `-m68020' flag to GCC prevents building anything better,
6558      # like `-m68040'.
6559      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6560      ;;
6561
6562    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6563      # PIC is the default for these OSes.
6564      ;;
6565
6566    mingw* | pw32* | os2*)
6567      # This hack is so that the source file can tell whether it is being
6568      # built for inclusion in a dll (and should export symbols for example).
6569      lt_prog_compiler_pic='-DDLL_EXPORT'
6570      ;;
6571
6572    darwin* | rhapsody*)
6573      # PIC is the default on this platform
6574      # Common symbols not allowed in MH_DYLIB files
6575      lt_prog_compiler_pic='-fno-common'
6576      ;;
6577
6578    msdosdjgpp*)
6579      # Just because we use GCC doesn't mean we suddenly get shared libraries
6580      # on systems that don't support them.
6581      lt_prog_compiler_can_build_shared=no
6582      enable_shared=no
6583      ;;
6584
6585    sysv4*MP*)
6586      if test -d /usr/nec; then
6587	lt_prog_compiler_pic=-Kconform_pic
6588      fi
6589      ;;
6590
6591    hpux*)
6592      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6593      # not for PA HP-UX.
6594      case $host_cpu in
6595      hppa*64*|ia64*)
6596	# +Z the default
6597	;;
6598      *)
6599	lt_prog_compiler_pic='-fPIC'
6600	;;
6601      esac
6602      ;;
6603
6604    *)
6605      lt_prog_compiler_pic='-fPIC'
6606      ;;
6607    esac
6608  else
6609    # PORTME Check for flag to pass linker flags through the system compiler.
6610    case $host_os in
6611    aix*)
6612      lt_prog_compiler_wl='-Wl,'
6613      if test "$host_cpu" = ia64; then
6614	# AIX 5 now supports IA64 processor
6615	lt_prog_compiler_static='-Bstatic'
6616      else
6617	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6618      fi
6619      ;;
6620      darwin*)
6621        # PIC is the default on this platform
6622        # Common symbols not allowed in MH_DYLIB files
6623       case $cc_basename in
6624         xlc*)
6625         lt_prog_compiler_pic='-qnocommon'
6626         lt_prog_compiler_wl='-Wl,'
6627         ;;
6628       esac
6629       ;;
6630
6631    mingw* | pw32* | os2*)
6632      # This hack is so that the source file can tell whether it is being
6633      # built for inclusion in a dll (and should export symbols for example).
6634      lt_prog_compiler_pic='-DDLL_EXPORT'
6635      ;;
6636
6637    hpux9* | hpux10* | hpux11*)
6638      lt_prog_compiler_wl='-Wl,'
6639      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6640      # not for PA HP-UX.
6641      case $host_cpu in
6642      hppa*64*|ia64*)
6643	# +Z the default
6644	;;
6645      *)
6646	lt_prog_compiler_pic='+Z'
6647	;;
6648      esac
6649      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6650      lt_prog_compiler_static='${wl}-a ${wl}archive'
6651      ;;
6652
6653    irix5* | irix6* | nonstopux*)
6654      lt_prog_compiler_wl='-Wl,'
6655      # PIC (with -KPIC) is the default.
6656      lt_prog_compiler_static='-non_shared'
6657      ;;
6658
6659    newsos6)
6660      lt_prog_compiler_pic='-KPIC'
6661      lt_prog_compiler_static='-Bstatic'
6662      ;;
6663
6664    linux*)
6665      case $cc_basename in
6666      icc* | ecc*)
6667	lt_prog_compiler_wl='-Wl,'
6668	lt_prog_compiler_pic='-KPIC'
6669	lt_prog_compiler_static='-static'
6670        ;;
6671      pgcc* | pgf77* | pgf90* | pgf95*)
6672        # Portland Group compilers (*not* the Pentium gcc compiler,
6673	# which looks to be a dead project)
6674	lt_prog_compiler_wl='-Wl,'
6675	lt_prog_compiler_pic='-fpic'
6676	lt_prog_compiler_static='-Bstatic'
6677        ;;
6678      ccc*)
6679        lt_prog_compiler_wl='-Wl,'
6680        # All Alpha code is PIC.
6681        lt_prog_compiler_static='-non_shared'
6682        ;;
6683      esac
6684      ;;
6685
6686    osf3* | osf4* | osf5*)
6687      lt_prog_compiler_wl='-Wl,'
6688      # All OSF/1 code is PIC.
6689      lt_prog_compiler_static='-non_shared'
6690      ;;
6691
6692    sco3.2v5*)
6693      lt_prog_compiler_pic='-Kpic'
6694      lt_prog_compiler_static='-dn'
6695      ;;
6696
6697    solaris*)
6698      lt_prog_compiler_pic='-KPIC'
6699      lt_prog_compiler_static='-Bstatic'
6700      case $cc_basename in
6701      f77* | f90* | f95*)
6702	lt_prog_compiler_wl='-Qoption ld ';;
6703      *)
6704	lt_prog_compiler_wl='-Wl,';;
6705      esac
6706      ;;
6707
6708    sunos4*)
6709      lt_prog_compiler_wl='-Qoption ld '
6710      lt_prog_compiler_pic='-PIC'
6711      lt_prog_compiler_static='-Bstatic'
6712      ;;
6713
6714    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6715      lt_prog_compiler_wl='-Wl,'
6716      lt_prog_compiler_pic='-KPIC'
6717      lt_prog_compiler_static='-Bstatic'
6718      ;;
6719
6720    sysv4*MP*)
6721      if test -d /usr/nec ;then
6722	lt_prog_compiler_pic='-Kconform_pic'
6723	lt_prog_compiler_static='-Bstatic'
6724      fi
6725      ;;
6726
6727    unicos*)
6728      lt_prog_compiler_wl='-Wl,'
6729      lt_prog_compiler_can_build_shared=no
6730      ;;
6731
6732    uts4*)
6733      lt_prog_compiler_pic='-pic'
6734      lt_prog_compiler_static='-Bstatic'
6735      ;;
6736
6737    *)
6738      lt_prog_compiler_can_build_shared=no
6739      ;;
6740    esac
6741  fi
6742
6743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6744echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6745
6746#
6747# Check to make sure the PIC flag actually works.
6748#
6749if test -n "$lt_prog_compiler_pic"; then
6750
6751echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6752echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6753if test "${lt_prog_compiler_pic_works+set}" = set; then
6754  echo $ECHO_N "(cached) $ECHO_C" >&6
6755else
6756  lt_prog_compiler_pic_works=no
6757  ac_outfile=conftest.$ac_objext
6758   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6759   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6760   # Insert the option either (1) after the last *FLAGS variable, or
6761   # (2) before a word containing "conftest.", or (3) at the end.
6762   # Note that $ac_compile itself does not contain backslashes and begins
6763   # with a dollar sign (not a hyphen), so the echo should work correctly.
6764   # The option is referenced via a variable to avoid confusing sed.
6765   lt_compile=`echo "$ac_compile" | $SED \
6766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6768   -e 's:$: $lt_compiler_flag:'`
6769   (eval echo "\"\$as_me:6769: $lt_compile\"" >&5)
6770   (eval "$lt_compile" 2>conftest.err)
6771   ac_status=$?
6772   cat conftest.err >&5
6773   echo "$as_me:6773: \$? = $ac_status" >&5
6774   if (exit $ac_status) && test -s "$ac_outfile"; then
6775     # The compiler can only warn and ignore the option if not recognized
6776     # So say no if there are warnings other than the usual output.
6777     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6778     $SED '/^$/d' conftest.err >conftest.er2
6779     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6780       lt_prog_compiler_pic_works=yes
6781     fi
6782   fi
6783   $rm conftest*
6784
6785fi
6786echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6787echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6788
6789if test x"$lt_prog_compiler_pic_works" = xyes; then
6790    case $lt_prog_compiler_pic in
6791     "" | " "*) ;;
6792     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6793     esac
6794else
6795    lt_prog_compiler_pic=
6796     lt_prog_compiler_can_build_shared=no
6797fi
6798
6799fi
6800case $host_os in
6801  # For platforms which do not support PIC, -DPIC is meaningless:
6802  *djgpp*)
6803    lt_prog_compiler_pic=
6804    ;;
6805  *)
6806    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6807    ;;
6808esac
6809
6810echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6812if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6813  echo $ECHO_N "(cached) $ECHO_C" >&6
6814else
6815  lt_cv_prog_compiler_c_o=no
6816   $rm -r conftest 2>/dev/null
6817   mkdir conftest
6818   cd conftest
6819   mkdir out
6820   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6821
6822   lt_compiler_flag="-o out/conftest2.$ac_objext"
6823   # Insert the option either (1) after the last *FLAGS variable, or
6824   # (2) before a word containing "conftest.", or (3) at the end.
6825   # Note that $ac_compile itself does not contain backslashes and begins
6826   # with a dollar sign (not a hyphen), so the echo should work correctly.
6827   lt_compile=`echo "$ac_compile" | $SED \
6828   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6830   -e 's:$: $lt_compiler_flag:'`
6831   (eval echo "\"\$as_me:6831: $lt_compile\"" >&5)
6832   (eval "$lt_compile" 2>out/conftest.err)
6833   ac_status=$?
6834   cat out/conftest.err >&5
6835   echo "$as_me:6835: \$? = $ac_status" >&5
6836   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6837   then
6838     # The compiler can only warn and ignore the option if not recognized
6839     # So say no if there are warnings
6840     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6841     $SED '/^$/d' out/conftest.err >out/conftest.er2
6842     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6843       lt_cv_prog_compiler_c_o=yes
6844     fi
6845   fi
6846   chmod u+w . 2>&5
6847   $rm conftest*
6848   # SGI C++ compiler will create directory out/ii_files/ for
6849   # template instantiation
6850   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6851   $rm out/* && rmdir out
6852   cd ..
6853   rmdir conftest
6854   $rm conftest*
6855
6856fi
6857echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6858echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6859
6860
6861hard_links="nottested"
6862if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6863  # do not overwrite the value of need_locks provided by the user
6864  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6865echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6866  hard_links=yes
6867  $rm conftest*
6868  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6869  touch conftest.a
6870  ln conftest.a conftest.b 2>&5 || hard_links=no
6871  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6872  echo "$as_me:$LINENO: result: $hard_links" >&5
6873echo "${ECHO_T}$hard_links" >&6
6874  if test "$hard_links" = no; then
6875    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6876echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6877    need_locks=warn
6878  fi
6879else
6880  need_locks=no
6881fi
6882
6883echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6884echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6885
6886  runpath_var=
6887  allow_undefined_flag=
6888  enable_shared_with_static_runtimes=no
6889  archive_cmds=
6890  archive_expsym_cmds=
6891  old_archive_From_new_cmds=
6892  old_archive_from_expsyms_cmds=
6893  export_dynamic_flag_spec=
6894  whole_archive_flag_spec=
6895  thread_safe_flag_spec=
6896  hardcode_libdir_flag_spec=
6897  hardcode_libdir_flag_spec_ld=
6898  hardcode_libdir_separator=
6899  hardcode_direct=no
6900  hardcode_minus_L=no
6901  hardcode_shlibpath_var=unsupported
6902  link_all_deplibs=unknown
6903  hardcode_automatic=no
6904  module_cmds=
6905  module_expsym_cmds=
6906  always_export_symbols=no
6907  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6908  # include_expsyms should be a list of space-separated symbols to be *always*
6909  # included in the symbol list
6910  include_expsyms=
6911  # exclude_expsyms can be an extended regexp of symbols to exclude
6912  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6913  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6914  # as well as any symbol that contains `d'.
6915  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6916  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6917  # platforms (ab)use it in PIC code, but their linkers get confused if
6918  # the symbol is explicitly referenced.  Since portable code cannot
6919  # rely on this symbol name, it's probably fine to never include it in
6920  # preloaded symbol tables.
6921  extract_expsyms_cmds=
6922  # Just being paranoid about ensuring that cc_basename is set.
6923  for cc_temp in $compiler""; do
6924  case $cc_temp in
6925    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6926    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6927    \-*) ;;
6928    *) break;;
6929  esac
6930done
6931cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6932
6933  case $host_os in
6934  cygwin* | mingw* | pw32*)
6935    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6936    # When not using gcc, we currently assume that we are using
6937    # Microsoft Visual C++.
6938    if test "$GCC" != yes; then
6939      with_gnu_ld=no
6940    fi
6941    ;;
6942  openbsd*)
6943    with_gnu_ld=no
6944    ;;
6945  esac
6946
6947  ld_shlibs=yes
6948  if test "$with_gnu_ld" = yes; then
6949    # If archive_cmds runs LD, not CC, wlarc should be empty
6950    wlarc='${wl}'
6951
6952    # Set some defaults for GNU ld with shared library support. These
6953    # are reset later if shared libraries are not supported. Putting them
6954    # here allows them to be overridden if necessary.
6955    runpath_var=LD_RUN_PATH
6956    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6957    export_dynamic_flag_spec='${wl}--export-dynamic'
6958    # ancient GNU ld didn't support --whole-archive et. al.
6959    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6960	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6961      else
6962  	whole_archive_flag_spec=
6963    fi
6964    supports_anon_versioning=no
6965    case `$LD -v 2>/dev/null` in
6966      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6967      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6968      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6969      *\ 2.11.*) ;; # other 2.11 versions
6970      *) supports_anon_versioning=yes ;;
6971    esac
6972
6973    # See if GNU ld supports shared libraries.
6974    case $host_os in
6975    aix3* | aix4* | aix5*)
6976      # On AIX/PPC, the GNU linker is very broken
6977      if test "$host_cpu" != ia64; then
6978	ld_shlibs=no
6979	cat <<EOF 1>&2
6980
6981*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6982*** to be unable to reliably create shared libraries on AIX.
6983*** Therefore, libtool is disabling shared libraries support.  If you
6984*** really care for shared libraries, you may want to modify your PATH
6985*** so that a non-GNU linker is found, and then restart.
6986
6987EOF
6988      fi
6989      ;;
6990
6991    amigaos*)
6992      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)'
6993      hardcode_libdir_flag_spec='-L$libdir'
6994      hardcode_minus_L=yes
6995
6996      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6997      # that the semantics of dynamic libraries on AmigaOS, at least up
6998      # to version 4, is to share data among multiple programs linked
6999      # with the same dynamic library.  Since this doesn't match the
7000      # behavior of shared libraries on other platforms, we can't use
7001      # them.
7002      ld_shlibs=no
7003      ;;
7004
7005    beos*)
7006      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7007	allow_undefined_flag=unsupported
7008	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7009	# support --undefined.  This deserves some investigation.  FIXME
7010	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7011      else
7012	ld_shlibs=no
7013      fi
7014      ;;
7015
7016    cygwin* | mingw* | pw32*)
7017      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7018      # as there is no search path for DLLs.
7019      hardcode_libdir_flag_spec='-L$libdir'
7020      allow_undefined_flag=unsupported
7021      always_export_symbols=no
7022      enable_shared_with_static_runtimes=yes
7023      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7024
7025      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7026        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7027	# If the export-symbols file already is a .def file (1st line
7028	# is EXPORTS), use it as is; otherwise, prepend...
7029	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7030	  cp $export_symbols $output_objdir/$soname.def;
7031	else
7032	  echo EXPORTS > $output_objdir/$soname.def;
7033	  cat $export_symbols >> $output_objdir/$soname.def;
7034	fi~
7035	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7036      else
7037	ld_shlibs=no
7038      fi
7039      ;;
7040
7041    linux*)
7042      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043	tmp_addflag=
7044	case $cc_basename,$host_cpu in
7045	pgcc*)				# Portland Group C compiler
7046	  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'
7047	  tmp_addflag=' $pic_flag'
7048	  ;;
7049	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7050	  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'
7051	  tmp_addflag=' $pic_flag -Mnomain' ;;
7052	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7053	  tmp_addflag=' -i_dynamic' ;;
7054	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7055	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7056	ifc* | ifort*)			# Intel Fortran compiler
7057	  tmp_addflag=' -nofor_main' ;;
7058	esac
7059	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7060
7061	if test $supports_anon_versioning = yes; then
7062	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7063  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7064  $echo "local: *; };" >> $output_objdir/$libname.ver~
7065	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7066	fi
7067	link_all_deplibs=no
7068      else
7069	ld_shlibs=no
7070      fi
7071      ;;
7072
7073    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7074      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7075	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7076	wlarc=
7077      else
7078	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7079	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7080      fi
7081      ;;
7082
7083    solaris* | sysv5*)
7084      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7085	ld_shlibs=no
7086	cat <<EOF 1>&2
7087
7088*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7089*** create shared libraries on Solaris systems.  Therefore, libtool
7090*** is disabling shared libraries support.  We urge you to upgrade GNU
7091*** binutils to release 2.9.1 or newer.  Another option is to modify
7092*** your PATH or compiler configuration so that the native linker is
7093*** used, and then restart.
7094
7095EOF
7096      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7097	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7098	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7099      else
7100	ld_shlibs=no
7101      fi
7102      ;;
7103
7104    sunos4*)
7105      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7106      wlarc=
7107      hardcode_direct=yes
7108      hardcode_shlibpath_var=no
7109      ;;
7110
7111    *)
7112      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7113	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7114	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7115      else
7116	ld_shlibs=no
7117      fi
7118      ;;
7119    esac
7120
7121    if test "$ld_shlibs" = no; then
7122      runpath_var=
7123      hardcode_libdir_flag_spec=
7124      export_dynamic_flag_spec=
7125      whole_archive_flag_spec=
7126    fi
7127  else
7128    # PORTME fill in a description of your system's linker (not GNU ld)
7129    case $host_os in
7130    aix3*)
7131      allow_undefined_flag=unsupported
7132      always_export_symbols=yes
7133      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'
7134      # Note: this linker hardcodes the directories in LIBPATH if there
7135      # are no directories specified by -L.
7136      hardcode_minus_L=yes
7137      if test "$GCC" = yes && test -z "$link_static_flag"; then
7138	# Neither direct hardcoding nor static linking is supported with a
7139	# broken collect2.
7140	hardcode_direct=unsupported
7141      fi
7142      ;;
7143
7144    aix4* | aix5*)
7145      if test "$host_cpu" = ia64; then
7146	# On IA64, the linker does run time linking by default, so we don't
7147	# have to do anything special.
7148	aix_use_runtimelinking=no
7149	exp_sym_flag='-Bexport'
7150	no_entry_flag=""
7151      else
7152	# If we're using GNU nm, then we don't want the "-C" option.
7153	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7154	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7155	  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'
7156	else
7157	  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'
7158	fi
7159	aix_use_runtimelinking=no
7160
7161	# Test if we are trying to use run time linking or normal
7162	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7163	# need to do runtime linking.
7164	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7165	  for ld_flag in $LDFLAGS; do
7166  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7167  	    aix_use_runtimelinking=yes
7168  	    break
7169  	  fi
7170	  done
7171	esac
7172
7173	exp_sym_flag='-bexport'
7174	no_entry_flag='-bnoentry'
7175      fi
7176
7177      # When large executables or shared objects are built, AIX ld can
7178      # have problems creating the table of contents.  If linking a library
7179      # or program results in "error TOC overflow" add -mminimal-toc to
7180      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7181      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7182
7183      archive_cmds=''
7184      hardcode_direct=yes
7185      hardcode_libdir_separator=':'
7186      link_all_deplibs=yes
7187
7188      if test "$GCC" = yes; then
7189	case $host_os in aix4.[012]|aix4.[012].*)
7190	# We only want to do this on AIX 4.2 and lower, the check
7191	# below for broken collect2 doesn't work under 4.3+
7192	  collect2name=`${CC} -print-prog-name=collect2`
7193	  if test -f "$collect2name" && \
7194  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7195	  then
7196  	  # We have reworked collect2
7197  	  hardcode_direct=yes
7198	  else
7199  	  # We have old collect2
7200  	  hardcode_direct=unsupported
7201  	  # It fails to find uninstalled libraries when the uninstalled
7202  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7203  	  # to unsupported forces relinking
7204  	  hardcode_minus_L=yes
7205  	  hardcode_libdir_flag_spec='-L$libdir'
7206  	  hardcode_libdir_separator=
7207	  fi
7208	esac
7209	shared_flag='-shared'
7210	if test "$aix_use_runtimelinking" = yes; then
7211	  shared_flag="$shared_flag "'${wl}-G'
7212	fi
7213      else
7214	# not using gcc
7215	if test "$host_cpu" = ia64; then
7216  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7217  	# chokes on -Wl,-G. The following line is correct:
7218	  shared_flag='-G'
7219	else
7220  	if test "$aix_use_runtimelinking" = yes; then
7221	    shared_flag='${wl}-G'
7222	  else
7223	    shared_flag='${wl}-bM:SRE'
7224  	fi
7225	fi
7226      fi
7227
7228      # It seems that -bexpall does not export symbols beginning with
7229      # underscore (_), so it is better to generate a list of symbols to export.
7230      always_export_symbols=yes
7231      if test "$aix_use_runtimelinking" = yes; then
7232	# Warning - without using the other runtime loading flags (-brtl),
7233	# -berok will link without error, but may produce a broken library.
7234	allow_undefined_flag='-berok'
7235       # Determine the default libpath from the value encoded in an empty executable.
7236       cat >conftest.$ac_ext <<_ACEOF
7237/* confdefs.h.  */
7238_ACEOF
7239cat confdefs.h >>conftest.$ac_ext
7240cat >>conftest.$ac_ext <<_ACEOF
7241/* end confdefs.h.  */
7242
7243int
7244main ()
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251rm -f conftest.$ac_objext conftest$ac_exeext
7252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253  (eval $ac_link) 2>conftest.er1
7254  ac_status=$?
7255  grep -v '^ *+' conftest.er1 >conftest.err
7256  rm -f conftest.er1
7257  cat conftest.err >&5
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); } &&
7260	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262  (eval $ac_try) 2>&5
7263  ac_status=$?
7264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265  (exit $ac_status); }; } &&
7266	 { ac_try='test -s conftest$ac_exeext'
7267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268  (eval $ac_try) 2>&5
7269  ac_status=$?
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); }; }; then
7272
7273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7274}'`
7275# Check for a 64-bit object if we didn't find anything.
7276if 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; }
7277}'`; fi
7278else
7279  echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
7282fi
7283rm -f conftest.err conftest.$ac_objext \
7284      conftest$ac_exeext conftest.$ac_ext
7285if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7286
7287       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7288	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7289       else
7290	if test "$host_cpu" = ia64; then
7291	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7292	  allow_undefined_flag="-z nodefs"
7293	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7294	else
7295	 # Determine the default libpath from the value encoded in an empty executable.
7296	 cat >conftest.$ac_ext <<_ACEOF
7297/* confdefs.h.  */
7298_ACEOF
7299cat confdefs.h >>conftest.$ac_ext
7300cat >>conftest.$ac_ext <<_ACEOF
7301/* end confdefs.h.  */
7302
7303int
7304main ()
7305{
7306
7307  ;
7308  return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext conftest$ac_exeext
7312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313  (eval $ac_link) 2>conftest.er1
7314  ac_status=$?
7315  grep -v '^ *+' conftest.er1 >conftest.err
7316  rm -f conftest.er1
7317  cat conftest.err >&5
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); } &&
7320	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322  (eval $ac_try) 2>&5
7323  ac_status=$?
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); }; } &&
7326	 { ac_try='test -s conftest$ac_exeext'
7327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328  (eval $ac_try) 2>&5
7329  ac_status=$?
7330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); }; }; then
7332
7333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7334}'`
7335# Check for a 64-bit object if we didn't find anything.
7336if 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; }
7337}'`; fi
7338else
7339  echo "$as_me: failed program was:" >&5
7340sed 's/^/| /' conftest.$ac_ext >&5
7341
7342fi
7343rm -f conftest.err conftest.$ac_objext \
7344      conftest$ac_exeext conftest.$ac_ext
7345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7346
7347	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7348	  # Warning - without using the other run time loading flags,
7349	  # -berok will link without error, but may produce a broken library.
7350	  no_undefined_flag=' ${wl}-bernotok'
7351	  allow_undefined_flag=' ${wl}-berok'
7352	  # -bexpall does not export symbols beginning with underscore (_)
7353	  always_export_symbols=yes
7354	  # Exported symbols can be pulled into shared objects from archives
7355	  whole_archive_flag_spec=' '
7356	  archive_cmds_need_lc=yes
7357	  # This is similar to how AIX traditionally builds its shared libraries.
7358	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7359	fi
7360      fi
7361      ;;
7362
7363    amigaos*)
7364      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)'
7365      hardcode_libdir_flag_spec='-L$libdir'
7366      hardcode_minus_L=yes
7367      # see comment about different semantics on the GNU ld section
7368      ld_shlibs=no
7369      ;;
7370
7371    bsdi[45]*)
7372      export_dynamic_flag_spec=-rdynamic
7373      ;;
7374
7375    cygwin* | mingw* | pw32*)
7376      # When not using gcc, we currently assume that we are using
7377      # Microsoft Visual C++.
7378      # hardcode_libdir_flag_spec is actually meaningless, as there is
7379      # no search path for DLLs.
7380      hardcode_libdir_flag_spec=' '
7381      allow_undefined_flag=unsupported
7382      # Tell ltmain to make .lib files, not .a files.
7383      libext=lib
7384      # Tell ltmain to make .dll files, not .so files.
7385      shrext_cmds=".dll"
7386      # FIXME: Setting linknames here is a bad hack.
7387      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7388      # The linker will automatically build a .lib file if we build a DLL.
7389      old_archive_From_new_cmds='true'
7390      # FIXME: Should let the user specify the lib program.
7391      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7392      fix_srcfile_path='`cygpath -w "$srcfile"`'
7393      enable_shared_with_static_runtimes=yes
7394      ;;
7395
7396    darwin* | rhapsody*)
7397      case $host_os in
7398        rhapsody* | darwin1.[012])
7399         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7400         ;;
7401       *) # Darwin 1.3 on
7402         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7403           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7404         else
7405           case ${MACOSX_DEPLOYMENT_TARGET} in
7406             10.[012])
7407               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7408               ;;
7409             10.*)
7410               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7411               ;;
7412           esac
7413         fi
7414         ;;
7415      esac
7416      archive_cmds_need_lc=no
7417      hardcode_direct=no
7418      hardcode_automatic=yes
7419      hardcode_shlibpath_var=unsupported
7420      whole_archive_flag_spec=''
7421      link_all_deplibs=yes
7422    if test "$GCC" = yes ; then
7423    	output_verbose_link_cmd='echo'
7424        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7425      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7426      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7427      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}'
7428      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}'
7429    else
7430      case $cc_basename in
7431        xlc*)
7432         output_verbose_link_cmd='echo'
7433         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7434         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7435          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7436         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}'
7437          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}'
7438          ;;
7439       *)
7440         ld_shlibs=no
7441          ;;
7442      esac
7443    fi
7444      ;;
7445
7446    dgux*)
7447      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448      hardcode_libdir_flag_spec='-L$libdir'
7449      hardcode_shlibpath_var=no
7450      ;;
7451
7452    freebsd1*)
7453      ld_shlibs=no
7454      ;;
7455
7456    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7457    # support.  Future versions do this automatically, but an explicit c++rt0.o
7458    # does not break anything, and helps significantly (at the cost of a little
7459    # extra space).
7460    freebsd2.2*)
7461      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7462      hardcode_libdir_flag_spec='-R$libdir'
7463      hardcode_direct=yes
7464      hardcode_shlibpath_var=no
7465      ;;
7466
7467    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7468    freebsd2*)
7469      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7470      hardcode_direct=yes
7471      hardcode_minus_L=yes
7472      hardcode_shlibpath_var=no
7473      ;;
7474
7475    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7476    freebsd* | kfreebsd*-gnu | dragonfly*)
7477      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7478      hardcode_libdir_flag_spec='-R$libdir'
7479      hardcode_direct=yes
7480      hardcode_shlibpath_var=no
7481      ;;
7482
7483    hpux9*)
7484      if test "$GCC" = yes; then
7485	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'
7486      else
7487	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'
7488      fi
7489      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7490      hardcode_libdir_separator=:
7491      hardcode_direct=yes
7492
7493      # hardcode_minus_L: Not really in the search PATH,
7494      # but as the default location of the library.
7495      hardcode_minus_L=yes
7496      export_dynamic_flag_spec='${wl}-E'
7497      ;;
7498
7499    hpux10* | hpux11*)
7500      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7501	case $host_cpu in
7502	hppa*64*|ia64*)
7503	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7504	  ;;
7505	*)
7506	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7507	  ;;
7508	esac
7509      else
7510	case $host_cpu in
7511	hppa*64*|ia64*)
7512	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7513	  ;;
7514	*)
7515	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7516	  ;;
7517	esac
7518      fi
7519      if test "$with_gnu_ld" = no; then
7520	case $host_cpu in
7521	hppa*64*)
7522	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7523	  hardcode_libdir_flag_spec_ld='+b $libdir'
7524	  hardcode_libdir_separator=:
7525	  hardcode_direct=no
7526	  hardcode_shlibpath_var=no
7527	  ;;
7528	ia64*)
7529	  hardcode_libdir_flag_spec='-L$libdir'
7530	  hardcode_direct=no
7531	  hardcode_shlibpath_var=no
7532
7533	  # hardcode_minus_L: Not really in the search PATH,
7534	  # but as the default location of the library.
7535	  hardcode_minus_L=yes
7536	  ;;
7537	*)
7538	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7539	  hardcode_libdir_separator=:
7540	  hardcode_direct=yes
7541	  export_dynamic_flag_spec='${wl}-E'
7542
7543	  # hardcode_minus_L: Not really in the search PATH,
7544	  # but as the default location of the library.
7545	  hardcode_minus_L=yes
7546	  ;;
7547	esac
7548      fi
7549      ;;
7550
7551    irix5* | irix6* | nonstopux*)
7552      if test "$GCC" = yes; then
7553	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'
7554      else
7555	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'
7556	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7557      fi
7558      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7559      hardcode_libdir_separator=:
7560      link_all_deplibs=yes
7561      ;;
7562
7563    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7564      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7565	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7566      else
7567	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7568      fi
7569      hardcode_libdir_flag_spec='-R$libdir'
7570      hardcode_direct=yes
7571      hardcode_shlibpath_var=no
7572      ;;
7573
7574    newsos6)
7575      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7576      hardcode_direct=yes
7577      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7578      hardcode_libdir_separator=:
7579      hardcode_shlibpath_var=no
7580      ;;
7581
7582    openbsd*)
7583      hardcode_direct=yes
7584      hardcode_shlibpath_var=no
7585      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7586	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7587	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7588	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7589	export_dynamic_flag_spec='${wl}-E'
7590      else
7591       case $host_os in
7592	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7593	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7594	   hardcode_libdir_flag_spec='-R$libdir'
7595	   ;;
7596	 *)
7597	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7598	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7599	   ;;
7600       esac
7601      fi
7602      ;;
7603
7604    os2*)
7605      hardcode_libdir_flag_spec='-L$libdir'
7606      hardcode_minus_L=yes
7607      allow_undefined_flag=unsupported
7608      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'
7609      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7610      ;;
7611
7612    osf3*)
7613      if test "$GCC" = yes; then
7614	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7615	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'
7616      else
7617	allow_undefined_flag=' -expect_unresolved \*'
7618	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'
7619      fi
7620      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7621      hardcode_libdir_separator=:
7622      ;;
7623
7624    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7625      if test "$GCC" = yes; then
7626	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7627	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'
7628	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7629      else
7630	allow_undefined_flag=' -expect_unresolved \*'
7631	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'
7632	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7633	$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'
7634
7635	# Both c and cxx compiler support -rpath directly
7636	hardcode_libdir_flag_spec='-rpath $libdir'
7637      fi
7638      hardcode_libdir_separator=:
7639      ;;
7640
7641    sco3.2v5*)
7642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7643      hardcode_shlibpath_var=no
7644      export_dynamic_flag_spec='${wl}-Bexport'
7645      runpath_var=LD_RUN_PATH
7646      hardcode_runpath_var=yes
7647      ;;
7648
7649    solaris*)
7650      no_undefined_flag=' -z text'
7651      if test "$GCC" = yes; then
7652	wlarc='${wl}'
7653	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7654	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7655	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7656      else
7657	wlarc=''
7658	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7660  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7661      fi
7662      hardcode_libdir_flag_spec='-R$libdir'
7663      hardcode_shlibpath_var=no
7664      case $host_os in
7665      solaris2.[0-5] | solaris2.[0-5].*) ;;
7666      *)
7667 	# The compiler driver will combine linker options so we
7668 	# cannot just pass the convience library names through
7669 	# without $wl, iff we do not link with $LD.
7670 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7671 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7672 	case $wlarc in
7673 	'')
7674 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7675 	*)
7676 	  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' ;;
7677 	esac ;;
7678      esac
7679      link_all_deplibs=yes
7680      ;;
7681
7682    sunos4*)
7683      if test "x$host_vendor" = xsequent; then
7684	# Use $CC to link under sequent, because it throws in some extra .o
7685	# files that make .init and .fini sections work.
7686	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7687      else
7688	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7689      fi
7690      hardcode_libdir_flag_spec='-L$libdir'
7691      hardcode_direct=yes
7692      hardcode_minus_L=yes
7693      hardcode_shlibpath_var=no
7694      ;;
7695
7696    sysv4)
7697      case $host_vendor in
7698	sni)
7699	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7700	  hardcode_direct=yes # is this really true???
7701	;;
7702	siemens)
7703	  ## LD is ld it makes a PLAMLIB
7704	  ## CC just makes a GrossModule.
7705	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7706	  reload_cmds='$CC -r -o $output$reload_objs'
7707	  hardcode_direct=no
7708        ;;
7709	motorola)
7710	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7711	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7712	;;
7713      esac
7714      runpath_var='LD_RUN_PATH'
7715      hardcode_shlibpath_var=no
7716      ;;
7717
7718    sysv4.3*)
7719      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7720      hardcode_shlibpath_var=no
7721      export_dynamic_flag_spec='-Bexport'
7722      ;;
7723
7724    sysv4*MP*)
7725      if test -d /usr/nec; then
7726	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727	hardcode_shlibpath_var=no
7728	runpath_var=LD_RUN_PATH
7729	hardcode_runpath_var=yes
7730	ld_shlibs=yes
7731      fi
7732      ;;
7733
7734    sysv4.2uw2*)
7735      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7736      hardcode_direct=yes
7737      hardcode_minus_L=no
7738      hardcode_shlibpath_var=no
7739      hardcode_runpath_var=yes
7740      runpath_var=LD_RUN_PATH
7741      ;;
7742
7743   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7744      no_undefined_flag='${wl}-z ${wl}text'
7745      if test "$GCC" = yes; then
7746	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7747      else
7748	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7749      fi
7750      runpath_var='LD_RUN_PATH'
7751      hardcode_shlibpath_var=no
7752      ;;
7753
7754    sysv5*)
7755      no_undefined_flag=' -z text'
7756      # $CC -shared without GNU ld will not create a library from C++
7757      # object files and a static libstdc++, better avoid it by now
7758      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7759      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7760  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7761      hardcode_libdir_flag_spec=
7762      hardcode_shlibpath_var=no
7763      runpath_var='LD_RUN_PATH'
7764      ;;
7765
7766    uts4*)
7767      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7768      hardcode_libdir_flag_spec='-L$libdir'
7769      hardcode_shlibpath_var=no
7770      ;;
7771
7772    *)
7773      ld_shlibs=no
7774      ;;
7775    esac
7776  fi
7777
7778echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7779echo "${ECHO_T}$ld_shlibs" >&6
7780test "$ld_shlibs" = no && can_build_shared=no
7781
7782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7783if test "$GCC" = yes; then
7784  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7785fi
7786
7787#
7788# Do we need to explicitly link libc?
7789#
7790case "x$archive_cmds_need_lc" in
7791x|xyes)
7792  # Assume -lc should be added
7793  archive_cmds_need_lc=yes
7794
7795  if test "$enable_shared" = yes && test "$GCC" = yes; then
7796    case $archive_cmds in
7797    *'~'*)
7798      # FIXME: we may have to deal with multi-command sequences.
7799      ;;
7800    '$CC '*)
7801      # Test whether the compiler implicitly links with -lc since on some
7802      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7803      # to ld, don't add -lc before -lgcc.
7804      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7805echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7806      $rm conftest*
7807      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7810  (eval $ac_compile) 2>&5
7811  ac_status=$?
7812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813  (exit $ac_status); } 2>conftest.err; then
7814        soname=conftest
7815        lib=conftest
7816        libobjs=conftest.$ac_objext
7817        deplibs=
7818        wl=$lt_prog_compiler_wl
7819        compiler_flags=-v
7820        linker_flags=-v
7821        verstring=
7822        output_objdir=.
7823        libname=conftest
7824        lt_save_allow_undefined_flag=$allow_undefined_flag
7825        allow_undefined_flag=
7826        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7827  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7828  ac_status=$?
7829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830  (exit $ac_status); }
7831        then
7832	  archive_cmds_need_lc=no
7833        else
7834	  archive_cmds_need_lc=yes
7835        fi
7836        allow_undefined_flag=$lt_save_allow_undefined_flag
7837      else
7838        cat conftest.err 1>&5
7839      fi
7840      $rm conftest*
7841      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7842echo "${ECHO_T}$archive_cmds_need_lc" >&6
7843      ;;
7844    esac
7845  fi
7846  ;;
7847esac
7848
7849echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7850echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7851library_names_spec=
7852libname_spec='lib$name'
7853soname_spec=
7854shrext_cmds=".so"
7855postinstall_cmds=
7856postuninstall_cmds=
7857finish_cmds=
7858finish_eval=
7859shlibpath_var=
7860shlibpath_overrides_runpath=unknown
7861version_type=none
7862dynamic_linker="$host_os ld.so"
7863sys_lib_dlsearch_path_spec="/lib /usr/lib"
7864if test "$GCC" = yes; then
7865  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7866  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7867    # if the path contains ";" then we assume it to be the separator
7868    # otherwise default to the standard path separator (i.e. ":") - it is
7869    # assumed that no part of a normal pathname contains ";" but that should
7870    # okay in the real world where ";" in dirpaths is itself problematic.
7871    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7872  else
7873    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7874  fi
7875else
7876  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7877fi
7878need_lib_prefix=unknown
7879hardcode_into_libs=no
7880
7881# when you set need_version to no, make sure it does not cause -set_version
7882# flags to be left without arguments
7883need_version=unknown
7884
7885case $host_os in
7886aix3*)
7887  version_type=linux
7888  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7889  shlibpath_var=LIBPATH
7890
7891  # AIX 3 has no versioning support, so we append a major version to the name.
7892  soname_spec='${libname}${release}${shared_ext}$major'
7893  ;;
7894
7895aix4* | aix5*)
7896  version_type=linux
7897  need_lib_prefix=no
7898  need_version=no
7899  hardcode_into_libs=yes
7900  if test "$host_cpu" = ia64; then
7901    # AIX 5 supports IA64
7902    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7903    shlibpath_var=LD_LIBRARY_PATH
7904  else
7905    # With GCC up to 2.95.x, collect2 would create an import file
7906    # for dependence libraries.  The import file would start with
7907    # the line `#! .'.  This would cause the generated library to
7908    # depend on `.', always an invalid library.  This was fixed in
7909    # development snapshots of GCC prior to 3.0.
7910    case $host_os in
7911      aix4 | aix4.[01] | aix4.[01].*)
7912      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7913	   echo ' yes '
7914	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7915	:
7916      else
7917	can_build_shared=no
7918      fi
7919      ;;
7920    esac
7921    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7922    # soname into executable. Probably we can add versioning support to
7923    # collect2, so additional links can be useful in future.
7924    if test "$aix_use_runtimelinking" = yes; then
7925      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7926      # instead of lib<name>.a to let people know that these are not
7927      # typical AIX shared libraries.
7928      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929    else
7930      # We preserve .a as extension for shared libraries through AIX4.2
7931      # and later when we are not doing run time linking.
7932      library_names_spec='${libname}${release}.a $libname.a'
7933      soname_spec='${libname}${release}${shared_ext}$major'
7934    fi
7935    shlibpath_var=LIBPATH
7936  fi
7937  ;;
7938
7939amigaos*)
7940  library_names_spec='$libname.ixlibrary $libname.a'
7941  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7942  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'
7943  ;;
7944
7945beos*)
7946  library_names_spec='${libname}${shared_ext}'
7947  dynamic_linker="$host_os ld.so"
7948  shlibpath_var=LIBRARY_PATH
7949  ;;
7950
7951bsdi[45]*)
7952  version_type=linux
7953  need_version=no
7954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7955  soname_spec='${libname}${release}${shared_ext}$major'
7956  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7957  shlibpath_var=LD_LIBRARY_PATH
7958  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7959  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7960  # the default ld.so.conf also contains /usr/contrib/lib and
7961  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7962  # libtool to hard-code these into programs
7963  ;;
7964
7965cygwin* | mingw* | pw32*)
7966  version_type=windows
7967  shrext_cmds=".dll"
7968  need_version=no
7969  need_lib_prefix=no
7970
7971  case $GCC,$host_os in
7972  yes,cygwin* | yes,mingw* | yes,pw32*)
7973    library_names_spec='$libname.dll.a'
7974    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7975    postinstall_cmds='base_file=`basename \${file}`~
7976      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7977      dldir=$destdir/`dirname \$dlpath`~
7978      test -d \$dldir || mkdir -p \$dldir~
7979      $install_prog $dir/$dlname \$dldir/$dlname~
7980      chmod a+x \$dldir/$dlname'
7981    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7982      dlpath=$dir/\$dldll~
7983       $rm \$dlpath'
7984    shlibpath_overrides_runpath=yes
7985
7986    case $host_os in
7987    cygwin*)
7988      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7989      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7990      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7991      ;;
7992    mingw*)
7993      # MinGW DLLs use traditional 'lib' prefix
7994      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7995      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7996      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7997        # It is most probably a Windows format PATH printed by
7998        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7999        # path with ; separators, and with drive letters. We can handle the
8000        # drive letters (cygwin fileutils understands them), so leave them,
8001        # especially as we might pass files found there to a mingw objdump,
8002        # which wouldn't understand a cygwinified path. Ahh.
8003        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8004      else
8005        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8006      fi
8007      ;;
8008    pw32*)
8009      # pw32 DLLs use 'pw' prefix rather than 'lib'
8010      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8011      ;;
8012    esac
8013    ;;
8014
8015  *)
8016    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8017    ;;
8018  esac
8019  dynamic_linker='Win32 ld.exe'
8020  # FIXME: first we should search . and the directory the executable is in
8021  shlibpath_var=PATH
8022  ;;
8023
8024darwin* | rhapsody*)
8025  dynamic_linker="$host_os dyld"
8026  version_type=darwin
8027  need_lib_prefix=no
8028  need_version=no
8029  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8030  soname_spec='${libname}${release}${major}$shared_ext'
8031  shlibpath_overrides_runpath=yes
8032  shlibpath_var=DYLD_LIBRARY_PATH
8033  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8034  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8035  if test "$GCC" = yes; then
8036    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"`
8037  else
8038    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8039  fi
8040  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8041  ;;
8042
8043dgux*)
8044  version_type=linux
8045  need_lib_prefix=no
8046  need_version=no
8047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8048  soname_spec='${libname}${release}${shared_ext}$major'
8049  shlibpath_var=LD_LIBRARY_PATH
8050  ;;
8051
8052freebsd1*)
8053  dynamic_linker=no
8054  ;;
8055
8056kfreebsd*-gnu)
8057  version_type=linux
8058  need_lib_prefix=no
8059  need_version=no
8060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8061  soname_spec='${libname}${release}${shared_ext}$major'
8062  shlibpath_var=LD_LIBRARY_PATH
8063  shlibpath_overrides_runpath=no
8064  hardcode_into_libs=yes
8065  dynamic_linker='GNU ld.so'
8066  ;;
8067
8068freebsd* | dragonfly*)
8069  # DragonFly does not have aout.  When/if they implement a new
8070  # versioning mechanism, adjust this.
8071  if test -x /usr/bin/objformat; then
8072    objformat=`/usr/bin/objformat`
8073  else
8074    case $host_os in
8075    freebsd[123]*) objformat=aout ;;
8076    *) objformat=elf ;;
8077    esac
8078  fi
8079  version_type=freebsd-$objformat
8080  case $version_type in
8081    freebsd-elf*)
8082      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8083      need_version=no
8084      need_lib_prefix=no
8085      ;;
8086    freebsd-*)
8087      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8088      need_version=yes
8089      ;;
8090  esac
8091  shlibpath_var=LD_LIBRARY_PATH
8092  case $host_os in
8093  freebsd2*)
8094    shlibpath_overrides_runpath=yes
8095    ;;
8096  freebsd3.[01]* | freebsdelf3.[01]*)
8097    shlibpath_overrides_runpath=yes
8098    hardcode_into_libs=yes
8099    ;;
8100  *) # from 3.2 on
8101    shlibpath_overrides_runpath=no
8102    hardcode_into_libs=yes
8103    ;;
8104  esac
8105  ;;
8106
8107gnu*)
8108  version_type=linux
8109  need_lib_prefix=no
8110  need_version=no
8111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8112  soname_spec='${libname}${release}${shared_ext}$major'
8113  shlibpath_var=LD_LIBRARY_PATH
8114  hardcode_into_libs=yes
8115  ;;
8116
8117hpux9* | hpux10* | hpux11*)
8118  # Give a soname corresponding to the major version so that dld.sl refuses to
8119  # link against other versions.
8120  version_type=sunos
8121  need_lib_prefix=no
8122  need_version=no
8123  case $host_cpu in
8124  ia64*)
8125    shrext_cmds='.so'
8126    hardcode_into_libs=yes
8127    dynamic_linker="$host_os dld.so"
8128    shlibpath_var=LD_LIBRARY_PATH
8129    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131    soname_spec='${libname}${release}${shared_ext}$major'
8132    if test "X$HPUX_IA64_MODE" = X32; then
8133      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8134    else
8135      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8136    fi
8137    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8138    ;;
8139   hppa*64*)
8140     shrext_cmds='.sl'
8141     hardcode_into_libs=yes
8142     dynamic_linker="$host_os dld.sl"
8143     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8144     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8146     soname_spec='${libname}${release}${shared_ext}$major'
8147     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8148     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8149     ;;
8150   *)
8151    shrext_cmds='.sl'
8152    dynamic_linker="$host_os dld.sl"
8153    shlibpath_var=SHLIB_PATH
8154    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156    soname_spec='${libname}${release}${shared_ext}$major'
8157    ;;
8158  esac
8159  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8160  postinstall_cmds='chmod 555 $lib'
8161  ;;
8162
8163irix5* | irix6* | nonstopux*)
8164  case $host_os in
8165    nonstopux*) version_type=nonstopux ;;
8166    *)
8167	if test "$lt_cv_prog_gnu_ld" = yes; then
8168		version_type=linux
8169	else
8170		version_type=irix
8171	fi ;;
8172  esac
8173  need_lib_prefix=no
8174  need_version=no
8175  soname_spec='${libname}${release}${shared_ext}$major'
8176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8177  case $host_os in
8178  irix5* | nonstopux*)
8179    libsuff= shlibsuff=
8180    ;;
8181  *)
8182    case $LD in # libtool.m4 will add one of these switches to LD
8183    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8184      libsuff= shlibsuff= libmagic=32-bit;;
8185    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8186      libsuff=32 shlibsuff=N32 libmagic=N32;;
8187    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8188      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8189    *) libsuff= shlibsuff= libmagic=never-match;;
8190    esac
8191    ;;
8192  esac
8193  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8194  shlibpath_overrides_runpath=no
8195  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8196  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8197  hardcode_into_libs=yes
8198  ;;
8199
8200# No shared lib support for Linux oldld, aout, or coff.
8201linux*oldld* | linux*aout* | linux*coff*)
8202  dynamic_linker=no
8203  ;;
8204
8205# This must be Linux ELF.
8206linux*)
8207  version_type=linux
8208  need_lib_prefix=no
8209  need_version=no
8210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211  soname_spec='${libname}${release}${shared_ext}$major'
8212  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8213  shlibpath_var=LD_LIBRARY_PATH
8214  shlibpath_overrides_runpath=no
8215  # This implies no fast_install, which is unacceptable.
8216  # Some rework will be needed to allow for fast_install
8217  # before this can be enabled.
8218  hardcode_into_libs=yes
8219
8220  # Append ld.so.conf contents to the search path
8221  if test -f /etc/ld.so.conf; then
8222    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' ' '`
8223    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8224  fi
8225
8226  # We used to test for /lib/ld.so.1 and disable shared libraries on
8227  # powerpc, because MkLinux only supported shared libraries with the
8228  # GNU dynamic linker.  Since this was broken with cross compilers,
8229  # most powerpc-linux boxes support dynamic linking these days and
8230  # people can always --disable-shared, the test was removed, and we
8231  # assume the GNU/Linux dynamic linker is in use.
8232  dynamic_linker='GNU/Linux ld.so'
8233  ;;
8234
8235netbsdelf*-gnu)
8236  version_type=linux
8237  need_lib_prefix=no
8238  need_version=no
8239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8240  soname_spec='${libname}${release}${shared_ext}$major'
8241  shlibpath_var=LD_LIBRARY_PATH
8242  shlibpath_overrides_runpath=no
8243  hardcode_into_libs=yes
8244  dynamic_linker='NetBSD ld.elf_so'
8245  ;;
8246
8247knetbsd*-gnu)
8248  version_type=linux
8249  need_lib_prefix=no
8250  need_version=no
8251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8252  soname_spec='${libname}${release}${shared_ext}$major'
8253  shlibpath_var=LD_LIBRARY_PATH
8254  shlibpath_overrides_runpath=no
8255  hardcode_into_libs=yes
8256  dynamic_linker='GNU ld.so'
8257  ;;
8258
8259netbsd*)
8260  version_type=sunos
8261  need_lib_prefix=no
8262  need_version=no
8263  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8265    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8266    dynamic_linker='NetBSD (a.out) ld.so'
8267  else
8268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8269    soname_spec='${libname}${release}${shared_ext}$major'
8270    dynamic_linker='NetBSD ld.elf_so'
8271  fi
8272  shlibpath_var=LD_LIBRARY_PATH
8273  shlibpath_overrides_runpath=yes
8274  hardcode_into_libs=yes
8275  ;;
8276
8277newsos6)
8278  version_type=linux
8279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8280  shlibpath_var=LD_LIBRARY_PATH
8281  shlibpath_overrides_runpath=yes
8282  ;;
8283
8284nto-qnx*)
8285  version_type=linux
8286  need_lib_prefix=no
8287  need_version=no
8288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289  soname_spec='${libname}${release}${shared_ext}$major'
8290  shlibpath_var=LD_LIBRARY_PATH
8291  shlibpath_overrides_runpath=yes
8292  ;;
8293
8294openbsd*)
8295  version_type=sunos
8296  need_lib_prefix=no
8297  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8298  case $host_os in
8299    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8300    *)                         need_version=no  ;;
8301  esac
8302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8303  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8304  shlibpath_var=LD_LIBRARY_PATH
8305  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8306    case $host_os in
8307      openbsd2.[89] | openbsd2.[89].*)
8308	shlibpath_overrides_runpath=no
8309	;;
8310      *)
8311	shlibpath_overrides_runpath=yes
8312	;;
8313      esac
8314  else
8315    shlibpath_overrides_runpath=yes
8316  fi
8317  ;;
8318
8319os2*)
8320  libname_spec='$name'
8321  shrext_cmds=".dll"
8322  need_lib_prefix=no
8323  library_names_spec='$libname${shared_ext} $libname.a'
8324  dynamic_linker='OS/2 ld.exe'
8325  shlibpath_var=LIBPATH
8326  ;;
8327
8328osf3* | osf4* | osf5*)
8329  version_type=osf
8330  need_lib_prefix=no
8331  need_version=no
8332  soname_spec='${libname}${release}${shared_ext}$major'
8333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334  shlibpath_var=LD_LIBRARY_PATH
8335  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8336  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8337  ;;
8338
8339sco3.2v5*)
8340  version_type=osf
8341  soname_spec='${libname}${release}${shared_ext}$major'
8342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8343  shlibpath_var=LD_LIBRARY_PATH
8344  ;;
8345
8346solaris*)
8347  version_type=linux
8348  need_lib_prefix=no
8349  need_version=no
8350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351  soname_spec='${libname}${release}${shared_ext}$major'
8352  shlibpath_var=LD_LIBRARY_PATH
8353  shlibpath_overrides_runpath=yes
8354  hardcode_into_libs=yes
8355  # ldd complains unless libraries are executable
8356  postinstall_cmds='chmod +x $lib'
8357  ;;
8358
8359sunos4*)
8360  version_type=sunos
8361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8362  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8363  shlibpath_var=LD_LIBRARY_PATH
8364  shlibpath_overrides_runpath=yes
8365  if test "$with_gnu_ld" = yes; then
8366    need_lib_prefix=no
8367  fi
8368  need_version=yes
8369  ;;
8370
8371sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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  case $host_vendor in
8377    sni)
8378      shlibpath_overrides_runpath=no
8379      need_lib_prefix=no
8380      export_dynamic_flag_spec='${wl}-Blargedynsym'
8381      runpath_var=LD_RUN_PATH
8382      ;;
8383    siemens)
8384      need_lib_prefix=no
8385      ;;
8386    motorola)
8387      need_lib_prefix=no
8388      need_version=no
8389      shlibpath_overrides_runpath=no
8390      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8391      ;;
8392  esac
8393  ;;
8394
8395sysv4*MP*)
8396  if test -d /usr/nec ;then
8397    version_type=linux
8398    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8399    soname_spec='$libname${shared_ext}.$major'
8400    shlibpath_var=LD_LIBRARY_PATH
8401  fi
8402  ;;
8403
8404uts4*)
8405  version_type=linux
8406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8407  soname_spec='${libname}${release}${shared_ext}$major'
8408  shlibpath_var=LD_LIBRARY_PATH
8409  ;;
8410
8411*)
8412  dynamic_linker=no
8413  ;;
8414esac
8415echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8416echo "${ECHO_T}$dynamic_linker" >&6
8417test "$dynamic_linker" = no && can_build_shared=no
8418
8419echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8420echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8421hardcode_action=
8422if test -n "$hardcode_libdir_flag_spec" || \
8423   test -n "$runpath_var" || \
8424   test "X$hardcode_automatic" = "Xyes" ; then
8425
8426  # We can hardcode non-existant directories.
8427  if test "$hardcode_direct" != no &&
8428     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8429     # have to relink, otherwise we might link with an installed library
8430     # when we should be linking with a yet-to-be-installed one
8431     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8432     test "$hardcode_minus_L" != no; then
8433    # Linking always hardcodes the temporary library directory.
8434    hardcode_action=relink
8435  else
8436    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8437    hardcode_action=immediate
8438  fi
8439else
8440  # We cannot hardcode anything, or else we can only hardcode existing
8441  # directories.
8442  hardcode_action=unsupported
8443fi
8444echo "$as_me:$LINENO: result: $hardcode_action" >&5
8445echo "${ECHO_T}$hardcode_action" >&6
8446
8447if test "$hardcode_action" = relink; then
8448  # Fast installation is not supported
8449  enable_fast_install=no
8450elif test "$shlibpath_overrides_runpath" = yes ||
8451     test "$enable_shared" = no; then
8452  # Fast installation is not necessary
8453  enable_fast_install=needless
8454fi
8455
8456striplib=
8457old_striplib=
8458echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8459echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8460if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8461  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8462  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8463  echo "$as_me:$LINENO: result: yes" >&5
8464echo "${ECHO_T}yes" >&6
8465else
8466# FIXME - insert some real tests, host_os isn't really good enough
8467  case $host_os in
8468   darwin*)
8469       if test -n "$STRIP" ; then
8470         striplib="$STRIP -x"
8471         echo "$as_me:$LINENO: result: yes" >&5
8472echo "${ECHO_T}yes" >&6
8473       else
8474  echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
8476fi
8477       ;;
8478   *)
8479  echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6
8481    ;;
8482  esac
8483fi
8484
8485if test "x$enable_dlopen" != xyes; then
8486  enable_dlopen=unknown
8487  enable_dlopen_self=unknown
8488  enable_dlopen_self_static=unknown
8489else
8490  lt_cv_dlopen=no
8491  lt_cv_dlopen_libs=
8492
8493  case $host_os in
8494  beos*)
8495    lt_cv_dlopen="load_add_on"
8496    lt_cv_dlopen_libs=
8497    lt_cv_dlopen_self=yes
8498    ;;
8499
8500  mingw* | pw32*)
8501    lt_cv_dlopen="LoadLibrary"
8502    lt_cv_dlopen_libs=
8503   ;;
8504
8505  cygwin*)
8506    lt_cv_dlopen="dlopen"
8507    lt_cv_dlopen_libs=
8508   ;;
8509
8510  darwin*)
8511  # if libdl is installed we need to link against it
8512    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8513echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8514if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8515  echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517  ac_check_lib_save_LIBS=$LIBS
8518LIBS="-ldl  $LIBS"
8519cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h.  */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h.  */
8525
8526/* Override any gcc2 internal prototype to avoid an error.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531   builtin and then its argument prototype would still apply.  */
8532char dlopen ();
8533int
8534main ()
8535{
8536dlopen ();
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext conftest$ac_exeext
8542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543  (eval $ac_link) 2>conftest.er1
8544  ac_status=$?
8545  grep -v '^ *+' conftest.er1 >conftest.err
8546  rm -f conftest.er1
8547  cat conftest.err >&5
8548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549  (exit $ac_status); } &&
8550	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552  (eval $ac_try) 2>&5
8553  ac_status=$?
8554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555  (exit $ac_status); }; } &&
8556	 { ac_try='test -s conftest$ac_exeext'
8557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558  (eval $ac_try) 2>&5
8559  ac_status=$?
8560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); }; }; then
8562  ac_cv_lib_dl_dlopen=yes
8563else
8564  echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567ac_cv_lib_dl_dlopen=no
8568fi
8569rm -f conftest.err conftest.$ac_objext \
8570      conftest$ac_exeext conftest.$ac_ext
8571LIBS=$ac_check_lib_save_LIBS
8572fi
8573echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8574echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8575if test $ac_cv_lib_dl_dlopen = yes; then
8576  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8577else
8578
8579    lt_cv_dlopen="dyld"
8580    lt_cv_dlopen_libs=
8581    lt_cv_dlopen_self=yes
8582
8583fi
8584
8585   ;;
8586
8587  *)
8588    echo "$as_me:$LINENO: checking for shl_load" >&5
8589echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8590if test "${ac_cv_func_shl_load+set}" = set; then
8591  echo $ECHO_N "(cached) $ECHO_C" >&6
8592else
8593  cat >conftest.$ac_ext <<_ACEOF
8594/* confdefs.h.  */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h.  */
8599/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8600   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8601#define shl_load innocuous_shl_load
8602
8603/* System header to define __stub macros and hopefully few prototypes,
8604    which can conflict with char shl_load (); below.
8605    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606    <limits.h> exists even on freestanding compilers.  */
8607
8608#ifdef __STDC__
8609# include <limits.h>
8610#else
8611# include <assert.h>
8612#endif
8613
8614#undef shl_load
8615
8616/* Override any gcc2 internal prototype to avoid an error.  */
8617#ifdef __cplusplus
8618extern "C"
8619{
8620#endif
8621/* We use char because int might match the return type of a gcc2
8622   builtin and then its argument prototype would still apply.  */
8623char shl_load ();
8624/* The GNU C library defines this for functions which it implements
8625    to always fail with ENOSYS.  Some functions are actually named
8626    something starting with __ and the normal name is an alias.  */
8627#if defined (__stub_shl_load) || defined (__stub___shl_load)
8628choke me
8629#else
8630char (*f) () = shl_load;
8631#endif
8632#ifdef __cplusplus
8633}
8634#endif
8635
8636int
8637main ()
8638{
8639return f != shl_load;
8640  ;
8641  return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext conftest$ac_exeext
8645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646  (eval $ac_link) 2>conftest.er1
8647  ac_status=$?
8648  grep -v '^ *+' conftest.er1 >conftest.err
8649  rm -f conftest.er1
8650  cat conftest.err >&5
8651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652  (exit $ac_status); } &&
8653	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655  (eval $ac_try) 2>&5
8656  ac_status=$?
8657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658  (exit $ac_status); }; } &&
8659	 { ac_try='test -s conftest$ac_exeext'
8660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661  (eval $ac_try) 2>&5
8662  ac_status=$?
8663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664  (exit $ac_status); }; }; then
8665  ac_cv_func_shl_load=yes
8666else
8667  echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670ac_cv_func_shl_load=no
8671fi
8672rm -f conftest.err conftest.$ac_objext \
8673      conftest$ac_exeext conftest.$ac_ext
8674fi
8675echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8676echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8677if test $ac_cv_func_shl_load = yes; then
8678  lt_cv_dlopen="shl_load"
8679else
8680  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8681echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8682if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8683  echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685  ac_check_lib_save_LIBS=$LIBS
8686LIBS="-ldld  $LIBS"
8687cat >conftest.$ac_ext <<_ACEOF
8688/* confdefs.h.  */
8689_ACEOF
8690cat confdefs.h >>conftest.$ac_ext
8691cat >>conftest.$ac_ext <<_ACEOF
8692/* end confdefs.h.  */
8693
8694/* Override any gcc2 internal prototype to avoid an error.  */
8695#ifdef __cplusplus
8696extern "C"
8697#endif
8698/* We use char because int might match the return type of a gcc2
8699   builtin and then its argument prototype would still apply.  */
8700char shl_load ();
8701int
8702main ()
8703{
8704shl_load ();
8705  ;
8706  return 0;
8707}
8708_ACEOF
8709rm -f conftest.$ac_objext conftest$ac_exeext
8710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711  (eval $ac_link) 2>conftest.er1
8712  ac_status=$?
8713  grep -v '^ *+' conftest.er1 >conftest.err
8714  rm -f conftest.er1
8715  cat conftest.err >&5
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); } &&
8718	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720  (eval $ac_try) 2>&5
8721  ac_status=$?
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); }; } &&
8724	 { ac_try='test -s conftest$ac_exeext'
8725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726  (eval $ac_try) 2>&5
8727  ac_status=$?
8728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729  (exit $ac_status); }; }; then
8730  ac_cv_lib_dld_shl_load=yes
8731else
8732  echo "$as_me: failed program was:" >&5
8733sed 's/^/| /' conftest.$ac_ext >&5
8734
8735ac_cv_lib_dld_shl_load=no
8736fi
8737rm -f conftest.err conftest.$ac_objext \
8738      conftest$ac_exeext conftest.$ac_ext
8739LIBS=$ac_check_lib_save_LIBS
8740fi
8741echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8742echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8743if test $ac_cv_lib_dld_shl_load = yes; then
8744  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8745else
8746  echo "$as_me:$LINENO: checking for dlopen" >&5
8747echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8748if test "${ac_cv_func_dlopen+set}" = set; then
8749  echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751  cat >conftest.$ac_ext <<_ACEOF
8752/* confdefs.h.  */
8753_ACEOF
8754cat confdefs.h >>conftest.$ac_ext
8755cat >>conftest.$ac_ext <<_ACEOF
8756/* end confdefs.h.  */
8757/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8759#define dlopen innocuous_dlopen
8760
8761/* System header to define __stub macros and hopefully few prototypes,
8762    which can conflict with char dlopen (); below.
8763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8764    <limits.h> exists even on freestanding compilers.  */
8765
8766#ifdef __STDC__
8767# include <limits.h>
8768#else
8769# include <assert.h>
8770#endif
8771
8772#undef dlopen
8773
8774/* Override any gcc2 internal prototype to avoid an error.  */
8775#ifdef __cplusplus
8776extern "C"
8777{
8778#endif
8779/* We use char because int might match the return type of a gcc2
8780   builtin and then its argument prototype would still apply.  */
8781char dlopen ();
8782/* The GNU C library defines this for functions which it implements
8783    to always fail with ENOSYS.  Some functions are actually named
8784    something starting with __ and the normal name is an alias.  */
8785#if defined (__stub_dlopen) || defined (__stub___dlopen)
8786choke me
8787#else
8788char (*f) () = dlopen;
8789#endif
8790#ifdef __cplusplus
8791}
8792#endif
8793
8794int
8795main ()
8796{
8797return f != dlopen;
8798  ;
8799  return 0;
8800}
8801_ACEOF
8802rm -f conftest.$ac_objext conftest$ac_exeext
8803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804  (eval $ac_link) 2>conftest.er1
8805  ac_status=$?
8806  grep -v '^ *+' conftest.er1 >conftest.err
8807  rm -f conftest.er1
8808  cat conftest.err >&5
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); } &&
8811	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813  (eval $ac_try) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; } &&
8817	 { ac_try='test -s conftest$ac_exeext'
8818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819  (eval $ac_try) 2>&5
8820  ac_status=$?
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); }; }; then
8823  ac_cv_func_dlopen=yes
8824else
8825  echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828ac_cv_func_dlopen=no
8829fi
8830rm -f conftest.err conftest.$ac_objext \
8831      conftest$ac_exeext conftest.$ac_ext
8832fi
8833echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8834echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8835if test $ac_cv_func_dlopen = yes; then
8836  lt_cv_dlopen="dlopen"
8837else
8838  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8839echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8841  echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843  ac_check_lib_save_LIBS=$LIBS
8844LIBS="-ldl  $LIBS"
8845cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h.  */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h.  */
8851
8852/* Override any gcc2 internal prototype to avoid an error.  */
8853#ifdef __cplusplus
8854extern "C"
8855#endif
8856/* We use char because int might match the return type of a gcc2
8857   builtin and then its argument prototype would still apply.  */
8858char dlopen ();
8859int
8860main ()
8861{
8862dlopen ();
8863  ;
8864  return 0;
8865}
8866_ACEOF
8867rm -f conftest.$ac_objext conftest$ac_exeext
8868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869  (eval $ac_link) 2>conftest.er1
8870  ac_status=$?
8871  grep -v '^ *+' conftest.er1 >conftest.err
8872  rm -f conftest.er1
8873  cat conftest.err >&5
8874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875  (exit $ac_status); } &&
8876	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878  (eval $ac_try) 2>&5
8879  ac_status=$?
8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881  (exit $ac_status); }; } &&
8882	 { ac_try='test -s conftest$ac_exeext'
8883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884  (eval $ac_try) 2>&5
8885  ac_status=$?
8886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887  (exit $ac_status); }; }; then
8888  ac_cv_lib_dl_dlopen=yes
8889else
8890  echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
8893ac_cv_lib_dl_dlopen=no
8894fi
8895rm -f conftest.err conftest.$ac_objext \
8896      conftest$ac_exeext conftest.$ac_ext
8897LIBS=$ac_check_lib_save_LIBS
8898fi
8899echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8900echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8901if test $ac_cv_lib_dl_dlopen = yes; then
8902  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8903else
8904  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8905echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8906if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8907  echo $ECHO_N "(cached) $ECHO_C" >&6
8908else
8909  ac_check_lib_save_LIBS=$LIBS
8910LIBS="-lsvld  $LIBS"
8911cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h.  */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h.  */
8917
8918/* Override any gcc2 internal prototype to avoid an error.  */
8919#ifdef __cplusplus
8920extern "C"
8921#endif
8922/* We use char because int might match the return type of a gcc2
8923   builtin and then its argument prototype would still apply.  */
8924char dlopen ();
8925int
8926main ()
8927{
8928dlopen ();
8929  ;
8930  return 0;
8931}
8932_ACEOF
8933rm -f conftest.$ac_objext conftest$ac_exeext
8934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935  (eval $ac_link) 2>conftest.er1
8936  ac_status=$?
8937  grep -v '^ *+' conftest.er1 >conftest.err
8938  rm -f conftest.er1
8939  cat conftest.err >&5
8940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941  (exit $ac_status); } &&
8942	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944  (eval $ac_try) 2>&5
8945  ac_status=$?
8946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947  (exit $ac_status); }; } &&
8948	 { ac_try='test -s conftest$ac_exeext'
8949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950  (eval $ac_try) 2>&5
8951  ac_status=$?
8952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953  (exit $ac_status); }; }; then
8954  ac_cv_lib_svld_dlopen=yes
8955else
8956  echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959ac_cv_lib_svld_dlopen=no
8960fi
8961rm -f conftest.err conftest.$ac_objext \
8962      conftest$ac_exeext conftest.$ac_ext
8963LIBS=$ac_check_lib_save_LIBS
8964fi
8965echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8966echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8967if test $ac_cv_lib_svld_dlopen = yes; then
8968  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8969else
8970  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8971echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8972if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8973  echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975  ac_check_lib_save_LIBS=$LIBS
8976LIBS="-ldld  $LIBS"
8977cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h.  */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h.  */
8983
8984/* Override any gcc2 internal prototype to avoid an error.  */
8985#ifdef __cplusplus
8986extern "C"
8987#endif
8988/* We use char because int might match the return type of a gcc2
8989   builtin and then its argument prototype would still apply.  */
8990char dld_link ();
8991int
8992main ()
8993{
8994dld_link ();
8995  ;
8996  return 0;
8997}
8998_ACEOF
8999rm -f conftest.$ac_objext conftest$ac_exeext
9000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001  (eval $ac_link) 2>conftest.er1
9002  ac_status=$?
9003  grep -v '^ *+' conftest.er1 >conftest.err
9004  rm -f conftest.er1
9005  cat conftest.err >&5
9006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); } &&
9008	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010  (eval $ac_try) 2>&5
9011  ac_status=$?
9012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013  (exit $ac_status); }; } &&
9014	 { ac_try='test -s conftest$ac_exeext'
9015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016  (eval $ac_try) 2>&5
9017  ac_status=$?
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); }; }; then
9020  ac_cv_lib_dld_dld_link=yes
9021else
9022  echo "$as_me: failed program was:" >&5
9023sed 's/^/| /' conftest.$ac_ext >&5
9024
9025ac_cv_lib_dld_dld_link=no
9026fi
9027rm -f conftest.err conftest.$ac_objext \
9028      conftest$ac_exeext conftest.$ac_ext
9029LIBS=$ac_check_lib_save_LIBS
9030fi
9031echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9032echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9033if test $ac_cv_lib_dld_dld_link = yes; then
9034  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9035fi
9036
9037
9038fi
9039
9040
9041fi
9042
9043
9044fi
9045
9046
9047fi
9048
9049
9050fi
9051
9052    ;;
9053  esac
9054
9055  if test "x$lt_cv_dlopen" != xno; then
9056    enable_dlopen=yes
9057  else
9058    enable_dlopen=no
9059  fi
9060
9061  case $lt_cv_dlopen in
9062  dlopen)
9063    save_CPPFLAGS="$CPPFLAGS"
9064    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9065
9066    save_LDFLAGS="$LDFLAGS"
9067    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9068
9069    save_LIBS="$LIBS"
9070    LIBS="$lt_cv_dlopen_libs $LIBS"
9071
9072    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9073echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9074if test "${lt_cv_dlopen_self+set}" = set; then
9075  echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077  	  if test "$cross_compiling" = yes; then :
9078  lt_cv_dlopen_self=cross
9079else
9080  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9081  lt_status=$lt_dlunknown
9082  cat > conftest.$ac_ext <<EOF
9083#line 9083 "configure"
9084#include "confdefs.h"
9085
9086#if HAVE_DLFCN_H
9087#include <dlfcn.h>
9088#endif
9089
9090#include <stdio.h>
9091
9092#ifdef RTLD_GLOBAL
9093#  define LT_DLGLOBAL		RTLD_GLOBAL
9094#else
9095#  ifdef DL_GLOBAL
9096#    define LT_DLGLOBAL		DL_GLOBAL
9097#  else
9098#    define LT_DLGLOBAL		0
9099#  endif
9100#endif
9101
9102/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9103   find out it does not work in some platform. */
9104#ifndef LT_DLLAZY_OR_NOW
9105#  ifdef RTLD_LAZY
9106#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9107#  else
9108#    ifdef DL_LAZY
9109#      define LT_DLLAZY_OR_NOW		DL_LAZY
9110#    else
9111#      ifdef RTLD_NOW
9112#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9113#      else
9114#        ifdef DL_NOW
9115#          define LT_DLLAZY_OR_NOW	DL_NOW
9116#        else
9117#          define LT_DLLAZY_OR_NOW	0
9118#        endif
9119#      endif
9120#    endif
9121#  endif
9122#endif
9123
9124#ifdef __cplusplus
9125extern "C" void exit (int);
9126#endif
9127
9128void fnord() { int i=42;}
9129int main ()
9130{
9131  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9132  int status = $lt_dlunknown;
9133
9134  if (self)
9135    {
9136      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9137      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9138      /* dlclose (self); */
9139    }
9140
9141    exit (status);
9142}
9143EOF
9144  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145  (eval $ac_link) 2>&5
9146  ac_status=$?
9147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9149    (./conftest; exit; ) >&5 2>/dev/null
9150    lt_status=$?
9151    case x$lt_status in
9152      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9153      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9154      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9155    esac
9156  else :
9157    # compilation failed
9158    lt_cv_dlopen_self=no
9159  fi
9160fi
9161rm -fr conftest*
9162
9163
9164fi
9165echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9166echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9167
9168    if test "x$lt_cv_dlopen_self" = xyes; then
9169      LDFLAGS="$LDFLAGS $link_static_flag"
9170      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9171echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9172if test "${lt_cv_dlopen_self_static+set}" = set; then
9173  echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175  	  if test "$cross_compiling" = yes; then :
9176  lt_cv_dlopen_self_static=cross
9177else
9178  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9179  lt_status=$lt_dlunknown
9180  cat > conftest.$ac_ext <<EOF
9181#line 9181 "configure"
9182#include "confdefs.h"
9183
9184#if HAVE_DLFCN_H
9185#include <dlfcn.h>
9186#endif
9187
9188#include <stdio.h>
9189
9190#ifdef RTLD_GLOBAL
9191#  define LT_DLGLOBAL		RTLD_GLOBAL
9192#else
9193#  ifdef DL_GLOBAL
9194#    define LT_DLGLOBAL		DL_GLOBAL
9195#  else
9196#    define LT_DLGLOBAL		0
9197#  endif
9198#endif
9199
9200/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9201   find out it does not work in some platform. */
9202#ifndef LT_DLLAZY_OR_NOW
9203#  ifdef RTLD_LAZY
9204#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9205#  else
9206#    ifdef DL_LAZY
9207#      define LT_DLLAZY_OR_NOW		DL_LAZY
9208#    else
9209#      ifdef RTLD_NOW
9210#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9211#      else
9212#        ifdef DL_NOW
9213#          define LT_DLLAZY_OR_NOW	DL_NOW
9214#        else
9215#          define LT_DLLAZY_OR_NOW	0
9216#        endif
9217#      endif
9218#    endif
9219#  endif
9220#endif
9221
9222#ifdef __cplusplus
9223extern "C" void exit (int);
9224#endif
9225
9226void fnord() { int i=42;}
9227int main ()
9228{
9229  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9230  int status = $lt_dlunknown;
9231
9232  if (self)
9233    {
9234      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9235      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9236      /* dlclose (self); */
9237    }
9238
9239    exit (status);
9240}
9241EOF
9242  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243  (eval $ac_link) 2>&5
9244  ac_status=$?
9245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9247    (./conftest; exit; ) >&5 2>/dev/null
9248    lt_status=$?
9249    case x$lt_status in
9250      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9251      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9252      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9253    esac
9254  else :
9255    # compilation failed
9256    lt_cv_dlopen_self_static=no
9257  fi
9258fi
9259rm -fr conftest*
9260
9261
9262fi
9263echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9264echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9265    fi
9266
9267    CPPFLAGS="$save_CPPFLAGS"
9268    LDFLAGS="$save_LDFLAGS"
9269    LIBS="$save_LIBS"
9270    ;;
9271  esac
9272
9273  case $lt_cv_dlopen_self in
9274  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9275  *) enable_dlopen_self=unknown ;;
9276  esac
9277
9278  case $lt_cv_dlopen_self_static in
9279  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9280  *) enable_dlopen_self_static=unknown ;;
9281  esac
9282fi
9283
9284
9285# Report which librarie types wil actually be built
9286echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9287echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9288echo "$as_me:$LINENO: result: $can_build_shared" >&5
9289echo "${ECHO_T}$can_build_shared" >&6
9290
9291echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9292echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9293test "$can_build_shared" = "no" && enable_shared=no
9294
9295# On AIX, shared libraries and static libraries use the same namespace, and
9296# are all built from PIC.
9297case $host_os in
9298aix3*)
9299  test "$enable_shared" = yes && enable_static=no
9300  if test -n "$RANLIB"; then
9301    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9302    postinstall_cmds='$RANLIB $lib'
9303  fi
9304  ;;
9305
9306aix4* | aix5*)
9307  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9308    test "$enable_shared" = yes && enable_static=no
9309  fi
9310    ;;
9311esac
9312echo "$as_me:$LINENO: result: $enable_shared" >&5
9313echo "${ECHO_T}$enable_shared" >&6
9314
9315echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9316echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9317# Make sure either enable_shared or enable_static is yes.
9318test "$enable_shared" = yes || enable_static=yes
9319echo "$as_me:$LINENO: result: $enable_static" >&5
9320echo "${ECHO_T}$enable_static" >&6
9321
9322# The else clause should only fire when bootstrapping the
9323# libtool distribution, otherwise you forgot to ship ltmain.sh
9324# with your package, and you will get complaints that there are
9325# no rules to generate ltmain.sh.
9326if test -f "$ltmain"; then
9327  # See if we are running on zsh, and set the options which allow our commands through
9328  # without removal of \ escapes.
9329  if test -n "${ZSH_VERSION+set}" ; then
9330    setopt NO_GLOB_SUBST
9331  fi
9332  # Now quote all the things that may contain metacharacters while being
9333  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9334  # variables and quote the copies for generation of the libtool script.
9335  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9336    SED SHELL STRIP \
9337    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9338    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9339    deplibs_check_method reload_flag reload_cmds need_locks \
9340    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9341    lt_cv_sys_global_symbol_to_c_name_address \
9342    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9343    old_postinstall_cmds old_postuninstall_cmds \
9344    compiler \
9345    CC \
9346    LD \
9347    lt_prog_compiler_wl \
9348    lt_prog_compiler_pic \
9349    lt_prog_compiler_static \
9350    lt_prog_compiler_no_builtin_flag \
9351    export_dynamic_flag_spec \
9352    thread_safe_flag_spec \
9353    whole_archive_flag_spec \
9354    enable_shared_with_static_runtimes \
9355    old_archive_cmds \
9356    old_archive_from_new_cmds \
9357    predep_objects \
9358    postdep_objects \
9359    predeps \
9360    postdeps \
9361    compiler_lib_search_path \
9362    archive_cmds \
9363    archive_expsym_cmds \
9364    postinstall_cmds \
9365    postuninstall_cmds \
9366    old_archive_from_expsyms_cmds \
9367    allow_undefined_flag \
9368    no_undefined_flag \
9369    export_symbols_cmds \
9370    hardcode_libdir_flag_spec \
9371    hardcode_libdir_flag_spec_ld \
9372    hardcode_libdir_separator \
9373    hardcode_automatic \
9374    module_cmds \
9375    module_expsym_cmds \
9376    lt_cv_prog_compiler_c_o \
9377    exclude_expsyms \
9378    include_expsyms; do
9379
9380    case $var in
9381    old_archive_cmds | \
9382    old_archive_from_new_cmds | \
9383    archive_cmds | \
9384    archive_expsym_cmds | \
9385    module_cmds | \
9386    module_expsym_cmds | \
9387    old_archive_from_expsyms_cmds | \
9388    export_symbols_cmds | \
9389    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9390    postinstall_cmds | postuninstall_cmds | \
9391    old_postinstall_cmds | old_postuninstall_cmds | \
9392    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9393      # Double-quote double-evaled strings.
9394      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9395      ;;
9396    *)
9397      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9398      ;;
9399    esac
9400  done
9401
9402  case $lt_echo in
9403  *'\$0 --fallback-echo"')
9404    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9405    ;;
9406  esac
9407
9408cfgfile="${ofile}T"
9409  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9410  $rm -f "$cfgfile"
9411  { echo "$as_me:$LINENO: creating $ofile" >&5
9412echo "$as_me: creating $ofile" >&6;}
9413
9414  cat <<__EOF__ >> "$cfgfile"
9415#! $SHELL
9416
9417# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9418# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9419# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9420#
9421# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9422# Free Software Foundation, Inc.
9423#
9424# This file is part of GNU Libtool:
9425# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9426#
9427# This program is free software; you can redistribute it and/or modify
9428# it under the terms of the GNU General Public License as published by
9429# the Free Software Foundation; either version 2 of the License, or
9430# (at your option) any later version.
9431#
9432# This program is distributed in the hope that it will be useful, but
9433# WITHOUT ANY WARRANTY; without even the implied warranty of
9434# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9435# General Public License for more details.
9436#
9437# You should have received a copy of the GNU General Public License
9438# along with this program; if not, write to the Free Software
9439# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9440#
9441# As a special exception to the GNU General Public License, if you
9442# distribute this file as part of a program that contains a
9443# configuration script generated by Autoconf, you may include it under
9444# the same distribution terms that you use for the rest of that program.
9445
9446# A sed program that does not truncate output.
9447SED=$lt_SED
9448
9449# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9450Xsed="$SED -e 1s/^X//"
9451
9452# The HP-UX ksh and POSIX shell print the target directory to stdout
9453# if CDPATH is set.
9454(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9455
9456# The names of the tagged configurations supported by this script.
9457available_tags=
9458
9459# ### BEGIN LIBTOOL CONFIG
9460
9461# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9462
9463# Shell to use when invoking shell scripts.
9464SHELL=$lt_SHELL
9465
9466# Whether or not to build shared libraries.
9467build_libtool_libs=$enable_shared
9468
9469# Whether or not to build static libraries.
9470build_old_libs=$enable_static
9471
9472# Whether or not to add -lc for building shared libraries.
9473build_libtool_need_lc=$archive_cmds_need_lc
9474
9475# Whether or not to disallow shared libs when runtime libs are static
9476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9477
9478# Whether or not to optimize for fast installation.
9479fast_install=$enable_fast_install
9480
9481# The host system.
9482host_alias=$host_alias
9483host=$host
9484host_os=$host_os
9485
9486# The build system.
9487build_alias=$build_alias
9488build=$build
9489build_os=$build_os
9490
9491# An echo program that does not interpret backslashes.
9492echo=$lt_echo
9493
9494# The archiver.
9495AR=$lt_AR
9496AR_FLAGS=$lt_AR_FLAGS
9497
9498# A C compiler.
9499LTCC=$lt_LTCC
9500
9501# A language-specific compiler.
9502CC=$lt_compiler
9503
9504# Is the compiler the GNU C compiler?
9505with_gcc=$GCC
9506
9507# An ERE matcher.
9508EGREP=$lt_EGREP
9509
9510# The linker used to build libraries.
9511LD=$lt_LD
9512
9513# Whether we need hard or soft links.
9514LN_S=$lt_LN_S
9515
9516# A BSD-compatible nm program.
9517NM=$lt_NM
9518
9519# A symbol stripping program
9520STRIP=$lt_STRIP
9521
9522# Used to examine libraries when file_magic_cmd begins "file"
9523MAGIC_CMD=$MAGIC_CMD
9524
9525# Used on cygwin: DLL creation program.
9526DLLTOOL="$DLLTOOL"
9527
9528# Used on cygwin: object dumper.
9529OBJDUMP="$OBJDUMP"
9530
9531# Used on cygwin: assembler.
9532AS="$AS"
9533
9534# The name of the directory that contains temporary libtool files.
9535objdir=$objdir
9536
9537# How to create reloadable object files.
9538reload_flag=$lt_reload_flag
9539reload_cmds=$lt_reload_cmds
9540
9541# How to pass a linker flag through the compiler.
9542wl=$lt_lt_prog_compiler_wl
9543
9544# Object file suffix (normally "o").
9545objext="$ac_objext"
9546
9547# Old archive suffix (normally "a").
9548libext="$libext"
9549
9550# Shared library suffix (normally ".so").
9551shrext_cmds='$shrext_cmds'
9552
9553# Executable file suffix (normally "").
9554exeext="$exeext"
9555
9556# Additional compiler flags for building library objects.
9557pic_flag=$lt_lt_prog_compiler_pic
9558pic_mode=$pic_mode
9559
9560# What is the maximum length of a command?
9561max_cmd_len=$lt_cv_sys_max_cmd_len
9562
9563# Does compiler simultaneously support -c and -o options?
9564compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9565
9566# Must we lock files when doing compilation?
9567need_locks=$lt_need_locks
9568
9569# Do we need the lib prefix for modules?
9570need_lib_prefix=$need_lib_prefix
9571
9572# Do we need a version for libraries?
9573need_version=$need_version
9574
9575# Whether dlopen is supported.
9576dlopen_support=$enable_dlopen
9577
9578# Whether dlopen of programs is supported.
9579dlopen_self=$enable_dlopen_self
9580
9581# Whether dlopen of statically linked programs is supported.
9582dlopen_self_static=$enable_dlopen_self_static
9583
9584# Compiler flag to prevent dynamic linking.
9585link_static_flag=$lt_lt_prog_compiler_static
9586
9587# Compiler flag to turn off builtin functions.
9588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9589
9590# Compiler flag to allow reflexive dlopens.
9591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9592
9593# Compiler flag to generate shared objects directly from archives.
9594whole_archive_flag_spec=$lt_whole_archive_flag_spec
9595
9596# Compiler flag to generate thread-safe objects.
9597thread_safe_flag_spec=$lt_thread_safe_flag_spec
9598
9599# Library versioning type.
9600version_type=$version_type
9601
9602# Format of library name prefix.
9603libname_spec=$lt_libname_spec
9604
9605# List of archive names.  First name is the real one, the rest are links.
9606# The last name is the one that the linker finds with -lNAME.
9607library_names_spec=$lt_library_names_spec
9608
9609# The coded name of the library, if different from the real name.
9610soname_spec=$lt_soname_spec
9611
9612# Commands used to build and install an old-style archive.
9613RANLIB=$lt_RANLIB
9614old_archive_cmds=$lt_old_archive_cmds
9615old_postinstall_cmds=$lt_old_postinstall_cmds
9616old_postuninstall_cmds=$lt_old_postuninstall_cmds
9617
9618# Create an old-style archive from a shared archive.
9619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9620
9621# Create a temporary old-style archive to link instead of a shared archive.
9622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9623
9624# Commands used to build and install a shared archive.
9625archive_cmds=$lt_archive_cmds
9626archive_expsym_cmds=$lt_archive_expsym_cmds
9627postinstall_cmds=$lt_postinstall_cmds
9628postuninstall_cmds=$lt_postuninstall_cmds
9629
9630# Commands used to build a loadable module (assumed same as above if empty)
9631module_cmds=$lt_module_cmds
9632module_expsym_cmds=$lt_module_expsym_cmds
9633
9634# Commands to strip libraries.
9635old_striplib=$lt_old_striplib
9636striplib=$lt_striplib
9637
9638# Dependencies to place before the objects being linked to create a
9639# shared library.
9640predep_objects=$lt_predep_objects
9641
9642# Dependencies to place after the objects being linked to create a
9643# shared library.
9644postdep_objects=$lt_postdep_objects
9645
9646# Dependencies to place before the objects being linked to create a
9647# shared library.
9648predeps=$lt_predeps
9649
9650# Dependencies to place after the objects being linked to create a
9651# shared library.
9652postdeps=$lt_postdeps
9653
9654# The library search path used internally by the compiler when linking
9655# a shared library.
9656compiler_lib_search_path=$lt_compiler_lib_search_path
9657
9658# Method to check whether dependent libraries are shared objects.
9659deplibs_check_method=$lt_deplibs_check_method
9660
9661# Command to use when deplibs_check_method == file_magic.
9662file_magic_cmd=$lt_file_magic_cmd
9663
9664# Flag that allows shared libraries with undefined symbols to be built.
9665allow_undefined_flag=$lt_allow_undefined_flag
9666
9667# Flag that forces no undefined symbols.
9668no_undefined_flag=$lt_no_undefined_flag
9669
9670# Commands used to finish a libtool library installation in a directory.
9671finish_cmds=$lt_finish_cmds
9672
9673# Same as above, but a single script fragment to be evaled but not shown.
9674finish_eval=$lt_finish_eval
9675
9676# Take the output of nm and produce a listing of raw symbols and C names.
9677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9678
9679# Transform the output of nm in a proper C declaration
9680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9681
9682# Transform the output of nm in a C name address pair
9683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9684
9685# This is the shared library runtime path variable.
9686runpath_var=$runpath_var
9687
9688# This is the shared library path variable.
9689shlibpath_var=$shlibpath_var
9690
9691# Is shlibpath searched before the hard-coded library search path?
9692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9693
9694# How to hardcode a shared library path into an executable.
9695hardcode_action=$hardcode_action
9696
9697# Whether we should hardcode library paths into libraries.
9698hardcode_into_libs=$hardcode_into_libs
9699
9700# Flag to hardcode \$libdir into a binary during linking.
9701# This must work even if \$libdir does not exist.
9702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9703
9704# If ld is used when linking, flag to hardcode \$libdir into
9705# a binary during linking. This must work even if \$libdir does
9706# not exist.
9707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9708
9709# Whether we need a single -rpath flag with a separated argument.
9710hardcode_libdir_separator=$lt_hardcode_libdir_separator
9711
9712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9713# resulting binary.
9714hardcode_direct=$hardcode_direct
9715
9716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9717# resulting binary.
9718hardcode_minus_L=$hardcode_minus_L
9719
9720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9721# the resulting binary.
9722hardcode_shlibpath_var=$hardcode_shlibpath_var
9723
9724# Set to yes if building a shared library automatically hardcodes DIR into the library
9725# and all subsequent libraries and executables linked against it.
9726hardcode_automatic=$hardcode_automatic
9727
9728# Variables whose values should be saved in libtool wrapper scripts and
9729# restored at relink time.
9730variables_saved_for_relink="$variables_saved_for_relink"
9731
9732# Whether libtool must link a program against all its dependency libraries.
9733link_all_deplibs=$link_all_deplibs
9734
9735# Compile-time system search path for libraries
9736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9737
9738# Run-time system search path for libraries
9739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9740
9741# Fix the shell variable \$srcfile for the compiler.
9742fix_srcfile_path="$fix_srcfile_path"
9743
9744# Set to yes if exported symbols are required.
9745always_export_symbols=$always_export_symbols
9746
9747# The commands to list exported symbols.
9748export_symbols_cmds=$lt_export_symbols_cmds
9749
9750# The commands to extract the exported symbol list from a shared archive.
9751extract_expsyms_cmds=$lt_extract_expsyms_cmds
9752
9753# Symbols that should not be listed in the preloaded symbols.
9754exclude_expsyms=$lt_exclude_expsyms
9755
9756# Symbols that must always be exported.
9757include_expsyms=$lt_include_expsyms
9758
9759# ### END LIBTOOL CONFIG
9760
9761__EOF__
9762
9763
9764  case $host_os in
9765  aix3*)
9766    cat <<\EOF >> "$cfgfile"
9767
9768# AIX sometimes has problems with the GCC collect2 program.  For some
9769# reason, if we set the COLLECT_NAMES environment variable, the problems
9770# vanish in a puff of smoke.
9771if test "X${COLLECT_NAMES+set}" != Xset; then
9772  COLLECT_NAMES=
9773  export COLLECT_NAMES
9774fi
9775EOF
9776    ;;
9777  esac
9778
9779  # We use sed instead of cat because bash on DJGPP gets confused if
9780  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9781  # text mode, it properly converts lines to CR/LF.  This bash problem
9782  # is reportedly fixed, but why not run on old versions too?
9783  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9784
9785  mv -f "$cfgfile" "$ofile" || \
9786    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9787  chmod +x "$ofile"
9788
9789else
9790  # If there is no Makefile yet, we rely on a make rule to execute
9791  # `config.status --recheck' to rerun these tests and create the
9792  # libtool script then.
9793  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9794  if test -f "$ltmain_in"; then
9795    test -f Makefile && make "$ltmain"
9796  fi
9797fi
9798
9799
9800ac_ext=c
9801ac_cpp='$CPP $CPPFLAGS'
9802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805
9806CC="$lt_save_CC"
9807
9808
9809# Check whether --with-tags or --without-tags was given.
9810if test "${with_tags+set}" = set; then
9811  withval="$with_tags"
9812  tagnames="$withval"
9813fi;
9814
9815if test -f "$ltmain" && test -n "$tagnames"; then
9816  if test ! -f "${ofile}"; then
9817    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9818echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9819  fi
9820
9821  if test -z "$LTCC"; then
9822    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9823    if test -z "$LTCC"; then
9824      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9825echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9826    else
9827      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9828echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9829    fi
9830  fi
9831
9832  # Extract list of available tagged configurations in $ofile.
9833  # Note that this assumes the entire list is on one line.
9834  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9835
9836  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9837  for tagname in $tagnames; do
9838    IFS="$lt_save_ifs"
9839    # Check whether tagname contains only valid characters
9840    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9841    "") ;;
9842    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9843echo "$as_me: error: invalid tag name: $tagname" >&2;}
9844   { (exit 1); exit 1; }; }
9845	;;
9846    esac
9847
9848    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9849    then
9850      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9851echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9852   { (exit 1); exit 1; }; }
9853    fi
9854
9855    # Update the list of available tags.
9856    if test -n "$tagname"; then
9857      echo appending configuration tag \"$tagname\" to $ofile
9858
9859      case $tagname in
9860      CXX)
9861	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9862	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9863	    (test "X$CXX" != "Xg++"))) ; then
9864	  ac_ext=cc
9865ac_cpp='$CXXCPP $CPPFLAGS'
9866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9869
9870
9871
9872
9873archive_cmds_need_lc_CXX=no
9874allow_undefined_flag_CXX=
9875always_export_symbols_CXX=no
9876archive_expsym_cmds_CXX=
9877export_dynamic_flag_spec_CXX=
9878hardcode_direct_CXX=no
9879hardcode_libdir_flag_spec_CXX=
9880hardcode_libdir_flag_spec_ld_CXX=
9881hardcode_libdir_separator_CXX=
9882hardcode_minus_L_CXX=no
9883hardcode_automatic_CXX=no
9884module_cmds_CXX=
9885module_expsym_cmds_CXX=
9886link_all_deplibs_CXX=unknown
9887old_archive_cmds_CXX=$old_archive_cmds
9888no_undefined_flag_CXX=
9889whole_archive_flag_spec_CXX=
9890enable_shared_with_static_runtimes_CXX=no
9891
9892# Dependencies to place before and after the object being linked:
9893predep_objects_CXX=
9894postdep_objects_CXX=
9895predeps_CXX=
9896postdeps_CXX=
9897compiler_lib_search_path_CXX=
9898
9899# Source file extension for C++ test sources.
9900ac_ext=cpp
9901
9902# Object file extension for compiled C++ test sources.
9903objext=o
9904objext_CXX=$objext
9905
9906# Code to be used in simple compile tests
9907lt_simple_compile_test_code="int some_variable = 0;\n"
9908
9909# Code to be used in simple link tests
9910lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9911
9912# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9913
9914# If no C compiler was specified, use CC.
9915LTCC=${LTCC-"$CC"}
9916
9917# Allow CC to be a program name with arguments.
9918compiler=$CC
9919
9920
9921# save warnings/boilerplate of simple test code
9922ac_outfile=conftest.$ac_objext
9923printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9924eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9925_lt_compiler_boilerplate=`cat conftest.err`
9926$rm conftest*
9927
9928ac_outfile=conftest.$ac_objext
9929printf "$lt_simple_link_test_code" >conftest.$ac_ext
9930eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9931_lt_linker_boilerplate=`cat conftest.err`
9932$rm conftest*
9933
9934
9935# Allow CC to be a program name with arguments.
9936lt_save_CC=$CC
9937lt_save_LD=$LD
9938lt_save_GCC=$GCC
9939GCC=$GXX
9940lt_save_with_gnu_ld=$with_gnu_ld
9941lt_save_path_LD=$lt_cv_path_LD
9942if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9943  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9944else
9945  unset lt_cv_prog_gnu_ld
9946fi
9947if test -n "${lt_cv_path_LDCXX+set}"; then
9948  lt_cv_path_LD=$lt_cv_path_LDCXX
9949else
9950  unset lt_cv_path_LD
9951fi
9952test -z "${LDCXX+set}" || LD=$LDCXX
9953CC=${CXX-"c++"}
9954compiler=$CC
9955compiler_CXX=$CC
9956for cc_temp in $compiler""; do
9957  case $cc_temp in
9958    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9959    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9960    \-*) ;;
9961    *) break;;
9962  esac
9963done
9964cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9965
9966
9967# We don't want -fno-exception wen compiling C++ code, so set the
9968# no_builtin_flag separately
9969if test "$GXX" = yes; then
9970  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9971else
9972  lt_prog_compiler_no_builtin_flag_CXX=
9973fi
9974
9975if test "$GXX" = yes; then
9976  # Set up default GNU C++ configuration
9977
9978
9979# Check whether --with-gnu-ld or --without-gnu-ld was given.
9980if test "${with_gnu_ld+set}" = set; then
9981  withval="$with_gnu_ld"
9982  test "$withval" = no || with_gnu_ld=yes
9983else
9984  with_gnu_ld=no
9985fi;
9986ac_prog=ld
9987if test "$GCC" = yes; then
9988  # Check if gcc -print-prog-name=ld gives a path.
9989  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9990echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9991  case $host in
9992  *-*-mingw*)
9993    # gcc leaves a trailing carriage return which upsets mingw
9994    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9995  *)
9996    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9997  esac
9998  case $ac_prog in
9999    # Accept absolute paths.
10000    [\\/]* | ?:[\\/]*)
10001      re_direlt='/[^/][^/]*/\.\./'
10002      # Canonicalize the pathname of ld
10003      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10004      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10005	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10006      done
10007      test -z "$LD" && LD="$ac_prog"
10008      ;;
10009  "")
10010    # If it fails, then pretend we aren't using GCC.
10011    ac_prog=ld
10012    ;;
10013  *)
10014    # If it is relative, then search for the first ld in PATH.
10015    with_gnu_ld=unknown
10016    ;;
10017  esac
10018elif test "$with_gnu_ld" = yes; then
10019  echo "$as_me:$LINENO: checking for GNU ld" >&5
10020echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10021else
10022  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10023echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10024fi
10025if test "${lt_cv_path_LD+set}" = set; then
10026  echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028  if test -z "$LD"; then
10029  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10030  for ac_dir in $PATH; do
10031    IFS="$lt_save_ifs"
10032    test -z "$ac_dir" && ac_dir=.
10033    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10034      lt_cv_path_LD="$ac_dir/$ac_prog"
10035      # Check to see if the program is GNU ld.  I'd rather use --version,
10036      # but apparently some variants of GNU ld only accept -v.
10037      # Break only if it was the GNU/non-GNU ld that we prefer.
10038      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10039      *GNU* | *'with BFD'*)
10040	test "$with_gnu_ld" != no && break
10041	;;
10042      *)
10043	test "$with_gnu_ld" != yes && break
10044	;;
10045      esac
10046    fi
10047  done
10048  IFS="$lt_save_ifs"
10049else
10050  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10051fi
10052fi
10053
10054LD="$lt_cv_path_LD"
10055if test -n "$LD"; then
10056  echo "$as_me:$LINENO: result: $LD" >&5
10057echo "${ECHO_T}$LD" >&6
10058else
10059  echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061fi
10062test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10063echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10064   { (exit 1); exit 1; }; }
10065echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10066echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10067if test "${lt_cv_prog_gnu_ld+set}" = set; then
10068  echo $ECHO_N "(cached) $ECHO_C" >&6
10069else
10070  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10071case `$LD -v 2>&1 </dev/null` in
10072*GNU* | *'with BFD'*)
10073  lt_cv_prog_gnu_ld=yes
10074  ;;
10075*)
10076  lt_cv_prog_gnu_ld=no
10077  ;;
10078esac
10079fi
10080echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10081echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10082with_gnu_ld=$lt_cv_prog_gnu_ld
10083
10084
10085
10086  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10087  # archiving commands below assume that GNU ld is being used.
10088  if test "$with_gnu_ld" = yes; then
10089    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10090    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'
10091
10092    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10093    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10094
10095    # If archive_cmds runs LD, not CC, wlarc should be empty
10096    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10097    #     investigate it a little bit more. (MM)
10098    wlarc='${wl}'
10099
10100    # ancient GNU ld didn't support --whole-archive et. al.
10101    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10102	grep 'no-whole-archive' > /dev/null; then
10103      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10104    else
10105      whole_archive_flag_spec_CXX=
10106    fi
10107  else
10108    with_gnu_ld=no
10109    wlarc=
10110
10111    # A generic and very simple default shared library creation
10112    # command for GNU C++ for the case where it uses the native
10113    # linker, instead of GNU ld.  If possible, this setting should
10114    # overridden to take advantage of the native linker features on
10115    # the platform it is being used on.
10116    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10117  fi
10118
10119  # Commands to make compiler produce verbose output that lists
10120  # what "hidden" libraries, object files and flags are used when
10121  # linking a shared library.
10122  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10123
10124else
10125  GXX=no
10126  with_gnu_ld=no
10127  wlarc=
10128fi
10129
10130# PORTME: fill in a description of your system's C++ link characteristics
10131echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10132echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10133ld_shlibs_CXX=yes
10134case $host_os in
10135  aix3*)
10136    # FIXME: insert proper C++ library support
10137    ld_shlibs_CXX=no
10138    ;;
10139  aix4* | aix5*)
10140    if test "$host_cpu" = ia64; then
10141      # On IA64, the linker does run time linking by default, so we don't
10142      # have to do anything special.
10143      aix_use_runtimelinking=no
10144      exp_sym_flag='-Bexport'
10145      no_entry_flag=""
10146    else
10147      aix_use_runtimelinking=no
10148
10149      # Test if we are trying to use run time linking or normal
10150      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10151      # need to do runtime linking.
10152      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10153	for ld_flag in $LDFLAGS; do
10154	  case $ld_flag in
10155	  *-brtl*)
10156	    aix_use_runtimelinking=yes
10157	    break
10158	    ;;
10159	  esac
10160	done
10161      esac
10162
10163      exp_sym_flag='-bexport'
10164      no_entry_flag='-bnoentry'
10165    fi
10166
10167    # When large executables or shared objects are built, AIX ld can
10168    # have problems creating the table of contents.  If linking a library
10169    # or program results in "error TOC overflow" add -mminimal-toc to
10170    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10171    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10172
10173    archive_cmds_CXX=''
10174    hardcode_direct_CXX=yes
10175    hardcode_libdir_separator_CXX=':'
10176    link_all_deplibs_CXX=yes
10177
10178    if test "$GXX" = yes; then
10179      case $host_os in aix4.[012]|aix4.[012].*)
10180      # We only want to do this on AIX 4.2 and lower, the check
10181      # below for broken collect2 doesn't work under 4.3+
10182	collect2name=`${CC} -print-prog-name=collect2`
10183	if test -f "$collect2name" && \
10184	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10185	then
10186	  # We have reworked collect2
10187	  hardcode_direct_CXX=yes
10188	else
10189	  # We have old collect2
10190	  hardcode_direct_CXX=unsupported
10191	  # It fails to find uninstalled libraries when the uninstalled
10192	  # path is not listed in the libpath.  Setting hardcode_minus_L
10193	  # to unsupported forces relinking
10194	  hardcode_minus_L_CXX=yes
10195	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10196	  hardcode_libdir_separator_CXX=
10197	fi
10198      esac
10199      shared_flag='-shared'
10200      if test "$aix_use_runtimelinking" = yes; then
10201	shared_flag="$shared_flag "'${wl}-G'
10202      fi
10203    else
10204      # not using gcc
10205      if test "$host_cpu" = ia64; then
10206	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10207	# chokes on -Wl,-G. The following line is correct:
10208	shared_flag='-G'
10209      else
10210	if test "$aix_use_runtimelinking" = yes; then
10211	  shared_flag='${wl}-G'
10212	else
10213	  shared_flag='${wl}-bM:SRE'
10214	fi
10215      fi
10216    fi
10217
10218    # It seems that -bexpall does not export symbols beginning with
10219    # underscore (_), so it is better to generate a list of symbols to export.
10220    always_export_symbols_CXX=yes
10221    if test "$aix_use_runtimelinking" = yes; then
10222      # Warning - without using the other runtime loading flags (-brtl),
10223      # -berok will link without error, but may produce a broken library.
10224      allow_undefined_flag_CXX='-berok'
10225      # Determine the default libpath from the value encoded in an empty executable.
10226      cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h.  */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h.  */
10232
10233int
10234main ()
10235{
10236
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241rm -f conftest.$ac_objext conftest$ac_exeext
10242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10243  (eval $ac_link) 2>conftest.er1
10244  ac_status=$?
10245  grep -v '^ *+' conftest.er1 >conftest.err
10246  rm -f conftest.er1
10247  cat conftest.err >&5
10248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249  (exit $ac_status); } &&
10250	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252  (eval $ac_try) 2>&5
10253  ac_status=$?
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); }; } &&
10256	 { ac_try='test -s conftest$ac_exeext'
10257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258  (eval $ac_try) 2>&5
10259  ac_status=$?
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); }; }; then
10262
10263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10264}'`
10265# Check for a 64-bit object if we didn't find anything.
10266if 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; }
10267}'`; fi
10268else
10269  echo "$as_me: failed program was:" >&5
10270sed 's/^/| /' conftest.$ac_ext >&5
10271
10272fi
10273rm -f conftest.err conftest.$ac_objext \
10274      conftest$ac_exeext conftest.$ac_ext
10275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10276
10277      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10278
10279      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10280     else
10281      if test "$host_cpu" = ia64; then
10282	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10283	allow_undefined_flag_CXX="-z nodefs"
10284	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10285      else
10286	# Determine the default libpath from the value encoded in an empty executable.
10287	cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h.  */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h.  */
10293
10294int
10295main ()
10296{
10297
10298  ;
10299  return 0;
10300}
10301_ACEOF
10302rm -f conftest.$ac_objext conftest$ac_exeext
10303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304  (eval $ac_link) 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } &&
10311	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313  (eval $ac_try) 2>&5
10314  ac_status=$?
10315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316  (exit $ac_status); }; } &&
10317	 { ac_try='test -s conftest$ac_exeext'
10318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319  (eval $ac_try) 2>&5
10320  ac_status=$?
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); }; }; then
10323
10324aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10325}'`
10326# Check for a 64-bit object if we didn't find anything.
10327if 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; }
10328}'`; fi
10329else
10330  echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
10333fi
10334rm -f conftest.err conftest.$ac_objext \
10335      conftest$ac_exeext conftest.$ac_ext
10336if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10337
10338	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10339	# Warning - without using the other run time loading flags,
10340	# -berok will link without error, but may produce a broken library.
10341	no_undefined_flag_CXX=' ${wl}-bernotok'
10342	allow_undefined_flag_CXX=' ${wl}-berok'
10343	# -bexpall does not export symbols beginning with underscore (_)
10344	always_export_symbols_CXX=yes
10345	# Exported symbols can be pulled into shared objects from archives
10346	whole_archive_flag_spec_CXX=' '
10347	archive_cmds_need_lc_CXX=yes
10348	# This is similar to how AIX traditionally builds its shared libraries.
10349	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10350      fi
10351    fi
10352    ;;
10353  chorus*)
10354    case $cc_basename in
10355      *)
10356	# FIXME: insert proper C++ library support
10357	ld_shlibs_CXX=no
10358	;;
10359    esac
10360    ;;
10361
10362
10363  cygwin* | mingw* | pw32*)
10364    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10365    # as there is no search path for DLLs.
10366    hardcode_libdir_flag_spec_CXX='-L$libdir'
10367    allow_undefined_flag_CXX=unsupported
10368    always_export_symbols_CXX=no
10369    enable_shared_with_static_runtimes_CXX=yes
10370
10371    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10372      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10373      # If the export-symbols file already is a .def file (1st line
10374      # is EXPORTS), use it as is; otherwise, prepend...
10375      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10376	cp $export_symbols $output_objdir/$soname.def;
10377      else
10378	echo EXPORTS > $output_objdir/$soname.def;
10379	cat $export_symbols >> $output_objdir/$soname.def;
10380      fi~
10381      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10382    else
10383      ld_shlibs_CXX=no
10384    fi
10385  ;;
10386      darwin* | rhapsody*)
10387        case $host_os in
10388        rhapsody* | darwin1.[012])
10389         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10390         ;;
10391       *) # Darwin 1.3 on
10392         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10393           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10394         else
10395           case ${MACOSX_DEPLOYMENT_TARGET} in
10396             10.[012])
10397               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10398               ;;
10399             10.*)
10400               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10401               ;;
10402           esac
10403         fi
10404         ;;
10405        esac
10406      archive_cmds_need_lc_CXX=no
10407      hardcode_direct_CXX=no
10408      hardcode_automatic_CXX=yes
10409      hardcode_shlibpath_var_CXX=unsupported
10410      whole_archive_flag_spec_CXX=''
10411      link_all_deplibs_CXX=yes
10412
10413    if test "$GXX" = yes ; then
10414      lt_int_apple_cc_single_mod=no
10415      output_verbose_link_cmd='echo'
10416      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10417       lt_int_apple_cc_single_mod=yes
10418      fi
10419      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10420       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10421      else
10422          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'
10423        fi
10424        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10425        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10426          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10427            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}'
10428          else
10429            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}'
10430          fi
10431            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}'
10432      else
10433      case $cc_basename in
10434        xlc*)
10435         output_verbose_link_cmd='echo'
10436          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'
10437          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10438          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10439          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}'
10440          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}'
10441          ;;
10442       *)
10443         ld_shlibs_CXX=no
10444          ;;
10445      esac
10446      fi
10447        ;;
10448
10449  dgux*)
10450    case $cc_basename in
10451      ec++*)
10452	# FIXME: insert proper C++ library support
10453	ld_shlibs_CXX=no
10454	;;
10455      ghcx*)
10456	# Green Hills C++ Compiler
10457	# FIXME: insert proper C++ library support
10458	ld_shlibs_CXX=no
10459	;;
10460      *)
10461	# FIXME: insert proper C++ library support
10462	ld_shlibs_CXX=no
10463	;;
10464    esac
10465    ;;
10466  freebsd[12]*)
10467    # C++ shared libraries reported to be fairly broken before switch to ELF
10468    ld_shlibs_CXX=no
10469    ;;
10470  freebsd-elf*)
10471    archive_cmds_need_lc_CXX=no
10472    ;;
10473  freebsd* | kfreebsd*-gnu | dragonfly*)
10474    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10475    # conventions
10476    ld_shlibs_CXX=yes
10477    ;;
10478  gnu*)
10479    ;;
10480  hpux9*)
10481    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10482    hardcode_libdir_separator_CXX=:
10483    export_dynamic_flag_spec_CXX='${wl}-E'
10484    hardcode_direct_CXX=yes
10485    hardcode_minus_L_CXX=yes # Not in the search PATH,
10486				# but as the default
10487				# location of the library.
10488
10489    case $cc_basename in
10490    CC*)
10491      # FIXME: insert proper C++ library support
10492      ld_shlibs_CXX=no
10493      ;;
10494    aCC*)
10495      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'
10496      # Commands to make compiler produce verbose output that lists
10497      # what "hidden" libraries, object files and flags are used when
10498      # linking a shared library.
10499      #
10500      # There doesn't appear to be a way to prevent this compiler from
10501      # explicitly linking system object files so we need to strip them
10502      # from the output so that they don't get included in the library
10503      # dependencies.
10504      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'
10505      ;;
10506    *)
10507      if test "$GXX" = yes; then
10508        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'
10509      else
10510        # FIXME: insert proper C++ library support
10511        ld_shlibs_CXX=no
10512      fi
10513      ;;
10514    esac
10515    ;;
10516  hpux10*|hpux11*)
10517    if test $with_gnu_ld = no; then
10518      case $host_cpu in
10519      hppa*64*)
10520	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10521	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10522	hardcode_libdir_separator_CXX=:
10523        ;;
10524      ia64*)
10525	hardcode_libdir_flag_spec_CXX='-L$libdir'
10526        ;;
10527      *)
10528	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10529	hardcode_libdir_separator_CXX=:
10530	export_dynamic_flag_spec_CXX='${wl}-E'
10531        ;;
10532      esac
10533    fi
10534    case $host_cpu in
10535    hppa*64*)
10536      hardcode_direct_CXX=no
10537      hardcode_shlibpath_var_CXX=no
10538      ;;
10539    ia64*)
10540      hardcode_direct_CXX=no
10541      hardcode_shlibpath_var_CXX=no
10542      hardcode_minus_L_CXX=yes # Not in the search PATH,
10543					      # but as the default
10544					      # location of the library.
10545      ;;
10546    *)
10547      hardcode_direct_CXX=yes
10548      hardcode_minus_L_CXX=yes # Not in the search PATH,
10549					      # but as the default
10550					      # location of the library.
10551      ;;
10552    esac
10553
10554    case $cc_basename in
10555      CC*)
10556	# FIXME: insert proper C++ library support
10557	ld_shlibs_CXX=no
10558	;;
10559      aCC*)
10560	case $host_cpu in
10561	hppa*64*|ia64*)
10562	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10563	  ;;
10564	*)
10565	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10566	  ;;
10567	esac
10568	# Commands to make compiler produce verbose output that lists
10569	# what "hidden" libraries, object files and flags are used when
10570	# linking a shared library.
10571	#
10572	# There doesn't appear to be a way to prevent this compiler from
10573	# explicitly linking system object files so we need to strip them
10574	# from the output so that they don't get included in the library
10575	# dependencies.
10576	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'
10577	;;
10578      *)
10579	if test "$GXX" = yes; then
10580	  if test $with_gnu_ld = no; then
10581	    case $host_cpu in
10582	    ia64*|hppa*64*)
10583	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10584	      ;;
10585	    *)
10586	      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'
10587	      ;;
10588	    esac
10589	  fi
10590	else
10591	  # FIXME: insert proper C++ library support
10592	  ld_shlibs_CXX=no
10593	fi
10594	;;
10595    esac
10596    ;;
10597  irix5* | irix6*)
10598    case $cc_basename in
10599      CC*)
10600	# SGI C++
10601	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'
10602
10603	# Archives containing C++ object files must be created using
10604	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10605	# necessary to make sure instantiated templates are included
10606	# in the archive.
10607	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10608	;;
10609      *)
10610	if test "$GXX" = yes; then
10611	  if test "$with_gnu_ld" = no; then
10612	    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'
10613	  else
10614	    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'
10615	  fi
10616	fi
10617	link_all_deplibs_CXX=yes
10618	;;
10619    esac
10620    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10621    hardcode_libdir_separator_CXX=:
10622    ;;
10623  linux*)
10624    case $cc_basename in
10625      KCC*)
10626	# Kuck and Associates, Inc. (KAI) C++ Compiler
10627
10628	# KCC will only create a shared library if the output file
10629	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10630	# to its proper name (with version) after linking.
10631	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'
10632	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'
10633	# Commands to make compiler produce verbose output that lists
10634	# what "hidden" libraries, object files and flags are used when
10635	# linking a shared library.
10636	#
10637	# There doesn't appear to be a way to prevent this compiler from
10638	# explicitly linking system object files so we need to strip them
10639	# from the output so that they don't get included in the library
10640	# dependencies.
10641	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'
10642
10643	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10644	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10645
10646	# Archives containing C++ object files must be created using
10647	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10648	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10649	;;
10650      icpc*)
10651	# Intel C++
10652	with_gnu_ld=yes
10653	# version 8.0 and above of icpc choke on multiply defined symbols
10654	# if we add $predep_objects and $postdep_objects, however 7.1 and
10655	# earlier do not add the objects themselves.
10656	case `$CC -V 2>&1` in
10657	*"Version 7."*)
10658  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10659  	  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'
10660	  ;;
10661	*)  # Version 8.0 or newer
10662	  tmp_idyn=
10663	  case $host_cpu in
10664	    ia64*) tmp_idyn=' -i_dynamic';;
10665	  esac
10666  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10667	  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'
10668	  ;;
10669	esac
10670	archive_cmds_need_lc_CXX=no
10671	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10672	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10673	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10674	;;
10675      pgCC*)
10676        # Portland Group C++ compiler
10677	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10678  	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'
10679
10680	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10681	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10682	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'
10683        ;;
10684      cxx*)
10685	# Compaq C++
10686	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687	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'
10688
10689	runpath_var=LD_RUN_PATH
10690	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10691	hardcode_libdir_separator_CXX=:
10692
10693	# Commands to make compiler produce verbose output that lists
10694	# what "hidden" libraries, object files and flags are used when
10695	# linking a shared library.
10696	#
10697	# There doesn't appear to be a way to prevent this compiler from
10698	# explicitly linking system object files so we need to strip them
10699	# from the output so that they don't get included in the library
10700	# dependencies.
10701	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'
10702	;;
10703    esac
10704    ;;
10705  lynxos*)
10706    # FIXME: insert proper C++ library support
10707    ld_shlibs_CXX=no
10708    ;;
10709  m88k*)
10710    # FIXME: insert proper C++ library support
10711    ld_shlibs_CXX=no
10712    ;;
10713  mvs*)
10714    case $cc_basename in
10715      cxx*)
10716	# FIXME: insert proper C++ library support
10717	ld_shlibs_CXX=no
10718	;;
10719      *)
10720	# FIXME: insert proper C++ library support
10721	ld_shlibs_CXX=no
10722	;;
10723    esac
10724    ;;
10725  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10726    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10727      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10728      wlarc=
10729      hardcode_libdir_flag_spec_CXX='-R$libdir'
10730      hardcode_direct_CXX=yes
10731      hardcode_shlibpath_var_CXX=no
10732    fi
10733    # Workaround some broken pre-1.5 toolchains
10734    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10735    ;;
10736  openbsd2*)
10737    # C++ shared libraries are fairly broken
10738    ld_shlibs_CXX=no
10739    ;;
10740  openbsd*)
10741    hardcode_direct_CXX=yes
10742    hardcode_shlibpath_var_CXX=no
10743    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10744    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10745    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10746      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10747      export_dynamic_flag_spec_CXX='${wl}-E'
10748      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10749    fi
10750    output_verbose_link_cmd='echo'
10751    ;;
10752  osf3*)
10753    case $cc_basename in
10754      KCC*)
10755	# Kuck and Associates, Inc. (KAI) C++ Compiler
10756
10757	# KCC will only create a shared library if the output file
10758	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10759	# to its proper name (with version) after linking.
10760	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'
10761
10762	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10763	hardcode_libdir_separator_CXX=:
10764
10765	# Archives containing C++ object files must be created using
10766	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10767	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10768
10769	;;
10770      RCC*)
10771	# Rational C++ 2.4.1
10772	# FIXME: insert proper C++ library support
10773	ld_shlibs_CXX=no
10774	;;
10775      cxx*)
10776	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10777	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'
10778
10779	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10780	hardcode_libdir_separator_CXX=:
10781
10782	# Commands to make compiler produce verbose output that lists
10783	# what "hidden" libraries, object files and flags are used when
10784	# linking a shared library.
10785	#
10786	# There doesn't appear to be a way to prevent this compiler from
10787	# explicitly linking system object files so we need to strip them
10788	# from the output so that they don't get included in the library
10789	# dependencies.
10790	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'
10791	;;
10792      *)
10793	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10794	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10795	  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'
10796
10797	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10798	  hardcode_libdir_separator_CXX=:
10799
10800	  # Commands to make compiler produce verbose output that lists
10801	  # what "hidden" libraries, object files and flags are used when
10802	  # linking a shared library.
10803	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10804
10805	else
10806	  # FIXME: insert proper C++ library support
10807	  ld_shlibs_CXX=no
10808	fi
10809	;;
10810    esac
10811    ;;
10812  osf4* | osf5*)
10813    case $cc_basename in
10814      KCC*)
10815	# Kuck and Associates, Inc. (KAI) C++ Compiler
10816
10817	# KCC will only create a shared library if the output file
10818	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10819	# to its proper name (with version) after linking.
10820	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'
10821
10822	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823	hardcode_libdir_separator_CXX=:
10824
10825	# Archives containing C++ object files must be created using
10826	# the KAI C++ compiler.
10827	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10828	;;
10829      RCC*)
10830	# Rational C++ 2.4.1
10831	# FIXME: insert proper C++ library support
10832	ld_shlibs_CXX=no
10833	;;
10834      cxx*)
10835	allow_undefined_flag_CXX=' -expect_unresolved \*'
10836	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'
10837	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10838	  echo "-hidden">> $lib.exp~
10839	  $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~
10840	  $rm $lib.exp'
10841
10842	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10843	hardcode_libdir_separator_CXX=:
10844
10845	# Commands to make compiler produce verbose output that lists
10846	# what "hidden" libraries, object files and flags are used when
10847	# linking a shared library.
10848	#
10849	# There doesn't appear to be a way to prevent this compiler from
10850	# explicitly linking system object files so we need to strip them
10851	# from the output so that they don't get included in the library
10852	# dependencies.
10853	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'
10854	;;
10855      *)
10856	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10857	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10858	 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'
10859
10860	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10861	  hardcode_libdir_separator_CXX=:
10862
10863	  # Commands to make compiler produce verbose output that lists
10864	  # what "hidden" libraries, object files and flags are used when
10865	  # linking a shared library.
10866	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10867
10868	else
10869	  # FIXME: insert proper C++ library support
10870	  ld_shlibs_CXX=no
10871	fi
10872	;;
10873    esac
10874    ;;
10875  psos*)
10876    # FIXME: insert proper C++ library support
10877    ld_shlibs_CXX=no
10878    ;;
10879  sco*)
10880    archive_cmds_need_lc_CXX=no
10881    case $cc_basename in
10882      CC*)
10883	# FIXME: insert proper C++ library support
10884	ld_shlibs_CXX=no
10885	;;
10886      *)
10887	# FIXME: insert proper C++ library support
10888	ld_shlibs_CXX=no
10889	;;
10890    esac
10891    ;;
10892  sunos4*)
10893    case $cc_basename in
10894      CC*)
10895	# Sun C++ 4.x
10896	# FIXME: insert proper C++ library support
10897	ld_shlibs_CXX=no
10898	;;
10899      lcc*)
10900	# Lucid
10901	# FIXME: insert proper C++ library support
10902	ld_shlibs_CXX=no
10903	;;
10904      *)
10905	# FIXME: insert proper C++ library support
10906	ld_shlibs_CXX=no
10907	;;
10908    esac
10909    ;;
10910  solaris*)
10911    case $cc_basename in
10912      CC*)
10913	# Sun C++ 4.2, 5.x and Centerline C++
10914        archive_cmds_need_lc_CXX=yes
10915	no_undefined_flag_CXX=' -zdefs'
10916	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10917	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10918	$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'
10919
10920	hardcode_libdir_flag_spec_CXX='-R$libdir'
10921	hardcode_shlibpath_var_CXX=no
10922	case $host_os in
10923	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10924	  *)
10925	    # The C++ compiler is used as linker so we must use $wl
10926	    # flag to pass the commands to the underlying system
10927	    # linker. We must also pass each convience library through
10928	    # to the system linker between allextract/defaultextract.
10929	    # The C++ compiler will combine linker options so we
10930	    # cannot just pass the convience library names through
10931	    # without $wl.
10932	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10933	    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'
10934	    ;;
10935	esac
10936	link_all_deplibs_CXX=yes
10937
10938	output_verbose_link_cmd='echo'
10939
10940	# Archives containing C++ object files must be created using
10941	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10942	# necessary to make sure instantiated templates are included
10943	# in the archive.
10944	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10945	;;
10946      gcx*)
10947	# Green Hills C++ Compiler
10948	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10949
10950	# The C++ compiler must be used to create the archive.
10951	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10952	;;
10953      *)
10954	# GNU C++ compiler with Solaris linker
10955	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10956	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10957	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10958	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10959	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10960		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10961
10962	    # Commands to make compiler produce verbose output that lists
10963	    # what "hidden" libraries, object files and flags are used when
10964	    # linking a shared library.
10965	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10966	  else
10967	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10968	    # platform.
10969	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10971		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10972
10973	    # Commands to make compiler produce verbose output that lists
10974	    # what "hidden" libraries, object files and flags are used when
10975	    # linking a shared library.
10976	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10977	  fi
10978
10979	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10980	fi
10981	;;
10982    esac
10983    ;;
10984  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10985    archive_cmds_need_lc_CXX=no
10986    ;;
10987  tandem*)
10988    case $cc_basename in
10989      NCC*)
10990	# NonStop-UX NCC 3.20
10991	# FIXME: insert proper C++ library support
10992	ld_shlibs_CXX=no
10993	;;
10994      *)
10995	# FIXME: insert proper C++ library support
10996	ld_shlibs_CXX=no
10997	;;
10998    esac
10999    ;;
11000  vxworks*)
11001    # FIXME: insert proper C++ library support
11002    ld_shlibs_CXX=no
11003    ;;
11004  *)
11005    # FIXME: insert proper C++ library support
11006    ld_shlibs_CXX=no
11007    ;;
11008esac
11009echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11010echo "${ECHO_T}$ld_shlibs_CXX" >&6
11011test "$ld_shlibs_CXX" = no && can_build_shared=no
11012
11013GCC_CXX="$GXX"
11014LD_CXX="$LD"
11015
11016
11017cat > conftest.$ac_ext <<EOF
11018class Foo
11019{
11020public:
11021  Foo (void) { a = 0; }
11022private:
11023  int a;
11024};
11025EOF
11026
11027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028  (eval $ac_compile) 2>&5
11029  ac_status=$?
11030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031  (exit $ac_status); }; then
11032  # Parse the compiler output and extract the necessary
11033  # objects, libraries and library flags.
11034
11035  # Sentinel used to keep track of whether or not we are before
11036  # the conftest object file.
11037  pre_test_object_deps_done=no
11038
11039  # The `*' in the case matches for architectures that use `case' in
11040  # $output_verbose_cmd can trigger glob expansion during the loop
11041  # eval without this substitution.
11042  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11043
11044  for p in `eval $output_verbose_link_cmd`; do
11045    case $p in
11046
11047    -L* | -R* | -l*)
11048       # Some compilers place space between "-{L,R}" and the path.
11049       # Remove the space.
11050       if test $p = "-L" \
11051	  || test $p = "-R"; then
11052	 prev=$p
11053	 continue
11054       else
11055	 prev=
11056       fi
11057
11058       if test "$pre_test_object_deps_done" = no; then
11059	 case $p in
11060	 -L* | -R*)
11061	   # Internal compiler library paths should come after those
11062	   # provided the user.  The postdeps already come after the
11063	   # user supplied libs so there is no need to process them.
11064	   if test -z "$compiler_lib_search_path_CXX"; then
11065	     compiler_lib_search_path_CXX="${prev}${p}"
11066	   else
11067	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11068	   fi
11069	   ;;
11070	 # The "-l" case would never come before the object being
11071	 # linked, so don't bother handling this case.
11072	 esac
11073       else
11074	 if test -z "$postdeps_CXX"; then
11075	   postdeps_CXX="${prev}${p}"
11076	 else
11077	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11078	 fi
11079       fi
11080       ;;
11081
11082    *.$objext)
11083       # This assumes that the test object file only shows up
11084       # once in the compiler output.
11085       if test "$p" = "conftest.$objext"; then
11086	 pre_test_object_deps_done=yes
11087	 continue
11088       fi
11089
11090       if test "$pre_test_object_deps_done" = no; then
11091	 if test -z "$predep_objects_CXX"; then
11092	   predep_objects_CXX="$p"
11093	 else
11094	   predep_objects_CXX="$predep_objects_CXX $p"
11095	 fi
11096       else
11097	 if test -z "$postdep_objects_CXX"; then
11098	   postdep_objects_CXX="$p"
11099	 else
11100	   postdep_objects_CXX="$postdep_objects_CXX $p"
11101	 fi
11102       fi
11103       ;;
11104
11105    *) ;; # Ignore the rest.
11106
11107    esac
11108  done
11109
11110  # Clean up.
11111  rm -f a.out a.exe
11112else
11113  echo "libtool.m4: error: problem compiling CXX test program"
11114fi
11115
11116$rm -f confest.$objext
11117
11118# PORTME: override above test on systems where it is broken
11119case $host_os in
11120solaris*)
11121  case $cc_basename in
11122  CC*)
11123    # Adding this requires a known-good setup of shared libraries for
11124    # Sun compiler versions before 5.6, else PIC objects from an old
11125    # archive will be linked into the output, leading to subtle bugs.
11126    postdeps_CXX='-lCstd -lCrun'
11127    ;;
11128  esac
11129esac
11130
11131
11132case " $postdeps_CXX " in
11133*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11134esac
11135
11136lt_prog_compiler_wl_CXX=
11137lt_prog_compiler_pic_CXX=
11138lt_prog_compiler_static_CXX=
11139
11140echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11141echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11142
11143  # C++ specific cases for pic, static, wl, etc.
11144  if test "$GXX" = yes; then
11145    lt_prog_compiler_wl_CXX='-Wl,'
11146    lt_prog_compiler_static_CXX='-static'
11147
11148    case $host_os in
11149    aix*)
11150      # All AIX code is PIC.
11151      if test "$host_cpu" = ia64; then
11152	# AIX 5 now supports IA64 processor
11153	lt_prog_compiler_static_CXX='-Bstatic'
11154      fi
11155      ;;
11156    amigaos*)
11157      # FIXME: we need at least 68020 code to build shared libraries, but
11158      # adding the `-m68020' flag to GCC prevents building anything better,
11159      # like `-m68040'.
11160      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11161      ;;
11162    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11163      # PIC is the default for these OSes.
11164      ;;
11165    mingw* | os2* | pw32*)
11166      # This hack is so that the source file can tell whether it is being
11167      # built for inclusion in a dll (and should export symbols for example).
11168      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11169      ;;
11170    darwin* | rhapsody*)
11171      # PIC is the default on this platform
11172      # Common symbols not allowed in MH_DYLIB files
11173      lt_prog_compiler_pic_CXX='-fno-common'
11174      ;;
11175    *djgpp*)
11176      # DJGPP does not support shared libraries at all
11177      lt_prog_compiler_pic_CXX=
11178      ;;
11179    sysv4*MP*)
11180      if test -d /usr/nec; then
11181	lt_prog_compiler_pic_CXX=-Kconform_pic
11182      fi
11183      ;;
11184    hpux*)
11185      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11186      # not for PA HP-UX.
11187      case $host_cpu in
11188      hppa*64*|ia64*)
11189	;;
11190      *)
11191	lt_prog_compiler_pic_CXX='-fPIC'
11192	;;
11193      esac
11194      ;;
11195    *)
11196      lt_prog_compiler_pic_CXX='-fPIC'
11197      ;;
11198    esac
11199  else
11200    case $host_os in
11201      aix4* | aix5*)
11202	# All AIX code is PIC.
11203	if test "$host_cpu" = ia64; then
11204	  # AIX 5 now supports IA64 processor
11205	  lt_prog_compiler_static_CXX='-Bstatic'
11206	else
11207	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11208	fi
11209	;;
11210      chorus*)
11211	case $cc_basename in
11212	cxch68*)
11213	  # Green Hills C++ Compiler
11214	  # _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"
11215	  ;;
11216	esac
11217	;;
11218       darwin*)
11219         # PIC is the default on this platform
11220         # Common symbols not allowed in MH_DYLIB files
11221         case $cc_basename in
11222           xlc*)
11223           lt_prog_compiler_pic_CXX='-qnocommon'
11224           lt_prog_compiler_wl_CXX='-Wl,'
11225           ;;
11226         esac
11227       ;;
11228      dgux*)
11229	case $cc_basename in
11230	  ec++*)
11231	    lt_prog_compiler_pic_CXX='-KPIC'
11232	    ;;
11233	  ghcx*)
11234	    # Green Hills C++ Compiler
11235	    lt_prog_compiler_pic_CXX='-pic'
11236	    ;;
11237	  *)
11238	    ;;
11239	esac
11240	;;
11241      freebsd* | kfreebsd*-gnu | dragonfly*)
11242	# FreeBSD uses GNU C++
11243	;;
11244      hpux9* | hpux10* | hpux11*)
11245	case $cc_basename in
11246	  CC*)
11247	    lt_prog_compiler_wl_CXX='-Wl,'
11248	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11249	    if test "$host_cpu" != ia64; then
11250	      lt_prog_compiler_pic_CXX='+Z'
11251	    fi
11252	    ;;
11253	  aCC*)
11254	    lt_prog_compiler_wl_CXX='-Wl,'
11255	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11256	    case $host_cpu in
11257	    hppa*64*|ia64*)
11258	      # +Z the default
11259	      ;;
11260	    *)
11261	      lt_prog_compiler_pic_CXX='+Z'
11262	      ;;
11263	    esac
11264	    ;;
11265	  *)
11266	    ;;
11267	esac
11268	;;
11269      irix5* | irix6* | nonstopux*)
11270	case $cc_basename in
11271	  CC*)
11272	    lt_prog_compiler_wl_CXX='-Wl,'
11273	    lt_prog_compiler_static_CXX='-non_shared'
11274	    # CC pic flag -KPIC is the default.
11275	    ;;
11276	  *)
11277	    ;;
11278	esac
11279	;;
11280      linux*)
11281	case $cc_basename in
11282	  KCC*)
11283	    # KAI C++ Compiler
11284	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11285	    lt_prog_compiler_pic_CXX='-fPIC'
11286	    ;;
11287	  icpc* | ecpc*)
11288	    # Intel C++
11289	    lt_prog_compiler_wl_CXX='-Wl,'
11290	    lt_prog_compiler_pic_CXX='-KPIC'
11291	    lt_prog_compiler_static_CXX='-static'
11292	    ;;
11293	  pgCC*)
11294	    # Portland Group C++ compiler.
11295	    lt_prog_compiler_wl_CXX='-Wl,'
11296	    lt_prog_compiler_pic_CXX='-fpic'
11297	    lt_prog_compiler_static_CXX='-Bstatic'
11298	    ;;
11299	  cxx*)
11300	    # Compaq C++
11301	    # Make sure the PIC flag is empty.  It appears that all Alpha
11302	    # Linux and Compaq Tru64 Unix objects are PIC.
11303	    lt_prog_compiler_pic_CXX=
11304	    lt_prog_compiler_static_CXX='-non_shared'
11305	    ;;
11306	  *)
11307	    ;;
11308	esac
11309	;;
11310      lynxos*)
11311	;;
11312      m88k*)
11313	;;
11314      mvs*)
11315	case $cc_basename in
11316	  cxx*)
11317	    lt_prog_compiler_pic_CXX='-W c,exportall'
11318	    ;;
11319	  *)
11320	    ;;
11321	esac
11322	;;
11323      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11324	;;
11325      osf3* | osf4* | osf5*)
11326	case $cc_basename in
11327	  KCC*)
11328	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11329	    ;;
11330	  RCC*)
11331	    # Rational C++ 2.4.1
11332	    lt_prog_compiler_pic_CXX='-pic'
11333	    ;;
11334	  cxx*)
11335	    # Digital/Compaq C++
11336	    lt_prog_compiler_wl_CXX='-Wl,'
11337	    # Make sure the PIC flag is empty.  It appears that all Alpha
11338	    # Linux and Compaq Tru64 Unix objects are PIC.
11339	    lt_prog_compiler_pic_CXX=
11340	    lt_prog_compiler_static_CXX='-non_shared'
11341	    ;;
11342	  *)
11343	    ;;
11344	esac
11345	;;
11346      psos*)
11347	;;
11348      sco*)
11349	case $cc_basename in
11350	  CC*)
11351	    lt_prog_compiler_pic_CXX='-fPIC'
11352	    ;;
11353	  *)
11354	    ;;
11355	esac
11356	;;
11357      solaris*)
11358	case $cc_basename in
11359	  CC*)
11360	    # Sun C++ 4.2, 5.x and Centerline C++
11361	    lt_prog_compiler_pic_CXX='-KPIC'
11362	    lt_prog_compiler_static_CXX='-Bstatic'
11363	    lt_prog_compiler_wl_CXX='-Qoption ld '
11364	    ;;
11365	  gcx*)
11366	    # Green Hills C++ Compiler
11367	    lt_prog_compiler_pic_CXX='-PIC'
11368	    ;;
11369	  *)
11370	    ;;
11371	esac
11372	;;
11373      sunos4*)
11374	case $cc_basename in
11375	  CC*)
11376	    # Sun C++ 4.x
11377	    lt_prog_compiler_pic_CXX='-pic'
11378	    lt_prog_compiler_static_CXX='-Bstatic'
11379	    ;;
11380	  lcc*)
11381	    # Lucid
11382	    lt_prog_compiler_pic_CXX='-pic'
11383	    ;;
11384	  *)
11385	    ;;
11386	esac
11387	;;
11388      tandem*)
11389	case $cc_basename in
11390	  NCC*)
11391	    # NonStop-UX NCC 3.20
11392	    lt_prog_compiler_pic_CXX='-KPIC'
11393	    ;;
11394	  *)
11395	    ;;
11396	esac
11397	;;
11398      unixware*)
11399	;;
11400      vxworks*)
11401	;;
11402      *)
11403	lt_prog_compiler_can_build_shared_CXX=no
11404	;;
11405    esac
11406  fi
11407
11408echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11409echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11410
11411#
11412# Check to make sure the PIC flag actually works.
11413#
11414if test -n "$lt_prog_compiler_pic_CXX"; then
11415
11416echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11417echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11418if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11419  echo $ECHO_N "(cached) $ECHO_C" >&6
11420else
11421  lt_prog_compiler_pic_works_CXX=no
11422  ac_outfile=conftest.$ac_objext
11423   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11424   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11425   # Insert the option either (1) after the last *FLAGS variable, or
11426   # (2) before a word containing "conftest.", or (3) at the end.
11427   # Note that $ac_compile itself does not contain backslashes and begins
11428   # with a dollar sign (not a hyphen), so the echo should work correctly.
11429   # The option is referenced via a variable to avoid confusing sed.
11430   lt_compile=`echo "$ac_compile" | $SED \
11431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11433   -e 's:$: $lt_compiler_flag:'`
11434   (eval echo "\"\$as_me:11434: $lt_compile\"" >&5)
11435   (eval "$lt_compile" 2>conftest.err)
11436   ac_status=$?
11437   cat conftest.err >&5
11438   echo "$as_me:11438: \$? = $ac_status" >&5
11439   if (exit $ac_status) && test -s "$ac_outfile"; then
11440     # The compiler can only warn and ignore the option if not recognized
11441     # So say no if there are warnings other than the usual output.
11442     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11443     $SED '/^$/d' conftest.err >conftest.er2
11444     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11445       lt_prog_compiler_pic_works_CXX=yes
11446     fi
11447   fi
11448   $rm conftest*
11449
11450fi
11451echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11452echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11453
11454if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11455    case $lt_prog_compiler_pic_CXX in
11456     "" | " "*) ;;
11457     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11458     esac
11459else
11460    lt_prog_compiler_pic_CXX=
11461     lt_prog_compiler_can_build_shared_CXX=no
11462fi
11463
11464fi
11465case $host_os in
11466  # For platforms which do not support PIC, -DPIC is meaningless:
11467  *djgpp*)
11468    lt_prog_compiler_pic_CXX=
11469    ;;
11470  *)
11471    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11472    ;;
11473esac
11474
11475echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11476echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11477if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11478  echo $ECHO_N "(cached) $ECHO_C" >&6
11479else
11480  lt_cv_prog_compiler_c_o_CXX=no
11481   $rm -r conftest 2>/dev/null
11482   mkdir conftest
11483   cd conftest
11484   mkdir out
11485   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11486
11487   lt_compiler_flag="-o out/conftest2.$ac_objext"
11488   # Insert the option either (1) after the last *FLAGS variable, or
11489   # (2) before a word containing "conftest.", or (3) at the end.
11490   # Note that $ac_compile itself does not contain backslashes and begins
11491   # with a dollar sign (not a hyphen), so the echo should work correctly.
11492   lt_compile=`echo "$ac_compile" | $SED \
11493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11495   -e 's:$: $lt_compiler_flag:'`
11496   (eval echo "\"\$as_me:11496: $lt_compile\"" >&5)
11497   (eval "$lt_compile" 2>out/conftest.err)
11498   ac_status=$?
11499   cat out/conftest.err >&5
11500   echo "$as_me:11500: \$? = $ac_status" >&5
11501   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11502   then
11503     # The compiler can only warn and ignore the option if not recognized
11504     # So say no if there are warnings
11505     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11506     $SED '/^$/d' out/conftest.err >out/conftest.er2
11507     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11508       lt_cv_prog_compiler_c_o_CXX=yes
11509     fi
11510   fi
11511   chmod u+w . 2>&5
11512   $rm conftest*
11513   # SGI C++ compiler will create directory out/ii_files/ for
11514   # template instantiation
11515   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11516   $rm out/* && rmdir out
11517   cd ..
11518   rmdir conftest
11519   $rm conftest*
11520
11521fi
11522echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11523echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11524
11525
11526hard_links="nottested"
11527if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11528  # do not overwrite the value of need_locks provided by the user
11529  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11530echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11531  hard_links=yes
11532  $rm conftest*
11533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11534  touch conftest.a
11535  ln conftest.a conftest.b 2>&5 || hard_links=no
11536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11537  echo "$as_me:$LINENO: result: $hard_links" >&5
11538echo "${ECHO_T}$hard_links" >&6
11539  if test "$hard_links" = no; then
11540    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11541echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11542    need_locks=warn
11543  fi
11544else
11545  need_locks=no
11546fi
11547
11548echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11549echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11550
11551  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11552  case $host_os in
11553  aix4* | aix5*)
11554    # If we're using GNU nm, then we don't want the "-C" option.
11555    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11556    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11557      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'
11558    else
11559      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'
11560    fi
11561    ;;
11562  pw32*)
11563    export_symbols_cmds_CXX="$ltdll_cmds"
11564  ;;
11565  cygwin* | mingw*)
11566    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'
11567  ;;
11568  linux*)
11569    link_all_deplibs_CXX=no
11570  ;;
11571  *)
11572    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11573  ;;
11574  esac
11575
11576echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11577echo "${ECHO_T}$ld_shlibs_CXX" >&6
11578test "$ld_shlibs_CXX" = no && can_build_shared=no
11579
11580variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11581if test "$GCC" = yes; then
11582  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11583fi
11584
11585#
11586# Do we need to explicitly link libc?
11587#
11588case "x$archive_cmds_need_lc_CXX" in
11589x|xyes)
11590  # Assume -lc should be added
11591  archive_cmds_need_lc_CXX=yes
11592
11593  if test "$enable_shared" = yes && test "$GCC" = yes; then
11594    case $archive_cmds_CXX in
11595    *'~'*)
11596      # FIXME: we may have to deal with multi-command sequences.
11597      ;;
11598    '$CC '*)
11599      # Test whether the compiler implicitly links with -lc since on some
11600      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11601      # to ld, don't add -lc before -lgcc.
11602      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11604      $rm conftest*
11605      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11606
11607      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11608  (eval $ac_compile) 2>&5
11609  ac_status=$?
11610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611  (exit $ac_status); } 2>conftest.err; then
11612        soname=conftest
11613        lib=conftest
11614        libobjs=conftest.$ac_objext
11615        deplibs=
11616        wl=$lt_prog_compiler_wl_CXX
11617        compiler_flags=-v
11618        linker_flags=-v
11619        verstring=
11620        output_objdir=.
11621        libname=conftest
11622        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11623        allow_undefined_flag_CXX=
11624        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11625  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11626  ac_status=$?
11627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628  (exit $ac_status); }
11629        then
11630	  archive_cmds_need_lc_CXX=no
11631        else
11632	  archive_cmds_need_lc_CXX=yes
11633        fi
11634        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11635      else
11636        cat conftest.err 1>&5
11637      fi
11638      $rm conftest*
11639      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11640echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11641      ;;
11642    esac
11643  fi
11644  ;;
11645esac
11646
11647echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11648echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11649library_names_spec=
11650libname_spec='lib$name'
11651soname_spec=
11652shrext_cmds=".so"
11653postinstall_cmds=
11654postuninstall_cmds=
11655finish_cmds=
11656finish_eval=
11657shlibpath_var=
11658shlibpath_overrides_runpath=unknown
11659version_type=none
11660dynamic_linker="$host_os ld.so"
11661sys_lib_dlsearch_path_spec="/lib /usr/lib"
11662if test "$GCC" = yes; then
11663  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11664  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11665    # if the path contains ";" then we assume it to be the separator
11666    # otherwise default to the standard path separator (i.e. ":") - it is
11667    # assumed that no part of a normal pathname contains ";" but that should
11668    # okay in the real world where ";" in dirpaths is itself problematic.
11669    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11670  else
11671    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11672  fi
11673else
11674  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675fi
11676need_lib_prefix=unknown
11677hardcode_into_libs=no
11678
11679# when you set need_version to no, make sure it does not cause -set_version
11680# flags to be left without arguments
11681need_version=unknown
11682
11683case $host_os in
11684aix3*)
11685  version_type=linux
11686  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11687  shlibpath_var=LIBPATH
11688
11689  # AIX 3 has no versioning support, so we append a major version to the name.
11690  soname_spec='${libname}${release}${shared_ext}$major'
11691  ;;
11692
11693aix4* | aix5*)
11694  version_type=linux
11695  need_lib_prefix=no
11696  need_version=no
11697  hardcode_into_libs=yes
11698  if test "$host_cpu" = ia64; then
11699    # AIX 5 supports IA64
11700    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11701    shlibpath_var=LD_LIBRARY_PATH
11702  else
11703    # With GCC up to 2.95.x, collect2 would create an import file
11704    # for dependence libraries.  The import file would start with
11705    # the line `#! .'.  This would cause the generated library to
11706    # depend on `.', always an invalid library.  This was fixed in
11707    # development snapshots of GCC prior to 3.0.
11708    case $host_os in
11709      aix4 | aix4.[01] | aix4.[01].*)
11710      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11711	   echo ' yes '
11712	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11713	:
11714      else
11715	can_build_shared=no
11716      fi
11717      ;;
11718    esac
11719    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11720    # soname into executable. Probably we can add versioning support to
11721    # collect2, so additional links can be useful in future.
11722    if test "$aix_use_runtimelinking" = yes; then
11723      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11724      # instead of lib<name>.a to let people know that these are not
11725      # typical AIX shared libraries.
11726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727    else
11728      # We preserve .a as extension for shared libraries through AIX4.2
11729      # and later when we are not doing run time linking.
11730      library_names_spec='${libname}${release}.a $libname.a'
11731      soname_spec='${libname}${release}${shared_ext}$major'
11732    fi
11733    shlibpath_var=LIBPATH
11734  fi
11735  ;;
11736
11737amigaos*)
11738  library_names_spec='$libname.ixlibrary $libname.a'
11739  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11740  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'
11741  ;;
11742
11743beos*)
11744  library_names_spec='${libname}${shared_ext}'
11745  dynamic_linker="$host_os ld.so"
11746  shlibpath_var=LIBRARY_PATH
11747  ;;
11748
11749bsdi[45]*)
11750  version_type=linux
11751  need_version=no
11752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753  soname_spec='${libname}${release}${shared_ext}$major'
11754  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11755  shlibpath_var=LD_LIBRARY_PATH
11756  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11757  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11758  # the default ld.so.conf also contains /usr/contrib/lib and
11759  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11760  # libtool to hard-code these into programs
11761  ;;
11762
11763cygwin* | mingw* | pw32*)
11764  version_type=windows
11765  shrext_cmds=".dll"
11766  need_version=no
11767  need_lib_prefix=no
11768
11769  case $GCC,$host_os in
11770  yes,cygwin* | yes,mingw* | yes,pw32*)
11771    library_names_spec='$libname.dll.a'
11772    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11773    postinstall_cmds='base_file=`basename \${file}`~
11774      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11775      dldir=$destdir/`dirname \$dlpath`~
11776      test -d \$dldir || mkdir -p \$dldir~
11777      $install_prog $dir/$dlname \$dldir/$dlname~
11778      chmod a+x \$dldir/$dlname'
11779    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11780      dlpath=$dir/\$dldll~
11781       $rm \$dlpath'
11782    shlibpath_overrides_runpath=yes
11783
11784    case $host_os in
11785    cygwin*)
11786      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11787      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11788      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11789      ;;
11790    mingw*)
11791      # MinGW DLLs use traditional 'lib' prefix
11792      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11793      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11794      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11795        # It is most probably a Windows format PATH printed by
11796        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11797        # path with ; separators, and with drive letters. We can handle the
11798        # drive letters (cygwin fileutils understands them), so leave them,
11799        # especially as we might pass files found there to a mingw objdump,
11800        # which wouldn't understand a cygwinified path. Ahh.
11801        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11802      else
11803        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11804      fi
11805      ;;
11806    pw32*)
11807      # pw32 DLLs use 'pw' prefix rather than 'lib'
11808      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11809      ;;
11810    esac
11811    ;;
11812
11813  *)
11814    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11815    ;;
11816  esac
11817  dynamic_linker='Win32 ld.exe'
11818  # FIXME: first we should search . and the directory the executable is in
11819  shlibpath_var=PATH
11820  ;;
11821
11822darwin* | rhapsody*)
11823  dynamic_linker="$host_os dyld"
11824  version_type=darwin
11825  need_lib_prefix=no
11826  need_version=no
11827  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11828  soname_spec='${libname}${release}${major}$shared_ext'
11829  shlibpath_overrides_runpath=yes
11830  shlibpath_var=DYLD_LIBRARY_PATH
11831  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11832  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11833  if test "$GCC" = yes; then
11834    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"`
11835  else
11836    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11837  fi
11838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11839  ;;
11840
11841dgux*)
11842  version_type=linux
11843  need_lib_prefix=no
11844  need_version=no
11845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11846  soname_spec='${libname}${release}${shared_ext}$major'
11847  shlibpath_var=LD_LIBRARY_PATH
11848  ;;
11849
11850freebsd1*)
11851  dynamic_linker=no
11852  ;;
11853
11854kfreebsd*-gnu)
11855  version_type=linux
11856  need_lib_prefix=no
11857  need_version=no
11858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11859  soname_spec='${libname}${release}${shared_ext}$major'
11860  shlibpath_var=LD_LIBRARY_PATH
11861  shlibpath_overrides_runpath=no
11862  hardcode_into_libs=yes
11863  dynamic_linker='GNU ld.so'
11864  ;;
11865
11866freebsd* | dragonfly*)
11867  # DragonFly does not have aout.  When/if they implement a new
11868  # versioning mechanism, adjust this.
11869  if test -x /usr/bin/objformat; then
11870    objformat=`/usr/bin/objformat`
11871  else
11872    case $host_os in
11873    freebsd[123]*) objformat=aout ;;
11874    *) objformat=elf ;;
11875    esac
11876  fi
11877  version_type=freebsd-$objformat
11878  case $version_type in
11879    freebsd-elf*)
11880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11881      need_version=no
11882      need_lib_prefix=no
11883      ;;
11884    freebsd-*)
11885      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11886      need_version=yes
11887      ;;
11888  esac
11889  shlibpath_var=LD_LIBRARY_PATH
11890  case $host_os in
11891  freebsd2*)
11892    shlibpath_overrides_runpath=yes
11893    ;;
11894  freebsd3.[01]* | freebsdelf3.[01]*)
11895    shlibpath_overrides_runpath=yes
11896    hardcode_into_libs=yes
11897    ;;
11898  *) # from 3.2 on
11899    shlibpath_overrides_runpath=no
11900    hardcode_into_libs=yes
11901    ;;
11902  esac
11903  ;;
11904
11905gnu*)
11906  version_type=linux
11907  need_lib_prefix=no
11908  need_version=no
11909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11910  soname_spec='${libname}${release}${shared_ext}$major'
11911  shlibpath_var=LD_LIBRARY_PATH
11912  hardcode_into_libs=yes
11913  ;;
11914
11915hpux9* | hpux10* | hpux11*)
11916  # Give a soname corresponding to the major version so that dld.sl refuses to
11917  # link against other versions.
11918  version_type=sunos
11919  need_lib_prefix=no
11920  need_version=no
11921  case $host_cpu in
11922  ia64*)
11923    shrext_cmds='.so'
11924    hardcode_into_libs=yes
11925    dynamic_linker="$host_os dld.so"
11926    shlibpath_var=LD_LIBRARY_PATH
11927    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11928    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929    soname_spec='${libname}${release}${shared_ext}$major'
11930    if test "X$HPUX_IA64_MODE" = X32; then
11931      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11932    else
11933      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11934    fi
11935    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11936    ;;
11937   hppa*64*)
11938     shrext_cmds='.sl'
11939     hardcode_into_libs=yes
11940     dynamic_linker="$host_os dld.sl"
11941     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944     soname_spec='${libname}${release}${shared_ext}$major'
11945     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11947     ;;
11948   *)
11949    shrext_cmds='.sl'
11950    dynamic_linker="$host_os dld.sl"
11951    shlibpath_var=SHLIB_PATH
11952    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11953    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954    soname_spec='${libname}${release}${shared_ext}$major'
11955    ;;
11956  esac
11957  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11958  postinstall_cmds='chmod 555 $lib'
11959  ;;
11960
11961irix5* | irix6* | nonstopux*)
11962  case $host_os in
11963    nonstopux*) version_type=nonstopux ;;
11964    *)
11965	if test "$lt_cv_prog_gnu_ld" = yes; then
11966		version_type=linux
11967	else
11968		version_type=irix
11969	fi ;;
11970  esac
11971  need_lib_prefix=no
11972  need_version=no
11973  soname_spec='${libname}${release}${shared_ext}$major'
11974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11975  case $host_os in
11976  irix5* | nonstopux*)
11977    libsuff= shlibsuff=
11978    ;;
11979  *)
11980    case $LD in # libtool.m4 will add one of these switches to LD
11981    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11982      libsuff= shlibsuff= libmagic=32-bit;;
11983    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11984      libsuff=32 shlibsuff=N32 libmagic=N32;;
11985    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11986      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11987    *) libsuff= shlibsuff= libmagic=never-match;;
11988    esac
11989    ;;
11990  esac
11991  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11992  shlibpath_overrides_runpath=no
11993  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11994  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11995  hardcode_into_libs=yes
11996  ;;
11997
11998# No shared lib support for Linux oldld, aout, or coff.
11999linux*oldld* | linux*aout* | linux*coff*)
12000  dynamic_linker=no
12001  ;;
12002
12003# This must be Linux ELF.
12004linux*)
12005  version_type=linux
12006  need_lib_prefix=no
12007  need_version=no
12008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009  soname_spec='${libname}${release}${shared_ext}$major'
12010  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12011  shlibpath_var=LD_LIBRARY_PATH
12012  shlibpath_overrides_runpath=no
12013  # This implies no fast_install, which is unacceptable.
12014  # Some rework will be needed to allow for fast_install
12015  # before this can be enabled.
12016  hardcode_into_libs=yes
12017
12018  # Append ld.so.conf contents to the search path
12019  if test -f /etc/ld.so.conf; then
12020    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' ' '`
12021    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12022  fi
12023
12024  # We used to test for /lib/ld.so.1 and disable shared libraries on
12025  # powerpc, because MkLinux only supported shared libraries with the
12026  # GNU dynamic linker.  Since this was broken with cross compilers,
12027  # most powerpc-linux boxes support dynamic linking these days and
12028  # people can always --disable-shared, the test was removed, and we
12029  # assume the GNU/Linux dynamic linker is in use.
12030  dynamic_linker='GNU/Linux ld.so'
12031  ;;
12032
12033netbsdelf*-gnu)
12034  version_type=linux
12035  need_lib_prefix=no
12036  need_version=no
12037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12038  soname_spec='${libname}${release}${shared_ext}$major'
12039  shlibpath_var=LD_LIBRARY_PATH
12040  shlibpath_overrides_runpath=no
12041  hardcode_into_libs=yes
12042  dynamic_linker='NetBSD ld.elf_so'
12043  ;;
12044
12045knetbsd*-gnu)
12046  version_type=linux
12047  need_lib_prefix=no
12048  need_version=no
12049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12050  soname_spec='${libname}${release}${shared_ext}$major'
12051  shlibpath_var=LD_LIBRARY_PATH
12052  shlibpath_overrides_runpath=no
12053  hardcode_into_libs=yes
12054  dynamic_linker='GNU ld.so'
12055  ;;
12056
12057netbsd*)
12058  version_type=sunos
12059  need_lib_prefix=no
12060  need_version=no
12061  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12062    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12063    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12064    dynamic_linker='NetBSD (a.out) ld.so'
12065  else
12066    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12067    soname_spec='${libname}${release}${shared_ext}$major'
12068    dynamic_linker='NetBSD ld.elf_so'
12069  fi
12070  shlibpath_var=LD_LIBRARY_PATH
12071  shlibpath_overrides_runpath=yes
12072  hardcode_into_libs=yes
12073  ;;
12074
12075newsos6)
12076  version_type=linux
12077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12078  shlibpath_var=LD_LIBRARY_PATH
12079  shlibpath_overrides_runpath=yes
12080  ;;
12081
12082nto-qnx*)
12083  version_type=linux
12084  need_lib_prefix=no
12085  need_version=no
12086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087  soname_spec='${libname}${release}${shared_ext}$major'
12088  shlibpath_var=LD_LIBRARY_PATH
12089  shlibpath_overrides_runpath=yes
12090  ;;
12091
12092openbsd*)
12093  version_type=sunos
12094  need_lib_prefix=no
12095  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12096  case $host_os in
12097    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12098    *)                         need_version=no  ;;
12099  esac
12100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12101  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12102  shlibpath_var=LD_LIBRARY_PATH
12103  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12104    case $host_os in
12105      openbsd2.[89] | openbsd2.[89].*)
12106	shlibpath_overrides_runpath=no
12107	;;
12108      *)
12109	shlibpath_overrides_runpath=yes
12110	;;
12111      esac
12112  else
12113    shlibpath_overrides_runpath=yes
12114  fi
12115  ;;
12116
12117os2*)
12118  libname_spec='$name'
12119  shrext_cmds=".dll"
12120  need_lib_prefix=no
12121  library_names_spec='$libname${shared_ext} $libname.a'
12122  dynamic_linker='OS/2 ld.exe'
12123  shlibpath_var=LIBPATH
12124  ;;
12125
12126osf3* | osf4* | osf5*)
12127  version_type=osf
12128  need_lib_prefix=no
12129  need_version=no
12130  soname_spec='${libname}${release}${shared_ext}$major'
12131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132  shlibpath_var=LD_LIBRARY_PATH
12133  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12134  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12135  ;;
12136
12137sco3.2v5*)
12138  version_type=osf
12139  soname_spec='${libname}${release}${shared_ext}$major'
12140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141  shlibpath_var=LD_LIBRARY_PATH
12142  ;;
12143
12144solaris*)
12145  version_type=linux
12146  need_lib_prefix=no
12147  need_version=no
12148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149  soname_spec='${libname}${release}${shared_ext}$major'
12150  shlibpath_var=LD_LIBRARY_PATH
12151  shlibpath_overrides_runpath=yes
12152  hardcode_into_libs=yes
12153  # ldd complains unless libraries are executable
12154  postinstall_cmds='chmod +x $lib'
12155  ;;
12156
12157sunos4*)
12158  version_type=sunos
12159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12160  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12161  shlibpath_var=LD_LIBRARY_PATH
12162  shlibpath_overrides_runpath=yes
12163  if test "$with_gnu_ld" = yes; then
12164    need_lib_prefix=no
12165  fi
12166  need_version=yes
12167  ;;
12168
12169sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12170  version_type=linux
12171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172  soname_spec='${libname}${release}${shared_ext}$major'
12173  shlibpath_var=LD_LIBRARY_PATH
12174  case $host_vendor in
12175    sni)
12176      shlibpath_overrides_runpath=no
12177      need_lib_prefix=no
12178      export_dynamic_flag_spec='${wl}-Blargedynsym'
12179      runpath_var=LD_RUN_PATH
12180      ;;
12181    siemens)
12182      need_lib_prefix=no
12183      ;;
12184    motorola)
12185      need_lib_prefix=no
12186      need_version=no
12187      shlibpath_overrides_runpath=no
12188      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12189      ;;
12190  esac
12191  ;;
12192
12193sysv4*MP*)
12194  if test -d /usr/nec ;then
12195    version_type=linux
12196    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12197    soname_spec='$libname${shared_ext}.$major'
12198    shlibpath_var=LD_LIBRARY_PATH
12199  fi
12200  ;;
12201
12202uts4*)
12203  version_type=linux
12204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205  soname_spec='${libname}${release}${shared_ext}$major'
12206  shlibpath_var=LD_LIBRARY_PATH
12207  ;;
12208
12209*)
12210  dynamic_linker=no
12211  ;;
12212esac
12213echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12214echo "${ECHO_T}$dynamic_linker" >&6
12215test "$dynamic_linker" = no && can_build_shared=no
12216
12217echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12218echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12219hardcode_action_CXX=
12220if test -n "$hardcode_libdir_flag_spec_CXX" || \
12221   test -n "$runpath_var_CXX" || \
12222   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12223
12224  # We can hardcode non-existant directories.
12225  if test "$hardcode_direct_CXX" != no &&
12226     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12227     # have to relink, otherwise we might link with an installed library
12228     # when we should be linking with a yet-to-be-installed one
12229     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12230     test "$hardcode_minus_L_CXX" != no; then
12231    # Linking always hardcodes the temporary library directory.
12232    hardcode_action_CXX=relink
12233  else
12234    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12235    hardcode_action_CXX=immediate
12236  fi
12237else
12238  # We cannot hardcode anything, or else we can only hardcode existing
12239  # directories.
12240  hardcode_action_CXX=unsupported
12241fi
12242echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12243echo "${ECHO_T}$hardcode_action_CXX" >&6
12244
12245if test "$hardcode_action_CXX" = relink; then
12246  # Fast installation is not supported
12247  enable_fast_install=no
12248elif test "$shlibpath_overrides_runpath" = yes ||
12249     test "$enable_shared" = no; then
12250  # Fast installation is not necessary
12251  enable_fast_install=needless
12252fi
12253
12254striplib=
12255old_striplib=
12256echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12257echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12258if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12259  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12260  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12261  echo "$as_me:$LINENO: result: yes" >&5
12262echo "${ECHO_T}yes" >&6
12263else
12264# FIXME - insert some real tests, host_os isn't really good enough
12265  case $host_os in
12266   darwin*)
12267       if test -n "$STRIP" ; then
12268         striplib="$STRIP -x"
12269         echo "$as_me:$LINENO: result: yes" >&5
12270echo "${ECHO_T}yes" >&6
12271       else
12272  echo "$as_me:$LINENO: result: no" >&5
12273echo "${ECHO_T}no" >&6
12274fi
12275       ;;
12276   *)
12277  echo "$as_me:$LINENO: result: no" >&5
12278echo "${ECHO_T}no" >&6
12279    ;;
12280  esac
12281fi
12282
12283if test "x$enable_dlopen" != xyes; then
12284  enable_dlopen=unknown
12285  enable_dlopen_self=unknown
12286  enable_dlopen_self_static=unknown
12287else
12288  lt_cv_dlopen=no
12289  lt_cv_dlopen_libs=
12290
12291  case $host_os in
12292  beos*)
12293    lt_cv_dlopen="load_add_on"
12294    lt_cv_dlopen_libs=
12295    lt_cv_dlopen_self=yes
12296    ;;
12297
12298  mingw* | pw32*)
12299    lt_cv_dlopen="LoadLibrary"
12300    lt_cv_dlopen_libs=
12301   ;;
12302
12303  cygwin*)
12304    lt_cv_dlopen="dlopen"
12305    lt_cv_dlopen_libs=
12306   ;;
12307
12308  darwin*)
12309  # if libdl is installed we need to link against it
12310    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12311echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12312if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12313  echo $ECHO_N "(cached) $ECHO_C" >&6
12314else
12315  ac_check_lib_save_LIBS=$LIBS
12316LIBS="-ldl  $LIBS"
12317cat >conftest.$ac_ext <<_ACEOF
12318/* confdefs.h.  */
12319_ACEOF
12320cat confdefs.h >>conftest.$ac_ext
12321cat >>conftest.$ac_ext <<_ACEOF
12322/* end confdefs.h.  */
12323
12324/* Override any gcc2 internal prototype to avoid an error.  */
12325#ifdef __cplusplus
12326extern "C"
12327#endif
12328/* We use char because int might match the return type of a gcc2
12329   builtin and then its argument prototype would still apply.  */
12330char dlopen ();
12331int
12332main ()
12333{
12334dlopen ();
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339rm -f conftest.$ac_objext conftest$ac_exeext
12340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341  (eval $ac_link) 2>conftest.er1
12342  ac_status=$?
12343  grep -v '^ *+' conftest.er1 >conftest.err
12344  rm -f conftest.er1
12345  cat conftest.err >&5
12346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347  (exit $ac_status); } &&
12348	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350  (eval $ac_try) 2>&5
12351  ac_status=$?
12352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353  (exit $ac_status); }; } &&
12354	 { ac_try='test -s conftest$ac_exeext'
12355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356  (eval $ac_try) 2>&5
12357  ac_status=$?
12358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359  (exit $ac_status); }; }; then
12360  ac_cv_lib_dl_dlopen=yes
12361else
12362  echo "$as_me: failed program was:" >&5
12363sed 's/^/| /' conftest.$ac_ext >&5
12364
12365ac_cv_lib_dl_dlopen=no
12366fi
12367rm -f conftest.err conftest.$ac_objext \
12368      conftest$ac_exeext conftest.$ac_ext
12369LIBS=$ac_check_lib_save_LIBS
12370fi
12371echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12372echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12373if test $ac_cv_lib_dl_dlopen = yes; then
12374  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12375else
12376
12377    lt_cv_dlopen="dyld"
12378    lt_cv_dlopen_libs=
12379    lt_cv_dlopen_self=yes
12380
12381fi
12382
12383   ;;
12384
12385  *)
12386    echo "$as_me:$LINENO: checking for shl_load" >&5
12387echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12388if test "${ac_cv_func_shl_load+set}" = set; then
12389  echo $ECHO_N "(cached) $ECHO_C" >&6
12390else
12391  cat >conftest.$ac_ext <<_ACEOF
12392/* confdefs.h.  */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h.  */
12397/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12398   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12399#define shl_load innocuous_shl_load
12400
12401/* System header to define __stub macros and hopefully few prototypes,
12402    which can conflict with char shl_load (); below.
12403    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404    <limits.h> exists even on freestanding compilers.  */
12405
12406#ifdef __STDC__
12407# include <limits.h>
12408#else
12409# include <assert.h>
12410#endif
12411
12412#undef shl_load
12413
12414/* Override any gcc2 internal prototype to avoid an error.  */
12415#ifdef __cplusplus
12416extern "C"
12417{
12418#endif
12419/* We use char because int might match the return type of a gcc2
12420   builtin and then its argument prototype would still apply.  */
12421char shl_load ();
12422/* The GNU C library defines this for functions which it implements
12423    to always fail with ENOSYS.  Some functions are actually named
12424    something starting with __ and the normal name is an alias.  */
12425#if defined (__stub_shl_load) || defined (__stub___shl_load)
12426choke me
12427#else
12428char (*f) () = shl_load;
12429#endif
12430#ifdef __cplusplus
12431}
12432#endif
12433
12434int
12435main ()
12436{
12437return f != shl_load;
12438  ;
12439  return 0;
12440}
12441_ACEOF
12442rm -f conftest.$ac_objext conftest$ac_exeext
12443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444  (eval $ac_link) 2>conftest.er1
12445  ac_status=$?
12446  grep -v '^ *+' conftest.er1 >conftest.err
12447  rm -f conftest.er1
12448  cat conftest.err >&5
12449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450  (exit $ac_status); } &&
12451	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453  (eval $ac_try) 2>&5
12454  ac_status=$?
12455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456  (exit $ac_status); }; } &&
12457	 { ac_try='test -s conftest$ac_exeext'
12458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459  (eval $ac_try) 2>&5
12460  ac_status=$?
12461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462  (exit $ac_status); }; }; then
12463  ac_cv_func_shl_load=yes
12464else
12465  echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468ac_cv_func_shl_load=no
12469fi
12470rm -f conftest.err conftest.$ac_objext \
12471      conftest$ac_exeext conftest.$ac_ext
12472fi
12473echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12474echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12475if test $ac_cv_func_shl_load = yes; then
12476  lt_cv_dlopen="shl_load"
12477else
12478  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12479echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12480if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12481  echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483  ac_check_lib_save_LIBS=$LIBS
12484LIBS="-ldld  $LIBS"
12485cat >conftest.$ac_ext <<_ACEOF
12486/* confdefs.h.  */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h.  */
12491
12492/* Override any gcc2 internal prototype to avoid an error.  */
12493#ifdef __cplusplus
12494extern "C"
12495#endif
12496/* We use char because int might match the return type of a gcc2
12497   builtin and then its argument prototype would still apply.  */
12498char shl_load ();
12499int
12500main ()
12501{
12502shl_load ();
12503  ;
12504  return 0;
12505}
12506_ACEOF
12507rm -f conftest.$ac_objext conftest$ac_exeext
12508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509  (eval $ac_link) 2>conftest.er1
12510  ac_status=$?
12511  grep -v '^ *+' conftest.er1 >conftest.err
12512  rm -f conftest.er1
12513  cat conftest.err >&5
12514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515  (exit $ac_status); } &&
12516	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518  (eval $ac_try) 2>&5
12519  ac_status=$?
12520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521  (exit $ac_status); }; } &&
12522	 { ac_try='test -s conftest$ac_exeext'
12523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524  (eval $ac_try) 2>&5
12525  ac_status=$?
12526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527  (exit $ac_status); }; }; then
12528  ac_cv_lib_dld_shl_load=yes
12529else
12530  echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
12533ac_cv_lib_dld_shl_load=no
12534fi
12535rm -f conftest.err conftest.$ac_objext \
12536      conftest$ac_exeext conftest.$ac_ext
12537LIBS=$ac_check_lib_save_LIBS
12538fi
12539echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12540echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12541if test $ac_cv_lib_dld_shl_load = yes; then
12542  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12543else
12544  echo "$as_me:$LINENO: checking for dlopen" >&5
12545echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12546if test "${ac_cv_func_dlopen+set}" = set; then
12547  echo $ECHO_N "(cached) $ECHO_C" >&6
12548else
12549  cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h.  */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h.  */
12555/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12556   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12557#define dlopen innocuous_dlopen
12558
12559/* System header to define __stub macros and hopefully few prototypes,
12560    which can conflict with char dlopen (); below.
12561    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12562    <limits.h> exists even on freestanding compilers.  */
12563
12564#ifdef __STDC__
12565# include <limits.h>
12566#else
12567# include <assert.h>
12568#endif
12569
12570#undef dlopen
12571
12572/* Override any gcc2 internal prototype to avoid an error.  */
12573#ifdef __cplusplus
12574extern "C"
12575{
12576#endif
12577/* We use char because int might match the return type of a gcc2
12578   builtin and then its argument prototype would still apply.  */
12579char dlopen ();
12580/* The GNU C library defines this for functions which it implements
12581    to always fail with ENOSYS.  Some functions are actually named
12582    something starting with __ and the normal name is an alias.  */
12583#if defined (__stub_dlopen) || defined (__stub___dlopen)
12584choke me
12585#else
12586char (*f) () = dlopen;
12587#endif
12588#ifdef __cplusplus
12589}
12590#endif
12591
12592int
12593main ()
12594{
12595return f != dlopen;
12596  ;
12597  return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext conftest$ac_exeext
12601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602  (eval $ac_link) 2>conftest.er1
12603  ac_status=$?
12604  grep -v '^ *+' conftest.er1 >conftest.err
12605  rm -f conftest.er1
12606  cat conftest.err >&5
12607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608  (exit $ac_status); } &&
12609	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611  (eval $ac_try) 2>&5
12612  ac_status=$?
12613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614  (exit $ac_status); }; } &&
12615	 { ac_try='test -s conftest$ac_exeext'
12616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617  (eval $ac_try) 2>&5
12618  ac_status=$?
12619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620  (exit $ac_status); }; }; then
12621  ac_cv_func_dlopen=yes
12622else
12623  echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
12626ac_cv_func_dlopen=no
12627fi
12628rm -f conftest.err conftest.$ac_objext \
12629      conftest$ac_exeext conftest.$ac_ext
12630fi
12631echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12632echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12633if test $ac_cv_func_dlopen = yes; then
12634  lt_cv_dlopen="dlopen"
12635else
12636  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12637echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12639  echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641  ac_check_lib_save_LIBS=$LIBS
12642LIBS="-ldl  $LIBS"
12643cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h.  */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h.  */
12649
12650/* Override any gcc2 internal prototype to avoid an error.  */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654/* We use char because int might match the return type of a gcc2
12655   builtin and then its argument prototype would still apply.  */
12656char dlopen ();
12657int
12658main ()
12659{
12660dlopen ();
12661  ;
12662  return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext conftest$ac_exeext
12666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667  (eval $ac_link) 2>conftest.er1
12668  ac_status=$?
12669  grep -v '^ *+' conftest.er1 >conftest.err
12670  rm -f conftest.er1
12671  cat conftest.err >&5
12672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673  (exit $ac_status); } &&
12674	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676  (eval $ac_try) 2>&5
12677  ac_status=$?
12678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679  (exit $ac_status); }; } &&
12680	 { ac_try='test -s conftest$ac_exeext'
12681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682  (eval $ac_try) 2>&5
12683  ac_status=$?
12684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685  (exit $ac_status); }; }; then
12686  ac_cv_lib_dl_dlopen=yes
12687else
12688  echo "$as_me: failed program was:" >&5
12689sed 's/^/| /' conftest.$ac_ext >&5
12690
12691ac_cv_lib_dl_dlopen=no
12692fi
12693rm -f conftest.err conftest.$ac_objext \
12694      conftest$ac_exeext conftest.$ac_ext
12695LIBS=$ac_check_lib_save_LIBS
12696fi
12697echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12698echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12699if test $ac_cv_lib_dl_dlopen = yes; then
12700  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12701else
12702  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12703echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12704if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12705  echo $ECHO_N "(cached) $ECHO_C" >&6
12706else
12707  ac_check_lib_save_LIBS=$LIBS
12708LIBS="-lsvld  $LIBS"
12709cat >conftest.$ac_ext <<_ACEOF
12710/* confdefs.h.  */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h.  */
12715
12716/* Override any gcc2 internal prototype to avoid an error.  */
12717#ifdef __cplusplus
12718extern "C"
12719#endif
12720/* We use char because int might match the return type of a gcc2
12721   builtin and then its argument prototype would still apply.  */
12722char dlopen ();
12723int
12724main ()
12725{
12726dlopen ();
12727  ;
12728  return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext conftest$ac_exeext
12732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12733  (eval $ac_link) 2>conftest.er1
12734  ac_status=$?
12735  grep -v '^ *+' conftest.er1 >conftest.err
12736  rm -f conftest.er1
12737  cat conftest.err >&5
12738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739  (exit $ac_status); } &&
12740	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742  (eval $ac_try) 2>&5
12743  ac_status=$?
12744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745  (exit $ac_status); }; } &&
12746	 { ac_try='test -s conftest$ac_exeext'
12747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748  (eval $ac_try) 2>&5
12749  ac_status=$?
12750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751  (exit $ac_status); }; }; then
12752  ac_cv_lib_svld_dlopen=yes
12753else
12754  echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757ac_cv_lib_svld_dlopen=no
12758fi
12759rm -f conftest.err conftest.$ac_objext \
12760      conftest$ac_exeext conftest.$ac_ext
12761LIBS=$ac_check_lib_save_LIBS
12762fi
12763echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12764echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12765if test $ac_cv_lib_svld_dlopen = yes; then
12766  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12767else
12768  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12769echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12770if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12771  echo $ECHO_N "(cached) $ECHO_C" >&6
12772else
12773  ac_check_lib_save_LIBS=$LIBS
12774LIBS="-ldld  $LIBS"
12775cat >conftest.$ac_ext <<_ACEOF
12776/* confdefs.h.  */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h.  */
12781
12782/* Override any gcc2 internal prototype to avoid an error.  */
12783#ifdef __cplusplus
12784extern "C"
12785#endif
12786/* We use char because int might match the return type of a gcc2
12787   builtin and then its argument prototype would still apply.  */
12788char dld_link ();
12789int
12790main ()
12791{
12792dld_link ();
12793  ;
12794  return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext conftest$ac_exeext
12798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12799  (eval $ac_link) 2>conftest.er1
12800  ac_status=$?
12801  grep -v '^ *+' conftest.er1 >conftest.err
12802  rm -f conftest.er1
12803  cat conftest.err >&5
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); } &&
12806	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808  (eval $ac_try) 2>&5
12809  ac_status=$?
12810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811  (exit $ac_status); }; } &&
12812	 { ac_try='test -s conftest$ac_exeext'
12813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814  (eval $ac_try) 2>&5
12815  ac_status=$?
12816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817  (exit $ac_status); }; }; then
12818  ac_cv_lib_dld_dld_link=yes
12819else
12820  echo "$as_me: failed program was:" >&5
12821sed 's/^/| /' conftest.$ac_ext >&5
12822
12823ac_cv_lib_dld_dld_link=no
12824fi
12825rm -f conftest.err conftest.$ac_objext \
12826      conftest$ac_exeext conftest.$ac_ext
12827LIBS=$ac_check_lib_save_LIBS
12828fi
12829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12830echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12831if test $ac_cv_lib_dld_dld_link = yes; then
12832  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12833fi
12834
12835
12836fi
12837
12838
12839fi
12840
12841
12842fi
12843
12844
12845fi
12846
12847
12848fi
12849
12850    ;;
12851  esac
12852
12853  if test "x$lt_cv_dlopen" != xno; then
12854    enable_dlopen=yes
12855  else
12856    enable_dlopen=no
12857  fi
12858
12859  case $lt_cv_dlopen in
12860  dlopen)
12861    save_CPPFLAGS="$CPPFLAGS"
12862    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12863
12864    save_LDFLAGS="$LDFLAGS"
12865    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12866
12867    save_LIBS="$LIBS"
12868    LIBS="$lt_cv_dlopen_libs $LIBS"
12869
12870    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12871echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12872if test "${lt_cv_dlopen_self+set}" = set; then
12873  echo $ECHO_N "(cached) $ECHO_C" >&6
12874else
12875  	  if test "$cross_compiling" = yes; then :
12876  lt_cv_dlopen_self=cross
12877else
12878  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12879  lt_status=$lt_dlunknown
12880  cat > conftest.$ac_ext <<EOF
12881#line 12881 "configure"
12882#include "confdefs.h"
12883
12884#if HAVE_DLFCN_H
12885#include <dlfcn.h>
12886#endif
12887
12888#include <stdio.h>
12889
12890#ifdef RTLD_GLOBAL
12891#  define LT_DLGLOBAL		RTLD_GLOBAL
12892#else
12893#  ifdef DL_GLOBAL
12894#    define LT_DLGLOBAL		DL_GLOBAL
12895#  else
12896#    define LT_DLGLOBAL		0
12897#  endif
12898#endif
12899
12900/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12901   find out it does not work in some platform. */
12902#ifndef LT_DLLAZY_OR_NOW
12903#  ifdef RTLD_LAZY
12904#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12905#  else
12906#    ifdef DL_LAZY
12907#      define LT_DLLAZY_OR_NOW		DL_LAZY
12908#    else
12909#      ifdef RTLD_NOW
12910#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12911#      else
12912#        ifdef DL_NOW
12913#          define LT_DLLAZY_OR_NOW	DL_NOW
12914#        else
12915#          define LT_DLLAZY_OR_NOW	0
12916#        endif
12917#      endif
12918#    endif
12919#  endif
12920#endif
12921
12922#ifdef __cplusplus
12923extern "C" void exit (int);
12924#endif
12925
12926void fnord() { int i=42;}
12927int main ()
12928{
12929  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12930  int status = $lt_dlunknown;
12931
12932  if (self)
12933    {
12934      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12935      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12936      /* dlclose (self); */
12937    }
12938
12939    exit (status);
12940}
12941EOF
12942  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943  (eval $ac_link) 2>&5
12944  ac_status=$?
12945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12947    (./conftest; exit; ) >&5 2>/dev/null
12948    lt_status=$?
12949    case x$lt_status in
12950      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12951      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12952      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12953    esac
12954  else :
12955    # compilation failed
12956    lt_cv_dlopen_self=no
12957  fi
12958fi
12959rm -fr conftest*
12960
12961
12962fi
12963echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12964echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12965
12966    if test "x$lt_cv_dlopen_self" = xyes; then
12967      LDFLAGS="$LDFLAGS $link_static_flag"
12968      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12969echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12970if test "${lt_cv_dlopen_self_static+set}" = set; then
12971  echo $ECHO_N "(cached) $ECHO_C" >&6
12972else
12973  	  if test "$cross_compiling" = yes; then :
12974  lt_cv_dlopen_self_static=cross
12975else
12976  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12977  lt_status=$lt_dlunknown
12978  cat > conftest.$ac_ext <<EOF
12979#line 12979 "configure"
12980#include "confdefs.h"
12981
12982#if HAVE_DLFCN_H
12983#include <dlfcn.h>
12984#endif
12985
12986#include <stdio.h>
12987
12988#ifdef RTLD_GLOBAL
12989#  define LT_DLGLOBAL		RTLD_GLOBAL
12990#else
12991#  ifdef DL_GLOBAL
12992#    define LT_DLGLOBAL		DL_GLOBAL
12993#  else
12994#    define LT_DLGLOBAL		0
12995#  endif
12996#endif
12997
12998/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12999   find out it does not work in some platform. */
13000#ifndef LT_DLLAZY_OR_NOW
13001#  ifdef RTLD_LAZY
13002#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13003#  else
13004#    ifdef DL_LAZY
13005#      define LT_DLLAZY_OR_NOW		DL_LAZY
13006#    else
13007#      ifdef RTLD_NOW
13008#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13009#      else
13010#        ifdef DL_NOW
13011#          define LT_DLLAZY_OR_NOW	DL_NOW
13012#        else
13013#          define LT_DLLAZY_OR_NOW	0
13014#        endif
13015#      endif
13016#    endif
13017#  endif
13018#endif
13019
13020#ifdef __cplusplus
13021extern "C" void exit (int);
13022#endif
13023
13024void fnord() { int i=42;}
13025int main ()
13026{
13027  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13028  int status = $lt_dlunknown;
13029
13030  if (self)
13031    {
13032      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13033      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13034      /* dlclose (self); */
13035    }
13036
13037    exit (status);
13038}
13039EOF
13040  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041  (eval $ac_link) 2>&5
13042  ac_status=$?
13043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13045    (./conftest; exit; ) >&5 2>/dev/null
13046    lt_status=$?
13047    case x$lt_status in
13048      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13049      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13050      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13051    esac
13052  else :
13053    # compilation failed
13054    lt_cv_dlopen_self_static=no
13055  fi
13056fi
13057rm -fr conftest*
13058
13059
13060fi
13061echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13062echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13063    fi
13064
13065    CPPFLAGS="$save_CPPFLAGS"
13066    LDFLAGS="$save_LDFLAGS"
13067    LIBS="$save_LIBS"
13068    ;;
13069  esac
13070
13071  case $lt_cv_dlopen_self in
13072  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13073  *) enable_dlopen_self=unknown ;;
13074  esac
13075
13076  case $lt_cv_dlopen_self_static in
13077  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13078  *) enable_dlopen_self_static=unknown ;;
13079  esac
13080fi
13081
13082
13083# The else clause should only fire when bootstrapping the
13084# libtool distribution, otherwise you forgot to ship ltmain.sh
13085# with your package, and you will get complaints that there are
13086# no rules to generate ltmain.sh.
13087if test -f "$ltmain"; then
13088  # See if we are running on zsh, and set the options which allow our commands through
13089  # without removal of \ escapes.
13090  if test -n "${ZSH_VERSION+set}" ; then
13091    setopt NO_GLOB_SUBST
13092  fi
13093  # Now quote all the things that may contain metacharacters while being
13094  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13095  # variables and quote the copies for generation of the libtool script.
13096  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13097    SED SHELL STRIP \
13098    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13099    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13100    deplibs_check_method reload_flag reload_cmds need_locks \
13101    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13102    lt_cv_sys_global_symbol_to_c_name_address \
13103    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13104    old_postinstall_cmds old_postuninstall_cmds \
13105    compiler_CXX \
13106    CC_CXX \
13107    LD_CXX \
13108    lt_prog_compiler_wl_CXX \
13109    lt_prog_compiler_pic_CXX \
13110    lt_prog_compiler_static_CXX \
13111    lt_prog_compiler_no_builtin_flag_CXX \
13112    export_dynamic_flag_spec_CXX \
13113    thread_safe_flag_spec_CXX \
13114    whole_archive_flag_spec_CXX \
13115    enable_shared_with_static_runtimes_CXX \
13116    old_archive_cmds_CXX \
13117    old_archive_from_new_cmds_CXX \
13118    predep_objects_CXX \
13119    postdep_objects_CXX \
13120    predeps_CXX \
13121    postdeps_CXX \
13122    compiler_lib_search_path_CXX \
13123    archive_cmds_CXX \
13124    archive_expsym_cmds_CXX \
13125    postinstall_cmds_CXX \
13126    postuninstall_cmds_CXX \
13127    old_archive_from_expsyms_cmds_CXX \
13128    allow_undefined_flag_CXX \
13129    no_undefined_flag_CXX \
13130    export_symbols_cmds_CXX \
13131    hardcode_libdir_flag_spec_CXX \
13132    hardcode_libdir_flag_spec_ld_CXX \
13133    hardcode_libdir_separator_CXX \
13134    hardcode_automatic_CXX \
13135    module_cmds_CXX \
13136    module_expsym_cmds_CXX \
13137    lt_cv_prog_compiler_c_o_CXX \
13138    exclude_expsyms_CXX \
13139    include_expsyms_CXX; do
13140
13141    case $var in
13142    old_archive_cmds_CXX | \
13143    old_archive_from_new_cmds_CXX | \
13144    archive_cmds_CXX | \
13145    archive_expsym_cmds_CXX | \
13146    module_cmds_CXX | \
13147    module_expsym_cmds_CXX | \
13148    old_archive_from_expsyms_cmds_CXX | \
13149    export_symbols_cmds_CXX | \
13150    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13151    postinstall_cmds | postuninstall_cmds | \
13152    old_postinstall_cmds | old_postuninstall_cmds | \
13153    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13154      # Double-quote double-evaled strings.
13155      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13156      ;;
13157    *)
13158      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13159      ;;
13160    esac
13161  done
13162
13163  case $lt_echo in
13164  *'\$0 --fallback-echo"')
13165    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13166    ;;
13167  esac
13168
13169cfgfile="$ofile"
13170
13171  cat <<__EOF__ >> "$cfgfile"
13172# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13173
13174# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13175
13176# Shell to use when invoking shell scripts.
13177SHELL=$lt_SHELL
13178
13179# Whether or not to build shared libraries.
13180build_libtool_libs=$enable_shared
13181
13182# Whether or not to build static libraries.
13183build_old_libs=$enable_static
13184
13185# Whether or not to add -lc for building shared libraries.
13186build_libtool_need_lc=$archive_cmds_need_lc_CXX
13187
13188# Whether or not to disallow shared libs when runtime libs are static
13189allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13190
13191# Whether or not to optimize for fast installation.
13192fast_install=$enable_fast_install
13193
13194# The host system.
13195host_alias=$host_alias
13196host=$host
13197host_os=$host_os
13198
13199# The build system.
13200build_alias=$build_alias
13201build=$build
13202build_os=$build_os
13203
13204# An echo program that does not interpret backslashes.
13205echo=$lt_echo
13206
13207# The archiver.
13208AR=$lt_AR
13209AR_FLAGS=$lt_AR_FLAGS
13210
13211# A C compiler.
13212LTCC=$lt_LTCC
13213
13214# A language-specific compiler.
13215CC=$lt_compiler_CXX
13216
13217# Is the compiler the GNU C compiler?
13218with_gcc=$GCC_CXX
13219
13220# An ERE matcher.
13221EGREP=$lt_EGREP
13222
13223# The linker used to build libraries.
13224LD=$lt_LD_CXX
13225
13226# Whether we need hard or soft links.
13227LN_S=$lt_LN_S
13228
13229# A BSD-compatible nm program.
13230NM=$lt_NM
13231
13232# A symbol stripping program
13233STRIP=$lt_STRIP
13234
13235# Used to examine libraries when file_magic_cmd begins "file"
13236MAGIC_CMD=$MAGIC_CMD
13237
13238# Used on cygwin: DLL creation program.
13239DLLTOOL="$DLLTOOL"
13240
13241# Used on cygwin: object dumper.
13242OBJDUMP="$OBJDUMP"
13243
13244# Used on cygwin: assembler.
13245AS="$AS"
13246
13247# The name of the directory that contains temporary libtool files.
13248objdir=$objdir
13249
13250# How to create reloadable object files.
13251reload_flag=$lt_reload_flag
13252reload_cmds=$lt_reload_cmds
13253
13254# How to pass a linker flag through the compiler.
13255wl=$lt_lt_prog_compiler_wl_CXX
13256
13257# Object file suffix (normally "o").
13258objext="$ac_objext"
13259
13260# Old archive suffix (normally "a").
13261libext="$libext"
13262
13263# Shared library suffix (normally ".so").
13264shrext_cmds='$shrext_cmds'
13265
13266# Executable file suffix (normally "").
13267exeext="$exeext"
13268
13269# Additional compiler flags for building library objects.
13270pic_flag=$lt_lt_prog_compiler_pic_CXX
13271pic_mode=$pic_mode
13272
13273# What is the maximum length of a command?
13274max_cmd_len=$lt_cv_sys_max_cmd_len
13275
13276# Does compiler simultaneously support -c and -o options?
13277compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13278
13279# Must we lock files when doing compilation?
13280need_locks=$lt_need_locks
13281
13282# Do we need the lib prefix for modules?
13283need_lib_prefix=$need_lib_prefix
13284
13285# Do we need a version for libraries?
13286need_version=$need_version
13287
13288# Whether dlopen is supported.
13289dlopen_support=$enable_dlopen
13290
13291# Whether dlopen of programs is supported.
13292dlopen_self=$enable_dlopen_self
13293
13294# Whether dlopen of statically linked programs is supported.
13295dlopen_self_static=$enable_dlopen_self_static
13296
13297# Compiler flag to prevent dynamic linking.
13298link_static_flag=$lt_lt_prog_compiler_static_CXX
13299
13300# Compiler flag to turn off builtin functions.
13301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13302
13303# Compiler flag to allow reflexive dlopens.
13304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13305
13306# Compiler flag to generate shared objects directly from archives.
13307whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13308
13309# Compiler flag to generate thread-safe objects.
13310thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13311
13312# Library versioning type.
13313version_type=$version_type
13314
13315# Format of library name prefix.
13316libname_spec=$lt_libname_spec
13317
13318# List of archive names.  First name is the real one, the rest are links.
13319# The last name is the one that the linker finds with -lNAME.
13320library_names_spec=$lt_library_names_spec
13321
13322# The coded name of the library, if different from the real name.
13323soname_spec=$lt_soname_spec
13324
13325# Commands used to build and install an old-style archive.
13326RANLIB=$lt_RANLIB
13327old_archive_cmds=$lt_old_archive_cmds_CXX
13328old_postinstall_cmds=$lt_old_postinstall_cmds
13329old_postuninstall_cmds=$lt_old_postuninstall_cmds
13330
13331# Create an old-style archive from a shared archive.
13332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13333
13334# Create a temporary old-style archive to link instead of a shared archive.
13335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13336
13337# Commands used to build and install a shared archive.
13338archive_cmds=$lt_archive_cmds_CXX
13339archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13340postinstall_cmds=$lt_postinstall_cmds
13341postuninstall_cmds=$lt_postuninstall_cmds
13342
13343# Commands used to build a loadable module (assumed same as above if empty)
13344module_cmds=$lt_module_cmds_CXX
13345module_expsym_cmds=$lt_module_expsym_cmds_CXX
13346
13347# Commands to strip libraries.
13348old_striplib=$lt_old_striplib
13349striplib=$lt_striplib
13350
13351# Dependencies to place before the objects being linked to create a
13352# shared library.
13353predep_objects=$lt_predep_objects_CXX
13354
13355# Dependencies to place after the objects being linked to create a
13356# shared library.
13357postdep_objects=$lt_postdep_objects_CXX
13358
13359# Dependencies to place before the objects being linked to create a
13360# shared library.
13361predeps=$lt_predeps_CXX
13362
13363# Dependencies to place after the objects being linked to create a
13364# shared library.
13365postdeps=$lt_postdeps_CXX
13366
13367# The library search path used internally by the compiler when linking
13368# a shared library.
13369compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13370
13371# Method to check whether dependent libraries are shared objects.
13372deplibs_check_method=$lt_deplibs_check_method
13373
13374# Command to use when deplibs_check_method == file_magic.
13375file_magic_cmd=$lt_file_magic_cmd
13376
13377# Flag that allows shared libraries with undefined symbols to be built.
13378allow_undefined_flag=$lt_allow_undefined_flag_CXX
13379
13380# Flag that forces no undefined symbols.
13381no_undefined_flag=$lt_no_undefined_flag_CXX
13382
13383# Commands used to finish a libtool library installation in a directory.
13384finish_cmds=$lt_finish_cmds
13385
13386# Same as above, but a single script fragment to be evaled but not shown.
13387finish_eval=$lt_finish_eval
13388
13389# Take the output of nm and produce a listing of raw symbols and C names.
13390global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13391
13392# Transform the output of nm in a proper C declaration
13393global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13394
13395# Transform the output of nm in a C name address pair
13396global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13397
13398# This is the shared library runtime path variable.
13399runpath_var=$runpath_var
13400
13401# This is the shared library path variable.
13402shlibpath_var=$shlibpath_var
13403
13404# Is shlibpath searched before the hard-coded library search path?
13405shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13406
13407# How to hardcode a shared library path into an executable.
13408hardcode_action=$hardcode_action_CXX
13409
13410# Whether we should hardcode library paths into libraries.
13411hardcode_into_libs=$hardcode_into_libs
13412
13413# Flag to hardcode \$libdir into a binary during linking.
13414# This must work even if \$libdir does not exist.
13415hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13416
13417# If ld is used when linking, flag to hardcode \$libdir into
13418# a binary during linking. This must work even if \$libdir does
13419# not exist.
13420hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13421
13422# Whether we need a single -rpath flag with a separated argument.
13423hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13424
13425# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13426# resulting binary.
13427hardcode_direct=$hardcode_direct_CXX
13428
13429# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13430# resulting binary.
13431hardcode_minus_L=$hardcode_minus_L_CXX
13432
13433# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13434# the resulting binary.
13435hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13436
13437# Set to yes if building a shared library automatically hardcodes DIR into the library
13438# and all subsequent libraries and executables linked against it.
13439hardcode_automatic=$hardcode_automatic_CXX
13440
13441# Variables whose values should be saved in libtool wrapper scripts and
13442# restored at relink time.
13443variables_saved_for_relink="$variables_saved_for_relink"
13444
13445# Whether libtool must link a program against all its dependency libraries.
13446link_all_deplibs=$link_all_deplibs_CXX
13447
13448# Compile-time system search path for libraries
13449sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13450
13451# Run-time system search path for libraries
13452sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13453
13454# Fix the shell variable \$srcfile for the compiler.
13455fix_srcfile_path="$fix_srcfile_path_CXX"
13456
13457# Set to yes if exported symbols are required.
13458always_export_symbols=$always_export_symbols_CXX
13459
13460# The commands to list exported symbols.
13461export_symbols_cmds=$lt_export_symbols_cmds_CXX
13462
13463# The commands to extract the exported symbol list from a shared archive.
13464extract_expsyms_cmds=$lt_extract_expsyms_cmds
13465
13466# Symbols that should not be listed in the preloaded symbols.
13467exclude_expsyms=$lt_exclude_expsyms_CXX
13468
13469# Symbols that must always be exported.
13470include_expsyms=$lt_include_expsyms_CXX
13471
13472# ### END LIBTOOL TAG CONFIG: $tagname
13473
13474__EOF__
13475
13476
13477else
13478  # If there is no Makefile yet, we rely on a make rule to execute
13479  # `config.status --recheck' to rerun these tests and create the
13480  # libtool script then.
13481  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13482  if test -f "$ltmain_in"; then
13483    test -f Makefile && make "$ltmain"
13484  fi
13485fi
13486
13487
13488ac_ext=c
13489ac_cpp='$CPP $CPPFLAGS'
13490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13492ac_compiler_gnu=$ac_cv_c_compiler_gnu
13493
13494CC=$lt_save_CC
13495LDCXX=$LD
13496LD=$lt_save_LD
13497GCC=$lt_save_GCC
13498with_gnu_ldcxx=$with_gnu_ld
13499with_gnu_ld=$lt_save_with_gnu_ld
13500lt_cv_path_LDCXX=$lt_cv_path_LD
13501lt_cv_path_LD=$lt_save_path_LD
13502lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13503lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13504
13505	else
13506	  tagname=""
13507	fi
13508	;;
13509
13510      F77)
13511	if test -n "$F77" && test "X$F77" != "Xno"; then
13512
13513ac_ext=f
13514ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13515ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13517
13518
13519archive_cmds_need_lc_F77=no
13520allow_undefined_flag_F77=
13521always_export_symbols_F77=no
13522archive_expsym_cmds_F77=
13523export_dynamic_flag_spec_F77=
13524hardcode_direct_F77=no
13525hardcode_libdir_flag_spec_F77=
13526hardcode_libdir_flag_spec_ld_F77=
13527hardcode_libdir_separator_F77=
13528hardcode_minus_L_F77=no
13529hardcode_automatic_F77=no
13530module_cmds_F77=
13531module_expsym_cmds_F77=
13532link_all_deplibs_F77=unknown
13533old_archive_cmds_F77=$old_archive_cmds
13534no_undefined_flag_F77=
13535whole_archive_flag_spec_F77=
13536enable_shared_with_static_runtimes_F77=no
13537
13538# Source file extension for f77 test sources.
13539ac_ext=f
13540
13541# Object file extension for compiled f77 test sources.
13542objext=o
13543objext_F77=$objext
13544
13545# Code to be used in simple compile tests
13546lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13547
13548# Code to be used in simple link tests
13549lt_simple_link_test_code="      program t\n      end\n"
13550
13551# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13552
13553# If no C compiler was specified, use CC.
13554LTCC=${LTCC-"$CC"}
13555
13556# Allow CC to be a program name with arguments.
13557compiler=$CC
13558
13559
13560# save warnings/boilerplate of simple test code
13561ac_outfile=conftest.$ac_objext
13562printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13564_lt_compiler_boilerplate=`cat conftest.err`
13565$rm conftest*
13566
13567ac_outfile=conftest.$ac_objext
13568printf "$lt_simple_link_test_code" >conftest.$ac_ext
13569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13570_lt_linker_boilerplate=`cat conftest.err`
13571$rm conftest*
13572
13573
13574# Allow CC to be a program name with arguments.
13575lt_save_CC="$CC"
13576CC=${F77-"f77"}
13577compiler=$CC
13578compiler_F77=$CC
13579for cc_temp in $compiler""; do
13580  case $cc_temp in
13581    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13582    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13583    \-*) ;;
13584    *) break;;
13585  esac
13586done
13587cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13588
13589
13590echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13591echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13592echo "$as_me:$LINENO: result: $can_build_shared" >&5
13593echo "${ECHO_T}$can_build_shared" >&6
13594
13595echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13596echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13597test "$can_build_shared" = "no" && enable_shared=no
13598
13599# On AIX, shared libraries and static libraries use the same namespace, and
13600# are all built from PIC.
13601case $host_os in
13602aix3*)
13603  test "$enable_shared" = yes && enable_static=no
13604  if test -n "$RANLIB"; then
13605    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13606    postinstall_cmds='$RANLIB $lib'
13607  fi
13608  ;;
13609aix4* | aix5*)
13610  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13611    test "$enable_shared" = yes && enable_static=no
13612  fi
13613  ;;
13614esac
13615echo "$as_me:$LINENO: result: $enable_shared" >&5
13616echo "${ECHO_T}$enable_shared" >&6
13617
13618echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13619echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13620# Make sure either enable_shared or enable_static is yes.
13621test "$enable_shared" = yes || enable_static=yes
13622echo "$as_me:$LINENO: result: $enable_static" >&5
13623echo "${ECHO_T}$enable_static" >&6
13624
13625test "$ld_shlibs_F77" = no && can_build_shared=no
13626
13627GCC_F77="$G77"
13628LD_F77="$LD"
13629
13630lt_prog_compiler_wl_F77=
13631lt_prog_compiler_pic_F77=
13632lt_prog_compiler_static_F77=
13633
13634echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13635echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13636
13637  if test "$GCC" = yes; then
13638    lt_prog_compiler_wl_F77='-Wl,'
13639    lt_prog_compiler_static_F77='-static'
13640
13641    case $host_os in
13642      aix*)
13643      # All AIX code is PIC.
13644      if test "$host_cpu" = ia64; then
13645	# AIX 5 now supports IA64 processor
13646	lt_prog_compiler_static_F77='-Bstatic'
13647      fi
13648      ;;
13649
13650    amigaos*)
13651      # FIXME: we need at least 68020 code to build shared libraries, but
13652      # adding the `-m68020' flag to GCC prevents building anything better,
13653      # like `-m68040'.
13654      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13655      ;;
13656
13657    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13658      # PIC is the default for these OSes.
13659      ;;
13660
13661    mingw* | pw32* | os2*)
13662      # This hack is so that the source file can tell whether it is being
13663      # built for inclusion in a dll (and should export symbols for example).
13664      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13665      ;;
13666
13667    darwin* | rhapsody*)
13668      # PIC is the default on this platform
13669      # Common symbols not allowed in MH_DYLIB files
13670      lt_prog_compiler_pic_F77='-fno-common'
13671      ;;
13672
13673    msdosdjgpp*)
13674      # Just because we use GCC doesn't mean we suddenly get shared libraries
13675      # on systems that don't support them.
13676      lt_prog_compiler_can_build_shared_F77=no
13677      enable_shared=no
13678      ;;
13679
13680    sysv4*MP*)
13681      if test -d /usr/nec; then
13682	lt_prog_compiler_pic_F77=-Kconform_pic
13683      fi
13684      ;;
13685
13686    hpux*)
13687      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13688      # not for PA HP-UX.
13689      case $host_cpu in
13690      hppa*64*|ia64*)
13691	# +Z the default
13692	;;
13693      *)
13694	lt_prog_compiler_pic_F77='-fPIC'
13695	;;
13696      esac
13697      ;;
13698
13699    *)
13700      lt_prog_compiler_pic_F77='-fPIC'
13701      ;;
13702    esac
13703  else
13704    # PORTME Check for flag to pass linker flags through the system compiler.
13705    case $host_os in
13706    aix*)
13707      lt_prog_compiler_wl_F77='-Wl,'
13708      if test "$host_cpu" = ia64; then
13709	# AIX 5 now supports IA64 processor
13710	lt_prog_compiler_static_F77='-Bstatic'
13711      else
13712	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13713      fi
13714      ;;
13715      darwin*)
13716        # PIC is the default on this platform
13717        # Common symbols not allowed in MH_DYLIB files
13718       case $cc_basename in
13719         xlc*)
13720         lt_prog_compiler_pic_F77='-qnocommon'
13721         lt_prog_compiler_wl_F77='-Wl,'
13722         ;;
13723       esac
13724       ;;
13725
13726    mingw* | pw32* | os2*)
13727      # This hack is so that the source file can tell whether it is being
13728      # built for inclusion in a dll (and should export symbols for example).
13729      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13730      ;;
13731
13732    hpux9* | hpux10* | hpux11*)
13733      lt_prog_compiler_wl_F77='-Wl,'
13734      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13735      # not for PA HP-UX.
13736      case $host_cpu in
13737      hppa*64*|ia64*)
13738	# +Z the default
13739	;;
13740      *)
13741	lt_prog_compiler_pic_F77='+Z'
13742	;;
13743      esac
13744      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13745      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13746      ;;
13747
13748    irix5* | irix6* | nonstopux*)
13749      lt_prog_compiler_wl_F77='-Wl,'
13750      # PIC (with -KPIC) is the default.
13751      lt_prog_compiler_static_F77='-non_shared'
13752      ;;
13753
13754    newsos6)
13755      lt_prog_compiler_pic_F77='-KPIC'
13756      lt_prog_compiler_static_F77='-Bstatic'
13757      ;;
13758
13759    linux*)
13760      case $cc_basename in
13761      icc* | ecc*)
13762	lt_prog_compiler_wl_F77='-Wl,'
13763	lt_prog_compiler_pic_F77='-KPIC'
13764	lt_prog_compiler_static_F77='-static'
13765        ;;
13766      pgcc* | pgf77* | pgf90* | pgf95*)
13767        # Portland Group compilers (*not* the Pentium gcc compiler,
13768	# which looks to be a dead project)
13769	lt_prog_compiler_wl_F77='-Wl,'
13770	lt_prog_compiler_pic_F77='-fpic'
13771	lt_prog_compiler_static_F77='-Bstatic'
13772        ;;
13773      ccc*)
13774        lt_prog_compiler_wl_F77='-Wl,'
13775        # All Alpha code is PIC.
13776        lt_prog_compiler_static_F77='-non_shared'
13777        ;;
13778      esac
13779      ;;
13780
13781    osf3* | osf4* | osf5*)
13782      lt_prog_compiler_wl_F77='-Wl,'
13783      # All OSF/1 code is PIC.
13784      lt_prog_compiler_static_F77='-non_shared'
13785      ;;
13786
13787    sco3.2v5*)
13788      lt_prog_compiler_pic_F77='-Kpic'
13789      lt_prog_compiler_static_F77='-dn'
13790      ;;
13791
13792    solaris*)
13793      lt_prog_compiler_pic_F77='-KPIC'
13794      lt_prog_compiler_static_F77='-Bstatic'
13795      case $cc_basename in
13796      f77* | f90* | f95*)
13797	lt_prog_compiler_wl_F77='-Qoption ld ';;
13798      *)
13799	lt_prog_compiler_wl_F77='-Wl,';;
13800      esac
13801      ;;
13802
13803    sunos4*)
13804      lt_prog_compiler_wl_F77='-Qoption ld '
13805      lt_prog_compiler_pic_F77='-PIC'
13806      lt_prog_compiler_static_F77='-Bstatic'
13807      ;;
13808
13809    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13810      lt_prog_compiler_wl_F77='-Wl,'
13811      lt_prog_compiler_pic_F77='-KPIC'
13812      lt_prog_compiler_static_F77='-Bstatic'
13813      ;;
13814
13815    sysv4*MP*)
13816      if test -d /usr/nec ;then
13817	lt_prog_compiler_pic_F77='-Kconform_pic'
13818	lt_prog_compiler_static_F77='-Bstatic'
13819      fi
13820      ;;
13821
13822    unicos*)
13823      lt_prog_compiler_wl_F77='-Wl,'
13824      lt_prog_compiler_can_build_shared_F77=no
13825      ;;
13826
13827    uts4*)
13828      lt_prog_compiler_pic_F77='-pic'
13829      lt_prog_compiler_static_F77='-Bstatic'
13830      ;;
13831
13832    *)
13833      lt_prog_compiler_can_build_shared_F77=no
13834      ;;
13835    esac
13836  fi
13837
13838echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13839echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13840
13841#
13842# Check to make sure the PIC flag actually works.
13843#
13844if test -n "$lt_prog_compiler_pic_F77"; then
13845
13846echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13847echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13848if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13849  echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851  lt_prog_compiler_pic_works_F77=no
13852  ac_outfile=conftest.$ac_objext
13853   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13854   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13855   # Insert the option either (1) after the last *FLAGS variable, or
13856   # (2) before a word containing "conftest.", or (3) at the end.
13857   # Note that $ac_compile itself does not contain backslashes and begins
13858   # with a dollar sign (not a hyphen), so the echo should work correctly.
13859   # The option is referenced via a variable to avoid confusing sed.
13860   lt_compile=`echo "$ac_compile" | $SED \
13861   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13862   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13863   -e 's:$: $lt_compiler_flag:'`
13864   (eval echo "\"\$as_me:13864: $lt_compile\"" >&5)
13865   (eval "$lt_compile" 2>conftest.err)
13866   ac_status=$?
13867   cat conftest.err >&5
13868   echo "$as_me:13868: \$? = $ac_status" >&5
13869   if (exit $ac_status) && test -s "$ac_outfile"; then
13870     # The compiler can only warn and ignore the option if not recognized
13871     # So say no if there are warnings other than the usual output.
13872     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13873     $SED '/^$/d' conftest.err >conftest.er2
13874     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13875       lt_prog_compiler_pic_works_F77=yes
13876     fi
13877   fi
13878   $rm conftest*
13879
13880fi
13881echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13882echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13883
13884if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13885    case $lt_prog_compiler_pic_F77 in
13886     "" | " "*) ;;
13887     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13888     esac
13889else
13890    lt_prog_compiler_pic_F77=
13891     lt_prog_compiler_can_build_shared_F77=no
13892fi
13893
13894fi
13895case $host_os in
13896  # For platforms which do not support PIC, -DPIC is meaningless:
13897  *djgpp*)
13898    lt_prog_compiler_pic_F77=
13899    ;;
13900  *)
13901    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13902    ;;
13903esac
13904
13905echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13906echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13907if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13908  echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910  lt_cv_prog_compiler_c_o_F77=no
13911   $rm -r conftest 2>/dev/null
13912   mkdir conftest
13913   cd conftest
13914   mkdir out
13915   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13916
13917   lt_compiler_flag="-o out/conftest2.$ac_objext"
13918   # Insert the option either (1) after the last *FLAGS variable, or
13919   # (2) before a word containing "conftest.", or (3) at the end.
13920   # Note that $ac_compile itself does not contain backslashes and begins
13921   # with a dollar sign (not a hyphen), so the echo should work correctly.
13922   lt_compile=`echo "$ac_compile" | $SED \
13923   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13924   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13925   -e 's:$: $lt_compiler_flag:'`
13926   (eval echo "\"\$as_me:13926: $lt_compile\"" >&5)
13927   (eval "$lt_compile" 2>out/conftest.err)
13928   ac_status=$?
13929   cat out/conftest.err >&5
13930   echo "$as_me:13930: \$? = $ac_status" >&5
13931   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13932   then
13933     # The compiler can only warn and ignore the option if not recognized
13934     # So say no if there are warnings
13935     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13936     $SED '/^$/d' out/conftest.err >out/conftest.er2
13937     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13938       lt_cv_prog_compiler_c_o_F77=yes
13939     fi
13940   fi
13941   chmod u+w . 2>&5
13942   $rm conftest*
13943   # SGI C++ compiler will create directory out/ii_files/ for
13944   # template instantiation
13945   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13946   $rm out/* && rmdir out
13947   cd ..
13948   rmdir conftest
13949   $rm conftest*
13950
13951fi
13952echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13953echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13954
13955
13956hard_links="nottested"
13957if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13958  # do not overwrite the value of need_locks provided by the user
13959  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13960echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13961  hard_links=yes
13962  $rm conftest*
13963  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13964  touch conftest.a
13965  ln conftest.a conftest.b 2>&5 || hard_links=no
13966  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13967  echo "$as_me:$LINENO: result: $hard_links" >&5
13968echo "${ECHO_T}$hard_links" >&6
13969  if test "$hard_links" = no; then
13970    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13971echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13972    need_locks=warn
13973  fi
13974else
13975  need_locks=no
13976fi
13977
13978echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13979echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13980
13981  runpath_var=
13982  allow_undefined_flag_F77=
13983  enable_shared_with_static_runtimes_F77=no
13984  archive_cmds_F77=
13985  archive_expsym_cmds_F77=
13986  old_archive_From_new_cmds_F77=
13987  old_archive_from_expsyms_cmds_F77=
13988  export_dynamic_flag_spec_F77=
13989  whole_archive_flag_spec_F77=
13990  thread_safe_flag_spec_F77=
13991  hardcode_libdir_flag_spec_F77=
13992  hardcode_libdir_flag_spec_ld_F77=
13993  hardcode_libdir_separator_F77=
13994  hardcode_direct_F77=no
13995  hardcode_minus_L_F77=no
13996  hardcode_shlibpath_var_F77=unsupported
13997  link_all_deplibs_F77=unknown
13998  hardcode_automatic_F77=no
13999  module_cmds_F77=
14000  module_expsym_cmds_F77=
14001  always_export_symbols_F77=no
14002  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14003  # include_expsyms should be a list of space-separated symbols to be *always*
14004  # included in the symbol list
14005  include_expsyms_F77=
14006  # exclude_expsyms can be an extended regexp of symbols to exclude
14007  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14008  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14009  # as well as any symbol that contains `d'.
14010  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14011  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14012  # platforms (ab)use it in PIC code, but their linkers get confused if
14013  # the symbol is explicitly referenced.  Since portable code cannot
14014  # rely on this symbol name, it's probably fine to never include it in
14015  # preloaded symbol tables.
14016  extract_expsyms_cmds=
14017  # Just being paranoid about ensuring that cc_basename is set.
14018  for cc_temp in $compiler""; do
14019  case $cc_temp in
14020    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14021    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14022    \-*) ;;
14023    *) break;;
14024  esac
14025done
14026cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14027
14028  case $host_os in
14029  cygwin* | mingw* | pw32*)
14030    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14031    # When not using gcc, we currently assume that we are using
14032    # Microsoft Visual C++.
14033    if test "$GCC" != yes; then
14034      with_gnu_ld=no
14035    fi
14036    ;;
14037  openbsd*)
14038    with_gnu_ld=no
14039    ;;
14040  esac
14041
14042  ld_shlibs_F77=yes
14043  if test "$with_gnu_ld" = yes; then
14044    # If archive_cmds runs LD, not CC, wlarc should be empty
14045    wlarc='${wl}'
14046
14047    # Set some defaults for GNU ld with shared library support. These
14048    # are reset later if shared libraries are not supported. Putting them
14049    # here allows them to be overridden if necessary.
14050    runpath_var=LD_RUN_PATH
14051    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14052    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14053    # ancient GNU ld didn't support --whole-archive et. al.
14054    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14055	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14056      else
14057  	whole_archive_flag_spec_F77=
14058    fi
14059    supports_anon_versioning=no
14060    case `$LD -v 2>/dev/null` in
14061      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14062      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14063      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14064      *\ 2.11.*) ;; # other 2.11 versions
14065      *) supports_anon_versioning=yes ;;
14066    esac
14067
14068    # See if GNU ld supports shared libraries.
14069    case $host_os in
14070    aix3* | aix4* | aix5*)
14071      # On AIX/PPC, the GNU linker is very broken
14072      if test "$host_cpu" != ia64; then
14073	ld_shlibs_F77=no
14074	cat <<EOF 1>&2
14075
14076*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14077*** to be unable to reliably create shared libraries on AIX.
14078*** Therefore, libtool is disabling shared libraries support.  If you
14079*** really care for shared libraries, you may want to modify your PATH
14080*** so that a non-GNU linker is found, and then restart.
14081
14082EOF
14083      fi
14084      ;;
14085
14086    amigaos*)
14087      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)'
14088      hardcode_libdir_flag_spec_F77='-L$libdir'
14089      hardcode_minus_L_F77=yes
14090
14091      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14092      # that the semantics of dynamic libraries on AmigaOS, at least up
14093      # to version 4, is to share data among multiple programs linked
14094      # with the same dynamic library.  Since this doesn't match the
14095      # behavior of shared libraries on other platforms, we can't use
14096      # them.
14097      ld_shlibs_F77=no
14098      ;;
14099
14100    beos*)
14101      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14102	allow_undefined_flag_F77=unsupported
14103	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14104	# support --undefined.  This deserves some investigation.  FIXME
14105	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106      else
14107	ld_shlibs_F77=no
14108      fi
14109      ;;
14110
14111    cygwin* | mingw* | pw32*)
14112      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14113      # as there is no search path for DLLs.
14114      hardcode_libdir_flag_spec_F77='-L$libdir'
14115      allow_undefined_flag_F77=unsupported
14116      always_export_symbols_F77=no
14117      enable_shared_with_static_runtimes_F77=yes
14118      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14119
14120      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14121        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14122	# If the export-symbols file already is a .def file (1st line
14123	# is EXPORTS), use it as is; otherwise, prepend...
14124	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14125	  cp $export_symbols $output_objdir/$soname.def;
14126	else
14127	  echo EXPORTS > $output_objdir/$soname.def;
14128	  cat $export_symbols >> $output_objdir/$soname.def;
14129	fi~
14130	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14131      else
14132	ld_shlibs_F77=no
14133      fi
14134      ;;
14135
14136    linux*)
14137      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14138	tmp_addflag=
14139	case $cc_basename,$host_cpu in
14140	pgcc*)				# Portland Group C compiler
14141	  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'
14142	  tmp_addflag=' $pic_flag'
14143	  ;;
14144	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14145	  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'
14146	  tmp_addflag=' $pic_flag -Mnomain' ;;
14147	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14148	  tmp_addflag=' -i_dynamic' ;;
14149	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14150	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14151	ifc* | ifort*)			# Intel Fortran compiler
14152	  tmp_addflag=' -nofor_main' ;;
14153	esac
14154	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155
14156	if test $supports_anon_versioning = yes; then
14157	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14158  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14159  $echo "local: *; };" >> $output_objdir/$libname.ver~
14160	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14161	fi
14162	link_all_deplibs_F77=no
14163      else
14164	ld_shlibs_F77=no
14165      fi
14166      ;;
14167
14168    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14169      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14170	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14171	wlarc=
14172      else
14173	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14174	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14175      fi
14176      ;;
14177
14178    solaris* | sysv5*)
14179      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14180	ld_shlibs_F77=no
14181	cat <<EOF 1>&2
14182
14183*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14184*** create shared libraries on Solaris systems.  Therefore, libtool
14185*** is disabling shared libraries support.  We urge you to upgrade GNU
14186*** binutils to release 2.9.1 or newer.  Another option is to modify
14187*** your PATH or compiler configuration so that the native linker is
14188*** used, and then restart.
14189
14190EOF
14191      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14192	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14193	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14194      else
14195	ld_shlibs_F77=no
14196      fi
14197      ;;
14198
14199    sunos4*)
14200      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14201      wlarc=
14202      hardcode_direct_F77=yes
14203      hardcode_shlibpath_var_F77=no
14204      ;;
14205
14206    *)
14207      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14208	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14209	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14210      else
14211	ld_shlibs_F77=no
14212      fi
14213      ;;
14214    esac
14215
14216    if test "$ld_shlibs_F77" = no; then
14217      runpath_var=
14218      hardcode_libdir_flag_spec_F77=
14219      export_dynamic_flag_spec_F77=
14220      whole_archive_flag_spec_F77=
14221    fi
14222  else
14223    # PORTME fill in a description of your system's linker (not GNU ld)
14224    case $host_os in
14225    aix3*)
14226      allow_undefined_flag_F77=unsupported
14227      always_export_symbols_F77=yes
14228      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'
14229      # Note: this linker hardcodes the directories in LIBPATH if there
14230      # are no directories specified by -L.
14231      hardcode_minus_L_F77=yes
14232      if test "$GCC" = yes && test -z "$link_static_flag"; then
14233	# Neither direct hardcoding nor static linking is supported with a
14234	# broken collect2.
14235	hardcode_direct_F77=unsupported
14236      fi
14237      ;;
14238
14239    aix4* | aix5*)
14240      if test "$host_cpu" = ia64; then
14241	# On IA64, the linker does run time linking by default, so we don't
14242	# have to do anything special.
14243	aix_use_runtimelinking=no
14244	exp_sym_flag='-Bexport'
14245	no_entry_flag=""
14246      else
14247	# If we're using GNU nm, then we don't want the "-C" option.
14248	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14249	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14250	  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'
14251	else
14252	  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'
14253	fi
14254	aix_use_runtimelinking=no
14255
14256	# Test if we are trying to use run time linking or normal
14257	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14258	# need to do runtime linking.
14259	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14260	  for ld_flag in $LDFLAGS; do
14261  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14262  	    aix_use_runtimelinking=yes
14263  	    break
14264  	  fi
14265	  done
14266	esac
14267
14268	exp_sym_flag='-bexport'
14269	no_entry_flag='-bnoentry'
14270      fi
14271
14272      # When large executables or shared objects are built, AIX ld can
14273      # have problems creating the table of contents.  If linking a library
14274      # or program results in "error TOC overflow" add -mminimal-toc to
14275      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14276      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14277
14278      archive_cmds_F77=''
14279      hardcode_direct_F77=yes
14280      hardcode_libdir_separator_F77=':'
14281      link_all_deplibs_F77=yes
14282
14283      if test "$GCC" = yes; then
14284	case $host_os in aix4.[012]|aix4.[012].*)
14285	# We only want to do this on AIX 4.2 and lower, the check
14286	# below for broken collect2 doesn't work under 4.3+
14287	  collect2name=`${CC} -print-prog-name=collect2`
14288	  if test -f "$collect2name" && \
14289  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14290	  then
14291  	  # We have reworked collect2
14292  	  hardcode_direct_F77=yes
14293	  else
14294  	  # We have old collect2
14295  	  hardcode_direct_F77=unsupported
14296  	  # It fails to find uninstalled libraries when the uninstalled
14297  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14298  	  # to unsupported forces relinking
14299  	  hardcode_minus_L_F77=yes
14300  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14301  	  hardcode_libdir_separator_F77=
14302	  fi
14303	esac
14304	shared_flag='-shared'
14305	if test "$aix_use_runtimelinking" = yes; then
14306	  shared_flag="$shared_flag "'${wl}-G'
14307	fi
14308      else
14309	# not using gcc
14310	if test "$host_cpu" = ia64; then
14311  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14312  	# chokes on -Wl,-G. The following line is correct:
14313	  shared_flag='-G'
14314	else
14315  	if test "$aix_use_runtimelinking" = yes; then
14316	    shared_flag='${wl}-G'
14317	  else
14318	    shared_flag='${wl}-bM:SRE'
14319  	fi
14320	fi
14321      fi
14322
14323      # It seems that -bexpall does not export symbols beginning with
14324      # underscore (_), so it is better to generate a list of symbols to export.
14325      always_export_symbols_F77=yes
14326      if test "$aix_use_runtimelinking" = yes; then
14327	# Warning - without using the other runtime loading flags (-brtl),
14328	# -berok will link without error, but may produce a broken library.
14329	allow_undefined_flag_F77='-berok'
14330       # Determine the default libpath from the value encoded in an empty executable.
14331       cat >conftest.$ac_ext <<_ACEOF
14332      program main
14333
14334      end
14335_ACEOF
14336rm -f conftest.$ac_objext conftest$ac_exeext
14337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14338  (eval $ac_link) 2>conftest.er1
14339  ac_status=$?
14340  grep -v '^ *+' conftest.er1 >conftest.err
14341  rm -f conftest.er1
14342  cat conftest.err >&5
14343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344  (exit $ac_status); } &&
14345	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347  (eval $ac_try) 2>&5
14348  ac_status=$?
14349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350  (exit $ac_status); }; } &&
14351	 { ac_try='test -s conftest$ac_exeext'
14352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353  (eval $ac_try) 2>&5
14354  ac_status=$?
14355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356  (exit $ac_status); }; }; then
14357
14358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14359}'`
14360# Check for a 64-bit object if we didn't find anything.
14361if 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; }
14362}'`; fi
14363else
14364  echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
14367fi
14368rm -f conftest.err conftest.$ac_objext \
14369      conftest$ac_exeext conftest.$ac_ext
14370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14371
14372       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14373	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14374       else
14375	if test "$host_cpu" = ia64; then
14376	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14377	  allow_undefined_flag_F77="-z nodefs"
14378	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14379	else
14380	 # Determine the default libpath from the value encoded in an empty executable.
14381	 cat >conftest.$ac_ext <<_ACEOF
14382      program main
14383
14384      end
14385_ACEOF
14386rm -f conftest.$ac_objext conftest$ac_exeext
14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388  (eval $ac_link) 2>conftest.er1
14389  ac_status=$?
14390  grep -v '^ *+' conftest.er1 >conftest.err
14391  rm -f conftest.er1
14392  cat conftest.err >&5
14393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394  (exit $ac_status); } &&
14395	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397  (eval $ac_try) 2>&5
14398  ac_status=$?
14399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400  (exit $ac_status); }; } &&
14401	 { ac_try='test -s conftest$ac_exeext'
14402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403  (eval $ac_try) 2>&5
14404  ac_status=$?
14405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406  (exit $ac_status); }; }; then
14407
14408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14409}'`
14410# Check for a 64-bit object if we didn't find anything.
14411if 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; }
14412}'`; fi
14413else
14414  echo "$as_me: failed program was:" >&5
14415sed 's/^/| /' conftest.$ac_ext >&5
14416
14417fi
14418rm -f conftest.err conftest.$ac_objext \
14419      conftest$ac_exeext conftest.$ac_ext
14420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14421
14422	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14423	  # Warning - without using the other run time loading flags,
14424	  # -berok will link without error, but may produce a broken library.
14425	  no_undefined_flag_F77=' ${wl}-bernotok'
14426	  allow_undefined_flag_F77=' ${wl}-berok'
14427	  # -bexpall does not export symbols beginning with underscore (_)
14428	  always_export_symbols_F77=yes
14429	  # Exported symbols can be pulled into shared objects from archives
14430	  whole_archive_flag_spec_F77=' '
14431	  archive_cmds_need_lc_F77=yes
14432	  # This is similar to how AIX traditionally builds its shared libraries.
14433	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14434	fi
14435      fi
14436      ;;
14437
14438    amigaos*)
14439      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)'
14440      hardcode_libdir_flag_spec_F77='-L$libdir'
14441      hardcode_minus_L_F77=yes
14442      # see comment about different semantics on the GNU ld section
14443      ld_shlibs_F77=no
14444      ;;
14445
14446    bsdi[45]*)
14447      export_dynamic_flag_spec_F77=-rdynamic
14448      ;;
14449
14450    cygwin* | mingw* | pw32*)
14451      # When not using gcc, we currently assume that we are using
14452      # Microsoft Visual C++.
14453      # hardcode_libdir_flag_spec is actually meaningless, as there is
14454      # no search path for DLLs.
14455      hardcode_libdir_flag_spec_F77=' '
14456      allow_undefined_flag_F77=unsupported
14457      # Tell ltmain to make .lib files, not .a files.
14458      libext=lib
14459      # Tell ltmain to make .dll files, not .so files.
14460      shrext_cmds=".dll"
14461      # FIXME: Setting linknames here is a bad hack.
14462      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14463      # The linker will automatically build a .lib file if we build a DLL.
14464      old_archive_From_new_cmds_F77='true'
14465      # FIXME: Should let the user specify the lib program.
14466      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14467      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14468      enable_shared_with_static_runtimes_F77=yes
14469      ;;
14470
14471    darwin* | rhapsody*)
14472      case $host_os in
14473        rhapsody* | darwin1.[012])
14474         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14475         ;;
14476       *) # Darwin 1.3 on
14477         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14478           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14479         else
14480           case ${MACOSX_DEPLOYMENT_TARGET} in
14481             10.[012])
14482               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14483               ;;
14484             10.*)
14485               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14486               ;;
14487           esac
14488         fi
14489         ;;
14490      esac
14491      archive_cmds_need_lc_F77=no
14492      hardcode_direct_F77=no
14493      hardcode_automatic_F77=yes
14494      hardcode_shlibpath_var_F77=unsupported
14495      whole_archive_flag_spec_F77=''
14496      link_all_deplibs_F77=yes
14497    if test "$GCC" = yes ; then
14498    	output_verbose_link_cmd='echo'
14499        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14500      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14501      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14502      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}'
14503      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}'
14504    else
14505      case $cc_basename in
14506        xlc*)
14507         output_verbose_link_cmd='echo'
14508         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14509         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14510          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14511         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}'
14512          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}'
14513          ;;
14514       *)
14515         ld_shlibs_F77=no
14516          ;;
14517      esac
14518    fi
14519      ;;
14520
14521    dgux*)
14522      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523      hardcode_libdir_flag_spec_F77='-L$libdir'
14524      hardcode_shlibpath_var_F77=no
14525      ;;
14526
14527    freebsd1*)
14528      ld_shlibs_F77=no
14529      ;;
14530
14531    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14532    # support.  Future versions do this automatically, but an explicit c++rt0.o
14533    # does not break anything, and helps significantly (at the cost of a little
14534    # extra space).
14535    freebsd2.2*)
14536      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14537      hardcode_libdir_flag_spec_F77='-R$libdir'
14538      hardcode_direct_F77=yes
14539      hardcode_shlibpath_var_F77=no
14540      ;;
14541
14542    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14543    freebsd2*)
14544      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545      hardcode_direct_F77=yes
14546      hardcode_minus_L_F77=yes
14547      hardcode_shlibpath_var_F77=no
14548      ;;
14549
14550    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14551    freebsd* | kfreebsd*-gnu | dragonfly*)
14552      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14553      hardcode_libdir_flag_spec_F77='-R$libdir'
14554      hardcode_direct_F77=yes
14555      hardcode_shlibpath_var_F77=no
14556      ;;
14557
14558    hpux9*)
14559      if test "$GCC" = yes; then
14560	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'
14561      else
14562	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'
14563      fi
14564      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14565      hardcode_libdir_separator_F77=:
14566      hardcode_direct_F77=yes
14567
14568      # hardcode_minus_L: Not really in the search PATH,
14569      # but as the default location of the library.
14570      hardcode_minus_L_F77=yes
14571      export_dynamic_flag_spec_F77='${wl}-E'
14572      ;;
14573
14574    hpux10* | hpux11*)
14575      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14576	case $host_cpu in
14577	hppa*64*|ia64*)
14578	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14579	  ;;
14580	*)
14581	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14582	  ;;
14583	esac
14584      else
14585	case $host_cpu in
14586	hppa*64*|ia64*)
14587	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14588	  ;;
14589	*)
14590	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14591	  ;;
14592	esac
14593      fi
14594      if test "$with_gnu_ld" = no; then
14595	case $host_cpu in
14596	hppa*64*)
14597	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14598	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14599	  hardcode_libdir_separator_F77=:
14600	  hardcode_direct_F77=no
14601	  hardcode_shlibpath_var_F77=no
14602	  ;;
14603	ia64*)
14604	  hardcode_libdir_flag_spec_F77='-L$libdir'
14605	  hardcode_direct_F77=no
14606	  hardcode_shlibpath_var_F77=no
14607
14608	  # hardcode_minus_L: Not really in the search PATH,
14609	  # but as the default location of the library.
14610	  hardcode_minus_L_F77=yes
14611	  ;;
14612	*)
14613	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14614	  hardcode_libdir_separator_F77=:
14615	  hardcode_direct_F77=yes
14616	  export_dynamic_flag_spec_F77='${wl}-E'
14617
14618	  # hardcode_minus_L: Not really in the search PATH,
14619	  # but as the default location of the library.
14620	  hardcode_minus_L_F77=yes
14621	  ;;
14622	esac
14623      fi
14624      ;;
14625
14626    irix5* | irix6* | nonstopux*)
14627      if test "$GCC" = yes; then
14628	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'
14629      else
14630	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'
14631	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14632      fi
14633      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14634      hardcode_libdir_separator_F77=:
14635      link_all_deplibs_F77=yes
14636      ;;
14637
14638    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14639      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14640	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14641      else
14642	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14643      fi
14644      hardcode_libdir_flag_spec_F77='-R$libdir'
14645      hardcode_direct_F77=yes
14646      hardcode_shlibpath_var_F77=no
14647      ;;
14648
14649    newsos6)
14650      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14651      hardcode_direct_F77=yes
14652      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14653      hardcode_libdir_separator_F77=:
14654      hardcode_shlibpath_var_F77=no
14655      ;;
14656
14657    openbsd*)
14658      hardcode_direct_F77=yes
14659      hardcode_shlibpath_var_F77=no
14660      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14661	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14662	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14663	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14664	export_dynamic_flag_spec_F77='${wl}-E'
14665      else
14666       case $host_os in
14667	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14668	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14669	   hardcode_libdir_flag_spec_F77='-R$libdir'
14670	   ;;
14671	 *)
14672	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14673	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14674	   ;;
14675       esac
14676      fi
14677      ;;
14678
14679    os2*)
14680      hardcode_libdir_flag_spec_F77='-L$libdir'
14681      hardcode_minus_L_F77=yes
14682      allow_undefined_flag_F77=unsupported
14683      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'
14684      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14685      ;;
14686
14687    osf3*)
14688      if test "$GCC" = yes; then
14689	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14690	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'
14691      else
14692	allow_undefined_flag_F77=' -expect_unresolved \*'
14693	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'
14694      fi
14695      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14696      hardcode_libdir_separator_F77=:
14697      ;;
14698
14699    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14700      if test "$GCC" = yes; then
14701	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14702	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'
14703	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14704      else
14705	allow_undefined_flag_F77=' -expect_unresolved \*'
14706	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'
14707	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~
14708	$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'
14709
14710	# Both c and cxx compiler support -rpath directly
14711	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14712      fi
14713      hardcode_libdir_separator_F77=:
14714      ;;
14715
14716    sco3.2v5*)
14717      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14718      hardcode_shlibpath_var_F77=no
14719      export_dynamic_flag_spec_F77='${wl}-Bexport'
14720      runpath_var=LD_RUN_PATH
14721      hardcode_runpath_var=yes
14722      ;;
14723
14724    solaris*)
14725      no_undefined_flag_F77=' -z text'
14726      if test "$GCC" = yes; then
14727	wlarc='${wl}'
14728	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14729	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14730	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14731      else
14732	wlarc=''
14733	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14735  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14736      fi
14737      hardcode_libdir_flag_spec_F77='-R$libdir'
14738      hardcode_shlibpath_var_F77=no
14739      case $host_os in
14740      solaris2.[0-5] | solaris2.[0-5].*) ;;
14741      *)
14742 	# The compiler driver will combine linker options so we
14743 	# cannot just pass the convience library names through
14744 	# without $wl, iff we do not link with $LD.
14745 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14746 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14747 	case $wlarc in
14748 	'')
14749 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14750 	*)
14751 	  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' ;;
14752 	esac ;;
14753      esac
14754      link_all_deplibs_F77=yes
14755      ;;
14756
14757    sunos4*)
14758      if test "x$host_vendor" = xsequent; then
14759	# Use $CC to link under sequent, because it throws in some extra .o
14760	# files that make .init and .fini sections work.
14761	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14762      else
14763	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14764      fi
14765      hardcode_libdir_flag_spec_F77='-L$libdir'
14766      hardcode_direct_F77=yes
14767      hardcode_minus_L_F77=yes
14768      hardcode_shlibpath_var_F77=no
14769      ;;
14770
14771    sysv4)
14772      case $host_vendor in
14773	sni)
14774	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775	  hardcode_direct_F77=yes # is this really true???
14776	;;
14777	siemens)
14778	  ## LD is ld it makes a PLAMLIB
14779	  ## CC just makes a GrossModule.
14780	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14781	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14782	  hardcode_direct_F77=no
14783        ;;
14784	motorola)
14785	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14787	;;
14788      esac
14789      runpath_var='LD_RUN_PATH'
14790      hardcode_shlibpath_var_F77=no
14791      ;;
14792
14793    sysv4.3*)
14794      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14795      hardcode_shlibpath_var_F77=no
14796      export_dynamic_flag_spec_F77='-Bexport'
14797      ;;
14798
14799    sysv4*MP*)
14800      if test -d /usr/nec; then
14801	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802	hardcode_shlibpath_var_F77=no
14803	runpath_var=LD_RUN_PATH
14804	hardcode_runpath_var=yes
14805	ld_shlibs_F77=yes
14806      fi
14807      ;;
14808
14809    sysv4.2uw2*)
14810      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14811      hardcode_direct_F77=yes
14812      hardcode_minus_L_F77=no
14813      hardcode_shlibpath_var_F77=no
14814      hardcode_runpath_var=yes
14815      runpath_var=LD_RUN_PATH
14816      ;;
14817
14818   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14819      no_undefined_flag_F77='${wl}-z ${wl}text'
14820      if test "$GCC" = yes; then
14821	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14822      else
14823	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14824      fi
14825      runpath_var='LD_RUN_PATH'
14826      hardcode_shlibpath_var_F77=no
14827      ;;
14828
14829    sysv5*)
14830      no_undefined_flag_F77=' -z text'
14831      # $CC -shared without GNU ld will not create a library from C++
14832      # object files and a static libstdc++, better avoid it by now
14833      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14834      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14835  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14836      hardcode_libdir_flag_spec_F77=
14837      hardcode_shlibpath_var_F77=no
14838      runpath_var='LD_RUN_PATH'
14839      ;;
14840
14841    uts4*)
14842      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14843      hardcode_libdir_flag_spec_F77='-L$libdir'
14844      hardcode_shlibpath_var_F77=no
14845      ;;
14846
14847    *)
14848      ld_shlibs_F77=no
14849      ;;
14850    esac
14851  fi
14852
14853echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14854echo "${ECHO_T}$ld_shlibs_F77" >&6
14855test "$ld_shlibs_F77" = no && can_build_shared=no
14856
14857variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14858if test "$GCC" = yes; then
14859  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14860fi
14861
14862#
14863# Do we need to explicitly link libc?
14864#
14865case "x$archive_cmds_need_lc_F77" in
14866x|xyes)
14867  # Assume -lc should be added
14868  archive_cmds_need_lc_F77=yes
14869
14870  if test "$enable_shared" = yes && test "$GCC" = yes; then
14871    case $archive_cmds_F77 in
14872    *'~'*)
14873      # FIXME: we may have to deal with multi-command sequences.
14874      ;;
14875    '$CC '*)
14876      # Test whether the compiler implicitly links with -lc since on some
14877      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14878      # to ld, don't add -lc before -lgcc.
14879      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14880echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14881      $rm conftest*
14882      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14883
14884      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14885  (eval $ac_compile) 2>&5
14886  ac_status=$?
14887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888  (exit $ac_status); } 2>conftest.err; then
14889        soname=conftest
14890        lib=conftest
14891        libobjs=conftest.$ac_objext
14892        deplibs=
14893        wl=$lt_prog_compiler_wl_F77
14894        compiler_flags=-v
14895        linker_flags=-v
14896        verstring=
14897        output_objdir=.
14898        libname=conftest
14899        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14900        allow_undefined_flag_F77=
14901        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14902  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14903  ac_status=$?
14904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905  (exit $ac_status); }
14906        then
14907	  archive_cmds_need_lc_F77=no
14908        else
14909	  archive_cmds_need_lc_F77=yes
14910        fi
14911        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14912      else
14913        cat conftest.err 1>&5
14914      fi
14915      $rm conftest*
14916      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14917echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14918      ;;
14919    esac
14920  fi
14921  ;;
14922esac
14923
14924echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14925echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14926library_names_spec=
14927libname_spec='lib$name'
14928soname_spec=
14929shrext_cmds=".so"
14930postinstall_cmds=
14931postuninstall_cmds=
14932finish_cmds=
14933finish_eval=
14934shlibpath_var=
14935shlibpath_overrides_runpath=unknown
14936version_type=none
14937dynamic_linker="$host_os ld.so"
14938sys_lib_dlsearch_path_spec="/lib /usr/lib"
14939if test "$GCC" = yes; then
14940  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14941  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14942    # if the path contains ";" then we assume it to be the separator
14943    # otherwise default to the standard path separator (i.e. ":") - it is
14944    # assumed that no part of a normal pathname contains ";" but that should
14945    # okay in the real world where ";" in dirpaths is itself problematic.
14946    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14947  else
14948    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14949  fi
14950else
14951  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14952fi
14953need_lib_prefix=unknown
14954hardcode_into_libs=no
14955
14956# when you set need_version to no, make sure it does not cause -set_version
14957# flags to be left without arguments
14958need_version=unknown
14959
14960case $host_os in
14961aix3*)
14962  version_type=linux
14963  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14964  shlibpath_var=LIBPATH
14965
14966  # AIX 3 has no versioning support, so we append a major version to the name.
14967  soname_spec='${libname}${release}${shared_ext}$major'
14968  ;;
14969
14970aix4* | aix5*)
14971  version_type=linux
14972  need_lib_prefix=no
14973  need_version=no
14974  hardcode_into_libs=yes
14975  if test "$host_cpu" = ia64; then
14976    # AIX 5 supports IA64
14977    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14978    shlibpath_var=LD_LIBRARY_PATH
14979  else
14980    # With GCC up to 2.95.x, collect2 would create an import file
14981    # for dependence libraries.  The import file would start with
14982    # the line `#! .'.  This would cause the generated library to
14983    # depend on `.', always an invalid library.  This was fixed in
14984    # development snapshots of GCC prior to 3.0.
14985    case $host_os in
14986      aix4 | aix4.[01] | aix4.[01].*)
14987      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14988	   echo ' yes '
14989	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14990	:
14991      else
14992	can_build_shared=no
14993      fi
14994      ;;
14995    esac
14996    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14997    # soname into executable. Probably we can add versioning support to
14998    # collect2, so additional links can be useful in future.
14999    if test "$aix_use_runtimelinking" = yes; then
15000      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15001      # instead of lib<name>.a to let people know that these are not
15002      # typical AIX shared libraries.
15003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004    else
15005      # We preserve .a as extension for shared libraries through AIX4.2
15006      # and later when we are not doing run time linking.
15007      library_names_spec='${libname}${release}.a $libname.a'
15008      soname_spec='${libname}${release}${shared_ext}$major'
15009    fi
15010    shlibpath_var=LIBPATH
15011  fi
15012  ;;
15013
15014amigaos*)
15015  library_names_spec='$libname.ixlibrary $libname.a'
15016  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15017  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'
15018  ;;
15019
15020beos*)
15021  library_names_spec='${libname}${shared_ext}'
15022  dynamic_linker="$host_os ld.so"
15023  shlibpath_var=LIBRARY_PATH
15024  ;;
15025
15026bsdi[45]*)
15027  version_type=linux
15028  need_version=no
15029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030  soname_spec='${libname}${release}${shared_ext}$major'
15031  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15032  shlibpath_var=LD_LIBRARY_PATH
15033  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15034  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15035  # the default ld.so.conf also contains /usr/contrib/lib and
15036  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15037  # libtool to hard-code these into programs
15038  ;;
15039
15040cygwin* | mingw* | pw32*)
15041  version_type=windows
15042  shrext_cmds=".dll"
15043  need_version=no
15044  need_lib_prefix=no
15045
15046  case $GCC,$host_os in
15047  yes,cygwin* | yes,mingw* | yes,pw32*)
15048    library_names_spec='$libname.dll.a'
15049    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15050    postinstall_cmds='base_file=`basename \${file}`~
15051      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15052      dldir=$destdir/`dirname \$dlpath`~
15053      test -d \$dldir || mkdir -p \$dldir~
15054      $install_prog $dir/$dlname \$dldir/$dlname~
15055      chmod a+x \$dldir/$dlname'
15056    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15057      dlpath=$dir/\$dldll~
15058       $rm \$dlpath'
15059    shlibpath_overrides_runpath=yes
15060
15061    case $host_os in
15062    cygwin*)
15063      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15064      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15065      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15066      ;;
15067    mingw*)
15068      # MinGW DLLs use traditional 'lib' prefix
15069      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15071      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15072        # It is most probably a Windows format PATH printed by
15073        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15074        # path with ; separators, and with drive letters. We can handle the
15075        # drive letters (cygwin fileutils understands them), so leave them,
15076        # especially as we might pass files found there to a mingw objdump,
15077        # which wouldn't understand a cygwinified path. Ahh.
15078        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15079      else
15080        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15081      fi
15082      ;;
15083    pw32*)
15084      # pw32 DLLs use 'pw' prefix rather than 'lib'
15085      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15086      ;;
15087    esac
15088    ;;
15089
15090  *)
15091    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15092    ;;
15093  esac
15094  dynamic_linker='Win32 ld.exe'
15095  # FIXME: first we should search . and the directory the executable is in
15096  shlibpath_var=PATH
15097  ;;
15098
15099darwin* | rhapsody*)
15100  dynamic_linker="$host_os dyld"
15101  version_type=darwin
15102  need_lib_prefix=no
15103  need_version=no
15104  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15105  soname_spec='${libname}${release}${major}$shared_ext'
15106  shlibpath_overrides_runpath=yes
15107  shlibpath_var=DYLD_LIBRARY_PATH
15108  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15109  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15110  if test "$GCC" = yes; then
15111    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"`
15112  else
15113    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15114  fi
15115  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15116  ;;
15117
15118dgux*)
15119  version_type=linux
15120  need_lib_prefix=no
15121  need_version=no
15122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15123  soname_spec='${libname}${release}${shared_ext}$major'
15124  shlibpath_var=LD_LIBRARY_PATH
15125  ;;
15126
15127freebsd1*)
15128  dynamic_linker=no
15129  ;;
15130
15131kfreebsd*-gnu)
15132  version_type=linux
15133  need_lib_prefix=no
15134  need_version=no
15135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15136  soname_spec='${libname}${release}${shared_ext}$major'
15137  shlibpath_var=LD_LIBRARY_PATH
15138  shlibpath_overrides_runpath=no
15139  hardcode_into_libs=yes
15140  dynamic_linker='GNU ld.so'
15141  ;;
15142
15143freebsd* | dragonfly*)
15144  # DragonFly does not have aout.  When/if they implement a new
15145  # versioning mechanism, adjust this.
15146  if test -x /usr/bin/objformat; then
15147    objformat=`/usr/bin/objformat`
15148  else
15149    case $host_os in
15150    freebsd[123]*) objformat=aout ;;
15151    *) objformat=elf ;;
15152    esac
15153  fi
15154  version_type=freebsd-$objformat
15155  case $version_type in
15156    freebsd-elf*)
15157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15158      need_version=no
15159      need_lib_prefix=no
15160      ;;
15161    freebsd-*)
15162      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15163      need_version=yes
15164      ;;
15165  esac
15166  shlibpath_var=LD_LIBRARY_PATH
15167  case $host_os in
15168  freebsd2*)
15169    shlibpath_overrides_runpath=yes
15170    ;;
15171  freebsd3.[01]* | freebsdelf3.[01]*)
15172    shlibpath_overrides_runpath=yes
15173    hardcode_into_libs=yes
15174    ;;
15175  *) # from 3.2 on
15176    shlibpath_overrides_runpath=no
15177    hardcode_into_libs=yes
15178    ;;
15179  esac
15180  ;;
15181
15182gnu*)
15183  version_type=linux
15184  need_lib_prefix=no
15185  need_version=no
15186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15187  soname_spec='${libname}${release}${shared_ext}$major'
15188  shlibpath_var=LD_LIBRARY_PATH
15189  hardcode_into_libs=yes
15190  ;;
15191
15192hpux9* | hpux10* | hpux11*)
15193  # Give a soname corresponding to the major version so that dld.sl refuses to
15194  # link against other versions.
15195  version_type=sunos
15196  need_lib_prefix=no
15197  need_version=no
15198  case $host_cpu in
15199  ia64*)
15200    shrext_cmds='.so'
15201    hardcode_into_libs=yes
15202    dynamic_linker="$host_os dld.so"
15203    shlibpath_var=LD_LIBRARY_PATH
15204    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15205    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206    soname_spec='${libname}${release}${shared_ext}$major'
15207    if test "X$HPUX_IA64_MODE" = X32; then
15208      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15209    else
15210      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15211    fi
15212    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15213    ;;
15214   hppa*64*)
15215     shrext_cmds='.sl'
15216     hardcode_into_libs=yes
15217     dynamic_linker="$host_os dld.sl"
15218     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221     soname_spec='${libname}${release}${shared_ext}$major'
15222     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15223     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15224     ;;
15225   *)
15226    shrext_cmds='.sl'
15227    dynamic_linker="$host_os dld.sl"
15228    shlibpath_var=SHLIB_PATH
15229    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231    soname_spec='${libname}${release}${shared_ext}$major'
15232    ;;
15233  esac
15234  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15235  postinstall_cmds='chmod 555 $lib'
15236  ;;
15237
15238irix5* | irix6* | nonstopux*)
15239  case $host_os in
15240    nonstopux*) version_type=nonstopux ;;
15241    *)
15242	if test "$lt_cv_prog_gnu_ld" = yes; then
15243		version_type=linux
15244	else
15245		version_type=irix
15246	fi ;;
15247  esac
15248  need_lib_prefix=no
15249  need_version=no
15250  soname_spec='${libname}${release}${shared_ext}$major'
15251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15252  case $host_os in
15253  irix5* | nonstopux*)
15254    libsuff= shlibsuff=
15255    ;;
15256  *)
15257    case $LD in # libtool.m4 will add one of these switches to LD
15258    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15259      libsuff= shlibsuff= libmagic=32-bit;;
15260    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15261      libsuff=32 shlibsuff=N32 libmagic=N32;;
15262    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15263      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15264    *) libsuff= shlibsuff= libmagic=never-match;;
15265    esac
15266    ;;
15267  esac
15268  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15269  shlibpath_overrides_runpath=no
15270  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15271  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15272  hardcode_into_libs=yes
15273  ;;
15274
15275# No shared lib support for Linux oldld, aout, or coff.
15276linux*oldld* | linux*aout* | linux*coff*)
15277  dynamic_linker=no
15278  ;;
15279
15280# This must be Linux ELF.
15281linux*)
15282  version_type=linux
15283  need_lib_prefix=no
15284  need_version=no
15285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286  soname_spec='${libname}${release}${shared_ext}$major'
15287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15288  shlibpath_var=LD_LIBRARY_PATH
15289  shlibpath_overrides_runpath=no
15290  # This implies no fast_install, which is unacceptable.
15291  # Some rework will be needed to allow for fast_install
15292  # before this can be enabled.
15293  hardcode_into_libs=yes
15294
15295  # Append ld.so.conf contents to the search path
15296  if test -f /etc/ld.so.conf; then
15297    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' ' '`
15298    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15299  fi
15300
15301  # We used to test for /lib/ld.so.1 and disable shared libraries on
15302  # powerpc, because MkLinux only supported shared libraries with the
15303  # GNU dynamic linker.  Since this was broken with cross compilers,
15304  # most powerpc-linux boxes support dynamic linking these days and
15305  # people can always --disable-shared, the test was removed, and we
15306  # assume the GNU/Linux dynamic linker is in use.
15307  dynamic_linker='GNU/Linux ld.so'
15308  ;;
15309
15310netbsdelf*-gnu)
15311  version_type=linux
15312  need_lib_prefix=no
15313  need_version=no
15314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15315  soname_spec='${libname}${release}${shared_ext}$major'
15316  shlibpath_var=LD_LIBRARY_PATH
15317  shlibpath_overrides_runpath=no
15318  hardcode_into_libs=yes
15319  dynamic_linker='NetBSD ld.elf_so'
15320  ;;
15321
15322knetbsd*-gnu)
15323  version_type=linux
15324  need_lib_prefix=no
15325  need_version=no
15326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15327  soname_spec='${libname}${release}${shared_ext}$major'
15328  shlibpath_var=LD_LIBRARY_PATH
15329  shlibpath_overrides_runpath=no
15330  hardcode_into_libs=yes
15331  dynamic_linker='GNU ld.so'
15332  ;;
15333
15334netbsd*)
15335  version_type=sunos
15336  need_lib_prefix=no
15337  need_version=no
15338  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15339    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15340    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15341    dynamic_linker='NetBSD (a.out) ld.so'
15342  else
15343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15344    soname_spec='${libname}${release}${shared_ext}$major'
15345    dynamic_linker='NetBSD ld.elf_so'
15346  fi
15347  shlibpath_var=LD_LIBRARY_PATH
15348  shlibpath_overrides_runpath=yes
15349  hardcode_into_libs=yes
15350  ;;
15351
15352newsos6)
15353  version_type=linux
15354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355  shlibpath_var=LD_LIBRARY_PATH
15356  shlibpath_overrides_runpath=yes
15357  ;;
15358
15359nto-qnx*)
15360  version_type=linux
15361  need_lib_prefix=no
15362  need_version=no
15363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364  soname_spec='${libname}${release}${shared_ext}$major'
15365  shlibpath_var=LD_LIBRARY_PATH
15366  shlibpath_overrides_runpath=yes
15367  ;;
15368
15369openbsd*)
15370  version_type=sunos
15371  need_lib_prefix=no
15372  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15373  case $host_os in
15374    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15375    *)                         need_version=no  ;;
15376  esac
15377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15379  shlibpath_var=LD_LIBRARY_PATH
15380  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15381    case $host_os in
15382      openbsd2.[89] | openbsd2.[89].*)
15383	shlibpath_overrides_runpath=no
15384	;;
15385      *)
15386	shlibpath_overrides_runpath=yes
15387	;;
15388      esac
15389  else
15390    shlibpath_overrides_runpath=yes
15391  fi
15392  ;;
15393
15394os2*)
15395  libname_spec='$name'
15396  shrext_cmds=".dll"
15397  need_lib_prefix=no
15398  library_names_spec='$libname${shared_ext} $libname.a'
15399  dynamic_linker='OS/2 ld.exe'
15400  shlibpath_var=LIBPATH
15401  ;;
15402
15403osf3* | osf4* | osf5*)
15404  version_type=osf
15405  need_lib_prefix=no
15406  need_version=no
15407  soname_spec='${libname}${release}${shared_ext}$major'
15408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409  shlibpath_var=LD_LIBRARY_PATH
15410  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15411  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15412  ;;
15413
15414sco3.2v5*)
15415  version_type=osf
15416  soname_spec='${libname}${release}${shared_ext}$major'
15417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418  shlibpath_var=LD_LIBRARY_PATH
15419  ;;
15420
15421solaris*)
15422  version_type=linux
15423  need_lib_prefix=no
15424  need_version=no
15425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426  soname_spec='${libname}${release}${shared_ext}$major'
15427  shlibpath_var=LD_LIBRARY_PATH
15428  shlibpath_overrides_runpath=yes
15429  hardcode_into_libs=yes
15430  # ldd complains unless libraries are executable
15431  postinstall_cmds='chmod +x $lib'
15432  ;;
15433
15434sunos4*)
15435  version_type=sunos
15436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15437  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15438  shlibpath_var=LD_LIBRARY_PATH
15439  shlibpath_overrides_runpath=yes
15440  if test "$with_gnu_ld" = yes; then
15441    need_lib_prefix=no
15442  fi
15443  need_version=yes
15444  ;;
15445
15446sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15447  version_type=linux
15448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449  soname_spec='${libname}${release}${shared_ext}$major'
15450  shlibpath_var=LD_LIBRARY_PATH
15451  case $host_vendor in
15452    sni)
15453      shlibpath_overrides_runpath=no
15454      need_lib_prefix=no
15455      export_dynamic_flag_spec='${wl}-Blargedynsym'
15456      runpath_var=LD_RUN_PATH
15457      ;;
15458    siemens)
15459      need_lib_prefix=no
15460      ;;
15461    motorola)
15462      need_lib_prefix=no
15463      need_version=no
15464      shlibpath_overrides_runpath=no
15465      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15466      ;;
15467  esac
15468  ;;
15469
15470sysv4*MP*)
15471  if test -d /usr/nec ;then
15472    version_type=linux
15473    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15474    soname_spec='$libname${shared_ext}.$major'
15475    shlibpath_var=LD_LIBRARY_PATH
15476  fi
15477  ;;
15478
15479uts4*)
15480  version_type=linux
15481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482  soname_spec='${libname}${release}${shared_ext}$major'
15483  shlibpath_var=LD_LIBRARY_PATH
15484  ;;
15485
15486*)
15487  dynamic_linker=no
15488  ;;
15489esac
15490echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15491echo "${ECHO_T}$dynamic_linker" >&6
15492test "$dynamic_linker" = no && can_build_shared=no
15493
15494echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15495echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15496hardcode_action_F77=
15497if test -n "$hardcode_libdir_flag_spec_F77" || \
15498   test -n "$runpath_var_F77" || \
15499   test "X$hardcode_automatic_F77" = "Xyes" ; then
15500
15501  # We can hardcode non-existant directories.
15502  if test "$hardcode_direct_F77" != no &&
15503     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15504     # have to relink, otherwise we might link with an installed library
15505     # when we should be linking with a yet-to-be-installed one
15506     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15507     test "$hardcode_minus_L_F77" != no; then
15508    # Linking always hardcodes the temporary library directory.
15509    hardcode_action_F77=relink
15510  else
15511    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15512    hardcode_action_F77=immediate
15513  fi
15514else
15515  # We cannot hardcode anything, or else we can only hardcode existing
15516  # directories.
15517  hardcode_action_F77=unsupported
15518fi
15519echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15520echo "${ECHO_T}$hardcode_action_F77" >&6
15521
15522if test "$hardcode_action_F77" = relink; then
15523  # Fast installation is not supported
15524  enable_fast_install=no
15525elif test "$shlibpath_overrides_runpath" = yes ||
15526     test "$enable_shared" = no; then
15527  # Fast installation is not necessary
15528  enable_fast_install=needless
15529fi
15530
15531striplib=
15532old_striplib=
15533echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15534echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15535if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15536  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15537  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15538  echo "$as_me:$LINENO: result: yes" >&5
15539echo "${ECHO_T}yes" >&6
15540else
15541# FIXME - insert some real tests, host_os isn't really good enough
15542  case $host_os in
15543   darwin*)
15544       if test -n "$STRIP" ; then
15545         striplib="$STRIP -x"
15546         echo "$as_me:$LINENO: result: yes" >&5
15547echo "${ECHO_T}yes" >&6
15548       else
15549  echo "$as_me:$LINENO: result: no" >&5
15550echo "${ECHO_T}no" >&6
15551fi
15552       ;;
15553   *)
15554  echo "$as_me:$LINENO: result: no" >&5
15555echo "${ECHO_T}no" >&6
15556    ;;
15557  esac
15558fi
15559
15560
15561
15562# The else clause should only fire when bootstrapping the
15563# libtool distribution, otherwise you forgot to ship ltmain.sh
15564# with your package, and you will get complaints that there are
15565# no rules to generate ltmain.sh.
15566if test -f "$ltmain"; then
15567  # See if we are running on zsh, and set the options which allow our commands through
15568  # without removal of \ escapes.
15569  if test -n "${ZSH_VERSION+set}" ; then
15570    setopt NO_GLOB_SUBST
15571  fi
15572  # Now quote all the things that may contain metacharacters while being
15573  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15574  # variables and quote the copies for generation of the libtool script.
15575  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15576    SED SHELL STRIP \
15577    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15578    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15579    deplibs_check_method reload_flag reload_cmds need_locks \
15580    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15581    lt_cv_sys_global_symbol_to_c_name_address \
15582    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15583    old_postinstall_cmds old_postuninstall_cmds \
15584    compiler_F77 \
15585    CC_F77 \
15586    LD_F77 \
15587    lt_prog_compiler_wl_F77 \
15588    lt_prog_compiler_pic_F77 \
15589    lt_prog_compiler_static_F77 \
15590    lt_prog_compiler_no_builtin_flag_F77 \
15591    export_dynamic_flag_spec_F77 \
15592    thread_safe_flag_spec_F77 \
15593    whole_archive_flag_spec_F77 \
15594    enable_shared_with_static_runtimes_F77 \
15595    old_archive_cmds_F77 \
15596    old_archive_from_new_cmds_F77 \
15597    predep_objects_F77 \
15598    postdep_objects_F77 \
15599    predeps_F77 \
15600    postdeps_F77 \
15601    compiler_lib_search_path_F77 \
15602    archive_cmds_F77 \
15603    archive_expsym_cmds_F77 \
15604    postinstall_cmds_F77 \
15605    postuninstall_cmds_F77 \
15606    old_archive_from_expsyms_cmds_F77 \
15607    allow_undefined_flag_F77 \
15608    no_undefined_flag_F77 \
15609    export_symbols_cmds_F77 \
15610    hardcode_libdir_flag_spec_F77 \
15611    hardcode_libdir_flag_spec_ld_F77 \
15612    hardcode_libdir_separator_F77 \
15613    hardcode_automatic_F77 \
15614    module_cmds_F77 \
15615    module_expsym_cmds_F77 \
15616    lt_cv_prog_compiler_c_o_F77 \
15617    exclude_expsyms_F77 \
15618    include_expsyms_F77; do
15619
15620    case $var in
15621    old_archive_cmds_F77 | \
15622    old_archive_from_new_cmds_F77 | \
15623    archive_cmds_F77 | \
15624    archive_expsym_cmds_F77 | \
15625    module_cmds_F77 | \
15626    module_expsym_cmds_F77 | \
15627    old_archive_from_expsyms_cmds_F77 | \
15628    export_symbols_cmds_F77 | \
15629    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15630    postinstall_cmds | postuninstall_cmds | \
15631    old_postinstall_cmds | old_postuninstall_cmds | \
15632    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15633      # Double-quote double-evaled strings.
15634      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15635      ;;
15636    *)
15637      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15638      ;;
15639    esac
15640  done
15641
15642  case $lt_echo in
15643  *'\$0 --fallback-echo"')
15644    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15645    ;;
15646  esac
15647
15648cfgfile="$ofile"
15649
15650  cat <<__EOF__ >> "$cfgfile"
15651# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15652
15653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15654
15655# Shell to use when invoking shell scripts.
15656SHELL=$lt_SHELL
15657
15658# Whether or not to build shared libraries.
15659build_libtool_libs=$enable_shared
15660
15661# Whether or not to build static libraries.
15662build_old_libs=$enable_static
15663
15664# Whether or not to add -lc for building shared libraries.
15665build_libtool_need_lc=$archive_cmds_need_lc_F77
15666
15667# Whether or not to disallow shared libs when runtime libs are static
15668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15669
15670# Whether or not to optimize for fast installation.
15671fast_install=$enable_fast_install
15672
15673# The host system.
15674host_alias=$host_alias
15675host=$host
15676host_os=$host_os
15677
15678# The build system.
15679build_alias=$build_alias
15680build=$build
15681build_os=$build_os
15682
15683# An echo program that does not interpret backslashes.
15684echo=$lt_echo
15685
15686# The archiver.
15687AR=$lt_AR
15688AR_FLAGS=$lt_AR_FLAGS
15689
15690# A C compiler.
15691LTCC=$lt_LTCC
15692
15693# A language-specific compiler.
15694CC=$lt_compiler_F77
15695
15696# Is the compiler the GNU C compiler?
15697with_gcc=$GCC_F77
15698
15699# An ERE matcher.
15700EGREP=$lt_EGREP
15701
15702# The linker used to build libraries.
15703LD=$lt_LD_F77
15704
15705# Whether we need hard or soft links.
15706LN_S=$lt_LN_S
15707
15708# A BSD-compatible nm program.
15709NM=$lt_NM
15710
15711# A symbol stripping program
15712STRIP=$lt_STRIP
15713
15714# Used to examine libraries when file_magic_cmd begins "file"
15715MAGIC_CMD=$MAGIC_CMD
15716
15717# Used on cygwin: DLL creation program.
15718DLLTOOL="$DLLTOOL"
15719
15720# Used on cygwin: object dumper.
15721OBJDUMP="$OBJDUMP"
15722
15723# Used on cygwin: assembler.
15724AS="$AS"
15725
15726# The name of the directory that contains temporary libtool files.
15727objdir=$objdir
15728
15729# How to create reloadable object files.
15730reload_flag=$lt_reload_flag
15731reload_cmds=$lt_reload_cmds
15732
15733# How to pass a linker flag through the compiler.
15734wl=$lt_lt_prog_compiler_wl_F77
15735
15736# Object file suffix (normally "o").
15737objext="$ac_objext"
15738
15739# Old archive suffix (normally "a").
15740libext="$libext"
15741
15742# Shared library suffix (normally ".so").
15743shrext_cmds='$shrext_cmds'
15744
15745# Executable file suffix (normally "").
15746exeext="$exeext"
15747
15748# Additional compiler flags for building library objects.
15749pic_flag=$lt_lt_prog_compiler_pic_F77
15750pic_mode=$pic_mode
15751
15752# What is the maximum length of a command?
15753max_cmd_len=$lt_cv_sys_max_cmd_len
15754
15755# Does compiler simultaneously support -c and -o options?
15756compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15757
15758# Must we lock files when doing compilation?
15759need_locks=$lt_need_locks
15760
15761# Do we need the lib prefix for modules?
15762need_lib_prefix=$need_lib_prefix
15763
15764# Do we need a version for libraries?
15765need_version=$need_version
15766
15767# Whether dlopen is supported.
15768dlopen_support=$enable_dlopen
15769
15770# Whether dlopen of programs is supported.
15771dlopen_self=$enable_dlopen_self
15772
15773# Whether dlopen of statically linked programs is supported.
15774dlopen_self_static=$enable_dlopen_self_static
15775
15776# Compiler flag to prevent dynamic linking.
15777link_static_flag=$lt_lt_prog_compiler_static_F77
15778
15779# Compiler flag to turn off builtin functions.
15780no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15781
15782# Compiler flag to allow reflexive dlopens.
15783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15784
15785# Compiler flag to generate shared objects directly from archives.
15786whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15787
15788# Compiler flag to generate thread-safe objects.
15789thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15790
15791# Library versioning type.
15792version_type=$version_type
15793
15794# Format of library name prefix.
15795libname_spec=$lt_libname_spec
15796
15797# List of archive names.  First name is the real one, the rest are links.
15798# The last name is the one that the linker finds with -lNAME.
15799library_names_spec=$lt_library_names_spec
15800
15801# The coded name of the library, if different from the real name.
15802soname_spec=$lt_soname_spec
15803
15804# Commands used to build and install an old-style archive.
15805RANLIB=$lt_RANLIB
15806old_archive_cmds=$lt_old_archive_cmds_F77
15807old_postinstall_cmds=$lt_old_postinstall_cmds
15808old_postuninstall_cmds=$lt_old_postuninstall_cmds
15809
15810# Create an old-style archive from a shared archive.
15811old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15812
15813# Create a temporary old-style archive to link instead of a shared archive.
15814old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15815
15816# Commands used to build and install a shared archive.
15817archive_cmds=$lt_archive_cmds_F77
15818archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15819postinstall_cmds=$lt_postinstall_cmds
15820postuninstall_cmds=$lt_postuninstall_cmds
15821
15822# Commands used to build a loadable module (assumed same as above if empty)
15823module_cmds=$lt_module_cmds_F77
15824module_expsym_cmds=$lt_module_expsym_cmds_F77
15825
15826# Commands to strip libraries.
15827old_striplib=$lt_old_striplib
15828striplib=$lt_striplib
15829
15830# Dependencies to place before the objects being linked to create a
15831# shared library.
15832predep_objects=$lt_predep_objects_F77
15833
15834# Dependencies to place after the objects being linked to create a
15835# shared library.
15836postdep_objects=$lt_postdep_objects_F77
15837
15838# Dependencies to place before the objects being linked to create a
15839# shared library.
15840predeps=$lt_predeps_F77
15841
15842# Dependencies to place after the objects being linked to create a
15843# shared library.
15844postdeps=$lt_postdeps_F77
15845
15846# The library search path used internally by the compiler when linking
15847# a shared library.
15848compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15849
15850# Method to check whether dependent libraries are shared objects.
15851deplibs_check_method=$lt_deplibs_check_method
15852
15853# Command to use when deplibs_check_method == file_magic.
15854file_magic_cmd=$lt_file_magic_cmd
15855
15856# Flag that allows shared libraries with undefined symbols to be built.
15857allow_undefined_flag=$lt_allow_undefined_flag_F77
15858
15859# Flag that forces no undefined symbols.
15860no_undefined_flag=$lt_no_undefined_flag_F77
15861
15862# Commands used to finish a libtool library installation in a directory.
15863finish_cmds=$lt_finish_cmds
15864
15865# Same as above, but a single script fragment to be evaled but not shown.
15866finish_eval=$lt_finish_eval
15867
15868# Take the output of nm and produce a listing of raw symbols and C names.
15869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15870
15871# Transform the output of nm in a proper C declaration
15872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15873
15874# Transform the output of nm in a C name address pair
15875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15876
15877# This is the shared library runtime path variable.
15878runpath_var=$runpath_var
15879
15880# This is the shared library path variable.
15881shlibpath_var=$shlibpath_var
15882
15883# Is shlibpath searched before the hard-coded library search path?
15884shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15885
15886# How to hardcode a shared library path into an executable.
15887hardcode_action=$hardcode_action_F77
15888
15889# Whether we should hardcode library paths into libraries.
15890hardcode_into_libs=$hardcode_into_libs
15891
15892# Flag to hardcode \$libdir into a binary during linking.
15893# This must work even if \$libdir does not exist.
15894hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15895
15896# If ld is used when linking, flag to hardcode \$libdir into
15897# a binary during linking. This must work even if \$libdir does
15898# not exist.
15899hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15900
15901# Whether we need a single -rpath flag with a separated argument.
15902hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15903
15904# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15905# resulting binary.
15906hardcode_direct=$hardcode_direct_F77
15907
15908# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15909# resulting binary.
15910hardcode_minus_L=$hardcode_minus_L_F77
15911
15912# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15913# the resulting binary.
15914hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15915
15916# Set to yes if building a shared library automatically hardcodes DIR into the library
15917# and all subsequent libraries and executables linked against it.
15918hardcode_automatic=$hardcode_automatic_F77
15919
15920# Variables whose values should be saved in libtool wrapper scripts and
15921# restored at relink time.
15922variables_saved_for_relink="$variables_saved_for_relink"
15923
15924# Whether libtool must link a program against all its dependency libraries.
15925link_all_deplibs=$link_all_deplibs_F77
15926
15927# Compile-time system search path for libraries
15928sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15929
15930# Run-time system search path for libraries
15931sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15932
15933# Fix the shell variable \$srcfile for the compiler.
15934fix_srcfile_path="$fix_srcfile_path_F77"
15935
15936# Set to yes if exported symbols are required.
15937always_export_symbols=$always_export_symbols_F77
15938
15939# The commands to list exported symbols.
15940export_symbols_cmds=$lt_export_symbols_cmds_F77
15941
15942# The commands to extract the exported symbol list from a shared archive.
15943extract_expsyms_cmds=$lt_extract_expsyms_cmds
15944
15945# Symbols that should not be listed in the preloaded symbols.
15946exclude_expsyms=$lt_exclude_expsyms_F77
15947
15948# Symbols that must always be exported.
15949include_expsyms=$lt_include_expsyms_F77
15950
15951# ### END LIBTOOL TAG CONFIG: $tagname
15952
15953__EOF__
15954
15955
15956else
15957  # If there is no Makefile yet, we rely on a make rule to execute
15958  # `config.status --recheck' to rerun these tests and create the
15959  # libtool script then.
15960  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15961  if test -f "$ltmain_in"; then
15962    test -f Makefile && make "$ltmain"
15963  fi
15964fi
15965
15966
15967ac_ext=c
15968ac_cpp='$CPP $CPPFLAGS'
15969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971ac_compiler_gnu=$ac_cv_c_compiler_gnu
15972
15973CC="$lt_save_CC"
15974
15975	else
15976	  tagname=""
15977	fi
15978	;;
15979
15980      GCJ)
15981	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15982
15983
15984
15985# Source file extension for Java test sources.
15986ac_ext=java
15987
15988# Object file extension for compiled Java test sources.
15989objext=o
15990objext_GCJ=$objext
15991
15992# Code to be used in simple compile tests
15993lt_simple_compile_test_code="class foo {}\n"
15994
15995# Code to be used in simple link tests
15996lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15997
15998# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15999
16000# If no C compiler was specified, use CC.
16001LTCC=${LTCC-"$CC"}
16002
16003# Allow CC to be a program name with arguments.
16004compiler=$CC
16005
16006
16007# save warnings/boilerplate of simple test code
16008ac_outfile=conftest.$ac_objext
16009printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16010eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16011_lt_compiler_boilerplate=`cat conftest.err`
16012$rm conftest*
16013
16014ac_outfile=conftest.$ac_objext
16015printf "$lt_simple_link_test_code" >conftest.$ac_ext
16016eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16017_lt_linker_boilerplate=`cat conftest.err`
16018$rm conftest*
16019
16020
16021# Allow CC to be a program name with arguments.
16022lt_save_CC="$CC"
16023CC=${GCJ-"gcj"}
16024compiler=$CC
16025compiler_GCJ=$CC
16026for cc_temp in $compiler""; do
16027  case $cc_temp in
16028    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16029    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16030    \-*) ;;
16031    *) break;;
16032  esac
16033done
16034cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16035
16036
16037# GCJ did not exist at the time GCC didn't implicitly link libc in.
16038archive_cmds_need_lc_GCJ=no
16039
16040old_archive_cmds_GCJ=$old_archive_cmds
16041
16042
16043lt_prog_compiler_no_builtin_flag_GCJ=
16044
16045if test "$GCC" = yes; then
16046  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16047
16048
16049echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16050echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16051if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16052  echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
16054  lt_cv_prog_compiler_rtti_exceptions=no
16055  ac_outfile=conftest.$ac_objext
16056   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16057   lt_compiler_flag="-fno-rtti -fno-exceptions"
16058   # Insert the option either (1) after the last *FLAGS variable, or
16059   # (2) before a word containing "conftest.", or (3) at the end.
16060   # Note that $ac_compile itself does not contain backslashes and begins
16061   # with a dollar sign (not a hyphen), so the echo should work correctly.
16062   # The option is referenced via a variable to avoid confusing sed.
16063   lt_compile=`echo "$ac_compile" | $SED \
16064   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16065   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16066   -e 's:$: $lt_compiler_flag:'`
16067   (eval echo "\"\$as_me:16067: $lt_compile\"" >&5)
16068   (eval "$lt_compile" 2>conftest.err)
16069   ac_status=$?
16070   cat conftest.err >&5
16071   echo "$as_me:16071: \$? = $ac_status" >&5
16072   if (exit $ac_status) && test -s "$ac_outfile"; then
16073     # The compiler can only warn and ignore the option if not recognized
16074     # So say no if there are warnings other than the usual output.
16075     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16076     $SED '/^$/d' conftest.err >conftest.er2
16077     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16078       lt_cv_prog_compiler_rtti_exceptions=yes
16079     fi
16080   fi
16081   $rm conftest*
16082
16083fi
16084echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16085echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16086
16087if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16088    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16089else
16090    :
16091fi
16092
16093fi
16094
16095lt_prog_compiler_wl_GCJ=
16096lt_prog_compiler_pic_GCJ=
16097lt_prog_compiler_static_GCJ=
16098
16099echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16100echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16101
16102  if test "$GCC" = yes; then
16103    lt_prog_compiler_wl_GCJ='-Wl,'
16104    lt_prog_compiler_static_GCJ='-static'
16105
16106    case $host_os in
16107      aix*)
16108      # All AIX code is PIC.
16109      if test "$host_cpu" = ia64; then
16110	# AIX 5 now supports IA64 processor
16111	lt_prog_compiler_static_GCJ='-Bstatic'
16112      fi
16113      ;;
16114
16115    amigaos*)
16116      # FIXME: we need at least 68020 code to build shared libraries, but
16117      # adding the `-m68020' flag to GCC prevents building anything better,
16118      # like `-m68040'.
16119      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16120      ;;
16121
16122    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16123      # PIC is the default for these OSes.
16124      ;;
16125
16126    mingw* | pw32* | os2*)
16127      # This hack is so that the source file can tell whether it is being
16128      # built for inclusion in a dll (and should export symbols for example).
16129      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16130      ;;
16131
16132    darwin* | rhapsody*)
16133      # PIC is the default on this platform
16134      # Common symbols not allowed in MH_DYLIB files
16135      lt_prog_compiler_pic_GCJ='-fno-common'
16136      ;;
16137
16138    msdosdjgpp*)
16139      # Just because we use GCC doesn't mean we suddenly get shared libraries
16140      # on systems that don't support them.
16141      lt_prog_compiler_can_build_shared_GCJ=no
16142      enable_shared=no
16143      ;;
16144
16145    sysv4*MP*)
16146      if test -d /usr/nec; then
16147	lt_prog_compiler_pic_GCJ=-Kconform_pic
16148      fi
16149      ;;
16150
16151    hpux*)
16152      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16153      # not for PA HP-UX.
16154      case $host_cpu in
16155      hppa*64*|ia64*)
16156	# +Z the default
16157	;;
16158      *)
16159	lt_prog_compiler_pic_GCJ='-fPIC'
16160	;;
16161      esac
16162      ;;
16163
16164    *)
16165      lt_prog_compiler_pic_GCJ='-fPIC'
16166      ;;
16167    esac
16168  else
16169    # PORTME Check for flag to pass linker flags through the system compiler.
16170    case $host_os in
16171    aix*)
16172      lt_prog_compiler_wl_GCJ='-Wl,'
16173      if test "$host_cpu" = ia64; then
16174	# AIX 5 now supports IA64 processor
16175	lt_prog_compiler_static_GCJ='-Bstatic'
16176      else
16177	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16178      fi
16179      ;;
16180      darwin*)
16181        # PIC is the default on this platform
16182        # Common symbols not allowed in MH_DYLIB files
16183       case $cc_basename in
16184         xlc*)
16185         lt_prog_compiler_pic_GCJ='-qnocommon'
16186         lt_prog_compiler_wl_GCJ='-Wl,'
16187         ;;
16188       esac
16189       ;;
16190
16191    mingw* | pw32* | os2*)
16192      # This hack is so that the source file can tell whether it is being
16193      # built for inclusion in a dll (and should export symbols for example).
16194      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16195      ;;
16196
16197    hpux9* | hpux10* | hpux11*)
16198      lt_prog_compiler_wl_GCJ='-Wl,'
16199      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16200      # not for PA HP-UX.
16201      case $host_cpu in
16202      hppa*64*|ia64*)
16203	# +Z the default
16204	;;
16205      *)
16206	lt_prog_compiler_pic_GCJ='+Z'
16207	;;
16208      esac
16209      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16210      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16211      ;;
16212
16213    irix5* | irix6* | nonstopux*)
16214      lt_prog_compiler_wl_GCJ='-Wl,'
16215      # PIC (with -KPIC) is the default.
16216      lt_prog_compiler_static_GCJ='-non_shared'
16217      ;;
16218
16219    newsos6)
16220      lt_prog_compiler_pic_GCJ='-KPIC'
16221      lt_prog_compiler_static_GCJ='-Bstatic'
16222      ;;
16223
16224    linux*)
16225      case $cc_basename in
16226      icc* | ecc*)
16227	lt_prog_compiler_wl_GCJ='-Wl,'
16228	lt_prog_compiler_pic_GCJ='-KPIC'
16229	lt_prog_compiler_static_GCJ='-static'
16230        ;;
16231      pgcc* | pgf77* | pgf90* | pgf95*)
16232        # Portland Group compilers (*not* the Pentium gcc compiler,
16233	# which looks to be a dead project)
16234	lt_prog_compiler_wl_GCJ='-Wl,'
16235	lt_prog_compiler_pic_GCJ='-fpic'
16236	lt_prog_compiler_static_GCJ='-Bstatic'
16237        ;;
16238      ccc*)
16239        lt_prog_compiler_wl_GCJ='-Wl,'
16240        # All Alpha code is PIC.
16241        lt_prog_compiler_static_GCJ='-non_shared'
16242        ;;
16243      esac
16244      ;;
16245
16246    osf3* | osf4* | osf5*)
16247      lt_prog_compiler_wl_GCJ='-Wl,'
16248      # All OSF/1 code is PIC.
16249      lt_prog_compiler_static_GCJ='-non_shared'
16250      ;;
16251
16252    sco3.2v5*)
16253      lt_prog_compiler_pic_GCJ='-Kpic'
16254      lt_prog_compiler_static_GCJ='-dn'
16255      ;;
16256
16257    solaris*)
16258      lt_prog_compiler_pic_GCJ='-KPIC'
16259      lt_prog_compiler_static_GCJ='-Bstatic'
16260      case $cc_basename in
16261      f77* | f90* | f95*)
16262	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16263      *)
16264	lt_prog_compiler_wl_GCJ='-Wl,';;
16265      esac
16266      ;;
16267
16268    sunos4*)
16269      lt_prog_compiler_wl_GCJ='-Qoption ld '
16270      lt_prog_compiler_pic_GCJ='-PIC'
16271      lt_prog_compiler_static_GCJ='-Bstatic'
16272      ;;
16273
16274    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16275      lt_prog_compiler_wl_GCJ='-Wl,'
16276      lt_prog_compiler_pic_GCJ='-KPIC'
16277      lt_prog_compiler_static_GCJ='-Bstatic'
16278      ;;
16279
16280    sysv4*MP*)
16281      if test -d /usr/nec ;then
16282	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16283	lt_prog_compiler_static_GCJ='-Bstatic'
16284      fi
16285      ;;
16286
16287    unicos*)
16288      lt_prog_compiler_wl_GCJ='-Wl,'
16289      lt_prog_compiler_can_build_shared_GCJ=no
16290      ;;
16291
16292    uts4*)
16293      lt_prog_compiler_pic_GCJ='-pic'
16294      lt_prog_compiler_static_GCJ='-Bstatic'
16295      ;;
16296
16297    *)
16298      lt_prog_compiler_can_build_shared_GCJ=no
16299      ;;
16300    esac
16301  fi
16302
16303echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16304echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16305
16306#
16307# Check to make sure the PIC flag actually works.
16308#
16309if test -n "$lt_prog_compiler_pic_GCJ"; then
16310
16311echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16312echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16313if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16314  echo $ECHO_N "(cached) $ECHO_C" >&6
16315else
16316  lt_prog_compiler_pic_works_GCJ=no
16317  ac_outfile=conftest.$ac_objext
16318   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16319   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16320   # Insert the option either (1) after the last *FLAGS variable, or
16321   # (2) before a word containing "conftest.", or (3) at the end.
16322   # Note that $ac_compile itself does not contain backslashes and begins
16323   # with a dollar sign (not a hyphen), so the echo should work correctly.
16324   # The option is referenced via a variable to avoid confusing sed.
16325   lt_compile=`echo "$ac_compile" | $SED \
16326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16328   -e 's:$: $lt_compiler_flag:'`
16329   (eval echo "\"\$as_me:16329: $lt_compile\"" >&5)
16330   (eval "$lt_compile" 2>conftest.err)
16331   ac_status=$?
16332   cat conftest.err >&5
16333   echo "$as_me:16333: \$? = $ac_status" >&5
16334   if (exit $ac_status) && test -s "$ac_outfile"; then
16335     # The compiler can only warn and ignore the option if not recognized
16336     # So say no if there are warnings other than the usual output.
16337     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16338     $SED '/^$/d' conftest.err >conftest.er2
16339     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16340       lt_prog_compiler_pic_works_GCJ=yes
16341     fi
16342   fi
16343   $rm conftest*
16344
16345fi
16346echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16347echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16348
16349if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16350    case $lt_prog_compiler_pic_GCJ in
16351     "" | " "*) ;;
16352     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16353     esac
16354else
16355    lt_prog_compiler_pic_GCJ=
16356     lt_prog_compiler_can_build_shared_GCJ=no
16357fi
16358
16359fi
16360case $host_os in
16361  # For platforms which do not support PIC, -DPIC is meaningless:
16362  *djgpp*)
16363    lt_prog_compiler_pic_GCJ=
16364    ;;
16365  *)
16366    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16367    ;;
16368esac
16369
16370echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16371echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16372if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16373  echo $ECHO_N "(cached) $ECHO_C" >&6
16374else
16375  lt_cv_prog_compiler_c_o_GCJ=no
16376   $rm -r conftest 2>/dev/null
16377   mkdir conftest
16378   cd conftest
16379   mkdir out
16380   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16381
16382   lt_compiler_flag="-o out/conftest2.$ac_objext"
16383   # Insert the option either (1) after the last *FLAGS variable, or
16384   # (2) before a word containing "conftest.", or (3) at the end.
16385   # Note that $ac_compile itself does not contain backslashes and begins
16386   # with a dollar sign (not a hyphen), so the echo should work correctly.
16387   lt_compile=`echo "$ac_compile" | $SED \
16388   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16389   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16390   -e 's:$: $lt_compiler_flag:'`
16391   (eval echo "\"\$as_me:16391: $lt_compile\"" >&5)
16392   (eval "$lt_compile" 2>out/conftest.err)
16393   ac_status=$?
16394   cat out/conftest.err >&5
16395   echo "$as_me:16395: \$? = $ac_status" >&5
16396   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16397   then
16398     # The compiler can only warn and ignore the option if not recognized
16399     # So say no if there are warnings
16400     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16401     $SED '/^$/d' out/conftest.err >out/conftest.er2
16402     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16403       lt_cv_prog_compiler_c_o_GCJ=yes
16404     fi
16405   fi
16406   chmod u+w . 2>&5
16407   $rm conftest*
16408   # SGI C++ compiler will create directory out/ii_files/ for
16409   # template instantiation
16410   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16411   $rm out/* && rmdir out
16412   cd ..
16413   rmdir conftest
16414   $rm conftest*
16415
16416fi
16417echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16418echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16419
16420
16421hard_links="nottested"
16422if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16423  # do not overwrite the value of need_locks provided by the user
16424  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16425echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16426  hard_links=yes
16427  $rm conftest*
16428  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16429  touch conftest.a
16430  ln conftest.a conftest.b 2>&5 || hard_links=no
16431  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16432  echo "$as_me:$LINENO: result: $hard_links" >&5
16433echo "${ECHO_T}$hard_links" >&6
16434  if test "$hard_links" = no; then
16435    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16436echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16437    need_locks=warn
16438  fi
16439else
16440  need_locks=no
16441fi
16442
16443echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16444echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16445
16446  runpath_var=
16447  allow_undefined_flag_GCJ=
16448  enable_shared_with_static_runtimes_GCJ=no
16449  archive_cmds_GCJ=
16450  archive_expsym_cmds_GCJ=
16451  old_archive_From_new_cmds_GCJ=
16452  old_archive_from_expsyms_cmds_GCJ=
16453  export_dynamic_flag_spec_GCJ=
16454  whole_archive_flag_spec_GCJ=
16455  thread_safe_flag_spec_GCJ=
16456  hardcode_libdir_flag_spec_GCJ=
16457  hardcode_libdir_flag_spec_ld_GCJ=
16458  hardcode_libdir_separator_GCJ=
16459  hardcode_direct_GCJ=no
16460  hardcode_minus_L_GCJ=no
16461  hardcode_shlibpath_var_GCJ=unsupported
16462  link_all_deplibs_GCJ=unknown
16463  hardcode_automatic_GCJ=no
16464  module_cmds_GCJ=
16465  module_expsym_cmds_GCJ=
16466  always_export_symbols_GCJ=no
16467  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16468  # include_expsyms should be a list of space-separated symbols to be *always*
16469  # included in the symbol list
16470  include_expsyms_GCJ=
16471  # exclude_expsyms can be an extended regexp of symbols to exclude
16472  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16473  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16474  # as well as any symbol that contains `d'.
16475  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16476  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16477  # platforms (ab)use it in PIC code, but their linkers get confused if
16478  # the symbol is explicitly referenced.  Since portable code cannot
16479  # rely on this symbol name, it's probably fine to never include it in
16480  # preloaded symbol tables.
16481  extract_expsyms_cmds=
16482  # Just being paranoid about ensuring that cc_basename is set.
16483  for cc_temp in $compiler""; do
16484  case $cc_temp in
16485    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16486    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16487    \-*) ;;
16488    *) break;;
16489  esac
16490done
16491cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16492
16493  case $host_os in
16494  cygwin* | mingw* | pw32*)
16495    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16496    # When not using gcc, we currently assume that we are using
16497    # Microsoft Visual C++.
16498    if test "$GCC" != yes; then
16499      with_gnu_ld=no
16500    fi
16501    ;;
16502  openbsd*)
16503    with_gnu_ld=no
16504    ;;
16505  esac
16506
16507  ld_shlibs_GCJ=yes
16508  if test "$with_gnu_ld" = yes; then
16509    # If archive_cmds runs LD, not CC, wlarc should be empty
16510    wlarc='${wl}'
16511
16512    # Set some defaults for GNU ld with shared library support. These
16513    # are reset later if shared libraries are not supported. Putting them
16514    # here allows them to be overridden if necessary.
16515    runpath_var=LD_RUN_PATH
16516    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16517    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16518    # ancient GNU ld didn't support --whole-archive et. al.
16519    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16520	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16521      else
16522  	whole_archive_flag_spec_GCJ=
16523    fi
16524    supports_anon_versioning=no
16525    case `$LD -v 2>/dev/null` in
16526      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16527      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16528      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16529      *\ 2.11.*) ;; # other 2.11 versions
16530      *) supports_anon_versioning=yes ;;
16531    esac
16532
16533    # See if GNU ld supports shared libraries.
16534    case $host_os in
16535    aix3* | aix4* | aix5*)
16536      # On AIX/PPC, the GNU linker is very broken
16537      if test "$host_cpu" != ia64; then
16538	ld_shlibs_GCJ=no
16539	cat <<EOF 1>&2
16540
16541*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16542*** to be unable to reliably create shared libraries on AIX.
16543*** Therefore, libtool is disabling shared libraries support.  If you
16544*** really care for shared libraries, you may want to modify your PATH
16545*** so that a non-GNU linker is found, and then restart.
16546
16547EOF
16548      fi
16549      ;;
16550
16551    amigaos*)
16552      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)'
16553      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16554      hardcode_minus_L_GCJ=yes
16555
16556      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16557      # that the semantics of dynamic libraries on AmigaOS, at least up
16558      # to version 4, is to share data among multiple programs linked
16559      # with the same dynamic library.  Since this doesn't match the
16560      # behavior of shared libraries on other platforms, we can't use
16561      # them.
16562      ld_shlibs_GCJ=no
16563      ;;
16564
16565    beos*)
16566      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16567	allow_undefined_flag_GCJ=unsupported
16568	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16569	# support --undefined.  This deserves some investigation.  FIXME
16570	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16571      else
16572	ld_shlibs_GCJ=no
16573      fi
16574      ;;
16575
16576    cygwin* | mingw* | pw32*)
16577      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16578      # as there is no search path for DLLs.
16579      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16580      allow_undefined_flag_GCJ=unsupported
16581      always_export_symbols_GCJ=no
16582      enable_shared_with_static_runtimes_GCJ=yes
16583      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16584
16585      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16586        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16587	# If the export-symbols file already is a .def file (1st line
16588	# is EXPORTS), use it as is; otherwise, prepend...
16589	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16590	  cp $export_symbols $output_objdir/$soname.def;
16591	else
16592	  echo EXPORTS > $output_objdir/$soname.def;
16593	  cat $export_symbols >> $output_objdir/$soname.def;
16594	fi~
16595	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16596      else
16597	ld_shlibs_GCJ=no
16598      fi
16599      ;;
16600
16601    linux*)
16602      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16603	tmp_addflag=
16604	case $cc_basename,$host_cpu in
16605	pgcc*)				# Portland Group C compiler
16606	  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'
16607	  tmp_addflag=' $pic_flag'
16608	  ;;
16609	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16610	  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'
16611	  tmp_addflag=' $pic_flag -Mnomain' ;;
16612	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16613	  tmp_addflag=' -i_dynamic' ;;
16614	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16615	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16616	ifc* | ifort*)			# Intel Fortran compiler
16617	  tmp_addflag=' -nofor_main' ;;
16618	esac
16619	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16620
16621	if test $supports_anon_versioning = yes; then
16622	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16623  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16624  $echo "local: *; };" >> $output_objdir/$libname.ver~
16625	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16626	fi
16627	link_all_deplibs_GCJ=no
16628      else
16629	ld_shlibs_GCJ=no
16630      fi
16631      ;;
16632
16633    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16634      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16635	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16636	wlarc=
16637      else
16638	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16639	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16640      fi
16641      ;;
16642
16643    solaris* | sysv5*)
16644      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16645	ld_shlibs_GCJ=no
16646	cat <<EOF 1>&2
16647
16648*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16649*** create shared libraries on Solaris systems.  Therefore, libtool
16650*** is disabling shared libraries support.  We urge you to upgrade GNU
16651*** binutils to release 2.9.1 or newer.  Another option is to modify
16652*** your PATH or compiler configuration so that the native linker is
16653*** used, and then restart.
16654
16655EOF
16656      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16657	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16658	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16659      else
16660	ld_shlibs_GCJ=no
16661      fi
16662      ;;
16663
16664    sunos4*)
16665      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16666      wlarc=
16667      hardcode_direct_GCJ=yes
16668      hardcode_shlibpath_var_GCJ=no
16669      ;;
16670
16671    *)
16672      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16673	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16674	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16675      else
16676	ld_shlibs_GCJ=no
16677      fi
16678      ;;
16679    esac
16680
16681    if test "$ld_shlibs_GCJ" = no; then
16682      runpath_var=
16683      hardcode_libdir_flag_spec_GCJ=
16684      export_dynamic_flag_spec_GCJ=
16685      whole_archive_flag_spec_GCJ=
16686    fi
16687  else
16688    # PORTME fill in a description of your system's linker (not GNU ld)
16689    case $host_os in
16690    aix3*)
16691      allow_undefined_flag_GCJ=unsupported
16692      always_export_symbols_GCJ=yes
16693      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'
16694      # Note: this linker hardcodes the directories in LIBPATH if there
16695      # are no directories specified by -L.
16696      hardcode_minus_L_GCJ=yes
16697      if test "$GCC" = yes && test -z "$link_static_flag"; then
16698	# Neither direct hardcoding nor static linking is supported with a
16699	# broken collect2.
16700	hardcode_direct_GCJ=unsupported
16701      fi
16702      ;;
16703
16704    aix4* | aix5*)
16705      if test "$host_cpu" = ia64; then
16706	# On IA64, the linker does run time linking by default, so we don't
16707	# have to do anything special.
16708	aix_use_runtimelinking=no
16709	exp_sym_flag='-Bexport'
16710	no_entry_flag=""
16711      else
16712	# If we're using GNU nm, then we don't want the "-C" option.
16713	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16714	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16715	  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'
16716	else
16717	  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'
16718	fi
16719	aix_use_runtimelinking=no
16720
16721	# Test if we are trying to use run time linking or normal
16722	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16723	# need to do runtime linking.
16724	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16725	  for ld_flag in $LDFLAGS; do
16726  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16727  	    aix_use_runtimelinking=yes
16728  	    break
16729  	  fi
16730	  done
16731	esac
16732
16733	exp_sym_flag='-bexport'
16734	no_entry_flag='-bnoentry'
16735      fi
16736
16737      # When large executables or shared objects are built, AIX ld can
16738      # have problems creating the table of contents.  If linking a library
16739      # or program results in "error TOC overflow" add -mminimal-toc to
16740      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16741      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16742
16743      archive_cmds_GCJ=''
16744      hardcode_direct_GCJ=yes
16745      hardcode_libdir_separator_GCJ=':'
16746      link_all_deplibs_GCJ=yes
16747
16748      if test "$GCC" = yes; then
16749	case $host_os in aix4.[012]|aix4.[012].*)
16750	# We only want to do this on AIX 4.2 and lower, the check
16751	# below for broken collect2 doesn't work under 4.3+
16752	  collect2name=`${CC} -print-prog-name=collect2`
16753	  if test -f "$collect2name" && \
16754  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16755	  then
16756  	  # We have reworked collect2
16757  	  hardcode_direct_GCJ=yes
16758	  else
16759  	  # We have old collect2
16760  	  hardcode_direct_GCJ=unsupported
16761  	  # It fails to find uninstalled libraries when the uninstalled
16762  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16763  	  # to unsupported forces relinking
16764  	  hardcode_minus_L_GCJ=yes
16765  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16766  	  hardcode_libdir_separator_GCJ=
16767	  fi
16768	esac
16769	shared_flag='-shared'
16770	if test "$aix_use_runtimelinking" = yes; then
16771	  shared_flag="$shared_flag "'${wl}-G'
16772	fi
16773      else
16774	# not using gcc
16775	if test "$host_cpu" = ia64; then
16776  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16777  	# chokes on -Wl,-G. The following line is correct:
16778	  shared_flag='-G'
16779	else
16780  	if test "$aix_use_runtimelinking" = yes; then
16781	    shared_flag='${wl}-G'
16782	  else
16783	    shared_flag='${wl}-bM:SRE'
16784  	fi
16785	fi
16786      fi
16787
16788      # It seems that -bexpall does not export symbols beginning with
16789      # underscore (_), so it is better to generate a list of symbols to export.
16790      always_export_symbols_GCJ=yes
16791      if test "$aix_use_runtimelinking" = yes; then
16792	# Warning - without using the other runtime loading flags (-brtl),
16793	# -berok will link without error, but may produce a broken library.
16794	allow_undefined_flag_GCJ='-berok'
16795       # Determine the default libpath from the value encoded in an empty executable.
16796       cat >conftest.$ac_ext <<_ACEOF
16797/* confdefs.h.  */
16798_ACEOF
16799cat confdefs.h >>conftest.$ac_ext
16800cat >>conftest.$ac_ext <<_ACEOF
16801/* end confdefs.h.  */
16802
16803int
16804main ()
16805{
16806
16807  ;
16808  return 0;
16809}
16810_ACEOF
16811rm -f conftest.$ac_objext conftest$ac_exeext
16812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813  (eval $ac_link) 2>conftest.er1
16814  ac_status=$?
16815  grep -v '^ *+' conftest.er1 >conftest.err
16816  rm -f conftest.er1
16817  cat conftest.err >&5
16818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819  (exit $ac_status); } &&
16820	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822  (eval $ac_try) 2>&5
16823  ac_status=$?
16824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825  (exit $ac_status); }; } &&
16826	 { ac_try='test -s conftest$ac_exeext'
16827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828  (eval $ac_try) 2>&5
16829  ac_status=$?
16830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831  (exit $ac_status); }; }; then
16832
16833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16834}'`
16835# Check for a 64-bit object if we didn't find anything.
16836if 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; }
16837}'`; fi
16838else
16839  echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842fi
16843rm -f conftest.err conftest.$ac_objext \
16844      conftest$ac_exeext conftest.$ac_ext
16845if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16846
16847       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16848	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16849       else
16850	if test "$host_cpu" = ia64; then
16851	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16852	  allow_undefined_flag_GCJ="-z nodefs"
16853	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16854	else
16855	 # Determine the default libpath from the value encoded in an empty executable.
16856	 cat >conftest.$ac_ext <<_ACEOF
16857/* confdefs.h.  */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h.  */
16862
16863int
16864main ()
16865{
16866
16867  ;
16868  return 0;
16869}
16870_ACEOF
16871rm -f conftest.$ac_objext conftest$ac_exeext
16872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873  (eval $ac_link) 2>conftest.er1
16874  ac_status=$?
16875  grep -v '^ *+' conftest.er1 >conftest.err
16876  rm -f conftest.er1
16877  cat conftest.err >&5
16878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879  (exit $ac_status); } &&
16880	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882  (eval $ac_try) 2>&5
16883  ac_status=$?
16884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885  (exit $ac_status); }; } &&
16886	 { ac_try='test -s conftest$ac_exeext'
16887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888  (eval $ac_try) 2>&5
16889  ac_status=$?
16890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891  (exit $ac_status); }; }; then
16892
16893aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16894}'`
16895# Check for a 64-bit object if we didn't find anything.
16896if 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; }
16897}'`; fi
16898else
16899  echo "$as_me: failed program was:" >&5
16900sed 's/^/| /' conftest.$ac_ext >&5
16901
16902fi
16903rm -f conftest.err conftest.$ac_objext \
16904      conftest$ac_exeext conftest.$ac_ext
16905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16906
16907	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16908	  # Warning - without using the other run time loading flags,
16909	  # -berok will link without error, but may produce a broken library.
16910	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16911	  allow_undefined_flag_GCJ=' ${wl}-berok'
16912	  # -bexpall does not export symbols beginning with underscore (_)
16913	  always_export_symbols_GCJ=yes
16914	  # Exported symbols can be pulled into shared objects from archives
16915	  whole_archive_flag_spec_GCJ=' '
16916	  archive_cmds_need_lc_GCJ=yes
16917	  # This is similar to how AIX traditionally builds its shared libraries.
16918	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16919	fi
16920      fi
16921      ;;
16922
16923    amigaos*)
16924      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)'
16925      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16926      hardcode_minus_L_GCJ=yes
16927      # see comment about different semantics on the GNU ld section
16928      ld_shlibs_GCJ=no
16929      ;;
16930
16931    bsdi[45]*)
16932      export_dynamic_flag_spec_GCJ=-rdynamic
16933      ;;
16934
16935    cygwin* | mingw* | pw32*)
16936      # When not using gcc, we currently assume that we are using
16937      # Microsoft Visual C++.
16938      # hardcode_libdir_flag_spec is actually meaningless, as there is
16939      # no search path for DLLs.
16940      hardcode_libdir_flag_spec_GCJ=' '
16941      allow_undefined_flag_GCJ=unsupported
16942      # Tell ltmain to make .lib files, not .a files.
16943      libext=lib
16944      # Tell ltmain to make .dll files, not .so files.
16945      shrext_cmds=".dll"
16946      # FIXME: Setting linknames here is a bad hack.
16947      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16948      # The linker will automatically build a .lib file if we build a DLL.
16949      old_archive_From_new_cmds_GCJ='true'
16950      # FIXME: Should let the user specify the lib program.
16951      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16952      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16953      enable_shared_with_static_runtimes_GCJ=yes
16954      ;;
16955
16956    darwin* | rhapsody*)
16957      case $host_os in
16958        rhapsody* | darwin1.[012])
16959         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16960         ;;
16961       *) # Darwin 1.3 on
16962         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16963           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16964         else
16965           case ${MACOSX_DEPLOYMENT_TARGET} in
16966             10.[012])
16967               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16968               ;;
16969             10.*)
16970               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16971               ;;
16972           esac
16973         fi
16974         ;;
16975      esac
16976      archive_cmds_need_lc_GCJ=no
16977      hardcode_direct_GCJ=no
16978      hardcode_automatic_GCJ=yes
16979      hardcode_shlibpath_var_GCJ=unsupported
16980      whole_archive_flag_spec_GCJ=''
16981      link_all_deplibs_GCJ=yes
16982    if test "$GCC" = yes ; then
16983    	output_verbose_link_cmd='echo'
16984        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16985      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16986      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16987      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}'
16988      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}'
16989    else
16990      case $cc_basename in
16991        xlc*)
16992         output_verbose_link_cmd='echo'
16993         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16994         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16995          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16996         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}'
16997          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}'
16998          ;;
16999       *)
17000         ld_shlibs_GCJ=no
17001          ;;
17002      esac
17003    fi
17004      ;;
17005
17006    dgux*)
17007      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17008      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17009      hardcode_shlibpath_var_GCJ=no
17010      ;;
17011
17012    freebsd1*)
17013      ld_shlibs_GCJ=no
17014      ;;
17015
17016    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17017    # support.  Future versions do this automatically, but an explicit c++rt0.o
17018    # does not break anything, and helps significantly (at the cost of a little
17019    # extra space).
17020    freebsd2.2*)
17021      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17022      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17023      hardcode_direct_GCJ=yes
17024      hardcode_shlibpath_var_GCJ=no
17025      ;;
17026
17027    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17028    freebsd2*)
17029      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17030      hardcode_direct_GCJ=yes
17031      hardcode_minus_L_GCJ=yes
17032      hardcode_shlibpath_var_GCJ=no
17033      ;;
17034
17035    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17036    freebsd* | kfreebsd*-gnu | dragonfly*)
17037      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17038      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17039      hardcode_direct_GCJ=yes
17040      hardcode_shlibpath_var_GCJ=no
17041      ;;
17042
17043    hpux9*)
17044      if test "$GCC" = yes; then
17045	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'
17046      else
17047	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'
17048      fi
17049      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17050      hardcode_libdir_separator_GCJ=:
17051      hardcode_direct_GCJ=yes
17052
17053      # hardcode_minus_L: Not really in the search PATH,
17054      # but as the default location of the library.
17055      hardcode_minus_L_GCJ=yes
17056      export_dynamic_flag_spec_GCJ='${wl}-E'
17057      ;;
17058
17059    hpux10* | hpux11*)
17060      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17061	case $host_cpu in
17062	hppa*64*|ia64*)
17063	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17064	  ;;
17065	*)
17066	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17067	  ;;
17068	esac
17069      else
17070	case $host_cpu in
17071	hppa*64*|ia64*)
17072	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17073	  ;;
17074	*)
17075	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17076	  ;;
17077	esac
17078      fi
17079      if test "$with_gnu_ld" = no; then
17080	case $host_cpu in
17081	hppa*64*)
17082	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17083	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17084	  hardcode_libdir_separator_GCJ=:
17085	  hardcode_direct_GCJ=no
17086	  hardcode_shlibpath_var_GCJ=no
17087	  ;;
17088	ia64*)
17089	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17090	  hardcode_direct_GCJ=no
17091	  hardcode_shlibpath_var_GCJ=no
17092
17093	  # hardcode_minus_L: Not really in the search PATH,
17094	  # but as the default location of the library.
17095	  hardcode_minus_L_GCJ=yes
17096	  ;;
17097	*)
17098	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17099	  hardcode_libdir_separator_GCJ=:
17100	  hardcode_direct_GCJ=yes
17101	  export_dynamic_flag_spec_GCJ='${wl}-E'
17102
17103	  # hardcode_minus_L: Not really in the search PATH,
17104	  # but as the default location of the library.
17105	  hardcode_minus_L_GCJ=yes
17106	  ;;
17107	esac
17108      fi
17109      ;;
17110
17111    irix5* | irix6* | nonstopux*)
17112      if test "$GCC" = yes; then
17113	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'
17114      else
17115	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'
17116	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17117      fi
17118      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17119      hardcode_libdir_separator_GCJ=:
17120      link_all_deplibs_GCJ=yes
17121      ;;
17122
17123    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17124      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17125	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17126      else
17127	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17128      fi
17129      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17130      hardcode_direct_GCJ=yes
17131      hardcode_shlibpath_var_GCJ=no
17132      ;;
17133
17134    newsos6)
17135      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17136      hardcode_direct_GCJ=yes
17137      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17138      hardcode_libdir_separator_GCJ=:
17139      hardcode_shlibpath_var_GCJ=no
17140      ;;
17141
17142    openbsd*)
17143      hardcode_direct_GCJ=yes
17144      hardcode_shlibpath_var_GCJ=no
17145      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17146	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17147	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17148	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17149	export_dynamic_flag_spec_GCJ='${wl}-E'
17150      else
17151       case $host_os in
17152	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17153	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17154	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17155	   ;;
17156	 *)
17157	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17158	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17159	   ;;
17160       esac
17161      fi
17162      ;;
17163
17164    os2*)
17165      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17166      hardcode_minus_L_GCJ=yes
17167      allow_undefined_flag_GCJ=unsupported
17168      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'
17169      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17170      ;;
17171
17172    osf3*)
17173      if test "$GCC" = yes; then
17174	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17175	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'
17176      else
17177	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17178	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'
17179      fi
17180      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17181      hardcode_libdir_separator_GCJ=:
17182      ;;
17183
17184    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17185      if test "$GCC" = yes; then
17186	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17187	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'
17188	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17189      else
17190	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17191	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'
17192	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~
17193	$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'
17194
17195	# Both c and cxx compiler support -rpath directly
17196	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17197      fi
17198      hardcode_libdir_separator_GCJ=:
17199      ;;
17200
17201    sco3.2v5*)
17202      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17203      hardcode_shlibpath_var_GCJ=no
17204      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17205      runpath_var=LD_RUN_PATH
17206      hardcode_runpath_var=yes
17207      ;;
17208
17209    solaris*)
17210      no_undefined_flag_GCJ=' -z text'
17211      if test "$GCC" = yes; then
17212	wlarc='${wl}'
17213	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17214	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17215	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17216      else
17217	wlarc=''
17218	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17220  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17221      fi
17222      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17223      hardcode_shlibpath_var_GCJ=no
17224      case $host_os in
17225      solaris2.[0-5] | solaris2.[0-5].*) ;;
17226      *)
17227 	# The compiler driver will combine linker options so we
17228 	# cannot just pass the convience library names through
17229 	# without $wl, iff we do not link with $LD.
17230 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17231 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17232 	case $wlarc in
17233 	'')
17234 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17235 	*)
17236 	  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' ;;
17237 	esac ;;
17238      esac
17239      link_all_deplibs_GCJ=yes
17240      ;;
17241
17242    sunos4*)
17243      if test "x$host_vendor" = xsequent; then
17244	# Use $CC to link under sequent, because it throws in some extra .o
17245	# files that make .init and .fini sections work.
17246	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17247      else
17248	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17249      fi
17250      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17251      hardcode_direct_GCJ=yes
17252      hardcode_minus_L_GCJ=yes
17253      hardcode_shlibpath_var_GCJ=no
17254      ;;
17255
17256    sysv4)
17257      case $host_vendor in
17258	sni)
17259	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260	  hardcode_direct_GCJ=yes # is this really true???
17261	;;
17262	siemens)
17263	  ## LD is ld it makes a PLAMLIB
17264	  ## CC just makes a GrossModule.
17265	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17266	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17267	  hardcode_direct_GCJ=no
17268        ;;
17269	motorola)
17270	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17271	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17272	;;
17273      esac
17274      runpath_var='LD_RUN_PATH'
17275      hardcode_shlibpath_var_GCJ=no
17276      ;;
17277
17278    sysv4.3*)
17279      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17280      hardcode_shlibpath_var_GCJ=no
17281      export_dynamic_flag_spec_GCJ='-Bexport'
17282      ;;
17283
17284    sysv4*MP*)
17285      if test -d /usr/nec; then
17286	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17287	hardcode_shlibpath_var_GCJ=no
17288	runpath_var=LD_RUN_PATH
17289	hardcode_runpath_var=yes
17290	ld_shlibs_GCJ=yes
17291      fi
17292      ;;
17293
17294    sysv4.2uw2*)
17295      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17296      hardcode_direct_GCJ=yes
17297      hardcode_minus_L_GCJ=no
17298      hardcode_shlibpath_var_GCJ=no
17299      hardcode_runpath_var=yes
17300      runpath_var=LD_RUN_PATH
17301      ;;
17302
17303   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17304      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17305      if test "$GCC" = yes; then
17306	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17307      else
17308	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17309      fi
17310      runpath_var='LD_RUN_PATH'
17311      hardcode_shlibpath_var_GCJ=no
17312      ;;
17313
17314    sysv5*)
17315      no_undefined_flag_GCJ=' -z text'
17316      # $CC -shared without GNU ld will not create a library from C++
17317      # object files and a static libstdc++, better avoid it by now
17318      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17320  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17321      hardcode_libdir_flag_spec_GCJ=
17322      hardcode_shlibpath_var_GCJ=no
17323      runpath_var='LD_RUN_PATH'
17324      ;;
17325
17326    uts4*)
17327      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17329      hardcode_shlibpath_var_GCJ=no
17330      ;;
17331
17332    *)
17333      ld_shlibs_GCJ=no
17334      ;;
17335    esac
17336  fi
17337
17338echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17339echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17340test "$ld_shlibs_GCJ" = no && can_build_shared=no
17341
17342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17343if test "$GCC" = yes; then
17344  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17345fi
17346
17347#
17348# Do we need to explicitly link libc?
17349#
17350case "x$archive_cmds_need_lc_GCJ" in
17351x|xyes)
17352  # Assume -lc should be added
17353  archive_cmds_need_lc_GCJ=yes
17354
17355  if test "$enable_shared" = yes && test "$GCC" = yes; then
17356    case $archive_cmds_GCJ in
17357    *'~'*)
17358      # FIXME: we may have to deal with multi-command sequences.
17359      ;;
17360    '$CC '*)
17361      # Test whether the compiler implicitly links with -lc since on some
17362      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17363      # to ld, don't add -lc before -lgcc.
17364      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17365echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17366      $rm conftest*
17367      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17368
17369      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370  (eval $ac_compile) 2>&5
17371  ac_status=$?
17372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373  (exit $ac_status); } 2>conftest.err; then
17374        soname=conftest
17375        lib=conftest
17376        libobjs=conftest.$ac_objext
17377        deplibs=
17378        wl=$lt_prog_compiler_wl_GCJ
17379        compiler_flags=-v
17380        linker_flags=-v
17381        verstring=
17382        output_objdir=.
17383        libname=conftest
17384        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17385        allow_undefined_flag_GCJ=
17386        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17387  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17388  ac_status=$?
17389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390  (exit $ac_status); }
17391        then
17392	  archive_cmds_need_lc_GCJ=no
17393        else
17394	  archive_cmds_need_lc_GCJ=yes
17395        fi
17396        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17397      else
17398        cat conftest.err 1>&5
17399      fi
17400      $rm conftest*
17401      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17402echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17403      ;;
17404    esac
17405  fi
17406  ;;
17407esac
17408
17409echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17410echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17411library_names_spec=
17412libname_spec='lib$name'
17413soname_spec=
17414shrext_cmds=".so"
17415postinstall_cmds=
17416postuninstall_cmds=
17417finish_cmds=
17418finish_eval=
17419shlibpath_var=
17420shlibpath_overrides_runpath=unknown
17421version_type=none
17422dynamic_linker="$host_os ld.so"
17423sys_lib_dlsearch_path_spec="/lib /usr/lib"
17424if test "$GCC" = yes; then
17425  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17426  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17427    # if the path contains ";" then we assume it to be the separator
17428    # otherwise default to the standard path separator (i.e. ":") - it is
17429    # assumed that no part of a normal pathname contains ";" but that should
17430    # okay in the real world where ";" in dirpaths is itself problematic.
17431    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17432  else
17433    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17434  fi
17435else
17436  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17437fi
17438need_lib_prefix=unknown
17439hardcode_into_libs=no
17440
17441# when you set need_version to no, make sure it does not cause -set_version
17442# flags to be left without arguments
17443need_version=unknown
17444
17445case $host_os in
17446aix3*)
17447  version_type=linux
17448  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17449  shlibpath_var=LIBPATH
17450
17451  # AIX 3 has no versioning support, so we append a major version to the name.
17452  soname_spec='${libname}${release}${shared_ext}$major'
17453  ;;
17454
17455aix4* | aix5*)
17456  version_type=linux
17457  need_lib_prefix=no
17458  need_version=no
17459  hardcode_into_libs=yes
17460  if test "$host_cpu" = ia64; then
17461    # AIX 5 supports IA64
17462    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17463    shlibpath_var=LD_LIBRARY_PATH
17464  else
17465    # With GCC up to 2.95.x, collect2 would create an import file
17466    # for dependence libraries.  The import file would start with
17467    # the line `#! .'.  This would cause the generated library to
17468    # depend on `.', always an invalid library.  This was fixed in
17469    # development snapshots of GCC prior to 3.0.
17470    case $host_os in
17471      aix4 | aix4.[01] | aix4.[01].*)
17472      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17473	   echo ' yes '
17474	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17475	:
17476      else
17477	can_build_shared=no
17478      fi
17479      ;;
17480    esac
17481    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17482    # soname into executable. Probably we can add versioning support to
17483    # collect2, so additional links can be useful in future.
17484    if test "$aix_use_runtimelinking" = yes; then
17485      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17486      # instead of lib<name>.a to let people know that these are not
17487      # typical AIX shared libraries.
17488      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489    else
17490      # We preserve .a as extension for shared libraries through AIX4.2
17491      # and later when we are not doing run time linking.
17492      library_names_spec='${libname}${release}.a $libname.a'
17493      soname_spec='${libname}${release}${shared_ext}$major'
17494    fi
17495    shlibpath_var=LIBPATH
17496  fi
17497  ;;
17498
17499amigaos*)
17500  library_names_spec='$libname.ixlibrary $libname.a'
17501  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17502  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'
17503  ;;
17504
17505beos*)
17506  library_names_spec='${libname}${shared_ext}'
17507  dynamic_linker="$host_os ld.so"
17508  shlibpath_var=LIBRARY_PATH
17509  ;;
17510
17511bsdi[45]*)
17512  version_type=linux
17513  need_version=no
17514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515  soname_spec='${libname}${release}${shared_ext}$major'
17516  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17517  shlibpath_var=LD_LIBRARY_PATH
17518  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17519  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17520  # the default ld.so.conf also contains /usr/contrib/lib and
17521  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17522  # libtool to hard-code these into programs
17523  ;;
17524
17525cygwin* | mingw* | pw32*)
17526  version_type=windows
17527  shrext_cmds=".dll"
17528  need_version=no
17529  need_lib_prefix=no
17530
17531  case $GCC,$host_os in
17532  yes,cygwin* | yes,mingw* | yes,pw32*)
17533    library_names_spec='$libname.dll.a'
17534    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17535    postinstall_cmds='base_file=`basename \${file}`~
17536      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17537      dldir=$destdir/`dirname \$dlpath`~
17538      test -d \$dldir || mkdir -p \$dldir~
17539      $install_prog $dir/$dlname \$dldir/$dlname~
17540      chmod a+x \$dldir/$dlname'
17541    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17542      dlpath=$dir/\$dldll~
17543       $rm \$dlpath'
17544    shlibpath_overrides_runpath=yes
17545
17546    case $host_os in
17547    cygwin*)
17548      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17549      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17550      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17551      ;;
17552    mingw*)
17553      # MinGW DLLs use traditional 'lib' prefix
17554      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17555      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17556      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17557        # It is most probably a Windows format PATH printed by
17558        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17559        # path with ; separators, and with drive letters. We can handle the
17560        # drive letters (cygwin fileutils understands them), so leave them,
17561        # especially as we might pass files found there to a mingw objdump,
17562        # which wouldn't understand a cygwinified path. Ahh.
17563        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17564      else
17565        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17566      fi
17567      ;;
17568    pw32*)
17569      # pw32 DLLs use 'pw' prefix rather than 'lib'
17570      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17571      ;;
17572    esac
17573    ;;
17574
17575  *)
17576    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17577    ;;
17578  esac
17579  dynamic_linker='Win32 ld.exe'
17580  # FIXME: first we should search . and the directory the executable is in
17581  shlibpath_var=PATH
17582  ;;
17583
17584darwin* | rhapsody*)
17585  dynamic_linker="$host_os dyld"
17586  version_type=darwin
17587  need_lib_prefix=no
17588  need_version=no
17589  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17590  soname_spec='${libname}${release}${major}$shared_ext'
17591  shlibpath_overrides_runpath=yes
17592  shlibpath_var=DYLD_LIBRARY_PATH
17593  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17594  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17595  if test "$GCC" = yes; then
17596    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"`
17597  else
17598    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17599  fi
17600  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17601  ;;
17602
17603dgux*)
17604  version_type=linux
17605  need_lib_prefix=no
17606  need_version=no
17607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17608  soname_spec='${libname}${release}${shared_ext}$major'
17609  shlibpath_var=LD_LIBRARY_PATH
17610  ;;
17611
17612freebsd1*)
17613  dynamic_linker=no
17614  ;;
17615
17616kfreebsd*-gnu)
17617  version_type=linux
17618  need_lib_prefix=no
17619  need_version=no
17620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17621  soname_spec='${libname}${release}${shared_ext}$major'
17622  shlibpath_var=LD_LIBRARY_PATH
17623  shlibpath_overrides_runpath=no
17624  hardcode_into_libs=yes
17625  dynamic_linker='GNU ld.so'
17626  ;;
17627
17628freebsd* | dragonfly*)
17629  # DragonFly does not have aout.  When/if they implement a new
17630  # versioning mechanism, adjust this.
17631  if test -x /usr/bin/objformat; then
17632    objformat=`/usr/bin/objformat`
17633  else
17634    case $host_os in
17635    freebsd[123]*) objformat=aout ;;
17636    *) objformat=elf ;;
17637    esac
17638  fi
17639  version_type=freebsd-$objformat
17640  case $version_type in
17641    freebsd-elf*)
17642      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17643      need_version=no
17644      need_lib_prefix=no
17645      ;;
17646    freebsd-*)
17647      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17648      need_version=yes
17649      ;;
17650  esac
17651  shlibpath_var=LD_LIBRARY_PATH
17652  case $host_os in
17653  freebsd2*)
17654    shlibpath_overrides_runpath=yes
17655    ;;
17656  freebsd3.[01]* | freebsdelf3.[01]*)
17657    shlibpath_overrides_runpath=yes
17658    hardcode_into_libs=yes
17659    ;;
17660  *) # from 3.2 on
17661    shlibpath_overrides_runpath=no
17662    hardcode_into_libs=yes
17663    ;;
17664  esac
17665  ;;
17666
17667gnu*)
17668  version_type=linux
17669  need_lib_prefix=no
17670  need_version=no
17671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17672  soname_spec='${libname}${release}${shared_ext}$major'
17673  shlibpath_var=LD_LIBRARY_PATH
17674  hardcode_into_libs=yes
17675  ;;
17676
17677hpux9* | hpux10* | hpux11*)
17678  # Give a soname corresponding to the major version so that dld.sl refuses to
17679  # link against other versions.
17680  version_type=sunos
17681  need_lib_prefix=no
17682  need_version=no
17683  case $host_cpu in
17684  ia64*)
17685    shrext_cmds='.so'
17686    hardcode_into_libs=yes
17687    dynamic_linker="$host_os dld.so"
17688    shlibpath_var=LD_LIBRARY_PATH
17689    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691    soname_spec='${libname}${release}${shared_ext}$major'
17692    if test "X$HPUX_IA64_MODE" = X32; then
17693      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17694    else
17695      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17696    fi
17697    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17698    ;;
17699   hppa*64*)
17700     shrext_cmds='.sl'
17701     hardcode_into_libs=yes
17702     dynamic_linker="$host_os dld.sl"
17703     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706     soname_spec='${libname}${release}${shared_ext}$major'
17707     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17709     ;;
17710   *)
17711    shrext_cmds='.sl'
17712    dynamic_linker="$host_os dld.sl"
17713    shlibpath_var=SHLIB_PATH
17714    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17716    soname_spec='${libname}${release}${shared_ext}$major'
17717    ;;
17718  esac
17719  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17720  postinstall_cmds='chmod 555 $lib'
17721  ;;
17722
17723irix5* | irix6* | nonstopux*)
17724  case $host_os in
17725    nonstopux*) version_type=nonstopux ;;
17726    *)
17727	if test "$lt_cv_prog_gnu_ld" = yes; then
17728		version_type=linux
17729	else
17730		version_type=irix
17731	fi ;;
17732  esac
17733  need_lib_prefix=no
17734  need_version=no
17735  soname_spec='${libname}${release}${shared_ext}$major'
17736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17737  case $host_os in
17738  irix5* | nonstopux*)
17739    libsuff= shlibsuff=
17740    ;;
17741  *)
17742    case $LD in # libtool.m4 will add one of these switches to LD
17743    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17744      libsuff= shlibsuff= libmagic=32-bit;;
17745    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17746      libsuff=32 shlibsuff=N32 libmagic=N32;;
17747    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17748      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17749    *) libsuff= shlibsuff= libmagic=never-match;;
17750    esac
17751    ;;
17752  esac
17753  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17754  shlibpath_overrides_runpath=no
17755  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17756  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17757  hardcode_into_libs=yes
17758  ;;
17759
17760# No shared lib support for Linux oldld, aout, or coff.
17761linux*oldld* | linux*aout* | linux*coff*)
17762  dynamic_linker=no
17763  ;;
17764
17765# This must be Linux ELF.
17766linux*)
17767  version_type=linux
17768  need_lib_prefix=no
17769  need_version=no
17770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771  soname_spec='${libname}${release}${shared_ext}$major'
17772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17773  shlibpath_var=LD_LIBRARY_PATH
17774  shlibpath_overrides_runpath=no
17775  # This implies no fast_install, which is unacceptable.
17776  # Some rework will be needed to allow for fast_install
17777  # before this can be enabled.
17778  hardcode_into_libs=yes
17779
17780  # Append ld.so.conf contents to the search path
17781  if test -f /etc/ld.so.conf; then
17782    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' ' '`
17783    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17784  fi
17785
17786  # We used to test for /lib/ld.so.1 and disable shared libraries on
17787  # powerpc, because MkLinux only supported shared libraries with the
17788  # GNU dynamic linker.  Since this was broken with cross compilers,
17789  # most powerpc-linux boxes support dynamic linking these days and
17790  # people can always --disable-shared, the test was removed, and we
17791  # assume the GNU/Linux dynamic linker is in use.
17792  dynamic_linker='GNU/Linux ld.so'
17793  ;;
17794
17795netbsdelf*-gnu)
17796  version_type=linux
17797  need_lib_prefix=no
17798  need_version=no
17799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17800  soname_spec='${libname}${release}${shared_ext}$major'
17801  shlibpath_var=LD_LIBRARY_PATH
17802  shlibpath_overrides_runpath=no
17803  hardcode_into_libs=yes
17804  dynamic_linker='NetBSD ld.elf_so'
17805  ;;
17806
17807knetbsd*-gnu)
17808  version_type=linux
17809  need_lib_prefix=no
17810  need_version=no
17811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17812  soname_spec='${libname}${release}${shared_ext}$major'
17813  shlibpath_var=LD_LIBRARY_PATH
17814  shlibpath_overrides_runpath=no
17815  hardcode_into_libs=yes
17816  dynamic_linker='GNU ld.so'
17817  ;;
17818
17819netbsd*)
17820  version_type=sunos
17821  need_lib_prefix=no
17822  need_version=no
17823  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17825    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17826    dynamic_linker='NetBSD (a.out) ld.so'
17827  else
17828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17829    soname_spec='${libname}${release}${shared_ext}$major'
17830    dynamic_linker='NetBSD ld.elf_so'
17831  fi
17832  shlibpath_var=LD_LIBRARY_PATH
17833  shlibpath_overrides_runpath=yes
17834  hardcode_into_libs=yes
17835  ;;
17836
17837newsos6)
17838  version_type=linux
17839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17840  shlibpath_var=LD_LIBRARY_PATH
17841  shlibpath_overrides_runpath=yes
17842  ;;
17843
17844nto-qnx*)
17845  version_type=linux
17846  need_lib_prefix=no
17847  need_version=no
17848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849  soname_spec='${libname}${release}${shared_ext}$major'
17850  shlibpath_var=LD_LIBRARY_PATH
17851  shlibpath_overrides_runpath=yes
17852  ;;
17853
17854openbsd*)
17855  version_type=sunos
17856  need_lib_prefix=no
17857  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17858  case $host_os in
17859    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17860    *)                         need_version=no  ;;
17861  esac
17862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17864  shlibpath_var=LD_LIBRARY_PATH
17865  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17866    case $host_os in
17867      openbsd2.[89] | openbsd2.[89].*)
17868	shlibpath_overrides_runpath=no
17869	;;
17870      *)
17871	shlibpath_overrides_runpath=yes
17872	;;
17873      esac
17874  else
17875    shlibpath_overrides_runpath=yes
17876  fi
17877  ;;
17878
17879os2*)
17880  libname_spec='$name'
17881  shrext_cmds=".dll"
17882  need_lib_prefix=no
17883  library_names_spec='$libname${shared_ext} $libname.a'
17884  dynamic_linker='OS/2 ld.exe'
17885  shlibpath_var=LIBPATH
17886  ;;
17887
17888osf3* | osf4* | osf5*)
17889  version_type=osf
17890  need_lib_prefix=no
17891  need_version=no
17892  soname_spec='${libname}${release}${shared_ext}$major'
17893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894  shlibpath_var=LD_LIBRARY_PATH
17895  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17896  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17897  ;;
17898
17899sco3.2v5*)
17900  version_type=osf
17901  soname_spec='${libname}${release}${shared_ext}$major'
17902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903  shlibpath_var=LD_LIBRARY_PATH
17904  ;;
17905
17906solaris*)
17907  version_type=linux
17908  need_lib_prefix=no
17909  need_version=no
17910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911  soname_spec='${libname}${release}${shared_ext}$major'
17912  shlibpath_var=LD_LIBRARY_PATH
17913  shlibpath_overrides_runpath=yes
17914  hardcode_into_libs=yes
17915  # ldd complains unless libraries are executable
17916  postinstall_cmds='chmod +x $lib'
17917  ;;
17918
17919sunos4*)
17920  version_type=sunos
17921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17922  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17923  shlibpath_var=LD_LIBRARY_PATH
17924  shlibpath_overrides_runpath=yes
17925  if test "$with_gnu_ld" = yes; then
17926    need_lib_prefix=no
17927  fi
17928  need_version=yes
17929  ;;
17930
17931sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17932  version_type=linux
17933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17934  soname_spec='${libname}${release}${shared_ext}$major'
17935  shlibpath_var=LD_LIBRARY_PATH
17936  case $host_vendor in
17937    sni)
17938      shlibpath_overrides_runpath=no
17939      need_lib_prefix=no
17940      export_dynamic_flag_spec='${wl}-Blargedynsym'
17941      runpath_var=LD_RUN_PATH
17942      ;;
17943    siemens)
17944      need_lib_prefix=no
17945      ;;
17946    motorola)
17947      need_lib_prefix=no
17948      need_version=no
17949      shlibpath_overrides_runpath=no
17950      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17951      ;;
17952  esac
17953  ;;
17954
17955sysv4*MP*)
17956  if test -d /usr/nec ;then
17957    version_type=linux
17958    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17959    soname_spec='$libname${shared_ext}.$major'
17960    shlibpath_var=LD_LIBRARY_PATH
17961  fi
17962  ;;
17963
17964uts4*)
17965  version_type=linux
17966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967  soname_spec='${libname}${release}${shared_ext}$major'
17968  shlibpath_var=LD_LIBRARY_PATH
17969  ;;
17970
17971*)
17972  dynamic_linker=no
17973  ;;
17974esac
17975echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17976echo "${ECHO_T}$dynamic_linker" >&6
17977test "$dynamic_linker" = no && can_build_shared=no
17978
17979echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17980echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17981hardcode_action_GCJ=
17982if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17983   test -n "$runpath_var_GCJ" || \
17984   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17985
17986  # We can hardcode non-existant directories.
17987  if test "$hardcode_direct_GCJ" != no &&
17988     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17989     # have to relink, otherwise we might link with an installed library
17990     # when we should be linking with a yet-to-be-installed one
17991     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17992     test "$hardcode_minus_L_GCJ" != no; then
17993    # Linking always hardcodes the temporary library directory.
17994    hardcode_action_GCJ=relink
17995  else
17996    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17997    hardcode_action_GCJ=immediate
17998  fi
17999else
18000  # We cannot hardcode anything, or else we can only hardcode existing
18001  # directories.
18002  hardcode_action_GCJ=unsupported
18003fi
18004echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18005echo "${ECHO_T}$hardcode_action_GCJ" >&6
18006
18007if test "$hardcode_action_GCJ" = relink; then
18008  # Fast installation is not supported
18009  enable_fast_install=no
18010elif test "$shlibpath_overrides_runpath" = yes ||
18011     test "$enable_shared" = no; then
18012  # Fast installation is not necessary
18013  enable_fast_install=needless
18014fi
18015
18016striplib=
18017old_striplib=
18018echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18019echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18020if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18021  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18022  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18023  echo "$as_me:$LINENO: result: yes" >&5
18024echo "${ECHO_T}yes" >&6
18025else
18026# FIXME - insert some real tests, host_os isn't really good enough
18027  case $host_os in
18028   darwin*)
18029       if test -n "$STRIP" ; then
18030         striplib="$STRIP -x"
18031         echo "$as_me:$LINENO: result: yes" >&5
18032echo "${ECHO_T}yes" >&6
18033       else
18034  echo "$as_me:$LINENO: result: no" >&5
18035echo "${ECHO_T}no" >&6
18036fi
18037       ;;
18038   *)
18039  echo "$as_me:$LINENO: result: no" >&5
18040echo "${ECHO_T}no" >&6
18041    ;;
18042  esac
18043fi
18044
18045if test "x$enable_dlopen" != xyes; then
18046  enable_dlopen=unknown
18047  enable_dlopen_self=unknown
18048  enable_dlopen_self_static=unknown
18049else
18050  lt_cv_dlopen=no
18051  lt_cv_dlopen_libs=
18052
18053  case $host_os in
18054  beos*)
18055    lt_cv_dlopen="load_add_on"
18056    lt_cv_dlopen_libs=
18057    lt_cv_dlopen_self=yes
18058    ;;
18059
18060  mingw* | pw32*)
18061    lt_cv_dlopen="LoadLibrary"
18062    lt_cv_dlopen_libs=
18063   ;;
18064
18065  cygwin*)
18066    lt_cv_dlopen="dlopen"
18067    lt_cv_dlopen_libs=
18068   ;;
18069
18070  darwin*)
18071  # if libdl is installed we need to link against it
18072    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18073echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18074if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18075  echo $ECHO_N "(cached) $ECHO_C" >&6
18076else
18077  ac_check_lib_save_LIBS=$LIBS
18078LIBS="-ldl  $LIBS"
18079cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h.  */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h.  */
18085
18086/* Override any gcc2 internal prototype to avoid an error.  */
18087#ifdef __cplusplus
18088extern "C"
18089#endif
18090/* We use char because int might match the return type of a gcc2
18091   builtin and then its argument prototype would still apply.  */
18092char dlopen ();
18093int
18094main ()
18095{
18096dlopen ();
18097  ;
18098  return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext conftest$ac_exeext
18102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18103  (eval $ac_link) 2>conftest.er1
18104  ac_status=$?
18105  grep -v '^ *+' conftest.er1 >conftest.err
18106  rm -f conftest.er1
18107  cat conftest.err >&5
18108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109  (exit $ac_status); } &&
18110	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112  (eval $ac_try) 2>&5
18113  ac_status=$?
18114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115  (exit $ac_status); }; } &&
18116	 { ac_try='test -s conftest$ac_exeext'
18117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118  (eval $ac_try) 2>&5
18119  ac_status=$?
18120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121  (exit $ac_status); }; }; then
18122  ac_cv_lib_dl_dlopen=yes
18123else
18124  echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127ac_cv_lib_dl_dlopen=no
18128fi
18129rm -f conftest.err conftest.$ac_objext \
18130      conftest$ac_exeext conftest.$ac_ext
18131LIBS=$ac_check_lib_save_LIBS
18132fi
18133echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18134echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18135if test $ac_cv_lib_dl_dlopen = yes; then
18136  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18137else
18138
18139    lt_cv_dlopen="dyld"
18140    lt_cv_dlopen_libs=
18141    lt_cv_dlopen_self=yes
18142
18143fi
18144
18145   ;;
18146
18147  *)
18148    echo "$as_me:$LINENO: checking for shl_load" >&5
18149echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18150if test "${ac_cv_func_shl_load+set}" = set; then
18151  echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153  cat >conftest.$ac_ext <<_ACEOF
18154/* confdefs.h.  */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h.  */
18159/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18160   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18161#define shl_load innocuous_shl_load
18162
18163/* System header to define __stub macros and hopefully few prototypes,
18164    which can conflict with char shl_load (); below.
18165    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166    <limits.h> exists even on freestanding compilers.  */
18167
18168#ifdef __STDC__
18169# include <limits.h>
18170#else
18171# include <assert.h>
18172#endif
18173
18174#undef shl_load
18175
18176/* Override any gcc2 internal prototype to avoid an error.  */
18177#ifdef __cplusplus
18178extern "C"
18179{
18180#endif
18181/* We use char because int might match the return type of a gcc2
18182   builtin and then its argument prototype would still apply.  */
18183char shl_load ();
18184/* The GNU C library defines this for functions which it implements
18185    to always fail with ENOSYS.  Some functions are actually named
18186    something starting with __ and the normal name is an alias.  */
18187#if defined (__stub_shl_load) || defined (__stub___shl_load)
18188choke me
18189#else
18190char (*f) () = shl_load;
18191#endif
18192#ifdef __cplusplus
18193}
18194#endif
18195
18196int
18197main ()
18198{
18199return f != shl_load;
18200  ;
18201  return 0;
18202}
18203_ACEOF
18204rm -f conftest.$ac_objext conftest$ac_exeext
18205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18206  (eval $ac_link) 2>conftest.er1
18207  ac_status=$?
18208  grep -v '^ *+' conftest.er1 >conftest.err
18209  rm -f conftest.er1
18210  cat conftest.err >&5
18211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212  (exit $ac_status); } &&
18213	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215  (eval $ac_try) 2>&5
18216  ac_status=$?
18217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218  (exit $ac_status); }; } &&
18219	 { ac_try='test -s conftest$ac_exeext'
18220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221  (eval $ac_try) 2>&5
18222  ac_status=$?
18223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224  (exit $ac_status); }; }; then
18225  ac_cv_func_shl_load=yes
18226else
18227  echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230ac_cv_func_shl_load=no
18231fi
18232rm -f conftest.err conftest.$ac_objext \
18233      conftest$ac_exeext conftest.$ac_ext
18234fi
18235echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18236echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18237if test $ac_cv_func_shl_load = yes; then
18238  lt_cv_dlopen="shl_load"
18239else
18240  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18241echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18242if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18243  echo $ECHO_N "(cached) $ECHO_C" >&6
18244else
18245  ac_check_lib_save_LIBS=$LIBS
18246LIBS="-ldld  $LIBS"
18247cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h.  */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h.  */
18253
18254/* Override any gcc2 internal prototype to avoid an error.  */
18255#ifdef __cplusplus
18256extern "C"
18257#endif
18258/* We use char because int might match the return type of a gcc2
18259   builtin and then its argument prototype would still apply.  */
18260char shl_load ();
18261int
18262main ()
18263{
18264shl_load ();
18265  ;
18266  return 0;
18267}
18268_ACEOF
18269rm -f conftest.$ac_objext conftest$ac_exeext
18270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18271  (eval $ac_link) 2>conftest.er1
18272  ac_status=$?
18273  grep -v '^ *+' conftest.er1 >conftest.err
18274  rm -f conftest.er1
18275  cat conftest.err >&5
18276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277  (exit $ac_status); } &&
18278	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280  (eval $ac_try) 2>&5
18281  ac_status=$?
18282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283  (exit $ac_status); }; } &&
18284	 { ac_try='test -s conftest$ac_exeext'
18285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286  (eval $ac_try) 2>&5
18287  ac_status=$?
18288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289  (exit $ac_status); }; }; then
18290  ac_cv_lib_dld_shl_load=yes
18291else
18292  echo "$as_me: failed program was:" >&5
18293sed 's/^/| /' conftest.$ac_ext >&5
18294
18295ac_cv_lib_dld_shl_load=no
18296fi
18297rm -f conftest.err conftest.$ac_objext \
18298      conftest$ac_exeext conftest.$ac_ext
18299LIBS=$ac_check_lib_save_LIBS
18300fi
18301echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18302echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18303if test $ac_cv_lib_dld_shl_load = yes; then
18304  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18305else
18306  echo "$as_me:$LINENO: checking for dlopen" >&5
18307echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18308if test "${ac_cv_func_dlopen+set}" = set; then
18309  echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311  cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h.  */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h.  */
18317/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18319#define dlopen innocuous_dlopen
18320
18321/* System header to define __stub macros and hopefully few prototypes,
18322    which can conflict with char dlopen (); below.
18323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324    <limits.h> exists even on freestanding compilers.  */
18325
18326#ifdef __STDC__
18327# include <limits.h>
18328#else
18329# include <assert.h>
18330#endif
18331
18332#undef dlopen
18333
18334/* Override any gcc2 internal prototype to avoid an error.  */
18335#ifdef __cplusplus
18336extern "C"
18337{
18338#endif
18339/* We use char because int might match the return type of a gcc2
18340   builtin and then its argument prototype would still apply.  */
18341char dlopen ();
18342/* The GNU C library defines this for functions which it implements
18343    to always fail with ENOSYS.  Some functions are actually named
18344    something starting with __ and the normal name is an alias.  */
18345#if defined (__stub_dlopen) || defined (__stub___dlopen)
18346choke me
18347#else
18348char (*f) () = dlopen;
18349#endif
18350#ifdef __cplusplus
18351}
18352#endif
18353
18354int
18355main ()
18356{
18357return f != dlopen;
18358  ;
18359  return 0;
18360}
18361_ACEOF
18362rm -f conftest.$ac_objext conftest$ac_exeext
18363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364  (eval $ac_link) 2>conftest.er1
18365  ac_status=$?
18366  grep -v '^ *+' conftest.er1 >conftest.err
18367  rm -f conftest.er1
18368  cat conftest.err >&5
18369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370  (exit $ac_status); } &&
18371	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373  (eval $ac_try) 2>&5
18374  ac_status=$?
18375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376  (exit $ac_status); }; } &&
18377	 { ac_try='test -s conftest$ac_exeext'
18378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379  (eval $ac_try) 2>&5
18380  ac_status=$?
18381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382  (exit $ac_status); }; }; then
18383  ac_cv_func_dlopen=yes
18384else
18385  echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388ac_cv_func_dlopen=no
18389fi
18390rm -f conftest.err conftest.$ac_objext \
18391      conftest$ac_exeext conftest.$ac_ext
18392fi
18393echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18394echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18395if test $ac_cv_func_dlopen = yes; then
18396  lt_cv_dlopen="dlopen"
18397else
18398  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18399echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18400if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18401  echo $ECHO_N "(cached) $ECHO_C" >&6
18402else
18403  ac_check_lib_save_LIBS=$LIBS
18404LIBS="-ldl  $LIBS"
18405cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h.  */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h.  */
18411
18412/* Override any gcc2 internal prototype to avoid an error.  */
18413#ifdef __cplusplus
18414extern "C"
18415#endif
18416/* We use char because int might match the return type of a gcc2
18417   builtin and then its argument prototype would still apply.  */
18418char dlopen ();
18419int
18420main ()
18421{
18422dlopen ();
18423  ;
18424  return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429  (eval $ac_link) 2>conftest.er1
18430  ac_status=$?
18431  grep -v '^ *+' conftest.er1 >conftest.err
18432  rm -f conftest.er1
18433  cat conftest.err >&5
18434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435  (exit $ac_status); } &&
18436	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438  (eval $ac_try) 2>&5
18439  ac_status=$?
18440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441  (exit $ac_status); }; } &&
18442	 { ac_try='test -s conftest$ac_exeext'
18443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444  (eval $ac_try) 2>&5
18445  ac_status=$?
18446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447  (exit $ac_status); }; }; then
18448  ac_cv_lib_dl_dlopen=yes
18449else
18450  echo "$as_me: failed program was:" >&5
18451sed 's/^/| /' conftest.$ac_ext >&5
18452
18453ac_cv_lib_dl_dlopen=no
18454fi
18455rm -f conftest.err conftest.$ac_objext \
18456      conftest$ac_exeext conftest.$ac_ext
18457LIBS=$ac_check_lib_save_LIBS
18458fi
18459echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18460echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18461if test $ac_cv_lib_dl_dlopen = yes; then
18462  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18463else
18464  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18465echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18466if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18467  echo $ECHO_N "(cached) $ECHO_C" >&6
18468else
18469  ac_check_lib_save_LIBS=$LIBS
18470LIBS="-lsvld  $LIBS"
18471cat >conftest.$ac_ext <<_ACEOF
18472/* confdefs.h.  */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h.  */
18477
18478/* Override any gcc2 internal prototype to avoid an error.  */
18479#ifdef __cplusplus
18480extern "C"
18481#endif
18482/* We use char because int might match the return type of a gcc2
18483   builtin and then its argument prototype would still apply.  */
18484char dlopen ();
18485int
18486main ()
18487{
18488dlopen ();
18489  ;
18490  return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495  (eval $ac_link) 2>conftest.er1
18496  ac_status=$?
18497  grep -v '^ *+' conftest.er1 >conftest.err
18498  rm -f conftest.er1
18499  cat conftest.err >&5
18500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501  (exit $ac_status); } &&
18502	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504  (eval $ac_try) 2>&5
18505  ac_status=$?
18506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507  (exit $ac_status); }; } &&
18508	 { ac_try='test -s conftest$ac_exeext'
18509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510  (eval $ac_try) 2>&5
18511  ac_status=$?
18512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513  (exit $ac_status); }; }; then
18514  ac_cv_lib_svld_dlopen=yes
18515else
18516  echo "$as_me: failed program was:" >&5
18517sed 's/^/| /' conftest.$ac_ext >&5
18518
18519ac_cv_lib_svld_dlopen=no
18520fi
18521rm -f conftest.err conftest.$ac_objext \
18522      conftest$ac_exeext conftest.$ac_ext
18523LIBS=$ac_check_lib_save_LIBS
18524fi
18525echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18526echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18527if test $ac_cv_lib_svld_dlopen = yes; then
18528  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18529else
18530  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18531echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18532if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18533  echo $ECHO_N "(cached) $ECHO_C" >&6
18534else
18535  ac_check_lib_save_LIBS=$LIBS
18536LIBS="-ldld  $LIBS"
18537cat >conftest.$ac_ext <<_ACEOF
18538/* confdefs.h.  */
18539_ACEOF
18540cat confdefs.h >>conftest.$ac_ext
18541cat >>conftest.$ac_ext <<_ACEOF
18542/* end confdefs.h.  */
18543
18544/* Override any gcc2 internal prototype to avoid an error.  */
18545#ifdef __cplusplus
18546extern "C"
18547#endif
18548/* We use char because int might match the return type of a gcc2
18549   builtin and then its argument prototype would still apply.  */
18550char dld_link ();
18551int
18552main ()
18553{
18554dld_link ();
18555  ;
18556  return 0;
18557}
18558_ACEOF
18559rm -f conftest.$ac_objext conftest$ac_exeext
18560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18561  (eval $ac_link) 2>conftest.er1
18562  ac_status=$?
18563  grep -v '^ *+' conftest.er1 >conftest.err
18564  rm -f conftest.er1
18565  cat conftest.err >&5
18566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567  (exit $ac_status); } &&
18568	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570  (eval $ac_try) 2>&5
18571  ac_status=$?
18572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573  (exit $ac_status); }; } &&
18574	 { ac_try='test -s conftest$ac_exeext'
18575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576  (eval $ac_try) 2>&5
18577  ac_status=$?
18578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579  (exit $ac_status); }; }; then
18580  ac_cv_lib_dld_dld_link=yes
18581else
18582  echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585ac_cv_lib_dld_dld_link=no
18586fi
18587rm -f conftest.err conftest.$ac_objext \
18588      conftest$ac_exeext conftest.$ac_ext
18589LIBS=$ac_check_lib_save_LIBS
18590fi
18591echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18592echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18593if test $ac_cv_lib_dld_dld_link = yes; then
18594  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18595fi
18596
18597
18598fi
18599
18600
18601fi
18602
18603
18604fi
18605
18606
18607fi
18608
18609
18610fi
18611
18612    ;;
18613  esac
18614
18615  if test "x$lt_cv_dlopen" != xno; then
18616    enable_dlopen=yes
18617  else
18618    enable_dlopen=no
18619  fi
18620
18621  case $lt_cv_dlopen in
18622  dlopen)
18623    save_CPPFLAGS="$CPPFLAGS"
18624    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18625
18626    save_LDFLAGS="$LDFLAGS"
18627    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18628
18629    save_LIBS="$LIBS"
18630    LIBS="$lt_cv_dlopen_libs $LIBS"
18631
18632    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18633echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18634if test "${lt_cv_dlopen_self+set}" = set; then
18635  echo $ECHO_N "(cached) $ECHO_C" >&6
18636else
18637  	  if test "$cross_compiling" = yes; then :
18638  lt_cv_dlopen_self=cross
18639else
18640  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18641  lt_status=$lt_dlunknown
18642  cat > conftest.$ac_ext <<EOF
18643#line 18643 "configure"
18644#include "confdefs.h"
18645
18646#if HAVE_DLFCN_H
18647#include <dlfcn.h>
18648#endif
18649
18650#include <stdio.h>
18651
18652#ifdef RTLD_GLOBAL
18653#  define LT_DLGLOBAL		RTLD_GLOBAL
18654#else
18655#  ifdef DL_GLOBAL
18656#    define LT_DLGLOBAL		DL_GLOBAL
18657#  else
18658#    define LT_DLGLOBAL		0
18659#  endif
18660#endif
18661
18662/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18663   find out it does not work in some platform. */
18664#ifndef LT_DLLAZY_OR_NOW
18665#  ifdef RTLD_LAZY
18666#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18667#  else
18668#    ifdef DL_LAZY
18669#      define LT_DLLAZY_OR_NOW		DL_LAZY
18670#    else
18671#      ifdef RTLD_NOW
18672#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18673#      else
18674#        ifdef DL_NOW
18675#          define LT_DLLAZY_OR_NOW	DL_NOW
18676#        else
18677#          define LT_DLLAZY_OR_NOW	0
18678#        endif
18679#      endif
18680#    endif
18681#  endif
18682#endif
18683
18684#ifdef __cplusplus
18685extern "C" void exit (int);
18686#endif
18687
18688void fnord() { int i=42;}
18689int main ()
18690{
18691  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18692  int status = $lt_dlunknown;
18693
18694  if (self)
18695    {
18696      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18697      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18698      /* dlclose (self); */
18699    }
18700
18701    exit (status);
18702}
18703EOF
18704  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18705  (eval $ac_link) 2>&5
18706  ac_status=$?
18707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18709    (./conftest; exit; ) >&5 2>/dev/null
18710    lt_status=$?
18711    case x$lt_status in
18712      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18713      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18714      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18715    esac
18716  else :
18717    # compilation failed
18718    lt_cv_dlopen_self=no
18719  fi
18720fi
18721rm -fr conftest*
18722
18723
18724fi
18725echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18726echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18727
18728    if test "x$lt_cv_dlopen_self" = xyes; then
18729      LDFLAGS="$LDFLAGS $link_static_flag"
18730      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18731echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18732if test "${lt_cv_dlopen_self_static+set}" = set; then
18733  echo $ECHO_N "(cached) $ECHO_C" >&6
18734else
18735  	  if test "$cross_compiling" = yes; then :
18736  lt_cv_dlopen_self_static=cross
18737else
18738  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18739  lt_status=$lt_dlunknown
18740  cat > conftest.$ac_ext <<EOF
18741#line 18741 "configure"
18742#include "confdefs.h"
18743
18744#if HAVE_DLFCN_H
18745#include <dlfcn.h>
18746#endif
18747
18748#include <stdio.h>
18749
18750#ifdef RTLD_GLOBAL
18751#  define LT_DLGLOBAL		RTLD_GLOBAL
18752#else
18753#  ifdef DL_GLOBAL
18754#    define LT_DLGLOBAL		DL_GLOBAL
18755#  else
18756#    define LT_DLGLOBAL		0
18757#  endif
18758#endif
18759
18760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18761   find out it does not work in some platform. */
18762#ifndef LT_DLLAZY_OR_NOW
18763#  ifdef RTLD_LAZY
18764#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18765#  else
18766#    ifdef DL_LAZY
18767#      define LT_DLLAZY_OR_NOW		DL_LAZY
18768#    else
18769#      ifdef RTLD_NOW
18770#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18771#      else
18772#        ifdef DL_NOW
18773#          define LT_DLLAZY_OR_NOW	DL_NOW
18774#        else
18775#          define LT_DLLAZY_OR_NOW	0
18776#        endif
18777#      endif
18778#    endif
18779#  endif
18780#endif
18781
18782#ifdef __cplusplus
18783extern "C" void exit (int);
18784#endif
18785
18786void fnord() { int i=42;}
18787int main ()
18788{
18789  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18790  int status = $lt_dlunknown;
18791
18792  if (self)
18793    {
18794      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18795      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18796      /* dlclose (self); */
18797    }
18798
18799    exit (status);
18800}
18801EOF
18802  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18803  (eval $ac_link) 2>&5
18804  ac_status=$?
18805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18807    (./conftest; exit; ) >&5 2>/dev/null
18808    lt_status=$?
18809    case x$lt_status in
18810      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18811      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18812      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18813    esac
18814  else :
18815    # compilation failed
18816    lt_cv_dlopen_self_static=no
18817  fi
18818fi
18819rm -fr conftest*
18820
18821
18822fi
18823echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18824echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18825    fi
18826
18827    CPPFLAGS="$save_CPPFLAGS"
18828    LDFLAGS="$save_LDFLAGS"
18829    LIBS="$save_LIBS"
18830    ;;
18831  esac
18832
18833  case $lt_cv_dlopen_self in
18834  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18835  *) enable_dlopen_self=unknown ;;
18836  esac
18837
18838  case $lt_cv_dlopen_self_static in
18839  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18840  *) enable_dlopen_self_static=unknown ;;
18841  esac
18842fi
18843
18844
18845# The else clause should only fire when bootstrapping the
18846# libtool distribution, otherwise you forgot to ship ltmain.sh
18847# with your package, and you will get complaints that there are
18848# no rules to generate ltmain.sh.
18849if test -f "$ltmain"; then
18850  # See if we are running on zsh, and set the options which allow our commands through
18851  # without removal of \ escapes.
18852  if test -n "${ZSH_VERSION+set}" ; then
18853    setopt NO_GLOB_SUBST
18854  fi
18855  # Now quote all the things that may contain metacharacters while being
18856  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18857  # variables and quote the copies for generation of the libtool script.
18858  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18859    SED SHELL STRIP \
18860    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18861    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18862    deplibs_check_method reload_flag reload_cmds need_locks \
18863    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18864    lt_cv_sys_global_symbol_to_c_name_address \
18865    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18866    old_postinstall_cmds old_postuninstall_cmds \
18867    compiler_GCJ \
18868    CC_GCJ \
18869    LD_GCJ \
18870    lt_prog_compiler_wl_GCJ \
18871    lt_prog_compiler_pic_GCJ \
18872    lt_prog_compiler_static_GCJ \
18873    lt_prog_compiler_no_builtin_flag_GCJ \
18874    export_dynamic_flag_spec_GCJ \
18875    thread_safe_flag_spec_GCJ \
18876    whole_archive_flag_spec_GCJ \
18877    enable_shared_with_static_runtimes_GCJ \
18878    old_archive_cmds_GCJ \
18879    old_archive_from_new_cmds_GCJ \
18880    predep_objects_GCJ \
18881    postdep_objects_GCJ \
18882    predeps_GCJ \
18883    postdeps_GCJ \
18884    compiler_lib_search_path_GCJ \
18885    archive_cmds_GCJ \
18886    archive_expsym_cmds_GCJ \
18887    postinstall_cmds_GCJ \
18888    postuninstall_cmds_GCJ \
18889    old_archive_from_expsyms_cmds_GCJ \
18890    allow_undefined_flag_GCJ \
18891    no_undefined_flag_GCJ \
18892    export_symbols_cmds_GCJ \
18893    hardcode_libdir_flag_spec_GCJ \
18894    hardcode_libdir_flag_spec_ld_GCJ \
18895    hardcode_libdir_separator_GCJ \
18896    hardcode_automatic_GCJ \
18897    module_cmds_GCJ \
18898    module_expsym_cmds_GCJ \
18899    lt_cv_prog_compiler_c_o_GCJ \
18900    exclude_expsyms_GCJ \
18901    include_expsyms_GCJ; do
18902
18903    case $var in
18904    old_archive_cmds_GCJ | \
18905    old_archive_from_new_cmds_GCJ | \
18906    archive_cmds_GCJ | \
18907    archive_expsym_cmds_GCJ | \
18908    module_cmds_GCJ | \
18909    module_expsym_cmds_GCJ | \
18910    old_archive_from_expsyms_cmds_GCJ | \
18911    export_symbols_cmds_GCJ | \
18912    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18913    postinstall_cmds | postuninstall_cmds | \
18914    old_postinstall_cmds | old_postuninstall_cmds | \
18915    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18916      # Double-quote double-evaled strings.
18917      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18918      ;;
18919    *)
18920      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18921      ;;
18922    esac
18923  done
18924
18925  case $lt_echo in
18926  *'\$0 --fallback-echo"')
18927    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18928    ;;
18929  esac
18930
18931cfgfile="$ofile"
18932
18933  cat <<__EOF__ >> "$cfgfile"
18934# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18935
18936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18937
18938# Shell to use when invoking shell scripts.
18939SHELL=$lt_SHELL
18940
18941# Whether or not to build shared libraries.
18942build_libtool_libs=$enable_shared
18943
18944# Whether or not to build static libraries.
18945build_old_libs=$enable_static
18946
18947# Whether or not to add -lc for building shared libraries.
18948build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18949
18950# Whether or not to disallow shared libs when runtime libs are static
18951allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18952
18953# Whether or not to optimize for fast installation.
18954fast_install=$enable_fast_install
18955
18956# The host system.
18957host_alias=$host_alias
18958host=$host
18959host_os=$host_os
18960
18961# The build system.
18962build_alias=$build_alias
18963build=$build
18964build_os=$build_os
18965
18966# An echo program that does not interpret backslashes.
18967echo=$lt_echo
18968
18969# The archiver.
18970AR=$lt_AR
18971AR_FLAGS=$lt_AR_FLAGS
18972
18973# A C compiler.
18974LTCC=$lt_LTCC
18975
18976# A language-specific compiler.
18977CC=$lt_compiler_GCJ
18978
18979# Is the compiler the GNU C compiler?
18980with_gcc=$GCC_GCJ
18981
18982# An ERE matcher.
18983EGREP=$lt_EGREP
18984
18985# The linker used to build libraries.
18986LD=$lt_LD_GCJ
18987
18988# Whether we need hard or soft links.
18989LN_S=$lt_LN_S
18990
18991# A BSD-compatible nm program.
18992NM=$lt_NM
18993
18994# A symbol stripping program
18995STRIP=$lt_STRIP
18996
18997# Used to examine libraries when file_magic_cmd begins "file"
18998MAGIC_CMD=$MAGIC_CMD
18999
19000# Used on cygwin: DLL creation program.
19001DLLTOOL="$DLLTOOL"
19002
19003# Used on cygwin: object dumper.
19004OBJDUMP="$OBJDUMP"
19005
19006# Used on cygwin: assembler.
19007AS="$AS"
19008
19009# The name of the directory that contains temporary libtool files.
19010objdir=$objdir
19011
19012# How to create reloadable object files.
19013reload_flag=$lt_reload_flag
19014reload_cmds=$lt_reload_cmds
19015
19016# How to pass a linker flag through the compiler.
19017wl=$lt_lt_prog_compiler_wl_GCJ
19018
19019# Object file suffix (normally "o").
19020objext="$ac_objext"
19021
19022# Old archive suffix (normally "a").
19023libext="$libext"
19024
19025# Shared library suffix (normally ".so").
19026shrext_cmds='$shrext_cmds'
19027
19028# Executable file suffix (normally "").
19029exeext="$exeext"
19030
19031# Additional compiler flags for building library objects.
19032pic_flag=$lt_lt_prog_compiler_pic_GCJ
19033pic_mode=$pic_mode
19034
19035# What is the maximum length of a command?
19036max_cmd_len=$lt_cv_sys_max_cmd_len
19037
19038# Does compiler simultaneously support -c and -o options?
19039compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19040
19041# Must we lock files when doing compilation?
19042need_locks=$lt_need_locks
19043
19044# Do we need the lib prefix for modules?
19045need_lib_prefix=$need_lib_prefix
19046
19047# Do we need a version for libraries?
19048need_version=$need_version
19049
19050# Whether dlopen is supported.
19051dlopen_support=$enable_dlopen
19052
19053# Whether dlopen of programs is supported.
19054dlopen_self=$enable_dlopen_self
19055
19056# Whether dlopen of statically linked programs is supported.
19057dlopen_self_static=$enable_dlopen_self_static
19058
19059# Compiler flag to prevent dynamic linking.
19060link_static_flag=$lt_lt_prog_compiler_static_GCJ
19061
19062# Compiler flag to turn off builtin functions.
19063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19064
19065# Compiler flag to allow reflexive dlopens.
19066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19067
19068# Compiler flag to generate shared objects directly from archives.
19069whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19070
19071# Compiler flag to generate thread-safe objects.
19072thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19073
19074# Library versioning type.
19075version_type=$version_type
19076
19077# Format of library name prefix.
19078libname_spec=$lt_libname_spec
19079
19080# List of archive names.  First name is the real one, the rest are links.
19081# The last name is the one that the linker finds with -lNAME.
19082library_names_spec=$lt_library_names_spec
19083
19084# The coded name of the library, if different from the real name.
19085soname_spec=$lt_soname_spec
19086
19087# Commands used to build and install an old-style archive.
19088RANLIB=$lt_RANLIB
19089old_archive_cmds=$lt_old_archive_cmds_GCJ
19090old_postinstall_cmds=$lt_old_postinstall_cmds
19091old_postuninstall_cmds=$lt_old_postuninstall_cmds
19092
19093# Create an old-style archive from a shared archive.
19094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19095
19096# Create a temporary old-style archive to link instead of a shared archive.
19097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19098
19099# Commands used to build and install a shared archive.
19100archive_cmds=$lt_archive_cmds_GCJ
19101archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19102postinstall_cmds=$lt_postinstall_cmds
19103postuninstall_cmds=$lt_postuninstall_cmds
19104
19105# Commands used to build a loadable module (assumed same as above if empty)
19106module_cmds=$lt_module_cmds_GCJ
19107module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19108
19109# Commands to strip libraries.
19110old_striplib=$lt_old_striplib
19111striplib=$lt_striplib
19112
19113# Dependencies to place before the objects being linked to create a
19114# shared library.
19115predep_objects=$lt_predep_objects_GCJ
19116
19117# Dependencies to place after the objects being linked to create a
19118# shared library.
19119postdep_objects=$lt_postdep_objects_GCJ
19120
19121# Dependencies to place before the objects being linked to create a
19122# shared library.
19123predeps=$lt_predeps_GCJ
19124
19125# Dependencies to place after the objects being linked to create a
19126# shared library.
19127postdeps=$lt_postdeps_GCJ
19128
19129# The library search path used internally by the compiler when linking
19130# a shared library.
19131compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19132
19133# Method to check whether dependent libraries are shared objects.
19134deplibs_check_method=$lt_deplibs_check_method
19135
19136# Command to use when deplibs_check_method == file_magic.
19137file_magic_cmd=$lt_file_magic_cmd
19138
19139# Flag that allows shared libraries with undefined symbols to be built.
19140allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19141
19142# Flag that forces no undefined symbols.
19143no_undefined_flag=$lt_no_undefined_flag_GCJ
19144
19145# Commands used to finish a libtool library installation in a directory.
19146finish_cmds=$lt_finish_cmds
19147
19148# Same as above, but a single script fragment to be evaled but not shown.
19149finish_eval=$lt_finish_eval
19150
19151# Take the output of nm and produce a listing of raw symbols and C names.
19152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19153
19154# Transform the output of nm in a proper C declaration
19155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19156
19157# Transform the output of nm in a C name address pair
19158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19159
19160# This is the shared library runtime path variable.
19161runpath_var=$runpath_var
19162
19163# This is the shared library path variable.
19164shlibpath_var=$shlibpath_var
19165
19166# Is shlibpath searched before the hard-coded library search path?
19167shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19168
19169# How to hardcode a shared library path into an executable.
19170hardcode_action=$hardcode_action_GCJ
19171
19172# Whether we should hardcode library paths into libraries.
19173hardcode_into_libs=$hardcode_into_libs
19174
19175# Flag to hardcode \$libdir into a binary during linking.
19176# This must work even if \$libdir does not exist.
19177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19178
19179# If ld is used when linking, flag to hardcode \$libdir into
19180# a binary during linking. This must work even if \$libdir does
19181# not exist.
19182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19183
19184# Whether we need a single -rpath flag with a separated argument.
19185hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19186
19187# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19188# resulting binary.
19189hardcode_direct=$hardcode_direct_GCJ
19190
19191# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19192# resulting binary.
19193hardcode_minus_L=$hardcode_minus_L_GCJ
19194
19195# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19196# the resulting binary.
19197hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19198
19199# Set to yes if building a shared library automatically hardcodes DIR into the library
19200# and all subsequent libraries and executables linked against it.
19201hardcode_automatic=$hardcode_automatic_GCJ
19202
19203# Variables whose values should be saved in libtool wrapper scripts and
19204# restored at relink time.
19205variables_saved_for_relink="$variables_saved_for_relink"
19206
19207# Whether libtool must link a program against all its dependency libraries.
19208link_all_deplibs=$link_all_deplibs_GCJ
19209
19210# Compile-time system search path for libraries
19211sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19212
19213# Run-time system search path for libraries
19214sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19215
19216# Fix the shell variable \$srcfile for the compiler.
19217fix_srcfile_path="$fix_srcfile_path_GCJ"
19218
19219# Set to yes if exported symbols are required.
19220always_export_symbols=$always_export_symbols_GCJ
19221
19222# The commands to list exported symbols.
19223export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19224
19225# The commands to extract the exported symbol list from a shared archive.
19226extract_expsyms_cmds=$lt_extract_expsyms_cmds
19227
19228# Symbols that should not be listed in the preloaded symbols.
19229exclude_expsyms=$lt_exclude_expsyms_GCJ
19230
19231# Symbols that must always be exported.
19232include_expsyms=$lt_include_expsyms_GCJ
19233
19234# ### END LIBTOOL TAG CONFIG: $tagname
19235
19236__EOF__
19237
19238
19239else
19240  # If there is no Makefile yet, we rely on a make rule to execute
19241  # `config.status --recheck' to rerun these tests and create the
19242  # libtool script then.
19243  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19244  if test -f "$ltmain_in"; then
19245    test -f Makefile && make "$ltmain"
19246  fi
19247fi
19248
19249
19250ac_ext=c
19251ac_cpp='$CPP $CPPFLAGS'
19252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254ac_compiler_gnu=$ac_cv_c_compiler_gnu
19255
19256CC="$lt_save_CC"
19257
19258	else
19259	  tagname=""
19260	fi
19261	;;
19262
19263      RC)
19264
19265
19266
19267# Source file extension for RC test sources.
19268ac_ext=rc
19269
19270# Object file extension for compiled RC test sources.
19271objext=o
19272objext_RC=$objext
19273
19274# Code to be used in simple compile tests
19275lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19276
19277# Code to be used in simple link tests
19278lt_simple_link_test_code="$lt_simple_compile_test_code"
19279
19280# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19281
19282# If no C compiler was specified, use CC.
19283LTCC=${LTCC-"$CC"}
19284
19285# Allow CC to be a program name with arguments.
19286compiler=$CC
19287
19288
19289# save warnings/boilerplate of simple test code
19290ac_outfile=conftest.$ac_objext
19291printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19292eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19293_lt_compiler_boilerplate=`cat conftest.err`
19294$rm conftest*
19295
19296ac_outfile=conftest.$ac_objext
19297printf "$lt_simple_link_test_code" >conftest.$ac_ext
19298eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19299_lt_linker_boilerplate=`cat conftest.err`
19300$rm conftest*
19301
19302
19303# Allow CC to be a program name with arguments.
19304lt_save_CC="$CC"
19305CC=${RC-"windres"}
19306compiler=$CC
19307compiler_RC=$CC
19308for cc_temp in $compiler""; do
19309  case $cc_temp in
19310    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19311    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19312    \-*) ;;
19313    *) break;;
19314  esac
19315done
19316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19317
19318lt_cv_prog_compiler_c_o_RC=yes
19319
19320# The else clause should only fire when bootstrapping the
19321# libtool distribution, otherwise you forgot to ship ltmain.sh
19322# with your package, and you will get complaints that there are
19323# no rules to generate ltmain.sh.
19324if test -f "$ltmain"; then
19325  # See if we are running on zsh, and set the options which allow our commands through
19326  # without removal of \ escapes.
19327  if test -n "${ZSH_VERSION+set}" ; then
19328    setopt NO_GLOB_SUBST
19329  fi
19330  # Now quote all the things that may contain metacharacters while being
19331  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19332  # variables and quote the copies for generation of the libtool script.
19333  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19334    SED SHELL STRIP \
19335    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19336    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19337    deplibs_check_method reload_flag reload_cmds need_locks \
19338    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19339    lt_cv_sys_global_symbol_to_c_name_address \
19340    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19341    old_postinstall_cmds old_postuninstall_cmds \
19342    compiler_RC \
19343    CC_RC \
19344    LD_RC \
19345    lt_prog_compiler_wl_RC \
19346    lt_prog_compiler_pic_RC \
19347    lt_prog_compiler_static_RC \
19348    lt_prog_compiler_no_builtin_flag_RC \
19349    export_dynamic_flag_spec_RC \
19350    thread_safe_flag_spec_RC \
19351    whole_archive_flag_spec_RC \
19352    enable_shared_with_static_runtimes_RC \
19353    old_archive_cmds_RC \
19354    old_archive_from_new_cmds_RC \
19355    predep_objects_RC \
19356    postdep_objects_RC \
19357    predeps_RC \
19358    postdeps_RC \
19359    compiler_lib_search_path_RC \
19360    archive_cmds_RC \
19361    archive_expsym_cmds_RC \
19362    postinstall_cmds_RC \
19363    postuninstall_cmds_RC \
19364    old_archive_from_expsyms_cmds_RC \
19365    allow_undefined_flag_RC \
19366    no_undefined_flag_RC \
19367    export_symbols_cmds_RC \
19368    hardcode_libdir_flag_spec_RC \
19369    hardcode_libdir_flag_spec_ld_RC \
19370    hardcode_libdir_separator_RC \
19371    hardcode_automatic_RC \
19372    module_cmds_RC \
19373    module_expsym_cmds_RC \
19374    lt_cv_prog_compiler_c_o_RC \
19375    exclude_expsyms_RC \
19376    include_expsyms_RC; do
19377
19378    case $var in
19379    old_archive_cmds_RC | \
19380    old_archive_from_new_cmds_RC | \
19381    archive_cmds_RC | \
19382    archive_expsym_cmds_RC | \
19383    module_cmds_RC | \
19384    module_expsym_cmds_RC | \
19385    old_archive_from_expsyms_cmds_RC | \
19386    export_symbols_cmds_RC | \
19387    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19388    postinstall_cmds | postuninstall_cmds | \
19389    old_postinstall_cmds | old_postuninstall_cmds | \
19390    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19391      # Double-quote double-evaled strings.
19392      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19393      ;;
19394    *)
19395      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19396      ;;
19397    esac
19398  done
19399
19400  case $lt_echo in
19401  *'\$0 --fallback-echo"')
19402    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19403    ;;
19404  esac
19405
19406cfgfile="$ofile"
19407
19408  cat <<__EOF__ >> "$cfgfile"
19409# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19410
19411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19412
19413# Shell to use when invoking shell scripts.
19414SHELL=$lt_SHELL
19415
19416# Whether or not to build shared libraries.
19417build_libtool_libs=$enable_shared
19418
19419# Whether or not to build static libraries.
19420build_old_libs=$enable_static
19421
19422# Whether or not to add -lc for building shared libraries.
19423build_libtool_need_lc=$archive_cmds_need_lc_RC
19424
19425# Whether or not to disallow shared libs when runtime libs are static
19426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19427
19428# Whether or not to optimize for fast installation.
19429fast_install=$enable_fast_install
19430
19431# The host system.
19432host_alias=$host_alias
19433host=$host
19434host_os=$host_os
19435
19436# The build system.
19437build_alias=$build_alias
19438build=$build
19439build_os=$build_os
19440
19441# An echo program that does not interpret backslashes.
19442echo=$lt_echo
19443
19444# The archiver.
19445AR=$lt_AR
19446AR_FLAGS=$lt_AR_FLAGS
19447
19448# A C compiler.
19449LTCC=$lt_LTCC
19450
19451# A language-specific compiler.
19452CC=$lt_compiler_RC
19453
19454# Is the compiler the GNU C compiler?
19455with_gcc=$GCC_RC
19456
19457# An ERE matcher.
19458EGREP=$lt_EGREP
19459
19460# The linker used to build libraries.
19461LD=$lt_LD_RC
19462
19463# Whether we need hard or soft links.
19464LN_S=$lt_LN_S
19465
19466# A BSD-compatible nm program.
19467NM=$lt_NM
19468
19469# A symbol stripping program
19470STRIP=$lt_STRIP
19471
19472# Used to examine libraries when file_magic_cmd begins "file"
19473MAGIC_CMD=$MAGIC_CMD
19474
19475# Used on cygwin: DLL creation program.
19476DLLTOOL="$DLLTOOL"
19477
19478# Used on cygwin: object dumper.
19479OBJDUMP="$OBJDUMP"
19480
19481# Used on cygwin: assembler.
19482AS="$AS"
19483
19484# The name of the directory that contains temporary libtool files.
19485objdir=$objdir
19486
19487# How to create reloadable object files.
19488reload_flag=$lt_reload_flag
19489reload_cmds=$lt_reload_cmds
19490
19491# How to pass a linker flag through the compiler.
19492wl=$lt_lt_prog_compiler_wl_RC
19493
19494# Object file suffix (normally "o").
19495objext="$ac_objext"
19496
19497# Old archive suffix (normally "a").
19498libext="$libext"
19499
19500# Shared library suffix (normally ".so").
19501shrext_cmds='$shrext_cmds'
19502
19503# Executable file suffix (normally "").
19504exeext="$exeext"
19505
19506# Additional compiler flags for building library objects.
19507pic_flag=$lt_lt_prog_compiler_pic_RC
19508pic_mode=$pic_mode
19509
19510# What is the maximum length of a command?
19511max_cmd_len=$lt_cv_sys_max_cmd_len
19512
19513# Does compiler simultaneously support -c and -o options?
19514compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19515
19516# Must we lock files when doing compilation?
19517need_locks=$lt_need_locks
19518
19519# Do we need the lib prefix for modules?
19520need_lib_prefix=$need_lib_prefix
19521
19522# Do we need a version for libraries?
19523need_version=$need_version
19524
19525# Whether dlopen is supported.
19526dlopen_support=$enable_dlopen
19527
19528# Whether dlopen of programs is supported.
19529dlopen_self=$enable_dlopen_self
19530
19531# Whether dlopen of statically linked programs is supported.
19532dlopen_self_static=$enable_dlopen_self_static
19533
19534# Compiler flag to prevent dynamic linking.
19535link_static_flag=$lt_lt_prog_compiler_static_RC
19536
19537# Compiler flag to turn off builtin functions.
19538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19539
19540# Compiler flag to allow reflexive dlopens.
19541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19542
19543# Compiler flag to generate shared objects directly from archives.
19544whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19545
19546# Compiler flag to generate thread-safe objects.
19547thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19548
19549# Library versioning type.
19550version_type=$version_type
19551
19552# Format of library name prefix.
19553libname_spec=$lt_libname_spec
19554
19555# List of archive names.  First name is the real one, the rest are links.
19556# The last name is the one that the linker finds with -lNAME.
19557library_names_spec=$lt_library_names_spec
19558
19559# The coded name of the library, if different from the real name.
19560soname_spec=$lt_soname_spec
19561
19562# Commands used to build and install an old-style archive.
19563RANLIB=$lt_RANLIB
19564old_archive_cmds=$lt_old_archive_cmds_RC
19565old_postinstall_cmds=$lt_old_postinstall_cmds
19566old_postuninstall_cmds=$lt_old_postuninstall_cmds
19567
19568# Create an old-style archive from a shared archive.
19569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19570
19571# Create a temporary old-style archive to link instead of a shared archive.
19572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19573
19574# Commands used to build and install a shared archive.
19575archive_cmds=$lt_archive_cmds_RC
19576archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19577postinstall_cmds=$lt_postinstall_cmds
19578postuninstall_cmds=$lt_postuninstall_cmds
19579
19580# Commands used to build a loadable module (assumed same as above if empty)
19581module_cmds=$lt_module_cmds_RC
19582module_expsym_cmds=$lt_module_expsym_cmds_RC
19583
19584# Commands to strip libraries.
19585old_striplib=$lt_old_striplib
19586striplib=$lt_striplib
19587
19588# Dependencies to place before the objects being linked to create a
19589# shared library.
19590predep_objects=$lt_predep_objects_RC
19591
19592# Dependencies to place after the objects being linked to create a
19593# shared library.
19594postdep_objects=$lt_postdep_objects_RC
19595
19596# Dependencies to place before the objects being linked to create a
19597# shared library.
19598predeps=$lt_predeps_RC
19599
19600# Dependencies to place after the objects being linked to create a
19601# shared library.
19602postdeps=$lt_postdeps_RC
19603
19604# The library search path used internally by the compiler when linking
19605# a shared library.
19606compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19607
19608# Method to check whether dependent libraries are shared objects.
19609deplibs_check_method=$lt_deplibs_check_method
19610
19611# Command to use when deplibs_check_method == file_magic.
19612file_magic_cmd=$lt_file_magic_cmd
19613
19614# Flag that allows shared libraries with undefined symbols to be built.
19615allow_undefined_flag=$lt_allow_undefined_flag_RC
19616
19617# Flag that forces no undefined symbols.
19618no_undefined_flag=$lt_no_undefined_flag_RC
19619
19620# Commands used to finish a libtool library installation in a directory.
19621finish_cmds=$lt_finish_cmds
19622
19623# Same as above, but a single script fragment to be evaled but not shown.
19624finish_eval=$lt_finish_eval
19625
19626# Take the output of nm and produce a listing of raw symbols and C names.
19627global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19628
19629# Transform the output of nm in a proper C declaration
19630global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19631
19632# Transform the output of nm in a C name address pair
19633global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19634
19635# This is the shared library runtime path variable.
19636runpath_var=$runpath_var
19637
19638# This is the shared library path variable.
19639shlibpath_var=$shlibpath_var
19640
19641# Is shlibpath searched before the hard-coded library search path?
19642shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19643
19644# How to hardcode a shared library path into an executable.
19645hardcode_action=$hardcode_action_RC
19646
19647# Whether we should hardcode library paths into libraries.
19648hardcode_into_libs=$hardcode_into_libs
19649
19650# Flag to hardcode \$libdir into a binary during linking.
19651# This must work even if \$libdir does not exist.
19652hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19653
19654# If ld is used when linking, flag to hardcode \$libdir into
19655# a binary during linking. This must work even if \$libdir does
19656# not exist.
19657hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19658
19659# Whether we need a single -rpath flag with a separated argument.
19660hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19661
19662# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19663# resulting binary.
19664hardcode_direct=$hardcode_direct_RC
19665
19666# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19667# resulting binary.
19668hardcode_minus_L=$hardcode_minus_L_RC
19669
19670# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19671# the resulting binary.
19672hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19673
19674# Set to yes if building a shared library automatically hardcodes DIR into the library
19675# and all subsequent libraries and executables linked against it.
19676hardcode_automatic=$hardcode_automatic_RC
19677
19678# Variables whose values should be saved in libtool wrapper scripts and
19679# restored at relink time.
19680variables_saved_for_relink="$variables_saved_for_relink"
19681
19682# Whether libtool must link a program against all its dependency libraries.
19683link_all_deplibs=$link_all_deplibs_RC
19684
19685# Compile-time system search path for libraries
19686sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19687
19688# Run-time system search path for libraries
19689sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19690
19691# Fix the shell variable \$srcfile for the compiler.
19692fix_srcfile_path="$fix_srcfile_path_RC"
19693
19694# Set to yes if exported symbols are required.
19695always_export_symbols=$always_export_symbols_RC
19696
19697# The commands to list exported symbols.
19698export_symbols_cmds=$lt_export_symbols_cmds_RC
19699
19700# The commands to extract the exported symbol list from a shared archive.
19701extract_expsyms_cmds=$lt_extract_expsyms_cmds
19702
19703# Symbols that should not be listed in the preloaded symbols.
19704exclude_expsyms=$lt_exclude_expsyms_RC
19705
19706# Symbols that must always be exported.
19707include_expsyms=$lt_include_expsyms_RC
19708
19709# ### END LIBTOOL TAG CONFIG: $tagname
19710
19711__EOF__
19712
19713
19714else
19715  # If there is no Makefile yet, we rely on a make rule to execute
19716  # `config.status --recheck' to rerun these tests and create the
19717  # libtool script then.
19718  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19719  if test -f "$ltmain_in"; then
19720    test -f Makefile && make "$ltmain"
19721  fi
19722fi
19723
19724
19725ac_ext=c
19726ac_cpp='$CPP $CPPFLAGS'
19727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729ac_compiler_gnu=$ac_cv_c_compiler_gnu
19730
19731CC="$lt_save_CC"
19732
19733	;;
19734
19735      *)
19736	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19737echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19738   { (exit 1); exit 1; }; }
19739	;;
19740      esac
19741
19742      # Append the new tag name to the list of available tags.
19743      if test -n "$tagname" ; then
19744      available_tags="$available_tags $tagname"
19745    fi
19746    fi
19747  done
19748  IFS="$lt_save_ifs"
19749
19750  # Now substitute the updated list of available tags.
19751  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19752    mv "${ofile}T" "$ofile"
19753    chmod +x "$ofile"
19754  else
19755    rm -f "${ofile}T"
19756    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19757echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19758   { (exit 1); exit 1; }; }
19759  fi
19760fi
19761
19762
19763
19764# This can be used to rebuild libtool when needed
19765LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19766
19767# Always use our own libtool.
19768LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19769
19770# Prevent multiple expansion
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19794echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19795if test "${ac_cv_header_stdc+set}" = set; then
19796  echo $ECHO_N "(cached) $ECHO_C" >&6
19797else
19798  cat >conftest.$ac_ext <<_ACEOF
19799/* confdefs.h.  */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h.  */
19804#include <stdlib.h>
19805#include <stdarg.h>
19806#include <string.h>
19807#include <float.h>
19808
19809int
19810main ()
19811{
19812
19813  ;
19814  return 0;
19815}
19816_ACEOF
19817rm -f conftest.$ac_objext
19818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819  (eval $ac_compile) 2>conftest.er1
19820  ac_status=$?
19821  grep -v '^ *+' conftest.er1 >conftest.err
19822  rm -f conftest.er1
19823  cat conftest.err >&5
19824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825  (exit $ac_status); } &&
19826	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828  (eval $ac_try) 2>&5
19829  ac_status=$?
19830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831  (exit $ac_status); }; } &&
19832	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19838  ac_cv_header_stdc=yes
19839else
19840  echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843ac_cv_header_stdc=no
19844fi
19845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19846
19847if test $ac_cv_header_stdc = yes; then
19848  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19849  cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h.  */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h.  */
19855#include <string.h>
19856
19857_ACEOF
19858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19859  $EGREP "memchr" >/dev/null 2>&1; then
19860  :
19861else
19862  ac_cv_header_stdc=no
19863fi
19864rm -f conftest*
19865
19866fi
19867
19868if test $ac_cv_header_stdc = yes; then
19869  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19870  cat >conftest.$ac_ext <<_ACEOF
19871/* confdefs.h.  */
19872_ACEOF
19873cat confdefs.h >>conftest.$ac_ext
19874cat >>conftest.$ac_ext <<_ACEOF
19875/* end confdefs.h.  */
19876#include <stdlib.h>
19877
19878_ACEOF
19879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19880  $EGREP "free" >/dev/null 2>&1; then
19881  :
19882else
19883  ac_cv_header_stdc=no
19884fi
19885rm -f conftest*
19886
19887fi
19888
19889if test $ac_cv_header_stdc = yes; then
19890  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19891  if test "$cross_compiling" = yes; then
19892  :
19893else
19894  cat >conftest.$ac_ext <<_ACEOF
19895/* confdefs.h.  */
19896_ACEOF
19897cat confdefs.h >>conftest.$ac_ext
19898cat >>conftest.$ac_ext <<_ACEOF
19899/* end confdefs.h.  */
19900#include <ctype.h>
19901#if ((' ' & 0x0FF) == 0x020)
19902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19904#else
19905# define ISLOWER(c) \
19906		   (('a' <= (c) && (c) <= 'i') \
19907		     || ('j' <= (c) && (c) <= 'r') \
19908		     || ('s' <= (c) && (c) <= 'z'))
19909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19910#endif
19911
19912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19913int
19914main ()
19915{
19916  int i;
19917  for (i = 0; i < 256; i++)
19918    if (XOR (islower (i), ISLOWER (i))
19919	|| toupper (i) != TOUPPER (i))
19920      exit(2);
19921  exit (0);
19922}
19923_ACEOF
19924rm -f conftest$ac_exeext
19925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926  (eval $ac_link) 2>&5
19927  ac_status=$?
19928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931  (eval $ac_try) 2>&5
19932  ac_status=$?
19933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934  (exit $ac_status); }; }; then
19935  :
19936else
19937  echo "$as_me: program exited with status $ac_status" >&5
19938echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941( exit $ac_status )
19942ac_cv_header_stdc=no
19943fi
19944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19945fi
19946fi
19947fi
19948echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19949echo "${ECHO_T}$ac_cv_header_stdc" >&6
19950if test $ac_cv_header_stdc = yes; then
19951
19952cat >>confdefs.h <<\_ACEOF
19953#define STDC_HEADERS 1
19954_ACEOF
19955
19956fi
19957
19958
19959echo "$as_me:$LINENO: checking for inline" >&5
19960echo $ECHO_N "checking for inline... $ECHO_C" >&6
19961if test "${ac_cv_c_inline+set}" = set; then
19962  echo $ECHO_N "(cached) $ECHO_C" >&6
19963else
19964  ac_cv_c_inline=no
19965for ac_kw in inline __inline__ __inline; do
19966  cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h.  */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h.  */
19972#ifndef __cplusplus
19973typedef int foo_t;
19974static $ac_kw foo_t static_foo () {return 0; }
19975$ac_kw foo_t foo () {return 0; }
19976#endif
19977
19978_ACEOF
19979rm -f conftest.$ac_objext
19980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19981  (eval $ac_compile) 2>conftest.er1
19982  ac_status=$?
19983  grep -v '^ *+' conftest.er1 >conftest.err
19984  rm -f conftest.er1
19985  cat conftest.err >&5
19986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987  (exit $ac_status); } &&
19988	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990  (eval $ac_try) 2>&5
19991  ac_status=$?
19992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993  (exit $ac_status); }; } &&
19994	 { ac_try='test -s conftest.$ac_objext'
19995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996  (eval $ac_try) 2>&5
19997  ac_status=$?
19998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999  (exit $ac_status); }; }; then
20000  ac_cv_c_inline=$ac_kw; break
20001else
20002  echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
20005fi
20006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007done
20008
20009fi
20010echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20011echo "${ECHO_T}$ac_cv_c_inline" >&6
20012
20013
20014case $ac_cv_c_inline in
20015  inline | yes) ;;
20016  *)
20017    case $ac_cv_c_inline in
20018      no) ac_val=;;
20019      *) ac_val=$ac_cv_c_inline;;
20020    esac
20021    cat >>confdefs.h <<_ACEOF
20022#ifndef __cplusplus
20023#define inline $ac_val
20024#endif
20025_ACEOF
20026    ;;
20027esac
20028
20029echo "$as_me:$LINENO: checking for working volatile" >&5
20030echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
20031if test "${ac_cv_c_volatile+set}" = set; then
20032  echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034  cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h.  */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h.  */
20040
20041int
20042main ()
20043{
20044
20045volatile int x;
20046int * volatile y;
20047  ;
20048  return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053  (eval $ac_compile) 2>conftest.er1
20054  ac_status=$?
20055  grep -v '^ *+' conftest.er1 >conftest.err
20056  rm -f conftest.er1
20057  cat conftest.err >&5
20058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059  (exit $ac_status); } &&
20060	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062  (eval $ac_try) 2>&5
20063  ac_status=$?
20064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065  (exit $ac_status); }; } &&
20066	 { ac_try='test -s conftest.$ac_objext'
20067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068  (eval $ac_try) 2>&5
20069  ac_status=$?
20070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071  (exit $ac_status); }; }; then
20072  ac_cv_c_volatile=yes
20073else
20074  echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
20077ac_cv_c_volatile=no
20078fi
20079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20080fi
20081echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20082echo "${ECHO_T}$ac_cv_c_volatile" >&6
20083if test $ac_cv_c_volatile = no; then
20084
20085cat >>confdefs.h <<\_ACEOF
20086#define volatile
20087_ACEOF
20088
20089fi
20090
20091echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20092echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20093if test "${ac_cv_c_const+set}" = set; then
20094  echo $ECHO_N "(cached) $ECHO_C" >&6
20095else
20096  cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h.  */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h.  */
20102
20103int
20104main ()
20105{
20106/* FIXME: Include the comments suggested by Paul. */
20107#ifndef __cplusplus
20108  /* Ultrix mips cc rejects this.  */
20109  typedef int charset[2];
20110  const charset x;
20111  /* SunOS 4.1.1 cc rejects this.  */
20112  char const *const *ccp;
20113  char **p;
20114  /* NEC SVR4.0.2 mips cc rejects this.  */
20115  struct point {int x, y;};
20116  static struct point const zero = {0,0};
20117  /* AIX XL C 1.02.0.0 rejects this.
20118     It does not let you subtract one const X* pointer from another in
20119     an arm of an if-expression whose if-part is not a constant
20120     expression */
20121  const char *g = "string";
20122  ccp = &g + (g ? g-g : 0);
20123  /* HPUX 7.0 cc rejects these. */
20124  ++ccp;
20125  p = (char**) ccp;
20126  ccp = (char const *const *) p;
20127  { /* SCO 3.2v4 cc rejects this.  */
20128    char *t;
20129    char const *s = 0 ? (char *) 0 : (char const *) 0;
20130
20131    *t++ = 0;
20132  }
20133  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20134    int x[] = {25, 17};
20135    const int *foo = &x[0];
20136    ++foo;
20137  }
20138  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20139    typedef const int *iptr;
20140    iptr p = 0;
20141    ++p;
20142  }
20143  { /* AIX XL C 1.02.0.0 rejects this saying
20144       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20145    struct s { int j; const int *ap[3]; };
20146    struct s *b; b->j = 5;
20147  }
20148  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20149    const int foo = 10;
20150  }
20151#endif
20152
20153  ;
20154  return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext
20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159  (eval $ac_compile) 2>conftest.er1
20160  ac_status=$?
20161  grep -v '^ *+' conftest.er1 >conftest.err
20162  rm -f conftest.er1
20163  cat conftest.err >&5
20164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165  (exit $ac_status); } &&
20166	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168  (eval $ac_try) 2>&5
20169  ac_status=$?
20170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171  (exit $ac_status); }; } &&
20172	 { ac_try='test -s conftest.$ac_objext'
20173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174  (eval $ac_try) 2>&5
20175  ac_status=$?
20176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177  (exit $ac_status); }; }; then
20178  ac_cv_c_const=yes
20179else
20180  echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183ac_cv_c_const=no
20184fi
20185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20186fi
20187echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20188echo "${ECHO_T}$ac_cv_c_const" >&6
20189if test $ac_cv_c_const = no; then
20190
20191cat >>confdefs.h <<\_ACEOF
20192#define const
20193_ACEOF
20194
20195fi
20196
20197echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20198echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20199if test "${ac_cv_c_bigendian+set}" = set; then
20200  echo $ECHO_N "(cached) $ECHO_C" >&6
20201else
20202  # See if sys/param.h defines the BYTE_ORDER macro.
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#include <sys/types.h>
20210#include <sys/param.h>
20211
20212int
20213main ()
20214{
20215#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20216 bogus endian macros
20217#endif
20218
20219  ;
20220  return 0;
20221}
20222_ACEOF
20223rm -f conftest.$ac_objext
20224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225  (eval $ac_compile) 2>conftest.er1
20226  ac_status=$?
20227  grep -v '^ *+' conftest.er1 >conftest.err
20228  rm -f conftest.er1
20229  cat conftest.err >&5
20230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231  (exit $ac_status); } &&
20232	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234  (eval $ac_try) 2>&5
20235  ac_status=$?
20236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237  (exit $ac_status); }; } &&
20238	 { ac_try='test -s conftest.$ac_objext'
20239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240  (eval $ac_try) 2>&5
20241  ac_status=$?
20242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243  (exit $ac_status); }; }; then
20244  # It does; now see whether it defined to BIG_ENDIAN or not.
20245cat >conftest.$ac_ext <<_ACEOF
20246/* confdefs.h.  */
20247_ACEOF
20248cat confdefs.h >>conftest.$ac_ext
20249cat >>conftest.$ac_ext <<_ACEOF
20250/* end confdefs.h.  */
20251#include <sys/types.h>
20252#include <sys/param.h>
20253
20254int
20255main ()
20256{
20257#if BYTE_ORDER != BIG_ENDIAN
20258 not big endian
20259#endif
20260
20261  ;
20262  return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext
20266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267  (eval $ac_compile) 2>conftest.er1
20268  ac_status=$?
20269  grep -v '^ *+' conftest.er1 >conftest.err
20270  rm -f conftest.er1
20271  cat conftest.err >&5
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); } &&
20274	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276  (eval $ac_try) 2>&5
20277  ac_status=$?
20278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279  (exit $ac_status); }; } &&
20280	 { ac_try='test -s conftest.$ac_objext'
20281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282  (eval $ac_try) 2>&5
20283  ac_status=$?
20284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285  (exit $ac_status); }; }; then
20286  ac_cv_c_bigendian=yes
20287else
20288  echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291ac_cv_c_bigendian=no
20292fi
20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294else
20295  echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298# It does not; compile a test program.
20299if test "$cross_compiling" = yes; then
20300  # try to guess the endianness by grepping values into an object file
20301  ac_cv_c_bigendian=unknown
20302  cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h.  */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h.  */
20308short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20309short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20310void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20311short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20312short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20313void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20314int
20315main ()
20316{
20317 _ascii (); _ebcdic ();
20318  ;
20319  return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324  (eval $ac_compile) 2>conftest.er1
20325  ac_status=$?
20326  grep -v '^ *+' conftest.er1 >conftest.err
20327  rm -f conftest.er1
20328  cat conftest.err >&5
20329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330  (exit $ac_status); } &&
20331	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333  (eval $ac_try) 2>&5
20334  ac_status=$?
20335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336  (exit $ac_status); }; } &&
20337	 { ac_try='test -s conftest.$ac_objext'
20338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339  (eval $ac_try) 2>&5
20340  ac_status=$?
20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342  (exit $ac_status); }; }; then
20343  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20344  ac_cv_c_bigendian=yes
20345fi
20346if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20347  if test "$ac_cv_c_bigendian" = unknown; then
20348    ac_cv_c_bigendian=no
20349  else
20350    # finding both strings is unlikely to happen, but who knows?
20351    ac_cv_c_bigendian=unknown
20352  fi
20353fi
20354else
20355  echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358fi
20359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20360else
20361  cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h.  */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h.  */
20367int
20368main ()
20369{
20370  /* Are we little or big endian?  From Harbison&Steele.  */
20371  union
20372  {
20373    long l;
20374    char c[sizeof (long)];
20375  } u;
20376  u.l = 1;
20377  exit (u.c[sizeof (long) - 1] == 1);
20378}
20379_ACEOF
20380rm -f conftest$ac_exeext
20381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20382  (eval $ac_link) 2>&5
20383  ac_status=$?
20384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387  (eval $ac_try) 2>&5
20388  ac_status=$?
20389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390  (exit $ac_status); }; }; then
20391  ac_cv_c_bigendian=no
20392else
20393  echo "$as_me: program exited with status $ac_status" >&5
20394echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397( exit $ac_status )
20398ac_cv_c_bigendian=yes
20399fi
20400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20401fi
20402fi
20403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20404fi
20405echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20406echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20407case $ac_cv_c_bigendian in
20408  yes)
20409
20410cat >>confdefs.h <<\_ACEOF
20411#define WORDS_BIGENDIAN 1
20412_ACEOF
20413 ;;
20414  no)
20415     ;;
20416  *)
20417    { { echo "$as_me:$LINENO: error: unknown endianness
20418presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20419echo "$as_me: error: unknown endianness
20420presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20421   { (exit 1); exit 1; }; } ;;
20422esac
20423
20424
20425
20426
20427
20428for ac_func in memset malloc free
20429do
20430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20431echo "$as_me:$LINENO: checking for $ac_func" >&5
20432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20433if eval "test \"\${$as_ac_var+set}\" = set"; then
20434  echo $ECHO_N "(cached) $ECHO_C" >&6
20435else
20436  cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h.  */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h.  */
20442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20443   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20444#define $ac_func innocuous_$ac_func
20445
20446/* System header to define __stub macros and hopefully few prototypes,
20447    which can conflict with char $ac_func (); below.
20448    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20449    <limits.h> exists even on freestanding compilers.  */
20450
20451#ifdef __STDC__
20452# include <limits.h>
20453#else
20454# include <assert.h>
20455#endif
20456
20457#undef $ac_func
20458
20459/* Override any gcc2 internal prototype to avoid an error.  */
20460#ifdef __cplusplus
20461extern "C"
20462{
20463#endif
20464/* We use char because int might match the return type of a gcc2
20465   builtin and then its argument prototype would still apply.  */
20466char $ac_func ();
20467/* The GNU C library defines this for functions which it implements
20468    to always fail with ENOSYS.  Some functions are actually named
20469    something starting with __ and the normal name is an alias.  */
20470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20471choke me
20472#else
20473char (*f) () = $ac_func;
20474#endif
20475#ifdef __cplusplus
20476}
20477#endif
20478
20479int
20480main ()
20481{
20482return f != $ac_func;
20483  ;
20484  return 0;
20485}
20486_ACEOF
20487rm -f conftest.$ac_objext conftest$ac_exeext
20488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20489  (eval $ac_link) 2>conftest.er1
20490  ac_status=$?
20491  grep -v '^ *+' conftest.er1 >conftest.err
20492  rm -f conftest.er1
20493  cat conftest.err >&5
20494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495  (exit $ac_status); } &&
20496	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498  (eval $ac_try) 2>&5
20499  ac_status=$?
20500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501  (exit $ac_status); }; } &&
20502	 { ac_try='test -s conftest$ac_exeext'
20503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504  (eval $ac_try) 2>&5
20505  ac_status=$?
20506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507  (exit $ac_status); }; }; then
20508  eval "$as_ac_var=yes"
20509else
20510  echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513eval "$as_ac_var=no"
20514fi
20515rm -f conftest.err conftest.$ac_objext \
20516      conftest$ac_exeext conftest.$ac_ext
20517fi
20518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20520if test `eval echo '${'$as_ac_var'}'` = yes; then
20521  cat >>confdefs.h <<_ACEOF
20522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20523_ACEOF
20524
20525fi
20526done
20527
20528
20529
20530
20531for ac_func in makecontext getcontext swapcontext
20532do
20533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20534echo "$as_me:$LINENO: checking for $ac_func" >&5
20535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20536if eval "test \"\${$as_ac_var+set}\" = set"; then
20537  echo $ECHO_N "(cached) $ECHO_C" >&6
20538else
20539  cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h.  */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h.  */
20545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20546   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20547#define $ac_func innocuous_$ac_func
20548
20549/* System header to define __stub macros and hopefully few prototypes,
20550    which can conflict with char $ac_func (); below.
20551    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20552    <limits.h> exists even on freestanding compilers.  */
20553
20554#ifdef __STDC__
20555# include <limits.h>
20556#else
20557# include <assert.h>
20558#endif
20559
20560#undef $ac_func
20561
20562/* Override any gcc2 internal prototype to avoid an error.  */
20563#ifdef __cplusplus
20564extern "C"
20565{
20566#endif
20567/* We use char because int might match the return type of a gcc2
20568   builtin and then its argument prototype would still apply.  */
20569char $ac_func ();
20570/* The GNU C library defines this for functions which it implements
20571    to always fail with ENOSYS.  Some functions are actually named
20572    something starting with __ and the normal name is an alias.  */
20573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20574choke me
20575#else
20576char (*f) () = $ac_func;
20577#endif
20578#ifdef __cplusplus
20579}
20580#endif
20581
20582int
20583main ()
20584{
20585return f != $ac_func;
20586  ;
20587  return 0;
20588}
20589_ACEOF
20590rm -f conftest.$ac_objext conftest$ac_exeext
20591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20592  (eval $ac_link) 2>conftest.er1
20593  ac_status=$?
20594  grep -v '^ *+' conftest.er1 >conftest.err
20595  rm -f conftest.er1
20596  cat conftest.err >&5
20597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598  (exit $ac_status); } &&
20599	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601  (eval $ac_try) 2>&5
20602  ac_status=$?
20603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604  (exit $ac_status); }; } &&
20605	 { ac_try='test -s conftest$ac_exeext'
20606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607  (eval $ac_try) 2>&5
20608  ac_status=$?
20609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610  (exit $ac_status); }; }; then
20611  eval "$as_ac_var=yes"
20612else
20613  echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
20615
20616eval "$as_ac_var=no"
20617fi
20618rm -f conftest.err conftest.$ac_objext \
20619      conftest$ac_exeext conftest.$ac_ext
20620fi
20621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20623if test `eval echo '${'$as_ac_var'}'` = yes; then
20624  cat >>confdefs.h <<_ACEOF
20625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20626_ACEOF
20627
20628fi
20629done
20630
20631
20632for ac_func in sigaction
20633do
20634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20635echo "$as_me:$LINENO: checking for $ac_func" >&5
20636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20637if eval "test \"\${$as_ac_var+set}\" = set"; then
20638  echo $ECHO_N "(cached) $ECHO_C" >&6
20639else
20640  cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h.  */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h.  */
20646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20647   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20648#define $ac_func innocuous_$ac_func
20649
20650/* System header to define __stub macros and hopefully few prototypes,
20651    which can conflict with char $ac_func (); below.
20652    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20653    <limits.h> exists even on freestanding compilers.  */
20654
20655#ifdef __STDC__
20656# include <limits.h>
20657#else
20658# include <assert.h>
20659#endif
20660
20661#undef $ac_func
20662
20663/* Override any gcc2 internal prototype to avoid an error.  */
20664#ifdef __cplusplus
20665extern "C"
20666{
20667#endif
20668/* We use char because int might match the return type of a gcc2
20669   builtin and then its argument prototype would still apply.  */
20670char $ac_func ();
20671/* The GNU C library defines this for functions which it implements
20672    to always fail with ENOSYS.  Some functions are actually named
20673    something starting with __ and the normal name is an alias.  */
20674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20675choke me
20676#else
20677char (*f) () = $ac_func;
20678#endif
20679#ifdef __cplusplus
20680}
20681#endif
20682
20683int
20684main ()
20685{
20686return f != $ac_func;
20687  ;
20688  return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext conftest$ac_exeext
20692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20693  (eval $ac_link) 2>conftest.er1
20694  ac_status=$?
20695  grep -v '^ *+' conftest.er1 >conftest.err
20696  rm -f conftest.er1
20697  cat conftest.err >&5
20698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699  (exit $ac_status); } &&
20700	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702  (eval $ac_try) 2>&5
20703  ac_status=$?
20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705  (exit $ac_status); }; } &&
20706	 { ac_try='test -s conftest$ac_exeext'
20707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708  (eval $ac_try) 2>&5
20709  ac_status=$?
20710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711  (exit $ac_status); }; }; then
20712  eval "$as_ac_var=yes"
20713else
20714  echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717eval "$as_ac_var=no"
20718fi
20719rm -f conftest.err conftest.$ac_objext \
20720      conftest$ac_exeext conftest.$ac_ext
20721fi
20722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20724if test `eval echo '${'$as_ac_var'}'` = yes; then
20725  cat >>confdefs.h <<_ACEOF
20726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20727_ACEOF
20728
20729fi
20730done
20731
20732
20733
20734for ac_func in longjmp setjmp
20735do
20736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20737echo "$as_me:$LINENO: checking for $ac_func" >&5
20738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20739if eval "test \"\${$as_ac_var+set}\" = set"; then
20740  echo $ECHO_N "(cached) $ECHO_C" >&6
20741else
20742  cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h.  */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h.  */
20748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20749   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20750#define $ac_func innocuous_$ac_func
20751
20752/* System header to define __stub macros and hopefully few prototypes,
20753    which can conflict with char $ac_func (); below.
20754    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20755    <limits.h> exists even on freestanding compilers.  */
20756
20757#ifdef __STDC__
20758# include <limits.h>
20759#else
20760# include <assert.h>
20761#endif
20762
20763#undef $ac_func
20764
20765/* Override any gcc2 internal prototype to avoid an error.  */
20766#ifdef __cplusplus
20767extern "C"
20768{
20769#endif
20770/* We use char because int might match the return type of a gcc2
20771   builtin and then its argument prototype would still apply.  */
20772char $ac_func ();
20773/* The GNU C library defines this for functions which it implements
20774    to always fail with ENOSYS.  Some functions are actually named
20775    something starting with __ and the normal name is an alias.  */
20776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20777choke me
20778#else
20779char (*f) () = $ac_func;
20780#endif
20781#ifdef __cplusplus
20782}
20783#endif
20784
20785int
20786main ()
20787{
20788return f != $ac_func;
20789  ;
20790  return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext conftest$ac_exeext
20794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795  (eval $ac_link) 2>conftest.er1
20796  ac_status=$?
20797  grep -v '^ *+' conftest.er1 >conftest.err
20798  rm -f conftest.er1
20799  cat conftest.err >&5
20800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801  (exit $ac_status); } &&
20802	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804  (eval $ac_try) 2>&5
20805  ac_status=$?
20806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807  (exit $ac_status); }; } &&
20808	 { ac_try='test -s conftest$ac_exeext'
20809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810  (eval $ac_try) 2>&5
20811  ac_status=$?
20812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813  (exit $ac_status); }; }; then
20814  eval "$as_ac_var=yes"
20815else
20816  echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819eval "$as_ac_var=no"
20820fi
20821rm -f conftest.err conftest.$ac_objext \
20822      conftest$ac_exeext conftest.$ac_ext
20823fi
20824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20826if test `eval echo '${'$as_ac_var'}'` = yes; then
20827  cat >>confdefs.h <<_ACEOF
20828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20829_ACEOF
20830
20831fi
20832done
20833
20834
20835for ac_func in sigaltstack
20836do
20837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20838echo "$as_me:$LINENO: checking for $ac_func" >&5
20839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20840if eval "test \"\${$as_ac_var+set}\" = set"; then
20841  echo $ECHO_N "(cached) $ECHO_C" >&6
20842else
20843  cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h.  */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h.  */
20849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20850   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20851#define $ac_func innocuous_$ac_func
20852
20853/* System header to define __stub macros and hopefully few prototypes,
20854    which can conflict with char $ac_func (); below.
20855    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20856    <limits.h> exists even on freestanding compilers.  */
20857
20858#ifdef __STDC__
20859# include <limits.h>
20860#else
20861# include <assert.h>
20862#endif
20863
20864#undef $ac_func
20865
20866/* Override any gcc2 internal prototype to avoid an error.  */
20867#ifdef __cplusplus
20868extern "C"
20869{
20870#endif
20871/* We use char because int might match the return type of a gcc2
20872   builtin and then its argument prototype would still apply.  */
20873char $ac_func ();
20874/* The GNU C library defines this for functions which it implements
20875    to always fail with ENOSYS.  Some functions are actually named
20876    something starting with __ and the normal name is an alias.  */
20877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20878choke me
20879#else
20880char (*f) () = $ac_func;
20881#endif
20882#ifdef __cplusplus
20883}
20884#endif
20885
20886int
20887main ()
20888{
20889return f != $ac_func;
20890  ;
20891  return 0;
20892}
20893_ACEOF
20894rm -f conftest.$ac_objext conftest$ac_exeext
20895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20896  (eval $ac_link) 2>conftest.er1
20897  ac_status=$?
20898  grep -v '^ *+' conftest.er1 >conftest.err
20899  rm -f conftest.er1
20900  cat conftest.err >&5
20901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902  (exit $ac_status); } &&
20903	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905  (eval $ac_try) 2>&5
20906  ac_status=$?
20907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908  (exit $ac_status); }; } &&
20909	 { ac_try='test -s conftest$ac_exeext'
20910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911  (eval $ac_try) 2>&5
20912  ac_status=$?
20913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914  (exit $ac_status); }; }; then
20915  eval "$as_ac_var=yes"
20916else
20917  echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920eval "$as_ac_var=no"
20921fi
20922rm -f conftest.err conftest.$ac_objext \
20923      conftest$ac_exeext conftest.$ac_ext
20924fi
20925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20927if test `eval echo '${'$as_ac_var'}'` = yes; then
20928  cat >>confdefs.h <<_ACEOF
20929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20930_ACEOF
20931
20932fi
20933done
20934
20935
20936
20937                                                  ac_config_files="$ac_config_files Makefile pcl/Makefile test/Makefile man/Makefile include/Makefile"
20938cat >confcache <<\_ACEOF
20939# This file is a shell script that caches the results of configure
20940# tests run on this system so they can be shared between configure
20941# scripts and configure runs, see configure's option --config-cache.
20942# It is not useful on other systems.  If it contains results you don't
20943# want to keep, you may remove or edit it.
20944#
20945# config.status only pays attention to the cache file if you give it
20946# the --recheck option to rerun configure.
20947#
20948# `ac_cv_env_foo' variables (set or unset) will be overridden when
20949# loading this file, other *unset* `ac_cv_foo' will be assigned the
20950# following values.
20951
20952_ACEOF
20953
20954# The following way of writing the cache mishandles newlines in values,
20955# but we know of no workaround that is simple, portable, and efficient.
20956# So, don't put newlines in cache variables' values.
20957# Ultrix sh set writes to stderr and can't be redirected directly,
20958# and sets the high bit in the cache file unless we assign to the vars.
20959{
20960  (set) 2>&1 |
20961    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20962    *ac_space=\ *)
20963      # `set' does not quote correctly, so add quotes (double-quote
20964      # substitution turns \\\\ into \\, and sed turns \\ into \).
20965      sed -n \
20966	"s/'/'\\\\''/g;
20967	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20968      ;;
20969    *)
20970      # `set' quotes correctly as required by POSIX, so do not add quotes.
20971      sed -n \
20972	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20973      ;;
20974    esac;
20975} |
20976  sed '
20977     t clear
20978     : clear
20979     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20980     t end
20981     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20982     : end' >>confcache
20983if diff $cache_file confcache >/dev/null 2>&1; then :; else
20984  if test -w $cache_file; then
20985    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20986    cat confcache >$cache_file
20987  else
20988    echo "not updating unwritable cache $cache_file"
20989  fi
20990fi
20991rm -f confcache
20992
20993test "x$prefix" = xNONE && prefix=$ac_default_prefix
20994# Let make expand exec_prefix.
20995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20996
20997# VPATH may cause trouble with some makes, so we remove $(srcdir),
20998# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20999# trailing colons and then remove the whole line if VPATH becomes empty
21000# (actually we leave an empty line to preserve line numbers).
21001if test "x$srcdir" = x.; then
21002  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21003s/:*\$(srcdir):*/:/;
21004s/:*\${srcdir}:*/:/;
21005s/:*@srcdir@:*/:/;
21006s/^\([^=]*=[	 ]*\):*/\1/;
21007s/:*$//;
21008s/^[^=]*=[	 ]*$//;
21009}'
21010fi
21011
21012DEFS=-DHAVE_CONFIG_H
21013
21014ac_libobjs=
21015ac_ltlibobjs=
21016for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21017  # 1. Remove the extension, and $U if already installed.
21018  ac_i=`echo "$ac_i" |
21019	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21020  # 2. Add them.
21021  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21022  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21023done
21024LIBOBJS=$ac_libobjs
21025
21026LTLIBOBJS=$ac_ltlibobjs
21027
21028
21029if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21030  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21031Usually this means the macro was only invoked conditionally." >&5
21032echo "$as_me: error: conditional \"AMDEP\" was never defined.
21033Usually this means the macro was only invoked conditionally." >&2;}
21034   { (exit 1); exit 1; }; }
21035fi
21036if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21037  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21038Usually this means the macro was only invoked conditionally." >&5
21039echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21040Usually this means the macro was only invoked conditionally." >&2;}
21041   { (exit 1); exit 1; }; }
21042fi
21043if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21044  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21045Usually this means the macro was only invoked conditionally." >&5
21046echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21047Usually this means the macro was only invoked conditionally." >&2;}
21048   { (exit 1); exit 1; }; }
21049fi
21050
21051: ${CONFIG_STATUS=./config.status}
21052ac_clean_files_save=$ac_clean_files
21053ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21054{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21055echo "$as_me: creating $CONFIG_STATUS" >&6;}
21056cat >$CONFIG_STATUS <<_ACEOF
21057#! $SHELL
21058# Generated by $as_me.
21059# Run this file to recreate the current configuration.
21060# Compiler output produced by configure, useful for debugging
21061# configure, is in config.log if it exists.
21062
21063debug=false
21064ac_cs_recheck=false
21065ac_cs_silent=false
21066SHELL=\${CONFIG_SHELL-$SHELL}
21067_ACEOF
21068
21069cat >>$CONFIG_STATUS <<\_ACEOF
21070## --------------------- ##
21071## M4sh Initialization.  ##
21072## --------------------- ##
21073
21074# Be Bourne compatible
21075if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21076  emulate sh
21077  NULLCMD=:
21078  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21079  # is contrary to our usage.  Disable this feature.
21080  alias -g '${1+"$@"}'='"$@"'
21081elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21082  set -o posix
21083fi
21084DUALCASE=1; export DUALCASE # for MKS sh
21085
21086# Support unset when possible.
21087if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21088  as_unset=unset
21089else
21090  as_unset=false
21091fi
21092
21093
21094# Work around bugs in pre-3.0 UWIN ksh.
21095$as_unset ENV MAIL MAILPATH
21096PS1='$ '
21097PS2='> '
21098PS4='+ '
21099
21100# NLS nuisances.
21101for as_var in \
21102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21104  LC_TELEPHONE LC_TIME
21105do
21106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21107    eval $as_var=C; export $as_var
21108  else
21109    $as_unset $as_var
21110  fi
21111done
21112
21113# Required to use basename.
21114if expr a : '\(a\)' >/dev/null 2>&1; then
21115  as_expr=expr
21116else
21117  as_expr=false
21118fi
21119
21120if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21121  as_basename=basename
21122else
21123  as_basename=false
21124fi
21125
21126
21127# Name of the executable.
21128as_me=`$as_basename "$0" ||
21129$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21130	 X"$0" : 'X\(//\)$' \| \
21131	 X"$0" : 'X\(/\)$' \| \
21132	 .     : '\(.\)' 2>/dev/null ||
21133echo X/"$0" |
21134    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21135  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21136  	  /^X\/\(\/\).*/{ s//\1/; q; }
21137  	  s/.*/./; q'`
21138
21139
21140# PATH needs CR, and LINENO needs CR and PATH.
21141# Avoid depending upon Character Ranges.
21142as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21143as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21144as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21145as_cr_digits='0123456789'
21146as_cr_alnum=$as_cr_Letters$as_cr_digits
21147
21148# The user is always right.
21149if test "${PATH_SEPARATOR+set}" != set; then
21150  echo "#! /bin/sh" >conf$$.sh
21151  echo  "exit 0"   >>conf$$.sh
21152  chmod +x conf$$.sh
21153  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21154    PATH_SEPARATOR=';'
21155  else
21156    PATH_SEPARATOR=:
21157  fi
21158  rm -f conf$$.sh
21159fi
21160
21161
21162  as_lineno_1=$LINENO
21163  as_lineno_2=$LINENO
21164  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21165  test "x$as_lineno_1" != "x$as_lineno_2" &&
21166  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21167  # Find who we are.  Look in the path if we contain no path at all
21168  # relative or not.
21169  case $0 in
21170    *[\\/]* ) as_myself=$0 ;;
21171    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21172for as_dir in $PATH
21173do
21174  IFS=$as_save_IFS
21175  test -z "$as_dir" && as_dir=.
21176  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21177done
21178
21179       ;;
21180  esac
21181  # We did not find ourselves, most probably we were run as `sh COMMAND'
21182  # in which case we are not to be found in the path.
21183  if test "x$as_myself" = x; then
21184    as_myself=$0
21185  fi
21186  if test ! -f "$as_myself"; then
21187    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21188echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21189   { (exit 1); exit 1; }; }
21190  fi
21191  case $CONFIG_SHELL in
21192  '')
21193    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21195do
21196  IFS=$as_save_IFS
21197  test -z "$as_dir" && as_dir=.
21198  for as_base in sh bash ksh sh5; do
21199	 case $as_dir in
21200	 /*)
21201	   if ("$as_dir/$as_base" -c '
21202  as_lineno_1=$LINENO
21203  as_lineno_2=$LINENO
21204  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21205  test "x$as_lineno_1" != "x$as_lineno_2" &&
21206  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21207	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21208	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21209	     CONFIG_SHELL=$as_dir/$as_base
21210	     export CONFIG_SHELL
21211	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21212	   fi;;
21213	 esac
21214       done
21215done
21216;;
21217  esac
21218
21219  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21220  # uniformly replaced by the line number.  The first 'sed' inserts a
21221  # line-number line before each line; the second 'sed' does the real
21222  # work.  The second script uses 'N' to pair each line-number line
21223  # with the numbered line, and appends trailing '-' during
21224  # substitution so that $LINENO is not a special case at line end.
21225  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21226  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21227  sed '=' <$as_myself |
21228    sed '
21229      N
21230      s,$,-,
21231      : loop
21232      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21233      t loop
21234      s,-$,,
21235      s,^['$as_cr_digits']*\n,,
21236    ' >$as_me.lineno &&
21237  chmod +x $as_me.lineno ||
21238    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21239echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21240   { (exit 1); exit 1; }; }
21241
21242  # Don't try to exec as it changes $[0], causing all sort of problems
21243  # (the dirname of $[0] is not the place where we might find the
21244  # original and so on.  Autoconf is especially sensible to this).
21245  . ./$as_me.lineno
21246  # Exit status is that of the last command.
21247  exit
21248}
21249
21250
21251case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21252  *c*,-n*) ECHO_N= ECHO_C='
21253' ECHO_T='	' ;;
21254  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21255  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21256esac
21257
21258if expr a : '\(a\)' >/dev/null 2>&1; then
21259  as_expr=expr
21260else
21261  as_expr=false
21262fi
21263
21264rm -f conf$$ conf$$.exe conf$$.file
21265echo >conf$$.file
21266if ln -s conf$$.file conf$$ 2>/dev/null; then
21267  # We could just check for DJGPP; but this test a) works b) is more generic
21268  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21269  if test -f conf$$.exe; then
21270    # Don't use ln at all; we don't have any links
21271    as_ln_s='cp -p'
21272  else
21273    as_ln_s='ln -s'
21274  fi
21275elif ln conf$$.file conf$$ 2>/dev/null; then
21276  as_ln_s=ln
21277else
21278  as_ln_s='cp -p'
21279fi
21280rm -f conf$$ conf$$.exe conf$$.file
21281
21282if mkdir -p . 2>/dev/null; then
21283  as_mkdir_p=:
21284else
21285  test -d ./-p && rmdir ./-p
21286  as_mkdir_p=false
21287fi
21288
21289as_executable_p="test -f"
21290
21291# Sed expression to map a string onto a valid CPP name.
21292as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21293
21294# Sed expression to map a string onto a valid variable name.
21295as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21296
21297
21298# IFS
21299# We need space, tab and new line, in precisely that order.
21300as_nl='
21301'
21302IFS=" 	$as_nl"
21303
21304# CDPATH.
21305$as_unset CDPATH
21306
21307exec 6>&1
21308
21309# Open the log real soon, to keep \$[0] and so on meaningful, and to
21310# report actual input values of CONFIG_FILES etc. instead of their
21311# values after options handling.  Logging --version etc. is OK.
21312exec 5>>config.log
21313{
21314  echo
21315  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21316## Running $as_me. ##
21317_ASBOX
21318} >&5
21319cat >&5 <<_CSEOF
21320
21321This file was extended by libpcl $as_me 1.5, which was
21322generated by GNU Autoconf 2.59.  Invocation command line was
21323
21324  CONFIG_FILES    = $CONFIG_FILES
21325  CONFIG_HEADERS  = $CONFIG_HEADERS
21326  CONFIG_LINKS    = $CONFIG_LINKS
21327  CONFIG_COMMANDS = $CONFIG_COMMANDS
21328  $ $0 $@
21329
21330_CSEOF
21331echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21332echo >&5
21333_ACEOF
21334
21335# Files that config.status was made for.
21336if test -n "$ac_config_files"; then
21337  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21338fi
21339
21340if test -n "$ac_config_headers"; then
21341  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21342fi
21343
21344if test -n "$ac_config_links"; then
21345  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21346fi
21347
21348if test -n "$ac_config_commands"; then
21349  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21350fi
21351
21352cat >>$CONFIG_STATUS <<\_ACEOF
21353
21354ac_cs_usage="\
21355\`$as_me' instantiates files from templates according to the
21356current configuration.
21357
21358Usage: $0 [OPTIONS] [FILE]...
21359
21360  -h, --help       print this help, then exit
21361  -V, --version    print version number, then exit
21362  -q, --quiet      do not print progress messages
21363  -d, --debug      don't remove temporary files
21364      --recheck    update $as_me by reconfiguring in the same conditions
21365  --file=FILE[:TEMPLATE]
21366		   instantiate the configuration file FILE
21367  --header=FILE[:TEMPLATE]
21368		   instantiate the configuration header FILE
21369
21370Configuration files:
21371$config_files
21372
21373Configuration headers:
21374$config_headers
21375
21376Configuration commands:
21377$config_commands
21378
21379Report bugs to <bug-autoconf@gnu.org>."
21380_ACEOF
21381
21382cat >>$CONFIG_STATUS <<_ACEOF
21383ac_cs_version="\\
21384libpcl config.status 1.5
21385configured by $0, generated by GNU Autoconf 2.59,
21386  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21387
21388Copyright (C) 2003 Free Software Foundation, Inc.
21389This config.status script is free software; the Free Software Foundation
21390gives unlimited permission to copy, distribute and modify it."
21391srcdir=$srcdir
21392INSTALL="$INSTALL"
21393_ACEOF
21394
21395cat >>$CONFIG_STATUS <<\_ACEOF
21396# If no file are specified by the user, then we need to provide default
21397# value.  By we need to know if files were specified by the user.
21398ac_need_defaults=:
21399while test $# != 0
21400do
21401  case $1 in
21402  --*=*)
21403    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21404    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21405    ac_shift=:
21406    ;;
21407  -*)
21408    ac_option=$1
21409    ac_optarg=$2
21410    ac_shift=shift
21411    ;;
21412  *) # This is not an option, so the user has probably given explicit
21413     # arguments.
21414     ac_option=$1
21415     ac_need_defaults=false;;
21416  esac
21417
21418  case $ac_option in
21419  # Handling of the options.
21420_ACEOF
21421cat >>$CONFIG_STATUS <<\_ACEOF
21422  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21423    ac_cs_recheck=: ;;
21424  --version | --vers* | -V )
21425    echo "$ac_cs_version"; exit 0 ;;
21426  --he | --h)
21427    # Conflict between --help and --header
21428    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21429Try \`$0 --help' for more information." >&5
21430echo "$as_me: error: ambiguous option: $1
21431Try \`$0 --help' for more information." >&2;}
21432   { (exit 1); exit 1; }; };;
21433  --help | --hel | -h )
21434    echo "$ac_cs_usage"; exit 0 ;;
21435  --debug | --d* | -d )
21436    debug=: ;;
21437  --file | --fil | --fi | --f )
21438    $ac_shift
21439    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21440    ac_need_defaults=false;;
21441  --header | --heade | --head | --hea )
21442    $ac_shift
21443    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21444    ac_need_defaults=false;;
21445  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21446  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21447    ac_cs_silent=: ;;
21448
21449  # This is an error.
21450  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21451Try \`$0 --help' for more information." >&5
21452echo "$as_me: error: unrecognized option: $1
21453Try \`$0 --help' for more information." >&2;}
21454   { (exit 1); exit 1; }; } ;;
21455
21456  *) ac_config_targets="$ac_config_targets $1" ;;
21457
21458  esac
21459  shift
21460done
21461
21462ac_configure_extra_args=
21463
21464if $ac_cs_silent; then
21465  exec 6>/dev/null
21466  ac_configure_extra_args="$ac_configure_extra_args --silent"
21467fi
21468
21469_ACEOF
21470cat >>$CONFIG_STATUS <<_ACEOF
21471if \$ac_cs_recheck; then
21472  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21473  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21474fi
21475
21476_ACEOF
21477
21478cat >>$CONFIG_STATUS <<_ACEOF
21479#
21480# INIT-COMMANDS section.
21481#
21482
21483AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21484
21485_ACEOF
21486
21487
21488
21489cat >>$CONFIG_STATUS <<\_ACEOF
21490for ac_config_target in $ac_config_targets
21491do
21492  case "$ac_config_target" in
21493  # Handling of arguments.
21494  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21495  "pcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES pcl/Makefile" ;;
21496  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21497  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21498  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21499  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21500  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21501  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21502echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21503   { (exit 1); exit 1; }; };;
21504  esac
21505done
21506
21507# If the user did not use the arguments to specify the items to instantiate,
21508# then the envvar interface is used.  Set only those that are not.
21509# We use the long form for the default assignment because of an extremely
21510# bizarre bug on SunOS 4.1.3.
21511if $ac_need_defaults; then
21512  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21513  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21514  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21515fi
21516
21517# Have a temporary directory for convenience.  Make it in the build tree
21518# simply because there is no reason to put it here, and in addition,
21519# creating and moving files from /tmp can sometimes cause problems.
21520# Create a temporary directory, and hook for its removal unless debugging.
21521$debug ||
21522{
21523  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21524  trap '{ (exit 1); exit 1; }' 1 2 13 15
21525}
21526
21527# Create a (secure) tmp directory for tmp files.
21528
21529{
21530  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21531  test -n "$tmp" && test -d "$tmp"
21532}  ||
21533{
21534  tmp=./confstat$$-$RANDOM
21535  (umask 077 && mkdir $tmp)
21536} ||
21537{
21538   echo "$me: cannot create a temporary directory in ." >&2
21539   { (exit 1); exit 1; }
21540}
21541
21542_ACEOF
21543
21544cat >>$CONFIG_STATUS <<_ACEOF
21545
21546#
21547# CONFIG_FILES section.
21548#
21549
21550# No need to generate the scripts if there are no CONFIG_FILES.
21551# This happens for instance when ./config.status config.h
21552if test -n "\$CONFIG_FILES"; then
21553  # Protect against being on the right side of a sed subst in config.status.
21554  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21555   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21556s,@SHELL@,$SHELL,;t t
21557s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21558s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21559s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21560s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21561s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21562s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21563s,@exec_prefix@,$exec_prefix,;t t
21564s,@prefix@,$prefix,;t t
21565s,@program_transform_name@,$program_transform_name,;t t
21566s,@bindir@,$bindir,;t t
21567s,@sbindir@,$sbindir,;t t
21568s,@libexecdir@,$libexecdir,;t t
21569s,@datadir@,$datadir,;t t
21570s,@sysconfdir@,$sysconfdir,;t t
21571s,@sharedstatedir@,$sharedstatedir,;t t
21572s,@localstatedir@,$localstatedir,;t t
21573s,@libdir@,$libdir,;t t
21574s,@includedir@,$includedir,;t t
21575s,@oldincludedir@,$oldincludedir,;t t
21576s,@infodir@,$infodir,;t t
21577s,@mandir@,$mandir,;t t
21578s,@build_alias@,$build_alias,;t t
21579s,@host_alias@,$host_alias,;t t
21580s,@target_alias@,$target_alias,;t t
21581s,@DEFS@,$DEFS,;t t
21582s,@ECHO_C@,$ECHO_C,;t t
21583s,@ECHO_N@,$ECHO_N,;t t
21584s,@ECHO_T@,$ECHO_T,;t t
21585s,@LIBS@,$LIBS,;t t
21586s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21587s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21588s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21589s,@CYGPATH_W@,$CYGPATH_W,;t t
21590s,@PACKAGE@,$PACKAGE,;t t
21591s,@VERSION@,$VERSION,;t t
21592s,@ACLOCAL@,$ACLOCAL,;t t
21593s,@AUTOCONF@,$AUTOCONF,;t t
21594s,@AUTOMAKE@,$AUTOMAKE,;t t
21595s,@AUTOHEADER@,$AUTOHEADER,;t t
21596s,@MAKEINFO@,$MAKEINFO,;t t
21597s,@install_sh@,$install_sh,;t t
21598s,@STRIP@,$STRIP,;t t
21599s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21600s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21601s,@mkdir_p@,$mkdir_p,;t t
21602s,@AWK@,$AWK,;t t
21603s,@SET_MAKE@,$SET_MAKE,;t t
21604s,@am__leading_dot@,$am__leading_dot,;t t
21605s,@AMTAR@,$AMTAR,;t t
21606s,@am__tar@,$am__tar,;t t
21607s,@am__untar@,$am__untar,;t t
21608s,@CC@,$CC,;t t
21609s,@CFLAGS@,$CFLAGS,;t t
21610s,@LDFLAGS@,$LDFLAGS,;t t
21611s,@CPPFLAGS@,$CPPFLAGS,;t t
21612s,@ac_ct_CC@,$ac_ct_CC,;t t
21613s,@EXEEXT@,$EXEEXT,;t t
21614s,@OBJEXT@,$OBJEXT,;t t
21615s,@DEPDIR@,$DEPDIR,;t t
21616s,@am__include@,$am__include,;t t
21617s,@am__quote@,$am__quote,;t t
21618s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21619s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21620s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21621s,@CCDEPMODE@,$CCDEPMODE,;t t
21622s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21623s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21624s,@RANLIB@,$RANLIB,;t t
21625s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21626s,@build@,$build,;t t
21627s,@build_cpu@,$build_cpu,;t t
21628s,@build_vendor@,$build_vendor,;t t
21629s,@build_os@,$build_os,;t t
21630s,@host@,$host,;t t
21631s,@host_cpu@,$host_cpu,;t t
21632s,@host_vendor@,$host_vendor,;t t
21633s,@host_os@,$host_os,;t t
21634s,@EGREP@,$EGREP,;t t
21635s,@LN_S@,$LN_S,;t t
21636s,@ECHO@,$ECHO,;t t
21637s,@AR@,$AR,;t t
21638s,@ac_ct_AR@,$ac_ct_AR,;t t
21639s,@CPP@,$CPP,;t t
21640s,@CXX@,$CXX,;t t
21641s,@CXXFLAGS@,$CXXFLAGS,;t t
21642s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21643s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21644s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21645s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21646s,@CXXCPP@,$CXXCPP,;t t
21647s,@F77@,$F77,;t t
21648s,@FFLAGS@,$FFLAGS,;t t
21649s,@ac_ct_F77@,$ac_ct_F77,;t t
21650s,@LIBTOOL@,$LIBTOOL,;t t
21651s,@LIBOBJS@,$LIBOBJS,;t t
21652s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21653CEOF
21654
21655_ACEOF
21656
21657  cat >>$CONFIG_STATUS <<\_ACEOF
21658  # Split the substitutions into bite-sized pieces for seds with
21659  # small command number limits, like on Digital OSF/1 and HP-UX.
21660  ac_max_sed_lines=48
21661  ac_sed_frag=1 # Number of current file.
21662  ac_beg=1 # First line for current file.
21663  ac_end=$ac_max_sed_lines # Line after last line for current file.
21664  ac_more_lines=:
21665  ac_sed_cmds=
21666  while $ac_more_lines; do
21667    if test $ac_beg -gt 1; then
21668      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21669    else
21670      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21671    fi
21672    if test ! -s $tmp/subs.frag; then
21673      ac_more_lines=false
21674    else
21675      # The purpose of the label and of the branching condition is to
21676      # speed up the sed processing (if there are no `@' at all, there
21677      # is no need to browse any of the substitutions).
21678      # These are the two extra sed commands mentioned above.
21679      (echo ':t
21680  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21681      if test -z "$ac_sed_cmds"; then
21682	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21683      else
21684	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21685      fi
21686      ac_sed_frag=`expr $ac_sed_frag + 1`
21687      ac_beg=$ac_end
21688      ac_end=`expr $ac_end + $ac_max_sed_lines`
21689    fi
21690  done
21691  if test -z "$ac_sed_cmds"; then
21692    ac_sed_cmds=cat
21693  fi
21694fi # test -n "$CONFIG_FILES"
21695
21696_ACEOF
21697cat >>$CONFIG_STATUS <<\_ACEOF
21698for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21699  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21700  case $ac_file in
21701  - | *:- | *:-:* ) # input from stdin
21702	cat >$tmp/stdin
21703	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21704	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21705  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21706	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21707  * )   ac_file_in=$ac_file.in ;;
21708  esac
21709
21710  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21711  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21712$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21713	 X"$ac_file" : 'X\(//\)[^/]' \| \
21714	 X"$ac_file" : 'X\(//\)$' \| \
21715	 X"$ac_file" : 'X\(/\)' \| \
21716	 .     : '\(.\)' 2>/dev/null ||
21717echo X"$ac_file" |
21718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21720  	  /^X\(\/\/\)$/{ s//\1/; q; }
21721  	  /^X\(\/\).*/{ s//\1/; q; }
21722  	  s/.*/./; q'`
21723  { if $as_mkdir_p; then
21724    mkdir -p "$ac_dir"
21725  else
21726    as_dir="$ac_dir"
21727    as_dirs=
21728    while test ! -d "$as_dir"; do
21729      as_dirs="$as_dir $as_dirs"
21730      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21731$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21732	 X"$as_dir" : 'X\(//\)[^/]' \| \
21733	 X"$as_dir" : 'X\(//\)$' \| \
21734	 X"$as_dir" : 'X\(/\)' \| \
21735	 .     : '\(.\)' 2>/dev/null ||
21736echo X"$as_dir" |
21737    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21738  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21739  	  /^X\(\/\/\)$/{ s//\1/; q; }
21740  	  /^X\(\/\).*/{ s//\1/; q; }
21741  	  s/.*/./; q'`
21742    done
21743    test ! -n "$as_dirs" || mkdir $as_dirs
21744  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21745echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21746   { (exit 1); exit 1; }; }; }
21747
21748  ac_builddir=.
21749
21750if test "$ac_dir" != .; then
21751  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21752  # A "../" for each directory in $ac_dir_suffix.
21753  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21754else
21755  ac_dir_suffix= ac_top_builddir=
21756fi
21757
21758case $srcdir in
21759  .)  # No --srcdir option.  We are building in place.
21760    ac_srcdir=.
21761    if test -z "$ac_top_builddir"; then
21762       ac_top_srcdir=.
21763    else
21764       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21765    fi ;;
21766  [\\/]* | ?:[\\/]* )  # Absolute path.
21767    ac_srcdir=$srcdir$ac_dir_suffix;
21768    ac_top_srcdir=$srcdir ;;
21769  *) # Relative path.
21770    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21771    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21772esac
21773
21774# Do not use `cd foo && pwd` to compute absolute paths, because
21775# the directories may not exist.
21776case `pwd` in
21777.) ac_abs_builddir="$ac_dir";;
21778*)
21779  case "$ac_dir" in
21780  .) ac_abs_builddir=`pwd`;;
21781  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21782  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21783  esac;;
21784esac
21785case $ac_abs_builddir in
21786.) ac_abs_top_builddir=${ac_top_builddir}.;;
21787*)
21788  case ${ac_top_builddir}. in
21789  .) ac_abs_top_builddir=$ac_abs_builddir;;
21790  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21791  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21792  esac;;
21793esac
21794case $ac_abs_builddir in
21795.) ac_abs_srcdir=$ac_srcdir;;
21796*)
21797  case $ac_srcdir in
21798  .) ac_abs_srcdir=$ac_abs_builddir;;
21799  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21800  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21801  esac;;
21802esac
21803case $ac_abs_builddir in
21804.) ac_abs_top_srcdir=$ac_top_srcdir;;
21805*)
21806  case $ac_top_srcdir in
21807  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21808  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21809  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21810  esac;;
21811esac
21812
21813
21814  case $INSTALL in
21815  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21816  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21817  esac
21818
21819  # Let's still pretend it is `configure' which instantiates (i.e., don't
21820  # use $as_me), people would be surprised to read:
21821  #    /* config.h.  Generated by config.status.  */
21822  if test x"$ac_file" = x-; then
21823    configure_input=
21824  else
21825    configure_input="$ac_file.  "
21826  fi
21827  configure_input=$configure_input"Generated from `echo $ac_file_in |
21828				     sed 's,.*/,,'` by configure."
21829
21830  # First look for the input files in the build tree, otherwise in the
21831  # src tree.
21832  ac_file_inputs=`IFS=:
21833    for f in $ac_file_in; do
21834      case $f in
21835      -) echo $tmp/stdin ;;
21836      [\\/$]*)
21837	 # Absolute (can't be DOS-style, as IFS=:)
21838	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21839echo "$as_me: error: cannot find input file: $f" >&2;}
21840   { (exit 1); exit 1; }; }
21841	 echo "$f";;
21842      *) # Relative
21843	 if test -f "$f"; then
21844	   # Build tree
21845	   echo "$f"
21846	 elif test -f "$srcdir/$f"; then
21847	   # Source tree
21848	   echo "$srcdir/$f"
21849	 else
21850	   # /dev/null tree
21851	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21852echo "$as_me: error: cannot find input file: $f" >&2;}
21853   { (exit 1); exit 1; }; }
21854	 fi;;
21855      esac
21856    done` || { (exit 1); exit 1; }
21857
21858  if test x"$ac_file" != x-; then
21859    { echo "$as_me:$LINENO: creating $ac_file" >&5
21860echo "$as_me: creating $ac_file" >&6;}
21861    rm -f "$ac_file"
21862  fi
21863_ACEOF
21864cat >>$CONFIG_STATUS <<_ACEOF
21865  sed "$ac_vpsub
21866$extrasub
21867_ACEOF
21868cat >>$CONFIG_STATUS <<\_ACEOF
21869:t
21870/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21871s,@configure_input@,$configure_input,;t t
21872s,@srcdir@,$ac_srcdir,;t t
21873s,@abs_srcdir@,$ac_abs_srcdir,;t t
21874s,@top_srcdir@,$ac_top_srcdir,;t t
21875s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21876s,@builddir@,$ac_builddir,;t t
21877s,@abs_builddir@,$ac_abs_builddir,;t t
21878s,@top_builddir@,$ac_top_builddir,;t t
21879s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21880s,@INSTALL@,$ac_INSTALL,;t t
21881" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21882  rm -f $tmp/stdin
21883  if test x"$ac_file" != x-; then
21884    mv $tmp/out $ac_file
21885  else
21886    cat $tmp/out
21887    rm -f $tmp/out
21888  fi
21889
21890done
21891_ACEOF
21892cat >>$CONFIG_STATUS <<\_ACEOF
21893
21894#
21895# CONFIG_HEADER section.
21896#
21897
21898# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21899# NAME is the cpp macro being defined and VALUE is the value it is being given.
21900#
21901# ac_d sets the value in "#define NAME VALUE" lines.
21902ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21903ac_dB='[	 ].*$,\1#\2'
21904ac_dC=' '
21905ac_dD=',;t'
21906# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21907ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21908ac_uB='$,\1#\2define\3'
21909ac_uC=' '
21910ac_uD=',;t'
21911
21912for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21913  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21914  case $ac_file in
21915  - | *:- | *:-:* ) # input from stdin
21916	cat >$tmp/stdin
21917	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21918	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21919  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21920	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21921  * )   ac_file_in=$ac_file.in ;;
21922  esac
21923
21924  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21925echo "$as_me: creating $ac_file" >&6;}
21926
21927  # First look for the input files in the build tree, otherwise in the
21928  # src tree.
21929  ac_file_inputs=`IFS=:
21930    for f in $ac_file_in; do
21931      case $f in
21932      -) echo $tmp/stdin ;;
21933      [\\/$]*)
21934	 # Absolute (can't be DOS-style, as IFS=:)
21935	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21936echo "$as_me: error: cannot find input file: $f" >&2;}
21937   { (exit 1); exit 1; }; }
21938	 # Do quote $f, to prevent DOS paths from being IFS'd.
21939	 echo "$f";;
21940      *) # Relative
21941	 if test -f "$f"; then
21942	   # Build tree
21943	   echo "$f"
21944	 elif test -f "$srcdir/$f"; then
21945	   # Source tree
21946	   echo "$srcdir/$f"
21947	 else
21948	   # /dev/null tree
21949	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21950echo "$as_me: error: cannot find input file: $f" >&2;}
21951   { (exit 1); exit 1; }; }
21952	 fi;;
21953      esac
21954    done` || { (exit 1); exit 1; }
21955  # Remove the trailing spaces.
21956  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21957
21958_ACEOF
21959
21960# Transform confdefs.h into two sed scripts, `conftest.defines' and
21961# `conftest.undefs', that substitutes the proper values into
21962# config.h.in to produce config.h.  The first handles `#define'
21963# templates, and the second `#undef' templates.
21964# And first: Protect against being on the right side of a sed subst in
21965# config.status.  Protect against being in an unquoted here document
21966# in config.status.
21967rm -f conftest.defines conftest.undefs
21968# Using a here document instead of a string reduces the quoting nightmare.
21969# Putting comments in sed scripts is not portable.
21970#
21971# `end' is used to avoid that the second main sed command (meant for
21972# 0-ary CPP macros) applies to n-ary macro definitions.
21973# See the Autoconf documentation for `clear'.
21974cat >confdef2sed.sed <<\_ACEOF
21975s/[\\&,]/\\&/g
21976s,[\\$`],\\&,g
21977t clear
21978: clear
21979s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21980t end
21981s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21982: end
21983_ACEOF
21984# If some macros were called several times there might be several times
21985# the same #defines, which is useless.  Nevertheless, we may not want to
21986# sort them, since we want the *last* AC-DEFINE to be honored.
21987uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21988sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21989rm -f confdef2sed.sed
21990
21991# This sed command replaces #undef with comments.  This is necessary, for
21992# example, in the case of _POSIX_SOURCE, which is predefined and required
21993# on some systems where configure will not decide to define it.
21994cat >>conftest.undefs <<\_ACEOF
21995s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21996_ACEOF
21997
21998# Break up conftest.defines because some shells have a limit on the size
21999# of here documents, and old seds have small limits too (100 cmds).
22000echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22001echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22002echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22003echo '  :' >>$CONFIG_STATUS
22004rm -f conftest.tail
22005while grep . conftest.defines >/dev/null
22006do
22007  # Write a limited-size here document to $tmp/defines.sed.
22008  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22009  # Speed up: don't consider the non `#define' lines.
22010  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22011  # Work around the forget-to-reset-the-flag bug.
22012  echo 't clr' >>$CONFIG_STATUS
22013  echo ': clr' >>$CONFIG_STATUS
22014  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22015  echo 'CEOF
22016  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22017  rm -f $tmp/in
22018  mv $tmp/out $tmp/in
22019' >>$CONFIG_STATUS
22020  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22021  rm -f conftest.defines
22022  mv conftest.tail conftest.defines
22023done
22024rm -f conftest.defines
22025echo '  fi # grep' >>$CONFIG_STATUS
22026echo >>$CONFIG_STATUS
22027
22028# Break up conftest.undefs because some shells have a limit on the size
22029# of here documents, and old seds have small limits too (100 cmds).
22030echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22031rm -f conftest.tail
22032while grep . conftest.undefs >/dev/null
22033do
22034  # Write a limited-size here document to $tmp/undefs.sed.
22035  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22036  # Speed up: don't consider the non `#undef'
22037  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22038  # Work around the forget-to-reset-the-flag bug.
22039  echo 't clr' >>$CONFIG_STATUS
22040  echo ': clr' >>$CONFIG_STATUS
22041  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22042  echo 'CEOF
22043  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22044  rm -f $tmp/in
22045  mv $tmp/out $tmp/in
22046' >>$CONFIG_STATUS
22047  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22048  rm -f conftest.undefs
22049  mv conftest.tail conftest.undefs
22050done
22051rm -f conftest.undefs
22052
22053cat >>$CONFIG_STATUS <<\_ACEOF
22054  # Let's still pretend it is `configure' which instantiates (i.e., don't
22055  # use $as_me), people would be surprised to read:
22056  #    /* config.h.  Generated by config.status.  */
22057  if test x"$ac_file" = x-; then
22058    echo "/* Generated by configure.  */" >$tmp/config.h
22059  else
22060    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22061  fi
22062  cat $tmp/in >>$tmp/config.h
22063  rm -f $tmp/in
22064  if test x"$ac_file" != x-; then
22065    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22066      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22067echo "$as_me: $ac_file is unchanged" >&6;}
22068    else
22069      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071	 X"$ac_file" : 'X\(//\)[^/]' \| \
22072	 X"$ac_file" : 'X\(//\)$' \| \
22073	 X"$ac_file" : 'X\(/\)' \| \
22074	 .     : '\(.\)' 2>/dev/null ||
22075echo X"$ac_file" |
22076    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22077  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22078  	  /^X\(\/\/\)$/{ s//\1/; q; }
22079  	  /^X\(\/\).*/{ s//\1/; q; }
22080  	  s/.*/./; q'`
22081      { if $as_mkdir_p; then
22082    mkdir -p "$ac_dir"
22083  else
22084    as_dir="$ac_dir"
22085    as_dirs=
22086    while test ! -d "$as_dir"; do
22087      as_dirs="$as_dir $as_dirs"
22088      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22089$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22090	 X"$as_dir" : 'X\(//\)[^/]' \| \
22091	 X"$as_dir" : 'X\(//\)$' \| \
22092	 X"$as_dir" : 'X\(/\)' \| \
22093	 .     : '\(.\)' 2>/dev/null ||
22094echo X"$as_dir" |
22095    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22096  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22097  	  /^X\(\/\/\)$/{ s//\1/; q; }
22098  	  /^X\(\/\).*/{ s//\1/; q; }
22099  	  s/.*/./; q'`
22100    done
22101    test ! -n "$as_dirs" || mkdir $as_dirs
22102  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22103echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22104   { (exit 1); exit 1; }; }; }
22105
22106      rm -f $ac_file
22107      mv $tmp/config.h $ac_file
22108    fi
22109  else
22110    cat $tmp/config.h
22111    rm -f $tmp/config.h
22112  fi
22113# Compute $ac_file's index in $config_headers.
22114_am_stamp_count=1
22115for _am_header in $config_headers :; do
22116  case $_am_header in
22117    $ac_file | $ac_file:* )
22118      break ;;
22119    * )
22120      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22121  esac
22122done
22123echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22124$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22125	 X$ac_file : 'X\(//\)[^/]' \| \
22126	 X$ac_file : 'X\(//\)$' \| \
22127	 X$ac_file : 'X\(/\)' \| \
22128	 .     : '\(.\)' 2>/dev/null ||
22129echo X$ac_file |
22130    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22131  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22132  	  /^X\(\/\/\)$/{ s//\1/; q; }
22133  	  /^X\(\/\).*/{ s//\1/; q; }
22134  	  s/.*/./; q'`/stamp-h$_am_stamp_count
22135done
22136_ACEOF
22137cat >>$CONFIG_STATUS <<\_ACEOF
22138
22139#
22140# CONFIG_COMMANDS section.
22141#
22142for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22143  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22144  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22145  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22146$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22147	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22148	 X"$ac_dest" : 'X\(//\)$' \| \
22149	 X"$ac_dest" : 'X\(/\)' \| \
22150	 .     : '\(.\)' 2>/dev/null ||
22151echo X"$ac_dest" |
22152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22153  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22154  	  /^X\(\/\/\)$/{ s//\1/; q; }
22155  	  /^X\(\/\).*/{ s//\1/; q; }
22156  	  s/.*/./; q'`
22157  { if $as_mkdir_p; then
22158    mkdir -p "$ac_dir"
22159  else
22160    as_dir="$ac_dir"
22161    as_dirs=
22162    while test ! -d "$as_dir"; do
22163      as_dirs="$as_dir $as_dirs"
22164      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22165$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22166	 X"$as_dir" : 'X\(//\)[^/]' \| \
22167	 X"$as_dir" : 'X\(//\)$' \| \
22168	 X"$as_dir" : 'X\(/\)' \| \
22169	 .     : '\(.\)' 2>/dev/null ||
22170echo X"$as_dir" |
22171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22172  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22173  	  /^X\(\/\/\)$/{ s//\1/; q; }
22174  	  /^X\(\/\).*/{ s//\1/; q; }
22175  	  s/.*/./; q'`
22176    done
22177    test ! -n "$as_dirs" || mkdir $as_dirs
22178  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22179echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22180   { (exit 1); exit 1; }; }; }
22181
22182  ac_builddir=.
22183
22184if test "$ac_dir" != .; then
22185  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22186  # A "../" for each directory in $ac_dir_suffix.
22187  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22188else
22189  ac_dir_suffix= ac_top_builddir=
22190fi
22191
22192case $srcdir in
22193  .)  # No --srcdir option.  We are building in place.
22194    ac_srcdir=.
22195    if test -z "$ac_top_builddir"; then
22196       ac_top_srcdir=.
22197    else
22198       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22199    fi ;;
22200  [\\/]* | ?:[\\/]* )  # Absolute path.
22201    ac_srcdir=$srcdir$ac_dir_suffix;
22202    ac_top_srcdir=$srcdir ;;
22203  *) # Relative path.
22204    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22205    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22206esac
22207
22208# Do not use `cd foo && pwd` to compute absolute paths, because
22209# the directories may not exist.
22210case `pwd` in
22211.) ac_abs_builddir="$ac_dir";;
22212*)
22213  case "$ac_dir" in
22214  .) ac_abs_builddir=`pwd`;;
22215  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22216  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22217  esac;;
22218esac
22219case $ac_abs_builddir in
22220.) ac_abs_top_builddir=${ac_top_builddir}.;;
22221*)
22222  case ${ac_top_builddir}. in
22223  .) ac_abs_top_builddir=$ac_abs_builddir;;
22224  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22225  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22226  esac;;
22227esac
22228case $ac_abs_builddir in
22229.) ac_abs_srcdir=$ac_srcdir;;
22230*)
22231  case $ac_srcdir in
22232  .) ac_abs_srcdir=$ac_abs_builddir;;
22233  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22234  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22235  esac;;
22236esac
22237case $ac_abs_builddir in
22238.) ac_abs_top_srcdir=$ac_top_srcdir;;
22239*)
22240  case $ac_top_srcdir in
22241  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22242  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22243  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22244  esac;;
22245esac
22246
22247
22248  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22249echo "$as_me: executing $ac_dest commands" >&6;}
22250  case $ac_dest in
22251    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22252  # Strip MF so we end up with the name of the file.
22253  mf=`echo "$mf" | sed -e 's/:.*$//'`
22254  # Check whether this is an Automake generated Makefile or not.
22255  # We used to match only the files named `Makefile.in', but
22256  # some people rename them; so instead we look at the file content.
22257  # Grep'ing the first line is not enough: some people post-process
22258  # each Makefile.in and add a new line on top of each file to say so.
22259  # So let's grep whole file.
22260  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22261    dirpart=`(dirname "$mf") 2>/dev/null ||
22262$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22263	 X"$mf" : 'X\(//\)[^/]' \| \
22264	 X"$mf" : 'X\(//\)$' \| \
22265	 X"$mf" : 'X\(/\)' \| \
22266	 .     : '\(.\)' 2>/dev/null ||
22267echo X"$mf" |
22268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22269  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22270  	  /^X\(\/\/\)$/{ s//\1/; q; }
22271  	  /^X\(\/\).*/{ s//\1/; q; }
22272  	  s/.*/./; q'`
22273  else
22274    continue
22275  fi
22276  # Extract the definition of DEPDIR, am__include, and am__quote
22277  # from the Makefile without running `make'.
22278  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22279  test -z "$DEPDIR" && continue
22280  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22281  test -z "am__include" && continue
22282  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22283  # When using ansi2knr, U may be empty or an underscore; expand it
22284  U=`sed -n 's/^U = //p' < "$mf"`
22285  # Find all dependency output files, they are included files with
22286  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22287  # simplest approach to changing $(DEPDIR) to its actual value in the
22288  # expansion.
22289  for file in `sed -n "
22290    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22291       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22292    # Make sure the directory exists.
22293    test -f "$dirpart/$file" && continue
22294    fdir=`(dirname "$file") 2>/dev/null ||
22295$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22296	 X"$file" : 'X\(//\)[^/]' \| \
22297	 X"$file" : 'X\(//\)$' \| \
22298	 X"$file" : 'X\(/\)' \| \
22299	 .     : '\(.\)' 2>/dev/null ||
22300echo X"$file" |
22301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22302  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22303  	  /^X\(\/\/\)$/{ s//\1/; q; }
22304  	  /^X\(\/\).*/{ s//\1/; q; }
22305  	  s/.*/./; q'`
22306    { if $as_mkdir_p; then
22307    mkdir -p $dirpart/$fdir
22308  else
22309    as_dir=$dirpart/$fdir
22310    as_dirs=
22311    while test ! -d "$as_dir"; do
22312      as_dirs="$as_dir $as_dirs"
22313      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22315	 X"$as_dir" : 'X\(//\)[^/]' \| \
22316	 X"$as_dir" : 'X\(//\)$' \| \
22317	 X"$as_dir" : 'X\(/\)' \| \
22318	 .     : '\(.\)' 2>/dev/null ||
22319echo X"$as_dir" |
22320    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22321  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22322  	  /^X\(\/\/\)$/{ s//\1/; q; }
22323  	  /^X\(\/\).*/{ s//\1/; q; }
22324  	  s/.*/./; q'`
22325    done
22326    test ! -n "$as_dirs" || mkdir $as_dirs
22327  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22328echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22329   { (exit 1); exit 1; }; }; }
22330
22331    # echo "creating $dirpart/$file"
22332    echo '# dummy' > "$dirpart/$file"
22333  done
22334done
22335 ;;
22336  esac
22337done
22338_ACEOF
22339
22340cat >>$CONFIG_STATUS <<\_ACEOF
22341
22342{ (exit 0); exit 0; }
22343_ACEOF
22344chmod +x $CONFIG_STATUS
22345ac_clean_files=$ac_clean_files_save
22346
22347
22348# configure is writing to config.log, and then calls config.status.
22349# config.status does its own redirection, appending to config.log.
22350# Unfortunately, on DOS this fails, as config.log is still kept open
22351# by configure, so config.status won't be able to write to it; its
22352# output is simply discarded.  So we exec the FD to /dev/null,
22353# effectively closing config.log, so it can be properly (re)opened and
22354# appended to by config.status.  When coming back to configure, we
22355# need to make the FD available again.
22356if test "$no_create" != yes; then
22357  ac_cs_success=:
22358  ac_config_status_args=
22359  test "$silent" = yes &&
22360    ac_config_status_args="$ac_config_status_args --quiet"
22361  exec 5>/dev/null
22362  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22363  exec 5>>config.log
22364  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22365  # would make configure fail if this is the last instruction.
22366  $ac_cs_success || { (exit 1); exit 1; }
22367fi
22368
22369
22370