Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ReferenceApplication/configure @ 1

Last change on this file since 1 was 1, checked in by landauf, 17 years ago
File size: 690.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OGRE_REFAPP 0.10.0.
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.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='OGRE_REFAPP'
423PACKAGE_TARNAME='ogre_refapp'
424PACKAGE_VERSION='0.10.0'
425PACKAGE_STRING='OGRE_REFAPP 0.10.0'
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG OGRE_CFLAGS OGRE_LIBS 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_CXX_set=${CXX+set}
923ac_env_CXX_value=$CXX
924ac_cv_env_CXX_set=${CXX+set}
925ac_cv_env_CXX_value=$CXX
926ac_env_CXXFLAGS_set=${CXXFLAGS+set}
927ac_env_CXXFLAGS_value=$CXXFLAGS
928ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
929ac_cv_env_CXXFLAGS_value=$CXXFLAGS
930ac_env_CPP_set=${CPP+set}
931ac_env_CPP_value=$CPP
932ac_cv_env_CPP_set=${CPP+set}
933ac_cv_env_CPP_value=$CPP
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
946ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
947ac_env_PKG_CONFIG_value=$PKG_CONFIG
948ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
950ac_env_OGRE_CFLAGS_set=${OGRE_CFLAGS+set}
951ac_env_OGRE_CFLAGS_value=$OGRE_CFLAGS
952ac_cv_env_OGRE_CFLAGS_set=${OGRE_CFLAGS+set}
953ac_cv_env_OGRE_CFLAGS_value=$OGRE_CFLAGS
954ac_env_OGRE_LIBS_set=${OGRE_LIBS+set}
955ac_env_OGRE_LIBS_value=$OGRE_LIBS
956ac_cv_env_OGRE_LIBS_set=${OGRE_LIBS+set}
957ac_cv_env_OGRE_LIBS_value=$OGRE_LIBS
958
959#
960# Report the --help message.
961#
962if test "$ac_init_help" = "long"; then
963  # Omit some internal or obsolete options to make the list less imposing.
964  # This message is too long to be a string in the A/UX 3.1 sh.
965  cat <<_ACEOF
966\`configure' configures OGRE_REFAPP 0.10.0 to adapt to many kinds of systems.
967
968Usage: $0 [OPTION]... [VAR=VALUE]...
969
970To assign environment variables (e.g., CC, CFLAGS...), specify them as
971VAR=VALUE.  See below for descriptions of some of the useful variables.
972
973Defaults for the options are specified in brackets.
974
975Configuration:
976  -h, --help              display this help and exit
977      --help=short        display options specific to this package
978      --help=recursive    display the short help of all the included packages
979  -V, --version           display version information and exit
980  -q, --quiet, --silent   do not print \`checking...' messages
981      --cache-file=FILE   cache test results in FILE [disabled]
982  -C, --config-cache      alias for \`--cache-file=config.cache'
983  -n, --no-create         do not create output files
984      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
985
986_ACEOF
987
988  cat <<_ACEOF
989Installation directories:
990  --prefix=PREFIX         install architecture-independent files in PREFIX
991                          [$ac_default_prefix]
992  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
993                          [PREFIX]
994
995By default, \`make install' will install all the files in
996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
997an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998for instance \`--prefix=\$HOME'.
999
1000For better control, use the options below.
1001
1002Fine tuning of the installation directories:
1003  --bindir=DIR           user executables [EPREFIX/bin]
1004  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1005  --libexecdir=DIR       program executables [EPREFIX/libexec]
1006  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1007  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1008  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1009  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1010  --libdir=DIR           object code libraries [EPREFIX/lib]
1011  --includedir=DIR       C header files [PREFIX/include]
1012  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1013  --infodir=DIR          info documentation [PREFIX/info]
1014  --mandir=DIR           man documentation [PREFIX/man]
1015_ACEOF
1016
1017  cat <<\_ACEOF
1018
1019Program names:
1020  --program-prefix=PREFIX            prepend PREFIX to installed program names
1021  --program-suffix=SUFFIX            append SUFFIX to installed program names
1022  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1023
1024System types:
1025  --build=BUILD     configure for building on BUILD [guessed]
1026  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1027  --target=TARGET   configure for building compilers for TARGET [HOST]
1028_ACEOF
1029fi
1030
1031if test -n "$ac_init_help"; then
1032  case $ac_init_help in
1033     short | recursive ) echo "Configuration of OGRE_REFAPP 0.10.0:";;
1034   esac
1035  cat <<\_ACEOF
1036
1037Optional Features:
1038  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1039  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1040  --disable-dependency-tracking  speeds up one-time build
1041  --enable-dependency-tracking   do not reject slow dependency extractors
1042  --enable-shared[=PKGS]
1043                          build shared libraries [default=yes]
1044  --enable-static[=PKGS]
1045                          build static libraries [default=yes]
1046  --enable-fast-install[=PKGS]
1047                          optimize for fast installation [default=yes]
1048  --disable-libtool-lock  avoid locking (might break parallel builds)
1049
1050Optional Packages:
1051  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1052  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1053  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1054  --with-pic              try to use only PIC/non-PIC objects [default=use
1055                          both]
1056  --with-tags[=TAGS]
1057                          include additional configurations [automatic]
1058
1059Some influential environment variables:
1060  CC          C compiler command
1061  CFLAGS      C compiler flags
1062  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063              nonstandard directory <lib dir>
1064  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065              headers in a nonstandard directory <include dir>
1066  CXX         C++ compiler command
1067  CXXFLAGS    C++ compiler flags
1068  CPP         C preprocessor
1069  CXXCPP      C++ preprocessor
1070  F77         Fortran 77 compiler command
1071  FFLAGS      Fortran 77 compiler flags
1072  PKG_CONFIG  path to pkg-config utility
1073  OGRE_CFLAGS C compiler flags for OGRE, overriding pkg-config
1074  OGRE_LIBS   linker flags for OGRE, overriding pkg-config
1075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083  # If there are subdirs, report their specific --help.
1084  ac_popdir=`pwd`
1085  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086    test -d $ac_dir || continue
1087    ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091  # A "../" for each directory in $ac_dir_suffix.
1092  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094  ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098  .)  # No --srcdir option.  We are building in place.
1099    ac_srcdir=.
1100    if test -z "$ac_top_builddir"; then
1101       ac_top_srcdir=.
1102    else
1103       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104    fi ;;
1105  [\\/]* | ?:[\\/]* )  # Absolute path.
1106    ac_srcdir=$srcdir$ac_dir_suffix;
1107    ac_top_srcdir=$srcdir ;;
1108  *) # Relative path.
1109    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
1112
1113# Do not use `cd foo && pwd` to compute absolute paths, because
1114# the directories may not exist.
1115case `pwd` in
1116.) ac_abs_builddir="$ac_dir";;
1117*)
1118  case "$ac_dir" in
1119  .) ac_abs_builddir=`pwd`;;
1120  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122  esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126*)
1127  case ${ac_top_builddir}. in
1128  .) ac_abs_top_builddir=$ac_abs_builddir;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_srcdir=$ac_srcdir;;
1135*)
1136  case $ac_srcdir in
1137  .) ac_abs_srcdir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140  esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144*)
1145  case $ac_top_srcdir in
1146  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149  esac;;
1150esac
1151
1152    cd $ac_dir
1153    # Check for guested configure; otherwise get Cygnus style configure.
1154    if test -f $ac_srcdir/configure.gnu; then
1155      echo
1156      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157    elif test -f $ac_srcdir/configure; then
1158      echo
1159      $SHELL $ac_srcdir/configure  --help=recursive
1160    elif test -f $ac_srcdir/configure.ac ||
1161           test -f $ac_srcdir/configure.in; then
1162      echo
1163      $ac_configure --help
1164    else
1165      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166    fi
1167    cd "$ac_popdir"
1168  done
1169fi
1170
1171test -n "$ac_init_help" && exit 0
1172if $ac_init_version; then
1173  cat <<\_ACEOF
1174OGRE_REFAPP configure 0.10.0
1175generated by GNU Autoconf 2.59
1176
1177Copyright (C) 2003 Free Software Foundation, Inc.
1178This configure script is free software; the Free Software Foundation
1179gives unlimited permission to copy, distribute and modify it.
1180_ACEOF
1181  exit 0
1182fi
1183exec 5>config.log
1184cat >&5 <<_ACEOF
1185This file contains any messages produced by compilers while
1186running configure, to aid debugging if configure makes a mistake.
1187
1188It was created by OGRE_REFAPP $as_me 0.10.0, which was
1189generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191  $ $0 $@
1192
1193_ACEOF
1194{
1195cat <<_ASUNAME
1196## --------- ##
1197## Platform. ##
1198## --------- ##
1199
1200hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217_ASUNAME
1218
1219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220for as_dir in $PATH
1221do
1222  IFS=$as_save_IFS
1223  test -z "$as_dir" && as_dir=.
1224  echo "PATH: $as_dir"
1225done
1226
1227} >&5
1228
1229cat >&5 <<_ACEOF
1230
1231
1232## ----------- ##
1233## Core tests. ##
1234## ----------- ##
1235
1236_ACEOF
1237
1238
1239# Keep a trace of the command line.
1240# Strip out --no-create and --no-recursion so they do not pile up.
1241# Strip out --silent because we don't want to record it for future runs.
1242# Also quote any args containing shell meta-characters.
1243# Make two passes to allow for proper duplicate-argument suppression.
1244ac_configure_args=
1245ac_configure_args0=
1246ac_configure_args1=
1247ac_sep=
1248ac_must_keep_next=false
1249for ac_pass in 1 2
1250do
1251  for ac_arg
1252  do
1253    case $ac_arg in
1254    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256    | -silent | --silent | --silen | --sile | --sil)
1257      continue ;;
1258    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260    esac
1261    case $ac_pass in
1262    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263    2)
1264      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265      if test $ac_must_keep_next = true; then
1266        ac_must_keep_next=false # Got value, back to normal.
1267      else
1268        case $ac_arg in
1269          *=* | --config-cache | -C | -disable-* | --disable-* \
1270          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272          | -with-* | --with-* | -without-* | --without-* | --x)
1273            case "$ac_configure_args0 " in
1274              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275            esac
1276            ;;
1277          -* ) ac_must_keep_next=true ;;
1278        esac
1279      fi
1280      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281      # Get rid of the leading space.
1282      ac_sep=" "
1283      ;;
1284    esac
1285  done
1286done
1287$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290# When interrupted or exit'd, cleanup temporary files, and complete
1291# config.log.  We remove comments because anyway the quotes in there
1292# would cause problems or look ugly.
1293# WARNING: Be sure not to use single quotes in there, as some shells,
1294# such as our DU 5.0 friend, will then `close' the trap.
1295trap 'exit_status=$?
1296  # Save into config.log some information that might help in debugging.
1297  {
1298    echo
1299
1300    cat <<\_ASBOX
1301## ---------------- ##
1302## Cache variables. ##
1303## ---------------- ##
1304_ASBOX
1305    echo
1306    # The following way of writing the cache mishandles newlines in values,
1307{
1308  (set) 2>&1 |
1309    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310    *ac_space=\ *)
1311      sed -n \
1312        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314      ;;
1315    *)
1316      sed -n \
1317        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318      ;;
1319    esac;
1320}
1321    echo
1322
1323    cat <<\_ASBOX
1324## ----------------- ##
1325## Output variables. ##
1326## ----------------- ##
1327_ASBOX
1328    echo
1329    for ac_var in $ac_subst_vars
1330    do
1331      eval ac_val=$`echo $ac_var`
1332      echo "$ac_var='"'"'$ac_val'"'"'"
1333    done | sort
1334    echo
1335
1336    if test -n "$ac_subst_files"; then
1337      cat <<\_ASBOX
1338## ------------- ##
1339## Output files. ##
1340## ------------- ##
1341_ASBOX
1342      echo
1343      for ac_var in $ac_subst_files
1344      do
1345        eval ac_val=$`echo $ac_var`
1346        echo "$ac_var='"'"'$ac_val'"'"'"
1347      done | sort
1348      echo
1349    fi
1350
1351    if test -s confdefs.h; then
1352      cat <<\_ASBOX
1353## ----------- ##
1354## confdefs.h. ##
1355## ----------- ##
1356_ASBOX
1357      echo
1358      sed "/^$/d" confdefs.h | sort
1359      echo
1360    fi
1361    test "$ac_signal" != 0 &&
1362      echo "$as_me: caught signal $ac_signal"
1363    echo "$as_me: exit $exit_status"
1364  } >&5
1365  rm -f core *.core &&
1366  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367    exit $exit_status
1368     ' 0
1369for ac_signal in 1 2 13 15; do
1370  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371done
1372ac_signal=0
1373
1374# confdefs.h avoids OS command line length limits that DEFS can exceed.
1375rm -rf conftest* confdefs.h
1376# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377echo >confdefs.h
1378
1379# Predefined preprocessor variables.
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_NAME "$PACKAGE_NAME"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_VERSION "$PACKAGE_VERSION"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_STRING "$PACKAGE_STRING"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403_ACEOF
1404
1405
1406# Let the site file select an alternate cache file if it wants to.
1407# Prefer explicitly selected file to automatically selected ones.
1408if test -z "$CONFIG_SITE"; then
1409  if test "x$prefix" != xNONE; then
1410    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411  else
1412    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413  fi
1414fi
1415for ac_site_file in $CONFIG_SITE; do
1416  if test -r "$ac_site_file"; then
1417    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418echo "$as_me: loading site script $ac_site_file" >&6;}
1419    sed 's/^/| /' "$ac_site_file" >&5
1420    . "$ac_site_file"
1421  fi
1422done
1423
1424if test -r "$cache_file"; then
1425  # Some versions of bash will fail to source /dev/null (special
1426  # files actually), so we avoid doing that.
1427  if test -f "$cache_file"; then
1428    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429echo "$as_me: loading cache $cache_file" >&6;}
1430    case $cache_file in
1431      [\\/]* | ?:[\\/]* ) . $cache_file;;
1432      *)                      . ./$cache_file;;
1433    esac
1434  fi
1435else
1436  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437echo "$as_me: creating cache $cache_file" >&6;}
1438  >$cache_file
1439fi
1440
1441# Check that the precious variables saved in the cache have kept the same
1442# value.
1443ac_cache_corrupted=false
1444for ac_var in `(set) 2>&1 |
1445               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447  eval ac_new_set=\$ac_env_${ac_var}_set
1448  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449  eval ac_new_val="\$ac_env_${ac_var}_value"
1450  case $ac_old_set,$ac_new_set in
1451    set,)
1452      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454      ac_cache_corrupted=: ;;
1455    ,set)
1456      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458      ac_cache_corrupted=: ;;
1459    ,);;
1460    *)
1461      if test "x$ac_old_val" != "x$ac_new_val"; then
1462        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465echo "$as_me:   former value:  $ac_old_val" >&2;}
1466        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467echo "$as_me:   current value: $ac_new_val" >&2;}
1468        ac_cache_corrupted=:
1469      fi;;
1470  esac
1471  # Pass precious variables to config.status.
1472  if test "$ac_new_set" = set; then
1473    case $ac_new_val in
1474    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476    *) ac_arg=$ac_var=$ac_new_val ;;
1477    esac
1478    case " $ac_configure_args " in
1479      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481    esac
1482  fi
1483done
1484if $ac_cache_corrupted; then
1485  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489   { (exit 1); exit 1; }; }
1490fi
1491
1492ac_ext=c
1493ac_cpp='$CPP $CPPFLAGS'
1494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524am__api_version="1.9"
1525ac_aux_dir=
1526for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1527  if test -f $ac_dir/install-sh; then
1528    ac_aux_dir=$ac_dir
1529    ac_install_sh="$ac_aux_dir/install-sh -c"
1530    break
1531  elif test -f $ac_dir/install.sh; then
1532    ac_aux_dir=$ac_dir
1533    ac_install_sh="$ac_aux_dir/install.sh -c"
1534    break
1535  elif test -f $ac_dir/shtool; then
1536    ac_aux_dir=$ac_dir
1537    ac_install_sh="$ac_aux_dir/shtool install -c"
1538    break
1539  fi
1540done
1541if test -z "$ac_aux_dir"; then
1542  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1543echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1544   { (exit 1); exit 1; }; }
1545fi
1546ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1547ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1548ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1549
1550# Find a good install program.  We prefer a C program (faster),
1551# so one script is as good as another.  But avoid the broken or
1552# incompatible versions:
1553# SysV /etc/install, /usr/sbin/install
1554# SunOS /usr/etc/install
1555# IRIX /sbin/install
1556# AIX /bin/install
1557# AmigaOS /C/install, which installs bootblocks on floppy discs
1558# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1559# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1560# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1561# OS/2's system install, which has a completely different semantic
1562# ./install, which can be erroneously created by make from ./install.sh.
1563echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1564echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1565if test -z "$INSTALL"; then
1566if test "${ac_cv_path_install+set}" = set; then
1567  echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572  IFS=$as_save_IFS
1573  test -z "$as_dir" && as_dir=.
1574  # Account for people who put trailing slashes in PATH elements.
1575case $as_dir/ in
1576  ./ | .// | /cC/* | \
1577  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1578  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1579  /usr/ucb/* ) ;;
1580  *)
1581    # OSF1 and SCO ODT 3.0 have their own names for install.
1582    # Don't use installbsd from OSF since it installs stuff as root
1583    # by default.
1584    for ac_prog in ginstall scoinst install; do
1585      for ac_exec_ext in '' $ac_executable_extensions; do
1586        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1587          if test $ac_prog = install &&
1588            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589            # AIX install.  It has an incompatible calling convention.
1590            :
1591          elif test $ac_prog = install &&
1592            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1593            # program-specific install script used by HP pwplus--don't use.
1594            :
1595          else
1596            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1597            break 3
1598          fi
1599        fi
1600      done
1601    done
1602    ;;
1603esac
1604done
1605
1606
1607fi
1608  if test "${ac_cv_path_install+set}" = set; then
1609    INSTALL=$ac_cv_path_install
1610  else
1611    # As a last resort, use the slow shell script.  We don't cache a
1612    # path for INSTALL within a source directory, because that will
1613    # break other packages using the cache if that directory is
1614    # removed, or if the path is relative.
1615    INSTALL=$ac_install_sh
1616  fi
1617fi
1618echo "$as_me:$LINENO: result: $INSTALL" >&5
1619echo "${ECHO_T}$INSTALL" >&6
1620
1621# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1622# It thinks the first close brace ends the variable substitution.
1623test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1624
1625test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1626
1627test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1628
1629echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1630echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1631# Just in case
1632sleep 1
1633echo timestamp > conftest.file
1634# Do `set' in a subshell so we don't clobber the current shell's
1635# arguments.  Must try -L first in case configure is actually a
1636# symlink; some systems play weird games with the mod time of symlinks
1637# (eg FreeBSD returns the mod time of the symlink's containing
1638# directory).
1639if (
1640   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1641   if test "$*" = "X"; then
1642      # -L didn't work.
1643      set X `ls -t $srcdir/configure conftest.file`
1644   fi
1645   rm -f conftest.file
1646   if test "$*" != "X $srcdir/configure conftest.file" \
1647      && test "$*" != "X conftest.file $srcdir/configure"; then
1648
1649      # If neither matched, then we have a broken ls.  This can happen
1650      # if, for instance, CONFIG_SHELL is bash and it inherits a
1651      # broken ls alias from the environment.  This has actually
1652      # happened.  Such a system could not be considered "sane".
1653      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1654alias in your environment" >&5
1655echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1656alias in your environment" >&2;}
1657   { (exit 1); exit 1; }; }
1658   fi
1659
1660   test "$2" = conftest.file
1661   )
1662then
1663   # Ok.
1664   :
1665else
1666   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1667Check your system clock" >&5
1668echo "$as_me: error: newly created file is older than distributed files!
1669Check your system clock" >&2;}
1670   { (exit 1); exit 1; }; }
1671fi
1672echo "$as_me:$LINENO: result: yes" >&5
1673echo "${ECHO_T}yes" >&6
1674test "$program_prefix" != NONE &&
1675  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1676# Use a double $ so make ignores it.
1677test "$program_suffix" != NONE &&
1678  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1679# Double any \ or $.  echo might interpret backslashes.
1680# By default was `s,x,x', remove it if useless.
1681cat <<\_ACEOF >conftest.sed
1682s/[\\$]/&&/g;s/;s,x,x,$//
1683_ACEOF
1684program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1685rm conftest.sed
1686
1687# expand $ac_aux_dir to an absolute path
1688am_aux_dir=`cd $ac_aux_dir && pwd`
1689
1690test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1691# Use eval to expand $SHELL
1692if eval "$MISSING --run true"; then
1693  am_missing_run="$MISSING --run "
1694else
1695  am_missing_run=
1696  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1697echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1698fi
1699
1700if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1701  # We used to keeping the `.' as first argument, in order to
1702  # allow $(mkdir_p) to be used without argument.  As in
1703  #   $(mkdir_p) $(somedir)
1704  # where $(somedir) is conditionally defined.  However this is wrong
1705  # for two reasons:
1706  #  1. if the package is installed by a user who cannot write `.'
1707  #     make install will fail,
1708  #  2. the above comment should most certainly read
1709  #     $(mkdir_p) $(DESTDIR)$(somedir)
1710  #     so it does not work when $(somedir) is undefined and
1711  #     $(DESTDIR) is not.
1712  #  To support the latter case, we have to write
1713  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1714  #  so the `.' trick is pointless.
1715  mkdir_p='mkdir -p --'
1716else
1717  # On NextStep and OpenStep, the `mkdir' command does not
1718  # recognize any option.  It will interpret all options as
1719  # directories to create, and then abort because `.' already
1720  # exists.
1721  for d in ./-p ./--version;
1722  do
1723    test -d $d && rmdir $d
1724  done
1725  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1726  if test -f "$ac_aux_dir/mkinstalldirs"; then
1727    mkdir_p='$(mkinstalldirs)'
1728  else
1729    mkdir_p='$(install_sh) -d'
1730  fi
1731fi
1732
1733for ac_prog in gawk mawk nawk awk
1734do
1735  # Extract the first word of "$ac_prog", so it can be a program name with args.
1736set dummy $ac_prog; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739if test "${ac_cv_prog_AWK+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  if test -n "$AWK"; then
1743  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1744else
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748  IFS=$as_save_IFS
1749  test -z "$as_dir" && as_dir=.
1750  for ac_exec_ext in '' $ac_executable_extensions; do
1751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752    ac_cv_prog_AWK="$ac_prog"
1753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754    break 2
1755  fi
1756done
1757done
1758
1759fi
1760fi
1761AWK=$ac_cv_prog_AWK
1762if test -n "$AWK"; then
1763  echo "$as_me:$LINENO: result: $AWK" >&5
1764echo "${ECHO_T}$AWK" >&6
1765else
1766  echo "$as_me:$LINENO: result: no" >&5
1767echo "${ECHO_T}no" >&6
1768fi
1769
1770  test -n "$AWK" && break
1771done
1772
1773echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1774echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1775set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1776if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1777  echo $ECHO_N "(cached) $ECHO_C" >&6
1778else
1779  cat >conftest.make <<\_ACEOF
1780all:
1781        @echo 'ac_maketemp="$(MAKE)"'
1782_ACEOF
1783# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1784eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1785if test -n "$ac_maketemp"; then
1786  eval ac_cv_prog_make_${ac_make}_set=yes
1787else
1788  eval ac_cv_prog_make_${ac_make}_set=no
1789fi
1790rm -f conftest.make
1791fi
1792if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1793  echo "$as_me:$LINENO: result: yes" >&5
1794echo "${ECHO_T}yes" >&6
1795  SET_MAKE=
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799  SET_MAKE="MAKE=${MAKE-make}"
1800fi
1801
1802rm -rf .tst 2>/dev/null
1803mkdir .tst 2>/dev/null
1804if test -d .tst; then
1805  am__leading_dot=.
1806else
1807  am__leading_dot=_
1808fi
1809rmdir .tst 2>/dev/null
1810
1811# test to see if srcdir already configured
1812if test "`cd $srcdir && pwd`" != "`pwd`" &&
1813   test -f $srcdir/config.status; then
1814  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1815echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1816   { (exit 1); exit 1; }; }
1817fi
1818
1819# test whether we have cygpath
1820if test -z "$CYGPATH_W"; then
1821  if (cygpath --version) >/dev/null 2>/dev/null; then
1822    CYGPATH_W='cygpath -w'
1823  else
1824    CYGPATH_W=echo
1825  fi
1826fi
1827
1828
1829# Define the identity of the package.
1830 PACKAGE='ogre_refapp'
1831 VERSION='0.10.0'
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE "$PACKAGE"
1836_ACEOF
1837
1838
1839cat >>confdefs.h <<_ACEOF
1840#define VERSION "$VERSION"
1841_ACEOF
1842
1843# Some tools Automake needs.
1844
1845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1846
1847
1848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1849
1850
1851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1852
1853
1854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1855
1856
1857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1858
1859install_sh=${install_sh-"$am_aux_dir/install-sh"}
1860
1861# Installed binaries are usually stripped using `strip' when the user
1862# run `make install-strip'.  However `strip' might not be the right
1863# tool to use in cross-compilation environments, therefore Automake
1864# will honor the `STRIP' environment variable to overrule this program.
1865if test "$cross_compiling" != no; then
1866  if test -n "$ac_tool_prefix"; then
1867  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1868set dummy ${ac_tool_prefix}strip; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_STRIP+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  if test -n "$STRIP"; then
1875  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882  for ac_exec_ext in '' $ac_executable_extensions; do
1883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886    break 2
1887  fi
1888done
1889done
1890
1891fi
1892fi
1893STRIP=$ac_cv_prog_STRIP
1894if test -n "$STRIP"; then
1895  echo "$as_me:$LINENO: result: $STRIP" >&5
1896echo "${ECHO_T}$STRIP" >&6
1897else
1898  echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902fi
1903if test -z "$ac_cv_prog_STRIP"; then
1904  ac_ct_STRIP=$STRIP
1905  # Extract the first word of "strip", so it can be a program name with args.
1906set dummy strip; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  if test -n "$ac_ct_STRIP"; then
1913  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920  for ac_exec_ext in '' $ac_executable_extensions; do
1921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922    ac_cv_prog_ac_ct_STRIP="strip"
1923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924    break 2
1925  fi
1926done
1927done
1928
1929  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1930fi
1931fi
1932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1933if test -n "$ac_ct_STRIP"; then
1934  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1935echo "${ECHO_T}$ac_ct_STRIP" >&6
1936else
1937  echo "$as_me:$LINENO: result: no" >&5
1938echo "${ECHO_T}no" >&6
1939fi
1940
1941  STRIP=$ac_ct_STRIP
1942else
1943  STRIP="$ac_cv_prog_STRIP"
1944fi
1945
1946fi
1947INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1948
1949# We need awk for the "check" target.  The system "awk" is bad on
1950# some platforms.
1951# Always define AMTAR for backward compatibility.
1952
1953AMTAR=${AMTAR-"${am_missing_run}tar"}
1954
1955am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956
1957
1958
1959
1960
1961          ac_config_headers="$ac_config_headers ReferenceAppLayer/include/config.h"
1962
1963
1964# Make sure we can run config.sub.
1965$ac_config_sub sun4 >/dev/null 2>&1 ||
1966  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1967echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1968   { (exit 1); exit 1; }; }
1969
1970echo "$as_me:$LINENO: checking build system type" >&5
1971echo $ECHO_N "checking build system type... $ECHO_C" >&6
1972if test "${ac_cv_build+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  ac_cv_build_alias=$build_alias
1976test -z "$ac_cv_build_alias" &&
1977  ac_cv_build_alias=`$ac_config_guess`
1978test -z "$ac_cv_build_alias" &&
1979  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1980echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1981   { (exit 1); exit 1; }; }
1982ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1983  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1984echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1985   { (exit 1); exit 1; }; }
1986
1987fi
1988echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1989echo "${ECHO_T}$ac_cv_build" >&6
1990build=$ac_cv_build
1991build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1992build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1993build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1994
1995
1996echo "$as_me:$LINENO: checking host system type" >&5
1997echo $ECHO_N "checking host system type... $ECHO_C" >&6
1998if test "${ac_cv_host+set}" = set; then
1999  echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001  ac_cv_host_alias=$host_alias
2002test -z "$ac_cv_host_alias" &&
2003  ac_cv_host_alias=$ac_cv_build_alias
2004ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2005  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2006echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2007   { (exit 1); exit 1; }; }
2008
2009fi
2010echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2011echo "${ECHO_T}$ac_cv_host" >&6
2012host=$ac_cv_host
2013host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2014host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2015host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2016
2017
2018echo "$as_me:$LINENO: checking target system type" >&5
2019echo $ECHO_N "checking target system type... $ECHO_C" >&6
2020if test "${ac_cv_target+set}" = set; then
2021  echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023  ac_cv_target_alias=$target_alias
2024test "x$ac_cv_target_alias" = "x" &&
2025  ac_cv_target_alias=$ac_cv_host_alias
2026ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2027  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2028echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2029   { (exit 1); exit 1; }; }
2030
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2033echo "${ECHO_T}$ac_cv_target" >&6
2034target=$ac_cv_target
2035target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2036target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2037target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2038
2039
2040# The aliases save the names the user supplied, while $host etc.
2041# will get canonicalized.
2042test -n "$target_alias" &&
2043  test "$program_prefix$program_suffix$program_transform_name" = \
2044    NONENONEs,x,x, &&
2045  program_prefix=${target_alias}-
2046
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052if test -n "$ac_tool_prefix"; then
2053  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2054set dummy ${ac_tool_prefix}gcc; ac_word=$2
2055echo "$as_me:$LINENO: checking for $ac_word" >&5
2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057if test "${ac_cv_prog_CC+set}" = set; then
2058  echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060  if test -n "$CC"; then
2061  ac_cv_prog_CC="$CC" # Let the user override the test.
2062else
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066  IFS=$as_save_IFS
2067  test -z "$as_dir" && as_dir=.
2068  for ac_exec_ext in '' $ac_executable_extensions; do
2069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072    break 2
2073  fi
2074done
2075done
2076
2077fi
2078fi
2079CC=$ac_cv_prog_CC
2080if test -n "$CC"; then
2081  echo "$as_me:$LINENO: result: $CC" >&5
2082echo "${ECHO_T}$CC" >&6
2083else
2084  echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6
2086fi
2087
2088fi
2089if test -z "$ac_cv_prog_CC"; then
2090  ac_ct_CC=$CC
2091  # Extract the first word of "gcc", so it can be a program name with args.
2092set dummy gcc; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$ac_ct_CC"; then
2099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108    ac_cv_prog_ac_ct_CC="gcc"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115fi
2116fi
2117ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118if test -n "$ac_ct_CC"; then
2119  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120echo "${ECHO_T}$ac_ct_CC" >&6
2121else
2122  echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126  CC=$ac_ct_CC
2127else
2128  CC="$ac_cv_prog_CC"
2129fi
2130
2131if test -z "$CC"; then
2132  if test -n "$ac_tool_prefix"; then
2133  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134set dummy ${ac_tool_prefix}cc; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_CC+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test -n "$CC"; then
2141  ac_cv_prog_CC="$CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150    ac_cv_prog_CC="${ac_tool_prefix}cc"
2151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152    break 2
2153  fi
2154done
2155done
2156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
2161  echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6
2163else
2164  echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168fi
2169if test -z "$ac_cv_prog_CC"; then
2170  ac_ct_CC=$CC
2171  # Extract the first word of "cc", so it can be a program name with args.
2172set dummy cc; ac_word=$2
2173echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176  echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178  if test -n "$ac_ct_CC"; then
2179  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180else
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184  IFS=$as_save_IFS
2185  test -z "$as_dir" && as_dir=.
2186  for ac_exec_ext in '' $ac_executable_extensions; do
2187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188    ac_cv_prog_ac_ct_CC="cc"
2189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190    break 2
2191  fi
2192done
2193done
2194
2195fi
2196fi
2197ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198if test -n "$ac_ct_CC"; then
2199  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200echo "${ECHO_T}$ac_ct_CC" >&6
2201else
2202  echo "$as_me:$LINENO: result: no" >&5
2203echo "${ECHO_T}no" >&6
2204fi
2205
2206  CC=$ac_ct_CC
2207else
2208  CC="$ac_cv_prog_CC"
2209fi
2210
2211fi
2212if test -z "$CC"; then
2213  # Extract the first word of "cc", so it can be a program name with args.
2214set dummy cc; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217if test "${ac_cv_prog_CC+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$CC"; then
2221  ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
2223  ac_prog_rejected=no
2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227  IFS=$as_save_IFS
2228  test -z "$as_dir" && as_dir=.
2229  for ac_exec_ext in '' $ac_executable_extensions; do
2230  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2232       ac_prog_rejected=yes
2233       continue
2234     fi
2235    ac_cv_prog_CC="cc"
2236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237    break 2
2238  fi
2239done
2240done
2241
2242if test $ac_prog_rejected = yes; then
2243  # We found a bogon in the path, so make sure we never use it.
2244  set dummy $ac_cv_prog_CC
2245  shift
2246  if test $# != 0; then
2247    # We chose a different compiler from the bogus one.
2248    # However, it has the same basename, so the bogon will be chosen
2249    # first if we set CC to just the basename; use the full file name.
2250    shift
2251    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2252  fi
2253fi
2254fi
2255fi
2256CC=$ac_cv_prog_CC
2257if test -n "$CC"; then
2258  echo "$as_me:$LINENO: result: $CC" >&5
2259echo "${ECHO_T}$CC" >&6
2260else
2261  echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6
2263fi
2264
2265fi
2266if test -z "$CC"; then
2267  if test -n "$ac_tool_prefix"; then
2268  for ac_prog in cl
2269  do
2270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2272echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274if test "${ac_cv_prog_CC+set}" = set; then
2275  echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277  if test -n "$CC"; then
2278  ac_cv_prog_CC="$CC" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283  IFS=$as_save_IFS
2284  test -z "$as_dir" && as_dir=.
2285  for ac_exec_ext in '' $ac_executable_extensions; do
2286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289    break 2
2290  fi
2291done
2292done
2293
2294fi
2295fi
2296CC=$ac_cv_prog_CC
2297if test -n "$CC"; then
2298  echo "$as_me:$LINENO: result: $CC" >&5
2299echo "${ECHO_T}$CC" >&6
2300else
2301  echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6
2303fi
2304
2305    test -n "$CC" && break
2306  done
2307fi
2308if test -z "$CC"; then
2309  ac_ct_CC=$CC
2310  for ac_prog in cl
2311do
2312  # Extract the first word of "$ac_prog", so it can be a program name with args.
2313set dummy $ac_prog; ac_word=$2
2314echo "$as_me:$LINENO: checking for $ac_word" >&5
2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2317  echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319  if test -n "$ac_ct_CC"; then
2320  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2321else
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325  IFS=$as_save_IFS
2326  test -z "$as_dir" && as_dir=.
2327  for ac_exec_ext in '' $ac_executable_extensions; do
2328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329    ac_cv_prog_ac_ct_CC="$ac_prog"
2330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331    break 2
2332  fi
2333done
2334done
2335
2336fi
2337fi
2338ac_ct_CC=$ac_cv_prog_ac_ct_CC
2339if test -n "$ac_ct_CC"; then
2340  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2341echo "${ECHO_T}$ac_ct_CC" >&6
2342else
2343  echo "$as_me:$LINENO: result: no" >&5
2344echo "${ECHO_T}no" >&6
2345fi
2346
2347  test -n "$ac_ct_CC" && break
2348done
2349
2350  CC=$ac_ct_CC
2351fi
2352
2353fi
2354
2355
2356test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2357See \`config.log' for more details." >&5
2358echo "$as_me: error: no acceptable C compiler found in \$PATH
2359See \`config.log' for more details." >&2;}
2360   { (exit 1); exit 1; }; }
2361
2362# Provide some information about the compiler.
2363echo "$as_me:$LINENO:" \
2364     "checking for C compiler version" >&5
2365ac_compiler=`set X $ac_compile; echo $2`
2366{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2367  (eval $ac_compiler --version </dev/null >&5) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }
2371{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2372  (eval $ac_compiler -v </dev/null >&5) 2>&5
2373  ac_status=$?
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); }
2376{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2377  (eval $ac_compiler -V </dev/null >&5) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); }
2381
2382cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388
2389int
2390main ()
2391{
2392
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397ac_clean_files_save=$ac_clean_files
2398ac_clean_files="$ac_clean_files a.out a.exe b.out"
2399# Try to create an executable without -o first, disregard a.out.
2400# It will help us diagnose broken compilers, and finding out an intuition
2401# of exeext.
2402echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2403echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2404ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2405if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2406  (eval $ac_link_default) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; then
2410  # Find the output, starting from the most likely.  This scheme is
2411# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2412# resort.
2413
2414# Be careful to initialize this variable, since it used to be cached.
2415# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2416ac_cv_exeext=
2417# b.out is created by i960 compilers.
2418for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2419do
2420  test -f "$ac_file" || continue
2421  case $ac_file in
2422    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2423        ;;
2424    conftest.$ac_ext )
2425        # This is the source file.
2426        ;;
2427    [ab].out )
2428        # We found the default executable, but exeext='' is most
2429        # certainly right.
2430        break;;
2431    *.* )
2432        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2433        # FIXME: I believe we export ac_cv_exeext for Libtool,
2434        # but it would be cool to find out if it's true.  Does anybody
2435        # maintain Libtool? --akim.
2436        export ac_cv_exeext
2437        break;;
2438    * )
2439        break;;
2440  esac
2441done
2442else
2443  echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2447See \`config.log' for more details." >&5
2448echo "$as_me: error: C compiler cannot create executables
2449See \`config.log' for more details." >&2;}
2450   { (exit 77); exit 77; }; }
2451fi
2452
2453ac_exeext=$ac_cv_exeext
2454echo "$as_me:$LINENO: result: $ac_file" >&5
2455echo "${ECHO_T}$ac_file" >&6
2456
2457# Check the compiler produces executables we can run.  If not, either
2458# the compiler is broken, or we cross compile.
2459echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2460echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2461# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2462# If not cross compiling, check that we can run a simple program.
2463if test "$cross_compiling" != yes; then
2464  if { ac_try='./$ac_file'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470    cross_compiling=no
2471  else
2472    if test "$cross_compiling" = maybe; then
2473        cross_compiling=yes
2474    else
2475        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2476If you meant to cross compile, use \`--host'.
2477See \`config.log' for more details." >&5
2478echo "$as_me: error: cannot run C compiled programs.
2479If you meant to cross compile, use \`--host'.
2480See \`config.log' for more details." >&2;}
2481   { (exit 1); exit 1; }; }
2482    fi
2483  fi
2484fi
2485echo "$as_me:$LINENO: result: yes" >&5
2486echo "${ECHO_T}yes" >&6
2487
2488rm -f a.out a.exe conftest$ac_cv_exeext b.out
2489ac_clean_files=$ac_clean_files_save
2490# Check the compiler produces executables we can run.  If not, either
2491# the compiler is broken, or we cross compile.
2492echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2493echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2494echo "$as_me:$LINENO: result: $cross_compiling" >&5
2495echo "${ECHO_T}$cross_compiling" >&6
2496
2497echo "$as_me:$LINENO: checking for suffix of executables" >&5
2498echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2500  (eval $ac_link) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; then
2504  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2505# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2506# work properly (i.e., refer to `conftest.exe'), while it won't with
2507# `rm'.
2508for ac_file in conftest.exe conftest conftest.*; do
2509  test -f "$ac_file" || continue
2510  case $ac_file in
2511    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2512    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513          export ac_cv_exeext
2514          break;;
2515    * ) break;;
2516  esac
2517done
2518else
2519  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2520See \`config.log' for more details." >&5
2521echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2522See \`config.log' for more details." >&2;}
2523   { (exit 1); exit 1; }; }
2524fi
2525
2526rm -f conftest$ac_cv_exeext
2527echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2528echo "${ECHO_T}$ac_cv_exeext" >&6
2529
2530rm -f conftest.$ac_ext
2531EXEEXT=$ac_cv_exeext
2532ac_exeext=$EXEEXT
2533echo "$as_me:$LINENO: checking for suffix of object files" >&5
2534echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2535if test "${ac_cv_objext+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  cat >conftest.$ac_ext <<_ACEOF
2539/* confdefs.h.  */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h.  */
2544
2545int
2546main ()
2547{
2548
2549  ;
2550  return 0;
2551}
2552_ACEOF
2553rm -f conftest.o conftest.obj
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; then
2559  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2560  case $ac_file in
2561    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2562    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563       break;;
2564  esac
2565done
2566else
2567  echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2571See \`config.log' for more details." >&5
2572echo "$as_me: error: cannot compute suffix of object files: cannot compile
2573See \`config.log' for more details." >&2;}
2574   { (exit 1); exit 1; }; }
2575fi
2576
2577rm -f conftest.$ac_cv_objext conftest.$ac_ext
2578fi
2579echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2580echo "${ECHO_T}$ac_cv_objext" >&6
2581OBJEXT=$ac_cv_objext
2582ac_objext=$OBJEXT
2583echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2584echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2585if test "${ac_cv_c_compiler_gnu+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h.  */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h.  */
2594
2595int
2596main ()
2597{
2598#ifndef __GNUC__
2599       choke me
2600#endif
2601
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext
2607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608  (eval $ac_compile) 2>conftest.er1
2609  ac_status=$?
2610  grep -v '^ *+' conftest.er1 >conftest.err
2611  rm -f conftest.er1
2612  cat conftest.err >&5
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); } &&
2615         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621         { ac_try='test -s conftest.$ac_objext'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; }; then
2627  ac_compiler_gnu=yes
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632ac_compiler_gnu=no
2633fi
2634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2635ac_cv_c_compiler_gnu=$ac_compiler_gnu
2636
2637fi
2638echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2639echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2640GCC=`test $ac_compiler_gnu = yes && echo yes`
2641ac_test_CFLAGS=${CFLAGS+set}
2642ac_save_CFLAGS=$CFLAGS
2643CFLAGS="-g"
2644echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2645echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2646if test "${ac_cv_prog_cc_g+set}" = set; then
2647  echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
2649  cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655
2656int
2657main ()
2658{
2659
2660  ;
2661  return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666  (eval $ac_compile) 2>conftest.er1
2667  ac_status=$?
2668  grep -v '^ *+' conftest.er1 >conftest.err
2669  rm -f conftest.er1
2670  cat conftest.err >&5
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); } &&
2673         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; } &&
2679         { ac_try='test -s conftest.$ac_objext'
2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681  (eval $ac_try) 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; }; then
2685  ac_cv_prog_cc_g=yes
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690ac_cv_prog_cc_g=no
2691fi
2692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2696if test "$ac_test_CFLAGS" = set; then
2697  CFLAGS=$ac_save_CFLAGS
2698elif test $ac_cv_prog_cc_g = yes; then
2699  if test "$GCC" = yes; then
2700    CFLAGS="-g -O2"
2701  else
2702    CFLAGS="-g"
2703  fi
2704else
2705  if test "$GCC" = yes; then
2706    CFLAGS="-O2"
2707  else
2708    CFLAGS=
2709  fi
2710fi
2711echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2712echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2713if test "${ac_cv_prog_cc_stdc+set}" = set; then
2714  echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716  ac_cv_prog_cc_stdc=no
2717ac_save_CC=$CC
2718cat >conftest.$ac_ext <<_ACEOF
2719/* confdefs.h.  */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h.  */
2724#include <stdarg.h>
2725#include <stdio.h>
2726#include <sys/types.h>
2727#include <sys/stat.h>
2728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2729struct buf { int x; };
2730FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731static char *e (p, i)
2732     char **p;
2733     int i;
2734{
2735  return p[i];
2736}
2737static char *f (char * (*g) (char **, int), char **p, ...)
2738{
2739  char *s;
2740  va_list v;
2741  va_start (v,p);
2742  s = g (p, va_arg (v,int));
2743  va_end (v);
2744  return s;
2745}
2746
2747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2748   function prototypes and stuff, but not '\xHH' hex character constants.
2749   These don't provoke an error unfortunately, instead are silently treated
2750   as 'x'.  The following induces an error, until -std1 is added to get
2751   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2752   array size at least.  It's necessary to write '\x00'==0 to get something
2753   that's true only with -std1.  */
2754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755
2756int test (int i, double x);
2757struct s1 {int (*f) (int a);};
2758struct s2 {int (*f) (double a);};
2759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760int argc;
2761char **argv;
2762int
2763main ()
2764{
2765return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2766  ;
2767  return 0;
2768}
2769_ACEOF
2770# Don't try gcc -ansi; that turns off useful extensions and
2771# breaks some systems' header files.
2772# AIX                   -qlanglvl=ansi
2773# Ultrix and OSF/1      -std1
2774# HP-UX 10.20 and later -Ae
2775# HP-UX older versions  -Aa -D_HPUX_SOURCE
2776# SVR4                  -Xc -D__EXTENSIONS__
2777for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778do
2779  CC="$ac_save_CC $ac_arg"
2780  rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782  (eval $ac_compile) 2>conftest.er1
2783  ac_status=$?
2784  grep -v '^ *+' conftest.er1 >conftest.err
2785  rm -f conftest.er1
2786  cat conftest.err >&5
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); } &&
2789         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795         { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  ac_cv_prog_cc_stdc=$ac_arg
2802break
2803else
2804  echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807fi
2808rm -f conftest.err conftest.$ac_objext
2809done
2810rm -f conftest.$ac_ext conftest.$ac_objext
2811CC=$ac_save_CC
2812
2813fi
2814
2815case "x$ac_cv_prog_cc_stdc" in
2816  x|xno)
2817    echo "$as_me:$LINENO: result: none needed" >&5
2818echo "${ECHO_T}none needed" >&6 ;;
2819  *)
2820    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2821echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2822    CC="$CC $ac_cv_prog_cc_stdc" ;;
2823esac
2824
2825# Some people use a C++ compiler to compile C.  Since we use `exit',
2826# in C++ we need to declare it.  In case someone uses the same compiler
2827# for both compiling C and C++ we need to have the C++ compiler decide
2828# the declaration of exit, since it's the most demanding environment.
2829cat >conftest.$ac_ext <<_ACEOF
2830#ifndef __cplusplus
2831  choke me
2832#endif
2833_ACEOF
2834rm -f conftest.$ac_objext
2835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836  (eval $ac_compile) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845  (eval $ac_try) 2>&5
2846  ac_status=$?
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); }; } &&
2849         { ac_try='test -s conftest.$ac_objext'
2850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851  (eval $ac_try) 2>&5
2852  ac_status=$?
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); }; }; then
2855  for ac_declaration in \
2856   '' \
2857   'extern "C" void std::exit (int) throw (); using std::exit;' \
2858   'extern "C" void std::exit (int); using std::exit;' \
2859   'extern "C" void exit (int) throw ();' \
2860   'extern "C" void exit (int);' \
2861   'void exit (int);'
2862do
2863  cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869$ac_declaration
2870#include <stdlib.h>
2871int
2872main ()
2873{
2874exit (42);
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext
2880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881  (eval $ac_compile) 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } &&
2888         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894         { ac_try='test -s conftest.$ac_objext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  :
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905continue
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908  cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914$ac_declaration
2915int
2916main ()
2917{
2918exit (42);
2919  ;
2920  return 0;
2921}
2922_ACEOF
2923rm -f conftest.$ac_objext
2924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925  (eval $ac_compile) 2>conftest.er1
2926  ac_status=$?
2927  grep -v '^ *+' conftest.er1 >conftest.err
2928  rm -f conftest.er1
2929  cat conftest.err >&5
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); } &&
2932         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934  (eval $ac_try) 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; } &&
2938         { ac_try='test -s conftest.$ac_objext'
2939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940  (eval $ac_try) 2>&5
2941  ac_status=$?
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); }; }; then
2944  break
2945else
2946  echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949fi
2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951done
2952rm -f conftest*
2953if test -n "$ac_declaration"; then
2954  echo '#ifdef __cplusplus' >>confdefs.h
2955  echo $ac_declaration      >>confdefs.h
2956  echo '#endif'             >>confdefs.h
2957fi
2958
2959else
2960  echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963fi
2964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965ac_ext=c
2966ac_cpp='$CPP $CPPFLAGS'
2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970DEPDIR="${am__leading_dot}deps"
2971
2972          ac_config_commands="$ac_config_commands depfiles"
2973
2974
2975am_make=${MAKE-make}
2976cat > confinc << 'END'
2977am__doit:
2978        @echo done
2979.PHONY: am__doit
2980END
2981# If we don't find an include directive, just comment out the code.
2982echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2983echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2984am__include="#"
2985am__quote=
2986_am_result=none
2987# First try GNU make style include.
2988echo "include confinc" > confmf
2989# We grep out `Entering directory' and `Leaving directory'
2990# messages which can occur if `w' ends up in MAKEFLAGS.
2991# In particular we don't look at `^make:' because GNU make might
2992# be invoked under some other name (usually "gmake"), in which
2993# case it prints its new name instead of `make'.
2994if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2995   am__include=include
2996   am__quote=
2997   _am_result=GNU
2998fi
2999# Now try BSD make style include.
3000if test "$am__include" = "#"; then
3001   echo '.include "confinc"' > confmf
3002   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3003      am__include=.include
3004      am__quote="\""
3005      _am_result=BSD
3006   fi
3007fi
3008
3009
3010echo "$as_me:$LINENO: result: $_am_result" >&5
3011echo "${ECHO_T}$_am_result" >&6
3012rm -f confinc confmf
3013
3014# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3015if test "${enable_dependency_tracking+set}" = set; then
3016  enableval="$enable_dependency_tracking"
3017
3018fi;
3019if test "x$enable_dependency_tracking" != xno; then
3020  am_depcomp="$ac_aux_dir/depcomp"
3021  AMDEPBACKSLASH='\'
3022fi
3023
3024
3025if test "x$enable_dependency_tracking" != xno; then
3026  AMDEP_TRUE=
3027  AMDEP_FALSE='#'
3028else
3029  AMDEP_TRUE='#'
3030  AMDEP_FALSE=
3031fi
3032
3033
3034
3035
3036depcc="$CC"   am_compiler_list=
3037
3038echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3039echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3040if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3041  echo $ECHO_N "(cached) $ECHO_C" >&6
3042else
3043  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3044  # We make a subdir and do the tests there.  Otherwise we can end up
3045  # making bogus files that we don't know about and never remove.  For
3046  # instance it was reported that on HP-UX the gcc test will end up
3047  # making a dummy file named `D' -- because `-MD' means `put the output
3048  # in D'.
3049  mkdir conftest.dir
3050  # Copy depcomp to subdir because otherwise we won't find it if we're
3051  # using a relative directory.
3052  cp "$am_depcomp" conftest.dir
3053  cd conftest.dir
3054  # We will build objects and dependencies in a subdirectory because
3055  # it helps to detect inapplicable dependency modes.  For instance
3056  # both Tru64's cc and ICC support -MD to output dependencies as a
3057  # side effect of compilation, but ICC will put the dependencies in
3058  # the current directory while Tru64 will put them in the object
3059  # directory.
3060  mkdir sub
3061
3062  am_cv_CC_dependencies_compiler_type=none
3063  if test "$am_compiler_list" = ""; then
3064     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3065  fi
3066  for depmode in $am_compiler_list; do
3067    # Setup a source with many dependencies, because some compilers
3068    # like to wrap large dependency lists on column 80 (with \), and
3069    # we should not choose a depcomp mode which is confused by this.
3070    #
3071    # We need to recreate these files for each test, as the compiler may
3072    # overwrite some of them when testing with obscure command lines.
3073    # This happens at least with the AIX C compiler.
3074    : > sub/conftest.c
3075    for i in 1 2 3 4 5 6; do
3076      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3077      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3078      # Solaris 8's {/usr,}/bin/sh.
3079      touch sub/conftst$i.h
3080    done
3081    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3082
3083    case $depmode in
3084    nosideeffect)
3085      # after this tag, mechanisms are not by side-effect, so they'll
3086      # only be used when explicitly requested
3087      if test "x$enable_dependency_tracking" = xyes; then
3088        continue
3089      else
3090        break
3091      fi
3092      ;;
3093    none) break ;;
3094    esac
3095    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3096    # mode.  It turns out that the SunPro C++ compiler does not properly
3097    # handle `-M -o', and we need to detect this.
3098    if depmode=$depmode \
3099       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3100       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3101       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3102         >/dev/null 2>conftest.err &&
3103       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3104       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3105       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3106      # icc doesn't choke on unknown options, it will just issue warnings
3107      # or remarks (even with -Werror).  So we grep stderr for any message
3108      # that says an option was ignored or not supported.
3109      # When given -MP, icc 7.0 and 7.1 complain thusly:
3110      #   icc: Command line warning: ignoring option '-M'; no argument required
3111      # The diagnosis changed in icc 8.0:
3112      #   icc: Command line remark: option '-MP' not supported
3113      if (grep 'ignoring option' conftest.err ||
3114          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3115        am_cv_CC_dependencies_compiler_type=$depmode
3116        break
3117      fi
3118    fi
3119  done
3120
3121  cd ..
3122  rm -rf conftest.dir
3123else
3124  am_cv_CC_dependencies_compiler_type=none
3125fi
3126
3127fi
3128echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3129echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3130CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3131
3132
3133
3134if
3135  test "x$enable_dependency_tracking" != xno \
3136  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3137  am__fastdepCC_TRUE=
3138  am__fastdepCC_FALSE='#'
3139else
3140  am__fastdepCC_TRUE='#'
3141  am__fastdepCC_FALSE=
3142fi
3143
3144
3145ac_ext=cc
3146ac_cpp='$CXXCPP $CPPFLAGS'
3147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3150if test -n "$ac_tool_prefix"; then
3151  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3152  do
3153    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155echo "$as_me:$LINENO: checking for $ac_word" >&5
3156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3157if test "${ac_cv_prog_CXX+set}" = set; then
3158  echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160  if test -n "$CXX"; then
3161  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3162else
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166  IFS=$as_save_IFS
3167  test -z "$as_dir" && as_dir=.
3168  for ac_exec_ext in '' $ac_executable_extensions; do
3169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172    break 2
3173  fi
3174done
3175done
3176
3177fi
3178fi
3179CXX=$ac_cv_prog_CXX
3180if test -n "$CXX"; then
3181  echo "$as_me:$LINENO: result: $CXX" >&5
3182echo "${ECHO_T}$CXX" >&6
3183else
3184  echo "$as_me:$LINENO: result: no" >&5
3185echo "${ECHO_T}no" >&6
3186fi
3187
3188    test -n "$CXX" && break
3189  done
3190fi
3191if test -z "$CXX"; then
3192  ac_ct_CXX=$CXX
3193  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3194do
3195  # Extract the first word of "$ac_prog", so it can be a program name with args.
3196set dummy $ac_prog; ac_word=$2
3197echo "$as_me:$LINENO: checking for $ac_word" >&5
3198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3200  echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202  if test -n "$ac_ct_CXX"; then
3203  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3204else
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208  IFS=$as_save_IFS
3209  test -z "$as_dir" && as_dir=.
3210  for ac_exec_ext in '' $ac_executable_extensions; do
3211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212    ac_cv_prog_ac_ct_CXX="$ac_prog"
3213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214    break 2
3215  fi
3216done
3217done
3218
3219fi
3220fi
3221ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3222if test -n "$ac_ct_CXX"; then
3223  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3224echo "${ECHO_T}$ac_ct_CXX" >&6
3225else
3226  echo "$as_me:$LINENO: result: no" >&5
3227echo "${ECHO_T}no" >&6
3228fi
3229
3230  test -n "$ac_ct_CXX" && break
3231done
3232test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3233
3234  CXX=$ac_ct_CXX
3235fi
3236
3237
3238# Provide some information about the compiler.
3239echo "$as_me:$LINENO:" \
3240     "checking for C++ compiler version" >&5
3241ac_compiler=`set X $ac_compile; echo $2`
3242{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3243  (eval $ac_compiler --version </dev/null >&5) 2>&5
3244  ac_status=$?
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); }
3247{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3248  (eval $ac_compiler -v </dev/null >&5) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }
3252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3253  (eval $ac_compiler -V </dev/null >&5) 2>&5
3254  ac_status=$?
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); }
3257
3258echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3259echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3260if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3261  echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269
3270int
3271main ()
3272{
3273#ifndef __GNUC__
3274       choke me
3275#endif
3276
3277  ;
3278  return 0;
3279}
3280_ACEOF
3281rm -f conftest.$ac_objext
3282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283  (eval $ac_compile) 2>conftest.er1
3284  ac_status=$?
3285  grep -v '^ *+' conftest.er1 >conftest.err
3286  rm -f conftest.er1
3287  cat conftest.err >&5
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); } &&
3290         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292  (eval $ac_try) 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }; } &&
3296         { ac_try='test -s conftest.$ac_objext'
3297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298  (eval $ac_try) 2>&5
3299  ac_status=$?
3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); }; }; then
3302  ac_compiler_gnu=yes
3303else
3304  echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307ac_compiler_gnu=no
3308fi
3309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3311
3312fi
3313echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3314echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3315GXX=`test $ac_compiler_gnu = yes && echo yes`
3316ac_test_CXXFLAGS=${CXXFLAGS+set}
3317ac_save_CXXFLAGS=$CXXFLAGS
3318CXXFLAGS="-g"
3319echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3320echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3321if test "${ac_cv_prog_cxx_g+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h.  */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext
3340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341  (eval $ac_compile) 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } &&
3348         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350  (eval $ac_try) 2>&5
3351  ac_status=$?
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); }; } &&
3354         { ac_try='test -s conftest.$ac_objext'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; }; then
3360  ac_cv_prog_cxx_g=yes
3361else
3362  echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365ac_cv_prog_cxx_g=no
3366fi
3367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368fi
3369echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3370echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3371if test "$ac_test_CXXFLAGS" = set; then
3372  CXXFLAGS=$ac_save_CXXFLAGS
3373elif test $ac_cv_prog_cxx_g = yes; then
3374  if test "$GXX" = yes; then
3375    CXXFLAGS="-g -O2"
3376  else
3377    CXXFLAGS="-g"
3378  fi
3379else
3380  if test "$GXX" = yes; then
3381    CXXFLAGS="-O2"
3382  else
3383    CXXFLAGS=
3384  fi
3385fi
3386for ac_declaration in \
3387   '' \
3388   'extern "C" void std::exit (int) throw (); using std::exit;' \
3389   'extern "C" void std::exit (int); using std::exit;' \
3390   'extern "C" void exit (int) throw ();' \
3391   'extern "C" void exit (int);' \
3392   'void exit (int);'
3393do
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400$ac_declaration
3401#include <stdlib.h>
3402int
3403main ()
3404{
3405exit (42);
3406  ;
3407  return 0;
3408}
3409_ACEOF
3410rm -f conftest.$ac_objext
3411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412  (eval $ac_compile) 2>conftest.er1
3413  ac_status=$?
3414  grep -v '^ *+' conftest.er1 >conftest.err
3415  rm -f conftest.er1
3416  cat conftest.err >&5
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); } &&
3419         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; } &&
3425         { ac_try='test -s conftest.$ac_objext'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; }; then
3431  :
3432else
3433  echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436continue
3437fi
3438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439  cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h.  */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h.  */
3445$ac_declaration
3446int
3447main ()
3448{
3449exit (42);
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456  (eval $ac_compile) 2>conftest.er1
3457  ac_status=$?
3458  grep -v '^ *+' conftest.er1 >conftest.err
3459  rm -f conftest.er1
3460  cat conftest.err >&5
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); } &&
3463         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469         { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  break
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480fi
3481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482done
3483rm -f conftest*
3484if test -n "$ac_declaration"; then
3485  echo '#ifdef __cplusplus' >>confdefs.h
3486  echo $ac_declaration      >>confdefs.h
3487  echo '#endif'             >>confdefs.h
3488fi
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496depcc="$CXX"  am_compiler_list=
3497
3498echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3499echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3500if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3501  echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3504  # We make a subdir and do the tests there.  Otherwise we can end up
3505  # making bogus files that we don't know about and never remove.  For
3506  # instance it was reported that on HP-UX the gcc test will end up
3507  # making a dummy file named `D' -- because `-MD' means `put the output
3508  # in D'.
3509  mkdir conftest.dir
3510  # Copy depcomp to subdir because otherwise we won't find it if we're
3511  # using a relative directory.
3512  cp "$am_depcomp" conftest.dir
3513  cd conftest.dir
3514  # We will build objects and dependencies in a subdirectory because
3515  # it helps to detect inapplicable dependency modes.  For instance
3516  # both Tru64's cc and ICC support -MD to output dependencies as a
3517  # side effect of compilation, but ICC will put the dependencies in
3518  # the current directory while Tru64 will put them in the object
3519  # directory.
3520  mkdir sub
3521
3522  am_cv_CXX_dependencies_compiler_type=none
3523  if test "$am_compiler_list" = ""; then
3524     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3525  fi
3526  for depmode in $am_compiler_list; do
3527    # Setup a source with many dependencies, because some compilers
3528    # like to wrap large dependency lists on column 80 (with \), and
3529    # we should not choose a depcomp mode which is confused by this.
3530    #
3531    # We need to recreate these files for each test, as the compiler may
3532    # overwrite some of them when testing with obscure command lines.
3533    # This happens at least with the AIX C compiler.
3534    : > sub/conftest.c
3535    for i in 1 2 3 4 5 6; do
3536      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3537      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3538      # Solaris 8's {/usr,}/bin/sh.
3539      touch sub/conftst$i.h
3540    done
3541    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3542
3543    case $depmode in
3544    nosideeffect)
3545      # after this tag, mechanisms are not by side-effect, so they'll
3546      # only be used when explicitly requested
3547      if test "x$enable_dependency_tracking" = xyes; then
3548        continue
3549      else
3550        break
3551      fi
3552      ;;
3553    none) break ;;
3554    esac
3555    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3556    # mode.  It turns out that the SunPro C++ compiler does not properly
3557    # handle `-M -o', and we need to detect this.
3558    if depmode=$depmode \
3559       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3560       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3561       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3562         >/dev/null 2>conftest.err &&
3563       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3565       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566      # icc doesn't choke on unknown options, it will just issue warnings
3567      # or remarks (even with -Werror).  So we grep stderr for any message
3568      # that says an option was ignored or not supported.
3569      # When given -MP, icc 7.0 and 7.1 complain thusly:
3570      #   icc: Command line warning: ignoring option '-M'; no argument required
3571      # The diagnosis changed in icc 8.0:
3572      #   icc: Command line remark: option '-MP' not supported
3573      if (grep 'ignoring option' conftest.err ||
3574          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3575        am_cv_CXX_dependencies_compiler_type=$depmode
3576        break
3577      fi
3578    fi
3579  done
3580
3581  cd ..
3582  rm -rf conftest.dir
3583else
3584  am_cv_CXX_dependencies_compiler_type=none
3585fi
3586
3587fi
3588echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3589echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3590CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3591
3592
3593
3594if
3595  test "x$enable_dependency_tracking" != xno \
3596  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3597  am__fastdepCXX_TRUE=
3598  am__fastdepCXX_FALSE='#'
3599else
3600  am__fastdepCXX_TRUE='#'
3601  am__fastdepCXX_FALSE=
3602fi
3603
3604
3605# Find a good install program.  We prefer a C program (faster),
3606# so one script is as good as another.  But avoid the broken or
3607# incompatible versions:
3608# SysV /etc/install, /usr/sbin/install
3609# SunOS /usr/etc/install
3610# IRIX /sbin/install
3611# AIX /bin/install
3612# AmigaOS /C/install, which installs bootblocks on floppy discs
3613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3616# OS/2's system install, which has a completely different semantic
3617# ./install, which can be erroneously created by make from ./install.sh.
3618echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3619echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3620if test -z "$INSTALL"; then
3621if test "${ac_cv_path_install+set}" = set; then
3622  echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629  # Account for people who put trailing slashes in PATH elements.
3630case $as_dir/ in
3631  ./ | .// | /cC/* | \
3632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3633  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3634  /usr/ucb/* ) ;;
3635  *)
3636    # OSF1 and SCO ODT 3.0 have their own names for install.
3637    # Don't use installbsd from OSF since it installs stuff as root
3638    # by default.
3639    for ac_prog in ginstall scoinst install; do
3640      for ac_exec_ext in '' $ac_executable_extensions; do
3641        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3642          if test $ac_prog = install &&
3643            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644            # AIX install.  It has an incompatible calling convention.
3645            :
3646          elif test $ac_prog = install &&
3647            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3648            # program-specific install script used by HP pwplus--don't use.
3649            :
3650          else
3651            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3652            break 3
3653          fi
3654        fi
3655      done
3656    done
3657    ;;
3658esac
3659done
3660
3661
3662fi
3663  if test "${ac_cv_path_install+set}" = set; then
3664    INSTALL=$ac_cv_path_install
3665  else
3666    # As a last resort, use the slow shell script.  We don't cache a
3667    # path for INSTALL within a source directory, because that will
3668    # break other packages using the cache if that directory is
3669    # removed, or if the path is relative.
3670    INSTALL=$ac_install_sh
3671  fi
3672fi
3673echo "$as_me:$LINENO: result: $INSTALL" >&5
3674echo "${ECHO_T}$INSTALL" >&6
3675
3676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3677# It thinks the first close brace ends the variable substitution.
3678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3679
3680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3681
3682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3683
3684
3685# Check whether --enable-shared or --disable-shared was given.
3686if test "${enable_shared+set}" = set; then
3687  enableval="$enable_shared"
3688  p=${PACKAGE-default}
3689    case $enableval in
3690    yes) enable_shared=yes ;;
3691    no) enable_shared=no ;;
3692    *)
3693      enable_shared=no
3694      # Look at the argument we got.  We use all the common list separators.
3695      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3696      for pkg in $enableval; do
3697        IFS="$lt_save_ifs"
3698        if test "X$pkg" = "X$p"; then
3699          enable_shared=yes
3700        fi
3701      done
3702      IFS="$lt_save_ifs"
3703      ;;
3704    esac
3705else
3706  enable_shared=yes
3707fi;
3708
3709# Check whether --enable-static or --disable-static was given.
3710if test "${enable_static+set}" = set; then
3711  enableval="$enable_static"
3712  p=${PACKAGE-default}
3713    case $enableval in
3714    yes) enable_static=yes ;;
3715    no) enable_static=no ;;
3716    *)
3717     enable_static=no
3718      # Look at the argument we got.  We use all the common list separators.
3719      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3720      for pkg in $enableval; do
3721        IFS="$lt_save_ifs"
3722        if test "X$pkg" = "X$p"; then
3723          enable_static=yes
3724        fi
3725      done
3726      IFS="$lt_save_ifs"
3727      ;;
3728    esac
3729else
3730  enable_static=yes
3731fi;
3732
3733# Check whether --enable-fast-install or --disable-fast-install was given.
3734if test "${enable_fast_install+set}" = set; then
3735  enableval="$enable_fast_install"
3736  p=${PACKAGE-default}
3737    case $enableval in
3738    yes) enable_fast_install=yes ;;
3739    no) enable_fast_install=no ;;
3740    *)
3741      enable_fast_install=no
3742      # Look at the argument we got.  We use all the common list separators.
3743      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3744      for pkg in $enableval; do
3745        IFS="$lt_save_ifs"
3746        if test "X$pkg" = "X$p"; then
3747          enable_fast_install=yes
3748        fi
3749      done
3750      IFS="$lt_save_ifs"
3751      ;;
3752    esac
3753else
3754  enable_fast_install=yes
3755fi;
3756
3757echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3758echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3759if test "${lt_cv_path_SED+set}" = set; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  # Loop through the user's path and test for sed and gsed.
3763# Then use that list of sed's as ones to test for truncation.
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767  IFS=$as_save_IFS
3768  test -z "$as_dir" && as_dir=.
3769  for lt_ac_prog in sed gsed; do
3770    for ac_exec_ext in '' $ac_executable_extensions; do
3771      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3772        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3773      fi
3774    done
3775  done
3776done
3777lt_ac_max=0
3778lt_ac_count=0
3779# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3780# along with /bin/sed that truncates output.
3781for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3782  test ! -f $lt_ac_sed && break
3783  cat /dev/null > conftest.in
3784  lt_ac_count=0
3785  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3786  # Check for GNU sed and select it if it is found.
3787  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3788    lt_cv_path_SED=$lt_ac_sed
3789    break
3790  fi
3791  while true; do
3792    cat conftest.in conftest.in >conftest.tmp
3793    mv conftest.tmp conftest.in
3794    cp conftest.in conftest.nl
3795    echo >>conftest.nl
3796    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3797    cmp -s conftest.out conftest.nl || break
3798    # 10000 chars as input seems more than enough
3799    test $lt_ac_count -gt 10 && break
3800    lt_ac_count=`expr $lt_ac_count + 1`
3801    if test $lt_ac_count -gt $lt_ac_max; then
3802      lt_ac_max=$lt_ac_count
3803      lt_cv_path_SED=$lt_ac_sed
3804    fi
3805  done
3806done
3807SED=$lt_cv_path_SED
3808
3809fi
3810
3811echo "$as_me:$LINENO: result: $SED" >&5
3812echo "${ECHO_T}$SED" >&6
3813
3814echo "$as_me:$LINENO: checking for egrep" >&5
3815echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3816if test "${ac_cv_prog_egrep+set}" = set; then
3817  echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3820    then ac_cv_prog_egrep='grep -E'
3821    else ac_cv_prog_egrep='egrep'
3822    fi
3823fi
3824echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3825echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3826 EGREP=$ac_cv_prog_egrep
3827
3828
3829
3830# Check whether --with-gnu-ld or --without-gnu-ld was given.
3831if test "${with_gnu_ld+set}" = set; then
3832  withval="$with_gnu_ld"
3833  test "$withval" = no || with_gnu_ld=yes
3834else
3835  with_gnu_ld=no
3836fi;
3837ac_prog=ld
3838if test "$GCC" = yes; then
3839  # Check if gcc -print-prog-name=ld gives a path.
3840  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3841echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3842  case $host in
3843  *-*-mingw*)
3844    # gcc leaves a trailing carriage return which upsets mingw
3845    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3846  *)
3847    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3848  esac
3849  case $ac_prog in
3850    # Accept absolute paths.
3851    [\\/]* | ?:[\\/]*)
3852      re_direlt='/[^/][^/]*/\.\./'
3853      # Canonicalize the pathname of ld
3854      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3855      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3856        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3857      done
3858      test -z "$LD" && LD="$ac_prog"
3859      ;;
3860  "")
3861    # If it fails, then pretend we aren't using GCC.
3862    ac_prog=ld
3863    ;;
3864  *)
3865    # If it is relative, then search for the first ld in PATH.
3866    with_gnu_ld=unknown
3867    ;;
3868  esac
3869elif test "$with_gnu_ld" = yes; then
3870  echo "$as_me:$LINENO: checking for GNU ld" >&5
3871echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3872else
3873  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3874echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3875fi
3876if test "${lt_cv_path_LD+set}" = set; then
3877  echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879  if test -z "$LD"; then
3880  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3881  for ac_dir in $PATH; do
3882    IFS="$lt_save_ifs"
3883    test -z "$ac_dir" && ac_dir=.
3884    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3885      lt_cv_path_LD="$ac_dir/$ac_prog"
3886      # Check to see if the program is GNU ld.  I'd rather use --version,
3887      # but apparently some GNU ld's only accept -v.
3888      # Break only if it was the GNU/non-GNU ld that we prefer.
3889      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3890      *GNU* | *'with BFD'*)
3891        test "$with_gnu_ld" != no && break
3892        ;;
3893      *)
3894        test "$with_gnu_ld" != yes && break
3895        ;;
3896      esac
3897    fi
3898  done
3899  IFS="$lt_save_ifs"
3900else
3901  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3902fi
3903fi
3904
3905LD="$lt_cv_path_LD"
3906if test -n "$LD"; then
3907  echo "$as_me:$LINENO: result: $LD" >&5
3908echo "${ECHO_T}$LD" >&6
3909else
3910  echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
3912fi
3913test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3914echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3915   { (exit 1); exit 1; }; }
3916echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3917echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3918if test "${lt_cv_prog_gnu_ld+set}" = set; then
3919  echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3922case `$LD -v 2>&1 </dev/null` in
3923*GNU* | *'with BFD'*)
3924  lt_cv_prog_gnu_ld=yes
3925  ;;
3926*)
3927  lt_cv_prog_gnu_ld=no
3928  ;;
3929esac
3930fi
3931echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3932echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3933with_gnu_ld=$lt_cv_prog_gnu_ld
3934
3935
3936echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3937echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3938if test "${lt_cv_ld_reload_flag+set}" = set; then
3939  echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941  lt_cv_ld_reload_flag='-r'
3942fi
3943echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3944echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3945reload_flag=$lt_cv_ld_reload_flag
3946case $reload_flag in
3947"" | " "*) ;;
3948*) reload_flag=" $reload_flag" ;;
3949esac
3950reload_cmds='$LD$reload_flag -o $output$reload_objs'
3951
3952echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3953echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3954if test "${lt_cv_path_NM+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  if test -n "$NM"; then
3958  # Let the user override the test.
3959  lt_cv_path_NM="$NM"
3960else
3961  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3962  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3963    IFS="$lt_save_ifs"
3964    test -z "$ac_dir" && ac_dir=.
3965    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3966    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3967      # Check to see if the nm accepts a BSD-compat flag.
3968      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3969      #   nm: unknown option "B" ignored
3970      # Tru64's nm complains that /dev/null is an invalid object file
3971      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3972      */dev/null* | *'Invalid file or object type'*)
3973        lt_cv_path_NM="$tmp_nm -B"
3974        break
3975        ;;
3976      *)
3977        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3978        */dev/null*)
3979          lt_cv_path_NM="$tmp_nm -p"
3980          break
3981          ;;
3982        *)
3983          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3984          continue # so that we can try to find one that supports BSD flags
3985          ;;
3986        esac
3987      esac
3988    fi
3989  done
3990  IFS="$lt_save_ifs"
3991  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3992fi
3993fi
3994echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3995echo "${ECHO_T}$lt_cv_path_NM" >&6
3996NM="$lt_cv_path_NM"
3997
3998echo "$as_me:$LINENO: checking whether ln -s works" >&5
3999echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4000LN_S=$as_ln_s
4001if test "$LN_S" = "ln -s"; then
4002  echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
4004else
4005  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4006echo "${ECHO_T}no, using $LN_S" >&6
4007fi
4008
4009echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4010echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4011if test "${lt_cv_deplibs_check_method+set}" = set; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014  lt_cv_file_magic_cmd='$MAGIC_CMD'
4015lt_cv_file_magic_test_file=
4016lt_cv_deplibs_check_method='unknown'
4017# Need to set the preceding variable on all platforms that support
4018# interlibrary dependencies.
4019# 'none' -- dependencies not supported.
4020# `unknown' -- same as none, but documents that we really don't know.
4021# 'pass_all' -- all dependencies passed with no checks.
4022# 'test_compile' -- check by making test program.
4023# 'file_magic [[regex]]' -- check by looking for files in library path
4024# which responds to the $file_magic_cmd with a given extended regex.
4025# If you have `file' or equivalent on your system and you're not sure
4026# whether `pass_all' will *always* work, you probably want this one.
4027
4028case $host_os in
4029aix4* | aix5*)
4030  lt_cv_deplibs_check_method=pass_all
4031  ;;
4032
4033beos*)
4034  lt_cv_deplibs_check_method=pass_all
4035  ;;
4036
4037bsdi4*)
4038  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4039  lt_cv_file_magic_cmd='/usr/bin/file -L'
4040  lt_cv_file_magic_test_file=/shlib/libc.so
4041  ;;
4042
4043cygwin*)
4044  # func_win32_libid is a shell function defined in ltmain.sh
4045  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4046  lt_cv_file_magic_cmd='func_win32_libid'
4047  ;;
4048
4049mingw* | pw32*)
4050  # Base MSYS/MinGW do not provide the 'file' command needed by
4051  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4052  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4053  lt_cv_file_magic_cmd='$OBJDUMP -f'
4054  ;;
4055
4056darwin* | rhapsody*)
4057  lt_cv_deplibs_check_method=pass_all
4058  ;;
4059
4060freebsd* | kfreebsd*-gnu)
4061  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4062    case $host_cpu in
4063    i*86 )
4064      # Not sure whether the presence of OpenBSD here was a mistake.
4065      # Let's accept both of them until this is cleared up.
4066      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4067      lt_cv_file_magic_cmd=/usr/bin/file
4068      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4069      ;;
4070    esac
4071  else
4072    lt_cv_deplibs_check_method=pass_all
4073  fi
4074  ;;
4075
4076gnu*)
4077  lt_cv_deplibs_check_method=pass_all
4078  ;;
4079
4080hpux10.20* | hpux11*)
4081  lt_cv_file_magic_cmd=/usr/bin/file
4082  case "$host_cpu" in
4083  ia64*)
4084    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4085    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4086    ;;
4087  hppa*64*)
4088    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]'
4089    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4090    ;;
4091  *)
4092    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4093    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4094    ;;
4095  esac
4096  ;;
4097
4098irix5* | irix6* | nonstopux*)
4099  case $LD in
4100  *-32|*"-32 ") libmagic=32-bit;;
4101  *-n32|*"-n32 ") libmagic=N32;;
4102  *-64|*"-64 ") libmagic=64-bit;;
4103  *) libmagic=never-match;;
4104  esac
4105  lt_cv_deplibs_check_method=pass_all
4106  ;;
4107
4108# This must be Linux ELF.
4109linux*)
4110  lt_cv_deplibs_check_method=pass_all
4111  ;;
4112
4113netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4114  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4115    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4116  else
4117    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4118  fi
4119  ;;
4120
4121newos6*)
4122  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4123  lt_cv_file_magic_cmd=/usr/bin/file
4124  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4125  ;;
4126
4127nto-qnx*)
4128  lt_cv_deplibs_check_method=unknown
4129  ;;
4130
4131openbsd*)
4132  lt_cv_file_magic_cmd=/usr/bin/file
4133  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4134  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4135    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4136  else
4137    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4138  fi
4139  ;;
4140
4141osf3* | osf4* | osf5*)
4142  lt_cv_deplibs_check_method=pass_all
4143  ;;
4144
4145sco3.2v5*)
4146  lt_cv_deplibs_check_method=pass_all
4147  ;;
4148
4149solaris*)
4150  lt_cv_deplibs_check_method=pass_all
4151  ;;
4152
4153sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4154  case $host_vendor in
4155  motorola)
4156    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]'
4157    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4158    ;;
4159  ncr)
4160    lt_cv_deplibs_check_method=pass_all
4161    ;;
4162  sequent)
4163    lt_cv_file_magic_cmd='/bin/file'
4164    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4165    ;;
4166  sni)
4167    lt_cv_file_magic_cmd='/bin/file'
4168    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4169    lt_cv_file_magic_test_file=/lib/libc.so
4170    ;;
4171  siemens)
4172    lt_cv_deplibs_check_method=pass_all
4173    ;;
4174  esac
4175  ;;
4176
4177sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4178  lt_cv_deplibs_check_method=pass_all
4179  ;;
4180esac
4181
4182fi
4183echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4184echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4185file_magic_cmd=$lt_cv_file_magic_cmd
4186deplibs_check_method=$lt_cv_deplibs_check_method
4187test -z "$deplibs_check_method" && deplibs_check_method=unknown
4188
4189
4190
4191
4192# If no C compiler was specified, use CC.
4193LTCC=${LTCC-"$CC"}
4194
4195# Allow CC to be a program name with arguments.
4196compiler=$CC
4197
4198
4199# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4200if test "${enable_libtool_lock+set}" = set; then
4201  enableval="$enable_libtool_lock"
4202
4203fi;
4204test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4205
4206# Some flags need to be propagated to the compiler or linker for good
4207# libtool support.
4208case $host in
4209ia64-*-hpux*)
4210  # Find out which ABI we are using.
4211  echo 'int i;' > conftest.$ac_ext
4212  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213  (eval $ac_compile) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; then
4217    case `/usr/bin/file conftest.$ac_objext` in
4218    *ELF-32*)
4219      HPUX_IA64_MODE="32"
4220      ;;
4221    *ELF-64*)
4222      HPUX_IA64_MODE="64"
4223      ;;
4224    esac
4225  fi
4226  rm -rf conftest*
4227  ;;
4228*-*-irix6*)
4229  # Find out which ABI we are using.
4230  echo '#line 4230 "configure"' > conftest.$ac_ext
4231  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232  (eval $ac_compile) 2>&5
4233  ac_status=$?
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); }; then
4236   if test "$lt_cv_prog_gnu_ld" = yes; then
4237    case `/usr/bin/file conftest.$ac_objext` in
4238    *32-bit*)
4239      LD="${LD-ld} -melf32bsmip"
4240      ;;
4241    *N32*)
4242      LD="${LD-ld} -melf32bmipn32"
4243      ;;
4244    *64-bit*)
4245      LD="${LD-ld} -melf64bmip"
4246      ;;
4247    esac
4248   else
4249    case `/usr/bin/file conftest.$ac_objext` in
4250    *32-bit*)
4251      LD="${LD-ld} -32"
4252      ;;
4253    *N32*)
4254      LD="${LD-ld} -n32"
4255      ;;
4256    *64-bit*)
4257      LD="${LD-ld} -64"
4258      ;;
4259    esac
4260   fi
4261  fi
4262  rm -rf conftest*
4263  ;;
4264
4265x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4266  # Find out which ABI we are using.
4267  echo 'int i;' > conftest.$ac_ext
4268  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269  (eval $ac_compile) 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); }; then
4273    case "`/usr/bin/file conftest.o`" in
4274    *32-bit*)
4275      case $host in
4276        x86_64-*linux*)
4277          LD="${LD-ld} -m elf_i386"
4278          ;;
4279        ppc64-*linux*|powerpc64-*linux*)
4280          LD="${LD-ld} -m elf32ppclinux"
4281          ;;
4282        s390x-*linux*)
4283          LD="${LD-ld} -m elf_s390"
4284          ;;
4285        sparc64-*linux*)
4286          LD="${LD-ld} -m elf32_sparc"
4287          ;;
4288      esac
4289      ;;
4290    *64-bit*)
4291      case $host in
4292        x86_64-*linux*)
4293          LD="${LD-ld} -m elf_x86_64"
4294          ;;
4295        ppc*-*linux*|powerpc*-*linux*)
4296          LD="${LD-ld} -m elf64ppc"
4297          ;;
4298        s390*-*linux*)
4299          LD="${LD-ld} -m elf64_s390"
4300          ;;
4301        sparc*-*linux*)
4302          LD="${LD-ld} -m elf64_sparc"
4303          ;;
4304      esac
4305      ;;
4306    esac
4307  fi
4308  rm -rf conftest*
4309  ;;
4310
4311*-*-sco3.2v5*)
4312  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4313  SAVE_CFLAGS="$CFLAGS"
4314  CFLAGS="$CFLAGS -belf"
4315  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4316echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4317if test "${lt_cv_cc_needs_belf+set}" = set; then
4318  echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320  ac_ext=c
4321ac_cpp='$CPP $CPPFLAGS'
4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326     cat >conftest.$ac_ext <<_ACEOF
4327/* confdefs.h.  */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h.  */
4332
4333int
4334main ()
4335{
4336
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext conftest$ac_exeext
4342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343  (eval $ac_link) 2>conftest.er1
4344  ac_status=$?
4345  grep -v '^ *+' conftest.er1 >conftest.err
4346  rm -f conftest.er1
4347  cat conftest.err >&5
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); } &&
4350         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; } &&
4356         { ac_try='test -s conftest$ac_exeext'
4357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358  (eval $ac_try) 2>&5
4359  ac_status=$?
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); }; }; then
4362  lt_cv_cc_needs_belf=yes
4363else
4364  echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367lt_cv_cc_needs_belf=no
4368fi
4369rm -f conftest.err conftest.$ac_objext \
4370      conftest$ac_exeext conftest.$ac_ext
4371     ac_ext=c
4372ac_cpp='$CPP $CPPFLAGS'
4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377fi
4378echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4379echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4380  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4381    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4382    CFLAGS="$SAVE_CFLAGS"
4383  fi
4384  ;;
4385
4386esac
4387
4388need_locks="$enable_libtool_lock"
4389
4390
4391ac_ext=c
4392ac_cpp='$CPP $CPPFLAGS'
4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4397echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4398# On Suns, sometimes $CPP names a directory.
4399if test -n "$CPP" && test -d "$CPP"; then
4400  CPP=
4401fi
4402if test -z "$CPP"; then
4403  if test "${ac_cv_prog_CPP+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406      # Double quotes because CPP needs to be expanded
4407    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4408    do
4409      ac_preproc_ok=false
4410for ac_c_preproc_warn_flag in '' yes
4411do
4412  # Use a header file that comes with gcc, so configuring glibc
4413  # with a fresh cross-compiler works.
4414  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415  # <limits.h> exists even on freestanding compilers.
4416  # On the NeXT, cc -E runs the code through the compiler's parser,
4417  # not just through cpp. "Syntax error" is here to catch this case.
4418  cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424#ifdef __STDC__
4425# include <limits.h>
4426#else
4427# include <assert.h>
4428#endif
4429                     Syntax error
4430_ACEOF
4431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4439  if test -s conftest.err; then
4440    ac_cpp_err=$ac_c_preproc_warn_flag
4441    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442  else
4443    ac_cpp_err=
4444  fi
4445else
4446  ac_cpp_err=yes
4447fi
4448if test -z "$ac_cpp_err"; then
4449  :
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454  # Broken: fails on valid input.
4455continue
4456fi
4457rm -f conftest.err conftest.$ac_ext
4458
4459  # OK, works on sane cases.  Now check whether non-existent headers
4460  # can be detected and how.
4461  cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h.  */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h.  */
4467#include <ac_nonexistent.h>
4468_ACEOF
4469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } >/dev/null; then
4477  if test -s conftest.err; then
4478    ac_cpp_err=$ac_c_preproc_warn_flag
4479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480  else
4481    ac_cpp_err=
4482  fi
4483else
4484  ac_cpp_err=yes
4485fi
4486if test -z "$ac_cpp_err"; then
4487  # Broken: success on invalid input.
4488continue
4489else
4490  echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493  # Passes both tests.
4494ac_preproc_ok=:
4495break
4496fi
4497rm -f conftest.err conftest.$ac_ext
4498
4499done
4500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501rm -f conftest.err conftest.$ac_ext
4502if $ac_preproc_ok; then
4503  break
4504fi
4505
4506    done
4507    ac_cv_prog_CPP=$CPP
4508
4509fi
4510  CPP=$ac_cv_prog_CPP
4511else
4512  ac_cv_prog_CPP=$CPP
4513fi
4514echo "$as_me:$LINENO: result: $CPP" >&5
4515echo "${ECHO_T}$CPP" >&6
4516ac_preproc_ok=false
4517for ac_c_preproc_warn_flag in '' yes
4518do
4519  # Use a header file that comes with gcc, so configuring glibc
4520  # with a fresh cross-compiler works.
4521  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522  # <limits.h> exists even on freestanding compilers.
4523  # On the NeXT, cc -E runs the code through the compiler's parser,
4524  # not just through cpp. "Syntax error" is here to catch this case.
4525  cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h.  */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h.  */
4531#ifdef __STDC__
4532# include <limits.h>
4533#else
4534# include <assert.h>
4535#endif
4536                     Syntax error
4537_ACEOF
4538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } >/dev/null; then
4546  if test -s conftest.err; then
4547    ac_cpp_err=$ac_c_preproc_warn_flag
4548    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4549  else
4550    ac_cpp_err=
4551  fi
4552else
4553  ac_cpp_err=yes
4554fi
4555if test -z "$ac_cpp_err"; then
4556  :
4557else
4558  echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561  # Broken: fails on valid input.
4562continue
4563fi
4564rm -f conftest.err conftest.$ac_ext
4565
4566  # OK, works on sane cases.  Now check whether non-existent headers
4567  # can be detected and how.
4568  cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574#include <ac_nonexistent.h>
4575_ACEOF
4576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4577  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578  ac_status=$?
4579  grep -v '^ *+' conftest.er1 >conftest.err
4580  rm -f conftest.er1
4581  cat conftest.err >&5
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); } >/dev/null; then
4584  if test -s conftest.err; then
4585    ac_cpp_err=$ac_c_preproc_warn_flag
4586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4587  else
4588    ac_cpp_err=
4589  fi
4590else
4591  ac_cpp_err=yes
4592fi
4593if test -z "$ac_cpp_err"; then
4594  # Broken: success on invalid input.
4595continue
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600  # Passes both tests.
4601ac_preproc_ok=:
4602break
4603fi
4604rm -f conftest.err conftest.$ac_ext
4605
4606done
4607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608rm -f conftest.err conftest.$ac_ext
4609if $ac_preproc_ok; then
4610  :
4611else
4612  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4613See \`config.log' for more details." >&5
4614echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4615See \`config.log' for more details." >&2;}
4616   { (exit 1); exit 1; }; }
4617fi
4618
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625
4626echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4627echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4628if test "${ac_cv_header_stdc+set}" = set; then
4629  echo $ECHO_N "(cached) $ECHO_C" >&6
4630else
4631  cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h.  */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h.  */
4637#include <stdlib.h>
4638#include <stdarg.h>
4639#include <string.h>
4640#include <float.h>
4641
4642int
4643main ()
4644{
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650rm -f conftest.$ac_objext
4651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652  (eval $ac_compile) 2>conftest.er1
4653  ac_status=$?
4654  grep -v '^ *+' conftest.er1 >conftest.err
4655  rm -f conftest.er1
4656  cat conftest.err >&5
4657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); } &&
4659         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661  (eval $ac_try) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); }; } &&
4665         { ac_try='test -s conftest.$ac_objext'
4666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667  (eval $ac_try) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; }; then
4671  ac_cv_header_stdc=yes
4672else
4673  echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676ac_cv_header_stdc=no
4677fi
4678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679
4680if test $ac_cv_header_stdc = yes; then
4681  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4682  cat >conftest.$ac_ext <<_ACEOF
4683/* confdefs.h.  */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h.  */
4688#include <string.h>
4689
4690_ACEOF
4691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692  $EGREP "memchr" >/dev/null 2>&1; then
4693  :
4694else
4695  ac_cv_header_stdc=no
4696fi
4697rm -f conftest*
4698
4699fi
4700
4701if test $ac_cv_header_stdc = yes; then
4702  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4703  cat >conftest.$ac_ext <<_ACEOF
4704/* confdefs.h.  */
4705_ACEOF
4706cat confdefs.h >>conftest.$ac_ext
4707cat >>conftest.$ac_ext <<_ACEOF
4708/* end confdefs.h.  */
4709#include <stdlib.h>
4710
4711_ACEOF
4712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713  $EGREP "free" >/dev/null 2>&1; then
4714  :
4715else
4716  ac_cv_header_stdc=no
4717fi
4718rm -f conftest*
4719
4720fi
4721
4722if test $ac_cv_header_stdc = yes; then
4723  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724  if test "$cross_compiling" = yes; then
4725  :
4726else
4727  cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h.  */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h.  */
4733#include <ctype.h>
4734#if ((' ' & 0x0FF) == 0x020)
4735# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4736# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4737#else
4738# define ISLOWER(c) \
4739                   (('a' <= (c) && (c) <= 'i') \
4740                     || ('j' <= (c) && (c) <= 'r') \
4741                     || ('s' <= (c) && (c) <= 'z'))
4742# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4743#endif
4744
4745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4746int
4747main ()
4748{
4749  int i;
4750  for (i = 0; i < 256; i++)
4751    if (XOR (islower (i), ISLOWER (i))
4752        || toupper (i) != TOUPPER (i))
4753      exit(2);
4754  exit (0);
4755}
4756_ACEOF
4757rm -f conftest$ac_exeext
4758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759  (eval $ac_link) 2>&5
4760  ac_status=$?
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764  (eval $ac_try) 2>&5
4765  ac_status=$?
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); }; }; then
4768  :
4769else
4770  echo "$as_me: program exited with status $ac_status" >&5
4771echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774( exit $ac_status )
4775ac_cv_header_stdc=no
4776fi
4777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778fi
4779fi
4780fi
4781echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4782echo "${ECHO_T}$ac_cv_header_stdc" >&6
4783if test $ac_cv_header_stdc = yes; then
4784
4785cat >>confdefs.h <<\_ACEOF
4786#define STDC_HEADERS 1
4787_ACEOF
4788
4789fi
4790
4791# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4802                  inttypes.h stdint.h unistd.h
4803do
4804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805echo "$as_me:$LINENO: checking for $ac_header" >&5
4806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4807if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h.  */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h.  */
4816$ac_includes_default
4817
4818#include <$ac_header>
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822  (eval $ac_compile) 2>conftest.er1
4823  ac_status=$?
4824  grep -v '^ *+' conftest.er1 >conftest.err
4825  rm -f conftest.er1
4826  cat conftest.err >&5
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); } &&
4829         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831  (eval $ac_try) 2>&5
4832  ac_status=$?
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); }; } &&
4835         { ac_try='test -s conftest.$ac_objext'
4836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837  (eval $ac_try) 2>&5
4838  ac_status=$?
4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); }; }; then
4841  eval "$as_ac_Header=yes"
4842else
4843  echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846eval "$as_ac_Header=no"
4847fi
4848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849fi
4850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4852if test `eval echo '${'$as_ac_Header'}'` = yes; then
4853  cat >>confdefs.h <<_ACEOF
4854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4855_ACEOF
4856
4857fi
4858
4859done
4860
4861
4862
4863for ac_header in dlfcn.h
4864do
4865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4866if eval "test \"\${$as_ac_Header+set}\" = set"; then
4867  echo "$as_me:$LINENO: checking for $ac_header" >&5
4868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4869if eval "test \"\${$as_ac_Header+set}\" = set"; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871fi
4872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4874else
4875  # Is the header compilable?
4876echo "$as_me:$LINENO: checking $ac_header usability" >&5
4877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4878cat >conftest.$ac_ext <<_ACEOF
4879/* confdefs.h.  */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h.  */
4884$ac_includes_default
4885#include <$ac_header>
4886_ACEOF
4887rm -f conftest.$ac_objext
4888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889  (eval $ac_compile) 2>conftest.er1
4890  ac_status=$?
4891  grep -v '^ *+' conftest.er1 >conftest.err
4892  rm -f conftest.er1
4893  cat conftest.err >&5
4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895  (exit $ac_status); } &&
4896         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898  (eval $ac_try) 2>&5
4899  ac_status=$?
4900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901  (exit $ac_status); }; } &&
4902         { ac_try='test -s conftest.$ac_objext'
4903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904  (eval $ac_try) 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); }; }; then
4908  ac_header_compiler=yes
4909else
4910  echo "$as_me: failed program was:" >&5
4911sed 's/^/| /' conftest.$ac_ext >&5
4912
4913ac_header_compiler=no
4914fi
4915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4917echo "${ECHO_T}$ac_header_compiler" >&6
4918
4919# Is the header present?
4920echo "$as_me:$LINENO: checking $ac_header presence" >&5
4921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4922cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928#include <$ac_header>
4929_ACEOF
4930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4931  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } >/dev/null; then
4938  if test -s conftest.err; then
4939    ac_cpp_err=$ac_c_preproc_warn_flag
4940    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4941  else
4942    ac_cpp_err=
4943  fi
4944else
4945  ac_cpp_err=yes
4946fi
4947if test -z "$ac_cpp_err"; then
4948  ac_header_preproc=yes
4949else
4950  echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953  ac_header_preproc=no
4954fi
4955rm -f conftest.err conftest.$ac_ext
4956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4957echo "${ECHO_T}$ac_header_preproc" >&6
4958
4959# So?  What about this header?
4960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4961  yes:no: )
4962    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4964    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4966    ac_header_preproc=yes
4967    ;;
4968  no:yes:* )
4969    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4971    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4972echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4973    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4975    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4976echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4977    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4979    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4981    (
4982      cat <<\_ASBOX
4983## -------------------------------------- ##
4984## Report this to the OGRE_REFAPP lists.  ##
4985## -------------------------------------- ##
4986_ASBOX
4987    ) |
4988      sed "s/^/$as_me: WARNING:     /" >&2
4989    ;;
4990esac
4991echo "$as_me:$LINENO: checking for $ac_header" >&5
4992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4993if eval "test \"\${$as_ac_Header+set}\" = set"; then
4994  echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996  eval "$as_ac_Header=\$ac_header_preproc"
4997fi
4998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5000
5001fi
5002if test `eval echo '${'$as_ac_Header'}'` = yes; then
5003  cat >>confdefs.h <<_ACEOF
5004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005_ACEOF
5006
5007fi
5008
5009done
5010
5011ac_ext=cc
5012ac_cpp='$CXXCPP $CPPFLAGS'
5013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5017echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5018if test -z "$CXXCPP"; then
5019  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022      # Double quotes because CXXCPP needs to be expanded
5023    for CXXCPP in "$CXX -E" "/lib/cpp"
5024    do
5025      ac_preproc_ok=false
5026for ac_cxx_preproc_warn_flag in '' yes
5027do
5028  # Use a header file that comes with gcc, so configuring glibc
5029  # with a fresh cross-compiler works.
5030  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031  # <limits.h> exists even on freestanding compilers.
5032  # On the NeXT, cc -E runs the code through the compiler's parser,
5033  # not just through cpp. "Syntax error" is here to catch this case.
5034  cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h.  */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h.  */
5040#ifdef __STDC__
5041# include <limits.h>
5042#else
5043# include <assert.h>
5044#endif
5045                     Syntax error
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049  ac_status=$?
5050  grep -v '^ *+' conftest.er1 >conftest.err
5051  rm -f conftest.er1
5052  cat conftest.err >&5
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); } >/dev/null; then
5055  if test -s conftest.err; then
5056    ac_cpp_err=$ac_cxx_preproc_warn_flag
5057    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5058  else
5059    ac_cpp_err=
5060  fi
5061else
5062  ac_cpp_err=yes
5063fi
5064if test -z "$ac_cpp_err"; then
5065  :
5066else
5067  echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070  # Broken: fails on valid input.
5071continue
5072fi
5073rm -f conftest.err conftest.$ac_ext
5074
5075  # OK, works on sane cases.  Now check whether non-existent headers
5076  # can be detected and how.
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#include <ac_nonexistent.h>
5084_ACEOF
5085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } >/dev/null; then
5093  if test -s conftest.err; then
5094    ac_cpp_err=$ac_cxx_preproc_warn_flag
5095    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5096  else
5097    ac_cpp_err=
5098  fi
5099else
5100  ac_cpp_err=yes
5101fi
5102if test -z "$ac_cpp_err"; then
5103  # Broken: success on invalid input.
5104continue
5105else
5106  echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
5109  # Passes both tests.
5110ac_preproc_ok=:
5111break
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114
5115done
5116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117rm -f conftest.err conftest.$ac_ext
5118if $ac_preproc_ok; then
5119  break
5120fi
5121
5122    done
5123    ac_cv_prog_CXXCPP=$CXXCPP
5124
5125fi
5126  CXXCPP=$ac_cv_prog_CXXCPP
5127else
5128  ac_cv_prog_CXXCPP=$CXXCPP
5129fi
5130echo "$as_me:$LINENO: result: $CXXCPP" >&5
5131echo "${ECHO_T}$CXXCPP" >&6
5132ac_preproc_ok=false
5133for ac_cxx_preproc_warn_flag in '' yes
5134do
5135  # Use a header file that comes with gcc, so configuring glibc
5136  # with a fresh cross-compiler works.
5137  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138  # <limits.h> exists even on freestanding compilers.
5139  # On the NeXT, cc -E runs the code through the compiler's parser,
5140  # not just through cpp. "Syntax error" is here to catch this case.
5141  cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h.  */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h.  */
5147#ifdef __STDC__
5148# include <limits.h>
5149#else
5150# include <assert.h>
5151#endif
5152                     Syntax error
5153_ACEOF
5154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5155  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156  ac_status=$?
5157  grep -v '^ *+' conftest.er1 >conftest.err
5158  rm -f conftest.er1
5159  cat conftest.err >&5
5160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161  (exit $ac_status); } >/dev/null; then
5162  if test -s conftest.err; then
5163    ac_cpp_err=$ac_cxx_preproc_warn_flag
5164    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5165  else
5166    ac_cpp_err=
5167  fi
5168else
5169  ac_cpp_err=yes
5170fi
5171if test -z "$ac_cpp_err"; then
5172  :
5173else
5174  echo "$as_me: failed program was:" >&5
5175sed 's/^/| /' conftest.$ac_ext >&5
5176
5177  # Broken: fails on valid input.
5178continue
5179fi
5180rm -f conftest.err conftest.$ac_ext
5181
5182  # OK, works on sane cases.  Now check whether non-existent headers
5183  # can be detected and how.
5184  cat >conftest.$ac_ext <<_ACEOF
5185/* confdefs.h.  */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h.  */
5190#include <ac_nonexistent.h>
5191_ACEOF
5192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } >/dev/null; then
5200  if test -s conftest.err; then
5201    ac_cpp_err=$ac_cxx_preproc_warn_flag
5202    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5203  else
5204    ac_cpp_err=
5205  fi
5206else
5207  ac_cpp_err=yes
5208fi
5209if test -z "$ac_cpp_err"; then
5210  # Broken: success on invalid input.
5211continue
5212else
5213  echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216  # Passes both tests.
5217ac_preproc_ok=:
5218break
5219fi
5220rm -f conftest.err conftest.$ac_ext
5221
5222done
5223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224rm -f conftest.err conftest.$ac_ext
5225if $ac_preproc_ok; then
5226  :
5227else
5228  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5229See \`config.log' for more details." >&5
5230echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5231See \`config.log' for more details." >&2;}
5232   { (exit 1); exit 1; }; }
5233fi
5234
5235ac_ext=cc
5236ac_cpp='$CXXCPP $CPPFLAGS'
5237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5240
5241
5242ac_ext=f
5243ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5244ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5246if test -n "$ac_tool_prefix"; then
5247  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5248  do
5249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5251echo "$as_me:$LINENO: checking for $ac_word" >&5
5252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253if test "${ac_cv_prog_F77+set}" = set; then
5254  echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256  if test -n "$F77"; then
5257  ac_cv_prog_F77="$F77" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264  for ac_exec_ext in '' $ac_executable_extensions; do
5265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271done
5272
5273fi
5274fi
5275F77=$ac_cv_prog_F77
5276if test -n "$F77"; then
5277  echo "$as_me:$LINENO: result: $F77" >&5
5278echo "${ECHO_T}$F77" >&6
5279else
5280  echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6
5282fi
5283
5284    test -n "$F77" && break
5285  done
5286fi
5287if test -z "$F77"; then
5288  ac_ct_F77=$F77
5289  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5290do
5291  # Extract the first word of "$ac_prog", so it can be a program name with args.
5292set dummy $ac_prog; ac_word=$2
5293echo "$as_me:$LINENO: checking for $ac_word" >&5
5294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  if test -n "$ac_ct_F77"; then
5299  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304  IFS=$as_save_IFS
5305  test -z "$as_dir" && as_dir=.
5306  for ac_exec_ext in '' $ac_executable_extensions; do
5307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308    ac_cv_prog_ac_ct_F77="$ac_prog"
5309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310    break 2
5311  fi
5312done
5313done
5314
5315fi
5316fi
5317ac_ct_F77=$ac_cv_prog_ac_ct_F77
5318if test -n "$ac_ct_F77"; then
5319  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5320echo "${ECHO_T}$ac_ct_F77" >&6
5321else
5322  echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324fi
5325
5326  test -n "$ac_ct_F77" && break
5327done
5328
5329  F77=$ac_ct_F77
5330fi
5331
5332
5333# Provide some information about the compiler.
5334echo "$as_me:5334:" \
5335     "checking for Fortran 77 compiler version" >&5
5336ac_compiler=`set X $ac_compile; echo $2`
5337{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5338  (eval $ac_compiler --version </dev/null >&5) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }
5342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5343  (eval $ac_compiler -v </dev/null >&5) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }
5347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5348  (eval $ac_compiler -V </dev/null >&5) 2>&5
5349  ac_status=$?
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); }
5352rm -f a.out
5353
5354# If we don't use `.F' as extension, the preprocessor is not run on the
5355# input file.  (Note that this only needs to work for GNU compilers.)
5356ac_save_ext=$ac_ext
5357ac_ext=F
5358echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5359echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5360if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  cat >conftest.$ac_ext <<_ACEOF
5364      program main
5365#ifndef __GNUC__
5366       choke me
5367#endif
5368
5369      end
5370_ACEOF
5371rm -f conftest.$ac_objext
5372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373  (eval $ac_compile) 2>conftest.er1
5374  ac_status=$?
5375  grep -v '^ *+' conftest.er1 >conftest.err
5376  rm -f conftest.er1
5377  cat conftest.err >&5
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); } &&
5380         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382  (eval $ac_try) 2>&5
5383  ac_status=$?
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; } &&
5386         { ac_try='test -s conftest.$ac_objext'
5387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388  (eval $ac_try) 2>&5
5389  ac_status=$?
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); }; }; then
5392  ac_compiler_gnu=yes
5393else
5394  echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397ac_compiler_gnu=no
5398fi
5399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5400ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5401
5402fi
5403echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5404echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5405ac_ext=$ac_save_ext
5406ac_test_FFLAGS=${FFLAGS+set}
5407ac_save_FFLAGS=$FFLAGS
5408FFLAGS=
5409echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5410echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5411if test "${ac_cv_prog_f77_g+set}" = set; then
5412  echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414  FFLAGS=-g
5415cat >conftest.$ac_ext <<_ACEOF
5416      program main
5417
5418      end
5419_ACEOF
5420rm -f conftest.$ac_objext
5421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422  (eval $ac_compile) 2>conftest.er1
5423  ac_status=$?
5424  grep -v '^ *+' conftest.er1 >conftest.err
5425  rm -f conftest.er1
5426  cat conftest.err >&5
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); } &&
5429         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431  (eval $ac_try) 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }; } &&
5435         { ac_try='test -s conftest.$ac_objext'
5436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437  (eval $ac_try) 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); }; }; then
5441  ac_cv_prog_f77_g=yes
5442else
5443  echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446ac_cv_prog_f77_g=no
5447fi
5448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449
5450fi
5451echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5452echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5453if test "$ac_test_FFLAGS" = set; then
5454  FFLAGS=$ac_save_FFLAGS
5455elif test $ac_cv_prog_f77_g = yes; then
5456  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5457    FFLAGS="-g -O2"
5458  else
5459    FFLAGS="-g"
5460  fi
5461else
5462  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5463    FFLAGS="-O2"
5464  else
5465    FFLAGS=
5466  fi
5467fi
5468
5469G77=`test $ac_compiler_gnu = yes && echo yes`
5470ac_ext=c
5471ac_cpp='$CPP $CPPFLAGS'
5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476
5477
5478# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5479
5480# find the maximum length of command line arguments
5481echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5482echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5483if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5484  echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486    i=0
5487  teststring="ABCD"
5488
5489  case $build_os in
5490  msdosdjgpp*)
5491    # On DJGPP, this test can blow up pretty badly due to problems in libc
5492    # (any single argument exceeding 2000 bytes causes a buffer overrun
5493    # during glob expansion).  Even if it were fixed, the result of this
5494    # check would be larger than it should be.
5495    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5496    ;;
5497
5498  gnu*)
5499    # Under GNU Hurd, this test is not required because there is
5500    # no limit to the length of command line arguments.
5501    # Libtool will interpret -1 as no limit whatsoever
5502    lt_cv_sys_max_cmd_len=-1;
5503    ;;
5504
5505  cygwin* | mingw*)
5506    # On Win9x/ME, this test blows up -- it succeeds, but takes
5507    # about 5 minutes as the teststring grows exponentially.
5508    # Worse, since 9x/ME are not pre-emptively multitasking,
5509    # you end up with a "frozen" computer, even though with patience
5510    # the test eventually succeeds (with a max line length of 256k).
5511    # Instead, let's just punt: use the minimum linelength reported by
5512    # all of the supported platforms: 8192 (on NT/2K/XP).
5513    lt_cv_sys_max_cmd_len=8192;
5514    ;;
5515
5516  amigaos*)
5517    # On AmigaOS with pdksh, this test takes hours, literally.
5518    # So we just punt and use a minimum line length of 8192.
5519    lt_cv_sys_max_cmd_len=8192;
5520    ;;
5521
5522 *)
5523    # If test is not a shell built-in, we'll probably end up computing a
5524    # maximum length that is only half of the actual maximum length, but
5525    # we can't tell.
5526    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5527               = "XX$teststring") >/dev/null 2>&1 &&
5528            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5529            lt_cv_sys_max_cmd_len=$new_result &&
5530            test $i != 17 # 1/2 MB should be enough
5531    do
5532      i=`expr $i + 1`
5533      teststring=$teststring$teststring
5534    done
5535    teststring=
5536    # Add a significant safety factor because C++ compilers can tack on massive
5537    # amounts of additional arguments before passing them to the linker.
5538    # It appears as though 1/2 is a usable value.
5539    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5540    ;;
5541  esac
5542
5543fi
5544
5545if test -n $lt_cv_sys_max_cmd_len ; then
5546  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5547echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5548else
5549  echo "$as_me:$LINENO: result: none" >&5
5550echo "${ECHO_T}none" >&6
5551fi
5552
5553
5554
5555
5556# Check for command to grab the raw symbol name followed by C symbol from nm.
5557echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5558echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5559if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562
5563# These are sane defaults that work on at least a few old systems.
5564# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5565
5566# Character class describing NM global symbol codes.
5567symcode='[BCDEGRST]'
5568
5569# Regexp to match symbols that can be accessed directly from C.
5570sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5571
5572# Transform the above into a raw symbol and a C symbol.
5573symxfrm='\1 \2\3 \3'
5574
5575# Transform an extracted symbol line into a proper C declaration
5576lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5577
5578# Transform an extracted symbol line into symbol name and symbol address
5579lt_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'"
5580
5581# Define system-specific variables.
5582case $host_os in
5583aix*)
5584  symcode='[BCDT]'
5585  ;;
5586cygwin* | mingw* | pw32*)
5587  symcode='[ABCDGISTW]'
5588  ;;
5589hpux*) # Its linker distinguishes data from code symbols
5590  if test "$host_cpu" = ia64; then
5591    symcode='[ABCDEGRST]'
5592  fi
5593  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5594  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'"
5595  ;;
5596irix* | nonstopux*)
5597  symcode='[BCDEGRST]'
5598  ;;
5599osf*)
5600  symcode='[BCDEGQRST]'
5601  ;;
5602solaris* | sysv5*)
5603  symcode='[BDRT]'
5604  ;;
5605sysv4)
5606  symcode='[DFNSTU]'
5607  ;;
5608esac
5609
5610# Handle CRLF in mingw tool chain
5611opt_cr=
5612case $build_os in
5613mingw*)
5614  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5615  ;;
5616esac
5617
5618# If we're using GNU nm, then use its standard symbol codes.
5619case `$NM -V 2>&1` in
5620*GNU* | *'with BFD'*)
5621  symcode='[ABCDGIRSTW]' ;;
5622esac
5623
5624# Try without a prefix undercore, then with it.
5625for ac_symprfx in "" "_"; do
5626
5627  # Write the raw and C identifiers.
5628  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5629
5630  # Check to see that the pipe works correctly.
5631  pipe_works=no
5632
5633  rm -f conftest*
5634  cat > conftest.$ac_ext <<EOF
5635#ifdef __cplusplus
5636extern "C" {
5637#endif
5638char nm_test_var;
5639void nm_test_func(){}
5640#ifdef __cplusplus
5641}
5642#endif
5643int main(){nm_test_var='a';nm_test_func();return(0);}
5644EOF
5645
5646  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647  (eval $ac_compile) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; then
5651    # Now try to grab the symbols.
5652    nlist=conftest.nm
5653    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5654  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5655  ac_status=$?
5656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657  (exit $ac_status); } && test -s "$nlist"; then
5658      # Try sorting and uniquifying the output.
5659      if sort "$nlist" | uniq > "$nlist"T; then
5660        mv -f "$nlist"T "$nlist"
5661      else
5662        rm -f "$nlist"T
5663      fi
5664
5665      # Make sure that we snagged all the symbols we need.
5666      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5667        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5668          cat <<EOF > conftest.$ac_ext
5669#ifdef __cplusplus
5670extern "C" {
5671#endif
5672
5673EOF
5674          # Now generate the symbol file.
5675          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5676
5677          cat <<EOF >> conftest.$ac_ext
5678#if defined (__STDC__) && __STDC__
5679# define lt_ptr_t void *
5680#else
5681# define lt_ptr_t char *
5682# define const
5683#endif
5684
5685/* The mapping between symbol names and symbols. */
5686const struct {
5687  const char *name;
5688  lt_ptr_t address;
5689}
5690lt_preloaded_symbols[] =
5691{
5692EOF
5693          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5694          cat <<\EOF >> conftest.$ac_ext
5695  {0, (lt_ptr_t) 0}
5696};
5697
5698#ifdef __cplusplus
5699}
5700#endif
5701EOF
5702          # Now try linking the two files.
5703          mv conftest.$ac_objext conftstm.$ac_objext
5704          lt_save_LIBS="$LIBS"
5705          lt_save_CFLAGS="$CFLAGS"
5706          LIBS="conftstm.$ac_objext"
5707          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5708          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709  (eval $ac_link) 2>&5
5710  ac_status=$?
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5713            pipe_works=yes
5714          fi
5715          LIBS="$lt_save_LIBS"
5716          CFLAGS="$lt_save_CFLAGS"
5717        else
5718          echo "cannot find nm_test_func in $nlist" >&5
5719        fi
5720      else
5721        echo "cannot find nm_test_var in $nlist" >&5
5722      fi
5723    else
5724      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5725    fi
5726  else
5727    echo "$progname: failed program was:" >&5
5728    cat conftest.$ac_ext >&5
5729  fi
5730  rm -f conftest* conftst*
5731
5732  # Do not use the global_symbol_pipe unless it works.
5733  if test "$pipe_works" = yes; then
5734    break
5735  else
5736    lt_cv_sys_global_symbol_pipe=
5737  fi
5738done
5739
5740fi
5741
5742if test -z "$lt_cv_sys_global_symbol_pipe"; then
5743  lt_cv_sys_global_symbol_to_cdecl=
5744fi
5745if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5746  echo "$as_me:$LINENO: result: failed" >&5
5747echo "${ECHO_T}failed" >&6
5748else
5749  echo "$as_me:$LINENO: result: ok" >&5
5750echo "${ECHO_T}ok" >&6
5751fi
5752
5753echo "$as_me:$LINENO: checking for objdir" >&5
5754echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5755if test "${lt_cv_objdir+set}" = set; then
5756  echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758  rm -f .libs 2>/dev/null
5759mkdir .libs 2>/dev/null
5760if test -d .libs; then
5761  lt_cv_objdir=.libs
5762else
5763  # MS-DOS does not allow filenames that begin with a dot.
5764  lt_cv_objdir=_libs
5765fi
5766rmdir .libs 2>/dev/null
5767fi
5768echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5769echo "${ECHO_T}$lt_cv_objdir" >&6
5770objdir=$lt_cv_objdir
5771
5772
5773
5774
5775
5776case $host_os in
5777aix3*)
5778  # AIX sometimes has problems with the GCC collect2 program.  For some
5779  # reason, if we set the COLLECT_NAMES environment variable, the problems
5780  # vanish in a puff of smoke.
5781  if test "X${COLLECT_NAMES+set}" != Xset; then
5782    COLLECT_NAMES=
5783    export COLLECT_NAMES
5784  fi
5785  ;;
5786esac
5787
5788# Sed substitution that helps us do robust quoting.  It backslashifies
5789# metacharacters that are still active within double-quoted strings.
5790Xsed='sed -e s/^X//'
5791sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5792
5793# Same as above, but do not quote variable references.
5794double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5795
5796# Sed substitution to delay expansion of an escaped shell variable in a
5797# double_quote_subst'ed string.
5798delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5799
5800# Sed substitution to avoid accidental globbing in evaled expressions
5801no_glob_subst='s/\*/\\\*/g'
5802
5803# Constants:
5804rm="rm -f"
5805
5806# Global variables:
5807default_ofile=libtool
5808can_build_shared=yes
5809
5810# All known linkers require a `.a' archive for static linking (except M$VC,
5811# which needs '.lib').
5812libext=a
5813ltmain="$ac_aux_dir/ltmain.sh"
5814ofile="$default_ofile"
5815with_gnu_ld="$lt_cv_prog_gnu_ld"
5816
5817if test -n "$ac_tool_prefix"; then
5818  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5819set dummy ${ac_tool_prefix}ar; ac_word=$2
5820echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822if test "${ac_cv_prog_AR+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  if test -n "$AR"; then
5826  ac_cv_prog_AR="$AR" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831  IFS=$as_save_IFS
5832  test -z "$as_dir" && as_dir=.
5833  for ac_exec_ext in '' $ac_executable_extensions; do
5834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835    ac_cv_prog_AR="${ac_tool_prefix}ar"
5836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837    break 2
5838  fi
5839done
5840done
5841
5842fi
5843fi
5844AR=$ac_cv_prog_AR
5845if test -n "$AR"; then
5846  echo "$as_me:$LINENO: result: $AR" >&5
5847echo "${ECHO_T}$AR" >&6
5848else
5849  echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
5851fi
5852
5853fi
5854if test -z "$ac_cv_prog_AR"; then
5855  ac_ct_AR=$AR
5856  # Extract the first word of "ar", so it can be a program name with args.
5857set dummy ar; ac_word=$2
5858echo "$as_me:$LINENO: checking for $ac_word" >&5
5859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5861  echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863  if test -n "$ac_ct_AR"; then
5864  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871  for ac_exec_ext in '' $ac_executable_extensions; do
5872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873    ac_cv_prog_ac_ct_AR="ar"
5874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878done
5879
5880  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5881fi
5882fi
5883ac_ct_AR=$ac_cv_prog_ac_ct_AR
5884if test -n "$ac_ct_AR"; then
5885  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5886echo "${ECHO_T}$ac_ct_AR" >&6
5887else
5888  echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890fi
5891
5892  AR=$ac_ct_AR
5893else
5894  AR="$ac_cv_prog_AR"
5895fi
5896
5897if test -n "$ac_tool_prefix"; then
5898  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5899set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5900echo "$as_me:$LINENO: checking for $ac_word" >&5
5901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902if test "${ac_cv_prog_RANLIB+set}" = set; then
5903  echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905  if test -n "$RANLIB"; then
5906  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5907else
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911  IFS=$as_save_IFS
5912  test -z "$as_dir" && as_dir=.
5913  for ac_exec_ext in '' $ac_executable_extensions; do
5914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917    break 2
5918  fi
5919done
5920done
5921
5922fi
5923fi
5924RANLIB=$ac_cv_prog_RANLIB
5925if test -n "$RANLIB"; then
5926  echo "$as_me:$LINENO: result: $RANLIB" >&5
5927echo "${ECHO_T}$RANLIB" >&6
5928else
5929  echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931fi
5932
5933fi
5934if test -z "$ac_cv_prog_RANLIB"; then
5935  ac_ct_RANLIB=$RANLIB
5936  # Extract the first word of "ranlib", so it can be a program name with args.
5937set dummy ranlib; ac_word=$2
5938echo "$as_me:$LINENO: checking for $ac_word" >&5
5939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5940if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5941  echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943  if test -n "$ac_ct_RANLIB"; then
5944  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951  for ac_exec_ext in '' $ac_executable_extensions; do
5952  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953    ac_cv_prog_ac_ct_RANLIB="ranlib"
5954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955    break 2
5956  fi
5957done
5958done
5959
5960  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5961fi
5962fi
5963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5964if test -n "$ac_ct_RANLIB"; then
5965  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5966echo "${ECHO_T}$ac_ct_RANLIB" >&6
5967else
5968  echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970fi
5971
5972  RANLIB=$ac_ct_RANLIB
5973else
5974  RANLIB="$ac_cv_prog_RANLIB"
5975fi
5976
5977if test -n "$ac_tool_prefix"; then
5978  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5979set dummy ${ac_tool_prefix}strip; ac_word=$2
5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_prog_STRIP+set}" = set; then
5983  echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985  if test -n "$STRIP"; then
5986  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993  for ac_exec_ext in '' $ac_executable_extensions; do
5994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997    break 2
5998  fi
5999done
6000done
6001
6002fi
6003fi
6004STRIP=$ac_cv_prog_STRIP
6005if test -n "$STRIP"; then
6006  echo "$as_me:$LINENO: result: $STRIP" >&5
6007echo "${ECHO_T}$STRIP" >&6
6008else
6009  echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011fi
6012
6013fi
6014if test -z "$ac_cv_prog_STRIP"; then
6015  ac_ct_STRIP=$STRIP
6016  # Extract the first word of "strip", so it can be a program name with args.
6017set dummy strip; ac_word=$2
6018echo "$as_me:$LINENO: checking for $ac_word" >&5
6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6020if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  if test -n "$ac_ct_STRIP"; then
6024  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6025else
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029  IFS=$as_save_IFS
6030  test -z "$as_dir" && as_dir=.
6031  for ac_exec_ext in '' $ac_executable_extensions; do
6032  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033    ac_cv_prog_ac_ct_STRIP="strip"
6034    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035    break 2
6036  fi
6037done
6038done
6039
6040  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6041fi
6042fi
6043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6044if test -n "$ac_ct_STRIP"; then
6045  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6046echo "${ECHO_T}$ac_ct_STRIP" >&6
6047else
6048  echo "$as_me:$LINENO: result: no" >&5
6049echo "${ECHO_T}no" >&6
6050fi
6051
6052  STRIP=$ac_ct_STRIP
6053else
6054  STRIP="$ac_cv_prog_STRIP"
6055fi
6056
6057
6058old_CC="$CC"
6059old_CFLAGS="$CFLAGS"
6060
6061# Set sane defaults for various variables
6062test -z "$AR" && AR=ar
6063test -z "$AR_FLAGS" && AR_FLAGS=cru
6064test -z "$AS" && AS=as
6065test -z "$CC" && CC=cc
6066test -z "$LTCC" && LTCC=$CC
6067test -z "$DLLTOOL" && DLLTOOL=dlltool
6068test -z "$LD" && LD=ld
6069test -z "$LN_S" && LN_S="ln -s"
6070test -z "$MAGIC_CMD" && MAGIC_CMD=file
6071test -z "$NM" && NM=nm
6072test -z "$SED" && SED=sed
6073test -z "$OBJDUMP" && OBJDUMP=objdump
6074test -z "$RANLIB" && RANLIB=:
6075test -z "$STRIP" && STRIP=:
6076test -z "$ac_objext" && ac_objext=o
6077
6078# Determine commands to create old-style static archives.
6079old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6080old_postinstall_cmds='chmod 644 $oldlib'
6081old_postuninstall_cmds=
6082
6083if test -n "$RANLIB"; then
6084  case $host_os in
6085  openbsd*)
6086    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6087    ;;
6088  *)
6089    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6090    ;;
6091  esac
6092  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6093fi
6094
6095# Only perform the check for file, if the check method requires it
6096case $deplibs_check_method in
6097file_magic*)
6098  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6099    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6100echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6102  echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104  case $MAGIC_CMD in
6105[\\/*] |  ?:[\\/]*)
6106  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6107  ;;
6108*)
6109  lt_save_MAGIC_CMD="$MAGIC_CMD"
6110  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6111  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6112  for ac_dir in $ac_dummy; do
6113    IFS="$lt_save_ifs"
6114    test -z "$ac_dir" && ac_dir=.
6115    if test -f $ac_dir/${ac_tool_prefix}file; then
6116      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6117      if test -n "$file_magic_test_file"; then
6118        case $deplibs_check_method in
6119        "file_magic "*)
6120          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6121          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6123            $EGREP "$file_magic_regex" > /dev/null; then
6124            :
6125          else
6126            cat <<EOF 1>&2
6127
6128*** Warning: the command libtool uses to detect shared libraries,
6129*** $file_magic_cmd, produces output that libtool cannot recognize.
6130*** The result is that libtool may fail to recognize shared libraries
6131*** as such.  This will affect the creation of libtool libraries that
6132*** depend on shared libraries, but programs linked with such libtool
6133*** libraries will work regardless of this problem.  Nevertheless, you
6134*** may want to report the problem to your system manager and/or to
6135*** bug-libtool@gnu.org
6136
6137EOF
6138          fi ;;
6139        esac
6140      fi
6141      break
6142    fi
6143  done
6144  IFS="$lt_save_ifs"
6145  MAGIC_CMD="$lt_save_MAGIC_CMD"
6146  ;;
6147esac
6148fi
6149
6150MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6151if test -n "$MAGIC_CMD"; then
6152  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6153echo "${ECHO_T}$MAGIC_CMD" >&6
6154else
6155  echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6
6157fi
6158
6159if test -z "$lt_cv_path_MAGIC_CMD"; then
6160  if test -n "$ac_tool_prefix"; then
6161    echo "$as_me:$LINENO: checking for file" >&5
6162echo $ECHO_N "checking for file... $ECHO_C" >&6
6163if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6164  echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166  case $MAGIC_CMD in
6167[\\/*] |  ?:[\\/]*)
6168  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6169  ;;
6170*)
6171  lt_save_MAGIC_CMD="$MAGIC_CMD"
6172  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6173  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6174  for ac_dir in $ac_dummy; do
6175    IFS="$lt_save_ifs"
6176    test -z "$ac_dir" && ac_dir=.
6177    if test -f $ac_dir/file; then
6178      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6179      if test -n "$file_magic_test_file"; then
6180        case $deplibs_check_method in
6181        "file_magic "*)
6182          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6183          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6184          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6185            $EGREP "$file_magic_regex" > /dev/null; then
6186            :
6187          else
6188            cat <<EOF 1>&2
6189
6190*** Warning: the command libtool uses to detect shared libraries,
6191*** $file_magic_cmd, produces output that libtool cannot recognize.
6192*** The result is that libtool may fail to recognize shared libraries
6193*** as such.  This will affect the creation of libtool libraries that
6194*** depend on shared libraries, but programs linked with such libtool
6195*** libraries will work regardless of this problem.  Nevertheless, you
6196*** may want to report the problem to your system manager and/or to
6197*** bug-libtool@gnu.org
6198
6199EOF
6200          fi ;;
6201        esac
6202      fi
6203      break
6204    fi
6205  done
6206  IFS="$lt_save_ifs"
6207  MAGIC_CMD="$lt_save_MAGIC_CMD"
6208  ;;
6209esac
6210fi
6211
6212MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6213if test -n "$MAGIC_CMD"; then
6214  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6215echo "${ECHO_T}$MAGIC_CMD" >&6
6216else
6217  echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6
6219fi
6220
6221  else
6222    MAGIC_CMD=:
6223  fi
6224fi
6225
6226  fi
6227  ;;
6228esac
6229
6230enable_dlopen=no
6231enable_win32_dll=no
6232
6233# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6234if test "${enable_libtool_lock+set}" = set; then
6235  enableval="$enable_libtool_lock"
6236
6237fi;
6238test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6239
6240
6241# Check whether --with-pic or --without-pic was given.
6242if test "${with_pic+set}" = set; then
6243  withval="$with_pic"
6244  pic_mode="$withval"
6245else
6246  pic_mode=default
6247fi;
6248test -z "$pic_mode" && pic_mode=default
6249
6250# Use C for the default configuration in the libtool script
6251tagname=
6252lt_save_CC="$CC"
6253ac_ext=c
6254ac_cpp='$CPP $CPPFLAGS'
6255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259
6260# Source file extension for C test sources.
6261ac_ext=c
6262
6263# Object file extension for compiled C test sources.
6264objext=o
6265objext=$objext
6266
6267# Code to be used in simple compile tests
6268lt_simple_compile_test_code="int some_variable = 0;\n"
6269
6270# Code to be used in simple link tests
6271lt_simple_link_test_code='int main(){return(0);}\n'
6272
6273
6274# If no C compiler was specified, use CC.
6275LTCC=${LTCC-"$CC"}
6276
6277# Allow CC to be a program name with arguments.
6278compiler=$CC
6279
6280
6281#
6282# Check for any special shared library compilation flags.
6283#
6284lt_prog_cc_shlib=
6285if test "$GCC" = no; then
6286  case $host_os in
6287  sco3.2v5*)
6288    lt_prog_cc_shlib='-belf'
6289    ;;
6290  esac
6291fi
6292if test -n "$lt_prog_cc_shlib"; then
6293  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6294echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6295  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6296  else
6297    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6298echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6299    lt_cv_prog_cc_can_build_shared=no
6300  fi
6301fi
6302
6303
6304#
6305# Check to make sure the static flag actually works.
6306#
6307echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6308echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6309if test "${lt_prog_compiler_static_works+set}" = set; then
6310  echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312  lt_prog_compiler_static_works=no
6313   save_LDFLAGS="$LDFLAGS"
6314   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6315   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6316   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6317     # The compiler can only warn and ignore the option if not recognized
6318     # So say no if there are warnings
6319     if test -s conftest.err; then
6320       # Append any errors to the config.log.
6321       cat conftest.err 1>&5
6322     else
6323       lt_prog_compiler_static_works=yes
6324     fi
6325   fi
6326   $rm conftest*
6327   LDFLAGS="$save_LDFLAGS"
6328
6329fi
6330echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6331echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6332
6333if test x"$lt_prog_compiler_static_works" = xyes; then
6334    :
6335else
6336    lt_prog_compiler_static=
6337fi
6338
6339
6340
6341
6342lt_prog_compiler_no_builtin_flag=
6343
6344if test "$GCC" = yes; then
6345  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6346
6347
6348echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6349echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6350if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6351  echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353  lt_cv_prog_compiler_rtti_exceptions=no
6354  ac_outfile=conftest.$ac_objext
6355   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6356   lt_compiler_flag="-fno-rtti -fno-exceptions"
6357   # Insert the option either (1) after the last *FLAGS variable, or
6358   # (2) before a word containing "conftest.", or (3) at the end.
6359   # Note that $ac_compile itself does not contain backslashes and begins
6360   # with a dollar sign (not a hyphen), so the echo should work correctly.
6361   # The option is referenced via a variable to avoid confusing sed.
6362   lt_compile=`echo "$ac_compile" | $SED \
6363   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6364   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6365   -e 's:$: $lt_compiler_flag:'`
6366   (eval echo "\"\$as_me:6366: $lt_compile\"" >&5)
6367   (eval "$lt_compile" 2>conftest.err)
6368   ac_status=$?
6369   cat conftest.err >&5
6370   echo "$as_me:6370: \$? = $ac_status" >&5
6371   if (exit $ac_status) && test -s "$ac_outfile"; then
6372     # The compiler can only warn and ignore the option if not recognized
6373     # So say no if there are warnings
6374     if test ! -s conftest.err; then
6375       lt_cv_prog_compiler_rtti_exceptions=yes
6376     fi
6377   fi
6378   $rm conftest*
6379
6380fi
6381echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6382echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6383
6384if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6385    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6386else
6387    :
6388fi
6389
6390fi
6391
6392lt_prog_compiler_wl=
6393lt_prog_compiler_pic=
6394lt_prog_compiler_static=
6395
6396echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6397echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6398
6399  if test "$GCC" = yes; then
6400    lt_prog_compiler_wl='-Wl,'
6401    lt_prog_compiler_static='-static'
6402
6403    case $host_os in
6404      aix*)
6405      # All AIX code is PIC.
6406      if test "$host_cpu" = ia64; then
6407        # AIX 5 now supports IA64 processor
6408        lt_prog_compiler_static='-Bstatic'
6409      fi
6410      ;;
6411
6412    amigaos*)
6413      # FIXME: we need at least 68020 code to build shared libraries, but
6414      # adding the `-m68020' flag to GCC prevents building anything better,
6415      # like `-m68040'.
6416      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6417      ;;
6418
6419    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6420      # PIC is the default for these OSes.
6421      ;;
6422
6423    mingw* | pw32* | os2*)
6424      # This hack is so that the source file can tell whether it is being
6425      # built for inclusion in a dll (and should export symbols for example).
6426      lt_prog_compiler_pic='-DDLL_EXPORT'
6427      ;;
6428
6429    darwin* | rhapsody*)
6430      # PIC is the default on this platform
6431      # Common symbols not allowed in MH_DYLIB files
6432      lt_prog_compiler_pic='-fno-common'
6433      ;;
6434
6435    msdosdjgpp*)
6436      # Just because we use GCC doesn't mean we suddenly get shared libraries
6437      # on systems that don't support them.
6438      lt_prog_compiler_can_build_shared=no
6439      enable_shared=no
6440      ;;
6441
6442    sysv4*MP*)
6443      if test -d /usr/nec; then
6444        lt_prog_compiler_pic=-Kconform_pic
6445      fi
6446      ;;
6447
6448    hpux*)
6449      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6450      # not for PA HP-UX.
6451      case "$host_cpu" in
6452      hppa*64*|ia64*)
6453        # +Z the default
6454        ;;
6455      *)
6456        lt_prog_compiler_pic='-fPIC'
6457        ;;
6458      esac
6459      ;;
6460
6461    *)
6462      lt_prog_compiler_pic='-fPIC'
6463      ;;
6464    esac
6465  else
6466    # PORTME Check for flag to pass linker flags through the system compiler.
6467    case $host_os in
6468    aix*)
6469      lt_prog_compiler_wl='-Wl,'
6470      if test "$host_cpu" = ia64; then
6471        # AIX 5 now supports IA64 processor
6472        lt_prog_compiler_static='-Bstatic'
6473      else
6474        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6475      fi
6476      ;;
6477
6478    mingw* | pw32* | os2*)
6479      # This hack is so that the source file can tell whether it is being
6480      # built for inclusion in a dll (and should export symbols for example).
6481      lt_prog_compiler_pic='-DDLL_EXPORT'
6482      ;;
6483
6484    hpux9* | hpux10* | hpux11*)
6485      lt_prog_compiler_wl='-Wl,'
6486      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6487      # not for PA HP-UX.
6488      case "$host_cpu" in
6489      hppa*64*|ia64*)
6490        # +Z the default
6491        ;;
6492      *)
6493        lt_prog_compiler_pic='+Z'
6494        ;;
6495      esac
6496      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6497      lt_prog_compiler_static='${wl}-a ${wl}archive'
6498      ;;
6499
6500    irix5* | irix6* | nonstopux*)
6501      lt_prog_compiler_wl='-Wl,'
6502      # PIC (with -KPIC) is the default.
6503      lt_prog_compiler_static='-non_shared'
6504      ;;
6505
6506    newsos6)
6507      lt_prog_compiler_pic='-KPIC'
6508      lt_prog_compiler_static='-Bstatic'
6509      ;;
6510
6511    linux*)
6512      case $CC in
6513      icc* | ecc*)
6514        lt_prog_compiler_wl='-Wl,'
6515        lt_prog_compiler_pic='-KPIC'
6516        lt_prog_compiler_static='-static'
6517        ;;
6518      ccc*)
6519        lt_prog_compiler_wl='-Wl,'
6520        # All Alpha code is PIC.
6521        lt_prog_compiler_static='-non_shared'
6522        ;;
6523      esac
6524      ;;
6525
6526    osf3* | osf4* | osf5*)
6527      lt_prog_compiler_wl='-Wl,'
6528      # All OSF/1 code is PIC.
6529      lt_prog_compiler_static='-non_shared'
6530      ;;
6531
6532    sco3.2v5*)
6533      lt_prog_compiler_pic='-Kpic'
6534      lt_prog_compiler_static='-dn'
6535      ;;
6536
6537    solaris*)
6538      lt_prog_compiler_wl='-Wl,'
6539      lt_prog_compiler_pic='-KPIC'
6540      lt_prog_compiler_static='-Bstatic'
6541      ;;
6542
6543    sunos4*)
6544      lt_prog_compiler_wl='-Qoption ld '
6545      lt_prog_compiler_pic='-PIC'
6546      lt_prog_compiler_static='-Bstatic'
6547      ;;
6548
6549    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6550      lt_prog_compiler_wl='-Wl,'
6551      lt_prog_compiler_pic='-KPIC'
6552      lt_prog_compiler_static='-Bstatic'
6553      ;;
6554
6555    sysv4*MP*)
6556      if test -d /usr/nec ;then
6557        lt_prog_compiler_pic='-Kconform_pic'
6558        lt_prog_compiler_static='-Bstatic'
6559      fi
6560      ;;
6561
6562    uts4*)
6563      lt_prog_compiler_pic='-pic'
6564      lt_prog_compiler_static='-Bstatic'
6565      ;;
6566
6567    *)
6568      lt_prog_compiler_can_build_shared=no
6569      ;;
6570    esac
6571  fi
6572
6573echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6574echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6575
6576#
6577# Check to make sure the PIC flag actually works.
6578#
6579if test -n "$lt_prog_compiler_pic"; then
6580
6581echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6582echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6583if test "${lt_prog_compiler_pic_works+set}" = set; then
6584  echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586  lt_prog_compiler_pic_works=no
6587  ac_outfile=conftest.$ac_objext
6588   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6589   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6590   # Insert the option either (1) after the last *FLAGS variable, or
6591   # (2) before a word containing "conftest.", or (3) at the end.
6592   # Note that $ac_compile itself does not contain backslashes and begins
6593   # with a dollar sign (not a hyphen), so the echo should work correctly.
6594   # The option is referenced via a variable to avoid confusing sed.
6595   lt_compile=`echo "$ac_compile" | $SED \
6596   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6597   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6598   -e 's:$: $lt_compiler_flag:'`
6599   (eval echo "\"\$as_me:6599: $lt_compile\"" >&5)
6600   (eval "$lt_compile" 2>conftest.err)
6601   ac_status=$?
6602   cat conftest.err >&5
6603   echo "$as_me:6603: \$? = $ac_status" >&5
6604   if (exit $ac_status) && test -s "$ac_outfile"; then
6605     # The compiler can only warn and ignore the option if not recognized
6606     # So say no if there are warnings
6607     if test ! -s conftest.err; then
6608       lt_prog_compiler_pic_works=yes
6609     fi
6610   fi
6611   $rm conftest*
6612
6613fi
6614echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6615echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6616
6617if test x"$lt_prog_compiler_pic_works" = xyes; then
6618    case $lt_prog_compiler_pic in
6619     "" | " "*) ;;
6620     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6621     esac
6622else
6623    lt_prog_compiler_pic=
6624     lt_prog_compiler_can_build_shared=no
6625fi
6626
6627fi
6628case "$host_os" in
6629  # For platforms which do not support PIC, -DPIC is meaningless:
6630  *djgpp*)
6631    lt_prog_compiler_pic=
6632    ;;
6633  *)
6634    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6635    ;;
6636esac
6637
6638echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6639echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6640if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  lt_cv_prog_compiler_c_o=no
6644   $rm -r conftest 2>/dev/null
6645   mkdir conftest
6646   cd conftest
6647   mkdir out
6648   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6649
6650   lt_compiler_flag="-o out/conftest2.$ac_objext"
6651   # Insert the option either (1) after the last *FLAGS variable, or
6652   # (2) before a word containing "conftest.", or (3) at the end.
6653   # Note that $ac_compile itself does not contain backslashes and begins
6654   # with a dollar sign (not a hyphen), so the echo should work correctly.
6655   lt_compile=`echo "$ac_compile" | $SED \
6656   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6657   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6658   -e 's:$: $lt_compiler_flag:'`
6659   (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
6660   (eval "$lt_compile" 2>out/conftest.err)
6661   ac_status=$?
6662   cat out/conftest.err >&5
6663   echo "$as_me:6663: \$? = $ac_status" >&5
6664   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6665   then
6666     # The compiler can only warn and ignore the option if not recognized
6667     # So say no if there are warnings
6668     if test ! -s out/conftest.err; then
6669       lt_cv_prog_compiler_c_o=yes
6670     fi
6671   fi
6672   chmod u+w .
6673   $rm conftest*
6674   # SGI C++ compiler will create directory out/ii_files/ for
6675   # template instantiation
6676   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6677   $rm out/* && rmdir out
6678   cd ..
6679   rmdir conftest
6680   $rm conftest*
6681
6682fi
6683echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6684echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6685
6686
6687hard_links="nottested"
6688if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6689  # do not overwrite the value of need_locks provided by the user
6690  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6691echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6692  hard_links=yes
6693  $rm conftest*
6694  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6695  touch conftest.a
6696  ln conftest.a conftest.b 2>&5 || hard_links=no
6697  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6698  echo "$as_me:$LINENO: result: $hard_links" >&5
6699echo "${ECHO_T}$hard_links" >&6
6700  if test "$hard_links" = no; then
6701    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6702echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6703    need_locks=warn
6704  fi
6705else
6706  need_locks=no
6707fi
6708
6709echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6710echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6711
6712  runpath_var=
6713  allow_undefined_flag=
6714  enable_shared_with_static_runtimes=no
6715  archive_cmds=
6716  archive_expsym_cmds=
6717  old_archive_From_new_cmds=
6718  old_archive_from_expsyms_cmds=
6719  export_dynamic_flag_spec=
6720  whole_archive_flag_spec=
6721  thread_safe_flag_spec=
6722  hardcode_libdir_flag_spec=
6723  hardcode_libdir_flag_spec_ld=
6724  hardcode_libdir_separator=
6725  hardcode_direct=no
6726  hardcode_minus_L=no
6727  hardcode_shlibpath_var=unsupported
6728  link_all_deplibs=unknown
6729  hardcode_automatic=no
6730  module_cmds=
6731  module_expsym_cmds=
6732  always_export_symbols=no
6733  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6734  # include_expsyms should be a list of space-separated symbols to be *always*
6735  # included in the symbol list
6736  include_expsyms=
6737  # exclude_expsyms can be an extended regexp of symbols to exclude
6738  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6739  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6740  # as well as any symbol that contains `d'.
6741  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6742  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6743  # platforms (ab)use it in PIC code, but their linkers get confused if
6744  # the symbol is explicitly referenced.  Since portable code cannot
6745  # rely on this symbol name, it's probably fine to never include it in
6746  # preloaded symbol tables.
6747  extract_expsyms_cmds=
6748
6749  case $host_os in
6750  cygwin* | mingw* | pw32*)
6751    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6752    # When not using gcc, we currently assume that we are using
6753    # Microsoft Visual C++.
6754    if test "$GCC" != yes; then
6755      with_gnu_ld=no
6756    fi
6757    ;;
6758  openbsd*)
6759    with_gnu_ld=no
6760    ;;
6761  esac
6762
6763  ld_shlibs=yes
6764  if test "$with_gnu_ld" = yes; then
6765    # If archive_cmds runs LD, not CC, wlarc should be empty
6766    wlarc='${wl}'
6767
6768    # See if GNU ld supports shared libraries.
6769    case $host_os in
6770    aix3* | aix4* | aix5*)
6771      # On AIX/PPC, the GNU linker is very broken
6772      if test "$host_cpu" != ia64; then
6773        ld_shlibs=no
6774        cat <<EOF 1>&2
6775
6776*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6777*** to be unable to reliably create shared libraries on AIX.
6778*** Therefore, libtool is disabling shared libraries support.  If you
6779*** really care for shared libraries, you may want to modify your PATH
6780*** so that a non-GNU linker is found, and then restart.
6781
6782EOF
6783      fi
6784      ;;
6785
6786    amigaos*)
6787      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)'
6788      hardcode_libdir_flag_spec='-L$libdir'
6789      hardcode_minus_L=yes
6790
6791      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6792      # that the semantics of dynamic libraries on AmigaOS, at least up
6793      # to version 4, is to share data among multiple programs linked
6794      # with the same dynamic library.  Since this doesn't match the
6795      # behavior of shared libraries on other platforms, we can't use
6796      # them.
6797      ld_shlibs=no
6798      ;;
6799
6800    beos*)
6801      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6802        allow_undefined_flag=unsupported
6803        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6804        # support --undefined.  This deserves some investigation.  FIXME
6805        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6806      else
6807        ld_shlibs=no
6808      fi
6809      ;;
6810
6811    cygwin* | mingw* | pw32*)
6812      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6813      # as there is no search path for DLLs.
6814      hardcode_libdir_flag_spec='-L$libdir'
6815      allow_undefined_flag=unsupported
6816      always_export_symbols=no
6817      enable_shared_with_static_runtimes=yes
6818      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6819
6820      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6821        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6822        # If the export-symbols file already is a .def file (1st line
6823        # is EXPORTS), use it as is; otherwise, prepend...
6824        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6825          cp $export_symbols $output_objdir/$soname.def;
6826        else
6827          echo EXPORTS > $output_objdir/$soname.def;
6828          cat $export_symbols >> $output_objdir/$soname.def;
6829        fi~
6830        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6831      else
6832        ld_shlibs=no
6833      fi
6834      ;;
6835
6836    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6837      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6838        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6839        wlarc=
6840      else
6841        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6842        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6843      fi
6844      ;;
6845
6846    solaris* | sysv5*)
6847      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6848        ld_shlibs=no
6849        cat <<EOF 1>&2
6850
6851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6852*** create shared libraries on Solaris systems.  Therefore, libtool
6853*** is disabling shared libraries support.  We urge you to upgrade GNU
6854*** binutils to release 2.9.1 or newer.  Another option is to modify
6855*** your PATH or compiler configuration so that the native linker is
6856*** used, and then restart.
6857
6858EOF
6859      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6860        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6861        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6862      else
6863        ld_shlibs=no
6864      fi
6865      ;;
6866
6867    sunos4*)
6868      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6869      wlarc=
6870      hardcode_direct=yes
6871      hardcode_shlibpath_var=no
6872      ;;
6873
6874  linux*)
6875    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6876        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6877        archive_cmds="$tmp_archive_cmds"
6878      supports_anon_versioning=no
6879      case `$LD -v 2>/dev/null` in
6880        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6881        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6882        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6883        *\ 2.11.*) ;; # other 2.11 versions
6884        *) supports_anon_versioning=yes ;;
6885      esac
6886      if test $supports_anon_versioning = yes; then
6887        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6888cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6889$echo "local: *; };" >> $output_objdir/$libname.ver~
6890        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6891      else
6892        archive_expsym_cmds="$tmp_archive_cmds"
6893      fi
6894      link_all_deplibs=no
6895    else
6896      ld_shlibs=no
6897    fi
6898    ;;
6899
6900    *)
6901      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6902        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6903        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6904      else
6905        ld_shlibs=no
6906      fi
6907      ;;
6908    esac
6909
6910    if test "$ld_shlibs" = yes; then
6911      runpath_var=LD_RUN_PATH
6912      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6913      export_dynamic_flag_spec='${wl}--export-dynamic'
6914      # ancient GNU ld didn't support --whole-archive et. al.
6915      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6916        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6917      else
6918        whole_archive_flag_spec=
6919      fi
6920    fi
6921  else
6922    # PORTME fill in a description of your system's linker (not GNU ld)
6923    case $host_os in
6924    aix3*)
6925      allow_undefined_flag=unsupported
6926      always_export_symbols=yes
6927      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'
6928      # Note: this linker hardcodes the directories in LIBPATH if there
6929      # are no directories specified by -L.
6930      hardcode_minus_L=yes
6931      if test "$GCC" = yes && test -z "$link_static_flag"; then
6932        # Neither direct hardcoding nor static linking is supported with a
6933        # broken collect2.
6934        hardcode_direct=unsupported
6935      fi
6936      ;;
6937
6938    aix4* | aix5*)
6939      if test "$host_cpu" = ia64; then
6940        # On IA64, the linker does run time linking by default, so we don't
6941        # have to do anything special.
6942        aix_use_runtimelinking=no
6943        exp_sym_flag='-Bexport'
6944        no_entry_flag=""
6945      else
6946        # If we're using GNU nm, then we don't want the "-C" option.
6947        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6948        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6949          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'
6950        else
6951          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'
6952        fi
6953        aix_use_runtimelinking=no
6954
6955        # Test if we are trying to use run time linking or normal
6956        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6957        # need to do runtime linking.
6958        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6959          for ld_flag in $LDFLAGS; do
6960          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6961            aix_use_runtimelinking=yes
6962            break
6963          fi
6964          done
6965        esac
6966
6967        exp_sym_flag='-bexport'
6968        no_entry_flag='-bnoentry'
6969      fi
6970
6971      # When large executables or shared objects are built, AIX ld can
6972      # have problems creating the table of contents.  If linking a library
6973      # or program results in "error TOC overflow" add -mminimal-toc to
6974      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6975      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6976
6977      archive_cmds=''
6978      hardcode_direct=yes
6979      hardcode_libdir_separator=':'
6980      link_all_deplibs=yes
6981
6982      if test "$GCC" = yes; then
6983        case $host_os in aix4.012|aix4.012.*)
6984        # We only want to do this on AIX 4.2 and lower, the check
6985        # below for broken collect2 doesn't work under 4.3+
6986          collect2name=`${CC} -print-prog-name=collect2`
6987          if test -f "$collect2name" && \
6988           strings "$collect2name" | grep resolve_lib_name >/dev/null
6989          then
6990          # We have reworked collect2
6991          hardcode_direct=yes
6992          else
6993          # We have old collect2
6994          hardcode_direct=unsupported
6995          # It fails to find uninstalled libraries when the uninstalled
6996          # path is not listed in the libpath.  Setting hardcode_minus_L
6997          # to unsupported forces relinking
6998          hardcode_minus_L=yes
6999          hardcode_libdir_flag_spec='-L$libdir'
7000          hardcode_libdir_separator=
7001          fi
7002        esac
7003        shared_flag='-shared'
7004      else
7005        # not using gcc
7006        if test "$host_cpu" = ia64; then
7007        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7008        # chokes on -Wl,-G. The following line is correct:
7009          shared_flag='-G'
7010        else
7011        if test "$aix_use_runtimelinking" = yes; then
7012            shared_flag='${wl}-G'
7013          else
7014            shared_flag='${wl}-bM:SRE'
7015        fi
7016        fi
7017      fi
7018
7019      # It seems that -bexpall does not export symbols beginning with
7020      # underscore (_), so it is better to generate a list of symbols to export.
7021      always_export_symbols=yes
7022      if test "$aix_use_runtimelinking" = yes; then
7023        # Warning - without using the other runtime loading flags (-brtl),
7024        # -berok will link without error, but may produce a broken library.
7025        allow_undefined_flag='-berok'
7026       # Determine the default libpath from the value encoded in an empty executable.
7027       cat >conftest.$ac_ext <<_ACEOF
7028/* confdefs.h.  */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h.  */
7033
7034int
7035main ()
7036{
7037
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext conftest$ac_exeext
7043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044  (eval $ac_link) 2>conftest.er1
7045  ac_status=$?
7046  grep -v '^ *+' conftest.er1 >conftest.err
7047  rm -f conftest.er1
7048  cat conftest.err >&5
7049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050  (exit $ac_status); } &&
7051         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053  (eval $ac_try) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }; } &&
7057         { ac_try='test -s conftest$ac_exeext'
7058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059  (eval $ac_try) 2>&5
7060  ac_status=$?
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); }; }; then
7063
7064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7065}'`
7066# Check for a 64-bit object if we didn't find anything.
7067if 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; }
7068}'`; fi
7069else
7070  echo "$as_me: failed program was:" >&5
7071sed 's/^/| /' conftest.$ac_ext >&5
7072
7073fi
7074rm -f conftest.err conftest.$ac_objext \
7075      conftest$ac_exeext conftest.$ac_ext
7076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7077
7078       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7079        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"
7080       else
7081        if test "$host_cpu" = ia64; then
7082          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7083          allow_undefined_flag="-z nodefs"
7084          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"
7085        else
7086         # Determine the default libpath from the value encoded in an empty executable.
7087         cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h.  */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h.  */
7093
7094int
7095main ()
7096{
7097
7098  ;
7099  return 0;
7100}
7101_ACEOF
7102rm -f conftest.$ac_objext conftest$ac_exeext
7103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104  (eval $ac_link) 2>conftest.er1
7105  ac_status=$?
7106  grep -v '^ *+' conftest.er1 >conftest.err
7107  rm -f conftest.er1
7108  cat conftest.err >&5
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); } &&
7111         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113  (eval $ac_try) 2>&5
7114  ac_status=$?
7115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116  (exit $ac_status); }; } &&
7117         { ac_try='test -s conftest$ac_exeext'
7118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119  (eval $ac_try) 2>&5
7120  ac_status=$?
7121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122  (exit $ac_status); }; }; then
7123
7124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7125}'`
7126# Check for a 64-bit object if we didn't find anything.
7127if 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; }
7128}'`; fi
7129else
7130  echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133fi
7134rm -f conftest.err conftest.$ac_objext \
7135      conftest$ac_exeext conftest.$ac_ext
7136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7137
7138         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7139          # Warning - without using the other run time loading flags,
7140          # -berok will link without error, but may produce a broken library.
7141          no_undefined_flag=' ${wl}-bernotok'
7142          allow_undefined_flag=' ${wl}-berok'
7143          # -bexpall does not export symbols beginning with underscore (_)
7144          always_export_symbols=yes
7145          # Exported symbols can be pulled into shared objects from archives
7146          whole_archive_flag_spec=' '
7147          archive_cmds_need_lc=yes
7148          # This is similar to how AIX traditionally builds it's shared libraries.
7149          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'
7150        fi
7151      fi
7152      ;;
7153
7154    amigaos*)
7155      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)'
7156      hardcode_libdir_flag_spec='-L$libdir'
7157      hardcode_minus_L=yes
7158      # see comment about different semantics on the GNU ld section
7159      ld_shlibs=no
7160      ;;
7161
7162    bsdi4*)
7163      export_dynamic_flag_spec=-rdynamic
7164      ;;
7165
7166    cygwin* | mingw* | pw32*)
7167      # When not using gcc, we currently assume that we are using
7168      # Microsoft Visual C++.
7169      # hardcode_libdir_flag_spec is actually meaningless, as there is
7170      # no search path for DLLs.
7171      hardcode_libdir_flag_spec=' '
7172      allow_undefined_flag=unsupported
7173      # Tell ltmain to make .lib files, not .a files.
7174      libext=lib
7175      # Tell ltmain to make .dll files, not .so files.
7176      shrext_cmds=".dll"
7177      # FIXME: Setting linknames here is a bad hack.
7178      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7179      # The linker will automatically build a .lib file if we build a DLL.
7180      old_archive_From_new_cmds='true'
7181      # FIXME: Should let the user specify the lib program.
7182      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7183      fix_srcfile_path='`cygpath -w "$srcfile"`'
7184      enable_shared_with_static_runtimes=yes
7185      ;;
7186
7187    darwin* | rhapsody*)
7188    if test "$GXX" = yes ; then
7189      archive_cmds_need_lc=no
7190      case "$host_os" in
7191      rhapsody* | darwin1.[012])
7192        allow_undefined_flag='-undefined suppress'
7193        ;;
7194      *) # Darwin 1.3 on
7195      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7196        allow_undefined_flag='-flat_namespace -undefined suppress'
7197      else
7198        case ${MACOSX_DEPLOYMENT_TARGET} in
7199          10.[012])
7200            allow_undefined_flag='-flat_namespace -undefined suppress'
7201            ;;
7202          10.*)
7203            allow_undefined_flag='-undefined dynamic_lookup'
7204            ;;
7205        esac
7206      fi
7207        ;;
7208      esac
7209        lt_int_apple_cc_single_mod=no
7210        output_verbose_link_cmd='echo'
7211        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7212          lt_int_apple_cc_single_mod=yes
7213        fi
7214        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7215          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7216        else
7217        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7218      fi
7219      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7220      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7221        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7222          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7223        else
7224          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7225        fi
7226          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}'
7227      hardcode_direct=no
7228      hardcode_automatic=yes
7229      hardcode_shlibpath_var=unsupported
7230      whole_archive_flag_spec='-all_load $convenience'
7231      link_all_deplibs=yes
7232    else
7233      ld_shlibs=no
7234    fi
7235      ;;
7236
7237    dgux*)
7238      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239      hardcode_libdir_flag_spec='-L$libdir'
7240      hardcode_shlibpath_var=no
7241      ;;
7242
7243    freebsd1*)
7244      ld_shlibs=no
7245      ;;
7246
7247    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7248    # support.  Future versions do this automatically, but an explicit c++rt0.o
7249    # does not break anything, and helps significantly (at the cost of a little
7250    # extra space).
7251    freebsd2.2*)
7252      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7253      hardcode_libdir_flag_spec='-R$libdir'
7254      hardcode_direct=yes
7255      hardcode_shlibpath_var=no
7256      ;;
7257
7258    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7259    freebsd2*)
7260      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7261      hardcode_direct=yes
7262      hardcode_minus_L=yes
7263      hardcode_shlibpath_var=no
7264      ;;
7265
7266    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7267    freebsd* | kfreebsd*-gnu)
7268      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7269      hardcode_libdir_flag_spec='-R$libdir'
7270      hardcode_direct=yes
7271      hardcode_shlibpath_var=no
7272      ;;
7273
7274    hpux9*)
7275      if test "$GCC" = yes; then
7276        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'
7277      else
7278        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'
7279      fi
7280      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7281      hardcode_libdir_separator=:
7282      hardcode_direct=yes
7283
7284      # hardcode_minus_L: Not really in the search PATH,
7285      # but as the default location of the library.
7286      hardcode_minus_L=yes
7287      export_dynamic_flag_spec='${wl}-E'
7288      ;;
7289
7290    hpux10* | hpux11*)
7291      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7292        case "$host_cpu" in
7293        hppa*64*|ia64*)
7294          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7295          ;;
7296        *)
7297          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7298          ;;
7299        esac
7300      else
7301        case "$host_cpu" in
7302        hppa*64*|ia64*)
7303          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7304          ;;
7305        *)
7306          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7307          ;;
7308        esac
7309      fi
7310      if test "$with_gnu_ld" = no; then
7311        case "$host_cpu" in
7312        hppa*64*)
7313          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7314          hardcode_libdir_flag_spec_ld='+b $libdir'
7315          hardcode_libdir_separator=:
7316          hardcode_direct=no
7317          hardcode_shlibpath_var=no
7318          ;;
7319        ia64*)
7320          hardcode_libdir_flag_spec='-L$libdir'
7321          hardcode_direct=no
7322          hardcode_shlibpath_var=no
7323
7324          # hardcode_minus_L: Not really in the search PATH,
7325          # but as the default location of the library.
7326          hardcode_minus_L=yes
7327          ;;
7328        *)
7329          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7330          hardcode_libdir_separator=:
7331          hardcode_direct=yes
7332          export_dynamic_flag_spec='${wl}-E'
7333
7334          # hardcode_minus_L: Not really in the search PATH,
7335          # but as the default location of the library.
7336          hardcode_minus_L=yes
7337          ;;
7338        esac
7339      fi
7340      ;;
7341
7342    irix5* | irix6* | nonstopux*)
7343      if test "$GCC" = yes; then
7344        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'
7345      else
7346        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'
7347        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7348      fi
7349      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7350      hardcode_libdir_separator=:
7351      link_all_deplibs=yes
7352      ;;
7353
7354    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7355      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7356        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7357      else
7358        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7359      fi
7360      hardcode_libdir_flag_spec='-R$libdir'
7361      hardcode_direct=yes
7362      hardcode_shlibpath_var=no
7363      ;;
7364
7365    newsos6)
7366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367      hardcode_direct=yes
7368      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7369      hardcode_libdir_separator=:
7370      hardcode_shlibpath_var=no
7371      ;;
7372
7373    openbsd*)
7374      hardcode_direct=yes
7375      hardcode_shlibpath_var=no
7376      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7377        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7378        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7379        export_dynamic_flag_spec='${wl}-E'
7380      else
7381       case $host_os in
7382         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7383           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7384           hardcode_libdir_flag_spec='-R$libdir'
7385           ;;
7386         *)
7387           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7388           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7389           ;;
7390       esac
7391      fi
7392      ;;
7393
7394    os2*)
7395      hardcode_libdir_flag_spec='-L$libdir'
7396      hardcode_minus_L=yes
7397      allow_undefined_flag=unsupported
7398      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'
7399      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7400      ;;
7401
7402    osf3*)
7403      if test "$GCC" = yes; then
7404        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7405        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'
7406      else
7407        allow_undefined_flag=' -expect_unresolved \*'
7408        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'
7409      fi
7410      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7411      hardcode_libdir_separator=:
7412      ;;
7413
7414    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7415      if test "$GCC" = yes; then
7416        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7417        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'
7418        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7419      else
7420        allow_undefined_flag=' -expect_unresolved \*'
7421        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'
7422        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7423        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7424
7425        # Both c and cxx compiler support -rpath directly
7426        hardcode_libdir_flag_spec='-rpath $libdir'
7427      fi
7428      hardcode_libdir_separator=:
7429      ;;
7430
7431    sco3.2v5*)
7432      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7433      hardcode_shlibpath_var=no
7434      export_dynamic_flag_spec='${wl}-Bexport'
7435      runpath_var=LD_RUN_PATH
7436      hardcode_runpath_var=yes
7437      ;;
7438
7439    solaris*)
7440      no_undefined_flag=' -z text'
7441      if test "$GCC" = yes; then
7442        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7443        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7444          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7445      else
7446        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7448        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7449      fi
7450      hardcode_libdir_flag_spec='-R$libdir'
7451      hardcode_shlibpath_var=no
7452      case $host_os in
7453      solaris2.[0-5] | solaris2.[0-5].*) ;;
7454      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7455        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7456      esac
7457      link_all_deplibs=yes
7458      ;;
7459
7460    sunos4*)
7461      if test "x$host_vendor" = xsequent; then
7462        # Use $CC to link under sequent, because it throws in some extra .o
7463        # files that make .init and .fini sections work.
7464        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7465      else
7466        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7467      fi
7468      hardcode_libdir_flag_spec='-L$libdir'
7469      hardcode_direct=yes
7470      hardcode_minus_L=yes
7471      hardcode_shlibpath_var=no
7472      ;;
7473
7474    sysv4)
7475      case $host_vendor in
7476        sni)
7477          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478          hardcode_direct=yes # is this really true???
7479        ;;
7480        siemens)
7481          ## LD is ld it makes a PLAMLIB
7482          ## CC just makes a GrossModule.
7483          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7484          reload_cmds='$CC -r -o $output$reload_objs'
7485          hardcode_direct=no
7486        ;;
7487        motorola)
7488          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7489          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7490        ;;
7491      esac
7492      runpath_var='LD_RUN_PATH'
7493      hardcode_shlibpath_var=no
7494      ;;
7495
7496    sysv4.3*)
7497      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498      hardcode_shlibpath_var=no
7499      export_dynamic_flag_spec='-Bexport'
7500      ;;
7501
7502    sysv4*MP*)
7503      if test -d /usr/nec; then
7504        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7505        hardcode_shlibpath_var=no
7506        runpath_var=LD_RUN_PATH
7507        hardcode_runpath_var=yes
7508        ld_shlibs=yes
7509      fi
7510      ;;
7511
7512    sysv4.2uw2*)
7513      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7514      hardcode_direct=yes
7515      hardcode_minus_L=no
7516      hardcode_shlibpath_var=no
7517      hardcode_runpath_var=yes
7518      runpath_var=LD_RUN_PATH
7519      ;;
7520
7521   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7522      no_undefined_flag='${wl}-z ${wl}text'
7523      if test "$GCC" = yes; then
7524        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7525      else
7526        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7527      fi
7528      runpath_var='LD_RUN_PATH'
7529      hardcode_shlibpath_var=no
7530      ;;
7531
7532    sysv5*)
7533      no_undefined_flag=' -z text'
7534      # $CC -shared without GNU ld will not create a library from C++
7535      # object files and a static libstdc++, better avoid it by now
7536      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7538                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7539      hardcode_libdir_flag_spec=
7540      hardcode_shlibpath_var=no
7541      runpath_var='LD_RUN_PATH'
7542      ;;
7543
7544    uts4*)
7545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546      hardcode_libdir_flag_spec='-L$libdir'
7547      hardcode_shlibpath_var=no
7548      ;;
7549
7550    *)
7551      ld_shlibs=no
7552      ;;
7553    esac
7554  fi
7555
7556echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7557echo "${ECHO_T}$ld_shlibs" >&6
7558test "$ld_shlibs" = no && can_build_shared=no
7559
7560variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7561if test "$GCC" = yes; then
7562  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7563fi
7564
7565#
7566# Do we need to explicitly link libc?
7567#
7568case "x$archive_cmds_need_lc" in
7569x|xyes)
7570  # Assume -lc should be added
7571  archive_cmds_need_lc=yes
7572
7573  if test "$enable_shared" = yes && test "$GCC" = yes; then
7574    case $archive_cmds in
7575    *'~'*)
7576      # FIXME: we may have to deal with multi-command sequences.
7577      ;;
7578    '$CC '*)
7579      # Test whether the compiler implicitly links with -lc since on some
7580      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7581      # to ld, don't add -lc before -lgcc.
7582      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7583echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7584      $rm conftest*
7585      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586
7587      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588  (eval $ac_compile) 2>&5
7589  ac_status=$?
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); } 2>conftest.err; then
7592        soname=conftest
7593        lib=conftest
7594        libobjs=conftest.$ac_objext
7595        deplibs=
7596        wl=$lt_prog_compiler_wl
7597        compiler_flags=-v
7598        linker_flags=-v
7599        verstring=
7600        output_objdir=.
7601        libname=conftest
7602        lt_save_allow_undefined_flag=$allow_undefined_flag
7603        allow_undefined_flag=
7604        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7605  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }
7609        then
7610          archive_cmds_need_lc=no
7611        else
7612          archive_cmds_need_lc=yes
7613        fi
7614        allow_undefined_flag=$lt_save_allow_undefined_flag
7615      else
7616        cat conftest.err 1>&5
7617      fi
7618      $rm conftest*
7619      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7620echo "${ECHO_T}$archive_cmds_need_lc" >&6
7621      ;;
7622    esac
7623  fi
7624  ;;
7625esac
7626
7627echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7628echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7629library_names_spec=
7630libname_spec='lib$name'
7631soname_spec=
7632shrext_cmds=".so"
7633postinstall_cmds=
7634postuninstall_cmds=
7635finish_cmds=
7636finish_eval=
7637shlibpath_var=
7638shlibpath_overrides_runpath=unknown
7639version_type=none
7640dynamic_linker="$host_os ld.so"
7641sys_lib_dlsearch_path_spec="/lib /usr/lib"
7642if test "$GCC" = yes; then
7643  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7644  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7645    # if the path contains ";" then we assume it to be the separator
7646    # otherwise default to the standard path separator (i.e. ":") - it is
7647    # assumed that no part of a normal pathname contains ";" but that should
7648    # okay in the real world where ";" in dirpaths is itself problematic.
7649    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7650  else
7651    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7652  fi
7653else
7654  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7655fi
7656need_lib_prefix=unknown
7657hardcode_into_libs=no
7658
7659# when you set need_version to no, make sure it does not cause -set_version
7660# flags to be left without arguments
7661need_version=unknown
7662
7663case $host_os in
7664aix3*)
7665  version_type=linux
7666  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7667  shlibpath_var=LIBPATH
7668
7669  # AIX 3 has no versioning support, so we append a major version to the name.
7670  soname_spec='${libname}${release}${shared_ext}$major'
7671  ;;
7672
7673aix4* | aix5*)
7674  version_type=linux
7675  need_lib_prefix=no
7676  need_version=no
7677  hardcode_into_libs=yes
7678  if test "$host_cpu" = ia64; then
7679    # AIX 5 supports IA64
7680    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7681    shlibpath_var=LD_LIBRARY_PATH
7682  else
7683    # With GCC up to 2.95.x, collect2 would create an import file
7684    # for dependence libraries.  The import file would start with
7685    # the line `#! .'.  This would cause the generated library to
7686    # depend on `.', always an invalid library.  This was fixed in
7687    # development snapshots of GCC prior to 3.0.
7688    case $host_os in
7689      aix4 | aix4.[01] | aix4.[01].*)
7690      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7691           echo ' yes '
7692           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7693        :
7694      else
7695        can_build_shared=no
7696      fi
7697      ;;
7698    esac
7699    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7700    # soname into executable. Probably we can add versioning support to
7701    # collect2, so additional links can be useful in future.
7702    if test "$aix_use_runtimelinking" = yes; then
7703      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7704      # instead of lib<name>.a to let people know that these are not
7705      # typical AIX shared libraries.
7706      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7707    else
7708      # We preserve .a as extension for shared libraries through AIX4.2
7709      # and later when we are not doing run time linking.
7710      library_names_spec='${libname}${release}.a $libname.a'
7711      soname_spec='${libname}${release}${shared_ext}$major'
7712    fi
7713    shlibpath_var=LIBPATH
7714  fi
7715  ;;
7716
7717amigaos*)
7718  library_names_spec='$libname.ixlibrary $libname.a'
7719  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7720  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'
7721  ;;
7722
7723beos*)
7724  library_names_spec='${libname}${shared_ext}'
7725  dynamic_linker="$host_os ld.so"
7726  shlibpath_var=LIBRARY_PATH
7727  ;;
7728
7729bsdi4*)
7730  version_type=linux
7731  need_version=no
7732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7733  soname_spec='${libname}${release}${shared_ext}$major'
7734  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7735  shlibpath_var=LD_LIBRARY_PATH
7736  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7737  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7738  # the default ld.so.conf also contains /usr/contrib/lib and
7739  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7740  # libtool to hard-code these into programs
7741  ;;
7742
7743cygwin* | mingw* | pw32*)
7744  version_type=windows
7745  shrext_cmds=".dll"
7746  need_version=no
7747  need_lib_prefix=no
7748
7749  case $GCC,$host_os in
7750  yes,cygwin* | yes,mingw* | yes,pw32*)
7751    library_names_spec='$libname.dll.a'
7752    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7753    postinstall_cmds='base_file=`basename \${file}`~
7754      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7755      dldir=$destdir/`dirname \$dlpath`~
7756      test -d \$dldir || mkdir -p \$dldir~
7757      $install_prog $dir/$dlname \$dldir/$dlname'
7758    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7759      dlpath=$dir/\$dldll~
7760       $rm \$dlpath'
7761    shlibpath_overrides_runpath=yes
7762
7763    case $host_os in
7764    cygwin*)
7765      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7766      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7767      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7768      ;;
7769    mingw*)
7770      # MinGW DLLs use traditional 'lib' prefix
7771      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7772      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7773      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7774        # It is most probably a Windows format PATH printed by
7775        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7776        # path with ; separators, and with drive letters. We can handle the
7777        # drive letters (cygwin fileutils understands them), so leave them,
7778        # especially as we might pass files found there to a mingw objdump,
7779        # which wouldn't understand a cygwinified path. Ahh.
7780        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7781      else
7782        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7783      fi
7784      ;;
7785    pw32*)
7786      # pw32 DLLs use 'pw' prefix rather than 'lib'
7787      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7788      ;;
7789    esac
7790    ;;
7791
7792  *)
7793    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7794    ;;
7795  esac
7796  dynamic_linker='Win32 ld.exe'
7797  # FIXME: first we should search . and the directory the executable is in
7798  shlibpath_var=PATH
7799  ;;
7800
7801darwin* | rhapsody*)
7802  dynamic_linker="$host_os dyld"
7803  version_type=darwin
7804  need_lib_prefix=no
7805  need_version=no
7806  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7807  soname_spec='${libname}${release}${major}$shared_ext'
7808  shlibpath_overrides_runpath=yes
7809  shlibpath_var=DYLD_LIBRARY_PATH
7810  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7811  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7812  if test "$GCC" = yes; then
7813    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"`
7814  else
7815    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7816  fi
7817  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7818  ;;
7819
7820dgux*)
7821  version_type=linux
7822  need_lib_prefix=no
7823  need_version=no
7824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7825  soname_spec='${libname}${release}${shared_ext}$major'
7826  shlibpath_var=LD_LIBRARY_PATH
7827  ;;
7828
7829freebsd1*)
7830  dynamic_linker=no
7831  ;;
7832
7833kfreebsd*-gnu)
7834  version_type=linux
7835  need_lib_prefix=no
7836  need_version=no
7837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7838  soname_spec='${libname}${release}${shared_ext}$major'
7839  shlibpath_var=LD_LIBRARY_PATH
7840  shlibpath_overrides_runpath=no
7841  hardcode_into_libs=yes
7842  dynamic_linker='GNU ld.so'
7843  ;;
7844
7845freebsd*)
7846  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7847  version_type=freebsd-$objformat
7848  case $version_type in
7849    freebsd-elf*)
7850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7851      need_version=no
7852      need_lib_prefix=no
7853      ;;
7854    freebsd-*)
7855      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7856      need_version=yes
7857      ;;
7858  esac
7859  shlibpath_var=LD_LIBRARY_PATH
7860  case $host_os in
7861  freebsd2*)
7862    shlibpath_overrides_runpath=yes
7863    ;;
7864  freebsd3.01* | freebsdelf3.01*)
7865    shlibpath_overrides_runpath=yes
7866    hardcode_into_libs=yes
7867    ;;
7868  *) # from 3.2 on
7869    shlibpath_overrides_runpath=no
7870    hardcode_into_libs=yes
7871    ;;
7872  esac
7873  ;;
7874
7875gnu*)
7876  version_type=linux
7877  need_lib_prefix=no
7878  need_version=no
7879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7880  soname_spec='${libname}${release}${shared_ext}$major'
7881  shlibpath_var=LD_LIBRARY_PATH
7882  hardcode_into_libs=yes
7883  ;;
7884
7885hpux9* | hpux10* | hpux11*)
7886  # Give a soname corresponding to the major version so that dld.sl refuses to
7887  # link against other versions.
7888  version_type=sunos
7889  need_lib_prefix=no
7890  need_version=no
7891  case "$host_cpu" in
7892  ia64*)
7893    shrext_cmds='.so'
7894    hardcode_into_libs=yes
7895    dynamic_linker="$host_os dld.so"
7896    shlibpath_var=LD_LIBRARY_PATH
7897    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899    soname_spec='${libname}${release}${shared_ext}$major'
7900    if test "X$HPUX_IA64_MODE" = X32; then
7901      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7902    else
7903      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7904    fi
7905    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7906    ;;
7907   hppa*64*)
7908     shrext_cmds='.sl'
7909     hardcode_into_libs=yes
7910     dynamic_linker="$host_os dld.sl"
7911     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7912     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914     soname_spec='${libname}${release}${shared_ext}$major'
7915     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7917     ;;
7918   *)
7919    shrext_cmds='.sl'
7920    dynamic_linker="$host_os dld.sl"
7921    shlibpath_var=SHLIB_PATH
7922    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7923    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924    soname_spec='${libname}${release}${shared_ext}$major'
7925    ;;
7926  esac
7927  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7928  postinstall_cmds='chmod 555 $lib'
7929  ;;
7930
7931irix5* | irix6* | nonstopux*)
7932  case $host_os in
7933    nonstopux*) version_type=nonstopux ;;
7934    *)
7935        if test "$lt_cv_prog_gnu_ld" = yes; then
7936                version_type=linux
7937        else
7938                version_type=irix
7939        fi ;;
7940  esac
7941  need_lib_prefix=no
7942  need_version=no
7943  soname_spec='${libname}${release}${shared_ext}$major'
7944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7945  case $host_os in
7946  irix5* | nonstopux*)
7947    libsuff= shlibsuff=
7948    ;;
7949  *)
7950    case $LD in # libtool.m4 will add one of these switches to LD
7951    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7952      libsuff= shlibsuff= libmagic=32-bit;;
7953    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7954      libsuff=32 shlibsuff=N32 libmagic=N32;;
7955    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7956      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7957    *) libsuff= shlibsuff= libmagic=never-match;;
7958    esac
7959    ;;
7960  esac
7961  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7962  shlibpath_overrides_runpath=no
7963  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7964  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7965  hardcode_into_libs=yes
7966  ;;
7967
7968# No shared lib support for Linux oldld, aout, or coff.
7969linux*oldld* | linux*aout* | linux*coff*)
7970  dynamic_linker=no
7971  ;;
7972
7973# This must be Linux ELF.
7974linux*)
7975  version_type=linux
7976  need_lib_prefix=no
7977  need_version=no
7978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979  soname_spec='${libname}${release}${shared_ext}$major'
7980  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7981  shlibpath_var=LD_LIBRARY_PATH
7982  shlibpath_overrides_runpath=no
7983  # This implies no fast_install, which is unacceptable.
7984  # Some rework will be needed to allow for fast_install
7985  # before this can be enabled.
7986  hardcode_into_libs=yes
7987
7988  # Append ld.so.conf contents to the search path
7989  if test -f /etc/ld.so.conf; then
7990    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7991    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7992  fi
7993
7994  # We used to test for /lib/ld.so.1 and disable shared libraries on
7995  # powerpc, because MkLinux only supported shared libraries with the
7996  # GNU dynamic linker.  Since this was broken with cross compilers,
7997  # most powerpc-linux boxes support dynamic linking these days and
7998  # people can always --disable-shared, the test was removed, and we
7999  # assume the GNU/Linux dynamic linker is in use.
8000  dynamic_linker='GNU/Linux ld.so'
8001  ;;
8002
8003netbsdelf*-gnu)
8004  version_type=linux
8005  need_lib_prefix=no
8006  need_version=no
8007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8008  soname_spec='${libname}${release}${shared_ext}$major'
8009  shlibpath_var=LD_LIBRARY_PATH
8010  shlibpath_overrides_runpath=no
8011  hardcode_into_libs=yes
8012  dynamic_linker='NetBSD ld.elf_so'
8013  ;;
8014
8015knetbsd*-gnu)
8016  version_type=linux
8017  need_lib_prefix=no
8018  need_version=no
8019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8020  soname_spec='${libname}${release}${shared_ext}$major'
8021  shlibpath_var=LD_LIBRARY_PATH
8022  shlibpath_overrides_runpath=no
8023  hardcode_into_libs=yes
8024  dynamic_linker='GNU ld.so'
8025  ;;
8026
8027netbsd*)
8028  version_type=sunos
8029  need_lib_prefix=no
8030  need_version=no
8031  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8032    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8033    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8034    dynamic_linker='NetBSD (a.out) ld.so'
8035  else
8036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8037    soname_spec='${libname}${release}${shared_ext}$major'
8038    dynamic_linker='NetBSD ld.elf_so'
8039  fi
8040  shlibpath_var=LD_LIBRARY_PATH
8041  shlibpath_overrides_runpath=yes
8042  hardcode_into_libs=yes
8043  ;;
8044
8045newsos6)
8046  version_type=linux
8047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048  shlibpath_var=LD_LIBRARY_PATH
8049  shlibpath_overrides_runpath=yes
8050  ;;
8051
8052nto-qnx*)
8053  version_type=linux
8054  need_lib_prefix=no
8055  need_version=no
8056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057  soname_spec='${libname}${release}${shared_ext}$major'
8058  shlibpath_var=LD_LIBRARY_PATH
8059  shlibpath_overrides_runpath=yes
8060  ;;
8061
8062openbsd*)
8063  version_type=sunos
8064  need_lib_prefix=no
8065  need_version=yes
8066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8067  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8068  shlibpath_var=LD_LIBRARY_PATH
8069  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8070    case $host_os in
8071      openbsd2.[89] | openbsd2.[89].*)
8072        shlibpath_overrides_runpath=no
8073        ;;
8074      *)
8075        shlibpath_overrides_runpath=yes
8076        ;;
8077      esac
8078  else
8079    shlibpath_overrides_runpath=yes
8080  fi
8081  ;;
8082
8083os2*)
8084  libname_spec='$name'
8085  shrext_cmds=".dll"
8086  need_lib_prefix=no
8087  library_names_spec='$libname${shared_ext} $libname.a'
8088  dynamic_linker='OS/2 ld.exe'
8089  shlibpath_var=LIBPATH
8090  ;;
8091
8092osf3* | osf4* | osf5*)
8093  version_type=osf
8094  need_lib_prefix=no
8095  need_version=no
8096  soname_spec='${libname}${release}${shared_ext}$major'
8097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098  shlibpath_var=LD_LIBRARY_PATH
8099  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8100  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8101  ;;
8102
8103sco3.2v5*)
8104  version_type=osf
8105  soname_spec='${libname}${release}${shared_ext}$major'
8106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8107  shlibpath_var=LD_LIBRARY_PATH
8108  ;;
8109
8110solaris*)
8111  version_type=linux
8112  need_lib_prefix=no
8113  need_version=no
8114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115  soname_spec='${libname}${release}${shared_ext}$major'
8116  shlibpath_var=LD_LIBRARY_PATH
8117  shlibpath_overrides_runpath=yes
8118  hardcode_into_libs=yes
8119  # ldd complains unless libraries are executable
8120  postinstall_cmds='chmod +x $lib'
8121  ;;
8122
8123sunos4*)
8124  version_type=sunos
8125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8126  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8127  shlibpath_var=LD_LIBRARY_PATH
8128  shlibpath_overrides_runpath=yes
8129  if test "$with_gnu_ld" = yes; then
8130    need_lib_prefix=no
8131  fi
8132  need_version=yes
8133  ;;
8134
8135sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8136  version_type=linux
8137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8138  soname_spec='${libname}${release}${shared_ext}$major'
8139  shlibpath_var=LD_LIBRARY_PATH
8140  case $host_vendor in
8141    sni)
8142      shlibpath_overrides_runpath=no
8143      need_lib_prefix=no
8144      export_dynamic_flag_spec='${wl}-Blargedynsym'
8145      runpath_var=LD_RUN_PATH
8146      ;;
8147    siemens)
8148      need_lib_prefix=no
8149      ;;
8150    motorola)
8151      need_lib_prefix=no
8152      need_version=no
8153      shlibpath_overrides_runpath=no
8154      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8155      ;;
8156  esac
8157  ;;
8158
8159sysv4*MP*)
8160  if test -d /usr/nec ;then
8161    version_type=linux
8162    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8163    soname_spec='$libname${shared_ext}.$major'
8164    shlibpath_var=LD_LIBRARY_PATH
8165  fi
8166  ;;
8167
8168uts4*)
8169  version_type=linux
8170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8171  soname_spec='${libname}${release}${shared_ext}$major'
8172  shlibpath_var=LD_LIBRARY_PATH
8173  ;;
8174
8175*)
8176  dynamic_linker=no
8177  ;;
8178esac
8179echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8180echo "${ECHO_T}$dynamic_linker" >&6
8181test "$dynamic_linker" = no && can_build_shared=no
8182
8183echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8184echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8185hardcode_action=
8186if test -n "$hardcode_libdir_flag_spec" || \
8187   test -n "$runpath_var " || \
8188   test "X$hardcode_automatic"="Xyes" ; then
8189
8190  # We can hardcode non-existant directories.
8191  if test "$hardcode_direct" != no &&
8192     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8193     # have to relink, otherwise we might link with an installed library
8194     # when we should be linking with a yet-to-be-installed one
8195     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8196     test "$hardcode_minus_L" != no; then
8197    # Linking always hardcodes the temporary library directory.
8198    hardcode_action=relink
8199  else
8200    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8201    hardcode_action=immediate
8202  fi
8203else
8204  # We cannot hardcode anything, or else we can only hardcode existing
8205  # directories.
8206  hardcode_action=unsupported
8207fi
8208echo "$as_me:$LINENO: result: $hardcode_action" >&5
8209echo "${ECHO_T}$hardcode_action" >&6
8210
8211if test "$hardcode_action" = relink; then
8212  # Fast installation is not supported
8213  enable_fast_install=no
8214elif test "$shlibpath_overrides_runpath" = yes ||
8215     test "$enable_shared" = no; then
8216  # Fast installation is not necessary
8217  enable_fast_install=needless
8218fi
8219
8220striplib=
8221old_striplib=
8222echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8223echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8224if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8225  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8226  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8227  echo "$as_me:$LINENO: result: yes" >&5
8228echo "${ECHO_T}yes" >&6
8229else
8230# FIXME - insert some real tests, host_os isn't really good enough
8231  case $host_os in
8232   darwin*)
8233       if test -n "$STRIP" ; then
8234         striplib="$STRIP -x"
8235         echo "$as_me:$LINENO: result: yes" >&5
8236echo "${ECHO_T}yes" >&6
8237       else
8238  echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6
8240fi
8241       ;;
8242   *)
8243  echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6
8245    ;;
8246  esac
8247fi
8248
8249if test "x$enable_dlopen" != xyes; then
8250  enable_dlopen=unknown
8251  enable_dlopen_self=unknown
8252  enable_dlopen_self_static=unknown
8253else
8254  lt_cv_dlopen=no
8255  lt_cv_dlopen_libs=
8256
8257  case $host_os in
8258  beos*)
8259    lt_cv_dlopen="load_add_on"
8260    lt_cv_dlopen_libs=
8261    lt_cv_dlopen_self=yes
8262    ;;
8263
8264  mingw* | pw32*)
8265    lt_cv_dlopen="LoadLibrary"
8266    lt_cv_dlopen_libs=
8267   ;;
8268
8269  cygwin*)
8270    lt_cv_dlopen="dlopen"
8271    lt_cv_dlopen_libs=
8272   ;;
8273
8274  darwin*)
8275  # if libdl is installed we need to link against it
8276    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8277echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8278if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8279  echo $ECHO_N "(cached) $ECHO_C" >&6
8280else
8281  ac_check_lib_save_LIBS=$LIBS
8282LIBS="-ldl  $LIBS"
8283cat >conftest.$ac_ext <<_ACEOF
8284/* confdefs.h.  */
8285_ACEOF
8286cat confdefs.h >>conftest.$ac_ext
8287cat >>conftest.$ac_ext <<_ACEOF
8288/* end confdefs.h.  */
8289
8290/* Override any gcc2 internal prototype to avoid an error.  */
8291#ifdef __cplusplus
8292extern "C"
8293#endif
8294/* We use char because int might match the return type of a gcc2
8295   builtin and then its argument prototype would still apply.  */
8296char dlopen ();
8297int
8298main ()
8299{
8300dlopen ();
8301  ;
8302  return 0;
8303}
8304_ACEOF
8305rm -f conftest.$ac_objext conftest$ac_exeext
8306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307  (eval $ac_link) 2>conftest.er1
8308  ac_status=$?
8309  grep -v '^ *+' conftest.er1 >conftest.err
8310  rm -f conftest.er1
8311  cat conftest.err >&5
8312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313  (exit $ac_status); } &&
8314         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316  (eval $ac_try) 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); }; } &&
8320         { ac_try='test -s conftest$ac_exeext'
8321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322  (eval $ac_try) 2>&5
8323  ac_status=$?
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); }; }; then
8326  ac_cv_lib_dl_dlopen=yes
8327else
8328  echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331ac_cv_lib_dl_dlopen=no
8332fi
8333rm -f conftest.err conftest.$ac_objext \
8334      conftest$ac_exeext conftest.$ac_ext
8335LIBS=$ac_check_lib_save_LIBS
8336fi
8337echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8338echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8339if test $ac_cv_lib_dl_dlopen = yes; then
8340  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8341else
8342
8343    lt_cv_dlopen="dyld"
8344    lt_cv_dlopen_libs=
8345    lt_cv_dlopen_self=yes
8346
8347fi
8348
8349   ;;
8350
8351  *)
8352    echo "$as_me:$LINENO: checking for shl_load" >&5
8353echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8354if test "${ac_cv_func_shl_load+set}" = set; then
8355  echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357  cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h.  */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h.  */
8363/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8364   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8365#define shl_load innocuous_shl_load
8366
8367/* System header to define __stub macros and hopefully few prototypes,
8368    which can conflict with char shl_load (); below.
8369    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8370    <limits.h> exists even on freestanding compilers.  */
8371
8372#ifdef __STDC__
8373# include <limits.h>
8374#else
8375# include <assert.h>
8376#endif
8377
8378#undef shl_load
8379
8380/* Override any gcc2 internal prototype to avoid an error.  */
8381#ifdef __cplusplus
8382extern "C"
8383{
8384#endif
8385/* We use char because int might match the return type of a gcc2
8386   builtin and then its argument prototype would still apply.  */
8387char shl_load ();
8388/* The GNU C library defines this for functions which it implements
8389    to always fail with ENOSYS.  Some functions are actually named
8390    something starting with __ and the normal name is an alias.  */
8391#if defined (__stub_shl_load) || defined (__stub___shl_load)
8392choke me
8393#else
8394char (*f) () = shl_load;
8395#endif
8396#ifdef __cplusplus
8397}
8398#endif
8399
8400int
8401main ()
8402{
8403return f != shl_load;
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408rm -f conftest.$ac_objext conftest$ac_exeext
8409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410  (eval $ac_link) 2>conftest.er1
8411  ac_status=$?
8412  grep -v '^ *+' conftest.er1 >conftest.err
8413  rm -f conftest.er1
8414  cat conftest.err >&5
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); } &&
8417         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419  (eval $ac_try) 2>&5
8420  ac_status=$?
8421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422  (exit $ac_status); }; } &&
8423         { ac_try='test -s conftest$ac_exeext'
8424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425  (eval $ac_try) 2>&5
8426  ac_status=$?
8427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428  (exit $ac_status); }; }; then
8429  ac_cv_func_shl_load=yes
8430else
8431  echo "$as_me: failed program was:" >&5
8432sed 's/^/| /' conftest.$ac_ext >&5
8433
8434ac_cv_func_shl_load=no
8435fi
8436rm -f conftest.err conftest.$ac_objext \
8437      conftest$ac_exeext conftest.$ac_ext
8438fi
8439echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8440echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8441if test $ac_cv_func_shl_load = yes; then
8442  lt_cv_dlopen="shl_load"
8443else
8444  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8445echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8446if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8447  echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449  ac_check_lib_save_LIBS=$LIBS
8450LIBS="-ldld  $LIBS"
8451cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h.  */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h.  */
8457
8458/* Override any gcc2 internal prototype to avoid an error.  */
8459#ifdef __cplusplus
8460extern "C"
8461#endif
8462/* We use char because int might match the return type of a gcc2
8463   builtin and then its argument prototype would still apply.  */
8464char shl_load ();
8465int
8466main ()
8467{
8468shl_load ();
8469  ;
8470  return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475  (eval $ac_link) 2>conftest.er1
8476  ac_status=$?
8477  grep -v '^ *+' conftest.er1 >conftest.err
8478  rm -f conftest.er1
8479  cat conftest.err >&5
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); } &&
8482         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484  (eval $ac_try) 2>&5
8485  ac_status=$?
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); }; } &&
8488         { ac_try='test -s conftest$ac_exeext'
8489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490  (eval $ac_try) 2>&5
8491  ac_status=$?
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); }; }; then
8494  ac_cv_lib_dld_shl_load=yes
8495else
8496  echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499ac_cv_lib_dld_shl_load=no
8500fi
8501rm -f conftest.err conftest.$ac_objext \
8502      conftest$ac_exeext conftest.$ac_ext
8503LIBS=$ac_check_lib_save_LIBS
8504fi
8505echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8506echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8507if test $ac_cv_lib_dld_shl_load = yes; then
8508  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8509else
8510  echo "$as_me:$LINENO: checking for dlopen" >&5
8511echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8512if test "${ac_cv_func_dlopen+set}" = set; then
8513  echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515  cat >conftest.$ac_ext <<_ACEOF
8516/* confdefs.h.  */
8517_ACEOF
8518cat confdefs.h >>conftest.$ac_ext
8519cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h.  */
8521/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8522   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8523#define dlopen innocuous_dlopen
8524
8525/* System header to define __stub macros and hopefully few prototypes,
8526    which can conflict with char dlopen (); below.
8527    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8528    <limits.h> exists even on freestanding compilers.  */
8529
8530#ifdef __STDC__
8531# include <limits.h>
8532#else
8533# include <assert.h>
8534#endif
8535
8536#undef dlopen
8537
8538/* Override any gcc2 internal prototype to avoid an error.  */
8539#ifdef __cplusplus
8540extern "C"
8541{
8542#endif
8543/* We use char because int might match the return type of a gcc2
8544   builtin and then its argument prototype would still apply.  */
8545char dlopen ();
8546/* The GNU C library defines this for functions which it implements
8547    to always fail with ENOSYS.  Some functions are actually named
8548    something starting with __ and the normal name is an alias.  */
8549#if defined (__stub_dlopen) || defined (__stub___dlopen)
8550choke me
8551#else
8552char (*f) () = dlopen;
8553#endif
8554#ifdef __cplusplus
8555}
8556#endif
8557
8558int
8559main ()
8560{
8561return f != dlopen;
8562  ;
8563  return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext conftest$ac_exeext
8567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568  (eval $ac_link) 2>conftest.er1
8569  ac_status=$?
8570  grep -v '^ *+' conftest.er1 >conftest.err
8571  rm -f conftest.er1
8572  cat conftest.err >&5
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); } &&
8575         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577  (eval $ac_try) 2>&5
8578  ac_status=$?
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); }; } &&
8581         { ac_try='test -s conftest$ac_exeext'
8582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583  (eval $ac_try) 2>&5
8584  ac_status=$?
8585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586  (exit $ac_status); }; }; then
8587  ac_cv_func_dlopen=yes
8588else
8589  echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592ac_cv_func_dlopen=no
8593fi
8594rm -f conftest.err conftest.$ac_objext \
8595      conftest$ac_exeext conftest.$ac_ext
8596fi
8597echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8598echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8599if test $ac_cv_func_dlopen = yes; then
8600  lt_cv_dlopen="dlopen"
8601else
8602  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8603echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8604if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8605  echo $ECHO_N "(cached) $ECHO_C" >&6
8606else
8607  ac_check_lib_save_LIBS=$LIBS
8608LIBS="-ldl  $LIBS"
8609cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h.  */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h.  */
8615
8616/* Override any gcc2 internal prototype to avoid an error.  */
8617#ifdef __cplusplus
8618extern "C"
8619#endif
8620/* We use char because int might match the return type of a gcc2
8621   builtin and then its argument prototype would still apply.  */
8622char dlopen ();
8623int
8624main ()
8625{
8626dlopen ();
8627  ;
8628  return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext conftest$ac_exeext
8632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633  (eval $ac_link) 2>conftest.er1
8634  ac_status=$?
8635  grep -v '^ *+' conftest.er1 >conftest.err
8636  rm -f conftest.er1
8637  cat conftest.err >&5
8638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639  (exit $ac_status); } &&
8640         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642  (eval $ac_try) 2>&5
8643  ac_status=$?
8644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645  (exit $ac_status); }; } &&
8646         { ac_try='test -s conftest$ac_exeext'
8647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648  (eval $ac_try) 2>&5
8649  ac_status=$?
8650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651  (exit $ac_status); }; }; then
8652  ac_cv_lib_dl_dlopen=yes
8653else
8654  echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657ac_cv_lib_dl_dlopen=no
8658fi
8659rm -f conftest.err conftest.$ac_objext \
8660      conftest$ac_exeext conftest.$ac_ext
8661LIBS=$ac_check_lib_save_LIBS
8662fi
8663echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8664echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8665if test $ac_cv_lib_dl_dlopen = yes; then
8666  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8667else
8668  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8669echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8670if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8671  echo $ECHO_N "(cached) $ECHO_C" >&6
8672else
8673  ac_check_lib_save_LIBS=$LIBS
8674LIBS="-lsvld  $LIBS"
8675cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h.  */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h.  */
8681
8682/* Override any gcc2 internal prototype to avoid an error.  */
8683#ifdef __cplusplus
8684extern "C"
8685#endif
8686/* We use char because int might match the return type of a gcc2
8687   builtin and then its argument prototype would still apply.  */
8688char dlopen ();
8689int
8690main ()
8691{
8692dlopen ();
8693  ;
8694  return 0;
8695}
8696_ACEOF
8697rm -f conftest.$ac_objext conftest$ac_exeext
8698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699  (eval $ac_link) 2>conftest.er1
8700  ac_status=$?
8701  grep -v '^ *+' conftest.er1 >conftest.err
8702  rm -f conftest.er1
8703  cat conftest.err >&5
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); } &&
8706         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; } &&
8712         { ac_try='test -s conftest$ac_exeext'
8713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714  (eval $ac_try) 2>&5
8715  ac_status=$?
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); }; }; then
8718  ac_cv_lib_svld_dlopen=yes
8719else
8720  echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723ac_cv_lib_svld_dlopen=no
8724fi
8725rm -f conftest.err conftest.$ac_objext \
8726      conftest$ac_exeext conftest.$ac_ext
8727LIBS=$ac_check_lib_save_LIBS
8728fi
8729echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8730echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8731if test $ac_cv_lib_svld_dlopen = yes; then
8732  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8733else
8734  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8735echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8736if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739  ac_check_lib_save_LIBS=$LIBS
8740LIBS="-ldld  $LIBS"
8741cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h.  */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h.  */
8747
8748/* Override any gcc2 internal prototype to avoid an error.  */
8749#ifdef __cplusplus
8750extern "C"
8751#endif
8752/* We use char because int might match the return type of a gcc2
8753   builtin and then its argument prototype would still apply.  */
8754char dld_link ();
8755int
8756main ()
8757{
8758dld_link ();
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765  (eval $ac_link) 2>conftest.er1
8766  ac_status=$?
8767  grep -v '^ *+' conftest.er1 >conftest.err
8768  rm -f conftest.er1
8769  cat conftest.err >&5
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); } &&
8772         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; } &&
8778         { ac_try='test -s conftest$ac_exeext'
8779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780  (eval $ac_try) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); }; }; then
8784  ac_cv_lib_dld_dld_link=yes
8785else
8786  echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789ac_cv_lib_dld_dld_link=no
8790fi
8791rm -f conftest.err conftest.$ac_objext \
8792      conftest$ac_exeext conftest.$ac_ext
8793LIBS=$ac_check_lib_save_LIBS
8794fi
8795echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8796echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8797if test $ac_cv_lib_dld_dld_link = yes; then
8798  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8799fi
8800
8801
8802fi
8803
8804
8805fi
8806
8807
8808fi
8809
8810
8811fi
8812
8813
8814fi
8815
8816    ;;
8817  esac
8818
8819  if test "x$lt_cv_dlopen" != xno; then
8820    enable_dlopen=yes
8821  else
8822    enable_dlopen=no
8823  fi
8824
8825  case $lt_cv_dlopen in
8826  dlopen)
8827    save_CPPFLAGS="$CPPFLAGS"
8828    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8829
8830    save_LDFLAGS="$LDFLAGS"
8831    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8832
8833    save_LIBS="$LIBS"
8834    LIBS="$lt_cv_dlopen_libs $LIBS"
8835
8836    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8837echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8838if test "${lt_cv_dlopen_self+set}" = set; then
8839  echo $ECHO_N "(cached) $ECHO_C" >&6
8840else
8841          if test "$cross_compiling" = yes; then :
8842  lt_cv_dlopen_self=cross
8843else
8844  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8845  lt_status=$lt_dlunknown
8846  cat > conftest.$ac_ext <<EOF
8847#line 8847 "configure"
8848#include "confdefs.h"
8849
8850#if HAVE_DLFCN_H
8851#include <dlfcn.h>
8852#endif
8853
8854#include <stdio.h>
8855
8856#ifdef RTLD_GLOBAL
8857#  define LT_DLGLOBAL           RTLD_GLOBAL
8858#else
8859#  ifdef DL_GLOBAL
8860#    define LT_DLGLOBAL         DL_GLOBAL
8861#  else
8862#    define LT_DLGLOBAL         0
8863#  endif
8864#endif
8865
8866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8867   find out it does not work in some platform. */
8868#ifndef LT_DLLAZY_OR_NOW
8869#  ifdef RTLD_LAZY
8870#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8871#  else
8872#    ifdef DL_LAZY
8873#      define LT_DLLAZY_OR_NOW          DL_LAZY
8874#    else
8875#      ifdef RTLD_NOW
8876#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8877#      else
8878#        ifdef DL_NOW
8879#          define LT_DLLAZY_OR_NOW      DL_NOW
8880#        else
8881#          define LT_DLLAZY_OR_NOW      0
8882#        endif
8883#      endif
8884#    endif
8885#  endif
8886#endif
8887
8888#ifdef __cplusplus
8889extern "C" void exit (int);
8890#endif
8891
8892void fnord() { int i=42;}
8893int main ()
8894{
8895  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8896  int status = $lt_dlunknown;
8897
8898  if (self)
8899    {
8900      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8901      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8902      /* dlclose (self); */
8903    }
8904
8905    exit (status);
8906}
8907EOF
8908  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909  (eval $ac_link) 2>&5
8910  ac_status=$?
8911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8913    (./conftest; exit; ) 2>/dev/null
8914    lt_status=$?
8915    case x$lt_status in
8916      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8917      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8918      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8919    esac
8920  else :
8921    # compilation failed
8922    lt_cv_dlopen_self=no
8923  fi
8924fi
8925rm -fr conftest*
8926
8927
8928fi
8929echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8930echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8931
8932    if test "x$lt_cv_dlopen_self" = xyes; then
8933      LDFLAGS="$LDFLAGS $link_static_flag"
8934      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8935echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8936if test "${lt_cv_dlopen_self_static+set}" = set; then
8937  echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939          if test "$cross_compiling" = yes; then :
8940  lt_cv_dlopen_self_static=cross
8941else
8942  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8943  lt_status=$lt_dlunknown
8944  cat > conftest.$ac_ext <<EOF
8945#line 8945 "configure"
8946#include "confdefs.h"
8947
8948#if HAVE_DLFCN_H
8949#include <dlfcn.h>
8950#endif
8951
8952#include <stdio.h>
8953
8954#ifdef RTLD_GLOBAL
8955#  define LT_DLGLOBAL           RTLD_GLOBAL
8956#else
8957#  ifdef DL_GLOBAL
8958#    define LT_DLGLOBAL         DL_GLOBAL
8959#  else
8960#    define LT_DLGLOBAL         0
8961#  endif
8962#endif
8963
8964/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8965   find out it does not work in some platform. */
8966#ifndef LT_DLLAZY_OR_NOW
8967#  ifdef RTLD_LAZY
8968#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8969#  else
8970#    ifdef DL_LAZY
8971#      define LT_DLLAZY_OR_NOW          DL_LAZY
8972#    else
8973#      ifdef RTLD_NOW
8974#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8975#      else
8976#        ifdef DL_NOW
8977#          define LT_DLLAZY_OR_NOW      DL_NOW
8978#        else
8979#          define LT_DLLAZY_OR_NOW      0
8980#        endif
8981#      endif
8982#    endif
8983#  endif
8984#endif
8985
8986#ifdef __cplusplus
8987extern "C" void exit (int);
8988#endif
8989
8990void fnord() { int i=42;}
8991int main ()
8992{
8993  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8994  int status = $lt_dlunknown;
8995
8996  if (self)
8997    {
8998      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8999      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9000      /* dlclose (self); */
9001    }
9002
9003    exit (status);
9004}
9005EOF
9006  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007  (eval $ac_link) 2>&5
9008  ac_status=$?
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9011    (./conftest; exit; ) 2>/dev/null
9012    lt_status=$?
9013    case x$lt_status in
9014      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9015      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9016      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9017    esac
9018  else :
9019    # compilation failed
9020    lt_cv_dlopen_self_static=no
9021  fi
9022fi
9023rm -fr conftest*
9024
9025
9026fi
9027echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9028echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9029    fi
9030
9031    CPPFLAGS="$save_CPPFLAGS"
9032    LDFLAGS="$save_LDFLAGS"
9033    LIBS="$save_LIBS"
9034    ;;
9035  esac
9036
9037  case $lt_cv_dlopen_self in
9038  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9039  *) enable_dlopen_self=unknown ;;
9040  esac
9041
9042  case $lt_cv_dlopen_self_static in
9043  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9044  *) enable_dlopen_self_static=unknown ;;
9045  esac
9046fi
9047
9048
9049# Report which librarie types wil actually be built
9050echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9051echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9052echo "$as_me:$LINENO: result: $can_build_shared" >&5
9053echo "${ECHO_T}$can_build_shared" >&6
9054
9055echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9056echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9057test "$can_build_shared" = "no" && enable_shared=no
9058
9059# On AIX, shared libraries and static libraries use the same namespace, and
9060# are all built from PIC.
9061case "$host_os" in
9062aix3*)
9063  test "$enable_shared" = yes && enable_static=no
9064  if test -n "$RANLIB"; then
9065    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9066    postinstall_cmds='$RANLIB $lib'
9067  fi
9068  ;;
9069
9070aix4* | aix5*)
9071  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9072    test "$enable_shared" = yes && enable_static=no
9073  fi
9074  ;;
9075  darwin* | rhapsody*)
9076  if test "$GCC" = yes; then
9077    archive_cmds_need_lc=no
9078    case "$host_os" in
9079    rhapsody* | darwin1.[012])
9080      allow_undefined_flag='-undefined suppress'
9081      ;;
9082    *) # Darwin 1.3 on
9083      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9084        allow_undefined_flag='-flat_namespace -undefined suppress'
9085      else
9086        case ${MACOSX_DEPLOYMENT_TARGET} in
9087          10.[012])
9088            allow_undefined_flag='-flat_namespace -undefined suppress'
9089            ;;
9090          10.*)
9091            allow_undefined_flag='-undefined dynamic_lookup'
9092            ;;
9093        esac
9094      fi
9095      ;;
9096    esac
9097    output_verbose_link_cmd='echo'
9098    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9099    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9100    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9101    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}'
9102    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}'
9103    hardcode_direct=no
9104    hardcode_automatic=yes
9105    hardcode_shlibpath_var=unsupported
9106    whole_archive_flag_spec='-all_load $convenience'
9107    link_all_deplibs=yes
9108  else
9109    ld_shlibs=no
9110  fi
9111    ;;
9112esac
9113echo "$as_me:$LINENO: result: $enable_shared" >&5
9114echo "${ECHO_T}$enable_shared" >&6
9115
9116echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9117echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9118# Make sure either enable_shared or enable_static is yes.
9119test "$enable_shared" = yes || enable_static=yes
9120echo "$as_me:$LINENO: result: $enable_static" >&5
9121echo "${ECHO_T}$enable_static" >&6
9122
9123# The else clause should only fire when bootstrapping the
9124# libtool distribution, otherwise you forgot to ship ltmain.sh
9125# with your package, and you will get complaints that there are
9126# no rules to generate ltmain.sh.
9127if test -f "$ltmain"; then
9128  # See if we are running on zsh, and set the options which allow our commands through
9129  # without removal of \ escapes.
9130  if test -n "${ZSH_VERSION+set}" ; then
9131    setopt NO_GLOB_SUBST
9132  fi
9133  # Now quote all the things that may contain metacharacters while being
9134  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9135  # variables and quote the copies for generation of the libtool script.
9136  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9137    SED SHELL STRIP \
9138    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9139    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9140    deplibs_check_method reload_flag reload_cmds need_locks \
9141    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9142    lt_cv_sys_global_symbol_to_c_name_address \
9143    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9144    old_postinstall_cmds old_postuninstall_cmds \
9145    compiler \
9146    CC \
9147    LD \
9148    lt_prog_compiler_wl \
9149    lt_prog_compiler_pic \
9150    lt_prog_compiler_static \
9151    lt_prog_compiler_no_builtin_flag \
9152    export_dynamic_flag_spec \
9153    thread_safe_flag_spec \
9154    whole_archive_flag_spec \
9155    enable_shared_with_static_runtimes \
9156    old_archive_cmds \
9157    old_archive_from_new_cmds \
9158    predep_objects \
9159    postdep_objects \
9160    predeps \
9161    postdeps \
9162    compiler_lib_search_path \
9163    archive_cmds \
9164    archive_expsym_cmds \
9165    postinstall_cmds \
9166    postuninstall_cmds \
9167    old_archive_from_expsyms_cmds \
9168    allow_undefined_flag \
9169    no_undefined_flag \
9170    export_symbols_cmds \
9171    hardcode_libdir_flag_spec \
9172    hardcode_libdir_flag_spec_ld \
9173    hardcode_libdir_separator \
9174    hardcode_automatic \
9175    module_cmds \
9176    module_expsym_cmds \
9177    lt_cv_prog_compiler_c_o \
9178    exclude_expsyms \
9179    include_expsyms; do
9180
9181    case $var in
9182    old_archive_cmds | \
9183    old_archive_from_new_cmds | \
9184    archive_cmds | \
9185    archive_expsym_cmds | \
9186    module_cmds | \
9187    module_expsym_cmds | \
9188    old_archive_from_expsyms_cmds | \
9189    export_symbols_cmds | \
9190    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9191    postinstall_cmds | postuninstall_cmds | \
9192    old_postinstall_cmds | old_postuninstall_cmds | \
9193    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9194      # Double-quote double-evaled strings.
9195      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9196      ;;
9197    *)
9198      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9199      ;;
9200    esac
9201  done
9202
9203  case $lt_echo in
9204  *'\$0 --fallback-echo"')
9205    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9206    ;;
9207  esac
9208
9209cfgfile="${ofile}T"
9210  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9211  $rm -f "$cfgfile"
9212  { echo "$as_me:$LINENO: creating $ofile" >&5
9213echo "$as_me: creating $ofile" >&6;}
9214
9215  cat <<__EOF__ >> "$cfgfile"
9216#! $SHELL
9217
9218# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9219# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9220# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9221#
9222# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9223# Free Software Foundation, Inc.
9224#
9225# This file is part of GNU Libtool:
9226# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9227#
9228# This program is free software; you can redistribute it and/or modify
9229# it under the terms of the GNU General Public License as published by
9230# the Free Software Foundation; either version 2 of the License, or
9231# (at your option) any later version.
9232#
9233# This program is distributed in the hope that it will be useful, but
9234# WITHOUT ANY WARRANTY; without even the implied warranty of
9235# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9236# General Public License for more details.
9237#
9238# You should have received a copy of the GNU General Public License
9239# along with this program; if not, write to the Free Software
9240# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9241#
9242# As a special exception to the GNU General Public License, if you
9243# distribute this file as part of a program that contains a
9244# configuration script generated by Autoconf, you may include it under
9245# the same distribution terms that you use for the rest of that program.
9246
9247# A sed program that does not truncate output.
9248SED=$lt_SED
9249
9250# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9251Xsed="$SED -e s/^X//"
9252
9253# The HP-UX ksh and POSIX shell print the target directory to stdout
9254# if CDPATH is set.
9255if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9256
9257# The names of the tagged configurations supported by this script.
9258available_tags=
9259
9260# ### BEGIN LIBTOOL CONFIG
9261
9262# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9263
9264# Shell to use when invoking shell scripts.
9265SHELL=$lt_SHELL
9266
9267# Whether or not to build shared libraries.
9268build_libtool_libs=$enable_shared
9269
9270# Whether or not to build static libraries.
9271build_old_libs=$enable_static
9272
9273# Whether or not to add -lc for building shared libraries.
9274build_libtool_need_lc=$archive_cmds_need_lc
9275
9276# Whether or not to disallow shared libs when runtime libs are static
9277allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9278
9279# Whether or not to optimize for fast installation.
9280fast_install=$enable_fast_install
9281
9282# The host system.
9283host_alias=$host_alias
9284host=$host
9285
9286# An echo program that does not interpret backslashes.
9287echo=$lt_echo
9288
9289# The archiver.
9290AR=$lt_AR
9291AR_FLAGS=$lt_AR_FLAGS
9292
9293# A C compiler.
9294LTCC=$lt_LTCC
9295
9296# A language-specific compiler.
9297CC=$lt_compiler
9298
9299# Is the compiler the GNU C compiler?
9300with_gcc=$GCC
9301
9302# An ERE matcher.
9303EGREP=$lt_EGREP
9304
9305# The linker used to build libraries.
9306LD=$lt_LD
9307
9308# Whether we need hard or soft links.
9309LN_S=$lt_LN_S
9310
9311# A BSD-compatible nm program.
9312NM=$lt_NM
9313
9314# A symbol stripping program
9315STRIP=$lt_STRIP
9316
9317# Used to examine libraries when file_magic_cmd begins "file"
9318MAGIC_CMD=$MAGIC_CMD
9319
9320# Used on cygwin: DLL creation program.
9321DLLTOOL="$DLLTOOL"
9322
9323# Used on cygwin: object dumper.
9324OBJDUMP="$OBJDUMP"
9325
9326# Used on cygwin: assembler.
9327AS="$AS"
9328
9329# The name of the directory that contains temporary libtool files.
9330objdir=$objdir
9331
9332# How to create reloadable object files.
9333reload_flag=$lt_reload_flag
9334reload_cmds=$lt_reload_cmds
9335
9336# How to pass a linker flag through the compiler.
9337wl=$lt_lt_prog_compiler_wl
9338
9339# Object file suffix (normally "o").
9340objext="$ac_objext"
9341
9342# Old archive suffix (normally "a").
9343libext="$libext"
9344
9345# Shared library suffix (normally ".so").
9346shrext_cmds='$shrext_cmds'
9347
9348# Executable file suffix (normally "").
9349exeext="$exeext"
9350
9351# Additional compiler flags for building library objects.
9352pic_flag=$lt_lt_prog_compiler_pic
9353pic_mode=$pic_mode
9354
9355# What is the maximum length of a command?
9356max_cmd_len=$lt_cv_sys_max_cmd_len
9357
9358# Does compiler simultaneously support -c and -o options?
9359compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9360
9361# Must we lock files when doing compilation ?
9362need_locks=$lt_need_locks
9363
9364# Do we need the lib prefix for modules?
9365need_lib_prefix=$need_lib_prefix
9366
9367# Do we need a version for libraries?
9368need_version=$need_version
9369
9370# Whether dlopen is supported.
9371dlopen_support=$enable_dlopen
9372
9373# Whether dlopen of programs is supported.
9374dlopen_self=$enable_dlopen_self
9375
9376# Whether dlopen of statically linked programs is supported.
9377dlopen_self_static=$enable_dlopen_self_static
9378
9379# Compiler flag to prevent dynamic linking.
9380link_static_flag=$lt_lt_prog_compiler_static
9381
9382# Compiler flag to turn off builtin functions.
9383no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9384
9385# Compiler flag to allow reflexive dlopens.
9386export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9387
9388# Compiler flag to generate shared objects directly from archives.
9389whole_archive_flag_spec=$lt_whole_archive_flag_spec
9390
9391# Compiler flag to generate thread-safe objects.
9392thread_safe_flag_spec=$lt_thread_safe_flag_spec
9393
9394# Library versioning type.
9395version_type=$version_type
9396
9397# Format of library name prefix.
9398libname_spec=$lt_libname_spec
9399
9400# List of archive names.  First name is the real one, the rest are links.
9401# The last name is the one that the linker finds with -lNAME.
9402library_names_spec=$lt_library_names_spec
9403
9404# The coded name of the library, if different from the real name.
9405soname_spec=$lt_soname_spec
9406
9407# Commands used to build and install an old-style archive.
9408RANLIB=$lt_RANLIB
9409old_archive_cmds=$lt_old_archive_cmds
9410old_postinstall_cmds=$lt_old_postinstall_cmds
9411old_postuninstall_cmds=$lt_old_postuninstall_cmds
9412
9413# Create an old-style archive from a shared archive.
9414old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9415
9416# Create a temporary old-style archive to link instead of a shared archive.
9417old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9418
9419# Commands used to build and install a shared archive.
9420archive_cmds=$lt_archive_cmds
9421archive_expsym_cmds=$lt_archive_expsym_cmds
9422postinstall_cmds=$lt_postinstall_cmds
9423postuninstall_cmds=$lt_postuninstall_cmds
9424
9425# Commands used to build a loadable module (assumed same as above if empty)
9426module_cmds=$lt_module_cmds
9427module_expsym_cmds=$lt_module_expsym_cmds
9428
9429# Commands to strip libraries.
9430old_striplib=$lt_old_striplib
9431striplib=$lt_striplib
9432
9433# Dependencies to place before the objects being linked to create a
9434# shared library.
9435predep_objects=$lt_predep_objects
9436
9437# Dependencies to place after the objects being linked to create a
9438# shared library.
9439postdep_objects=$lt_postdep_objects
9440
9441# Dependencies to place before the objects being linked to create a
9442# shared library.
9443predeps=$lt_predeps
9444
9445# Dependencies to place after the objects being linked to create a
9446# shared library.
9447postdeps=$lt_postdeps
9448
9449# The library search path used internally by the compiler when linking
9450# a shared library.
9451compiler_lib_search_path=$lt_compiler_lib_search_path
9452
9453# Method to check whether dependent libraries are shared objects.
9454deplibs_check_method=$lt_deplibs_check_method
9455
9456# Command to use when deplibs_check_method == file_magic.
9457file_magic_cmd=$lt_file_magic_cmd
9458
9459# Flag that allows shared libraries with undefined symbols to be built.
9460allow_undefined_flag=$lt_allow_undefined_flag
9461
9462# Flag that forces no undefined symbols.
9463no_undefined_flag=$lt_no_undefined_flag
9464
9465# Commands used to finish a libtool library installation in a directory.
9466finish_cmds=$lt_finish_cmds
9467
9468# Same as above, but a single script fragment to be evaled but not shown.
9469finish_eval=$lt_finish_eval
9470
9471# Take the output of nm and produce a listing of raw symbols and C names.
9472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9473
9474# Transform the output of nm in a proper C declaration
9475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9476
9477# Transform the output of nm in a C name address pair
9478global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9479
9480# This is the shared library runtime path variable.
9481runpath_var=$runpath_var
9482
9483# This is the shared library path variable.
9484shlibpath_var=$shlibpath_var
9485
9486# Is shlibpath searched before the hard-coded library search path?
9487shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9488
9489# How to hardcode a shared library path into an executable.
9490hardcode_action=$hardcode_action
9491
9492# Whether we should hardcode library paths into libraries.
9493hardcode_into_libs=$hardcode_into_libs
9494
9495# Flag to hardcode \$libdir into a binary during linking.
9496# This must work even if \$libdir does not exist.
9497hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9498
9499# If ld is used when linking, flag to hardcode \$libdir into
9500# a binary during linking. This must work even if \$libdir does
9501# not exist.
9502hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9503
9504# Whether we need a single -rpath flag with a separated argument.
9505hardcode_libdir_separator=$lt_hardcode_libdir_separator
9506
9507# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9508# resulting binary.
9509hardcode_direct=$hardcode_direct
9510
9511# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9512# resulting binary.
9513hardcode_minus_L=$hardcode_minus_L
9514
9515# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9516# the resulting binary.
9517hardcode_shlibpath_var=$hardcode_shlibpath_var
9518
9519# Set to yes if building a shared library automatically hardcodes DIR into the library
9520# and all subsequent libraries and executables linked against it.
9521hardcode_automatic=$hardcode_automatic
9522
9523# Variables whose values should be saved in libtool wrapper scripts and
9524# restored at relink time.
9525variables_saved_for_relink="$variables_saved_for_relink"
9526
9527# Whether libtool must link a program against all its dependency libraries.
9528link_all_deplibs=$link_all_deplibs
9529
9530# Compile-time system search path for libraries
9531sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9532
9533# Run-time system search path for libraries
9534sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9535
9536# Fix the shell variable \$srcfile for the compiler.
9537fix_srcfile_path="$fix_srcfile_path"
9538
9539# Set to yes if exported symbols are required.
9540always_export_symbols=$always_export_symbols
9541
9542# The commands to list exported symbols.
9543export_symbols_cmds=$lt_export_symbols_cmds
9544
9545# The commands to extract the exported symbol list from a shared archive.
9546extract_expsyms_cmds=$lt_extract_expsyms_cmds
9547
9548# Symbols that should not be listed in the preloaded symbols.
9549exclude_expsyms=$lt_exclude_expsyms
9550
9551# Symbols that must always be exported.
9552include_expsyms=$lt_include_expsyms
9553
9554# ### END LIBTOOL CONFIG
9555
9556__EOF__
9557
9558
9559  case $host_os in
9560  aix3*)
9561    cat <<\EOF >> "$cfgfile"
9562
9563# AIX sometimes has problems with the GCC collect2 program.  For some
9564# reason, if we set the COLLECT_NAMES environment variable, the problems
9565# vanish in a puff of smoke.
9566if test "X${COLLECT_NAMES+set}" != Xset; then
9567  COLLECT_NAMES=
9568  export COLLECT_NAMES
9569fi
9570EOF
9571    ;;
9572  esac
9573
9574  # We use sed instead of cat because bash on DJGPP gets confused if
9575  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9576  # text mode, it properly converts lines to CR/LF.  This bash problem
9577  # is reportedly fixed, but why not run on old versions too?
9578  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9579
9580  mv -f "$cfgfile" "$ofile" || \
9581    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9582  chmod +x "$ofile"
9583
9584else
9585  # If there is no Makefile yet, we rely on a make rule to execute
9586  # `config.status --recheck' to rerun these tests and create the
9587  # libtool script then.
9588  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9589  if test -f "$ltmain_in"; then
9590    test -f Makefile && make "$ltmain"
9591  fi
9592fi
9593
9594
9595ac_ext=c
9596ac_cpp='$CPP $CPPFLAGS'
9597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599ac_compiler_gnu=$ac_cv_c_compiler_gnu
9600
9601CC="$lt_save_CC"
9602
9603
9604# Check whether --with-tags or --without-tags was given.
9605if test "${with_tags+set}" = set; then
9606  withval="$with_tags"
9607  tagnames="$withval"
9608fi;
9609
9610if test -f "$ltmain" && test -n "$tagnames"; then
9611  if test ! -f "${ofile}"; then
9612    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9613echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9614  fi
9615
9616  if test -z "$LTCC"; then
9617    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9618    if test -z "$LTCC"; then
9619      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9620echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9621    else
9622      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9623echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9624    fi
9625  fi
9626
9627  # Extract list of available tagged configurations in $ofile.
9628  # Note that this assumes the entire list is on one line.
9629  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9630
9631  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9632  for tagname in $tagnames; do
9633    IFS="$lt_save_ifs"
9634    # Check whether tagname contains only valid characters
9635    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9636    "") ;;
9637    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9638echo "$as_me: error: invalid tag name: $tagname" >&2;}
9639   { (exit 1); exit 1; }; }
9640        ;;
9641    esac
9642
9643    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9644    then
9645      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9646echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9647   { (exit 1); exit 1; }; }
9648    fi
9649
9650    # Update the list of available tags.
9651    if test -n "$tagname"; then
9652      echo appending configuration tag \"$tagname\" to $ofile
9653
9654      case $tagname in
9655      CXX)
9656        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9657          ac_ext=cc
9658ac_cpp='$CXXCPP $CPPFLAGS'
9659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9662
9663
9664
9665
9666archive_cmds_need_lc_CXX=no
9667allow_undefined_flag_CXX=
9668always_export_symbols_CXX=no
9669archive_expsym_cmds_CXX=
9670export_dynamic_flag_spec_CXX=
9671hardcode_direct_CXX=no
9672hardcode_libdir_flag_spec_CXX=
9673hardcode_libdir_flag_spec_ld_CXX=
9674hardcode_libdir_separator_CXX=
9675hardcode_minus_L_CXX=no
9676hardcode_automatic_CXX=no
9677module_cmds_CXX=
9678module_expsym_cmds_CXX=
9679link_all_deplibs_CXX=unknown
9680old_archive_cmds_CXX=$old_archive_cmds
9681no_undefined_flag_CXX=
9682whole_archive_flag_spec_CXX=
9683enable_shared_with_static_runtimes_CXX=no
9684
9685# Dependencies to place before and after the object being linked:
9686predep_objects_CXX=
9687postdep_objects_CXX=
9688predeps_CXX=
9689postdeps_CXX=
9690compiler_lib_search_path_CXX=
9691
9692# Source file extension for C++ test sources.
9693ac_ext=cc
9694
9695# Object file extension for compiled C++ test sources.
9696objext=o
9697objext_CXX=$objext
9698
9699# Code to be used in simple compile tests
9700lt_simple_compile_test_code="int some_variable = 0;\n"
9701
9702# Code to be used in simple link tests
9703lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9704
9705# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9706
9707# If no C compiler was specified, use CC.
9708LTCC=${LTCC-"$CC"}
9709
9710# Allow CC to be a program name with arguments.
9711compiler=$CC
9712
9713
9714# Allow CC to be a program name with arguments.
9715lt_save_CC=$CC
9716lt_save_LD=$LD
9717lt_save_GCC=$GCC
9718GCC=$GXX
9719lt_save_with_gnu_ld=$with_gnu_ld
9720lt_save_path_LD=$lt_cv_path_LD
9721if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9722  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9723else
9724  unset lt_cv_prog_gnu_ld
9725fi
9726if test -n "${lt_cv_path_LDCXX+set}"; then
9727  lt_cv_path_LD=$lt_cv_path_LDCXX
9728else
9729  unset lt_cv_path_LD
9730fi
9731test -z "${LDCXX+set}" || LD=$LDCXX
9732CC=${CXX-"c++"}
9733compiler=$CC
9734compiler_CXX=$CC
9735cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9736
9737# We don't want -fno-exception wen compiling C++ code, so set the
9738# no_builtin_flag separately
9739if test "$GXX" = yes; then
9740  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9741else
9742  lt_prog_compiler_no_builtin_flag_CXX=
9743fi
9744
9745if test "$GXX" = yes; then
9746  # Set up default GNU C++ configuration
9747
9748
9749# Check whether --with-gnu-ld or --without-gnu-ld was given.
9750if test "${with_gnu_ld+set}" = set; then
9751  withval="$with_gnu_ld"
9752  test "$withval" = no || with_gnu_ld=yes
9753else
9754  with_gnu_ld=no
9755fi;
9756ac_prog=ld
9757if test "$GCC" = yes; then
9758  # Check if gcc -print-prog-name=ld gives a path.
9759  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9760echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9761  case $host in
9762  *-*-mingw*)
9763    # gcc leaves a trailing carriage return which upsets mingw
9764    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9765  *)
9766    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9767  esac
9768  case $ac_prog in
9769    # Accept absolute paths.
9770    [\\/]* | ?:[\\/]*)
9771      re_direlt='/[^/][^/]*/\.\./'
9772      # Canonicalize the pathname of ld
9773      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9774      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9775        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9776      done
9777      test -z "$LD" && LD="$ac_prog"
9778      ;;
9779  "")
9780    # If it fails, then pretend we aren't using GCC.
9781    ac_prog=ld
9782    ;;
9783  *)
9784    # If it is relative, then search for the first ld in PATH.
9785    with_gnu_ld=unknown
9786    ;;
9787  esac
9788elif test "$with_gnu_ld" = yes; then
9789  echo "$as_me:$LINENO: checking for GNU ld" >&5
9790echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9791else
9792  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9793echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9794fi
9795if test "${lt_cv_path_LD+set}" = set; then
9796  echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798  if test -z "$LD"; then
9799  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9800  for ac_dir in $PATH; do
9801    IFS="$lt_save_ifs"
9802    test -z "$ac_dir" && ac_dir=.
9803    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9804      lt_cv_path_LD="$ac_dir/$ac_prog"
9805      # Check to see if the program is GNU ld.  I'd rather use --version,
9806      # but apparently some GNU ld's only accept -v.
9807      # Break only if it was the GNU/non-GNU ld that we prefer.
9808      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9809      *GNU* | *'with BFD'*)
9810        test "$with_gnu_ld" != no && break
9811        ;;
9812      *)
9813        test "$with_gnu_ld" != yes && break
9814        ;;
9815      esac
9816    fi
9817  done
9818  IFS="$lt_save_ifs"
9819else
9820  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9821fi
9822fi
9823
9824LD="$lt_cv_path_LD"
9825if test -n "$LD"; then
9826  echo "$as_me:$LINENO: result: $LD" >&5
9827echo "${ECHO_T}$LD" >&6
9828else
9829  echo "$as_me:$LINENO: result: no" >&5
9830echo "${ECHO_T}no" >&6
9831fi
9832test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9833echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9834   { (exit 1); exit 1; }; }
9835echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9836echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9837if test "${lt_cv_prog_gnu_ld+set}" = set; then
9838  echo $ECHO_N "(cached) $ECHO_C" >&6
9839else
9840  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9841case `$LD -v 2>&1 </dev/null` in
9842*GNU* | *'with BFD'*)
9843  lt_cv_prog_gnu_ld=yes
9844  ;;
9845*)
9846  lt_cv_prog_gnu_ld=no
9847  ;;
9848esac
9849fi
9850echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9851echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9852with_gnu_ld=$lt_cv_prog_gnu_ld
9853
9854
9855
9856  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9857  # archiving commands below assume that GNU ld is being used.
9858  if test "$with_gnu_ld" = yes; then
9859    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860    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'
9861
9862    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9863    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9864
9865    # If archive_cmds runs LD, not CC, wlarc should be empty
9866    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9867    #     investigate it a little bit more. (MM)
9868    wlarc='${wl}'
9869
9870    # ancient GNU ld didn't support --whole-archive et. al.
9871    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9872        grep 'no-whole-archive' > /dev/null; then
9873      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9874    else
9875      whole_archive_flag_spec_CXX=
9876    fi
9877  else
9878    with_gnu_ld=no
9879    wlarc=
9880
9881    # A generic and very simple default shared library creation
9882    # command for GNU C++ for the case where it uses the native
9883    # linker, instead of GNU ld.  If possible, this setting should
9884    # overridden to take advantage of the native linker features on
9885    # the platform it is being used on.
9886    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9887  fi
9888
9889  # Commands to make compiler produce verbose output that lists
9890  # what "hidden" libraries, object files and flags are used when
9891  # linking a shared library.
9892  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9893
9894else
9895  GXX=no
9896  with_gnu_ld=no
9897  wlarc=
9898fi
9899
9900# PORTME: fill in a description of your system's C++ link characteristics
9901echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9902echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9903ld_shlibs_CXX=yes
9904case $host_os in
9905  aix3*)
9906    # FIXME: insert proper C++ library support
9907    ld_shlibs_CXX=no
9908    ;;
9909  aix4* | aix5*)
9910    if test "$host_cpu" = ia64; then
9911      # On IA64, the linker does run time linking by default, so we don't
9912      # have to do anything special.
9913      aix_use_runtimelinking=no
9914      exp_sym_flag='-Bexport'
9915      no_entry_flag=""
9916    else
9917      aix_use_runtimelinking=no
9918
9919      # Test if we are trying to use run time linking or normal
9920      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9921      # need to do runtime linking.
9922      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9923        for ld_flag in $LDFLAGS; do
9924          case $ld_flag in
9925          *-brtl*)
9926            aix_use_runtimelinking=yes
9927            break
9928            ;;
9929          esac
9930        done
9931      esac
9932
9933      exp_sym_flag='-bexport'
9934      no_entry_flag='-bnoentry'
9935    fi
9936
9937    # When large executables or shared objects are built, AIX ld can
9938    # have problems creating the table of contents.  If linking a library
9939    # or program results in "error TOC overflow" add -mminimal-toc to
9940    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9941    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9942
9943    archive_cmds_CXX=''
9944    hardcode_direct_CXX=yes
9945    hardcode_libdir_separator_CXX=':'
9946    link_all_deplibs_CXX=yes
9947
9948    if test "$GXX" = yes; then
9949      case $host_os in aix4.012|aix4.012.*)
9950      # We only want to do this on AIX 4.2 and lower, the check
9951      # below for broken collect2 doesn't work under 4.3+
9952        collect2name=`${CC} -print-prog-name=collect2`
9953        if test -f "$collect2name" && \
9954           strings "$collect2name" | grep resolve_lib_name >/dev/null
9955        then
9956          # We have reworked collect2
9957          hardcode_direct_CXX=yes
9958        else
9959          # We have old collect2
9960          hardcode_direct_CXX=unsupported
9961          # It fails to find uninstalled libraries when the uninstalled
9962          # path is not listed in the libpath.  Setting hardcode_minus_L
9963          # to unsupported forces relinking
9964          hardcode_minus_L_CXX=yes
9965          hardcode_libdir_flag_spec_CXX='-L$libdir'
9966          hardcode_libdir_separator_CXX=
9967        fi
9968      esac
9969      shared_flag='-shared'
9970    else
9971      # not using gcc
9972      if test "$host_cpu" = ia64; then
9973        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9974        # chokes on -Wl,-G. The following line is correct:
9975        shared_flag='-G'
9976      else
9977        if test "$aix_use_runtimelinking" = yes; then
9978          shared_flag='${wl}-G'
9979        else
9980          shared_flag='${wl}-bM:SRE'
9981        fi
9982      fi
9983    fi
9984
9985    # It seems that -bexpall does not export symbols beginning with
9986    # underscore (_), so it is better to generate a list of symbols to export.
9987    always_export_symbols_CXX=yes
9988    if test "$aix_use_runtimelinking" = yes; then
9989      # Warning - without using the other runtime loading flags (-brtl),
9990      # -berok will link without error, but may produce a broken library.
9991      allow_undefined_flag_CXX='-berok'
9992      # Determine the default libpath from the value encoded in an empty executable.
9993      cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h.  */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h.  */
9999
10000int
10001main ()
10002{
10003
10004  ;
10005  return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010  (eval $ac_link) 2>conftest.er1
10011  ac_status=$?
10012  grep -v '^ *+' conftest.er1 >conftest.err
10013  rm -f conftest.er1
10014  cat conftest.err >&5
10015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016  (exit $ac_status); } &&
10017         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019  (eval $ac_try) 2>&5
10020  ac_status=$?
10021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); }; } &&
10023         { ac_try='test -s conftest$ac_exeext'
10024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025  (eval $ac_try) 2>&5
10026  ac_status=$?
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); }; }; then
10029
10030aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10031}'`
10032# Check for a 64-bit object if we didn't find anything.
10033if 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; }
10034}'`; fi
10035else
10036  echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
10039fi
10040rm -f conftest.err conftest.$ac_objext \
10041      conftest$ac_exeext conftest.$ac_ext
10042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10043
10044      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10045
10046      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"
10047     else
10048      if test "$host_cpu" = ia64; then
10049        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10050        allow_undefined_flag_CXX="-z nodefs"
10051        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"
10052      else
10053        # Determine the default libpath from the value encoded in an empty executable.
10054        cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h.  */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h.  */
10060
10061int
10062main ()
10063{
10064
10065  ;
10066  return 0;
10067}
10068_ACEOF
10069rm -f conftest.$ac_objext conftest$ac_exeext
10070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071  (eval $ac_link) 2>conftest.er1
10072  ac_status=$?
10073  grep -v '^ *+' conftest.er1 >conftest.err
10074  rm -f conftest.er1
10075  cat conftest.err >&5
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); } &&
10078         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080  (eval $ac_try) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); }; } &&
10084         { ac_try='test -s conftest$ac_exeext'
10085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086  (eval $ac_try) 2>&5
10087  ac_status=$?
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); }; }; then
10090
10091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10092}'`
10093# Check for a 64-bit object if we didn't find anything.
10094if 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; }
10095}'`; fi
10096else
10097  echo "$as_me: failed program was:" >&5
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
10100fi
10101rm -f conftest.err conftest.$ac_objext \
10102      conftest$ac_exeext conftest.$ac_ext
10103if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10104
10105        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10106        # Warning - without using the other run time loading flags,
10107        # -berok will link without error, but may produce a broken library.
10108        no_undefined_flag_CXX=' ${wl}-bernotok'
10109        allow_undefined_flag_CXX=' ${wl}-berok'
10110        # -bexpall does not export symbols beginning with underscore (_)
10111        always_export_symbols_CXX=yes
10112        # Exported symbols can be pulled into shared objects from archives
10113        whole_archive_flag_spec_CXX=' '
10114        archive_cmds_need_lc_CXX=yes
10115        # This is similar to how AIX traditionally builds it's shared libraries.
10116        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'
10117      fi
10118    fi
10119    ;;
10120  chorus*)
10121    case $cc_basename in
10122      *)
10123        # FIXME: insert proper C++ library support
10124        ld_shlibs_CXX=no
10125        ;;
10126    esac
10127    ;;
10128
10129  cygwin* | mingw* | pw32*)
10130    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10131    # as there is no search path for DLLs.
10132    hardcode_libdir_flag_spec_CXX='-L$libdir'
10133    allow_undefined_flag_CXX=unsupported
10134    always_export_symbols_CXX=no
10135    enable_shared_with_static_runtimes_CXX=yes
10136
10137    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10138      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'
10139      # If the export-symbols file already is a .def file (1st line
10140      # is EXPORTS), use it as is; otherwise, prepend...
10141      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10142        cp $export_symbols $output_objdir/$soname.def;
10143      else
10144        echo EXPORTS > $output_objdir/$soname.def;
10145        cat $export_symbols >> $output_objdir/$soname.def;
10146      fi~
10147      $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'
10148    else
10149      ld_shlibs_CXX=no
10150    fi
10151  ;;
10152
10153  darwin* | rhapsody*)
10154  if test "$GXX" = yes; then
10155    archive_cmds_need_lc_CXX=no
10156    case "$host_os" in
10157    rhapsody* | darwin1.[012])
10158      allow_undefined_flag_CXX='-undefined suppress'
10159      ;;
10160    *) # Darwin 1.3 on
10161      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10162        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10163      else
10164        case ${MACOSX_DEPLOYMENT_TARGET} in
10165          10.[012])
10166            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10167            ;;
10168          10.*)
10169            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10170            ;;
10171        esac
10172      fi
10173      ;;
10174    esac
10175    lt_int_apple_cc_single_mod=no
10176    output_verbose_link_cmd='echo'
10177    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10178      lt_int_apple_cc_single_mod=yes
10179    fi
10180    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10181      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10182    else
10183      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10184    fi
10185    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10186
10187    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10188    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10189      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}'
10190    else
10191      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10192    fi
10193    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}'
10194    hardcode_direct_CXX=no
10195    hardcode_automatic_CXX=yes
10196    hardcode_shlibpath_var_CXX=unsupported
10197    whole_archive_flag_spec_CXX='-all_load $convenience'
10198    link_all_deplibs_CXX=yes
10199  else
10200    ld_shlibs_CXX=no
10201  fi
10202    ;;
10203
10204  dgux*)
10205    case $cc_basename in
10206      ec++)
10207        # FIXME: insert proper C++ library support
10208        ld_shlibs_CXX=no
10209        ;;
10210      ghcx)
10211        # Green Hills C++ Compiler
10212        # FIXME: insert proper C++ library support
10213        ld_shlibs_CXX=no
10214        ;;
10215      *)
10216        # FIXME: insert proper C++ library support
10217        ld_shlibs_CXX=no
10218        ;;
10219    esac
10220    ;;
10221  freebsd12*)
10222    # C++ shared libraries reported to be fairly broken before switch to ELF
10223    ld_shlibs_CXX=no
10224    ;;
10225  freebsd-elf*)
10226    archive_cmds_need_lc_CXX=no
10227    ;;
10228  freebsd* | kfreebsd*-gnu)
10229    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10230    # conventions
10231    ld_shlibs_CXX=yes
10232    ;;
10233  gnu*)
10234    ;;
10235  hpux9*)
10236    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10237    hardcode_libdir_separator_CXX=:
10238    export_dynamic_flag_spec_CXX='${wl}-E'
10239    hardcode_direct_CXX=yes
10240    hardcode_minus_L_CXX=yes # Not in the search PATH,
10241                                # but as the default
10242                                # location of the library.
10243
10244    case $cc_basename in
10245    CC)
10246      # FIXME: insert proper C++ library support
10247      ld_shlibs_CXX=no
10248      ;;
10249    aCC)
10250      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'
10251      # Commands to make compiler produce verbose output that lists
10252      # what "hidden" libraries, object files and flags are used when
10253      # linking a shared library.
10254      #
10255      # There doesn't appear to be a way to prevent this compiler from
10256      # explicitly linking system object files so we need to strip them
10257      # from the output so that they don't get included in the library
10258      # dependencies.
10259      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'
10260      ;;
10261    *)
10262      if test "$GXX" = yes; then
10263        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'
10264      else
10265        # FIXME: insert proper C++ library support
10266        ld_shlibs_CXX=no
10267      fi
10268      ;;
10269    esac
10270    ;;
10271  hpux10*|hpux11*)
10272    if test $with_gnu_ld = no; then
10273      case "$host_cpu" in
10274      hppa*64*)
10275        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10276        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10277        hardcode_libdir_separator_CXX=:
10278        ;;
10279      ia64*)
10280        hardcode_libdir_flag_spec_CXX='-L$libdir'
10281        ;;
10282      *)
10283        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10284        hardcode_libdir_separator_CXX=:
10285        export_dynamic_flag_spec_CXX='${wl}-E'
10286        ;;
10287      esac
10288    fi
10289    case "$host_cpu" in
10290    hppa*64*)
10291      hardcode_direct_CXX=no
10292      hardcode_shlibpath_var_CXX=no
10293      ;;
10294    ia64*)
10295      hardcode_direct_CXX=no
10296      hardcode_shlibpath_var_CXX=no
10297      hardcode_minus_L_CXX=yes # Not in the search PATH,
10298                                              # but as the default
10299                                              # location of the library.
10300      ;;
10301    *)
10302      hardcode_direct_CXX=yes
10303      hardcode_minus_L_CXX=yes # Not in the search PATH,
10304                                              # but as the default
10305                                              # location of the library.
10306      ;;
10307    esac
10308
10309    case $cc_basename in
10310      CC)
10311        # FIXME: insert proper C++ library support
10312        ld_shlibs_CXX=no
10313        ;;
10314      aCC)
10315        case "$host_cpu" in
10316        hppa*64*|ia64*)
10317          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10318          ;;
10319        *)
10320          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10321          ;;
10322        esac
10323        # Commands to make compiler produce verbose output that lists
10324        # what "hidden" libraries, object files and flags are used when
10325        # linking a shared library.
10326        #
10327        # There doesn't appear to be a way to prevent this compiler from
10328        # explicitly linking system object files so we need to strip them
10329        # from the output so that they don't get included in the library
10330        # dependencies.
10331        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'
10332        ;;
10333      *)
10334        if test "$GXX" = yes; then
10335          if test $with_gnu_ld = no; then
10336            case "$host_cpu" in
10337            ia64*|hppa*64*)
10338              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10339              ;;
10340            *)
10341              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'
10342              ;;
10343            esac
10344          fi
10345        else
10346          # FIXME: insert proper C++ library support
10347          ld_shlibs_CXX=no
10348        fi
10349        ;;
10350    esac
10351    ;;
10352  irix5* | irix6*)
10353    case $cc_basename in
10354      CC)
10355        # SGI C++
10356        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10357
10358        # Archives containing C++ object files must be created using
10359        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10360        # necessary to make sure instantiated templates are included
10361        # in the archive.
10362        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10363        ;;
10364      *)
10365        if test "$GXX" = yes; then
10366          if test "$with_gnu_ld" = no; then
10367            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10368          else
10369            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'
10370          fi
10371        fi
10372        link_all_deplibs_CXX=yes
10373        ;;
10374    esac
10375    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10376    hardcode_libdir_separator_CXX=:
10377    ;;
10378  linux*)
10379    case $cc_basename in
10380      KCC)
10381        # Kuck and Associates, Inc. (KAI) C++ Compiler
10382
10383        # KCC will only create a shared library if the output file
10384        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10385        # to its proper name (with version) after linking.
10386        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'
10387        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'
10388        # Commands to make compiler produce verbose output that lists
10389        # what "hidden" libraries, object files and flags are used when
10390        # linking a shared library.
10391        #
10392        # There doesn't appear to be a way to prevent this compiler from
10393        # explicitly linking system object files so we need to strip them
10394        # from the output so that they don't get included in the library
10395        # dependencies.
10396        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'
10397
10398        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10399        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10400
10401        # Archives containing C++ object files must be created using
10402        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10403        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10404        ;;
10405      icpc)
10406        # Intel C++
10407        with_gnu_ld=yes
10408        archive_cmds_need_lc_CXX=no
10409        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10410        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'
10411        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10412        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10413        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10414        ;;
10415      cxx)
10416        # Compaq C++
10417        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418        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'
10419
10420        runpath_var=LD_RUN_PATH
10421        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10422        hardcode_libdir_separator_CXX=:
10423
10424        # Commands to make compiler produce verbose output that lists
10425        # what "hidden" libraries, object files and flags are used when
10426        # linking a shared library.
10427        #
10428        # There doesn't appear to be a way to prevent this compiler from
10429        # explicitly linking system object files so we need to strip them
10430        # from the output so that they don't get included in the library
10431        # dependencies.
10432        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'
10433        ;;
10434    esac
10435    ;;
10436  lynxos*)
10437    # FIXME: insert proper C++ library support
10438    ld_shlibs_CXX=no
10439    ;;
10440  m88k*)
10441    # FIXME: insert proper C++ library support
10442    ld_shlibs_CXX=no
10443    ;;
10444  mvs*)
10445    case $cc_basename in
10446      cxx)
10447        # FIXME: insert proper C++ library support
10448        ld_shlibs_CXX=no
10449        ;;
10450      *)
10451        # FIXME: insert proper C++ library support
10452        ld_shlibs_CXX=no
10453        ;;
10454    esac
10455    ;;
10456  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10457    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10458      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10459      wlarc=
10460      hardcode_libdir_flag_spec_CXX='-R$libdir'
10461      hardcode_direct_CXX=yes
10462      hardcode_shlibpath_var_CXX=no
10463    fi
10464    # Workaround some broken pre-1.5 toolchains
10465    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10466    ;;
10467  osf3*)
10468    case $cc_basename in
10469      KCC)
10470        # Kuck and Associates, Inc. (KAI) C++ Compiler
10471
10472        # KCC will only create a shared library if the output file
10473        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10474        # to its proper name (with version) after linking.
10475        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'
10476
10477        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10478        hardcode_libdir_separator_CXX=:
10479
10480        # Archives containing C++ object files must be created using
10481        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10482        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10483
10484        ;;
10485      RCC)
10486        # Rational C++ 2.4.1
10487        # FIXME: insert proper C++ library support
10488        ld_shlibs_CXX=no
10489        ;;
10490      cxx)
10491        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10492        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10493
10494        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10495        hardcode_libdir_separator_CXX=:
10496
10497        # Commands to make compiler produce verbose output that lists
10498        # what "hidden" libraries, object files and flags are used when
10499        # linking a shared library.
10500        #
10501        # There doesn't appear to be a way to prevent this compiler from
10502        # explicitly linking system object files so we need to strip them
10503        # from the output so that they don't get included in the library
10504        # dependencies.
10505        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'
10506        ;;
10507      *)
10508        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10509          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10510          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10511
10512          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10513          hardcode_libdir_separator_CXX=:
10514
10515          # Commands to make compiler produce verbose output that lists
10516          # what "hidden" libraries, object files and flags are used when
10517          # linking a shared library.
10518          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10519
10520        else
10521          # FIXME: insert proper C++ library support
10522          ld_shlibs_CXX=no
10523        fi
10524        ;;
10525    esac
10526    ;;
10527  osf4* | osf5*)
10528    case $cc_basename in
10529      KCC)
10530        # Kuck and Associates, Inc. (KAI) C++ Compiler
10531
10532        # KCC will only create a shared library if the output file
10533        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10534        # to its proper name (with version) after linking.
10535        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'
10536
10537        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10538        hardcode_libdir_separator_CXX=:
10539
10540        # Archives containing C++ object files must be created using
10541        # the KAI C++ compiler.
10542        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10543        ;;
10544      RCC)
10545        # Rational C++ 2.4.1
10546        # FIXME: insert proper C++ library support
10547        ld_shlibs_CXX=no
10548        ;;
10549      cxx)
10550        allow_undefined_flag_CXX=' -expect_unresolved \*'
10551        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10552        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10553          echo "-hidden">> $lib.exp~
10554          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10555          $rm $lib.exp'
10556
10557        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10558        hardcode_libdir_separator_CXX=:
10559
10560        # Commands to make compiler produce verbose output that lists
10561        # what "hidden" libraries, object files and flags are used when
10562        # linking a shared library.
10563        #
10564        # There doesn't appear to be a way to prevent this compiler from
10565        # explicitly linking system object files so we need to strip them
10566        # from the output so that they don't get included in the library
10567        # dependencies.
10568        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'
10569        ;;
10570      *)
10571        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10572          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10573         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10574
10575          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10576          hardcode_libdir_separator_CXX=:
10577
10578          # Commands to make compiler produce verbose output that lists
10579          # what "hidden" libraries, object files and flags are used when
10580          # linking a shared library.
10581          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10582
10583        else
10584          # FIXME: insert proper C++ library support
10585          ld_shlibs_CXX=no
10586        fi
10587        ;;
10588    esac
10589    ;;
10590  psos*)
10591    # FIXME: insert proper C++ library support
10592    ld_shlibs_CXX=no
10593    ;;
10594  sco*)
10595    archive_cmds_need_lc_CXX=no
10596    case $cc_basename in
10597      CC)
10598        # FIXME: insert proper C++ library support
10599        ld_shlibs_CXX=no
10600        ;;
10601      *)
10602        # FIXME: insert proper C++ library support
10603        ld_shlibs_CXX=no
10604        ;;
10605    esac
10606    ;;
10607  sunos4*)
10608    case $cc_basename in
10609      CC)
10610        # Sun C++ 4.x
10611        # FIXME: insert proper C++ library support
10612        ld_shlibs_CXX=no
10613        ;;
10614      lcc)
10615        # Lucid
10616        # FIXME: insert proper C++ library support
10617        ld_shlibs_CXX=no
10618        ;;
10619      *)
10620        # FIXME: insert proper C++ library support
10621        ld_shlibs_CXX=no
10622        ;;
10623    esac
10624    ;;
10625  solaris*)
10626    case $cc_basename in
10627      CC)
10628        # Sun C++ 4.2, 5.x and Centerline C++
10629        no_undefined_flag_CXX=' -zdefs'
10630        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10631        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10632        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10633
10634        hardcode_libdir_flag_spec_CXX='-R$libdir'
10635        hardcode_shlibpath_var_CXX=no
10636        case $host_os in
10637          solaris2.0-5 | solaris2.0-5.*) ;;
10638          *)
10639            # The C++ compiler is used as linker so we must use $wl
10640            # flag to pass the commands to the underlying system
10641            # linker.
10642            # Supported since Solaris 2.6 (maybe 2.5.1?)
10643            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10644            ;;
10645        esac
10646        link_all_deplibs_CXX=yes
10647
10648        # Commands to make compiler produce verbose output that lists
10649        # what "hidden" libraries, object files and flags are used when
10650        # linking a shared library.
10651        #
10652        # There doesn't appear to be a way to prevent this compiler from
10653        # explicitly linking system object files so we need to strip them
10654        # from the output so that they don't get included in the library
10655        # dependencies.
10656        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10657
10658        # Archives containing C++ object files must be created using
10659        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10660        # necessary to make sure instantiated templates are included
10661        # in the archive.
10662        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10663        ;;
10664      gcx)
10665        # Green Hills C++ Compiler
10666        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10667
10668        # The C++ compiler must be used to create the archive.
10669        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10670        ;;
10671      *)
10672        # GNU C++ compiler with Solaris linker
10673        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10674          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10675          if $CC --version | grep -v '^2\.7' > /dev/null; then
10676            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10677            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10678                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10679
10680            # Commands to make compiler produce verbose output that lists
10681            # what "hidden" libraries, object files and flags are used when
10682            # linking a shared library.
10683            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10684          else
10685            # g++ 2.7 appears to require `-G' NOT `-shared' on this
10686            # platform.
10687            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10688            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10689                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10690
10691            # Commands to make compiler produce verbose output that lists
10692            # what "hidden" libraries, object files and flags are used when
10693            # linking a shared library.
10694            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10695          fi
10696
10697          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10698        fi
10699        ;;
10700    esac
10701    ;;
10702  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10703    archive_cmds_need_lc_CXX=no
10704    ;;
10705  tandem*)
10706    case $cc_basename in
10707      NCC)
10708        # NonStop-UX NCC 3.20
10709        # FIXME: insert proper C++ library support
10710        ld_shlibs_CXX=no
10711        ;;
10712      *)
10713        # FIXME: insert proper C++ library support
10714        ld_shlibs_CXX=no
10715        ;;
10716    esac
10717    ;;
10718  vxworks*)
10719    # FIXME: insert proper C++ library support
10720    ld_shlibs_CXX=no
10721    ;;
10722  *)
10723    # FIXME: insert proper C++ library support
10724    ld_shlibs_CXX=no
10725    ;;
10726esac
10727echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10728echo "${ECHO_T}$ld_shlibs_CXX" >&6
10729test "$ld_shlibs_CXX" = no && can_build_shared=no
10730
10731GCC_CXX="$GXX"
10732LD_CXX="$LD"
10733
10734
10735cat > conftest.$ac_ext <<EOF
10736class Foo
10737{
10738public:
10739  Foo (void) { a = 0; }
10740private:
10741  int a;
10742};
10743EOF
10744
10745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10746  (eval $ac_compile) 2>&5
10747  ac_status=$?
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); }; then
10750  # Parse the compiler output and extract the necessary
10751  # objects, libraries and library flags.
10752
10753  # Sentinel used to keep track of whether or not we are before
10754  # the conftest object file.
10755  pre_test_object_deps_done=no
10756
10757  # The `*' in the case matches for architectures that use `case' in
10758  # $output_verbose_cmd can trigger glob expansion during the loop
10759  # eval without this substitution.
10760  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10761
10762  for p in `eval $output_verbose_link_cmd`; do
10763    case $p in
10764
10765    -L* | -R* | -l*)
10766       # Some compilers place space between "-{L,R}" and the path.
10767       # Remove the space.
10768       if test $p = "-L" \
10769          || test $p = "-R"; then
10770         prev=$p
10771         continue
10772       else
10773         prev=
10774       fi
10775
10776       if test "$pre_test_object_deps_done" = no; then
10777         case $p in
10778         -L* | -R*)
10779           # Internal compiler library paths should come after those
10780           # provided the user.  The postdeps already come after the
10781           # user supplied libs so there is no need to process them.
10782           if test -z "$compiler_lib_search_path_CXX"; then
10783             compiler_lib_search_path_CXX="${prev}${p}"
10784           else
10785             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10786           fi
10787           ;;
10788         # The "-l" case would never come before the object being
10789         # linked, so don't bother handling this case.
10790         esac
10791       else
10792         if test -z "$postdeps_CXX"; then
10793           postdeps_CXX="${prev}${p}"
10794         else
10795           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10796         fi
10797       fi
10798       ;;
10799
10800    *.$objext)
10801       # This assumes that the test object file only shows up
10802       # once in the compiler output.
10803       if test "$p" = "conftest.$objext"; then
10804         pre_test_object_deps_done=yes
10805         continue
10806       fi
10807
10808       if test "$pre_test_object_deps_done" = no; then
10809         if test -z "$predep_objects_CXX"; then
10810           predep_objects_CXX="$p"
10811         else
10812           predep_objects_CXX="$predep_objects_CXX $p"
10813         fi
10814       else
10815         if test -z "$postdep_objects_CXX"; then
10816           postdep_objects_CXX="$p"
10817         else
10818           postdep_objects_CXX="$postdep_objects_CXX $p"
10819         fi
10820       fi
10821       ;;
10822
10823    *) ;; # Ignore the rest.
10824
10825    esac
10826  done
10827
10828  # Clean up.
10829  rm -f a.out a.exe
10830else
10831  echo "libtool.m4: error: problem compiling CXX test program"
10832fi
10833
10834$rm -f confest.$objext
10835
10836case " $postdeps_CXX " in
10837*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10838esac
10839
10840lt_prog_compiler_wl_CXX=
10841lt_prog_compiler_pic_CXX=
10842lt_prog_compiler_static_CXX=
10843
10844echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10845echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10846
10847  # C++ specific cases for pic, static, wl, etc.
10848  if test "$GXX" = yes; then
10849    lt_prog_compiler_wl_CXX='-Wl,'
10850    lt_prog_compiler_static_CXX='-static'
10851
10852    case $host_os in
10853    aix*)
10854      # All AIX code is PIC.
10855      if test "$host_cpu" = ia64; then
10856        # AIX 5 now supports IA64 processor
10857        lt_prog_compiler_static_CXX='-Bstatic'
10858      fi
10859      ;;
10860    amigaos*)
10861      # FIXME: we need at least 68020 code to build shared libraries, but
10862      # adding the `-m68020' flag to GCC prevents building anything better,
10863      # like `-m68040'.
10864      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10865      ;;
10866    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10867      # PIC is the default for these OSes.
10868      ;;
10869    mingw* | os2* | pw32*)
10870      # This hack is so that the source file can tell whether it is being
10871      # built for inclusion in a dll (and should export symbols for example).
10872      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10873      ;;
10874    darwin* | rhapsody*)
10875      # PIC is the default on this platform
10876      # Common symbols not allowed in MH_DYLIB files
10877      lt_prog_compiler_pic_CXX='-fno-common'
10878      ;;
10879    *djgpp*)
10880      # DJGPP does not support shared libraries at all
10881      lt_prog_compiler_pic_CXX=
10882      ;;
10883    sysv4*MP*)
10884      if test -d /usr/nec; then
10885        lt_prog_compiler_pic_CXX=-Kconform_pic
10886      fi
10887      ;;
10888    hpux*)
10889      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10890      # not for PA HP-UX.
10891      case "$host_cpu" in
10892      hppa*64*|ia64*)
10893        ;;
10894      *)
10895        lt_prog_compiler_pic_CXX='-fPIC'
10896        ;;
10897      esac
10898      ;;
10899    *)
10900      lt_prog_compiler_pic_CXX='-fPIC'
10901      ;;
10902    esac
10903  else
10904    case $host_os in
10905      aix4* | aix5*)
10906        # All AIX code is PIC.
10907        if test "$host_cpu" = ia64; then
10908          # AIX 5 now supports IA64 processor
10909          lt_prog_compiler_static_CXX='-Bstatic'
10910        else
10911          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10912        fi
10913        ;;
10914      chorus*)
10915        case $cc_basename in
10916        cxch68)
10917          # Green Hills C++ Compiler
10918          # _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"
10919          ;;
10920        esac
10921        ;;
10922      dgux*)
10923        case $cc_basename in
10924          ec++)
10925            lt_prog_compiler_pic_CXX='-KPIC'
10926            ;;
10927          ghcx)
10928            # Green Hills C++ Compiler
10929            lt_prog_compiler_pic_CXX='-pic'
10930            ;;
10931          *)
10932            ;;
10933        esac
10934        ;;
10935      freebsd* | kfreebsd*-gnu)
10936        # FreeBSD uses GNU C++
10937        ;;
10938      hpux9* | hpux10* | hpux11*)
10939        case $cc_basename in
10940          CC)
10941            lt_prog_compiler_wl_CXX='-Wl,'
10942            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10943            if test "$host_cpu" != ia64; then
10944              lt_prog_compiler_pic_CXX='+Z'
10945            fi
10946            ;;
10947          aCC)
10948            lt_prog_compiler_wl_CXX='-Wl,'
10949            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10950            case "$host_cpu" in
10951            hppa*64*|ia64*)
10952              # +Z the default
10953              ;;
10954            *)
10955              lt_prog_compiler_pic_CXX='+Z'
10956              ;;
10957            esac
10958            ;;
10959          *)
10960            ;;
10961        esac
10962        ;;
10963      irix5* | irix6* | nonstopux*)
10964        case $cc_basename in
10965          CC)
10966            lt_prog_compiler_wl_CXX='-Wl,'
10967            lt_prog_compiler_static_CXX='-non_shared'
10968            # CC pic flag -KPIC is the default.
10969            ;;
10970          *)
10971            ;;
10972        esac
10973        ;;
10974      linux*)
10975        case $cc_basename in
10976          KCC)
10977            # KAI C++ Compiler
10978            lt_prog_compiler_wl_CXX='--backend -Wl,'
10979            lt_prog_compiler_pic_CXX='-fPIC'
10980            ;;
10981          icpc)
10982            # Intel C++
10983            lt_prog_compiler_wl_CXX='-Wl,'
10984            lt_prog_compiler_pic_CXX='-KPIC'
10985            lt_prog_compiler_static_CXX='-static'
10986            ;;
10987          cxx)
10988            # Compaq C++
10989            # Make sure the PIC flag is empty.  It appears that all Alpha
10990            # Linux and Compaq Tru64 Unix objects are PIC.
10991            lt_prog_compiler_pic_CXX=
10992            lt_prog_compiler_static_CXX='-non_shared'
10993            ;;
10994          *)
10995            ;;
10996        esac
10997        ;;
10998      lynxos*)
10999        ;;
11000      m88k*)
11001        ;;
11002      mvs*)
11003        case $cc_basename in
11004          cxx)
11005            lt_prog_compiler_pic_CXX='-W c,exportall'
11006            ;;
11007          *)
11008            ;;
11009        esac
11010        ;;
11011      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11012        ;;
11013      osf3* | osf4* | osf5*)
11014        case $cc_basename in
11015          KCC)
11016            lt_prog_compiler_wl_CXX='--backend -Wl,'
11017            ;;
11018          RCC)
11019            # Rational C++ 2.4.1
11020            lt_prog_compiler_pic_CXX='-pic'
11021            ;;
11022          cxx)
11023            # Digital/Compaq C++
11024            lt_prog_compiler_wl_CXX='-Wl,'
11025            # Make sure the PIC flag is empty.  It appears that all Alpha
11026            # Linux and Compaq Tru64 Unix objects are PIC.
11027            lt_prog_compiler_pic_CXX=
11028            lt_prog_compiler_static_CXX='-non_shared'
11029            ;;
11030          *)
11031            ;;
11032        esac
11033        ;;
11034      psos*)
11035        ;;
11036      sco*)
11037        case $cc_basename in
11038          CC)
11039            lt_prog_compiler_pic_CXX='-fPIC'
11040            ;;
11041          *)
11042            ;;
11043        esac
11044        ;;
11045      solaris*)
11046        case $cc_basename in
11047          CC)
11048            # Sun C++ 4.2, 5.x and Centerline C++
11049            lt_prog_compiler_pic_CXX='-KPIC'
11050            lt_prog_compiler_static_CXX='-Bstatic'
11051            lt_prog_compiler_wl_CXX='-Qoption ld '
11052            ;;
11053          gcx)
11054            # Green Hills C++ Compiler
11055            lt_prog_compiler_pic_CXX='-PIC'
11056            ;;
11057          *)
11058            ;;
11059        esac
11060        ;;
11061      sunos4*)
11062        case $cc_basename in
11063          CC)
11064            # Sun C++ 4.x
11065            lt_prog_compiler_pic_CXX='-pic'
11066            lt_prog_compiler_static_CXX='-Bstatic'
11067            ;;
11068          lcc)
11069            # Lucid
11070            lt_prog_compiler_pic_CXX='-pic'
11071            ;;
11072          *)
11073            ;;
11074        esac
11075        ;;
11076      tandem*)
11077        case $cc_basename in
11078          NCC)
11079            # NonStop-UX NCC 3.20
11080            lt_prog_compiler_pic_CXX='-KPIC'
11081            ;;
11082          *)
11083            ;;
11084        esac
11085        ;;
11086      unixware*)
11087        ;;
11088      vxworks*)
11089        ;;
11090      *)
11091        lt_prog_compiler_can_build_shared_CXX=no
11092        ;;
11093    esac
11094  fi
11095
11096echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11097echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11098
11099#
11100# Check to make sure the PIC flag actually works.
11101#
11102if test -n "$lt_prog_compiler_pic_CXX"; then
11103
11104echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11106if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11107  echo $ECHO_N "(cached) $ECHO_C" >&6
11108else
11109  lt_prog_compiler_pic_works_CXX=no
11110  ac_outfile=conftest.$ac_objext
11111   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11112   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11113   # Insert the option either (1) after the last *FLAGS variable, or
11114   # (2) before a word containing "conftest.", or (3) at the end.
11115   # Note that $ac_compile itself does not contain backslashes and begins
11116   # with a dollar sign (not a hyphen), so the echo should work correctly.
11117   # The option is referenced via a variable to avoid confusing sed.
11118   lt_compile=`echo "$ac_compile" | $SED \
11119   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11121   -e 's:$: $lt_compiler_flag:'`
11122   (eval echo "\"\$as_me:11122: $lt_compile\"" >&5)
11123   (eval "$lt_compile" 2>conftest.err)
11124   ac_status=$?
11125   cat conftest.err >&5
11126   echo "$as_me:11126: \$? = $ac_status" >&5
11127   if (exit $ac_status) && test -s "$ac_outfile"; then
11128     # The compiler can only warn and ignore the option if not recognized
11129     # So say no if there are warnings
11130     if test ! -s conftest.err; then
11131       lt_prog_compiler_pic_works_CXX=yes
11132     fi
11133   fi
11134   $rm conftest*
11135
11136fi
11137echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11138echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11139
11140if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11141    case $lt_prog_compiler_pic_CXX in
11142     "" | " "*) ;;
11143     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11144     esac
11145else
11146    lt_prog_compiler_pic_CXX=
11147     lt_prog_compiler_can_build_shared_CXX=no
11148fi
11149
11150fi
11151case "$host_os" in
11152  # For platforms which do not support PIC, -DPIC is meaningless:
11153  *djgpp*)
11154    lt_prog_compiler_pic_CXX=
11155    ;;
11156  *)
11157    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11158    ;;
11159esac
11160
11161echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11162echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11163if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11164  echo $ECHO_N "(cached) $ECHO_C" >&6
11165else
11166  lt_cv_prog_compiler_c_o_CXX=no
11167   $rm -r conftest 2>/dev/null
11168   mkdir conftest
11169   cd conftest
11170   mkdir out
11171   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11172
11173   lt_compiler_flag="-o out/conftest2.$ac_objext"
11174   # Insert the option either (1) after the last *FLAGS variable, or
11175   # (2) before a word containing "conftest.", or (3) at the end.
11176   # Note that $ac_compile itself does not contain backslashes and begins
11177   # with a dollar sign (not a hyphen), so the echo should work correctly.
11178   lt_compile=`echo "$ac_compile" | $SED \
11179   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11180   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11181   -e 's:$: $lt_compiler_flag:'`
11182   (eval echo "\"\$as_me:11182: $lt_compile\"" >&5)
11183   (eval "$lt_compile" 2>out/conftest.err)
11184   ac_status=$?
11185   cat out/conftest.err >&5
11186   echo "$as_me:11186: \$? = $ac_status" >&5
11187   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11188   then
11189     # The compiler can only warn and ignore the option if not recognized
11190     # So say no if there are warnings
11191     if test ! -s out/conftest.err; then
11192       lt_cv_prog_compiler_c_o_CXX=yes
11193     fi
11194   fi
11195   chmod u+w .
11196   $rm conftest*
11197   # SGI C++ compiler will create directory out/ii_files/ for
11198   # template instantiation
11199   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11200   $rm out/* && rmdir out
11201   cd ..
11202   rmdir conftest
11203   $rm conftest*
11204
11205fi
11206echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11207echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11208
11209
11210hard_links="nottested"
11211if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11212  # do not overwrite the value of need_locks provided by the user
11213  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11214echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11215  hard_links=yes
11216  $rm conftest*
11217  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11218  touch conftest.a
11219  ln conftest.a conftest.b 2>&5 || hard_links=no
11220  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11221  echo "$as_me:$LINENO: result: $hard_links" >&5
11222echo "${ECHO_T}$hard_links" >&6
11223  if test "$hard_links" = no; then
11224    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11225echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11226    need_locks=warn
11227  fi
11228else
11229  need_locks=no
11230fi
11231
11232echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11233echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11234
11235  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11236  case $host_os in
11237  aix4* | aix5*)
11238    # If we're using GNU nm, then we don't want the "-C" option.
11239    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11240    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11241      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'
11242    else
11243      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'
11244    fi
11245    ;;
11246  pw32*)
11247    export_symbols_cmds_CXX="$ltdll_cmds"
11248  ;;
11249  cygwin* | mingw*)
11250    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11251  ;;
11252  linux*)
11253    link_all_deplibs_CXX=no
11254  ;;
11255  *)
11256    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11257  ;;
11258  esac
11259
11260echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11261echo "${ECHO_T}$ld_shlibs_CXX" >&6
11262test "$ld_shlibs_CXX" = no && can_build_shared=no
11263
11264variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11265if test "$GCC" = yes; then
11266  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11267fi
11268
11269#
11270# Do we need to explicitly link libc?
11271#
11272case "x$archive_cmds_need_lc_CXX" in
11273x|xyes)
11274  # Assume -lc should be added
11275  archive_cmds_need_lc_CXX=yes
11276
11277  if test "$enable_shared" = yes && test "$GCC" = yes; then
11278    case $archive_cmds_CXX in
11279    *'~'*)
11280      # FIXME: we may have to deal with multi-command sequences.
11281      ;;
11282    '$CC '*)
11283      # Test whether the compiler implicitly links with -lc since on some
11284      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11285      # to ld, don't add -lc before -lgcc.
11286      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11287echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11288      $rm conftest*
11289      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11290
11291      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292  (eval $ac_compile) 2>&5
11293  ac_status=$?
11294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295  (exit $ac_status); } 2>conftest.err; then
11296        soname=conftest
11297        lib=conftest
11298        libobjs=conftest.$ac_objext
11299        deplibs=
11300        wl=$lt_prog_compiler_wl_CXX
11301        compiler_flags=-v
11302        linker_flags=-v
11303        verstring=
11304        output_objdir=.
11305        libname=conftest
11306        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11307        allow_undefined_flag_CXX=
11308        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11309  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11310  ac_status=$?
11311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312  (exit $ac_status); }
11313        then
11314          archive_cmds_need_lc_CXX=no
11315        else
11316          archive_cmds_need_lc_CXX=yes
11317        fi
11318        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11319      else
11320        cat conftest.err 1>&5
11321      fi
11322      $rm conftest*
11323      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11324echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11325      ;;
11326    esac
11327  fi
11328  ;;
11329esac
11330
11331echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11332echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11333library_names_spec=
11334libname_spec='lib$name'
11335soname_spec=
11336shrext_cmds=".so"
11337postinstall_cmds=
11338postuninstall_cmds=
11339finish_cmds=
11340finish_eval=
11341shlibpath_var=
11342shlibpath_overrides_runpath=unknown
11343version_type=none
11344dynamic_linker="$host_os ld.so"
11345sys_lib_dlsearch_path_spec="/lib /usr/lib"
11346if test "$GCC" = yes; then
11347  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11348  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11349    # if the path contains ";" then we assume it to be the separator
11350    # otherwise default to the standard path separator (i.e. ":") - it is
11351    # assumed that no part of a normal pathname contains ";" but that should
11352    # okay in the real world where ";" in dirpaths is itself problematic.
11353    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11354  else
11355    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11356  fi
11357else
11358  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11359fi
11360need_lib_prefix=unknown
11361hardcode_into_libs=no
11362
11363# when you set need_version to no, make sure it does not cause -set_version
11364# flags to be left without arguments
11365need_version=unknown
11366
11367case $host_os in
11368aix3*)
11369  version_type=linux
11370  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11371  shlibpath_var=LIBPATH
11372
11373  # AIX 3 has no versioning support, so we append a major version to the name.
11374  soname_spec='${libname}${release}${shared_ext}$major'
11375  ;;
11376
11377aix4* | aix5*)
11378  version_type=linux
11379  need_lib_prefix=no
11380  need_version=no
11381  hardcode_into_libs=yes
11382  if test "$host_cpu" = ia64; then
11383    # AIX 5 supports IA64
11384    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11385    shlibpath_var=LD_LIBRARY_PATH
11386  else
11387    # With GCC up to 2.95.x, collect2 would create an import file
11388    # for dependence libraries.  The import file would start with
11389    # the line `#! .'.  This would cause the generated library to
11390    # depend on `.', always an invalid library.  This was fixed in
11391    # development snapshots of GCC prior to 3.0.
11392    case $host_os in
11393      aix4 | aix4.[01] | aix4.[01].*)
11394      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11395           echo ' yes '
11396           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11397        :
11398      else
11399        can_build_shared=no
11400      fi
11401      ;;
11402    esac
11403    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11404    # soname into executable. Probably we can add versioning support to
11405    # collect2, so additional links can be useful in future.
11406    if test "$aix_use_runtimelinking" = yes; then
11407      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11408      # instead of lib<name>.a to let people know that these are not
11409      # typical AIX shared libraries.
11410      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411    else
11412      # We preserve .a as extension for shared libraries through AIX4.2
11413      # and later when we are not doing run time linking.
11414      library_names_spec='${libname}${release}.a $libname.a'
11415      soname_spec='${libname}${release}${shared_ext}$major'
11416    fi
11417    shlibpath_var=LIBPATH
11418  fi
11419  ;;
11420
11421amigaos*)
11422  library_names_spec='$libname.ixlibrary $libname.a'
11423  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11424  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'
11425  ;;
11426
11427beos*)
11428  library_names_spec='${libname}${shared_ext}'
11429  dynamic_linker="$host_os ld.so"
11430  shlibpath_var=LIBRARY_PATH
11431  ;;
11432
11433bsdi4*)
11434  version_type=linux
11435  need_version=no
11436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437  soname_spec='${libname}${release}${shared_ext}$major'
11438  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11439  shlibpath_var=LD_LIBRARY_PATH
11440  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11441  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11442  # the default ld.so.conf also contains /usr/contrib/lib and
11443  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11444  # libtool to hard-code these into programs
11445  ;;
11446
11447cygwin* | mingw* | pw32*)
11448  version_type=windows
11449  shrext_cmds=".dll"
11450  need_version=no
11451  need_lib_prefix=no
11452
11453  case $GCC,$host_os in
11454  yes,cygwin* | yes,mingw* | yes,pw32*)
11455    library_names_spec='$libname.dll.a'
11456    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11457    postinstall_cmds='base_file=`basename \${file}`~
11458      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11459      dldir=$destdir/`dirname \$dlpath`~
11460      test -d \$dldir || mkdir -p \$dldir~
11461      $install_prog $dir/$dlname \$dldir/$dlname'
11462    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11463      dlpath=$dir/\$dldll~
11464       $rm \$dlpath'
11465    shlibpath_overrides_runpath=yes
11466
11467    case $host_os in
11468    cygwin*)
11469      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11470      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11472      ;;
11473    mingw*)
11474      # MinGW DLLs use traditional 'lib' prefix
11475      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11476      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11477      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11478        # It is most probably a Windows format PATH printed by
11479        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11480        # path with ; separators, and with drive letters. We can handle the
11481        # drive letters (cygwin fileutils understands them), so leave them,
11482        # especially as we might pass files found there to a mingw objdump,
11483        # which wouldn't understand a cygwinified path. Ahh.
11484        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11485      else
11486        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11487      fi
11488      ;;
11489    pw32*)
11490      # pw32 DLLs use 'pw' prefix rather than 'lib'
11491      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11492      ;;
11493    esac
11494    ;;
11495
11496  *)
11497    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11498    ;;
11499  esac
11500  dynamic_linker='Win32 ld.exe'
11501  # FIXME: first we should search . and the directory the executable is in
11502  shlibpath_var=PATH
11503  ;;
11504
11505darwin* | rhapsody*)
11506  dynamic_linker="$host_os dyld"
11507  version_type=darwin
11508  need_lib_prefix=no
11509  need_version=no
11510  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11511  soname_spec='${libname}${release}${major}$shared_ext'
11512  shlibpath_overrides_runpath=yes
11513  shlibpath_var=DYLD_LIBRARY_PATH
11514  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11515  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11516  if test "$GCC" = yes; then
11517    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"`
11518  else
11519    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11520  fi
11521  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11522  ;;
11523
11524dgux*)
11525  version_type=linux
11526  need_lib_prefix=no
11527  need_version=no
11528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529  soname_spec='${libname}${release}${shared_ext}$major'
11530  shlibpath_var=LD_LIBRARY_PATH
11531  ;;
11532
11533freebsd1*)
11534  dynamic_linker=no
11535  ;;
11536
11537kfreebsd*-gnu)
11538  version_type=linux
11539  need_lib_prefix=no
11540  need_version=no
11541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11542  soname_spec='${libname}${release}${shared_ext}$major'
11543  shlibpath_var=LD_LIBRARY_PATH
11544  shlibpath_overrides_runpath=no
11545  hardcode_into_libs=yes
11546  dynamic_linker='GNU ld.so'
11547  ;;
11548
11549freebsd*)
11550  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11551  version_type=freebsd-$objformat
11552  case $version_type in
11553    freebsd-elf*)
11554      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11555      need_version=no
11556      need_lib_prefix=no
11557      ;;
11558    freebsd-*)
11559      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11560      need_version=yes
11561      ;;
11562  esac
11563  shlibpath_var=LD_LIBRARY_PATH
11564  case $host_os in
11565  freebsd2*)
11566    shlibpath_overrides_runpath=yes
11567    ;;
11568  freebsd3.01* | freebsdelf3.01*)
11569    shlibpath_overrides_runpath=yes
11570    hardcode_into_libs=yes
11571    ;;
11572  *) # from 3.2 on
11573    shlibpath_overrides_runpath=no
11574    hardcode_into_libs=yes
11575    ;;
11576  esac
11577  ;;
11578
11579gnu*)
11580  version_type=linux
11581  need_lib_prefix=no
11582  need_version=no
11583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11584  soname_spec='${libname}${release}${shared_ext}$major'
11585  shlibpath_var=LD_LIBRARY_PATH
11586  hardcode_into_libs=yes
11587  ;;
11588
11589hpux9* | hpux10* | hpux11*)
11590  # Give a soname corresponding to the major version so that dld.sl refuses to
11591  # link against other versions.
11592  version_type=sunos
11593  need_lib_prefix=no
11594  need_version=no
11595  case "$host_cpu" in
11596  ia64*)
11597    shrext_cmds='.so'
11598    hardcode_into_libs=yes
11599    dynamic_linker="$host_os dld.so"
11600    shlibpath_var=LD_LIBRARY_PATH
11601    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603    soname_spec='${libname}${release}${shared_ext}$major'
11604    if test "X$HPUX_IA64_MODE" = X32; then
11605      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11606    else
11607      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11608    fi
11609    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11610    ;;
11611   hppa*64*)
11612     shrext_cmds='.sl'
11613     hardcode_into_libs=yes
11614     dynamic_linker="$host_os dld.sl"
11615     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11616     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618     soname_spec='${libname}${release}${shared_ext}$major'
11619     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11620     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621     ;;
11622   *)
11623    shrext_cmds='.sl'
11624    dynamic_linker="$host_os dld.sl"
11625    shlibpath_var=SHLIB_PATH
11626    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628    soname_spec='${libname}${release}${shared_ext}$major'
11629    ;;
11630  esac
11631  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11632  postinstall_cmds='chmod 555 $lib'
11633  ;;
11634
11635irix5* | irix6* | nonstopux*)
11636  case $host_os in
11637    nonstopux*) version_type=nonstopux ;;
11638    *)
11639        if test "$lt_cv_prog_gnu_ld" = yes; then
11640                version_type=linux
11641        else
11642                version_type=irix
11643        fi ;;
11644  esac
11645  need_lib_prefix=no
11646  need_version=no
11647  soname_spec='${libname}${release}${shared_ext}$major'
11648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11649  case $host_os in
11650  irix5* | nonstopux*)
11651    libsuff= shlibsuff=
11652    ;;
11653  *)
11654    case $LD in # libtool.m4 will add one of these switches to LD
11655    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11656      libsuff= shlibsuff= libmagic=32-bit;;
11657    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11658      libsuff=32 shlibsuff=N32 libmagic=N32;;
11659    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11660      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11661    *) libsuff= shlibsuff= libmagic=never-match;;
11662    esac
11663    ;;
11664  esac
11665  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11666  shlibpath_overrides_runpath=no
11667  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11668  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11669  hardcode_into_libs=yes
11670  ;;
11671
11672# No shared lib support for Linux oldld, aout, or coff.
11673linux*oldld* | linux*aout* | linux*coff*)
11674  dynamic_linker=no
11675  ;;
11676
11677# This must be Linux ELF.
11678linux*)
11679  version_type=linux
11680  need_lib_prefix=no
11681  need_version=no
11682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683  soname_spec='${libname}${release}${shared_ext}$major'
11684  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11685  shlibpath_var=LD_LIBRARY_PATH
11686  shlibpath_overrides_runpath=no
11687  # This implies no fast_install, which is unacceptable.
11688  # Some rework will be needed to allow for fast_install
11689  # before this can be enabled.
11690  hardcode_into_libs=yes
11691
11692  # Append ld.so.conf contents to the search path
11693  if test -f /etc/ld.so.conf; then
11694    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11695    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11696  fi
11697
11698  # We used to test for /lib/ld.so.1 and disable shared libraries on
11699  # powerpc, because MkLinux only supported shared libraries with the
11700  # GNU dynamic linker.  Since this was broken with cross compilers,
11701  # most powerpc-linux boxes support dynamic linking these days and
11702  # people can always --disable-shared, the test was removed, and we
11703  # assume the GNU/Linux dynamic linker is in use.
11704  dynamic_linker='GNU/Linux ld.so'
11705  ;;
11706
11707netbsdelf*-gnu)
11708  version_type=linux
11709  need_lib_prefix=no
11710  need_version=no
11711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11712  soname_spec='${libname}${release}${shared_ext}$major'
11713  shlibpath_var=LD_LIBRARY_PATH
11714  shlibpath_overrides_runpath=no
11715  hardcode_into_libs=yes
11716  dynamic_linker='NetBSD ld.elf_so'
11717  ;;
11718
11719knetbsd*-gnu)
11720  version_type=linux
11721  need_lib_prefix=no
11722  need_version=no
11723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11724  soname_spec='${libname}${release}${shared_ext}$major'
11725  shlibpath_var=LD_LIBRARY_PATH
11726  shlibpath_overrides_runpath=no
11727  hardcode_into_libs=yes
11728  dynamic_linker='GNU ld.so'
11729  ;;
11730
11731netbsd*)
11732  version_type=sunos
11733  need_lib_prefix=no
11734  need_version=no
11735  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11736    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11737    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11738    dynamic_linker='NetBSD (a.out) ld.so'
11739  else
11740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11741    soname_spec='${libname}${release}${shared_ext}$major'
11742    dynamic_linker='NetBSD ld.elf_so'
11743  fi
11744  shlibpath_var=LD_LIBRARY_PATH
11745  shlibpath_overrides_runpath=yes
11746  hardcode_into_libs=yes
11747  ;;
11748
11749newsos6)
11750  version_type=linux
11751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752  shlibpath_var=LD_LIBRARY_PATH
11753  shlibpath_overrides_runpath=yes
11754  ;;
11755
11756nto-qnx*)
11757  version_type=linux
11758  need_lib_prefix=no
11759  need_version=no
11760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761  soname_spec='${libname}${release}${shared_ext}$major'
11762  shlibpath_var=LD_LIBRARY_PATH
11763  shlibpath_overrides_runpath=yes
11764  ;;
11765
11766openbsd*)
11767  version_type=sunos
11768  need_lib_prefix=no
11769  need_version=yes
11770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11771  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11772  shlibpath_var=LD_LIBRARY_PATH
11773  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11774    case $host_os in
11775      openbsd2.[89] | openbsd2.[89].*)
11776        shlibpath_overrides_runpath=no
11777        ;;
11778      *)
11779        shlibpath_overrides_runpath=yes
11780        ;;
11781      esac
11782  else
11783    shlibpath_overrides_runpath=yes
11784  fi
11785  ;;
11786
11787os2*)
11788  libname_spec='$name'
11789  shrext_cmds=".dll"
11790  need_lib_prefix=no
11791  library_names_spec='$libname${shared_ext} $libname.a'
11792  dynamic_linker='OS/2 ld.exe'
11793  shlibpath_var=LIBPATH
11794  ;;
11795
11796osf3* | osf4* | osf5*)
11797  version_type=osf
11798  need_lib_prefix=no
11799  need_version=no
11800  soname_spec='${libname}${release}${shared_ext}$major'
11801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802  shlibpath_var=LD_LIBRARY_PATH
11803  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11804  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11805  ;;
11806
11807sco3.2v5*)
11808  version_type=osf
11809  soname_spec='${libname}${release}${shared_ext}$major'
11810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811  shlibpath_var=LD_LIBRARY_PATH
11812  ;;
11813
11814solaris*)
11815  version_type=linux
11816  need_lib_prefix=no
11817  need_version=no
11818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819  soname_spec='${libname}${release}${shared_ext}$major'
11820  shlibpath_var=LD_LIBRARY_PATH
11821  shlibpath_overrides_runpath=yes
11822  hardcode_into_libs=yes
11823  # ldd complains unless libraries are executable
11824  postinstall_cmds='chmod +x $lib'
11825  ;;
11826
11827sunos4*)
11828  version_type=sunos
11829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11831  shlibpath_var=LD_LIBRARY_PATH
11832  shlibpath_overrides_runpath=yes
11833  if test "$with_gnu_ld" = yes; then
11834    need_lib_prefix=no
11835  fi
11836  need_version=yes
11837  ;;
11838
11839sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11840  version_type=linux
11841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842  soname_spec='${libname}${release}${shared_ext}$major'
11843  shlibpath_var=LD_LIBRARY_PATH
11844  case $host_vendor in
11845    sni)
11846      shlibpath_overrides_runpath=no
11847      need_lib_prefix=no
11848      export_dynamic_flag_spec='${wl}-Blargedynsym'
11849      runpath_var=LD_RUN_PATH
11850      ;;
11851    siemens)
11852      need_lib_prefix=no
11853      ;;
11854    motorola)
11855      need_lib_prefix=no
11856      need_version=no
11857      shlibpath_overrides_runpath=no
11858      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11859      ;;
11860  esac
11861  ;;
11862
11863sysv4*MP*)
11864  if test -d /usr/nec ;then
11865    version_type=linux
11866    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11867    soname_spec='$libname${shared_ext}.$major'
11868    shlibpath_var=LD_LIBRARY_PATH
11869  fi
11870  ;;
11871
11872uts4*)
11873  version_type=linux
11874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875  soname_spec='${libname}${release}${shared_ext}$major'
11876  shlibpath_var=LD_LIBRARY_PATH
11877  ;;
11878
11879*)
11880  dynamic_linker=no
11881  ;;
11882esac
11883echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11884echo "${ECHO_T}$dynamic_linker" >&6
11885test "$dynamic_linker" = no && can_build_shared=no
11886
11887echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11888echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11889hardcode_action_CXX=
11890if test -n "$hardcode_libdir_flag_spec_CXX" || \
11891   test -n "$runpath_var CXX" || \
11892   test "X$hardcode_automatic_CXX"="Xyes" ; then
11893
11894  # We can hardcode non-existant directories.
11895  if test "$hardcode_direct_CXX" != no &&
11896     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11897     # have to relink, otherwise we might link with an installed library
11898     # when we should be linking with a yet-to-be-installed one
11899     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11900     test "$hardcode_minus_L_CXX" != no; then
11901    # Linking always hardcodes the temporary library directory.
11902    hardcode_action_CXX=relink
11903  else
11904    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11905    hardcode_action_CXX=immediate
11906  fi
11907else
11908  # We cannot hardcode anything, or else we can only hardcode existing
11909  # directories.
11910  hardcode_action_CXX=unsupported
11911fi
11912echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11913echo "${ECHO_T}$hardcode_action_CXX" >&6
11914
11915if test "$hardcode_action_CXX" = relink; then
11916  # Fast installation is not supported
11917  enable_fast_install=no
11918elif test "$shlibpath_overrides_runpath" = yes ||
11919     test "$enable_shared" = no; then
11920  # Fast installation is not necessary
11921  enable_fast_install=needless
11922fi
11923
11924striplib=
11925old_striplib=
11926echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11927echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11928if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11929  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11930  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11931  echo "$as_me:$LINENO: result: yes" >&5
11932echo "${ECHO_T}yes" >&6
11933else
11934# FIXME - insert some real tests, host_os isn't really good enough
11935  case $host_os in
11936   darwin*)
11937       if test -n "$STRIP" ; then
11938         striplib="$STRIP -x"
11939         echo "$as_me:$LINENO: result: yes" >&5
11940echo "${ECHO_T}yes" >&6
11941       else
11942  echo "$as_me:$LINENO: result: no" >&5
11943echo "${ECHO_T}no" >&6
11944fi
11945       ;;
11946   *)
11947  echo "$as_me:$LINENO: result: no" >&5
11948echo "${ECHO_T}no" >&6
11949    ;;
11950  esac
11951fi
11952
11953if test "x$enable_dlopen" != xyes; then
11954  enable_dlopen=unknown
11955  enable_dlopen_self=unknown
11956  enable_dlopen_self_static=unknown
11957else
11958  lt_cv_dlopen=no
11959  lt_cv_dlopen_libs=
11960
11961  case $host_os in
11962  beos*)
11963    lt_cv_dlopen="load_add_on"
11964    lt_cv_dlopen_libs=
11965    lt_cv_dlopen_self=yes
11966    ;;
11967
11968  mingw* | pw32*)
11969    lt_cv_dlopen="LoadLibrary"
11970    lt_cv_dlopen_libs=
11971   ;;
11972
11973  cygwin*)
11974    lt_cv_dlopen="dlopen"
11975    lt_cv_dlopen_libs=
11976   ;;
11977
11978  darwin*)
11979  # if libdl is installed we need to link against it
11980    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11981echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11982if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11983  echo $ECHO_N "(cached) $ECHO_C" >&6
11984else
11985  ac_check_lib_save_LIBS=$LIBS
11986LIBS="-ldl  $LIBS"
11987cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h.  */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h.  */
11993
11994/* Override any gcc2 internal prototype to avoid an error.  */
11995#ifdef __cplusplus
11996extern "C"
11997#endif
11998/* We use char because int might match the return type of a gcc2
11999   builtin and then its argument prototype would still apply.  */
12000char dlopen ();
12001int
12002main ()
12003{
12004dlopen ();
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009rm -f conftest.$ac_objext conftest$ac_exeext
12010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011  (eval $ac_link) 2>conftest.er1
12012  ac_status=$?
12013  grep -v '^ *+' conftest.er1 >conftest.err
12014  rm -f conftest.er1
12015  cat conftest.err >&5
12016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017  (exit $ac_status); } &&
12018         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020  (eval $ac_try) 2>&5
12021  ac_status=$?
12022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023  (exit $ac_status); }; } &&
12024         { ac_try='test -s conftest$ac_exeext'
12025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026  (eval $ac_try) 2>&5
12027  ac_status=$?
12028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029  (exit $ac_status); }; }; then
12030  ac_cv_lib_dl_dlopen=yes
12031else
12032  echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035ac_cv_lib_dl_dlopen=no
12036fi
12037rm -f conftest.err conftest.$ac_objext \
12038      conftest$ac_exeext conftest.$ac_ext
12039LIBS=$ac_check_lib_save_LIBS
12040fi
12041echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12043if test $ac_cv_lib_dl_dlopen = yes; then
12044  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12045else
12046
12047    lt_cv_dlopen="dyld"
12048    lt_cv_dlopen_libs=
12049    lt_cv_dlopen_self=yes
12050
12051fi
12052
12053   ;;
12054
12055  *)
12056    echo "$as_me:$LINENO: checking for shl_load" >&5
12057echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12058if test "${ac_cv_func_shl_load+set}" = set; then
12059  echo $ECHO_N "(cached) $ECHO_C" >&6
12060else
12061  cat >conftest.$ac_ext <<_ACEOF
12062/* confdefs.h.  */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h.  */
12067/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12068   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12069#define shl_load innocuous_shl_load
12070
12071/* System header to define __stub macros and hopefully few prototypes,
12072    which can conflict with char shl_load (); below.
12073    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074    <limits.h> exists even on freestanding compilers.  */
12075
12076#ifdef __STDC__
12077# include <limits.h>
12078#else
12079# include <assert.h>
12080#endif
12081
12082#undef shl_load
12083
12084/* Override any gcc2 internal prototype to avoid an error.  */
12085#ifdef __cplusplus
12086extern "C"
12087{
12088#endif
12089/* We use char because int might match the return type of a gcc2
12090   builtin and then its argument prototype would still apply.  */
12091char shl_load ();
12092/* The GNU C library defines this for functions which it implements
12093    to always fail with ENOSYS.  Some functions are actually named
12094    something starting with __ and the normal name is an alias.  */
12095#if defined (__stub_shl_load) || defined (__stub___shl_load)
12096choke me
12097#else
12098char (*f) () = shl_load;
12099#endif
12100#ifdef __cplusplus
12101}
12102#endif
12103
12104int
12105main ()
12106{
12107return f != shl_load;
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext conftest$ac_exeext
12113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114  (eval $ac_link) 2>conftest.er1
12115  ac_status=$?
12116  grep -v '^ *+' conftest.er1 >conftest.err
12117  rm -f conftest.er1
12118  cat conftest.err >&5
12119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120  (exit $ac_status); } &&
12121         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123  (eval $ac_try) 2>&5
12124  ac_status=$?
12125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126  (exit $ac_status); }; } &&
12127         { ac_try='test -s conftest$ac_exeext'
12128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129  (eval $ac_try) 2>&5
12130  ac_status=$?
12131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132  (exit $ac_status); }; }; then
12133  ac_cv_func_shl_load=yes
12134else
12135  echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138ac_cv_func_shl_load=no
12139fi
12140rm -f conftest.err conftest.$ac_objext \
12141      conftest$ac_exeext conftest.$ac_ext
12142fi
12143echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12144echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12145if test $ac_cv_func_shl_load = yes; then
12146  lt_cv_dlopen="shl_load"
12147else
12148  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12149echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12150if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12151  echo $ECHO_N "(cached) $ECHO_C" >&6
12152else
12153  ac_check_lib_save_LIBS=$LIBS
12154LIBS="-ldld  $LIBS"
12155cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h.  */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h.  */
12161
12162/* Override any gcc2 internal prototype to avoid an error.  */
12163#ifdef __cplusplus
12164extern "C"
12165#endif
12166/* We use char because int might match the return type of a gcc2
12167   builtin and then its argument prototype would still apply.  */
12168char shl_load ();
12169int
12170main ()
12171{
12172shl_load ();
12173  ;
12174  return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext conftest$ac_exeext
12178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179  (eval $ac_link) 2>conftest.er1
12180  ac_status=$?
12181  grep -v '^ *+' conftest.er1 >conftest.err
12182  rm -f conftest.er1
12183  cat conftest.err >&5
12184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185  (exit $ac_status); } &&
12186         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188  (eval $ac_try) 2>&5
12189  ac_status=$?
12190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191  (exit $ac_status); }; } &&
12192         { ac_try='test -s conftest$ac_exeext'
12193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194  (eval $ac_try) 2>&5
12195  ac_status=$?
12196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197  (exit $ac_status); }; }; then
12198  ac_cv_lib_dld_shl_load=yes
12199else
12200  echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203ac_cv_lib_dld_shl_load=no
12204fi
12205rm -f conftest.err conftest.$ac_objext \
12206      conftest$ac_exeext conftest.$ac_ext
12207LIBS=$ac_check_lib_save_LIBS
12208fi
12209echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12210echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12211if test $ac_cv_lib_dld_shl_load = yes; then
12212  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12213else
12214  echo "$as_me:$LINENO: checking for dlopen" >&5
12215echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12216if test "${ac_cv_func_dlopen+set}" = set; then
12217  echo $ECHO_N "(cached) $ECHO_C" >&6
12218else
12219  cat >conftest.$ac_ext <<_ACEOF
12220/* confdefs.h.  */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
12224/* end confdefs.h.  */
12225/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12227#define dlopen innocuous_dlopen
12228
12229/* System header to define __stub macros and hopefully few prototypes,
12230    which can conflict with char dlopen (); below.
12231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232    <limits.h> exists even on freestanding compilers.  */
12233
12234#ifdef __STDC__
12235# include <limits.h>
12236#else
12237# include <assert.h>
12238#endif
12239
12240#undef dlopen
12241
12242/* Override any gcc2 internal prototype to avoid an error.  */
12243#ifdef __cplusplus
12244extern "C"
12245{
12246#endif
12247/* We use char because int might match the return type of a gcc2
12248   builtin and then its argument prototype would still apply.  */
12249char dlopen ();
12250/* The GNU C library defines this for functions which it implements
12251    to always fail with ENOSYS.  Some functions are actually named
12252    something starting with __ and the normal name is an alias.  */
12253#if defined (__stub_dlopen) || defined (__stub___dlopen)
12254choke me
12255#else
12256char (*f) () = dlopen;
12257#endif
12258#ifdef __cplusplus
12259}
12260#endif
12261
12262int
12263main ()
12264{
12265return f != dlopen;
12266  ;
12267  return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext conftest$ac_exeext
12271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272  (eval $ac_link) 2>conftest.er1
12273  ac_status=$?
12274  grep -v '^ *+' conftest.er1 >conftest.err
12275  rm -f conftest.er1
12276  cat conftest.err >&5
12277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278  (exit $ac_status); } &&
12279         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281  (eval $ac_try) 2>&5
12282  ac_status=$?
12283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284  (exit $ac_status); }; } &&
12285         { ac_try='test -s conftest$ac_exeext'
12286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287  (eval $ac_try) 2>&5
12288  ac_status=$?
12289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290  (exit $ac_status); }; }; then
12291  ac_cv_func_dlopen=yes
12292else
12293  echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296ac_cv_func_dlopen=no
12297fi
12298rm -f conftest.err conftest.$ac_objext \
12299      conftest$ac_exeext conftest.$ac_ext
12300fi
12301echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12302echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12303if test $ac_cv_func_dlopen = yes; then
12304  lt_cv_dlopen="dlopen"
12305else
12306  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12307echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12308if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12309  echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311  ac_check_lib_save_LIBS=$LIBS
12312LIBS="-ldl  $LIBS"
12313cat >conftest.$ac_ext <<_ACEOF
12314/* confdefs.h.  */
12315_ACEOF
12316cat confdefs.h >>conftest.$ac_ext
12317cat >>conftest.$ac_ext <<_ACEOF
12318/* end confdefs.h.  */
12319
12320/* Override any gcc2 internal prototype to avoid an error.  */
12321#ifdef __cplusplus
12322extern "C"
12323#endif
12324/* We use char because int might match the return type of a gcc2
12325   builtin and then its argument prototype would still apply.  */
12326char dlopen ();
12327int
12328main ()
12329{
12330dlopen ();
12331  ;
12332  return 0;
12333}
12334_ACEOF
12335rm -f conftest.$ac_objext conftest$ac_exeext
12336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337  (eval $ac_link) 2>conftest.er1
12338  ac_status=$?
12339  grep -v '^ *+' conftest.er1 >conftest.err
12340  rm -f conftest.er1
12341  cat conftest.err >&5
12342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343  (exit $ac_status); } &&
12344         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346  (eval $ac_try) 2>&5
12347  ac_status=$?
12348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349  (exit $ac_status); }; } &&
12350         { ac_try='test -s conftest$ac_exeext'
12351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352  (eval $ac_try) 2>&5
12353  ac_status=$?
12354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355  (exit $ac_status); }; }; then
12356  ac_cv_lib_dl_dlopen=yes
12357else
12358  echo "$as_me: failed program was:" >&5
12359sed 's/^/| /' conftest.$ac_ext >&5
12360
12361ac_cv_lib_dl_dlopen=no
12362fi
12363rm -f conftest.err conftest.$ac_objext \
12364      conftest$ac_exeext conftest.$ac_ext
12365LIBS=$ac_check_lib_save_LIBS
12366fi
12367echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12368echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12369if test $ac_cv_lib_dl_dlopen = yes; then
12370  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12371else
12372  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12373echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12374if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12375  echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377  ac_check_lib_save_LIBS=$LIBS
12378LIBS="-lsvld  $LIBS"
12379cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h.  */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h.  */
12385
12386/* Override any gcc2 internal prototype to avoid an error.  */
12387#ifdef __cplusplus
12388extern "C"
12389#endif
12390/* We use char because int might match the return type of a gcc2
12391   builtin and then its argument prototype would still apply.  */
12392char dlopen ();
12393int
12394main ()
12395{
12396dlopen ();
12397  ;
12398  return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext conftest$ac_exeext
12402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403  (eval $ac_link) 2>conftest.er1
12404  ac_status=$?
12405  grep -v '^ *+' conftest.er1 >conftest.err
12406  rm -f conftest.er1
12407  cat conftest.err >&5
12408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409  (exit $ac_status); } &&
12410         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412  (eval $ac_try) 2>&5
12413  ac_status=$?
12414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415  (exit $ac_status); }; } &&
12416         { ac_try='test -s conftest$ac_exeext'
12417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418  (eval $ac_try) 2>&5
12419  ac_status=$?
12420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421  (exit $ac_status); }; }; then
12422  ac_cv_lib_svld_dlopen=yes
12423else
12424  echo "$as_me: failed program was:" >&5
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
12427ac_cv_lib_svld_dlopen=no
12428fi
12429rm -f conftest.err conftest.$ac_objext \
12430      conftest$ac_exeext conftest.$ac_ext
12431LIBS=$ac_check_lib_save_LIBS
12432fi
12433echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12434echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12435if test $ac_cv_lib_svld_dlopen = yes; then
12436  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12437else
12438  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12439echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12440if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12441  echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443  ac_check_lib_save_LIBS=$LIBS
12444LIBS="-ldld  $LIBS"
12445cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h.  */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h.  */
12451
12452/* Override any gcc2 internal prototype to avoid an error.  */
12453#ifdef __cplusplus
12454extern "C"
12455#endif
12456/* We use char because int might match the return type of a gcc2
12457   builtin and then its argument prototype would still apply.  */
12458char dld_link ();
12459int
12460main ()
12461{
12462dld_link ();
12463  ;
12464  return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext conftest$ac_exeext
12468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469  (eval $ac_link) 2>conftest.er1
12470  ac_status=$?
12471  grep -v '^ *+' conftest.er1 >conftest.err
12472  rm -f conftest.er1
12473  cat conftest.err >&5
12474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475  (exit $ac_status); } &&
12476         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478  (eval $ac_try) 2>&5
12479  ac_status=$?
12480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481  (exit $ac_status); }; } &&
12482         { ac_try='test -s conftest$ac_exeext'
12483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484  (eval $ac_try) 2>&5
12485  ac_status=$?
12486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487  (exit $ac_status); }; }; then
12488  ac_cv_lib_dld_dld_link=yes
12489else
12490  echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493ac_cv_lib_dld_dld_link=no
12494fi
12495rm -f conftest.err conftest.$ac_objext \
12496      conftest$ac_exeext conftest.$ac_ext
12497LIBS=$ac_check_lib_save_LIBS
12498fi
12499echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12500echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12501if test $ac_cv_lib_dld_dld_link = yes; then
12502  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12503fi
12504
12505
12506fi
12507
12508
12509fi
12510
12511
12512fi
12513
12514
12515fi
12516
12517
12518fi
12519
12520    ;;
12521  esac
12522
12523  if test "x$lt_cv_dlopen" != xno; then
12524    enable_dlopen=yes
12525  else
12526    enable_dlopen=no
12527  fi
12528
12529  case $lt_cv_dlopen in
12530  dlopen)
12531    save_CPPFLAGS="$CPPFLAGS"
12532    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12533
12534    save_LDFLAGS="$LDFLAGS"
12535    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12536
12537    save_LIBS="$LIBS"
12538    LIBS="$lt_cv_dlopen_libs $LIBS"
12539
12540    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12541echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12542if test "${lt_cv_dlopen_self+set}" = set; then
12543  echo $ECHO_N "(cached) $ECHO_C" >&6
12544else
12545          if test "$cross_compiling" = yes; then :
12546  lt_cv_dlopen_self=cross
12547else
12548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12549  lt_status=$lt_dlunknown
12550  cat > conftest.$ac_ext <<EOF
12551#line 12551 "configure"
12552#include "confdefs.h"
12553
12554#if HAVE_DLFCN_H
12555#include <dlfcn.h>
12556#endif
12557
12558#include <stdio.h>
12559
12560#ifdef RTLD_GLOBAL
12561#  define LT_DLGLOBAL           RTLD_GLOBAL
12562#else
12563#  ifdef DL_GLOBAL
12564#    define LT_DLGLOBAL         DL_GLOBAL
12565#  else
12566#    define LT_DLGLOBAL         0
12567#  endif
12568#endif
12569
12570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12571   find out it does not work in some platform. */
12572#ifndef LT_DLLAZY_OR_NOW
12573#  ifdef RTLD_LAZY
12574#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12575#  else
12576#    ifdef DL_LAZY
12577#      define LT_DLLAZY_OR_NOW          DL_LAZY
12578#    else
12579#      ifdef RTLD_NOW
12580#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12581#      else
12582#        ifdef DL_NOW
12583#          define LT_DLLAZY_OR_NOW      DL_NOW
12584#        else
12585#          define LT_DLLAZY_OR_NOW      0
12586#        endif
12587#      endif
12588#    endif
12589#  endif
12590#endif
12591
12592#ifdef __cplusplus
12593extern "C" void exit (int);
12594#endif
12595
12596void fnord() { int i=42;}
12597int main ()
12598{
12599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12600  int status = $lt_dlunknown;
12601
12602  if (self)
12603    {
12604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12606      /* dlclose (self); */
12607    }
12608
12609    exit (status);
12610}
12611EOF
12612  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613  (eval $ac_link) 2>&5
12614  ac_status=$?
12615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12617    (./conftest; exit; ) 2>/dev/null
12618    lt_status=$?
12619    case x$lt_status in
12620      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12621      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12622      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12623    esac
12624  else :
12625    # compilation failed
12626    lt_cv_dlopen_self=no
12627  fi
12628fi
12629rm -fr conftest*
12630
12631
12632fi
12633echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12634echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12635
12636    if test "x$lt_cv_dlopen_self" = xyes; then
12637      LDFLAGS="$LDFLAGS $link_static_flag"
12638      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12639echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12640if test "${lt_cv_dlopen_self_static+set}" = set; then
12641  echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643          if test "$cross_compiling" = yes; then :
12644  lt_cv_dlopen_self_static=cross
12645else
12646  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12647  lt_status=$lt_dlunknown
12648  cat > conftest.$ac_ext <<EOF
12649#line 12649 "configure"
12650#include "confdefs.h"
12651
12652#if HAVE_DLFCN_H
12653#include <dlfcn.h>
12654#endif
12655
12656#include <stdio.h>
12657
12658#ifdef RTLD_GLOBAL
12659#  define LT_DLGLOBAL           RTLD_GLOBAL
12660#else
12661#  ifdef DL_GLOBAL
12662#    define LT_DLGLOBAL         DL_GLOBAL
12663#  else
12664#    define LT_DLGLOBAL         0
12665#  endif
12666#endif
12667
12668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12669   find out it does not work in some platform. */
12670#ifndef LT_DLLAZY_OR_NOW
12671#  ifdef RTLD_LAZY
12672#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12673#  else
12674#    ifdef DL_LAZY
12675#      define LT_DLLAZY_OR_NOW          DL_LAZY
12676#    else
12677#      ifdef RTLD_NOW
12678#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12679#      else
12680#        ifdef DL_NOW
12681#          define LT_DLLAZY_OR_NOW      DL_NOW
12682#        else
12683#          define LT_DLLAZY_OR_NOW      0
12684#        endif
12685#      endif
12686#    endif
12687#  endif
12688#endif
12689
12690#ifdef __cplusplus
12691extern "C" void exit (int);
12692#endif
12693
12694void fnord() { int i=42;}
12695int main ()
12696{
12697  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12698  int status = $lt_dlunknown;
12699
12700  if (self)
12701    {
12702      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12703      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12704      /* dlclose (self); */
12705    }
12706
12707    exit (status);
12708}
12709EOF
12710  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711  (eval $ac_link) 2>&5
12712  ac_status=$?
12713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12715    (./conftest; exit; ) 2>/dev/null
12716    lt_status=$?
12717    case x$lt_status in
12718      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12719      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12720      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12721    esac
12722  else :
12723    # compilation failed
12724    lt_cv_dlopen_self_static=no
12725  fi
12726fi
12727rm -fr conftest*
12728
12729
12730fi
12731echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12732echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12733    fi
12734
12735    CPPFLAGS="$save_CPPFLAGS"
12736    LDFLAGS="$save_LDFLAGS"
12737    LIBS="$save_LIBS"
12738    ;;
12739  esac
12740
12741  case $lt_cv_dlopen_self in
12742  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12743  *) enable_dlopen_self=unknown ;;
12744  esac
12745
12746  case $lt_cv_dlopen_self_static in
12747  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12748  *) enable_dlopen_self_static=unknown ;;
12749  esac
12750fi
12751
12752
12753# The else clause should only fire when bootstrapping the
12754# libtool distribution, otherwise you forgot to ship ltmain.sh
12755# with your package, and you will get complaints that there are
12756# no rules to generate ltmain.sh.
12757if test -f "$ltmain"; then
12758  # See if we are running on zsh, and set the options which allow our commands through
12759  # without removal of \ escapes.
12760  if test -n "${ZSH_VERSION+set}" ; then
12761    setopt NO_GLOB_SUBST
12762  fi
12763  # Now quote all the things that may contain metacharacters while being
12764  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12765  # variables and quote the copies for generation of the libtool script.
12766  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12767    SED SHELL STRIP \
12768    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12769    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12770    deplibs_check_method reload_flag reload_cmds need_locks \
12771    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12772    lt_cv_sys_global_symbol_to_c_name_address \
12773    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12774    old_postinstall_cmds old_postuninstall_cmds \
12775    compiler_CXX \
12776    CC_CXX \
12777    LD_CXX \
12778    lt_prog_compiler_wl_CXX \
12779    lt_prog_compiler_pic_CXX \
12780    lt_prog_compiler_static_CXX \
12781    lt_prog_compiler_no_builtin_flag_CXX \
12782    export_dynamic_flag_spec_CXX \
12783    thread_safe_flag_spec_CXX \
12784    whole_archive_flag_spec_CXX \
12785    enable_shared_with_static_runtimes_CXX \
12786    old_archive_cmds_CXX \
12787    old_archive_from_new_cmds_CXX \
12788    predep_objects_CXX \
12789    postdep_objects_CXX \
12790    predeps_CXX \
12791    postdeps_CXX \
12792    compiler_lib_search_path_CXX \
12793    archive_cmds_CXX \
12794    archive_expsym_cmds_CXX \
12795    postinstall_cmds_CXX \
12796    postuninstall_cmds_CXX \
12797    old_archive_from_expsyms_cmds_CXX \
12798    allow_undefined_flag_CXX \
12799    no_undefined_flag_CXX \
12800    export_symbols_cmds_CXX \
12801    hardcode_libdir_flag_spec_CXX \
12802    hardcode_libdir_flag_spec_ld_CXX \
12803    hardcode_libdir_separator_CXX \
12804    hardcode_automatic_CXX \
12805    module_cmds_CXX \
12806    module_expsym_cmds_CXX \
12807    lt_cv_prog_compiler_c_o_CXX \
12808    exclude_expsyms_CXX \
12809    include_expsyms_CXX; do
12810
12811    case $var in
12812    old_archive_cmds_CXX | \
12813    old_archive_from_new_cmds_CXX | \
12814    archive_cmds_CXX | \
12815    archive_expsym_cmds_CXX | \
12816    module_cmds_CXX | \
12817    module_expsym_cmds_CXX | \
12818    old_archive_from_expsyms_cmds_CXX | \
12819    export_symbols_cmds_CXX | \
12820    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12821    postinstall_cmds | postuninstall_cmds | \
12822    old_postinstall_cmds | old_postuninstall_cmds | \
12823    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12824      # Double-quote double-evaled strings.
12825      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12826      ;;
12827    *)
12828      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12829      ;;
12830    esac
12831  done
12832
12833  case $lt_echo in
12834  *'\$0 --fallback-echo"')
12835    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12836    ;;
12837  esac
12838
12839cfgfile="$ofile"
12840
12841  cat <<__EOF__ >> "$cfgfile"
12842# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12843
12844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12845
12846# Shell to use when invoking shell scripts.
12847SHELL=$lt_SHELL
12848
12849# Whether or not to build shared libraries.
12850build_libtool_libs=$enable_shared
12851
12852# Whether or not to build static libraries.
12853build_old_libs=$enable_static
12854
12855# Whether or not to add -lc for building shared libraries.
12856build_libtool_need_lc=$archive_cmds_need_lc_CXX
12857
12858# Whether or not to disallow shared libs when runtime libs are static
12859allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12860
12861# Whether or not to optimize for fast installation.
12862fast_install=$enable_fast_install
12863
12864# The host system.
12865host_alias=$host_alias
12866host=$host
12867
12868# An echo program that does not interpret backslashes.
12869echo=$lt_echo
12870
12871# The archiver.
12872AR=$lt_AR
12873AR_FLAGS=$lt_AR_FLAGS
12874
12875# A C compiler.
12876LTCC=$lt_LTCC
12877
12878# A language-specific compiler.
12879CC=$lt_compiler_CXX
12880
12881# Is the compiler the GNU C compiler?
12882with_gcc=$GCC_CXX
12883
12884# An ERE matcher.
12885EGREP=$lt_EGREP
12886
12887# The linker used to build libraries.
12888LD=$lt_LD_CXX
12889
12890# Whether we need hard or soft links.
12891LN_S=$lt_LN_S
12892
12893# A BSD-compatible nm program.
12894NM=$lt_NM
12895
12896# A symbol stripping program
12897STRIP=$lt_STRIP
12898
12899# Used to examine libraries when file_magic_cmd begins "file"
12900MAGIC_CMD=$MAGIC_CMD
12901
12902# Used on cygwin: DLL creation program.
12903DLLTOOL="$DLLTOOL"
12904
12905# Used on cygwin: object dumper.
12906OBJDUMP="$OBJDUMP"
12907
12908# Used on cygwin: assembler.
12909AS="$AS"
12910
12911# The name of the directory that contains temporary libtool files.
12912objdir=$objdir
12913
12914# How to create reloadable object files.
12915reload_flag=$lt_reload_flag
12916reload_cmds=$lt_reload_cmds
12917
12918# How to pass a linker flag through the compiler.
12919wl=$lt_lt_prog_compiler_wl_CXX
12920
12921# Object file suffix (normally "o").
12922objext="$ac_objext"
12923
12924# Old archive suffix (normally "a").
12925libext="$libext"
12926
12927# Shared library suffix (normally ".so").
12928shrext_cmds='$shrext_cmds'
12929
12930# Executable file suffix (normally "").
12931exeext="$exeext"
12932
12933# Additional compiler flags for building library objects.
12934pic_flag=$lt_lt_prog_compiler_pic_CXX
12935pic_mode=$pic_mode
12936
12937# What is the maximum length of a command?
12938max_cmd_len=$lt_cv_sys_max_cmd_len
12939
12940# Does compiler simultaneously support -c and -o options?
12941compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12942
12943# Must we lock files when doing compilation ?
12944need_locks=$lt_need_locks
12945
12946# Do we need the lib prefix for modules?
12947need_lib_prefix=$need_lib_prefix
12948
12949# Do we need a version for libraries?
12950need_version=$need_version
12951
12952# Whether dlopen is supported.
12953dlopen_support=$enable_dlopen
12954
12955# Whether dlopen of programs is supported.
12956dlopen_self=$enable_dlopen_self
12957
12958# Whether dlopen of statically linked programs is supported.
12959dlopen_self_static=$enable_dlopen_self_static
12960
12961# Compiler flag to prevent dynamic linking.
12962link_static_flag=$lt_lt_prog_compiler_static_CXX
12963
12964# Compiler flag to turn off builtin functions.
12965no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12966
12967# Compiler flag to allow reflexive dlopens.
12968export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12969
12970# Compiler flag to generate shared objects directly from archives.
12971whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12972
12973# Compiler flag to generate thread-safe objects.
12974thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12975
12976# Library versioning type.
12977version_type=$version_type
12978
12979# Format of library name prefix.
12980libname_spec=$lt_libname_spec
12981
12982# List of archive names.  First name is the real one, the rest are links.
12983# The last name is the one that the linker finds with -lNAME.
12984library_names_spec=$lt_library_names_spec
12985
12986# The coded name of the library, if different from the real name.
12987soname_spec=$lt_soname_spec
12988
12989# Commands used to build and install an old-style archive.
12990RANLIB=$lt_RANLIB
12991old_archive_cmds=$lt_old_archive_cmds_CXX
12992old_postinstall_cmds=$lt_old_postinstall_cmds
12993old_postuninstall_cmds=$lt_old_postuninstall_cmds
12994
12995# Create an old-style archive from a shared archive.
12996old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12997
12998# Create a temporary old-style archive to link instead of a shared archive.
12999old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13000
13001# Commands used to build and install a shared archive.
13002archive_cmds=$lt_archive_cmds_CXX
13003archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13004postinstall_cmds=$lt_postinstall_cmds
13005postuninstall_cmds=$lt_postuninstall_cmds
13006
13007# Commands used to build a loadable module (assumed same as above if empty)
13008module_cmds=$lt_module_cmds_CXX
13009module_expsym_cmds=$lt_module_expsym_cmds_CXX
13010
13011# Commands to strip libraries.
13012old_striplib=$lt_old_striplib
13013striplib=$lt_striplib
13014
13015# Dependencies to place before the objects being linked to create a
13016# shared library.
13017predep_objects=$lt_predep_objects_CXX
13018
13019# Dependencies to place after the objects being linked to create a
13020# shared library.
13021postdep_objects=$lt_postdep_objects_CXX
13022
13023# Dependencies to place before the objects being linked to create a
13024# shared library.
13025predeps=$lt_predeps_CXX
13026
13027# Dependencies to place after the objects being linked to create a
13028# shared library.
13029postdeps=$lt_postdeps_CXX
13030
13031# The library search path used internally by the compiler when linking
13032# a shared library.
13033compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13034
13035# Method to check whether dependent libraries are shared objects.
13036deplibs_check_method=$lt_deplibs_check_method
13037
13038# Command to use when deplibs_check_method == file_magic.
13039file_magic_cmd=$lt_file_magic_cmd
13040
13041# Flag that allows shared libraries with undefined symbols to be built.
13042allow_undefined_flag=$lt_allow_undefined_flag_CXX
13043
13044# Flag that forces no undefined symbols.
13045no_undefined_flag=$lt_no_undefined_flag_CXX
13046
13047# Commands used to finish a libtool library installation in a directory.
13048finish_cmds=$lt_finish_cmds
13049
13050# Same as above, but a single script fragment to be evaled but not shown.
13051finish_eval=$lt_finish_eval
13052
13053# Take the output of nm and produce a listing of raw symbols and C names.
13054global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13055
13056# Transform the output of nm in a proper C declaration
13057global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13058
13059# Transform the output of nm in a C name address pair
13060global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13061
13062# This is the shared library runtime path variable.
13063runpath_var=$runpath_var
13064
13065# This is the shared library path variable.
13066shlibpath_var=$shlibpath_var
13067
13068# Is shlibpath searched before the hard-coded library search path?
13069shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13070
13071# How to hardcode a shared library path into an executable.
13072hardcode_action=$hardcode_action_CXX
13073
13074# Whether we should hardcode library paths into libraries.
13075hardcode_into_libs=$hardcode_into_libs
13076
13077# Flag to hardcode \$libdir into a binary during linking.
13078# This must work even if \$libdir does not exist.
13079hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13080
13081# If ld is used when linking, flag to hardcode \$libdir into
13082# a binary during linking. This must work even if \$libdir does
13083# not exist.
13084hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13085
13086# Whether we need a single -rpath flag with a separated argument.
13087hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13088
13089# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13090# resulting binary.
13091hardcode_direct=$hardcode_direct_CXX
13092
13093# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13094# resulting binary.
13095hardcode_minus_L=$hardcode_minus_L_CXX
13096
13097# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13098# the resulting binary.
13099hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13100
13101# Set to yes if building a shared library automatically hardcodes DIR into the library
13102# and all subsequent libraries and executables linked against it.
13103hardcode_automatic=$hardcode_automatic_CXX
13104
13105# Variables whose values should be saved in libtool wrapper scripts and
13106# restored at relink time.
13107variables_saved_for_relink="$variables_saved_for_relink"
13108
13109# Whether libtool must link a program against all its dependency libraries.
13110link_all_deplibs=$link_all_deplibs_CXX
13111
13112# Compile-time system search path for libraries
13113sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13114
13115# Run-time system search path for libraries
13116sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13117
13118# Fix the shell variable \$srcfile for the compiler.
13119fix_srcfile_path="$fix_srcfile_path_CXX"
13120
13121# Set to yes if exported symbols are required.
13122always_export_symbols=$always_export_symbols_CXX
13123
13124# The commands to list exported symbols.
13125export_symbols_cmds=$lt_export_symbols_cmds_CXX
13126
13127# The commands to extract the exported symbol list from a shared archive.
13128extract_expsyms_cmds=$lt_extract_expsyms_cmds
13129
13130# Symbols that should not be listed in the preloaded symbols.
13131exclude_expsyms=$lt_exclude_expsyms_CXX
13132
13133# Symbols that must always be exported.
13134include_expsyms=$lt_include_expsyms_CXX
13135
13136# ### END LIBTOOL TAG CONFIG: $tagname
13137
13138__EOF__
13139
13140
13141else
13142  # If there is no Makefile yet, we rely on a make rule to execute
13143  # `config.status --recheck' to rerun these tests and create the
13144  # libtool script then.
13145  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13146  if test -f "$ltmain_in"; then
13147    test -f Makefile && make "$ltmain"
13148  fi
13149fi
13150
13151
13152ac_ext=c
13153ac_cpp='$CPP $CPPFLAGS'
13154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13156ac_compiler_gnu=$ac_cv_c_compiler_gnu
13157
13158CC=$lt_save_CC
13159LDCXX=$LD
13160LD=$lt_save_LD
13161GCC=$lt_save_GCC
13162with_gnu_ldcxx=$with_gnu_ld
13163with_gnu_ld=$lt_save_with_gnu_ld
13164lt_cv_path_LDCXX=$lt_cv_path_LD
13165lt_cv_path_LD=$lt_save_path_LD
13166lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13167lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13168
13169        else
13170          tagname=""
13171        fi
13172        ;;
13173
13174      F77)
13175        if test -n "$F77" && test "X$F77" != "Xno"; then
13176
13177ac_ext=f
13178ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13179ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13180ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13181
13182
13183archive_cmds_need_lc_F77=no
13184allow_undefined_flag_F77=
13185always_export_symbols_F77=no
13186archive_expsym_cmds_F77=
13187export_dynamic_flag_spec_F77=
13188hardcode_direct_F77=no
13189hardcode_libdir_flag_spec_F77=
13190hardcode_libdir_flag_spec_ld_F77=
13191hardcode_libdir_separator_F77=
13192hardcode_minus_L_F77=no
13193hardcode_automatic_F77=no
13194module_cmds_F77=
13195module_expsym_cmds_F77=
13196link_all_deplibs_F77=unknown
13197old_archive_cmds_F77=$old_archive_cmds
13198no_undefined_flag_F77=
13199whole_archive_flag_spec_F77=
13200enable_shared_with_static_runtimes_F77=no
13201
13202# Source file extension for f77 test sources.
13203ac_ext=f
13204
13205# Object file extension for compiled f77 test sources.
13206objext=o
13207objext_F77=$objext
13208
13209# Code to be used in simple compile tests
13210lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13211
13212# Code to be used in simple link tests
13213lt_simple_link_test_code="      program t\n      end\n"
13214
13215# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13216
13217# If no C compiler was specified, use CC.
13218LTCC=${LTCC-"$CC"}
13219
13220# Allow CC to be a program name with arguments.
13221compiler=$CC
13222
13223
13224# Allow CC to be a program name with arguments.
13225lt_save_CC="$CC"
13226CC=${F77-"f77"}
13227compiler=$CC
13228compiler_F77=$CC
13229cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13230
13231echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13232echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13233echo "$as_me:$LINENO: result: $can_build_shared" >&5
13234echo "${ECHO_T}$can_build_shared" >&6
13235
13236echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13237echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13238test "$can_build_shared" = "no" && enable_shared=no
13239
13240# On AIX, shared libraries and static libraries use the same namespace, and
13241# are all built from PIC.
13242case "$host_os" in
13243aix3*)
13244  test "$enable_shared" = yes && enable_static=no
13245  if test -n "$RANLIB"; then
13246    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13247    postinstall_cmds='$RANLIB $lib'
13248  fi
13249  ;;
13250aix4* | aix5*)
13251  test "$enable_shared" = yes && enable_static=no
13252  ;;
13253esac
13254echo "$as_me:$LINENO: result: $enable_shared" >&5
13255echo "${ECHO_T}$enable_shared" >&6
13256
13257echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13258echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13259# Make sure either enable_shared or enable_static is yes.
13260test "$enable_shared" = yes || enable_static=yes
13261echo "$as_me:$LINENO: result: $enable_static" >&5
13262echo "${ECHO_T}$enable_static" >&6
13263
13264test "$ld_shlibs_F77" = no && can_build_shared=no
13265
13266GCC_F77="$G77"
13267LD_F77="$LD"
13268
13269lt_prog_compiler_wl_F77=
13270lt_prog_compiler_pic_F77=
13271lt_prog_compiler_static_F77=
13272
13273echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13274echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13275
13276  if test "$GCC" = yes; then
13277    lt_prog_compiler_wl_F77='-Wl,'
13278    lt_prog_compiler_static_F77='-static'
13279
13280    case $host_os in
13281      aix*)
13282      # All AIX code is PIC.
13283      if test "$host_cpu" = ia64; then
13284        # AIX 5 now supports IA64 processor
13285        lt_prog_compiler_static_F77='-Bstatic'
13286      fi
13287      ;;
13288
13289    amigaos*)
13290      # FIXME: we need at least 68020 code to build shared libraries, but
13291      # adding the `-m68020' flag to GCC prevents building anything better,
13292      # like `-m68040'.
13293      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13294      ;;
13295
13296    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13297      # PIC is the default for these OSes.
13298      ;;
13299
13300    mingw* | pw32* | os2*)
13301      # This hack is so that the source file can tell whether it is being
13302      # built for inclusion in a dll (and should export symbols for example).
13303      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13304      ;;
13305
13306    darwin* | rhapsody*)
13307      # PIC is the default on this platform
13308      # Common symbols not allowed in MH_DYLIB files
13309      lt_prog_compiler_pic_F77='-fno-common'
13310      ;;
13311
13312    msdosdjgpp*)
13313      # Just because we use GCC doesn't mean we suddenly get shared libraries
13314      # on systems that don't support them.
13315      lt_prog_compiler_can_build_shared_F77=no
13316      enable_shared=no
13317      ;;
13318
13319    sysv4*MP*)
13320      if test -d /usr/nec; then
13321        lt_prog_compiler_pic_F77=-Kconform_pic
13322      fi
13323      ;;
13324
13325    hpux*)
13326      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13327      # not for PA HP-UX.
13328      case "$host_cpu" in
13329      hppa*64*|ia64*)
13330        # +Z the default
13331        ;;
13332      *)
13333        lt_prog_compiler_pic_F77='-fPIC'
13334        ;;
13335      esac
13336      ;;
13337
13338    *)
13339      lt_prog_compiler_pic_F77='-fPIC'
13340      ;;
13341    esac
13342  else
13343    # PORTME Check for flag to pass linker flags through the system compiler.
13344    case $host_os in
13345    aix*)
13346      lt_prog_compiler_wl_F77='-Wl,'
13347      if test "$host_cpu" = ia64; then
13348        # AIX 5 now supports IA64 processor
13349        lt_prog_compiler_static_F77='-Bstatic'
13350      else
13351        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13352      fi
13353      ;;
13354
13355    mingw* | pw32* | os2*)
13356      # This hack is so that the source file can tell whether it is being
13357      # built for inclusion in a dll (and should export symbols for example).
13358      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13359      ;;
13360
13361    hpux9* | hpux10* | hpux11*)
13362      lt_prog_compiler_wl_F77='-Wl,'
13363      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13364      # not for PA HP-UX.
13365      case "$host_cpu" in
13366      hppa*64*|ia64*)
13367        # +Z the default
13368        ;;
13369      *)
13370        lt_prog_compiler_pic_F77='+Z'
13371        ;;
13372      esac
13373      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13374      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13375      ;;
13376
13377    irix5* | irix6* | nonstopux*)
13378      lt_prog_compiler_wl_F77='-Wl,'
13379      # PIC (with -KPIC) is the default.
13380      lt_prog_compiler_static_F77='-non_shared'
13381      ;;
13382
13383    newsos6)
13384      lt_prog_compiler_pic_F77='-KPIC'
13385      lt_prog_compiler_static_F77='-Bstatic'
13386      ;;
13387
13388    linux*)
13389      case $CC in
13390      icc* | ecc*)
13391        lt_prog_compiler_wl_F77='-Wl,'
13392        lt_prog_compiler_pic_F77='-KPIC'
13393        lt_prog_compiler_static_F77='-static'
13394        ;;
13395      ccc*)
13396        lt_prog_compiler_wl_F77='-Wl,'
13397        # All Alpha code is PIC.
13398        lt_prog_compiler_static_F77='-non_shared'
13399        ;;
13400      esac
13401      ;;
13402
13403    osf3* | osf4* | osf5*)
13404      lt_prog_compiler_wl_F77='-Wl,'
13405      # All OSF/1 code is PIC.
13406      lt_prog_compiler_static_F77='-non_shared'
13407      ;;
13408
13409    sco3.2v5*)
13410      lt_prog_compiler_pic_F77='-Kpic'
13411      lt_prog_compiler_static_F77='-dn'
13412      ;;
13413
13414    solaris*)
13415      lt_prog_compiler_wl_F77='-Wl,'
13416      lt_prog_compiler_pic_F77='-KPIC'
13417      lt_prog_compiler_static_F77='-Bstatic'
13418      ;;
13419
13420    sunos4*)
13421      lt_prog_compiler_wl_F77='-Qoption ld '
13422      lt_prog_compiler_pic_F77='-PIC'
13423      lt_prog_compiler_static_F77='-Bstatic'
13424      ;;
13425
13426    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13427      lt_prog_compiler_wl_F77='-Wl,'
13428      lt_prog_compiler_pic_F77='-KPIC'
13429      lt_prog_compiler_static_F77='-Bstatic'
13430      ;;
13431
13432    sysv4*MP*)
13433      if test -d /usr/nec ;then
13434        lt_prog_compiler_pic_F77='-Kconform_pic'
13435        lt_prog_compiler_static_F77='-Bstatic'
13436      fi
13437      ;;
13438
13439    uts4*)
13440      lt_prog_compiler_pic_F77='-pic'
13441      lt_prog_compiler_static_F77='-Bstatic'
13442      ;;
13443
13444    *)
13445      lt_prog_compiler_can_build_shared_F77=no
13446      ;;
13447    esac
13448  fi
13449
13450echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13451echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13452
13453#
13454# Check to make sure the PIC flag actually works.
13455#
13456if test -n "$lt_prog_compiler_pic_F77"; then
13457
13458echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13459echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13460if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13461  echo $ECHO_N "(cached) $ECHO_C" >&6
13462else
13463  lt_prog_compiler_pic_works_F77=no
13464  ac_outfile=conftest.$ac_objext
13465   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13466   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13467   # Insert the option either (1) after the last *FLAGS variable, or
13468   # (2) before a word containing "conftest.", or (3) at the end.
13469   # Note that $ac_compile itself does not contain backslashes and begins
13470   # with a dollar sign (not a hyphen), so the echo should work correctly.
13471   # The option is referenced via a variable to avoid confusing sed.
13472   lt_compile=`echo "$ac_compile" | $SED \
13473   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475   -e 's:$: $lt_compiler_flag:'`
13476   (eval echo "\"\$as_me:13476: $lt_compile\"" >&5)
13477   (eval "$lt_compile" 2>conftest.err)
13478   ac_status=$?
13479   cat conftest.err >&5
13480   echo "$as_me:13480: \$? = $ac_status" >&5
13481   if (exit $ac_status) && test -s "$ac_outfile"; then
13482     # The compiler can only warn and ignore the option if not recognized
13483     # So say no if there are warnings
13484     if test ! -s conftest.err; then
13485       lt_prog_compiler_pic_works_F77=yes
13486     fi
13487   fi
13488   $rm conftest*
13489
13490fi
13491echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13492echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13493
13494if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13495    case $lt_prog_compiler_pic_F77 in
13496     "" | " "*) ;;
13497     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13498     esac
13499else
13500    lt_prog_compiler_pic_F77=
13501     lt_prog_compiler_can_build_shared_F77=no
13502fi
13503
13504fi
13505case "$host_os" in
13506  # For platforms which do not support PIC, -DPIC is meaningless:
13507  *djgpp*)
13508    lt_prog_compiler_pic_F77=
13509    ;;
13510  *)
13511    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13512    ;;
13513esac
13514
13515echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13517if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13518  echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520  lt_cv_prog_compiler_c_o_F77=no
13521   $rm -r conftest 2>/dev/null
13522   mkdir conftest
13523   cd conftest
13524   mkdir out
13525   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13526
13527   lt_compiler_flag="-o out/conftest2.$ac_objext"
13528   # Insert the option either (1) after the last *FLAGS variable, or
13529   # (2) before a word containing "conftest.", or (3) at the end.
13530   # Note that $ac_compile itself does not contain backslashes and begins
13531   # with a dollar sign (not a hyphen), so the echo should work correctly.
13532   lt_compile=`echo "$ac_compile" | $SED \
13533   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13535   -e 's:$: $lt_compiler_flag:'`
13536   (eval echo "\"\$as_me:13536: $lt_compile\"" >&5)
13537   (eval "$lt_compile" 2>out/conftest.err)
13538   ac_status=$?
13539   cat out/conftest.err >&5
13540   echo "$as_me:13540: \$? = $ac_status" >&5
13541   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13542   then
13543     # The compiler can only warn and ignore the option if not recognized
13544     # So say no if there are warnings
13545     if test ! -s out/conftest.err; then
13546       lt_cv_prog_compiler_c_o_F77=yes
13547     fi
13548   fi
13549   chmod u+w .
13550   $rm conftest*
13551   # SGI C++ compiler will create directory out/ii_files/ for
13552   # template instantiation
13553   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13554   $rm out/* && rmdir out
13555   cd ..
13556   rmdir conftest
13557   $rm conftest*
13558
13559fi
13560echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13561echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13562
13563
13564hard_links="nottested"
13565if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13566  # do not overwrite the value of need_locks provided by the user
13567  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13568echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13569  hard_links=yes
13570  $rm conftest*
13571  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13572  touch conftest.a
13573  ln conftest.a conftest.b 2>&5 || hard_links=no
13574  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13575  echo "$as_me:$LINENO: result: $hard_links" >&5
13576echo "${ECHO_T}$hard_links" >&6
13577  if test "$hard_links" = no; then
13578    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13579echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13580    need_locks=warn
13581  fi
13582else
13583  need_locks=no
13584fi
13585
13586echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13587echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13588
13589  runpath_var=
13590  allow_undefined_flag_F77=
13591  enable_shared_with_static_runtimes_F77=no
13592  archive_cmds_F77=
13593  archive_expsym_cmds_F77=
13594  old_archive_From_new_cmds_F77=
13595  old_archive_from_expsyms_cmds_F77=
13596  export_dynamic_flag_spec_F77=
13597  whole_archive_flag_spec_F77=
13598  thread_safe_flag_spec_F77=
13599  hardcode_libdir_flag_spec_F77=
13600  hardcode_libdir_flag_spec_ld_F77=
13601  hardcode_libdir_separator_F77=
13602  hardcode_direct_F77=no
13603  hardcode_minus_L_F77=no
13604  hardcode_shlibpath_var_F77=unsupported
13605  link_all_deplibs_F77=unknown
13606  hardcode_automatic_F77=no
13607  module_cmds_F77=
13608  module_expsym_cmds_F77=
13609  always_export_symbols_F77=no
13610  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13611  # include_expsyms should be a list of space-separated symbols to be *always*
13612  # included in the symbol list
13613  include_expsyms_F77=
13614  # exclude_expsyms can be an extended regexp of symbols to exclude
13615  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13616  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13617  # as well as any symbol that contains `d'.
13618  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13619  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13620  # platforms (ab)use it in PIC code, but their linkers get confused if
13621  # the symbol is explicitly referenced.  Since portable code cannot
13622  # rely on this symbol name, it's probably fine to never include it in
13623  # preloaded symbol tables.
13624  extract_expsyms_cmds=
13625
13626  case $host_os in
13627  cygwin* | mingw* | pw32*)
13628    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13629    # When not using gcc, we currently assume that we are using
13630    # Microsoft Visual C++.
13631    if test "$GCC" != yes; then
13632      with_gnu_ld=no
13633    fi
13634    ;;
13635  openbsd*)
13636    with_gnu_ld=no
13637    ;;
13638  esac
13639
13640  ld_shlibs_F77=yes
13641  if test "$with_gnu_ld" = yes; then
13642    # If archive_cmds runs LD, not CC, wlarc should be empty
13643    wlarc='${wl}'
13644
13645    # See if GNU ld supports shared libraries.
13646    case $host_os in
13647    aix3* | aix4* | aix5*)
13648      # On AIX/PPC, the GNU linker is very broken
13649      if test "$host_cpu" != ia64; then
13650        ld_shlibs_F77=no
13651        cat <<EOF 1>&2
13652
13653*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13654*** to be unable to reliably create shared libraries on AIX.
13655*** Therefore, libtool is disabling shared libraries support.  If you
13656*** really care for shared libraries, you may want to modify your PATH
13657*** so that a non-GNU linker is found, and then restart.
13658
13659EOF
13660      fi
13661      ;;
13662
13663    amigaos*)
13664      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)'
13665      hardcode_libdir_flag_spec_F77='-L$libdir'
13666      hardcode_minus_L_F77=yes
13667
13668      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13669      # that the semantics of dynamic libraries on AmigaOS, at least up
13670      # to version 4, is to share data among multiple programs linked
13671      # with the same dynamic library.  Since this doesn't match the
13672      # behavior of shared libraries on other platforms, we can't use
13673      # them.
13674      ld_shlibs_F77=no
13675      ;;
13676
13677    beos*)
13678      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13679        allow_undefined_flag_F77=unsupported
13680        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13681        # support --undefined.  This deserves some investigation.  FIXME
13682        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683      else
13684        ld_shlibs_F77=no
13685      fi
13686      ;;
13687
13688    cygwin* | mingw* | pw32*)
13689      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13690      # as there is no search path for DLLs.
13691      hardcode_libdir_flag_spec_F77='-L$libdir'
13692      allow_undefined_flag_F77=unsupported
13693      always_export_symbols_F77=no
13694      enable_shared_with_static_runtimes_F77=yes
13695      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13696
13697      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13698        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13699        # If the export-symbols file already is a .def file (1st line
13700        # is EXPORTS), use it as is; otherwise, prepend...
13701        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13702          cp $export_symbols $output_objdir/$soname.def;
13703        else
13704          echo EXPORTS > $output_objdir/$soname.def;
13705          cat $export_symbols >> $output_objdir/$soname.def;
13706        fi~
13707        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13708      else
13709        ld_shlibs=no
13710      fi
13711      ;;
13712
13713    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13714      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13715        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13716        wlarc=
13717      else
13718        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13719        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13720      fi
13721      ;;
13722
13723    solaris* | sysv5*)
13724      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13725        ld_shlibs_F77=no
13726        cat <<EOF 1>&2
13727
13728*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13729*** create shared libraries on Solaris systems.  Therefore, libtool
13730*** is disabling shared libraries support.  We urge you to upgrade GNU
13731*** binutils to release 2.9.1 or newer.  Another option is to modify
13732*** your PATH or compiler configuration so that the native linker is
13733*** used, and then restart.
13734
13735EOF
13736      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13737        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13739      else
13740        ld_shlibs_F77=no
13741      fi
13742      ;;
13743
13744    sunos4*)
13745      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13746      wlarc=
13747      hardcode_direct_F77=yes
13748      hardcode_shlibpath_var_F77=no
13749      ;;
13750
13751  linux*)
13752    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13753        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754        archive_cmds_F77="$tmp_archive_cmds"
13755      supports_anon_versioning=no
13756      case `$LD -v 2>/dev/null` in
13757        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13758        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13759        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13760        *\ 2.11.*) ;; # other 2.11 versions
13761        *) supports_anon_versioning=yes ;;
13762      esac
13763      if test $supports_anon_versioning = yes; then
13764        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13765cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13766$echo "local: *; };" >> $output_objdir/$libname.ver~
13767        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13768      else
13769        archive_expsym_cmds_F77="$tmp_archive_cmds"
13770      fi
13771      link_all_deplibs_F77=no
13772    else
13773      ld_shlibs_F77=no
13774    fi
13775    ;;
13776
13777    *)
13778      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13779        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13780        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13781      else
13782        ld_shlibs_F77=no
13783      fi
13784      ;;
13785    esac
13786
13787    if test "$ld_shlibs_F77" = yes; then
13788      runpath_var=LD_RUN_PATH
13789      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13790      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13791      # ancient GNU ld didn't support --whole-archive et. al.
13792      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13793        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13794      else
13795        whole_archive_flag_spec_F77=
13796      fi
13797    fi
13798  else
13799    # PORTME fill in a description of your system's linker (not GNU ld)
13800    case $host_os in
13801    aix3*)
13802      allow_undefined_flag_F77=unsupported
13803      always_export_symbols_F77=yes
13804      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'
13805      # Note: this linker hardcodes the directories in LIBPATH if there
13806      # are no directories specified by -L.
13807      hardcode_minus_L_F77=yes
13808      if test "$GCC" = yes && test -z "$link_static_flag"; then
13809        # Neither direct hardcoding nor static linking is supported with a
13810        # broken collect2.
13811        hardcode_direct_F77=unsupported
13812      fi
13813      ;;
13814
13815    aix4* | aix5*)
13816      if test "$host_cpu" = ia64; then
13817        # On IA64, the linker does run time linking by default, so we don't
13818        # have to do anything special.
13819        aix_use_runtimelinking=no
13820        exp_sym_flag='-Bexport'
13821        no_entry_flag=""
13822      else
13823        # If we're using GNU nm, then we don't want the "-C" option.
13824        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13825        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13826          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'
13827        else
13828          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'
13829        fi
13830        aix_use_runtimelinking=no
13831
13832        # Test if we are trying to use run time linking or normal
13833        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13834        # need to do runtime linking.
13835        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13836          for ld_flag in $LDFLAGS; do
13837          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13838            aix_use_runtimelinking=yes
13839            break
13840          fi
13841          done
13842        esac
13843
13844        exp_sym_flag='-bexport'
13845        no_entry_flag='-bnoentry'
13846      fi
13847
13848      # When large executables or shared objects are built, AIX ld can
13849      # have problems creating the table of contents.  If linking a library
13850      # or program results in "error TOC overflow" add -mminimal-toc to
13851      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13852      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13853
13854      archive_cmds_F77=''
13855      hardcode_direct_F77=yes
13856      hardcode_libdir_separator_F77=':'
13857      link_all_deplibs_F77=yes
13858
13859      if test "$GCC" = yes; then
13860        case $host_os in aix4.012|aix4.012.*)
13861        # We only want to do this on AIX 4.2 and lower, the check
13862        # below for broken collect2 doesn't work under 4.3+
13863          collect2name=`${CC} -print-prog-name=collect2`
13864          if test -f "$collect2name" && \
13865           strings "$collect2name" | grep resolve_lib_name >/dev/null
13866          then
13867          # We have reworked collect2
13868          hardcode_direct_F77=yes
13869          else
13870          # We have old collect2
13871          hardcode_direct_F77=unsupported
13872          # It fails to find uninstalled libraries when the uninstalled
13873          # path is not listed in the libpath.  Setting hardcode_minus_L
13874          # to unsupported forces relinking
13875          hardcode_minus_L_F77=yes
13876          hardcode_libdir_flag_spec_F77='-L$libdir'
13877          hardcode_libdir_separator_F77=
13878          fi
13879        esac
13880        shared_flag='-shared'
13881      else
13882        # not using gcc
13883        if test "$host_cpu" = ia64; then
13884        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13885        # chokes on -Wl,-G. The following line is correct:
13886          shared_flag='-G'
13887        else
13888        if test "$aix_use_runtimelinking" = yes; then
13889            shared_flag='${wl}-G'
13890          else
13891            shared_flag='${wl}-bM:SRE'
13892        fi
13893        fi
13894      fi
13895
13896      # It seems that -bexpall does not export symbols beginning with
13897      # underscore (_), so it is better to generate a list of symbols to export.
13898      always_export_symbols_F77=yes
13899      if test "$aix_use_runtimelinking" = yes; then
13900        # Warning - without using the other runtime loading flags (-brtl),
13901        # -berok will link without error, but may produce a broken library.
13902        allow_undefined_flag_F77='-berok'
13903       # Determine the default libpath from the value encoded in an empty executable.
13904       cat >conftest.$ac_ext <<_ACEOF
13905      program main
13906
13907      end
13908_ACEOF
13909rm -f conftest.$ac_objext conftest$ac_exeext
13910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911  (eval $ac_link) 2>conftest.er1
13912  ac_status=$?
13913  grep -v '^ *+' conftest.er1 >conftest.err
13914  rm -f conftest.er1
13915  cat conftest.err >&5
13916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917  (exit $ac_status); } &&
13918         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920  (eval $ac_try) 2>&5
13921  ac_status=$?
13922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923  (exit $ac_status); }; } &&
13924         { ac_try='test -s conftest$ac_exeext'
13925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926  (eval $ac_try) 2>&5
13927  ac_status=$?
13928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929  (exit $ac_status); }; }; then
13930
13931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13932}'`
13933# Check for a 64-bit object if we didn't find anything.
13934if 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; }
13935}'`; fi
13936else
13937  echo "$as_me: failed program was:" >&5
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940fi
13941rm -f conftest.err conftest.$ac_objext \
13942      conftest$ac_exeext conftest.$ac_ext
13943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13944
13945       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13946        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"
13947       else
13948        if test "$host_cpu" = ia64; then
13949          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13950          allow_undefined_flag_F77="-z nodefs"
13951          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"
13952        else
13953         # Determine the default libpath from the value encoded in an empty executable.
13954         cat >conftest.$ac_ext <<_ACEOF
13955      program main
13956
13957      end
13958_ACEOF
13959rm -f conftest.$ac_objext conftest$ac_exeext
13960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961  (eval $ac_link) 2>conftest.er1
13962  ac_status=$?
13963  grep -v '^ *+' conftest.er1 >conftest.err
13964  rm -f conftest.er1
13965  cat conftest.err >&5
13966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967  (exit $ac_status); } &&
13968         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970  (eval $ac_try) 2>&5
13971  ac_status=$?
13972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973  (exit $ac_status); }; } &&
13974         { ac_try='test -s conftest$ac_exeext'
13975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976  (eval $ac_try) 2>&5
13977  ac_status=$?
13978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979  (exit $ac_status); }; }; then
13980
13981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13982}'`
13983# Check for a 64-bit object if we didn't find anything.
13984if 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; }
13985}'`; fi
13986else
13987  echo "$as_me: failed program was:" >&5
13988sed 's/^/| /' conftest.$ac_ext >&5
13989
13990fi
13991rm -f conftest.err conftest.$ac_objext \
13992      conftest$ac_exeext conftest.$ac_ext
13993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13994
13995         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13996          # Warning - without using the other run time loading flags,
13997          # -berok will link without error, but may produce a broken library.
13998          no_undefined_flag_F77=' ${wl}-bernotok'
13999          allow_undefined_flag_F77=' ${wl}-berok'
14000          # -bexpall does not export symbols beginning with underscore (_)
14001          always_export_symbols_F77=yes
14002          # Exported symbols can be pulled into shared objects from archives
14003          whole_archive_flag_spec_F77=' '
14004          archive_cmds_need_lc_F77=yes
14005          # This is similar to how AIX traditionally builds it's shared libraries.
14006          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'
14007        fi
14008      fi
14009      ;;
14010
14011    amigaos*)
14012      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)'
14013      hardcode_libdir_flag_spec_F77='-L$libdir'
14014      hardcode_minus_L_F77=yes
14015      # see comment about different semantics on the GNU ld section
14016      ld_shlibs_F77=no
14017      ;;
14018
14019    bsdi4*)
14020      export_dynamic_flag_spec_F77=-rdynamic
14021      ;;
14022
14023    cygwin* | mingw* | pw32*)
14024      # When not using gcc, we currently assume that we are using
14025      # Microsoft Visual C++.
14026      # hardcode_libdir_flag_spec is actually meaningless, as there is
14027      # no search path for DLLs.
14028      hardcode_libdir_flag_spec_F77=' '
14029      allow_undefined_flag_F77=unsupported
14030      # Tell ltmain to make .lib files, not .a files.
14031      libext=lib
14032      # Tell ltmain to make .dll files, not .so files.
14033      shrext_cmds=".dll"
14034      # FIXME: Setting linknames here is a bad hack.
14035      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14036      # The linker will automatically build a .lib file if we build a DLL.
14037      old_archive_From_new_cmds_F77='true'
14038      # FIXME: Should let the user specify the lib program.
14039      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14040      fix_srcfile_path='`cygpath -w "$srcfile"`'
14041      enable_shared_with_static_runtimes_F77=yes
14042      ;;
14043
14044    darwin* | rhapsody*)
14045    if test "$GXX" = yes ; then
14046      archive_cmds_need_lc_F77=no
14047      case "$host_os" in
14048      rhapsody* | darwin1.[012])
14049        allow_undefined_flag_F77='-undefined suppress'
14050        ;;
14051      *) # Darwin 1.3 on
14052      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14053        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14054      else
14055        case ${MACOSX_DEPLOYMENT_TARGET} in
14056          10.[012])
14057            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14058            ;;
14059          10.*)
14060            allow_undefined_flag_F77='-undefined dynamic_lookup'
14061            ;;
14062        esac
14063      fi
14064        ;;
14065      esac
14066        lt_int_apple_cc_single_mod=no
14067        output_verbose_link_cmd='echo'
14068        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14069          lt_int_apple_cc_single_mod=yes
14070        fi
14071        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14072          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14073        else
14074        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14075      fi
14076      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14077      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14078        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14079          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14080        else
14081          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14082        fi
14083          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}'
14084      hardcode_direct_F77=no
14085      hardcode_automatic_F77=yes
14086      hardcode_shlibpath_var_F77=unsupported
14087      whole_archive_flag_spec_F77='-all_load $convenience'
14088      link_all_deplibs_F77=yes
14089    else
14090      ld_shlibs_F77=no
14091    fi
14092      ;;
14093
14094    dgux*)
14095      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096      hardcode_libdir_flag_spec_F77='-L$libdir'
14097      hardcode_shlibpath_var_F77=no
14098      ;;
14099
14100    freebsd1*)
14101      ld_shlibs_F77=no
14102      ;;
14103
14104    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14105    # support.  Future versions do this automatically, but an explicit c++rt0.o
14106    # does not break anything, and helps significantly (at the cost of a little
14107    # extra space).
14108    freebsd2.2*)
14109      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14110      hardcode_libdir_flag_spec_F77='-R$libdir'
14111      hardcode_direct_F77=yes
14112      hardcode_shlibpath_var_F77=no
14113      ;;
14114
14115    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14116    freebsd2*)
14117      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14118      hardcode_direct_F77=yes
14119      hardcode_minus_L_F77=yes
14120      hardcode_shlibpath_var_F77=no
14121      ;;
14122
14123    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14124    freebsd* | kfreebsd*-gnu)
14125      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14126      hardcode_libdir_flag_spec_F77='-R$libdir'
14127      hardcode_direct_F77=yes
14128      hardcode_shlibpath_var_F77=no
14129      ;;
14130
14131    hpux9*)
14132      if test "$GCC" = yes; then
14133        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'
14134      else
14135        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'
14136      fi
14137      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14138      hardcode_libdir_separator_F77=:
14139      hardcode_direct_F77=yes
14140
14141      # hardcode_minus_L: Not really in the search PATH,
14142      # but as the default location of the library.
14143      hardcode_minus_L_F77=yes
14144      export_dynamic_flag_spec_F77='${wl}-E'
14145      ;;
14146
14147    hpux10* | hpux11*)
14148      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14149        case "$host_cpu" in
14150        hppa*64*|ia64*)
14151          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14152          ;;
14153        *)
14154          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14155          ;;
14156        esac
14157      else
14158        case "$host_cpu" in
14159        hppa*64*|ia64*)
14160          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14161          ;;
14162        *)
14163          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14164          ;;
14165        esac
14166      fi
14167      if test "$with_gnu_ld" = no; then
14168        case "$host_cpu" in
14169        hppa*64*)
14170          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14171          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14172          hardcode_libdir_separator_F77=:
14173          hardcode_direct_F77=no
14174          hardcode_shlibpath_var_F77=no
14175          ;;
14176        ia64*)
14177          hardcode_libdir_flag_spec_F77='-L$libdir'
14178          hardcode_direct_F77=no
14179          hardcode_shlibpath_var_F77=no
14180
14181          # hardcode_minus_L: Not really in the search PATH,
14182          # but as the default location of the library.
14183          hardcode_minus_L_F77=yes
14184          ;;
14185        *)
14186          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14187          hardcode_libdir_separator_F77=:
14188          hardcode_direct_F77=yes
14189          export_dynamic_flag_spec_F77='${wl}-E'
14190
14191          # hardcode_minus_L: Not really in the search PATH,
14192          # but as the default location of the library.
14193          hardcode_minus_L_F77=yes
14194          ;;
14195        esac
14196      fi
14197      ;;
14198
14199    irix5* | irix6* | nonstopux*)
14200      if test "$GCC" = yes; then
14201        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'
14202      else
14203        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'
14204        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14205      fi
14206      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14207      hardcode_libdir_separator_F77=:
14208      link_all_deplibs_F77=yes
14209      ;;
14210
14211    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14212      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14213        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14214      else
14215        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14216      fi
14217      hardcode_libdir_flag_spec_F77='-R$libdir'
14218      hardcode_direct_F77=yes
14219      hardcode_shlibpath_var_F77=no
14220      ;;
14221
14222    newsos6)
14223      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14224      hardcode_direct_F77=yes
14225      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14226      hardcode_libdir_separator_F77=:
14227      hardcode_shlibpath_var_F77=no
14228      ;;
14229
14230    openbsd*)
14231      hardcode_direct_F77=yes
14232      hardcode_shlibpath_var_F77=no
14233      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14234        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14235        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14236        export_dynamic_flag_spec_F77='${wl}-E'
14237      else
14238       case $host_os in
14239         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14240           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14241           hardcode_libdir_flag_spec_F77='-R$libdir'
14242           ;;
14243         *)
14244           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14245           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14246           ;;
14247       esac
14248      fi
14249      ;;
14250
14251    os2*)
14252      hardcode_libdir_flag_spec_F77='-L$libdir'
14253      hardcode_minus_L_F77=yes
14254      allow_undefined_flag_F77=unsupported
14255      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'
14256      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14257      ;;
14258
14259    osf3*)
14260      if test "$GCC" = yes; then
14261        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14262        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'
14263      else
14264        allow_undefined_flag_F77=' -expect_unresolved \*'
14265        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'
14266      fi
14267      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14268      hardcode_libdir_separator_F77=:
14269      ;;
14270
14271    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14272      if test "$GCC" = yes; then
14273        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14274        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'
14275        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14276      else
14277        allow_undefined_flag_F77=' -expect_unresolved \*'
14278        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'
14279        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~
14280        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14281
14282        # Both c and cxx compiler support -rpath directly
14283        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14284      fi
14285      hardcode_libdir_separator_F77=:
14286      ;;
14287
14288    sco3.2v5*)
14289      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290      hardcode_shlibpath_var_F77=no
14291      export_dynamic_flag_spec_F77='${wl}-Bexport'
14292      runpath_var=LD_RUN_PATH
14293      hardcode_runpath_var=yes
14294      ;;
14295
14296    solaris*)
14297      no_undefined_flag_F77=' -z text'
14298      if test "$GCC" = yes; then
14299        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14300        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14301          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14302      else
14303        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14304        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14305        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14306      fi
14307      hardcode_libdir_flag_spec_F77='-R$libdir'
14308      hardcode_shlibpath_var_F77=no
14309      case $host_os in
14310      solaris2.[0-5] | solaris2.[0-5].*) ;;
14311      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14312        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14313      esac
14314      link_all_deplibs_F77=yes
14315      ;;
14316
14317    sunos4*)
14318      if test "x$host_vendor" = xsequent; then
14319        # Use $CC to link under sequent, because it throws in some extra .o
14320        # files that make .init and .fini sections work.
14321        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14322      else
14323        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14324      fi
14325      hardcode_libdir_flag_spec_F77='-L$libdir'
14326      hardcode_direct_F77=yes
14327      hardcode_minus_L_F77=yes
14328      hardcode_shlibpath_var_F77=no
14329      ;;
14330
14331    sysv4)
14332      case $host_vendor in
14333        sni)
14334          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14335          hardcode_direct_F77=yes # is this really true???
14336        ;;
14337        siemens)
14338          ## LD is ld it makes a PLAMLIB
14339          ## CC just makes a GrossModule.
14340          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14341          reload_cmds_F77='$CC -r -o $output$reload_objs'
14342          hardcode_direct_F77=no
14343        ;;
14344        motorola)
14345          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14347        ;;
14348      esac
14349      runpath_var='LD_RUN_PATH'
14350      hardcode_shlibpath_var_F77=no
14351      ;;
14352
14353    sysv4.3*)
14354      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14355      hardcode_shlibpath_var_F77=no
14356      export_dynamic_flag_spec_F77='-Bexport'
14357      ;;
14358
14359    sysv4*MP*)
14360      if test -d /usr/nec; then
14361        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362        hardcode_shlibpath_var_F77=no
14363        runpath_var=LD_RUN_PATH
14364        hardcode_runpath_var=yes
14365        ld_shlibs_F77=yes
14366      fi
14367      ;;
14368
14369    sysv4.2uw2*)
14370      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14371      hardcode_direct_F77=yes
14372      hardcode_minus_L_F77=no
14373      hardcode_shlibpath_var_F77=no
14374      hardcode_runpath_var=yes
14375      runpath_var=LD_RUN_PATH
14376      ;;
14377
14378   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14379      no_undefined_flag_F77='${wl}-z ${wl}text'
14380      if test "$GCC" = yes; then
14381        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14382      else
14383        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14384      fi
14385      runpath_var='LD_RUN_PATH'
14386      hardcode_shlibpath_var_F77=no
14387      ;;
14388
14389    sysv5*)
14390      no_undefined_flag_F77=' -z text'
14391      # $CC -shared without GNU ld will not create a library from C++
14392      # object files and a static libstdc++, better avoid it by now
14393      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14394      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14395                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14396      hardcode_libdir_flag_spec_F77=
14397      hardcode_shlibpath_var_F77=no
14398      runpath_var='LD_RUN_PATH'
14399      ;;
14400
14401    uts4*)
14402      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14403      hardcode_libdir_flag_spec_F77='-L$libdir'
14404      hardcode_shlibpath_var_F77=no
14405      ;;
14406
14407    *)
14408      ld_shlibs_F77=no
14409      ;;
14410    esac
14411  fi
14412
14413echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14414echo "${ECHO_T}$ld_shlibs_F77" >&6
14415test "$ld_shlibs_F77" = no && can_build_shared=no
14416
14417variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14418if test "$GCC" = yes; then
14419  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14420fi
14421
14422#
14423# Do we need to explicitly link libc?
14424#
14425case "x$archive_cmds_need_lc_F77" in
14426x|xyes)
14427  # Assume -lc should be added
14428  archive_cmds_need_lc_F77=yes
14429
14430  if test "$enable_shared" = yes && test "$GCC" = yes; then
14431    case $archive_cmds_F77 in
14432    *'~'*)
14433      # FIXME: we may have to deal with multi-command sequences.
14434      ;;
14435    '$CC '*)
14436      # Test whether the compiler implicitly links with -lc since on some
14437      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14438      # to ld, don't add -lc before -lgcc.
14439      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14441      $rm conftest*
14442      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14443
14444      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445  (eval $ac_compile) 2>&5
14446  ac_status=$?
14447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448  (exit $ac_status); } 2>conftest.err; then
14449        soname=conftest
14450        lib=conftest
14451        libobjs=conftest.$ac_objext
14452        deplibs=
14453        wl=$lt_prog_compiler_wl_F77
14454        compiler_flags=-v
14455        linker_flags=-v
14456        verstring=
14457        output_objdir=.
14458        libname=conftest
14459        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14460        allow_undefined_flag_F77=
14461        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14462  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14463  ac_status=$?
14464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465  (exit $ac_status); }
14466        then
14467          archive_cmds_need_lc_F77=no
14468        else
14469          archive_cmds_need_lc_F77=yes
14470        fi
14471        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14472      else
14473        cat conftest.err 1>&5
14474      fi
14475      $rm conftest*
14476      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14477echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14478      ;;
14479    esac
14480  fi
14481  ;;
14482esac
14483
14484echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14485echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14486library_names_spec=
14487libname_spec='lib$name'
14488soname_spec=
14489shrext_cmds=".so"
14490postinstall_cmds=
14491postuninstall_cmds=
14492finish_cmds=
14493finish_eval=
14494shlibpath_var=
14495shlibpath_overrides_runpath=unknown
14496version_type=none
14497dynamic_linker="$host_os ld.so"
14498sys_lib_dlsearch_path_spec="/lib /usr/lib"
14499if test "$GCC" = yes; then
14500  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14501  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14502    # if the path contains ";" then we assume it to be the separator
14503    # otherwise default to the standard path separator (i.e. ":") - it is
14504    # assumed that no part of a normal pathname contains ";" but that should
14505    # okay in the real world where ";" in dirpaths is itself problematic.
14506    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14507  else
14508    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14509  fi
14510else
14511  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14512fi
14513need_lib_prefix=unknown
14514hardcode_into_libs=no
14515
14516# when you set need_version to no, make sure it does not cause -set_version
14517# flags to be left without arguments
14518need_version=unknown
14519
14520case $host_os in
14521aix3*)
14522  version_type=linux
14523  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14524  shlibpath_var=LIBPATH
14525
14526  # AIX 3 has no versioning support, so we append a major version to the name.
14527  soname_spec='${libname}${release}${shared_ext}$major'
14528  ;;
14529
14530aix4* | aix5*)
14531  version_type=linux
14532  need_lib_prefix=no
14533  need_version=no
14534  hardcode_into_libs=yes
14535  if test "$host_cpu" = ia64; then
14536    # AIX 5 supports IA64
14537    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14538    shlibpath_var=LD_LIBRARY_PATH
14539  else
14540    # With GCC up to 2.95.x, collect2 would create an import file
14541    # for dependence libraries.  The import file would start with
14542    # the line `#! .'.  This would cause the generated library to
14543    # depend on `.', always an invalid library.  This was fixed in
14544    # development snapshots of GCC prior to 3.0.
14545    case $host_os in
14546      aix4 | aix4.[01] | aix4.[01].*)
14547      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14548           echo ' yes '
14549           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14550        :
14551      else
14552        can_build_shared=no
14553      fi
14554      ;;
14555    esac
14556    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14557    # soname into executable. Probably we can add versioning support to
14558    # collect2, so additional links can be useful in future.
14559    if test "$aix_use_runtimelinking" = yes; then
14560      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14561      # instead of lib<name>.a to let people know that these are not
14562      # typical AIX shared libraries.
14563      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564    else
14565      # We preserve .a as extension for shared libraries through AIX4.2
14566      # and later when we are not doing run time linking.
14567      library_names_spec='${libname}${release}.a $libname.a'
14568      soname_spec='${libname}${release}${shared_ext}$major'
14569    fi
14570    shlibpath_var=LIBPATH
14571  fi
14572  ;;
14573
14574amigaos*)
14575  library_names_spec='$libname.ixlibrary $libname.a'
14576  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14577  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'
14578  ;;
14579
14580beos*)
14581  library_names_spec='${libname}${shared_ext}'
14582  dynamic_linker="$host_os ld.so"
14583  shlibpath_var=LIBRARY_PATH
14584  ;;
14585
14586bsdi4*)
14587  version_type=linux
14588  need_version=no
14589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590  soname_spec='${libname}${release}${shared_ext}$major'
14591  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14592  shlibpath_var=LD_LIBRARY_PATH
14593  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14594  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14595  # the default ld.so.conf also contains /usr/contrib/lib and
14596  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14597  # libtool to hard-code these into programs
14598  ;;
14599
14600cygwin* | mingw* | pw32*)
14601  version_type=windows
14602  shrext_cmds=".dll"
14603  need_version=no
14604  need_lib_prefix=no
14605
14606  case $GCC,$host_os in
14607  yes,cygwin* | yes,mingw* | yes,pw32*)
14608    library_names_spec='$libname.dll.a'
14609    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14610    postinstall_cmds='base_file=`basename \${file}`~
14611      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14612      dldir=$destdir/`dirname \$dlpath`~
14613      test -d \$dldir || mkdir -p \$dldir~
14614      $install_prog $dir/$dlname \$dldir/$dlname'
14615    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14616      dlpath=$dir/\$dldll~
14617       $rm \$dlpath'
14618    shlibpath_overrides_runpath=yes
14619
14620    case $host_os in
14621    cygwin*)
14622      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14623      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14624      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14625      ;;
14626    mingw*)
14627      # MinGW DLLs use traditional 'lib' prefix
14628      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14629      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14630      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14631        # It is most probably a Windows format PATH printed by
14632        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14633        # path with ; separators, and with drive letters. We can handle the
14634        # drive letters (cygwin fileutils understands them), so leave them,
14635        # especially as we might pass files found there to a mingw objdump,
14636        # which wouldn't understand a cygwinified path. Ahh.
14637        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14638      else
14639        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14640      fi
14641      ;;
14642    pw32*)
14643      # pw32 DLLs use 'pw' prefix rather than 'lib'
14644      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14645      ;;
14646    esac
14647    ;;
14648
14649  *)
14650    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14651    ;;
14652  esac
14653  dynamic_linker='Win32 ld.exe'
14654  # FIXME: first we should search . and the directory the executable is in
14655  shlibpath_var=PATH
14656  ;;
14657
14658darwin* | rhapsody*)
14659  dynamic_linker="$host_os dyld"
14660  version_type=darwin
14661  need_lib_prefix=no
14662  need_version=no
14663  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14664  soname_spec='${libname}${release}${major}$shared_ext'
14665  shlibpath_overrides_runpath=yes
14666  shlibpath_var=DYLD_LIBRARY_PATH
14667  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14668  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14669  if test "$GCC" = yes; then
14670    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"`
14671  else
14672    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14673  fi
14674  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14675  ;;
14676
14677dgux*)
14678  version_type=linux
14679  need_lib_prefix=no
14680  need_version=no
14681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14682  soname_spec='${libname}${release}${shared_ext}$major'
14683  shlibpath_var=LD_LIBRARY_PATH
14684  ;;
14685
14686freebsd1*)
14687  dynamic_linker=no
14688  ;;
14689
14690kfreebsd*-gnu)
14691  version_type=linux
14692  need_lib_prefix=no
14693  need_version=no
14694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695  soname_spec='${libname}${release}${shared_ext}$major'
14696  shlibpath_var=LD_LIBRARY_PATH
14697  shlibpath_overrides_runpath=no
14698  hardcode_into_libs=yes
14699  dynamic_linker='GNU ld.so'
14700  ;;
14701
14702freebsd*)
14703  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14704  version_type=freebsd-$objformat
14705  case $version_type in
14706    freebsd-elf*)
14707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14708      need_version=no
14709      need_lib_prefix=no
14710      ;;
14711    freebsd-*)
14712      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14713      need_version=yes
14714      ;;
14715  esac
14716  shlibpath_var=LD_LIBRARY_PATH
14717  case $host_os in
14718  freebsd2*)
14719    shlibpath_overrides_runpath=yes
14720    ;;
14721  freebsd3.01* | freebsdelf3.01*)
14722    shlibpath_overrides_runpath=yes
14723    hardcode_into_libs=yes
14724    ;;
14725  *) # from 3.2 on
14726    shlibpath_overrides_runpath=no
14727    hardcode_into_libs=yes
14728    ;;
14729  esac
14730  ;;
14731
14732gnu*)
14733  version_type=linux
14734  need_lib_prefix=no
14735  need_version=no
14736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14737  soname_spec='${libname}${release}${shared_ext}$major'
14738  shlibpath_var=LD_LIBRARY_PATH
14739  hardcode_into_libs=yes
14740  ;;
14741
14742hpux9* | hpux10* | hpux11*)
14743  # Give a soname corresponding to the major version so that dld.sl refuses to
14744  # link against other versions.
14745  version_type=sunos
14746  need_lib_prefix=no
14747  need_version=no
14748  case "$host_cpu" in
14749  ia64*)
14750    shrext_cmds='.so'
14751    hardcode_into_libs=yes
14752    dynamic_linker="$host_os dld.so"
14753    shlibpath_var=LD_LIBRARY_PATH
14754    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756    soname_spec='${libname}${release}${shared_ext}$major'
14757    if test "X$HPUX_IA64_MODE" = X32; then
14758      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14759    else
14760      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14761    fi
14762    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14763    ;;
14764   hppa*64*)
14765     shrext_cmds='.sl'
14766     hardcode_into_libs=yes
14767     dynamic_linker="$host_os dld.sl"
14768     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14769     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771     soname_spec='${libname}${release}${shared_ext}$major'
14772     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14773     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14774     ;;
14775   *)
14776    shrext_cmds='.sl'
14777    dynamic_linker="$host_os dld.sl"
14778    shlibpath_var=SHLIB_PATH
14779    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781    soname_spec='${libname}${release}${shared_ext}$major'
14782    ;;
14783  esac
14784  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14785  postinstall_cmds='chmod 555 $lib'
14786  ;;
14787
14788irix5* | irix6* | nonstopux*)
14789  case $host_os in
14790    nonstopux*) version_type=nonstopux ;;
14791    *)
14792        if test "$lt_cv_prog_gnu_ld" = yes; then
14793                version_type=linux
14794        else
14795                version_type=irix
14796        fi ;;
14797  esac
14798  need_lib_prefix=no
14799  need_version=no
14800  soname_spec='${libname}${release}${shared_ext}$major'
14801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14802  case $host_os in
14803  irix5* | nonstopux*)
14804    libsuff= shlibsuff=
14805    ;;
14806  *)
14807    case $LD in # libtool.m4 will add one of these switches to LD
14808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14809      libsuff= shlibsuff= libmagic=32-bit;;
14810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14811      libsuff=32 shlibsuff=N32 libmagic=N32;;
14812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14814    *) libsuff= shlibsuff= libmagic=never-match;;
14815    esac
14816    ;;
14817  esac
14818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14819  shlibpath_overrides_runpath=no
14820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14822  hardcode_into_libs=yes
14823  ;;
14824
14825# No shared lib support for Linux oldld, aout, or coff.
14826linux*oldld* | linux*aout* | linux*coff*)
14827  dynamic_linker=no
14828  ;;
14829
14830# This must be Linux ELF.
14831linux*)
14832  version_type=linux
14833  need_lib_prefix=no
14834  need_version=no
14835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836  soname_spec='${libname}${release}${shared_ext}$major'
14837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14838  shlibpath_var=LD_LIBRARY_PATH
14839  shlibpath_overrides_runpath=no
14840  # This implies no fast_install, which is unacceptable.
14841  # Some rework will be needed to allow for fast_install
14842  # before this can be enabled.
14843  hardcode_into_libs=yes
14844
14845  # Append ld.so.conf contents to the search path
14846  if test -f /etc/ld.so.conf; then
14847    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14848    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14849  fi
14850
14851  # We used to test for /lib/ld.so.1 and disable shared libraries on
14852  # powerpc, because MkLinux only supported shared libraries with the
14853  # GNU dynamic linker.  Since this was broken with cross compilers,
14854  # most powerpc-linux boxes support dynamic linking these days and
14855  # people can always --disable-shared, the test was removed, and we
14856  # assume the GNU/Linux dynamic linker is in use.
14857  dynamic_linker='GNU/Linux ld.so'
14858  ;;
14859
14860netbsdelf*-gnu)
14861  version_type=linux
14862  need_lib_prefix=no
14863  need_version=no
14864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14865  soname_spec='${libname}${release}${shared_ext}$major'
14866  shlibpath_var=LD_LIBRARY_PATH
14867  shlibpath_overrides_runpath=no
14868  hardcode_into_libs=yes
14869  dynamic_linker='NetBSD ld.elf_so'
14870  ;;
14871
14872knetbsd*-gnu)
14873  version_type=linux
14874  need_lib_prefix=no
14875  need_version=no
14876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14877  soname_spec='${libname}${release}${shared_ext}$major'
14878  shlibpath_var=LD_LIBRARY_PATH
14879  shlibpath_overrides_runpath=no
14880  hardcode_into_libs=yes
14881  dynamic_linker='GNU ld.so'
14882  ;;
14883
14884netbsd*)
14885  version_type=sunos
14886  need_lib_prefix=no
14887  need_version=no
14888  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891    dynamic_linker='NetBSD (a.out) ld.so'
14892  else
14893    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14894    soname_spec='${libname}${release}${shared_ext}$major'
14895    dynamic_linker='NetBSD ld.elf_so'
14896  fi
14897  shlibpath_var=LD_LIBRARY_PATH
14898  shlibpath_overrides_runpath=yes
14899  hardcode_into_libs=yes
14900  ;;
14901
14902newsos6)
14903  version_type=linux
14904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905  shlibpath_var=LD_LIBRARY_PATH
14906  shlibpath_overrides_runpath=yes
14907  ;;
14908
14909nto-qnx*)
14910  version_type=linux
14911  need_lib_prefix=no
14912  need_version=no
14913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914  soname_spec='${libname}${release}${shared_ext}$major'
14915  shlibpath_var=LD_LIBRARY_PATH
14916  shlibpath_overrides_runpath=yes
14917  ;;
14918
14919openbsd*)
14920  version_type=sunos
14921  need_lib_prefix=no
14922  need_version=yes
14923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14925  shlibpath_var=LD_LIBRARY_PATH
14926  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14927    case $host_os in
14928      openbsd2.[89] | openbsd2.[89].*)
14929        shlibpath_overrides_runpath=no
14930        ;;
14931      *)
14932        shlibpath_overrides_runpath=yes
14933        ;;
14934      esac
14935  else
14936    shlibpath_overrides_runpath=yes
14937  fi
14938  ;;
14939
14940os2*)
14941  libname_spec='$name'
14942  shrext_cmds=".dll"
14943  need_lib_prefix=no
14944  library_names_spec='$libname${shared_ext} $libname.a'
14945  dynamic_linker='OS/2 ld.exe'
14946  shlibpath_var=LIBPATH
14947  ;;
14948
14949osf3* | osf4* | osf5*)
14950  version_type=osf
14951  need_lib_prefix=no
14952  need_version=no
14953  soname_spec='${libname}${release}${shared_ext}$major'
14954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955  shlibpath_var=LD_LIBRARY_PATH
14956  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14957  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14958  ;;
14959
14960sco3.2v5*)
14961  version_type=osf
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964  shlibpath_var=LD_LIBRARY_PATH
14965  ;;
14966
14967solaris*)
14968  version_type=linux
14969  need_lib_prefix=no
14970  need_version=no
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972  soname_spec='${libname}${release}${shared_ext}$major'
14973  shlibpath_var=LD_LIBRARY_PATH
14974  shlibpath_overrides_runpath=yes
14975  hardcode_into_libs=yes
14976  # ldd complains unless libraries are executable
14977  postinstall_cmds='chmod +x $lib'
14978  ;;
14979
14980sunos4*)
14981  version_type=sunos
14982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14983  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14984  shlibpath_var=LD_LIBRARY_PATH
14985  shlibpath_overrides_runpath=yes
14986  if test "$with_gnu_ld" = yes; then
14987    need_lib_prefix=no
14988  fi
14989  need_version=yes
14990  ;;
14991
14992sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14993  version_type=linux
14994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995  soname_spec='${libname}${release}${shared_ext}$major'
14996  shlibpath_var=LD_LIBRARY_PATH
14997  case $host_vendor in
14998    sni)
14999      shlibpath_overrides_runpath=no
15000      need_lib_prefix=no
15001      export_dynamic_flag_spec='${wl}-Blargedynsym'
15002      runpath_var=LD_RUN_PATH
15003      ;;
15004    siemens)
15005      need_lib_prefix=no
15006      ;;
15007    motorola)
15008      need_lib_prefix=no
15009      need_version=no
15010      shlibpath_overrides_runpath=no
15011      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15012      ;;
15013  esac
15014  ;;
15015
15016sysv4*MP*)
15017  if test -d /usr/nec ;then
15018    version_type=linux
15019    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15020    soname_spec='$libname${shared_ext}.$major'
15021    shlibpath_var=LD_LIBRARY_PATH
15022  fi
15023  ;;
15024
15025uts4*)
15026  version_type=linux
15027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028  soname_spec='${libname}${release}${shared_ext}$major'
15029  shlibpath_var=LD_LIBRARY_PATH
15030  ;;
15031
15032*)
15033  dynamic_linker=no
15034  ;;
15035esac
15036echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15037echo "${ECHO_T}$dynamic_linker" >&6
15038test "$dynamic_linker" = no && can_build_shared=no
15039
15040echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15041echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15042hardcode_action_F77=
15043if test -n "$hardcode_libdir_flag_spec_F77" || \
15044   test -n "$runpath_var F77" || \
15045   test "X$hardcode_automatic_F77"="Xyes" ; then
15046
15047  # We can hardcode non-existant directories.
15048  if test "$hardcode_direct_F77" != no &&
15049     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15050     # have to relink, otherwise we might link with an installed library
15051     # when we should be linking with a yet-to-be-installed one
15052     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15053     test "$hardcode_minus_L_F77" != no; then
15054    # Linking always hardcodes the temporary library directory.
15055    hardcode_action_F77=relink
15056  else
15057    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15058    hardcode_action_F77=immediate
15059  fi
15060else
15061  # We cannot hardcode anything, or else we can only hardcode existing
15062  # directories.
15063  hardcode_action_F77=unsupported
15064fi
15065echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15066echo "${ECHO_T}$hardcode_action_F77" >&6
15067
15068if test "$hardcode_action_F77" = relink; then
15069  # Fast installation is not supported
15070  enable_fast_install=no
15071elif test "$shlibpath_overrides_runpath" = yes ||
15072     test "$enable_shared" = no; then
15073  # Fast installation is not necessary
15074  enable_fast_install=needless
15075fi
15076
15077striplib=
15078old_striplib=
15079echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15080echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15081if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15082  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15083  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15084  echo "$as_me:$LINENO: result: yes" >&5
15085echo "${ECHO_T}yes" >&6
15086else
15087# FIXME - insert some real tests, host_os isn't really good enough
15088  case $host_os in
15089   darwin*)
15090       if test -n "$STRIP" ; then
15091         striplib="$STRIP -x"
15092         echo "$as_me:$LINENO: result: yes" >&5
15093echo "${ECHO_T}yes" >&6
15094       else
15095  echo "$as_me:$LINENO: result: no" >&5
15096echo "${ECHO_T}no" >&6
15097fi
15098       ;;
15099   *)
15100  echo "$as_me:$LINENO: result: no" >&5
15101echo "${ECHO_T}no" >&6
15102    ;;
15103  esac
15104fi
15105
15106
15107
15108# The else clause should only fire when bootstrapping the
15109# libtool distribution, otherwise you forgot to ship ltmain.sh
15110# with your package, and you will get complaints that there are
15111# no rules to generate ltmain.sh.
15112if test -f "$ltmain"; then
15113  # See if we are running on zsh, and set the options which allow our commands through
15114  # without removal of \ escapes.
15115  if test -n "${ZSH_VERSION+set}" ; then
15116    setopt NO_GLOB_SUBST
15117  fi
15118  # Now quote all the things that may contain metacharacters while being
15119  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15120  # variables and quote the copies for generation of the libtool script.
15121  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15122    SED SHELL STRIP \
15123    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15124    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15125    deplibs_check_method reload_flag reload_cmds need_locks \
15126    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15127    lt_cv_sys_global_symbol_to_c_name_address \
15128    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15129    old_postinstall_cmds old_postuninstall_cmds \
15130    compiler_F77 \
15131    CC_F77 \
15132    LD_F77 \
15133    lt_prog_compiler_wl_F77 \
15134    lt_prog_compiler_pic_F77 \
15135    lt_prog_compiler_static_F77 \
15136    lt_prog_compiler_no_builtin_flag_F77 \
15137    export_dynamic_flag_spec_F77 \
15138    thread_safe_flag_spec_F77 \
15139    whole_archive_flag_spec_F77 \
15140    enable_shared_with_static_runtimes_F77 \
15141    old_archive_cmds_F77 \
15142    old_archive_from_new_cmds_F77 \
15143    predep_objects_F77 \
15144    postdep_objects_F77 \
15145    predeps_F77 \
15146    postdeps_F77 \
15147    compiler_lib_search_path_F77 \
15148    archive_cmds_F77 \
15149    archive_expsym_cmds_F77 \
15150    postinstall_cmds_F77 \
15151    postuninstall_cmds_F77 \
15152    old_archive_from_expsyms_cmds_F77 \
15153    allow_undefined_flag_F77 \
15154    no_undefined_flag_F77 \
15155    export_symbols_cmds_F77 \
15156    hardcode_libdir_flag_spec_F77 \
15157    hardcode_libdir_flag_spec_ld_F77 \
15158    hardcode_libdir_separator_F77 \
15159    hardcode_automatic_F77 \
15160    module_cmds_F77 \
15161    module_expsym_cmds_F77 \
15162    lt_cv_prog_compiler_c_o_F77 \
15163    exclude_expsyms_F77 \
15164    include_expsyms_F77; do
15165
15166    case $var in
15167    old_archive_cmds_F77 | \
15168    old_archive_from_new_cmds_F77 | \
15169    archive_cmds_F77 | \
15170    archive_expsym_cmds_F77 | \
15171    module_cmds_F77 | \
15172    module_expsym_cmds_F77 | \
15173    old_archive_from_expsyms_cmds_F77 | \
15174    export_symbols_cmds_F77 | \
15175    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15176    postinstall_cmds | postuninstall_cmds | \
15177    old_postinstall_cmds | old_postuninstall_cmds | \
15178    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15179      # Double-quote double-evaled strings.
15180      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15181      ;;
15182    *)
15183      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15184      ;;
15185    esac
15186  done
15187
15188  case $lt_echo in
15189  *'\$0 --fallback-echo"')
15190    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15191    ;;
15192  esac
15193
15194cfgfile="$ofile"
15195
15196  cat <<__EOF__ >> "$cfgfile"
15197# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15198
15199# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15200
15201# Shell to use when invoking shell scripts.
15202SHELL=$lt_SHELL
15203
15204# Whether or not to build shared libraries.
15205build_libtool_libs=$enable_shared
15206
15207# Whether or not to build static libraries.
15208build_old_libs=$enable_static
15209
15210# Whether or not to add -lc for building shared libraries.
15211build_libtool_need_lc=$archive_cmds_need_lc_F77
15212
15213# Whether or not to disallow shared libs when runtime libs are static
15214allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15215
15216# Whether or not to optimize for fast installation.
15217fast_install=$enable_fast_install
15218
15219# The host system.
15220host_alias=$host_alias
15221host=$host
15222
15223# An echo program that does not interpret backslashes.
15224echo=$lt_echo
15225
15226# The archiver.
15227AR=$lt_AR
15228AR_FLAGS=$lt_AR_FLAGS
15229
15230# A C compiler.
15231LTCC=$lt_LTCC
15232
15233# A language-specific compiler.
15234CC=$lt_compiler_F77
15235
15236# Is the compiler the GNU C compiler?
15237with_gcc=$GCC_F77
15238
15239# An ERE matcher.
15240EGREP=$lt_EGREP
15241
15242# The linker used to build libraries.
15243LD=$lt_LD_F77
15244
15245# Whether we need hard or soft links.
15246LN_S=$lt_LN_S
15247
15248# A BSD-compatible nm program.
15249NM=$lt_NM
15250
15251# A symbol stripping program
15252STRIP=$lt_STRIP
15253
15254# Used to examine libraries when file_magic_cmd begins "file"
15255MAGIC_CMD=$MAGIC_CMD
15256
15257# Used on cygwin: DLL creation program.
15258DLLTOOL="$DLLTOOL"
15259
15260# Used on cygwin: object dumper.
15261OBJDUMP="$OBJDUMP"
15262
15263# Used on cygwin: assembler.
15264AS="$AS"
15265
15266# The name of the directory that contains temporary libtool files.
15267objdir=$objdir
15268
15269# How to create reloadable object files.
15270reload_flag=$lt_reload_flag
15271reload_cmds=$lt_reload_cmds
15272
15273# How to pass a linker flag through the compiler.
15274wl=$lt_lt_prog_compiler_wl_F77
15275
15276# Object file suffix (normally "o").
15277objext="$ac_objext"
15278
15279# Old archive suffix (normally "a").
15280libext="$libext"
15281
15282# Shared library suffix (normally ".so").
15283shrext_cmds='$shrext_cmds'
15284
15285# Executable file suffix (normally "").
15286exeext="$exeext"
15287
15288# Additional compiler flags for building library objects.
15289pic_flag=$lt_lt_prog_compiler_pic_F77
15290pic_mode=$pic_mode
15291
15292# What is the maximum length of a command?
15293max_cmd_len=$lt_cv_sys_max_cmd_len
15294
15295# Does compiler simultaneously support -c and -o options?
15296compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15297
15298# Must we lock files when doing compilation ?
15299need_locks=$lt_need_locks
15300
15301# Do we need the lib prefix for modules?
15302need_lib_prefix=$need_lib_prefix
15303
15304# Do we need a version for libraries?
15305need_version=$need_version
15306
15307# Whether dlopen is supported.
15308dlopen_support=$enable_dlopen
15309
15310# Whether dlopen of programs is supported.
15311dlopen_self=$enable_dlopen_self
15312
15313# Whether dlopen of statically linked programs is supported.
15314dlopen_self_static=$enable_dlopen_self_static
15315
15316# Compiler flag to prevent dynamic linking.
15317link_static_flag=$lt_lt_prog_compiler_static_F77
15318
15319# Compiler flag to turn off builtin functions.
15320no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15321
15322# Compiler flag to allow reflexive dlopens.
15323export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15324
15325# Compiler flag to generate shared objects directly from archives.
15326whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15327
15328# Compiler flag to generate thread-safe objects.
15329thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15330
15331# Library versioning type.
15332version_type=$version_type
15333
15334# Format of library name prefix.
15335libname_spec=$lt_libname_spec
15336
15337# List of archive names.  First name is the real one, the rest are links.
15338# The last name is the one that the linker finds with -lNAME.
15339library_names_spec=$lt_library_names_spec
15340
15341# The coded name of the library, if different from the real name.
15342soname_spec=$lt_soname_spec
15343
15344# Commands used to build and install an old-style archive.
15345RANLIB=$lt_RANLIB
15346old_archive_cmds=$lt_old_archive_cmds_F77
15347old_postinstall_cmds=$lt_old_postinstall_cmds
15348old_postuninstall_cmds=$lt_old_postuninstall_cmds
15349
15350# Create an old-style archive from a shared archive.
15351old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15352
15353# Create a temporary old-style archive to link instead of a shared archive.
15354old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15355
15356# Commands used to build and install a shared archive.
15357archive_cmds=$lt_archive_cmds_F77
15358archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15359postinstall_cmds=$lt_postinstall_cmds
15360postuninstall_cmds=$lt_postuninstall_cmds
15361
15362# Commands used to build a loadable module (assumed same as above if empty)
15363module_cmds=$lt_module_cmds_F77
15364module_expsym_cmds=$lt_module_expsym_cmds_F77
15365
15366# Commands to strip libraries.
15367old_striplib=$lt_old_striplib
15368striplib=$lt_striplib
15369
15370# Dependencies to place before the objects being linked to create a
15371# shared library.
15372predep_objects=$lt_predep_objects_F77
15373
15374# Dependencies to place after the objects being linked to create a
15375# shared library.
15376postdep_objects=$lt_postdep_objects_F77
15377
15378# Dependencies to place before the objects being linked to create a
15379# shared library.
15380predeps=$lt_predeps_F77
15381
15382# Dependencies to place after the objects being linked to create a
15383# shared library.
15384postdeps=$lt_postdeps_F77
15385
15386# The library search path used internally by the compiler when linking
15387# a shared library.
15388compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15389
15390# Method to check whether dependent libraries are shared objects.
15391deplibs_check_method=$lt_deplibs_check_method
15392
15393# Command to use when deplibs_check_method == file_magic.
15394file_magic_cmd=$lt_file_magic_cmd
15395
15396# Flag that allows shared libraries with undefined symbols to be built.
15397allow_undefined_flag=$lt_allow_undefined_flag_F77
15398
15399# Flag that forces no undefined symbols.
15400no_undefined_flag=$lt_no_undefined_flag_F77
15401
15402# Commands used to finish a libtool library installation in a directory.
15403finish_cmds=$lt_finish_cmds
15404
15405# Same as above, but a single script fragment to be evaled but not shown.
15406finish_eval=$lt_finish_eval
15407
15408# Take the output of nm and produce a listing of raw symbols and C names.
15409global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15410
15411# Transform the output of nm in a proper C declaration
15412global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15413
15414# Transform the output of nm in a C name address pair
15415global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15416
15417# This is the shared library runtime path variable.
15418runpath_var=$runpath_var
15419
15420# This is the shared library path variable.
15421shlibpath_var=$shlibpath_var
15422
15423# Is shlibpath searched before the hard-coded library search path?
15424shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15425
15426# How to hardcode a shared library path into an executable.
15427hardcode_action=$hardcode_action_F77
15428
15429# Whether we should hardcode library paths into libraries.
15430hardcode_into_libs=$hardcode_into_libs
15431
15432# Flag to hardcode \$libdir into a binary during linking.
15433# This must work even if \$libdir does not exist.
15434hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15435
15436# If ld is used when linking, flag to hardcode \$libdir into
15437# a binary during linking. This must work even if \$libdir does
15438# not exist.
15439hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15440
15441# Whether we need a single -rpath flag with a separated argument.
15442hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15443
15444# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15445# resulting binary.
15446hardcode_direct=$hardcode_direct_F77
15447
15448# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15449# resulting binary.
15450hardcode_minus_L=$hardcode_minus_L_F77
15451
15452# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15453# the resulting binary.
15454hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15455
15456# Set to yes if building a shared library automatically hardcodes DIR into the library
15457# and all subsequent libraries and executables linked against it.
15458hardcode_automatic=$hardcode_automatic_F77
15459
15460# Variables whose values should be saved in libtool wrapper scripts and
15461# restored at relink time.
15462variables_saved_for_relink="$variables_saved_for_relink"
15463
15464# Whether libtool must link a program against all its dependency libraries.
15465link_all_deplibs=$link_all_deplibs_F77
15466
15467# Compile-time system search path for libraries
15468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15469
15470# Run-time system search path for libraries
15471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15472
15473# Fix the shell variable \$srcfile for the compiler.
15474fix_srcfile_path="$fix_srcfile_path_F77"
15475
15476# Set to yes if exported symbols are required.
15477always_export_symbols=$always_export_symbols_F77
15478
15479# The commands to list exported symbols.
15480export_symbols_cmds=$lt_export_symbols_cmds_F77
15481
15482# The commands to extract the exported symbol list from a shared archive.
15483extract_expsyms_cmds=$lt_extract_expsyms_cmds
15484
15485# Symbols that should not be listed in the preloaded symbols.
15486exclude_expsyms=$lt_exclude_expsyms_F77
15487
15488# Symbols that must always be exported.
15489include_expsyms=$lt_include_expsyms_F77
15490
15491# ### END LIBTOOL TAG CONFIG: $tagname
15492
15493__EOF__
15494
15495
15496else
15497  # If there is no Makefile yet, we rely on a make rule to execute
15498  # `config.status --recheck' to rerun these tests and create the
15499  # libtool script then.
15500  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15501  if test -f "$ltmain_in"; then
15502    test -f Makefile && make "$ltmain"
15503  fi
15504fi
15505
15506
15507ac_ext=c
15508ac_cpp='$CPP $CPPFLAGS'
15509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15511ac_compiler_gnu=$ac_cv_c_compiler_gnu
15512
15513CC="$lt_save_CC"
15514
15515        else
15516          tagname=""
15517        fi
15518        ;;
15519
15520      GCJ)
15521        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15522
15523
15524
15525# Source file extension for Java test sources.
15526ac_ext=java
15527
15528# Object file extension for compiled Java test sources.
15529objext=o
15530objext_GCJ=$objext
15531
15532# Code to be used in simple compile tests
15533lt_simple_compile_test_code="class foo {}\n"
15534
15535# Code to be used in simple link tests
15536lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15537
15538# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15539
15540# If no C compiler was specified, use CC.
15541LTCC=${LTCC-"$CC"}
15542
15543# Allow CC to be a program name with arguments.
15544compiler=$CC
15545
15546
15547# Allow CC to be a program name with arguments.
15548lt_save_CC="$CC"
15549CC=${GCJ-"gcj"}
15550compiler=$CC
15551compiler_GCJ=$CC
15552
15553# GCJ did not exist at the time GCC didn't implicitly link libc in.
15554archive_cmds_need_lc_GCJ=no
15555
15556
15557lt_prog_compiler_no_builtin_flag_GCJ=
15558
15559if test "$GCC" = yes; then
15560  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15561
15562
15563echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15564echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15565if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15566  echo $ECHO_N "(cached) $ECHO_C" >&6
15567else
15568  lt_cv_prog_compiler_rtti_exceptions=no
15569  ac_outfile=conftest.$ac_objext
15570   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15571   lt_compiler_flag="-fno-rtti -fno-exceptions"
15572   # Insert the option either (1) after the last *FLAGS variable, or
15573   # (2) before a word containing "conftest.", or (3) at the end.
15574   # Note that $ac_compile itself does not contain backslashes and begins
15575   # with a dollar sign (not a hyphen), so the echo should work correctly.
15576   # The option is referenced via a variable to avoid confusing sed.
15577   lt_compile=`echo "$ac_compile" | $SED \
15578   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15580   -e 's:$: $lt_compiler_flag:'`
15581   (eval echo "\"\$as_me:15581: $lt_compile\"" >&5)
15582   (eval "$lt_compile" 2>conftest.err)
15583   ac_status=$?
15584   cat conftest.err >&5
15585   echo "$as_me:15585: \$? = $ac_status" >&5
15586   if (exit $ac_status) && test -s "$ac_outfile"; then
15587     # The compiler can only warn and ignore the option if not recognized
15588     # So say no if there are warnings
15589     if test ! -s conftest.err; then
15590       lt_cv_prog_compiler_rtti_exceptions=yes
15591     fi
15592   fi
15593   $rm conftest*
15594
15595fi
15596echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15597echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15598
15599if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15600    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15601else
15602    :
15603fi
15604
15605fi
15606
15607lt_prog_compiler_wl_GCJ=
15608lt_prog_compiler_pic_GCJ=
15609lt_prog_compiler_static_GCJ=
15610
15611echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15612echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15613
15614  if test "$GCC" = yes; then
15615    lt_prog_compiler_wl_GCJ='-Wl,'
15616    lt_prog_compiler_static_GCJ='-static'
15617
15618    case $host_os in
15619      aix*)
15620      # All AIX code is PIC.
15621      if test "$host_cpu" = ia64; then
15622        # AIX 5 now supports IA64 processor
15623        lt_prog_compiler_static_GCJ='-Bstatic'
15624      fi
15625      ;;
15626
15627    amigaos*)
15628      # FIXME: we need at least 68020 code to build shared libraries, but
15629      # adding the `-m68020' flag to GCC prevents building anything better,
15630      # like `-m68040'.
15631      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15632      ;;
15633
15634    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15635      # PIC is the default for these OSes.
15636      ;;
15637
15638    mingw* | pw32* | os2*)
15639      # This hack is so that the source file can tell whether it is being
15640      # built for inclusion in a dll (and should export symbols for example).
15641      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15642      ;;
15643
15644    darwin* | rhapsody*)
15645      # PIC is the default on this platform
15646      # Common symbols not allowed in MH_DYLIB files
15647      lt_prog_compiler_pic_GCJ='-fno-common'
15648      ;;
15649
15650    msdosdjgpp*)
15651      # Just because we use GCC doesn't mean we suddenly get shared libraries
15652      # on systems that don't support them.
15653      lt_prog_compiler_can_build_shared_GCJ=no
15654      enable_shared=no
15655      ;;
15656
15657    sysv4*MP*)
15658      if test -d /usr/nec; then
15659        lt_prog_compiler_pic_GCJ=-Kconform_pic
15660      fi
15661      ;;
15662
15663    hpux*)
15664      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15665      # not for PA HP-UX.
15666      case "$host_cpu" in
15667      hppa*64*|ia64*)
15668        # +Z the default
15669        ;;
15670      *)
15671        lt_prog_compiler_pic_GCJ='-fPIC'
15672        ;;
15673      esac
15674      ;;
15675
15676    *)
15677      lt_prog_compiler_pic_GCJ='-fPIC'
15678      ;;
15679    esac
15680  else
15681    # PORTME Check for flag to pass linker flags through the system compiler.
15682    case $host_os in
15683    aix*)
15684      lt_prog_compiler_wl_GCJ='-Wl,'
15685      if test "$host_cpu" = ia64; then
15686        # AIX 5 now supports IA64 processor
15687        lt_prog_compiler_static_GCJ='-Bstatic'
15688      else
15689        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15690      fi
15691      ;;
15692
15693    mingw* | pw32* | os2*)
15694      # This hack is so that the source file can tell whether it is being
15695      # built for inclusion in a dll (and should export symbols for example).
15696      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15697      ;;
15698
15699    hpux9* | hpux10* | hpux11*)
15700      lt_prog_compiler_wl_GCJ='-Wl,'
15701      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15702      # not for PA HP-UX.
15703      case "$host_cpu" in
15704      hppa*64*|ia64*)
15705        # +Z the default
15706        ;;
15707      *)
15708        lt_prog_compiler_pic_GCJ='+Z'
15709        ;;
15710      esac
15711      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15712      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15713      ;;
15714
15715    irix5* | irix6* | nonstopux*)
15716      lt_prog_compiler_wl_GCJ='-Wl,'
15717      # PIC (with -KPIC) is the default.
15718      lt_prog_compiler_static_GCJ='-non_shared'
15719      ;;
15720
15721    newsos6)
15722      lt_prog_compiler_pic_GCJ='-KPIC'
15723      lt_prog_compiler_static_GCJ='-Bstatic'
15724      ;;
15725
15726    linux*)
15727      case $CC in
15728      icc* | ecc*)
15729        lt_prog_compiler_wl_GCJ='-Wl,'
15730        lt_prog_compiler_pic_GCJ='-KPIC'
15731        lt_prog_compiler_static_GCJ='-static'
15732        ;;
15733      ccc*)
15734        lt_prog_compiler_wl_GCJ='-Wl,'
15735        # All Alpha code is PIC.
15736        lt_prog_compiler_static_GCJ='-non_shared'
15737        ;;
15738      esac
15739      ;;
15740
15741    osf3* | osf4* | osf5*)
15742      lt_prog_compiler_wl_GCJ='-Wl,'
15743      # All OSF/1 code is PIC.
15744      lt_prog_compiler_static_GCJ='-non_shared'
15745      ;;
15746
15747    sco3.2v5*)
15748      lt_prog_compiler_pic_GCJ='-Kpic'
15749      lt_prog_compiler_static_GCJ='-dn'
15750      ;;
15751
15752    solaris*)
15753      lt_prog_compiler_wl_GCJ='-Wl,'
15754      lt_prog_compiler_pic_GCJ='-KPIC'
15755      lt_prog_compiler_static_GCJ='-Bstatic'
15756      ;;
15757
15758    sunos4*)
15759      lt_prog_compiler_wl_GCJ='-Qoption ld '
15760      lt_prog_compiler_pic_GCJ='-PIC'
15761      lt_prog_compiler_static_GCJ='-Bstatic'
15762      ;;
15763
15764    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15765      lt_prog_compiler_wl_GCJ='-Wl,'
15766      lt_prog_compiler_pic_GCJ='-KPIC'
15767      lt_prog_compiler_static_GCJ='-Bstatic'
15768      ;;
15769
15770    sysv4*MP*)
15771      if test -d /usr/nec ;then
15772        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15773        lt_prog_compiler_static_GCJ='-Bstatic'
15774      fi
15775      ;;
15776
15777    uts4*)
15778      lt_prog_compiler_pic_GCJ='-pic'
15779      lt_prog_compiler_static_GCJ='-Bstatic'
15780      ;;
15781
15782    *)
15783      lt_prog_compiler_can_build_shared_GCJ=no
15784      ;;
15785    esac
15786  fi
15787
15788echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15789echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15790
15791#
15792# Check to make sure the PIC flag actually works.
15793#
15794if test -n "$lt_prog_compiler_pic_GCJ"; then
15795
15796echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15797echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15798if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15799  echo $ECHO_N "(cached) $ECHO_C" >&6
15800else
15801  lt_prog_compiler_pic_works_GCJ=no
15802  ac_outfile=conftest.$ac_objext
15803   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15804   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15805   # Insert the option either (1) after the last *FLAGS variable, or
15806   # (2) before a word containing "conftest.", or (3) at the end.
15807   # Note that $ac_compile itself does not contain backslashes and begins
15808   # with a dollar sign (not a hyphen), so the echo should work correctly.
15809   # The option is referenced via a variable to avoid confusing sed.
15810   lt_compile=`echo "$ac_compile" | $SED \
15811   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15813   -e 's:$: $lt_compiler_flag:'`
15814   (eval echo "\"\$as_me:15814: $lt_compile\"" >&5)
15815   (eval "$lt_compile" 2>conftest.err)
15816   ac_status=$?
15817   cat conftest.err >&5
15818   echo "$as_me:15818: \$? = $ac_status" >&5
15819   if (exit $ac_status) && test -s "$ac_outfile"; then
15820     # The compiler can only warn and ignore the option if not recognized
15821     # So say no if there are warnings
15822     if test ! -s conftest.err; then
15823       lt_prog_compiler_pic_works_GCJ=yes
15824     fi
15825   fi
15826   $rm conftest*
15827
15828fi
15829echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15830echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15831
15832if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15833    case $lt_prog_compiler_pic_GCJ in
15834     "" | " "*) ;;
15835     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15836     esac
15837else
15838    lt_prog_compiler_pic_GCJ=
15839     lt_prog_compiler_can_build_shared_GCJ=no
15840fi
15841
15842fi
15843case "$host_os" in
15844  # For platforms which do not support PIC, -DPIC is meaningless:
15845  *djgpp*)
15846    lt_prog_compiler_pic_GCJ=
15847    ;;
15848  *)
15849    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15850    ;;
15851esac
15852
15853echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15854echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15855if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15856  echo $ECHO_N "(cached) $ECHO_C" >&6
15857else
15858  lt_cv_prog_compiler_c_o_GCJ=no
15859   $rm -r conftest 2>/dev/null
15860   mkdir conftest
15861   cd conftest
15862   mkdir out
15863   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15864
15865   lt_compiler_flag="-o out/conftest2.$ac_objext"
15866   # Insert the option either (1) after the last *FLAGS variable, or
15867   # (2) before a word containing "conftest.", or (3) at the end.
15868   # Note that $ac_compile itself does not contain backslashes and begins
15869   # with a dollar sign (not a hyphen), so the echo should work correctly.
15870   lt_compile=`echo "$ac_compile" | $SED \
15871   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15872   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15873   -e 's:$: $lt_compiler_flag:'`
15874   (eval echo "\"\$as_me:15874: $lt_compile\"" >&5)
15875   (eval "$lt_compile" 2>out/conftest.err)
15876   ac_status=$?
15877   cat out/conftest.err >&5
15878   echo "$as_me:15878: \$? = $ac_status" >&5
15879   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15880   then
15881     # The compiler can only warn and ignore the option if not recognized
15882     # So say no if there are warnings
15883     if test ! -s out/conftest.err; then
15884       lt_cv_prog_compiler_c_o_GCJ=yes
15885     fi
15886   fi
15887   chmod u+w .
15888   $rm conftest*
15889   # SGI C++ compiler will create directory out/ii_files/ for
15890   # template instantiation
15891   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15892   $rm out/* && rmdir out
15893   cd ..
15894   rmdir conftest
15895   $rm conftest*
15896
15897fi
15898echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15899echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15900
15901
15902hard_links="nottested"
15903if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15904  # do not overwrite the value of need_locks provided by the user
15905  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15906echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15907  hard_links=yes
15908  $rm conftest*
15909  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15910  touch conftest.a
15911  ln conftest.a conftest.b 2>&5 || hard_links=no
15912  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15913  echo "$as_me:$LINENO: result: $hard_links" >&5
15914echo "${ECHO_T}$hard_links" >&6
15915  if test "$hard_links" = no; then
15916    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15917echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15918    need_locks=warn
15919  fi
15920else
15921  need_locks=no
15922fi
15923
15924echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15925echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15926
15927  runpath_var=
15928  allow_undefined_flag_GCJ=
15929  enable_shared_with_static_runtimes_GCJ=no
15930  archive_cmds_GCJ=
15931  archive_expsym_cmds_GCJ=
15932  old_archive_From_new_cmds_GCJ=
15933  old_archive_from_expsyms_cmds_GCJ=
15934  export_dynamic_flag_spec_GCJ=
15935  whole_archive_flag_spec_GCJ=
15936  thread_safe_flag_spec_GCJ=
15937  hardcode_libdir_flag_spec_GCJ=
15938  hardcode_libdir_flag_spec_ld_GCJ=
15939  hardcode_libdir_separator_GCJ=
15940  hardcode_direct_GCJ=no
15941  hardcode_minus_L_GCJ=no
15942  hardcode_shlibpath_var_GCJ=unsupported
15943  link_all_deplibs_GCJ=unknown
15944  hardcode_automatic_GCJ=no
15945  module_cmds_GCJ=
15946  module_expsym_cmds_GCJ=
15947  always_export_symbols_GCJ=no
15948  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15949  # include_expsyms should be a list of space-separated symbols to be *always*
15950  # included in the symbol list
15951  include_expsyms_GCJ=
15952  # exclude_expsyms can be an extended regexp of symbols to exclude
15953  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15954  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15955  # as well as any symbol that contains `d'.
15956  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15957  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15958  # platforms (ab)use it in PIC code, but their linkers get confused if
15959  # the symbol is explicitly referenced.  Since portable code cannot
15960  # rely on this symbol name, it's probably fine to never include it in
15961  # preloaded symbol tables.
15962  extract_expsyms_cmds=
15963
15964  case $host_os in
15965  cygwin* | mingw* | pw32*)
15966    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15967    # When not using gcc, we currently assume that we are using
15968    # Microsoft Visual C++.
15969    if test "$GCC" != yes; then
15970      with_gnu_ld=no
15971    fi
15972    ;;
15973  openbsd*)
15974    with_gnu_ld=no
15975    ;;
15976  esac
15977
15978  ld_shlibs_GCJ=yes
15979  if test "$with_gnu_ld" = yes; then
15980    # If archive_cmds runs LD, not CC, wlarc should be empty
15981    wlarc='${wl}'
15982
15983    # See if GNU ld supports shared libraries.
15984    case $host_os in
15985    aix3* | aix4* | aix5*)
15986      # On AIX/PPC, the GNU linker is very broken
15987      if test "$host_cpu" != ia64; then
15988        ld_shlibs_GCJ=no
15989        cat <<EOF 1>&2
15990
15991*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15992*** to be unable to reliably create shared libraries on AIX.
15993*** Therefore, libtool is disabling shared libraries support.  If you
15994*** really care for shared libraries, you may want to modify your PATH
15995*** so that a non-GNU linker is found, and then restart.
15996
15997EOF
15998      fi
15999      ;;
16000
16001    amigaos*)
16002      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)'
16003      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16004      hardcode_minus_L_GCJ=yes
16005
16006      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16007      # that the semantics of dynamic libraries on AmigaOS, at least up
16008      # to version 4, is to share data among multiple programs linked
16009      # with the same dynamic library.  Since this doesn't match the
16010      # behavior of shared libraries on other platforms, we can't use
16011      # them.
16012      ld_shlibs_GCJ=no
16013      ;;
16014
16015    beos*)
16016      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16017        allow_undefined_flag_GCJ=unsupported
16018        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16019        # support --undefined.  This deserves some investigation.  FIXME
16020        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16021      else
16022        ld_shlibs_GCJ=no
16023      fi
16024      ;;
16025
16026    cygwin* | mingw* | pw32*)
16027      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16028      # as there is no search path for DLLs.
16029      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16030      allow_undefined_flag_GCJ=unsupported
16031      always_export_symbols_GCJ=no
16032      enable_shared_with_static_runtimes_GCJ=yes
16033      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16034
16035      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16036        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16037        # If the export-symbols file already is a .def file (1st line
16038        # is EXPORTS), use it as is; otherwise, prepend...
16039        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16040          cp $export_symbols $output_objdir/$soname.def;
16041        else
16042          echo EXPORTS > $output_objdir/$soname.def;
16043          cat $export_symbols >> $output_objdir/$soname.def;
16044        fi~
16045        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16046      else
16047        ld_shlibs=no
16048      fi
16049      ;;
16050
16051    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16052      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16053        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16054        wlarc=
16055      else
16056        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16057        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16058      fi
16059      ;;
16060
16061    solaris* | sysv5*)
16062      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16063        ld_shlibs_GCJ=no
16064        cat <<EOF 1>&2
16065
16066*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16067*** create shared libraries on Solaris systems.  Therefore, libtool
16068*** is disabling shared libraries support.  We urge you to upgrade GNU
16069*** binutils to release 2.9.1 or newer.  Another option is to modify
16070*** your PATH or compiler configuration so that the native linker is
16071*** used, and then restart.
16072
16073EOF
16074      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16075        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16077      else
16078        ld_shlibs_GCJ=no
16079      fi
16080      ;;
16081
16082    sunos4*)
16083      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084      wlarc=
16085      hardcode_direct_GCJ=yes
16086      hardcode_shlibpath_var_GCJ=no
16087      ;;
16088
16089  linux*)
16090    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16091        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16092        archive_cmds_GCJ="$tmp_archive_cmds"
16093      supports_anon_versioning=no
16094      case `$LD -v 2>/dev/null` in
16095        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16096        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16097        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16098        *\ 2.11.*) ;; # other 2.11 versions
16099        *) supports_anon_versioning=yes ;;
16100      esac
16101      if test $supports_anon_versioning = yes; then
16102        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16103cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16104$echo "local: *; };" >> $output_objdir/$libname.ver~
16105        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16106      else
16107        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16108      fi
16109      link_all_deplibs_GCJ=no
16110    else
16111      ld_shlibs_GCJ=no
16112    fi
16113    ;;
16114
16115    *)
16116      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16117        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16119      else
16120        ld_shlibs_GCJ=no
16121      fi
16122      ;;
16123    esac
16124
16125    if test "$ld_shlibs_GCJ" = yes; then
16126      runpath_var=LD_RUN_PATH
16127      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16128      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16129      # ancient GNU ld didn't support --whole-archive et. al.
16130      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16131        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16132      else
16133        whole_archive_flag_spec_GCJ=
16134      fi
16135    fi
16136  else
16137    # PORTME fill in a description of your system's linker (not GNU ld)
16138    case $host_os in
16139    aix3*)
16140      allow_undefined_flag_GCJ=unsupported
16141      always_export_symbols_GCJ=yes
16142      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'
16143      # Note: this linker hardcodes the directories in LIBPATH if there
16144      # are no directories specified by -L.
16145      hardcode_minus_L_GCJ=yes
16146      if test "$GCC" = yes && test -z "$link_static_flag"; then
16147        # Neither direct hardcoding nor static linking is supported with a
16148        # broken collect2.
16149        hardcode_direct_GCJ=unsupported
16150      fi
16151      ;;
16152
16153    aix4* | aix5*)
16154      if test "$host_cpu" = ia64; then
16155        # On IA64, the linker does run time linking by default, so we don't
16156        # have to do anything special.
16157        aix_use_runtimelinking=no
16158        exp_sym_flag='-Bexport'
16159        no_entry_flag=""
16160      else
16161        # If we're using GNU nm, then we don't want the "-C" option.
16162        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16163        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16164          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'
16165        else
16166          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'
16167        fi
16168        aix_use_runtimelinking=no
16169
16170        # Test if we are trying to use run time linking or normal
16171        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16172        # need to do runtime linking.
16173        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16174          for ld_flag in $LDFLAGS; do
16175          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16176            aix_use_runtimelinking=yes
16177            break
16178          fi
16179          done
16180        esac
16181
16182        exp_sym_flag='-bexport'
16183        no_entry_flag='-bnoentry'
16184      fi
16185
16186      # When large executables or shared objects are built, AIX ld can
16187      # have problems creating the table of contents.  If linking a library
16188      # or program results in "error TOC overflow" add -mminimal-toc to
16189      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16190      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16191
16192      archive_cmds_GCJ=''
16193      hardcode_direct_GCJ=yes
16194      hardcode_libdir_separator_GCJ=':'
16195      link_all_deplibs_GCJ=yes
16196
16197      if test "$GCC" = yes; then
16198        case $host_os in aix4.012|aix4.012.*)
16199        # We only want to do this on AIX 4.2 and lower, the check
16200        # below for broken collect2 doesn't work under 4.3+
16201          collect2name=`${CC} -print-prog-name=collect2`
16202          if test -f "$collect2name" && \
16203           strings "$collect2name" | grep resolve_lib_name >/dev/null
16204          then
16205          # We have reworked collect2
16206          hardcode_direct_GCJ=yes
16207          else
16208          # We have old collect2
16209          hardcode_direct_GCJ=unsupported
16210          # It fails to find uninstalled libraries when the uninstalled
16211          # path is not listed in the libpath.  Setting hardcode_minus_L
16212          # to unsupported forces relinking
16213          hardcode_minus_L_GCJ=yes
16214          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16215          hardcode_libdir_separator_GCJ=
16216          fi
16217        esac
16218        shared_flag='-shared'
16219      else
16220        # not using gcc
16221        if test "$host_cpu" = ia64; then
16222        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16223        # chokes on -Wl,-G. The following line is correct:
16224          shared_flag='-G'
16225        else
16226        if test "$aix_use_runtimelinking" = yes; then
16227            shared_flag='${wl}-G'
16228          else
16229            shared_flag='${wl}-bM:SRE'
16230        fi
16231        fi
16232      fi
16233
16234      # It seems that -bexpall does not export symbols beginning with
16235      # underscore (_), so it is better to generate a list of symbols to export.
16236      always_export_symbols_GCJ=yes
16237      if test "$aix_use_runtimelinking" = yes; then
16238        # Warning - without using the other runtime loading flags (-brtl),
16239        # -berok will link without error, but may produce a broken library.
16240        allow_undefined_flag_GCJ='-berok'
16241       # Determine the default libpath from the value encoded in an empty executable.
16242       cat >conftest.$ac_ext <<_ACEOF
16243/* confdefs.h.  */
16244_ACEOF
16245cat confdefs.h >>conftest.$ac_ext
16246cat >>conftest.$ac_ext <<_ACEOF
16247/* end confdefs.h.  */
16248
16249int
16250main ()
16251{
16252
16253  ;
16254  return 0;
16255}
16256_ACEOF
16257rm -f conftest.$ac_objext conftest$ac_exeext
16258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16259  (eval $ac_link) 2>conftest.er1
16260  ac_status=$?
16261  grep -v '^ *+' conftest.er1 >conftest.err
16262  rm -f conftest.er1
16263  cat conftest.err >&5
16264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265  (exit $ac_status); } &&
16266         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268  (eval $ac_try) 2>&5
16269  ac_status=$?
16270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271  (exit $ac_status); }; } &&
16272         { ac_try='test -s conftest$ac_exeext'
16273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274  (eval $ac_try) 2>&5
16275  ac_status=$?
16276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277  (exit $ac_status); }; }; then
16278
16279aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16280}'`
16281# Check for a 64-bit object if we didn't find anything.
16282if 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; }
16283}'`; fi
16284else
16285  echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288fi
16289rm -f conftest.err conftest.$ac_objext \
16290      conftest$ac_exeext conftest.$ac_ext
16291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16292
16293       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16294        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"
16295       else
16296        if test "$host_cpu" = ia64; then
16297          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16298          allow_undefined_flag_GCJ="-z nodefs"
16299          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"
16300        else
16301         # Determine the default libpath from the value encoded in an empty executable.
16302         cat >conftest.$ac_ext <<_ACEOF
16303/* confdefs.h.  */
16304_ACEOF
16305cat confdefs.h >>conftest.$ac_ext
16306cat >>conftest.$ac_ext <<_ACEOF
16307/* end confdefs.h.  */
16308
16309int
16310main ()
16311{
16312
16313  ;
16314  return 0;
16315}
16316_ACEOF
16317rm -f conftest.$ac_objext conftest$ac_exeext
16318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16319  (eval $ac_link) 2>conftest.er1
16320  ac_status=$?
16321  grep -v '^ *+' conftest.er1 >conftest.err
16322  rm -f conftest.er1
16323  cat conftest.err >&5
16324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325  (exit $ac_status); } &&
16326         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328  (eval $ac_try) 2>&5
16329  ac_status=$?
16330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331  (exit $ac_status); }; } &&
16332         { ac_try='test -s conftest$ac_exeext'
16333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334  (eval $ac_try) 2>&5
16335  ac_status=$?
16336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337  (exit $ac_status); }; }; then
16338
16339aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16340}'`
16341# Check for a 64-bit object if we didn't find anything.
16342if 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; }
16343}'`; fi
16344else
16345  echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348fi
16349rm -f conftest.err conftest.$ac_objext \
16350      conftest$ac_exeext conftest.$ac_ext
16351if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16352
16353         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16354          # Warning - without using the other run time loading flags,
16355          # -berok will link without error, but may produce a broken library.
16356          no_undefined_flag_GCJ=' ${wl}-bernotok'
16357          allow_undefined_flag_GCJ=' ${wl}-berok'
16358          # -bexpall does not export symbols beginning with underscore (_)
16359          always_export_symbols_GCJ=yes
16360          # Exported symbols can be pulled into shared objects from archives
16361          whole_archive_flag_spec_GCJ=' '
16362          archive_cmds_need_lc_GCJ=yes
16363          # This is similar to how AIX traditionally builds it's shared libraries.
16364          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'
16365        fi
16366      fi
16367      ;;
16368
16369    amigaos*)
16370      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)'
16371      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16372      hardcode_minus_L_GCJ=yes
16373      # see comment about different semantics on the GNU ld section
16374      ld_shlibs_GCJ=no
16375      ;;
16376
16377    bsdi4*)
16378      export_dynamic_flag_spec_GCJ=-rdynamic
16379      ;;
16380
16381    cygwin* | mingw* | pw32*)
16382      # When not using gcc, we currently assume that we are using
16383      # Microsoft Visual C++.
16384      # hardcode_libdir_flag_spec is actually meaningless, as there is
16385      # no search path for DLLs.
16386      hardcode_libdir_flag_spec_GCJ=' '
16387      allow_undefined_flag_GCJ=unsupported
16388      # Tell ltmain to make .lib files, not .a files.
16389      libext=lib
16390      # Tell ltmain to make .dll files, not .so files.
16391      shrext_cmds=".dll"
16392      # FIXME: Setting linknames here is a bad hack.
16393      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16394      # The linker will automatically build a .lib file if we build a DLL.
16395      old_archive_From_new_cmds_GCJ='true'
16396      # FIXME: Should let the user specify the lib program.
16397      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16398      fix_srcfile_path='`cygpath -w "$srcfile"`'
16399      enable_shared_with_static_runtimes_GCJ=yes
16400      ;;
16401
16402    darwin* | rhapsody*)
16403    if test "$GXX" = yes ; then
16404      archive_cmds_need_lc_GCJ=no
16405      case "$host_os" in
16406      rhapsody* | darwin1.[012])
16407        allow_undefined_flag_GCJ='-undefined suppress'
16408        ;;
16409      *) # Darwin 1.3 on
16410      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16411        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16412      else
16413        case ${MACOSX_DEPLOYMENT_TARGET} in
16414          10.[012])
16415            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16416            ;;
16417          10.*)
16418            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16419            ;;
16420        esac
16421      fi
16422        ;;
16423      esac
16424        lt_int_apple_cc_single_mod=no
16425        output_verbose_link_cmd='echo'
16426        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16427          lt_int_apple_cc_single_mod=yes
16428        fi
16429        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16430          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16431        else
16432        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16433      fi
16434      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16435      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16436        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16437          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16438        else
16439          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16440        fi
16441          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}'
16442      hardcode_direct_GCJ=no
16443      hardcode_automatic_GCJ=yes
16444      hardcode_shlibpath_var_GCJ=unsupported
16445      whole_archive_flag_spec_GCJ='-all_load $convenience'
16446      link_all_deplibs_GCJ=yes
16447    else
16448      ld_shlibs_GCJ=no
16449    fi
16450      ;;
16451
16452    dgux*)
16453      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16455      hardcode_shlibpath_var_GCJ=no
16456      ;;
16457
16458    freebsd1*)
16459      ld_shlibs_GCJ=no
16460      ;;
16461
16462    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16463    # support.  Future versions do this automatically, but an explicit c++rt0.o
16464    # does not break anything, and helps significantly (at the cost of a little
16465    # extra space).
16466    freebsd2.2*)
16467      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16468      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16469      hardcode_direct_GCJ=yes
16470      hardcode_shlibpath_var_GCJ=no
16471      ;;
16472
16473    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16474    freebsd2*)
16475      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16476      hardcode_direct_GCJ=yes
16477      hardcode_minus_L_GCJ=yes
16478      hardcode_shlibpath_var_GCJ=no
16479      ;;
16480
16481    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16482    freebsd* | kfreebsd*-gnu)
16483      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16484      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16485      hardcode_direct_GCJ=yes
16486      hardcode_shlibpath_var_GCJ=no
16487      ;;
16488
16489    hpux9*)
16490      if test "$GCC" = yes; then
16491        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'
16492      else
16493        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'
16494      fi
16495      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16496      hardcode_libdir_separator_GCJ=:
16497      hardcode_direct_GCJ=yes
16498
16499      # hardcode_minus_L: Not really in the search PATH,
16500      # but as the default location of the library.
16501      hardcode_minus_L_GCJ=yes
16502      export_dynamic_flag_spec_GCJ='${wl}-E'
16503      ;;
16504
16505    hpux10* | hpux11*)
16506      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16507        case "$host_cpu" in
16508        hppa*64*|ia64*)
16509          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16510          ;;
16511        *)
16512          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16513          ;;
16514        esac
16515      else
16516        case "$host_cpu" in
16517        hppa*64*|ia64*)
16518          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16519          ;;
16520        *)
16521          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16522          ;;
16523        esac
16524      fi
16525      if test "$with_gnu_ld" = no; then
16526        case "$host_cpu" in
16527        hppa*64*)
16528          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16529          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16530          hardcode_libdir_separator_GCJ=:
16531          hardcode_direct_GCJ=no
16532          hardcode_shlibpath_var_GCJ=no
16533          ;;
16534        ia64*)
16535          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16536          hardcode_direct_GCJ=no
16537          hardcode_shlibpath_var_GCJ=no
16538
16539          # hardcode_minus_L: Not really in the search PATH,
16540          # but as the default location of the library.
16541          hardcode_minus_L_GCJ=yes
16542          ;;
16543        *)
16544          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16545          hardcode_libdir_separator_GCJ=:
16546          hardcode_direct_GCJ=yes
16547          export_dynamic_flag_spec_GCJ='${wl}-E'
16548
16549          # hardcode_minus_L: Not really in the search PATH,
16550          # but as the default location of the library.
16551          hardcode_minus_L_GCJ=yes
16552          ;;
16553        esac
16554      fi
16555      ;;
16556
16557    irix5* | irix6* | nonstopux*)
16558      if test "$GCC" = yes; then
16559        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'
16560      else
16561        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'
16562        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16563      fi
16564      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16565      hardcode_libdir_separator_GCJ=:
16566      link_all_deplibs_GCJ=yes
16567      ;;
16568
16569    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16570      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16571        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16572      else
16573        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16574      fi
16575      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16576      hardcode_direct_GCJ=yes
16577      hardcode_shlibpath_var_GCJ=no
16578      ;;
16579
16580    newsos6)
16581      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16582      hardcode_direct_GCJ=yes
16583      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16584      hardcode_libdir_separator_GCJ=:
16585      hardcode_shlibpath_var_GCJ=no
16586      ;;
16587
16588    openbsd*)
16589      hardcode_direct_GCJ=yes
16590      hardcode_shlibpath_var_GCJ=no
16591      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16592        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16593        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16594        export_dynamic_flag_spec_GCJ='${wl}-E'
16595      else
16596       case $host_os in
16597         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16598           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16599           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16600           ;;
16601         *)
16602           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16603           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16604           ;;
16605       esac
16606      fi
16607      ;;
16608
16609    os2*)
16610      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16611      hardcode_minus_L_GCJ=yes
16612      allow_undefined_flag_GCJ=unsupported
16613      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'
16614      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16615      ;;
16616
16617    osf3*)
16618      if test "$GCC" = yes; then
16619        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16620        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'
16621      else
16622        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16623        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'
16624      fi
16625      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16626      hardcode_libdir_separator_GCJ=:
16627      ;;
16628
16629    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16630      if test "$GCC" = yes; then
16631        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16632        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'
16633        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16634      else
16635        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16636        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'
16637        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~
16638        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16639
16640        # Both c and cxx compiler support -rpath directly
16641        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16642      fi
16643      hardcode_libdir_separator_GCJ=:
16644      ;;
16645
16646    sco3.2v5*)
16647      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648      hardcode_shlibpath_var_GCJ=no
16649      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16650      runpath_var=LD_RUN_PATH
16651      hardcode_runpath_var=yes
16652      ;;
16653
16654    solaris*)
16655      no_undefined_flag_GCJ=' -z text'
16656      if test "$GCC" = yes; then
16657        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16658        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16660      else
16661        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16663        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16664      fi
16665      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16666      hardcode_shlibpath_var_GCJ=no
16667      case $host_os in
16668      solaris2.[0-5] | solaris2.[0-5].*) ;;
16669      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16670        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16671      esac
16672      link_all_deplibs_GCJ=yes
16673      ;;
16674
16675    sunos4*)
16676      if test "x$host_vendor" = xsequent; then
16677        # Use $CC to link under sequent, because it throws in some extra .o
16678        # files that make .init and .fini sections work.
16679        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16680      else
16681        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16682      fi
16683      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16684      hardcode_direct_GCJ=yes
16685      hardcode_minus_L_GCJ=yes
16686      hardcode_shlibpath_var_GCJ=no
16687      ;;
16688
16689    sysv4)
16690      case $host_vendor in
16691        sni)
16692          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16693          hardcode_direct_GCJ=yes # is this really true???
16694        ;;
16695        siemens)
16696          ## LD is ld it makes a PLAMLIB
16697          ## CC just makes a GrossModule.
16698          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16699          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16700          hardcode_direct_GCJ=no
16701        ;;
16702        motorola)
16703          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16704          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16705        ;;
16706      esac
16707      runpath_var='LD_RUN_PATH'
16708      hardcode_shlibpath_var_GCJ=no
16709      ;;
16710
16711    sysv4.3*)
16712      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16713      hardcode_shlibpath_var_GCJ=no
16714      export_dynamic_flag_spec_GCJ='-Bexport'
16715      ;;
16716
16717    sysv4*MP*)
16718      if test -d /usr/nec; then
16719        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16720        hardcode_shlibpath_var_GCJ=no
16721        runpath_var=LD_RUN_PATH
16722        hardcode_runpath_var=yes
16723        ld_shlibs_GCJ=yes
16724      fi
16725      ;;
16726
16727    sysv4.2uw2*)
16728      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16729      hardcode_direct_GCJ=yes
16730      hardcode_minus_L_GCJ=no
16731      hardcode_shlibpath_var_GCJ=no
16732      hardcode_runpath_var=yes
16733      runpath_var=LD_RUN_PATH
16734      ;;
16735
16736   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16737      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16738      if test "$GCC" = yes; then
16739        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740      else
16741        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16742      fi
16743      runpath_var='LD_RUN_PATH'
16744      hardcode_shlibpath_var_GCJ=no
16745      ;;
16746
16747    sysv5*)
16748      no_undefined_flag_GCJ=' -z text'
16749      # $CC -shared without GNU ld will not create a library from C++
16750      # object files and a static libstdc++, better avoid it by now
16751      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16752      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16753                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16754      hardcode_libdir_flag_spec_GCJ=
16755      hardcode_shlibpath_var_GCJ=no
16756      runpath_var='LD_RUN_PATH'
16757      ;;
16758
16759    uts4*)
16760      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16761      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16762      hardcode_shlibpath_var_GCJ=no
16763      ;;
16764
16765    *)
16766      ld_shlibs_GCJ=no
16767      ;;
16768    esac
16769  fi
16770
16771echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16772echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16773test "$ld_shlibs_GCJ" = no && can_build_shared=no
16774
16775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16776if test "$GCC" = yes; then
16777  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16778fi
16779
16780#
16781# Do we need to explicitly link libc?
16782#
16783case "x$archive_cmds_need_lc_GCJ" in
16784x|xyes)
16785  # Assume -lc should be added
16786  archive_cmds_need_lc_GCJ=yes
16787
16788  if test "$enable_shared" = yes && test "$GCC" = yes; then
16789    case $archive_cmds_GCJ in
16790    *'~'*)
16791      # FIXME: we may have to deal with multi-command sequences.
16792      ;;
16793    '$CC '*)
16794      # Test whether the compiler implicitly links with -lc since on some
16795      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16796      # to ld, don't add -lc before -lgcc.
16797      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16798echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16799      $rm conftest*
16800      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16801
16802      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803  (eval $ac_compile) 2>&5
16804  ac_status=$?
16805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806  (exit $ac_status); } 2>conftest.err; then
16807        soname=conftest
16808        lib=conftest
16809        libobjs=conftest.$ac_objext
16810        deplibs=
16811        wl=$lt_prog_compiler_wl_GCJ
16812        compiler_flags=-v
16813        linker_flags=-v
16814        verstring=
16815        output_objdir=.
16816        libname=conftest
16817        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16818        allow_undefined_flag_GCJ=
16819        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16820  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16821  ac_status=$?
16822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823  (exit $ac_status); }
16824        then
16825          archive_cmds_need_lc_GCJ=no
16826        else
16827          archive_cmds_need_lc_GCJ=yes
16828        fi
16829        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16830      else
16831        cat conftest.err 1>&5
16832      fi
16833      $rm conftest*
16834      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16835echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16836      ;;
16837    esac
16838  fi
16839  ;;
16840esac
16841
16842echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16843echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16844library_names_spec=
16845libname_spec='lib$name'
16846soname_spec=
16847shrext_cmds=".so"
16848postinstall_cmds=
16849postuninstall_cmds=
16850finish_cmds=
16851finish_eval=
16852shlibpath_var=
16853shlibpath_overrides_runpath=unknown
16854version_type=none
16855dynamic_linker="$host_os ld.so"
16856sys_lib_dlsearch_path_spec="/lib /usr/lib"
16857if test "$GCC" = yes; then
16858  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16859  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16860    # if the path contains ";" then we assume it to be the separator
16861    # otherwise default to the standard path separator (i.e. ":") - it is
16862    # assumed that no part of a normal pathname contains ";" but that should
16863    # okay in the real world where ";" in dirpaths is itself problematic.
16864    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16865  else
16866    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16867  fi
16868else
16869  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16870fi
16871need_lib_prefix=unknown
16872hardcode_into_libs=no
16873
16874# when you set need_version to no, make sure it does not cause -set_version
16875# flags to be left without arguments
16876need_version=unknown
16877
16878case $host_os in
16879aix3*)
16880  version_type=linux
16881  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16882  shlibpath_var=LIBPATH
16883
16884  # AIX 3 has no versioning support, so we append a major version to the name.
16885  soname_spec='${libname}${release}${shared_ext}$major'
16886  ;;
16887
16888aix4* | aix5*)
16889  version_type=linux
16890  need_lib_prefix=no
16891  need_version=no
16892  hardcode_into_libs=yes
16893  if test "$host_cpu" = ia64; then
16894    # AIX 5 supports IA64
16895    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16896    shlibpath_var=LD_LIBRARY_PATH
16897  else
16898    # With GCC up to 2.95.x, collect2 would create an import file
16899    # for dependence libraries.  The import file would start with
16900    # the line `#! .'.  This would cause the generated library to
16901    # depend on `.', always an invalid library.  This was fixed in
16902    # development snapshots of GCC prior to 3.0.
16903    case $host_os in
16904      aix4 | aix4.[01] | aix4.[01].*)
16905      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16906           echo ' yes '
16907           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16908        :
16909      else
16910        can_build_shared=no
16911      fi
16912      ;;
16913    esac
16914    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16915    # soname into executable. Probably we can add versioning support to
16916    # collect2, so additional links can be useful in future.
16917    if test "$aix_use_runtimelinking" = yes; then
16918      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16919      # instead of lib<name>.a to let people know that these are not
16920      # typical AIX shared libraries.
16921      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922    else
16923      # We preserve .a as extension for shared libraries through AIX4.2
16924      # and later when we are not doing run time linking.
16925      library_names_spec='${libname}${release}.a $libname.a'
16926      soname_spec='${libname}${release}${shared_ext}$major'
16927    fi
16928    shlibpath_var=LIBPATH
16929  fi
16930  ;;
16931
16932amigaos*)
16933  library_names_spec='$libname.ixlibrary $libname.a'
16934  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16935  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'
16936  ;;
16937
16938beos*)
16939  library_names_spec='${libname}${shared_ext}'
16940  dynamic_linker="$host_os ld.so"
16941  shlibpath_var=LIBRARY_PATH
16942  ;;
16943
16944bsdi4*)
16945  version_type=linux
16946  need_version=no
16947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948  soname_spec='${libname}${release}${shared_ext}$major'
16949  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16950  shlibpath_var=LD_LIBRARY_PATH
16951  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16952  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16953  # the default ld.so.conf also contains /usr/contrib/lib and
16954  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16955  # libtool to hard-code these into programs
16956  ;;
16957
16958cygwin* | mingw* | pw32*)
16959  version_type=windows
16960  shrext_cmds=".dll"
16961  need_version=no
16962  need_lib_prefix=no
16963
16964  case $GCC,$host_os in
16965  yes,cygwin* | yes,mingw* | yes,pw32*)
16966    library_names_spec='$libname.dll.a'
16967    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16968    postinstall_cmds='base_file=`basename \${file}`~
16969      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16970      dldir=$destdir/`dirname \$dlpath`~
16971      test -d \$dldir || mkdir -p \$dldir~
16972      $install_prog $dir/$dlname \$dldir/$dlname'
16973    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16974      dlpath=$dir/\$dldll~
16975       $rm \$dlpath'
16976    shlibpath_overrides_runpath=yes
16977
16978    case $host_os in
16979    cygwin*)
16980      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16981      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16982      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16983      ;;
16984    mingw*)
16985      # MinGW DLLs use traditional 'lib' prefix
16986      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16987      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16988      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16989        # It is most probably a Windows format PATH printed by
16990        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16991        # path with ; separators, and with drive letters. We can handle the
16992        # drive letters (cygwin fileutils understands them), so leave them,
16993        # especially as we might pass files found there to a mingw objdump,
16994        # which wouldn't understand a cygwinified path. Ahh.
16995        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16996      else
16997        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16998      fi
16999      ;;
17000    pw32*)
17001      # pw32 DLLs use 'pw' prefix rather than 'lib'
17002      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17003      ;;
17004    esac
17005    ;;
17006
17007  *)
17008    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17009    ;;
17010  esac
17011  dynamic_linker='Win32 ld.exe'
17012  # FIXME: first we should search . and the directory the executable is in
17013  shlibpath_var=PATH
17014  ;;
17015
17016darwin* | rhapsody*)
17017  dynamic_linker="$host_os dyld"
17018  version_type=darwin
17019  need_lib_prefix=no
17020  need_version=no
17021  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17022  soname_spec='${libname}${release}${major}$shared_ext'
17023  shlibpath_overrides_runpath=yes
17024  shlibpath_var=DYLD_LIBRARY_PATH
17025  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17026  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17027  if test "$GCC" = yes; then
17028    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"`
17029  else
17030    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17031  fi
17032  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17033  ;;
17034
17035dgux*)
17036  version_type=linux
17037  need_lib_prefix=no
17038  need_version=no
17039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17040  soname_spec='${libname}${release}${shared_ext}$major'
17041  shlibpath_var=LD_LIBRARY_PATH
17042  ;;
17043
17044freebsd1*)
17045  dynamic_linker=no
17046  ;;
17047
17048kfreebsd*-gnu)
17049  version_type=linux
17050  need_lib_prefix=no
17051  need_version=no
17052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17053  soname_spec='${libname}${release}${shared_ext}$major'
17054  shlibpath_var=LD_LIBRARY_PATH
17055  shlibpath_overrides_runpath=no
17056  hardcode_into_libs=yes
17057  dynamic_linker='GNU ld.so'
17058  ;;
17059
17060freebsd*)
17061  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17062  version_type=freebsd-$objformat
17063  case $version_type in
17064    freebsd-elf*)
17065      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17066      need_version=no
17067      need_lib_prefix=no
17068      ;;
17069    freebsd-*)
17070      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17071      need_version=yes
17072      ;;
17073  esac
17074  shlibpath_var=LD_LIBRARY_PATH
17075  case $host_os in
17076  freebsd2*)
17077    shlibpath_overrides_runpath=yes
17078    ;;
17079  freebsd3.01* | freebsdelf3.01*)
17080    shlibpath_overrides_runpath=yes
17081    hardcode_into_libs=yes
17082    ;;
17083  *) # from 3.2 on
17084    shlibpath_overrides_runpath=no
17085    hardcode_into_libs=yes
17086    ;;
17087  esac
17088  ;;
17089
17090gnu*)
17091  version_type=linux
17092  need_lib_prefix=no
17093  need_version=no
17094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17095  soname_spec='${libname}${release}${shared_ext}$major'
17096  shlibpath_var=LD_LIBRARY_PATH
17097  hardcode_into_libs=yes
17098  ;;
17099
17100hpux9* | hpux10* | hpux11*)
17101  # Give a soname corresponding to the major version so that dld.sl refuses to
17102  # link against other versions.
17103  version_type=sunos
17104  need_lib_prefix=no
17105  need_version=no
17106  case "$host_cpu" in
17107  ia64*)
17108    shrext_cmds='.so'
17109    hardcode_into_libs=yes
17110    dynamic_linker="$host_os dld.so"
17111    shlibpath_var=LD_LIBRARY_PATH
17112    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114    soname_spec='${libname}${release}${shared_ext}$major'
17115    if test "X$HPUX_IA64_MODE" = X32; then
17116      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17117    else
17118      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17119    fi
17120    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17121    ;;
17122   hppa*64*)
17123     shrext_cmds='.sl'
17124     hardcode_into_libs=yes
17125     dynamic_linker="$host_os dld.sl"
17126     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17127     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129     soname_spec='${libname}${release}${shared_ext}$major'
17130     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17131     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17132     ;;
17133   *)
17134    shrext_cmds='.sl'
17135    dynamic_linker="$host_os dld.sl"
17136    shlibpath_var=SHLIB_PATH
17137    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17138    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17139    soname_spec='${libname}${release}${shared_ext}$major'
17140    ;;
17141  esac
17142  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17143  postinstall_cmds='chmod 555 $lib'
17144  ;;
17145
17146irix5* | irix6* | nonstopux*)
17147  case $host_os in
17148    nonstopux*) version_type=nonstopux ;;
17149    *)
17150        if test "$lt_cv_prog_gnu_ld" = yes; then
17151                version_type=linux
17152        else
17153                version_type=irix
17154        fi ;;
17155  esac
17156  need_lib_prefix=no
17157  need_version=no
17158  soname_spec='${libname}${release}${shared_ext}$major'
17159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17160  case $host_os in
17161  irix5* | nonstopux*)
17162    libsuff= shlibsuff=
17163    ;;
17164  *)
17165    case $LD in # libtool.m4 will add one of these switches to LD
17166    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17167      libsuff= shlibsuff= libmagic=32-bit;;
17168    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17169      libsuff=32 shlibsuff=N32 libmagic=N32;;
17170    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17171      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17172    *) libsuff= shlibsuff= libmagic=never-match;;
17173    esac
17174    ;;
17175  esac
17176  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17177  shlibpath_overrides_runpath=no
17178  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17179  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17180  hardcode_into_libs=yes
17181  ;;
17182
17183# No shared lib support for Linux oldld, aout, or coff.
17184linux*oldld* | linux*aout* | linux*coff*)
17185  dynamic_linker=no
17186  ;;
17187
17188# This must be Linux ELF.
17189linux*)
17190  version_type=linux
17191  need_lib_prefix=no
17192  need_version=no
17193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194  soname_spec='${libname}${release}${shared_ext}$major'
17195  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17196  shlibpath_var=LD_LIBRARY_PATH
17197  shlibpath_overrides_runpath=no
17198  # This implies no fast_install, which is unacceptable.
17199  # Some rework will be needed to allow for fast_install
17200  # before this can be enabled.
17201  hardcode_into_libs=yes
17202
17203  # Append ld.so.conf contents to the search path
17204  if test -f /etc/ld.so.conf; then
17205    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17206    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17207  fi
17208
17209  # We used to test for /lib/ld.so.1 and disable shared libraries on
17210  # powerpc, because MkLinux only supported shared libraries with the
17211  # GNU dynamic linker.  Since this was broken with cross compilers,
17212  # most powerpc-linux boxes support dynamic linking these days and
17213  # people can always --disable-shared, the test was removed, and we
17214  # assume the GNU/Linux dynamic linker is in use.
17215  dynamic_linker='GNU/Linux ld.so'
17216  ;;
17217
17218netbsdelf*-gnu)
17219  version_type=linux
17220  need_lib_prefix=no
17221  need_version=no
17222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17223  soname_spec='${libname}${release}${shared_ext}$major'
17224  shlibpath_var=LD_LIBRARY_PATH
17225  shlibpath_overrides_runpath=no
17226  hardcode_into_libs=yes
17227  dynamic_linker='NetBSD ld.elf_so'
17228  ;;
17229
17230knetbsd*-gnu)
17231  version_type=linux
17232  need_lib_prefix=no
17233  need_version=no
17234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235  soname_spec='${libname}${release}${shared_ext}$major'
17236  shlibpath_var=LD_LIBRARY_PATH
17237  shlibpath_overrides_runpath=no
17238  hardcode_into_libs=yes
17239  dynamic_linker='GNU ld.so'
17240  ;;
17241
17242netbsd*)
17243  version_type=sunos
17244  need_lib_prefix=no
17245  need_version=no
17246  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17247    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249    dynamic_linker='NetBSD (a.out) ld.so'
17250  else
17251    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252    soname_spec='${libname}${release}${shared_ext}$major'
17253    dynamic_linker='NetBSD ld.elf_so'
17254  fi
17255  shlibpath_var=LD_LIBRARY_PATH
17256  shlibpath_overrides_runpath=yes
17257  hardcode_into_libs=yes
17258  ;;
17259
17260newsos6)
17261  version_type=linux
17262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263  shlibpath_var=LD_LIBRARY_PATH
17264  shlibpath_overrides_runpath=yes
17265  ;;
17266
17267nto-qnx*)
17268  version_type=linux
17269  need_lib_prefix=no
17270  need_version=no
17271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272  soname_spec='${libname}${release}${shared_ext}$major'
17273  shlibpath_var=LD_LIBRARY_PATH
17274  shlibpath_overrides_runpath=yes
17275  ;;
17276
17277openbsd*)
17278  version_type=sunos
17279  need_lib_prefix=no
17280  need_version=yes
17281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17282  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17283  shlibpath_var=LD_LIBRARY_PATH
17284  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17285    case $host_os in
17286      openbsd2.[89] | openbsd2.[89].*)
17287        shlibpath_overrides_runpath=no
17288        ;;
17289      *)
17290        shlibpath_overrides_runpath=yes
17291        ;;
17292      esac
17293  else
17294    shlibpath_overrides_runpath=yes
17295  fi
17296  ;;
17297
17298os2*)
17299  libname_spec='$name'
17300  shrext_cmds=".dll"
17301  need_lib_prefix=no
17302  library_names_spec='$libname${shared_ext} $libname.a'
17303  dynamic_linker='OS/2 ld.exe'
17304  shlibpath_var=LIBPATH
17305  ;;
17306
17307osf3* | osf4* | osf5*)
17308  version_type=osf
17309  need_lib_prefix=no
17310  need_version=no
17311  soname_spec='${libname}${release}${shared_ext}$major'
17312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313  shlibpath_var=LD_LIBRARY_PATH
17314  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17315  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17316  ;;
17317
17318sco3.2v5*)
17319  version_type=osf
17320  soname_spec='${libname}${release}${shared_ext}$major'
17321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322  shlibpath_var=LD_LIBRARY_PATH
17323  ;;
17324
17325solaris*)
17326  version_type=linux
17327  need_lib_prefix=no
17328  need_version=no
17329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330  soname_spec='${libname}${release}${shared_ext}$major'
17331  shlibpath_var=LD_LIBRARY_PATH
17332  shlibpath_overrides_runpath=yes
17333  hardcode_into_libs=yes
17334  # ldd complains unless libraries are executable
17335  postinstall_cmds='chmod +x $lib'
17336  ;;
17337
17338sunos4*)
17339  version_type=sunos
17340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17342  shlibpath_var=LD_LIBRARY_PATH
17343  shlibpath_overrides_runpath=yes
17344  if test "$with_gnu_ld" = yes; then
17345    need_lib_prefix=no
17346  fi
17347  need_version=yes
17348  ;;
17349
17350sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17351  version_type=linux
17352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353  soname_spec='${libname}${release}${shared_ext}$major'
17354  shlibpath_var=LD_LIBRARY_PATH
17355  case $host_vendor in
17356    sni)
17357      shlibpath_overrides_runpath=no
17358      need_lib_prefix=no
17359      export_dynamic_flag_spec='${wl}-Blargedynsym'
17360      runpath_var=LD_RUN_PATH
17361      ;;
17362    siemens)
17363      need_lib_prefix=no
17364      ;;
17365    motorola)
17366      need_lib_prefix=no
17367      need_version=no
17368      shlibpath_overrides_runpath=no
17369      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17370      ;;
17371  esac
17372  ;;
17373
17374sysv4*MP*)
17375  if test -d /usr/nec ;then
17376    version_type=linux
17377    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17378    soname_spec='$libname${shared_ext}.$major'
17379    shlibpath_var=LD_LIBRARY_PATH
17380  fi
17381  ;;
17382
17383uts4*)
17384  version_type=linux
17385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386  soname_spec='${libname}${release}${shared_ext}$major'
17387  shlibpath_var=LD_LIBRARY_PATH
17388  ;;
17389
17390*)
17391  dynamic_linker=no
17392  ;;
17393esac
17394echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17395echo "${ECHO_T}$dynamic_linker" >&6
17396test "$dynamic_linker" = no && can_build_shared=no
17397
17398echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17399echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17400hardcode_action_GCJ=
17401if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17402   test -n "$runpath_var GCJ" || \
17403   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17404
17405  # We can hardcode non-existant directories.
17406  if test "$hardcode_direct_GCJ" != no &&
17407     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17408     # have to relink, otherwise we might link with an installed library
17409     # when we should be linking with a yet-to-be-installed one
17410     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17411     test "$hardcode_minus_L_GCJ" != no; then
17412    # Linking always hardcodes the temporary library directory.
17413    hardcode_action_GCJ=relink
17414  else
17415    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17416    hardcode_action_GCJ=immediate
17417  fi
17418else
17419  # We cannot hardcode anything, or else we can only hardcode existing
17420  # directories.
17421  hardcode_action_GCJ=unsupported
17422fi
17423echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17424echo "${ECHO_T}$hardcode_action_GCJ" >&6
17425
17426if test "$hardcode_action_GCJ" = relink; then
17427  # Fast installation is not supported
17428  enable_fast_install=no
17429elif test "$shlibpath_overrides_runpath" = yes ||
17430     test "$enable_shared" = no; then
17431  # Fast installation is not necessary
17432  enable_fast_install=needless
17433fi
17434
17435striplib=
17436old_striplib=
17437echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17438echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17439if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17440  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17441  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17442  echo "$as_me:$LINENO: result: yes" >&5
17443echo "${ECHO_T}yes" >&6
17444else
17445# FIXME - insert some real tests, host_os isn't really good enough
17446  case $host_os in
17447   darwin*)
17448       if test -n "$STRIP" ; then
17449         striplib="$STRIP -x"
17450         echo "$as_me:$LINENO: result: yes" >&5
17451echo "${ECHO_T}yes" >&6
17452       else
17453  echo "$as_me:$LINENO: result: no" >&5
17454echo "${ECHO_T}no" >&6
17455fi
17456       ;;
17457   *)
17458  echo "$as_me:$LINENO: result: no" >&5
17459echo "${ECHO_T}no" >&6
17460    ;;
17461  esac
17462fi
17463
17464if test "x$enable_dlopen" != xyes; then
17465  enable_dlopen=unknown
17466  enable_dlopen_self=unknown
17467  enable_dlopen_self_static=unknown
17468else
17469  lt_cv_dlopen=no
17470  lt_cv_dlopen_libs=
17471
17472  case $host_os in
17473  beos*)
17474    lt_cv_dlopen="load_add_on"
17475    lt_cv_dlopen_libs=
17476    lt_cv_dlopen_self=yes
17477    ;;
17478
17479  mingw* | pw32*)
17480    lt_cv_dlopen="LoadLibrary"
17481    lt_cv_dlopen_libs=
17482   ;;
17483
17484  cygwin*)
17485    lt_cv_dlopen="dlopen"
17486    lt_cv_dlopen_libs=
17487   ;;
17488
17489  darwin*)
17490  # if libdl is installed we need to link against it
17491    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17492echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17493if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17494  echo $ECHO_N "(cached) $ECHO_C" >&6
17495else
17496  ac_check_lib_save_LIBS=$LIBS
17497LIBS="-ldl  $LIBS"
17498cat >conftest.$ac_ext <<_ACEOF
17499/* confdefs.h.  */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h.  */
17504
17505/* Override any gcc2 internal prototype to avoid an error.  */
17506#ifdef __cplusplus
17507extern "C"
17508#endif
17509/* We use char because int might match the return type of a gcc2
17510   builtin and then its argument prototype would still apply.  */
17511char dlopen ();
17512int
17513main ()
17514{
17515dlopen ();
17516  ;
17517  return 0;
17518}
17519_ACEOF
17520rm -f conftest.$ac_objext conftest$ac_exeext
17521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17522  (eval $ac_link) 2>conftest.er1
17523  ac_status=$?
17524  grep -v '^ *+' conftest.er1 >conftest.err
17525  rm -f conftest.er1
17526  cat conftest.err >&5
17527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528  (exit $ac_status); } &&
17529         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531  (eval $ac_try) 2>&5
17532  ac_status=$?
17533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534  (exit $ac_status); }; } &&
17535         { ac_try='test -s conftest$ac_exeext'
17536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537  (eval $ac_try) 2>&5
17538  ac_status=$?
17539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540  (exit $ac_status); }; }; then
17541  ac_cv_lib_dl_dlopen=yes
17542else
17543  echo "$as_me: failed program was:" >&5
17544sed 's/^/| /' conftest.$ac_ext >&5
17545
17546ac_cv_lib_dl_dlopen=no
17547fi
17548rm -f conftest.err conftest.$ac_objext \
17549      conftest$ac_exeext conftest.$ac_ext
17550LIBS=$ac_check_lib_save_LIBS
17551fi
17552echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17553echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17554if test $ac_cv_lib_dl_dlopen = yes; then
17555  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17556else
17557
17558    lt_cv_dlopen="dyld"
17559    lt_cv_dlopen_libs=
17560    lt_cv_dlopen_self=yes
17561
17562fi
17563
17564   ;;
17565
17566  *)
17567    echo "$as_me:$LINENO: checking for shl_load" >&5
17568echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17569if test "${ac_cv_func_shl_load+set}" = set; then
17570  echo $ECHO_N "(cached) $ECHO_C" >&6
17571else
17572  cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h.  */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h.  */
17578/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17579   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17580#define shl_load innocuous_shl_load
17581
17582/* System header to define __stub macros and hopefully few prototypes,
17583    which can conflict with char shl_load (); below.
17584    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17585    <limits.h> exists even on freestanding compilers.  */
17586
17587#ifdef __STDC__
17588# include <limits.h>
17589#else
17590# include <assert.h>
17591#endif
17592
17593#undef shl_load
17594
17595/* Override any gcc2 internal prototype to avoid an error.  */
17596#ifdef __cplusplus
17597extern "C"
17598{
17599#endif
17600/* We use char because int might match the return type of a gcc2
17601   builtin and then its argument prototype would still apply.  */
17602char shl_load ();
17603/* The GNU C library defines this for functions which it implements
17604    to always fail with ENOSYS.  Some functions are actually named
17605    something starting with __ and the normal name is an alias.  */
17606#if defined (__stub_shl_load) || defined (__stub___shl_load)
17607choke me
17608#else
17609char (*f) () = shl_load;
17610#endif
17611#ifdef __cplusplus
17612}
17613#endif
17614
17615int
17616main ()
17617{
17618return f != shl_load;
17619  ;
17620  return 0;
17621}
17622_ACEOF
17623rm -f conftest.$ac_objext conftest$ac_exeext
17624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17625  (eval $ac_link) 2>conftest.er1
17626  ac_status=$?
17627  grep -v '^ *+' conftest.er1 >conftest.err
17628  rm -f conftest.er1
17629  cat conftest.err >&5
17630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631  (exit $ac_status); } &&
17632         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634  (eval $ac_try) 2>&5
17635  ac_status=$?
17636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637  (exit $ac_status); }; } &&
17638         { ac_try='test -s conftest$ac_exeext'
17639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640  (eval $ac_try) 2>&5
17641  ac_status=$?
17642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643  (exit $ac_status); }; }; then
17644  ac_cv_func_shl_load=yes
17645else
17646  echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649ac_cv_func_shl_load=no
17650fi
17651rm -f conftest.err conftest.$ac_objext \
17652      conftest$ac_exeext conftest.$ac_ext
17653fi
17654echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17655echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17656if test $ac_cv_func_shl_load = yes; then
17657  lt_cv_dlopen="shl_load"
17658else
17659  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17660echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17661if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17662  echo $ECHO_N "(cached) $ECHO_C" >&6
17663else
17664  ac_check_lib_save_LIBS=$LIBS
17665LIBS="-ldld  $LIBS"
17666cat >conftest.$ac_ext <<_ACEOF
17667/* confdefs.h.  */
17668_ACEOF
17669cat confdefs.h >>conftest.$ac_ext
17670cat >>conftest.$ac_ext <<_ACEOF
17671/* end confdefs.h.  */
17672
17673/* Override any gcc2 internal prototype to avoid an error.  */
17674#ifdef __cplusplus
17675extern "C"
17676#endif
17677/* We use char because int might match the return type of a gcc2
17678   builtin and then its argument prototype would still apply.  */
17679char shl_load ();
17680int
17681main ()
17682{
17683shl_load ();
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690  (eval $ac_link) 2>conftest.er1
17691  ac_status=$?
17692  grep -v '^ *+' conftest.er1 >conftest.err
17693  rm -f conftest.er1
17694  cat conftest.err >&5
17695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696  (exit $ac_status); } &&
17697         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699  (eval $ac_try) 2>&5
17700  ac_status=$?
17701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702  (exit $ac_status); }; } &&
17703         { ac_try='test -s conftest$ac_exeext'
17704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705  (eval $ac_try) 2>&5
17706  ac_status=$?
17707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708  (exit $ac_status); }; }; then
17709  ac_cv_lib_dld_shl_load=yes
17710else
17711  echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714ac_cv_lib_dld_shl_load=no
17715fi
17716rm -f conftest.err conftest.$ac_objext \
17717      conftest$ac_exeext conftest.$ac_ext
17718LIBS=$ac_check_lib_save_LIBS
17719fi
17720echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17721echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17722if test $ac_cv_lib_dld_shl_load = yes; then
17723  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17724else
17725  echo "$as_me:$LINENO: checking for dlopen" >&5
17726echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17727if test "${ac_cv_func_dlopen+set}" = set; then
17728  echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730  cat >conftest.$ac_ext <<_ACEOF
17731/* confdefs.h.  */
17732_ACEOF
17733cat confdefs.h >>conftest.$ac_ext
17734cat >>conftest.$ac_ext <<_ACEOF
17735/* end confdefs.h.  */
17736/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17738#define dlopen innocuous_dlopen
17739
17740/* System header to define __stub macros and hopefully few prototypes,
17741    which can conflict with char dlopen (); below.
17742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17743    <limits.h> exists even on freestanding compilers.  */
17744
17745#ifdef __STDC__
17746# include <limits.h>
17747#else
17748# include <assert.h>
17749#endif
17750
17751#undef dlopen
17752
17753/* Override any gcc2 internal prototype to avoid an error.  */
17754#ifdef __cplusplus
17755extern "C"
17756{
17757#endif
17758/* We use char because int might match the return type of a gcc2
17759   builtin and then its argument prototype would still apply.  */
17760char dlopen ();
17761/* The GNU C library defines this for functions which it implements
17762    to always fail with ENOSYS.  Some functions are actually named
17763    something starting with __ and the normal name is an alias.  */
17764#if defined (__stub_dlopen) || defined (__stub___dlopen)
17765choke me
17766#else
17767char (*f) () = dlopen;
17768#endif
17769#ifdef __cplusplus
17770}
17771#endif
17772
17773int
17774main ()
17775{
17776return f != dlopen;
17777  ;
17778  return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext conftest$ac_exeext
17782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17783  (eval $ac_link) 2>conftest.er1
17784  ac_status=$?
17785  grep -v '^ *+' conftest.er1 >conftest.err
17786  rm -f conftest.er1
17787  cat conftest.err >&5
17788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789  (exit $ac_status); } &&
17790         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792  (eval $ac_try) 2>&5
17793  ac_status=$?
17794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795  (exit $ac_status); }; } &&
17796         { ac_try='test -s conftest$ac_exeext'
17797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798  (eval $ac_try) 2>&5
17799  ac_status=$?
17800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801  (exit $ac_status); }; }; then
17802  ac_cv_func_dlopen=yes
17803else
17804  echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
17807ac_cv_func_dlopen=no
17808fi
17809rm -f conftest.err conftest.$ac_objext \
17810      conftest$ac_exeext conftest.$ac_ext
17811fi
17812echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17813echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17814if test $ac_cv_func_dlopen = yes; then
17815  lt_cv_dlopen="dlopen"
17816else
17817  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17818echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17819if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17820  echo $ECHO_N "(cached) $ECHO_C" >&6
17821else
17822  ac_check_lib_save_LIBS=$LIBS
17823LIBS="-ldl  $LIBS"
17824cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h.  */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h.  */
17830
17831/* Override any gcc2 internal prototype to avoid an error.  */
17832#ifdef __cplusplus
17833extern "C"
17834#endif
17835/* We use char because int might match the return type of a gcc2
17836   builtin and then its argument prototype would still apply.  */
17837char dlopen ();
17838int
17839main ()
17840{
17841dlopen ();
17842  ;
17843  return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext conftest$ac_exeext
17847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17848  (eval $ac_link) 2>conftest.er1
17849  ac_status=$?
17850  grep -v '^ *+' conftest.er1 >conftest.err
17851  rm -f conftest.er1
17852  cat conftest.err >&5
17853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854  (exit $ac_status); } &&
17855         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857  (eval $ac_try) 2>&5
17858  ac_status=$?
17859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860  (exit $ac_status); }; } &&
17861         { ac_try='test -s conftest$ac_exeext'
17862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863  (eval $ac_try) 2>&5
17864  ac_status=$?
17865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866  (exit $ac_status); }; }; then
17867  ac_cv_lib_dl_dlopen=yes
17868else
17869  echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
17872ac_cv_lib_dl_dlopen=no
17873fi
17874rm -f conftest.err conftest.$ac_objext \
17875      conftest$ac_exeext conftest.$ac_ext
17876LIBS=$ac_check_lib_save_LIBS
17877fi
17878echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17879echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17880if test $ac_cv_lib_dl_dlopen = yes; then
17881  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17882else
17883  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17884echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17885if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17886  echo $ECHO_N "(cached) $ECHO_C" >&6
17887else
17888  ac_check_lib_save_LIBS=$LIBS
17889LIBS="-lsvld  $LIBS"
17890cat >conftest.$ac_ext <<_ACEOF
17891/* confdefs.h.  */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h.  */
17896
17897/* Override any gcc2 internal prototype to avoid an error.  */
17898#ifdef __cplusplus
17899extern "C"
17900#endif
17901/* We use char because int might match the return type of a gcc2
17902   builtin and then its argument prototype would still apply.  */
17903char dlopen ();
17904int
17905main ()
17906{
17907dlopen ();
17908  ;
17909  return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext conftest$ac_exeext
17913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914  (eval $ac_link) 2>conftest.er1
17915  ac_status=$?
17916  grep -v '^ *+' conftest.er1 >conftest.err
17917  rm -f conftest.er1
17918  cat conftest.err >&5
17919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920  (exit $ac_status); } &&
17921         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923  (eval $ac_try) 2>&5
17924  ac_status=$?
17925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926  (exit $ac_status); }; } &&
17927         { ac_try='test -s conftest$ac_exeext'
17928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929  (eval $ac_try) 2>&5
17930  ac_status=$?
17931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932  (exit $ac_status); }; }; then
17933  ac_cv_lib_svld_dlopen=yes
17934else
17935  echo "$as_me: failed program was:" >&5
17936sed 's/^/| /' conftest.$ac_ext >&5
17937
17938ac_cv_lib_svld_dlopen=no
17939fi
17940rm -f conftest.err conftest.$ac_objext \
17941      conftest$ac_exeext conftest.$ac_ext
17942LIBS=$ac_check_lib_save_LIBS
17943fi
17944echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17945echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17946if test $ac_cv_lib_svld_dlopen = yes; then
17947  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17948else
17949  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17950echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17951if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17952  echo $ECHO_N "(cached) $ECHO_C" >&6
17953else
17954  ac_check_lib_save_LIBS=$LIBS
17955LIBS="-ldld  $LIBS"
17956cat >conftest.$ac_ext <<_ACEOF
17957/* confdefs.h.  */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h.  */
17962
17963/* Override any gcc2 internal prototype to avoid an error.  */
17964#ifdef __cplusplus
17965extern "C"
17966#endif
17967/* We use char because int might match the return type of a gcc2
17968   builtin and then its argument prototype would still apply.  */
17969char dld_link ();
17970int
17971main ()
17972{
17973dld_link ();
17974  ;
17975  return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext conftest$ac_exeext
17979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17980  (eval $ac_link) 2>conftest.er1
17981  ac_status=$?
17982  grep -v '^ *+' conftest.er1 >conftest.err
17983  rm -f conftest.er1
17984  cat conftest.err >&5
17985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986  (exit $ac_status); } &&
17987         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989  (eval $ac_try) 2>&5
17990  ac_status=$?
17991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992  (exit $ac_status); }; } &&
17993         { ac_try='test -s conftest$ac_exeext'
17994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995  (eval $ac_try) 2>&5
17996  ac_status=$?
17997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998  (exit $ac_status); }; }; then
17999  ac_cv_lib_dld_dld_link=yes
18000else
18001  echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004ac_cv_lib_dld_dld_link=no
18005fi
18006rm -f conftest.err conftest.$ac_objext \
18007      conftest$ac_exeext conftest.$ac_ext
18008LIBS=$ac_check_lib_save_LIBS
18009fi
18010echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18011echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18012if test $ac_cv_lib_dld_dld_link = yes; then
18013  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18014fi
18015
18016
18017fi
18018
18019
18020fi
18021
18022
18023fi
18024
18025
18026fi
18027
18028
18029fi
18030
18031    ;;
18032  esac
18033
18034  if test "x$lt_cv_dlopen" != xno; then
18035    enable_dlopen=yes
18036  else
18037    enable_dlopen=no
18038  fi
18039
18040  case $lt_cv_dlopen in
18041  dlopen)
18042    save_CPPFLAGS="$CPPFLAGS"
18043    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18044
18045    save_LDFLAGS="$LDFLAGS"
18046    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18047
18048    save_LIBS="$LIBS"
18049    LIBS="$lt_cv_dlopen_libs $LIBS"
18050
18051    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18052echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18053if test "${lt_cv_dlopen_self+set}" = set; then
18054  echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056          if test "$cross_compiling" = yes; then :
18057  lt_cv_dlopen_self=cross
18058else
18059  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18060  lt_status=$lt_dlunknown
18061  cat > conftest.$ac_ext <<EOF
18062#line 18062 "configure"
18063#include "confdefs.h"
18064
18065#if HAVE_DLFCN_H
18066#include <dlfcn.h>
18067#endif
18068
18069#include <stdio.h>
18070
18071#ifdef RTLD_GLOBAL
18072#  define LT_DLGLOBAL           RTLD_GLOBAL
18073#else
18074#  ifdef DL_GLOBAL
18075#    define LT_DLGLOBAL         DL_GLOBAL
18076#  else
18077#    define LT_DLGLOBAL         0
18078#  endif
18079#endif
18080
18081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18082   find out it does not work in some platform. */
18083#ifndef LT_DLLAZY_OR_NOW
18084#  ifdef RTLD_LAZY
18085#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18086#  else
18087#    ifdef DL_LAZY
18088#      define LT_DLLAZY_OR_NOW          DL_LAZY
18089#    else
18090#      ifdef RTLD_NOW
18091#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18092#      else
18093#        ifdef DL_NOW
18094#          define LT_DLLAZY_OR_NOW      DL_NOW
18095#        else
18096#          define LT_DLLAZY_OR_NOW      0
18097#        endif
18098#      endif
18099#    endif
18100#  endif
18101#endif
18102
18103#ifdef __cplusplus
18104extern "C" void exit (int);
18105#endif
18106
18107void fnord() { int i=42;}
18108int main ()
18109{
18110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18111  int status = $lt_dlunknown;
18112
18113  if (self)
18114    {
18115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18116      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18117      /* dlclose (self); */
18118    }
18119
18120    exit (status);
18121}
18122EOF
18123  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124  (eval $ac_link) 2>&5
18125  ac_status=$?
18126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18128    (./conftest; exit; ) 2>/dev/null
18129    lt_status=$?
18130    case x$lt_status in
18131      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18132      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18133      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18134    esac
18135  else :
18136    # compilation failed
18137    lt_cv_dlopen_self=no
18138  fi
18139fi
18140rm -fr conftest*
18141
18142
18143fi
18144echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18145echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18146
18147    if test "x$lt_cv_dlopen_self" = xyes; then
18148      LDFLAGS="$LDFLAGS $link_static_flag"
18149      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18150echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18151if test "${lt_cv_dlopen_self_static+set}" = set; then
18152  echo $ECHO_N "(cached) $ECHO_C" >&6
18153else
18154          if test "$cross_compiling" = yes; then :
18155  lt_cv_dlopen_self_static=cross
18156else
18157  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18158  lt_status=$lt_dlunknown
18159  cat > conftest.$ac_ext <<EOF
18160#line 18160 "configure"
18161#include "confdefs.h"
18162
18163#if HAVE_DLFCN_H
18164#include <dlfcn.h>
18165#endif
18166
18167#include <stdio.h>
18168
18169#ifdef RTLD_GLOBAL
18170#  define LT_DLGLOBAL           RTLD_GLOBAL
18171#else
18172#  ifdef DL_GLOBAL
18173#    define LT_DLGLOBAL         DL_GLOBAL
18174#  else
18175#    define LT_DLGLOBAL         0
18176#  endif
18177#endif
18178
18179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18180   find out it does not work in some platform. */
18181#ifndef LT_DLLAZY_OR_NOW
18182#  ifdef RTLD_LAZY
18183#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18184#  else
18185#    ifdef DL_LAZY
18186#      define LT_DLLAZY_OR_NOW          DL_LAZY
18187#    else
18188#      ifdef RTLD_NOW
18189#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18190#      else
18191#        ifdef DL_NOW
18192#          define LT_DLLAZY_OR_NOW      DL_NOW
18193#        else
18194#          define LT_DLLAZY_OR_NOW      0
18195#        endif
18196#      endif
18197#    endif
18198#  endif
18199#endif
18200
18201#ifdef __cplusplus
18202extern "C" void exit (int);
18203#endif
18204
18205void fnord() { int i=42;}
18206int main ()
18207{
18208  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18209  int status = $lt_dlunknown;
18210
18211  if (self)
18212    {
18213      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18214      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18215      /* dlclose (self); */
18216    }
18217
18218    exit (status);
18219}
18220EOF
18221  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18222  (eval $ac_link) 2>&5
18223  ac_status=$?
18224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18226    (./conftest; exit; ) 2>/dev/null
18227    lt_status=$?
18228    case x$lt_status in
18229      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18230      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18231      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18232    esac
18233  else :
18234    # compilation failed
18235    lt_cv_dlopen_self_static=no
18236  fi
18237fi
18238rm -fr conftest*
18239
18240
18241fi
18242echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18243echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18244    fi
18245
18246    CPPFLAGS="$save_CPPFLAGS"
18247    LDFLAGS="$save_LDFLAGS"
18248    LIBS="$save_LIBS"
18249    ;;
18250  esac
18251
18252  case $lt_cv_dlopen_self in
18253  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18254  *) enable_dlopen_self=unknown ;;
18255  esac
18256
18257  case $lt_cv_dlopen_self_static in
18258  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18259  *) enable_dlopen_self_static=unknown ;;
18260  esac
18261fi
18262
18263
18264# The else clause should only fire when bootstrapping the
18265# libtool distribution, otherwise you forgot to ship ltmain.sh
18266# with your package, and you will get complaints that there are
18267# no rules to generate ltmain.sh.
18268if test -f "$ltmain"; then
18269  # See if we are running on zsh, and set the options which allow our commands through
18270  # without removal of \ escapes.
18271  if test -n "${ZSH_VERSION+set}" ; then
18272    setopt NO_GLOB_SUBST
18273  fi
18274  # Now quote all the things that may contain metacharacters while being
18275  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18276  # variables and quote the copies for generation of the libtool script.
18277  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18278    SED SHELL STRIP \
18279    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18280    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18281    deplibs_check_method reload_flag reload_cmds need_locks \
18282    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18283    lt_cv_sys_global_symbol_to_c_name_address \
18284    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18285    old_postinstall_cmds old_postuninstall_cmds \
18286    compiler_GCJ \
18287    CC_GCJ \
18288    LD_GCJ \
18289    lt_prog_compiler_wl_GCJ \
18290    lt_prog_compiler_pic_GCJ \
18291    lt_prog_compiler_static_GCJ \
18292    lt_prog_compiler_no_builtin_flag_GCJ \
18293    export_dynamic_flag_spec_GCJ \
18294    thread_safe_flag_spec_GCJ \
18295    whole_archive_flag_spec_GCJ \
18296    enable_shared_with_static_runtimes_GCJ \
18297    old_archive_cmds_GCJ \
18298    old_archive_from_new_cmds_GCJ \
18299    predep_objects_GCJ \
18300    postdep_objects_GCJ \
18301    predeps_GCJ \
18302    postdeps_GCJ \
18303    compiler_lib_search_path_GCJ \
18304    archive_cmds_GCJ \
18305    archive_expsym_cmds_GCJ \
18306    postinstall_cmds_GCJ \
18307    postuninstall_cmds_GCJ \
18308    old_archive_from_expsyms_cmds_GCJ \
18309    allow_undefined_flag_GCJ \
18310    no_undefined_flag_GCJ \
18311    export_symbols_cmds_GCJ \
18312    hardcode_libdir_flag_spec_GCJ \
18313    hardcode_libdir_flag_spec_ld_GCJ \
18314    hardcode_libdir_separator_GCJ \
18315    hardcode_automatic_GCJ \
18316    module_cmds_GCJ \
18317    module_expsym_cmds_GCJ \
18318    lt_cv_prog_compiler_c_o_GCJ \
18319    exclude_expsyms_GCJ \
18320    include_expsyms_GCJ; do
18321
18322    case $var in
18323    old_archive_cmds_GCJ | \
18324    old_archive_from_new_cmds_GCJ | \
18325    archive_cmds_GCJ | \
18326    archive_expsym_cmds_GCJ | \
18327    module_cmds_GCJ | \
18328    module_expsym_cmds_GCJ | \
18329    old_archive_from_expsyms_cmds_GCJ | \
18330    export_symbols_cmds_GCJ | \
18331    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18332    postinstall_cmds | postuninstall_cmds | \
18333    old_postinstall_cmds | old_postuninstall_cmds | \
18334    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18335      # Double-quote double-evaled strings.
18336      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18337      ;;
18338    *)
18339      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18340      ;;
18341    esac
18342  done
18343
18344  case $lt_echo in
18345  *'\$0 --fallback-echo"')
18346    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18347    ;;
18348  esac
18349
18350cfgfile="$ofile"
18351
18352  cat <<__EOF__ >> "$cfgfile"
18353# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18354
18355# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18356
18357# Shell to use when invoking shell scripts.
18358SHELL=$lt_SHELL
18359
18360# Whether or not to build shared libraries.
18361build_libtool_libs=$enable_shared
18362
18363# Whether or not to build static libraries.
18364build_old_libs=$enable_static
18365
18366# Whether or not to add -lc for building shared libraries.
18367build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18368
18369# Whether or not to disallow shared libs when runtime libs are static
18370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18371
18372# Whether or not to optimize for fast installation.
18373fast_install=$enable_fast_install
18374
18375# The host system.
18376host_alias=$host_alias
18377host=$host
18378
18379# An echo program that does not interpret backslashes.
18380echo=$lt_echo
18381
18382# The archiver.
18383AR=$lt_AR
18384AR_FLAGS=$lt_AR_FLAGS
18385
18386# A C compiler.
18387LTCC=$lt_LTCC
18388
18389# A language-specific compiler.
18390CC=$lt_compiler_GCJ
18391
18392# Is the compiler the GNU C compiler?
18393with_gcc=$GCC_GCJ
18394
18395# An ERE matcher.
18396EGREP=$lt_EGREP
18397
18398# The linker used to build libraries.
18399LD=$lt_LD_GCJ
18400
18401# Whether we need hard or soft links.
18402LN_S=$lt_LN_S
18403
18404# A BSD-compatible nm program.
18405NM=$lt_NM
18406
18407# A symbol stripping program
18408STRIP=$lt_STRIP
18409
18410# Used to examine libraries when file_magic_cmd begins "file"
18411MAGIC_CMD=$MAGIC_CMD
18412
18413# Used on cygwin: DLL creation program.
18414DLLTOOL="$DLLTOOL"
18415
18416# Used on cygwin: object dumper.
18417OBJDUMP="$OBJDUMP"
18418
18419# Used on cygwin: assembler.
18420AS="$AS"
18421
18422# The name of the directory that contains temporary libtool files.
18423objdir=$objdir
18424
18425# How to create reloadable object files.
18426reload_flag=$lt_reload_flag
18427reload_cmds=$lt_reload_cmds
18428
18429# How to pass a linker flag through the compiler.
18430wl=$lt_lt_prog_compiler_wl_GCJ
18431
18432# Object file suffix (normally "o").
18433objext="$ac_objext"
18434
18435# Old archive suffix (normally "a").
18436libext="$libext"
18437
18438# Shared library suffix (normally ".so").
18439shrext_cmds='$shrext_cmds'
18440
18441# Executable file suffix (normally "").
18442exeext="$exeext"
18443
18444# Additional compiler flags for building library objects.
18445pic_flag=$lt_lt_prog_compiler_pic_GCJ
18446pic_mode=$pic_mode
18447
18448# What is the maximum length of a command?
18449max_cmd_len=$lt_cv_sys_max_cmd_len
18450
18451# Does compiler simultaneously support -c and -o options?
18452compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18453
18454# Must we lock files when doing compilation ?
18455need_locks=$lt_need_locks
18456
18457# Do we need the lib prefix for modules?
18458need_lib_prefix=$need_lib_prefix
18459
18460# Do we need a version for libraries?
18461need_version=$need_version
18462
18463# Whether dlopen is supported.
18464dlopen_support=$enable_dlopen
18465
18466# Whether dlopen of programs is supported.
18467dlopen_self=$enable_dlopen_self
18468
18469# Whether dlopen of statically linked programs is supported.
18470dlopen_self_static=$enable_dlopen_self_static
18471
18472# Compiler flag to prevent dynamic linking.
18473link_static_flag=$lt_lt_prog_compiler_static_GCJ
18474
18475# Compiler flag to turn off builtin functions.
18476no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18477
18478# Compiler flag to allow reflexive dlopens.
18479export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18480
18481# Compiler flag to generate shared objects directly from archives.
18482whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18483
18484# Compiler flag to generate thread-safe objects.
18485thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18486
18487# Library versioning type.
18488version_type=$version_type
18489
18490# Format of library name prefix.
18491libname_spec=$lt_libname_spec
18492
18493# List of archive names.  First name is the real one, the rest are links.
18494# The last name is the one that the linker finds with -lNAME.
18495library_names_spec=$lt_library_names_spec
18496
18497# The coded name of the library, if different from the real name.
18498soname_spec=$lt_soname_spec
18499
18500# Commands used to build and install an old-style archive.
18501RANLIB=$lt_RANLIB
18502old_archive_cmds=$lt_old_archive_cmds_GCJ
18503old_postinstall_cmds=$lt_old_postinstall_cmds
18504old_postuninstall_cmds=$lt_old_postuninstall_cmds
18505
18506# Create an old-style archive from a shared archive.
18507old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18508
18509# Create a temporary old-style archive to link instead of a shared archive.
18510old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18511
18512# Commands used to build and install a shared archive.
18513archive_cmds=$lt_archive_cmds_GCJ
18514archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18515postinstall_cmds=$lt_postinstall_cmds
18516postuninstall_cmds=$lt_postuninstall_cmds
18517
18518# Commands used to build a loadable module (assumed same as above if empty)
18519module_cmds=$lt_module_cmds_GCJ
18520module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18521
18522# Commands to strip libraries.
18523old_striplib=$lt_old_striplib
18524striplib=$lt_striplib
18525
18526# Dependencies to place before the objects being linked to create a
18527# shared library.
18528predep_objects=$lt_predep_objects_GCJ
18529
18530# Dependencies to place after the objects being linked to create a
18531# shared library.
18532postdep_objects=$lt_postdep_objects_GCJ
18533
18534# Dependencies to place before the objects being linked to create a
18535# shared library.
18536predeps=$lt_predeps_GCJ
18537
18538# Dependencies to place after the objects being linked to create a
18539# shared library.
18540postdeps=$lt_postdeps_GCJ
18541
18542# The library search path used internally by the compiler when linking
18543# a shared library.
18544compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18545
18546# Method to check whether dependent libraries are shared objects.
18547deplibs_check_method=$lt_deplibs_check_method
18548
18549# Command to use when deplibs_check_method == file_magic.
18550file_magic_cmd=$lt_file_magic_cmd
18551
18552# Flag that allows shared libraries with undefined symbols to be built.
18553allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18554
18555# Flag that forces no undefined symbols.
18556no_undefined_flag=$lt_no_undefined_flag_GCJ
18557
18558# Commands used to finish a libtool library installation in a directory.
18559finish_cmds=$lt_finish_cmds
18560
18561# Same as above, but a single script fragment to be evaled but not shown.
18562finish_eval=$lt_finish_eval
18563
18564# Take the output of nm and produce a listing of raw symbols and C names.
18565global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18566
18567# Transform the output of nm in a proper C declaration
18568global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18569
18570# Transform the output of nm in a C name address pair
18571global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18572
18573# This is the shared library runtime path variable.
18574runpath_var=$runpath_var
18575
18576# This is the shared library path variable.
18577shlibpath_var=$shlibpath_var
18578
18579# Is shlibpath searched before the hard-coded library search path?
18580shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18581
18582# How to hardcode a shared library path into an executable.
18583hardcode_action=$hardcode_action_GCJ
18584
18585# Whether we should hardcode library paths into libraries.
18586hardcode_into_libs=$hardcode_into_libs
18587
18588# Flag to hardcode \$libdir into a binary during linking.
18589# This must work even if \$libdir does not exist.
18590hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18591
18592# If ld is used when linking, flag to hardcode \$libdir into
18593# a binary during linking. This must work even if \$libdir does
18594# not exist.
18595hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18596
18597# Whether we need a single -rpath flag with a separated argument.
18598hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18599
18600# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18601# resulting binary.
18602hardcode_direct=$hardcode_direct_GCJ
18603
18604# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18605# resulting binary.
18606hardcode_minus_L=$hardcode_minus_L_GCJ
18607
18608# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18609# the resulting binary.
18610hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18611
18612# Set to yes if building a shared library automatically hardcodes DIR into the library
18613# and all subsequent libraries and executables linked against it.
18614hardcode_automatic=$hardcode_automatic_GCJ
18615
18616# Variables whose values should be saved in libtool wrapper scripts and
18617# restored at relink time.
18618variables_saved_for_relink="$variables_saved_for_relink"
18619
18620# Whether libtool must link a program against all its dependency libraries.
18621link_all_deplibs=$link_all_deplibs_GCJ
18622
18623# Compile-time system search path for libraries
18624sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18625
18626# Run-time system search path for libraries
18627sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18628
18629# Fix the shell variable \$srcfile for the compiler.
18630fix_srcfile_path="$fix_srcfile_path_GCJ"
18631
18632# Set to yes if exported symbols are required.
18633always_export_symbols=$always_export_symbols_GCJ
18634
18635# The commands to list exported symbols.
18636export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18637
18638# The commands to extract the exported symbol list from a shared archive.
18639extract_expsyms_cmds=$lt_extract_expsyms_cmds
18640
18641# Symbols that should not be listed in the preloaded symbols.
18642exclude_expsyms=$lt_exclude_expsyms_GCJ
18643
18644# Symbols that must always be exported.
18645include_expsyms=$lt_include_expsyms_GCJ
18646
18647# ### END LIBTOOL TAG CONFIG: $tagname
18648
18649__EOF__
18650
18651
18652else
18653  # If there is no Makefile yet, we rely on a make rule to execute
18654  # `config.status --recheck' to rerun these tests and create the
18655  # libtool script then.
18656  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18657  if test -f "$ltmain_in"; then
18658    test -f Makefile && make "$ltmain"
18659  fi
18660fi
18661
18662
18663ac_ext=c
18664ac_cpp='$CPP $CPPFLAGS'
18665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18667ac_compiler_gnu=$ac_cv_c_compiler_gnu
18668
18669CC="$lt_save_CC"
18670
18671        else
18672          tagname=""
18673        fi
18674        ;;
18675
18676      RC)
18677
18678
18679
18680# Source file extension for RC test sources.
18681ac_ext=rc
18682
18683# Object file extension for compiled RC test sources.
18684objext=o
18685objext_RC=$objext
18686
18687# Code to be used in simple compile tests
18688lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18689
18690# Code to be used in simple link tests
18691lt_simple_link_test_code="$lt_simple_compile_test_code"
18692
18693# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18694
18695# If no C compiler was specified, use CC.
18696LTCC=${LTCC-"$CC"}
18697
18698# Allow CC to be a program name with arguments.
18699compiler=$CC
18700
18701
18702# Allow CC to be a program name with arguments.
18703lt_save_CC="$CC"
18704CC=${RC-"windres"}
18705compiler=$CC
18706compiler_RC=$CC
18707lt_cv_prog_compiler_c_o_RC=yes
18708
18709# The else clause should only fire when bootstrapping the
18710# libtool distribution, otherwise you forgot to ship ltmain.sh
18711# with your package, and you will get complaints that there are
18712# no rules to generate ltmain.sh.
18713if test -f "$ltmain"; then
18714  # See if we are running on zsh, and set the options which allow our commands through
18715  # without removal of \ escapes.
18716  if test -n "${ZSH_VERSION+set}" ; then
18717    setopt NO_GLOB_SUBST
18718  fi
18719  # Now quote all the things that may contain metacharacters while being
18720  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18721  # variables and quote the copies for generation of the libtool script.
18722  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18723    SED SHELL STRIP \
18724    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18725    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18726    deplibs_check_method reload_flag reload_cmds need_locks \
18727    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18728    lt_cv_sys_global_symbol_to_c_name_address \
18729    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18730    old_postinstall_cmds old_postuninstall_cmds \
18731    compiler_RC \
18732    CC_RC \
18733    LD_RC \
18734    lt_prog_compiler_wl_RC \
18735    lt_prog_compiler_pic_RC \
18736    lt_prog_compiler_static_RC \
18737    lt_prog_compiler_no_builtin_flag_RC \
18738    export_dynamic_flag_spec_RC \
18739    thread_safe_flag_spec_RC \
18740    whole_archive_flag_spec_RC \
18741    enable_shared_with_static_runtimes_RC \
18742    old_archive_cmds_RC \
18743    old_archive_from_new_cmds_RC \
18744    predep_objects_RC \
18745    postdep_objects_RC \
18746    predeps_RC \
18747    postdeps_RC \
18748    compiler_lib_search_path_RC \
18749    archive_cmds_RC \
18750    archive_expsym_cmds_RC \
18751    postinstall_cmds_RC \
18752    postuninstall_cmds_RC \
18753    old_archive_from_expsyms_cmds_RC \
18754    allow_undefined_flag_RC \
18755    no_undefined_flag_RC \
18756    export_symbols_cmds_RC \
18757    hardcode_libdir_flag_spec_RC \
18758    hardcode_libdir_flag_spec_ld_RC \
18759    hardcode_libdir_separator_RC \
18760    hardcode_automatic_RC \
18761    module_cmds_RC \
18762    module_expsym_cmds_RC \
18763    lt_cv_prog_compiler_c_o_RC \
18764    exclude_expsyms_RC \
18765    include_expsyms_RC; do
18766
18767    case $var in
18768    old_archive_cmds_RC | \
18769    old_archive_from_new_cmds_RC | \
18770    archive_cmds_RC | \
18771    archive_expsym_cmds_RC | \
18772    module_cmds_RC | \
18773    module_expsym_cmds_RC | \
18774    old_archive_from_expsyms_cmds_RC | \
18775    export_symbols_cmds_RC | \
18776    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18777    postinstall_cmds | postuninstall_cmds | \
18778    old_postinstall_cmds | old_postuninstall_cmds | \
18779    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18780      # Double-quote double-evaled strings.
18781      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18782      ;;
18783    *)
18784      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18785      ;;
18786    esac
18787  done
18788
18789  case $lt_echo in
18790  *'\$0 --fallback-echo"')
18791    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18792    ;;
18793  esac
18794
18795cfgfile="$ofile"
18796
18797  cat <<__EOF__ >> "$cfgfile"
18798# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18799
18800# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18801
18802# Shell to use when invoking shell scripts.
18803SHELL=$lt_SHELL
18804
18805# Whether or not to build shared libraries.
18806build_libtool_libs=$enable_shared
18807
18808# Whether or not to build static libraries.
18809build_old_libs=$enable_static
18810
18811# Whether or not to add -lc for building shared libraries.
18812build_libtool_need_lc=$archive_cmds_need_lc_RC
18813
18814# Whether or not to disallow shared libs when runtime libs are static
18815allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18816
18817# Whether or not to optimize for fast installation.
18818fast_install=$enable_fast_install
18819
18820# The host system.
18821host_alias=$host_alias
18822host=$host
18823
18824# An echo program that does not interpret backslashes.
18825echo=$lt_echo
18826
18827# The archiver.
18828AR=$lt_AR
18829AR_FLAGS=$lt_AR_FLAGS
18830
18831# A C compiler.
18832LTCC=$lt_LTCC
18833
18834# A language-specific compiler.
18835CC=$lt_compiler_RC
18836
18837# Is the compiler the GNU C compiler?
18838with_gcc=$GCC_RC
18839
18840# An ERE matcher.
18841EGREP=$lt_EGREP
18842
18843# The linker used to build libraries.
18844LD=$lt_LD_RC
18845
18846# Whether we need hard or soft links.
18847LN_S=$lt_LN_S
18848
18849# A BSD-compatible nm program.
18850NM=$lt_NM
18851
18852# A symbol stripping program
18853STRIP=$lt_STRIP
18854
18855# Used to examine libraries when file_magic_cmd begins "file"
18856MAGIC_CMD=$MAGIC_CMD
18857
18858# Used on cygwin: DLL creation program.
18859DLLTOOL="$DLLTOOL"
18860
18861# Used on cygwin: object dumper.
18862OBJDUMP="$OBJDUMP"
18863
18864# Used on cygwin: assembler.
18865AS="$AS"
18866
18867# The name of the directory that contains temporary libtool files.
18868objdir=$objdir
18869
18870# How to create reloadable object files.
18871reload_flag=$lt_reload_flag
18872reload_cmds=$lt_reload_cmds
18873
18874# How to pass a linker flag through the compiler.
18875wl=$lt_lt_prog_compiler_wl_RC
18876
18877# Object file suffix (normally "o").
18878objext="$ac_objext"
18879
18880# Old archive suffix (normally "a").
18881libext="$libext"
18882
18883# Shared library suffix (normally ".so").
18884shrext_cmds='$shrext_cmds'
18885
18886# Executable file suffix (normally "").
18887exeext="$exeext"
18888
18889# Additional compiler flags for building library objects.
18890pic_flag=$lt_lt_prog_compiler_pic_RC
18891pic_mode=$pic_mode
18892
18893# What is the maximum length of a command?
18894max_cmd_len=$lt_cv_sys_max_cmd_len
18895
18896# Does compiler simultaneously support -c and -o options?
18897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18898
18899# Must we lock files when doing compilation ?
18900need_locks=$lt_need_locks
18901
18902# Do we need the lib prefix for modules?
18903need_lib_prefix=$need_lib_prefix
18904
18905# Do we need a version for libraries?
18906need_version=$need_version
18907
18908# Whether dlopen is supported.
18909dlopen_support=$enable_dlopen
18910
18911# Whether dlopen of programs is supported.
18912dlopen_self=$enable_dlopen_self
18913
18914# Whether dlopen of statically linked programs is supported.
18915dlopen_self_static=$enable_dlopen_self_static
18916
18917# Compiler flag to prevent dynamic linking.
18918link_static_flag=$lt_lt_prog_compiler_static_RC
18919
18920# Compiler flag to turn off builtin functions.
18921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18922
18923# Compiler flag to allow reflexive dlopens.
18924export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18925
18926# Compiler flag to generate shared objects directly from archives.
18927whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18928
18929# Compiler flag to generate thread-safe objects.
18930thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18931
18932# Library versioning type.
18933version_type=$version_type
18934
18935# Format of library name prefix.
18936libname_spec=$lt_libname_spec
18937
18938# List of archive names.  First name is the real one, the rest are links.
18939# The last name is the one that the linker finds with -lNAME.
18940library_names_spec=$lt_library_names_spec
18941
18942# The coded name of the library, if different from the real name.
18943soname_spec=$lt_soname_spec
18944
18945# Commands used to build and install an old-style archive.
18946RANLIB=$lt_RANLIB
18947old_archive_cmds=$lt_old_archive_cmds_RC
18948old_postinstall_cmds=$lt_old_postinstall_cmds
18949old_postuninstall_cmds=$lt_old_postuninstall_cmds
18950
18951# Create an old-style archive from a shared archive.
18952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18953
18954# Create a temporary old-style archive to link instead of a shared archive.
18955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18956
18957# Commands used to build and install a shared archive.
18958archive_cmds=$lt_archive_cmds_RC
18959archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18960postinstall_cmds=$lt_postinstall_cmds
18961postuninstall_cmds=$lt_postuninstall_cmds
18962
18963# Commands used to build a loadable module (assumed same as above if empty)
18964module_cmds=$lt_module_cmds_RC
18965module_expsym_cmds=$lt_module_expsym_cmds_RC
18966
18967# Commands to strip libraries.
18968old_striplib=$lt_old_striplib
18969striplib=$lt_striplib
18970
18971# Dependencies to place before the objects being linked to create a
18972# shared library.
18973predep_objects=$lt_predep_objects_RC
18974
18975# Dependencies to place after the objects being linked to create a
18976# shared library.
18977postdep_objects=$lt_postdep_objects_RC
18978
18979# Dependencies to place before the objects being linked to create a
18980# shared library.
18981predeps=$lt_predeps_RC
18982
18983# Dependencies to place after the objects being linked to create a
18984# shared library.
18985postdeps=$lt_postdeps_RC
18986
18987# The library search path used internally by the compiler when linking
18988# a shared library.
18989compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18990
18991# Method to check whether dependent libraries are shared objects.
18992deplibs_check_method=$lt_deplibs_check_method
18993
18994# Command to use when deplibs_check_method == file_magic.
18995file_magic_cmd=$lt_file_magic_cmd
18996
18997# Flag that allows shared libraries with undefined symbols to be built.
18998allow_undefined_flag=$lt_allow_undefined_flag_RC
18999
19000# Flag that forces no undefined symbols.
19001no_undefined_flag=$lt_no_undefined_flag_RC
19002
19003# Commands used to finish a libtool library installation in a directory.
19004finish_cmds=$lt_finish_cmds
19005
19006# Same as above, but a single script fragment to be evaled but not shown.
19007finish_eval=$lt_finish_eval
19008
19009# Take the output of nm and produce a listing of raw symbols and C names.
19010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19011
19012# Transform the output of nm in a proper C declaration
19013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19014
19015# Transform the output of nm in a C name address pair
19016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19017
19018# This is the shared library runtime path variable.
19019runpath_var=$runpath_var
19020
19021# This is the shared library path variable.
19022shlibpath_var=$shlibpath_var
19023
19024# Is shlibpath searched before the hard-coded library search path?
19025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19026
19027# How to hardcode a shared library path into an executable.
19028hardcode_action=$hardcode_action_RC
19029
19030# Whether we should hardcode library paths into libraries.
19031hardcode_into_libs=$hardcode_into_libs
19032
19033# Flag to hardcode \$libdir into a binary during linking.
19034# This must work even if \$libdir does not exist.
19035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19036
19037# If ld is used when linking, flag to hardcode \$libdir into
19038# a binary during linking. This must work even if \$libdir does
19039# not exist.
19040hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19041
19042# Whether we need a single -rpath flag with a separated argument.
19043hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19044
19045# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19046# resulting binary.
19047hardcode_direct=$hardcode_direct_RC
19048
19049# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19050# resulting binary.
19051hardcode_minus_L=$hardcode_minus_L_RC
19052
19053# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19054# the resulting binary.
19055hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19056
19057# Set to yes if building a shared library automatically hardcodes DIR into the library
19058# and all subsequent libraries and executables linked against it.
19059hardcode_automatic=$hardcode_automatic_RC
19060
19061# Variables whose values should be saved in libtool wrapper scripts and
19062# restored at relink time.
19063variables_saved_for_relink="$variables_saved_for_relink"
19064
19065# Whether libtool must link a program against all its dependency libraries.
19066link_all_deplibs=$link_all_deplibs_RC
19067
19068# Compile-time system search path for libraries
19069sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19070
19071# Run-time system search path for libraries
19072sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19073
19074# Fix the shell variable \$srcfile for the compiler.
19075fix_srcfile_path="$fix_srcfile_path_RC"
19076
19077# Set to yes if exported symbols are required.
19078always_export_symbols=$always_export_symbols_RC
19079
19080# The commands to list exported symbols.
19081export_symbols_cmds=$lt_export_symbols_cmds_RC
19082
19083# The commands to extract the exported symbol list from a shared archive.
19084extract_expsyms_cmds=$lt_extract_expsyms_cmds
19085
19086# Symbols that should not be listed in the preloaded symbols.
19087exclude_expsyms=$lt_exclude_expsyms_RC
19088
19089# Symbols that must always be exported.
19090include_expsyms=$lt_include_expsyms_RC
19091
19092# ### END LIBTOOL TAG CONFIG: $tagname
19093
19094__EOF__
19095
19096
19097else
19098  # If there is no Makefile yet, we rely on a make rule to execute
19099  # `config.status --recheck' to rerun these tests and create the
19100  # libtool script then.
19101  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19102  if test -f "$ltmain_in"; then
19103    test -f Makefile && make "$ltmain"
19104  fi
19105fi
19106
19107
19108ac_ext=c
19109ac_cpp='$CPP $CPPFLAGS'
19110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112ac_compiler_gnu=$ac_cv_c_compiler_gnu
19113
19114CC="$lt_save_CC"
19115
19116        ;;
19117
19118      *)
19119        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19120echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19121   { (exit 1); exit 1; }; }
19122        ;;
19123      esac
19124
19125      # Append the new tag name to the list of available tags.
19126      if test -n "$tagname" ; then
19127      available_tags="$available_tags $tagname"
19128    fi
19129    fi
19130  done
19131  IFS="$lt_save_ifs"
19132
19133  # Now substitute the updated list of available tags.
19134  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19135    mv "${ofile}T" "$ofile"
19136    chmod +x "$ofile"
19137  else
19138    rm -f "${ofile}T"
19139    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19140echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19141   { (exit 1); exit 1; }; }
19142  fi
19143fi
19144
19145
19146
19147# This can be used to rebuild libtool when needed
19148LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19149
19150# Always use our own libtool.
19151LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19152
19153# Prevent multiple expansion
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175if test x$GCC = xyes; then
19176    echo "$as_me:$LINENO: checking version 3.x of gcc" >&5
19177echo $ECHO_N "checking version 3.x of gcc... $ECHO_C" >&6
19178    if test -n "`$CC --version 2>&1|grep '3.'`"; then
19179
19180cat >>confdefs.h <<\_ACEOF
19181#define EXT_HASH
19182_ACEOF
19183
19184        echo "$as_me:$LINENO: result: yes" >&5
19185echo "${ECHO_T}yes" >&6;
19186    else
19187        echo "$as_me:$LINENO: result: no" >&5
19188echo "${ECHO_T}no" >&6!
19189    fi
19190fi
19191
19192
19193
19194if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19195        if test -n "$ac_tool_prefix"; then
19196  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19197set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19198echo "$as_me:$LINENO: checking for $ac_word" >&5
19199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19200if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19201  echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203  case $PKG_CONFIG in
19204  [\\/]* | ?:[\\/]*)
19205  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19206  ;;
19207  *)
19208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209for as_dir in $PATH
19210do
19211  IFS=$as_save_IFS
19212  test -z "$as_dir" && as_dir=.
19213  for ac_exec_ext in '' $ac_executable_extensions; do
19214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19215    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19217    break 2
19218  fi
19219done
19220done
19221
19222  ;;
19223esac
19224fi
19225PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19226
19227if test -n "$PKG_CONFIG"; then
19228  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19229echo "${ECHO_T}$PKG_CONFIG" >&6
19230else
19231  echo "$as_me:$LINENO: result: no" >&5
19232echo "${ECHO_T}no" >&6
19233fi
19234
19235fi
19236if test -z "$ac_cv_path_PKG_CONFIG"; then
19237  ac_pt_PKG_CONFIG=$PKG_CONFIG
19238  # Extract the first word of "pkg-config", so it can be a program name with args.
19239set dummy pkg-config; ac_word=$2
19240echo "$as_me:$LINENO: checking for $ac_word" >&5
19241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19242if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19243  echo $ECHO_N "(cached) $ECHO_C" >&6
19244else
19245  case $ac_pt_PKG_CONFIG in
19246  [\\/]* | ?:[\\/]*)
19247  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19248  ;;
19249  *)
19250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251for as_dir in $PATH
19252do
19253  IFS=$as_save_IFS
19254  test -z "$as_dir" && as_dir=.
19255  for ac_exec_ext in '' $ac_executable_extensions; do
19256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19257    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19259    break 2
19260  fi
19261done
19262done
19263
19264  ;;
19265esac
19266fi
19267ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19268
19269if test -n "$ac_pt_PKG_CONFIG"; then
19270  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19271echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19272else
19273  echo "$as_me:$LINENO: result: no" >&5
19274echo "${ECHO_T}no" >&6
19275fi
19276
19277  PKG_CONFIG=$ac_pt_PKG_CONFIG
19278else
19279  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19280fi
19281
19282fi
19283if test -n "$PKG_CONFIG"; then
19284        _pkg_min_version=0.9.0
19285        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19286echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19287        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19288                echo "$as_me:$LINENO: result: yes" >&5
19289echo "${ECHO_T}yes" >&6
19290        else
19291                echo "$as_me:$LINENO: result: no" >&5
19292echo "${ECHO_T}no" >&6
19293                PKG_CONFIG=""
19294        fi
19295
19296fi
19297
19298pkg_failed=no
19299echo "$as_me:$LINENO: checking for OGRE_CFLAGS" >&5
19300echo $ECHO_N "checking for OGRE_CFLAGS... $ECHO_C" >&6
19301if test "${pkg_cv_OGRE_CFLAGS+set}" = set; then
19302  echo $ECHO_N "(cached) $ECHO_C" >&6
19303else
19304  if test "x$ac_cv_env_OGRE_CFLAGS_set" = "xset"; then
19305        pkg_cv_OGRE_CFLAGS=$ac_cv_env_OGRE_CFLAGS_value
19306elif test -n "$PKG_CONFIG"; then
19307        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"OGRE\" >/dev/null 2>&1") >&5
19308  ($PKG_CONFIG --exists "OGRE" >/dev/null 2>&1) 2>&5
19309  ac_status=$?
19310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311  (exit $ac_status); }; then
19312                pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE" 2>/dev/null`
19313        else
19314                pkg_failed=yes
19315        fi
19316else
19317        pkg_failed=untried
19318fi
19319fi
19320echo "$as_me:$LINENO: result: $pkg_cv_OGRE_CFLAGS" >&5
19321echo "${ECHO_T}$pkg_cv_OGRE_CFLAGS" >&6
19322echo "$as_me:$LINENO: checking for OGRE_LIBS" >&5
19323echo $ECHO_N "checking for OGRE_LIBS... $ECHO_C" >&6
19324if test "${pkg_cv_OGRE_LIBS+set}" = set; then
19325  echo $ECHO_N "(cached) $ECHO_C" >&6
19326else
19327  if test "x$ac_cv_env_OGRE_LIBS_set" = "xset"; then
19328        pkg_cv_OGRE_LIBS=$ac_cv_env_OGRE_LIBS_value
19329elif test -n "$PKG_CONFIG"; then
19330        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"OGRE\" >/dev/null 2>&1") >&5
19331  ($PKG_CONFIG --exists "OGRE" >/dev/null 2>&1) 2>&5
19332  ac_status=$?
19333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334  (exit $ac_status); }; then
19335                pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE" 2>/dev/null`
19336        else
19337                pkg_failed=yes
19338        fi
19339else
19340        pkg_failed=untried
19341fi
19342fi
19343echo "$as_me:$LINENO: result: $pkg_cv_OGRE_LIBS" >&5
19344echo "${ECHO_T}$pkg_cv_OGRE_LIBS" >&6
19345
19346if test $pkg_failed = yes; then
19347        OGRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OGRE"`
19348        # Put the nasty error message in config.log where it belongs
19349        echo "$OGRE_PKG_ERRORS" 1>&5
19350
19351        { { echo "$as_me:$LINENO: error: Package requirements (OGRE) were not met.
19352Consider adjusting the PKG_CONFIG_PATH environment variable if you
19353installed software in a non-standard prefix.
19354
19355Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables
19356to avoid the need to call pkg-config.  See the pkg-config man page for
19357more details." >&5
19358echo "$as_me: error: Package requirements (OGRE) were not met.
19359Consider adjusting the PKG_CONFIG_PATH environment variable if you
19360installed software in a non-standard prefix.
19361
19362Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables
19363to avoid the need to call pkg-config.  See the pkg-config man page for
19364more details." >&2;}
19365   { (exit 1); exit 1; }; }
19366elif test $pkg_failed = untried; then
19367        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19368is in your PATH or set the PKG_CONFIG environment variable to the full
19369path to pkg-config.
19370
19371Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables
19372to avoid the need to call pkg-config.  See the pkg-config man page for
19373more details.
19374
19375To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19376See \`config.log' for more details." >&5
19377echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19378is in your PATH or set the PKG_CONFIG environment variable to the full
19379path to pkg-config.
19380
19381Alternatively you may set the OGRE_CFLAGS and OGRE_LIBS environment variables
19382to avoid the need to call pkg-config.  See the pkg-config man page for
19383more details.
19384
19385To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19386See \`config.log' for more details." >&2;}
19387   { (exit 1); exit 1; }; }
19388else
19389        OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS
19390        OGRE_LIBS=$pkg_cv_OGRE_LIBS
19391        :
19392fi
19393ac_ext=cc
19394ac_cpp='$CXXCPP $CPPFLAGS'
19395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19398
19399
19400echo "$as_me:$LINENO: checking for main in -lode" >&5
19401echo $ECHO_N "checking for main in -lode... $ECHO_C" >&6
19402if test "${ac_cv_lib_ode_main+set}" = set; then
19403  echo $ECHO_N "(cached) $ECHO_C" >&6
19404else
19405  ac_check_lib_save_LIBS=$LIBS
19406LIBS="-lode  $LIBS"
19407cat >conftest.$ac_ext <<_ACEOF
19408/* confdefs.h.  */
19409_ACEOF
19410cat confdefs.h >>conftest.$ac_ext
19411cat >>conftest.$ac_ext <<_ACEOF
19412/* end confdefs.h.  */
19413
19414
19415int
19416main ()
19417{
19418main ();
19419  ;
19420  return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext conftest$ac_exeext
19424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425  (eval $ac_link) 2>conftest.er1
19426  ac_status=$?
19427  grep -v '^ *+' conftest.er1 >conftest.err
19428  rm -f conftest.er1
19429  cat conftest.err >&5
19430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431  (exit $ac_status); } &&
19432         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434  (eval $ac_try) 2>&5
19435  ac_status=$?
19436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437  (exit $ac_status); }; } &&
19438         { ac_try='test -s conftest$ac_exeext'
19439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440  (eval $ac_try) 2>&5
19441  ac_status=$?
19442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443  (exit $ac_status); }; }; then
19444  ac_cv_lib_ode_main=yes
19445else
19446  echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449ac_cv_lib_ode_main=no
19450fi
19451rm -f conftest.err conftest.$ac_objext \
19452      conftest$ac_exeext conftest.$ac_ext
19453LIBS=$ac_check_lib_save_LIBS
19454fi
19455echo "$as_me:$LINENO: result: $ac_cv_lib_ode_main" >&5
19456echo "${ECHO_T}$ac_cv_lib_ode_main" >&6
19457if test $ac_cv_lib_ode_main = yes; then
19458  cat >>confdefs.h <<_ACEOF
19459#define HAVE_LIBODE 1
19460_ACEOF
19461
19462  LIBS="-lode $LIBS"
19463
19464else
19465  { { echo "$as_me:$LINENO: error: Can't find libode" >&5
19466echo "$as_me: error: Can't find libode" >&2;}
19467   { (exit 1); exit 1; }; }
19468fi
19469
19470ac_ext=c
19471ac_cpp='$CPP $CPPFLAGS'
19472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475
19476
19477echo "$as_me:$LINENO: checking for pow in -lm" >&5
19478echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19479if test "${ac_cv_lib_m_pow+set}" = set; then
19480  echo $ECHO_N "(cached) $ECHO_C" >&6
19481else
19482  ac_check_lib_save_LIBS=$LIBS
19483LIBS="-lm  $LIBS"
19484cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h.  */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h.  */
19490
19491/* Override any gcc2 internal prototype to avoid an error.  */
19492#ifdef __cplusplus
19493extern "C"
19494#endif
19495/* We use char because int might match the return type of a gcc2
19496   builtin and then its argument prototype would still apply.  */
19497char pow ();
19498int
19499main ()
19500{
19501pow ();
19502  ;
19503  return 0;
19504}
19505_ACEOF
19506rm -f conftest.$ac_objext conftest$ac_exeext
19507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508  (eval $ac_link) 2>conftest.er1
19509  ac_status=$?
19510  grep -v '^ *+' conftest.er1 >conftest.err
19511  rm -f conftest.er1
19512  cat conftest.err >&5
19513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514  (exit $ac_status); } &&
19515         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517  (eval $ac_try) 2>&5
19518  ac_status=$?
19519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520  (exit $ac_status); }; } &&
19521         { ac_try='test -s conftest$ac_exeext'
19522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523  (eval $ac_try) 2>&5
19524  ac_status=$?
19525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526  (exit $ac_status); }; }; then
19527  ac_cv_lib_m_pow=yes
19528else
19529  echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532ac_cv_lib_m_pow=no
19533fi
19534rm -f conftest.err conftest.$ac_objext \
19535      conftest$ac_exeext conftest.$ac_ext
19536LIBS=$ac_check_lib_save_LIBS
19537fi
19538echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19539echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
19540if test $ac_cv_lib_m_pow = yes; then
19541  cat >>confdefs.h <<_ACEOF
19542#define HAVE_LIBM 1
19543_ACEOF
19544
19545  LIBS="-lm $LIBS"
19546
19547fi
19548
19549
19550echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19551echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19552if test "${ac_cv_lib_z_gzopen+set}" = set; then
19553  echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555  ac_check_lib_save_LIBS=$LIBS
19556LIBS="-lz  $LIBS"
19557cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h.  */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h.  */
19563
19564/* Override any gcc2 internal prototype to avoid an error.  */
19565#ifdef __cplusplus
19566extern "C"
19567#endif
19568/* We use char because int might match the return type of a gcc2
19569   builtin and then its argument prototype would still apply.  */
19570char gzopen ();
19571int
19572main ()
19573{
19574gzopen ();
19575  ;
19576  return 0;
19577}
19578_ACEOF
19579rm -f conftest.$ac_objext conftest$ac_exeext
19580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19581  (eval $ac_link) 2>conftest.er1
19582  ac_status=$?
19583  grep -v '^ *+' conftest.er1 >conftest.err
19584  rm -f conftest.er1
19585  cat conftest.err >&5
19586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587  (exit $ac_status); } &&
19588         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590  (eval $ac_try) 2>&5
19591  ac_status=$?
19592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593  (exit $ac_status); }; } &&
19594         { ac_try='test -s conftest$ac_exeext'
19595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596  (eval $ac_try) 2>&5
19597  ac_status=$?
19598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599  (exit $ac_status); }; }; then
19600  ac_cv_lib_z_gzopen=yes
19601else
19602  echo "$as_me: failed program was:" >&5
19603sed 's/^/| /' conftest.$ac_ext >&5
19604
19605ac_cv_lib_z_gzopen=no
19606fi
19607rm -f conftest.err conftest.$ac_objext \
19608      conftest$ac_exeext conftest.$ac_ext
19609LIBS=$ac_check_lib_save_LIBS
19610fi
19611echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19612echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19613if test $ac_cv_lib_z_gzopen = yes; then
19614  cat >>confdefs.h <<_ACEOF
19615#define HAVE_LIBZ 1
19616_ACEOF
19617
19618  LIBS="-lz $LIBS"
19619
19620fi
19621
19622echo "$as_me:$LINENO: checking for snprintf" >&5
19623echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
19624if test "${ac_cv_func_snprintf+set}" = set; then
19625  echo $ECHO_N "(cached) $ECHO_C" >&6
19626else
19627  cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h.  */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h.  */
19633/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
19634   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19635#define snprintf innocuous_snprintf
19636
19637/* System header to define __stub macros and hopefully few prototypes,
19638    which can conflict with char snprintf (); below.
19639    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19640    <limits.h> exists even on freestanding compilers.  */
19641
19642#ifdef __STDC__
19643# include <limits.h>
19644#else
19645# include <assert.h>
19646#endif
19647
19648#undef snprintf
19649
19650/* Override any gcc2 internal prototype to avoid an error.  */
19651#ifdef __cplusplus
19652extern "C"
19653{
19654#endif
19655/* We use char because int might match the return type of a gcc2
19656   builtin and then its argument prototype would still apply.  */
19657char snprintf ();
19658/* The GNU C library defines this for functions which it implements
19659    to always fail with ENOSYS.  Some functions are actually named
19660    something starting with __ and the normal name is an alias.  */
19661#if defined (__stub_snprintf) || defined (__stub___snprintf)
19662choke me
19663#else
19664char (*f) () = snprintf;
19665#endif
19666#ifdef __cplusplus
19667}
19668#endif
19669
19670int
19671main ()
19672{
19673return f != snprintf;
19674  ;
19675  return 0;
19676}
19677_ACEOF
19678rm -f conftest.$ac_objext conftest$ac_exeext
19679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19680  (eval $ac_link) 2>conftest.er1
19681  ac_status=$?
19682  grep -v '^ *+' conftest.er1 >conftest.err
19683  rm -f conftest.er1
19684  cat conftest.err >&5
19685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686  (exit $ac_status); } &&
19687         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689  (eval $ac_try) 2>&5
19690  ac_status=$?
19691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692  (exit $ac_status); }; } &&
19693         { ac_try='test -s conftest$ac_exeext'
19694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695  (eval $ac_try) 2>&5
19696  ac_status=$?
19697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698  (exit $ac_status); }; }; then
19699  ac_cv_func_snprintf=yes
19700else
19701  echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
19704ac_cv_func_snprintf=no
19705fi
19706rm -f conftest.err conftest.$ac_objext \
19707      conftest$ac_exeext conftest.$ac_ext
19708fi
19709echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
19710echo "${ECHO_T}$ac_cv_func_snprintf" >&6
19711if test $ac_cv_func_snprintf = yes; then
19712
19713cat >>confdefs.h <<\_ACEOF
19714#define HAVE_SNPRINTF
19715_ACEOF
19716
19717fi
19718
19719echo "$as_me:$LINENO: checking for vsnprintf" >&5
19720echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
19721if test "${ac_cv_func_vsnprintf+set}" = set; then
19722  echo $ECHO_N "(cached) $ECHO_C" >&6
19723else
19724  cat >conftest.$ac_ext <<_ACEOF
19725/* confdefs.h.  */
19726_ACEOF
19727cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h.  */
19730/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
19731   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19732#define vsnprintf innocuous_vsnprintf
19733
19734/* System header to define __stub macros and hopefully few prototypes,
19735    which can conflict with char vsnprintf (); below.
19736    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19737    <limits.h> exists even on freestanding compilers.  */
19738
19739#ifdef __STDC__
19740# include <limits.h>
19741#else
19742# include <assert.h>
19743#endif
19744
19745#undef vsnprintf
19746
19747/* Override any gcc2 internal prototype to avoid an error.  */
19748#ifdef __cplusplus
19749extern "C"
19750{
19751#endif
19752/* We use char because int might match the return type of a gcc2
19753   builtin and then its argument prototype would still apply.  */
19754char vsnprintf ();
19755/* The GNU C library defines this for functions which it implements
19756    to always fail with ENOSYS.  Some functions are actually named
19757    something starting with __ and the normal name is an alias.  */
19758#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
19759choke me
19760#else
19761char (*f) () = vsnprintf;
19762#endif
19763#ifdef __cplusplus
19764}
19765#endif
19766
19767int
19768main ()
19769{
19770return f != vsnprintf;
19771  ;
19772  return 0;
19773}
19774_ACEOF
19775rm -f conftest.$ac_objext conftest$ac_exeext
19776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777  (eval $ac_link) 2>conftest.er1
19778  ac_status=$?
19779  grep -v '^ *+' conftest.er1 >conftest.err
19780  rm -f conftest.er1
19781  cat conftest.err >&5
19782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783  (exit $ac_status); } &&
19784         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786  (eval $ac_try) 2>&5
19787  ac_status=$?
19788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789  (exit $ac_status); }; } &&
19790         { ac_try='test -s conftest$ac_exeext'
19791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792  (eval $ac_try) 2>&5
19793  ac_status=$?
19794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795  (exit $ac_status); }; }; then
19796  ac_cv_func_vsnprintf=yes
19797else
19798  echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801ac_cv_func_vsnprintf=no
19802fi
19803rm -f conftest.err conftest.$ac_objext \
19804      conftest$ac_exeext conftest.$ac_ext
19805fi
19806echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
19807echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
19808if test $ac_cv_func_vsnprintf = yes; then
19809
19810cat >>confdefs.h <<\_ACEOF
19811#define HAVE_VSNPRINTF
19812_ACEOF
19813
19814fi
19815
19816
19817                                                            ac_config_files="$ac_config_files Makefile ReferenceAppLayer/Makefile ReferenceAppLayer/src/Makefile ReferenceAppLayer/include/Makefile BspCollision/Makefile BspCollision/src/Makefile"
19818
19819
19820cat >confcache <<\_ACEOF
19821# This file is a shell script that caches the results of configure
19822# tests run on this system so they can be shared between configure
19823# scripts and configure runs, see configure's option --config-cache.
19824# It is not useful on other systems.  If it contains results you don't
19825# want to keep, you may remove or edit it.
19826#
19827# config.status only pays attention to the cache file if you give it
19828# the --recheck option to rerun configure.
19829#
19830# `ac_cv_env_foo' variables (set or unset) will be overridden when
19831# loading this file, other *unset* `ac_cv_foo' will be assigned the
19832# following values.
19833
19834_ACEOF
19835
19836# The following way of writing the cache mishandles newlines in values,
19837# but we know of no workaround that is simple, portable, and efficient.
19838# So, don't put newlines in cache variables' values.
19839# Ultrix sh set writes to stderr and can't be redirected directly,
19840# and sets the high bit in the cache file unless we assign to the vars.
19841{
19842  (set) 2>&1 |
19843    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19844    *ac_space=\ *)
19845      # `set' does not quote correctly, so add quotes (double-quote
19846      # substitution turns \\\\ into \\, and sed turns \\ into \).
19847      sed -n \
19848        "s/'/'\\\\''/g;
19849          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19850      ;;
19851    *)
19852      # `set' quotes correctly as required by POSIX, so do not add quotes.
19853      sed -n \
19854        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19855      ;;
19856    esac;
19857} |
19858  sed '
19859     t clear
19860     : clear
19861     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19862     t end
19863     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19864     : end' >>confcache
19865if diff $cache_file confcache >/dev/null 2>&1; then :; else
19866  if test -w $cache_file; then
19867    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19868    cat confcache >$cache_file
19869  else
19870    echo "not updating unwritable cache $cache_file"
19871  fi
19872fi
19873rm -f confcache
19874
19875test "x$prefix" = xNONE && prefix=$ac_default_prefix
19876# Let make expand exec_prefix.
19877test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19878
19879# VPATH may cause trouble with some makes, so we remove $(srcdir),
19880# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19881# trailing colons and then remove the whole line if VPATH becomes empty
19882# (actually we leave an empty line to preserve line numbers).
19883if test "x$srcdir" = x.; then
19884  ac_vpsub='/^[  ]*VPATH[        ]*=/{
19885s/:*\$(srcdir):*/:/;
19886s/:*\${srcdir}:*/:/;
19887s/:*@srcdir@:*/:/;
19888s/^\([^=]*=[     ]*\):*/\1/;
19889s/:*$//;
19890s/^[^=]*=[       ]*$//;
19891}'
19892fi
19893
19894DEFS=-DHAVE_CONFIG_H
19895
19896ac_libobjs=
19897ac_ltlibobjs=
19898for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19899  # 1. Remove the extension, and $U if already installed.
19900  ac_i=`echo "$ac_i" |
19901         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19902  # 2. Add them.
19903  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19904  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19905done
19906LIBOBJS=$ac_libobjs
19907
19908LTLIBOBJS=$ac_ltlibobjs
19909
19910
19911if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19912  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19913Usually this means the macro was only invoked conditionally." >&5
19914echo "$as_me: error: conditional \"AMDEP\" was never defined.
19915Usually this means the macro was only invoked conditionally." >&2;}
19916   { (exit 1); exit 1; }; }
19917fi
19918if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19919  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19920Usually this means the macro was only invoked conditionally." >&5
19921echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19922Usually this means the macro was only invoked conditionally." >&2;}
19923   { (exit 1); exit 1; }; }
19924fi
19925if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19926  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19927Usually this means the macro was only invoked conditionally." >&5
19928echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19929Usually this means the macro was only invoked conditionally." >&2;}
19930   { (exit 1); exit 1; }; }
19931fi
19932
19933: ${CONFIG_STATUS=./config.status}
19934ac_clean_files_save=$ac_clean_files
19935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19936{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19937echo "$as_me: creating $CONFIG_STATUS" >&6;}
19938cat >$CONFIG_STATUS <<_ACEOF
19939#! $SHELL
19940# Generated by $as_me.
19941# Run this file to recreate the current configuration.
19942# Compiler output produced by configure, useful for debugging
19943# configure, is in config.log if it exists.
19944
19945debug=false
19946ac_cs_recheck=false
19947ac_cs_silent=false
19948SHELL=\${CONFIG_SHELL-$SHELL}
19949_ACEOF
19950
19951cat >>$CONFIG_STATUS <<\_ACEOF
19952## --------------------- ##
19953## M4sh Initialization.  ##
19954## --------------------- ##
19955
19956# Be Bourne compatible
19957if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19958  emulate sh
19959  NULLCMD=:
19960  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19961  # is contrary to our usage.  Disable this feature.
19962  alias -g '${1+"$@"}'='"$@"'
19963elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19964  set -o posix
19965fi
19966DUALCASE=1; export DUALCASE # for MKS sh
19967
19968# Support unset when possible.
19969if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19970  as_unset=unset
19971else
19972  as_unset=false
19973fi
19974
19975
19976# Work around bugs in pre-3.0 UWIN ksh.
19977$as_unset ENV MAIL MAILPATH
19978PS1='$ '
19979PS2='> '
19980PS4='+ '
19981
19982# NLS nuisances.
19983for as_var in \
19984  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19985  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19986  LC_TELEPHONE LC_TIME
19987do
19988  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19989    eval $as_var=C; export $as_var
19990  else
19991    $as_unset $as_var
19992  fi
19993done
19994
19995# Required to use basename.
19996if expr a : '\(a\)' >/dev/null 2>&1; then
19997  as_expr=expr
19998else
19999  as_expr=false
20000fi
20001
20002if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20003  as_basename=basename
20004else
20005  as_basename=false
20006fi
20007
20008
20009# Name of the executable.
20010as_me=`$as_basename "$0" ||
20011$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20012         X"$0" : 'X\(//\)$' \| \
20013         X"$0" : 'X\(/\)$' \| \
20014         .     : '\(.\)' 2>/dev/null ||
20015echo X/"$0" |
20016    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20017          /^X\/\(\/\/\)$/{ s//\1/; q; }
20018          /^X\/\(\/\).*/{ s//\1/; q; }
20019          s/.*/./; q'`
20020
20021
20022# PATH needs CR, and LINENO needs CR and PATH.
20023# Avoid depending upon Character Ranges.
20024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20027as_cr_digits='0123456789'
20028as_cr_alnum=$as_cr_Letters$as_cr_digits
20029
20030# The user is always right.
20031if test "${PATH_SEPARATOR+set}" != set; then
20032  echo "#! /bin/sh" >conf$$.sh
20033  echo  "exit 0"   >>conf$$.sh
20034  chmod +x conf$$.sh
20035  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20036    PATH_SEPARATOR=';'
20037  else
20038    PATH_SEPARATOR=:
20039  fi
20040  rm -f conf$$.sh
20041fi
20042
20043
20044  as_lineno_1=$LINENO
20045  as_lineno_2=$LINENO
20046  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20047  test "x$as_lineno_1" != "x$as_lineno_2" &&
20048  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20049  # Find who we are.  Look in the path if we contain no path at all
20050  # relative or not.
20051  case $0 in
20052    *[\\/]* ) as_myself=$0 ;;
20053    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20054for as_dir in $PATH
20055do
20056  IFS=$as_save_IFS
20057  test -z "$as_dir" && as_dir=.
20058  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20059done
20060
20061       ;;
20062  esac
20063  # We did not find ourselves, most probably we were run as `sh COMMAND'
20064  # in which case we are not to be found in the path.
20065  if test "x$as_myself" = x; then
20066    as_myself=$0
20067  fi
20068  if test ! -f "$as_myself"; then
20069    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20070echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20071   { (exit 1); exit 1; }; }
20072  fi
20073  case $CONFIG_SHELL in
20074  '')
20075    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20076for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20077do
20078  IFS=$as_save_IFS
20079  test -z "$as_dir" && as_dir=.
20080  for as_base in sh bash ksh sh5; do
20081         case $as_dir in
20082         /*)
20083           if ("$as_dir/$as_base" -c '
20084  as_lineno_1=$LINENO
20085  as_lineno_2=$LINENO
20086  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20087  test "x$as_lineno_1" != "x$as_lineno_2" &&
20088  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20089             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20090             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20091             CONFIG_SHELL=$as_dir/$as_base
20092             export CONFIG_SHELL
20093             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20094           fi;;
20095         esac
20096       done
20097done
20098;;
20099  esac
20100
20101  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20102  # uniformly replaced by the line number.  The first 'sed' inserts a
20103  # line-number line before each line; the second 'sed' does the real
20104  # work.  The second script uses 'N' to pair each line-number line
20105  # with the numbered line, and appends trailing '-' during
20106  # substitution so that $LINENO is not a special case at line end.
20107  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20108  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20109  sed '=' <$as_myself |
20110    sed '
20111      N
20112      s,$,-,
20113      : loop
20114      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20115      t loop
20116      s,-$,,
20117      s,^['$as_cr_digits']*\n,,
20118    ' >$as_me.lineno &&
20119  chmod +x $as_me.lineno ||
20120    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20121echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20122   { (exit 1); exit 1; }; }
20123
20124  # Don't try to exec as it changes $[0], causing all sort of problems
20125  # (the dirname of $[0] is not the place where we might find the
20126  # original and so on.  Autoconf is especially sensible to this).
20127  . ./$as_me.lineno
20128  # Exit status is that of the last command.
20129  exit
20130}
20131
20132
20133case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20134  *c*,-n*) ECHO_N= ECHO_C='
20135' ECHO_T='      ' ;;
20136  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20137  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20138esac
20139
20140if expr a : '\(a\)' >/dev/null 2>&1; then
20141  as_expr=expr
20142else
20143  as_expr=false
20144fi
20145
20146rm -f conf$$ conf$$.exe conf$$.file
20147echo >conf$$.file
20148if ln -s conf$$.file conf$$ 2>/dev/null; then
20149  # We could just check for DJGPP; but this test a) works b) is more generic
20150  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20151  if test -f conf$$.exe; then
20152    # Don't use ln at all; we don't have any links
20153    as_ln_s='cp -p'
20154  else
20155    as_ln_s='ln -s'
20156  fi
20157elif ln conf$$.file conf$$ 2>/dev/null; then
20158  as_ln_s=ln
20159else
20160  as_ln_s='cp -p'
20161fi
20162rm -f conf$$ conf$$.exe conf$$.file
20163
20164if mkdir -p . 2>/dev/null; then
20165  as_mkdir_p=:
20166else
20167  test -d ./-p && rmdir ./-p
20168  as_mkdir_p=false
20169fi
20170
20171as_executable_p="test -f"
20172
20173# Sed expression to map a string onto a valid CPP name.
20174as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20175
20176# Sed expression to map a string onto a valid variable name.
20177as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20178
20179
20180# IFS
20181# We need space, tab and new line, in precisely that order.
20182as_nl='
20183'
20184IFS="   $as_nl"
20185
20186# CDPATH.
20187$as_unset CDPATH
20188
20189exec 6>&1
20190
20191# Open the log real soon, to keep \$[0] and so on meaningful, and to
20192# report actual input values of CONFIG_FILES etc. instead of their
20193# values after options handling.  Logging --version etc. is OK.
20194exec 5>>config.log
20195{
20196  echo
20197  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20198## Running $as_me. ##
20199_ASBOX
20200} >&5
20201cat >&5 <<_CSEOF
20202
20203This file was extended by OGRE_REFAPP $as_me 0.10.0, which was
20204generated by GNU Autoconf 2.59.  Invocation command line was
20205
20206  CONFIG_FILES    = $CONFIG_FILES
20207  CONFIG_HEADERS  = $CONFIG_HEADERS
20208  CONFIG_LINKS    = $CONFIG_LINKS
20209  CONFIG_COMMANDS = $CONFIG_COMMANDS
20210  $ $0 $@
20211
20212_CSEOF
20213echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20214echo >&5
20215_ACEOF
20216
20217# Files that config.status was made for.
20218if test -n "$ac_config_files"; then
20219  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20220fi
20221
20222if test -n "$ac_config_headers"; then
20223  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20224fi
20225
20226if test -n "$ac_config_links"; then
20227  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20228fi
20229
20230if test -n "$ac_config_commands"; then
20231  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20232fi
20233
20234cat >>$CONFIG_STATUS <<\_ACEOF
20235
20236ac_cs_usage="\
20237\`$as_me' instantiates files from templates according to the
20238current configuration.
20239
20240Usage: $0 [OPTIONS] [FILE]...
20241
20242  -h, --help       print this help, then exit
20243  -V, --version    print version number, then exit
20244  -q, --quiet      do not print progress messages
20245  -d, --debug      don't remove temporary files
20246      --recheck    update $as_me by reconfiguring in the same conditions
20247  --file=FILE[:TEMPLATE]
20248                   instantiate the configuration file FILE
20249  --header=FILE[:TEMPLATE]
20250                   instantiate the configuration header FILE
20251
20252Configuration files:
20253$config_files
20254
20255Configuration headers:
20256$config_headers
20257
20258Configuration commands:
20259$config_commands
20260
20261Report bugs to <bug-autoconf@gnu.org>."
20262_ACEOF
20263
20264cat >>$CONFIG_STATUS <<_ACEOF
20265ac_cs_version="\\
20266OGRE_REFAPP config.status 0.10.0
20267configured by $0, generated by GNU Autoconf 2.59,
20268  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20269
20270Copyright (C) 2003 Free Software Foundation, Inc.
20271This config.status script is free software; the Free Software Foundation
20272gives unlimited permission to copy, distribute and modify it."
20273srcdir=$srcdir
20274INSTALL="$INSTALL"
20275_ACEOF
20276
20277cat >>$CONFIG_STATUS <<\_ACEOF
20278# If no file are specified by the user, then we need to provide default
20279# value.  By we need to know if files were specified by the user.
20280ac_need_defaults=:
20281while test $# != 0
20282do
20283  case $1 in
20284  --*=*)
20285    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20286    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20287    ac_shift=:
20288    ;;
20289  -*)
20290    ac_option=$1
20291    ac_optarg=$2
20292    ac_shift=shift
20293    ;;
20294  *) # This is not an option, so the user has probably given explicit
20295     # arguments.
20296     ac_option=$1
20297     ac_need_defaults=false;;
20298  esac
20299
20300  case $ac_option in
20301  # Handling of the options.
20302_ACEOF
20303cat >>$CONFIG_STATUS <<\_ACEOF
20304  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20305    ac_cs_recheck=: ;;
20306  --version | --vers* | -V )
20307    echo "$ac_cs_version"; exit 0 ;;
20308  --he | --h)
20309    # Conflict between --help and --header
20310    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20311Try \`$0 --help' for more information." >&5
20312echo "$as_me: error: ambiguous option: $1
20313Try \`$0 --help' for more information." >&2;}
20314   { (exit 1); exit 1; }; };;
20315  --help | --hel | -h )
20316    echo "$ac_cs_usage"; exit 0 ;;
20317  --debug | --d* | -d )
20318    debug=: ;;
20319  --file | --fil | --fi | --f )
20320    $ac_shift
20321    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20322    ac_need_defaults=false;;
20323  --header | --heade | --head | --hea )
20324    $ac_shift
20325    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20326    ac_need_defaults=false;;
20327  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20328  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20329    ac_cs_silent=: ;;
20330
20331  # This is an error.
20332  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20333Try \`$0 --help' for more information." >&5
20334echo "$as_me: error: unrecognized option: $1
20335Try \`$0 --help' for more information." >&2;}
20336   { (exit 1); exit 1; }; } ;;
20337
20338  *) ac_config_targets="$ac_config_targets $1" ;;
20339
20340  esac
20341  shift
20342done
20343
20344ac_configure_extra_args=
20345
20346if $ac_cs_silent; then
20347  exec 6>/dev/null
20348  ac_configure_extra_args="$ac_configure_extra_args --silent"
20349fi
20350
20351_ACEOF
20352cat >>$CONFIG_STATUS <<_ACEOF
20353if \$ac_cs_recheck; then
20354  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20355  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20356fi
20357
20358_ACEOF
20359
20360cat >>$CONFIG_STATUS <<_ACEOF
20361#
20362# INIT-COMMANDS section.
20363#
20364
20365AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20366
20367_ACEOF
20368
20369
20370
20371cat >>$CONFIG_STATUS <<\_ACEOF
20372for ac_config_target in $ac_config_targets
20373do
20374  case "$ac_config_target" in
20375  # Handling of arguments.
20376  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20377  "ReferenceAppLayer/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/Makefile" ;;
20378  "ReferenceAppLayer/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/src/Makefile" ;;
20379  "ReferenceAppLayer/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES ReferenceAppLayer/include/Makefile" ;;
20380  "BspCollision/Makefile" ) CONFIG_FILES="$CONFIG_FILES BspCollision/Makefile" ;;
20381  "BspCollision/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BspCollision/src/Makefile" ;;
20382  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20383  "ReferenceAppLayer/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ReferenceAppLayer/include/config.h" ;;
20384  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20385echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20386   { (exit 1); exit 1; }; };;
20387  esac
20388done
20389
20390# If the user did not use the arguments to specify the items to instantiate,
20391# then the envvar interface is used.  Set only those that are not.
20392# We use the long form for the default assignment because of an extremely
20393# bizarre bug on SunOS 4.1.3.
20394if $ac_need_defaults; then
20395  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20396  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20397  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20398fi
20399
20400# Have a temporary directory for convenience.  Make it in the build tree
20401# simply because there is no reason to put it here, and in addition,
20402# creating and moving files from /tmp can sometimes cause problems.
20403# Create a temporary directory, and hook for its removal unless debugging.
20404$debug ||
20405{
20406  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20407  trap '{ (exit 1); exit 1; }' 1 2 13 15
20408}
20409
20410# Create a (secure) tmp directory for tmp files.
20411
20412{
20413  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20414  test -n "$tmp" && test -d "$tmp"
20415}  ||
20416{
20417  tmp=./confstat$$-$RANDOM
20418  (umask 077 && mkdir $tmp)
20419} ||
20420{
20421   echo "$me: cannot create a temporary directory in ." >&2
20422   { (exit 1); exit 1; }
20423}
20424
20425_ACEOF
20426
20427cat >>$CONFIG_STATUS <<_ACEOF
20428
20429#
20430# CONFIG_FILES section.
20431#
20432
20433# No need to generate the scripts if there are no CONFIG_FILES.
20434# This happens for instance when ./config.status config.h
20435if test -n "\$CONFIG_FILES"; then
20436  # Protect against being on the right side of a sed subst in config.status.
20437  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20438   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20439s,@SHELL@,$SHELL,;t t
20440s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20441s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20442s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20443s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20444s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20445s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20446s,@exec_prefix@,$exec_prefix,;t t
20447s,@prefix@,$prefix,;t t
20448s,@program_transform_name@,$program_transform_name,;t t
20449s,@bindir@,$bindir,;t t
20450s,@sbindir@,$sbindir,;t t
20451s,@libexecdir@,$libexecdir,;t t
20452s,@datadir@,$datadir,;t t
20453s,@sysconfdir@,$sysconfdir,;t t
20454s,@sharedstatedir@,$sharedstatedir,;t t
20455s,@localstatedir@,$localstatedir,;t t
20456s,@libdir@,$libdir,;t t
20457s,@includedir@,$includedir,;t t
20458s,@oldincludedir@,$oldincludedir,;t t
20459s,@infodir@,$infodir,;t t
20460s,@mandir@,$mandir,;t t
20461s,@build_alias@,$build_alias,;t t
20462s,@host_alias@,$host_alias,;t t
20463s,@target_alias@,$target_alias,;t t
20464s,@DEFS@,$DEFS,;t t
20465s,@ECHO_C@,$ECHO_C,;t t
20466s,@ECHO_N@,$ECHO_N,;t t
20467s,@ECHO_T@,$ECHO_T,;t t
20468s,@LIBS@,$LIBS,;t t
20469s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20470s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20471s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20472s,@CYGPATH_W@,$CYGPATH_W,;t t
20473s,@PACKAGE@,$PACKAGE,;t t
20474s,@VERSION@,$VERSION,;t t
20475s,@ACLOCAL@,$ACLOCAL,;t t
20476s,@AUTOCONF@,$AUTOCONF,;t t
20477s,@AUTOMAKE@,$AUTOMAKE,;t t
20478s,@AUTOHEADER@,$AUTOHEADER,;t t
20479s,@MAKEINFO@,$MAKEINFO,;t t
20480s,@install_sh@,$install_sh,;t t
20481s,@STRIP@,$STRIP,;t t
20482s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20483s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20484s,@mkdir_p@,$mkdir_p,;t t
20485s,@AWK@,$AWK,;t t
20486s,@SET_MAKE@,$SET_MAKE,;t t
20487s,@am__leading_dot@,$am__leading_dot,;t t
20488s,@AMTAR@,$AMTAR,;t t
20489s,@am__tar@,$am__tar,;t t
20490s,@am__untar@,$am__untar,;t t
20491s,@build@,$build,;t t
20492s,@build_cpu@,$build_cpu,;t t
20493s,@build_vendor@,$build_vendor,;t t
20494s,@build_os@,$build_os,;t t
20495s,@host@,$host,;t t
20496s,@host_cpu@,$host_cpu,;t t
20497s,@host_vendor@,$host_vendor,;t t
20498s,@host_os@,$host_os,;t t
20499s,@target@,$target,;t t
20500s,@target_cpu@,$target_cpu,;t t
20501s,@target_vendor@,$target_vendor,;t t
20502s,@target_os@,$target_os,;t t
20503s,@CC@,$CC,;t t
20504s,@CFLAGS@,$CFLAGS,;t t
20505s,@LDFLAGS@,$LDFLAGS,;t t
20506s,@CPPFLAGS@,$CPPFLAGS,;t t
20507s,@ac_ct_CC@,$ac_ct_CC,;t t
20508s,@EXEEXT@,$EXEEXT,;t t
20509s,@OBJEXT@,$OBJEXT,;t t
20510s,@DEPDIR@,$DEPDIR,;t t
20511s,@am__include@,$am__include,;t t
20512s,@am__quote@,$am__quote,;t t
20513s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20514s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20515s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20516s,@CCDEPMODE@,$CCDEPMODE,;t t
20517s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20518s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20519s,@CXX@,$CXX,;t t
20520s,@CXXFLAGS@,$CXXFLAGS,;t t
20521s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20522s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20523s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20524s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20525s,@EGREP@,$EGREP,;t t
20526s,@LN_S@,$LN_S,;t t
20527s,@ECHO@,$ECHO,;t t
20528s,@AR@,$AR,;t t
20529s,@ac_ct_AR@,$ac_ct_AR,;t t
20530s,@RANLIB@,$RANLIB,;t t
20531s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20532s,@CPP@,$CPP,;t t
20533s,@CXXCPP@,$CXXCPP,;t t
20534s,@F77@,$F77,;t t
20535s,@FFLAGS@,$FFLAGS,;t t
20536s,@ac_ct_F77@,$ac_ct_F77,;t t
20537s,@LIBTOOL@,$LIBTOOL,;t t
20538s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20539s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20540s,@OGRE_CFLAGS@,$OGRE_CFLAGS,;t t
20541s,@OGRE_LIBS@,$OGRE_LIBS,;t t
20542s,@LIBOBJS@,$LIBOBJS,;t t
20543s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20544CEOF
20545
20546_ACEOF
20547
20548  cat >>$CONFIG_STATUS <<\_ACEOF
20549  # Split the substitutions into bite-sized pieces for seds with
20550  # small command number limits, like on Digital OSF/1 and HP-UX.
20551  ac_max_sed_lines=48
20552  ac_sed_frag=1 # Number of current file.
20553  ac_beg=1 # First line for current file.
20554  ac_end=$ac_max_sed_lines # Line after last line for current file.
20555  ac_more_lines=:
20556  ac_sed_cmds=
20557  while $ac_more_lines; do
20558    if test $ac_beg -gt 1; then
20559      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20560    else
20561      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20562    fi
20563    if test ! -s $tmp/subs.frag; then
20564      ac_more_lines=false
20565    else
20566      # The purpose of the label and of the branching condition is to
20567      # speed up the sed processing (if there are no `@' at all, there
20568      # is no need to browse any of the substitutions).
20569      # These are the two extra sed commands mentioned above.
20570      (echo ':t
20571  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20572      if test -z "$ac_sed_cmds"; then
20573        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20574      else
20575        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20576      fi
20577      ac_sed_frag=`expr $ac_sed_frag + 1`
20578      ac_beg=$ac_end
20579      ac_end=`expr $ac_end + $ac_max_sed_lines`
20580    fi
20581  done
20582  if test -z "$ac_sed_cmds"; then
20583    ac_sed_cmds=cat
20584  fi
20585fi # test -n "$CONFIG_FILES"
20586
20587_ACEOF
20588cat >>$CONFIG_STATUS <<\_ACEOF
20589for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20590  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20591  case $ac_file in
20592  - | *:- | *:-:* ) # input from stdin
20593        cat >$tmp/stdin
20594        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20595        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20596  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20597        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20598  * )   ac_file_in=$ac_file.in ;;
20599  esac
20600
20601  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20602  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20603$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20604         X"$ac_file" : 'X\(//\)[^/]' \| \
20605         X"$ac_file" : 'X\(//\)$' \| \
20606         X"$ac_file" : 'X\(/\)' \| \
20607         .     : '\(.\)' 2>/dev/null ||
20608echo X"$ac_file" |
20609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20610          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20611          /^X\(\/\/\)$/{ s//\1/; q; }
20612          /^X\(\/\).*/{ s//\1/; q; }
20613          s/.*/./; q'`
20614  { if $as_mkdir_p; then
20615    mkdir -p "$ac_dir"
20616  else
20617    as_dir="$ac_dir"
20618    as_dirs=
20619    while test ! -d "$as_dir"; do
20620      as_dirs="$as_dir $as_dirs"
20621      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20623         X"$as_dir" : 'X\(//\)[^/]' \| \
20624         X"$as_dir" : 'X\(//\)$' \| \
20625         X"$as_dir" : 'X\(/\)' \| \
20626         .     : '\(.\)' 2>/dev/null ||
20627echo X"$as_dir" |
20628    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20629          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20630          /^X\(\/\/\)$/{ s//\1/; q; }
20631          /^X\(\/\).*/{ s//\1/; q; }
20632          s/.*/./; q'`
20633    done
20634    test ! -n "$as_dirs" || mkdir $as_dirs
20635  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20636echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20637   { (exit 1); exit 1; }; }; }
20638
20639  ac_builddir=.
20640
20641if test "$ac_dir" != .; then
20642  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20643  # A "../" for each directory in $ac_dir_suffix.
20644  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20645else
20646  ac_dir_suffix= ac_top_builddir=
20647fi
20648
20649case $srcdir in
20650  .)  # No --srcdir option.  We are building in place.
20651    ac_srcdir=.
20652    if test -z "$ac_top_builddir"; then
20653       ac_top_srcdir=.
20654    else
20655       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20656    fi ;;
20657  [\\/]* | ?:[\\/]* )  # Absolute path.
20658    ac_srcdir=$srcdir$ac_dir_suffix;
20659    ac_top_srcdir=$srcdir ;;
20660  *) # Relative path.
20661    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20662    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20663esac
20664
20665# Do not use `cd foo && pwd` to compute absolute paths, because
20666# the directories may not exist.
20667case `pwd` in
20668.) ac_abs_builddir="$ac_dir";;
20669*)
20670  case "$ac_dir" in
20671  .) ac_abs_builddir=`pwd`;;
20672  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20673  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20674  esac;;
20675esac
20676case $ac_abs_builddir in
20677.) ac_abs_top_builddir=${ac_top_builddir}.;;
20678*)
20679  case ${ac_top_builddir}. in
20680  .) ac_abs_top_builddir=$ac_abs_builddir;;
20681  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20682  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20683  esac;;
20684esac
20685case $ac_abs_builddir in
20686.) ac_abs_srcdir=$ac_srcdir;;
20687*)
20688  case $ac_srcdir in
20689  .) ac_abs_srcdir=$ac_abs_builddir;;
20690  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20691  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20692  esac;;
20693esac
20694case $ac_abs_builddir in
20695.) ac_abs_top_srcdir=$ac_top_srcdir;;
20696*)
20697  case $ac_top_srcdir in
20698  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20699  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20700  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20701  esac;;
20702esac
20703
20704
20705  case $INSTALL in
20706  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20707  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20708  esac
20709
20710  # Let's still pretend it is `configure' which instantiates (i.e., don't
20711  # use $as_me), people would be surprised to read:
20712  #    /* config.h.  Generated by config.status.  */
20713  if test x"$ac_file" = x-; then
20714    configure_input=
20715  else
20716    configure_input="$ac_file.  "
20717  fi
20718  configure_input=$configure_input"Generated from `echo $ac_file_in |
20719                                     sed 's,.*/,,'` by configure."
20720
20721  # First look for the input files in the build tree, otherwise in the
20722  # src tree.
20723  ac_file_inputs=`IFS=:
20724    for f in $ac_file_in; do
20725      case $f in
20726      -) echo $tmp/stdin ;;
20727      [\\/$]*)
20728         # Absolute (can't be DOS-style, as IFS=:)
20729         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20730echo "$as_me: error: cannot find input file: $f" >&2;}
20731   { (exit 1); exit 1; }; }
20732         echo "$f";;
20733      *) # Relative
20734         if test -f "$f"; then
20735           # Build tree
20736           echo "$f"
20737         elif test -f "$srcdir/$f"; then
20738           # Source tree
20739           echo "$srcdir/$f"
20740         else
20741           # /dev/null tree
20742           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20743echo "$as_me: error: cannot find input file: $f" >&2;}
20744   { (exit 1); exit 1; }; }
20745         fi;;
20746      esac
20747    done` || { (exit 1); exit 1; }
20748
20749  if test x"$ac_file" != x-; then
20750    { echo "$as_me:$LINENO: creating $ac_file" >&5
20751echo "$as_me: creating $ac_file" >&6;}
20752    rm -f "$ac_file"
20753  fi
20754_ACEOF
20755cat >>$CONFIG_STATUS <<_ACEOF
20756  sed "$ac_vpsub
20757$extrasub
20758_ACEOF
20759cat >>$CONFIG_STATUS <<\_ACEOF
20760:t
20761/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20762s,@configure_input@,$configure_input,;t t
20763s,@srcdir@,$ac_srcdir,;t t
20764s,@abs_srcdir@,$ac_abs_srcdir,;t t
20765s,@top_srcdir@,$ac_top_srcdir,;t t
20766s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20767s,@builddir@,$ac_builddir,;t t
20768s,@abs_builddir@,$ac_abs_builddir,;t t
20769s,@top_builddir@,$ac_top_builddir,;t t
20770s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20771s,@INSTALL@,$ac_INSTALL,;t t
20772" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20773  rm -f $tmp/stdin
20774  if test x"$ac_file" != x-; then
20775    mv $tmp/out $ac_file
20776  else
20777    cat $tmp/out
20778    rm -f $tmp/out
20779  fi
20780
20781done
20782_ACEOF
20783cat >>$CONFIG_STATUS <<\_ACEOF
20784
20785#
20786# CONFIG_HEADER section.
20787#
20788
20789# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20790# NAME is the cpp macro being defined and VALUE is the value it is being given.
20791#
20792# ac_d sets the value in "#define NAME VALUE" lines.
20793ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20794ac_dB='[         ].*$,\1#\2'
20795ac_dC=' '
20796ac_dD=',;t'
20797# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20798ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20799ac_uB='$,\1#\2define\3'
20800ac_uC=' '
20801ac_uD=',;t'
20802
20803for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20804  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20805  case $ac_file in
20806  - | *:- | *:-:* ) # input from stdin
20807        cat >$tmp/stdin
20808        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20809        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20810  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20811        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20812  * )   ac_file_in=$ac_file.in ;;
20813  esac
20814
20815  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20816echo "$as_me: creating $ac_file" >&6;}
20817
20818  # First look for the input files in the build tree, otherwise in the
20819  # src tree.
20820  ac_file_inputs=`IFS=:
20821    for f in $ac_file_in; do
20822      case $f in
20823      -) echo $tmp/stdin ;;
20824      [\\/$]*)
20825         # Absolute (can't be DOS-style, as IFS=:)
20826         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20827echo "$as_me: error: cannot find input file: $f" >&2;}
20828   { (exit 1); exit 1; }; }
20829         # Do quote $f, to prevent DOS paths from being IFS'd.
20830         echo "$f";;
20831      *) # Relative
20832         if test -f "$f"; then
20833           # Build tree
20834           echo "$f"
20835         elif test -f "$srcdir/$f"; then
20836           # Source tree
20837           echo "$srcdir/$f"
20838         else
20839           # /dev/null tree
20840           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20841echo "$as_me: error: cannot find input file: $f" >&2;}
20842   { (exit 1); exit 1; }; }
20843         fi;;
20844      esac
20845    done` || { (exit 1); exit 1; }
20846  # Remove the trailing spaces.
20847  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20848
20849_ACEOF
20850
20851# Transform confdefs.h into two sed scripts, `conftest.defines' and
20852# `conftest.undefs', that substitutes the proper values into
20853# config.h.in to produce config.h.  The first handles `#define'
20854# templates, and the second `#undef' templates.
20855# And first: Protect against being on the right side of a sed subst in
20856# config.status.  Protect against being in an unquoted here document
20857# in config.status.
20858rm -f conftest.defines conftest.undefs
20859# Using a here document instead of a string reduces the quoting nightmare.
20860# Putting comments in sed scripts is not portable.
20861#
20862# `end' is used to avoid that the second main sed command (meant for
20863# 0-ary CPP macros) applies to n-ary macro definitions.
20864# See the Autoconf documentation for `clear'.
20865cat >confdef2sed.sed <<\_ACEOF
20866s/[\\&,]/\\&/g
20867s,[\\$`],\\&,g
20868t clear
20869: clear
20870s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20871t end
20872s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20873: end
20874_ACEOF
20875# If some macros were called several times there might be several times
20876# the same #defines, which is useless.  Nevertheless, we may not want to
20877# sort them, since we want the *last* AC-DEFINE to be honored.
20878uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20879sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20880rm -f confdef2sed.sed
20881
20882# This sed command replaces #undef with comments.  This is necessary, for
20883# example, in the case of _POSIX_SOURCE, which is predefined and required
20884# on some systems where configure will not decide to define it.
20885cat >>conftest.undefs <<\_ACEOF
20886s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20887_ACEOF
20888
20889# Break up conftest.defines because some shells have a limit on the size
20890# of here documents, and old seds have small limits too (100 cmds).
20891echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20892echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20893echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20894echo '  :' >>$CONFIG_STATUS
20895rm -f conftest.tail
20896while grep . conftest.defines >/dev/null
20897do
20898  # Write a limited-size here document to $tmp/defines.sed.
20899  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20900  # Speed up: don't consider the non `#define' lines.
20901  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20902  # Work around the forget-to-reset-the-flag bug.
20903  echo 't clr' >>$CONFIG_STATUS
20904  echo ': clr' >>$CONFIG_STATUS
20905  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20906  echo 'CEOF
20907  sed -f $tmp/defines.sed $tmp/in >$tmp/out
20908  rm -f $tmp/in
20909  mv $tmp/out $tmp/in
20910' >>$CONFIG_STATUS
20911  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20912  rm -f conftest.defines
20913  mv conftest.tail conftest.defines
20914done
20915rm -f conftest.defines
20916echo '  fi # grep' >>$CONFIG_STATUS
20917echo >>$CONFIG_STATUS
20918
20919# Break up conftest.undefs because some shells have a limit on the size
20920# of here documents, and old seds have small limits too (100 cmds).
20921echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20922rm -f conftest.tail
20923while grep . conftest.undefs >/dev/null
20924do
20925  # Write a limited-size here document to $tmp/undefs.sed.
20926  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20927  # Speed up: don't consider the non `#undef'
20928  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20929  # Work around the forget-to-reset-the-flag bug.
20930  echo 't clr' >>$CONFIG_STATUS
20931  echo ': clr' >>$CONFIG_STATUS
20932  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20933  echo 'CEOF
20934  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20935  rm -f $tmp/in
20936  mv $tmp/out $tmp/in
20937' >>$CONFIG_STATUS
20938  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20939  rm -f conftest.undefs
20940  mv conftest.tail conftest.undefs
20941done
20942rm -f conftest.undefs
20943
20944cat >>$CONFIG_STATUS <<\_ACEOF
20945  # Let's still pretend it is `configure' which instantiates (i.e., don't
20946  # use $as_me), people would be surprised to read:
20947  #    /* config.h.  Generated by config.status.  */
20948  if test x"$ac_file" = x-; then
20949    echo "/* Generated by configure.  */" >$tmp/config.h
20950  else
20951    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20952  fi
20953  cat $tmp/in >>$tmp/config.h
20954  rm -f $tmp/in
20955  if test x"$ac_file" != x-; then
20956    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20957      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20958echo "$as_me: $ac_file is unchanged" >&6;}
20959    else
20960      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962         X"$ac_file" : 'X\(//\)[^/]' \| \
20963         X"$ac_file" : 'X\(//\)$' \| \
20964         X"$ac_file" : 'X\(/\)' \| \
20965         .     : '\(.\)' 2>/dev/null ||
20966echo X"$ac_file" |
20967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20968          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20969          /^X\(\/\/\)$/{ s//\1/; q; }
20970          /^X\(\/\).*/{ s//\1/; q; }
20971          s/.*/./; q'`
20972      { if $as_mkdir_p; then
20973    mkdir -p "$ac_dir"
20974  else
20975    as_dir="$ac_dir"
20976    as_dirs=
20977    while test ! -d "$as_dir"; do
20978      as_dirs="$as_dir $as_dirs"
20979      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981         X"$as_dir" : 'X\(//\)[^/]' \| \
20982         X"$as_dir" : 'X\(//\)$' \| \
20983         X"$as_dir" : 'X\(/\)' \| \
20984         .     : '\(.\)' 2>/dev/null ||
20985echo X"$as_dir" |
20986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988          /^X\(\/\/\)$/{ s//\1/; q; }
20989          /^X\(\/\).*/{ s//\1/; q; }
20990          s/.*/./; q'`
20991    done
20992    test ! -n "$as_dirs" || mkdir $as_dirs
20993  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20994echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20995   { (exit 1); exit 1; }; }; }
20996
20997      rm -f $ac_file
20998      mv $tmp/config.h $ac_file
20999    fi
21000  else
21001    cat $tmp/config.h
21002    rm -f $tmp/config.h
21003  fi
21004# Compute $ac_file's index in $config_headers.
21005_am_stamp_count=1
21006for _am_header in $config_headers :; do
21007  case $_am_header in
21008    $ac_file | $ac_file:* )
21009      break ;;
21010    * )
21011      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21012  esac
21013done
21014echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21015$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21016         X$ac_file : 'X\(//\)[^/]' \| \
21017         X$ac_file : 'X\(//\)$' \| \
21018         X$ac_file : 'X\(/\)' \| \
21019         .     : '\(.\)' 2>/dev/null ||
21020echo X$ac_file |
21021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21022          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21023          /^X\(\/\/\)$/{ s//\1/; q; }
21024          /^X\(\/\).*/{ s//\1/; q; }
21025          s/.*/./; q'`/stamp-h$_am_stamp_count
21026done
21027_ACEOF
21028cat >>$CONFIG_STATUS <<\_ACEOF
21029
21030#
21031# CONFIG_COMMANDS section.
21032#
21033for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21034  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21035  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21036  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21037$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21038         X"$ac_dest" : 'X\(//\)[^/]' \| \
21039         X"$ac_dest" : 'X\(//\)$' \| \
21040         X"$ac_dest" : 'X\(/\)' \| \
21041         .     : '\(.\)' 2>/dev/null ||
21042echo X"$ac_dest" |
21043    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21044          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21045          /^X\(\/\/\)$/{ s//\1/; q; }
21046          /^X\(\/\).*/{ s//\1/; q; }
21047          s/.*/./; q'`
21048  { if $as_mkdir_p; then
21049    mkdir -p "$ac_dir"
21050  else
21051    as_dir="$ac_dir"
21052    as_dirs=
21053    while test ! -d "$as_dir"; do
21054      as_dirs="$as_dir $as_dirs"
21055      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21056$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21057         X"$as_dir" : 'X\(//\)[^/]' \| \
21058         X"$as_dir" : 'X\(//\)$' \| \
21059         X"$as_dir" : 'X\(/\)' \| \
21060         .     : '\(.\)' 2>/dev/null ||
21061echo X"$as_dir" |
21062    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21063          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21064          /^X\(\/\/\)$/{ s//\1/; q; }
21065          /^X\(\/\).*/{ s//\1/; q; }
21066          s/.*/./; q'`
21067    done
21068    test ! -n "$as_dirs" || mkdir $as_dirs
21069  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21070echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21071   { (exit 1); exit 1; }; }; }
21072
21073  ac_builddir=.
21074
21075if test "$ac_dir" != .; then
21076  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21077  # A "../" for each directory in $ac_dir_suffix.
21078  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21079else
21080  ac_dir_suffix= ac_top_builddir=
21081fi
21082
21083case $srcdir in
21084  .)  # No --srcdir option.  We are building in place.
21085    ac_srcdir=.
21086    if test -z "$ac_top_builddir"; then
21087       ac_top_srcdir=.
21088    else
21089       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21090    fi ;;
21091  [\\/]* | ?:[\\/]* )  # Absolute path.
21092    ac_srcdir=$srcdir$ac_dir_suffix;
21093    ac_top_srcdir=$srcdir ;;
21094  *) # Relative path.
21095    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21096    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21097esac
21098
21099# Do not use `cd foo && pwd` to compute absolute paths, because
21100# the directories may not exist.
21101case `pwd` in
21102.) ac_abs_builddir="$ac_dir";;
21103*)
21104  case "$ac_dir" in
21105  .) ac_abs_builddir=`pwd`;;
21106  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21107  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21108  esac;;
21109esac
21110case $ac_abs_builddir in
21111.) ac_abs_top_builddir=${ac_top_builddir}.;;
21112*)
21113  case ${ac_top_builddir}. in
21114  .) ac_abs_top_builddir=$ac_abs_builddir;;
21115  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21116  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21117  esac;;
21118esac
21119case $ac_abs_builddir in
21120.) ac_abs_srcdir=$ac_srcdir;;
21121*)
21122  case $ac_srcdir in
21123  .) ac_abs_srcdir=$ac_abs_builddir;;
21124  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21125  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21126  esac;;
21127esac
21128case $ac_abs_builddir in
21129.) ac_abs_top_srcdir=$ac_top_srcdir;;
21130*)
21131  case $ac_top_srcdir in
21132  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21133  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21134  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21135  esac;;
21136esac
21137
21138
21139  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21140echo "$as_me: executing $ac_dest commands" >&6;}
21141  case $ac_dest in
21142    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21143  # Strip MF so we end up with the name of the file.
21144  mf=`echo "$mf" | sed -e 's/:.*$//'`
21145  # Check whether this is an Automake generated Makefile or not.
21146  # We used to match only the files named `Makefile.in', but
21147  # some people rename them; so instead we look at the file content.
21148  # Grep'ing the first line is not enough: some people post-process
21149  # each Makefile.in and add a new line on top of each file to say so.
21150  # So let's grep whole file.
21151  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21152    dirpart=`(dirname "$mf") 2>/dev/null ||
21153$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21154         X"$mf" : 'X\(//\)[^/]' \| \
21155         X"$mf" : 'X\(//\)$' \| \
21156         X"$mf" : 'X\(/\)' \| \
21157         .     : '\(.\)' 2>/dev/null ||
21158echo X"$mf" |
21159    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21160          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21161          /^X\(\/\/\)$/{ s//\1/; q; }
21162          /^X\(\/\).*/{ s//\1/; q; }
21163          s/.*/./; q'`
21164  else
21165    continue
21166  fi
21167  # Extract the definition of DEPDIR, am__include, and am__quote
21168  # from the Makefile without running `make'.
21169  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21170  test -z "$DEPDIR" && continue
21171  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21172  test -z "am__include" && continue
21173  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21174  # When using ansi2knr, U may be empty or an underscore; expand it
21175  U=`sed -n 's/^U = //p' < "$mf"`
21176  # Find all dependency output files, they are included files with
21177  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21178  # simplest approach to changing $(DEPDIR) to its actual value in the
21179  # expansion.
21180  for file in `sed -n "
21181    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21182       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21183    # Make sure the directory exists.
21184    test -f "$dirpart/$file" && continue
21185    fdir=`(dirname "$file") 2>/dev/null ||
21186$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21187         X"$file" : 'X\(//\)[^/]' \| \
21188         X"$file" : 'X\(//\)$' \| \
21189         X"$file" : 'X\(/\)' \| \
21190         .     : '\(.\)' 2>/dev/null ||
21191echo X"$file" |
21192    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21193          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21194          /^X\(\/\/\)$/{ s//\1/; q; }
21195          /^X\(\/\).*/{ s//\1/; q; }
21196          s/.*/./; q'`
21197    { if $as_mkdir_p; then
21198    mkdir -p $dirpart/$fdir
21199  else
21200    as_dir=$dirpart/$fdir
21201    as_dirs=
21202    while test ! -d "$as_dir"; do
21203      as_dirs="$as_dir $as_dirs"
21204      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21205$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21206         X"$as_dir" : 'X\(//\)[^/]' \| \
21207         X"$as_dir" : 'X\(//\)$' \| \
21208         X"$as_dir" : 'X\(/\)' \| \
21209         .     : '\(.\)' 2>/dev/null ||
21210echo X"$as_dir" |
21211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21212          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21213          /^X\(\/\/\)$/{ s//\1/; q; }
21214          /^X\(\/\).*/{ s//\1/; q; }
21215          s/.*/./; q'`
21216    done
21217    test ! -n "$as_dirs" || mkdir $as_dirs
21218  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21219echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21220   { (exit 1); exit 1; }; }; }
21221
21222    # echo "creating $dirpart/$file"
21223    echo '# dummy' > "$dirpart/$file"
21224  done
21225done
21226 ;;
21227  esac
21228done
21229_ACEOF
21230
21231cat >>$CONFIG_STATUS <<\_ACEOF
21232
21233{ (exit 0); exit 0; }
21234_ACEOF
21235chmod +x $CONFIG_STATUS
21236ac_clean_files=$ac_clean_files_save
21237
21238
21239# configure is writing to config.log, and then calls config.status.
21240# config.status does its own redirection, appending to config.log.
21241# Unfortunately, on DOS this fails, as config.log is still kept open
21242# by configure, so config.status won't be able to write to it; its
21243# output is simply discarded.  So we exec the FD to /dev/null,
21244# effectively closing config.log, so it can be properly (re)opened and
21245# appended to by config.status.  When coming back to configure, we
21246# need to make the FD available again.
21247if test "$no_create" != yes; then
21248  ac_cs_success=:
21249  ac_config_status_args=
21250  test "$silent" = yes &&
21251    ac_config_status_args="$ac_config_status_args --quiet"
21252  exec 5>/dev/null
21253  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21254  exec 5>>config.log
21255  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21256  # would make configure fail if this is the last instruction.
21257  $ac_cs_success || { (exit 1); exit 1; }
21258fi
21259
Note: See TracBrowser for help on using the repository browser.