1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL 1.4.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76	 X"$0" : 'X\(//\)$' \| \
77	 X"$0" : 'X\(/\)$' \| \
78	 .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
82  	  /^X\/\(\/\).*/{ s//\1/; q; }
83  	  s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144	 case $as_dir in
145	 /*)
146	   if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154	     CONFIG_SHELL=$as_dir/$as_base
155	     export CONFIG_SHELL
156	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157	   fi;;
158	 esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='	' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" 	$as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='1.4.1'
433PACKAGE_STRING='ThirdPartyASL 1.4.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A HOST_TYPE HOST_IS_CYGWIN_TRUE HOST_IS_CYGWIN_FALSE ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834	      localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874	 X"$0" : 'X\(//\)[^/]' \| \
875	 X"$0" : 'X\(//\)$' \| \
876	 X"$0" : 'X\(/\)' \| \
877	 .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881  	  /^X\(\/\/\)$/{ s//\1/; q; }
882  	  /^X\(\/\).*/{ s//\1/; q; }
883  	  s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL 1.4.1 to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017			  [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019			  [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL 1.4.1:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068
1069  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075			  (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --disable-dependency-linking
1082                          disable linking library dependencies into shared
1083                          libraries
1084  --disable-pkg-config    disable use of pkg-config (if available)
1085
1086Optional Packages:
1087  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089  --with-asl-verbosity specify the debug verbosity level for project ASL
1090  --with-asl-checklevel specify the sanity check level for project ASL
1091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092  --with-pic              try to use only PIC/non-PIC objects [default=use
1093                          both]
1094  --with-tags[=TAGS]
1095                          include additional configurations [automatic]
1096  --with-coin-instdir     prefix of installation directory for precompiled
1097                          COIN packages
1098
1099Some influential environment variables:
1100  CDEFS       Additional -D flags to be used when compiling C code.
1101  ADD_CFLAGS  Additional C compiler options
1102  DBG_CFLAGS  Debug C compiler options
1103  OPT_CFLAGS  Optimize C compiler options
1104  CC          C compiler command
1105  CFLAGS      C compiler flags
1106  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107              nonstandard directory <lib dir>
1108  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109              headers in a nonstandard directory <include dir>
1110  MPICC       C MPI Compiler
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  PKG_CONFIG  path to pkg-config utility
1118  ASLMAKEFLAGS
1119              Compilation flags necessary for compiling the AMPL solver
1120              library
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
1125Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130  # If there are subdirs, report their specific --help.
1131  ac_popdir=`pwd`
1132  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133    test -d $ac_dir || continue
1134    ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138  # A "../" for each directory in $ac_dir_suffix.
1139  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141  ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145  .)  # No --srcdir option.  We are building in place.
1146    ac_srcdir=.
1147    if test -z "$ac_top_builddir"; then
1148       ac_top_srcdir=.
1149    else
1150       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151    fi ;;
1152  [\\/]* | ?:[\\/]* )  # Absolute path.
1153    ac_srcdir=$srcdir$ac_dir_suffix;
1154    ac_top_srcdir=$srcdir ;;
1155  *) # Relative path.
1156    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165  case "$ac_dir" in
1166  .) ac_abs_builddir=`pwd`;;
1167  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169  esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174  case ${ac_top_builddir}. in
1175  .) ac_abs_top_builddir=$ac_abs_builddir;;
1176  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178  esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183  case $ac_srcdir in
1184  .) ac_abs_srcdir=$ac_abs_builddir;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192  case $ac_top_srcdir in
1193  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196  esac;;
1197esac
1198
1199    cd $ac_dir
1200    # Check for guested configure; otherwise get Cygnus style configure.
1201    if test -f $ac_srcdir/configure.gnu; then
1202      echo
1203      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1204    elif test -f $ac_srcdir/configure; then
1205      echo
1206      $SHELL $ac_srcdir/configure  --help=recursive
1207    elif test -f $ac_srcdir/configure.ac ||
1208	   test -f $ac_srcdir/configure.in; then
1209      echo
1210      $ac_configure --help
1211    else
1212      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213    fi
1214    cd $ac_popdir
1215  done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220  cat <<\_ACEOF
1221ThirdPartyASL configure 1.4.1
1222generated by GNU Autoconf 2.59
1223
1224Copyright (C) 2003 Free Software Foundation, Inc.
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227
1228
1229Copyright 2006, 2007, 2009 International Business Machines and others.
1230All Rights Reserved.
1231This file is part of the open source package Coin which is distributed
1232under the Eclipse Public License.
1233_ACEOF
1234  exit 0
1235fi
1236exec 5>config.log
1237cat >&5 <<_ACEOF
1238This file contains any messages produced by compilers while
1239running configure, to aid debugging if configure makes a mistake.
1240
1241It was created by ThirdPartyASL $as_me 1.4.1, which was
1242generated by GNU Autoconf 2.59.  Invocation command line was
1243
1244  $ $0 $@
1245
1246_ACEOF
1247{
1248cat <<_ASUNAME
1249## --------- ##
1250## Platform. ##
1251## --------- ##
1252
1253hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1254uname -m = `(uname -m) 2>/dev/null || echo unknown`
1255uname -r = `(uname -r) 2>/dev/null || echo unknown`
1256uname -s = `(uname -s) 2>/dev/null || echo unknown`
1257uname -v = `(uname -v) 2>/dev/null || echo unknown`
1258
1259/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1260/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1261
1262/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1263/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1264/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1265hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1266/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1267/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1268/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1269
1270_ASUNAME
1271
1272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273for as_dir in $PATH
1274do
1275  IFS=$as_save_IFS
1276  test -z "$as_dir" && as_dir=.
1277  echo "PATH: $as_dir"
1278done
1279
1280} >&5
1281
1282cat >&5 <<_ACEOF
1283
1284
1285## ----------- ##
1286## Core tests. ##
1287## ----------- ##
1288
1289_ACEOF
1290
1291
1292# Keep a trace of the command line.
1293# Strip out --no-create and --no-recursion so they do not pile up.
1294# Strip out --silent because we don't want to record it for future runs.
1295# Also quote any args containing shell meta-characters.
1296# Make two passes to allow for proper duplicate-argument suppression.
1297ac_configure_args=
1298ac_configure_args0=
1299ac_configure_args1=
1300ac_sep=
1301ac_must_keep_next=false
1302for ac_pass in 1 2
1303do
1304  for ac_arg
1305  do
1306    case $ac_arg in
1307    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1308    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309    | -silent | --silent | --silen | --sile | --sil)
1310      continue ;;
1311    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1313    esac
1314    case $ac_pass in
1315    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1316    2)
1317      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1318      if test $ac_must_keep_next = true; then
1319	ac_must_keep_next=false # Got value, back to normal.
1320      else
1321	case $ac_arg in
1322	  *=* | --config-cache | -C | -disable-* | --disable-* \
1323	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1324	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1325	  | -with-* | --with-* | -without-* | --without-* | --x)
1326	    case "$ac_configure_args0 " in
1327	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1328	    esac
1329	    ;;
1330	  -* ) ac_must_keep_next=true ;;
1331	esac
1332      fi
1333      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1334      # Get rid of the leading space.
1335      ac_sep=" "
1336      ;;
1337    esac
1338  done
1339done
1340$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1341$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1342
1343# When interrupted or exit'd, cleanup temporary files, and complete
1344# config.log.  We remove comments because anyway the quotes in there
1345# would cause problems or look ugly.
1346# WARNING: Be sure not to use single quotes in there, as some shells,
1347# such as our DU 5.0 friend, will then `close' the trap.
1348trap 'exit_status=$?
1349  # Save into config.log some information that might help in debugging.
1350  {
1351    echo
1352
1353    cat <<\_ASBOX
1354## ---------------- ##
1355## Cache variables. ##
1356## ---------------- ##
1357_ASBOX
1358    echo
1359    # The following way of writing the cache mishandles newlines in values,
1360{
1361  (set) 2>&1 |
1362    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1363    *ac_space=\ *)
1364      sed -n \
1365	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1366	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1367      ;;
1368    *)
1369      sed -n \
1370	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1371      ;;
1372    esac;
1373}
1374    echo
1375
1376    cat <<\_ASBOX
1377## ----------------- ##
1378## Output variables. ##
1379## ----------------- ##
1380_ASBOX
1381    echo
1382    for ac_var in $ac_subst_vars
1383    do
1384      eval ac_val=$`echo $ac_var`
1385      echo "$ac_var='"'"'$ac_val'"'"'"
1386    done | sort
1387    echo
1388
1389    if test -n "$ac_subst_files"; then
1390      cat <<\_ASBOX
1391## ------------- ##
1392## Output files. ##
1393## ------------- ##
1394_ASBOX
1395      echo
1396      for ac_var in $ac_subst_files
1397      do
1398	eval ac_val=$`echo $ac_var`
1399	echo "$ac_var='"'"'$ac_val'"'"'"
1400      done | sort
1401      echo
1402    fi
1403
1404    if test -s confdefs.h; then
1405      cat <<\_ASBOX
1406## ----------- ##
1407## confdefs.h. ##
1408## ----------- ##
1409_ASBOX
1410      echo
1411      sed "/^$/d" confdefs.h | sort
1412      echo
1413    fi
1414    test "$ac_signal" != 0 &&
1415      echo "$as_me: caught signal $ac_signal"
1416    echo "$as_me: exit $exit_status"
1417  } >&5
1418  rm -f core *.core &&
1419  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1420    exit $exit_status
1421     ' 0
1422for ac_signal in 1 2 13 15; do
1423  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1424done
1425ac_signal=0
1426
1427# confdefs.h avoids OS command line length limits that DEFS can exceed.
1428rm -rf conftest* confdefs.h
1429# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1430echo >confdefs.h
1431
1432# Predefined preprocessor variables.
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_NAME "$PACKAGE_NAME"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_VERSION "$PACKAGE_VERSION"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_STRING "$PACKAGE_STRING"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1456_ACEOF
1457
1458
1459# Let the site file select an alternate cache file if it wants to.
1460# Prefer explicitly selected file to automatically selected ones.
1461if test -z "$CONFIG_SITE"; then
1462  if test "x$prefix" != xNONE; then
1463    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1464  else
1465    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1466  fi
1467fi
1468for ac_site_file in $CONFIG_SITE; do
1469  if test -r "$ac_site_file"; then
1470    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1471echo "$as_me: loading site script $ac_site_file" >&6;}
1472    sed 's/^/| /' "$ac_site_file" >&5
1473    . "$ac_site_file"
1474  fi
1475done
1476
1477if test -r "$cache_file"; then
1478  # Some versions of bash will fail to source /dev/null (special
1479  # files actually), so we avoid doing that.
1480  if test -f "$cache_file"; then
1481    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1482echo "$as_me: loading cache $cache_file" >&6;}
1483    case $cache_file in
1484      [\\/]* | ?:[\\/]* ) . $cache_file;;
1485      *)                      . ./$cache_file;;
1486    esac
1487  fi
1488else
1489  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1490echo "$as_me: creating cache $cache_file" >&6;}
1491  >$cache_file
1492fi
1493
1494# Check that the precious variables saved in the cache have kept the same
1495# value.
1496ac_cache_corrupted=false
1497for ac_var in `(set) 2>&1 |
1498	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1499  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1500  eval ac_new_set=\$ac_env_${ac_var}_set
1501  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1502  eval ac_new_val="\$ac_env_${ac_var}_value"
1503  case $ac_old_set,$ac_new_set in
1504    set,)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,set)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,);;
1513    *)
1514      if test "x$ac_old_val" != "x$ac_new_val"; then
1515	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1516echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1517	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1518echo "$as_me:   former value:  $ac_old_val" >&2;}
1519	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1520echo "$as_me:   current value: $ac_new_val" >&2;}
1521	ac_cache_corrupted=:
1522      fi;;
1523  esac
1524  # Pass precious variables to config.status.
1525  if test "$ac_new_set" = set; then
1526    case $ac_new_val in
1527    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1528      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1529    *) ac_arg=$ac_var=$ac_new_val ;;
1530    esac
1531    case " $ac_configure_args " in
1532      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1533      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1534    esac
1535  fi
1536done
1537if $ac_cache_corrupted; then
1538  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1539echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1540  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1541echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1542   { (exit 1); exit 1; }; }
1543fi
1544
1545ac_ext=c
1546ac_cpp='$CPP $CPPFLAGS'
1547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1549ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580# List one file in the package so that the configure script can test
1581# whether the package is actually there
1582
1583
1584# Where should everything be installed by default?  Here, we want it
1585# to be installed directly in 'bin', 'lib', 'include' subdirectories
1586# of the directory where configure is run.  The default would be
1587# /usr/local.
1588
1589
1590#############################################################################
1591#                         Standard build tool stuff                         #
1592#############################################################################
1593
1594# Get the system type
1595ac_aux_dir=
1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597  if test -f $ac_dir/install-sh; then
1598    ac_aux_dir=$ac_dir
1599    ac_install_sh="$ac_aux_dir/install-sh -c"
1600    break
1601  elif test -f $ac_dir/install.sh; then
1602    ac_aux_dir=$ac_dir
1603    ac_install_sh="$ac_aux_dir/install.sh -c"
1604    break
1605  elif test -f $ac_dir/shtool; then
1606    ac_aux_dir=$ac_dir
1607    ac_install_sh="$ac_aux_dir/shtool install -c"
1608    break
1609  fi
1610done
1611if test -z "$ac_aux_dir"; then
1612  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620# Make sure we can run config.sub.
1621$ac_config_sub sun4 >/dev/null 2>&1 ||
1622  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624   { (exit 1); exit 1; }; }
1625
1626echo "$as_me:$LINENO: checking build system type" >&5
1627echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628if test "${ac_cv_build+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  ac_cv_build_alias=$build_alias
1632test -z "$ac_cv_build_alias" &&
1633  ac_cv_build_alias=`$ac_config_guess`
1634test -z "$ac_cv_build_alias" &&
1635  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637   { (exit 1); exit 1; }; }
1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641   { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645echo "${ECHO_T}$ac_cv_build" >&6
1646build=$ac_cv_build
1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652
1653# A bit of initial setup.
1654
1655# As backup, we make sure we don't loose an FLIBS if it has been set
1656# by the user
1657save_FLIBS="$FLIBS"
1658
1659# A useful makefile conditional that is always false
1660
1661
1662if false; then
1663  ALWAYS_FALSE_TRUE=
1664  ALWAYS_FALSE_FALSE='#'
1665else
1666  ALWAYS_FALSE_TRUE='#'
1667  ALWAYS_FALSE_FALSE=
1668fi
1669
1670
1671# We set the following variable so that we know later in AC_COIN_FINALIZE
1672# that we are in a project main directory
1673coin_projectdir=yes
1674
1675# Set the project's version numbers
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define ASL_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1684  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1685  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1686  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1687  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1688  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1689
1690cat >>confdefs.h <<_ACEOF
1691#define ASL_VERSION_MAJOR $coin_majorver
1692_ACEOF
1693
1694
1695cat >>confdefs.h <<_ACEOF
1696#define ASL_VERSION_MINOR $coin_minorver
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define ASL_VERSION_RELEASE $coin_releasever
1702_ACEOF
1703
1704
1705  # We use the following variable to have a string with the upper case
1706  # version of the project name
1707  COIN_PRJCT=ASL
1708
1709  # Set the project's SVN revision number. The complicated sed expression
1710  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1711  # as a single number.
1712  # Extract the first word of "svnversion", so it can be a program name with args.
1713set dummy svnversion; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_have_svnversion+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  if test -n "$have_svnversion"; then
1720  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  for ac_exec_ext in '' $ac_executable_extensions; do
1728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729    ac_cv_prog_have_svnversion="yes"
1730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731    break 2
1732  fi
1733done
1734done
1735
1736  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1737fi
1738fi
1739have_svnversion=$ac_cv_prog_have_svnversion
1740if test -n "$have_svnversion"; then
1741  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1742echo "${ECHO_T}$have_svnversion" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748  if test "x$have_svnversion" = xyes; then
1749
1750    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1751    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1752      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1753
1754cat >>confdefs.h <<_ACEOF
1755#define ASL_SVN_REV $ASL_SVN_REV
1756_ACEOF
1757
1758    fi
1759  fi
1760
1761
1762
1763# Capture libtool library version, if given.
1764 coin_libversion=5:1:4
1765
1766
1767
1768
1769# Turn off warnings and pedantic mode since they could make trouble on some
1770# platforms, and we can't fix issues in third-party code.
1771coin_skip_warn_cflags=yes
1772
1773# Check if user wants to produce debugging code
1774
1775echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1776echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1777
1778# Check whether --enable-debug or --disable-debug was given.
1779if test "${enable_debug+set}" = set; then
1780  enableval="$enable_debug"
1781  case "${enableval}" in
1782   yes) coin_debug_compile=true
1783        if test "${enable_shared+set}" = set; then :; else
1784          enable_shared=no
1785        fi
1786        ;;
1787   no)  coin_debug_compile=false
1788        ;;
1789   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1790echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1791   { (exit 1); exit 1; }; }
1792        ;;
1793esac
1794else
1795  coin_debug_compile=false
1796fi;
1797
1798# Check whether --enable-debug-asl or --disable-debug-asl was given.
1799if test "${enable_debug_asl+set}" = set; then
1800  enableval="$enable_debug_asl"
1801  case "${enableval}" in
1802    yes) coin_debug_compile=true
1803         ;;
1804    no)  coin_debug_compile=false
1805         ;;
1806    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1807echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1808   { (exit 1); exit 1; }; }
1809         ;;
1810 esac
1811else
1812  :
1813fi;
1814
1815 # m4_ifvaln([ASL],
1816
1817if test $coin_debug_compile = true; then
1818  echo "$as_me:$LINENO: result: yes" >&5
1819echo "${ECHO_T}yes" >&6
1820else
1821  echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6
1823fi
1824
1825
1826# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1827if test "${with_asl_verbosity+set}" = set; then
1828  withval="$with_asl_verbosity"
1829  if test "$withval" = yes; then
1830                withval=1
1831              fi
1832              coin_asl_verbosity=$withval
1833else
1834  coin_asl_verbosity=0
1835fi;
1836
1837cat >>confdefs.h <<_ACEOF
1838#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1839_ACEOF
1840
1841
1842
1843# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1844if test "${with_asl_checklevel+set}" = set; then
1845  withval="$with_asl_checklevel"
1846  if test "$withval" = yes; then
1847                withval=1
1848              fi
1849              coin_asl_checklevel=$withval
1850else
1851  coin_asl_checklevel=0
1852fi;
1853
1854cat >>confdefs.h <<_ACEOF
1855#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1856_ACEOF
1857
1858
1859 # m4_ifvaln([ASL],
1860
1861
1862
1863# We need egrep and ln -s somewhere
1864echo "$as_me:$LINENO: checking for egrep" >&5
1865echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1866if test "${ac_cv_prog_egrep+set}" = set; then
1867  echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1870    then ac_cv_prog_egrep='grep -E'
1871    else ac_cv_prog_egrep='egrep'
1872    fi
1873fi
1874echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1875echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1876 EGREP=$ac_cv_prog_egrep
1877
1878
1879echo "$as_me:$LINENO: checking whether ln -s works" >&5
1880echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1881LN_S=$as_ln_s
1882if test "$LN_S" = "ln -s"; then
1883  echo "$as_me:$LINENO: result: yes" >&5
1884echo "${ECHO_T}yes" >&6
1885else
1886  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1887echo "${ECHO_T}no, using $LN_S" >&6
1888fi
1889
1890
1891# Get the name of the C compiler and compiler flags
1892
1893
1894  # for backward compatibility
1895  # Check whether --enable-doscompile or --disable-doscompile was given.
1896if test "${enable_doscompile+set}" = set; then
1897  enableval="$enable_doscompile"
1898  enable_doscompile=$enableval
1899else
1900  enable_doscompile=no
1901fi;
1902
1903  # Check whether --enable-msvc or --disable-msvc was given.
1904if test "${enable_msvc+set}" = set; then
1905  enableval="$enable_msvc"
1906  enable_msvc=$enableval
1907else
1908  enable_msvc=no
1909     if test "$enable_doscompile" = msvc ; then
1910       enable_msvc=yes
1911     elif test "$enable_doscompile" != no ; then
1912       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1913echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1914   { (exit 1); exit 1; }; }
1915     fi
1916
1917fi;
1918
1919  if test "$enable_msvc" = MD; then
1920    enable_shared=yes
1921    enable_msvc=yes
1922  fi
1923
1924  if test "$enable_msvc" = yes; then
1925    case $build in
1926      *-cygwin* | *-mingw*) ;;
1927      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1928echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1929   { (exit 1); exit 1; }; } ;;
1930    esac
1931  fi
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942# For consistency, we set the C compiler to the same value of the C++
1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    clang* ) ;;
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957
1958
1959
1960
1961
1962coin_has_cc=yes
1963
1964save_cflags="$CFLAGS"
1965
1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1969# compiler. In this case, put cc after gcc.
1970
1971case $build in
1972  *-cygwin* | *-mingw*)
1973  	     if test "$enable_msvc" = yes ; then
1974	       comps="icl cl gcc"
1975	     else
1976	       comps="gcc icl cl"
1977	     fi ;;
1978  *-*-solaris*)
1979	     # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$sol_cc_compiler"; then
1987  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1988else
1989  ac_prog_rejected=no
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993  IFS=$as_save_IFS
1994  test -z "$as_dir" && as_dir=.
1995  for ac_exec_ext in '' $ac_executable_extensions; do
1996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998       ac_prog_rejected=yes
1999       continue
2000     fi
2001    ac_cv_prog_sol_cc_compiler="cc"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008if test $ac_prog_rejected = yes; then
2009  # We found a bogon in the path, so make sure we never use it.
2010  set dummy $ac_cv_prog_sol_cc_compiler
2011  shift
2012  if test $# != 0; then
2013    # We chose a different compiler from the bogus one.
2014    # However, it has the same basename, so the bogon will be chosen
2015    # first if we set sol_cc_compiler to just the basename; use the full file name.
2016    shift
2017    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2018  fi
2019fi
2020fi
2021fi
2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2023if test -n "$sol_cc_compiler"; then
2024  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2025echo "${ECHO_T}$sol_cc_compiler" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031	     if test "$sol_cc_compiler" = "cc" ; then
2032	       comps="cc xlc gcc pgcc icc"
2033	     else
2034	       comps="xlc gcc pgcc icc cc"
2035	     fi
2036	     ;;
2037  *-*-darwin*) comps="clang gcc cc" ;;
2038  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2039  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2040  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2041esac
2042
2043# We delete the cached value, since the test might not have been
2044# performed with our choice of compilers earlier
2045$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2046# AC_MSG_NOTICE([C compiler candidates: $comps])
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  for ac_prog in $comps
2054  do
2055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070  for ac_exec_ext in '' $ac_executable_extensions; do
2071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078
2079fi
2080fi
2081CC=$ac_cv_prog_CC
2082if test -n "$CC"; then
2083  echo "$as_me:$LINENO: result: $CC" >&5
2084echo "${ECHO_T}$CC" >&6
2085else
2086  echo "$as_me:$LINENO: result: no" >&5
2087echo "${ECHO_T}no" >&6
2088fi
2089
2090    test -n "$CC" && break
2091  done
2092fi
2093if test -z "$CC"; then
2094  ac_ct_CC=$CC
2095  for ac_prog in $comps
2096do
2097  # Extract the first word of "$ac_prog", so it can be a program name with args.
2098set dummy $ac_prog; ac_word=$2
2099echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test -n "$ac_ct_CC"; then
2105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110  IFS=$as_save_IFS
2111  test -z "$as_dir" && as_dir=.
2112  for ac_exec_ext in '' $ac_executable_extensions; do
2113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114    ac_cv_prog_ac_ct_CC="$ac_prog"
2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116    break 2
2117  fi
2118done
2119done
2120
2121fi
2122fi
2123ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124if test -n "$ac_ct_CC"; then
2125  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126echo "${ECHO_T}$ac_ct_CC" >&6
2127else
2128  echo "$as_me:$LINENO: result: no" >&5
2129echo "${ECHO_T}no" >&6
2130fi
2131
2132  test -n "$ac_ct_CC" && break
2133done
2134
2135  CC=$ac_ct_CC
2136fi
2137
2138
2139test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140See \`config.log' for more details." >&5
2141echo "$as_me: error: no acceptable C compiler found in \$PATH
2142See \`config.log' for more details." >&2;}
2143   { (exit 1); exit 1; }; }
2144
2145# Provide some information about the compiler.
2146echo "$as_me:$LINENO:" \
2147     "checking for C compiler version" >&5
2148ac_compiler=`set X $ac_compile; echo $2`
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150  (eval $ac_compiler --version </dev/null >&5) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }
2154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155  (eval $ac_compiler -v </dev/null >&5) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160  (eval $ac_compiler -V </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164
2165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171
2172int
2173main ()
2174{
2175
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
2181ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
2185echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189  (eval $ac_link_default) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; then
2193  # Find the output, starting from the most likely.  This scheme is
2194# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195# resort.
2196
2197# Be careful to initialize this variable, since it used to be cached.
2198# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199ac_cv_exeext=
2200# b.out is created by i960 compilers.
2201for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202do
2203  test -f "$ac_file" || continue
2204  case $ac_file in
2205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206	;;
2207    conftest.$ac_ext )
2208	# This is the source file.
2209	;;
2210    [ab].out )
2211	# We found the default executable, but exeext='' is most
2212	# certainly right.
2213	break;;
2214    *.* )
2215	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216	# FIXME: I believe we export ac_cv_exeext for Libtool,
2217	# but it would be cool to find out if it's true.  Does anybody
2218	# maintain Libtool? --akim.
2219	export ac_cv_exeext
2220	break;;
2221    * )
2222	break;;
2223  esac
2224done
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230See \`config.log' for more details." >&5
2231echo "$as_me: error: C compiler cannot create executables
2232See \`config.log' for more details." >&2;}
2233   { (exit 77); exit 77; }; }
2234fi
2235
2236ac_exeext=$ac_cv_exeext
2237echo "$as_me:$LINENO: result: $ac_file" >&5
2238echo "${ECHO_T}$ac_file" >&6
2239
2240# Check the compiler produces executables we can run.  If not, either
2241# the compiler is broken, or we cross compile.
2242echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245# If not cross compiling, check that we can run a simple program.
2246if test "$cross_compiling" != yes; then
2247  if { ac_try='./$ac_file'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253    cross_compiling=no
2254  else
2255    if test "$cross_compiling" = maybe; then
2256	cross_compiling=yes
2257    else
2258	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259If you meant to cross compile, use \`--host'.
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&2;}
2264   { (exit 1); exit 1; }; }
2265    fi
2266  fi
2267fi
2268echo "$as_me:$LINENO: result: yes" >&5
2269echo "${ECHO_T}yes" >&6
2270
2271rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272ac_clean_files=$ac_clean_files_save
2273# Check the compiler produces executables we can run.  If not, either
2274# the compiler is broken, or we cross compile.
2275echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278echo "${ECHO_T}$cross_compiling" >&6
2279
2280echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283  (eval $ac_link) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; then
2287  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289# work properly (i.e., refer to `conftest.exe'), while it won't with
2290# `rm'.
2291for ac_file in conftest.exe conftest conftest.*; do
2292  test -f "$ac_file" || continue
2293  case $ac_file in
2294    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296	  export ac_cv_exeext
2297	  break;;
2298    * ) break;;
2299  esac
2300done
2301else
2302  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&2;}
2306   { (exit 1); exit 1; }; }
2307fi
2308
2309rm -f conftest$ac_cv_exeext
2310echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
2316echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318if test "${ac_cv_objext+set}" = set; then
2319  echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321  cat >conftest.$ac_ext <<_ACEOF
2322/* confdefs.h.  */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h.  */
2327
2328int
2329main ()
2330{
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338  (eval $ac_compile) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; then
2342  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343  case $ac_file in
2344    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346       break;;
2347  esac
2348done
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354See \`config.log' for more details." >&5
2355echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358fi
2359
2360rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361fi
2362echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363echo "${ECHO_T}$ac_cv_objext" >&6
2364OBJEXT=$ac_cv_objext
2365ac_objext=$OBJEXT
2366echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377
2378int
2379main ()
2380{
2381#ifndef __GNUC__
2382       choke me
2383#endif
2384
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398	 { ac_try='test -z "$ac_c_werror_flag"
2399			 || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405	 { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_compiler_gnu=yes
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_compiler_gnu=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427CFLAGS="-g"
2428echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_g+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439
2440int
2441main ()
2442{
2443
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450  (eval $ac_compile) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457	 { ac_try='test -z "$ac_c_werror_flag"
2458			 || test ! -s conftest.err'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; } &&
2464	 { ac_try='test -s conftest.$ac_objext'
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  ac_cv_prog_cc_g=yes
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475ac_cv_prog_cc_g=no
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481if test "$ac_test_CFLAGS" = set; then
2482  CFLAGS=$ac_save_CFLAGS
2483elif test $ac_cv_prog_cc_g = yes; then
2484  if test "$GCC" = yes; then
2485    CFLAGS="-g -O2"
2486  else
2487    CFLAGS="-g"
2488  fi
2489else
2490  if test "$GCC" = yes; then
2491    CFLAGS="-O2"
2492  else
2493    CFLAGS=
2494  fi
2495fi
2496echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  ac_cv_prog_cc_stdc=no
2502ac_save_CC=$CC
2503cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509#include <stdarg.h>
2510#include <stdio.h>
2511#include <sys/types.h>
2512#include <sys/stat.h>
2513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514struct buf { int x; };
2515FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516static char *e (p, i)
2517     char **p;
2518     int i;
2519{
2520  return p[i];
2521}
2522static char *f (char * (*g) (char **, int), char **p, ...)
2523{
2524  char *s;
2525  va_list v;
2526  va_start (v,p);
2527  s = g (p, va_arg (v,int));
2528  va_end (v);
2529  return s;
2530}
2531
2532/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533   function prototypes and stuff, but not '\xHH' hex character constants.
2534   These don't provoke an error unfortunately, instead are silently treated
2535   as 'x'.  The following induces an error, until -std1 is added to get
2536   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537   array size at least.  It's necessary to write '\x00'==0 to get something
2538   that's true only with -std1.  */
2539int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541int test (int i, double x);
2542struct s1 {int (*f) (int a);};
2543struct s2 {int (*f) (double a);};
2544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545int argc;
2546char **argv;
2547int
2548main ()
2549{
2550return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555# Don't try gcc -ansi; that turns off useful extensions and
2556# breaks some systems' header files.
2557# AIX			-qlanglvl=ansi
2558# Ultrix and OSF/1	-std1
2559# HP-UX 10.20 and later	-Ae
2560# HP-UX older versions	-Aa -D_HPUX_SOURCE
2561# SVR4			-Xc -D__EXTENSIONS__
2562for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563do
2564  CC="$ac_save_CC $ac_arg"
2565  rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574	 { ac_try='test -z "$ac_c_werror_flag"
2575			 || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581	 { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  ac_cv_prog_cc_stdc=$ac_arg
2588break
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593fi
2594rm -f conftest.err conftest.$ac_objext
2595done
2596rm -f conftest.$ac_ext conftest.$ac_objext
2597CC=$ac_save_CC
2598
2599fi
2600
2601case "x$ac_cv_prog_cc_stdc" in
2602  x|xno)
2603    echo "$as_me:$LINENO: result: none needed" >&5
2604echo "${ECHO_T}none needed" >&6 ;;
2605  *)
2606    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608    CC="$CC $ac_cv_prog_cc_stdc" ;;
2609esac
2610
2611# Some people use a C++ compiler to compile C.  Since we use `exit',
2612# in C++ we need to declare it.  In case someone uses the same compiler
2613# for both compiling C and C++ we need to have the C++ compiler decide
2614# the declaration of exit, since it's the most demanding environment.
2615cat >conftest.$ac_ext <<_ACEOF
2616#ifndef __cplusplus
2617  choke me
2618#endif
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } &&
2629	 { ac_try='test -z "$ac_c_werror_flag"
2630			 || test ! -s conftest.err'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; } &&
2636	 { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  for ac_declaration in \
2643   '' \
2644   'extern "C" void std::exit (int) throw (); using std::exit;' \
2645   'extern "C" void std::exit (int); using std::exit;' \
2646   'extern "C" void exit (int) throw ();' \
2647   'extern "C" void exit (int);' \
2648   'void exit (int);'
2649do
2650  cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h.  */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h.  */
2656$ac_declaration
2657#include <stdlib.h>
2658int
2659main ()
2660{
2661exit (42);
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } &&
2675	 { ac_try='test -z "$ac_c_werror_flag"
2676			 || test ! -s conftest.err'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; } &&
2682	 { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  :
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693continue
2694fi
2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696  cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702$ac_declaration
2703int
2704main ()
2705{
2706exit (42);
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720	 { ac_try='test -z "$ac_c_werror_flag"
2721			 || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727	 { ac_try='test -s conftest.$ac_objext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  break
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740done
2741rm -f conftest*
2742if test -n "$ac_declaration"; then
2743  echo '#ifdef __cplusplus' >>confdefs.h
2744  echo $ac_declaration      >>confdefs.h
2745  echo '#endif'             >>confdefs.h
2746fi
2747
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760if test -z "$CC" ; then
2761  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2762echo "$as_me: error: Failed to find a C compiler!" >&2;}
2763   { (exit 1); exit 1; }; }
2764fi
2765# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2766case "$CC" in
2767  clang* ) ;;
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774  * )
2775    if test x"$CYGPATH_W" = x ; then
2776      CYGPATH_W=echo
2777    fi
2778    ;;
2779esac
2780CFLAGS="$save_cflags"
2781
2782# add automake conditional so we can recognize cl compiler in makefile
2783coin_cc_is_cl=false
2784case "$CC" in
2785  clang* ) ;;
2786  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2787    coin_cc_is_cl=true
2788    ;;
2789esac
2790
2791
2792if test $coin_cc_is_cl = true; then
2793  COIN_CC_IS_CL_TRUE=
2794  COIN_CC_IS_CL_FALSE='#'
2795else
2796  COIN_CC_IS_CL_TRUE='#'
2797  COIN_CC_IS_CL_FALSE=
2798fi
2799
2800
2801# Check if a project specific CFLAGS variable has been set
2802if test x$COIN_PRJCT != x; then
2803  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2804  if test x$coin_tmp = xset; then
2805    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2806  fi
2807fi
2808
2809if test x"$CFLAGS" = x; then
2810
2811  coin_add_cflags=
2812  coin_opt_cflags=
2813  coin_dbg_cflags=
2814  coin_warn_cflags=
2815
2816  if test "$GCC" = "yes"; then
2817    case "$CC" in
2818      icc* | */icc*)
2819        ;;
2820      *)
2821        coin_opt_cflags="-O3"
2822        coin_add_cflags="-pipe"
2823        coin_dbg_cflags="-g -O0"
2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2825    esac
2826  fi
2827  if test -z "$coin_opt_cflags"; then
2828    case $build in
2829      *-cygwin* | *-mingw*)
2830        case "$CC" in
2831          clang* ) ;;
2832          cl* | */cl* | CL* | */CL*)
2833            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2834              coin_opt_cflags='-MD -O2'
2835              coin_dbg_cflags='-MDd'
2836            else
2837              coin_opt_cflags='-MT -O2'
2838              coin_dbg_cflags='-MTd'
2839            fi
2840            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2841            ;;
2842          icl* | */icl* | ICL* | */ICL*)
2843            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2844              coin_opt_cflags='-MD -Ox'
2845              coin_dbg_cflags='-MDd -debug'
2846            else
2847              coin_opt_cflags='-MT -Ox'
2848              coin_dbg_cflags='-MTd -debug'
2849            fi
2850            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2851            ;;
2852        esac
2853        ;;
2854      *-linux-*)
2855        case "$CC" in
2856          icc* | */icc*)
2857            coin_opt_cflags="-O3 -ip -mp1"
2858            coin_add_cflags=""
2859            coin_dbg_cflags="-g"
2860            # Check if -i_dynamic is necessary (for new glibc library)
2861            CFLAGS=
2862            cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h.  */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h.  */
2868
2869int
2870main ()
2871{
2872int i=0; i++;
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext conftest$ac_exeext
2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879  (eval $ac_link) 2>conftest.er1
2880  ac_status=$?
2881  grep -v '^ *+' conftest.er1 >conftest.err
2882  rm -f conftest.er1
2883  cat conftest.err >&5
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); } &&
2886	 { ac_try='test -z "$ac_c_werror_flag"
2887			 || test ! -s conftest.err'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; } &&
2893	 { ac_try='test -s conftest$ac_exeext'
2894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895  (eval $ac_try) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; }; then
2899  :
2900else
2901  echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904coin_add_cflags="-i_dynamic $coin_add_cflags"
2905fi
2906rm -f conftest.err conftest.$ac_objext \
2907      conftest$ac_exeext conftest.$ac_ext
2908            ;;
2909          pgcc* | */pgcc*)
2910            coin_opt_cflags="-fast"
2911            coin_add_cflags="-Kieee -pc 64"
2912            coin_dbg_cflags="-g"
2913            ;;
2914        esac
2915        ;;
2916      *-ibm-*)
2917        case "$CC" in
2918          xlc* | */xlc* | mpxlc* | */mpxlc*)
2919            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2920            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2921            coin_dbg_cflags="-g"
2922          ;;
2923        esac
2924        ;;
2925      *-hp-*)
2926        coin_opt_cflags="-O"
2927        coin_add_cflags="-Ae"
2928        coin_dbg_cflags="-g"
2929        ;;
2930      *-*-solaris*)
2931        coin_opt_cflags="-xO4"
2932        coin_dbg_cflags="-g"
2933        ;;
2934      *-sgi-*)
2935        coin_opt_cflags="-O -OPT:Olimit=0"
2936        coin_dbg_cflags="-g"
2937        ;;
2938    esac
2939  fi
2940
2941  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2942    coin_dbg_cflags="-g"
2943  fi
2944
2945  if test -z "$coin_opt_cflags"; then
2946    # Try if -O option works if nothing else is set
2947    CFLAGS="-O"
2948    cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h.  */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h.  */
2954
2955int
2956main ()
2957{
2958int i=0; i++;
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext conftest$ac_exeext
2964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965  (eval $ac_link) 2>conftest.er1
2966  ac_status=$?
2967  grep -v '^ *+' conftest.er1 >conftest.err
2968  rm -f conftest.er1
2969  cat conftest.err >&5
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); } &&
2972	 { ac_try='test -z "$ac_c_werror_flag"
2973			 || test ! -s conftest.err'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; } &&
2979	 { ac_try='test -s conftest$ac_exeext'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; }; then
2985  coin_opt_cflags="-O"
2986else
2987  echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993  fi
2994
2995  # if PM doesn't want the warning messages, take them out
2996  if test x"$coin_skip_warn_cflags" = xyes; then
2997    coin_warn_cflags=
2998  fi
2999
3000  if test x${DBG_CFLAGS+set} != xset; then
3001    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3002  fi
3003  if test x${OPT_CFLAGS+set} != xset; then
3004    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3005  fi
3006
3007  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3008  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3009
3010  if test "$coin_debug_compile" = "true"; then
3011    CFLAGS="$DBG_CFLAGS"
3012  else
3013    CFLAGS="$OPT_CFLAGS"
3014  fi
3015else
3016  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3017  if test x${DBG_CFLAGS+set} != xset; then
3018    DBG_CFLAGS="$CFLAGS"
3019  fi
3020  if test x${OPT_CFLAGS+set} != xset; then
3021    OPT_CFLAGS="$CFLAGS"
3022  fi
3023fi
3024
3025# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3026if test x$COIN_PRJCT != x; then
3027  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3028fi
3029
3030# Try if CFLAGS works
3031save_CFLAGS="$CFLAGS"
3032cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042int i=0; i++;
3043  ;
3044  return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext conftest$ac_exeext
3048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049  (eval $ac_link) 2>conftest.er1
3050  ac_status=$?
3051  grep -v '^ *+' conftest.er1 >conftest.err
3052  rm -f conftest.er1
3053  cat conftest.err >&5
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056	 { ac_try='test -z "$ac_c_werror_flag"
3057			 || test ! -s conftest.err'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; } &&
3063	 { ac_try='test -s conftest$ac_exeext'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; }; then
3069  :
3070else
3071  echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074CFLAGS=
3075fi
3076rm -f conftest.err conftest.$ac_objext \
3077      conftest$ac_exeext conftest.$ac_ext
3078if test -z "$CFLAGS"; then
3079  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3080echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3081  CFLAGS='-O'
3082  cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092int i=0; i++;
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext conftest$ac_exeext
3098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3099  (eval $ac_link) 2>conftest.er1
3100  ac_status=$?
3101  grep -v '^ *+' conftest.er1 >conftest.err
3102  rm -f conftest.er1
3103  cat conftest.err >&5
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); } &&
3106	 { ac_try='test -z "$ac_c_werror_flag"
3107			 || test ! -s conftest.err'
3108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109  (eval $ac_try) 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; } &&
3113	 { ac_try='test -s conftest$ac_exeext'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; }; then
3119  :
3120else
3121  echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124CFLAGS=
3125fi
3126rm -f conftest.err conftest.$ac_objext \
3127      conftest$ac_exeext conftest.$ac_ext
3128  if test -z "$CFLAGS"; then
3129    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3130echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3131  fi
3132fi
3133
3134{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3135echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3136
3137
3138if test x"$MPICC" = x; then :; else
3139  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3140echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3141  CC="$MPICC"
3142fi
3143
3144# Correct the LD variable if we are using the MS or Intel-windows compiler
3145case "$CC" in
3146  clang* ) ;;
3147  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3148    LD=link
3149    ;;
3150esac
3151
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157
3158
3159
3160# Initialize automake and libtool
3161{
3162
3163
3164
3165# START
3166
3167coin_disable_shared=no
3168# Test if force_shared has been set
3169if test "x" = xforce_shared; then
3170  if test x$enable_shared = xno; then
3171    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3172echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3173   { (exit 1); exit 1; }; }
3174  fi
3175  enable_shared=yes;
3176else
3177  case $build in
3178    *-cygwin* | *-mingw*)
3179      coin_disable_shared=yes
3180      if test x"$enable_shared" = xyes; then
3181        case "$CC" in
3182          clang* )
3183            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3184echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3185            ;;
3186          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3187            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3188echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3189            ;;
3190          *gcc*)
3191            if test x"$enable_dependency_linking" = xyes; then
3192              coin_disable_shared=no
3193            else
3194              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3195echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3196            fi
3197            ;;
3198          *)
3199            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3200echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3201            ;;
3202        esac
3203      fi
3204    ;;
3205    *-aix*)
3206      coin_disable_shared=yes
3207      platform=AIX
3208      if test x"$enable_shared" = xyes; then
3209        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3210echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3211      fi
3212    ;;
3213  esac
3214fi
3215if test x"$coin_disable_shared" = xyes; then
3216  if test x"$enable_shared" = xyes; then
3217    :
3218  else
3219    # we don't disable shared, because it was not selected anyway
3220    coin_disable_shared=no
3221  fi
3222  enable_shared=no
3223fi
3224# By default, we only want the shared objects to be compiled
3225# Check whether --enable-static or --disable-static was given.
3226if test "${enable_static+set}" = set; then
3227  enableval="$enable_static"
3228  p=${PACKAGE-default}
3229    case $enableval in
3230    yes) enable_static=yes ;;
3231    no) enable_static=no ;;
3232    *)
3233     enable_static=no
3234      # Look at the argument we got.  We use all the common list separators.
3235      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3236      for pkg in $enableval; do
3237	IFS="$lt_save_ifs"
3238	if test "X$pkg" = "X$p"; then
3239	  enable_static=yes
3240	fi
3241      done
3242      IFS="$lt_save_ifs"
3243      ;;
3244    esac
3245else
3246  enable_static=no
3247fi;
3248
3249
3250
3251
3252# Initialize automake
3253am__api_version="1.9"
3254# Find a good install program.  We prefer a C program (faster),
3255# so one script is as good as another.  But avoid the broken or
3256# incompatible versions:
3257# SysV /etc/install, /usr/sbin/install
3258# SunOS /usr/etc/install
3259# IRIX /sbin/install
3260# AIX /bin/install
3261# AmigaOS /C/install, which installs bootblocks on floppy discs
3262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3263# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3265# OS/2's system install, which has a completely different semantic
3266# ./install, which can be erroneously created by make from ./install.sh.
3267echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3268echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3269if test -z "$INSTALL"; then
3270if test "${ac_cv_path_install+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278  # Account for people who put trailing slashes in PATH elements.
3279case $as_dir/ in
3280  ./ | .// | /cC/* | \
3281  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3282  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3283  /usr/ucb/* ) ;;
3284  *)
3285    # OSF1 and SCO ODT 3.0 have their own names for install.
3286    # Don't use installbsd from OSF since it installs stuff as root
3287    # by default.
3288    for ac_prog in ginstall scoinst install; do
3289      for ac_exec_ext in '' $ac_executable_extensions; do
3290	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3291	  if test $ac_prog = install &&
3292	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293	    # AIX install.  It has an incompatible calling convention.
3294	    :
3295	  elif test $ac_prog = install &&
3296	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3297	    # program-specific install script used by HP pwplus--don't use.
3298	    :
3299	  else
3300	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3301	    break 3
3302	  fi
3303	fi
3304      done
3305    done
3306    ;;
3307esac
3308done
3309
3310
3311fi
3312  if test "${ac_cv_path_install+set}" = set; then
3313    INSTALL=$ac_cv_path_install
3314  else
3315    # As a last resort, use the slow shell script.  We don't cache a
3316    # path for INSTALL within a source directory, because that will
3317    # break other packages using the cache if that directory is
3318    # removed, or if the path is relative.
3319    INSTALL=$ac_install_sh
3320  fi
3321fi
3322echo "$as_me:$LINENO: result: $INSTALL" >&5
3323echo "${ECHO_T}$INSTALL" >&6
3324
3325# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3326# It thinks the first close brace ends the variable substitution.
3327test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328
3329test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330
3331test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3332
3333echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3334echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3335# Just in case
3336sleep 1
3337echo timestamp > conftest.file
3338# Do `set' in a subshell so we don't clobber the current shell's
3339# arguments.  Must try -L first in case configure is actually a
3340# symlink; some systems play weird games with the mod time of symlinks
3341# (eg FreeBSD returns the mod time of the symlink's containing
3342# directory).
3343if (
3344   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3345   if test "$*" = "X"; then
3346      # -L didn't work.
3347      set X `ls -t $srcdir/configure conftest.file`
3348   fi
3349   rm -f conftest.file
3350   if test "$*" != "X $srcdir/configure conftest.file" \
3351      && test "$*" != "X conftest.file $srcdir/configure"; then
3352
3353      # If neither matched, then we have a broken ls.  This can happen
3354      # if, for instance, CONFIG_SHELL is bash and it inherits a
3355      # broken ls alias from the environment.  This has actually
3356      # happened.  Such a system could not be considered "sane".
3357      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3358alias in your environment" >&5
3359echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3360alias in your environment" >&2;}
3361   { (exit 1); exit 1; }; }
3362   fi
3363
3364   test "$2" = conftest.file
3365   )
3366then
3367   # Ok.
3368   :
3369else
3370   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3371Check your system clock" >&5
3372echo "$as_me: error: newly created file is older than distributed files!
3373Check your system clock" >&2;}
3374   { (exit 1); exit 1; }; }
3375fi
3376echo "$as_me:$LINENO: result: yes" >&5
3377echo "${ECHO_T}yes" >&6
3378test "$program_prefix" != NONE &&
3379  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3380# Use a double $ so make ignores it.
3381test "$program_suffix" != NONE &&
3382  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3383# Double any \ or $.  echo might interpret backslashes.
3384# By default was `s,x,x', remove it if useless.
3385cat <<\_ACEOF >conftest.sed
3386s/[\\$]/&&/g;s/;s,x,x,$//
3387_ACEOF
3388program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3389rm conftest.sed
3390
3391# expand $ac_aux_dir to an absolute path
3392am_aux_dir=`cd $ac_aux_dir && pwd`
3393
3394test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3395# Use eval to expand $SHELL
3396if eval "$MISSING --run true"; then
3397  am_missing_run="$MISSING --run "
3398else
3399  am_missing_run=
3400  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3401echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3402fi
3403
3404if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3405  # We used to keeping the `.' as first argument, in order to
3406  # allow $(mkdir_p) to be used without argument.  As in
3407  #   $(mkdir_p) $(somedir)
3408  # where $(somedir) is conditionally defined.  However this is wrong
3409  # for two reasons:
3410  #  1. if the package is installed by a user who cannot write `.'
3411  #     make install will fail,
3412  #  2. the above comment should most certainly read
3413  #     $(mkdir_p) $(DESTDIR)$(somedir)
3414  #     so it does not work when $(somedir) is undefined and
3415  #     $(DESTDIR) is not.
3416  #  To support the latter case, we have to write
3417  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3418  #  so the `.' trick is pointless.
3419  mkdir_p='mkdir -p --'
3420else
3421  # On NextStep and OpenStep, the `mkdir' command does not
3422  # recognize any option.  It will interpret all options as
3423  # directories to create, and then abort because `.' already
3424  # exists.
3425  for d in ./-p ./--version;
3426  do
3427    test -d $d && rmdir $d
3428  done
3429  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3430  if test -f "$ac_aux_dir/mkinstalldirs"; then
3431    mkdir_p='$(mkinstalldirs)'
3432  else
3433    mkdir_p='$(install_sh) -d'
3434  fi
3435fi
3436
3437for ac_prog in gawk mawk nawk awk
3438do
3439  # Extract the first word of "$ac_prog", so it can be a program name with args.
3440set dummy $ac_prog; ac_word=$2
3441echo "$as_me:$LINENO: checking for $ac_word" >&5
3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443if test "${ac_cv_prog_AWK+set}" = set; then
3444  echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446  if test -n "$AWK"; then
3447  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454  for ac_exec_ext in '' $ac_executable_extensions; do
3455  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456    ac_cv_prog_AWK="$ac_prog"
3457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461done
3462
3463fi
3464fi
3465AWK=$ac_cv_prog_AWK
3466if test -n "$AWK"; then
3467  echo "$as_me:$LINENO: result: $AWK" >&5
3468echo "${ECHO_T}$AWK" >&6
3469else
3470  echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
3472fi
3473
3474  test -n "$AWK" && break
3475done
3476
3477echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3478echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3479set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3480if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  cat >conftest.make <<\_ACEOF
3484all:
3485	@echo 'ac_maketemp="$(MAKE)"'
3486_ACEOF
3487# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3488eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3489if test -n "$ac_maketemp"; then
3490  eval ac_cv_prog_make_${ac_make}_set=yes
3491else
3492  eval ac_cv_prog_make_${ac_make}_set=no
3493fi
3494rm -f conftest.make
3495fi
3496if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3497  echo "$as_me:$LINENO: result: yes" >&5
3498echo "${ECHO_T}yes" >&6
3499  SET_MAKE=
3500else
3501  echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503  SET_MAKE="MAKE=${MAKE-make}"
3504fi
3505
3506rm -rf .tst 2>/dev/null
3507mkdir .tst 2>/dev/null
3508if test -d .tst; then
3509  am__leading_dot=.
3510else
3511  am__leading_dot=_
3512fi
3513rmdir .tst 2>/dev/null
3514
3515DEPDIR="${am__leading_dot}deps"
3516
3517          ac_config_commands="$ac_config_commands depfiles"
3518
3519
3520am_make=${MAKE-make}
3521cat > confinc << 'END'
3522am__doit:
3523	@echo done
3524.PHONY: am__doit
3525END
3526# If we don't find an include directive, just comment out the code.
3527echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3528echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3529am__include="#"
3530am__quote=
3531_am_result=none
3532# First try GNU make style include.
3533echo "include confinc" > confmf
3534# We grep out `Entering directory' and `Leaving directory'
3535# messages which can occur if `w' ends up in MAKEFLAGS.
3536# In particular we don't look at `^make:' because GNU make might
3537# be invoked under some other name (usually "gmake"), in which
3538# case it prints its new name instead of `make'.
3539if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3540   am__include=include
3541   am__quote=
3542   _am_result=GNU
3543fi
3544# Now try BSD make style include.
3545if test "$am__include" = "#"; then
3546   echo '.include "confinc"' > confmf
3547   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3548      am__include=.include
3549      am__quote="\""
3550      _am_result=BSD
3551   fi
3552fi
3553
3554
3555echo "$as_me:$LINENO: result: $_am_result" >&5
3556echo "${ECHO_T}$_am_result" >&6
3557rm -f confinc confmf
3558
3559# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3560if test "${enable_dependency_tracking+set}" = set; then
3561  enableval="$enable_dependency_tracking"
3562
3563fi;
3564if test "x$enable_dependency_tracking" != xno; then
3565  am_depcomp="$ac_aux_dir/depcomp"
3566  AMDEPBACKSLASH='\'
3567fi
3568
3569
3570if test "x$enable_dependency_tracking" != xno; then
3571  AMDEP_TRUE=
3572  AMDEP_FALSE='#'
3573else
3574  AMDEP_TRUE='#'
3575  AMDEP_FALSE=
3576fi
3577
3578
3579
3580
3581
3582
3583# AC_MSG_NOTICE([Beginning automake initialisation.])
3584# Stuff for automake
3585# test to see if srcdir already configured
3586if test "`cd $srcdir && pwd`" != "`pwd`" &&
3587   test -f $srcdir/config.status; then
3588  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3589echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3590   { (exit 1); exit 1; }; }
3591fi
3592
3593# test whether we have cygpath
3594if test -z "$CYGPATH_W"; then
3595  if (cygpath --version) >/dev/null 2>/dev/null; then
3596    CYGPATH_W='cygpath -w'
3597  else
3598    CYGPATH_W=echo
3599  fi
3600fi
3601
3602
3603# Define the identity of the package.
3604 PACKAGE='thirdpartyasl'
3605 VERSION='1.4.1'
3606
3607
3608cat >>confdefs.h <<_ACEOF
3609#define PACKAGE "$PACKAGE"
3610_ACEOF
3611
3612
3613cat >>confdefs.h <<_ACEOF
3614#define VERSION "$VERSION"
3615_ACEOF
3616
3617# Some tools Automake needs.
3618
3619ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3620
3621
3622AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3623
3624
3625AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3626
3627
3628AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3629
3630
3631MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3632
3633install_sh=${install_sh-"$am_aux_dir/install-sh"}
3634
3635# Installed binaries are usually stripped using `strip' when the user
3636# run `make install-strip'.  However `strip' might not be the right
3637# tool to use in cross-compilation environments, therefore Automake
3638# will honor the `STRIP' environment variable to overrule this program.
3639if test "$cross_compiling" != no; then
3640  if test -n "$ac_tool_prefix"; then
3641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3642set dummy ${ac_tool_prefix}strip; ac_word=$2
3643echo "$as_me:$LINENO: checking for $ac_word" >&5
3644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645if test "${ac_cv_prog_STRIP+set}" = set; then
3646  echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648  if test -n "$STRIP"; then
3649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  test -z "$as_dir" && as_dir=.
3656  for ac_exec_ext in '' $ac_executable_extensions; do
3657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660    break 2
3661  fi
3662done
3663done
3664
3665fi
3666fi
3667STRIP=$ac_cv_prog_STRIP
3668if test -n "$STRIP"; then
3669  echo "$as_me:$LINENO: result: $STRIP" >&5
3670echo "${ECHO_T}$STRIP" >&6
3671else
3672  echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674fi
3675
3676fi
3677if test -z "$ac_cv_prog_STRIP"; then
3678  ac_ct_STRIP=$STRIP
3679  # Extract the first word of "strip", so it can be a program name with args.
3680set dummy strip; ac_word=$2
3681echo "$as_me:$LINENO: checking for $ac_word" >&5
3682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  if test -n "$ac_ct_STRIP"; then
3687  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692  IFS=$as_save_IFS
3693  test -z "$as_dir" && as_dir=.
3694  for ac_exec_ext in '' $ac_executable_extensions; do
3695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696    ac_cv_prog_ac_ct_STRIP="strip"
3697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698    break 2
3699  fi
3700done
3701done
3702
3703  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3704fi
3705fi
3706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3707if test -n "$ac_ct_STRIP"; then
3708  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3709echo "${ECHO_T}$ac_ct_STRIP" >&6
3710else
3711  echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713fi
3714
3715  STRIP=$ac_ct_STRIP
3716else
3717  STRIP="$ac_cv_prog_STRIP"
3718fi
3719
3720fi
3721INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3722
3723# We need awk for the "check" target.  The system "awk" is bad on
3724# some platforms.
3725# Always define AMTAR for backward compatibility.
3726
3727AMTAR=${AMTAR-"${am_missing_run}tar"}
3728
3729am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3730
3731
3732
3733
3734depcc="$CC"   am_compiler_list=
3735
3736echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3737echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3738if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3739  echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3742  # We make a subdir and do the tests there.  Otherwise we can end up
3743  # making bogus files that we don't know about and never remove.  For
3744  # instance it was reported that on HP-UX the gcc test will end up
3745  # making a dummy file named `D' -- because `-MD' means `put the output
3746  # in D'.
3747  mkdir conftest.dir
3748  # Copy depcomp to subdir because otherwise we won't find it if we're
3749  # using a relative directory.
3750  cp "$am_depcomp" conftest.dir
3751  cd conftest.dir
3752  # We will build objects and dependencies in a subdirectory because
3753  # it helps to detect inapplicable dependency modes.  For instance
3754  # both Tru64's cc and ICC support -MD to output dependencies as a
3755  # side effect of compilation, but ICC will put the dependencies in
3756  # the current directory while Tru64 will put them in the object
3757  # directory.
3758  mkdir sub
3759
3760  am_cv_CC_dependencies_compiler_type=none
3761  if test "$am_compiler_list" = ""; then
3762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3763  fi
3764  for depmode in $am_compiler_list; do
3765    # Setup a source with many dependencies, because some compilers
3766    # like to wrap large dependency lists on column 80 (with \), and
3767    # we should not choose a depcomp mode which is confused by this.
3768    #
3769    # We need to recreate these files for each test, as the compiler may
3770    # overwrite some of them when testing with obscure command lines.
3771    # This happens at least with the AIX C compiler.
3772    : > sub/conftest.c
3773    for i in 1 2 3 4 5 6; do
3774      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3775      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3776      # Solaris 8's {/usr,}/bin/sh.
3777      touch sub/conftst$i.h
3778    done
3779    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3780
3781    case $depmode in
3782    nosideeffect)
3783      # after this tag, mechanisms are not by side-effect, so they'll
3784      # only be used when explicitly requested
3785      if test "x$enable_dependency_tracking" = xyes; then
3786	continue
3787      else
3788	break
3789      fi
3790      ;;
3791    none) break ;;
3792    esac
3793    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794    # mode.  It turns out that the SunPro C++ compiler does not properly
3795    # handle `-M -o', and we need to detect this.
3796    if depmode=$depmode \
3797       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3798       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3799       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3800         >/dev/null 2>conftest.err &&
3801       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3802       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3803       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3804      # icc doesn't choke on unknown options, it will just issue warnings
3805      # or remarks (even with -Werror).  So we grep stderr for any message
3806      # that says an option was ignored or not supported.
3807      # When given -MP, icc 7.0 and 7.1 complain thusly:
3808      #   icc: Command line warning: ignoring option '-M'; no argument required
3809      # The diagnosis changed in icc 8.0:
3810      #   icc: Command line remark: option '-MP' not supported
3811      if (grep 'ignoring option' conftest.err ||
3812          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3813        am_cv_CC_dependencies_compiler_type=$depmode
3814        break
3815      fi
3816    fi
3817  done
3818
3819  cd ..
3820  rm -rf conftest.dir
3821else
3822  am_cv_CC_dependencies_compiler_type=none
3823fi
3824
3825fi
3826echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3827echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3828CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3829
3830
3831
3832if
3833  test "x$enable_dependency_tracking" != xno \
3834  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835  am__fastdepCC_TRUE=
3836  am__fastdepCC_FALSE='#'
3837else
3838  am__fastdepCC_TRUE='#'
3839  am__fastdepCC_FALSE=
3840fi
3841
3842
3843
3844echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3845echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3846    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3847if test "${enable_maintainer_mode+set}" = set; then
3848  enableval="$enable_maintainer_mode"
3849  USE_MAINTAINER_MODE=$enableval
3850else
3851  USE_MAINTAINER_MODE=no
3852fi;
3853  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3854echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3855
3856
3857if test $USE_MAINTAINER_MODE = yes; then
3858  MAINTAINER_MODE_TRUE=
3859  MAINTAINER_MODE_FALSE='#'
3860else
3861  MAINTAINER_MODE_TRUE='#'
3862  MAINTAINER_MODE_FALSE=
3863fi
3864
3865  MAINT=$MAINTAINER_MODE_TRUE
3866
3867
3868
3869coin_have_externals=no
3870if test "$enable_maintainer_mode" = yes; then
3871
3872  # If maintainer mode is chosen, we make sure that the correct versions
3873  # of the tools are used, and that we know where libtool.m4 is (to
3874  # recreate acinclude.m4)
3875
3876
3877  LIBTOOLM4=
3878  # Normally, $HOME
3879  AUTOTOOLS_DFLT=$HOME
3880
3881  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3882echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3883if test "${ac_cv_use_correct_autotools+set}" = set; then
3884  echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886  ac_cv_use_correct_autotools=check
3887fi
3888echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3889echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3890
3891  if test $ac_cv_use_correct_autotools = check; then
3892    ac_cv_use_correct_autotools=yes
3893    # Check if we have autoconf
3894    # Extract the first word of "autoconf", so it can be a program name with args.
3895set dummy autoconf; ac_word=$2
3896echo "$as_me:$LINENO: checking for $ac_word" >&5
3897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898if test "${ac_cv_prog_have_autoconf+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  if test -n "$have_autoconf"; then
3902  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907  IFS=$as_save_IFS
3908  test -z "$as_dir" && as_dir=.
3909  for ac_exec_ext in '' $ac_executable_extensions; do
3910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911    ac_cv_prog_have_autoconf="yes"
3912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913    break 2
3914  fi
3915done
3916done
3917
3918  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3919fi
3920fi
3921have_autoconf=$ac_cv_prog_have_autoconf
3922if test -n "$have_autoconf"; then
3923  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3924echo "${ECHO_T}$have_autoconf" >&6
3925else
3926  echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928fi
3929
3930    if test $have_autoconf = no; then
3931      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3932echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3933   { (exit 1); exit 1; }; }
3934    fi
3935
3936    # Check whether autoconf is the correct version
3937    correct_version='2.59'
3938    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3939    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3940echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3941    autoconf --version > confauto.out 2>&1
3942    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3943      echo "$as_me:$LINENO: result: yes" >&5
3944echo "${ECHO_T}yes" >&6
3945    else
3946      rm -f confauto.out
3947      echo "$as_me:$LINENO: result: no" >&5
3948echo "${ECHO_T}no" >&6
3949      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3950echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3951   { (exit 1); exit 1; }; }
3952    fi
3953    rm -f confauto.out
3954
3955    # Check if the executable autoconf is picked up from the correct location
3956    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3957echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3958    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3959    autoconf_dir=`cd $autoconf_dir; pwd`
3960    if test x$AUTOTOOLS_DIR = x; then
3961      want_dir=$AUTOTOOLS_DFLT/bin
3962    else
3963      want_dir=$AUTOTOOLS_DIR/bin
3964    fi
3965    if test $autoconf_dir = `cd $want_dir; pwd`; then
3966      echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968    else
3969      rm -f confauto.out
3970      echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
3973echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
3974   { (exit 1); exit 1; }; }
3975    fi
3976
3977    # Check if we have automake
3978    # Extract the first word of "automake", so it can be a program name with args.
3979set dummy automake; ac_word=$2
3980echo "$as_me:$LINENO: checking for $ac_word" >&5
3981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982if test "${ac_cv_prog_have_automake+set}" = set; then
3983  echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985  if test -n "$have_automake"; then
3986  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993  for ac_exec_ext in '' $ac_executable_extensions; do
3994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995    ac_cv_prog_have_automake="yes"
3996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997    break 2
3998  fi
3999done
4000done
4001
4002  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4003fi
4004fi
4005have_automake=$ac_cv_prog_have_automake
4006if test -n "$have_automake"; then
4007  echo "$as_me:$LINENO: result: $have_automake" >&5
4008echo "${ECHO_T}$have_automake" >&6
4009else
4010  echo "$as_me:$LINENO: result: no" >&5
4011echo "${ECHO_T}no" >&6
4012fi
4013
4014    if test $have_automake = no; then
4015      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4016echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4017   { (exit 1); exit 1; }; }
4018    fi
4019
4020    # Check whether automake is the correct version
4021    correct_version='1.9.6'
4022    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4023    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4024echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4025    automake --version > confauto.out 2>&1
4026    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4027      echo "$as_me:$LINENO: result: yes" >&5
4028echo "${ECHO_T}yes" >&6
4029    else
4030      rm -f confauto.out
4031      echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4034echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4035   { (exit 1); exit 1; }; }
4036    fi
4037    rm -f confauto.out
4038
4039    # Check if the executable automake is picked up from the correct location
4040    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4041echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4042    automake_dir=`which automake | sed -e 's=/automake=='`
4043    automake_dir=`cd $automake_dir; pwd`
4044    if test x$AUTOTOOLS_DIR = x; then
4045      want_dir=$AUTOTOOLS_DFLT/bin
4046    else
4047      want_dir=$AUTOTOOLS_DIR/bin
4048    fi
4049    if test $automake_dir = `cd $want_dir; pwd`; then
4050      echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6
4052    else
4053      rm -f confauto.out
4054      echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4057echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4058   { (exit 1); exit 1; }; }
4059    fi
4060
4061    # Check if this is the correct version of libtool (with escaped dots)
4062    if test x$AUTOTOOLS_DIR = x; then
4063      want_dir=$AUTOTOOLS_DFLT/share
4064    else
4065      want_dir=$AUTOTOOLS_DIR/share
4066    fi
4067    correct_version='1.5.22'
4068    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4069    if test -r $want_dir/libtool/ltmain.sh; then
4070  have_ltmain=yes
4071  :
4072else
4073  have_ltmain=no
4074  :
4075fi
4076
4077    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4078echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4079    if test $have_ltmain = yes; then
4080    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4081        echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083      else
4084        echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6
4086        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4087echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4088   { (exit 1); exit 1; }; }
4089      fi
4090    else
4091      echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4094echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4095   { (exit 1); exit 1; }; }
4096    fi
4097  fi
4098
4099  # Check if we can find the libtool file
4100  if test x$AUTOTOOLS_DIR = x; then
4101    want_dir=$AUTOTOOLS_DFLT/share
4102  else
4103    want_dir=$AUTOTOOLS_DIR/share
4104  fi
4105  if test -r $want_dir/aclocal/libtool.m4; then
4106  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4107  :
4108else
4109  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4110echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4111   { (exit 1); exit 1; }; }
4112  :
4113fi
4114
4115
4116  # Check if we have an Dependencies file
4117  if test -r $srcdir/Dependencies; then
4118    coin_have_externals=yes
4119  fi
4120  # Check if subversion is installed and understands https
4121  # Extract the first word of "svn", so it can be a program name with args.
4122set dummy svn; ac_word=$2
4123echo "$as_me:$LINENO: checking for $ac_word" >&5
4124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125if test "${ac_cv_prog_have_svn+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  if test -n "$have_svn"; then
4129  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4130else
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134  IFS=$as_save_IFS
4135  test -z "$as_dir" && as_dir=.
4136  for ac_exec_ext in '' $ac_executable_extensions; do
4137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138    ac_cv_prog_have_svn="yes"
4139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140    break 2
4141  fi
4142done
4143done
4144
4145  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4146fi
4147fi
4148have_svn=$ac_cv_prog_have_svn
4149if test -n "$have_svn"; then
4150  echo "$as_me:$LINENO: result: $have_svn" >&5
4151echo "${ECHO_T}$have_svn" >&6
4152else
4153  echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156
4157  if test x$have_svn = xyes; then
4158    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4159echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4160if test "${ac_cv_svn_understands_https+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163  svn --version > confauto.out 2>&1
4164                    if $EGREP https confauto.out >/dev/null 2>&1; then
4165                      ac_cv_svn_understands_https=yes
4166                    else
4167                      ac_cv_svn_understands_https=no
4168                      have_svn=no
4169                      ac_cv_prog_have_svn=no
4170                    fi
4171                    rm -f confauto.out
4172fi
4173echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4174echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4175  fi
4176
4177  # Find the location of the BuildTools directory
4178  BUILDTOOLSDIR=
4179  if test -r $srcdir/BuildTools/coin.m4; then
4180    BUILDTOOLSDIR=$srcdir/BuildTools
4181  else
4182    if test -r $srcdir/../BuildTools/coin.m4; then
4183      BUILDTOOLSDIR=$srcdir/../BuildTools
4184    else
4185      if test -r $srcdir/../../BuildTools/coin.m4; then
4186        BUILDTOOLSDIR=$srcdir/../../BuildTools
4187      else
4188        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4189echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4190   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4191      fi
4192    fi
4193  fi
4194
4195
4196  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4197  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4198    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4199  fi
4200
4201  # The following variable is set to the name of the directory where
4202  # the autotool scripts are located
4203
4204  AUX_DIR=$ac_aux_dir
4205fi
4206
4207# helpful variable for the base directory of this package
4208abs_source_dir=`cd $srcdir; pwd`
4209
4210
4211# Stuff for example Makefiles
4212if test x$prefix = xNONE; then
4213  full_prefix=$ac_default_prefix
4214else
4215  full_prefix=$prefix
4216fi
4217full_prefix=`cd $full_prefix ; pwd`
4218
4219abs_lib_dir=$full_prefix/lib
4220
4221abs_include_dir=$full_prefix/include
4222
4223abs_bin_dir=$full_prefix/bin
4224
4225
4226
4227if test $coin_have_externals = yes && test x$have_svn = xyes; then
4228  HAVE_EXTERNALS_TRUE=
4229  HAVE_EXTERNALS_FALSE='#'
4230else
4231  HAVE_EXTERNALS_TRUE='#'
4232  HAVE_EXTERNALS_FALSE=
4233fi
4234
4235
4236# AC_MSG_NOTICE([End automake initialisation.])
4237
4238
4239
4240LIBTOOL=
4241if test -f ../libtool; then
4242  coin_config_dir=..
4243  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4244fi
4245if test "x$LIBTOOL" = x; then
4246  if test -f ../../libtool; then
4247    coin_config_dir=../..
4248    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4249  fi
4250fi
4251
4252if test "x$LIBTOOL" = x; then
4253# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4254  # Stuff for libtool
4255  # Check whether --enable-shared or --disable-shared was given.
4256if test "${enable_shared+set}" = set; then
4257  enableval="$enable_shared"
4258  p=${PACKAGE-default}
4259    case $enableval in
4260    yes) enable_shared=yes ;;
4261    no) enable_shared=no ;;
4262    *)
4263      enable_shared=no
4264      # Look at the argument we got.  We use all the common list separators.
4265      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4266      for pkg in $enableval; do
4267	IFS="$lt_save_ifs"
4268	if test "X$pkg" = "X$p"; then
4269	  enable_shared=yes
4270	fi
4271      done
4272      IFS="$lt_save_ifs"
4273      ;;
4274    esac
4275else
4276  enable_shared=yes
4277fi;
4278
4279# Check whether --enable-fast-install or --disable-fast-install was given.
4280if test "${enable_fast_install+set}" = set; then
4281  enableval="$enable_fast_install"
4282  p=${PACKAGE-default}
4283    case $enableval in
4284    yes) enable_fast_install=yes ;;
4285    no) enable_fast_install=no ;;
4286    *)
4287      enable_fast_install=no
4288      # Look at the argument we got.  We use all the common list separators.
4289      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4290      for pkg in $enableval; do
4291	IFS="$lt_save_ifs"
4292	if test "X$pkg" = "X$p"; then
4293	  enable_fast_install=yes
4294	fi
4295      done
4296      IFS="$lt_save_ifs"
4297      ;;
4298    esac
4299else
4300  enable_fast_install=yes
4301fi;
4302
4303echo "$as_me:$LINENO: checking host system type" >&5
4304echo $ECHO_N "checking host system type... $ECHO_C" >&6
4305if test "${ac_cv_host+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  ac_cv_host_alias=$host_alias
4309test -z "$ac_cv_host_alias" &&
4310  ac_cv_host_alias=$ac_cv_build_alias
4311ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4312  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4313echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4314   { (exit 1); exit 1; }; }
4315
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4318echo "${ECHO_T}$ac_cv_host" >&6
4319host=$ac_cv_host
4320host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4321host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4322host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4323
4324
4325echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4326echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4327if test "${lt_cv_path_SED+set}" = set; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  # Loop through the user's path and test for sed and gsed.
4331# Then use that list of sed's as ones to test for truncation.
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337  for lt_ac_prog in sed gsed; do
4338    for ac_exec_ext in '' $ac_executable_extensions; do
4339      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4340        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4341      fi
4342    done
4343  done
4344done
4345lt_ac_max=0
4346lt_ac_count=0
4347# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4348# along with /bin/sed that truncates output.
4349for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4350  test ! -f $lt_ac_sed && continue
4351  cat /dev/null > conftest.in
4352  lt_ac_count=0
4353  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4354  # Check for GNU sed and select it if it is found.
4355  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4356    lt_cv_path_SED=$lt_ac_sed
4357    break
4358  fi
4359  while true; do
4360    cat conftest.in conftest.in >conftest.tmp
4361    mv conftest.tmp conftest.in
4362    cp conftest.in conftest.nl
4363    echo >>conftest.nl
4364    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4365    cmp -s conftest.out conftest.nl || break
4366    # 10000 chars as input seems more than enough
4367    test $lt_ac_count -gt 10 && break
4368    lt_ac_count=`expr $lt_ac_count + 1`
4369    if test $lt_ac_count -gt $lt_ac_max; then
4370      lt_ac_max=$lt_ac_count
4371      lt_cv_path_SED=$lt_ac_sed
4372    fi
4373  done
4374done
4375
4376fi
4377
4378SED=$lt_cv_path_SED
4379echo "$as_me:$LINENO: result: $SED" >&5
4380echo "${ECHO_T}$SED" >&6
4381
4382
4383# Check whether --with-gnu-ld or --without-gnu-ld was given.
4384if test "${with_gnu_ld+set}" = set; then
4385  withval="$with_gnu_ld"
4386  test "$withval" = no || with_gnu_ld=yes
4387else
4388  with_gnu_ld=no
4389fi;
4390ac_prog=ld
4391if test "$GCC" = yes; then
4392  # Check if gcc -print-prog-name=ld gives a path.
4393  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4394echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4395  case $host in
4396  *-*-mingw*)
4397    # gcc leaves a trailing carriage return which upsets mingw
4398    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4399  *)
4400    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4401  esac
4402  case $ac_prog in
4403    # Accept absolute paths.
4404    [\\/]* | ?:[\\/]*)
4405      re_direlt='/[^/][^/]*/\.\./'
4406      # Canonicalize the pathname of ld
4407      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4408      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4409	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4410      done
4411      test -z "$LD" && LD="$ac_prog"
4412      ;;
4413  "")
4414    # If it fails, then pretend we aren't using GCC.
4415    ac_prog=ld
4416    ;;
4417  *)
4418    # If it is relative, then search for the first ld in PATH.
4419    with_gnu_ld=unknown
4420    ;;
4421  esac
4422elif test "$with_gnu_ld" = yes; then
4423  echo "$as_me:$LINENO: checking for GNU ld" >&5
4424echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4425else
4426  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4427echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4428fi
4429if test "${lt_cv_path_LD+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  if test -z "$LD"; then
4433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4434  for ac_dir in $PATH; do
4435    IFS="$lt_save_ifs"
4436    test -z "$ac_dir" && ac_dir=.
4437    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4438      lt_cv_path_LD="$ac_dir/$ac_prog"
4439      # Check to see if the program is GNU ld.  I'd rather use --version,
4440      # but apparently some variants of GNU ld only accept -v.
4441      # Break only if it was the GNU/non-GNU ld that we prefer.
4442      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4443      *GNU* | *'with BFD'*)
4444	test "$with_gnu_ld" != no && break
4445	;;
4446      *)
4447	test "$with_gnu_ld" != yes && break
4448	;;
4449      esac
4450    fi
4451  done
4452  IFS="$lt_save_ifs"
4453else
4454  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4455fi
4456fi
4457
4458LD="$lt_cv_path_LD"
4459if test -n "$LD"; then
4460  echo "$as_me:$LINENO: result: $LD" >&5
4461echo "${ECHO_T}$LD" >&6
4462else
4463  echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465fi
4466test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4467echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4468   { (exit 1); exit 1; }; }
4469echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4470echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4471if test "${lt_cv_prog_gnu_ld+set}" = set; then
4472  echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4475case `$LD -v 2>&1 </dev/null` in
4476*GNU* | *'with BFD'*)
4477  lt_cv_prog_gnu_ld=yes
4478  ;;
4479*)
4480  lt_cv_prog_gnu_ld=no
4481  ;;
4482esac
4483fi
4484echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4485echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4486with_gnu_ld=$lt_cv_prog_gnu_ld
4487
4488
4489echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4490echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4491if test "${lt_cv_ld_reload_flag+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  lt_cv_ld_reload_flag='-r'
4495fi
4496echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4497echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4498reload_flag=$lt_cv_ld_reload_flag
4499case $reload_flag in
4500"" | " "*) ;;
4501*) reload_flag=" $reload_flag" ;;
4502esac
4503reload_cmds='$LD$reload_flag -o $output$reload_objs'
4504case $host_os in
4505  darwin*)
4506    if test "$GCC" = yes; then
4507      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4508    else
4509      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4510    fi
4511    ;;
4512esac
4513
4514echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4515echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4516if test "${lt_cv_path_NM+set}" = set; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  if test -n "$NM"; then
4520  # Let the user override the test.
4521  lt_cv_path_NM="$NM"
4522else
4523  lt_nm_to_check="${ac_tool_prefix}nm"
4524  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4525    lt_nm_to_check="$lt_nm_to_check nm"
4526  fi
4527  for lt_tmp_nm in $lt_nm_to_check; do
4528    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4529    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4530      IFS="$lt_save_ifs"
4531      test -z "$ac_dir" && ac_dir=.
4532      tmp_nm="$ac_dir/$lt_tmp_nm"
4533      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4534	# Check to see if the nm accepts a BSD-compat flag.
4535	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4536	#   nm: unknown option "B" ignored
4537	# Tru64's nm complains that /dev/null is an invalid object file
4538	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4539	*/dev/null* | *'Invalid file or object type'*)
4540	  lt_cv_path_NM="$tmp_nm -B"
4541	  break
4542	  ;;
4543	*)
4544	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4545	  */dev/null*)
4546	    lt_cv_path_NM="$tmp_nm -p"
4547	    break
4548	    ;;
4549	  *)
4550	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4551	    continue # so that we can try to find one that supports BSD flags
4552	    ;;
4553	  esac
4554	  ;;
4555	esac
4556      fi
4557    done
4558    IFS="$lt_save_ifs"
4559  done
4560  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4561fi
4562fi
4563echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4564echo "${ECHO_T}$lt_cv_path_NM" >&6
4565NM="$lt_cv_path_NM"
4566
4567echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4568echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4569if test "${lt_cv_deplibs_check_method+set}" = set; then
4570  echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572  lt_cv_file_magic_cmd='$MAGIC_CMD'
4573lt_cv_file_magic_test_file=
4574lt_cv_deplibs_check_method='unknown'
4575# Need to set the preceding variable on all platforms that support
4576# interlibrary dependencies.
4577# 'none' -- dependencies not supported.
4578# `unknown' -- same as none, but documents that we really don't know.
4579# 'pass_all' -- all dependencies passed with no checks.
4580# 'test_compile' -- check by making test program.
4581# 'file_magic [[regex]]' -- check by looking for files in library path
4582# which responds to the $file_magic_cmd with a given extended regex.
4583# If you have `file' or equivalent on your system and you're not sure
4584# whether `pass_all' will *always* work, you probably want this one.
4585
4586case $host_os in
4587aix4* | aix5*)
4588  lt_cv_deplibs_check_method=pass_all
4589  ;;
4590
4591beos*)
4592  lt_cv_deplibs_check_method=pass_all
4593  ;;
4594
4595bsdi[45]*)
4596  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4597  lt_cv_file_magic_cmd='/usr/bin/file -L'
4598  lt_cv_file_magic_test_file=/shlib/libc.so
4599  ;;
4600
4601cygwin*)
4602  # func_win32_libid is a shell function defined in ltmain.sh
4603  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4604  lt_cv_file_magic_cmd='func_win32_libid'
4605  ;;
4606
4607mingw* | pw32*)
4608  # Base MSYS/MinGW do not provide the 'file' command needed by
4609  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4610  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4611  lt_cv_file_magic_cmd='$OBJDUMP -f'
4612  ;;
4613
4614darwin* | rhapsody*)
4615  lt_cv_deplibs_check_method=pass_all
4616  ;;
4617
4618freebsd* | kfreebsd*-gnu | dragonfly*)
4619  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4620    case $host_cpu in
4621    i*86 )
4622      # Not sure whether the presence of OpenBSD here was a mistake.
4623      # Let's accept both of them until this is cleared up.
4624      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4625      lt_cv_file_magic_cmd=/usr/bin/file
4626      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4627      ;;
4628    esac
4629  else
4630    lt_cv_deplibs_check_method=pass_all
4631  fi
4632  ;;
4633
4634gnu*)
4635  lt_cv_deplibs_check_method=pass_all
4636  ;;
4637
4638hpux10.20* | hpux11*)
4639  lt_cv_file_magic_cmd=/usr/bin/file
4640  case $host_cpu in
4641  ia64*)
4642    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4643    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4644    ;;
4645  hppa*64*)
4646    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]'
4647    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4648    ;;
4649  *)
4650    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4651    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4652    ;;
4653  esac
4654  ;;
4655
4656interix3*)
4657  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4658  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4659  ;;
4660
4661irix5* | irix6* | nonstopux*)
4662  case $LD in
4663  *-32|*"-32 ") libmagic=32-bit;;
4664  *-n32|*"-n32 ") libmagic=N32;;
4665  *-64|*"-64 ") libmagic=64-bit;;
4666  *) libmagic=never-match;;
4667  esac
4668  lt_cv_deplibs_check_method=pass_all
4669  ;;
4670
4671# This must be Linux ELF.
4672linux*)
4673  lt_cv_deplibs_check_method=pass_all
4674  ;;
4675
4676netbsd*)
4677  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4678    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4679  else
4680    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4681  fi
4682  ;;
4683
4684newos6*)
4685  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4686  lt_cv_file_magic_cmd=/usr/bin/file
4687  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4688  ;;
4689
4690nto-qnx*)
4691  lt_cv_deplibs_check_method=unknown
4692  ;;
4693
4694openbsd*)
4695  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4696    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4697  else
4698    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4699  fi
4700  ;;
4701
4702osf3* | osf4* | osf5*)
4703  lt_cv_deplibs_check_method=pass_all
4704  ;;
4705
4706solaris*)
4707  lt_cv_deplibs_check_method=pass_all
4708  ;;
4709
4710sysv4 | sysv4.3*)
4711  case $host_vendor in
4712  motorola)
4713    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]'
4714    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4715    ;;
4716  ncr)
4717    lt_cv_deplibs_check_method=pass_all
4718    ;;
4719  sequent)
4720    lt_cv_file_magic_cmd='/bin/file'
4721    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4722    ;;
4723  sni)
4724    lt_cv_file_magic_cmd='/bin/file'
4725    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4726    lt_cv_file_magic_test_file=/lib/libc.so
4727    ;;
4728  siemens)
4729    lt_cv_deplibs_check_method=pass_all
4730    ;;
4731  pc)
4732    lt_cv_deplibs_check_method=pass_all
4733    ;;
4734  esac
4735  ;;
4736
4737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4738  lt_cv_deplibs_check_method=pass_all
4739  ;;
4740esac
4741
4742fi
4743echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4744echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4745file_magic_cmd=$lt_cv_file_magic_cmd
4746deplibs_check_method=$lt_cv_deplibs_check_method
4747test -z "$deplibs_check_method" && deplibs_check_method=unknown
4748
4749
4750
4751
4752# If no C compiler was specified, use CC.
4753LTCC=${LTCC-"$CC"}
4754
4755# If no C compiler flags were specified, use CFLAGS.
4756LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4757
4758# Allow CC to be a program name with arguments.
4759compiler=$CC
4760
4761# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4762if test "${enable_libtool_lock+set}" = set; then
4763  enableval="$enable_libtool_lock"
4764
4765fi;
4766test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4767
4768# Some flags need to be propagated to the compiler or linker for good
4769# libtool support.
4770case $host in
4771ia64-*-hpux*)
4772  # Find out which ABI we are using.
4773  echo 'int i;' > conftest.$ac_ext
4774  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775  (eval $ac_compile) 2>&5
4776  ac_status=$?
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); }; then
4779    case `/usr/bin/file conftest.$ac_objext` in
4780    *ELF-32*)
4781      HPUX_IA64_MODE="32"
4782      ;;
4783    *ELF-64*)
4784      HPUX_IA64_MODE="64"
4785      ;;
4786    esac
4787  fi
4788  rm -rf conftest*
4789  ;;
4790*-*-irix6*)
4791  # Find out which ABI we are using.
4792  echo '#line 4792 "configure"' > conftest.$ac_ext
4793  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794  (eval $ac_compile) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; then
4798   if test "$lt_cv_prog_gnu_ld" = yes; then
4799    case `/usr/bin/file conftest.$ac_objext` in
4800    *32-bit*)
4801      LD="${LD-ld} -melf32bsmip"
4802      ;;
4803    *N32*)
4804      LD="${LD-ld} -melf32bmipn32"
4805      ;;
4806    *64-bit*)
4807      LD="${LD-ld} -melf64bmip"
4808      ;;
4809    esac
4810   else
4811    case `/usr/bin/file conftest.$ac_objext` in
4812    *32-bit*)
4813      LD="${LD-ld} -32"
4814      ;;
4815    *N32*)
4816      LD="${LD-ld} -n32"
4817      ;;
4818    *64-bit*)
4819      LD="${LD-ld} -64"
4820      ;;
4821    esac
4822   fi
4823  fi
4824  rm -rf conftest*
4825  ;;
4826
4827x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4828  # Find out which ABI we are using.
4829  echo 'int i;' > conftest.$ac_ext
4830  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831  (eval $ac_compile) 2>&5
4832  ac_status=$?
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); }; then
4835    case `/usr/bin/file conftest.o` in
4836    *32-bit*)
4837      case $host in
4838        x86_64-*linux*)
4839          LD="${LD-ld} -m elf_i386"
4840          ;;
4841        ppc64-*linux*|powerpc64-*linux*)
4842          LD="${LD-ld} -m elf32ppclinux"
4843          ;;
4844        s390x-*linux*)
4845          LD="${LD-ld} -m elf_s390"
4846          ;;
4847        sparc64-*linux*)
4848          LD="${LD-ld} -m elf32_sparc"
4849          ;;
4850      esac
4851      ;;
4852    *64-bit*)
4853      case $host in
4854        x86_64-*linux*)
4855          LD="${LD-ld} -m elf_x86_64"
4856          ;;
4857        ppc*-*linux*|powerpc*-*linux*)
4858          LD="${LD-ld} -m elf64ppc"
4859          ;;
4860        s390*-*linux*)
4861          LD="${LD-ld} -m elf64_s390"
4862          ;;
4863        sparc*-*linux*)
4864          LD="${LD-ld} -m elf64_sparc"
4865          ;;
4866      esac
4867      ;;
4868    esac
4869  fi
4870  rm -rf conftest*
4871  ;;
4872
4873*-*-sco3.2v5*)
4874  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4875  SAVE_CFLAGS="$CFLAGS"
4876  CFLAGS="$CFLAGS -belf"
4877  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4878echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4879if test "${lt_cv_cc_needs_belf+set}" = set; then
4880  echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882  ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887
4888     cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h.  */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h.  */
4894
4895int
4896main ()
4897{
4898
4899  ;
4900  return 0;
4901}
4902_ACEOF
4903rm -f conftest.$ac_objext conftest$ac_exeext
4904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905  (eval $ac_link) 2>conftest.er1
4906  ac_status=$?
4907  grep -v '^ *+' conftest.er1 >conftest.err
4908  rm -f conftest.er1
4909  cat conftest.err >&5
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); } &&
4912	 { ac_try='test -z "$ac_c_werror_flag"
4913			 || test ! -s conftest.err'
4914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915  (eval $ac_try) 2>&5
4916  ac_status=$?
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); }; } &&
4919	 { ac_try='test -s conftest$ac_exeext'
4920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921  (eval $ac_try) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; }; then
4925  lt_cv_cc_needs_belf=yes
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930lt_cv_cc_needs_belf=no
4931fi
4932rm -f conftest.err conftest.$ac_objext \
4933      conftest$ac_exeext conftest.$ac_ext
4934     ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940fi
4941echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4942echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4943  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4944    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4945    CFLAGS="$SAVE_CFLAGS"
4946  fi
4947  ;;
4948sparc*-*solaris*)
4949  # Find out which ABI we are using.
4950  echo 'int i;' > conftest.$ac_ext
4951  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952  (eval $ac_compile) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; then
4956    case `/usr/bin/file conftest.o` in
4957    *64-bit*)
4958      case $lt_cv_prog_gnu_ld in
4959      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4960      *)    LD="${LD-ld} -64" ;;
4961      esac
4962      ;;
4963    esac
4964  fi
4965  rm -rf conftest*
4966  ;;
4967
4968
4969esac
4970
4971need_locks="$enable_libtool_lock"
4972
4973
4974ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4980echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4981# On Suns, sometimes $CPP names a directory.
4982if test -n "$CPP" && test -d "$CPP"; then
4983  CPP=
4984fi
4985if test -z "$CPP"; then
4986  if test "${ac_cv_prog_CPP+set}" = set; then
4987  echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989      # Double quotes because CPP needs to be expanded
4990    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991    do
4992      ac_preproc_ok=false
4993for ac_c_preproc_warn_flag in '' yes
4994do
4995  # Use a header file that comes with gcc, so configuring glibc
4996  # with a fresh cross-compiler works.
4997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998  # <limits.h> exists even on freestanding compilers.
4999  # On the NeXT, cc -E runs the code through the compiler's parser,
5000  # not just through cpp. "Syntax error" is here to catch this case.
5001  cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007#ifdef __STDC__
5008# include <limits.h>
5009#else
5010# include <assert.h>
5011#endif
5012		     Syntax error
5013_ACEOF
5014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5016  ac_status=$?
5017  grep -v '^ *+' conftest.er1 >conftest.err
5018  rm -f conftest.er1
5019  cat conftest.err >&5
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); } >/dev/null; then
5022  if test -s conftest.err; then
5023    ac_cpp_err=$ac_c_preproc_warn_flag
5024    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5025  else
5026    ac_cpp_err=
5027  fi
5028else
5029  ac_cpp_err=yes
5030fi
5031if test -z "$ac_cpp_err"; then
5032  :
5033else
5034  echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037  # Broken: fails on valid input.
5038continue
5039fi
5040rm -f conftest.err conftest.$ac_ext
5041
5042  # OK, works on sane cases.  Now check whether non-existent headers
5043  # can be detected and how.
5044  cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h.  */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h.  */
5050#include <ac_nonexistent.h>
5051_ACEOF
5052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054  ac_status=$?
5055  grep -v '^ *+' conftest.er1 >conftest.err
5056  rm -f conftest.er1
5057  cat conftest.err >&5
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); } >/dev/null; then
5060  if test -s conftest.err; then
5061    ac_cpp_err=$ac_c_preproc_warn_flag
5062    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5063  else
5064    ac_cpp_err=
5065  fi
5066else
5067  ac_cpp_err=yes
5068fi
5069if test -z "$ac_cpp_err"; then
5070  # Broken: success on invalid input.
5071continue
5072else
5073  echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076  # Passes both tests.
5077ac_preproc_ok=:
5078break
5079fi
5080rm -f conftest.err conftest.$ac_ext
5081
5082done
5083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084rm -f conftest.err conftest.$ac_ext
5085if $ac_preproc_ok; then
5086  break
5087fi
5088
5089    done
5090    ac_cv_prog_CPP=$CPP
5091
5092fi
5093  CPP=$ac_cv_prog_CPP
5094else
5095  ac_cv_prog_CPP=$CPP
5096fi
5097echo "$as_me:$LINENO: result: $CPP" >&5
5098echo "${ECHO_T}$CPP" >&6
5099ac_preproc_ok=false
5100for ac_c_preproc_warn_flag in '' yes
5101do
5102  # Use a header file that comes with gcc, so configuring glibc
5103  # with a fresh cross-compiler works.
5104  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5105  # <limits.h> exists even on freestanding compilers.
5106  # On the NeXT, cc -E runs the code through the compiler's parser,
5107  # not just through cpp. "Syntax error" is here to catch this case.
5108  cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h.  */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h.  */
5114#ifdef __STDC__
5115# include <limits.h>
5116#else
5117# include <assert.h>
5118#endif
5119		     Syntax error
5120_ACEOF
5121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123  ac_status=$?
5124  grep -v '^ *+' conftest.er1 >conftest.err
5125  rm -f conftest.er1
5126  cat conftest.err >&5
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); } >/dev/null; then
5129  if test -s conftest.err; then
5130    ac_cpp_err=$ac_c_preproc_warn_flag
5131    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5132  else
5133    ac_cpp_err=
5134  fi
5135else
5136  ac_cpp_err=yes
5137fi
5138if test -z "$ac_cpp_err"; then
5139  :
5140else
5141  echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
5144  # Broken: fails on valid input.
5145continue
5146fi
5147rm -f conftest.err conftest.$ac_ext
5148
5149  # OK, works on sane cases.  Now check whether non-existent headers
5150  # can be detected and how.
5151  cat >conftest.$ac_ext <<_ACEOF
5152/* confdefs.h.  */
5153_ACEOF
5154cat confdefs.h >>conftest.$ac_ext
5155cat >>conftest.$ac_ext <<_ACEOF
5156/* end confdefs.h.  */
5157#include <ac_nonexistent.h>
5158_ACEOF
5159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5160  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5161  ac_status=$?
5162  grep -v '^ *+' conftest.er1 >conftest.err
5163  rm -f conftest.er1
5164  cat conftest.err >&5
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); } >/dev/null; then
5167  if test -s conftest.err; then
5168    ac_cpp_err=$ac_c_preproc_warn_flag
5169    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5170  else
5171    ac_cpp_err=
5172  fi
5173else
5174  ac_cpp_err=yes
5175fi
5176if test -z "$ac_cpp_err"; then
5177  # Broken: success on invalid input.
5178continue
5179else
5180  echo "$as_me: failed program was:" >&5
5181sed 's/^/| /' conftest.$ac_ext >&5
5182
5183  # Passes both tests.
5184ac_preproc_ok=:
5185break
5186fi
5187rm -f conftest.err conftest.$ac_ext
5188
5189done
5190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191rm -f conftest.err conftest.$ac_ext
5192if $ac_preproc_ok; then
5193  :
5194else
5195  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5196See \`config.log' for more details." >&5
5197echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5198See \`config.log' for more details." >&2;}
5199   { (exit 1); exit 1; }; }
5200fi
5201
5202ac_ext=c
5203ac_cpp='$CPP $CPPFLAGS'
5204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207
5208
5209echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5211if test "${ac_cv_header_stdc+set}" = set; then
5212  echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214  cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h.  */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h.  */
5220#include <stdlib.h>
5221#include <stdarg.h>
5222#include <string.h>
5223#include <float.h>
5224
5225int
5226main ()
5227{
5228
5229  ;
5230  return 0;
5231}
5232_ACEOF
5233rm -f conftest.$ac_objext
5234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235  (eval $ac_compile) 2>conftest.er1
5236  ac_status=$?
5237  grep -v '^ *+' conftest.er1 >conftest.err
5238  rm -f conftest.er1
5239  cat conftest.err >&5
5240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241  (exit $ac_status); } &&
5242	 { ac_try='test -z "$ac_c_werror_flag"
5243			 || test ! -s conftest.err'
5244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245  (eval $ac_try) 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }; } &&
5249	 { ac_try='test -s conftest.$ac_objext'
5250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251  (eval $ac_try) 2>&5
5252  ac_status=$?
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); }; }; then
5255  ac_cv_header_stdc=yes
5256else
5257  echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260ac_cv_header_stdc=no
5261fi
5262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263
5264if test $ac_cv_header_stdc = yes; then
5265  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266  cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h.  */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h.  */
5272#include <string.h>
5273
5274_ACEOF
5275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276  $EGREP "memchr" >/dev/null 2>&1; then
5277  :
5278else
5279  ac_cv_header_stdc=no
5280fi
5281rm -f conftest*
5282
5283fi
5284
5285if test $ac_cv_header_stdc = yes; then
5286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287  cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h.  */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h.  */
5293#include <stdlib.h>
5294
5295_ACEOF
5296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297  $EGREP "free" >/dev/null 2>&1; then
5298  :
5299else
5300  ac_cv_header_stdc=no
5301fi
5302rm -f conftest*
5303
5304fi
5305
5306if test $ac_cv_header_stdc = yes; then
5307  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308  if test "$cross_compiling" = yes; then
5309  :
5310else
5311  cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317#include <ctype.h>
5318#if ((' ' & 0x0FF) == 0x020)
5319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5321#else
5322# define ISLOWER(c) \
5323		   (('a' <= (c) && (c) <= 'i') \
5324		     || ('j' <= (c) && (c) <= 'r') \
5325		     || ('s' <= (c) && (c) <= 'z'))
5326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5327#endif
5328
5329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330int
5331main ()
5332{
5333  int i;
5334  for (i = 0; i < 256; i++)
5335    if (XOR (islower (i), ISLOWER (i))
5336	|| toupper (i) != TOUPPER (i))
5337      exit(2);
5338  exit (0);
5339}
5340_ACEOF
5341rm -f conftest$ac_exeext
5342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343  (eval $ac_link) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348  (eval $ac_try) 2>&5
5349  ac_status=$?
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); }; }; then
5352  :
5353else
5354  echo "$as_me: program exited with status $ac_status" >&5
5355echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358( exit $ac_status )
5359ac_cv_header_stdc=no
5360fi
5361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5362fi
5363fi
5364fi
5365echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5366echo "${ECHO_T}$ac_cv_header_stdc" >&6
5367if test $ac_cv_header_stdc = yes; then
5368
5369cat >>confdefs.h <<\_ACEOF
5370#define STDC_HEADERS 1
5371_ACEOF
5372
5373fi
5374
5375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5386		  inttypes.h stdint.h unistd.h
5387do
5388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5389echo "$as_me:$LINENO: checking for $ac_header" >&5
5390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5391if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h.  */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h.  */
5400$ac_includes_default
5401
5402#include <$ac_header>
5403_ACEOF
5404rm -f conftest.$ac_objext
5405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406  (eval $ac_compile) 2>conftest.er1
5407  ac_status=$?
5408  grep -v '^ *+' conftest.er1 >conftest.err
5409  rm -f conftest.er1
5410  cat conftest.err >&5
5411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412  (exit $ac_status); } &&
5413	 { ac_try='test -z "$ac_c_werror_flag"
5414			 || test ! -s conftest.err'
5415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416  (eval $ac_try) 2>&5
5417  ac_status=$?
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); }; } &&
5420	 { ac_try='test -s conftest.$ac_objext'
5421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422  (eval $ac_try) 2>&5
5423  ac_status=$?
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); }; }; then
5426  eval "$as_ac_Header=yes"
5427else
5428  echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431eval "$as_ac_Header=no"
5432fi
5433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434fi
5435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5437if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438  cat >>confdefs.h <<_ACEOF
5439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440_ACEOF
5441
5442fi
5443
5444done
5445
5446
5447
5448for ac_header in dlfcn.h
5449do
5450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5451if eval "test \"\${$as_ac_Header+set}\" = set"; then
5452  echo "$as_me:$LINENO: checking for $ac_header" >&5
5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456fi
5457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459else
5460  # Is the header compilable?
5461echo "$as_me:$LINENO: checking $ac_header usability" >&5
5462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469$ac_includes_default
5470#include <$ac_header>
5471_ACEOF
5472rm -f conftest.$ac_objext
5473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474  (eval $ac_compile) 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } &&
5481	 { ac_try='test -z "$ac_c_werror_flag"
5482			 || test ! -s conftest.err'
5483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484  (eval $ac_try) 2>&5
5485  ac_status=$?
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; } &&
5488	 { ac_try='test -s conftest.$ac_objext'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; }; then
5494  ac_header_compiler=yes
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499ac_header_compiler=no
5500fi
5501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5503echo "${ECHO_T}$ac_header_compiler" >&6
5504
5505# Is the header present?
5506echo "$as_me:$LINENO: checking $ac_header presence" >&5
5507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5508cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h.  */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h.  */
5514#include <$ac_header>
5515_ACEOF
5516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } >/dev/null; then
5524  if test -s conftest.err; then
5525    ac_cpp_err=$ac_c_preproc_warn_flag
5526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527  else
5528    ac_cpp_err=
5529  fi
5530else
5531  ac_cpp_err=yes
5532fi
5533if test -z "$ac_cpp_err"; then
5534  ac_header_preproc=yes
5535else
5536  echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
5539  ac_header_preproc=no
5540fi
5541rm -f conftest.err conftest.$ac_ext
5542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5543echo "${ECHO_T}$ac_header_preproc" >&6
5544
5545# So?  What about this header?
5546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5547  yes:no: )
5548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5552    ac_header_preproc=yes
5553    ;;
5554  no:yes:* )
5555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5567    (
5568      cat <<\_ASBOX
5569## --------------------------------------------------------------- ##
5570## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5571## --------------------------------------------------------------- ##
5572_ASBOX
5573    ) |
5574      sed "s/^/$as_me: WARNING:     /" >&2
5575    ;;
5576esac
5577echo "$as_me:$LINENO: checking for $ac_header" >&5
5578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  eval "$as_ac_Header=\$ac_header_preproc"
5583fi
5584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586
5587fi
5588if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589  cat >>confdefs.h <<_ACEOF
5590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591_ACEOF
5592
5593fi
5594
5595done
5596
5597ac_ext=cc
5598ac_cpp='$CXXCPP $CPPFLAGS'
5599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5602if test -n "$ac_tool_prefix"; then
5603  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5604  do
5605    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_CXX+set}" = set; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  if test -n "$CXX"; then
5613  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  test -z "$as_dir" && as_dir=.
5620  for ac_exec_ext in '' $ac_executable_extensions; do
5621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624    break 2
5625  fi
5626done
5627done
5628
5629fi
5630fi
5631CXX=$ac_cv_prog_CXX
5632if test -n "$CXX"; then
5633  echo "$as_me:$LINENO: result: $CXX" >&5
5634echo "${ECHO_T}$CXX" >&6
5635else
5636  echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640    test -n "$CXX" && break
5641  done
5642fi
5643if test -z "$CXX"; then
5644  ac_ct_CXX=$CXX
5645  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5646do
5647  # Extract the first word of "$ac_prog", so it can be a program name with args.
5648set dummy $ac_prog; ac_word=$2
5649echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5652  echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654  if test -n "$ac_ct_CXX"; then
5655  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662  for ac_exec_ext in '' $ac_executable_extensions; do
5663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664    ac_cv_prog_ac_ct_CXX="$ac_prog"
5665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669done
5670
5671fi
5672fi
5673ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5674if test -n "$ac_ct_CXX"; then
5675  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5676echo "${ECHO_T}$ac_ct_CXX" >&6
5677else
5678  echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
5681
5682  test -n "$ac_ct_CXX" && break
5683done
5684test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5685
5686  CXX=$ac_ct_CXX
5687fi
5688
5689
5690# Provide some information about the compiler.
5691echo "$as_me:$LINENO:" \
5692     "checking for C++ compiler version" >&5
5693ac_compiler=`set X $ac_compile; echo $2`
5694{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5695  (eval $ac_compiler --version </dev/null >&5) 2>&5
5696  ac_status=$?
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); }
5699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5700  (eval $ac_compiler -v </dev/null >&5) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }
5704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5705  (eval $ac_compiler -V </dev/null >&5) 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }
5709
5710echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5711echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5712if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5713  echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715  cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h.  */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h.  */
5721
5722int
5723main ()
5724{
5725#ifndef __GNUC__
5726       choke me
5727#endif
5728
5729  ;
5730  return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735  (eval $ac_compile) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } &&
5742	 { ac_try='test -z "$ac_cxx_werror_flag"
5743			 || test ! -s conftest.err'
5744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745  (eval $ac_try) 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }; } &&
5749	 { ac_try='test -s conftest.$ac_objext'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; }; then
5755  ac_compiler_gnu=yes
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760ac_compiler_gnu=no
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5764
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5767echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5768GXX=`test $ac_compiler_gnu = yes && echo yes`
5769ac_test_CXXFLAGS=${CXXFLAGS+set}
5770ac_save_CXXFLAGS=$CXXFLAGS
5771CXXFLAGS="-g"
5772echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5773echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5774if test "${ac_cv_prog_cxx_g+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h.  */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h.  */
5783
5784int
5785main ()
5786{
5787
5788  ;
5789  return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794  (eval $ac_compile) 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } &&
5801	 { ac_try='test -z "$ac_cxx_werror_flag"
5802			 || test ! -s conftest.err'
5803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804  (eval $ac_try) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; } &&
5808	 { ac_try='test -s conftest.$ac_objext'
5809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810  (eval $ac_try) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; }; then
5814  ac_cv_prog_cxx_g=yes
5815else
5816  echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819ac_cv_prog_cxx_g=no
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5824echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5825if test "$ac_test_CXXFLAGS" = set; then
5826  CXXFLAGS=$ac_save_CXXFLAGS
5827elif test $ac_cv_prog_cxx_g = yes; then
5828  if test "$GXX" = yes; then
5829    CXXFLAGS="-g -O2"
5830  else
5831    CXXFLAGS="-g"
5832  fi
5833else
5834  if test "$GXX" = yes; then
5835    CXXFLAGS="-O2"
5836  else
5837    CXXFLAGS=
5838  fi
5839fi
5840for ac_declaration in \
5841   '' \
5842   'extern "C" void std::exit (int) throw (); using std::exit;' \
5843   'extern "C" void std::exit (int); using std::exit;' \
5844   'extern "C" void exit (int) throw ();' \
5845   'extern "C" void exit (int);' \
5846   'void exit (int);'
5847do
5848  cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h.  */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h.  */
5854$ac_declaration
5855#include <stdlib.h>
5856int
5857main ()
5858{
5859exit (42);
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866  (eval $ac_compile) 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } &&
5873	 { ac_try='test -z "$ac_cxx_werror_flag"
5874			 || test ! -s conftest.err'
5875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876  (eval $ac_try) 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; } &&
5880	 { ac_try='test -s conftest.$ac_objext'
5881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882  (eval $ac_try) 2>&5
5883  ac_status=$?
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); }; }; then
5886  :
5887else
5888  echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891continue
5892fi
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894  cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h.  */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h.  */
5900$ac_declaration
5901int
5902main ()
5903{
5904exit (42);
5905  ;
5906  return 0;
5907}
5908_ACEOF
5909rm -f conftest.$ac_objext
5910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911  (eval $ac_compile) 2>conftest.er1
5912  ac_status=$?
5913  grep -v '^ *+' conftest.er1 >conftest.err
5914  rm -f conftest.er1
5915  cat conftest.err >&5
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); } &&
5918	 { ac_try='test -z "$ac_cxx_werror_flag"
5919			 || test ! -s conftest.err'
5920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921  (eval $ac_try) 2>&5
5922  ac_status=$?
5923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); }; } &&
5925	 { ac_try='test -s conftest.$ac_objext'
5926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927  (eval $ac_try) 2>&5
5928  ac_status=$?
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); }; }; then
5931  break
5932else
5933  echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936fi
5937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938done
5939rm -f conftest*
5940if test -n "$ac_declaration"; then
5941  echo '#ifdef __cplusplus' >>confdefs.h
5942  echo $ac_declaration      >>confdefs.h
5943  echo '#endif'             >>confdefs.h
5944fi
5945
5946ac_ext=cc
5947ac_cpp='$CXXCPP $CPPFLAGS'
5948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5951
5952depcc="$CXX"  am_compiler_list=
5953
5954echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5955echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5956if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5960  # We make a subdir and do the tests there.  Otherwise we can end up
5961  # making bogus files that we don't know about and never remove.  For
5962  # instance it was reported that on HP-UX the gcc test will end up
5963  # making a dummy file named `D' -- because `-MD' means `put the output
5964  # in D'.
5965  mkdir conftest.dir
5966  # Copy depcomp to subdir because otherwise we won't find it if we're
5967  # using a relative directory.
5968  cp "$am_depcomp" conftest.dir
5969  cd conftest.dir
5970  # We will build objects and dependencies in a subdirectory because
5971  # it helps to detect inapplicable dependency modes.  For instance
5972  # both Tru64's cc and ICC support -MD to output dependencies as a
5973  # side effect of compilation, but ICC will put the dependencies in
5974  # the current directory while Tru64 will put them in the object
5975  # directory.
5976  mkdir sub
5977
5978  am_cv_CXX_dependencies_compiler_type=none
5979  if test "$am_compiler_list" = ""; then
5980     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5981  fi
5982  for depmode in $am_compiler_list; do
5983    # Setup a source with many dependencies, because some compilers
5984    # like to wrap large dependency lists on column 80 (with \), and
5985    # we should not choose a depcomp mode which is confused by this.
5986    #
5987    # We need to recreate these files for each test, as the compiler may
5988    # overwrite some of them when testing with obscure command lines.
5989    # This happens at least with the AIX C compiler.
5990    : > sub/conftest.c
5991    for i in 1 2 3 4 5 6; do
5992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5993      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5994      # Solaris 8's {/usr,}/bin/sh.
5995      touch sub/conftst$i.h
5996    done
5997    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5998
5999    case $depmode in
6000    nosideeffect)
6001      # after this tag, mechanisms are not by side-effect, so they'll
6002      # only be used when explicitly requested
6003      if test "x$enable_dependency_tracking" = xyes; then
6004	continue
6005      else
6006	break
6007      fi
6008      ;;
6009    none) break ;;
6010    esac
6011    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6012    # mode.  It turns out that the SunPro C++ compiler does not properly
6013    # handle `-M -o', and we need to detect this.
6014    if depmode=$depmode \
6015       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6017       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6018         >/dev/null 2>conftest.err &&
6019       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6020       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6021       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6022      # icc doesn't choke on unknown options, it will just issue warnings
6023      # or remarks (even with -Werror).  So we grep stderr for any message
6024      # that says an option was ignored or not supported.
6025      # When given -MP, icc 7.0 and 7.1 complain thusly:
6026      #   icc: Command line warning: ignoring option '-M'; no argument required
6027      # The diagnosis changed in icc 8.0:
6028      #   icc: Command line remark: option '-MP' not supported
6029      if (grep 'ignoring option' conftest.err ||
6030          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6031        am_cv_CXX_dependencies_compiler_type=$depmode
6032        break
6033      fi
6034    fi
6035  done
6036
6037  cd ..
6038  rm -rf conftest.dir
6039else
6040  am_cv_CXX_dependencies_compiler_type=none
6041fi
6042
6043fi
6044echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6045echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6046CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6047
6048
6049
6050if
6051  test "x$enable_dependency_tracking" != xno \
6052  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6053  am__fastdepCXX_TRUE=
6054  am__fastdepCXX_FALSE='#'
6055else
6056  am__fastdepCXX_TRUE='#'
6057  am__fastdepCXX_FALSE=
6058fi
6059
6060
6061
6062
6063if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6064    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6065    (test "X$CXX" != "Xg++"))) ; then
6066  ac_ext=cc
6067ac_cpp='$CXXCPP $CPPFLAGS'
6068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6071echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6072echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6073if test -z "$CXXCPP"; then
6074  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077      # Double quotes because CXXCPP needs to be expanded
6078    for CXXCPP in "$CXX -E" "/lib/cpp"
6079    do
6080      ac_preproc_ok=false
6081for ac_cxx_preproc_warn_flag in '' yes
6082do
6083  # Use a header file that comes with gcc, so configuring glibc
6084  # with a fresh cross-compiler works.
6085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086  # <limits.h> exists even on freestanding compilers.
6087  # On the NeXT, cc -E runs the code through the compiler's parser,
6088  # not just through cpp. "Syntax error" is here to catch this case.
6089  cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h.  */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h.  */
6095#ifdef __STDC__
6096# include <limits.h>
6097#else
6098# include <assert.h>
6099#endif
6100		     Syntax error
6101_ACEOF
6102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } >/dev/null; then
6110  if test -s conftest.err; then
6111    ac_cpp_err=$ac_cxx_preproc_warn_flag
6112    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6113  else
6114    ac_cpp_err=
6115  fi
6116else
6117  ac_cpp_err=yes
6118fi
6119if test -z "$ac_cpp_err"; then
6120  :
6121else
6122  echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125  # Broken: fails on valid input.
6126continue
6127fi
6128rm -f conftest.err conftest.$ac_ext
6129
6130  # OK, works on sane cases.  Now check whether non-existent headers
6131  # can be detected and how.
6132  cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h.  */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h.  */
6138#include <ac_nonexistent.h>
6139_ACEOF
6140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142  ac_status=$?
6143  grep -v '^ *+' conftest.er1 >conftest.err
6144  rm -f conftest.er1
6145  cat conftest.err >&5
6146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147  (exit $ac_status); } >/dev/null; then
6148  if test -s conftest.err; then
6149    ac_cpp_err=$ac_cxx_preproc_warn_flag
6150    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6151  else
6152    ac_cpp_err=
6153  fi
6154else
6155  ac_cpp_err=yes
6156fi
6157if test -z "$ac_cpp_err"; then
6158  # Broken: success on invalid input.
6159continue
6160else
6161  echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164  # Passes both tests.
6165ac_preproc_ok=:
6166break
6167fi
6168rm -f conftest.err conftest.$ac_ext
6169
6170done
6171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6172rm -f conftest.err conftest.$ac_ext
6173if $ac_preproc_ok; then
6174  break
6175fi
6176
6177    done
6178    ac_cv_prog_CXXCPP=$CXXCPP
6179
6180fi
6181  CXXCPP=$ac_cv_prog_CXXCPP
6182else
6183  ac_cv_prog_CXXCPP=$CXXCPP
6184fi
6185echo "$as_me:$LINENO: result: $CXXCPP" >&5
6186echo "${ECHO_T}$CXXCPP" >&6
6187ac_preproc_ok=false
6188for ac_cxx_preproc_warn_flag in '' yes
6189do
6190  # Use a header file that comes with gcc, so configuring glibc
6191  # with a fresh cross-compiler works.
6192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6193  # <limits.h> exists even on freestanding compilers.
6194  # On the NeXT, cc -E runs the code through the compiler's parser,
6195  # not just through cpp. "Syntax error" is here to catch this case.
6196  cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h.  */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h.  */
6202#ifdef __STDC__
6203# include <limits.h>
6204#else
6205# include <assert.h>
6206#endif
6207		     Syntax error
6208_ACEOF
6209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } >/dev/null; then
6217  if test -s conftest.err; then
6218    ac_cpp_err=$ac_cxx_preproc_warn_flag
6219    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6220  else
6221    ac_cpp_err=
6222  fi
6223else
6224  ac_cpp_err=yes
6225fi
6226if test -z "$ac_cpp_err"; then
6227  :
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232  # Broken: fails on valid input.
6233continue
6234fi
6235rm -f conftest.err conftest.$ac_ext
6236
6237  # OK, works on sane cases.  Now check whether non-existent headers
6238  # can be detected and how.
6239  cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h.  */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h.  */
6245#include <ac_nonexistent.h>
6246_ACEOF
6247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6249  ac_status=$?
6250  grep -v '^ *+' conftest.er1 >conftest.err
6251  rm -f conftest.er1
6252  cat conftest.err >&5
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); } >/dev/null; then
6255  if test -s conftest.err; then
6256    ac_cpp_err=$ac_cxx_preproc_warn_flag
6257    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6258  else
6259    ac_cpp_err=
6260  fi
6261else
6262  ac_cpp_err=yes
6263fi
6264if test -z "$ac_cpp_err"; then
6265  # Broken: success on invalid input.
6266continue
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271  # Passes both tests.
6272ac_preproc_ok=:
6273break
6274fi
6275rm -f conftest.err conftest.$ac_ext
6276
6277done
6278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6279rm -f conftest.err conftest.$ac_ext
6280if $ac_preproc_ok; then
6281  :
6282else
6283  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6284See \`config.log' for more details." >&5
6285echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6286See \`config.log' for more details." >&2;}
6287   { (exit 1); exit 1; }; }
6288fi
6289
6290ac_ext=cc
6291ac_cpp='$CXXCPP $CPPFLAGS'
6292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6295
6296fi
6297
6298
6299ac_ext=f
6300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6303if test -n "$ac_tool_prefix"; then
6304  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6305  do
6306    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6308echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6310if test "${ac_cv_prog_F77+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313  if test -n "$F77"; then
6314  ac_cv_prog_F77="$F77" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321  for ac_exec_ext in '' $ac_executable_extensions; do
6322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328done
6329
6330fi
6331fi
6332F77=$ac_cv_prog_F77
6333if test -n "$F77"; then
6334  echo "$as_me:$LINENO: result: $F77" >&5
6335echo "${ECHO_T}$F77" >&6
6336else
6337  echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339fi
6340
6341    test -n "$F77" && break
6342  done
6343fi
6344if test -z "$F77"; then
6345  ac_ct_F77=$F77
6346  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6347do
6348  # Extract the first word of "$ac_prog", so it can be a program name with args.
6349set dummy $ac_prog; ac_word=$2
6350echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  if test -n "$ac_ct_F77"; then
6356  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361  IFS=$as_save_IFS
6362  test -z "$as_dir" && as_dir=.
6363  for ac_exec_ext in '' $ac_executable_extensions; do
6364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365    ac_cv_prog_ac_ct_F77="$ac_prog"
6366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367    break 2
6368  fi
6369done
6370done
6371
6372fi
6373fi
6374ac_ct_F77=$ac_cv_prog_ac_ct_F77
6375if test -n "$ac_ct_F77"; then
6376  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6377echo "${ECHO_T}$ac_ct_F77" >&6
6378else
6379  echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381fi
6382
6383  test -n "$ac_ct_F77" && break
6384done
6385
6386  F77=$ac_ct_F77
6387fi
6388
6389
6390# Provide some information about the compiler.
6391echo "$as_me:6391:" \
6392     "checking for Fortran 77 compiler version" >&5
6393ac_compiler=`set X $ac_compile; echo $2`
6394{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6395  (eval $ac_compiler --version </dev/null >&5) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); }
6399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6400  (eval $ac_compiler -v </dev/null >&5) 2>&5
6401  ac_status=$?
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); }
6404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6405  (eval $ac_compiler -V </dev/null >&5) 2>&5
6406  ac_status=$?
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); }
6409rm -f a.out
6410
6411# If we don't use `.F' as extension, the preprocessor is not run on the
6412# input file.  (Note that this only needs to work for GNU compilers.)
6413ac_save_ext=$ac_ext
6414ac_ext=F
6415echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6416echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6417if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6418  echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420  cat >conftest.$ac_ext <<_ACEOF
6421      program main
6422#ifndef __GNUC__
6423       choke me
6424#endif
6425
6426      end
6427_ACEOF
6428rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430  (eval $ac_compile) 2>conftest.er1
6431  ac_status=$?
6432  grep -v '^ *+' conftest.er1 >conftest.err
6433  rm -f conftest.er1
6434  cat conftest.err >&5
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); } &&
6437	 { ac_try='test -z "$ac_f77_werror_flag"
6438			 || test ! -s conftest.err'
6439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440  (eval $ac_try) 2>&5
6441  ac_status=$?
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); }; } &&
6444	 { ac_try='test -s conftest.$ac_objext'
6445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446  (eval $ac_try) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; }; then
6450  ac_compiler_gnu=yes
6451else
6452  echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455ac_compiler_gnu=no
6456fi
6457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6459
6460fi
6461echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6462echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6463ac_ext=$ac_save_ext
6464ac_test_FFLAGS=${FFLAGS+set}
6465ac_save_FFLAGS=$FFLAGS
6466FFLAGS=
6467echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6468echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6469if test "${ac_cv_prog_f77_g+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  FFLAGS=-g
6473cat >conftest.$ac_ext <<_ACEOF
6474      program main
6475
6476      end
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480  (eval $ac_compile) 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } &&
6487	 { ac_try='test -z "$ac_f77_werror_flag"
6488			 || test ! -s conftest.err'
6489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490  (eval $ac_try) 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; } &&
6494	 { ac_try='test -s conftest.$ac_objext'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; }; then
6500  ac_cv_prog_f77_g=yes
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505ac_cv_prog_f77_g=no
6506fi
6507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508
6509fi
6510echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6511echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6512if test "$ac_test_FFLAGS" = set; then
6513  FFLAGS=$ac_save_FFLAGS
6514elif test $ac_cv_prog_f77_g = yes; then
6515  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6516    FFLAGS="-g -O2"
6517  else
6518    FFLAGS="-g"
6519  fi
6520else
6521  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6522    FFLAGS="-O2"
6523  else
6524    FFLAGS=
6525  fi
6526fi
6527
6528G77=`test $ac_compiler_gnu = yes && echo yes`
6529ac_ext=c
6530ac_cpp='$CPP $CPPFLAGS'
6531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534
6535
6536
6537# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6538
6539# find the maximum length of command line arguments
6540echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6541echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6542if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6543  echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545    i=0
6546  teststring="ABCD"
6547
6548  case $build_os in
6549  msdosdjgpp*)
6550    # On DJGPP, this test can blow up pretty badly due to problems in libc
6551    # (any single argument exceeding 2000 bytes causes a buffer overrun
6552    # during glob expansion).  Even if it were fixed, the result of this
6553    # check would be larger than it should be.
6554    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6555    ;;
6556
6557  gnu*)
6558    # Under GNU Hurd, this test is not required because there is
6559    # no limit to the length of command line arguments.
6560    # Libtool will interpret -1 as no limit whatsoever
6561    lt_cv_sys_max_cmd_len=-1;
6562    ;;
6563
6564  cygwin* | mingw*)
6565    # On Win9x/ME, this test blows up -- it succeeds, but takes
6566    # about 5 minutes as the teststring grows exponentially.
6567    # Worse, since 9x/ME are not pre-emptively multitasking,
6568    # you end up with a "frozen" computer, even though with patience
6569    # the test eventually succeeds (with a max line length of 256k).
6570    # Instead, let's just punt: use the minimum linelength reported by
6571    # all of the supported platforms: 8192 (on NT/2K/XP).
6572    lt_cv_sys_max_cmd_len=8192;
6573    ;;
6574
6575  amigaos*)
6576    # On AmigaOS with pdksh, this test takes hours, literally.
6577    # So we just punt and use a minimum line length of 8192.
6578    lt_cv_sys_max_cmd_len=8192;
6579    ;;
6580
6581  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6582    # This has been around since 386BSD, at least.  Likely further.
6583    if test -x /sbin/sysctl; then
6584      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6585    elif test -x /usr/sbin/sysctl; then
6586      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6587    else
6588      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6589    fi
6590    # And add a safety zone
6591    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6593    ;;
6594
6595  interix*)
6596    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6597    lt_cv_sys_max_cmd_len=196608
6598    ;;
6599
6600  osf*)
6601    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603    # nice to cause kernel panics so lets avoid the loop below.
6604    # First set a reasonable default.
6605    lt_cv_sys_max_cmd_len=16384
6606    #
6607    if test -x /sbin/sysconfig; then
6608      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610      esac
6611    fi
6612    ;;
6613  sco3.2v5*)
6614    lt_cv_sys_max_cmd_len=102400
6615    ;;
6616  sysv5* | sco5v6* | sysv4.2uw2*)
6617    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618    if test -n "$kargmax"; then
6619      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6620    else
6621      lt_cv_sys_max_cmd_len=32768
6622    fi
6623    ;;
6624  *)
6625    # If test is not a shell built-in, we'll probably end up computing a
6626    # maximum length that is only half of the actual maximum length, but
6627    # we can't tell.
6628    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6629    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6630	       = "XX$teststring") >/dev/null 2>&1 &&
6631	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6632	    lt_cv_sys_max_cmd_len=$new_result &&
6633	    test $i != 17 # 1/2 MB should be enough
6634    do
6635      i=`expr $i + 1`
6636      teststring=$teststring$teststring
6637    done
6638    teststring=
6639    # Add a significant safety factor because C++ compilers can tack on massive
6640    # amounts of additional arguments before passing them to the linker.
6641    # It appears as though 1/2 is a usable value.
6642    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6643    ;;
6644  esac
6645
6646fi
6647
6648if test -n $lt_cv_sys_max_cmd_len ; then
6649  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6650echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6651else
6652  echo "$as_me:$LINENO: result: none" >&5
6653echo "${ECHO_T}none" >&6
6654fi
6655
6656
6657
6658
6659# Check for command to grab the raw symbol name followed by C symbol from nm.
6660echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6661echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6662if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665
6666# These are sane defaults that work on at least a few old systems.
6667# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6668
6669# Character class describing NM global symbol codes.
6670symcode='[BCDEGRST]'
6671
6672# Regexp to match symbols that can be accessed directly from C.
6673sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6674
6675# Transform an extracted symbol line into a proper C declaration
6676lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6677
6678# Transform an extracted symbol line into symbol name and symbol address
6679lt_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'"
6680
6681# Define system-specific variables.
6682case $host_os in
6683aix*)
6684  symcode='[BCDT]'
6685  ;;
6686cygwin* | mingw* | pw32*)
6687  symcode='[ABCDGISTW]'
6688  ;;
6689hpux*) # Its linker distinguishes data from code symbols
6690  if test "$host_cpu" = ia64; then
6691    symcode='[ABCDEGRST]'
6692  fi
6693  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6694  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'"
6695  ;;
6696linux*)
6697  if test "$host_cpu" = ia64; then
6698    symcode='[ABCDGIRSTW]'
6699    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6700    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'"
6701  fi
6702  ;;
6703irix* | nonstopux*)
6704  symcode='[BCDEGRST]'
6705  ;;
6706osf*)
6707  symcode='[BCDEGQRST]'
6708  ;;
6709solaris*)
6710  symcode='[BDRT]'
6711  ;;
6712sco3.2v5*)
6713  symcode='[DT]'
6714  ;;
6715sysv4.2uw2*)
6716  symcode='[DT]'
6717  ;;
6718sysv5* | sco5v6* | unixware* | OpenUNIX*)
6719  symcode='[ABDT]'
6720  ;;
6721sysv4)
6722  symcode='[DFNSTU]'
6723  ;;
6724esac
6725
6726# Handle CRLF in mingw tool chain
6727opt_cr=
6728case $build_os in
6729mingw*)
6730  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6731  ;;
6732esac
6733
6734# If we're using GNU nm, then use its standard symbol codes.
6735case `$NM -V 2>&1` in
6736*GNU* | *'with BFD'*)
6737  symcode='[ABCDGIRSTW]' ;;
6738esac
6739
6740# Try without a prefix undercore, then with it.
6741for ac_symprfx in "" "_"; do
6742
6743  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6744  symxfrm="\\1 $ac_symprfx\\2 \\2"
6745
6746  # Write the raw and C identifiers.
6747  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6748
6749  # Check to see that the pipe works correctly.
6750  pipe_works=no
6751
6752  rm -f conftest*
6753  cat > conftest.$ac_ext <<EOF
6754#ifdef __cplusplus
6755extern "C" {
6756#endif
6757char nm_test_var;
6758void nm_test_func(){}
6759#ifdef __cplusplus
6760}
6761#endif
6762int main(){nm_test_var='a';nm_test_func();return(0);}
6763EOF
6764
6765  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766  (eval $ac_compile) 2>&5
6767  ac_status=$?
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); }; then
6770    # Now try to grab the symbols.
6771    nlist=conftest.nm
6772    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6773  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6774  ac_status=$?
6775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776  (exit $ac_status); } && test -s "$nlist"; then
6777      # Try sorting and uniquifying the output.
6778      if sort "$nlist" | uniq > "$nlist"T; then
6779	mv -f "$nlist"T "$nlist"
6780      else
6781	rm -f "$nlist"T
6782      fi
6783
6784      # Make sure that we snagged all the symbols we need.
6785      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6786	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6787	  cat <<EOF > conftest.$ac_ext
6788#ifdef __cplusplus
6789extern "C" {
6790#endif
6791
6792EOF
6793	  # Now generate the symbol file.
6794	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6795
6796	  cat <<EOF >> conftest.$ac_ext
6797#if defined (__STDC__) && __STDC__
6798# define lt_ptr_t void *
6799#else
6800# define lt_ptr_t char *
6801# define const
6802#endif
6803
6804/* The mapping between symbol names and symbols. */
6805const struct {
6806  const char *name;
6807  lt_ptr_t address;
6808}
6809lt_preloaded_symbols[] =
6810{
6811EOF
6812	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6813	  cat <<\EOF >> conftest.$ac_ext
6814  {0, (lt_ptr_t) 0}
6815};
6816
6817#ifdef __cplusplus
6818}
6819#endif
6820EOF
6821	  # Now try linking the two files.
6822	  mv conftest.$ac_objext conftstm.$ac_objext
6823	  lt_save_LIBS="$LIBS"
6824	  lt_save_CFLAGS="$CFLAGS"
6825	  LIBS="conftstm.$ac_objext"
6826	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6827	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828  (eval $ac_link) 2>&5
6829  ac_status=$?
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6832	    pipe_works=yes
6833	  fi
6834	  LIBS="$lt_save_LIBS"
6835	  CFLAGS="$lt_save_CFLAGS"
6836	else
6837	  echo "cannot find nm_test_func in $nlist" >&5
6838	fi
6839      else
6840	echo "cannot find nm_test_var in $nlist" >&5
6841      fi
6842    else
6843      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6844    fi
6845  else
6846    echo "$progname: failed program was:" >&5
6847    cat conftest.$ac_ext >&5
6848  fi
6849  rm -f conftest* conftst*
6850
6851  # Do not use the global_symbol_pipe unless it works.
6852  if test "$pipe_works" = yes; then
6853    break
6854  else
6855    lt_cv_sys_global_symbol_pipe=
6856  fi
6857done
6858
6859fi
6860
6861if test -z "$lt_cv_sys_global_symbol_pipe"; then
6862  lt_cv_sys_global_symbol_to_cdecl=
6863fi
6864if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6865  echo "$as_me:$LINENO: result: failed" >&5
6866echo "${ECHO_T}failed" >&6
6867else
6868  echo "$as_me:$LINENO: result: ok" >&5
6869echo "${ECHO_T}ok" >&6
6870fi
6871
6872echo "$as_me:$LINENO: checking for objdir" >&5
6873echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6874if test "${lt_cv_objdir+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877  rm -f .libs 2>/dev/null
6878mkdir .libs 2>/dev/null
6879if test -d .libs; then
6880  lt_cv_objdir=.libs
6881else
6882  # MS-DOS does not allow filenames that begin with a dot.
6883  lt_cv_objdir=_libs
6884fi
6885rmdir .libs 2>/dev/null
6886fi
6887echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6888echo "${ECHO_T}$lt_cv_objdir" >&6
6889objdir=$lt_cv_objdir
6890
6891
6892
6893
6894
6895case $host_os in
6896aix3*)
6897  # AIX sometimes has problems with the GCC collect2 program.  For some
6898  # reason, if we set the COLLECT_NAMES environment variable, the problems
6899  # vanish in a puff of smoke.
6900  if test "X${COLLECT_NAMES+set}" != Xset; then
6901    COLLECT_NAMES=
6902    export COLLECT_NAMES
6903  fi
6904  ;;
6905esac
6906
6907# Sed substitution that helps us do robust quoting.  It backslashifies
6908# metacharacters that are still active within double-quoted strings.
6909Xsed='sed -e 1s/^X//'
6910sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6911
6912# Same as above, but do not quote variable references.
6913double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6914
6915# Sed substitution to delay expansion of an escaped shell variable in a
6916# double_quote_subst'ed string.
6917delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6918
6919# Sed substitution to avoid accidental globbing in evaled expressions
6920no_glob_subst='s/\*/\\\*/g'
6921
6922# Constants:
6923rm="rm -f"
6924
6925# Global variables:
6926default_ofile=libtool
6927can_build_shared=yes
6928
6929# All known linkers require a `.a' archive for static linking (except MSVC,
6930# which needs '.lib').
6931libext=a
6932ltmain="$ac_aux_dir/ltmain.sh"
6933ofile="$default_ofile"
6934with_gnu_ld="$lt_cv_prog_gnu_ld"
6935
6936if test -n "$ac_tool_prefix"; then
6937  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6938set dummy ${ac_tool_prefix}ar; ac_word=$2
6939echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6941if test "${ac_cv_prog_AR+set}" = set; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  if test -n "$AR"; then
6945  ac_cv_prog_AR="$AR" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952  for ac_exec_ext in '' $ac_executable_extensions; do
6953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954    ac_cv_prog_AR="${ac_tool_prefix}ar"
6955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959done
6960
6961fi
6962fi
6963AR=$ac_cv_prog_AR
6964if test -n "$AR"; then
6965  echo "$as_me:$LINENO: result: $AR" >&5
6966echo "${ECHO_T}$AR" >&6
6967else
6968  echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970fi
6971
6972fi
6973if test -z "$ac_cv_prog_AR"; then
6974  ac_ct_AR=$AR
6975  # Extract the first word of "ar", so it can be a program name with args.
6976set dummy ar; ac_word=$2
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  if test -n "$ac_ct_AR"; then
6983  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990  for ac_exec_ext in '' $ac_executable_extensions; do
6991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992    ac_cv_prog_ac_ct_AR="ar"
6993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994    break 2
6995  fi
6996done
6997done
6998
6999  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7000fi
7001fi
7002ac_ct_AR=$ac_cv_prog_ac_ct_AR
7003if test -n "$ac_ct_AR"; then
7004  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7005echo "${ECHO_T}$ac_ct_AR" >&6
7006else
7007  echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
7009fi
7010
7011  AR=$ac_ct_AR
7012else
7013  AR="$ac_cv_prog_AR"
7014fi
7015
7016if test -n "$ac_tool_prefix"; then
7017  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7018set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7019echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7021if test "${ac_cv_prog_RANLIB+set}" = set; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024  if test -n "$RANLIB"; then
7025  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032  for ac_exec_ext in '' $ac_executable_extensions; do
7033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039done
7040
7041fi
7042fi
7043RANLIB=$ac_cv_prog_RANLIB
7044if test -n "$RANLIB"; then
7045  echo "$as_me:$LINENO: result: $RANLIB" >&5
7046echo "${ECHO_T}$RANLIB" >&6
7047else
7048  echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6
7050fi
7051
7052fi
7053if test -z "$ac_cv_prog_RANLIB"; then
7054  ac_ct_RANLIB=$RANLIB
7055  # Extract the first word of "ranlib", so it can be a program name with args.
7056set dummy ranlib; ac_word=$2
7057echo "$as_me:$LINENO: checking for $ac_word" >&5
7058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7059if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7060  echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062  if test -n "$ac_ct_RANLIB"; then
7063  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070  for ac_exec_ext in '' $ac_executable_extensions; do
7071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072    ac_cv_prog_ac_ct_RANLIB="ranlib"
7073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077done
7078
7079  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7080fi
7081fi
7082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7083if test -n "$ac_ct_RANLIB"; then
7084  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7085echo "${ECHO_T}$ac_ct_RANLIB" >&6
7086else
7087  echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089fi
7090
7091  RANLIB=$ac_ct_RANLIB
7092else
7093  RANLIB="$ac_cv_prog_RANLIB"
7094fi
7095
7096if test -n "$ac_tool_prefix"; then
7097  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}strip; ac_word=$2
7099echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7101if test "${ac_cv_prog_STRIP+set}" = set; then
7102  echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104  if test -n "$STRIP"; then
7105  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112  for ac_exec_ext in '' $ac_executable_extensions; do
7113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119done
7120
7121fi
7122fi
7123STRIP=$ac_cv_prog_STRIP
7124if test -n "$STRIP"; then
7125  echo "$as_me:$LINENO: result: $STRIP" >&5
7126echo "${ECHO_T}$STRIP" >&6
7127else
7128  echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130fi
7131
7132fi
7133if test -z "$ac_cv_prog_STRIP"; then
7134  ac_ct_STRIP=$STRIP
7135  # Extract the first word of "strip", so it can be a program name with args.
7136set dummy strip; ac_word=$2
7137echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142  if test -n "$ac_ct_STRIP"; then
7143  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150  for ac_exec_ext in '' $ac_executable_extensions; do
7151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_ac_ct_STRIP="strip"
7153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157done
7158
7159  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7160fi
7161fi
7162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7163if test -n "$ac_ct_STRIP"; then
7164  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7165echo "${ECHO_T}$ac_ct_STRIP" >&6
7166else
7167  echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169fi
7170
7171  STRIP=$ac_ct_STRIP
7172else
7173  STRIP="$ac_cv_prog_STRIP"
7174fi
7175
7176
7177old_CC="$CC"
7178old_CFLAGS="$CFLAGS"
7179
7180# Set sane defaults for various variables
7181test -z "$AR" && AR=ar
7182test -z "$AR_FLAGS" && AR_FLAGS=cru
7183test -z "$AS" && AS=as
7184test -z "$CC" && CC=cc
7185test -z "$LTCC" && LTCC=$CC
7186test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7187test -z "$DLLTOOL" && DLLTOOL=dlltool
7188test -z "$LD" && LD=ld
7189test -z "$LN_S" && LN_S="ln -s"
7190test -z "$MAGIC_CMD" && MAGIC_CMD=file
7191test -z "$NM" && NM=nm
7192test -z "$SED" && SED=sed
7193test -z "$OBJDUMP" && OBJDUMP=objdump
7194test -z "$RANLIB" && RANLIB=:
7195test -z "$STRIP" && STRIP=:
7196test -z "$ac_objext" && ac_objext=o
7197
7198# Determine commands to create old-style static archives.
7199old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7200old_postinstall_cmds='chmod 644 $oldlib'
7201old_postuninstall_cmds=
7202
7203if test -n "$RANLIB"; then
7204  case $host_os in
7205  openbsd*)
7206    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7207    ;;
7208  *)
7209    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7210    ;;
7211  esac
7212  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7213fi
7214
7215for cc_temp in $compiler""; do
7216  case $cc_temp in
7217    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7218    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7219    \-*) ;;
7220    *) break;;
7221  esac
7222done
7223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7224
7225
7226# Only perform the check for file, if the check method requires it
7227case $deplibs_check_method in
7228file_magic*)
7229  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7230    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7231echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7232if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7233  echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235  case $MAGIC_CMD in
7236[\\/*] |  ?:[\\/]*)
7237  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7238  ;;
7239*)
7240  lt_save_MAGIC_CMD="$MAGIC_CMD"
7241  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7242  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7243  for ac_dir in $ac_dummy; do
7244    IFS="$lt_save_ifs"
7245    test -z "$ac_dir" && ac_dir=.
7246    if test -f $ac_dir/${ac_tool_prefix}file; then
7247      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7248      if test -n "$file_magic_test_file"; then
7249	case $deplibs_check_method in
7250	"file_magic "*)
7251	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7252	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7253	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7254	    $EGREP "$file_magic_regex" > /dev/null; then
7255	    :
7256	  else
7257	    cat <<EOF 1>&2
7258
7259*** Warning: the command libtool uses to detect shared libraries,
7260*** $file_magic_cmd, produces output that libtool cannot recognize.
7261*** The result is that libtool may fail to recognize shared libraries
7262*** as such.  This will affect the creation of libtool libraries that
7263*** depend on shared libraries, but programs linked with such libtool
7264*** libraries will work regardless of this problem.  Nevertheless, you
7265*** may want to report the problem to your system manager and/or to
7266*** bug-libtool@gnu.org
7267
7268EOF
7269	  fi ;;
7270	esac
7271      fi
7272      break
7273    fi
7274  done
7275  IFS="$lt_save_ifs"
7276  MAGIC_CMD="$lt_save_MAGIC_CMD"
7277  ;;
7278esac
7279fi
7280
7281MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7282if test -n "$MAGIC_CMD"; then
7283  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7284echo "${ECHO_T}$MAGIC_CMD" >&6
7285else
7286  echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
7288fi
7289
7290if test -z "$lt_cv_path_MAGIC_CMD"; then
7291  if test -n "$ac_tool_prefix"; then
7292    echo "$as_me:$LINENO: checking for file" >&5
7293echo $ECHO_N "checking for file... $ECHO_C" >&6
7294if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  case $MAGIC_CMD in
7298[\\/*] |  ?:[\\/]*)
7299  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7300  ;;
7301*)
7302  lt_save_MAGIC_CMD="$MAGIC_CMD"
7303  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7305  for ac_dir in $ac_dummy; do
7306    IFS="$lt_save_ifs"
7307    test -z "$ac_dir" && ac_dir=.
7308    if test -f $ac_dir/file; then
7309      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7310      if test -n "$file_magic_test_file"; then
7311	case $deplibs_check_method in
7312	"file_magic "*)
7313	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7314	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7315	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7316	    $EGREP "$file_magic_regex" > /dev/null; then
7317	    :
7318	  else
7319	    cat <<EOF 1>&2
7320
7321*** Warning: the command libtool uses to detect shared libraries,
7322*** $file_magic_cmd, produces output that libtool cannot recognize.
7323*** The result is that libtool may fail to recognize shared libraries
7324*** as such.  This will affect the creation of libtool libraries that
7325*** depend on shared libraries, but programs linked with such libtool
7326*** libraries will work regardless of this problem.  Nevertheless, you
7327*** may want to report the problem to your system manager and/or to
7328*** bug-libtool@gnu.org
7329
7330EOF
7331	  fi ;;
7332	esac
7333      fi
7334      break
7335    fi
7336  done
7337  IFS="$lt_save_ifs"
7338  MAGIC_CMD="$lt_save_MAGIC_CMD"
7339  ;;
7340esac
7341fi
7342
7343MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344if test -n "$MAGIC_CMD"; then
7345  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7346echo "${ECHO_T}$MAGIC_CMD" >&6
7347else
7348  echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350fi
7351
7352  else
7353    MAGIC_CMD=:
7354  fi
7355fi
7356
7357  fi
7358  ;;
7359esac
7360
7361enable_dlopen=no
7362enable_win32_dll=no
7363
7364# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7365if test "${enable_libtool_lock+set}" = set; then
7366  enableval="$enable_libtool_lock"
7367
7368fi;
7369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7370
7371
7372# Check whether --with-pic or --without-pic was given.
7373if test "${with_pic+set}" = set; then
7374  withval="$with_pic"
7375  pic_mode="$withval"
7376else
7377  pic_mode=default
7378fi;
7379test -z "$pic_mode" && pic_mode=default
7380
7381# Use C for the default configuration in the libtool script
7382tagname=
7383lt_save_CC="$CC"
7384ac_ext=c
7385ac_cpp='$CPP $CPPFLAGS'
7386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389
7390
7391# Source file extension for C test sources.
7392ac_ext=c
7393
7394# Object file extension for compiled C test sources.
7395objext=o
7396objext=$objext
7397
7398# Code to be used in simple compile tests
7399lt_simple_compile_test_code="int some_variable = 0;\n"
7400
7401# Code to be used in simple link tests
7402lt_simple_link_test_code='int main(){return(0);}\n'
7403
7404
7405# If no C compiler was specified, use CC.
7406LTCC=${LTCC-"$CC"}
7407
7408# If no C compiler flags were specified, use CFLAGS.
7409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7410
7411# Allow CC to be a program name with arguments.
7412compiler=$CC
7413
7414
7415# save warnings/boilerplate of simple test code
7416ac_outfile=conftest.$ac_objext
7417printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7419_lt_compiler_boilerplate=`cat conftest.err`
7420$rm conftest*
7421
7422ac_outfile=conftest.$ac_objext
7423printf "$lt_simple_link_test_code" >conftest.$ac_ext
7424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7425_lt_linker_boilerplate=`cat conftest.err`
7426$rm conftest*
7427
7428
7429## CAVEAT EMPTOR:
7430## There is no encapsulation within the following macros, do not change
7431## the running order or otherwise move them around unless you know exactly
7432## what you are doing...
7433
7434lt_prog_compiler_no_builtin_flag=
7435
7436if test "$GCC" = yes; then
7437  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7438
7439
7440echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7441echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7442if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7443  echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445  lt_cv_prog_compiler_rtti_exceptions=no
7446  ac_outfile=conftest.$ac_objext
7447   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7448   lt_compiler_flag="-fno-rtti -fno-exceptions"
7449   # Insert the option either (1) after the last *FLAGS variable, or
7450   # (2) before a word containing "conftest.", or (3) at the end.
7451   # Note that $ac_compile itself does not contain backslashes and begins
7452   # with a dollar sign (not a hyphen), so the echo should work correctly.
7453   # The option is referenced via a variable to avoid confusing sed.
7454   lt_compile=`echo "$ac_compile" | $SED \
7455   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7456   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7457   -e 's:$: $lt_compiler_flag:'`
7458   (eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
7459   (eval "$lt_compile" 2>conftest.err)
7460   ac_status=$?
7461   cat conftest.err >&5
7462   echo "$as_me:7462: \$? = $ac_status" >&5
7463   if (exit $ac_status) && test -s "$ac_outfile"; then
7464     # The compiler can only warn and ignore the option if not recognized
7465     # So say no if there are warnings other than the usual output.
7466     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7467     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7468     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7469       lt_cv_prog_compiler_rtti_exceptions=yes
7470     fi
7471   fi
7472   $rm conftest*
7473
7474fi
7475echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7476echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7477
7478if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7479    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7480else
7481    :
7482fi
7483
7484fi
7485
7486lt_prog_compiler_wl=
7487lt_prog_compiler_pic=
7488lt_prog_compiler_static=
7489
7490echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7491echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7492
7493  if test "$GCC" = yes; then
7494    lt_prog_compiler_wl='-Wl,'
7495    lt_prog_compiler_static='-static'
7496
7497    case $host_os in
7498      aix*)
7499      # All AIX code is PIC.
7500      if test "$host_cpu" = ia64; then
7501	# AIX 5 now supports IA64 processor
7502	lt_prog_compiler_static='-Bstatic'
7503      fi
7504      ;;
7505
7506    amigaos*)
7507      # FIXME: we need at least 68020 code to build shared libraries, but
7508      # adding the `-m68020' flag to GCC prevents building anything better,
7509      # like `-m68040'.
7510      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7511      ;;
7512
7513    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7514      # PIC is the default for these OSes.
7515      ;;
7516
7517    mingw* | pw32* | os2*)
7518      # This hack is so that the source file can tell whether it is being
7519      # built for inclusion in a dll (and should export symbols for example).
7520      lt_prog_compiler_pic='-DDLL_EXPORT'
7521      ;;
7522
7523    darwin* | rhapsody*)
7524      # PIC is the default on this platform
7525      # Common symbols not allowed in MH_DYLIB files
7526      lt_prog_compiler_pic='-fno-common'
7527      ;;
7528
7529    interix3*)
7530      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7531      # Instead, we relocate shared libraries at runtime.
7532      ;;
7533
7534    msdosdjgpp*)
7535      # Just because we use GCC doesn't mean we suddenly get shared libraries
7536      # on systems that don't support them.
7537      lt_prog_compiler_can_build_shared=no
7538      enable_shared=no
7539      ;;
7540
7541    sysv4*MP*)
7542      if test -d /usr/nec; then
7543	lt_prog_compiler_pic=-Kconform_pic
7544      fi
7545      ;;
7546
7547    hpux*)
7548      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7549      # not for PA HP-UX.
7550      case $host_cpu in
7551      hppa*64*|ia64*)
7552	# +Z the default
7553	;;
7554      *)
7555	lt_prog_compiler_pic='-fPIC'
7556	;;
7557      esac
7558      ;;
7559
7560    *)
7561      lt_prog_compiler_pic='-fPIC'
7562      ;;
7563    esac
7564  else
7565    # PORTME Check for flag to pass linker flags through the system compiler.
7566    case $host_os in
7567    aix*)
7568      lt_prog_compiler_wl='-Wl,'
7569      if test "$host_cpu" = ia64; then
7570	# AIX 5 now supports IA64 processor
7571	lt_prog_compiler_static='-Bstatic'
7572      else
7573	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7574      fi
7575      ;;
7576      darwin*)
7577        # PIC is the default on this platform
7578        # Common symbols not allowed in MH_DYLIB files
7579       case $cc_basename in
7580         xlc*)
7581         lt_prog_compiler_pic='-qnocommon'
7582         lt_prog_compiler_wl='-Wl,'
7583         ;;
7584       esac
7585       ;;
7586
7587    mingw* | pw32* | os2*)
7588      # This hack is so that the source file can tell whether it is being
7589      # built for inclusion in a dll (and should export symbols for example).
7590      lt_prog_compiler_pic='-DDLL_EXPORT'
7591      ;;
7592
7593    hpux9* | hpux10* | hpux11*)
7594      lt_prog_compiler_wl='-Wl,'
7595      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7596      # not for PA HP-UX.
7597      case $host_cpu in
7598      hppa*64*|ia64*)
7599	# +Z the default
7600	;;
7601      *)
7602	lt_prog_compiler_pic='+Z'
7603	;;
7604      esac
7605      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7606      lt_prog_compiler_static='${wl}-a ${wl}archive'
7607      ;;
7608
7609    irix5* | irix6* | nonstopux*)
7610      lt_prog_compiler_wl='-Wl,'
7611      # PIC (with -KPIC) is the default.
7612      lt_prog_compiler_static='-non_shared'
7613      ;;
7614
7615    newsos6)
7616      lt_prog_compiler_pic='-KPIC'
7617      lt_prog_compiler_static='-Bstatic'
7618      ;;
7619
7620    linux*)
7621      case $cc_basename in
7622      icc* | ecc*)
7623	lt_prog_compiler_wl='-Wl,'
7624	lt_prog_compiler_pic='-KPIC'
7625	lt_prog_compiler_static='-static'
7626        ;;
7627      pgcc* | pgf77* | pgf90* | pgf95*)
7628        # Portland Group compilers (*not* the Pentium gcc compiler,
7629	# which looks to be a dead project)
7630	lt_prog_compiler_wl='-Wl,'
7631	lt_prog_compiler_pic='-fpic'
7632	lt_prog_compiler_static='-Bstatic'
7633        ;;
7634      ccc*)
7635        lt_prog_compiler_wl='-Wl,'
7636        # All Alpha code is PIC.
7637        lt_prog_compiler_static='-non_shared'
7638        ;;
7639      esac
7640      ;;
7641
7642    osf3* | osf4* | osf5*)
7643      lt_prog_compiler_wl='-Wl,'
7644      # All OSF/1 code is PIC.
7645      lt_prog_compiler_static='-non_shared'
7646      ;;
7647
7648    solaris*)
7649      lt_prog_compiler_pic='-KPIC'
7650      lt_prog_compiler_static='-Bstatic'
7651      case $cc_basename in
7652      f77* | f90* | f95*)
7653	lt_prog_compiler_wl='-Qoption ld ';;
7654      *)
7655	lt_prog_compiler_wl='-Wl,';;
7656      esac
7657      ;;
7658
7659    sunos4*)
7660      lt_prog_compiler_wl='-Qoption ld '
7661      lt_prog_compiler_pic='-PIC'
7662      lt_prog_compiler_static='-Bstatic'
7663      ;;
7664
7665    sysv4 | sysv4.2uw2* | sysv4.3*)
7666      lt_prog_compiler_wl='-Wl,'
7667      lt_prog_compiler_pic='-KPIC'
7668      lt_prog_compiler_static='-Bstatic'
7669      ;;
7670
7671    sysv4*MP*)
7672      if test -d /usr/nec ;then
7673	lt_prog_compiler_pic='-Kconform_pic'
7674	lt_prog_compiler_static='-Bstatic'
7675      fi
7676      ;;
7677
7678    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7679      lt_prog_compiler_wl='-Wl,'
7680      lt_prog_compiler_pic='-KPIC'
7681      lt_prog_compiler_static='-Bstatic'
7682      ;;
7683
7684    unicos*)
7685      lt_prog_compiler_wl='-Wl,'
7686      lt_prog_compiler_can_build_shared=no
7687      ;;
7688
7689    uts4*)
7690      lt_prog_compiler_pic='-pic'
7691      lt_prog_compiler_static='-Bstatic'
7692      ;;
7693
7694    *)
7695      lt_prog_compiler_can_build_shared=no
7696      ;;
7697    esac
7698  fi
7699
7700echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7701echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7702
7703#
7704# Check to make sure the PIC flag actually works.
7705#
7706if test -n "$lt_prog_compiler_pic"; then
7707
7708echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7709echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7710if test "${lt_prog_compiler_pic_works+set}" = set; then
7711  echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713  lt_prog_compiler_pic_works=no
7714  ac_outfile=conftest.$ac_objext
7715   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7716   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7717   # Insert the option either (1) after the last *FLAGS variable, or
7718   # (2) before a word containing "conftest.", or (3) at the end.
7719   # Note that $ac_compile itself does not contain backslashes and begins
7720   # with a dollar sign (not a hyphen), so the echo should work correctly.
7721   # The option is referenced via a variable to avoid confusing sed.
7722   lt_compile=`echo "$ac_compile" | $SED \
7723   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725   -e 's:$: $lt_compiler_flag:'`
7726   (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
7727   (eval "$lt_compile" 2>conftest.err)
7728   ac_status=$?
7729   cat conftest.err >&5
7730   echo "$as_me:7730: \$? = $ac_status" >&5
7731   if (exit $ac_status) && test -s "$ac_outfile"; then
7732     # The compiler can only warn and ignore the option if not recognized
7733     # So say no if there are warnings other than the usual output.
7734     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7735     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7736     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7737       lt_prog_compiler_pic_works=yes
7738     fi
7739   fi
7740   $rm conftest*
7741
7742fi
7743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7744echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7745
7746if test x"$lt_prog_compiler_pic_works" = xyes; then
7747    case $lt_prog_compiler_pic in
7748     "" | " "*) ;;
7749     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7750     esac
7751else
7752    lt_prog_compiler_pic=
7753     lt_prog_compiler_can_build_shared=no
7754fi
7755
7756fi
7757case $host_os in
7758  # For platforms which do not support PIC, -DPIC is meaningless:
7759  *djgpp*)
7760    lt_prog_compiler_pic=
7761    ;;
7762  *)
7763    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7764    ;;
7765esac
7766
7767#
7768# Check to make sure the static flag actually works.
7769#
7770wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7771echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7772echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7773if test "${lt_prog_compiler_static_works+set}" = set; then
7774  echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776  lt_prog_compiler_static_works=no
7777   save_LDFLAGS="$LDFLAGS"
7778   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7779   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7780   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7781     # The linker can only warn and ignore the option if not recognized
7782     # So say no if there are warnings
7783     if test -s conftest.err; then
7784       # Append any errors to the config.log.
7785       cat conftest.err 1>&5
7786       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7787       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788       if diff conftest.exp conftest.er2 >/dev/null; then
7789         lt_prog_compiler_static_works=yes
7790       fi
7791     else
7792       lt_prog_compiler_static_works=yes
7793     fi
7794   fi
7795   $rm conftest*
7796   LDFLAGS="$save_LDFLAGS"
7797
7798fi
7799echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7800echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7801
7802if test x"$lt_prog_compiler_static_works" = xyes; then
7803    :
7804else
7805    lt_prog_compiler_static=
7806fi
7807
7808
7809echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7810echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7811if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814  lt_cv_prog_compiler_c_o=no
7815   $rm -r conftest 2>/dev/null
7816   mkdir conftest
7817   cd conftest
7818   mkdir out
7819   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7820
7821   lt_compiler_flag="-o out/conftest2.$ac_objext"
7822   # Insert the option either (1) after the last *FLAGS variable, or
7823   # (2) before a word containing "conftest.", or (3) at the end.
7824   # Note that $ac_compile itself does not contain backslashes and begins
7825   # with a dollar sign (not a hyphen), so the echo should work correctly.
7826   lt_compile=`echo "$ac_compile" | $SED \
7827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829   -e 's:$: $lt_compiler_flag:'`
7830   (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831   (eval "$lt_compile" 2>out/conftest.err)
7832   ac_status=$?
7833   cat out/conftest.err >&5
7834   echo "$as_me:7834: \$? = $ac_status" >&5
7835   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7836   then
7837     # The compiler can only warn and ignore the option if not recognized
7838     # So say no if there are warnings
7839     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7840     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7841     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7842       lt_cv_prog_compiler_c_o=yes
7843     fi
7844   fi
7845   chmod u+w . 2>&5
7846   $rm conftest*
7847   # SGI C++ compiler will create directory out/ii_files/ for
7848   # template instantiation
7849   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7850   $rm out/* && rmdir out
7851   cd ..
7852   rmdir conftest
7853   $rm conftest*
7854
7855fi
7856echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7857echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7858
7859
7860hard_links="nottested"
7861if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7862  # do not overwrite the value of need_locks provided by the user
7863  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7864echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7865  hard_links=yes
7866  $rm conftest*
7867  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7868  touch conftest.a
7869  ln conftest.a conftest.b 2>&5 || hard_links=no
7870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7871  echo "$as_me:$LINENO: result: $hard_links" >&5
7872echo "${ECHO_T}$hard_links" >&6
7873  if test "$hard_links" = no; then
7874    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7875echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7876    need_locks=warn
7877  fi
7878else
7879  need_locks=no
7880fi
7881
7882echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7883echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7884
7885  runpath_var=
7886  allow_undefined_flag=
7887  enable_shared_with_static_runtimes=no
7888  archive_cmds=
7889  archive_expsym_cmds=
7890  old_archive_From_new_cmds=
7891  old_archive_from_expsyms_cmds=
7892  export_dynamic_flag_spec=
7893  whole_archive_flag_spec=
7894  thread_safe_flag_spec=
7895  hardcode_libdir_flag_spec=
7896  hardcode_libdir_flag_spec_ld=
7897  hardcode_libdir_separator=
7898  hardcode_direct=no
7899  hardcode_minus_L=no
7900  hardcode_shlibpath_var=unsupported
7901  link_all_deplibs=unknown
7902  hardcode_automatic=no
7903  module_cmds=
7904  module_expsym_cmds=
7905  always_export_symbols=no
7906  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7907  # include_expsyms should be a list of space-separated symbols to be *always*
7908  # included in the symbol list
7909  include_expsyms=
7910  # exclude_expsyms can be an extended regexp of symbols to exclude
7911  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7912  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7913  # as well as any symbol that contains `d'.
7914  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7915  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7916  # platforms (ab)use it in PIC code, but their linkers get confused if
7917  # the symbol is explicitly referenced.  Since portable code cannot
7918  # rely on this symbol name, it's probably fine to never include it in
7919  # preloaded symbol tables.
7920  extract_expsyms_cmds=
7921  # Just being paranoid about ensuring that cc_basename is set.
7922  for cc_temp in $compiler""; do
7923  case $cc_temp in
7924    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7925    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7926    \-*) ;;
7927    *) break;;
7928  esac
7929done
7930cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7931
7932  case $host_os in
7933  cygwin* | mingw* | pw32*)
7934    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7935    # When not using gcc, we currently assume that we are using
7936    # Microsoft Visual C++.
7937    if test "$GCC" != yes; then
7938      with_gnu_ld=no
7939    fi
7940    ;;
7941  interix*)
7942    # we just hope/assume this is gcc and not c89 (= MSVC++)
7943    with_gnu_ld=yes
7944    ;;
7945  openbsd*)
7946    with_gnu_ld=no
7947    ;;
7948  esac
7949
7950  ld_shlibs=yes
7951  if test "$with_gnu_ld" = yes; then
7952    # If archive_cmds runs LD, not CC, wlarc should be empty
7953    wlarc='${wl}'
7954
7955    # Set some defaults for GNU ld with shared library support. These
7956    # are reset later if shared libraries are not supported. Putting them
7957    # here allows them to be overridden if necessary.
7958    runpath_var=LD_RUN_PATH
7959    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7960    export_dynamic_flag_spec='${wl}--export-dynamic'
7961    # ancient GNU ld didn't support --whole-archive et. al.
7962    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7963	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7964      else
7965  	whole_archive_flag_spec=
7966    fi
7967    supports_anon_versioning=no
7968    case `$LD -v 2>/dev/null` in
7969      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7970      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7971      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7972      *\ 2.11.*) ;; # other 2.11 versions
7973      *) supports_anon_versioning=yes ;;
7974    esac
7975
7976    # See if GNU ld supports shared libraries.
7977    case $host_os in
7978    aix3* | aix4* | aix5*)
7979      # On AIX/PPC, the GNU linker is very broken
7980      if test "$host_cpu" != ia64; then
7981	ld_shlibs=no
7982	cat <<EOF 1>&2
7983
7984*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7985*** to be unable to reliably create shared libraries on AIX.
7986*** Therefore, libtool is disabling shared libraries support.  If you
7987*** really care for shared libraries, you may want to modify your PATH
7988*** so that a non-GNU linker is found, and then restart.
7989
7990EOF
7991      fi
7992      ;;
7993
7994    amigaos*)
7995      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)'
7996      hardcode_libdir_flag_spec='-L$libdir'
7997      hardcode_minus_L=yes
7998
7999      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8000      # that the semantics of dynamic libraries on AmigaOS, at least up
8001      # to version 4, is to share data among multiple programs linked
8002      # with the same dynamic library.  Since this doesn't match the
8003      # behavior of shared libraries on other platforms, we can't use
8004      # them.
8005      ld_shlibs=no
8006      ;;
8007
8008    beos*)
8009      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010	allow_undefined_flag=unsupported
8011	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012	# support --undefined.  This deserves some investigation.  FIXME
8013	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014      else
8015	ld_shlibs=no
8016      fi
8017      ;;
8018
8019    cygwin* | mingw* | pw32*)
8020      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021      # as there is no search path for DLLs.
8022      hardcode_libdir_flag_spec='-L$libdir'
8023      allow_undefined_flag=unsupported
8024      always_export_symbols=no
8025      enable_shared_with_static_runtimes=yes
8026      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8027
8028      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8029        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8030	# If the export-symbols file already is a .def file (1st line
8031	# is EXPORTS), use it as is; otherwise, prepend...
8032	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8033	  cp $export_symbols $output_objdir/$soname.def;
8034	else
8035	  echo EXPORTS > $output_objdir/$soname.def;
8036	  cat $export_symbols >> $output_objdir/$soname.def;
8037	fi~
8038	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8039      else
8040	ld_shlibs=no
8041      fi
8042      ;;
8043
8044    interix3*)
8045      hardcode_direct=no
8046      hardcode_shlibpath_var=no
8047      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8048      export_dynamic_flag_spec='${wl}-E'
8049      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8050      # Instead, shared libraries are loaded at an image base (0x10000000 by
8051      # default) and relocated if they conflict, which is a slow very memory
8052      # consuming and fragmenting process.  To avoid this, we pick a random,
8053      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8054      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8055      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8056      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8057      ;;
8058
8059    linux*)
8060      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061	tmp_addflag=
8062	case $cc_basename,$host_cpu in
8063	pgcc*)				# Portland Group C compiler
8064	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8065	  tmp_addflag=' $pic_flag'
8066	  ;;
8067	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8068	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8069	  tmp_addflag=' $pic_flag -Mnomain' ;;
8070	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8071	  tmp_addflag=' -i_dynamic' ;;
8072	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8073	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8074	ifc* | ifort*)			# Intel Fortran compiler
8075	  tmp_addflag=' -nofor_main' ;;
8076	esac
8077	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078
8079	if test $supports_anon_versioning = yes; then
8080	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8081  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8082  $echo "local: *; };" >> $output_objdir/$libname.ver~
8083	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8084	fi
8085      else
8086	ld_shlibs=no
8087      fi
8088      ;;
8089
8090    netbsd*)
8091      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8092	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8093	wlarc=
8094      else
8095	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097      fi
8098      ;;
8099
8100    solaris*)
8101      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8102	ld_shlibs=no
8103	cat <<EOF 1>&2
8104
8105*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8106*** create shared libraries on Solaris systems.  Therefore, libtool
8107*** is disabling shared libraries support.  We urge you to upgrade GNU
8108*** binutils to release 2.9.1 or newer.  Another option is to modify
8109*** your PATH or compiler configuration so that the native linker is
8110*** used, and then restart.
8111
8112EOF
8113      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8116      else
8117	ld_shlibs=no
8118      fi
8119      ;;
8120
8121    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8122      case `$LD -v 2>&1` in
8123        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8124	ld_shlibs=no
8125	cat <<_LT_EOF 1>&2
8126
8127*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8128*** reliably create shared libraries on SCO systems.  Therefore, libtool
8129*** is disabling shared libraries support.  We urge you to upgrade GNU
8130*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8131*** your PATH or compiler configuration so that the native linker is
8132*** used, and then restart.
8133
8134_LT_EOF
8135	;;
8136	*)
8137	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8138	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8139	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8140	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8141	  else
8142	    ld_shlibs=no
8143	  fi
8144	;;
8145      esac
8146      ;;
8147
8148    sunos4*)
8149      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8150      wlarc=
8151      hardcode_direct=yes
8152      hardcode_shlibpath_var=no
8153      ;;
8154
8155    *)
8156      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8157	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8159      else
8160	ld_shlibs=no
8161      fi
8162      ;;
8163    esac
8164
8165    if test "$ld_shlibs" = no; then
8166      runpath_var=
8167      hardcode_libdir_flag_spec=
8168      export_dynamic_flag_spec=
8169      whole_archive_flag_spec=
8170    fi
8171  else
8172    # PORTME fill in a description of your system's linker (not GNU ld)
8173    case $host_os in
8174    aix3*)
8175      allow_undefined_flag=unsupported
8176      always_export_symbols=yes
8177      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'
8178      # Note: this linker hardcodes the directories in LIBPATH if there
8179      # are no directories specified by -L.
8180      hardcode_minus_L=yes
8181      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8182	# Neither direct hardcoding nor static linking is supported with a
8183	# broken collect2.
8184	hardcode_direct=unsupported
8185      fi
8186      ;;
8187
8188    aix4* | aix5*)
8189      if test "$host_cpu" = ia64; then
8190	# On IA64, the linker does run time linking by default, so we don't
8191	# have to do anything special.
8192	aix_use_runtimelinking=no
8193	exp_sym_flag='-Bexport'
8194	no_entry_flag=""
8195      else
8196	# If we're using GNU nm, then we don't want the "-C" option.
8197	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8198	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8199	  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'
8200	else
8201	  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'
8202	fi
8203	aix_use_runtimelinking=no
8204
8205	# Test if we are trying to use run time linking or normal
8206	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8207	# need to do runtime linking.
8208	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8209	  for ld_flag in $LDFLAGS; do
8210  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8211  	    aix_use_runtimelinking=yes
8212  	    break
8213  	  fi
8214	  done
8215	  ;;
8216	esac
8217
8218	exp_sym_flag='-bexport'
8219	no_entry_flag='-bnoentry'
8220      fi
8221
8222      # When large executables or shared objects are built, AIX ld can
8223      # have problems creating the table of contents.  If linking a library
8224      # or program results in "error TOC overflow" add -mminimal-toc to
8225      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8226      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8227
8228      archive_cmds=''
8229      hardcode_direct=yes
8230      hardcode_libdir_separator=':'
8231      link_all_deplibs=yes
8232
8233      if test "$GCC" = yes; then
8234	case $host_os in aix4.[012]|aix4.[012].*)
8235	# We only want to do this on AIX 4.2 and lower, the check
8236	# below for broken collect2 doesn't work under 4.3+
8237	  collect2name=`${CC} -print-prog-name=collect2`
8238	  if test -f "$collect2name" && \
8239  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8240	  then
8241  	  # We have reworked collect2
8242  	  hardcode_direct=yes
8243	  else
8244  	  # We have old collect2
8245  	  hardcode_direct=unsupported
8246  	  # It fails to find uninstalled libraries when the uninstalled
8247  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8248  	  # to unsupported forces relinking
8249  	  hardcode_minus_L=yes
8250  	  hardcode_libdir_flag_spec='-L$libdir'
8251  	  hardcode_libdir_separator=
8252	  fi
8253	  ;;
8254	esac
8255	shared_flag='-shared'
8256	if test "$aix_use_runtimelinking" = yes; then
8257	  shared_flag="$shared_flag "'${wl}-G'
8258	fi
8259      else
8260	# not using gcc
8261	if test "$host_cpu" = ia64; then
8262  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8263  	# chokes on -Wl,-G. The following line is correct:
8264	  shared_flag='-G'
8265	else
8266	  if test "$aix_use_runtimelinking" = yes; then
8267	    shared_flag='${wl}-G'
8268	  else
8269	    shared_flag='${wl}-bM:SRE'
8270	  fi
8271	fi
8272      fi
8273
8274      # It seems that -bexpall does not export symbols beginning with
8275      # underscore (_), so it is better to generate a list of symbols to export.
8276      always_export_symbols=yes
8277      if test "$aix_use_runtimelinking" = yes; then
8278	# Warning - without using the other runtime loading flags (-brtl),
8279	# -berok will link without error, but may produce a broken library.
8280	allow_undefined_flag='-berok'
8281       # Determine the default libpath from the value encoded in an empty executable.
8282       cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h.  */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h.  */
8288
8289int
8290main ()
8291{
8292
8293  ;
8294  return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299  (eval $ac_link) 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } &&
8306	 { ac_try='test -z "$ac_c_werror_flag"
8307			 || test ! -s conftest.err'
8308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309  (eval $ac_try) 2>&5
8310  ac_status=$?
8311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312  (exit $ac_status); }; } &&
8313	 { ac_try='test -s conftest$ac_exeext'
8314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315  (eval $ac_try) 2>&5
8316  ac_status=$?
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); }; }; then
8319
8320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8321}'`
8322# Check for a 64-bit object if we didn't find anything.
8323if 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; }
8324}'`; fi
8325else
8326  echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329fi
8330rm -f conftest.err conftest.$ac_objext \
8331      conftest$ac_exeext conftest.$ac_ext
8332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8333
8334       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8336       else
8337	if test "$host_cpu" = ia64; then
8338	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339	  allow_undefined_flag="-z nodefs"
8340	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8341	else
8342	 # Determine the default libpath from the value encoded in an empty executable.
8343	 cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h.  */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h.  */
8349
8350int
8351main ()
8352{
8353
8354  ;
8355  return 0;
8356}
8357_ACEOF
8358rm -f conftest.$ac_objext conftest$ac_exeext
8359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360  (eval $ac_link) 2>conftest.er1
8361  ac_status=$?
8362  grep -v '^ *+' conftest.er1 >conftest.err
8363  rm -f conftest.er1
8364  cat conftest.err >&5
8365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366  (exit $ac_status); } &&
8367	 { ac_try='test -z "$ac_c_werror_flag"
8368			 || test ! -s conftest.err'
8369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370  (eval $ac_try) 2>&5
8371  ac_status=$?
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); }; } &&
8374	 { ac_try='test -s conftest$ac_exeext'
8375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376  (eval $ac_try) 2>&5
8377  ac_status=$?
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); }; }; then
8380
8381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8382}'`
8383# Check for a 64-bit object if we didn't find anything.
8384if 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; }
8385}'`; fi
8386else
8387  echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390fi
8391rm -f conftest.err conftest.$ac_objext \
8392      conftest$ac_exeext conftest.$ac_ext
8393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8394
8395	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8396	  # Warning - without using the other run time loading flags,
8397	  # -berok will link without error, but may produce a broken library.
8398	  no_undefined_flag=' ${wl}-bernotok'
8399	  allow_undefined_flag=' ${wl}-berok'
8400	  # Exported symbols can be pulled into shared objects from archives
8401	  whole_archive_flag_spec='$convenience'
8402	  archive_cmds_need_lc=yes
8403	  # This is similar to how AIX traditionally builds its shared libraries.
8404	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8405	fi
8406      fi
8407      ;;
8408
8409    amigaos*)
8410      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)'
8411      hardcode_libdir_flag_spec='-L$libdir'
8412      hardcode_minus_L=yes
8413      # see comment about different semantics on the GNU ld section
8414      ld_shlibs=no
8415      ;;
8416
8417    bsdi[45]*)
8418      export_dynamic_flag_spec=-rdynamic
8419      ;;
8420
8421    cygwin* | mingw* | pw32*)
8422      # When not using gcc, we currently assume that we are using
8423      # Microsoft Visual C++.
8424      # hardcode_libdir_flag_spec is actually meaningless, as there is
8425      # no search path for DLLs.
8426      hardcode_libdir_flag_spec=' '
8427      allow_undefined_flag=unsupported
8428      # Tell ltmain to make .lib files, not .a files.
8429      libext=lib
8430      # Tell ltmain to make .dll files, not .so files.
8431      shrext_cmds=".dll"
8432      # FIXME: Setting linknames here is a bad hack.
8433      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8434      # The linker will automatically build a .lib file if we build a DLL.
8435      old_archive_From_new_cmds='true'
8436      # FIXME: Should let the user specify the lib program.
8437      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8438      fix_srcfile_path='`cygpath -w "$srcfile"`'
8439      enable_shared_with_static_runtimes=yes
8440      ;;
8441
8442    darwin* | rhapsody*)
8443      case $host_os in
8444        rhapsody* | darwin1.[012])
8445         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8446         ;;
8447       *) # Darwin 1.3 on
8448         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8449           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8450         else
8451           case ${MACOSX_DEPLOYMENT_TARGET} in
8452             10.[012])
8453               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8454               ;;
8455             10.*)
8456               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8457               ;;
8458           esac
8459         fi
8460         ;;
8461      esac
8462      archive_cmds_need_lc=no
8463      hardcode_direct=no
8464      hardcode_automatic=yes
8465      hardcode_shlibpath_var=unsupported
8466      whole_archive_flag_spec=''
8467      link_all_deplibs=yes
8468    if test "$GCC" = yes ; then
8469    	output_verbose_link_cmd='echo'
8470        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8471      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8472      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8473      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}'
8474      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}'
8475    else
8476      case $cc_basename in
8477        xlc*)
8478         output_verbose_link_cmd='echo'
8479         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8480         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8481          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8482         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8483          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}'
8484          ;;
8485       *)
8486         ld_shlibs=no
8487          ;;
8488      esac
8489    fi
8490      ;;
8491
8492    dgux*)
8493      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494      hardcode_libdir_flag_spec='-L$libdir'
8495      hardcode_shlibpath_var=no
8496      ;;
8497
8498    freebsd1*)
8499      ld_shlibs=no
8500      ;;
8501
8502    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8503    # support.  Future versions do this automatically, but an explicit c++rt0.o
8504    # does not break anything, and helps significantly (at the cost of a little
8505    # extra space).
8506    freebsd2.2*)
8507      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8508      hardcode_libdir_flag_spec='-R$libdir'
8509      hardcode_direct=yes
8510      hardcode_shlibpath_var=no
8511      ;;
8512
8513    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8514    freebsd2*)
8515      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8516      hardcode_direct=yes
8517      hardcode_minus_L=yes
8518      hardcode_shlibpath_var=no
8519      ;;
8520
8521    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8522    freebsd* | kfreebsd*-gnu | dragonfly*)
8523      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8524      hardcode_libdir_flag_spec='-R$libdir'
8525      hardcode_direct=yes
8526      hardcode_shlibpath_var=no
8527      ;;
8528
8529    hpux9*)
8530      if test "$GCC" = yes; then
8531	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'
8532      else
8533	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'
8534      fi
8535      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8536      hardcode_libdir_separator=:
8537      hardcode_direct=yes
8538
8539      # hardcode_minus_L: Not really in the search PATH,
8540      # but as the default location of the library.
8541      hardcode_minus_L=yes
8542      export_dynamic_flag_spec='${wl}-E'
8543      ;;
8544
8545    hpux10*)
8546      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8547	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8548      else
8549	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8550      fi
8551      if test "$with_gnu_ld" = no; then
8552	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8553	hardcode_libdir_separator=:
8554
8555	hardcode_direct=yes
8556	export_dynamic_flag_spec='${wl}-E'
8557
8558	# hardcode_minus_L: Not really in the search PATH,
8559	# but as the default location of the library.
8560	hardcode_minus_L=yes
8561      fi
8562      ;;
8563
8564    hpux11*)
8565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8566	case $host_cpu in
8567	hppa*64*)
8568	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569	  ;;
8570	ia64*)
8571	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8572	  ;;
8573	*)
8574	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575	  ;;
8576	esac
8577      else
8578	case $host_cpu in
8579	hppa*64*)
8580	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8581	  ;;
8582	ia64*)
8583	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8584	  ;;
8585	*)
8586	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8587	  ;;
8588	esac
8589      fi
8590      if test "$with_gnu_ld" = no; then
8591	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8592	hardcode_libdir_separator=:
8593
8594	case $host_cpu in
8595	hppa*64*|ia64*)
8596	  hardcode_libdir_flag_spec_ld='+b $libdir'
8597	  hardcode_direct=no
8598	  hardcode_shlibpath_var=no
8599	  ;;
8600	*)
8601	  hardcode_direct=yes
8602	  export_dynamic_flag_spec='${wl}-E'
8603
8604	  # hardcode_minus_L: Not really in the search PATH,
8605	  # but as the default location of the library.
8606	  hardcode_minus_L=yes
8607	  ;;
8608	esac
8609      fi
8610      ;;
8611
8612    irix5* | irix6* | nonstopux*)
8613      if test "$GCC" = yes; then
8614	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'
8615      else
8616	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'
8617	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8618      fi
8619      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620      hardcode_libdir_separator=:
8621      link_all_deplibs=yes
8622      ;;
8623
8624    netbsd*)
8625      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8626	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8627      else
8628	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8629      fi
8630      hardcode_libdir_flag_spec='-R$libdir'
8631      hardcode_direct=yes
8632      hardcode_shlibpath_var=no
8633      ;;
8634
8635    newsos6)
8636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637      hardcode_direct=yes
8638      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639      hardcode_libdir_separator=:
8640      hardcode_shlibpath_var=no
8641      ;;
8642
8643    openbsd*)
8644      hardcode_direct=yes
8645      hardcode_shlibpath_var=no
8646      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8647	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8648	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8649	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8650	export_dynamic_flag_spec='${wl}-E'
8651      else
8652       case $host_os in
8653	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8654	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655	   hardcode_libdir_flag_spec='-R$libdir'
8656	   ;;
8657	 *)
8658	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8659	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8660	   ;;
8661       esac
8662      fi
8663      ;;
8664
8665    os2*)
8666      hardcode_libdir_flag_spec='-L$libdir'
8667      hardcode_minus_L=yes
8668      allow_undefined_flag=unsupported
8669      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'
8670      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8671      ;;
8672
8673    osf3*)
8674      if test "$GCC" = yes; then
8675	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8676	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'
8677      else
8678	allow_undefined_flag=' -expect_unresolved \*'
8679	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'
8680      fi
8681      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682      hardcode_libdir_separator=:
8683      ;;
8684
8685    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8686      if test "$GCC" = yes; then
8687	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8688	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'
8689	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690      else
8691	allow_undefined_flag=' -expect_unresolved \*'
8692	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'
8693	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8694	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8695
8696	# Both c and cxx compiler support -rpath directly
8697	hardcode_libdir_flag_spec='-rpath $libdir'
8698      fi
8699      hardcode_libdir_separator=:
8700      ;;
8701
8702    solaris*)
8703      no_undefined_flag=' -z text'
8704      if test "$GCC" = yes; then
8705	wlarc='${wl}'
8706	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8708	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8709      else
8710	wlarc=''
8711	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8713  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8714      fi
8715      hardcode_libdir_flag_spec='-R$libdir'
8716      hardcode_shlibpath_var=no
8717      case $host_os in
8718      solaris2.[0-5] | solaris2.[0-5].*) ;;
8719      *)
8720 	# The compiler driver will combine linker options so we
8721 	# cannot just pass the convience library names through
8722 	# without $wl, iff we do not link with $LD.
8723 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8724 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8725 	case $wlarc in
8726 	'')
8727 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8728 	*)
8729 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8730 	esac ;;
8731      esac
8732      link_all_deplibs=yes
8733      ;;
8734
8735    sunos4*)
8736      if test "x$host_vendor" = xsequent; then
8737	# Use $CC to link under sequent, because it throws in some extra .o
8738	# files that make .init and .fini sections work.
8739	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740      else
8741	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8742      fi
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      hardcode_direct=yes
8745      hardcode_minus_L=yes
8746      hardcode_shlibpath_var=no
8747      ;;
8748
8749    sysv4)
8750      case $host_vendor in
8751	sni)
8752	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753	  hardcode_direct=yes # is this really true???
8754	;;
8755	siemens)
8756	  ## LD is ld it makes a PLAMLIB
8757	  ## CC just makes a GrossModule.
8758	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8759	  reload_cmds='$CC -r -o $output$reload_objs'
8760	  hardcode_direct=no
8761        ;;
8762	motorola)
8763	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8765	;;
8766      esac
8767      runpath_var='LD_RUN_PATH'
8768      hardcode_shlibpath_var=no
8769      ;;
8770
8771    sysv4.3*)
8772      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773      hardcode_shlibpath_var=no
8774      export_dynamic_flag_spec='-Bexport'
8775      ;;
8776
8777    sysv4*MP*)
8778      if test -d /usr/nec; then
8779	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780	hardcode_shlibpath_var=no
8781	runpath_var=LD_RUN_PATH
8782	hardcode_runpath_var=yes
8783	ld_shlibs=yes
8784      fi
8785      ;;
8786
8787    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8788      no_undefined_flag='${wl}-z,text'
8789      archive_cmds_need_lc=no
8790      hardcode_shlibpath_var=no
8791      runpath_var='LD_RUN_PATH'
8792
8793      if test "$GCC" = yes; then
8794	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8795	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8796      else
8797	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8798	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8799      fi
8800      ;;
8801
8802    sysv5* | sco3.2v5* | sco5v6*)
8803      # Note: We can NOT use -z defs as we might desire, because we do not
8804      # link with -lc, and that would cause any symbols used from libc to
8805      # always be unresolved, which means just about no library would
8806      # ever link correctly.  If we're not using GNU ld we use -z text
8807      # though, which does catch some bad symbols but isn't as heavy-handed
8808      # as -z defs.
8809      no_undefined_flag='${wl}-z,text'
8810      allow_undefined_flag='${wl}-z,nodefs'
8811      archive_cmds_need_lc=no
8812      hardcode_shlibpath_var=no
8813      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8814      hardcode_libdir_separator=':'
8815      link_all_deplibs=yes
8816      export_dynamic_flag_spec='${wl}-Bexport'
8817      runpath_var='LD_RUN_PATH'
8818
8819      if test "$GCC" = yes; then
8820	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8821	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822      else
8823	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825      fi
8826      ;;
8827
8828    uts4*)
8829      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830      hardcode_libdir_flag_spec='-L$libdir'
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    *)
8835      ld_shlibs=no
8836      ;;
8837    esac
8838  fi
8839
8840echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8841echo "${ECHO_T}$ld_shlibs" >&6
8842test "$ld_shlibs" = no && can_build_shared=no
8843
8844#
8845# Do we need to explicitly link libc?
8846#
8847case "x$archive_cmds_need_lc" in
8848x|xyes)
8849  # Assume -lc should be added
8850  archive_cmds_need_lc=yes
8851
8852  if test "$enable_shared" = yes && test "$GCC" = yes; then
8853    case $archive_cmds in
8854    *'~'*)
8855      # FIXME: we may have to deal with multi-command sequences.
8856      ;;
8857    '$CC '*)
8858      # Test whether the compiler implicitly links with -lc since on some
8859      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8860      # to ld, don't add -lc before -lgcc.
8861      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8862echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8863      $rm conftest*
8864      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8865
8866      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867  (eval $ac_compile) 2>&5
8868  ac_status=$?
8869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870  (exit $ac_status); } 2>conftest.err; then
8871        soname=conftest
8872        lib=conftest
8873        libobjs=conftest.$ac_objext
8874        deplibs=
8875        wl=$lt_prog_compiler_wl
8876	pic_flag=$lt_prog_compiler_pic
8877        compiler_flags=-v
8878        linker_flags=-v
8879        verstring=
8880        output_objdir=.
8881        libname=conftest
8882        lt_save_allow_undefined_flag=$allow_undefined_flag
8883        allow_undefined_flag=
8884        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8885  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8886  ac_status=$?
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); }
8889        then
8890	  archive_cmds_need_lc=no
8891        else
8892	  archive_cmds_need_lc=yes
8893        fi
8894        allow_undefined_flag=$lt_save_allow_undefined_flag
8895      else
8896        cat conftest.err 1>&5
8897      fi
8898      $rm conftest*
8899      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8900echo "${ECHO_T}$archive_cmds_need_lc" >&6
8901      ;;
8902    esac
8903  fi
8904  ;;
8905esac
8906
8907echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8908echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8909library_names_spec=
8910libname_spec='lib$name'
8911soname_spec=
8912shrext_cmds=".so"
8913postinstall_cmds=
8914postuninstall_cmds=
8915finish_cmds=
8916finish_eval=
8917shlibpath_var=
8918shlibpath_overrides_runpath=unknown
8919version_type=none
8920dynamic_linker="$host_os ld.so"
8921sys_lib_dlsearch_path_spec="/lib /usr/lib"
8922if test "$GCC" = yes; then
8923  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8924  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8925    # if the path contains ";" then we assume it to be the separator
8926    # otherwise default to the standard path separator (i.e. ":") - it is
8927    # assumed that no part of a normal pathname contains ";" but that should
8928    # okay in the real world where ";" in dirpaths is itself problematic.
8929    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8930  else
8931    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8932  fi
8933else
8934  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8935fi
8936need_lib_prefix=unknown
8937hardcode_into_libs=no
8938
8939# when you set need_version to no, make sure it does not cause -set_version
8940# flags to be left without arguments
8941need_version=unknown
8942
8943case $host_os in
8944aix3*)
8945  version_type=linux
8946  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8947  shlibpath_var=LIBPATH
8948
8949  # AIX 3 has no versioning support, so we append a major version to the name.
8950  soname_spec='${libname}${release}${shared_ext}$major'
8951  ;;
8952
8953aix4* | aix5*)
8954  version_type=linux
8955  need_lib_prefix=no
8956  need_version=no
8957  hardcode_into_libs=yes
8958  if test "$host_cpu" = ia64; then
8959    # AIX 5 supports IA64
8960    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8961    shlibpath_var=LD_LIBRARY_PATH
8962  else
8963    # With GCC up to 2.95.x, collect2 would create an import file
8964    # for dependence libraries.  The import file would start with
8965    # the line `#! .'.  This would cause the generated library to
8966    # depend on `.', always an invalid library.  This was fixed in
8967    # development snapshots of GCC prior to 3.0.
8968    case $host_os in
8969      aix4 | aix4.[01] | aix4.[01].*)
8970      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8971	   echo ' yes '
8972	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8973	:
8974      else
8975	can_build_shared=no
8976      fi
8977      ;;
8978    esac
8979    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8980    # soname into executable. Probably we can add versioning support to
8981    # collect2, so additional links can be useful in future.
8982    if test "$aix_use_runtimelinking" = yes; then
8983      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8984      # instead of lib<name>.a to let people know that these are not
8985      # typical AIX shared libraries.
8986      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987    else
8988      # We preserve .a as extension for shared libraries through AIX4.2
8989      # and later when we are not doing run time linking.
8990      library_names_spec='${libname}${release}.a $libname.a'
8991      soname_spec='${libname}${release}${shared_ext}$major'
8992    fi
8993    shlibpath_var=LIBPATH
8994  fi
8995  ;;
8996
8997amigaos*)
8998  library_names_spec='$libname.ixlibrary $libname.a'
8999  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9000  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'
9001  ;;
9002
9003beos*)
9004  library_names_spec='${libname}${shared_ext}'
9005  dynamic_linker="$host_os ld.so"
9006  shlibpath_var=LIBRARY_PATH
9007  ;;
9008
9009bsdi[45]*)
9010  version_type=linux
9011  need_version=no
9012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013  soname_spec='${libname}${release}${shared_ext}$major'
9014  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9017  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9018  # the default ld.so.conf also contains /usr/contrib/lib and
9019  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9020  # libtool to hard-code these into programs
9021  ;;
9022
9023cygwin* | mingw* | pw32*)
9024  version_type=windows
9025  shrext_cmds=".dll"
9026  need_version=no
9027  need_lib_prefix=no
9028
9029  case $GCC,$host_os in
9030  yes,cygwin* | yes,mingw* | yes,pw32*)
9031    library_names_spec='$libname.dll.a'
9032    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9033    postinstall_cmds='base_file=`basename \${file}`~
9034      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9035      dldir=$destdir/`dirname \$dlpath`~
9036      test -d \$dldir || mkdir -p \$dldir~
9037      $install_prog $dir/$dlname \$dldir/$dlname~
9038      chmod a+x \$dldir/$dlname'
9039    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9040      dlpath=$dir/\$dldll~
9041       $rm \$dlpath'
9042    shlibpath_overrides_runpath=yes
9043
9044    case $host_os in
9045    cygwin*)
9046      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9047      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9048      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9049      ;;
9050    mingw*)
9051      # MinGW DLLs use traditional 'lib' prefix
9052      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9053      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9054      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9055        # It is most probably a Windows format PATH printed by
9056        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9057        # path with ; separators, and with drive letters. We can handle the
9058        # drive letters (cygwin fileutils understands them), so leave them,
9059        # especially as we might pass files found there to a mingw objdump,
9060        # which wouldn't understand a cygwinified path. Ahh.
9061        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062      else
9063        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9064      fi
9065      ;;
9066    pw32*)
9067      # pw32 DLLs use 'pw' prefix rather than 'lib'
9068      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069      ;;
9070    esac
9071    ;;
9072
9073  *)
9074    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9075    ;;
9076  esac
9077  dynamic_linker='Win32 ld.exe'
9078  # FIXME: first we should search . and the directory the executable is in
9079  shlibpath_var=PATH
9080  ;;
9081
9082darwin* | rhapsody*)
9083  dynamic_linker="$host_os dyld"
9084  version_type=darwin
9085  need_lib_prefix=no
9086  need_version=no
9087  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9088  soname_spec='${libname}${release}${major}$shared_ext'
9089  shlibpath_overrides_runpath=yes
9090  shlibpath_var=DYLD_LIBRARY_PATH
9091  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9092  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9093  if test "$GCC" = yes; then
9094    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"`
9095  else
9096    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9097  fi
9098  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9099  ;;
9100
9101dgux*)
9102  version_type=linux
9103  need_lib_prefix=no
9104  need_version=no
9105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9106  soname_spec='${libname}${release}${shared_ext}$major'
9107  shlibpath_var=LD_LIBRARY_PATH
9108  ;;
9109
9110freebsd1*)
9111  dynamic_linker=no
9112  ;;
9113
9114kfreebsd*-gnu)
9115  version_type=linux
9116  need_lib_prefix=no
9117  need_version=no
9118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119  soname_spec='${libname}${release}${shared_ext}$major'
9120  shlibpath_var=LD_LIBRARY_PATH
9121  shlibpath_overrides_runpath=no
9122  hardcode_into_libs=yes
9123  dynamic_linker='GNU ld.so'
9124  ;;
9125
9126freebsd* | dragonfly*)
9127  # DragonFly does not have aout.  When/if they implement a new
9128  # versioning mechanism, adjust this.
9129  if test -x /usr/bin/objformat; then
9130    objformat=`/usr/bin/objformat`
9131  else
9132    case $host_os in
9133    freebsd[123]*) objformat=aout ;;
9134    *) objformat=elf ;;
9135    esac
9136  fi
9137  version_type=freebsd-$objformat
9138  case $version_type in
9139    freebsd-elf*)
9140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9141      need_version=no
9142      need_lib_prefix=no
9143      ;;
9144    freebsd-*)
9145      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9146      need_version=yes
9147      ;;
9148  esac
9149  shlibpath_var=LD_LIBRARY_PATH
9150  case $host_os in
9151  freebsd2*)
9152    shlibpath_overrides_runpath=yes
9153    ;;
9154  freebsd3.[01]* | freebsdelf3.[01]*)
9155    shlibpath_overrides_runpath=yes
9156    hardcode_into_libs=yes
9157    ;;
9158  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9159  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9160    shlibpath_overrides_runpath=no
9161    hardcode_into_libs=yes
9162    ;;
9163  freebsd*) # from 4.6 on
9164    shlibpath_overrides_runpath=yes
9165    hardcode_into_libs=yes
9166    ;;
9167  esac
9168  ;;
9169
9170gnu*)
9171  version_type=linux
9172  need_lib_prefix=no
9173  need_version=no
9174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9175  soname_spec='${libname}${release}${shared_ext}$major'
9176  shlibpath_var=LD_LIBRARY_PATH
9177  hardcode_into_libs=yes
9178  ;;
9179
9180hpux9* | hpux10* | hpux11*)
9181  # Give a soname corresponding to the major version so that dld.sl refuses to
9182  # link against other versions.
9183  version_type=sunos
9184  need_lib_prefix=no
9185  need_version=no
9186  case $host_cpu in
9187  ia64*)
9188    shrext_cmds='.so'
9189    hardcode_into_libs=yes
9190    dynamic_linker="$host_os dld.so"
9191    shlibpath_var=LD_LIBRARY_PATH
9192    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194    soname_spec='${libname}${release}${shared_ext}$major'
9195    if test "X$HPUX_IA64_MODE" = X32; then
9196      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9197    else
9198      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9199    fi
9200    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9201    ;;
9202   hppa*64*)
9203     shrext_cmds='.sl'
9204     hardcode_into_libs=yes
9205     dynamic_linker="$host_os dld.sl"
9206     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9207     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209     soname_spec='${libname}${release}${shared_ext}$major'
9210     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9211     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9212     ;;
9213   *)
9214    shrext_cmds='.sl'
9215    dynamic_linker="$host_os dld.sl"
9216    shlibpath_var=SHLIB_PATH
9217    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219    soname_spec='${libname}${release}${shared_ext}$major'
9220    ;;
9221  esac
9222  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9223  postinstall_cmds='chmod 555 $lib'
9224  ;;
9225
9226interix3*)
9227  version_type=linux
9228  need_lib_prefix=no
9229  need_version=no
9230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9231  soname_spec='${libname}${release}${shared_ext}$major'
9232  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9233  shlibpath_var=LD_LIBRARY_PATH
9234  shlibpath_overrides_runpath=no
9235  hardcode_into_libs=yes
9236  ;;
9237
9238irix5* | irix6* | nonstopux*)
9239  case $host_os in
9240    nonstopux*) version_type=nonstopux ;;
9241    *)
9242	if test "$lt_cv_prog_gnu_ld" = yes; then
9243		version_type=linux
9244	else
9245		version_type=irix
9246	fi ;;
9247  esac
9248  need_lib_prefix=no
9249  need_version=no
9250  soname_spec='${libname}${release}${shared_ext}$major'
9251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9252  case $host_os in
9253  irix5* | nonstopux*)
9254    libsuff= shlibsuff=
9255    ;;
9256  *)
9257    case $LD in # libtool.m4 will add one of these switches to LD
9258    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9259      libsuff= shlibsuff= libmagic=32-bit;;
9260    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9261      libsuff=32 shlibsuff=N32 libmagic=N32;;
9262    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9263      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9264    *) libsuff= shlibsuff= libmagic=never-match;;
9265    esac
9266    ;;
9267  esac
9268  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9269  shlibpath_overrides_runpath=no
9270  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9271  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9272  hardcode_into_libs=yes
9273  ;;
9274
9275# No shared lib support for Linux oldld, aout, or coff.
9276linux*oldld* | linux*aout* | linux*coff*)
9277  dynamic_linker=no
9278  ;;
9279
9280# This must be Linux ELF.
9281linux*)
9282  version_type=linux
9283  need_lib_prefix=no
9284  need_version=no
9285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286  soname_spec='${libname}${release}${shared_ext}$major'
9287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9288  shlibpath_var=LD_LIBRARY_PATH
9289  shlibpath_overrides_runpath=no
9290  # This implies no fast_install, which is unacceptable.
9291  # Some rework will be needed to allow for fast_install
9292  # before this can be enabled.
9293  hardcode_into_libs=yes
9294
9295  # Append ld.so.conf contents to the search path
9296  if test -f /etc/ld.so.conf; then
9297    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9298    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9299  fi
9300
9301  # We used to test for /lib/ld.so.1 and disable shared libraries on
9302  # powerpc, because MkLinux only supported shared libraries with the
9303  # GNU dynamic linker.  Since this was broken with cross compilers,
9304  # most powerpc-linux boxes support dynamic linking these days and
9305  # people can always --disable-shared, the test was removed, and we
9306  # assume the GNU/Linux dynamic linker is in use.
9307  dynamic_linker='GNU/Linux ld.so'
9308  ;;
9309
9310knetbsd*-gnu)
9311  version_type=linux
9312  need_lib_prefix=no
9313  need_version=no
9314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9315  soname_spec='${libname}${release}${shared_ext}$major'
9316  shlibpath_var=LD_LIBRARY_PATH
9317  shlibpath_overrides_runpath=no
9318  hardcode_into_libs=yes
9319  dynamic_linker='GNU ld.so'
9320  ;;
9321
9322netbsd*)
9323  version_type=sunos
9324  need_lib_prefix=no
9325  need_version=no
9326  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9328    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9329    dynamic_linker='NetBSD (a.out) ld.so'
9330  else
9331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9332    soname_spec='${libname}${release}${shared_ext}$major'
9333    dynamic_linker='NetBSD ld.elf_so'
9334  fi
9335  shlibpath_var=LD_LIBRARY_PATH
9336  shlibpath_overrides_runpath=yes
9337  hardcode_into_libs=yes
9338  ;;
9339
9340newsos6)
9341  version_type=linux
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343  shlibpath_var=LD_LIBRARY_PATH
9344  shlibpath_overrides_runpath=yes
9345  ;;
9346
9347nto-qnx*)
9348  version_type=linux
9349  need_lib_prefix=no
9350  need_version=no
9351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352  soname_spec='${libname}${release}${shared_ext}$major'
9353  shlibpath_var=LD_LIBRARY_PATH
9354  shlibpath_overrides_runpath=yes
9355  ;;
9356
9357openbsd*)
9358  version_type=sunos
9359  sys_lib_dlsearch_path_spec="/usr/lib"
9360  need_lib_prefix=no
9361  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9362  case $host_os in
9363    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9364    *)                         need_version=no  ;;
9365  esac
9366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9368  shlibpath_var=LD_LIBRARY_PATH
9369  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9370    case $host_os in
9371      openbsd2.[89] | openbsd2.[89].*)
9372	shlibpath_overrides_runpath=no
9373	;;
9374      *)
9375	shlibpath_overrides_runpath=yes
9376	;;
9377      esac
9378  else
9379    shlibpath_overrides_runpath=yes
9380  fi
9381  ;;
9382
9383os2*)
9384  libname_spec='$name'
9385  shrext_cmds=".dll"
9386  need_lib_prefix=no
9387  library_names_spec='$libname${shared_ext} $libname.a'
9388  dynamic_linker='OS/2 ld.exe'
9389  shlibpath_var=LIBPATH
9390  ;;
9391
9392osf3* | osf4* | osf5*)
9393  version_type=osf
9394  need_lib_prefix=no
9395  need_version=no
9396  soname_spec='${libname}${release}${shared_ext}$major'
9397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9400  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9401  ;;
9402
9403solaris*)
9404  version_type=linux
9405  need_lib_prefix=no
9406  need_version=no
9407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  shlibpath_var=LD_LIBRARY_PATH
9410  shlibpath_overrides_runpath=yes
9411  hardcode_into_libs=yes
9412  # ldd complains unless libraries are executable
9413  postinstall_cmds='chmod +x $lib'
9414  ;;
9415
9416sunos4*)
9417  version_type=sunos
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9420  shlibpath_var=LD_LIBRARY_PATH
9421  shlibpath_overrides_runpath=yes
9422  if test "$with_gnu_ld" = yes; then
9423    need_lib_prefix=no
9424  fi
9425  need_version=yes
9426  ;;
9427
9428sysv4 | sysv4.3*)
9429  version_type=linux
9430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431  soname_spec='${libname}${release}${shared_ext}$major'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  case $host_vendor in
9434    sni)
9435      shlibpath_overrides_runpath=no
9436      need_lib_prefix=no
9437      export_dynamic_flag_spec='${wl}-Blargedynsym'
9438      runpath_var=LD_RUN_PATH
9439      ;;
9440    siemens)
9441      need_lib_prefix=no
9442      ;;
9443    motorola)
9444      need_lib_prefix=no
9445      need_version=no
9446      shlibpath_overrides_runpath=no
9447      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9448      ;;
9449  esac
9450  ;;
9451
9452sysv4*MP*)
9453  if test -d /usr/nec ;then
9454    version_type=linux
9455    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9456    soname_spec='$libname${shared_ext}.$major'
9457    shlibpath_var=LD_LIBRARY_PATH
9458  fi
9459  ;;
9460
9461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9462  version_type=freebsd-elf
9463  need_lib_prefix=no
9464  need_version=no
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9466  soname_spec='${libname}${release}${shared_ext}$major'
9467  shlibpath_var=LD_LIBRARY_PATH
9468  hardcode_into_libs=yes
9469  if test "$with_gnu_ld" = yes; then
9470    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9471    shlibpath_overrides_runpath=no
9472  else
9473    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9474    shlibpath_overrides_runpath=yes
9475    case $host_os in
9476      sco3.2v5*)
9477        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9478	;;
9479    esac
9480  fi
9481  sys_lib_dlsearch_path_spec='/usr/lib'
9482  ;;
9483
9484uts4*)
9485  version_type=linux
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  shlibpath_var=LD_LIBRARY_PATH
9489  ;;
9490
9491*)
9492  dynamic_linker=no
9493  ;;
9494esac
9495echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9496echo "${ECHO_T}$dynamic_linker" >&6
9497test "$dynamic_linker" = no && can_build_shared=no
9498
9499variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9500if test "$GCC" = yes; then
9501  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9502fi
9503
9504echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9505echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9506hardcode_action=
9507if test -n "$hardcode_libdir_flag_spec" || \
9508   test -n "$runpath_var" || \
9509   test "X$hardcode_automatic" = "Xyes" ; then
9510
9511  # We can hardcode non-existant directories.
9512  if test "$hardcode_direct" != no &&
9513     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9514     # have to relink, otherwise we might link with an installed library
9515     # when we should be linking with a yet-to-be-installed one
9516     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9517     test "$hardcode_minus_L" != no; then
9518    # Linking always hardcodes the temporary library directory.
9519    hardcode_action=relink
9520  else
9521    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9522    hardcode_action=immediate
9523  fi
9524else
9525  # We cannot hardcode anything, or else we can only hardcode existing
9526  # directories.
9527  hardcode_action=unsupported
9528fi
9529echo "$as_me:$LINENO: result: $hardcode_action" >&5
9530echo "${ECHO_T}$hardcode_action" >&6
9531
9532if test "$hardcode_action" = relink; then
9533  # Fast installation is not supported
9534  enable_fast_install=no
9535elif test "$shlibpath_overrides_runpath" = yes ||
9536     test "$enable_shared" = no; then
9537  # Fast installation is not necessary
9538  enable_fast_install=needless
9539fi
9540
9541striplib=
9542old_striplib=
9543echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9544echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9545if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9546  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9547  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9548  echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550else
9551# FIXME - insert some real tests, host_os isn't really good enough
9552  case $host_os in
9553   darwin*)
9554       if test -n "$STRIP" ; then
9555         striplib="$STRIP -x"
9556         echo "$as_me:$LINENO: result: yes" >&5
9557echo "${ECHO_T}yes" >&6
9558       else
9559  echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
9561fi
9562       ;;
9563   *)
9564  echo "$as_me:$LINENO: result: no" >&5
9565echo "${ECHO_T}no" >&6
9566    ;;
9567  esac
9568fi
9569
9570if test "x$enable_dlopen" != xyes; then
9571  enable_dlopen=unknown
9572  enable_dlopen_self=unknown
9573  enable_dlopen_self_static=unknown
9574else
9575  lt_cv_dlopen=no
9576  lt_cv_dlopen_libs=
9577
9578  case $host_os in
9579  beos*)
9580    lt_cv_dlopen="load_add_on"
9581    lt_cv_dlopen_libs=
9582    lt_cv_dlopen_self=yes
9583    ;;
9584
9585  mingw* | pw32*)
9586    lt_cv_dlopen="LoadLibrary"
9587    lt_cv_dlopen_libs=
9588   ;;
9589
9590  cygwin*)
9591    lt_cv_dlopen="dlopen"
9592    lt_cv_dlopen_libs=
9593   ;;
9594
9595  darwin*)
9596  # if libdl is installed we need to link against it
9597    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9598echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9599if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9600  echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602  ac_check_lib_save_LIBS=$LIBS
9603LIBS="-ldl  $LIBS"
9604cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h.  */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h.  */
9610
9611/* Override any gcc2 internal prototype to avoid an error.  */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615/* We use char because int might match the return type of a gcc2
9616   builtin and then its argument prototype would still apply.  */
9617char dlopen ();
9618int
9619main ()
9620{
9621dlopen ();
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628  (eval $ac_link) 2>conftest.er1
9629  ac_status=$?
9630  grep -v '^ *+' conftest.er1 >conftest.err
9631  rm -f conftest.er1
9632  cat conftest.err >&5
9633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634  (exit $ac_status); } &&
9635	 { ac_try='test -z "$ac_c_werror_flag"
9636			 || test ! -s conftest.err'
9637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638  (eval $ac_try) 2>&5
9639  ac_status=$?
9640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641  (exit $ac_status); }; } &&
9642	 { ac_try='test -s conftest$ac_exeext'
9643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644  (eval $ac_try) 2>&5
9645  ac_status=$?
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); }; }; then
9648  ac_cv_lib_dl_dlopen=yes
9649else
9650  echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653ac_cv_lib_dl_dlopen=no
9654fi
9655rm -f conftest.err conftest.$ac_objext \
9656      conftest$ac_exeext conftest.$ac_ext
9657LIBS=$ac_check_lib_save_LIBS
9658fi
9659echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9661if test $ac_cv_lib_dl_dlopen = yes; then
9662  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9663else
9664
9665    lt_cv_dlopen="dyld"
9666    lt_cv_dlopen_libs=
9667    lt_cv_dlopen_self=yes
9668
9669fi
9670
9671   ;;
9672
9673  *)
9674    echo "$as_me:$LINENO: checking for shl_load" >&5
9675echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9676if test "${ac_cv_func_shl_load+set}" = set; then
9677  echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679  cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h.  */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h.  */
9685/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9687#define shl_load innocuous_shl_load
9688
9689/* System header to define __stub macros and hopefully few prototypes,
9690    which can conflict with char shl_load (); below.
9691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692    <limits.h> exists even on freestanding compilers.  */
9693
9694#ifdef __STDC__
9695# include <limits.h>
9696#else
9697# include <assert.h>
9698#endif
9699
9700#undef shl_load
9701
9702/* Override any gcc2 internal prototype to avoid an error.  */
9703#ifdef __cplusplus
9704extern "C"
9705{
9706#endif
9707/* We use char because int might match the return type of a gcc2
9708   builtin and then its argument prototype would still apply.  */
9709char shl_load ();
9710/* The GNU C library defines this for functions which it implements
9711    to always fail with ENOSYS.  Some functions are actually named
9712    something starting with __ and the normal name is an alias.  */
9713#if defined (__stub_shl_load) || defined (__stub___shl_load)
9714choke me
9715#else
9716char (*f) () = shl_load;
9717#endif
9718#ifdef __cplusplus
9719}
9720#endif
9721
9722int
9723main ()
9724{
9725return f != shl_load;
9726  ;
9727  return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732  (eval $ac_link) 2>conftest.er1
9733  ac_status=$?
9734  grep -v '^ *+' conftest.er1 >conftest.err
9735  rm -f conftest.er1
9736  cat conftest.err >&5
9737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738  (exit $ac_status); } &&
9739	 { ac_try='test -z "$ac_c_werror_flag"
9740			 || test ! -s conftest.err'
9741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742  (eval $ac_try) 2>&5
9743  ac_status=$?
9744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745  (exit $ac_status); }; } &&
9746	 { ac_try='test -s conftest$ac_exeext'
9747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748  (eval $ac_try) 2>&5
9749  ac_status=$?
9750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751  (exit $ac_status); }; }; then
9752  ac_cv_func_shl_load=yes
9753else
9754  echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757ac_cv_func_shl_load=no
9758fi
9759rm -f conftest.err conftest.$ac_objext \
9760      conftest$ac_exeext conftest.$ac_ext
9761fi
9762echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9763echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9764if test $ac_cv_func_shl_load = yes; then
9765  lt_cv_dlopen="shl_load"
9766else
9767  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9768echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9769if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9770  echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772  ac_check_lib_save_LIBS=$LIBS
9773LIBS="-ldld  $LIBS"
9774cat >conftest.$ac_ext <<_ACEOF
9775/* confdefs.h.  */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
9779/* end confdefs.h.  */
9780
9781/* Override any gcc2 internal prototype to avoid an error.  */
9782#ifdef __cplusplus
9783extern "C"
9784#endif
9785/* We use char because int might match the return type of a gcc2
9786   builtin and then its argument prototype would still apply.  */
9787char shl_load ();
9788int
9789main ()
9790{
9791shl_load ();
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796rm -f conftest.$ac_objext conftest$ac_exeext
9797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798  (eval $ac_link) 2>conftest.er1
9799  ac_status=$?
9800  grep -v '^ *+' conftest.er1 >conftest.err
9801  rm -f conftest.er1
9802  cat conftest.err >&5
9803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804  (exit $ac_status); } &&
9805	 { ac_try='test -z "$ac_c_werror_flag"
9806			 || test ! -s conftest.err'
9807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808  (eval $ac_try) 2>&5
9809  ac_status=$?
9810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811  (exit $ac_status); }; } &&
9812	 { ac_try='test -s conftest$ac_exeext'
9813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814  (eval $ac_try) 2>&5
9815  ac_status=$?
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); }; }; then
9818  ac_cv_lib_dld_shl_load=yes
9819else
9820  echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823ac_cv_lib_dld_shl_load=no
9824fi
9825rm -f conftest.err conftest.$ac_objext \
9826      conftest$ac_exeext conftest.$ac_ext
9827LIBS=$ac_check_lib_save_LIBS
9828fi
9829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9831if test $ac_cv_lib_dld_shl_load = yes; then
9832  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9833else
9834  echo "$as_me:$LINENO: checking for dlopen" >&5
9835echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9836if test "${ac_cv_func_dlopen+set}" = set; then
9837  echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839  cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h.  */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h.  */
9845/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9847#define dlopen innocuous_dlopen
9848
9849/* System header to define __stub macros and hopefully few prototypes,
9850    which can conflict with char dlopen (); below.
9851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852    <limits.h> exists even on freestanding compilers.  */
9853
9854#ifdef __STDC__
9855# include <limits.h>
9856#else
9857# include <assert.h>
9858#endif
9859
9860#undef dlopen
9861
9862/* Override any gcc2 internal prototype to avoid an error.  */
9863#ifdef __cplusplus
9864extern "C"
9865{
9866#endif
9867/* We use char because int might match the return type of a gcc2
9868   builtin and then its argument prototype would still apply.  */
9869char dlopen ();
9870/* The GNU C library defines this for functions which it implements
9871    to always fail with ENOSYS.  Some functions are actually named
9872    something starting with __ and the normal name is an alias.  */
9873#if defined (__stub_dlopen) || defined (__stub___dlopen)
9874choke me
9875#else
9876char (*f) () = dlopen;
9877#endif
9878#ifdef __cplusplus
9879}
9880#endif
9881
9882int
9883main ()
9884{
9885return f != dlopen;
9886  ;
9887  return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892  (eval $ac_link) 2>conftest.er1
9893  ac_status=$?
9894  grep -v '^ *+' conftest.er1 >conftest.err
9895  rm -f conftest.er1
9896  cat conftest.err >&5
9897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898  (exit $ac_status); } &&
9899	 { ac_try='test -z "$ac_c_werror_flag"
9900			 || test ! -s conftest.err'
9901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902  (eval $ac_try) 2>&5
9903  ac_status=$?
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); }; } &&
9906	 { ac_try='test -s conftest$ac_exeext'
9907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908  (eval $ac_try) 2>&5
9909  ac_status=$?
9910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911  (exit $ac_status); }; }; then
9912  ac_cv_func_dlopen=yes
9913else
9914  echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917ac_cv_func_dlopen=no
9918fi
9919rm -f conftest.err conftest.$ac_objext \
9920      conftest$ac_exeext conftest.$ac_ext
9921fi
9922echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9923echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9924if test $ac_cv_func_dlopen = yes; then
9925  lt_cv_dlopen="dlopen"
9926else
9927  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9928echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9929if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9930  echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932  ac_check_lib_save_LIBS=$LIBS
9933LIBS="-ldl  $LIBS"
9934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h.  */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h.  */
9940
9941/* Override any gcc2 internal prototype to avoid an error.  */
9942#ifdef __cplusplus
9943extern "C"
9944#endif
9945/* We use char because int might match the return type of a gcc2
9946   builtin and then its argument prototype would still apply.  */
9947char dlopen ();
9948int
9949main ()
9950{
9951dlopen ();
9952  ;
9953  return 0;
9954}
9955_ACEOF
9956rm -f conftest.$ac_objext conftest$ac_exeext
9957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958  (eval $ac_link) 2>conftest.er1
9959  ac_status=$?
9960  grep -v '^ *+' conftest.er1 >conftest.err
9961  rm -f conftest.er1
9962  cat conftest.err >&5
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); } &&
9965	 { ac_try='test -z "$ac_c_werror_flag"
9966			 || test ! -s conftest.err'
9967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968  (eval $ac_try) 2>&5
9969  ac_status=$?
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); }; } &&
9972	 { ac_try='test -s conftest$ac_exeext'
9973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974  (eval $ac_try) 2>&5
9975  ac_status=$?
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); }; }; then
9978  ac_cv_lib_dl_dlopen=yes
9979else
9980  echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983ac_cv_lib_dl_dlopen=no
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986      conftest$ac_exeext conftest.$ac_ext
9987LIBS=$ac_check_lib_save_LIBS
9988fi
9989echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9990echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9991if test $ac_cv_lib_dl_dlopen = yes; then
9992  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9993else
9994  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9995echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9996if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9997  echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999  ac_check_lib_save_LIBS=$LIBS
10000LIBS="-lsvld  $LIBS"
10001cat >conftest.$ac_ext <<_ACEOF
10002/* confdefs.h.  */
10003_ACEOF
10004cat confdefs.h >>conftest.$ac_ext
10005cat >>conftest.$ac_ext <<_ACEOF
10006/* end confdefs.h.  */
10007
10008/* Override any gcc2 internal prototype to avoid an error.  */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012/* We use char because int might match the return type of a gcc2
10013   builtin and then its argument prototype would still apply.  */
10014char dlopen ();
10015int
10016main ()
10017{
10018dlopen ();
10019  ;
10020  return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext conftest$ac_exeext
10024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025  (eval $ac_link) 2>conftest.er1
10026  ac_status=$?
10027  grep -v '^ *+' conftest.er1 >conftest.err
10028  rm -f conftest.er1
10029  cat conftest.err >&5
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); } &&
10032	 { ac_try='test -z "$ac_c_werror_flag"
10033			 || test ! -s conftest.err'
10034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035  (eval $ac_try) 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }; } &&
10039	 { ac_try='test -s conftest$ac_exeext'
10040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041  (eval $ac_try) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; }; then
10045  ac_cv_lib_svld_dlopen=yes
10046else
10047  echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050ac_cv_lib_svld_dlopen=no
10051fi
10052rm -f conftest.err conftest.$ac_objext \
10053      conftest$ac_exeext conftest.$ac_ext
10054LIBS=$ac_check_lib_save_LIBS
10055fi
10056echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10057echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10058if test $ac_cv_lib_svld_dlopen = yes; then
10059  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10060else
10061  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066  ac_check_lib_save_LIBS=$LIBS
10067LIBS="-ldld  $LIBS"
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h.  */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h.  */
10074
10075/* Override any gcc2 internal prototype to avoid an error.  */
10076#ifdef __cplusplus
10077extern "C"
10078#endif
10079/* We use char because int might match the return type of a gcc2
10080   builtin and then its argument prototype would still apply.  */
10081char dld_link ();
10082int
10083main ()
10084{
10085dld_link ();
10086  ;
10087  return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092  (eval $ac_link) 2>conftest.er1
10093  ac_status=$?
10094  grep -v '^ *+' conftest.er1 >conftest.err
10095  rm -f conftest.er1
10096  cat conftest.err >&5
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); } &&
10099	 { ac_try='test -z "$ac_c_werror_flag"
10100			 || test ! -s conftest.err'
10101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102  (eval $ac_try) 2>&5
10103  ac_status=$?
10104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105  (exit $ac_status); }; } &&
10106	 { ac_try='test -s conftest$ac_exeext'
10107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108  (eval $ac_try) 2>&5
10109  ac_status=$?
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); }; }; then
10112  ac_cv_lib_dld_dld_link=yes
10113else
10114  echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117ac_cv_lib_dld_dld_link=no
10118fi
10119rm -f conftest.err conftest.$ac_objext \
10120      conftest$ac_exeext conftest.$ac_ext
10121LIBS=$ac_check_lib_save_LIBS
10122fi
10123echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10124echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10125if test $ac_cv_lib_dld_dld_link = yes; then
10126  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10127fi
10128
10129
10130fi
10131
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144    ;;
10145  esac
10146
10147  if test "x$lt_cv_dlopen" != xno; then
10148    enable_dlopen=yes
10149  else
10150    enable_dlopen=no
10151  fi
10152
10153  case $lt_cv_dlopen in
10154  dlopen)
10155    save_CPPFLAGS="$CPPFLAGS"
10156    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10157
10158    save_LDFLAGS="$LDFLAGS"
10159    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10160
10161    save_LIBS="$LIBS"
10162    LIBS="$lt_cv_dlopen_libs $LIBS"
10163
10164    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10165echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10166if test "${lt_cv_dlopen_self+set}" = set; then
10167  echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169  	  if test "$cross_compiling" = yes; then :
10170  lt_cv_dlopen_self=cross
10171else
10172  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10173  lt_status=$lt_dlunknown
10174  cat > conftest.$ac_ext <<EOF
10175#line 10175 "configure"
10176#include "confdefs.h"
10177
10178#if HAVE_DLFCN_H
10179#include <dlfcn.h>
10180#endif
10181
10182#include <stdio.h>
10183
10184#ifdef RTLD_GLOBAL
10185#  define LT_DLGLOBAL		RTLD_GLOBAL
10186#else
10187#  ifdef DL_GLOBAL
10188#    define LT_DLGLOBAL		DL_GLOBAL
10189#  else
10190#    define LT_DLGLOBAL		0
10191#  endif
10192#endif
10193
10194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10195   find out it does not work in some platform. */
10196#ifndef LT_DLLAZY_OR_NOW
10197#  ifdef RTLD_LAZY
10198#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10199#  else
10200#    ifdef DL_LAZY
10201#      define LT_DLLAZY_OR_NOW		DL_LAZY
10202#    else
10203#      ifdef RTLD_NOW
10204#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10205#      else
10206#        ifdef DL_NOW
10207#          define LT_DLLAZY_OR_NOW	DL_NOW
10208#        else
10209#          define LT_DLLAZY_OR_NOW	0
10210#        endif
10211#      endif
10212#    endif
10213#  endif
10214#endif
10215
10216#ifdef __cplusplus
10217extern "C" void exit (int);
10218#endif
10219
10220void fnord() { int i=42;}
10221int main ()
10222{
10223  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10224  int status = $lt_dlunknown;
10225
10226  if (self)
10227    {
10228      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10229      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10230      /* dlclose (self); */
10231    }
10232  else
10233    puts (dlerror ());
10234
10235    exit (status);
10236}
10237EOF
10238  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239  (eval $ac_link) 2>&5
10240  ac_status=$?
10241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10243    (./conftest; exit; ) >&5 2>/dev/null
10244    lt_status=$?
10245    case x$lt_status in
10246      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10247      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10248      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10249    esac
10250  else :
10251    # compilation failed
10252    lt_cv_dlopen_self=no
10253  fi
10254fi
10255rm -fr conftest*
10256
10257
10258fi
10259echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10260echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10261
10262    if test "x$lt_cv_dlopen_self" = xyes; then
10263      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10264      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10265echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10266if test "${lt_cv_dlopen_self_static+set}" = set; then
10267  echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269  	  if test "$cross_compiling" = yes; then :
10270  lt_cv_dlopen_self_static=cross
10271else
10272  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273  lt_status=$lt_dlunknown
10274  cat > conftest.$ac_ext <<EOF
10275#line 10275 "configure"
10276#include "confdefs.h"
10277
10278#if HAVE_DLFCN_H
10279#include <dlfcn.h>
10280#endif
10281
10282#include <stdio.h>
10283
10284#ifdef RTLD_GLOBAL
10285#  define LT_DLGLOBAL		RTLD_GLOBAL
10286#else
10287#  ifdef DL_GLOBAL
10288#    define LT_DLGLOBAL		DL_GLOBAL
10289#  else
10290#    define LT_DLGLOBAL		0
10291#  endif
10292#endif
10293
10294/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295   find out it does not work in some platform. */
10296#ifndef LT_DLLAZY_OR_NOW
10297#  ifdef RTLD_LAZY
10298#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10299#  else
10300#    ifdef DL_LAZY
10301#      define LT_DLLAZY_OR_NOW		DL_LAZY
10302#    else
10303#      ifdef RTLD_NOW
10304#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10305#      else
10306#        ifdef DL_NOW
10307#          define LT_DLLAZY_OR_NOW	DL_NOW
10308#        else
10309#          define LT_DLLAZY_OR_NOW	0
10310#        endif
10311#      endif
10312#    endif
10313#  endif
10314#endif
10315
10316#ifdef __cplusplus
10317extern "C" void exit (int);
10318#endif
10319
10320void fnord() { int i=42;}
10321int main ()
10322{
10323  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324  int status = $lt_dlunknown;
10325
10326  if (self)
10327    {
10328      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10329      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330      /* dlclose (self); */
10331    }
10332  else
10333    puts (dlerror ());
10334
10335    exit (status);
10336}
10337EOF
10338  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339  (eval $ac_link) 2>&5
10340  ac_status=$?
10341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10343    (./conftest; exit; ) >&5 2>/dev/null
10344    lt_status=$?
10345    case x$lt_status in
10346      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10347      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10348      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10349    esac
10350  else :
10351    # compilation failed
10352    lt_cv_dlopen_self_static=no
10353  fi
10354fi
10355rm -fr conftest*
10356
10357
10358fi
10359echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10360echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10361    fi
10362
10363    CPPFLAGS="$save_CPPFLAGS"
10364    LDFLAGS="$save_LDFLAGS"
10365    LIBS="$save_LIBS"
10366    ;;
10367  esac
10368
10369  case $lt_cv_dlopen_self in
10370  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10371  *) enable_dlopen_self=unknown ;;
10372  esac
10373
10374  case $lt_cv_dlopen_self_static in
10375  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10376  *) enable_dlopen_self_static=unknown ;;
10377  esac
10378fi
10379
10380
10381# Report which library types will actually be built
10382echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10383echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10384echo "$as_me:$LINENO: result: $can_build_shared" >&5
10385echo "${ECHO_T}$can_build_shared" >&6
10386
10387echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10388echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10389test "$can_build_shared" = "no" && enable_shared=no
10390
10391# On AIX, shared libraries and static libraries use the same namespace, and
10392# are all built from PIC.
10393case $host_os in
10394aix3*)
10395  test "$enable_shared" = yes && enable_static=no
10396  if test -n "$RANLIB"; then
10397    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10398    postinstall_cmds='$RANLIB $lib'
10399  fi
10400  ;;
10401
10402aix4* | aix5*)
10403  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10404    test "$enable_shared" = yes && enable_static=no
10405  fi
10406    ;;
10407esac
10408echo "$as_me:$LINENO: result: $enable_shared" >&5
10409echo "${ECHO_T}$enable_shared" >&6
10410
10411echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10412echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10413# Make sure either enable_shared or enable_static is yes.
10414test "$enable_shared" = yes || enable_static=yes
10415echo "$as_me:$LINENO: result: $enable_static" >&5
10416echo "${ECHO_T}$enable_static" >&6
10417
10418# The else clause should only fire when bootstrapping the
10419# libtool distribution, otherwise you forgot to ship ltmain.sh
10420# with your package, and you will get complaints that there are
10421# no rules to generate ltmain.sh.
10422if test -f "$ltmain"; then
10423  # See if we are running on zsh, and set the options which allow our commands through
10424  # without removal of \ escapes.
10425  if test -n "${ZSH_VERSION+set}" ; then
10426    setopt NO_GLOB_SUBST
10427  fi
10428  # Now quote all the things that may contain metacharacters while being
10429  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10430  # variables and quote the copies for generation of the libtool script.
10431  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10432    SED SHELL STRIP \
10433    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10434    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10435    deplibs_check_method reload_flag reload_cmds need_locks \
10436    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10437    lt_cv_sys_global_symbol_to_c_name_address \
10438    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10439    old_postinstall_cmds old_postuninstall_cmds \
10440    compiler \
10441    CC \
10442    LD \
10443    lt_prog_compiler_wl \
10444    lt_prog_compiler_pic \
10445    lt_prog_compiler_static \
10446    lt_prog_compiler_no_builtin_flag \
10447    export_dynamic_flag_spec \
10448    thread_safe_flag_spec \
10449    whole_archive_flag_spec \
10450    enable_shared_with_static_runtimes \
10451    old_archive_cmds \
10452    old_archive_from_new_cmds \
10453    predep_objects \
10454    postdep_objects \
10455    predeps \
10456    postdeps \
10457    compiler_lib_search_path \
10458    archive_cmds \
10459    archive_expsym_cmds \
10460    postinstall_cmds \
10461    postuninstall_cmds \
10462    old_archive_from_expsyms_cmds \
10463    allow_undefined_flag \
10464    no_undefined_flag \
10465    export_symbols_cmds \
10466    hardcode_libdir_flag_spec \
10467    hardcode_libdir_flag_spec_ld \
10468    hardcode_libdir_separator \
10469    hardcode_automatic \
10470    module_cmds \
10471    module_expsym_cmds \
10472    lt_cv_prog_compiler_c_o \
10473    exclude_expsyms \
10474    include_expsyms; do
10475
10476    case $var in
10477    old_archive_cmds | \
10478    old_archive_from_new_cmds | \
10479    archive_cmds | \
10480    archive_expsym_cmds | \
10481    module_cmds | \
10482    module_expsym_cmds | \
10483    old_archive_from_expsyms_cmds | \
10484    export_symbols_cmds | \
10485    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10486    postinstall_cmds | postuninstall_cmds | \
10487    old_postinstall_cmds | old_postuninstall_cmds | \
10488    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10489      # Double-quote double-evaled strings.
10490      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10491      ;;
10492    *)
10493      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10494      ;;
10495    esac
10496  done
10497
10498  case $lt_echo in
10499  *'\$0 --fallback-echo"')
10500    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10501    ;;
10502  esac
10503
10504cfgfile="${ofile}T"
10505  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10506  $rm -f "$cfgfile"
10507  { echo "$as_me:$LINENO: creating $ofile" >&5
10508echo "$as_me: creating $ofile" >&6;}
10509
10510  cat <<__EOF__ >> "$cfgfile"
10511#! $SHELL
10512
10513# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10514# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10515# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10516#
10517# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10518# Free Software Foundation, Inc.
10519#
10520# This file is part of GNU Libtool:
10521# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10522#
10523# This program is free software; you can redistribute it and/or modify
10524# it under the terms of the GNU General Public License as published by
10525# the Free Software Foundation; either version 2 of the License, or
10526# (at your option) any later version.
10527#
10528# This program is distributed in the hope that it will be useful, but
10529# WITHOUT ANY WARRANTY; without even the implied warranty of
10530# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10531# General Public License for more details.
10532#
10533# You should have received a copy of the GNU General Public License
10534# along with this program; if not, write to the Free Software
10535# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10536#
10537# As a special exception to the GNU General Public License, if you
10538# distribute this file as part of a program that contains a
10539# configuration script generated by Autoconf, you may include it under
10540# the same distribution terms that you use for the rest of that program.
10541
10542# A sed program that does not truncate output.
10543SED=$lt_SED
10544
10545# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10546Xsed="$SED -e 1s/^X//"
10547
10548# The HP-UX ksh and POSIX shell print the target directory to stdout
10549# if CDPATH is set.
10550(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10551
10552# The names of the tagged configurations supported by this script.
10553available_tags=
10554
10555# ### BEGIN LIBTOOL CONFIG
10556
10557# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10558
10559# Shell to use when invoking shell scripts.
10560SHELL=$lt_SHELL
10561
10562# Whether or not to build shared libraries.
10563build_libtool_libs=$enable_shared
10564
10565# Whether or not to build static libraries.
10566build_old_libs=$enable_static
10567
10568# Whether or not to add -lc for building shared libraries.
10569build_libtool_need_lc=$archive_cmds_need_lc
10570
10571# Whether or not to disallow shared libs when runtime libs are static
10572allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10573
10574# Whether or not to optimize for fast installation.
10575fast_install=$enable_fast_install
10576
10577# The host system.
10578host_alias=$host_alias
10579host=$host
10580host_os=$host_os
10581
10582# The build system.
10583build_alias=$build_alias
10584build=$build
10585build_os=$build_os
10586
10587# An echo program that does not interpret backslashes.
10588echo=$lt_echo
10589
10590# The archiver.
10591AR=$lt_AR
10592AR_FLAGS=$lt_AR_FLAGS
10593
10594# A C compiler.
10595LTCC=$lt_LTCC
10596
10597# LTCC compiler flags.
10598LTCFLAGS=$lt_LTCFLAGS
10599
10600# A language-specific compiler.
10601CC=$lt_compiler
10602
10603# Is the compiler the GNU C compiler?
10604with_gcc=$GCC
10605
10606# An ERE matcher.
10607EGREP=$lt_EGREP
10608
10609# The linker used to build libraries.
10610LD=$lt_LD
10611
10612# Whether we need hard or soft links.
10613LN_S=$lt_LN_S
10614
10615# A BSD-compatible nm program.
10616NM=$lt_NM
10617
10618# A symbol stripping program
10619STRIP=$lt_STRIP
10620
10621# Used to examine libraries when file_magic_cmd begins "file"
10622MAGIC_CMD=$MAGIC_CMD
10623
10624# Used on cygwin: DLL creation program.
10625DLLTOOL="$DLLTOOL"
10626
10627# Used on cygwin: object dumper.
10628OBJDUMP="$OBJDUMP"
10629
10630# Used on cygwin: assembler.
10631AS="$AS"
10632
10633# The name of the directory that contains temporary libtool files.
10634objdir=$objdir
10635
10636# How to create reloadable object files.
10637reload_flag=$lt_reload_flag
10638reload_cmds=$lt_reload_cmds
10639
10640# How to pass a linker flag through the compiler.
10641wl=$lt_lt_prog_compiler_wl
10642
10643# Object file suffix (normally "o").
10644objext="$ac_objext"
10645
10646# Old archive suffix (normally "a").
10647libext="$libext"
10648
10649# Shared library suffix (normally ".so").
10650shrext_cmds='$shrext_cmds'
10651
10652# Executable file suffix (normally "").
10653exeext="$exeext"
10654
10655# Additional compiler flags for building library objects.
10656pic_flag=$lt_lt_prog_compiler_pic
10657pic_mode=$pic_mode
10658
10659# What is the maximum length of a command?
10660max_cmd_len=$lt_cv_sys_max_cmd_len
10661
10662# Does compiler simultaneously support -c and -o options?
10663compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10664
10665# Must we lock files when doing compilation?
10666need_locks=$lt_need_locks
10667
10668# Do we need the lib prefix for modules?
10669need_lib_prefix=$need_lib_prefix
10670
10671# Do we need a version for libraries?
10672need_version=$need_version
10673
10674# Whether dlopen is supported.
10675dlopen_support=$enable_dlopen
10676
10677# Whether dlopen of programs is supported.
10678dlopen_self=$enable_dlopen_self
10679
10680# Whether dlopen of statically linked programs is supported.
10681dlopen_self_static=$enable_dlopen_self_static
10682
10683# Compiler flag to prevent dynamic linking.
10684link_static_flag=$lt_lt_prog_compiler_static
10685
10686# Compiler flag to turn off builtin functions.
10687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10688
10689# Compiler flag to allow reflexive dlopens.
10690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10691
10692# Compiler flag to generate shared objects directly from archives.
10693whole_archive_flag_spec=$lt_whole_archive_flag_spec
10694
10695# Compiler flag to generate thread-safe objects.
10696thread_safe_flag_spec=$lt_thread_safe_flag_spec
10697
10698# Library versioning type.
10699version_type=$version_type
10700
10701# Format of library name prefix.
10702libname_spec=$lt_libname_spec
10703
10704# List of archive names.  First name is the real one, the rest are links.
10705# The last name is the one that the linker finds with -lNAME.
10706library_names_spec=$lt_library_names_spec
10707
10708# The coded name of the library, if different from the real name.
10709soname_spec=$lt_soname_spec
10710
10711# Commands used to build and install an old-style archive.
10712RANLIB=$lt_RANLIB
10713old_archive_cmds=$lt_old_archive_cmds
10714old_postinstall_cmds=$lt_old_postinstall_cmds
10715old_postuninstall_cmds=$lt_old_postuninstall_cmds
10716
10717# Create an old-style archive from a shared archive.
10718old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10719
10720# Create a temporary old-style archive to link instead of a shared archive.
10721old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10722
10723# Commands used to build and install a shared archive.
10724archive_cmds=$lt_archive_cmds
10725archive_expsym_cmds=$lt_archive_expsym_cmds
10726postinstall_cmds=$lt_postinstall_cmds
10727postuninstall_cmds=$lt_postuninstall_cmds
10728
10729# Commands used to build a loadable module (assumed same as above if empty)
10730module_cmds=$lt_module_cmds
10731module_expsym_cmds=$lt_module_expsym_cmds
10732
10733# Commands to strip libraries.
10734old_striplib=$lt_old_striplib
10735striplib=$lt_striplib
10736
10737# Dependencies to place before the objects being linked to create a
10738# shared library.
10739predep_objects=$lt_predep_objects
10740
10741# Dependencies to place after the objects being linked to create a
10742# shared library.
10743postdep_objects=$lt_postdep_objects
10744
10745# Dependencies to place before the objects being linked to create a
10746# shared library.
10747predeps=$lt_predeps
10748
10749# Dependencies to place after the objects being linked to create a
10750# shared library.
10751postdeps=$lt_postdeps
10752
10753# The library search path used internally by the compiler when linking
10754# a shared library.
10755compiler_lib_search_path=$lt_compiler_lib_search_path
10756
10757# Method to check whether dependent libraries are shared objects.
10758deplibs_check_method=$lt_deplibs_check_method
10759
10760# Command to use when deplibs_check_method == file_magic.
10761file_magic_cmd=$lt_file_magic_cmd
10762
10763# Flag that allows shared libraries with undefined symbols to be built.
10764allow_undefined_flag=$lt_allow_undefined_flag
10765
10766# Flag that forces no undefined symbols.
10767no_undefined_flag=$lt_no_undefined_flag
10768
10769# Commands used to finish a libtool library installation in a directory.
10770finish_cmds=$lt_finish_cmds
10771
10772# Same as above, but a single script fragment to be evaled but not shown.
10773finish_eval=$lt_finish_eval
10774
10775# Take the output of nm and produce a listing of raw symbols and C names.
10776global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10777
10778# Transform the output of nm in a proper C declaration
10779global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10780
10781# Transform the output of nm in a C name address pair
10782global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10783
10784# This is the shared library runtime path variable.
10785runpath_var=$runpath_var
10786
10787# This is the shared library path variable.
10788shlibpath_var=$shlibpath_var
10789
10790# Is shlibpath searched before the hard-coded library search path?
10791shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10792
10793# How to hardcode a shared library path into an executable.
10794hardcode_action=$hardcode_action
10795
10796# Whether we should hardcode library paths into libraries.
10797hardcode_into_libs=$hardcode_into_libs
10798
10799# Flag to hardcode \$libdir into a binary during linking.
10800# This must work even if \$libdir does not exist.
10801hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10802
10803# If ld is used when linking, flag to hardcode \$libdir into
10804# a binary during linking. This must work even if \$libdir does
10805# not exist.
10806hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10807
10808# Whether we need a single -rpath flag with a separated argument.
10809hardcode_libdir_separator=$lt_hardcode_libdir_separator
10810
10811# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10812# resulting binary.
10813hardcode_direct=$hardcode_direct
10814
10815# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10816# resulting binary.
10817hardcode_minus_L=$hardcode_minus_L
10818
10819# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10820# the resulting binary.
10821hardcode_shlibpath_var=$hardcode_shlibpath_var
10822
10823# Set to yes if building a shared library automatically hardcodes DIR into the library
10824# and all subsequent libraries and executables linked against it.
10825hardcode_automatic=$hardcode_automatic
10826
10827# Variables whose values should be saved in libtool wrapper scripts and
10828# restored at relink time.
10829variables_saved_for_relink="$variables_saved_for_relink"
10830
10831# Whether libtool must link a program against all its dependency libraries.
10832link_all_deplibs=$link_all_deplibs
10833
10834# Compile-time system search path for libraries
10835sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10836
10837# Run-time system search path for libraries
10838sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10839
10840# Fix the shell variable \$srcfile for the compiler.
10841fix_srcfile_path="$fix_srcfile_path"
10842
10843# Set to yes if exported symbols are required.
10844always_export_symbols=$always_export_symbols
10845
10846# The commands to list exported symbols.
10847export_symbols_cmds=$lt_export_symbols_cmds
10848
10849# The commands to extract the exported symbol list from a shared archive.
10850extract_expsyms_cmds=$lt_extract_expsyms_cmds
10851
10852# Symbols that should not be listed in the preloaded symbols.
10853exclude_expsyms=$lt_exclude_expsyms
10854
10855# Symbols that must always be exported.
10856include_expsyms=$lt_include_expsyms
10857
10858# ### END LIBTOOL CONFIG
10859
10860__EOF__
10861
10862
10863  case $host_os in
10864  aix3*)
10865    cat <<\EOF >> "$cfgfile"
10866
10867# AIX sometimes has problems with the GCC collect2 program.  For some
10868# reason, if we set the COLLECT_NAMES environment variable, the problems
10869# vanish in a puff of smoke.
10870if test "X${COLLECT_NAMES+set}" != Xset; then
10871  COLLECT_NAMES=
10872  export COLLECT_NAMES
10873fi
10874EOF
10875    ;;
10876  esac
10877
10878  # We use sed instead of cat because bash on DJGPP gets confused if
10879  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10880  # text mode, it properly converts lines to CR/LF.  This bash problem
10881  # is reportedly fixed, but why not run on old versions too?
10882  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10883
10884  mv -f "$cfgfile" "$ofile" || \
10885    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10886  chmod +x "$ofile"
10887
10888else
10889  # If there is no Makefile yet, we rely on a make rule to execute
10890  # `config.status --recheck' to rerun these tests and create the
10891  # libtool script then.
10892  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10893  if test -f "$ltmain_in"; then
10894    test -f Makefile && make "$ltmain"
10895  fi
10896fi
10897
10898
10899ac_ext=c
10900ac_cpp='$CPP $CPPFLAGS'
10901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903ac_compiler_gnu=$ac_cv_c_compiler_gnu
10904
10905CC="$lt_save_CC"
10906
10907
10908# Check whether --with-tags or --without-tags was given.
10909if test "${with_tags+set}" = set; then
10910  withval="$with_tags"
10911  tagnames="$withval"
10912fi;
10913
10914if test -f "$ltmain" && test -n "$tagnames"; then
10915  if test ! -f "${ofile}"; then
10916    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10917echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10918  fi
10919
10920  if test -z "$LTCC"; then
10921    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10922    if test -z "$LTCC"; then
10923      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10924echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10925    else
10926      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10927echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10928    fi
10929  fi
10930  if test -z "$LTCFLAGS"; then
10931    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10932  fi
10933
10934  # Extract list of available tagged configurations in $ofile.
10935  # Note that this assumes the entire list is on one line.
10936  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10937
10938  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10939  for tagname in $tagnames; do
10940    IFS="$lt_save_ifs"
10941    # Check whether tagname contains only valid characters
10942    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10943    "") ;;
10944    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10945echo "$as_me: error: invalid tag name: $tagname" >&2;}
10946   { (exit 1); exit 1; }; }
10947	;;
10948    esac
10949
10950    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10951    then
10952      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10953echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10954   { (exit 1); exit 1; }; }
10955    fi
10956
10957    # Update the list of available tags.
10958    if test -n "$tagname"; then
10959      echo appending configuration tag \"$tagname\" to $ofile
10960
10961      case $tagname in
10962      CXX)
10963	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10964	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10965	    (test "X$CXX" != "Xg++"))) ; then
10966	  ac_ext=cc
10967ac_cpp='$CXXCPP $CPPFLAGS'
10968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10971
10972
10973
10974
10975archive_cmds_need_lc_CXX=no
10976allow_undefined_flag_CXX=
10977always_export_symbols_CXX=no
10978archive_expsym_cmds_CXX=
10979export_dynamic_flag_spec_CXX=
10980hardcode_direct_CXX=no
10981hardcode_libdir_flag_spec_CXX=
10982hardcode_libdir_flag_spec_ld_CXX=
10983hardcode_libdir_separator_CXX=
10984hardcode_minus_L_CXX=no
10985hardcode_shlibpath_var_CXX=unsupported
10986hardcode_automatic_CXX=no
10987module_cmds_CXX=
10988module_expsym_cmds_CXX=
10989link_all_deplibs_CXX=unknown
10990old_archive_cmds_CXX=$old_archive_cmds
10991no_undefined_flag_CXX=
10992whole_archive_flag_spec_CXX=
10993enable_shared_with_static_runtimes_CXX=no
10994
10995# Dependencies to place before and after the object being linked:
10996predep_objects_CXX=
10997postdep_objects_CXX=
10998predeps_CXX=
10999postdeps_CXX=
11000compiler_lib_search_path_CXX=
11001
11002# Source file extension for C++ test sources.
11003ac_ext=cpp
11004
11005# Object file extension for compiled C++ test sources.
11006objext=o
11007objext_CXX=$objext
11008
11009# Code to be used in simple compile tests
11010lt_simple_compile_test_code="int some_variable = 0;\n"
11011
11012# Code to be used in simple link tests
11013lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11014
11015# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11016
11017# If no C compiler was specified, use CC.
11018LTCC=${LTCC-"$CC"}
11019
11020# If no C compiler flags were specified, use CFLAGS.
11021LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11022
11023# Allow CC to be a program name with arguments.
11024compiler=$CC
11025
11026
11027# save warnings/boilerplate of simple test code
11028ac_outfile=conftest.$ac_objext
11029printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11031_lt_compiler_boilerplate=`cat conftest.err`
11032$rm conftest*
11033
11034ac_outfile=conftest.$ac_objext
11035printf "$lt_simple_link_test_code" >conftest.$ac_ext
11036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11037_lt_linker_boilerplate=`cat conftest.err`
11038$rm conftest*
11039
11040
11041# Allow CC to be a program name with arguments.
11042lt_save_CC=$CC
11043lt_save_LD=$LD
11044lt_save_GCC=$GCC
11045GCC=$GXX
11046lt_save_with_gnu_ld=$with_gnu_ld
11047lt_save_path_LD=$lt_cv_path_LD
11048if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11049  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11050else
11051  $as_unset lt_cv_prog_gnu_ld
11052fi
11053if test -n "${lt_cv_path_LDCXX+set}"; then
11054  lt_cv_path_LD=$lt_cv_path_LDCXX
11055else
11056  $as_unset lt_cv_path_LD
11057fi
11058test -z "${LDCXX+set}" || LD=$LDCXX
11059CC=${CXX-"c++"}
11060compiler=$CC
11061compiler_CXX=$CC
11062for cc_temp in $compiler""; do
11063  case $cc_temp in
11064    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11065    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11066    \-*) ;;
11067    *) break;;
11068  esac
11069done
11070cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11071
11072
11073# We don't want -fno-exception wen compiling C++ code, so set the
11074# no_builtin_flag separately
11075if test "$GXX" = yes; then
11076  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11077else
11078  lt_prog_compiler_no_builtin_flag_CXX=
11079fi
11080
11081if test "$GXX" = yes; then
11082  # Set up default GNU C++ configuration
11083
11084
11085# Check whether --with-gnu-ld or --without-gnu-ld was given.
11086if test "${with_gnu_ld+set}" = set; then
11087  withval="$with_gnu_ld"
11088  test "$withval" = no || with_gnu_ld=yes
11089else
11090  with_gnu_ld=no
11091fi;
11092ac_prog=ld
11093if test "$GCC" = yes; then
11094  # Check if gcc -print-prog-name=ld gives a path.
11095  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11096echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11097  case $host in
11098  *-*-mingw*)
11099    # gcc leaves a trailing carriage return which upsets mingw
11100    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11101  *)
11102    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11103  esac
11104  case $ac_prog in
11105    # Accept absolute paths.
11106    [\\/]* | ?:[\\/]*)
11107      re_direlt='/[^/][^/]*/\.\./'
11108      # Canonicalize the pathname of ld
11109      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11110      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11111	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11112      done
11113      test -z "$LD" && LD="$ac_prog"
11114      ;;
11115  "")
11116    # If it fails, then pretend we aren't using GCC.
11117    ac_prog=ld
11118    ;;
11119  *)
11120    # If it is relative, then search for the first ld in PATH.
11121    with_gnu_ld=unknown
11122    ;;
11123  esac
11124elif test "$with_gnu_ld" = yes; then
11125  echo "$as_me:$LINENO: checking for GNU ld" >&5
11126echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11127else
11128  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11129echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11130fi
11131if test "${lt_cv_path_LD+set}" = set; then
11132  echo $ECHO_N "(cached) $ECHO_C" >&6
11133else
11134  if test -z "$LD"; then
11135  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11136  for ac_dir in $PATH; do
11137    IFS="$lt_save_ifs"
11138    test -z "$ac_dir" && ac_dir=.
11139    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11140      lt_cv_path_LD="$ac_dir/$ac_prog"
11141      # Check to see if the program is GNU ld.  I'd rather use --version,
11142      # but apparently some variants of GNU ld only accept -v.
11143      # Break only if it was the GNU/non-GNU ld that we prefer.
11144      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11145      *GNU* | *'with BFD'*)
11146	test "$with_gnu_ld" != no && break
11147	;;
11148      *)
11149	test "$with_gnu_ld" != yes && break
11150	;;
11151      esac
11152    fi
11153  done
11154  IFS="$lt_save_ifs"
11155else
11156  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11157fi
11158fi
11159
11160LD="$lt_cv_path_LD"
11161if test -n "$LD"; then
11162  echo "$as_me:$LINENO: result: $LD" >&5
11163echo "${ECHO_T}$LD" >&6
11164else
11165  echo "$as_me:$LINENO: result: no" >&5
11166echo "${ECHO_T}no" >&6
11167fi
11168test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11169echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11170   { (exit 1); exit 1; }; }
11171echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11172echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11173if test "${lt_cv_prog_gnu_ld+set}" = set; then
11174  echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
11176  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11177case `$LD -v 2>&1 </dev/null` in
11178*GNU* | *'with BFD'*)
11179  lt_cv_prog_gnu_ld=yes
11180  ;;
11181*)
11182  lt_cv_prog_gnu_ld=no
11183  ;;
11184esac
11185fi
11186echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11187echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11188with_gnu_ld=$lt_cv_prog_gnu_ld
11189
11190
11191
11192  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11193  # archiving commands below assume that GNU ld is being used.
11194  if test "$with_gnu_ld" = yes; then
11195    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196    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'
11197
11198    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11199    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11200
11201    # If archive_cmds runs LD, not CC, wlarc should be empty
11202    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11203    #     investigate it a little bit more. (MM)
11204    wlarc='${wl}'
11205
11206    # ancient GNU ld didn't support --whole-archive et. al.
11207    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11208	grep 'no-whole-archive' > /dev/null; then
11209      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11210    else
11211      whole_archive_flag_spec_CXX=
11212    fi
11213  else
11214    with_gnu_ld=no
11215    wlarc=
11216
11217    # A generic and very simple default shared library creation
11218    # command for GNU C++ for the case where it uses the native
11219    # linker, instead of GNU ld.  If possible, this setting should
11220    # overridden to take advantage of the native linker features on
11221    # the platform it is being used on.
11222    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11223  fi
11224
11225  # Commands to make compiler produce verbose output that lists
11226  # what "hidden" libraries, object files and flags are used when
11227  # linking a shared library.
11228  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11229
11230else
11231  GXX=no
11232  with_gnu_ld=no
11233  wlarc=
11234fi
11235
11236# PORTME: fill in a description of your system's C++ link characteristics
11237echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11239ld_shlibs_CXX=yes
11240case $host_os in
11241  aix3*)
11242    # FIXME: insert proper C++ library support
11243    ld_shlibs_CXX=no
11244    ;;
11245  aix4* | aix5*)
11246    if test "$host_cpu" = ia64; then
11247      # On IA64, the linker does run time linking by default, so we don't
11248      # have to do anything special.
11249      aix_use_runtimelinking=no
11250      exp_sym_flag='-Bexport'
11251      no_entry_flag=""
11252    else
11253      aix_use_runtimelinking=no
11254
11255      # Test if we are trying to use run time linking or normal
11256      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11257      # need to do runtime linking.
11258      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11259	for ld_flag in $LDFLAGS; do
11260	  case $ld_flag in
11261	  *-brtl*)
11262	    aix_use_runtimelinking=yes
11263	    break
11264	    ;;
11265	  esac
11266	done
11267	;;
11268      esac
11269
11270      exp_sym_flag='-bexport'
11271      no_entry_flag='-bnoentry'
11272    fi
11273
11274    # When large executables or shared objects are built, AIX ld can
11275    # have problems creating the table of contents.  If linking a library
11276    # or program results in "error TOC overflow" add -mminimal-toc to
11277    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11278    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11279
11280    archive_cmds_CXX=''
11281    hardcode_direct_CXX=yes
11282    hardcode_libdir_separator_CXX=':'
11283    link_all_deplibs_CXX=yes
11284
11285    if test "$GXX" = yes; then
11286      case $host_os in aix4.[012]|aix4.[012].*)
11287      # We only want to do this on AIX 4.2 and lower, the check
11288      # below for broken collect2 doesn't work under 4.3+
11289	collect2name=`${CC} -print-prog-name=collect2`
11290	if test -f "$collect2name" && \
11291	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11292	then
11293	  # We have reworked collect2
11294	  hardcode_direct_CXX=yes
11295	else
11296	  # We have old collect2
11297	  hardcode_direct_CXX=unsupported
11298	  # It fails to find uninstalled libraries when the uninstalled
11299	  # path is not listed in the libpath.  Setting hardcode_minus_L
11300	  # to unsupported forces relinking
11301	  hardcode_minus_L_CXX=yes
11302	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11303	  hardcode_libdir_separator_CXX=
11304	fi
11305	;;
11306      esac
11307      shared_flag='-shared'
11308      if test "$aix_use_runtimelinking" = yes; then
11309	shared_flag="$shared_flag "'${wl}-G'
11310      fi
11311    else
11312      # not using gcc
11313      if test "$host_cpu" = ia64; then
11314	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11315	# chokes on -Wl,-G. The following line is correct:
11316	shared_flag='-G'
11317      else
11318	if test "$aix_use_runtimelinking" = yes; then
11319	  shared_flag='${wl}-G'
11320	else
11321	  shared_flag='${wl}-bM:SRE'
11322	fi
11323      fi
11324    fi
11325
11326    # It seems that -bexpall does not export symbols beginning with
11327    # underscore (_), so it is better to generate a list of symbols to export.
11328    always_export_symbols_CXX=yes
11329    if test "$aix_use_runtimelinking" = yes; then
11330      # Warning - without using the other runtime loading flags (-brtl),
11331      # -berok will link without error, but may produce a broken library.
11332      allow_undefined_flag_CXX='-berok'
11333      # Determine the default libpath from the value encoded in an empty executable.
11334      cat >conftest.$ac_ext <<_ACEOF
11335/* confdefs.h.  */
11336_ACEOF
11337cat confdefs.h >>conftest.$ac_ext
11338cat >>conftest.$ac_ext <<_ACEOF
11339/* end confdefs.h.  */
11340
11341int
11342main ()
11343{
11344
11345  ;
11346  return 0;
11347}
11348_ACEOF
11349rm -f conftest.$ac_objext conftest$ac_exeext
11350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11351  (eval $ac_link) 2>conftest.er1
11352  ac_status=$?
11353  grep -v '^ *+' conftest.er1 >conftest.err
11354  rm -f conftest.er1
11355  cat conftest.err >&5
11356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357  (exit $ac_status); } &&
11358	 { ac_try='test -z "$ac_cxx_werror_flag"
11359			 || test ! -s conftest.err'
11360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361  (eval $ac_try) 2>&5
11362  ac_status=$?
11363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364  (exit $ac_status); }; } &&
11365	 { ac_try='test -s conftest$ac_exeext'
11366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367  (eval $ac_try) 2>&5
11368  ac_status=$?
11369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370  (exit $ac_status); }; }; then
11371
11372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11373}'`
11374# Check for a 64-bit object if we didn't find anything.
11375if 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; }
11376}'`; fi
11377else
11378  echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381fi
11382rm -f conftest.err conftest.$ac_objext \
11383      conftest$ac_exeext conftest.$ac_ext
11384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11385
11386      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11387
11388      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11389     else
11390      if test "$host_cpu" = ia64; then
11391	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11392	allow_undefined_flag_CXX="-z nodefs"
11393	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11394      else
11395	# Determine the default libpath from the value encoded in an empty executable.
11396	cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h.  */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h.  */
11402
11403int
11404main ()
11405{
11406
11407  ;
11408  return 0;
11409}
11410_ACEOF
11411rm -f conftest.$ac_objext conftest$ac_exeext
11412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11413  (eval $ac_link) 2>conftest.er1
11414  ac_status=$?
11415  grep -v '^ *+' conftest.er1 >conftest.err
11416  rm -f conftest.er1
11417  cat conftest.err >&5
11418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419  (exit $ac_status); } &&
11420	 { ac_try='test -z "$ac_cxx_werror_flag"
11421			 || test ! -s conftest.err'
11422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423  (eval $ac_try) 2>&5
11424  ac_status=$?
11425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426  (exit $ac_status); }; } &&
11427	 { ac_try='test -s conftest$ac_exeext'
11428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429  (eval $ac_try) 2>&5
11430  ac_status=$?
11431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432  (exit $ac_status); }; }; then
11433
11434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11435}'`
11436# Check for a 64-bit object if we didn't find anything.
11437if 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; }
11438}'`; fi
11439else
11440  echo "$as_me: failed program was:" >&5
11441sed 's/^/| /' conftest.$ac_ext >&5
11442
11443fi
11444rm -f conftest.err conftest.$ac_objext \
11445      conftest$ac_exeext conftest.$ac_ext
11446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11447
11448	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11449	# Warning - without using the other run time loading flags,
11450	# -berok will link without error, but may produce a broken library.
11451	no_undefined_flag_CXX=' ${wl}-bernotok'
11452	allow_undefined_flag_CXX=' ${wl}-berok'
11453	# Exported symbols can be pulled into shared objects from archives
11454	whole_archive_flag_spec_CXX='$convenience'
11455	archive_cmds_need_lc_CXX=yes
11456	# This is similar to how AIX traditionally builds its shared libraries.
11457	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11458      fi
11459    fi
11460    ;;
11461
11462  beos*)
11463    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11464      allow_undefined_flag_CXX=unsupported
11465      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11466      # support --undefined.  This deserves some investigation.  FIXME
11467      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11468    else
11469      ld_shlibs_CXX=no
11470    fi
11471    ;;
11472
11473  chorus*)
11474    case $cc_basename in
11475      *)
11476	# FIXME: insert proper C++ library support
11477	ld_shlibs_CXX=no
11478	;;
11479    esac
11480    ;;
11481
11482  cygwin* | mingw* | pw32*)
11483    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11484    # as there is no search path for DLLs.
11485    hardcode_libdir_flag_spec_CXX='-L$libdir'
11486    allow_undefined_flag_CXX=unsupported
11487    always_export_symbols_CXX=no
11488    enable_shared_with_static_runtimes_CXX=yes
11489
11490    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11491      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11492      # If the export-symbols file already is a .def file (1st line
11493      # is EXPORTS), use it as is; otherwise, prepend...
11494      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11495	cp $export_symbols $output_objdir/$soname.def;
11496      else
11497	echo EXPORTS > $output_objdir/$soname.def;
11498	cat $export_symbols >> $output_objdir/$soname.def;
11499      fi~
11500      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11501    else
11502      ld_shlibs_CXX=no
11503    fi
11504  ;;
11505      darwin* | rhapsody*)
11506        case $host_os in
11507        rhapsody* | darwin1.[012])
11508         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11509         ;;
11510       *) # Darwin 1.3 on
11511         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11512           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11513         else
11514           case ${MACOSX_DEPLOYMENT_TARGET} in
11515             10.[012])
11516               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11517               ;;
11518             10.*)
11519               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11520               ;;
11521           esac
11522         fi
11523         ;;
11524        esac
11525      archive_cmds_need_lc_CXX=no
11526      hardcode_direct_CXX=no
11527      hardcode_automatic_CXX=yes
11528      hardcode_shlibpath_var_CXX=unsupported
11529      whole_archive_flag_spec_CXX=''
11530      link_all_deplibs_CXX=yes
11531
11532    if test "$GXX" = yes ; then
11533      lt_int_apple_cc_single_mod=no
11534      output_verbose_link_cmd='echo'
11535      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11536       lt_int_apple_cc_single_mod=yes
11537      fi
11538      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11539       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11540      else
11541          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11542        fi
11543        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11544        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11545          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11546            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}'
11547          else
11548            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11549          fi
11550            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}'
11551      else
11552      case $cc_basename in
11553        xlc*)
11554         output_verbose_link_cmd='echo'
11555          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11556          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11557          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11558          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11559          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}'
11560          ;;
11561       *)
11562         ld_shlibs_CXX=no
11563          ;;
11564      esac
11565      fi
11566        ;;
11567
11568  dgux*)
11569    case $cc_basename in
11570      ec++*)
11571	# FIXME: insert proper C++ library support
11572	ld_shlibs_CXX=no
11573	;;
11574      ghcx*)
11575	# Green Hills C++ Compiler
11576	# FIXME: insert proper C++ library support
11577	ld_shlibs_CXX=no
11578	;;
11579      *)
11580	# FIXME: insert proper C++ library support
11581	ld_shlibs_CXX=no
11582	;;
11583    esac
11584    ;;
11585  freebsd[12]*)
11586    # C++ shared libraries reported to be fairly broken before switch to ELF
11587    ld_shlibs_CXX=no
11588    ;;
11589  freebsd-elf*)
11590    archive_cmds_need_lc_CXX=no
11591    ;;
11592  freebsd* | kfreebsd*-gnu | dragonfly*)
11593    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11594    # conventions
11595    ld_shlibs_CXX=yes
11596    ;;
11597  gnu*)
11598    ;;
11599  hpux9*)
11600    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11601    hardcode_libdir_separator_CXX=:
11602    export_dynamic_flag_spec_CXX='${wl}-E'
11603    hardcode_direct_CXX=yes
11604    hardcode_minus_L_CXX=yes # Not in the search PATH,
11605				# but as the default
11606				# location of the library.
11607
11608    case $cc_basename in
11609    CC*)
11610      # FIXME: insert proper C++ library support
11611      ld_shlibs_CXX=no
11612      ;;
11613    aCC*)
11614      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'
11615      # Commands to make compiler produce verbose output that lists
11616      # what "hidden" libraries, object files and flags are used when
11617      # linking a shared library.
11618      #
11619      # There doesn't appear to be a way to prevent this compiler from
11620      # explicitly linking system object files so we need to strip them
11621      # from the output so that they don't get included in the library
11622      # dependencies.
11623      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'
11624      ;;
11625    *)
11626      if test "$GXX" = yes; then
11627        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'
11628      else
11629        # FIXME: insert proper C++ library support
11630        ld_shlibs_CXX=no
11631      fi
11632      ;;
11633    esac
11634    ;;
11635  hpux10*|hpux11*)
11636    if test $with_gnu_ld = no; then
11637      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11638      hardcode_libdir_separator_CXX=:
11639
11640      case $host_cpu in
11641      hppa*64*|ia64*)
11642	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11643        ;;
11644      *)
11645	export_dynamic_flag_spec_CXX='${wl}-E'
11646        ;;
11647      esac
11648    fi
11649    case $host_cpu in
11650    hppa*64*|ia64*)
11651      hardcode_direct_CXX=no
11652      hardcode_shlibpath_var_CXX=no
11653      ;;
11654    *)
11655      hardcode_direct_CXX=yes
11656      hardcode_minus_L_CXX=yes # Not in the search PATH,
11657					      # but as the default
11658					      # location of the library.
11659      ;;
11660    esac
11661
11662    case $cc_basename in
11663      CC*)
11664	# FIXME: insert proper C++ library support
11665	ld_shlibs_CXX=no
11666	;;
11667      aCC*)
11668	case $host_cpu in
11669	hppa*64*)
11670	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11671	  ;;
11672	ia64*)
11673	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674	  ;;
11675	*)
11676	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677	  ;;
11678	esac
11679	# Commands to make compiler produce verbose output that lists
11680	# what "hidden" libraries, object files and flags are used when
11681	# linking a shared library.
11682	#
11683	# There doesn't appear to be a way to prevent this compiler from
11684	# explicitly linking system object files so we need to strip them
11685	# from the output so that they don't get included in the library
11686	# dependencies.
11687	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'
11688	;;
11689      *)
11690	if test "$GXX" = yes; then
11691	  if test $with_gnu_ld = no; then
11692	    case $host_cpu in
11693	    hppa*64*)
11694	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11695	      ;;
11696	    ia64*)
11697	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11698	      ;;
11699	    *)
11700	      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'
11701	      ;;
11702	    esac
11703	  fi
11704	else
11705	  # FIXME: insert proper C++ library support
11706	  ld_shlibs_CXX=no
11707	fi
11708	;;
11709    esac
11710    ;;
11711  interix3*)
11712    hardcode_direct_CXX=no
11713    hardcode_shlibpath_var_CXX=no
11714    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715    export_dynamic_flag_spec_CXX='${wl}-E'
11716    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11717    # Instead, shared libraries are loaded at an image base (0x10000000 by
11718    # default) and relocated if they conflict, which is a slow very memory
11719    # consuming and fragmenting process.  To avoid this, we pick a random,
11720    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11721    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11722    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11723    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11724    ;;
11725  irix5* | irix6*)
11726    case $cc_basename in
11727      CC*)
11728	# SGI C++
11729	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11730
11731	# Archives containing C++ object files must be created using
11732	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11733	# necessary to make sure instantiated templates are included
11734	# in the archive.
11735	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11736	;;
11737      *)
11738	if test "$GXX" = yes; then
11739	  if test "$with_gnu_ld" = no; then
11740	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11741	  else
11742	    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'
11743	  fi
11744	fi
11745	link_all_deplibs_CXX=yes
11746	;;
11747    esac
11748    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749    hardcode_libdir_separator_CXX=:
11750    ;;
11751  linux*)
11752    case $cc_basename in
11753      KCC*)
11754	# Kuck and Associates, Inc. (KAI) C++ Compiler
11755
11756	# KCC will only create a shared library if the output file
11757	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11758	# to its proper name (with version) after linking.
11759	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'
11760	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'
11761	# Commands to make compiler produce verbose output that lists
11762	# what "hidden" libraries, object files and flags are used when
11763	# linking a shared library.
11764	#
11765	# There doesn't appear to be a way to prevent this compiler from
11766	# explicitly linking system object files so we need to strip them
11767	# from the output so that they don't get included in the library
11768	# dependencies.
11769	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'
11770
11771	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11772	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11773
11774	# Archives containing C++ object files must be created using
11775	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11776	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11777	;;
11778      icpc*)
11779	# Intel C++
11780	with_gnu_ld=yes
11781	# version 8.0 and above of icpc choke on multiply defined symbols
11782	# if we add $predep_objects and $postdep_objects, however 7.1 and
11783	# earlier do not add the objects themselves.
11784	case `$CC -V 2>&1` in
11785	*"Version 7."*)
11786  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787  	  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'
11788	  ;;
11789	*)  # Version 8.0 or newer
11790	  tmp_idyn=
11791	  case $host_cpu in
11792	    ia64*) tmp_idyn=' -i_dynamic';;
11793	  esac
11794  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11795	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11796	  ;;
11797	esac
11798	archive_cmds_need_lc_CXX=no
11799	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11801	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11802	;;
11803      pgCC*)
11804        # Portland Group C++ compiler
11805	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11806  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11807
11808	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11809	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11810	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11811        ;;
11812      cxx*)
11813	# Compaq C++
11814	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815	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'
11816
11817	runpath_var=LD_RUN_PATH
11818	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819	hardcode_libdir_separator_CXX=:
11820
11821	# Commands to make compiler produce verbose output that lists
11822	# what "hidden" libraries, object files and flags are used when
11823	# linking a shared library.
11824	#
11825	# There doesn't appear to be a way to prevent this compiler from
11826	# explicitly linking system object files so we need to strip them
11827	# from the output so that they don't get included in the library
11828	# dependencies.
11829	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'
11830	;;
11831    esac
11832    ;;
11833  lynxos*)
11834    # FIXME: insert proper C++ library support
11835    ld_shlibs_CXX=no
11836    ;;
11837  m88k*)
11838    # FIXME: insert proper C++ library support
11839    ld_shlibs_CXX=no
11840    ;;
11841  mvs*)
11842    case $cc_basename in
11843      cxx*)
11844	# FIXME: insert proper C++ library support
11845	ld_shlibs_CXX=no
11846	;;
11847      *)
11848	# FIXME: insert proper C++ library support
11849	ld_shlibs_CXX=no
11850	;;
11851    esac
11852    ;;
11853  netbsd*)
11854    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11855      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11856      wlarc=
11857      hardcode_libdir_flag_spec_CXX='-R$libdir'
11858      hardcode_direct_CXX=yes
11859      hardcode_shlibpath_var_CXX=no
11860    fi
11861    # Workaround some broken pre-1.5 toolchains
11862    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11863    ;;
11864  openbsd2*)
11865    # C++ shared libraries are fairly broken
11866    ld_shlibs_CXX=no
11867    ;;
11868  openbsd*)
11869    hardcode_direct_CXX=yes
11870    hardcode_shlibpath_var_CXX=no
11871    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11872    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11873    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11874      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11875      export_dynamic_flag_spec_CXX='${wl}-E'
11876      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11877    fi
11878    output_verbose_link_cmd='echo'
11879    ;;
11880  osf3*)
11881    case $cc_basename in
11882      KCC*)
11883	# Kuck and Associates, Inc. (KAI) C++ Compiler
11884
11885	# KCC will only create a shared library if the output file
11886	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11887	# to its proper name (with version) after linking.
11888	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'
11889
11890	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11891	hardcode_libdir_separator_CXX=:
11892
11893	# Archives containing C++ object files must be created using
11894	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11895	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11896
11897	;;
11898      RCC*)
11899	# Rational C++ 2.4.1
11900	# FIXME: insert proper C++ library support
11901	ld_shlibs_CXX=no
11902	;;
11903      cxx*)
11904	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11905	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11906
11907	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11908	hardcode_libdir_separator_CXX=:
11909
11910	# Commands to make compiler produce verbose output that lists
11911	# what "hidden" libraries, object files and flags are used when
11912	# linking a shared library.
11913	#
11914	# There doesn't appear to be a way to prevent this compiler from
11915	# explicitly linking system object files so we need to strip them
11916	# from the output so that they don't get included in the library
11917	# dependencies.
11918	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'
11919	;;
11920      *)
11921	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11922	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11923	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11924
11925	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11926	  hardcode_libdir_separator_CXX=:
11927
11928	  # Commands to make compiler produce verbose output that lists
11929	  # what "hidden" libraries, object files and flags are used when
11930	  # linking a shared library.
11931	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11932
11933	else
11934	  # FIXME: insert proper C++ library support
11935	  ld_shlibs_CXX=no
11936	fi
11937	;;
11938    esac
11939    ;;
11940  osf4* | osf5*)
11941    case $cc_basename in
11942      KCC*)
11943	# Kuck and Associates, Inc. (KAI) C++ Compiler
11944
11945	# KCC will only create a shared library if the output file
11946	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11947	# to its proper name (with version) after linking.
11948	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'
11949
11950	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11951	hardcode_libdir_separator_CXX=:
11952
11953	# Archives containing C++ object files must be created using
11954	# the KAI C++ compiler.
11955	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11956	;;
11957      RCC*)
11958	# Rational C++ 2.4.1
11959	# FIXME: insert proper C++ library support
11960	ld_shlibs_CXX=no
11961	;;
11962      cxx*)
11963	allow_undefined_flag_CXX=' -expect_unresolved \*'
11964	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11965	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11966	  echo "-hidden">> $lib.exp~
11967	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11968	  $rm $lib.exp'
11969
11970	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11971	hardcode_libdir_separator_CXX=:
11972
11973	# Commands to make compiler produce verbose output that lists
11974	# what "hidden" libraries, object files and flags are used when
11975	# linking a shared library.
11976	#
11977	# There doesn't appear to be a way to prevent this compiler from
11978	# explicitly linking system object files so we need to strip them
11979	# from the output so that they don't get included in the library
11980	# dependencies.
11981	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'
11982	;;
11983      *)
11984	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11985	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11986	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11987
11988	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11989	  hardcode_libdir_separator_CXX=:
11990
11991	  # Commands to make compiler produce verbose output that lists
11992	  # what "hidden" libraries, object files and flags are used when
11993	  # linking a shared library.
11994	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11995
11996	else
11997	  # FIXME: insert proper C++ library support
11998	  ld_shlibs_CXX=no
11999	fi
12000	;;
12001    esac
12002    ;;
12003  psos*)
12004    # FIXME: insert proper C++ library support
12005    ld_shlibs_CXX=no
12006    ;;
12007  sunos4*)
12008    case $cc_basename in
12009      CC*)
12010	# Sun C++ 4.x
12011	# FIXME: insert proper C++ library support
12012	ld_shlibs_CXX=no
12013	;;
12014      lcc*)
12015	# Lucid
12016	# FIXME: insert proper C++ library support
12017	ld_shlibs_CXX=no
12018	;;
12019      *)
12020	# FIXME: insert proper C++ library support
12021	ld_shlibs_CXX=no
12022	;;
12023    esac
12024    ;;
12025  solaris*)
12026    case $cc_basename in
12027      CC*)
12028	# Sun C++ 4.2, 5.x and Centerline C++
12029        archive_cmds_need_lc_CXX=yes
12030	no_undefined_flag_CXX=' -zdefs'
12031	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12032	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12033	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12034
12035	hardcode_libdir_flag_spec_CXX='-R$libdir'
12036	hardcode_shlibpath_var_CXX=no
12037	case $host_os in
12038	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12039	  *)
12040	    # The C++ compiler is used as linker so we must use $wl
12041	    # flag to pass the commands to the underlying system
12042	    # linker. We must also pass each convience library through
12043	    # to the system linker between allextract/defaultextract.
12044	    # The C++ compiler will combine linker options so we
12045	    # cannot just pass the convience library names through
12046	    # without $wl.
12047	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12048	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12049	    ;;
12050	esac
12051	link_all_deplibs_CXX=yes
12052
12053	output_verbose_link_cmd='echo'
12054
12055	# Archives containing C++ object files must be created using
12056	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12057	# necessary to make sure instantiated templates are included
12058	# in the archive.
12059	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12060	;;
12061      gcx*)
12062	# Green Hills C++ Compiler
12063	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12064
12065	# The C++ compiler must be used to create the archive.
12066	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12067	;;
12068      *)
12069	# GNU C++ compiler with Solaris linker
12070	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12071	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12072	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12073	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12074	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12076
12077	    # Commands to make compiler produce verbose output that lists
12078	    # what "hidden" libraries, object files and flags are used when
12079	    # linking a shared library.
12080	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12081	  else
12082	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12083	    # platform.
12084	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12085	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12086		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12087
12088	    # Commands to make compiler produce verbose output that lists
12089	    # what "hidden" libraries, object files and flags are used when
12090	    # linking a shared library.
12091	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12092	  fi
12093
12094	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12095	fi
12096	;;
12097    esac
12098    ;;
12099  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12100    no_undefined_flag_CXX='${wl}-z,text'
12101    archive_cmds_need_lc_CXX=no
12102    hardcode_shlibpath_var_CXX=no
12103    runpath_var='LD_RUN_PATH'
12104
12105    case $cc_basename in
12106      CC*)
12107	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12108	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109	;;
12110      *)
12111	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12112	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12113	;;
12114    esac
12115    ;;
12116  sysv5* | sco3.2v5* | sco5v6*)
12117    # Note: We can NOT use -z defs as we might desire, because we do not
12118    # link with -lc, and that would cause any symbols used from libc to
12119    # always be unresolved, which means just about no library would
12120    # ever link correctly.  If we're not using GNU ld we use -z text
12121    # though, which does catch some bad symbols but isn't as heavy-handed
12122    # as -z defs.
12123    # For security reasons, it is highly recommended that you always
12124    # use absolute paths for naming shared libraries, and exclude the
12125    # DT_RUNPATH tag from executables and libraries.  But doing so
12126    # requires that you compile everything twice, which is a pain.
12127    # So that behaviour is only enabled if SCOABSPATH is set to a
12128    # non-empty value in the environment.  Most likely only useful for
12129    # creating official distributions of packages.
12130    # This is a hack until libtool officially supports absolute path
12131    # names for shared libraries.
12132    no_undefined_flag_CXX='${wl}-z,text'
12133    allow_undefined_flag_CXX='${wl}-z,nodefs'
12134    archive_cmds_need_lc_CXX=no
12135    hardcode_shlibpath_var_CXX=no
12136    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12137    hardcode_libdir_separator_CXX=':'
12138    link_all_deplibs_CXX=yes
12139    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12140    runpath_var='LD_RUN_PATH'
12141
12142    case $cc_basename in
12143      CC*)
12144	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12145	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12146	;;
12147      *)
12148	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12149	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12150	;;
12151    esac
12152    ;;
12153  tandem*)
12154    case $cc_basename in
12155      NCC*)
12156	# NonStop-UX NCC 3.20
12157	# FIXME: insert proper C++ library support
12158	ld_shlibs_CXX=no
12159	;;
12160      *)
12161	# FIXME: insert proper C++ library support
12162	ld_shlibs_CXX=no
12163	;;
12164    esac
12165    ;;
12166  vxworks*)
12167    # FIXME: insert proper C++ library support
12168    ld_shlibs_CXX=no
12169    ;;
12170  *)
12171    # FIXME: insert proper C++ library support
12172    ld_shlibs_CXX=no
12173    ;;
12174esac
12175echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12176echo "${ECHO_T}$ld_shlibs_CXX" >&6
12177test "$ld_shlibs_CXX" = no && can_build_shared=no
12178
12179GCC_CXX="$GXX"
12180LD_CXX="$LD"
12181
12182## CAVEAT EMPTOR:
12183## There is no encapsulation within the following macros, do not change
12184## the running order or otherwise move them around unless you know exactly
12185## what you are doing...
12186
12187cat > conftest.$ac_ext <<EOF
12188class Foo
12189{
12190public:
12191  Foo (void) { a = 0; }
12192private:
12193  int a;
12194};
12195EOF
12196
12197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198  (eval $ac_compile) 2>&5
12199  ac_status=$?
12200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201  (exit $ac_status); }; then
12202  # Parse the compiler output and extract the necessary
12203  # objects, libraries and library flags.
12204
12205  # Sentinel used to keep track of whether or not we are before
12206  # the conftest object file.
12207  pre_test_object_deps_done=no
12208
12209  # The `*' in the case matches for architectures that use `case' in
12210  # $output_verbose_cmd can trigger glob expansion during the loop
12211  # eval without this substitution.
12212  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12213
12214  for p in `eval $output_verbose_link_cmd`; do
12215    case $p in
12216
12217    -L* | -R* | -l*)
12218       # Some compilers place space between "-{L,R}" and the path.
12219       # Remove the space.
12220       if test $p = "-L" \
12221	  || test $p = "-R"; then
12222	 prev=$p
12223	 continue
12224       else
12225	 prev=
12226       fi
12227
12228       if test "$pre_test_object_deps_done" = no; then
12229	 case $p in
12230	 -L* | -R*)
12231	   # Internal compiler library paths should come after those
12232	   # provided the user.  The postdeps already come after the
12233	   # user supplied libs so there is no need to process them.
12234	   if test -z "$compiler_lib_search_path_CXX"; then
12235	     compiler_lib_search_path_CXX="${prev}${p}"
12236	   else
12237	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12238	   fi
12239	   ;;
12240	 # The "-l" case would never come before the object being
12241	 # linked, so don't bother handling this case.
12242	 esac
12243       else
12244	 if test -z "$postdeps_CXX"; then
12245	   postdeps_CXX="${prev}${p}"
12246	 else
12247	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12248	 fi
12249       fi
12250       ;;
12251
12252    *.$objext)
12253       # This assumes that the test object file only shows up
12254       # once in the compiler output.
12255       if test "$p" = "conftest.$objext"; then
12256	 pre_test_object_deps_done=yes
12257	 continue
12258       fi
12259
12260       if test "$pre_test_object_deps_done" = no; then
12261	 if test -z "$predep_objects_CXX"; then
12262	   predep_objects_CXX="$p"
12263	 else
12264	   predep_objects_CXX="$predep_objects_CXX $p"
12265	 fi
12266       else
12267	 if test -z "$postdep_objects_CXX"; then
12268	   postdep_objects_CXX="$p"
12269	 else
12270	   postdep_objects_CXX="$postdep_objects_CXX $p"
12271	 fi
12272       fi
12273       ;;
12274
12275    *) ;; # Ignore the rest.
12276
12277    esac
12278  done
12279
12280  # Clean up.
12281  rm -f a.out a.exe
12282else
12283  echo "libtool.m4: error: problem compiling CXX test program"
12284fi
12285
12286$rm -f confest.$objext
12287
12288# PORTME: override above test on systems where it is broken
12289case $host_os in
12290interix3*)
12291  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12292  # hack all around it, let's just trust "g++" to DTRT.
12293  predep_objects_CXX=
12294  postdep_objects_CXX=
12295  postdeps_CXX=
12296  ;;
12297
12298solaris*)
12299  case $cc_basename in
12300  CC*)
12301    # Adding this requires a known-good setup of shared libraries for
12302    # Sun compiler versions before 5.6, else PIC objects from an old
12303    # archive will be linked into the output, leading to subtle bugs.
12304    postdeps_CXX='-lCstd -lCrun'
12305    ;;
12306  esac
12307  ;;
12308esac
12309
12310
12311case " $postdeps_CXX " in
12312*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12313esac
12314
12315lt_prog_compiler_wl_CXX=
12316lt_prog_compiler_pic_CXX=
12317lt_prog_compiler_static_CXX=
12318
12319echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12320echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12321
12322  # C++ specific cases for pic, static, wl, etc.
12323  if test "$GXX" = yes; then
12324    lt_prog_compiler_wl_CXX='-Wl,'
12325    lt_prog_compiler_static_CXX='-static'
12326
12327    case $host_os in
12328    aix*)
12329      # All AIX code is PIC.
12330      if test "$host_cpu" = ia64; then
12331	# AIX 5 now supports IA64 processor
12332	lt_prog_compiler_static_CXX='-Bstatic'
12333      fi
12334      ;;
12335    amigaos*)
12336      # FIXME: we need at least 68020 code to build shared libraries, but
12337      # adding the `-m68020' flag to GCC prevents building anything better,
12338      # like `-m68040'.
12339      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12340      ;;
12341    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12342      # PIC is the default for these OSes.
12343      ;;
12344    mingw* | os2* | pw32*)
12345      # This hack is so that the source file can tell whether it is being
12346      # built for inclusion in a dll (and should export symbols for example).
12347      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12348      ;;
12349    darwin* | rhapsody*)
12350      # PIC is the default on this platform
12351      # Common symbols not allowed in MH_DYLIB files
12352      lt_prog_compiler_pic_CXX='-fno-common'
12353      ;;
12354    *djgpp*)
12355      # DJGPP does not support shared libraries at all
12356      lt_prog_compiler_pic_CXX=
12357      ;;
12358    interix3*)
12359      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12360      # Instead, we relocate shared libraries at runtime.
12361      ;;
12362    sysv4*MP*)
12363      if test -d /usr/nec; then
12364	lt_prog_compiler_pic_CXX=-Kconform_pic
12365      fi
12366      ;;
12367    hpux*)
12368      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369      # not for PA HP-UX.
12370      case $host_cpu in
12371      hppa*64*|ia64*)
12372	;;
12373      *)
12374	lt_prog_compiler_pic_CXX='-fPIC'
12375	;;
12376      esac
12377      ;;
12378    *)
12379      lt_prog_compiler_pic_CXX='-fPIC'
12380      ;;
12381    esac
12382  else
12383    case $host_os in
12384      aix4* | aix5*)
12385	# All AIX code is PIC.
12386	if test "$host_cpu" = ia64; then
12387	  # AIX 5 now supports IA64 processor
12388	  lt_prog_compiler_static_CXX='-Bstatic'
12389	else
12390	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12391	fi
12392	;;
12393      chorus*)
12394	case $cc_basename in
12395	cxch68*)
12396	  # Green Hills C++ Compiler
12397	  # _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"
12398	  ;;
12399	esac
12400	;;
12401       darwin*)
12402         # PIC is the default on this platform
12403         # Common symbols not allowed in MH_DYLIB files
12404         case $cc_basename in
12405           xlc*)
12406           lt_prog_compiler_pic_CXX='-qnocommon'
12407           lt_prog_compiler_wl_CXX='-Wl,'
12408           ;;
12409         esac
12410       ;;
12411      dgux*)
12412	case $cc_basename in
12413	  ec++*)
12414	    lt_prog_compiler_pic_CXX='-KPIC'
12415	    ;;
12416	  ghcx*)
12417	    # Green Hills C++ Compiler
12418	    lt_prog_compiler_pic_CXX='-pic'
12419	    ;;
12420	  *)
12421	    ;;
12422	esac
12423	;;
12424      freebsd* | kfreebsd*-gnu | dragonfly*)
12425	# FreeBSD uses GNU C++
12426	;;
12427      hpux9* | hpux10* | hpux11*)
12428	case $cc_basename in
12429	  CC*)
12430	    lt_prog_compiler_wl_CXX='-Wl,'
12431	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12432	    if test "$host_cpu" != ia64; then
12433	      lt_prog_compiler_pic_CXX='+Z'
12434	    fi
12435	    ;;
12436	  aCC*)
12437	    lt_prog_compiler_wl_CXX='-Wl,'
12438	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12439	    case $host_cpu in
12440	    hppa*64*|ia64*)
12441	      # +Z the default
12442	      ;;
12443	    *)
12444	      lt_prog_compiler_pic_CXX='+Z'
12445	      ;;
12446	    esac
12447	    ;;
12448	  *)
12449	    ;;
12450	esac
12451	;;
12452      interix*)
12453	# This is c89, which is MS Visual C++ (no shared libs)
12454	# Anyone wants to do a port?
12455	;;
12456      irix5* | irix6* | nonstopux*)
12457	case $cc_basename in
12458	  CC*)
12459	    lt_prog_compiler_wl_CXX='-Wl,'
12460	    lt_prog_compiler_static_CXX='-non_shared'
12461	    # CC pic flag -KPIC is the default.
12462	    ;;
12463	  *)
12464	    ;;
12465	esac
12466	;;
12467      linux*)
12468	case $cc_basename in
12469	  KCC*)
12470	    # KAI C++ Compiler
12471	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12472	    lt_prog_compiler_pic_CXX='-fPIC'
12473	    ;;
12474	  icpc* | ecpc*)
12475	    # Intel C++
12476	    lt_prog_compiler_wl_CXX='-Wl,'
12477	    lt_prog_compiler_pic_CXX='-KPIC'
12478	    lt_prog_compiler_static_CXX='-static'
12479	    ;;
12480	  pgCC*)
12481	    # Portland Group C++ compiler.
12482	    lt_prog_compiler_wl_CXX='-Wl,'
12483	    lt_prog_compiler_pic_CXX='-fpic'
12484	    lt_prog_compiler_static_CXX='-Bstatic'
12485	    ;;
12486	  cxx*)
12487	    # Compaq C++
12488	    # Make sure the PIC flag is empty.  It appears that all Alpha
12489	    # Linux and Compaq Tru64 Unix objects are PIC.
12490	    lt_prog_compiler_pic_CXX=
12491	    lt_prog_compiler_static_CXX='-non_shared'
12492	    ;;
12493	  *)
12494	    ;;
12495	esac
12496	;;
12497      lynxos*)
12498	;;
12499      m88k*)
12500	;;
12501      mvs*)
12502	case $cc_basename in
12503	  cxx*)
12504	    lt_prog_compiler_pic_CXX='-W c,exportall'
12505	    ;;
12506	  *)
12507	    ;;
12508	esac
12509	;;
12510      netbsd*)
12511	;;
12512      osf3* | osf4* | osf5*)
12513	case $cc_basename in
12514	  KCC*)
12515	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12516	    ;;
12517	  RCC*)
12518	    # Rational C++ 2.4.1
12519	    lt_prog_compiler_pic_CXX='-pic'
12520	    ;;
12521	  cxx*)
12522	    # Digital/Compaq C++
12523	    lt_prog_compiler_wl_CXX='-Wl,'
12524	    # Make sure the PIC flag is empty.  It appears that all Alpha
12525	    # Linux and Compaq Tru64 Unix objects are PIC.
12526	    lt_prog_compiler_pic_CXX=
12527	    lt_prog_compiler_static_CXX='-non_shared'
12528	    ;;
12529	  *)
12530	    ;;
12531	esac
12532	;;
12533      psos*)
12534	;;
12535      solaris*)
12536	case $cc_basename in
12537	  CC*)
12538	    # Sun C++ 4.2, 5.x and Centerline C++
12539	    lt_prog_compiler_pic_CXX='-KPIC'
12540	    lt_prog_compiler_static_CXX='-Bstatic'
12541	    lt_prog_compiler_wl_CXX='-Qoption ld '
12542	    ;;
12543	  gcx*)
12544	    # Green Hills C++ Compiler
12545	    lt_prog_compiler_pic_CXX='-PIC'
12546	    ;;
12547	  *)
12548	    ;;
12549	esac
12550	;;
12551      sunos4*)
12552	case $cc_basename in
12553	  CC*)
12554	    # Sun C++ 4.x
12555	    lt_prog_compiler_pic_CXX='-pic'
12556	    lt_prog_compiler_static_CXX='-Bstatic'
12557	    ;;
12558	  lcc*)
12559	    # Lucid
12560	    lt_prog_compiler_pic_CXX='-pic'
12561	    ;;
12562	  *)
12563	    ;;
12564	esac
12565	;;
12566      tandem*)
12567	case $cc_basename in
12568	  NCC*)
12569	    # NonStop-UX NCC 3.20
12570	    lt_prog_compiler_pic_CXX='-KPIC'
12571	    ;;
12572	  *)
12573	    ;;
12574	esac
12575	;;
12576      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12577	case $cc_basename in
12578	  CC*)
12579	    lt_prog_compiler_wl_CXX='-Wl,'
12580	    lt_prog_compiler_pic_CXX='-KPIC'
12581	    lt_prog_compiler_static_CXX='-Bstatic'
12582	    ;;
12583	esac
12584	;;
12585      vxworks*)
12586	;;
12587      *)
12588	lt_prog_compiler_can_build_shared_CXX=no
12589	;;
12590    esac
12591  fi
12592
12593echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12594echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12595
12596#
12597# Check to make sure the PIC flag actually works.
12598#
12599if test -n "$lt_prog_compiler_pic_CXX"; then
12600
12601echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12602echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12603if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12604  echo $ECHO_N "(cached) $ECHO_C" >&6
12605else
12606  lt_prog_compiler_pic_works_CXX=no
12607  ac_outfile=conftest.$ac_objext
12608   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12609   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12610   # Insert the option either (1) after the last *FLAGS variable, or
12611   # (2) before a word containing "conftest.", or (3) at the end.
12612   # Note that $ac_compile itself does not contain backslashes and begins
12613   # with a dollar sign (not a hyphen), so the echo should work correctly.
12614   # The option is referenced via a variable to avoid confusing sed.
12615   lt_compile=`echo "$ac_compile" | $SED \
12616   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12617   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12618   -e 's:$: $lt_compiler_flag:'`
12619   (eval echo "\"\$as_me:12619: $lt_compile\"" >&5)
12620   (eval "$lt_compile" 2>conftest.err)
12621   ac_status=$?
12622   cat conftest.err >&5
12623   echo "$as_me:12623: \$? = $ac_status" >&5
12624   if (exit $ac_status) && test -s "$ac_outfile"; then
12625     # The compiler can only warn and ignore the option if not recognized
12626     # So say no if there are warnings other than the usual output.
12627     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12628     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12629     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12630       lt_prog_compiler_pic_works_CXX=yes
12631     fi
12632   fi
12633   $rm conftest*
12634
12635fi
12636echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12637echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12638
12639if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12640    case $lt_prog_compiler_pic_CXX in
12641     "" | " "*) ;;
12642     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12643     esac
12644else
12645    lt_prog_compiler_pic_CXX=
12646     lt_prog_compiler_can_build_shared_CXX=no
12647fi
12648
12649fi
12650case $host_os in
12651  # For platforms which do not support PIC, -DPIC is meaningless:
12652  *djgpp*)
12653    lt_prog_compiler_pic_CXX=
12654    ;;
12655  *)
12656    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12657    ;;
12658esac
12659
12660#
12661# Check to make sure the static flag actually works.
12662#
12663wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12664echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12665echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12666if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12667  echo $ECHO_N "(cached) $ECHO_C" >&6
12668else
12669  lt_prog_compiler_static_works_CXX=no
12670   save_LDFLAGS="$LDFLAGS"
12671   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12672   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12673   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12674     # The linker can only warn and ignore the option if not recognized
12675     # So say no if there are warnings
12676     if test -s conftest.err; then
12677       # Append any errors to the config.log.
12678       cat conftest.err 1>&5
12679       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12680       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12681       if diff conftest.exp conftest.er2 >/dev/null; then
12682         lt_prog_compiler_static_works_CXX=yes
12683       fi
12684     else
12685       lt_prog_compiler_static_works_CXX=yes
12686     fi
12687   fi
12688   $rm conftest*
12689   LDFLAGS="$save_LDFLAGS"
12690
12691fi
12692echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12693echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12694
12695if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12696    :
12697else
12698    lt_prog_compiler_static_CXX=
12699fi
12700
12701
12702echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12703echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12704if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12705  echo $ECHO_N "(cached) $ECHO_C" >&6
12706else
12707  lt_cv_prog_compiler_c_o_CXX=no
12708   $rm -r conftest 2>/dev/null
12709   mkdir conftest
12710   cd conftest
12711   mkdir out
12712   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
12714   lt_compiler_flag="-o out/conftest2.$ac_objext"
12715   # Insert the option either (1) after the last *FLAGS variable, or
12716   # (2) before a word containing "conftest.", or (3) at the end.
12717   # Note that $ac_compile itself does not contain backslashes and begins
12718   # with a dollar sign (not a hyphen), so the echo should work correctly.
12719   lt_compile=`echo "$ac_compile" | $SED \
12720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722   -e 's:$: $lt_compiler_flag:'`
12723   (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
12724   (eval "$lt_compile" 2>out/conftest.err)
12725   ac_status=$?
12726   cat out/conftest.err >&5
12727   echo "$as_me:12727: \$? = $ac_status" >&5
12728   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729   then
12730     # The compiler can only warn and ignore the option if not recognized
12731     # So say no if there are warnings
12732     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12733     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12734     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12735       lt_cv_prog_compiler_c_o_CXX=yes
12736     fi
12737   fi
12738   chmod u+w . 2>&5
12739   $rm conftest*
12740   # SGI C++ compiler will create directory out/ii_files/ for
12741   # template instantiation
12742   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12743   $rm out/* && rmdir out
12744   cd ..
12745   rmdir conftest
12746   $rm conftest*
12747
12748fi
12749echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12750echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12751
12752
12753hard_links="nottested"
12754if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12755  # do not overwrite the value of need_locks provided by the user
12756  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12757echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12758  hard_links=yes
12759  $rm conftest*
12760  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761  touch conftest.a
12762  ln conftest.a conftest.b 2>&5 || hard_links=no
12763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764  echo "$as_me:$LINENO: result: $hard_links" >&5
12765echo "${ECHO_T}$hard_links" >&6
12766  if test "$hard_links" = no; then
12767    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12768echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12769    need_locks=warn
12770  fi
12771else
12772  need_locks=no
12773fi
12774
12775echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12776echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12777
12778  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12779  case $host_os in
12780  aix4* | aix5*)
12781    # If we're using GNU nm, then we don't want the "-C" option.
12782    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12783    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12784      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'
12785    else
12786      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'
12787    fi
12788    ;;
12789  pw32*)
12790    export_symbols_cmds_CXX="$ltdll_cmds"
12791  ;;
12792  cygwin* | mingw*)
12793    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12794  ;;
12795  *)
12796    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12797  ;;
12798  esac
12799
12800echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12801echo "${ECHO_T}$ld_shlibs_CXX" >&6
12802test "$ld_shlibs_CXX" = no && can_build_shared=no
12803
12804#
12805# Do we need to explicitly link libc?
12806#
12807case "x$archive_cmds_need_lc_CXX" in
12808x|xyes)
12809  # Assume -lc should be added
12810  archive_cmds_need_lc_CXX=yes
12811
12812  if test "$enable_shared" = yes && test "$GCC" = yes; then
12813    case $archive_cmds_CXX in
12814    *'~'*)
12815      # FIXME: we may have to deal with multi-command sequences.
12816      ;;
12817    '$CC '*)
12818      # Test whether the compiler implicitly links with -lc since on some
12819      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12820      # to ld, don't add -lc before -lgcc.
12821      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12822echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12823      $rm conftest*
12824      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12825
12826      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827  (eval $ac_compile) 2>&5
12828  ac_status=$?
12829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830  (exit $ac_status); } 2>conftest.err; then
12831        soname=conftest
12832        lib=conftest
12833        libobjs=conftest.$ac_objext
12834        deplibs=
12835        wl=$lt_prog_compiler_wl_CXX
12836	pic_flag=$lt_prog_compiler_pic_CXX
12837        compiler_flags=-v
12838        linker_flags=-v
12839        verstring=
12840        output_objdir=.
12841        libname=conftest
12842        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12843        allow_undefined_flag_CXX=
12844        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12845  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12846  ac_status=$?
12847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848  (exit $ac_status); }
12849        then
12850	  archive_cmds_need_lc_CXX=no
12851        else
12852	  archive_cmds_need_lc_CXX=yes
12853        fi
12854        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12855      else
12856        cat conftest.err 1>&5
12857      fi
12858      $rm conftest*
12859      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12860echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12861      ;;
12862    esac
12863  fi
12864  ;;
12865esac
12866
12867echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12868echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12869library_names_spec=
12870libname_spec='lib$name'
12871soname_spec=
12872shrext_cmds=".so"
12873postinstall_cmds=
12874postuninstall_cmds=
12875finish_cmds=
12876finish_eval=
12877shlibpath_var=
12878shlibpath_overrides_runpath=unknown
12879version_type=none
12880dynamic_linker="$host_os ld.so"
12881sys_lib_dlsearch_path_spec="/lib /usr/lib"
12882if test "$GCC" = yes; then
12883  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12884  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12885    # if the path contains ";" then we assume it to be the separator
12886    # otherwise default to the standard path separator (i.e. ":") - it is
12887    # assumed that no part of a normal pathname contains ";" but that should
12888    # okay in the real world where ";" in dirpaths is itself problematic.
12889    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12890  else
12891    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12892  fi
12893else
12894  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12895fi
12896need_lib_prefix=unknown
12897hardcode_into_libs=no
12898
12899# when you set need_version to no, make sure it does not cause -set_version
12900# flags to be left without arguments
12901need_version=unknown
12902
12903case $host_os in
12904aix3*)
12905  version_type=linux
12906  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12907  shlibpath_var=LIBPATH
12908
12909  # AIX 3 has no versioning support, so we append a major version to the name.
12910  soname_spec='${libname}${release}${shared_ext}$major'
12911  ;;
12912
12913aix4* | aix5*)
12914  version_type=linux
12915  need_lib_prefix=no
12916  need_version=no
12917  hardcode_into_libs=yes
12918  if test "$host_cpu" = ia64; then
12919    # AIX 5 supports IA64
12920    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12921    shlibpath_var=LD_LIBRARY_PATH
12922  else
12923    # With GCC up to 2.95.x, collect2 would create an import file
12924    # for dependence libraries.  The import file would start with
12925    # the line `#! .'.  This would cause the generated library to
12926    # depend on `.', always an invalid library.  This was fixed in
12927    # development snapshots of GCC prior to 3.0.
12928    case $host_os in
12929      aix4 | aix4.[01] | aix4.[01].*)
12930      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12931	   echo ' yes '
12932	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12933	:
12934      else
12935	can_build_shared=no
12936      fi
12937      ;;
12938    esac
12939    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12940    # soname into executable. Probably we can add versioning support to
12941    # collect2, so additional links can be useful in future.
12942    if test "$aix_use_runtimelinking" = yes; then
12943      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12944      # instead of lib<name>.a to let people know that these are not
12945      # typical AIX shared libraries.
12946      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947    else
12948      # We preserve .a as extension for shared libraries through AIX4.2
12949      # and later when we are not doing run time linking.
12950      library_names_spec='${libname}${release}.a $libname.a'
12951      soname_spec='${libname}${release}${shared_ext}$major'
12952    fi
12953    shlibpath_var=LIBPATH
12954  fi
12955  ;;
12956
12957amigaos*)
12958  library_names_spec='$libname.ixlibrary $libname.a'
12959  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12960  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'
12961  ;;
12962
12963beos*)
12964  library_names_spec='${libname}${shared_ext}'
12965  dynamic_linker="$host_os ld.so"
12966  shlibpath_var=LIBRARY_PATH
12967  ;;
12968
12969bsdi[45]*)
12970  version_type=linux
12971  need_version=no
12972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973  soname_spec='${libname}${release}${shared_ext}$major'
12974  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12975  shlibpath_var=LD_LIBRARY_PATH
12976  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12977  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12978  # the default ld.so.conf also contains /usr/contrib/lib and
12979  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12980  # libtool to hard-code these into programs
12981  ;;
12982
12983cygwin* | mingw* | pw32*)
12984  version_type=windows
12985  shrext_cmds=".dll"
12986  need_version=no
12987  need_lib_prefix=no
12988
12989  case $GCC,$host_os in
12990  yes,cygwin* | yes,mingw* | yes,pw32*)
12991    library_names_spec='$libname.dll.a'
12992    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12993    postinstall_cmds='base_file=`basename \${file}`~
12994      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12995      dldir=$destdir/`dirname \$dlpath`~
12996      test -d \$dldir || mkdir -p \$dldir~
12997      $install_prog $dir/$dlname \$dldir/$dlname~
12998      chmod a+x \$dldir/$dlname'
12999    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13000      dlpath=$dir/\$dldll~
13001       $rm \$dlpath'
13002    shlibpath_overrides_runpath=yes
13003
13004    case $host_os in
13005    cygwin*)
13006      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13007      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13008      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13009      ;;
13010    mingw*)
13011      # MinGW DLLs use traditional 'lib' prefix
13012      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13013      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13014      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13015        # It is most probably a Windows format PATH printed by
13016        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13017        # path with ; separators, and with drive letters. We can handle the
13018        # drive letters (cygwin fileutils understands them), so leave them,
13019        # especially as we might pass files found there to a mingw objdump,
13020        # which wouldn't understand a cygwinified path. Ahh.
13021        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13022      else
13023        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13024      fi
13025      ;;
13026    pw32*)
13027      # pw32 DLLs use 'pw' prefix rather than 'lib'
13028      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13029      ;;
13030    esac
13031    ;;
13032
13033  *)
13034    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13035    ;;
13036  esac
13037  dynamic_linker='Win32 ld.exe'
13038  # FIXME: first we should search . and the directory the executable is in
13039  shlibpath_var=PATH
13040  ;;
13041
13042darwin* | rhapsody*)
13043  dynamic_linker="$host_os dyld"
13044  version_type=darwin
13045  need_lib_prefix=no
13046  need_version=no
13047  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13048  soname_spec='${libname}${release}${major}$shared_ext'
13049  shlibpath_overrides_runpath=yes
13050  shlibpath_var=DYLD_LIBRARY_PATH
13051  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13052  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13053  if test "$GCC" = yes; then
13054    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"`
13055  else
13056    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13057  fi
13058  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13059  ;;
13060
13061dgux*)
13062  version_type=linux
13063  need_lib_prefix=no
13064  need_version=no
13065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13066  soname_spec='${libname}${release}${shared_ext}$major'
13067  shlibpath_var=LD_LIBRARY_PATH
13068  ;;
13069
13070freebsd1*)
13071  dynamic_linker=no
13072  ;;
13073
13074kfreebsd*-gnu)
13075  version_type=linux
13076  need_lib_prefix=no
13077  need_version=no
13078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13079  soname_spec='${libname}${release}${shared_ext}$major'
13080  shlibpath_var=LD_LIBRARY_PATH
13081  shlibpath_overrides_runpath=no
13082  hardcode_into_libs=yes
13083  dynamic_linker='GNU ld.so'
13084  ;;
13085
13086freebsd* | dragonfly*)
13087  # DragonFly does not have aout.  When/if they implement a new
13088  # versioning mechanism, adjust this.
13089  if test -x /usr/bin/objformat; then
13090    objformat=`/usr/bin/objformat`
13091  else
13092    case $host_os in
13093    freebsd[123]*) objformat=aout ;;
13094    *) objformat=elf ;;
13095    esac
13096  fi
13097  version_type=freebsd-$objformat
13098  case $version_type in
13099    freebsd-elf*)
13100      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13101      need_version=no
13102      need_lib_prefix=no
13103      ;;
13104    freebsd-*)
13105      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13106      need_version=yes
13107      ;;
13108  esac
13109  shlibpath_var=LD_LIBRARY_PATH
13110  case $host_os in
13111  freebsd2*)
13112    shlibpath_overrides_runpath=yes
13113    ;;
13114  freebsd3.[01]* | freebsdelf3.[01]*)
13115    shlibpath_overrides_runpath=yes
13116    hardcode_into_libs=yes
13117    ;;
13118  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13119  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13120    shlibpath_overrides_runpath=no
13121    hardcode_into_libs=yes
13122    ;;
13123  freebsd*) # from 4.6 on
13124    shlibpath_overrides_runpath=yes
13125    hardcode_into_libs=yes
13126    ;;
13127  esac
13128  ;;
13129
13130gnu*)
13131  version_type=linux
13132  need_lib_prefix=no
13133  need_version=no
13134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13135  soname_spec='${libname}${release}${shared_ext}$major'
13136  shlibpath_var=LD_LIBRARY_PATH
13137  hardcode_into_libs=yes
13138  ;;
13139
13140hpux9* | hpux10* | hpux11*)
13141  # Give a soname corresponding to the major version so that dld.sl refuses to
13142  # link against other versions.
13143  version_type=sunos
13144  need_lib_prefix=no
13145  need_version=no
13146  case $host_cpu in
13147  ia64*)
13148    shrext_cmds='.so'
13149    hardcode_into_libs=yes
13150    dynamic_linker="$host_os dld.so"
13151    shlibpath_var=LD_LIBRARY_PATH
13152    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154    soname_spec='${libname}${release}${shared_ext}$major'
13155    if test "X$HPUX_IA64_MODE" = X32; then
13156      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13157    else
13158      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13159    fi
13160    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13161    ;;
13162   hppa*64*)
13163     shrext_cmds='.sl'
13164     hardcode_into_libs=yes
13165     dynamic_linker="$host_os dld.sl"
13166     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13167     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169     soname_spec='${libname}${release}${shared_ext}$major'
13170     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13172     ;;
13173   *)
13174    shrext_cmds='.sl'
13175    dynamic_linker="$host_os dld.sl"
13176    shlibpath_var=SHLIB_PATH
13177    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179    soname_spec='${libname}${release}${shared_ext}$major'
13180    ;;
13181  esac
13182  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13183  postinstall_cmds='chmod 555 $lib'
13184  ;;
13185
13186interix3*)
13187  version_type=linux
13188  need_lib_prefix=no
13189  need_version=no
13190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13191  soname_spec='${libname}${release}${shared_ext}$major'
13192  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13193  shlibpath_var=LD_LIBRARY_PATH
13194  shlibpath_overrides_runpath=no
13195  hardcode_into_libs=yes
13196  ;;
13197
13198irix5* | irix6* | nonstopux*)
13199  case $host_os in
13200    nonstopux*) version_type=nonstopux ;;
13201    *)
13202	if test "$lt_cv_prog_gnu_ld" = yes; then
13203		version_type=linux
13204	else
13205		version_type=irix
13206	fi ;;
13207  esac
13208  need_lib_prefix=no
13209  need_version=no
13210  soname_spec='${libname}${release}${shared_ext}$major'
13211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13212  case $host_os in
13213  irix5* | nonstopux*)
13214    libsuff= shlibsuff=
13215    ;;
13216  *)
13217    case $LD in # libtool.m4 will add one of these switches to LD
13218    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13219      libsuff= shlibsuff= libmagic=32-bit;;
13220    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13221      libsuff=32 shlibsuff=N32 libmagic=N32;;
13222    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13223      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13224    *) libsuff= shlibsuff= libmagic=never-match;;
13225    esac
13226    ;;
13227  esac
13228  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13229  shlibpath_overrides_runpath=no
13230  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13231  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13232  hardcode_into_libs=yes
13233  ;;
13234
13235# No shared lib support for Linux oldld, aout, or coff.
13236linux*oldld* | linux*aout* | linux*coff*)
13237  dynamic_linker=no
13238  ;;
13239
13240# This must be Linux ELF.
13241linux*)
13242  version_type=linux
13243  need_lib_prefix=no
13244  need_version=no
13245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246  soname_spec='${libname}${release}${shared_ext}$major'
13247  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13248  shlibpath_var=LD_LIBRARY_PATH
13249  shlibpath_overrides_runpath=no
13250  # This implies no fast_install, which is unacceptable.
13251  # Some rework will be needed to allow for fast_install
13252  # before this can be enabled.
13253  hardcode_into_libs=yes
13254
13255  # Append ld.so.conf contents to the search path
13256  if test -f /etc/ld.so.conf; then
13257    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13258    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13259  fi
13260
13261  # We used to test for /lib/ld.so.1 and disable shared libraries on
13262  # powerpc, because MkLinux only supported shared libraries with the
13263  # GNU dynamic linker.  Since this was broken with cross compilers,
13264  # most powerpc-linux boxes support dynamic linking these days and
13265  # people can always --disable-shared, the test was removed, and we
13266  # assume the GNU/Linux dynamic linker is in use.
13267  dynamic_linker='GNU/Linux ld.so'
13268  ;;
13269
13270knetbsd*-gnu)
13271  version_type=linux
13272  need_lib_prefix=no
13273  need_version=no
13274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13275  soname_spec='${libname}${release}${shared_ext}$major'
13276  shlibpath_var=LD_LIBRARY_PATH
13277  shlibpath_overrides_runpath=no
13278  hardcode_into_libs=yes
13279  dynamic_linker='GNU ld.so'
13280  ;;
13281
13282netbsd*)
13283  version_type=sunos
13284  need_lib_prefix=no
13285  need_version=no
13286  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13287    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13288    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13289    dynamic_linker='NetBSD (a.out) ld.so'
13290  else
13291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13292    soname_spec='${libname}${release}${shared_ext}$major'
13293    dynamic_linker='NetBSD ld.elf_so'
13294  fi
13295  shlibpath_var=LD_LIBRARY_PATH
13296  shlibpath_overrides_runpath=yes
13297  hardcode_into_libs=yes
13298  ;;
13299
13300newsos6)
13301  version_type=linux
13302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303  shlibpath_var=LD_LIBRARY_PATH
13304  shlibpath_overrides_runpath=yes
13305  ;;
13306
13307nto-qnx*)
13308  version_type=linux
13309  need_lib_prefix=no
13310  need_version=no
13311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312  soname_spec='${libname}${release}${shared_ext}$major'
13313  shlibpath_var=LD_LIBRARY_PATH
13314  shlibpath_overrides_runpath=yes
13315  ;;
13316
13317openbsd*)
13318  version_type=sunos
13319  sys_lib_dlsearch_path_spec="/usr/lib"
13320  need_lib_prefix=no
13321  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13322  case $host_os in
13323    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13324    *)                         need_version=no  ;;
13325  esac
13326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13327  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13328  shlibpath_var=LD_LIBRARY_PATH
13329  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13330    case $host_os in
13331      openbsd2.[89] | openbsd2.[89].*)
13332	shlibpath_overrides_runpath=no
13333	;;
13334      *)
13335	shlibpath_overrides_runpath=yes
13336	;;
13337      esac
13338  else
13339    shlibpath_overrides_runpath=yes
13340  fi
13341  ;;
13342
13343os2*)
13344  libname_spec='$name'
13345  shrext_cmds=".dll"
13346  need_lib_prefix=no
13347  library_names_spec='$libname${shared_ext} $libname.a'
13348  dynamic_linker='OS/2 ld.exe'
13349  shlibpath_var=LIBPATH
13350  ;;
13351
13352osf3* | osf4* | osf5*)
13353  version_type=osf
13354  need_lib_prefix=no
13355  need_version=no
13356  soname_spec='${libname}${release}${shared_ext}$major'
13357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13358  shlibpath_var=LD_LIBRARY_PATH
13359  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13360  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13361  ;;
13362
13363solaris*)
13364  version_type=linux
13365  need_lib_prefix=no
13366  need_version=no
13367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368  soname_spec='${libname}${release}${shared_ext}$major'
13369  shlibpath_var=LD_LIBRARY_PATH
13370  shlibpath_overrides_runpath=yes
13371  hardcode_into_libs=yes
13372  # ldd complains unless libraries are executable
13373  postinstall_cmds='chmod +x $lib'
13374  ;;
13375
13376sunos4*)
13377  version_type=sunos
13378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13379  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13380  shlibpath_var=LD_LIBRARY_PATH
13381  shlibpath_overrides_runpath=yes
13382  if test "$with_gnu_ld" = yes; then
13383    need_lib_prefix=no
13384  fi
13385  need_version=yes
13386  ;;
13387
13388sysv4 | sysv4.3*)
13389  version_type=linux
13390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13391  soname_spec='${libname}${release}${shared_ext}$major'
13392  shlibpath_var=LD_LIBRARY_PATH
13393  case $host_vendor in
13394    sni)
13395      shlibpath_overrides_runpath=no
13396      need_lib_prefix=no
13397      export_dynamic_flag_spec='${wl}-Blargedynsym'
13398      runpath_var=LD_RUN_PATH
13399      ;;
13400    siemens)
13401      need_lib_prefix=no
13402      ;;
13403    motorola)
13404      need_lib_prefix=no
13405      need_version=no
13406      shlibpath_overrides_runpath=no
13407      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13408      ;;
13409  esac
13410  ;;
13411
13412sysv4*MP*)
13413  if test -d /usr/nec ;then
13414    version_type=linux
13415    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13416    soname_spec='$libname${shared_ext}.$major'
13417    shlibpath_var=LD_LIBRARY_PATH
13418  fi
13419  ;;
13420
13421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13422  version_type=freebsd-elf
13423  need_lib_prefix=no
13424  need_version=no
13425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13426  soname_spec='${libname}${release}${shared_ext}$major'
13427  shlibpath_var=LD_LIBRARY_PATH
13428  hardcode_into_libs=yes
13429  if test "$with_gnu_ld" = yes; then
13430    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13431    shlibpath_overrides_runpath=no
13432  else
13433    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13434    shlibpath_overrides_runpath=yes
13435    case $host_os in
13436      sco3.2v5*)
13437        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13438	;;
13439    esac
13440  fi
13441  sys_lib_dlsearch_path_spec='/usr/lib'
13442  ;;
13443
13444uts4*)
13445  version_type=linux
13446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447  soname_spec='${libname}${release}${shared_ext}$major'
13448  shlibpath_var=LD_LIBRARY_PATH
13449  ;;
13450
13451*)
13452  dynamic_linker=no
13453  ;;
13454esac
13455echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13456echo "${ECHO_T}$dynamic_linker" >&6
13457test "$dynamic_linker" = no && can_build_shared=no
13458
13459variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13460if test "$GCC" = yes; then
13461  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13462fi
13463
13464echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13465echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13466hardcode_action_CXX=
13467if test -n "$hardcode_libdir_flag_spec_CXX" || \
13468   test -n "$runpath_var_CXX" || \
13469   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13470
13471  # We can hardcode non-existant directories.
13472  if test "$hardcode_direct_CXX" != no &&
13473     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13474     # have to relink, otherwise we might link with an installed library
13475     # when we should be linking with a yet-to-be-installed one
13476     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13477     test "$hardcode_minus_L_CXX" != no; then
13478    # Linking always hardcodes the temporary library directory.
13479    hardcode_action_CXX=relink
13480  else
13481    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13482    hardcode_action_CXX=immediate
13483  fi
13484else
13485  # We cannot hardcode anything, or else we can only hardcode existing
13486  # directories.
13487  hardcode_action_CXX=unsupported
13488fi
13489echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13490echo "${ECHO_T}$hardcode_action_CXX" >&6
13491
13492if test "$hardcode_action_CXX" = relink; then
13493  # Fast installation is not supported
13494  enable_fast_install=no
13495elif test "$shlibpath_overrides_runpath" = yes ||
13496     test "$enable_shared" = no; then
13497  # Fast installation is not necessary
13498  enable_fast_install=needless
13499fi
13500
13501
13502# The else clause should only fire when bootstrapping the
13503# libtool distribution, otherwise you forgot to ship ltmain.sh
13504# with your package, and you will get complaints that there are
13505# no rules to generate ltmain.sh.
13506if test -f "$ltmain"; then
13507  # See if we are running on zsh, and set the options which allow our commands through
13508  # without removal of \ escapes.
13509  if test -n "${ZSH_VERSION+set}" ; then
13510    setopt NO_GLOB_SUBST
13511  fi
13512  # Now quote all the things that may contain metacharacters while being
13513  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13514  # variables and quote the copies for generation of the libtool script.
13515  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13516    SED SHELL STRIP \
13517    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13518    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13519    deplibs_check_method reload_flag reload_cmds need_locks \
13520    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13521    lt_cv_sys_global_symbol_to_c_name_address \
13522    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13523    old_postinstall_cmds old_postuninstall_cmds \
13524    compiler_CXX \
13525    CC_CXX \
13526    LD_CXX \
13527    lt_prog_compiler_wl_CXX \
13528    lt_prog_compiler_pic_CXX \
13529    lt_prog_compiler_static_CXX \
13530    lt_prog_compiler_no_builtin_flag_CXX \
13531    export_dynamic_flag_spec_CXX \
13532    thread_safe_flag_spec_CXX \
13533    whole_archive_flag_spec_CXX \
13534    enable_shared_with_static_runtimes_CXX \
13535    old_archive_cmds_CXX \
13536    old_archive_from_new_cmds_CXX \
13537    predep_objects_CXX \
13538    postdep_objects_CXX \
13539    predeps_CXX \
13540    postdeps_CXX \
13541    compiler_lib_search_path_CXX \
13542    archive_cmds_CXX \
13543    archive_expsym_cmds_CXX \
13544    postinstall_cmds_CXX \
13545    postuninstall_cmds_CXX \
13546    old_archive_from_expsyms_cmds_CXX \
13547    allow_undefined_flag_CXX \
13548    no_undefined_flag_CXX \
13549    export_symbols_cmds_CXX \
13550    hardcode_libdir_flag_spec_CXX \
13551    hardcode_libdir_flag_spec_ld_CXX \
13552    hardcode_libdir_separator_CXX \
13553    hardcode_automatic_CXX \
13554    module_cmds_CXX \
13555    module_expsym_cmds_CXX \
13556    lt_cv_prog_compiler_c_o_CXX \
13557    exclude_expsyms_CXX \
13558    include_expsyms_CXX; do
13559
13560    case $var in
13561    old_archive_cmds_CXX | \
13562    old_archive_from_new_cmds_CXX | \
13563    archive_cmds_CXX | \
13564    archive_expsym_cmds_CXX | \
13565    module_cmds_CXX | \
13566    module_expsym_cmds_CXX | \
13567    old_archive_from_expsyms_cmds_CXX | \
13568    export_symbols_cmds_CXX | \
13569    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13570    postinstall_cmds | postuninstall_cmds | \
13571    old_postinstall_cmds | old_postuninstall_cmds | \
13572    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13573      # Double-quote double-evaled strings.
13574      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13575      ;;
13576    *)
13577      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13578      ;;
13579    esac
13580  done
13581
13582  case $lt_echo in
13583  *'\$0 --fallback-echo"')
13584    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13585    ;;
13586  esac
13587
13588cfgfile="$ofile"
13589
13590  cat <<__EOF__ >> "$cfgfile"
13591# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13592
13593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13594
13595# Shell to use when invoking shell scripts.
13596SHELL=$lt_SHELL
13597
13598# Whether or not to build shared libraries.
13599build_libtool_libs=$enable_shared
13600
13601# Whether or not to build static libraries.
13602build_old_libs=$enable_static
13603
13604# Whether or not to add -lc for building shared libraries.
13605build_libtool_need_lc=$archive_cmds_need_lc_CXX
13606
13607# Whether or not to disallow shared libs when runtime libs are static
13608allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13609
13610# Whether or not to optimize for fast installation.
13611fast_install=$enable_fast_install
13612
13613# The host system.
13614host_alias=$host_alias
13615host=$host
13616host_os=$host_os
13617
13618# The build system.
13619build_alias=$build_alias
13620build=$build
13621build_os=$build_os
13622
13623# An echo program that does not interpret backslashes.
13624echo=$lt_echo
13625
13626# The archiver.
13627AR=$lt_AR
13628AR_FLAGS=$lt_AR_FLAGS
13629
13630# A C compiler.
13631LTCC=$lt_LTCC
13632
13633# LTCC compiler flags.
13634LTCFLAGS=$lt_LTCFLAGS
13635
13636# A language-specific compiler.
13637CC=$lt_compiler_CXX
13638
13639# Is the compiler the GNU C compiler?
13640with_gcc=$GCC_CXX
13641
13642# An ERE matcher.
13643EGREP=$lt_EGREP
13644
13645# The linker used to build libraries.
13646LD=$lt_LD_CXX
13647
13648# Whether we need hard or soft links.
13649LN_S=$lt_LN_S
13650
13651# A BSD-compatible nm program.
13652NM=$lt_NM
13653
13654# A symbol stripping program
13655STRIP=$lt_STRIP
13656
13657# Used to examine libraries when file_magic_cmd begins "file"
13658MAGIC_CMD=$MAGIC_CMD
13659
13660# Used on cygwin: DLL creation program.
13661DLLTOOL="$DLLTOOL"
13662
13663# Used on cygwin: object dumper.
13664OBJDUMP="$OBJDUMP"
13665
13666# Used on cygwin: assembler.
13667AS="$AS"
13668
13669# The name of the directory that contains temporary libtool files.
13670objdir=$objdir
13671
13672# How to create reloadable object files.
13673reload_flag=$lt_reload_flag
13674reload_cmds=$lt_reload_cmds
13675
13676# How to pass a linker flag through the compiler.
13677wl=$lt_lt_prog_compiler_wl_CXX
13678
13679# Object file suffix (normally "o").
13680objext="$ac_objext"
13681
13682# Old archive suffix (normally "a").
13683libext="$libext"
13684
13685# Shared library suffix (normally ".so").
13686shrext_cmds='$shrext_cmds'
13687
13688# Executable file suffix (normally "").
13689exeext="$exeext"
13690
13691# Additional compiler flags for building library objects.
13692pic_flag=$lt_lt_prog_compiler_pic_CXX
13693pic_mode=$pic_mode
13694
13695# What is the maximum length of a command?
13696max_cmd_len=$lt_cv_sys_max_cmd_len
13697
13698# Does compiler simultaneously support -c and -o options?
13699compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13700
13701# Must we lock files when doing compilation?
13702need_locks=$lt_need_locks
13703
13704# Do we need the lib prefix for modules?
13705need_lib_prefix=$need_lib_prefix
13706
13707# Do we need a version for libraries?
13708need_version=$need_version
13709
13710# Whether dlopen is supported.
13711dlopen_support=$enable_dlopen
13712
13713# Whether dlopen of programs is supported.
13714dlopen_self=$enable_dlopen_self
13715
13716# Whether dlopen of statically linked programs is supported.
13717dlopen_self_static=$enable_dlopen_self_static
13718
13719# Compiler flag to prevent dynamic linking.
13720link_static_flag=$lt_lt_prog_compiler_static_CXX
13721
13722# Compiler flag to turn off builtin functions.
13723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13724
13725# Compiler flag to allow reflexive dlopens.
13726export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13727
13728# Compiler flag to generate shared objects directly from archives.
13729whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13730
13731# Compiler flag to generate thread-safe objects.
13732thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13733
13734# Library versioning type.
13735version_type=$version_type
13736
13737# Format of library name prefix.
13738libname_spec=$lt_libname_spec
13739
13740# List of archive names.  First name is the real one, the rest are links.
13741# The last name is the one that the linker finds with -lNAME.
13742library_names_spec=$lt_library_names_spec
13743
13744# The coded name of the library, if different from the real name.
13745soname_spec=$lt_soname_spec
13746
13747# Commands used to build and install an old-style archive.
13748RANLIB=$lt_RANLIB
13749old_archive_cmds=$lt_old_archive_cmds_CXX
13750old_postinstall_cmds=$lt_old_postinstall_cmds
13751old_postuninstall_cmds=$lt_old_postuninstall_cmds
13752
13753# Create an old-style archive from a shared archive.
13754old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13755
13756# Create a temporary old-style archive to link instead of a shared archive.
13757old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13758
13759# Commands used to build and install a shared archive.
13760archive_cmds=$lt_archive_cmds_CXX
13761archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13762postinstall_cmds=$lt_postinstall_cmds
13763postuninstall_cmds=$lt_postuninstall_cmds
13764
13765# Commands used to build a loadable module (assumed same as above if empty)
13766module_cmds=$lt_module_cmds_CXX
13767module_expsym_cmds=$lt_module_expsym_cmds_CXX
13768
13769# Commands to strip libraries.
13770old_striplib=$lt_old_striplib
13771striplib=$lt_striplib
13772
13773# Dependencies to place before the objects being linked to create a
13774# shared library.
13775predep_objects=$lt_predep_objects_CXX
13776
13777# Dependencies to place after the objects being linked to create a
13778# shared library.
13779postdep_objects=$lt_postdep_objects_CXX
13780
13781# Dependencies to place before the objects being linked to create a
13782# shared library.
13783predeps=$lt_predeps_CXX
13784
13785# Dependencies to place after the objects being linked to create a
13786# shared library.
13787postdeps=$lt_postdeps_CXX
13788
13789# The library search path used internally by the compiler when linking
13790# a shared library.
13791compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13792
13793# Method to check whether dependent libraries are shared objects.
13794deplibs_check_method=$lt_deplibs_check_method
13795
13796# Command to use when deplibs_check_method == file_magic.
13797file_magic_cmd=$lt_file_magic_cmd
13798
13799# Flag that allows shared libraries with undefined symbols to be built.
13800allow_undefined_flag=$lt_allow_undefined_flag_CXX
13801
13802# Flag that forces no undefined symbols.
13803no_undefined_flag=$lt_no_undefined_flag_CXX
13804
13805# Commands used to finish a libtool library installation in a directory.
13806finish_cmds=$lt_finish_cmds
13807
13808# Same as above, but a single script fragment to be evaled but not shown.
13809finish_eval=$lt_finish_eval
13810
13811# Take the output of nm and produce a listing of raw symbols and C names.
13812global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13813
13814# Transform the output of nm in a proper C declaration
13815global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13816
13817# Transform the output of nm in a C name address pair
13818global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13819
13820# This is the shared library runtime path variable.
13821runpath_var=$runpath_var
13822
13823# This is the shared library path variable.
13824shlibpath_var=$shlibpath_var
13825
13826# Is shlibpath searched before the hard-coded library search path?
13827shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13828
13829# How to hardcode a shared library path into an executable.
13830hardcode_action=$hardcode_action_CXX
13831
13832# Whether we should hardcode library paths into libraries.
13833hardcode_into_libs=$hardcode_into_libs
13834
13835# Flag to hardcode \$libdir into a binary during linking.
13836# This must work even if \$libdir does not exist.
13837hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13838
13839# If ld is used when linking, flag to hardcode \$libdir into
13840# a binary during linking. This must work even if \$libdir does
13841# not exist.
13842hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13843
13844# Whether we need a single -rpath flag with a separated argument.
13845hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13846
13847# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13848# resulting binary.
13849hardcode_direct=$hardcode_direct_CXX
13850
13851# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13852# resulting binary.
13853hardcode_minus_L=$hardcode_minus_L_CXX
13854
13855# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13856# the resulting binary.
13857hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13858
13859# Set to yes if building a shared library automatically hardcodes DIR into the library
13860# and all subsequent libraries and executables linked against it.
13861hardcode_automatic=$hardcode_automatic_CXX
13862
13863# Variables whose values should be saved in libtool wrapper scripts and
13864# restored at relink time.
13865variables_saved_for_relink="$variables_saved_for_relink"
13866
13867# Whether libtool must link a program against all its dependency libraries.
13868link_all_deplibs=$link_all_deplibs_CXX
13869
13870# Compile-time system search path for libraries
13871sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13872
13873# Run-time system search path for libraries
13874sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13875
13876# Fix the shell variable \$srcfile for the compiler.
13877fix_srcfile_path="$fix_srcfile_path_CXX"
13878
13879# Set to yes if exported symbols are required.
13880always_export_symbols=$always_export_symbols_CXX
13881
13882# The commands to list exported symbols.
13883export_symbols_cmds=$lt_export_symbols_cmds_CXX
13884
13885# The commands to extract the exported symbol list from a shared archive.
13886extract_expsyms_cmds=$lt_extract_expsyms_cmds
13887
13888# Symbols that should not be listed in the preloaded symbols.
13889exclude_expsyms=$lt_exclude_expsyms_CXX
13890
13891# Symbols that must always be exported.
13892include_expsyms=$lt_include_expsyms_CXX
13893
13894# ### END LIBTOOL TAG CONFIG: $tagname
13895
13896__EOF__
13897
13898
13899else
13900  # If there is no Makefile yet, we rely on a make rule to execute
13901  # `config.status --recheck' to rerun these tests and create the
13902  # libtool script then.
13903  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13904  if test -f "$ltmain_in"; then
13905    test -f Makefile && make "$ltmain"
13906  fi
13907fi
13908
13909
13910ac_ext=c
13911ac_cpp='$CPP $CPPFLAGS'
13912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914ac_compiler_gnu=$ac_cv_c_compiler_gnu
13915
13916CC=$lt_save_CC
13917LDCXX=$LD
13918LD=$lt_save_LD
13919GCC=$lt_save_GCC
13920with_gnu_ldcxx=$with_gnu_ld
13921with_gnu_ld=$lt_save_with_gnu_ld
13922lt_cv_path_LDCXX=$lt_cv_path_LD
13923lt_cv_path_LD=$lt_save_path_LD
13924lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13925lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13926
13927	else
13928	  tagname=""
13929	fi
13930	;;
13931
13932      F77)
13933	if test -n "$F77" && test "X$F77" != "Xno"; then
13934
13935ac_ext=f
13936ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13937ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13939
13940
13941archive_cmds_need_lc_F77=no
13942allow_undefined_flag_F77=
13943always_export_symbols_F77=no
13944archive_expsym_cmds_F77=
13945export_dynamic_flag_spec_F77=
13946hardcode_direct_F77=no
13947hardcode_libdir_flag_spec_F77=
13948hardcode_libdir_flag_spec_ld_F77=
13949hardcode_libdir_separator_F77=
13950hardcode_minus_L_F77=no
13951hardcode_automatic_F77=no
13952module_cmds_F77=
13953module_expsym_cmds_F77=
13954link_all_deplibs_F77=unknown
13955old_archive_cmds_F77=$old_archive_cmds
13956no_undefined_flag_F77=
13957whole_archive_flag_spec_F77=
13958enable_shared_with_static_runtimes_F77=no
13959
13960# Source file extension for f77 test sources.
13961ac_ext=f
13962
13963# Object file extension for compiled f77 test sources.
13964objext=o
13965objext_F77=$objext
13966
13967# Code to be used in simple compile tests
13968lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13969
13970# Code to be used in simple link tests
13971lt_simple_link_test_code="      program t\n      end\n"
13972
13973# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13974
13975# If no C compiler was specified, use CC.
13976LTCC=${LTCC-"$CC"}
13977
13978# If no C compiler flags were specified, use CFLAGS.
13979LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13980
13981# Allow CC to be a program name with arguments.
13982compiler=$CC
13983
13984
13985# save warnings/boilerplate of simple test code
13986ac_outfile=conftest.$ac_objext
13987printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13989_lt_compiler_boilerplate=`cat conftest.err`
13990$rm conftest*
13991
13992ac_outfile=conftest.$ac_objext
13993printf "$lt_simple_link_test_code" >conftest.$ac_ext
13994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13995_lt_linker_boilerplate=`cat conftest.err`
13996$rm conftest*
13997
13998
13999# Allow CC to be a program name with arguments.
14000lt_save_CC="$CC"
14001CC=${F77-"f77"}
14002compiler=$CC
14003compiler_F77=$CC
14004for cc_temp in $compiler""; do
14005  case $cc_temp in
14006    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14007    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14008    \-*) ;;
14009    *) break;;
14010  esac
14011done
14012cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14013
14014
14015echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14016echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14017echo "$as_me:$LINENO: result: $can_build_shared" >&5
14018echo "${ECHO_T}$can_build_shared" >&6
14019
14020echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14021echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14022test "$can_build_shared" = "no" && enable_shared=no
14023
14024# On AIX, shared libraries and static libraries use the same namespace, and
14025# are all built from PIC.
14026case $host_os in
14027aix3*)
14028  test "$enable_shared" = yes && enable_static=no
14029  if test -n "$RANLIB"; then
14030    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14031    postinstall_cmds='$RANLIB $lib'
14032  fi
14033  ;;
14034aix4* | aix5*)
14035  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14036    test "$enable_shared" = yes && enable_static=no
14037  fi
14038  ;;
14039esac
14040echo "$as_me:$LINENO: result: $enable_shared" >&5
14041echo "${ECHO_T}$enable_shared" >&6
14042
14043echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14044echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14045# Make sure either enable_shared or enable_static is yes.
14046test "$enable_shared" = yes || enable_static=yes
14047echo "$as_me:$LINENO: result: $enable_static" >&5
14048echo "${ECHO_T}$enable_static" >&6
14049
14050GCC_F77="$G77"
14051LD_F77="$LD"
14052
14053lt_prog_compiler_wl_F77=
14054lt_prog_compiler_pic_F77=
14055lt_prog_compiler_static_F77=
14056
14057echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14058echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14059
14060  if test "$GCC" = yes; then
14061    lt_prog_compiler_wl_F77='-Wl,'
14062    lt_prog_compiler_static_F77='-static'
14063
14064    case $host_os in
14065      aix*)
14066      # All AIX code is PIC.
14067      if test "$host_cpu" = ia64; then
14068	# AIX 5 now supports IA64 processor
14069	lt_prog_compiler_static_F77='-Bstatic'
14070      fi
14071      ;;
14072
14073    amigaos*)
14074      # FIXME: we need at least 68020 code to build shared libraries, but
14075      # adding the `-m68020' flag to GCC prevents building anything better,
14076      # like `-m68040'.
14077      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14078      ;;
14079
14080    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14081      # PIC is the default for these OSes.
14082      ;;
14083
14084    mingw* | pw32* | os2*)
14085      # This hack is so that the source file can tell whether it is being
14086      # built for inclusion in a dll (and should export symbols for example).
14087      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14088      ;;
14089
14090    darwin* | rhapsody*)
14091      # PIC is the default on this platform
14092      # Common symbols not allowed in MH_DYLIB files
14093      lt_prog_compiler_pic_F77='-fno-common'
14094      ;;
14095
14096    interix3*)
14097      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14098      # Instead, we relocate shared libraries at runtime.
14099      ;;
14100
14101    msdosdjgpp*)
14102      # Just because we use GCC doesn't mean we suddenly get shared libraries
14103      # on systems that don't support them.
14104      lt_prog_compiler_can_build_shared_F77=no
14105      enable_shared=no
14106      ;;
14107
14108    sysv4*MP*)
14109      if test -d /usr/nec; then
14110	lt_prog_compiler_pic_F77=-Kconform_pic
14111      fi
14112      ;;
14113
14114    hpux*)
14115      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14116      # not for PA HP-UX.
14117      case $host_cpu in
14118      hppa*64*|ia64*)
14119	# +Z the default
14120	;;
14121      *)
14122	lt_prog_compiler_pic_F77='-fPIC'
14123	;;
14124      esac
14125      ;;
14126
14127    *)
14128      lt_prog_compiler_pic_F77='-fPIC'
14129      ;;
14130    esac
14131  else
14132    # PORTME Check for flag to pass linker flags through the system compiler.
14133    case $host_os in
14134    aix*)
14135      lt_prog_compiler_wl_F77='-Wl,'
14136      if test "$host_cpu" = ia64; then
14137	# AIX 5 now supports IA64 processor
14138	lt_prog_compiler_static_F77='-Bstatic'
14139      else
14140	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14141      fi
14142      ;;
14143      darwin*)
14144        # PIC is the default on this platform
14145        # Common symbols not allowed in MH_DYLIB files
14146       case $cc_basename in
14147         xlc*)
14148         lt_prog_compiler_pic_F77='-qnocommon'
14149         lt_prog_compiler_wl_F77='-Wl,'
14150         ;;
14151       esac
14152       ;;
14153
14154    mingw* | pw32* | os2*)
14155      # This hack is so that the source file can tell whether it is being
14156      # built for inclusion in a dll (and should export symbols for example).
14157      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14158      ;;
14159
14160    hpux9* | hpux10* | hpux11*)
14161      lt_prog_compiler_wl_F77='-Wl,'
14162      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14163      # not for PA HP-UX.
14164      case $host_cpu in
14165      hppa*64*|ia64*)
14166	# +Z the default
14167	;;
14168      *)
14169	lt_prog_compiler_pic_F77='+Z'
14170	;;
14171      esac
14172      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14173      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14174      ;;
14175
14176    irix5* | irix6* | nonstopux*)
14177      lt_prog_compiler_wl_F77='-Wl,'
14178      # PIC (with -KPIC) is the default.
14179      lt_prog_compiler_static_F77='-non_shared'
14180      ;;
14181
14182    newsos6)
14183      lt_prog_compiler_pic_F77='-KPIC'
14184      lt_prog_compiler_static_F77='-Bstatic'
14185      ;;
14186
14187    linux*)
14188      case $cc_basename in
14189      icc* | ecc*)
14190	lt_prog_compiler_wl_F77='-Wl,'
14191	lt_prog_compiler_pic_F77='-KPIC'
14192	lt_prog_compiler_static_F77='-static'
14193        ;;
14194      pgcc* | pgf77* | pgf90* | pgf95*)
14195        # Portland Group compilers (*not* the Pentium gcc compiler,
14196	# which looks to be a dead project)
14197	lt_prog_compiler_wl_F77='-Wl,'
14198	lt_prog_compiler_pic_F77='-fpic'
14199	lt_prog_compiler_static_F77='-Bstatic'
14200        ;;
14201      ccc*)
14202        lt_prog_compiler_wl_F77='-Wl,'
14203        # All Alpha code is PIC.
14204        lt_prog_compiler_static_F77='-non_shared'
14205        ;;
14206      esac
14207      ;;
14208
14209    osf3* | osf4* | osf5*)
14210      lt_prog_compiler_wl_F77='-Wl,'
14211      # All OSF/1 code is PIC.
14212      lt_prog_compiler_static_F77='-non_shared'
14213      ;;
14214
14215    solaris*)
14216      lt_prog_compiler_pic_F77='-KPIC'
14217      lt_prog_compiler_static_F77='-Bstatic'
14218      case $cc_basename in
14219      f77* | f90* | f95*)
14220	lt_prog_compiler_wl_F77='-Qoption ld ';;
14221      *)
14222	lt_prog_compiler_wl_F77='-Wl,';;
14223      esac
14224      ;;
14225
14226    sunos4*)
14227      lt_prog_compiler_wl_F77='-Qoption ld '
14228      lt_prog_compiler_pic_F77='-PIC'
14229      lt_prog_compiler_static_F77='-Bstatic'
14230      ;;
14231
14232    sysv4 | sysv4.2uw2* | sysv4.3*)
14233      lt_prog_compiler_wl_F77='-Wl,'
14234      lt_prog_compiler_pic_F77='-KPIC'
14235      lt_prog_compiler_static_F77='-Bstatic'
14236      ;;
14237
14238    sysv4*MP*)
14239      if test -d /usr/nec ;then
14240	lt_prog_compiler_pic_F77='-Kconform_pic'
14241	lt_prog_compiler_static_F77='-Bstatic'
14242      fi
14243      ;;
14244
14245    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14246      lt_prog_compiler_wl_F77='-Wl,'
14247      lt_prog_compiler_pic_F77='-KPIC'
14248      lt_prog_compiler_static_F77='-Bstatic'
14249      ;;
14250
14251    unicos*)
14252      lt_prog_compiler_wl_F77='-Wl,'
14253      lt_prog_compiler_can_build_shared_F77=no
14254      ;;
14255
14256    uts4*)
14257      lt_prog_compiler_pic_F77='-pic'
14258      lt_prog_compiler_static_F77='-Bstatic'
14259      ;;
14260
14261    *)
14262      lt_prog_compiler_can_build_shared_F77=no
14263      ;;
14264    esac
14265  fi
14266
14267echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14268echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14269
14270#
14271# Check to make sure the PIC flag actually works.
14272#
14273if test -n "$lt_prog_compiler_pic_F77"; then
14274
14275echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14276echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14277if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14278  echo $ECHO_N "(cached) $ECHO_C" >&6
14279else
14280  lt_prog_compiler_pic_works_F77=no
14281  ac_outfile=conftest.$ac_objext
14282   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14283   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14284   # Insert the option either (1) after the last *FLAGS variable, or
14285   # (2) before a word containing "conftest.", or (3) at the end.
14286   # Note that $ac_compile itself does not contain backslashes and begins
14287   # with a dollar sign (not a hyphen), so the echo should work correctly.
14288   # The option is referenced via a variable to avoid confusing sed.
14289   lt_compile=`echo "$ac_compile" | $SED \
14290   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14291   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14292   -e 's:$: $lt_compiler_flag:'`
14293   (eval echo "\"\$as_me:14293: $lt_compile\"" >&5)
14294   (eval "$lt_compile" 2>conftest.err)
14295   ac_status=$?
14296   cat conftest.err >&5
14297   echo "$as_me:14297: \$? = $ac_status" >&5
14298   if (exit $ac_status) && test -s "$ac_outfile"; then
14299     # The compiler can only warn and ignore the option if not recognized
14300     # So say no if there are warnings other than the usual output.
14301     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14302     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14303     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14304       lt_prog_compiler_pic_works_F77=yes
14305     fi
14306   fi
14307   $rm conftest*
14308
14309fi
14310echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14311echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14312
14313if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14314    case $lt_prog_compiler_pic_F77 in
14315     "" | " "*) ;;
14316     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14317     esac
14318else
14319    lt_prog_compiler_pic_F77=
14320     lt_prog_compiler_can_build_shared_F77=no
14321fi
14322
14323fi
14324case $host_os in
14325  # For platforms which do not support PIC, -DPIC is meaningless:
14326  *djgpp*)
14327    lt_prog_compiler_pic_F77=
14328    ;;
14329  *)
14330    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14331    ;;
14332esac
14333
14334#
14335# Check to make sure the static flag actually works.
14336#
14337wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14338echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14339echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14340if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14341  echo $ECHO_N "(cached) $ECHO_C" >&6
14342else
14343  lt_prog_compiler_static_works_F77=no
14344   save_LDFLAGS="$LDFLAGS"
14345   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14346   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14347   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14348     # The linker can only warn and ignore the option if not recognized
14349     # So say no if there are warnings
14350     if test -s conftest.err; then
14351       # Append any errors to the config.log.
14352       cat conftest.err 1>&5
14353       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14354       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14355       if diff conftest.exp conftest.er2 >/dev/null; then
14356         lt_prog_compiler_static_works_F77=yes
14357       fi
14358     else
14359       lt_prog_compiler_static_works_F77=yes
14360     fi
14361   fi
14362   $rm conftest*
14363   LDFLAGS="$save_LDFLAGS"
14364
14365fi
14366echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14367echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14368
14369if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14370    :
14371else
14372    lt_prog_compiler_static_F77=
14373fi
14374
14375
14376echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14377echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14378if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14379  echo $ECHO_N "(cached) $ECHO_C" >&6
14380else
14381  lt_cv_prog_compiler_c_o_F77=no
14382   $rm -r conftest 2>/dev/null
14383   mkdir conftest
14384   cd conftest
14385   mkdir out
14386   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14387
14388   lt_compiler_flag="-o out/conftest2.$ac_objext"
14389   # Insert the option either (1) after the last *FLAGS variable, or
14390   # (2) before a word containing "conftest.", or (3) at the end.
14391   # Note that $ac_compile itself does not contain backslashes and begins
14392   # with a dollar sign (not a hyphen), so the echo should work correctly.
14393   lt_compile=`echo "$ac_compile" | $SED \
14394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14396   -e 's:$: $lt_compiler_flag:'`
14397   (eval echo "\"\$as_me:14397: $lt_compile\"" >&5)
14398   (eval "$lt_compile" 2>out/conftest.err)
14399   ac_status=$?
14400   cat out/conftest.err >&5
14401   echo "$as_me:14401: \$? = $ac_status" >&5
14402   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14403   then
14404     # The compiler can only warn and ignore the option if not recognized
14405     # So say no if there are warnings
14406     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14407     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14408     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14409       lt_cv_prog_compiler_c_o_F77=yes
14410     fi
14411   fi
14412   chmod u+w . 2>&5
14413   $rm conftest*
14414   # SGI C++ compiler will create directory out/ii_files/ for
14415   # template instantiation
14416   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14417   $rm out/* && rmdir out
14418   cd ..
14419   rmdir conftest
14420   $rm conftest*
14421
14422fi
14423echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14424echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14425
14426
14427hard_links="nottested"
14428if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14429  # do not overwrite the value of need_locks provided by the user
14430  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14431echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14432  hard_links=yes
14433  $rm conftest*
14434  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14435  touch conftest.a
14436  ln conftest.a conftest.b 2>&5 || hard_links=no
14437  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14438  echo "$as_me:$LINENO: result: $hard_links" >&5
14439echo "${ECHO_T}$hard_links" >&6
14440  if test "$hard_links" = no; then
14441    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14442echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14443    need_locks=warn
14444  fi
14445else
14446  need_locks=no
14447fi
14448
14449echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14450echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14451
14452  runpath_var=
14453  allow_undefined_flag_F77=
14454  enable_shared_with_static_runtimes_F77=no
14455  archive_cmds_F77=
14456  archive_expsym_cmds_F77=
14457  old_archive_From_new_cmds_F77=
14458  old_archive_from_expsyms_cmds_F77=
14459  export_dynamic_flag_spec_F77=
14460  whole_archive_flag_spec_F77=
14461  thread_safe_flag_spec_F77=
14462  hardcode_libdir_flag_spec_F77=
14463  hardcode_libdir_flag_spec_ld_F77=
14464  hardcode_libdir_separator_F77=
14465  hardcode_direct_F77=no
14466  hardcode_minus_L_F77=no
14467  hardcode_shlibpath_var_F77=unsupported
14468  link_all_deplibs_F77=unknown
14469  hardcode_automatic_F77=no
14470  module_cmds_F77=
14471  module_expsym_cmds_F77=
14472  always_export_symbols_F77=no
14473  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14474  # include_expsyms should be a list of space-separated symbols to be *always*
14475  # included in the symbol list
14476  include_expsyms_F77=
14477  # exclude_expsyms can be an extended regexp of symbols to exclude
14478  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14479  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14480  # as well as any symbol that contains `d'.
14481  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14482  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14483  # platforms (ab)use it in PIC code, but their linkers get confused if
14484  # the symbol is explicitly referenced.  Since portable code cannot
14485  # rely on this symbol name, it's probably fine to never include it in
14486  # preloaded symbol tables.
14487  extract_expsyms_cmds=
14488  # Just being paranoid about ensuring that cc_basename is set.
14489  for cc_temp in $compiler""; do
14490  case $cc_temp in
14491    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14492    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14493    \-*) ;;
14494    *) break;;
14495  esac
14496done
14497cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14498
14499  case $host_os in
14500  cygwin* | mingw* | pw32*)
14501    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14502    # When not using gcc, we currently assume that we are using
14503    # Microsoft Visual C++.
14504    if test "$GCC" != yes; then
14505      with_gnu_ld=no
14506    fi
14507    ;;
14508  interix*)
14509    # we just hope/assume this is gcc and not c89 (= MSVC++)
14510    with_gnu_ld=yes
14511    ;;
14512  openbsd*)
14513    with_gnu_ld=no
14514    ;;
14515  esac
14516
14517  ld_shlibs_F77=yes
14518  if test "$with_gnu_ld" = yes; then
14519    # If archive_cmds runs LD, not CC, wlarc should be empty
14520    wlarc='${wl}'
14521
14522    # Set some defaults for GNU ld with shared library support. These
14523    # are reset later if shared libraries are not supported. Putting them
14524    # here allows them to be overridden if necessary.
14525    runpath_var=LD_RUN_PATH
14526    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14527    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14528    # ancient GNU ld didn't support --whole-archive et. al.
14529    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14530	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14531      else
14532  	whole_archive_flag_spec_F77=
14533    fi
14534    supports_anon_versioning=no
14535    case `$LD -v 2>/dev/null` in
14536      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14537      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14538      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14539      *\ 2.11.*) ;; # other 2.11 versions
14540      *) supports_anon_versioning=yes ;;
14541    esac
14542
14543    # See if GNU ld supports shared libraries.
14544    case $host_os in
14545    aix3* | aix4* | aix5*)
14546      # On AIX/PPC, the GNU linker is very broken
14547      if test "$host_cpu" != ia64; then
14548	ld_shlibs_F77=no
14549	cat <<EOF 1>&2
14550
14551*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14552*** to be unable to reliably create shared libraries on AIX.
14553*** Therefore, libtool is disabling shared libraries support.  If you
14554*** really care for shared libraries, you may want to modify your PATH
14555*** so that a non-GNU linker is found, and then restart.
14556
14557EOF
14558      fi
14559      ;;
14560
14561    amigaos*)
14562      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)'
14563      hardcode_libdir_flag_spec_F77='-L$libdir'
14564      hardcode_minus_L_F77=yes
14565
14566      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14567      # that the semantics of dynamic libraries on AmigaOS, at least up
14568      # to version 4, is to share data among multiple programs linked
14569      # with the same dynamic library.  Since this doesn't match the
14570      # behavior of shared libraries on other platforms, we can't use
14571      # them.
14572      ld_shlibs_F77=no
14573      ;;
14574
14575    beos*)
14576      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14577	allow_undefined_flag_F77=unsupported
14578	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14579	# support --undefined.  This deserves some investigation.  FIXME
14580	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14581      else
14582	ld_shlibs_F77=no
14583      fi
14584      ;;
14585
14586    cygwin* | mingw* | pw32*)
14587      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14588      # as there is no search path for DLLs.
14589      hardcode_libdir_flag_spec_F77='-L$libdir'
14590      allow_undefined_flag_F77=unsupported
14591      always_export_symbols_F77=no
14592      enable_shared_with_static_runtimes_F77=yes
14593      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14594
14595      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14596        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14597	# If the export-symbols file already is a .def file (1st line
14598	# is EXPORTS), use it as is; otherwise, prepend...
14599	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14600	  cp $export_symbols $output_objdir/$soname.def;
14601	else
14602	  echo EXPORTS > $output_objdir/$soname.def;
14603	  cat $export_symbols >> $output_objdir/$soname.def;
14604	fi~
14605	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14606      else
14607	ld_shlibs_F77=no
14608      fi
14609      ;;
14610
14611    interix3*)
14612      hardcode_direct_F77=no
14613      hardcode_shlibpath_var_F77=no
14614      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14615      export_dynamic_flag_spec_F77='${wl}-E'
14616      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14617      # Instead, shared libraries are loaded at an image base (0x10000000 by
14618      # default) and relocated if they conflict, which is a slow very memory
14619      # consuming and fragmenting process.  To avoid this, we pick a random,
14620      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14621      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14622      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14623      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14624      ;;
14625
14626    linux*)
14627      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14628	tmp_addflag=
14629	case $cc_basename,$host_cpu in
14630	pgcc*)				# Portland Group C compiler
14631	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14632	  tmp_addflag=' $pic_flag'
14633	  ;;
14634	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14635	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14636	  tmp_addflag=' $pic_flag -Mnomain' ;;
14637	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14638	  tmp_addflag=' -i_dynamic' ;;
14639	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14640	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14641	ifc* | ifort*)			# Intel Fortran compiler
14642	  tmp_addflag=' -nofor_main' ;;
14643	esac
14644	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645
14646	if test $supports_anon_versioning = yes; then
14647	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14648  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14649  $echo "local: *; };" >> $output_objdir/$libname.ver~
14650	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14651	fi
14652      else
14653	ld_shlibs_F77=no
14654      fi
14655      ;;
14656
14657    netbsd*)
14658      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14659	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14660	wlarc=
14661      else
14662	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14663	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14664      fi
14665      ;;
14666
14667    solaris*)
14668      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14669	ld_shlibs_F77=no
14670	cat <<EOF 1>&2
14671
14672*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14673*** create shared libraries on Solaris systems.  Therefore, libtool
14674*** is disabling shared libraries support.  We urge you to upgrade GNU
14675*** binutils to release 2.9.1 or newer.  Another option is to modify
14676*** your PATH or compiler configuration so that the native linker is
14677*** used, and then restart.
14678
14679EOF
14680      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14681	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14682	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14683      else
14684	ld_shlibs_F77=no
14685      fi
14686      ;;
14687
14688    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14689      case `$LD -v 2>&1` in
14690        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14691	ld_shlibs_F77=no
14692	cat <<_LT_EOF 1>&2
14693
14694*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14695*** reliably create shared libraries on SCO systems.  Therefore, libtool
14696*** is disabling shared libraries support.  We urge you to upgrade GNU
14697*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14698*** your PATH or compiler configuration so that the native linker is
14699*** used, and then restart.
14700
14701_LT_EOF
14702	;;
14703	*)
14704	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14705	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14706	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14707	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14708	  else
14709	    ld_shlibs_F77=no
14710	  fi
14711	;;
14712      esac
14713      ;;
14714
14715    sunos4*)
14716      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14717      wlarc=
14718      hardcode_direct_F77=yes
14719      hardcode_shlibpath_var_F77=no
14720      ;;
14721
14722    *)
14723      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14724	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14726      else
14727	ld_shlibs_F77=no
14728      fi
14729      ;;
14730    esac
14731
14732    if test "$ld_shlibs_F77" = no; then
14733      runpath_var=
14734      hardcode_libdir_flag_spec_F77=
14735      export_dynamic_flag_spec_F77=
14736      whole_archive_flag_spec_F77=
14737    fi
14738  else
14739    # PORTME fill in a description of your system's linker (not GNU ld)
14740    case $host_os in
14741    aix3*)
14742      allow_undefined_flag_F77=unsupported
14743      always_export_symbols_F77=yes
14744      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'
14745      # Note: this linker hardcodes the directories in LIBPATH if there
14746      # are no directories specified by -L.
14747      hardcode_minus_L_F77=yes
14748      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14749	# Neither direct hardcoding nor static linking is supported with a
14750	# broken collect2.
14751	hardcode_direct_F77=unsupported
14752      fi
14753      ;;
14754
14755    aix4* | aix5*)
14756      if test "$host_cpu" = ia64; then
14757	# On IA64, the linker does run time linking by default, so we don't
14758	# have to do anything special.
14759	aix_use_runtimelinking=no
14760	exp_sym_flag='-Bexport'
14761	no_entry_flag=""
14762      else
14763	# If we're using GNU nm, then we don't want the "-C" option.
14764	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14765	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14766	  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'
14767	else
14768	  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'
14769	fi
14770	aix_use_runtimelinking=no
14771
14772	# Test if we are trying to use run time linking or normal
14773	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14774	# need to do runtime linking.
14775	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14776	  for ld_flag in $LDFLAGS; do
14777  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14778  	    aix_use_runtimelinking=yes
14779  	    break
14780  	  fi
14781	  done
14782	  ;;
14783	esac
14784
14785	exp_sym_flag='-bexport'
14786	no_entry_flag='-bnoentry'
14787      fi
14788
14789      # When large executables or shared objects are built, AIX ld can
14790      # have problems creating the table of contents.  If linking a library
14791      # or program results in "error TOC overflow" add -mminimal-toc to
14792      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14793      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14794
14795      archive_cmds_F77=''
14796      hardcode_direct_F77=yes
14797      hardcode_libdir_separator_F77=':'
14798      link_all_deplibs_F77=yes
14799
14800      if test "$GCC" = yes; then
14801	case $host_os in aix4.[012]|aix4.[012].*)
14802	# We only want to do this on AIX 4.2 and lower, the check
14803	# below for broken collect2 doesn't work under 4.3+
14804	  collect2name=`${CC} -print-prog-name=collect2`
14805	  if test -f "$collect2name" && \
14806  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14807	  then
14808  	  # We have reworked collect2
14809  	  hardcode_direct_F77=yes
14810	  else
14811  	  # We have old collect2
14812  	  hardcode_direct_F77=unsupported
14813  	  # It fails to find uninstalled libraries when the uninstalled
14814  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14815  	  # to unsupported forces relinking
14816  	  hardcode_minus_L_F77=yes
14817  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14818  	  hardcode_libdir_separator_F77=
14819	  fi
14820	  ;;
14821	esac
14822	shared_flag='-shared'
14823	if test "$aix_use_runtimelinking" = yes; then
14824	  shared_flag="$shared_flag "'${wl}-G'
14825	fi
14826      else
14827	# not using gcc
14828	if test "$host_cpu" = ia64; then
14829  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14830  	# chokes on -Wl,-G. The following line is correct:
14831	  shared_flag='-G'
14832	else
14833	  if test "$aix_use_runtimelinking" = yes; then
14834	    shared_flag='${wl}-G'
14835	  else
14836	    shared_flag='${wl}-bM:SRE'
14837	  fi
14838	fi
14839      fi
14840
14841      # It seems that -bexpall does not export symbols beginning with
14842      # underscore (_), so it is better to generate a list of symbols to export.
14843      always_export_symbols_F77=yes
14844      if test "$aix_use_runtimelinking" = yes; then
14845	# Warning - without using the other runtime loading flags (-brtl),
14846	# -berok will link without error, but may produce a broken library.
14847	allow_undefined_flag_F77='-berok'
14848       # Determine the default libpath from the value encoded in an empty executable.
14849       cat >conftest.$ac_ext <<_ACEOF
14850      program main
14851
14852      end
14853_ACEOF
14854rm -f conftest.$ac_objext conftest$ac_exeext
14855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856  (eval $ac_link) 2>conftest.er1
14857  ac_status=$?
14858  grep -v '^ *+' conftest.er1 >conftest.err
14859  rm -f conftest.er1
14860  cat conftest.err >&5
14861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862  (exit $ac_status); } &&
14863	 { ac_try='test -z "$ac_f77_werror_flag"
14864			 || test ! -s conftest.err'
14865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866  (eval $ac_try) 2>&5
14867  ac_status=$?
14868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869  (exit $ac_status); }; } &&
14870	 { ac_try='test -s conftest$ac_exeext'
14871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872  (eval $ac_try) 2>&5
14873  ac_status=$?
14874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875  (exit $ac_status); }; }; then
14876
14877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14878}'`
14879# Check for a 64-bit object if we didn't find anything.
14880if 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; }
14881}'`; fi
14882else
14883  echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
14886fi
14887rm -f conftest.err conftest.$ac_objext \
14888      conftest$ac_exeext conftest.$ac_ext
14889if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14890
14891       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14892	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14893       else
14894	if test "$host_cpu" = ia64; then
14895	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14896	  allow_undefined_flag_F77="-z nodefs"
14897	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14898	else
14899	 # Determine the default libpath from the value encoded in an empty executable.
14900	 cat >conftest.$ac_ext <<_ACEOF
14901      program main
14902
14903      end
14904_ACEOF
14905rm -f conftest.$ac_objext conftest$ac_exeext
14906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907  (eval $ac_link) 2>conftest.er1
14908  ac_status=$?
14909  grep -v '^ *+' conftest.er1 >conftest.err
14910  rm -f conftest.er1
14911  cat conftest.err >&5
14912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913  (exit $ac_status); } &&
14914	 { ac_try='test -z "$ac_f77_werror_flag"
14915			 || test ! -s conftest.err'
14916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917  (eval $ac_try) 2>&5
14918  ac_status=$?
14919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920  (exit $ac_status); }; } &&
14921	 { ac_try='test -s conftest$ac_exeext'
14922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923  (eval $ac_try) 2>&5
14924  ac_status=$?
14925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926  (exit $ac_status); }; }; then
14927
14928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14929}'`
14930# Check for a 64-bit object if we didn't find anything.
14931if 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; }
14932}'`; fi
14933else
14934  echo "$as_me: failed program was:" >&5
14935sed 's/^/| /' conftest.$ac_ext >&5
14936
14937fi
14938rm -f conftest.err conftest.$ac_objext \
14939      conftest$ac_exeext conftest.$ac_ext
14940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14941
14942	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14943	  # Warning - without using the other run time loading flags,
14944	  # -berok will link without error, but may produce a broken library.
14945	  no_undefined_flag_F77=' ${wl}-bernotok'
14946	  allow_undefined_flag_F77=' ${wl}-berok'
14947	  # Exported symbols can be pulled into shared objects from archives
14948	  whole_archive_flag_spec_F77='$convenience'
14949	  archive_cmds_need_lc_F77=yes
14950	  # This is similar to how AIX traditionally builds its shared libraries.
14951	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14952	fi
14953      fi
14954      ;;
14955
14956    amigaos*)
14957      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)'
14958      hardcode_libdir_flag_spec_F77='-L$libdir'
14959      hardcode_minus_L_F77=yes
14960      # see comment about different semantics on the GNU ld section
14961      ld_shlibs_F77=no
14962      ;;
14963
14964    bsdi[45]*)
14965      export_dynamic_flag_spec_F77=-rdynamic
14966      ;;
14967
14968    cygwin* | mingw* | pw32*)
14969      # When not using gcc, we currently assume that we are using
14970      # Microsoft Visual C++.
14971      # hardcode_libdir_flag_spec is actually meaningless, as there is
14972      # no search path for DLLs.
14973      hardcode_libdir_flag_spec_F77=' '
14974      allow_undefined_flag_F77=unsupported
14975      # Tell ltmain to make .lib files, not .a files.
14976      libext=lib
14977      # Tell ltmain to make .dll files, not .so files.
14978      shrext_cmds=".dll"
14979      # FIXME: Setting linknames here is a bad hack.
14980      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14981      # The linker will automatically build a .lib file if we build a DLL.
14982      old_archive_From_new_cmds_F77='true'
14983      # FIXME: Should let the user specify the lib program.
14984      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14985      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14986      enable_shared_with_static_runtimes_F77=yes
14987      ;;
14988
14989    darwin* | rhapsody*)
14990      case $host_os in
14991        rhapsody* | darwin1.[012])
14992         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14993         ;;
14994       *) # Darwin 1.3 on
14995         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14996           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14997         else
14998           case ${MACOSX_DEPLOYMENT_TARGET} in
14999             10.[012])
15000               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15001               ;;
15002             10.*)
15003               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15004               ;;
15005           esac
15006         fi
15007         ;;
15008      esac
15009      archive_cmds_need_lc_F77=no
15010      hardcode_direct_F77=no
15011      hardcode_automatic_F77=yes
15012      hardcode_shlibpath_var_F77=unsupported
15013      whole_archive_flag_spec_F77=''
15014      link_all_deplibs_F77=yes
15015    if test "$GCC" = yes ; then
15016    	output_verbose_link_cmd='echo'
15017        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15018      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15019      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15020      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15021      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}'
15022    else
15023      case $cc_basename in
15024        xlc*)
15025         output_verbose_link_cmd='echo'
15026         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15027         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15028          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15029         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15030          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}'
15031          ;;
15032       *)
15033         ld_shlibs_F77=no
15034          ;;
15035      esac
15036    fi
15037      ;;
15038
15039    dgux*)
15040      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15041      hardcode_libdir_flag_spec_F77='-L$libdir'
15042      hardcode_shlibpath_var_F77=no
15043      ;;
15044
15045    freebsd1*)
15046      ld_shlibs_F77=no
15047      ;;
15048
15049    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15050    # support.  Future versions do this automatically, but an explicit c++rt0.o
15051    # does not break anything, and helps significantly (at the cost of a little
15052    # extra space).
15053    freebsd2.2*)
15054      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15055      hardcode_libdir_flag_spec_F77='-R$libdir'
15056      hardcode_direct_F77=yes
15057      hardcode_shlibpath_var_F77=no
15058      ;;
15059
15060    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15061    freebsd2*)
15062      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15063      hardcode_direct_F77=yes
15064      hardcode_minus_L_F77=yes
15065      hardcode_shlibpath_var_F77=no
15066      ;;
15067
15068    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15069    freebsd* | kfreebsd*-gnu | dragonfly*)
15070      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15071      hardcode_libdir_flag_spec_F77='-R$libdir'
15072      hardcode_direct_F77=yes
15073      hardcode_shlibpath_var_F77=no
15074      ;;
15075
15076    hpux9*)
15077      if test "$GCC" = yes; then
15078	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'
15079      else
15080	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'
15081      fi
15082      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15083      hardcode_libdir_separator_F77=:
15084      hardcode_direct_F77=yes
15085
15086      # hardcode_minus_L: Not really in the search PATH,
15087      # but as the default location of the library.
15088      hardcode_minus_L_F77=yes
15089      export_dynamic_flag_spec_F77='${wl}-E'
15090      ;;
15091
15092    hpux10*)
15093      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15094	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15095      else
15096	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15097      fi
15098      if test "$with_gnu_ld" = no; then
15099	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15100	hardcode_libdir_separator_F77=:
15101
15102	hardcode_direct_F77=yes
15103	export_dynamic_flag_spec_F77='${wl}-E'
15104
15105	# hardcode_minus_L: Not really in the search PATH,
15106	# but as the default location of the library.
15107	hardcode_minus_L_F77=yes
15108      fi
15109      ;;
15110
15111    hpux11*)
15112      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15113	case $host_cpu in
15114	hppa*64*)
15115	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15116	  ;;
15117	ia64*)
15118	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15119	  ;;
15120	*)
15121	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15122	  ;;
15123	esac
15124      else
15125	case $host_cpu in
15126	hppa*64*)
15127	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15128	  ;;
15129	ia64*)
15130	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15131	  ;;
15132	*)
15133	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15134	  ;;
15135	esac
15136      fi
15137      if test "$with_gnu_ld" = no; then
15138	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15139	hardcode_libdir_separator_F77=:
15140
15141	case $host_cpu in
15142	hppa*64*|ia64*)
15143	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15144	  hardcode_direct_F77=no
15145	  hardcode_shlibpath_var_F77=no
15146	  ;;
15147	*)
15148	  hardcode_direct_F77=yes
15149	  export_dynamic_flag_spec_F77='${wl}-E'
15150
15151	  # hardcode_minus_L: Not really in the search PATH,
15152	  # but as the default location of the library.
15153	  hardcode_minus_L_F77=yes
15154	  ;;
15155	esac
15156      fi
15157      ;;
15158
15159    irix5* | irix6* | nonstopux*)
15160      if test "$GCC" = yes; then
15161	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'
15162      else
15163	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'
15164	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15165      fi
15166      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15167      hardcode_libdir_separator_F77=:
15168      link_all_deplibs_F77=yes
15169      ;;
15170
15171    netbsd*)
15172      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15173	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15174      else
15175	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15176      fi
15177      hardcode_libdir_flag_spec_F77='-R$libdir'
15178      hardcode_direct_F77=yes
15179      hardcode_shlibpath_var_F77=no
15180      ;;
15181
15182    newsos6)
15183      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184      hardcode_direct_F77=yes
15185      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15186      hardcode_libdir_separator_F77=:
15187      hardcode_shlibpath_var_F77=no
15188      ;;
15189
15190    openbsd*)
15191      hardcode_direct_F77=yes
15192      hardcode_shlibpath_var_F77=no
15193      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15194	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15195	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15196	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15197	export_dynamic_flag_spec_F77='${wl}-E'
15198      else
15199       case $host_os in
15200	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15201	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15202	   hardcode_libdir_flag_spec_F77='-R$libdir'
15203	   ;;
15204	 *)
15205	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15206	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15207	   ;;
15208       esac
15209      fi
15210      ;;
15211
15212    os2*)
15213      hardcode_libdir_flag_spec_F77='-L$libdir'
15214      hardcode_minus_L_F77=yes
15215      allow_undefined_flag_F77=unsupported
15216      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'
15217      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15218      ;;
15219
15220    osf3*)
15221      if test "$GCC" = yes; then
15222	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15223	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'
15224      else
15225	allow_undefined_flag_F77=' -expect_unresolved \*'
15226	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'
15227      fi
15228      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15229      hardcode_libdir_separator_F77=:
15230      ;;
15231
15232    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15233      if test "$GCC" = yes; then
15234	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15235	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'
15236	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15237      else
15238	allow_undefined_flag_F77=' -expect_unresolved \*'
15239	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'
15240	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~
15241	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15242
15243	# Both c and cxx compiler support -rpath directly
15244	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15245      fi
15246      hardcode_libdir_separator_F77=:
15247      ;;
15248
15249    solaris*)
15250      no_undefined_flag_F77=' -z text'
15251      if test "$GCC" = yes; then
15252	wlarc='${wl}'
15253	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15254	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15255	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15256      else
15257	wlarc=''
15258	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15259	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15260  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15261      fi
15262      hardcode_libdir_flag_spec_F77='-R$libdir'
15263      hardcode_shlibpath_var_F77=no
15264      case $host_os in
15265      solaris2.[0-5] | solaris2.[0-5].*) ;;
15266      *)
15267 	# The compiler driver will combine linker options so we
15268 	# cannot just pass the convience library names through
15269 	# without $wl, iff we do not link with $LD.
15270 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15271 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15272 	case $wlarc in
15273 	'')
15274 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15275 	*)
15276 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15277 	esac ;;
15278      esac
15279      link_all_deplibs_F77=yes
15280      ;;
15281
15282    sunos4*)
15283      if test "x$host_vendor" = xsequent; then
15284	# Use $CC to link under sequent, because it throws in some extra .o
15285	# files that make .init and .fini sections work.
15286	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15287      else
15288	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15289      fi
15290      hardcode_libdir_flag_spec_F77='-L$libdir'
15291      hardcode_direct_F77=yes
15292      hardcode_minus_L_F77=yes
15293      hardcode_shlibpath_var_F77=no
15294      ;;
15295
15296    sysv4)
15297      case $host_vendor in
15298	sni)
15299	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15300	  hardcode_direct_F77=yes # is this really true???
15301	;;
15302	siemens)
15303	  ## LD is ld it makes a PLAMLIB
15304	  ## CC just makes a GrossModule.
15305	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15306	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15307	  hardcode_direct_F77=no
15308        ;;
15309	motorola)
15310	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15311	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15312	;;
15313      esac
15314      runpath_var='LD_RUN_PATH'
15315      hardcode_shlibpath_var_F77=no
15316      ;;
15317
15318    sysv4.3*)
15319      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320      hardcode_shlibpath_var_F77=no
15321      export_dynamic_flag_spec_F77='-Bexport'
15322      ;;
15323
15324    sysv4*MP*)
15325      if test -d /usr/nec; then
15326	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327	hardcode_shlibpath_var_F77=no
15328	runpath_var=LD_RUN_PATH
15329	hardcode_runpath_var=yes
15330	ld_shlibs_F77=yes
15331      fi
15332      ;;
15333
15334    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15335      no_undefined_flag_F77='${wl}-z,text'
15336      archive_cmds_need_lc_F77=no
15337      hardcode_shlibpath_var_F77=no
15338      runpath_var='LD_RUN_PATH'
15339
15340      if test "$GCC" = yes; then
15341	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15342	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15343      else
15344	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15345	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15346      fi
15347      ;;
15348
15349    sysv5* | sco3.2v5* | sco5v6*)
15350      # Note: We can NOT use -z defs as we might desire, because we do not
15351      # link with -lc, and that would cause any symbols used from libc to
15352      # always be unresolved, which means just about no library would
15353      # ever link correctly.  If we're not using GNU ld we use -z text
15354      # though, which does catch some bad symbols but isn't as heavy-handed
15355      # as -z defs.
15356      no_undefined_flag_F77='${wl}-z,text'
15357      allow_undefined_flag_F77='${wl}-z,nodefs'
15358      archive_cmds_need_lc_F77=no
15359      hardcode_shlibpath_var_F77=no
15360      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15361      hardcode_libdir_separator_F77=':'
15362      link_all_deplibs_F77=yes
15363      export_dynamic_flag_spec_F77='${wl}-Bexport'
15364      runpath_var='LD_RUN_PATH'
15365
15366      if test "$GCC" = yes; then
15367	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369      else
15370	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15371	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15372      fi
15373      ;;
15374
15375    uts4*)
15376      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15377      hardcode_libdir_flag_spec_F77='-L$libdir'
15378      hardcode_shlibpath_var_F77=no
15379      ;;
15380
15381    *)
15382      ld_shlibs_F77=no
15383      ;;
15384    esac
15385  fi
15386
15387echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15388echo "${ECHO_T}$ld_shlibs_F77" >&6
15389test "$ld_shlibs_F77" = no && can_build_shared=no
15390
15391#
15392# Do we need to explicitly link libc?
15393#
15394case "x$archive_cmds_need_lc_F77" in
15395x|xyes)
15396  # Assume -lc should be added
15397  archive_cmds_need_lc_F77=yes
15398
15399  if test "$enable_shared" = yes && test "$GCC" = yes; then
15400    case $archive_cmds_F77 in
15401    *'~'*)
15402      # FIXME: we may have to deal with multi-command sequences.
15403      ;;
15404    '$CC '*)
15405      # Test whether the compiler implicitly links with -lc since on some
15406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15407      # to ld, don't add -lc before -lgcc.
15408      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15409echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15410      $rm conftest*
15411      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15412
15413      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414  (eval $ac_compile) 2>&5
15415  ac_status=$?
15416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417  (exit $ac_status); } 2>conftest.err; then
15418        soname=conftest
15419        lib=conftest
15420        libobjs=conftest.$ac_objext
15421        deplibs=
15422        wl=$lt_prog_compiler_wl_F77
15423	pic_flag=$lt_prog_compiler_pic_F77
15424        compiler_flags=-v
15425        linker_flags=-v
15426        verstring=
15427        output_objdir=.
15428        libname=conftest
15429        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15430        allow_undefined_flag_F77=
15431        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15432  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15433  ac_status=$?
15434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435  (exit $ac_status); }
15436        then
15437	  archive_cmds_need_lc_F77=no
15438        else
15439	  archive_cmds_need_lc_F77=yes
15440        fi
15441        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15442      else
15443        cat conftest.err 1>&5
15444      fi
15445      $rm conftest*
15446      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15447echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15448      ;;
15449    esac
15450  fi
15451  ;;
15452esac
15453
15454echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15455echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15456library_names_spec=
15457libname_spec='lib$name'
15458soname_spec=
15459shrext_cmds=".so"
15460postinstall_cmds=
15461postuninstall_cmds=
15462finish_cmds=
15463finish_eval=
15464shlibpath_var=
15465shlibpath_overrides_runpath=unknown
15466version_type=none
15467dynamic_linker="$host_os ld.so"
15468sys_lib_dlsearch_path_spec="/lib /usr/lib"
15469if test "$GCC" = yes; then
15470  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15471  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15472    # if the path contains ";" then we assume it to be the separator
15473    # otherwise default to the standard path separator (i.e. ":") - it is
15474    # assumed that no part of a normal pathname contains ";" but that should
15475    # okay in the real world where ";" in dirpaths is itself problematic.
15476    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15477  else
15478    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15479  fi
15480else
15481  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15482fi
15483need_lib_prefix=unknown
15484hardcode_into_libs=no
15485
15486# when you set need_version to no, make sure it does not cause -set_version
15487# flags to be left without arguments
15488need_version=unknown
15489
15490case $host_os in
15491aix3*)
15492  version_type=linux
15493  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15494  shlibpath_var=LIBPATH
15495
15496  # AIX 3 has no versioning support, so we append a major version to the name.
15497  soname_spec='${libname}${release}${shared_ext}$major'
15498  ;;
15499
15500aix4* | aix5*)
15501  version_type=linux
15502  need_lib_prefix=no
15503  need_version=no
15504  hardcode_into_libs=yes
15505  if test "$host_cpu" = ia64; then
15506    # AIX 5 supports IA64
15507    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15508    shlibpath_var=LD_LIBRARY_PATH
15509  else
15510    # With GCC up to 2.95.x, collect2 would create an import file
15511    # for dependence libraries.  The import file would start with
15512    # the line `#! .'.  This would cause the generated library to
15513    # depend on `.', always an invalid library.  This was fixed in
15514    # development snapshots of GCC prior to 3.0.
15515    case $host_os in
15516      aix4 | aix4.[01] | aix4.[01].*)
15517      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15518	   echo ' yes '
15519	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15520	:
15521      else
15522	can_build_shared=no
15523      fi
15524      ;;
15525    esac
15526    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15527    # soname into executable. Probably we can add versioning support to
15528    # collect2, so additional links can be useful in future.
15529    if test "$aix_use_runtimelinking" = yes; then
15530      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15531      # instead of lib<name>.a to let people know that these are not
15532      # typical AIX shared libraries.
15533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534    else
15535      # We preserve .a as extension for shared libraries through AIX4.2
15536      # and later when we are not doing run time linking.
15537      library_names_spec='${libname}${release}.a $libname.a'
15538      soname_spec='${libname}${release}${shared_ext}$major'
15539    fi
15540    shlibpath_var=LIBPATH
15541  fi
15542  ;;
15543
15544amigaos*)
15545  library_names_spec='$libname.ixlibrary $libname.a'
15546  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15547  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'
15548  ;;
15549
15550beos*)
15551  library_names_spec='${libname}${shared_ext}'
15552  dynamic_linker="$host_os ld.so"
15553  shlibpath_var=LIBRARY_PATH
15554  ;;
15555
15556bsdi[45]*)
15557  version_type=linux
15558  need_version=no
15559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560  soname_spec='${libname}${release}${shared_ext}$major'
15561  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15562  shlibpath_var=LD_LIBRARY_PATH
15563  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15564  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15565  # the default ld.so.conf also contains /usr/contrib/lib and
15566  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15567  # libtool to hard-code these into programs
15568  ;;
15569
15570cygwin* | mingw* | pw32*)
15571  version_type=windows
15572  shrext_cmds=".dll"
15573  need_version=no
15574  need_lib_prefix=no
15575
15576  case $GCC,$host_os in
15577  yes,cygwin* | yes,mingw* | yes,pw32*)
15578    library_names_spec='$libname.dll.a'
15579    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15580    postinstall_cmds='base_file=`basename \${file}`~
15581      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15582      dldir=$destdir/`dirname \$dlpath`~
15583      test -d \$dldir || mkdir -p \$dldir~
15584      $install_prog $dir/$dlname \$dldir/$dlname~
15585      chmod a+x \$dldir/$dlname'
15586    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15587      dlpath=$dir/\$dldll~
15588       $rm \$dlpath'
15589    shlibpath_overrides_runpath=yes
15590
15591    case $host_os in
15592    cygwin*)
15593      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15594      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15595      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15596      ;;
15597    mingw*)
15598      # MinGW DLLs use traditional 'lib' prefix
15599      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15600      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15601      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15602        # It is most probably a Windows format PATH printed by
15603        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15604        # path with ; separators, and with drive letters. We can handle the
15605        # drive letters (cygwin fileutils understands them), so leave them,
15606        # especially as we might pass files found there to a mingw objdump,
15607        # which wouldn't understand a cygwinified path. Ahh.
15608        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15609      else
15610        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15611      fi
15612      ;;
15613    pw32*)
15614      # pw32 DLLs use 'pw' prefix rather than 'lib'
15615      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15616      ;;
15617    esac
15618    ;;
15619
15620  *)
15621    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15622    ;;
15623  esac
15624  dynamic_linker='Win32 ld.exe'
15625  # FIXME: first we should search . and the directory the executable is in
15626  shlibpath_var=PATH
15627  ;;
15628
15629darwin* | rhapsody*)
15630  dynamic_linker="$host_os dyld"
15631  version_type=darwin
15632  need_lib_prefix=no
15633  need_version=no
15634  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15635  soname_spec='${libname}${release}${major}$shared_ext'
15636  shlibpath_overrides_runpath=yes
15637  shlibpath_var=DYLD_LIBRARY_PATH
15638  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15639  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15640  if test "$GCC" = yes; then
15641    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"`
15642  else
15643    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15644  fi
15645  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15646  ;;
15647
15648dgux*)
15649  version_type=linux
15650  need_lib_prefix=no
15651  need_version=no
15652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15653  soname_spec='${libname}${release}${shared_ext}$major'
15654  shlibpath_var=LD_LIBRARY_PATH
15655  ;;
15656
15657freebsd1*)
15658  dynamic_linker=no
15659  ;;
15660
15661kfreebsd*-gnu)
15662  version_type=linux
15663  need_lib_prefix=no
15664  need_version=no
15665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15666  soname_spec='${libname}${release}${shared_ext}$major'
15667  shlibpath_var=LD_LIBRARY_PATH
15668  shlibpath_overrides_runpath=no
15669  hardcode_into_libs=yes
15670  dynamic_linker='GNU ld.so'
15671  ;;
15672
15673freebsd* | dragonfly*)
15674  # DragonFly does not have aout.  When/if they implement a new
15675  # versioning mechanism, adjust this.
15676  if test -x /usr/bin/objformat; then
15677    objformat=`/usr/bin/objformat`
15678  else
15679    case $host_os in
15680    freebsd[123]*) objformat=aout ;;
15681    *) objformat=elf ;;
15682    esac
15683  fi
15684  version_type=freebsd-$objformat
15685  case $version_type in
15686    freebsd-elf*)
15687      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15688      need_version=no
15689      need_lib_prefix=no
15690      ;;
15691    freebsd-*)
15692      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15693      need_version=yes
15694      ;;
15695  esac
15696  shlibpath_var=LD_LIBRARY_PATH
15697  case $host_os in
15698  freebsd2*)
15699    shlibpath_overrides_runpath=yes
15700    ;;
15701  freebsd3.[01]* | freebsdelf3.[01]*)
15702    shlibpath_overrides_runpath=yes
15703    hardcode_into_libs=yes
15704    ;;
15705  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15706  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15707    shlibpath_overrides_runpath=no
15708    hardcode_into_libs=yes
15709    ;;
15710  freebsd*) # from 4.6 on
15711    shlibpath_overrides_runpath=yes
15712    hardcode_into_libs=yes
15713    ;;
15714  esac
15715  ;;
15716
15717gnu*)
15718  version_type=linux
15719  need_lib_prefix=no
15720  need_version=no
15721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15722  soname_spec='${libname}${release}${shared_ext}$major'
15723  shlibpath_var=LD_LIBRARY_PATH
15724  hardcode_into_libs=yes
15725  ;;
15726
15727hpux9* | hpux10* | hpux11*)
15728  # Give a soname corresponding to the major version so that dld.sl refuses to
15729  # link against other versions.
15730  version_type=sunos
15731  need_lib_prefix=no
15732  need_version=no
15733  case $host_cpu in
15734  ia64*)
15735    shrext_cmds='.so'
15736    hardcode_into_libs=yes
15737    dynamic_linker="$host_os dld.so"
15738    shlibpath_var=LD_LIBRARY_PATH
15739    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741    soname_spec='${libname}${release}${shared_ext}$major'
15742    if test "X$HPUX_IA64_MODE" = X32; then
15743      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15744    else
15745      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15746    fi
15747    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15748    ;;
15749   hppa*64*)
15750     shrext_cmds='.sl'
15751     hardcode_into_libs=yes
15752     dynamic_linker="$host_os dld.sl"
15753     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15754     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756     soname_spec='${libname}${release}${shared_ext}$major'
15757     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15758     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15759     ;;
15760   *)
15761    shrext_cmds='.sl'
15762    dynamic_linker="$host_os dld.sl"
15763    shlibpath_var=SHLIB_PATH
15764    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766    soname_spec='${libname}${release}${shared_ext}$major'
15767    ;;
15768  esac
15769  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15770  postinstall_cmds='chmod 555 $lib'
15771  ;;
15772
15773interix3*)
15774  version_type=linux
15775  need_lib_prefix=no
15776  need_version=no
15777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15778  soname_spec='${libname}${release}${shared_ext}$major'
15779  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15780  shlibpath_var=LD_LIBRARY_PATH
15781  shlibpath_overrides_runpath=no
15782  hardcode_into_libs=yes
15783  ;;
15784
15785irix5* | irix6* | nonstopux*)
15786  case $host_os in
15787    nonstopux*) version_type=nonstopux ;;
15788    *)
15789	if test "$lt_cv_prog_gnu_ld" = yes; then
15790		version_type=linux
15791	else
15792		version_type=irix
15793	fi ;;
15794  esac
15795  need_lib_prefix=no
15796  need_version=no
15797  soname_spec='${libname}${release}${shared_ext}$major'
15798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15799  case $host_os in
15800  irix5* | nonstopux*)
15801    libsuff= shlibsuff=
15802    ;;
15803  *)
15804    case $LD in # libtool.m4 will add one of these switches to LD
15805    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15806      libsuff= shlibsuff= libmagic=32-bit;;
15807    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15808      libsuff=32 shlibsuff=N32 libmagic=N32;;
15809    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15810      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15811    *) libsuff= shlibsuff= libmagic=never-match;;
15812    esac
15813    ;;
15814  esac
15815  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15816  shlibpath_overrides_runpath=no
15817  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15818  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15819  hardcode_into_libs=yes
15820  ;;
15821
15822# No shared lib support for Linux oldld, aout, or coff.
15823linux*oldld* | linux*aout* | linux*coff*)
15824  dynamic_linker=no
15825  ;;
15826
15827# This must be Linux ELF.
15828linux*)
15829  version_type=linux
15830  need_lib_prefix=no
15831  need_version=no
15832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833  soname_spec='${libname}${release}${shared_ext}$major'
15834  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15835  shlibpath_var=LD_LIBRARY_PATH
15836  shlibpath_overrides_runpath=no
15837  # This implies no fast_install, which is unacceptable.
15838  # Some rework will be needed to allow for fast_install
15839  # before this can be enabled.
15840  hardcode_into_libs=yes
15841
15842  # Append ld.so.conf contents to the search path
15843  if test -f /etc/ld.so.conf; then
15844    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15845    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15846  fi
15847
15848  # We used to test for /lib/ld.so.1 and disable shared libraries on
15849  # powerpc, because MkLinux only supported shared libraries with the
15850  # GNU dynamic linker.  Since this was broken with cross compilers,
15851  # most powerpc-linux boxes support dynamic linking these days and
15852  # people can always --disable-shared, the test was removed, and we
15853  # assume the GNU/Linux dynamic linker is in use.
15854  dynamic_linker='GNU/Linux ld.so'
15855  ;;
15856
15857knetbsd*-gnu)
15858  version_type=linux
15859  need_lib_prefix=no
15860  need_version=no
15861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15862  soname_spec='${libname}${release}${shared_ext}$major'
15863  shlibpath_var=LD_LIBRARY_PATH
15864  shlibpath_overrides_runpath=no
15865  hardcode_into_libs=yes
15866  dynamic_linker='GNU ld.so'
15867  ;;
15868
15869netbsd*)
15870  version_type=sunos
15871  need_lib_prefix=no
15872  need_version=no
15873  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15875    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15876    dynamic_linker='NetBSD (a.out) ld.so'
15877  else
15878    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15879    soname_spec='${libname}${release}${shared_ext}$major'
15880    dynamic_linker='NetBSD ld.elf_so'
15881  fi
15882  shlibpath_var=LD_LIBRARY_PATH
15883  shlibpath_overrides_runpath=yes
15884  hardcode_into_libs=yes
15885  ;;
15886
15887newsos6)
15888  version_type=linux
15889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890  shlibpath_var=LD_LIBRARY_PATH
15891  shlibpath_overrides_runpath=yes
15892  ;;
15893
15894nto-qnx*)
15895  version_type=linux
15896  need_lib_prefix=no
15897  need_version=no
15898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899  soname_spec='${libname}${release}${shared_ext}$major'
15900  shlibpath_var=LD_LIBRARY_PATH
15901  shlibpath_overrides_runpath=yes
15902  ;;
15903
15904openbsd*)
15905  version_type=sunos
15906  sys_lib_dlsearch_path_spec="/usr/lib"
15907  need_lib_prefix=no
15908  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15909  case $host_os in
15910    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15911    *)                         need_version=no  ;;
15912  esac
15913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15914  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15915  shlibpath_var=LD_LIBRARY_PATH
15916  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15917    case $host_os in
15918      openbsd2.[89] | openbsd2.[89].*)
15919	shlibpath_overrides_runpath=no
15920	;;
15921      *)
15922	shlibpath_overrides_runpath=yes
15923	;;
15924      esac
15925  else
15926    shlibpath_overrides_runpath=yes
15927  fi
15928  ;;
15929
15930os2*)
15931  libname_spec='$name'
15932  shrext_cmds=".dll"
15933  need_lib_prefix=no
15934  library_names_spec='$libname${shared_ext} $libname.a'
15935  dynamic_linker='OS/2 ld.exe'
15936  shlibpath_var=LIBPATH
15937  ;;
15938
15939osf3* | osf4* | osf5*)
15940  version_type=osf
15941  need_lib_prefix=no
15942  need_version=no
15943  soname_spec='${libname}${release}${shared_ext}$major'
15944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945  shlibpath_var=LD_LIBRARY_PATH
15946  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15947  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15948  ;;
15949
15950solaris*)
15951  version_type=linux
15952  need_lib_prefix=no
15953  need_version=no
15954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955  soname_spec='${libname}${release}${shared_ext}$major'
15956  shlibpath_var=LD_LIBRARY_PATH
15957  shlibpath_overrides_runpath=yes
15958  hardcode_into_libs=yes
15959  # ldd complains unless libraries are executable
15960  postinstall_cmds='chmod +x $lib'
15961  ;;
15962
15963sunos4*)
15964  version_type=sunos
15965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15966  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15967  shlibpath_var=LD_LIBRARY_PATH
15968  shlibpath_overrides_runpath=yes
15969  if test "$with_gnu_ld" = yes; then
15970    need_lib_prefix=no
15971  fi
15972  need_version=yes
15973  ;;
15974
15975sysv4 | sysv4.3*)
15976  version_type=linux
15977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978  soname_spec='${libname}${release}${shared_ext}$major'
15979  shlibpath_var=LD_LIBRARY_PATH
15980  case $host_vendor in
15981    sni)
15982      shlibpath_overrides_runpath=no
15983      need_lib_prefix=no
15984      export_dynamic_flag_spec='${wl}-Blargedynsym'
15985      runpath_var=LD_RUN_PATH
15986      ;;
15987    siemens)
15988      need_lib_prefix=no
15989      ;;
15990    motorola)
15991      need_lib_prefix=no
15992      need_version=no
15993      shlibpath_overrides_runpath=no
15994      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15995      ;;
15996  esac
15997  ;;
15998
15999sysv4*MP*)
16000  if test -d /usr/nec ;then
16001    version_type=linux
16002    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16003    soname_spec='$libname${shared_ext}.$major'
16004    shlibpath_var=LD_LIBRARY_PATH
16005  fi
16006  ;;
16007
16008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16009  version_type=freebsd-elf
16010  need_lib_prefix=no
16011  need_version=no
16012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16013  soname_spec='${libname}${release}${shared_ext}$major'
16014  shlibpath_var=LD_LIBRARY_PATH
16015  hardcode_into_libs=yes
16016  if test "$with_gnu_ld" = yes; then
16017    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16018    shlibpath_overrides_runpath=no
16019  else
16020    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16021    shlibpath_overrides_runpath=yes
16022    case $host_os in
16023      sco3.2v5*)
16024        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16025	;;
16026    esac
16027  fi
16028  sys_lib_dlsearch_path_spec='/usr/lib'
16029  ;;
16030
16031uts4*)
16032  version_type=linux
16033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034  soname_spec='${libname}${release}${shared_ext}$major'
16035  shlibpath_var=LD_LIBRARY_PATH
16036  ;;
16037
16038*)
16039  dynamic_linker=no
16040  ;;
16041esac
16042echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16043echo "${ECHO_T}$dynamic_linker" >&6
16044test "$dynamic_linker" = no && can_build_shared=no
16045
16046variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16047if test "$GCC" = yes; then
16048  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16049fi
16050
16051echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16052echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16053hardcode_action_F77=
16054if test -n "$hardcode_libdir_flag_spec_F77" || \
16055   test -n "$runpath_var_F77" || \
16056   test "X$hardcode_automatic_F77" = "Xyes" ; then
16057
16058  # We can hardcode non-existant directories.
16059  if test "$hardcode_direct_F77" != no &&
16060     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16061     # have to relink, otherwise we might link with an installed library
16062     # when we should be linking with a yet-to-be-installed one
16063     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16064     test "$hardcode_minus_L_F77" != no; then
16065    # Linking always hardcodes the temporary library directory.
16066    hardcode_action_F77=relink
16067  else
16068    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16069    hardcode_action_F77=immediate
16070  fi
16071else
16072  # We cannot hardcode anything, or else we can only hardcode existing
16073  # directories.
16074  hardcode_action_F77=unsupported
16075fi
16076echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16077echo "${ECHO_T}$hardcode_action_F77" >&6
16078
16079if test "$hardcode_action_F77" = relink; then
16080  # Fast installation is not supported
16081  enable_fast_install=no
16082elif test "$shlibpath_overrides_runpath" = yes ||
16083     test "$enable_shared" = no; then
16084  # Fast installation is not necessary
16085  enable_fast_install=needless
16086fi
16087
16088
16089# The else clause should only fire when bootstrapping the
16090# libtool distribution, otherwise you forgot to ship ltmain.sh
16091# with your package, and you will get complaints that there are
16092# no rules to generate ltmain.sh.
16093if test -f "$ltmain"; then
16094  # See if we are running on zsh, and set the options which allow our commands through
16095  # without removal of \ escapes.
16096  if test -n "${ZSH_VERSION+set}" ; then
16097    setopt NO_GLOB_SUBST
16098  fi
16099  # Now quote all the things that may contain metacharacters while being
16100  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16101  # variables and quote the copies for generation of the libtool script.
16102  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16103    SED SHELL STRIP \
16104    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16105    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16106    deplibs_check_method reload_flag reload_cmds need_locks \
16107    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16108    lt_cv_sys_global_symbol_to_c_name_address \
16109    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16110    old_postinstall_cmds old_postuninstall_cmds \
16111    compiler_F77 \
16112    CC_F77 \
16113    LD_F77 \
16114    lt_prog_compiler_wl_F77 \
16115    lt_prog_compiler_pic_F77 \
16116    lt_prog_compiler_static_F77 \
16117    lt_prog_compiler_no_builtin_flag_F77 \
16118    export_dynamic_flag_spec_F77 \
16119    thread_safe_flag_spec_F77 \
16120    whole_archive_flag_spec_F77 \
16121    enable_shared_with_static_runtimes_F77 \
16122    old_archive_cmds_F77 \
16123    old_archive_from_new_cmds_F77 \
16124    predep_objects_F77 \
16125    postdep_objects_F77 \
16126    predeps_F77 \
16127    postdeps_F77 \
16128    compiler_lib_search_path_F77 \
16129    archive_cmds_F77 \
16130    archive_expsym_cmds_F77 \
16131    postinstall_cmds_F77 \
16132    postuninstall_cmds_F77 \
16133    old_archive_from_expsyms_cmds_F77 \
16134    allow_undefined_flag_F77 \
16135    no_undefined_flag_F77 \
16136    export_symbols_cmds_F77 \
16137    hardcode_libdir_flag_spec_F77 \
16138    hardcode_libdir_flag_spec_ld_F77 \
16139    hardcode_libdir_separator_F77 \
16140    hardcode_automatic_F77 \
16141    module_cmds_F77 \
16142    module_expsym_cmds_F77 \
16143    lt_cv_prog_compiler_c_o_F77 \
16144    exclude_expsyms_F77 \
16145    include_expsyms_F77; do
16146
16147    case $var in
16148    old_archive_cmds_F77 | \
16149    old_archive_from_new_cmds_F77 | \
16150    archive_cmds_F77 | \
16151    archive_expsym_cmds_F77 | \
16152    module_cmds_F77 | \
16153    module_expsym_cmds_F77 | \
16154    old_archive_from_expsyms_cmds_F77 | \
16155    export_symbols_cmds_F77 | \
16156    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16157    postinstall_cmds | postuninstall_cmds | \
16158    old_postinstall_cmds | old_postuninstall_cmds | \
16159    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16160      # Double-quote double-evaled strings.
16161      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16162      ;;
16163    *)
16164      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16165      ;;
16166    esac
16167  done
16168
16169  case $lt_echo in
16170  *'\$0 --fallback-echo"')
16171    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16172    ;;
16173  esac
16174
16175cfgfile="$ofile"
16176
16177  cat <<__EOF__ >> "$cfgfile"
16178# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16179
16180# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16181
16182# Shell to use when invoking shell scripts.
16183SHELL=$lt_SHELL
16184
16185# Whether or not to build shared libraries.
16186build_libtool_libs=$enable_shared
16187
16188# Whether or not to build static libraries.
16189build_old_libs=$enable_static
16190
16191# Whether or not to add -lc for building shared libraries.
16192build_libtool_need_lc=$archive_cmds_need_lc_F77
16193
16194# Whether or not to disallow shared libs when runtime libs are static
16195allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16196
16197# Whether or not to optimize for fast installation.
16198fast_install=$enable_fast_install
16199
16200# The host system.
16201host_alias=$host_alias
16202host=$host
16203host_os=$host_os
16204
16205# The build system.
16206build_alias=$build_alias
16207build=$build
16208build_os=$build_os
16209
16210# An echo program that does not interpret backslashes.
16211echo=$lt_echo
16212
16213# The archiver.
16214AR=$lt_AR
16215AR_FLAGS=$lt_AR_FLAGS
16216
16217# A C compiler.
16218LTCC=$lt_LTCC
16219
16220# LTCC compiler flags.
16221LTCFLAGS=$lt_LTCFLAGS
16222
16223# A language-specific compiler.
16224CC=$lt_compiler_F77
16225
16226# Is the compiler the GNU C compiler?
16227with_gcc=$GCC_F77
16228
16229# An ERE matcher.
16230EGREP=$lt_EGREP
16231
16232# The linker used to build libraries.
16233LD=$lt_LD_F77
16234
16235# Whether we need hard or soft links.
16236LN_S=$lt_LN_S
16237
16238# A BSD-compatible nm program.
16239NM=$lt_NM
16240
16241# A symbol stripping program
16242STRIP=$lt_STRIP
16243
16244# Used to examine libraries when file_magic_cmd begins "file"
16245MAGIC_CMD=$MAGIC_CMD
16246
16247# Used on cygwin: DLL creation program.
16248DLLTOOL="$DLLTOOL"
16249
16250# Used on cygwin: object dumper.
16251OBJDUMP="$OBJDUMP"
16252
16253# Used on cygwin: assembler.
16254AS="$AS"
16255
16256# The name of the directory that contains temporary libtool files.
16257objdir=$objdir
16258
16259# How to create reloadable object files.
16260reload_flag=$lt_reload_flag
16261reload_cmds=$lt_reload_cmds
16262
16263# How to pass a linker flag through the compiler.
16264wl=$lt_lt_prog_compiler_wl_F77
16265
16266# Object file suffix (normally "o").
16267objext="$ac_objext"
16268
16269# Old archive suffix (normally "a").
16270libext="$libext"
16271
16272# Shared library suffix (normally ".so").
16273shrext_cmds='$shrext_cmds'
16274
16275# Executable file suffix (normally "").
16276exeext="$exeext"
16277
16278# Additional compiler flags for building library objects.
16279pic_flag=$lt_lt_prog_compiler_pic_F77
16280pic_mode=$pic_mode
16281
16282# What is the maximum length of a command?
16283max_cmd_len=$lt_cv_sys_max_cmd_len
16284
16285# Does compiler simultaneously support -c and -o options?
16286compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16287
16288# Must we lock files when doing compilation?
16289need_locks=$lt_need_locks
16290
16291# Do we need the lib prefix for modules?
16292need_lib_prefix=$need_lib_prefix
16293
16294# Do we need a version for libraries?
16295need_version=$need_version
16296
16297# Whether dlopen is supported.
16298dlopen_support=$enable_dlopen
16299
16300# Whether dlopen of programs is supported.
16301dlopen_self=$enable_dlopen_self
16302
16303# Whether dlopen of statically linked programs is supported.
16304dlopen_self_static=$enable_dlopen_self_static
16305
16306# Compiler flag to prevent dynamic linking.
16307link_static_flag=$lt_lt_prog_compiler_static_F77
16308
16309# Compiler flag to turn off builtin functions.
16310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16311
16312# Compiler flag to allow reflexive dlopens.
16313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16314
16315# Compiler flag to generate shared objects directly from archives.
16316whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16317
16318# Compiler flag to generate thread-safe objects.
16319thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16320
16321# Library versioning type.
16322version_type=$version_type
16323
16324# Format of library name prefix.
16325libname_spec=$lt_libname_spec
16326
16327# List of archive names.  First name is the real one, the rest are links.
16328# The last name is the one that the linker finds with -lNAME.
16329library_names_spec=$lt_library_names_spec
16330
16331# The coded name of the library, if different from the real name.
16332soname_spec=$lt_soname_spec
16333
16334# Commands used to build and install an old-style archive.
16335RANLIB=$lt_RANLIB
16336old_archive_cmds=$lt_old_archive_cmds_F77
16337old_postinstall_cmds=$lt_old_postinstall_cmds
16338old_postuninstall_cmds=$lt_old_postuninstall_cmds
16339
16340# Create an old-style archive from a shared archive.
16341old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16342
16343# Create a temporary old-style archive to link instead of a shared archive.
16344old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16345
16346# Commands used to build and install a shared archive.
16347archive_cmds=$lt_archive_cmds_F77
16348archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16349postinstall_cmds=$lt_postinstall_cmds
16350postuninstall_cmds=$lt_postuninstall_cmds
16351
16352# Commands used to build a loadable module (assumed same as above if empty)
16353module_cmds=$lt_module_cmds_F77
16354module_expsym_cmds=$lt_module_expsym_cmds_F77
16355
16356# Commands to strip libraries.
16357old_striplib=$lt_old_striplib
16358striplib=$lt_striplib
16359
16360# Dependencies to place before the objects being linked to create a
16361# shared library.
16362predep_objects=$lt_predep_objects_F77
16363
16364# Dependencies to place after the objects being linked to create a
16365# shared library.
16366postdep_objects=$lt_postdep_objects_F77
16367
16368# Dependencies to place before the objects being linked to create a
16369# shared library.
16370predeps=$lt_predeps_F77
16371
16372# Dependencies to place after the objects being linked to create a
16373# shared library.
16374postdeps=$lt_postdeps_F77
16375
16376# The library search path used internally by the compiler when linking
16377# a shared library.
16378compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16379
16380# Method to check whether dependent libraries are shared objects.
16381deplibs_check_method=$lt_deplibs_check_method
16382
16383# Command to use when deplibs_check_method == file_magic.
16384file_magic_cmd=$lt_file_magic_cmd
16385
16386# Flag that allows shared libraries with undefined symbols to be built.
16387allow_undefined_flag=$lt_allow_undefined_flag_F77
16388
16389# Flag that forces no undefined symbols.
16390no_undefined_flag=$lt_no_undefined_flag_F77
16391
16392# Commands used to finish a libtool library installation in a directory.
16393finish_cmds=$lt_finish_cmds
16394
16395# Same as above, but a single script fragment to be evaled but not shown.
16396finish_eval=$lt_finish_eval
16397
16398# Take the output of nm and produce a listing of raw symbols and C names.
16399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16400
16401# Transform the output of nm in a proper C declaration
16402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16403
16404# Transform the output of nm in a C name address pair
16405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16406
16407# This is the shared library runtime path variable.
16408runpath_var=$runpath_var
16409
16410# This is the shared library path variable.
16411shlibpath_var=$shlibpath_var
16412
16413# Is shlibpath searched before the hard-coded library search path?
16414shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16415
16416# How to hardcode a shared library path into an executable.
16417hardcode_action=$hardcode_action_F77
16418
16419# Whether we should hardcode library paths into libraries.
16420hardcode_into_libs=$hardcode_into_libs
16421
16422# Flag to hardcode \$libdir into a binary during linking.
16423# This must work even if \$libdir does not exist.
16424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16425
16426# If ld is used when linking, flag to hardcode \$libdir into
16427# a binary during linking. This must work even if \$libdir does
16428# not exist.
16429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16430
16431# Whether we need a single -rpath flag with a separated argument.
16432hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16433
16434# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16435# resulting binary.
16436hardcode_direct=$hardcode_direct_F77
16437
16438# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16439# resulting binary.
16440hardcode_minus_L=$hardcode_minus_L_F77
16441
16442# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16443# the resulting binary.
16444hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16445
16446# Set to yes if building a shared library automatically hardcodes DIR into the library
16447# and all subsequent libraries and executables linked against it.
16448hardcode_automatic=$hardcode_automatic_F77
16449
16450# Variables whose values should be saved in libtool wrapper scripts and
16451# restored at relink time.
16452variables_saved_for_relink="$variables_saved_for_relink"
16453
16454# Whether libtool must link a program against all its dependency libraries.
16455link_all_deplibs=$link_all_deplibs_F77
16456
16457# Compile-time system search path for libraries
16458sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16459
16460# Run-time system search path for libraries
16461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16462
16463# Fix the shell variable \$srcfile for the compiler.
16464fix_srcfile_path="$fix_srcfile_path_F77"
16465
16466# Set to yes if exported symbols are required.
16467always_export_symbols=$always_export_symbols_F77
16468
16469# The commands to list exported symbols.
16470export_symbols_cmds=$lt_export_symbols_cmds_F77
16471
16472# The commands to extract the exported symbol list from a shared archive.
16473extract_expsyms_cmds=$lt_extract_expsyms_cmds
16474
16475# Symbols that should not be listed in the preloaded symbols.
16476exclude_expsyms=$lt_exclude_expsyms_F77
16477
16478# Symbols that must always be exported.
16479include_expsyms=$lt_include_expsyms_F77
16480
16481# ### END LIBTOOL TAG CONFIG: $tagname
16482
16483__EOF__
16484
16485
16486else
16487  # If there is no Makefile yet, we rely on a make rule to execute
16488  # `config.status --recheck' to rerun these tests and create the
16489  # libtool script then.
16490  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16491  if test -f "$ltmain_in"; then
16492    test -f Makefile && make "$ltmain"
16493  fi
16494fi
16495
16496
16497ac_ext=c
16498ac_cpp='$CPP $CPPFLAGS'
16499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501ac_compiler_gnu=$ac_cv_c_compiler_gnu
16502
16503CC="$lt_save_CC"
16504
16505	else
16506	  tagname=""
16507	fi
16508	;;
16509
16510      GCJ)
16511	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16512
16513
16514
16515# Source file extension for Java test sources.
16516ac_ext=java
16517
16518# Object file extension for compiled Java test sources.
16519objext=o
16520objext_GCJ=$objext
16521
16522# Code to be used in simple compile tests
16523lt_simple_compile_test_code="class foo {}\n"
16524
16525# Code to be used in simple link tests
16526lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16527
16528# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16529
16530# If no C compiler was specified, use CC.
16531LTCC=${LTCC-"$CC"}
16532
16533# If no C compiler flags were specified, use CFLAGS.
16534LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16535
16536# Allow CC to be a program name with arguments.
16537compiler=$CC
16538
16539
16540# save warnings/boilerplate of simple test code
16541ac_outfile=conftest.$ac_objext
16542printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16544_lt_compiler_boilerplate=`cat conftest.err`
16545$rm conftest*
16546
16547ac_outfile=conftest.$ac_objext
16548printf "$lt_simple_link_test_code" >conftest.$ac_ext
16549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16550_lt_linker_boilerplate=`cat conftest.err`
16551$rm conftest*
16552
16553
16554# Allow CC to be a program name with arguments.
16555lt_save_CC="$CC"
16556CC=${GCJ-"gcj"}
16557compiler=$CC
16558compiler_GCJ=$CC
16559for cc_temp in $compiler""; do
16560  case $cc_temp in
16561    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16562    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16563    \-*) ;;
16564    *) break;;
16565  esac
16566done
16567cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16568
16569
16570# GCJ did not exist at the time GCC didn't implicitly link libc in.
16571archive_cmds_need_lc_GCJ=no
16572
16573old_archive_cmds_GCJ=$old_archive_cmds
16574
16575## CAVEAT EMPTOR:
16576## There is no encapsulation within the following macros, do not change
16577## the running order or otherwise move them around unless you know exactly
16578## what you are doing...
16579
16580lt_prog_compiler_no_builtin_flag_GCJ=
16581
16582if test "$GCC" = yes; then
16583  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16584
16585
16586echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16587echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16588if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16589  echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591  lt_cv_prog_compiler_rtti_exceptions=no
16592  ac_outfile=conftest.$ac_objext
16593   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16594   lt_compiler_flag="-fno-rtti -fno-exceptions"
16595   # Insert the option either (1) after the last *FLAGS variable, or
16596   # (2) before a word containing "conftest.", or (3) at the end.
16597   # Note that $ac_compile itself does not contain backslashes and begins
16598   # with a dollar sign (not a hyphen), so the echo should work correctly.
16599   # The option is referenced via a variable to avoid confusing sed.
16600   lt_compile=`echo "$ac_compile" | $SED \
16601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16603   -e 's:$: $lt_compiler_flag:'`
16604   (eval echo "\"\$as_me:16604: $lt_compile\"" >&5)
16605   (eval "$lt_compile" 2>conftest.err)
16606   ac_status=$?
16607   cat conftest.err >&5
16608   echo "$as_me:16608: \$? = $ac_status" >&5
16609   if (exit $ac_status) && test -s "$ac_outfile"; then
16610     # The compiler can only warn and ignore the option if not recognized
16611     # So say no if there are warnings other than the usual output.
16612     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16613     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16614     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16615       lt_cv_prog_compiler_rtti_exceptions=yes
16616     fi
16617   fi
16618   $rm conftest*
16619
16620fi
16621echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16622echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16623
16624if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16625    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16626else
16627    :
16628fi
16629
16630fi
16631
16632lt_prog_compiler_wl_GCJ=
16633lt_prog_compiler_pic_GCJ=
16634lt_prog_compiler_static_GCJ=
16635
16636echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16637echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16638
16639  if test "$GCC" = yes; then
16640    lt_prog_compiler_wl_GCJ='-Wl,'
16641    lt_prog_compiler_static_GCJ='-static'
16642
16643    case $host_os in
16644      aix*)
16645      # All AIX code is PIC.
16646      if test "$host_cpu" = ia64; then
16647	# AIX 5 now supports IA64 processor
16648	lt_prog_compiler_static_GCJ='-Bstatic'
16649      fi
16650      ;;
16651
16652    amigaos*)
16653      # FIXME: we need at least 68020 code to build shared libraries, but
16654      # adding the `-m68020' flag to GCC prevents building anything better,
16655      # like `-m68040'.
16656      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16657      ;;
16658
16659    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16660      # PIC is the default for these OSes.
16661      ;;
16662
16663    mingw* | pw32* | os2*)
16664      # This hack is so that the source file can tell whether it is being
16665      # built for inclusion in a dll (and should export symbols for example).
16666      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16667      ;;
16668
16669    darwin* | rhapsody*)
16670      # PIC is the default on this platform
16671      # Common symbols not allowed in MH_DYLIB files
16672      lt_prog_compiler_pic_GCJ='-fno-common'
16673      ;;
16674
16675    interix3*)
16676      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16677      # Instead, we relocate shared libraries at runtime.
16678      ;;
16679
16680    msdosdjgpp*)
16681      # Just because we use GCC doesn't mean we suddenly get shared libraries
16682      # on systems that don't support them.
16683      lt_prog_compiler_can_build_shared_GCJ=no
16684      enable_shared=no
16685      ;;
16686
16687    sysv4*MP*)
16688      if test -d /usr/nec; then
16689	lt_prog_compiler_pic_GCJ=-Kconform_pic
16690      fi
16691      ;;
16692
16693    hpux*)
16694      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16695      # not for PA HP-UX.
16696      case $host_cpu in
16697      hppa*64*|ia64*)
16698	# +Z the default
16699	;;
16700      *)
16701	lt_prog_compiler_pic_GCJ='-fPIC'
16702	;;
16703      esac
16704      ;;
16705
16706    *)
16707      lt_prog_compiler_pic_GCJ='-fPIC'
16708      ;;
16709    esac
16710  else
16711    # PORTME Check for flag to pass linker flags through the system compiler.
16712    case $host_os in
16713    aix*)
16714      lt_prog_compiler_wl_GCJ='-Wl,'
16715      if test "$host_cpu" = ia64; then
16716	# AIX 5 now supports IA64 processor
16717	lt_prog_compiler_static_GCJ='-Bstatic'
16718      else
16719	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16720      fi
16721      ;;
16722      darwin*)
16723        # PIC is the default on this platform
16724        # Common symbols not allowed in MH_DYLIB files
16725       case $cc_basename in
16726         xlc*)
16727         lt_prog_compiler_pic_GCJ='-qnocommon'
16728         lt_prog_compiler_wl_GCJ='-Wl,'
16729         ;;
16730       esac
16731       ;;
16732
16733    mingw* | pw32* | os2*)
16734      # This hack is so that the source file can tell whether it is being
16735      # built for inclusion in a dll (and should export symbols for example).
16736      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16737      ;;
16738
16739    hpux9* | hpux10* | hpux11*)
16740      lt_prog_compiler_wl_GCJ='-Wl,'
16741      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16742      # not for PA HP-UX.
16743      case $host_cpu in
16744      hppa*64*|ia64*)
16745	# +Z the default
16746	;;
16747      *)
16748	lt_prog_compiler_pic_GCJ='+Z'
16749	;;
16750      esac
16751      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16752      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16753      ;;
16754
16755    irix5* | irix6* | nonstopux*)
16756      lt_prog_compiler_wl_GCJ='-Wl,'
16757      # PIC (with -KPIC) is the default.
16758      lt_prog_compiler_static_GCJ='-non_shared'
16759      ;;
16760
16761    newsos6)
16762      lt_prog_compiler_pic_GCJ='-KPIC'
16763      lt_prog_compiler_static_GCJ='-Bstatic'
16764      ;;
16765
16766    linux*)
16767      case $cc_basename in
16768      icc* | ecc*)
16769	lt_prog_compiler_wl_GCJ='-Wl,'
16770	lt_prog_compiler_pic_GCJ='-KPIC'
16771	lt_prog_compiler_static_GCJ='-static'
16772        ;;
16773      pgcc* | pgf77* | pgf90* | pgf95*)
16774        # Portland Group compilers (*not* the Pentium gcc compiler,
16775	# which looks to be a dead project)
16776	lt_prog_compiler_wl_GCJ='-Wl,'
16777	lt_prog_compiler_pic_GCJ='-fpic'
16778	lt_prog_compiler_static_GCJ='-Bstatic'
16779        ;;
16780      ccc*)
16781        lt_prog_compiler_wl_GCJ='-Wl,'
16782        # All Alpha code is PIC.
16783        lt_prog_compiler_static_GCJ='-non_shared'
16784        ;;
16785      esac
16786      ;;
16787
16788    osf3* | osf4* | osf5*)
16789      lt_prog_compiler_wl_GCJ='-Wl,'
16790      # All OSF/1 code is PIC.
16791      lt_prog_compiler_static_GCJ='-non_shared'
16792      ;;
16793
16794    solaris*)
16795      lt_prog_compiler_pic_GCJ='-KPIC'
16796      lt_prog_compiler_static_GCJ='-Bstatic'
16797      case $cc_basename in
16798      f77* | f90* | f95*)
16799	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16800      *)
16801	lt_prog_compiler_wl_GCJ='-Wl,';;
16802      esac
16803      ;;
16804
16805    sunos4*)
16806      lt_prog_compiler_wl_GCJ='-Qoption ld '
16807      lt_prog_compiler_pic_GCJ='-PIC'
16808      lt_prog_compiler_static_GCJ='-Bstatic'
16809      ;;
16810
16811    sysv4 | sysv4.2uw2* | sysv4.3*)
16812      lt_prog_compiler_wl_GCJ='-Wl,'
16813      lt_prog_compiler_pic_GCJ='-KPIC'
16814      lt_prog_compiler_static_GCJ='-Bstatic'
16815      ;;
16816
16817    sysv4*MP*)
16818      if test -d /usr/nec ;then
16819	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16820	lt_prog_compiler_static_GCJ='-Bstatic'
16821      fi
16822      ;;
16823
16824    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16825      lt_prog_compiler_wl_GCJ='-Wl,'
16826      lt_prog_compiler_pic_GCJ='-KPIC'
16827      lt_prog_compiler_static_GCJ='-Bstatic'
16828      ;;
16829
16830    unicos*)
16831      lt_prog_compiler_wl_GCJ='-Wl,'
16832      lt_prog_compiler_can_build_shared_GCJ=no
16833      ;;
16834
16835    uts4*)
16836      lt_prog_compiler_pic_GCJ='-pic'
16837      lt_prog_compiler_static_GCJ='-Bstatic'
16838      ;;
16839
16840    *)
16841      lt_prog_compiler_can_build_shared_GCJ=no
16842      ;;
16843    esac
16844  fi
16845
16846echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16847echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16848
16849#
16850# Check to make sure the PIC flag actually works.
16851#
16852if test -n "$lt_prog_compiler_pic_GCJ"; then
16853
16854echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16855echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16856if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16857  echo $ECHO_N "(cached) $ECHO_C" >&6
16858else
16859  lt_prog_compiler_pic_works_GCJ=no
16860  ac_outfile=conftest.$ac_objext
16861   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16862   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16863   # Insert the option either (1) after the last *FLAGS variable, or
16864   # (2) before a word containing "conftest.", or (3) at the end.
16865   # Note that $ac_compile itself does not contain backslashes and begins
16866   # with a dollar sign (not a hyphen), so the echo should work correctly.
16867   # The option is referenced via a variable to avoid confusing sed.
16868   lt_compile=`echo "$ac_compile" | $SED \
16869   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16870   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16871   -e 's:$: $lt_compiler_flag:'`
16872   (eval echo "\"\$as_me:16872: $lt_compile\"" >&5)
16873   (eval "$lt_compile" 2>conftest.err)
16874   ac_status=$?
16875   cat conftest.err >&5
16876   echo "$as_me:16876: \$? = $ac_status" >&5
16877   if (exit $ac_status) && test -s "$ac_outfile"; then
16878     # The compiler can only warn and ignore the option if not recognized
16879     # So say no if there are warnings other than the usual output.
16880     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16881     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16882     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16883       lt_prog_compiler_pic_works_GCJ=yes
16884     fi
16885   fi
16886   $rm conftest*
16887
16888fi
16889echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16890echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16891
16892if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16893    case $lt_prog_compiler_pic_GCJ in
16894     "" | " "*) ;;
16895     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16896     esac
16897else
16898    lt_prog_compiler_pic_GCJ=
16899     lt_prog_compiler_can_build_shared_GCJ=no
16900fi
16901
16902fi
16903case $host_os in
16904  # For platforms which do not support PIC, -DPIC is meaningless:
16905  *djgpp*)
16906    lt_prog_compiler_pic_GCJ=
16907    ;;
16908  *)
16909    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16910    ;;
16911esac
16912
16913#
16914# Check to make sure the static flag actually works.
16915#
16916wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16917echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16918echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16919if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16920  echo $ECHO_N "(cached) $ECHO_C" >&6
16921else
16922  lt_prog_compiler_static_works_GCJ=no
16923   save_LDFLAGS="$LDFLAGS"
16924   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16925   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16926   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16927     # The linker can only warn and ignore the option if not recognized
16928     # So say no if there are warnings
16929     if test -s conftest.err; then
16930       # Append any errors to the config.log.
16931       cat conftest.err 1>&5
16932       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16933       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934       if diff conftest.exp conftest.er2 >/dev/null; then
16935         lt_prog_compiler_static_works_GCJ=yes
16936       fi
16937     else
16938       lt_prog_compiler_static_works_GCJ=yes
16939     fi
16940   fi
16941   $rm conftest*
16942   LDFLAGS="$save_LDFLAGS"
16943
16944fi
16945echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16946echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16947
16948if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16949    :
16950else
16951    lt_prog_compiler_static_GCJ=
16952fi
16953
16954
16955echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16956echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16957if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16958  echo $ECHO_N "(cached) $ECHO_C" >&6
16959else
16960  lt_cv_prog_compiler_c_o_GCJ=no
16961   $rm -r conftest 2>/dev/null
16962   mkdir conftest
16963   cd conftest
16964   mkdir out
16965   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16966
16967   lt_compiler_flag="-o out/conftest2.$ac_objext"
16968   # Insert the option either (1) after the last *FLAGS variable, or
16969   # (2) before a word containing "conftest.", or (3) at the end.
16970   # Note that $ac_compile itself does not contain backslashes and begins
16971   # with a dollar sign (not a hyphen), so the echo should work correctly.
16972   lt_compile=`echo "$ac_compile" | $SED \
16973   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16974   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16975   -e 's:$: $lt_compiler_flag:'`
16976   (eval echo "\"\$as_me:16976: $lt_compile\"" >&5)
16977   (eval "$lt_compile" 2>out/conftest.err)
16978   ac_status=$?
16979   cat out/conftest.err >&5
16980   echo "$as_me:16980: \$? = $ac_status" >&5
16981   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16982   then
16983     # The compiler can only warn and ignore the option if not recognized
16984     # So say no if there are warnings
16985     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16986     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16987     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16988       lt_cv_prog_compiler_c_o_GCJ=yes
16989     fi
16990   fi
16991   chmod u+w . 2>&5
16992   $rm conftest*
16993   # SGI C++ compiler will create directory out/ii_files/ for
16994   # template instantiation
16995   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16996   $rm out/* && rmdir out
16997   cd ..
16998   rmdir conftest
16999   $rm conftest*
17000
17001fi
17002echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17003echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17004
17005
17006hard_links="nottested"
17007if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17008  # do not overwrite the value of need_locks provided by the user
17009  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17010echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17011  hard_links=yes
17012  $rm conftest*
17013  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17014  touch conftest.a
17015  ln conftest.a conftest.b 2>&5 || hard_links=no
17016  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17017  echo "$as_me:$LINENO: result: $hard_links" >&5
17018echo "${ECHO_T}$hard_links" >&6
17019  if test "$hard_links" = no; then
17020    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17021echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17022    need_locks=warn
17023  fi
17024else
17025  need_locks=no
17026fi
17027
17028echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17029echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17030
17031  runpath_var=
17032  allow_undefined_flag_GCJ=
17033  enable_shared_with_static_runtimes_GCJ=no
17034  archive_cmds_GCJ=
17035  archive_expsym_cmds_GCJ=
17036  old_archive_From_new_cmds_GCJ=
17037  old_archive_from_expsyms_cmds_GCJ=
17038  export_dynamic_flag_spec_GCJ=
17039  whole_archive_flag_spec_GCJ=
17040  thread_safe_flag_spec_GCJ=
17041  hardcode_libdir_flag_spec_GCJ=
17042  hardcode_libdir_flag_spec_ld_GCJ=
17043  hardcode_libdir_separator_GCJ=
17044  hardcode_direct_GCJ=no
17045  hardcode_minus_L_GCJ=no
17046  hardcode_shlibpath_var_GCJ=unsupported
17047  link_all_deplibs_GCJ=unknown
17048  hardcode_automatic_GCJ=no
17049  module_cmds_GCJ=
17050  module_expsym_cmds_GCJ=
17051  always_export_symbols_GCJ=no
17052  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17053  # include_expsyms should be a list of space-separated symbols to be *always*
17054  # included in the symbol list
17055  include_expsyms_GCJ=
17056  # exclude_expsyms can be an extended regexp of symbols to exclude
17057  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17058  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17059  # as well as any symbol that contains `d'.
17060  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17061  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17062  # platforms (ab)use it in PIC code, but their linkers get confused if
17063  # the symbol is explicitly referenced.  Since portable code cannot
17064  # rely on this symbol name, it's probably fine to never include it in
17065  # preloaded symbol tables.
17066  extract_expsyms_cmds=
17067  # Just being paranoid about ensuring that cc_basename is set.
17068  for cc_temp in $compiler""; do
17069  case $cc_temp in
17070    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17071    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17072    \-*) ;;
17073    *) break;;
17074  esac
17075done
17076cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17077
17078  case $host_os in
17079  cygwin* | mingw* | pw32*)
17080    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17081    # When not using gcc, we currently assume that we are using
17082    # Microsoft Visual C++.
17083    if test "$GCC" != yes; then
17084      with_gnu_ld=no
17085    fi
17086    ;;
17087  interix*)
17088    # we just hope/assume this is gcc and not c89 (= MSVC++)
17089    with_gnu_ld=yes
17090    ;;
17091  openbsd*)
17092    with_gnu_ld=no
17093    ;;
17094  esac
17095
17096  ld_shlibs_GCJ=yes
17097  if test "$with_gnu_ld" = yes; then
17098    # If archive_cmds runs LD, not CC, wlarc should be empty
17099    wlarc='${wl}'
17100
17101    # Set some defaults for GNU ld with shared library support. These
17102    # are reset later if shared libraries are not supported. Putting them
17103    # here allows them to be overridden if necessary.
17104    runpath_var=LD_RUN_PATH
17105    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17106    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17107    # ancient GNU ld didn't support --whole-archive et. al.
17108    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17109	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17110      else
17111  	whole_archive_flag_spec_GCJ=
17112    fi
17113    supports_anon_versioning=no
17114    case `$LD -v 2>/dev/null` in
17115      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17116      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17117      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17118      *\ 2.11.*) ;; # other 2.11 versions
17119      *) supports_anon_versioning=yes ;;
17120    esac
17121
17122    # See if GNU ld supports shared libraries.
17123    case $host_os in
17124    aix3* | aix4* | aix5*)
17125      # On AIX/PPC, the GNU linker is very broken
17126      if test "$host_cpu" != ia64; then
17127	ld_shlibs_GCJ=no
17128	cat <<EOF 1>&2
17129
17130*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17131*** to be unable to reliably create shared libraries on AIX.
17132*** Therefore, libtool is disabling shared libraries support.  If you
17133*** really care for shared libraries, you may want to modify your PATH
17134*** so that a non-GNU linker is found, and then restart.
17135
17136EOF
17137      fi
17138      ;;
17139
17140    amigaos*)
17141      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)'
17142      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17143      hardcode_minus_L_GCJ=yes
17144
17145      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17146      # that the semantics of dynamic libraries on AmigaOS, at least up
17147      # to version 4, is to share data among multiple programs linked
17148      # with the same dynamic library.  Since this doesn't match the
17149      # behavior of shared libraries on other platforms, we can't use
17150      # them.
17151      ld_shlibs_GCJ=no
17152      ;;
17153
17154    beos*)
17155      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17156	allow_undefined_flag_GCJ=unsupported
17157	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17158	# support --undefined.  This deserves some investigation.  FIXME
17159	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160      else
17161	ld_shlibs_GCJ=no
17162      fi
17163      ;;
17164
17165    cygwin* | mingw* | pw32*)
17166      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17167      # as there is no search path for DLLs.
17168      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17169      allow_undefined_flag_GCJ=unsupported
17170      always_export_symbols_GCJ=no
17171      enable_shared_with_static_runtimes_GCJ=yes
17172      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17173
17174      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17175        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17176	# If the export-symbols file already is a .def file (1st line
17177	# is EXPORTS), use it as is; otherwise, prepend...
17178	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17179	  cp $export_symbols $output_objdir/$soname.def;
17180	else
17181	  echo EXPORTS > $output_objdir/$soname.def;
17182	  cat $export_symbols >> $output_objdir/$soname.def;
17183	fi~
17184	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17185      else
17186	ld_shlibs_GCJ=no
17187      fi
17188      ;;
17189
17190    interix3*)
17191      hardcode_direct_GCJ=no
17192      hardcode_shlibpath_var_GCJ=no
17193      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17194      export_dynamic_flag_spec_GCJ='${wl}-E'
17195      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17196      # Instead, shared libraries are loaded at an image base (0x10000000 by
17197      # default) and relocated if they conflict, which is a slow very memory
17198      # consuming and fragmenting process.  To avoid this, we pick a random,
17199      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17200      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17201      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17202      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17203      ;;
17204
17205    linux*)
17206      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17207	tmp_addflag=
17208	case $cc_basename,$host_cpu in
17209	pgcc*)				# Portland Group C compiler
17210	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17211	  tmp_addflag=' $pic_flag'
17212	  ;;
17213	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17214	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17215	  tmp_addflag=' $pic_flag -Mnomain' ;;
17216	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17217	  tmp_addflag=' -i_dynamic' ;;
17218	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17219	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17220	ifc* | ifort*)			# Intel Fortran compiler
17221	  tmp_addflag=' -nofor_main' ;;
17222	esac
17223	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17224
17225	if test $supports_anon_versioning = yes; then
17226	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17227  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17228  $echo "local: *; };" >> $output_objdir/$libname.ver~
17229	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17230	fi
17231      else
17232	ld_shlibs_GCJ=no
17233      fi
17234      ;;
17235
17236    netbsd*)
17237      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17238	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17239	wlarc=
17240      else
17241	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17242	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17243      fi
17244      ;;
17245
17246    solaris*)
17247      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17248	ld_shlibs_GCJ=no
17249	cat <<EOF 1>&2
17250
17251*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17252*** create shared libraries on Solaris systems.  Therefore, libtool
17253*** is disabling shared libraries support.  We urge you to upgrade GNU
17254*** binutils to release 2.9.1 or newer.  Another option is to modify
17255*** your PATH or compiler configuration so that the native linker is
17256*** used, and then restart.
17257
17258EOF
17259      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17260	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17262      else
17263	ld_shlibs_GCJ=no
17264      fi
17265      ;;
17266
17267    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17268      case `$LD -v 2>&1` in
17269        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17270	ld_shlibs_GCJ=no
17271	cat <<_LT_EOF 1>&2
17272
17273*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17274*** reliably create shared libraries on SCO systems.  Therefore, libtool
17275*** is disabling shared libraries support.  We urge you to upgrade GNU
17276*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17277*** your PATH or compiler configuration so that the native linker is
17278*** used, and then restart.
17279
17280_LT_EOF
17281	;;
17282	*)
17283	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17284	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17285	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17286	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17287	  else
17288	    ld_shlibs_GCJ=no
17289	  fi
17290	;;
17291      esac
17292      ;;
17293
17294    sunos4*)
17295      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17296      wlarc=
17297      hardcode_direct_GCJ=yes
17298      hardcode_shlibpath_var_GCJ=no
17299      ;;
17300
17301    *)
17302      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17303	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17304	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17305      else
17306	ld_shlibs_GCJ=no
17307      fi
17308      ;;
17309    esac
17310
17311    if test "$ld_shlibs_GCJ" = no; then
17312      runpath_var=
17313      hardcode_libdir_flag_spec_GCJ=
17314      export_dynamic_flag_spec_GCJ=
17315      whole_archive_flag_spec_GCJ=
17316    fi
17317  else
17318    # PORTME fill in a description of your system's linker (not GNU ld)
17319    case $host_os in
17320    aix3*)
17321      allow_undefined_flag_GCJ=unsupported
17322      always_export_symbols_GCJ=yes
17323      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'
17324      # Note: this linker hardcodes the directories in LIBPATH if there
17325      # are no directories specified by -L.
17326      hardcode_minus_L_GCJ=yes
17327      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17328	# Neither direct hardcoding nor static linking is supported with a
17329	# broken collect2.
17330	hardcode_direct_GCJ=unsupported
17331      fi
17332      ;;
17333
17334    aix4* | aix5*)
17335      if test "$host_cpu" = ia64; then
17336	# On IA64, the linker does run time linking by default, so we don't
17337	# have to do anything special.
17338	aix_use_runtimelinking=no
17339	exp_sym_flag='-Bexport'
17340	no_entry_flag=""
17341      else
17342	# If we're using GNU nm, then we don't want the "-C" option.
17343	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17344	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17345	  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'
17346	else
17347	  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'
17348	fi
17349	aix_use_runtimelinking=no
17350
17351	# Test if we are trying to use run time linking or normal
17352	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17353	# need to do runtime linking.
17354	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17355	  for ld_flag in $LDFLAGS; do
17356  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17357  	    aix_use_runtimelinking=yes
17358  	    break
17359  	  fi
17360	  done
17361	  ;;
17362	esac
17363
17364	exp_sym_flag='-bexport'
17365	no_entry_flag='-bnoentry'
17366      fi
17367
17368      # When large executables or shared objects are built, AIX ld can
17369      # have problems creating the table of contents.  If linking a library
17370      # or program results in "error TOC overflow" add -mminimal-toc to
17371      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17372      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17373
17374      archive_cmds_GCJ=''
17375      hardcode_direct_GCJ=yes
17376      hardcode_libdir_separator_GCJ=':'
17377      link_all_deplibs_GCJ=yes
17378
17379      if test "$GCC" = yes; then
17380	case $host_os in aix4.[012]|aix4.[012].*)
17381	# We only want to do this on AIX 4.2 and lower, the check
17382	# below for broken collect2 doesn't work under 4.3+
17383	  collect2name=`${CC} -print-prog-name=collect2`
17384	  if test -f "$collect2name" && \
17385  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17386	  then
17387  	  # We have reworked collect2
17388  	  hardcode_direct_GCJ=yes
17389	  else
17390  	  # We have old collect2
17391  	  hardcode_direct_GCJ=unsupported
17392  	  # It fails to find uninstalled libraries when the uninstalled
17393  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17394  	  # to unsupported forces relinking
17395  	  hardcode_minus_L_GCJ=yes
17396  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397  	  hardcode_libdir_separator_GCJ=
17398	  fi
17399	  ;;
17400	esac
17401	shared_flag='-shared'
17402	if test "$aix_use_runtimelinking" = yes; then
17403	  shared_flag="$shared_flag "'${wl}-G'
17404	fi
17405      else
17406	# not using gcc
17407	if test "$host_cpu" = ia64; then
17408  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17409  	# chokes on -Wl,-G. The following line is correct:
17410	  shared_flag='-G'
17411	else
17412	  if test "$aix_use_runtimelinking" = yes; then
17413	    shared_flag='${wl}-G'
17414	  else
17415	    shared_flag='${wl}-bM:SRE'
17416	  fi
17417	fi
17418      fi
17419
17420      # It seems that -bexpall does not export symbols beginning with
17421      # underscore (_), so it is better to generate a list of symbols to export.
17422      always_export_symbols_GCJ=yes
17423      if test "$aix_use_runtimelinking" = yes; then
17424	# Warning - without using the other runtime loading flags (-brtl),
17425	# -berok will link without error, but may produce a broken library.
17426	allow_undefined_flag_GCJ='-berok'
17427       # Determine the default libpath from the value encoded in an empty executable.
17428       cat >conftest.$ac_ext <<_ACEOF
17429/* confdefs.h.  */
17430_ACEOF
17431cat confdefs.h >>conftest.$ac_ext
17432cat >>conftest.$ac_ext <<_ACEOF
17433/* end confdefs.h.  */
17434
17435int
17436main ()
17437{
17438
17439  ;
17440  return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext conftest$ac_exeext
17444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445  (eval $ac_link) 2>conftest.er1
17446  ac_status=$?
17447  grep -v '^ *+' conftest.er1 >conftest.err
17448  rm -f conftest.er1
17449  cat conftest.err >&5
17450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451  (exit $ac_status); } &&
17452	 { ac_try='test -z "$ac_c_werror_flag"
17453			 || test ! -s conftest.err'
17454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455  (eval $ac_try) 2>&5
17456  ac_status=$?
17457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458  (exit $ac_status); }; } &&
17459	 { ac_try='test -s conftest$ac_exeext'
17460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461  (eval $ac_try) 2>&5
17462  ac_status=$?
17463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464  (exit $ac_status); }; }; then
17465
17466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17467}'`
17468# Check for a 64-bit object if we didn't find anything.
17469if 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; }
17470}'`; fi
17471else
17472  echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475fi
17476rm -f conftest.err conftest.$ac_objext \
17477      conftest$ac_exeext conftest.$ac_ext
17478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17479
17480       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17481	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17482       else
17483	if test "$host_cpu" = ia64; then
17484	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17485	  allow_undefined_flag_GCJ="-z nodefs"
17486	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17487	else
17488	 # Determine the default libpath from the value encoded in an empty executable.
17489	 cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h.  */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h.  */
17495
17496int
17497main ()
17498{
17499
17500  ;
17501  return 0;
17502}
17503_ACEOF
17504rm -f conftest.$ac_objext conftest$ac_exeext
17505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506  (eval $ac_link) 2>conftest.er1
17507  ac_status=$?
17508  grep -v '^ *+' conftest.er1 >conftest.err
17509  rm -f conftest.er1
17510  cat conftest.err >&5
17511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512  (exit $ac_status); } &&
17513	 { ac_try='test -z "$ac_c_werror_flag"
17514			 || test ! -s conftest.err'
17515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516  (eval $ac_try) 2>&5
17517  ac_status=$?
17518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519  (exit $ac_status); }; } &&
17520	 { ac_try='test -s conftest$ac_exeext'
17521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522  (eval $ac_try) 2>&5
17523  ac_status=$?
17524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525  (exit $ac_status); }; }; then
17526
17527aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17528}'`
17529# Check for a 64-bit object if we didn't find anything.
17530if 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; }
17531}'`; fi
17532else
17533  echo "$as_me: failed program was:" >&5
17534sed 's/^/| /' conftest.$ac_ext >&5
17535
17536fi
17537rm -f conftest.err conftest.$ac_objext \
17538      conftest$ac_exeext conftest.$ac_ext
17539if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17540
17541	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17542	  # Warning - without using the other run time loading flags,
17543	  # -berok will link without error, but may produce a broken library.
17544	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17545	  allow_undefined_flag_GCJ=' ${wl}-berok'
17546	  # Exported symbols can be pulled into shared objects from archives
17547	  whole_archive_flag_spec_GCJ='$convenience'
17548	  archive_cmds_need_lc_GCJ=yes
17549	  # This is similar to how AIX traditionally builds its shared libraries.
17550	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17551	fi
17552      fi
17553      ;;
17554
17555    amigaos*)
17556      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)'
17557      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558      hardcode_minus_L_GCJ=yes
17559      # see comment about different semantics on the GNU ld section
17560      ld_shlibs_GCJ=no
17561      ;;
17562
17563    bsdi[45]*)
17564      export_dynamic_flag_spec_GCJ=-rdynamic
17565      ;;
17566
17567    cygwin* | mingw* | pw32*)
17568      # When not using gcc, we currently assume that we are using
17569      # Microsoft Visual C++.
17570      # hardcode_libdir_flag_spec is actually meaningless, as there is
17571      # no search path for DLLs.
17572      hardcode_libdir_flag_spec_GCJ=' '
17573      allow_undefined_flag_GCJ=unsupported
17574      # Tell ltmain to make .lib files, not .a files.
17575      libext=lib
17576      # Tell ltmain to make .dll files, not .so files.
17577      shrext_cmds=".dll"
17578      # FIXME: Setting linknames here is a bad hack.
17579      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17580      # The linker will automatically build a .lib file if we build a DLL.
17581      old_archive_From_new_cmds_GCJ='true'
17582      # FIXME: Should let the user specify the lib program.
17583      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17584      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17585      enable_shared_with_static_runtimes_GCJ=yes
17586      ;;
17587
17588    darwin* | rhapsody*)
17589      case $host_os in
17590        rhapsody* | darwin1.[012])
17591         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17592         ;;
17593       *) # Darwin 1.3 on
17594         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17595           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17596         else
17597           case ${MACOSX_DEPLOYMENT_TARGET} in
17598             10.[012])
17599               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17600               ;;
17601             10.*)
17602               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17603               ;;
17604           esac
17605         fi
17606         ;;
17607      esac
17608      archive_cmds_need_lc_GCJ=no
17609      hardcode_direct_GCJ=no
17610      hardcode_automatic_GCJ=yes
17611      hardcode_shlibpath_var_GCJ=unsupported
17612      whole_archive_flag_spec_GCJ=''
17613      link_all_deplibs_GCJ=yes
17614    if test "$GCC" = yes ; then
17615    	output_verbose_link_cmd='echo'
17616        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17617      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17618      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17619      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17620      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}'
17621    else
17622      case $cc_basename in
17623        xlc*)
17624         output_verbose_link_cmd='echo'
17625         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17626         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17627          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17628         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17629          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}'
17630          ;;
17631       *)
17632         ld_shlibs_GCJ=no
17633          ;;
17634      esac
17635    fi
17636      ;;
17637
17638    dgux*)
17639      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17641      hardcode_shlibpath_var_GCJ=no
17642      ;;
17643
17644    freebsd1*)
17645      ld_shlibs_GCJ=no
17646      ;;
17647
17648    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17649    # support.  Future versions do this automatically, but an explicit c++rt0.o
17650    # does not break anything, and helps significantly (at the cost of a little
17651    # extra space).
17652    freebsd2.2*)
17653      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17654      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17655      hardcode_direct_GCJ=yes
17656      hardcode_shlibpath_var_GCJ=no
17657      ;;
17658
17659    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17660    freebsd2*)
17661      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17662      hardcode_direct_GCJ=yes
17663      hardcode_minus_L_GCJ=yes
17664      hardcode_shlibpath_var_GCJ=no
17665      ;;
17666
17667    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17668    freebsd* | kfreebsd*-gnu | dragonfly*)
17669      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17670      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17671      hardcode_direct_GCJ=yes
17672      hardcode_shlibpath_var_GCJ=no
17673      ;;
17674
17675    hpux9*)
17676      if test "$GCC" = yes; then
17677	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'
17678      else
17679	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'
17680      fi
17681      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17682      hardcode_libdir_separator_GCJ=:
17683      hardcode_direct_GCJ=yes
17684
17685      # hardcode_minus_L: Not really in the search PATH,
17686      # but as the default location of the library.
17687      hardcode_minus_L_GCJ=yes
17688      export_dynamic_flag_spec_GCJ='${wl}-E'
17689      ;;
17690
17691    hpux10*)
17692      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17693	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17694      else
17695	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17696      fi
17697      if test "$with_gnu_ld" = no; then
17698	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17699	hardcode_libdir_separator_GCJ=:
17700
17701	hardcode_direct_GCJ=yes
17702	export_dynamic_flag_spec_GCJ='${wl}-E'
17703
17704	# hardcode_minus_L: Not really in the search PATH,
17705	# but as the default location of the library.
17706	hardcode_minus_L_GCJ=yes
17707      fi
17708      ;;
17709
17710    hpux11*)
17711      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17712	case $host_cpu in
17713	hppa*64*)
17714	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17715	  ;;
17716	ia64*)
17717	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17718	  ;;
17719	*)
17720	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17721	  ;;
17722	esac
17723      else
17724	case $host_cpu in
17725	hppa*64*)
17726	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17727	  ;;
17728	ia64*)
17729	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17730	  ;;
17731	*)
17732	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17733	  ;;
17734	esac
17735      fi
17736      if test "$with_gnu_ld" = no; then
17737	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17738	hardcode_libdir_separator_GCJ=:
17739
17740	case $host_cpu in
17741	hppa*64*|ia64*)
17742	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17743	  hardcode_direct_GCJ=no
17744	  hardcode_shlibpath_var_GCJ=no
17745	  ;;
17746	*)
17747	  hardcode_direct_GCJ=yes
17748	  export_dynamic_flag_spec_GCJ='${wl}-E'
17749
17750	  # hardcode_minus_L: Not really in the search PATH,
17751	  # but as the default location of the library.
17752	  hardcode_minus_L_GCJ=yes
17753	  ;;
17754	esac
17755      fi
17756      ;;
17757
17758    irix5* | irix6* | nonstopux*)
17759      if test "$GCC" = yes; then
17760	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'
17761      else
17762	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'
17763	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17764      fi
17765      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17766      hardcode_libdir_separator_GCJ=:
17767      link_all_deplibs_GCJ=yes
17768      ;;
17769
17770    netbsd*)
17771      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17772	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17773      else
17774	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17775      fi
17776      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17777      hardcode_direct_GCJ=yes
17778      hardcode_shlibpath_var_GCJ=no
17779      ;;
17780
17781    newsos6)
17782      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783      hardcode_direct_GCJ=yes
17784      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17785      hardcode_libdir_separator_GCJ=:
17786      hardcode_shlibpath_var_GCJ=no
17787      ;;
17788
17789    openbsd*)
17790      hardcode_direct_GCJ=yes
17791      hardcode_shlibpath_var_GCJ=no
17792      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17793	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17794	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17795	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17796	export_dynamic_flag_spec_GCJ='${wl}-E'
17797      else
17798       case $host_os in
17799	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17800	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17801	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17802	   ;;
17803	 *)
17804	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17805	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17806	   ;;
17807       esac
17808      fi
17809      ;;
17810
17811    os2*)
17812      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813      hardcode_minus_L_GCJ=yes
17814      allow_undefined_flag_GCJ=unsupported
17815      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'
17816      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17817      ;;
17818
17819    osf3*)
17820      if test "$GCC" = yes; then
17821	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17822	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'
17823      else
17824	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17825	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'
17826      fi
17827      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17828      hardcode_libdir_separator_GCJ=:
17829      ;;
17830
17831    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17832      if test "$GCC" = yes; then
17833	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17834	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'
17835	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17836      else
17837	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17838	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'
17839	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~
17840	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17841
17842	# Both c and cxx compiler support -rpath directly
17843	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17844      fi
17845      hardcode_libdir_separator_GCJ=:
17846      ;;
17847
17848    solaris*)
17849      no_undefined_flag_GCJ=' -z text'
17850      if test "$GCC" = yes; then
17851	wlarc='${wl}'
17852	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17853	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17854	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17855      else
17856	wlarc=''
17857	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17858	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17859  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17860      fi
17861      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17862      hardcode_shlibpath_var_GCJ=no
17863      case $host_os in
17864      solaris2.[0-5] | solaris2.[0-5].*) ;;
17865      *)
17866 	# The compiler driver will combine linker options so we
17867 	# cannot just pass the convience library names through
17868 	# without $wl, iff we do not link with $LD.
17869 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17870 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17871 	case $wlarc in
17872 	'')
17873 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17874 	*)
17875 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17876 	esac ;;
17877      esac
17878      link_all_deplibs_GCJ=yes
17879      ;;
17880
17881    sunos4*)
17882      if test "x$host_vendor" = xsequent; then
17883	# Use $CC to link under sequent, because it throws in some extra .o
17884	# files that make .init and .fini sections work.
17885	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17886      else
17887	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17888      fi
17889      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890      hardcode_direct_GCJ=yes
17891      hardcode_minus_L_GCJ=yes
17892      hardcode_shlibpath_var_GCJ=no
17893      ;;
17894
17895    sysv4)
17896      case $host_vendor in
17897	sni)
17898	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17899	  hardcode_direct_GCJ=yes # is this really true???
17900	;;
17901	siemens)
17902	  ## LD is ld it makes a PLAMLIB
17903	  ## CC just makes a GrossModule.
17904	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17905	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17906	  hardcode_direct_GCJ=no
17907        ;;
17908	motorola)
17909	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17910	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17911	;;
17912      esac
17913      runpath_var='LD_RUN_PATH'
17914      hardcode_shlibpath_var_GCJ=no
17915      ;;
17916
17917    sysv4.3*)
17918      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17919      hardcode_shlibpath_var_GCJ=no
17920      export_dynamic_flag_spec_GCJ='-Bexport'
17921      ;;
17922
17923    sysv4*MP*)
17924      if test -d /usr/nec; then
17925	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17926	hardcode_shlibpath_var_GCJ=no
17927	runpath_var=LD_RUN_PATH
17928	hardcode_runpath_var=yes
17929	ld_shlibs_GCJ=yes
17930      fi
17931      ;;
17932
17933    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17934      no_undefined_flag_GCJ='${wl}-z,text'
17935      archive_cmds_need_lc_GCJ=no
17936      hardcode_shlibpath_var_GCJ=no
17937      runpath_var='LD_RUN_PATH'
17938
17939      if test "$GCC" = yes; then
17940	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17941	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17942      else
17943	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17944	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17945      fi
17946      ;;
17947
17948    sysv5* | sco3.2v5* | sco5v6*)
17949      # Note: We can NOT use -z defs as we might desire, because we do not
17950      # link with -lc, and that would cause any symbols used from libc to
17951      # always be unresolved, which means just about no library would
17952      # ever link correctly.  If we're not using GNU ld we use -z text
17953      # though, which does catch some bad symbols but isn't as heavy-handed
17954      # as -z defs.
17955      no_undefined_flag_GCJ='${wl}-z,text'
17956      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17957      archive_cmds_need_lc_GCJ=no
17958      hardcode_shlibpath_var_GCJ=no
17959      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17960      hardcode_libdir_separator_GCJ=':'
17961      link_all_deplibs_GCJ=yes
17962      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17963      runpath_var='LD_RUN_PATH'
17964
17965      if test "$GCC" = yes; then
17966	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17967	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17968      else
17969	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17970	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17971      fi
17972      ;;
17973
17974    uts4*)
17975      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17976      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17977      hardcode_shlibpath_var_GCJ=no
17978      ;;
17979
17980    *)
17981      ld_shlibs_GCJ=no
17982      ;;
17983    esac
17984  fi
17985
17986echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17987echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17988test "$ld_shlibs_GCJ" = no && can_build_shared=no
17989
17990#
17991# Do we need to explicitly link libc?
17992#
17993case "x$archive_cmds_need_lc_GCJ" in
17994x|xyes)
17995  # Assume -lc should be added
17996  archive_cmds_need_lc_GCJ=yes
17997
17998  if test "$enable_shared" = yes && test "$GCC" = yes; then
17999    case $archive_cmds_GCJ in
18000    *'~'*)
18001      # FIXME: we may have to deal with multi-command sequences.
18002      ;;
18003    '$CC '*)
18004      # Test whether the compiler implicitly links with -lc since on some
18005      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18006      # to ld, don't add -lc before -lgcc.
18007      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18008echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18009      $rm conftest*
18010      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18011
18012      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013  (eval $ac_compile) 2>&5
18014  ac_status=$?
18015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016  (exit $ac_status); } 2>conftest.err; then
18017        soname=conftest
18018        lib=conftest
18019        libobjs=conftest.$ac_objext
18020        deplibs=
18021        wl=$lt_prog_compiler_wl_GCJ
18022	pic_flag=$lt_prog_compiler_pic_GCJ
18023        compiler_flags=-v
18024        linker_flags=-v
18025        verstring=
18026        output_objdir=.
18027        libname=conftest
18028        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18029        allow_undefined_flag_GCJ=
18030        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18031  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18032  ac_status=$?
18033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034  (exit $ac_status); }
18035        then
18036	  archive_cmds_need_lc_GCJ=no
18037        else
18038	  archive_cmds_need_lc_GCJ=yes
18039        fi
18040        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18041      else
18042        cat conftest.err 1>&5
18043      fi
18044      $rm conftest*
18045      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18046echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18047      ;;
18048    esac
18049  fi
18050  ;;
18051esac
18052
18053echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18054echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18055library_names_spec=
18056libname_spec='lib$name'
18057soname_spec=
18058shrext_cmds=".so"
18059postinstall_cmds=
18060postuninstall_cmds=
18061finish_cmds=
18062finish_eval=
18063shlibpath_var=
18064shlibpath_overrides_runpath=unknown
18065version_type=none
18066dynamic_linker="$host_os ld.so"
18067sys_lib_dlsearch_path_spec="/lib /usr/lib"
18068if test "$GCC" = yes; then
18069  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18070  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18071    # if the path contains ";" then we assume it to be the separator
18072    # otherwise default to the standard path separator (i.e. ":") - it is
18073    # assumed that no part of a normal pathname contains ";" but that should
18074    # okay in the real world where ";" in dirpaths is itself problematic.
18075    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18076  else
18077    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18078  fi
18079else
18080  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18081fi
18082need_lib_prefix=unknown
18083hardcode_into_libs=no
18084
18085# when you set need_version to no, make sure it does not cause -set_version
18086# flags to be left without arguments
18087need_version=unknown
18088
18089case $host_os in
18090aix3*)
18091  version_type=linux
18092  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18093  shlibpath_var=LIBPATH
18094
18095  # AIX 3 has no versioning support, so we append a major version to the name.
18096  soname_spec='${libname}${release}${shared_ext}$major'
18097  ;;
18098
18099aix4* | aix5*)
18100  version_type=linux
18101  need_lib_prefix=no
18102  need_version=no
18103  hardcode_into_libs=yes
18104  if test "$host_cpu" = ia64; then
18105    # AIX 5 supports IA64
18106    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18107    shlibpath_var=LD_LIBRARY_PATH
18108  else
18109    # With GCC up to 2.95.x, collect2 would create an import file
18110    # for dependence libraries.  The import file would start with
18111    # the line `#! .'.  This would cause the generated library to
18112    # depend on `.', always an invalid library.  This was fixed in
18113    # development snapshots of GCC prior to 3.0.
18114    case $host_os in
18115      aix4 | aix4.[01] | aix4.[01].*)
18116      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18117	   echo ' yes '
18118	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18119	:
18120      else
18121	can_build_shared=no
18122      fi
18123      ;;
18124    esac
18125    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18126    # soname into executable. Probably we can add versioning support to
18127    # collect2, so additional links can be useful in future.
18128    if test "$aix_use_runtimelinking" = yes; then
18129      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18130      # instead of lib<name>.a to let people know that these are not
18131      # typical AIX shared libraries.
18132      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133    else
18134      # We preserve .a as extension for shared libraries through AIX4.2
18135      # and later when we are not doing run time linking.
18136      library_names_spec='${libname}${release}.a $libname.a'
18137      soname_spec='${libname}${release}${shared_ext}$major'
18138    fi
18139    shlibpath_var=LIBPATH
18140  fi
18141  ;;
18142
18143amigaos*)
18144  library_names_spec='$libname.ixlibrary $libname.a'
18145  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18146  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'
18147  ;;
18148
18149beos*)
18150  library_names_spec='${libname}${shared_ext}'
18151  dynamic_linker="$host_os ld.so"
18152  shlibpath_var=LIBRARY_PATH
18153  ;;
18154
18155bsdi[45]*)
18156  version_type=linux
18157  need_version=no
18158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159  soname_spec='${libname}${release}${shared_ext}$major'
18160  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18161  shlibpath_var=LD_LIBRARY_PATH
18162  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18163  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18164  # the default ld.so.conf also contains /usr/contrib/lib and
18165  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18166  # libtool to hard-code these into programs
18167  ;;
18168
18169cygwin* | mingw* | pw32*)
18170  version_type=windows
18171  shrext_cmds=".dll"
18172  need_version=no
18173  need_lib_prefix=no
18174
18175  case $GCC,$host_os in
18176  yes,cygwin* | yes,mingw* | yes,pw32*)
18177    library_names_spec='$libname.dll.a'
18178    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18179    postinstall_cmds='base_file=`basename \${file}`~
18180      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18181      dldir=$destdir/`dirname \$dlpath`~
18182      test -d \$dldir || mkdir -p \$dldir~
18183      $install_prog $dir/$dlname \$dldir/$dlname~
18184      chmod a+x \$dldir/$dlname'
18185    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18186      dlpath=$dir/\$dldll~
18187       $rm \$dlpath'
18188    shlibpath_overrides_runpath=yes
18189
18190    case $host_os in
18191    cygwin*)
18192      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18193      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18194      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18195      ;;
18196    mingw*)
18197      # MinGW DLLs use traditional 'lib' prefix
18198      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18199      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18200      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18201        # It is most probably a Windows format PATH printed by
18202        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18203        # path with ; separators, and with drive letters. We can handle the
18204        # drive letters (cygwin fileutils understands them), so leave them,
18205        # especially as we might pass files found there to a mingw objdump,
18206        # which wouldn't understand a cygwinified path. Ahh.
18207        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18208      else
18209        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18210      fi
18211      ;;
18212    pw32*)
18213      # pw32 DLLs use 'pw' prefix rather than 'lib'
18214      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18215      ;;
18216    esac
18217    ;;
18218
18219  *)
18220    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18221    ;;
18222  esac
18223  dynamic_linker='Win32 ld.exe'
18224  # FIXME: first we should search . and the directory the executable is in
18225  shlibpath_var=PATH
18226  ;;
18227
18228darwin* | rhapsody*)
18229  dynamic_linker="$host_os dyld"
18230  version_type=darwin
18231  need_lib_prefix=no
18232  need_version=no
18233  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18234  soname_spec='${libname}${release}${major}$shared_ext'
18235  shlibpath_overrides_runpath=yes
18236  shlibpath_var=DYLD_LIBRARY_PATH
18237  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18238  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18239  if test "$GCC" = yes; then
18240    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"`
18241  else
18242    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18243  fi
18244  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18245  ;;
18246
18247dgux*)
18248  version_type=linux
18249  need_lib_prefix=no
18250  need_version=no
18251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18252  soname_spec='${libname}${release}${shared_ext}$major'
18253  shlibpath_var=LD_LIBRARY_PATH
18254  ;;
18255
18256freebsd1*)
18257  dynamic_linker=no
18258  ;;
18259
18260kfreebsd*-gnu)
18261  version_type=linux
18262  need_lib_prefix=no
18263  need_version=no
18264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18265  soname_spec='${libname}${release}${shared_ext}$major'
18266  shlibpath_var=LD_LIBRARY_PATH
18267  shlibpath_overrides_runpath=no
18268  hardcode_into_libs=yes
18269  dynamic_linker='GNU ld.so'
18270  ;;
18271
18272freebsd* | dragonfly*)
18273  # DragonFly does not have aout.  When/if they implement a new
18274  # versioning mechanism, adjust this.
18275  if test -x /usr/bin/objformat; then
18276    objformat=`/usr/bin/objformat`
18277  else
18278    case $host_os in
18279    freebsd[123]*) objformat=aout ;;
18280    *) objformat=elf ;;
18281    esac
18282  fi
18283  version_type=freebsd-$objformat
18284  case $version_type in
18285    freebsd-elf*)
18286      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287      need_version=no
18288      need_lib_prefix=no
18289      ;;
18290    freebsd-*)
18291      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18292      need_version=yes
18293      ;;
18294  esac
18295  shlibpath_var=LD_LIBRARY_PATH
18296  case $host_os in
18297  freebsd2*)
18298    shlibpath_overrides_runpath=yes
18299    ;;
18300  freebsd3.[01]* | freebsdelf3.[01]*)
18301    shlibpath_overrides_runpath=yes
18302    hardcode_into_libs=yes
18303    ;;
18304  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18305  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18306    shlibpath_overrides_runpath=no
18307    hardcode_into_libs=yes
18308    ;;
18309  freebsd*) # from 4.6 on
18310    shlibpath_overrides_runpath=yes
18311    hardcode_into_libs=yes
18312    ;;
18313  esac
18314  ;;
18315
18316gnu*)
18317  version_type=linux
18318  need_lib_prefix=no
18319  need_version=no
18320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18321  soname_spec='${libname}${release}${shared_ext}$major'
18322  shlibpath_var=LD_LIBRARY_PATH
18323  hardcode_into_libs=yes
18324  ;;
18325
18326hpux9* | hpux10* | hpux11*)
18327  # Give a soname corresponding to the major version so that dld.sl refuses to
18328  # link against other versions.
18329  version_type=sunos
18330  need_lib_prefix=no
18331  need_version=no
18332  case $host_cpu in
18333  ia64*)
18334    shrext_cmds='.so'
18335    hardcode_into_libs=yes
18336    dynamic_linker="$host_os dld.so"
18337    shlibpath_var=LD_LIBRARY_PATH
18338    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18339    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18340    soname_spec='${libname}${release}${shared_ext}$major'
18341    if test "X$HPUX_IA64_MODE" = X32; then
18342      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18343    else
18344      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18345    fi
18346    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18347    ;;
18348   hppa*64*)
18349     shrext_cmds='.sl'
18350     hardcode_into_libs=yes
18351     dynamic_linker="$host_os dld.sl"
18352     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18353     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355     soname_spec='${libname}${release}${shared_ext}$major'
18356     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18357     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18358     ;;
18359   *)
18360    shrext_cmds='.sl'
18361    dynamic_linker="$host_os dld.sl"
18362    shlibpath_var=SHLIB_PATH
18363    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18364    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365    soname_spec='${libname}${release}${shared_ext}$major'
18366    ;;
18367  esac
18368  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18369  postinstall_cmds='chmod 555 $lib'
18370  ;;
18371
18372interix3*)
18373  version_type=linux
18374  need_lib_prefix=no
18375  need_version=no
18376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18377  soname_spec='${libname}${release}${shared_ext}$major'
18378  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18379  shlibpath_var=LD_LIBRARY_PATH
18380  shlibpath_overrides_runpath=no
18381  hardcode_into_libs=yes
18382  ;;
18383
18384irix5* | irix6* | nonstopux*)
18385  case $host_os in
18386    nonstopux*) version_type=nonstopux ;;
18387    *)
18388	if test "$lt_cv_prog_gnu_ld" = yes; then
18389		version_type=linux
18390	else
18391		version_type=irix
18392	fi ;;
18393  esac
18394  need_lib_prefix=no
18395  need_version=no
18396  soname_spec='${libname}${release}${shared_ext}$major'
18397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18398  case $host_os in
18399  irix5* | nonstopux*)
18400    libsuff= shlibsuff=
18401    ;;
18402  *)
18403    case $LD in # libtool.m4 will add one of these switches to LD
18404    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18405      libsuff= shlibsuff= libmagic=32-bit;;
18406    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18407      libsuff=32 shlibsuff=N32 libmagic=N32;;
18408    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18409      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18410    *) libsuff= shlibsuff= libmagic=never-match;;
18411    esac
18412    ;;
18413  esac
18414  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18415  shlibpath_overrides_runpath=no
18416  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18417  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18418  hardcode_into_libs=yes
18419  ;;
18420
18421# No shared lib support for Linux oldld, aout, or coff.
18422linux*oldld* | linux*aout* | linux*coff*)
18423  dynamic_linker=no
18424  ;;
18425
18426# This must be Linux ELF.
18427linux*)
18428  version_type=linux
18429  need_lib_prefix=no
18430  need_version=no
18431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432  soname_spec='${libname}${release}${shared_ext}$major'
18433  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18434  shlibpath_var=LD_LIBRARY_PATH
18435  shlibpath_overrides_runpath=no
18436  # This implies no fast_install, which is unacceptable.
18437  # Some rework will be needed to allow for fast_install
18438  # before this can be enabled.
18439  hardcode_into_libs=yes
18440
18441  # Append ld.so.conf contents to the search path
18442  if test -f /etc/ld.so.conf; then
18443    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18444    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18445  fi
18446
18447  # We used to test for /lib/ld.so.1 and disable shared libraries on
18448  # powerpc, because MkLinux only supported shared libraries with the
18449  # GNU dynamic linker.  Since this was broken with cross compilers,
18450  # most powerpc-linux boxes support dynamic linking these days and
18451  # people can always --disable-shared, the test was removed, and we
18452  # assume the GNU/Linux dynamic linker is in use.
18453  dynamic_linker='GNU/Linux ld.so'
18454  ;;
18455
18456knetbsd*-gnu)
18457  version_type=linux
18458  need_lib_prefix=no
18459  need_version=no
18460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18461  soname_spec='${libname}${release}${shared_ext}$major'
18462  shlibpath_var=LD_LIBRARY_PATH
18463  shlibpath_overrides_runpath=no
18464  hardcode_into_libs=yes
18465  dynamic_linker='GNU ld.so'
18466  ;;
18467
18468netbsd*)
18469  version_type=sunos
18470  need_lib_prefix=no
18471  need_version=no
18472  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18473    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18474    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18475    dynamic_linker='NetBSD (a.out) ld.so'
18476  else
18477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18478    soname_spec='${libname}${release}${shared_ext}$major'
18479    dynamic_linker='NetBSD ld.elf_so'
18480  fi
18481  shlibpath_var=LD_LIBRARY_PATH
18482  shlibpath_overrides_runpath=yes
18483  hardcode_into_libs=yes
18484  ;;
18485
18486newsos6)
18487  version_type=linux
18488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18489  shlibpath_var=LD_LIBRARY_PATH
18490  shlibpath_overrides_runpath=yes
18491  ;;
18492
18493nto-qnx*)
18494  version_type=linux
18495  need_lib_prefix=no
18496  need_version=no
18497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18498  soname_spec='${libname}${release}${shared_ext}$major'
18499  shlibpath_var=LD_LIBRARY_PATH
18500  shlibpath_overrides_runpath=yes
18501  ;;
18502
18503openbsd*)
18504  version_type=sunos
18505  sys_lib_dlsearch_path_spec="/usr/lib"
18506  need_lib_prefix=no
18507  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18508  case $host_os in
18509    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18510    *)                         need_version=no  ;;
18511  esac
18512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18513  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18514  shlibpath_var=LD_LIBRARY_PATH
18515  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18516    case $host_os in
18517      openbsd2.[89] | openbsd2.[89].*)
18518	shlibpath_overrides_runpath=no
18519	;;
18520      *)
18521	shlibpath_overrides_runpath=yes
18522	;;
18523      esac
18524  else
18525    shlibpath_overrides_runpath=yes
18526  fi
18527  ;;
18528
18529os2*)
18530  libname_spec='$name'
18531  shrext_cmds=".dll"
18532  need_lib_prefix=no
18533  library_names_spec='$libname${shared_ext} $libname.a'
18534  dynamic_linker='OS/2 ld.exe'
18535  shlibpath_var=LIBPATH
18536  ;;
18537
18538osf3* | osf4* | osf5*)
18539  version_type=osf
18540  need_lib_prefix=no
18541  need_version=no
18542  soname_spec='${libname}${release}${shared_ext}$major'
18543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544  shlibpath_var=LD_LIBRARY_PATH
18545  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18546  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18547  ;;
18548
18549solaris*)
18550  version_type=linux
18551  need_lib_prefix=no
18552  need_version=no
18553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554  soname_spec='${libname}${release}${shared_ext}$major'
18555  shlibpath_var=LD_LIBRARY_PATH
18556  shlibpath_overrides_runpath=yes
18557  hardcode_into_libs=yes
18558  # ldd complains unless libraries are executable
18559  postinstall_cmds='chmod +x $lib'
18560  ;;
18561
18562sunos4*)
18563  version_type=sunos
18564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18565  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18566  shlibpath_var=LD_LIBRARY_PATH
18567  shlibpath_overrides_runpath=yes
18568  if test "$with_gnu_ld" = yes; then
18569    need_lib_prefix=no
18570  fi
18571  need_version=yes
18572  ;;
18573
18574sysv4 | sysv4.3*)
18575  version_type=linux
18576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577  soname_spec='${libname}${release}${shared_ext}$major'
18578  shlibpath_var=LD_LIBRARY_PATH
18579  case $host_vendor in
18580    sni)
18581      shlibpath_overrides_runpath=no
18582      need_lib_prefix=no
18583      export_dynamic_flag_spec='${wl}-Blargedynsym'
18584      runpath_var=LD_RUN_PATH
18585      ;;
18586    siemens)
18587      need_lib_prefix=no
18588      ;;
18589    motorola)
18590      need_lib_prefix=no
18591      need_version=no
18592      shlibpath_overrides_runpath=no
18593      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18594      ;;
18595  esac
18596  ;;
18597
18598sysv4*MP*)
18599  if test -d /usr/nec ;then
18600    version_type=linux
18601    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18602    soname_spec='$libname${shared_ext}.$major'
18603    shlibpath_var=LD_LIBRARY_PATH
18604  fi
18605  ;;
18606
18607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18608  version_type=freebsd-elf
18609  need_lib_prefix=no
18610  need_version=no
18611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18612  soname_spec='${libname}${release}${shared_ext}$major'
18613  shlibpath_var=LD_LIBRARY_PATH
18614  hardcode_into_libs=yes
18615  if test "$with_gnu_ld" = yes; then
18616    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18617    shlibpath_overrides_runpath=no
18618  else
18619    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18620    shlibpath_overrides_runpath=yes
18621    case $host_os in
18622      sco3.2v5*)
18623        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18624	;;
18625    esac
18626  fi
18627  sys_lib_dlsearch_path_spec='/usr/lib'
18628  ;;
18629
18630uts4*)
18631  version_type=linux
18632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633  soname_spec='${libname}${release}${shared_ext}$major'
18634  shlibpath_var=LD_LIBRARY_PATH
18635  ;;
18636
18637*)
18638  dynamic_linker=no
18639  ;;
18640esac
18641echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18642echo "${ECHO_T}$dynamic_linker" >&6
18643test "$dynamic_linker" = no && can_build_shared=no
18644
18645variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18646if test "$GCC" = yes; then
18647  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18648fi
18649
18650echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18651echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18652hardcode_action_GCJ=
18653if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18654   test -n "$runpath_var_GCJ" || \
18655   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18656
18657  # We can hardcode non-existant directories.
18658  if test "$hardcode_direct_GCJ" != no &&
18659     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18660     # have to relink, otherwise we might link with an installed library
18661     # when we should be linking with a yet-to-be-installed one
18662     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18663     test "$hardcode_minus_L_GCJ" != no; then
18664    # Linking always hardcodes the temporary library directory.
18665    hardcode_action_GCJ=relink
18666  else
18667    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18668    hardcode_action_GCJ=immediate
18669  fi
18670else
18671  # We cannot hardcode anything, or else we can only hardcode existing
18672  # directories.
18673  hardcode_action_GCJ=unsupported
18674fi
18675echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18676echo "${ECHO_T}$hardcode_action_GCJ" >&6
18677
18678if test "$hardcode_action_GCJ" = relink; then
18679  # Fast installation is not supported
18680  enable_fast_install=no
18681elif test "$shlibpath_overrides_runpath" = yes ||
18682     test "$enable_shared" = no; then
18683  # Fast installation is not necessary
18684  enable_fast_install=needless
18685fi
18686
18687
18688# The else clause should only fire when bootstrapping the
18689# libtool distribution, otherwise you forgot to ship ltmain.sh
18690# with your package, and you will get complaints that there are
18691# no rules to generate ltmain.sh.
18692if test -f "$ltmain"; then
18693  # See if we are running on zsh, and set the options which allow our commands through
18694  # without removal of \ escapes.
18695  if test -n "${ZSH_VERSION+set}" ; then
18696    setopt NO_GLOB_SUBST
18697  fi
18698  # Now quote all the things that may contain metacharacters while being
18699  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18700  # variables and quote the copies for generation of the libtool script.
18701  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18702    SED SHELL STRIP \
18703    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18704    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18705    deplibs_check_method reload_flag reload_cmds need_locks \
18706    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18707    lt_cv_sys_global_symbol_to_c_name_address \
18708    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18709    old_postinstall_cmds old_postuninstall_cmds \
18710    compiler_GCJ \
18711    CC_GCJ \
18712    LD_GCJ \
18713    lt_prog_compiler_wl_GCJ \
18714    lt_prog_compiler_pic_GCJ \
18715    lt_prog_compiler_static_GCJ \
18716    lt_prog_compiler_no_builtin_flag_GCJ \
18717    export_dynamic_flag_spec_GCJ \
18718    thread_safe_flag_spec_GCJ \
18719    whole_archive_flag_spec_GCJ \
18720    enable_shared_with_static_runtimes_GCJ \
18721    old_archive_cmds_GCJ \
18722    old_archive_from_new_cmds_GCJ \
18723    predep_objects_GCJ \
18724    postdep_objects_GCJ \
18725    predeps_GCJ \
18726    postdeps_GCJ \
18727    compiler_lib_search_path_GCJ \
18728    archive_cmds_GCJ \
18729    archive_expsym_cmds_GCJ \
18730    postinstall_cmds_GCJ \
18731    postuninstall_cmds_GCJ \
18732    old_archive_from_expsyms_cmds_GCJ \
18733    allow_undefined_flag_GCJ \
18734    no_undefined_flag_GCJ \
18735    export_symbols_cmds_GCJ \
18736    hardcode_libdir_flag_spec_GCJ \
18737    hardcode_libdir_flag_spec_ld_GCJ \
18738    hardcode_libdir_separator_GCJ \
18739    hardcode_automatic_GCJ \
18740    module_cmds_GCJ \
18741    module_expsym_cmds_GCJ \
18742    lt_cv_prog_compiler_c_o_GCJ \
18743    exclude_expsyms_GCJ \
18744    include_expsyms_GCJ; do
18745
18746    case $var in
18747    old_archive_cmds_GCJ | \
18748    old_archive_from_new_cmds_GCJ | \
18749    archive_cmds_GCJ | \
18750    archive_expsym_cmds_GCJ | \
18751    module_cmds_GCJ | \
18752    module_expsym_cmds_GCJ | \
18753    old_archive_from_expsyms_cmds_GCJ | \
18754    export_symbols_cmds_GCJ | \
18755    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18756    postinstall_cmds | postuninstall_cmds | \
18757    old_postinstall_cmds | old_postuninstall_cmds | \
18758    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18759      # Double-quote double-evaled strings.
18760      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18761      ;;
18762    *)
18763      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18764      ;;
18765    esac
18766  done
18767
18768  case $lt_echo in
18769  *'\$0 --fallback-echo"')
18770    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18771    ;;
18772  esac
18773
18774cfgfile="$ofile"
18775
18776  cat <<__EOF__ >> "$cfgfile"
18777# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18778
18779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18780
18781# Shell to use when invoking shell scripts.
18782SHELL=$lt_SHELL
18783
18784# Whether or not to build shared libraries.
18785build_libtool_libs=$enable_shared
18786
18787# Whether or not to build static libraries.
18788build_old_libs=$enable_static
18789
18790# Whether or not to add -lc for building shared libraries.
18791build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18792
18793# Whether or not to disallow shared libs when runtime libs are static
18794allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18795
18796# Whether or not to optimize for fast installation.
18797fast_install=$enable_fast_install
18798
18799# The host system.
18800host_alias=$host_alias
18801host=$host
18802host_os=$host_os
18803
18804# The build system.
18805build_alias=$build_alias
18806build=$build
18807build_os=$build_os
18808
18809# An echo program that does not interpret backslashes.
18810echo=$lt_echo
18811
18812# The archiver.
18813AR=$lt_AR
18814AR_FLAGS=$lt_AR_FLAGS
18815
18816# A C compiler.
18817LTCC=$lt_LTCC
18818
18819# LTCC compiler flags.
18820LTCFLAGS=$lt_LTCFLAGS
18821
18822# A language-specific compiler.
18823CC=$lt_compiler_GCJ
18824
18825# Is the compiler the GNU C compiler?
18826with_gcc=$GCC_GCJ
18827
18828# An ERE matcher.
18829EGREP=$lt_EGREP
18830
18831# The linker used to build libraries.
18832LD=$lt_LD_GCJ
18833
18834# Whether we need hard or soft links.
18835LN_S=$lt_LN_S
18836
18837# A BSD-compatible nm program.
18838NM=$lt_NM
18839
18840# A symbol stripping program
18841STRIP=$lt_STRIP
18842
18843# Used to examine libraries when file_magic_cmd begins "file"
18844MAGIC_CMD=$MAGIC_CMD
18845
18846# Used on cygwin: DLL creation program.
18847DLLTOOL="$DLLTOOL"
18848
18849# Used on cygwin: object dumper.
18850OBJDUMP="$OBJDUMP"
18851
18852# Used on cygwin: assembler.
18853AS="$AS"
18854
18855# The name of the directory that contains temporary libtool files.
18856objdir=$objdir
18857
18858# How to create reloadable object files.
18859reload_flag=$lt_reload_flag
18860reload_cmds=$lt_reload_cmds
18861
18862# How to pass a linker flag through the compiler.
18863wl=$lt_lt_prog_compiler_wl_GCJ
18864
18865# Object file suffix (normally "o").
18866objext="$ac_objext"
18867
18868# Old archive suffix (normally "a").
18869libext="$libext"
18870
18871# Shared library suffix (normally ".so").
18872shrext_cmds='$shrext_cmds'
18873
18874# Executable file suffix (normally "").
18875exeext="$exeext"
18876
18877# Additional compiler flags for building library objects.
18878pic_flag=$lt_lt_prog_compiler_pic_GCJ
18879pic_mode=$pic_mode
18880
18881# What is the maximum length of a command?
18882max_cmd_len=$lt_cv_sys_max_cmd_len
18883
18884# Does compiler simultaneously support -c and -o options?
18885compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18886
18887# Must we lock files when doing compilation?
18888need_locks=$lt_need_locks
18889
18890# Do we need the lib prefix for modules?
18891need_lib_prefix=$need_lib_prefix
18892
18893# Do we need a version for libraries?
18894need_version=$need_version
18895
18896# Whether dlopen is supported.
18897dlopen_support=$enable_dlopen
18898
18899# Whether dlopen of programs is supported.
18900dlopen_self=$enable_dlopen_self
18901
18902# Whether dlopen of statically linked programs is supported.
18903dlopen_self_static=$enable_dlopen_self_static
18904
18905# Compiler flag to prevent dynamic linking.
18906link_static_flag=$lt_lt_prog_compiler_static_GCJ
18907
18908# Compiler flag to turn off builtin functions.
18909no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18910
18911# Compiler flag to allow reflexive dlopens.
18912export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18913
18914# Compiler flag to generate shared objects directly from archives.
18915whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18916
18917# Compiler flag to generate thread-safe objects.
18918thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18919
18920# Library versioning type.
18921version_type=$version_type
18922
18923# Format of library name prefix.
18924libname_spec=$lt_libname_spec
18925
18926# List of archive names.  First name is the real one, the rest are links.
18927# The last name is the one that the linker finds with -lNAME.
18928library_names_spec=$lt_library_names_spec
18929
18930# The coded name of the library, if different from the real name.
18931soname_spec=$lt_soname_spec
18932
18933# Commands used to build and install an old-style archive.
18934RANLIB=$lt_RANLIB
18935old_archive_cmds=$lt_old_archive_cmds_GCJ
18936old_postinstall_cmds=$lt_old_postinstall_cmds
18937old_postuninstall_cmds=$lt_old_postuninstall_cmds
18938
18939# Create an old-style archive from a shared archive.
18940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18941
18942# Create a temporary old-style archive to link instead of a shared archive.
18943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18944
18945# Commands used to build and install a shared archive.
18946archive_cmds=$lt_archive_cmds_GCJ
18947archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18948postinstall_cmds=$lt_postinstall_cmds
18949postuninstall_cmds=$lt_postuninstall_cmds
18950
18951# Commands used to build a loadable module (assumed same as above if empty)
18952module_cmds=$lt_module_cmds_GCJ
18953module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18954
18955# Commands to strip libraries.
18956old_striplib=$lt_old_striplib
18957striplib=$lt_striplib
18958
18959# Dependencies to place before the objects being linked to create a
18960# shared library.
18961predep_objects=$lt_predep_objects_GCJ
18962
18963# Dependencies to place after the objects being linked to create a
18964# shared library.
18965postdep_objects=$lt_postdep_objects_GCJ
18966
18967# Dependencies to place before the objects being linked to create a
18968# shared library.
18969predeps=$lt_predeps_GCJ
18970
18971# Dependencies to place after the objects being linked to create a
18972# shared library.
18973postdeps=$lt_postdeps_GCJ
18974
18975# The library search path used internally by the compiler when linking
18976# a shared library.
18977compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18978
18979# Method to check whether dependent libraries are shared objects.
18980deplibs_check_method=$lt_deplibs_check_method
18981
18982# Command to use when deplibs_check_method == file_magic.
18983file_magic_cmd=$lt_file_magic_cmd
18984
18985# Flag that allows shared libraries with undefined symbols to be built.
18986allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18987
18988# Flag that forces no undefined symbols.
18989no_undefined_flag=$lt_no_undefined_flag_GCJ
18990
18991# Commands used to finish a libtool library installation in a directory.
18992finish_cmds=$lt_finish_cmds
18993
18994# Same as above, but a single script fragment to be evaled but not shown.
18995finish_eval=$lt_finish_eval
18996
18997# Take the output of nm and produce a listing of raw symbols and C names.
18998global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18999
19000# Transform the output of nm in a proper C declaration
19001global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19002
19003# Transform the output of nm in a C name address pair
19004global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19005
19006# This is the shared library runtime path variable.
19007runpath_var=$runpath_var
19008
19009# This is the shared library path variable.
19010shlibpath_var=$shlibpath_var
19011
19012# Is shlibpath searched before the hard-coded library search path?
19013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19014
19015# How to hardcode a shared library path into an executable.
19016hardcode_action=$hardcode_action_GCJ
19017
19018# Whether we should hardcode library paths into libraries.
19019hardcode_into_libs=$hardcode_into_libs
19020
19021# Flag to hardcode \$libdir into a binary during linking.
19022# This must work even if \$libdir does not exist.
19023hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19024
19025# If ld is used when linking, flag to hardcode \$libdir into
19026# a binary during linking. This must work even if \$libdir does
19027# not exist.
19028hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19029
19030# Whether we need a single -rpath flag with a separated argument.
19031hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19032
19033# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19034# resulting binary.
19035hardcode_direct=$hardcode_direct_GCJ
19036
19037# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19038# resulting binary.
19039hardcode_minus_L=$hardcode_minus_L_GCJ
19040
19041# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19042# the resulting binary.
19043hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19044
19045# Set to yes if building a shared library automatically hardcodes DIR into the library
19046# and all subsequent libraries and executables linked against it.
19047hardcode_automatic=$hardcode_automatic_GCJ
19048
19049# Variables whose values should be saved in libtool wrapper scripts and
19050# restored at relink time.
19051variables_saved_for_relink="$variables_saved_for_relink"
19052
19053# Whether libtool must link a program against all its dependency libraries.
19054link_all_deplibs=$link_all_deplibs_GCJ
19055
19056# Compile-time system search path for libraries
19057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19058
19059# Run-time system search path for libraries
19060sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19061
19062# Fix the shell variable \$srcfile for the compiler.
19063fix_srcfile_path="$fix_srcfile_path_GCJ"
19064
19065# Set to yes if exported symbols are required.
19066always_export_symbols=$always_export_symbols_GCJ
19067
19068# The commands to list exported symbols.
19069export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19070
19071# The commands to extract the exported symbol list from a shared archive.
19072extract_expsyms_cmds=$lt_extract_expsyms_cmds
19073
19074# Symbols that should not be listed in the preloaded symbols.
19075exclude_expsyms=$lt_exclude_expsyms_GCJ
19076
19077# Symbols that must always be exported.
19078include_expsyms=$lt_include_expsyms_GCJ
19079
19080# ### END LIBTOOL TAG CONFIG: $tagname
19081
19082__EOF__
19083
19084
19085else
19086  # If there is no Makefile yet, we rely on a make rule to execute
19087  # `config.status --recheck' to rerun these tests and create the
19088  # libtool script then.
19089  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19090  if test -f "$ltmain_in"; then
19091    test -f Makefile && make "$ltmain"
19092  fi
19093fi
19094
19095
19096ac_ext=c
19097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
19102CC="$lt_save_CC"
19103
19104	else
19105	  tagname=""
19106	fi
19107	;;
19108
19109      RC)
19110
19111
19112
19113# Source file extension for RC test sources.
19114ac_ext=rc
19115
19116# Object file extension for compiled RC test sources.
19117objext=o
19118objext_RC=$objext
19119
19120# Code to be used in simple compile tests
19121lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19122
19123# Code to be used in simple link tests
19124lt_simple_link_test_code="$lt_simple_compile_test_code"
19125
19126# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19127
19128# If no C compiler was specified, use CC.
19129LTCC=${LTCC-"$CC"}
19130
19131# If no C compiler flags were specified, use CFLAGS.
19132LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19133
19134# Allow CC to be a program name with arguments.
19135compiler=$CC
19136
19137
19138# save warnings/boilerplate of simple test code
19139ac_outfile=conftest.$ac_objext
19140printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19141eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19142_lt_compiler_boilerplate=`cat conftest.err`
19143$rm conftest*
19144
19145ac_outfile=conftest.$ac_objext
19146printf "$lt_simple_link_test_code" >conftest.$ac_ext
19147eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19148_lt_linker_boilerplate=`cat conftest.err`
19149$rm conftest*
19150
19151
19152# Allow CC to be a program name with arguments.
19153lt_save_CC="$CC"
19154CC=${RC-"windres"}
19155compiler=$CC
19156compiler_RC=$CC
19157for cc_temp in $compiler""; do
19158  case $cc_temp in
19159    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19160    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19161    \-*) ;;
19162    *) break;;
19163  esac
19164done
19165cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19166
19167lt_cv_prog_compiler_c_o_RC=yes
19168
19169# The else clause should only fire when bootstrapping the
19170# libtool distribution, otherwise you forgot to ship ltmain.sh
19171# with your package, and you will get complaints that there are
19172# no rules to generate ltmain.sh.
19173if test -f "$ltmain"; then
19174  # See if we are running on zsh, and set the options which allow our commands through
19175  # without removal of \ escapes.
19176  if test -n "${ZSH_VERSION+set}" ; then
19177    setopt NO_GLOB_SUBST
19178  fi
19179  # Now quote all the things that may contain metacharacters while being
19180  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19181  # variables and quote the copies for generation of the libtool script.
19182  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19183    SED SHELL STRIP \
19184    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19185    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19186    deplibs_check_method reload_flag reload_cmds need_locks \
19187    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19188    lt_cv_sys_global_symbol_to_c_name_address \
19189    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19190    old_postinstall_cmds old_postuninstall_cmds \
19191    compiler_RC \
19192    CC_RC \
19193    LD_RC \
19194    lt_prog_compiler_wl_RC \
19195    lt_prog_compiler_pic_RC \
19196    lt_prog_compiler_static_RC \
19197    lt_prog_compiler_no_builtin_flag_RC \
19198    export_dynamic_flag_spec_RC \
19199    thread_safe_flag_spec_RC \
19200    whole_archive_flag_spec_RC \
19201    enable_shared_with_static_runtimes_RC \
19202    old_archive_cmds_RC \
19203    old_archive_from_new_cmds_RC \
19204    predep_objects_RC \
19205    postdep_objects_RC \
19206    predeps_RC \
19207    postdeps_RC \
19208    compiler_lib_search_path_RC \
19209    archive_cmds_RC \
19210    archive_expsym_cmds_RC \
19211    postinstall_cmds_RC \
19212    postuninstall_cmds_RC \
19213    old_archive_from_expsyms_cmds_RC \
19214    allow_undefined_flag_RC \
19215    no_undefined_flag_RC \
19216    export_symbols_cmds_RC \
19217    hardcode_libdir_flag_spec_RC \
19218    hardcode_libdir_flag_spec_ld_RC \
19219    hardcode_libdir_separator_RC \
19220    hardcode_automatic_RC \
19221    module_cmds_RC \
19222    module_expsym_cmds_RC \
19223    lt_cv_prog_compiler_c_o_RC \
19224    exclude_expsyms_RC \
19225    include_expsyms_RC; do
19226
19227    case $var in
19228    old_archive_cmds_RC | \
19229    old_archive_from_new_cmds_RC | \
19230    archive_cmds_RC | \
19231    archive_expsym_cmds_RC | \
19232    module_cmds_RC | \
19233    module_expsym_cmds_RC | \
19234    old_archive_from_expsyms_cmds_RC | \
19235    export_symbols_cmds_RC | \
19236    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19237    postinstall_cmds | postuninstall_cmds | \
19238    old_postinstall_cmds | old_postuninstall_cmds | \
19239    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19240      # Double-quote double-evaled strings.
19241      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19242      ;;
19243    *)
19244      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19245      ;;
19246    esac
19247  done
19248
19249  case $lt_echo in
19250  *'\$0 --fallback-echo"')
19251    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19252    ;;
19253  esac
19254
19255cfgfile="$ofile"
19256
19257  cat <<__EOF__ >> "$cfgfile"
19258# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19259
19260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19261
19262# Shell to use when invoking shell scripts.
19263SHELL=$lt_SHELL
19264
19265# Whether or not to build shared libraries.
19266build_libtool_libs=$enable_shared
19267
19268# Whether or not to build static libraries.
19269build_old_libs=$enable_static
19270
19271# Whether or not to add -lc for building shared libraries.
19272build_libtool_need_lc=$archive_cmds_need_lc_RC
19273
19274# Whether or not to disallow shared libs when runtime libs are static
19275allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19276
19277# Whether or not to optimize for fast installation.
19278fast_install=$enable_fast_install
19279
19280# The host system.
19281host_alias=$host_alias
19282host=$host
19283host_os=$host_os
19284
19285# The build system.
19286build_alias=$build_alias
19287build=$build
19288build_os=$build_os
19289
19290# An echo program that does not interpret backslashes.
19291echo=$lt_echo
19292
19293# The archiver.
19294AR=$lt_AR
19295AR_FLAGS=$lt_AR_FLAGS
19296
19297# A C compiler.
19298LTCC=$lt_LTCC
19299
19300# LTCC compiler flags.
19301LTCFLAGS=$lt_LTCFLAGS
19302
19303# A language-specific compiler.
19304CC=$lt_compiler_RC
19305
19306# Is the compiler the GNU C compiler?
19307with_gcc=$GCC_RC
19308
19309# An ERE matcher.
19310EGREP=$lt_EGREP
19311
19312# The linker used to build libraries.
19313LD=$lt_LD_RC
19314
19315# Whether we need hard or soft links.
19316LN_S=$lt_LN_S
19317
19318# A BSD-compatible nm program.
19319NM=$lt_NM
19320
19321# A symbol stripping program
19322STRIP=$lt_STRIP
19323
19324# Used to examine libraries when file_magic_cmd begins "file"
19325MAGIC_CMD=$MAGIC_CMD
19326
19327# Used on cygwin: DLL creation program.
19328DLLTOOL="$DLLTOOL"
19329
19330# Used on cygwin: object dumper.
19331OBJDUMP="$OBJDUMP"
19332
19333# Used on cygwin: assembler.
19334AS="$AS"
19335
19336# The name of the directory that contains temporary libtool files.
19337objdir=$objdir
19338
19339# How to create reloadable object files.
19340reload_flag=$lt_reload_flag
19341reload_cmds=$lt_reload_cmds
19342
19343# How to pass a linker flag through the compiler.
19344wl=$lt_lt_prog_compiler_wl_RC
19345
19346# Object file suffix (normally "o").
19347objext="$ac_objext"
19348
19349# Old archive suffix (normally "a").
19350libext="$libext"
19351
19352# Shared library suffix (normally ".so").
19353shrext_cmds='$shrext_cmds'
19354
19355# Executable file suffix (normally "").
19356exeext="$exeext"
19357
19358# Additional compiler flags for building library objects.
19359pic_flag=$lt_lt_prog_compiler_pic_RC
19360pic_mode=$pic_mode
19361
19362# What is the maximum length of a command?
19363max_cmd_len=$lt_cv_sys_max_cmd_len
19364
19365# Does compiler simultaneously support -c and -o options?
19366compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19367
19368# Must we lock files when doing compilation?
19369need_locks=$lt_need_locks
19370
19371# Do we need the lib prefix for modules?
19372need_lib_prefix=$need_lib_prefix
19373
19374# Do we need a version for libraries?
19375need_version=$need_version
19376
19377# Whether dlopen is supported.
19378dlopen_support=$enable_dlopen
19379
19380# Whether dlopen of programs is supported.
19381dlopen_self=$enable_dlopen_self
19382
19383# Whether dlopen of statically linked programs is supported.
19384dlopen_self_static=$enable_dlopen_self_static
19385
19386# Compiler flag to prevent dynamic linking.
19387link_static_flag=$lt_lt_prog_compiler_static_RC
19388
19389# Compiler flag to turn off builtin functions.
19390no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19391
19392# Compiler flag to allow reflexive dlopens.
19393export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19394
19395# Compiler flag to generate shared objects directly from archives.
19396whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19397
19398# Compiler flag to generate thread-safe objects.
19399thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19400
19401# Library versioning type.
19402version_type=$version_type
19403
19404# Format of library name prefix.
19405libname_spec=$lt_libname_spec
19406
19407# List of archive names.  First name is the real one, the rest are links.
19408# The last name is the one that the linker finds with -lNAME.
19409library_names_spec=$lt_library_names_spec
19410
19411# The coded name of the library, if different from the real name.
19412soname_spec=$lt_soname_spec
19413
19414# Commands used to build and install an old-style archive.
19415RANLIB=$lt_RANLIB
19416old_archive_cmds=$lt_old_archive_cmds_RC
19417old_postinstall_cmds=$lt_old_postinstall_cmds
19418old_postuninstall_cmds=$lt_old_postuninstall_cmds
19419
19420# Create an old-style archive from a shared archive.
19421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19422
19423# Create a temporary old-style archive to link instead of a shared archive.
19424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19425
19426# Commands used to build and install a shared archive.
19427archive_cmds=$lt_archive_cmds_RC
19428archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19429postinstall_cmds=$lt_postinstall_cmds
19430postuninstall_cmds=$lt_postuninstall_cmds
19431
19432# Commands used to build a loadable module (assumed same as above if empty)
19433module_cmds=$lt_module_cmds_RC
19434module_expsym_cmds=$lt_module_expsym_cmds_RC
19435
19436# Commands to strip libraries.
19437old_striplib=$lt_old_striplib
19438striplib=$lt_striplib
19439
19440# Dependencies to place before the objects being linked to create a
19441# shared library.
19442predep_objects=$lt_predep_objects_RC
19443
19444# Dependencies to place after the objects being linked to create a
19445# shared library.
19446postdep_objects=$lt_postdep_objects_RC
19447
19448# Dependencies to place before the objects being linked to create a
19449# shared library.
19450predeps=$lt_predeps_RC
19451
19452# Dependencies to place after the objects being linked to create a
19453# shared library.
19454postdeps=$lt_postdeps_RC
19455
19456# The library search path used internally by the compiler when linking
19457# a shared library.
19458compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19459
19460# Method to check whether dependent libraries are shared objects.
19461deplibs_check_method=$lt_deplibs_check_method
19462
19463# Command to use when deplibs_check_method == file_magic.
19464file_magic_cmd=$lt_file_magic_cmd
19465
19466# Flag that allows shared libraries with undefined symbols to be built.
19467allow_undefined_flag=$lt_allow_undefined_flag_RC
19468
19469# Flag that forces no undefined symbols.
19470no_undefined_flag=$lt_no_undefined_flag_RC
19471
19472# Commands used to finish a libtool library installation in a directory.
19473finish_cmds=$lt_finish_cmds
19474
19475# Same as above, but a single script fragment to be evaled but not shown.
19476finish_eval=$lt_finish_eval
19477
19478# Take the output of nm and produce a listing of raw symbols and C names.
19479global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19480
19481# Transform the output of nm in a proper C declaration
19482global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19483
19484# Transform the output of nm in a C name address pair
19485global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19486
19487# This is the shared library runtime path variable.
19488runpath_var=$runpath_var
19489
19490# This is the shared library path variable.
19491shlibpath_var=$shlibpath_var
19492
19493# Is shlibpath searched before the hard-coded library search path?
19494shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19495
19496# How to hardcode a shared library path into an executable.
19497hardcode_action=$hardcode_action_RC
19498
19499# Whether we should hardcode library paths into libraries.
19500hardcode_into_libs=$hardcode_into_libs
19501
19502# Flag to hardcode \$libdir into a binary during linking.
19503# This must work even if \$libdir does not exist.
19504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19505
19506# If ld is used when linking, flag to hardcode \$libdir into
19507# a binary during linking. This must work even if \$libdir does
19508# not exist.
19509hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19510
19511# Whether we need a single -rpath flag with a separated argument.
19512hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19513
19514# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19515# resulting binary.
19516hardcode_direct=$hardcode_direct_RC
19517
19518# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19519# resulting binary.
19520hardcode_minus_L=$hardcode_minus_L_RC
19521
19522# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19523# the resulting binary.
19524hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19525
19526# Set to yes if building a shared library automatically hardcodes DIR into the library
19527# and all subsequent libraries and executables linked against it.
19528hardcode_automatic=$hardcode_automatic_RC
19529
19530# Variables whose values should be saved in libtool wrapper scripts and
19531# restored at relink time.
19532variables_saved_for_relink="$variables_saved_for_relink"
19533
19534# Whether libtool must link a program against all its dependency libraries.
19535link_all_deplibs=$link_all_deplibs_RC
19536
19537# Compile-time system search path for libraries
19538sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19539
19540# Run-time system search path for libraries
19541sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19542
19543# Fix the shell variable \$srcfile for the compiler.
19544fix_srcfile_path="$fix_srcfile_path_RC"
19545
19546# Set to yes if exported symbols are required.
19547always_export_symbols=$always_export_symbols_RC
19548
19549# The commands to list exported symbols.
19550export_symbols_cmds=$lt_export_symbols_cmds_RC
19551
19552# The commands to extract the exported symbol list from a shared archive.
19553extract_expsyms_cmds=$lt_extract_expsyms_cmds
19554
19555# Symbols that should not be listed in the preloaded symbols.
19556exclude_expsyms=$lt_exclude_expsyms_RC
19557
19558# Symbols that must always be exported.
19559include_expsyms=$lt_include_expsyms_RC
19560
19561# ### END LIBTOOL TAG CONFIG: $tagname
19562
19563__EOF__
19564
19565
19566else
19567  # If there is no Makefile yet, we rely on a make rule to execute
19568  # `config.status --recheck' to rerun these tests and create the
19569  # libtool script then.
19570  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19571  if test -f "$ltmain_in"; then
19572    test -f Makefile && make "$ltmain"
19573  fi
19574fi
19575
19576
19577ac_ext=c
19578ac_cpp='$CPP $CPPFLAGS'
19579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582
19583CC="$lt_save_CC"
19584
19585	;;
19586
19587      *)
19588	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19589echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19590   { (exit 1); exit 1; }; }
19591	;;
19592      esac
19593
19594      # Append the new tag name to the list of available tags.
19595      if test -n "$tagname" ; then
19596      available_tags="$available_tags $tagname"
19597    fi
19598    fi
19599  done
19600  IFS="$lt_save_ifs"
19601
19602  # Now substitute the updated list of available tags.
19603  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19604    mv "${ofile}T" "$ofile"
19605    chmod +x "$ofile"
19606  else
19607    rm -f "${ofile}T"
19608    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19609echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19610   { (exit 1); exit 1; }; }
19611  fi
19612fi
19613
19614
19615
19616# This can be used to rebuild libtool when needed
19617LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19618
19619# Always use our own libtool.
19620LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19621
19622# Prevent multiple expansion
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
19635 # AC_REQUIRE([AC_COIN_DLFCN_H])
19636
19637# NEW: If libtool exists in the directory higher up, we use that one
19638#      instead of creating a new one
19639
19640# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
19641# out in front of this macro body. You'll notice that LIBTOOL is already
19642# defined here.  We'll have to count on this macro not being called if libtool
19643# already exists, or at least move the libtool fixes outside the conditional.
19644# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
19645# This test is therefore removed.  -- lh, 061214 --
19646# if test "x$LIBTOOL" = x; then
19647
19648# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
19659
19660
19661
19662  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
19663echo "$as_me: Build is \"$build\"." >&6;}
19664  mydos2unix='| dos2unix'
19665  case $build in
19666    *-mingw*)
19667      CYGPATH_W=echo
19668      ;;
19669  esac
19670
19671  case $build in
19672    # Here we need to check if -m32 is specified.  If so, we need to correct
19673    # sys_lib_search_path_spec
19674    *-cygwin* | *-mingw*)
19675       case "$CXX" in
19676    clang* )
19677      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
19678      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
19679echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
19680      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19681	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
19682	  -e 's|libext="lib"|libext="a"|' \
19683      libtool > conftest.bla
19684      ;;
19685    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
19686      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
19687echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
19688      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19689	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19690	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
19691	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
19692	  -e 's%lib /OUT:%lib -OUT:%' \
19693	  -e "s%cygpath -w%$CYGPATH_W%" \
19694	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
19695	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
19696	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
19697	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
19698	  -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
19699      libtool > conftest.bla
19700      ;;
19701    *)
19702      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
19703echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
19704      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19705	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
19706	  -e 's|libext="lib"|libext="a"|' \
19707      libtool > conftest.bla
19708      ;;
19709  esac
19710  mv conftest.bla libtool
19711  chmod 755 libtool
19712
19713      ;;
19714    *x86_64-*)
19715      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
19716        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
19717echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
19718        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
19719        mv conftest.bla libtool
19720        chmod 755 libtool
19721      fi
19722      ;;
19723
19724    *-solaris*)
19725       if test "$GCC" = yes && \
19726     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
19727    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
19728    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
19729      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
19730echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
19731      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
19732      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
19733      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
19734	# AC_MSG_NOTICE(Compensating for broken gcc)
19735	for lib in $fixlibtmp ; do
19736	  if test -d "${lib}${hdwisa}" ; then
19737	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
19738	  fi
19739	done
19740	syslibpath64="${syslibpath64} ${fixlibtmp}"
19741      else
19742	syslibpath64="$fixlibtmp"
19743      fi
19744      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
19745      mv conftest.bla libtool
19746      chmod 755 libtool
19747    fi
19748    # AC_MSG_NOTICE(Result is )
19749    # $EGREP 'sys_lib_search_path_spec=' libtool
19750  fi
19751      ;;
19752    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
19753    *-darwin*)
19754      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
19755echo "$as_me: Applying patches to libtool for Darwin" >&6;}
19756      sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \
19757        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
19758      libtool > conftest.bla
19759
19760      mv conftest.bla libtool
19761      chmod 755 libtool
19762      ;;
19763  esac
19764# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
19765# the macro. -- lh, 061214 --
19766# fi
19767
19768# AC_MSG_NOTICE([End libtool initialisation.])
19769
19770# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
19771  # set RPATH_FLAGS to the compiler link flags required to hardcode location
19772  # of the shared objects
19773  RPATH_FLAGS=
19774
19775if test $enable_shared = yes; then
19776  case $build in
19777    *-linux-*)
19778      if test "$GXX" = "yes"; then
19779        RPATH_FLAGS=
19780        for dir in $abs_lib_dir; do
19781          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
19782        done
19783      fi ;;
19784    *-darwin*)
19785        RPATH_FLAGS=nothing ;;
19786    *-ibm-*)
19787      case "$CXX" in
19788      xlC* | */xlC* | mpxlC* | */mpxlC*)
19789        RPATH_FLAGS=nothing ;;
19790      esac ;;
19791    *-hp-*)
19792        RPATH_FLAGS=nothing ;;
19793    *-mingw32)
19794        RPATH_FLAGS=nothing ;;
19795    *-*-solaris*)
19796        RPATH_FLAGS=
19797        for dir in $abs_lib_dir; do
19798          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
19799        done
19800  esac
19801
19802  if test "$RPATH_FLAGS" = ""; then
19803    { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5
19804echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;}
19805  fi
19806  if test "$RPATH_FLAGS" = "nothing"; then
19807    RPATH_FLAGS=
19808  fi
19809fi
19810
19811
19812
19813
19814else
19815
19816  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
19817echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
19818  # get all missing information from the config.log file
19819
19820  # output variables and defines
19821  as_save_IFS=$IFS
19822  IFS='
19823'
19824  for oneline in `cat $coin_config_dir/config.status`; do
19825    case "$oneline" in
19826         # First some automake conditionals
19827      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
19828      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
19829      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
19830      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
19831        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
19832#        echo "$command"
19833        eval "$command"
19834        ;;
19835      s,@DEFS@* )
19836        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
19837#        echo "$command"
19838        eval "$command"
19839        ;;
19840    esac
19841  done
19842  IFS=$as_save_IFS
19843
19844  # And some defines (assuming here that the packages base dir
19845  # doesn't have a config.h file
19846  for word in $defsline; do
19847#    echo word $word
19848    case $word in
19849      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
19850        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
19851#        echo dd $i
19852        echo $i >>confdefs.h
19853        ;;
19854    esac
19855  done
19856fi
19857
19858# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
19859
19860# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
19861if test "${enable_dependency_linking+set}" = set; then
19862  enableval="$enable_dependency_linking"
19863  dependency_linking="$enableval"
19864else
19865  dependency_linking=auto
19866fi;
19867
19868if test "$dependency_linking" = auto; then
19869  # On Cygwin and AIX, building DLLs doesn't work
19870  dependency_linking=no
19871  if test x"$coin_disable_shared" = xno; then
19872    case $build in
19873      *-cygwin* | *-mingw*)
19874        case "$CC" in
19875          clang* )
19876            dependency_linking=yes
19877            ;;
19878          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
19879            dependency_linking=no
19880            ;;
19881          *gcc*)
19882            dependency_linking=yes
19883            ;;
19884          *)
19885            dependency_linking=yes
19886            ;;
19887        esac
19888        ;;
19889      *)
19890        dependency_linking=yes
19891        ;;
19892    esac
19893  fi
19894fi
19895
19896if test "$dependency_linking" = yes ;
19897then
19898  LT_LDFLAGS="-no-undefined"
19899else
19900  LT_LDFLAGS=
19901fi
19902
19903
19904
19905if test "$dependency_linking" = yes; then
19906  DEPENDENCY_LINKING_TRUE=
19907  DEPENDENCY_LINKING_FALSE='#'
19908else
19909  DEPENDENCY_LINKING_TRUE='#'
19910  DEPENDENCY_LINKING_FALSE=
19911fi
19912
19913
19914# Check if we want to set the library version
19915echo "$as_me:$LINENO: checking if library version is set" >&5
19916echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
19917if test x"$coin_libversion" != x; then
19918  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
19919  echo "$as_me:$LINENO: result: $coin_libversion" >&5
19920echo "${ECHO_T}$coin_libversion" >&6
19921else
19922  echo "$as_me:$LINENO: result: no" >&5
19923echo "${ECHO_T}no" >&6
19924fi
19925
19926
19927
19928#END
19929}
19930
19931# Check if pkg-config is available (to setup addlibs file)
19932
19933
19934# Check whether --enable-pkg-config or --disable-pkg-config was given.
19935if test "${enable_pkg_config+set}" = set; then
19936  enableval="$enable_pkg_config"
19937  use_pkgconfig="$enableval"
19938else
19939  if test x$coin_cc_is_cl = xtrue; then
19940     use_pkgconfig=no
19941   else
19942     use_pkgconfig=yes
19943   fi
19944fi;
19945
19946if test $use_pkgconfig = yes ; then
19947  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19948    if test -n "$ac_tool_prefix"; then
19949  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19950set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19951echo "$as_me:$LINENO: checking for $ac_word" >&5
19952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19953if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
19954  echo $ECHO_N "(cached) $ECHO_C" >&6
19955else
19956  if test -n "$PKG_CONFIG"; then
19957  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
19958else
19959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19960for as_dir in $PATH
19961do
19962  IFS=$as_save_IFS
19963  test -z "$as_dir" && as_dir=.
19964  for ac_exec_ext in '' $ac_executable_extensions; do
19965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19966    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
19967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19968    break 2
19969  fi
19970done
19971done
19972
19973fi
19974fi
19975PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
19976if test -n "$PKG_CONFIG"; then
19977  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19978echo "${ECHO_T}$PKG_CONFIG" >&6
19979else
19980  echo "$as_me:$LINENO: result: no" >&5
19981echo "${ECHO_T}no" >&6
19982fi
19983
19984fi
19985if test -z "$ac_cv_prog_PKG_CONFIG"; then
19986  ac_ct_PKG_CONFIG=$PKG_CONFIG
19987  # Extract the first word of "pkg-config", so it can be a program name with args.
19988set dummy pkg-config; ac_word=$2
19989echo "$as_me:$LINENO: checking for $ac_word" >&5
19990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19991if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
19992  echo $ECHO_N "(cached) $ECHO_C" >&6
19993else
19994  if test -n "$ac_ct_PKG_CONFIG"; then
19995  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
19996else
19997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19998for as_dir in $PATH
19999do
20000  IFS=$as_save_IFS
20001  test -z "$as_dir" && as_dir=.
20002  for ac_exec_ext in '' $ac_executable_extensions; do
20003  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20004    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20006    break 2
20007  fi
20008done
20009done
20010
20011fi
20012fi
20013ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20014if test -n "$ac_ct_PKG_CONFIG"; then
20015  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20016echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20017else
20018  echo "$as_me:$LINENO: result: no" >&5
20019echo "${ECHO_T}no" >&6
20020fi
20021
20022  PKG_CONFIG=$ac_ct_PKG_CONFIG
20023else
20024  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20025fi
20026
20027  fi
20028  if test -n "$PKG_CONFIG"; then
20029    _pkg_min_version=0.16.0
20030    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20031echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20032    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20033      echo "$as_me:$LINENO: result: yes" >&5
20034echo "${ECHO_T}yes" >&6
20035    else
20036      echo "$as_me:$LINENO: result: no" >&5
20037echo "${ECHO_T}no" >&6
20038      PKG_CONFIG=""
20039    fi
20040  fi
20041
20042  # check if pkg-config supports the short-errors flag
20043  if test -n "$PKG_CONFIG" && \
20044    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20045    pkg_short_errors=" --short-errors "
20046  else
20047    pkg_short_errors=""
20048  fi
20049fi
20050
20051
20052
20053if test -n "$PKG_CONFIG"; then
20054  COIN_HAS_PKGCONFIG_TRUE=
20055  COIN_HAS_PKGCONFIG_FALSE='#'
20056else
20057  COIN_HAS_PKGCONFIG_TRUE='#'
20058  COIN_HAS_PKGCONFIG_FALSE=
20059fi
20060
20061
20062
20063# assemble pkg-config search path for installed projects
20064COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20065
20066# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20067# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20068# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20069if test "x${prefix}" = xNONE ; then
20070  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20071else
20072  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20073fi
20074
20075
20076# Check whether --with-coin-instdir or --without-coin-instdir was given.
20077if test "${with_coin_instdir+set}" = set; then
20078  withval="$with_coin_instdir"
20079  if test -d "$withval"; then : ; else
20080     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20081echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20082   { (exit 1); exit 1; }; }
20083   fi
20084   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20085
20086fi;
20087
20088
20089
20090# assemble additional pkg-config search paths for uninstalled projects
20091if test x$coin_projectdir = xyes ; then
20092  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20093  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20094  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20095  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20096  COIN_PKG_CONFIG_PATH_UNINSTALLED=
20097  if test -f ../coin_subdirs.txt ; then
20098    for i in `cat ../coin_subdirs.txt` ; do
20099      if test -d ../$i ; then
20100        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20101      fi
20102      if test -d ../$i/pkgconfig ; then
20103        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20104      fi
20105    done
20106  fi
20107
20108  if test -f ../../coin_subdirs.txt ; then
20109    for i in `cat ../../coin_subdirs.txt` ; do
20110      if test -d ../../$i ; then
20111        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20112      fi
20113      if test -d ../../$i/pkgconfig ; then
20114        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20115      fi
20116    done
20117  fi
20118
20119
20120fi
20121
20122if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20123  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20124echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20125fi
20126
20127
20128
20129#############################################################################
20130#                          AMPL SOLVER LIBRARY                              #
20131#############################################################################
20132
20133# Determine the name of the ASL library
20134
20135# Set a substitutable variable with the library name, and determine the compilation style.
20136
20137if test "x$coin_cc_is_cl" = xtrue ; then
20138  AMPLSOLVER_A=libamplsolver.lib
20139else
20140  AMPLSOLVER_A=libamplsolver.a
20141fi
20142
20143# Determine the host type to set linker options in the Makefile
20144
20145case $host in
20146  *-cygwin* | *-mingw*)
20147
20148
20149if test 0 = 0; then
20150  HOST_IS_CYGWIN_TRUE=
20151  HOST_IS_CYGWIN_FALSE='#'
20152else
20153  HOST_IS_CYGWIN_TRUE='#'
20154  HOST_IS_CYGWIN_FALSE=
20155fi
20156
20157  ;;
20158  *)
20159
20160
20161if test 0 = 1; then
20162  HOST_IS_CYGWIN_TRUE=
20163  HOST_IS_CYGWIN_FALSE='#'
20164else
20165  HOST_IS_CYGWIN_TRUE='#'
20166  HOST_IS_CYGWIN_FALSE=
20167fi
20168
20169  ;;
20170esac
20171
20172# Determine flags to be passed on the command line to (n)make. The main
20173# activity is to groom CFLAGS and set up ASLMAKEFLAGS to pass CFLAGS on the
20174# (n)make command line.
20175# NON_STDIO no longer appears in any source file; removed all mention.
20176# No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined.
20177
20178if test -z "$ASLMAKEFLAGS" ; then
20179  asladdcflags=
20180  case $build in
20181    *-linux*)
20182      case $CC in
20183        pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*)
20184          asladdcflags="$asladdcflags -DNO_fpu_control";;
20185      esac
20186      ;;
20187  esac
20188
20189# Various feature checks. Force the language to be C while we do this to avoid
20190# issues with C++ (re)declarations.
20191  ac_ext=c
20192ac_cpp='$CPP $CPPFLAGS'
20193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20195ac_compiler_gnu=$ac_cv_c_compiler_gnu
20196
20197
20198# The critical function for NO_RUSAGE is getrusage(). Use a standard test.
20199
20200  echo "$as_me:$LINENO: checking for getrusage" >&5
20201echo $ECHO_N "checking for getrusage... $ECHO_C" >&6
20202  cat >conftest.$ac_ext <<_ACEOF
20203/* confdefs.h.  */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h.  */
20208
20209int
20210main ()
20211{
20212getrusage()
20213  ;
20214  return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext conftest$ac_exeext
20218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219  (eval $ac_link) 2>conftest.er1
20220  ac_status=$?
20221  grep -v '^ *+' conftest.er1 >conftest.err
20222  rm -f conftest.er1
20223  cat conftest.err >&5
20224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225  (exit $ac_status); } &&
20226	 { ac_try='test -z "$ac_c_werror_flag"
20227			 || test ! -s conftest.err'
20228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229  (eval $ac_try) 2>&5
20230  ac_status=$?
20231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232  (exit $ac_status); }; } &&
20233	 { ac_try='test -s conftest$ac_exeext'
20234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235  (eval $ac_try) 2>&5
20236  ac_status=$?
20237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238  (exit $ac_status); }; }; then
20239  echo "$as_me:$LINENO: result: yes" >&5
20240echo "${ECHO_T}yes" >&6
20241else
20242  echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
20244
20245asladdcflags="$asladdcflags -DNO_RUSAGE"
20246     echo "$as_me:$LINENO: result: no" >&5
20247echo "${ECHO_T}no" >&6
20248fi
20249rm -f conftest.err conftest.$ac_objext \
20250      conftest$ac_exeext conftest.$ac_ext
20251
20252# Check for long long; we need to define NO_LONG_LONG if it's not present.  ASL
20253# makefile.u and makefile.vc both deal with this, in their own way.
20254# Unfortunately, when trying to build with cl under cygwin, the makefile.vc
20255# solution, comptry.bat, fails. To safely discard comptry.bat, we need to do
20256# this check. It's hardly likely that long long is missing on any modern
20257# system, but it's easy to check.
20258# Also, if it's present, then ASL uses strtoull, which is not supported on Windows systems.
20259# Instead, there should be a _strtoui64.
20260
20261  echo "$as_me:$LINENO: checking for long long" >&5
20262echo $ECHO_N "checking for long long... $ECHO_C" >&6
20263if test "${ac_cv_type_long_long+set}" = set; then
20264  echo $ECHO_N "(cached) $ECHO_C" >&6
20265else
20266  cat >conftest.$ac_ext <<_ACEOF
20267/* confdefs.h.  */
20268_ACEOF
20269cat confdefs.h >>conftest.$ac_ext
20270cat >>conftest.$ac_ext <<_ACEOF
20271/* end confdefs.h.  */
20272$ac_includes_default
20273int
20274main ()
20275{
20276if ((long long *) 0)
20277  return 0;
20278if (sizeof (long long))
20279  return 0;
20280  ;
20281  return 0;
20282}
20283_ACEOF
20284rm -f conftest.$ac_objext
20285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286  (eval $ac_compile) 2>conftest.er1
20287  ac_status=$?
20288  grep -v '^ *+' conftest.er1 >conftest.err
20289  rm -f conftest.er1
20290  cat conftest.err >&5
20291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292  (exit $ac_status); } &&
20293	 { ac_try='test -z "$ac_c_werror_flag"
20294			 || test ! -s conftest.err'
20295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296  (eval $ac_try) 2>&5
20297  ac_status=$?
20298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299  (exit $ac_status); }; } &&
20300	 { ac_try='test -s conftest.$ac_objext'
20301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302  (eval $ac_try) 2>&5
20303  ac_status=$?
20304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305  (exit $ac_status); }; }; then
20306  ac_cv_type_long_long=yes
20307else
20308  echo "$as_me: failed program was:" >&5
20309sed 's/^/| /' conftest.$ac_ext >&5
20310
20311ac_cv_type_long_long=no
20312fi
20313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20314fi
20315echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20316echo "${ECHO_T}$ac_cv_type_long_long" >&6
20317if test $ac_cv_type_long_long = yes; then
20318
20319     if test "x$coin_cc_is_cl" = xtrue ; then
20320       asladdcflags="$asladdcflags -Dstrtoull=_strtoui64"
20321     fi
20322else
20323  asladdcflags="$asladdcflags -DNO_LONG_LONG"
20324fi
20325
20326
20327# Check for ssize_t; we need to define NO_SSIZE_T if it's not present.
20328
20329  echo "$as_me:$LINENO: checking for ssize_t" >&5
20330echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
20331if test "${ac_cv_type_ssize_t+set}" = set; then
20332  echo $ECHO_N "(cached) $ECHO_C" >&6
20333else
20334  cat >conftest.$ac_ext <<_ACEOF
20335/* confdefs.h.  */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h.  */
20340$ac_includes_default
20341int
20342main ()
20343{
20344if ((ssize_t *) 0)
20345  return 0;
20346if (sizeof (ssize_t))
20347  return 0;
20348  ;
20349  return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext
20353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20354  (eval $ac_compile) 2>conftest.er1
20355  ac_status=$?
20356  grep -v '^ *+' conftest.er1 >conftest.err
20357  rm -f conftest.er1
20358  cat conftest.err >&5
20359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360  (exit $ac_status); } &&
20361	 { ac_try='test -z "$ac_c_werror_flag"
20362			 || test ! -s conftest.err'
20363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364  (eval $ac_try) 2>&5
20365  ac_status=$?
20366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367  (exit $ac_status); }; } &&
20368	 { ac_try='test -s conftest.$ac_objext'
20369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370  (eval $ac_try) 2>&5
20371  ac_status=$?
20372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373  (exit $ac_status); }; }; then
20374  ac_cv_type_ssize_t=yes
20375else
20376  echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379ac_cv_type_ssize_t=no
20380fi
20381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20382fi
20383echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20384echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
20385if test $ac_cv_type_ssize_t = yes; then
20386  :
20387else
20388  asladdcflags="$asladdcflags -DNO_SSIZE_T"
20389fi
20390
20391
20392# Check for dlopen, ASL uses it to load userdefined function libraries
20393  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20394echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20395if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20396  echo $ECHO_N "(cached) $ECHO_C" >&6
20397else
20398  ac_check_lib_save_LIBS=$LIBS
20399LIBS="-ldl  $LIBS"
20400cat >conftest.$ac_ext <<_ACEOF
20401/* confdefs.h.  */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h.  */
20406
20407/* Override any gcc2 internal prototype to avoid an error.  */
20408#ifdef __cplusplus
20409extern "C"
20410#endif
20411/* We use char because int might match the return type of a gcc2
20412   builtin and then its argument prototype would still apply.  */
20413char dlopen ();
20414int
20415main ()
20416{
20417dlopen ();
20418  ;
20419  return 0;
20420}
20421_ACEOF
20422rm -f conftest.$ac_objext conftest$ac_exeext
20423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20424  (eval $ac_link) 2>conftest.er1
20425  ac_status=$?
20426  grep -v '^ *+' conftest.er1 >conftest.err
20427  rm -f conftest.er1
20428  cat conftest.err >&5
20429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); } &&
20431	 { ac_try='test -z "$ac_c_werror_flag"
20432			 || test ! -s conftest.err'
20433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434  (eval $ac_try) 2>&5
20435  ac_status=$?
20436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437  (exit $ac_status); }; } &&
20438	 { ac_try='test -s conftest$ac_exeext'
20439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440  (eval $ac_try) 2>&5
20441  ac_status=$?
20442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443  (exit $ac_status); }; }; then
20444  ac_cv_lib_dl_dlopen=yes
20445else
20446  echo "$as_me: failed program was:" >&5
20447sed 's/^/| /' conftest.$ac_ext >&5
20448
20449ac_cv_lib_dl_dlopen=no
20450fi
20451rm -f conftest.err conftest.$ac_objext \
20452      conftest$ac_exeext conftest.$ac_ext
20453LIBS=$ac_check_lib_save_LIBS
20454fi
20455echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20456echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20457if test $ac_cv_lib_dl_dlopen = yes; then
20458  ASL_PCLIBS="-ldl $ASL_PCLIBS"
20459fi
20460
20461
20462# Back to whatever language we were in.
20463  ac_ext=c
20464ac_cpp='$CPP $CPPFLAGS'
20465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20467ac_compiler_gnu=$ac_cv_c_compiler_gnu
20468
20469
20470# On BlueGene disable dynamic library loading
20471  if test x"$enable_bg" = xyes; then
20472    asladdcflags="$asladdcflags -DNO_FUNCADD"
20473  fi
20474
20475# Groom CFLAGS before we merge it with asladdcflags.
20476# Remove -Werror if present, to make sure we are not interrupting compilation
20477# of ASL because of warning messages. The cl equivalent is -WX.
20478# SV: Our buildsystem should never add these flags to the CFLAGS, so why bother checking for them?
20479#     If the user added some, shouldn't we listen to it and not just remove them again?
20480  bla=
20481  if test "x$coin_cc_is_cl" = xtrue ; then
20482    warnToErr="-WX"
20483  else
20484    warnToErr="-Werror"
20485  fi
20486  for i in $CFLAGS; do
20487    if test "$i" != "$warnToErr"; then
20488      bla="$bla $i"
20489    fi
20490  done
20491
20492# Add -fPIC -DPIC if we actually build shared libraries
20493  if test x$enable_shared != xno; then
20494    asladdcflags="$asladdcflags -fPIC -DPIC"
20495  fi
20496
20497  ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
20498
20499# Somehow, the flags specified here cause ASL to segfault on the AIX
20500# compiler, so take them out.
20501  case $CC in
20502    xlc* | */xlc* | mpxlc* | */mpxlc*)
20503      ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e 's/-O3/-O/g'`
20504      ;;
20505    pgcc* | */pgcc*)
20506      ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'`
20507      ;;
20508  esac
20509
20510# Limit GNU make to one thread. But remember that if we're building with
20511# cl, ultimately we're going to use nmake, which knows nothing of this.
20512  if test "x$coin_cc_is_cl" != xtrue ; then
20513    rm -rf conftest.mak
20514    ($am_make -v > conftest.grp) 2>&5
20515    if $EGREP GNU conftest.grp >&5 ; then
20516      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
20517    fi
20518    rm -f conftest.grp
20519  fi
20520fi
20521# End if-then to construct ASLMAKEFLAGS. Announce the result.
20522
20523{ echo "$as_me:$LINENO: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&5
20524echo "$as_me: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&6;}
20525
20526
20527# generate the output files.
20528
20529          ac_config_files="$ac_config_files Makefile"
20530
20531          ac_config_files="$ac_config_files compile_MS_ASL"
20532
20533          ac_config_files="$ac_config_files compile_Unix_ASL"
20534
20535                    ac_config_files="$ac_config_files coinasl.pc coinasl-uninstalled.pc"
20536
20537
20538
20539
20540if test $coin_cc_is_cl != true ; then
20541
20542    ASL_LIBS="-lm $ASL_LIBS"
20543    ASL_PCLIBS="-lm $ASL_PCLIBS"
20544    ASL_LIBS_INSTALLED="-lm $ASL_LIBS_INSTALLED"
20545
20546fi
20547
20548
20549
20550
20551
20552
20553
20554
20555echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
20556echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
20557coin_link_input_cmd="$LN_S"
20558case "$CC" in
20559  clang* ) ;;
20560  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20561    coin_link_input_cmd=cp ;;
20562esac
20563echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
20564echo "${ECHO_T}$coin_link_input_cmd" >&6
20565
20566
20567
20568if test x$coin_skip_ac_output != xyes; then
20569
20570  # library extension
20571
20572  case "$CC" in
20573    clang* )
20574         LIBEXT=a ;;
20575    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20576         LIBEXT=lib ;;
20577      *) LIBEXT=a ;;
20578  esac
20579
20580  # Define VPATH_DISTCLEANFILES to be everything that needs to be
20581  # cleaned for distclean in a vpath configuration
20582
20583  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
20584
20585  # Take out subdirectories if their configuration concluded that they
20586  # don't need to be compiled
20587  if test x"$coin_ac_skip_subdirs" != x; then
20588    new_subdirs=
20589    for i in $subdirs; do
20590      skipme=no
20591      for j in $coin_ac_skip_subdirs; do
20592        if test $i = $j; then
20593          skipme=yes;
20594        fi
20595      done
20596      if test $skipme = no; then
20597        new_subdirs="$new_subdirs $i"
20598      fi
20599    done
20600    subdirs="$new_subdirs"
20601  fi
20602
20603  # need to come before AC_OUTPUT
20604  if test x$coin_projectdir != xyes; then
20605    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
20606    echo $coin_subdirs > coin_subdirs.txt
20607  else
20608    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
20609    ABSBUILDDIR="`pwd`"
20610
20611  fi
20612
20613  cat >confcache <<\_ACEOF
20614# This file is a shell script that caches the results of configure
20615# tests run on this system so they can be shared between configure
20616# scripts and configure runs, see configure's option --config-cache.
20617# It is not useful on other systems.  If it contains results you don't
20618# want to keep, you may remove or edit it.
20619#
20620# config.status only pays attention to the cache file if you give it
20621# the --recheck option to rerun configure.
20622#
20623# `ac_cv_env_foo' variables (set or unset) will be overridden when
20624# loading this file, other *unset* `ac_cv_foo' will be assigned the
20625# following values.
20626
20627_ACEOF
20628
20629# The following way of writing the cache mishandles newlines in values,
20630# but we know of no workaround that is simple, portable, and efficient.
20631# So, don't put newlines in cache variables' values.
20632# Ultrix sh set writes to stderr and can't be redirected directly,
20633# and sets the high bit in the cache file unless we assign to the vars.
20634{
20635  (set) 2>&1 |
20636    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20637    *ac_space=\ *)
20638      # `set' does not quote correctly, so add quotes (double-quote
20639      # substitution turns \\\\ into \\, and sed turns \\ into \).
20640      sed -n \
20641	"s/'/'\\\\''/g;
20642	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20643      ;;
20644    *)
20645      # `set' quotes correctly as required by POSIX, so do not add quotes.
20646      sed -n \
20647	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20648      ;;
20649    esac;
20650} |
20651  sed '
20652     t clear
20653     : clear
20654     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20655     t end
20656     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20657     : end' >>confcache
20658if diff $cache_file confcache >/dev/null 2>&1; then :; else
20659  if test -w $cache_file; then
20660    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20661    cat confcache >$cache_file
20662  else
20663    echo "not updating unwritable cache $cache_file"
20664  fi
20665fi
20666rm -f confcache
20667
20668test "x$prefix" = xNONE && prefix=$ac_default_prefix
20669# Let make expand exec_prefix.
20670test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20671
20672# VPATH may cause trouble with some makes, so we remove $(srcdir),
20673# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20674# trailing colons and then remove the whole line if VPATH becomes empty
20675# (actually we leave an empty line to preserve line numbers).
20676if test "x$srcdir" = x.; then
20677  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20678s/:*\$(srcdir):*/:/;
20679s/:*\${srcdir}:*/:/;
20680s/:*@srcdir@:*/:/;
20681s/^\([^=]*=[	 ]*\):*/\1/;
20682s/:*$//;
20683s/^[^=]*=[	 ]*$//;
20684}'
20685fi
20686
20687# Transform confdefs.h into DEFS.
20688# Protect against shell expansion while executing Makefile rules.
20689# Protect against Makefile macro expansion.
20690#
20691# If the first sed substitution is executed (which looks for macros that
20692# take arguments), then we branch to the quote section.  Otherwise,
20693# look for a macro that doesn't take arguments.
20694cat >confdef2opt.sed <<\_ACEOF
20695t clear
20696: clear
20697s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
20698t quote
20699s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
20700t quote
20701d
20702: quote
20703s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
20704s,\[,\\&,g
20705s,\],\\&,g
20706s,\$,$$,g
20707p
20708_ACEOF
20709# We use echo to avoid assuming a particular line-breaking character.
20710# The extra dot is to prevent the shell from consuming trailing
20711# line-breaks from the sub-command output.  A line-break within
20712# single-quotes doesn't work because, if this script is created in a
20713# platform that uses two characters for line-breaks (e.g., DOS), tr
20714# would break.
20715ac_LF_and_DOT=`echo; echo .`
20716DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20717rm -f confdef2opt.sed
20718
20719
20720ac_libobjs=
20721ac_ltlibobjs=
20722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20723  # 1. Remove the extension, and $U if already installed.
20724  ac_i=`echo "$ac_i" |
20725	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20726  # 2. Add them.
20727  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20728  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20729done
20730LIBOBJS=$ac_libobjs
20731
20732LTLIBOBJS=$ac_ltlibobjs
20733
20734
20735if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
20736  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
20737Usually this means the macro was only invoked conditionally." >&5
20738echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
20739Usually this means the macro was only invoked conditionally." >&2;}
20740   { (exit 1); exit 1; }; }
20741fi
20742if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
20743  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
20744Usually this means the macro was only invoked conditionally." >&5
20745echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
20746Usually this means the macro was only invoked conditionally." >&2;}
20747   { (exit 1); exit 1; }; }
20748fi
20749if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20750  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20751Usually this means the macro was only invoked conditionally." >&5
20752echo "$as_me: error: conditional \"AMDEP\" was never defined.
20753Usually this means the macro was only invoked conditionally." >&2;}
20754   { (exit 1); exit 1; }; }
20755fi
20756if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20757  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20758Usually this means the macro was only invoked conditionally." >&5
20759echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20760Usually this means the macro was only invoked conditionally." >&2;}
20761   { (exit 1); exit 1; }; }
20762fi
20763if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20764  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20765Usually this means the macro was only invoked conditionally." >&5
20766echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20767Usually this means the macro was only invoked conditionally." >&2;}
20768   { (exit 1); exit 1; }; }
20769fi
20770if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
20771  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
20772Usually this means the macro was only invoked conditionally." >&5
20773echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
20774Usually this means the macro was only invoked conditionally." >&2;}
20775   { (exit 1); exit 1; }; }
20776fi
20777if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20778  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20779Usually this means the macro was only invoked conditionally." >&5
20780echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20781Usually this means the macro was only invoked conditionally." >&2;}
20782   { (exit 1); exit 1; }; }
20783fi
20784if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
20785  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
20786Usually this means the macro was only invoked conditionally." >&5
20787echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
20788Usually this means the macro was only invoked conditionally." >&2;}
20789   { (exit 1); exit 1; }; }
20790fi
20791if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
20792  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
20793Usually this means the macro was only invoked conditionally." >&5
20794echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
20795Usually this means the macro was only invoked conditionally." >&2;}
20796   { (exit 1); exit 1; }; }
20797fi
20798if test -z "${HOST_IS_CYGWIN_TRUE}" && test -z "${HOST_IS_CYGWIN_FALSE}"; then
20799  { { echo "$as_me:$LINENO: error: conditional \"HOST_IS_CYGWIN\" was never defined.
20800Usually this means the macro was only invoked conditionally." >&5
20801echo "$as_me: error: conditional \"HOST_IS_CYGWIN\" was never defined.
20802Usually this means the macro was only invoked conditionally." >&2;}
20803   { (exit 1); exit 1; }; }
20804fi
20805if test -z "${HOST_IS_CYGWIN_TRUE}" && test -z "${HOST_IS_CYGWIN_FALSE}"; then
20806  { { echo "$as_me:$LINENO: error: conditional \"HOST_IS_CYGWIN\" was never defined.
20807Usually this means the macro was only invoked conditionally." >&5
20808echo "$as_me: error: conditional \"HOST_IS_CYGWIN\" was never defined.
20809Usually this means the macro was only invoked conditionally." >&2;}
20810   { (exit 1); exit 1; }; }
20811fi
20812
20813: ${CONFIG_STATUS=./config.status}
20814ac_clean_files_save=$ac_clean_files
20815ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20816{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20817echo "$as_me: creating $CONFIG_STATUS" >&6;}
20818cat >$CONFIG_STATUS <<_ACEOF
20819#! $SHELL
20820# Generated by $as_me.
20821# Run this file to recreate the current configuration.
20822# Compiler output produced by configure, useful for debugging
20823# configure, is in config.log if it exists.
20824
20825debug=false
20826ac_cs_recheck=false
20827ac_cs_silent=false
20828SHELL=\${CONFIG_SHELL-$SHELL}
20829_ACEOF
20830
20831cat >>$CONFIG_STATUS <<\_ACEOF
20832## --------------------- ##
20833## M4sh Initialization.  ##
20834## --------------------- ##
20835
20836# Be Bourne compatible
20837if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20838  emulate sh
20839  NULLCMD=:
20840  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20841  # is contrary to our usage.  Disable this feature.
20842  alias -g '${1+"$@"}'='"$@"'
20843elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20844  set -o posix
20845fi
20846DUALCASE=1; export DUALCASE # for MKS sh
20847
20848# Support unset when possible.
20849if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20850  as_unset=unset
20851else
20852  as_unset=false
20853fi
20854
20855
20856# Work around bugs in pre-3.0 UWIN ksh.
20857$as_unset ENV MAIL MAILPATH
20858PS1='$ '
20859PS2='> '
20860PS4='+ '
20861
20862# NLS nuisances.
20863for as_var in \
20864  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20865  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20866  LC_TELEPHONE LC_TIME
20867do
20868  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20869    eval $as_var=C; export $as_var
20870  else
20871    $as_unset $as_var
20872  fi
20873done
20874
20875# Required to use basename.
20876if expr a : '\(a\)' >/dev/null 2>&1; then
20877  as_expr=expr
20878else
20879  as_expr=false
20880fi
20881
20882if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20883  as_basename=basename
20884else
20885  as_basename=false
20886fi
20887
20888
20889# Name of the executable.
20890as_me=`$as_basename "$0" ||
20891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20892	 X"$0" : 'X\(//\)$' \| \
20893	 X"$0" : 'X\(/\)$' \| \
20894	 .     : '\(.\)' 2>/dev/null ||
20895echo X/"$0" |
20896    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20897  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20898  	  /^X\/\(\/\).*/{ s//\1/; q; }
20899  	  s/.*/./; q'`
20900
20901
20902# PATH needs CR, and LINENO needs CR and PATH.
20903# Avoid depending upon Character Ranges.
20904as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20905as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20906as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20907as_cr_digits='0123456789'
20908as_cr_alnum=$as_cr_Letters$as_cr_digits
20909
20910# The user is always right.
20911if test "${PATH_SEPARATOR+set}" != set; then
20912  echo "#! /bin/sh" >conf$$.sh
20913  echo  "exit 0"   >>conf$$.sh
20914  chmod +x conf$$.sh
20915  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20916    PATH_SEPARATOR=';'
20917  else
20918    PATH_SEPARATOR=:
20919  fi
20920  rm -f conf$$.sh
20921fi
20922
20923
20924  as_lineno_1=$LINENO
20925  as_lineno_2=$LINENO
20926  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20927  test "x$as_lineno_1" != "x$as_lineno_2" &&
20928  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20929  # Find who we are.  Look in the path if we contain no path at all
20930  # relative or not.
20931  case $0 in
20932    *[\\/]* ) as_myself=$0 ;;
20933    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934for as_dir in $PATH
20935do
20936  IFS=$as_save_IFS
20937  test -z "$as_dir" && as_dir=.
20938  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20939done
20940
20941       ;;
20942  esac
20943  # We did not find ourselves, most probably we were run as `sh COMMAND'
20944  # in which case we are not to be found in the path.
20945  if test "x$as_myself" = x; then
20946    as_myself=$0
20947  fi
20948  if test ! -f "$as_myself"; then
20949    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20950echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20951   { (exit 1); exit 1; }; }
20952  fi
20953  case $CONFIG_SHELL in
20954  '')
20955    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20956for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20957do
20958  IFS=$as_save_IFS
20959  test -z "$as_dir" && as_dir=.
20960  for as_base in sh bash ksh sh5; do
20961	 case $as_dir in
20962	 /*)
20963	   if ("$as_dir/$as_base" -c '
20964  as_lineno_1=$LINENO
20965  as_lineno_2=$LINENO
20966  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20967  test "x$as_lineno_1" != "x$as_lineno_2" &&
20968  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20969	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20970	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20971	     CONFIG_SHELL=$as_dir/$as_base
20972	     export CONFIG_SHELL
20973	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20974	   fi;;
20975	 esac
20976       done
20977done
20978;;
20979  esac
20980
20981  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20982  # uniformly replaced by the line number.  The first 'sed' inserts a
20983  # line-number line before each line; the second 'sed' does the real
20984  # work.  The second script uses 'N' to pair each line-number line
20985  # with the numbered line, and appends trailing '-' during
20986  # substitution so that $LINENO is not a special case at line end.
20987  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20988  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20989  sed '=' <$as_myself |
20990    sed '
20991      N
20992      s,$,-,
20993      : loop
20994      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20995      t loop
20996      s,-$,,
20997      s,^['$as_cr_digits']*\n,,
20998    ' >$as_me.lineno &&
20999  chmod +x $as_me.lineno ||
21000    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21001echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21002   { (exit 1); exit 1; }; }
21003
21004  # Don't try to exec as it changes $[0], causing all sort of problems
21005  # (the dirname of $[0] is not the place where we might find the
21006  # original and so on.  Autoconf is especially sensible to this).
21007  . ./$as_me.lineno
21008  # Exit status is that of the last command.
21009  exit
21010}
21011
21012
21013case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21014  *c*,-n*) ECHO_N= ECHO_C='
21015' ECHO_T='	' ;;
21016  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21017  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21018esac
21019
21020if expr a : '\(a\)' >/dev/null 2>&1; then
21021  as_expr=expr
21022else
21023  as_expr=false
21024fi
21025
21026rm -f conf$$ conf$$.exe conf$$.file
21027echo >conf$$.file
21028if ln -s conf$$.file conf$$ 2>/dev/null; then
21029  # We could just check for DJGPP; but this test a) works b) is more generic
21030  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21031  if test -f conf$$.exe; then
21032    # Don't use ln at all; we don't have any links
21033    as_ln_s='cp -p'
21034  else
21035    as_ln_s='ln -s'
21036  fi
21037elif ln conf$$.file conf$$ 2>/dev/null; then
21038  as_ln_s=ln
21039else
21040  as_ln_s='cp -p'
21041fi
21042rm -f conf$$ conf$$.exe conf$$.file
21043
21044if mkdir -p . 2>/dev/null; then
21045  as_mkdir_p=:
21046else
21047  test -d ./-p && rmdir ./-p
21048  as_mkdir_p=false
21049fi
21050
21051as_executable_p="test -f"
21052
21053# Sed expression to map a string onto a valid CPP name.
21054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21055
21056# Sed expression to map a string onto a valid variable name.
21057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21058
21059
21060# IFS
21061# We need space, tab and new line, in precisely that order.
21062as_nl='
21063'
21064IFS=" 	$as_nl"
21065
21066# CDPATH.
21067$as_unset CDPATH
21068
21069exec 6>&1
21070
21071# Open the log real soon, to keep \$[0] and so on meaningful, and to
21072# report actual input values of CONFIG_FILES etc. instead of their
21073# values after options handling.  Logging --version etc. is OK.
21074exec 5>>config.log
21075{
21076  echo
21077  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21078## Running $as_me. ##
21079_ASBOX
21080} >&5
21081cat >&5 <<_CSEOF
21082
21083This file was extended by ThirdPartyASL $as_me 1.4.1, which was
21084generated by GNU Autoconf 2.59.  Invocation command line was
21085
21086  CONFIG_FILES    = $CONFIG_FILES
21087  CONFIG_HEADERS  = $CONFIG_HEADERS
21088  CONFIG_LINKS    = $CONFIG_LINKS
21089  CONFIG_COMMANDS = $CONFIG_COMMANDS
21090  $ $0 $@
21091
21092_CSEOF
21093echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21094echo >&5
21095_ACEOF
21096
21097# Files that config.status was made for.
21098if test -n "$ac_config_files"; then
21099  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21100fi
21101
21102if test -n "$ac_config_headers"; then
21103  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21104fi
21105
21106if test -n "$ac_config_links"; then
21107  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21108fi
21109
21110if test -n "$ac_config_commands"; then
21111  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21112fi
21113
21114cat >>$CONFIG_STATUS <<\_ACEOF
21115
21116ac_cs_usage="\
21117\`$as_me' instantiates files from templates according to the
21118current configuration.
21119
21120Usage: $0 [OPTIONS] [FILE]...
21121
21122  -h, --help       print this help, then exit
21123  -V, --version    print version number, then exit
21124  -q, --quiet      do not print progress messages
21125  -d, --debug      don't remove temporary files
21126      --recheck    update $as_me by reconfiguring in the same conditions
21127  --file=FILE[:TEMPLATE]
21128		   instantiate the configuration file FILE
21129
21130Configuration files:
21131$config_files
21132
21133Configuration commands:
21134$config_commands
21135
21136Report bugs to <bug-autoconf@gnu.org>."
21137_ACEOF
21138
21139cat >>$CONFIG_STATUS <<_ACEOF
21140ac_cs_version="\\
21141ThirdPartyASL config.status 1.4.1
21142configured by $0, generated by GNU Autoconf 2.59,
21143  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21144
21145Copyright (C) 2003 Free Software Foundation, Inc.
21146This config.status script is free software; the Free Software Foundation
21147gives unlimited permission to copy, distribute and modify it."
21148srcdir=$srcdir
21149INSTALL="$INSTALL"
21150_ACEOF
21151
21152cat >>$CONFIG_STATUS <<\_ACEOF
21153# If no file are specified by the user, then we need to provide default
21154# value.  By we need to know if files were specified by the user.
21155ac_need_defaults=:
21156while test $# != 0
21157do
21158  case $1 in
21159  --*=*)
21160    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21161    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21162    ac_shift=:
21163    ;;
21164  -*)
21165    ac_option=$1
21166    ac_optarg=$2
21167    ac_shift=shift
21168    ;;
21169  *) # This is not an option, so the user has probably given explicit
21170     # arguments.
21171     ac_option=$1
21172     ac_need_defaults=false;;
21173  esac
21174
21175  case $ac_option in
21176  # Handling of the options.
21177_ACEOF
21178cat >>$CONFIG_STATUS <<\_ACEOF
21179  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21180    ac_cs_recheck=: ;;
21181  --version | --vers* | -V )
21182    echo "$ac_cs_version"; exit 0 ;;
21183  --he | --h)
21184    # Conflict between --help and --header
21185    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21186Try \`$0 --help' for more information." >&5
21187echo "$as_me: error: ambiguous option: $1
21188Try \`$0 --help' for more information." >&2;}
21189   { (exit 1); exit 1; }; };;
21190  --help | --hel | -h )
21191    echo "$ac_cs_usage"; exit 0 ;;
21192  --debug | --d* | -d )
21193    debug=: ;;
21194  --file | --fil | --fi | --f )
21195    $ac_shift
21196    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21197    ac_need_defaults=false;;
21198  --header | --heade | --head | --hea )
21199    $ac_shift
21200    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21201    ac_need_defaults=false;;
21202  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21203  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21204    ac_cs_silent=: ;;
21205
21206  # This is an error.
21207  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21208Try \`$0 --help' for more information." >&5
21209echo "$as_me: error: unrecognized option: $1
21210Try \`$0 --help' for more information." >&2;}
21211   { (exit 1); exit 1; }; } ;;
21212
21213  *) ac_config_targets="$ac_config_targets $1" ;;
21214
21215  esac
21216  shift
21217done
21218
21219ac_configure_extra_args=
21220
21221if $ac_cs_silent; then
21222  exec 6>/dev/null
21223  ac_configure_extra_args="$ac_configure_extra_args --silent"
21224fi
21225
21226_ACEOF
21227cat >>$CONFIG_STATUS <<_ACEOF
21228if \$ac_cs_recheck; then
21229  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21230  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21231fi
21232
21233_ACEOF
21234
21235cat >>$CONFIG_STATUS <<_ACEOF
21236#
21237# INIT-COMMANDS section.
21238#
21239
21240AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21241
21242_ACEOF
21243
21244
21245
21246cat >>$CONFIG_STATUS <<\_ACEOF
21247for ac_config_target in $ac_config_targets
21248do
21249  case "$ac_config_target" in
21250  # Handling of arguments.
21251  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21252  "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;;
21253  "compile_Unix_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_Unix_ASL" ;;
21254  "coinasl.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl.pc" ;;
21255  "coinasl-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl-uninstalled.pc" ;;
21256  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21257  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21258echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21259   { (exit 1); exit 1; }; };;
21260  esac
21261done
21262
21263# If the user did not use the arguments to specify the items to instantiate,
21264# then the envvar interface is used.  Set only those that are not.
21265# We use the long form for the default assignment because of an extremely
21266# bizarre bug on SunOS 4.1.3.
21267if $ac_need_defaults; then
21268  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21269  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21270fi
21271
21272# Have a temporary directory for convenience.  Make it in the build tree
21273# simply because there is no reason to put it here, and in addition,
21274# creating and moving files from /tmp can sometimes cause problems.
21275# Create a temporary directory, and hook for its removal unless debugging.
21276$debug ||
21277{
21278  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21279  trap '{ (exit 1); exit 1; }' 1 2 13 15
21280}
21281
21282# Create a (secure) tmp directory for tmp files.
21283
21284{
21285  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21286  test -n "$tmp" && test -d "$tmp"
21287}  ||
21288{
21289  tmp=./confstat$$-$RANDOM
21290  (umask 077 && mkdir $tmp)
21291} ||
21292{
21293   echo "$me: cannot create a temporary directory in ." >&2
21294   { (exit 1); exit 1; }
21295}
21296
21297_ACEOF
21298
21299cat >>$CONFIG_STATUS <<_ACEOF
21300
21301#
21302# CONFIG_FILES section.
21303#
21304
21305# No need to generate the scripts if there are no CONFIG_FILES.
21306# This happens for instance when ./config.status config.h
21307if test -n "\$CONFIG_FILES"; then
21308  # Protect against being on the right side of a sed subst in config.status.
21309  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21310   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21311s,@SHELL@,$SHELL,;t t
21312s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21313s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21314s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21315s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21316s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21317s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21318s,@exec_prefix@,$exec_prefix,;t t
21319s,@prefix@,$prefix,;t t
21320s,@program_transform_name@,$program_transform_name,;t t
21321s,@bindir@,$bindir,;t t
21322s,@sbindir@,$sbindir,;t t
21323s,@libexecdir@,$libexecdir,;t t
21324s,@datadir@,$datadir,;t t
21325s,@sysconfdir@,$sysconfdir,;t t
21326s,@sharedstatedir@,$sharedstatedir,;t t
21327s,@localstatedir@,$localstatedir,;t t
21328s,@libdir@,$libdir,;t t
21329s,@includedir@,$includedir,;t t
21330s,@oldincludedir@,$oldincludedir,;t t
21331s,@infodir@,$infodir,;t t
21332s,@mandir@,$mandir,;t t
21333s,@build_alias@,$build_alias,;t t
21334s,@host_alias@,$host_alias,;t t
21335s,@target_alias@,$target_alias,;t t
21336s,@DEFS@,$DEFS,;t t
21337s,@ECHO_C@,$ECHO_C,;t t
21338s,@ECHO_N@,$ECHO_N,;t t
21339s,@ECHO_T@,$ECHO_T,;t t
21340s,@LIBS@,$LIBS,;t t
21341s,@build@,$build,;t t
21342s,@build_cpu@,$build_cpu,;t t
21343s,@build_vendor@,$build_vendor,;t t
21344s,@build_os@,$build_os,;t t
21345s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
21346s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
21347s,@have_svnversion@,$have_svnversion,;t t
21348s,@ASL_SVN_REV@,$ASL_SVN_REV,;t t
21349s,@EGREP@,$EGREP,;t t
21350s,@LN_S@,$LN_S,;t t
21351s,@CDEFS@,$CDEFS,;t t
21352s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
21353s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
21354s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
21355s,@sol_cc_compiler@,$sol_cc_compiler,;t t
21356s,@CC@,$CC,;t t
21357s,@CFLAGS@,$CFLAGS,;t t
21358s,@LDFLAGS@,$LDFLAGS,;t t
21359s,@CPPFLAGS@,$CPPFLAGS,;t t
21360s,@ac_ct_CC@,$ac_ct_CC,;t t
21361s,@EXEEXT@,$EXEEXT,;t t
21362s,@OBJEXT@,$OBJEXT,;t t
21363s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
21364s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
21365s,@MPICC@,$MPICC,;t t
21366s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21367s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21368s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21369s,@CYGPATH_W@,$CYGPATH_W,;t t
21370s,@PACKAGE@,$PACKAGE,;t t
21371s,@VERSION@,$VERSION,;t t
21372s,@ACLOCAL@,$ACLOCAL,;t t
21373s,@AUTOCONF@,$AUTOCONF,;t t
21374s,@AUTOMAKE@,$AUTOMAKE,;t t
21375s,@AUTOHEADER@,$AUTOHEADER,;t t
21376s,@MAKEINFO@,$MAKEINFO,;t t
21377s,@install_sh@,$install_sh,;t t
21378s,@STRIP@,$STRIP,;t t
21379s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21380s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21381s,@mkdir_p@,$mkdir_p,;t t
21382s,@AWK@,$AWK,;t t
21383s,@SET_MAKE@,$SET_MAKE,;t t
21384s,@am__leading_dot@,$am__leading_dot,;t t
21385s,@AMTAR@,$AMTAR,;t t
21386s,@am__tar@,$am__tar,;t t
21387s,@am__untar@,$am__untar,;t t
21388s,@DEPDIR@,$DEPDIR,;t t
21389s,@am__include@,$am__include,;t t
21390s,@am__quote@,$am__quote,;t t
21391s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21392s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21393s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21394s,@CCDEPMODE@,$CCDEPMODE,;t t
21395s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21396s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21397s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21398s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21399s,@MAINT@,$MAINT,;t t
21400s,@LIBTOOLM4@,$LIBTOOLM4,;t t
21401s,@have_autoconf@,$have_autoconf,;t t
21402s,@have_automake@,$have_automake,;t t
21403s,@have_svn@,$have_svn,;t t
21404s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
21405s,@AUX_DIR@,$AUX_DIR,;t t
21406s,@abs_source_dir@,$abs_source_dir,;t t
21407s,@abs_lib_dir@,$abs_lib_dir,;t t
21408s,@abs_include_dir@,$abs_include_dir,;t t
21409s,@abs_bin_dir@,$abs_bin_dir,;t t
21410s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
21411s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
21412s,@host@,$host,;t t
21413s,@host_cpu@,$host_cpu,;t t
21414s,@host_vendor@,$host_vendor,;t t
21415s,@host_os@,$host_os,;t t
21416s,@ECHO@,$ECHO,;t t
21417s,@AR@,$AR,;t t
21418s,@ac_ct_AR@,$ac_ct_AR,;t t
21419s,@RANLIB@,$RANLIB,;t t
21420s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21421s,@CPP@,$CPP,;t t
21422s,@CXX@,$CXX,;t t
21423s,@CXXFLAGS@,$CXXFLAGS,;t t
21424s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21425s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21426s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21427s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21428s,@CXXCPP@,$CXXCPP,;t t
21429s,@F77@,$F77,;t t
21430s,@FFLAGS@,$FFLAGS,;t t
21431s,@ac_ct_F77@,$ac_ct_F77,;t t
21432s,@LIBTOOL@,$LIBTOOL,;t t
21433s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
21434s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
21435s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
21436s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
21437s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
21438s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
21439s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21440s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
21441s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
21442s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
21443s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
21444s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
21445s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t
21446s,@HOST_TYPE@,$HOST_TYPE,;t t
21447s,@HOST_IS_CYGWIN_TRUE@,$HOST_IS_CYGWIN_TRUE,;t t
21448s,@HOST_IS_CYGWIN_FALSE@,$HOST_IS_CYGWIN_FALSE,;t t
21449s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t
21450s,@ASL_PCLIBS@,$ASL_PCLIBS,;t t
21451s,@LIBEXT@,$LIBEXT,;t t
21452s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
21453s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
21454s,@LIBOBJS@,$LIBOBJS,;t t
21455s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21456CEOF
21457
21458_ACEOF
21459
21460  cat >>$CONFIG_STATUS <<\_ACEOF
21461  # Split the substitutions into bite-sized pieces for seds with
21462  # small command number limits, like on Digital OSF/1 and HP-UX.
21463  ac_max_sed_lines=48
21464  ac_sed_frag=1 # Number of current file.
21465  ac_beg=1 # First line for current file.
21466  ac_end=$ac_max_sed_lines # Line after last line for current file.
21467  ac_more_lines=:
21468  ac_sed_cmds=
21469  while $ac_more_lines; do
21470    if test $ac_beg -gt 1; then
21471      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21472    else
21473      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21474    fi
21475    if test ! -s $tmp/subs.frag; then
21476      ac_more_lines=false
21477    else
21478      # The purpose of the label and of the branching condition is to
21479      # speed up the sed processing (if there are no `@' at all, there
21480      # is no need to browse any of the substitutions).
21481      # These are the two extra sed commands mentioned above.
21482      (echo ':t
21483  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21484      if test -z "$ac_sed_cmds"; then
21485	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21486      else
21487	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21488      fi
21489      ac_sed_frag=`expr $ac_sed_frag + 1`
21490      ac_beg=$ac_end
21491      ac_end=`expr $ac_end + $ac_max_sed_lines`
21492    fi
21493  done
21494  if test -z "$ac_sed_cmds"; then
21495    ac_sed_cmds=cat
21496  fi
21497fi # test -n "$CONFIG_FILES"
21498
21499_ACEOF
21500cat >>$CONFIG_STATUS <<\_ACEOF
21501for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21502  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21503  case $ac_file in
21504  - | *:- | *:-:* ) # input from stdin
21505	cat >$tmp/stdin
21506	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21507	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21508  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21509	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21510  * )   ac_file_in=$ac_file.in ;;
21511  esac
21512
21513  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21514  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21515$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21516	 X"$ac_file" : 'X\(//\)[^/]' \| \
21517	 X"$ac_file" : 'X\(//\)$' \| \
21518	 X"$ac_file" : 'X\(/\)' \| \
21519	 .     : '\(.\)' 2>/dev/null ||
21520echo X"$ac_file" |
21521    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21522  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21523  	  /^X\(\/\/\)$/{ s//\1/; q; }
21524  	  /^X\(\/\).*/{ s//\1/; q; }
21525  	  s/.*/./; q'`
21526  { if $as_mkdir_p; then
21527    mkdir -p "$ac_dir"
21528  else
21529    as_dir="$ac_dir"
21530    as_dirs=
21531    while test ! -d "$as_dir"; do
21532      as_dirs="$as_dir $as_dirs"
21533      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21534$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21535	 X"$as_dir" : 'X\(//\)[^/]' \| \
21536	 X"$as_dir" : 'X\(//\)$' \| \
21537	 X"$as_dir" : 'X\(/\)' \| \
21538	 .     : '\(.\)' 2>/dev/null ||
21539echo X"$as_dir" |
21540    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21541  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21542  	  /^X\(\/\/\)$/{ s//\1/; q; }
21543  	  /^X\(\/\).*/{ s//\1/; q; }
21544  	  s/.*/./; q'`
21545    done
21546    test ! -n "$as_dirs" || mkdir $as_dirs
21547  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21548echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21549   { (exit 1); exit 1; }; }; }
21550
21551  ac_builddir=.
21552
21553if test "$ac_dir" != .; then
21554  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21555  # A "../" for each directory in $ac_dir_suffix.
21556  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21557else
21558  ac_dir_suffix= ac_top_builddir=
21559fi
21560
21561case $srcdir in
21562  .)  # No --srcdir option.  We are building in place.
21563    ac_srcdir=.
21564    if test -z "$ac_top_builddir"; then
21565       ac_top_srcdir=.
21566    else
21567       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21568    fi ;;
21569  [\\/]* | ?:[\\/]* )  # Absolute path.
21570    ac_srcdir=$srcdir$ac_dir_suffix;
21571    ac_top_srcdir=$srcdir ;;
21572  *) # Relative path.
21573    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21574    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21575esac
21576
21577# Do not use `cd foo && pwd` to compute absolute paths, because
21578# the directories may not exist.
21579case `pwd` in
21580.) ac_abs_builddir="$ac_dir";;
21581*)
21582  case "$ac_dir" in
21583  .) ac_abs_builddir=`pwd`;;
21584  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21585  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21586  esac;;
21587esac
21588case $ac_abs_builddir in
21589.) ac_abs_top_builddir=${ac_top_builddir}.;;
21590*)
21591  case ${ac_top_builddir}. in
21592  .) ac_abs_top_builddir=$ac_abs_builddir;;
21593  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21594  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21595  esac;;
21596esac
21597case $ac_abs_builddir in
21598.) ac_abs_srcdir=$ac_srcdir;;
21599*)
21600  case $ac_srcdir in
21601  .) ac_abs_srcdir=$ac_abs_builddir;;
21602  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21603  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21604  esac;;
21605esac
21606case $ac_abs_builddir in
21607.) ac_abs_top_srcdir=$ac_top_srcdir;;
21608*)
21609  case $ac_top_srcdir in
21610  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21611  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21612  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21613  esac;;
21614esac
21615
21616
21617  case $INSTALL in
21618  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21619  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21620  esac
21621
21622  if test x"$ac_file" != x-; then
21623    { echo "$as_me:$LINENO: creating $ac_file" >&5
21624echo "$as_me: creating $ac_file" >&6;}
21625    rm -f "$ac_file"
21626  fi
21627  # Let's still pretend it is `configure' which instantiates (i.e., don't
21628  # use $as_me), people would be surprised to read:
21629  #    /* config.h.  Generated by config.status.  */
21630  if test x"$ac_file" = x-; then
21631    configure_input=
21632  else
21633    configure_input="$ac_file.  "
21634  fi
21635  configure_input=$configure_input"Generated from `echo $ac_file_in |
21636				     sed 's,.*/,,'` by configure."
21637
21638  # First look for the input files in the build tree, otherwise in the
21639  # src tree.
21640  ac_file_inputs=`IFS=:
21641    for f in $ac_file_in; do
21642      case $f in
21643      -) echo $tmp/stdin ;;
21644      [\\/$]*)
21645	 # Absolute (can't be DOS-style, as IFS=:)
21646	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21647echo "$as_me: error: cannot find input file: $f" >&2;}
21648   { (exit 1); exit 1; }; }
21649	 echo "$f";;
21650      *) # Relative
21651	 if test -f "$f"; then
21652	   # Build tree
21653	   echo "$f"
21654	 elif test -f "$srcdir/$f"; then
21655	   # Source tree
21656	   echo "$srcdir/$f"
21657	 else
21658	   # /dev/null tree
21659	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21660echo "$as_me: error: cannot find input file: $f" >&2;}
21661   { (exit 1); exit 1; }; }
21662	 fi;;
21663      esac
21664    done` || { (exit 1); exit 1; }
21665_ACEOF
21666cat >>$CONFIG_STATUS <<_ACEOF
21667  sed "$ac_vpsub
21668$extrasub
21669_ACEOF
21670cat >>$CONFIG_STATUS <<\_ACEOF
21671:t
21672/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21673s,@configure_input@,$configure_input,;t t
21674s,@srcdir@,$ac_srcdir,;t t
21675s,@abs_srcdir@,$ac_abs_srcdir,;t t
21676s,@top_srcdir@,$ac_top_srcdir,;t t
21677s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21678s,@builddir@,$ac_builddir,;t t
21679s,@abs_builddir@,$ac_abs_builddir,;t t
21680s,@top_builddir@,$ac_top_builddir,;t t
21681s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21682s,@INSTALL@,$ac_INSTALL,;t t
21683" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21684  rm -f $tmp/stdin
21685  if test x"$ac_file" != x-; then
21686    mv $tmp/out $ac_file
21687  else
21688    cat $tmp/out
21689    rm -f $tmp/out
21690  fi
21691
21692  # Run the commands associated with the file.
21693  case $ac_file in
21694    compile_MS_ASL ) chmod a+x compile_MS_ASL ;;
21695    compile_Unix_ASL ) chmod a+x compile_Unix_ASL ;;
21696  esac
21697done
21698_ACEOF
21699cat >>$CONFIG_STATUS <<\_ACEOF
21700
21701#
21702# CONFIG_COMMANDS section.
21703#
21704for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21705  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21706  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21707  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21708$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21710	 X"$ac_dest" : 'X\(//\)$' \| \
21711	 X"$ac_dest" : 'X\(/\)' \| \
21712	 .     : '\(.\)' 2>/dev/null ||
21713echo X"$ac_dest" |
21714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21715  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21716  	  /^X\(\/\/\)$/{ s//\1/; q; }
21717  	  /^X\(\/\).*/{ s//\1/; q; }
21718  	  s/.*/./; q'`
21719  { if $as_mkdir_p; then
21720    mkdir -p "$ac_dir"
21721  else
21722    as_dir="$ac_dir"
21723    as_dirs=
21724    while test ! -d "$as_dir"; do
21725      as_dirs="$as_dir $as_dirs"
21726      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728	 X"$as_dir" : 'X\(//\)[^/]' \| \
21729	 X"$as_dir" : 'X\(//\)$' \| \
21730	 X"$as_dir" : 'X\(/\)' \| \
21731	 .     : '\(.\)' 2>/dev/null ||
21732echo X"$as_dir" |
21733    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21734  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21735  	  /^X\(\/\/\)$/{ s//\1/; q; }
21736  	  /^X\(\/\).*/{ s//\1/; q; }
21737  	  s/.*/./; q'`
21738    done
21739    test ! -n "$as_dirs" || mkdir $as_dirs
21740  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21741echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21742   { (exit 1); exit 1; }; }; }
21743
21744  ac_builddir=.
21745
21746if test "$ac_dir" != .; then
21747  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21748  # A "../" for each directory in $ac_dir_suffix.
21749  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21750else
21751  ac_dir_suffix= ac_top_builddir=
21752fi
21753
21754case $srcdir in
21755  .)  # No --srcdir option.  We are building in place.
21756    ac_srcdir=.
21757    if test -z "$ac_top_builddir"; then
21758       ac_top_srcdir=.
21759    else
21760       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21761    fi ;;
21762  [\\/]* | ?:[\\/]* )  # Absolute path.
21763    ac_srcdir=$srcdir$ac_dir_suffix;
21764    ac_top_srcdir=$srcdir ;;
21765  *) # Relative path.
21766    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21767    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21768esac
21769
21770# Do not use `cd foo && pwd` to compute absolute paths, because
21771# the directories may not exist.
21772case `pwd` in
21773.) ac_abs_builddir="$ac_dir";;
21774*)
21775  case "$ac_dir" in
21776  .) ac_abs_builddir=`pwd`;;
21777  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21778  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21779  esac;;
21780esac
21781case $ac_abs_builddir in
21782.) ac_abs_top_builddir=${ac_top_builddir}.;;
21783*)
21784  case ${ac_top_builddir}. in
21785  .) ac_abs_top_builddir=$ac_abs_builddir;;
21786  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21787  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21788  esac;;
21789esac
21790case $ac_abs_builddir in
21791.) ac_abs_srcdir=$ac_srcdir;;
21792*)
21793  case $ac_srcdir in
21794  .) ac_abs_srcdir=$ac_abs_builddir;;
21795  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21796  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21797  esac;;
21798esac
21799case $ac_abs_builddir in
21800.) ac_abs_top_srcdir=$ac_top_srcdir;;
21801*)
21802  case $ac_top_srcdir in
21803  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21804  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21805  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21806  esac;;
21807esac
21808
21809
21810  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21811echo "$as_me: executing $ac_dest commands" >&6;}
21812  case $ac_dest in
21813    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21814  # Strip MF so we end up with the name of the file.
21815  mf=`echo "$mf" | sed -e 's/:.*$//'`
21816  # Check whether this is an Automake generated Makefile or not.
21817  # We used to match only the files named `Makefile.in', but
21818  # some people rename them; so instead we look at the file content.
21819  # Grep'ing the first line is not enough: some people post-process
21820  # each Makefile.in and add a new line on top of each file to say so.
21821  # So let's grep whole file.
21822  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21823    dirpart=`(dirname "$mf") 2>/dev/null ||
21824$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21825	 X"$mf" : 'X\(//\)[^/]' \| \
21826	 X"$mf" : 'X\(//\)$' \| \
21827	 X"$mf" : 'X\(/\)' \| \
21828	 .     : '\(.\)' 2>/dev/null ||
21829echo X"$mf" |
21830    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21831  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21832  	  /^X\(\/\/\)$/{ s//\1/; q; }
21833  	  /^X\(\/\).*/{ s//\1/; q; }
21834  	  s/.*/./; q'`
21835  else
21836    continue
21837  fi
21838  # Extract the definition of DEPDIR, am__include, and am__quote
21839  # from the Makefile without running `make'.
21840  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21841  test -z "$DEPDIR" && continue
21842  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21843  test -z "am__include" && continue
21844  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21845  # When using ansi2knr, U may be empty or an underscore; expand it
21846  U=`sed -n 's/^U = //p' < "$mf"`
21847  # Find all dependency output files, they are included files with
21848  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21849  # simplest approach to changing $(DEPDIR) to its actual value in the
21850  # expansion.
21851  for file in `sed -n "
21852    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21853       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21854    # Make sure the directory exists.
21855    test -f "$dirpart/$file" && continue
21856    fdir=`(dirname "$file") 2>/dev/null ||
21857$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21858	 X"$file" : 'X\(//\)[^/]' \| \
21859	 X"$file" : 'X\(//\)$' \| \
21860	 X"$file" : 'X\(/\)' \| \
21861	 .     : '\(.\)' 2>/dev/null ||
21862echo X"$file" |
21863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21864  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21865  	  /^X\(\/\/\)$/{ s//\1/; q; }
21866  	  /^X\(\/\).*/{ s//\1/; q; }
21867  	  s/.*/./; q'`
21868    { if $as_mkdir_p; then
21869    mkdir -p $dirpart/$fdir
21870  else
21871    as_dir=$dirpart/$fdir
21872    as_dirs=
21873    while test ! -d "$as_dir"; do
21874      as_dirs="$as_dir $as_dirs"
21875      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21877	 X"$as_dir" : 'X\(//\)[^/]' \| \
21878	 X"$as_dir" : 'X\(//\)$' \| \
21879	 X"$as_dir" : 'X\(/\)' \| \
21880	 .     : '\(.\)' 2>/dev/null ||
21881echo X"$as_dir" |
21882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21883  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21884  	  /^X\(\/\/\)$/{ s//\1/; q; }
21885  	  /^X\(\/\).*/{ s//\1/; q; }
21886  	  s/.*/./; q'`
21887    done
21888    test ! -n "$as_dirs" || mkdir $as_dirs
21889  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21890echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21891   { (exit 1); exit 1; }; }; }
21892
21893    # echo "creating $dirpart/$file"
21894    echo '# dummy' > "$dirpart/$file"
21895  done
21896done
21897 ;;
21898  esac
21899done
21900_ACEOF
21901
21902cat >>$CONFIG_STATUS <<\_ACEOF
21903
21904{ (exit 0); exit 0; }
21905_ACEOF
21906chmod +x $CONFIG_STATUS
21907ac_clean_files=$ac_clean_files_save
21908
21909
21910# configure is writing to config.log, and then calls config.status.
21911# config.status does its own redirection, appending to config.log.
21912# Unfortunately, on DOS this fails, as config.log is still kept open
21913# by configure, so config.status won't be able to write to it; its
21914# output is simply discarded.  So we exec the FD to /dev/null,
21915# effectively closing config.log, so it can be properly (re)opened and
21916# appended to by config.status.  When coming back to configure, we
21917# need to make the FD available again.
21918if test "$no_create" != yes; then
21919  ac_cs_success=:
21920  ac_config_status_args=
21921  test "$silent" = yes &&
21922    ac_config_status_args="$ac_config_status_args --quiet"
21923  exec 5>/dev/null
21924  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21925  exec 5>>config.log
21926  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21927  # would make configure fail if this is the last instruction.
21928  $ac_cs_success || { (exit 1); exit 1; }
21929fi
21930
21931
21932  if test x"$coin_vpath_link_files" = x; then : ; else
21933    lnkcmd="$coin_link_input_cmd"
21934    if test "$lnkcmd" = cp; then
21935      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
21936echo "$as_me: Copying data files for VPATH configuration" >&6;}
21937    else
21938      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
21939echo "$as_me: Creating VPATH links for data files" >&6;}
21940    fi
21941    for file in $coin_vpath_link_files; do
21942      dir=`(dirname "./$file") 2>/dev/null ||
21943$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21944	 X"./$file" : 'X\(//\)[^/]' \| \
21945	 X"./$file" : 'X\(//\)$' \| \
21946	 X"./$file" : 'X\(/\)' \| \
21947	 .     : '\(.\)' 2>/dev/null ||
21948echo X"./$file" |
21949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21950  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21951  	  /^X\(\/\/\)$/{ s//\1/; q; }
21952  	  /^X\(\/\).*/{ s//\1/; q; }
21953  	  s/.*/./; q'`
21954      if test -d $dir; then : ; else
21955        { if $as_mkdir_p; then
21956    mkdir -p $dir
21957  else
21958    as_dir=$dir
21959    as_dirs=
21960    while test ! -d "$as_dir"; do
21961      as_dirs="$as_dir $as_dirs"
21962      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21964	 X"$as_dir" : 'X\(//\)[^/]' \| \
21965	 X"$as_dir" : 'X\(//\)$' \| \
21966	 X"$as_dir" : 'X\(/\)' \| \
21967	 .     : '\(.\)' 2>/dev/null ||
21968echo X"$as_dir" |
21969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21970  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21971  	  /^X\(\/\/\)$/{ s//\1/; q; }
21972  	  /^X\(\/\).*/{ s//\1/; q; }
21973  	  s/.*/./; q'`
21974    done
21975    test ! -n "$as_dirs" || mkdir $as_dirs
21976  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
21977echo "$as_me: error: cannot create directory $dir" >&2;}
21978   { (exit 1); exit 1; }; }; }
21979
21980      fi
21981      rm -f $file
21982      $lnkcmd $abs_source_dir/$file $file
21983    done
21984  fi
21985
21986  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
21987echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
21988  if test x$coin_projectdir = xyes; then
21989    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
21990echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
21991  else
21992    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
21993echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
21994  fi
21995else
21996  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
21997echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
21998fi
21999
22000
22001