1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Bcps 0.99.
5#
6# Report bugs to <https://github.com/coin-or/CHiPPS-BiCePS/issues/new>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# #==========================================================================#
14# # This file is part of the Branch, Constrain and Price Software (BiCePS).  #
15# #                                                                          #
16# # BiCePS is distributed under the Eclipse Public License as part of the    #
17# # COIN-OR repository (http://www.coin-or.org).                             #
18# #                                                                          #
19# # Authors:                                                                 #
20# #                                                                          #
21# #          Yan Xu, Lehigh University                                       #
22# #          Aykut Bulut, Lehigh University                                  #
23# #          Ted Ralphs, Lehigh University                                   #
24# #                                                                          #
25# # Conceptual Design:                                                       #
26# #                                                                          #
27# #          Yan Xu, Lehigh University                                       #
28# #          Ted Ralphs, Lehigh University                                   #
29# #          Laszlo Ladanyi, IBM T.J. Watson Research Center                 #
30# #          Matthew Saltzman, Clemson University                            #
31# #                                                                          #
32# #                                                                          #
33# # Copyright (C) 2001-2019, Lehigh University, Yan Xu, Aykut Bulut, and     #
34# #                          Ted Ralphs.                                     #
35# # All Rights Reserved.                                                     #
36# #==========================================================================#
37#
38## --------------------- ##
39## M4sh Initialization.  ##
40## --------------------- ##
41
42# Be Bourne compatible
43if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44  emulate sh
45  NULLCMD=:
46  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
47  # is contrary to our usage.  Disable this feature.
48  alias -g '${1+"$@"}'='"$@"'
49elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50  set -o posix
51fi
52DUALCASE=1; export DUALCASE # for MKS sh
53
54# Support unset when possible.
55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56  as_unset=unset
57else
58  as_unset=false
59fi
60
61
62# Work around bugs in pre-3.0 UWIN ksh.
63$as_unset ENV MAIL MAILPATH
64PS1='$ '
65PS2='> '
66PS4='+ '
67
68# NLS nuisances.
69for as_var in \
70  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
71  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
72  LC_TELEPHONE LC_TIME
73do
74  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
75    eval $as_var=C; export $as_var
76  else
77    $as_unset $as_var
78  fi
79done
80
81# Required to use basename.
82if expr a : '\(a\)' >/dev/null 2>&1; then
83  as_expr=expr
84else
85  as_expr=false
86fi
87
88if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
89  as_basename=basename
90else
91  as_basename=false
92fi
93
94
95# Name of the executable.
96as_me=`$as_basename "$0" ||
97$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
98	 X"$0" : 'X\(//\)$' \| \
99	 X"$0" : 'X\(/\)$' \| \
100	 .     : '\(.\)' 2>/dev/null ||
101echo X/"$0" |
102    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
103  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
104  	  /^X\/\(\/\).*/{ s//\1/; q; }
105  	  s/.*/./; q'`
106
107
108# PATH needs CR, and LINENO needs CR and PATH.
109# Avoid depending upon Character Ranges.
110as_cr_letters='abcdefghijklmnopqrstuvwxyz'
111as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
112as_cr_Letters=$as_cr_letters$as_cr_LETTERS
113as_cr_digits='0123456789'
114as_cr_alnum=$as_cr_Letters$as_cr_digits
115
116# The user is always right.
117if test "${PATH_SEPARATOR+set}" != set; then
118  echo "#! /bin/sh" >conf$$.sh
119  echo  "exit 0"   >>conf$$.sh
120  chmod +x conf$$.sh
121  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
122    PATH_SEPARATOR=';'
123  else
124    PATH_SEPARATOR=:
125  fi
126  rm -f conf$$.sh
127fi
128
129
130  as_lineno_1=$LINENO
131  as_lineno_2=$LINENO
132  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
133  test "x$as_lineno_1" != "x$as_lineno_2" &&
134  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
135  # Find who we are.  Look in the path if we contain no path at all
136  # relative or not.
137  case $0 in
138    *[\\/]* ) as_myself=$0 ;;
139    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in $PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
145done
146
147       ;;
148  esac
149  # We did not find ourselves, most probably we were run as `sh COMMAND'
150  # in which case we are not to be found in the path.
151  if test "x$as_myself" = x; then
152    as_myself=$0
153  fi
154  if test ! -f "$as_myself"; then
155    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
156   { (exit 1); exit 1; }; }
157  fi
158  case $CONFIG_SHELL in
159  '')
160    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
161for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
162do
163  IFS=$as_save_IFS
164  test -z "$as_dir" && as_dir=.
165  for as_base in sh bash ksh sh5; do
166	 case $as_dir in
167	 /*)
168	   if ("$as_dir/$as_base" -c '
169  as_lineno_1=$LINENO
170  as_lineno_2=$LINENO
171  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
172  test "x$as_lineno_1" != "x$as_lineno_2" &&
173  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
174	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
175	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
176	     CONFIG_SHELL=$as_dir/$as_base
177	     export CONFIG_SHELL
178	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
179	   fi;;
180	 esac
181       done
182done
183;;
184  esac
185
186  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
187  # uniformly replaced by the line number.  The first 'sed' inserts a
188  # line-number line before each line; the second 'sed' does the real
189  # work.  The second script uses 'N' to pair each line-number line
190  # with the numbered line, and appends trailing '-' during
191  # substitution so that $LINENO is not a special case at line end.
192  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
193  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
194  sed '=' <$as_myself |
195    sed '
196      N
197      s,$,-,
198      : loop
199      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
200      t loop
201      s,-$,,
202      s,^['$as_cr_digits']*\n,,
203    ' >$as_me.lineno &&
204  chmod +x $as_me.lineno ||
205    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
206   { (exit 1); exit 1; }; }
207
208  # Don't try to exec as it changes $[0], causing all sort of problems
209  # (the dirname of $[0] is not the place where we might find the
210  # original and so on.  Autoconf is especially sensible to this).
211  . ./$as_me.lineno
212  # Exit status is that of the last command.
213  exit
214}
215
216
217case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
218  *c*,-n*) ECHO_N= ECHO_C='
219' ECHO_T='	' ;;
220  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
221  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
222esac
223
224if expr a : '\(a\)' >/dev/null 2>&1; then
225  as_expr=expr
226else
227  as_expr=false
228fi
229
230rm -f conf$$ conf$$.exe conf$$.file
231echo >conf$$.file
232if ln -s conf$$.file conf$$ 2>/dev/null; then
233  # We could just check for DJGPP; but this test a) works b) is more generic
234  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
235  if test -f conf$$.exe; then
236    # Don't use ln at all; we don't have any links
237    as_ln_s='cp -p'
238  else
239    as_ln_s='ln -s'
240  fi
241elif ln conf$$.file conf$$ 2>/dev/null; then
242  as_ln_s=ln
243else
244  as_ln_s='cp -p'
245fi
246rm -f conf$$ conf$$.exe conf$$.file
247
248if mkdir -p . 2>/dev/null; then
249  as_mkdir_p=:
250else
251  test -d ./-p && rmdir ./-p
252  as_mkdir_p=false
253fi
254
255as_executable_p="test -f"
256
257# Sed expression to map a string onto a valid CPP name.
258as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
259
260# Sed expression to map a string onto a valid variable name.
261as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
262
263
264# IFS
265# We need space, tab and new line, in precisely that order.
266as_nl='
267'
268IFS=" 	$as_nl"
269
270# CDPATH.
271$as_unset CDPATH
272
273
274
275# Check that we are running under the correct shell.
276SHELL=${CONFIG_SHELL-/bin/sh}
277
278case X$ECHO in
279X*--fallback-echo)
280  # Remove one level of quotation (which was required for Make).
281  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
282  ;;
283esac
284
285echo=${ECHO-echo}
286if test "X$1" = X--no-reexec; then
287  # Discard the --no-reexec flag, and continue.
288  shift
289elif test "X$1" = X--fallback-echo; then
290  # Avoid inline document here, it may be left over
291  :
292elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
293  # Yippee, $echo works!
294  :
295else
296  # Restart under the correct shell.
297  exec $SHELL "$0" --no-reexec ${1+"$@"}
298fi
299
300if test "X$1" = X--fallback-echo; then
301  # used as fallback echo
302  shift
303  cat <<EOF
304$*
305EOF
306  exit 0
307fi
308
309# The HP-UX ksh and POSIX shell print the target directory to stdout
310# if CDPATH is set.
311(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
312
313if test -z "$ECHO"; then
314if test "X${echo_test_string+set}" != Xset; then
315# find a string as large as possible, as long as the shell can cope with it
316  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
317    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
318    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
319       echo_test_string=`eval $cmd` &&
320       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
321    then
322      break
323    fi
324  done
325fi
326
327if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
328   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
329   test "X$echo_testing_string" = "X$echo_test_string"; then
330  :
331else
332  # The Solaris, AIX, and Digital Unix default echo programs unquote
333  # backslashes.  This makes it impossible to quote backslashes using
334  #   echo "$something" | sed 's/\\/\\\\/g'
335  #
336  # So, first we look for a working echo in the user's PATH.
337
338  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
339  for dir in $PATH /usr/ucb; do
340    IFS="$lt_save_ifs"
341    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
342       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
343       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
344       test "X$echo_testing_string" = "X$echo_test_string"; then
345      echo="$dir/echo"
346      break
347    fi
348  done
349  IFS="$lt_save_ifs"
350
351  if test "X$echo" = Xecho; then
352    # We didn't find a better echo, so look for alternatives.
353    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
354       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
355       test "X$echo_testing_string" = "X$echo_test_string"; then
356      # This shell has a builtin print -r that does the trick.
357      echo='print -r'
358    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
359	 test "X$CONFIG_SHELL" != X/bin/ksh; then
360      # If we have ksh, try running configure again with it.
361      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
362      export ORIGINAL_CONFIG_SHELL
363      CONFIG_SHELL=/bin/ksh
364      export CONFIG_SHELL
365      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
366    else
367      # Try using printf.
368      echo='printf %s\n'
369      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
370	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
371	 test "X$echo_testing_string" = "X$echo_test_string"; then
372	# Cool, printf works
373	:
374      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
375	   test "X$echo_testing_string" = 'X\t' &&
376	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
377	   test "X$echo_testing_string" = "X$echo_test_string"; then
378	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
379	export CONFIG_SHELL
380	SHELL="$CONFIG_SHELL"
381	export SHELL
382	echo="$CONFIG_SHELL $0 --fallback-echo"
383      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
384	   test "X$echo_testing_string" = 'X\t' &&
385	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
386	   test "X$echo_testing_string" = "X$echo_test_string"; then
387	echo="$CONFIG_SHELL $0 --fallback-echo"
388      else
389	# maybe with a smaller string...
390	prev=:
391
392	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
393	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
394	  then
395	    break
396	  fi
397	  prev="$cmd"
398	done
399
400	if test "$prev" != 'sed 50q "$0"'; then
401	  echo_test_string=`eval $prev`
402	  export echo_test_string
403	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
404	else
405	  # Oops.  We lost completely, so just stick with echo.
406	  echo=echo
407	fi
408      fi
409    fi
410  fi
411fi
412fi
413
414# Copy echo and quote the copy suitably for passing to libtool from
415# the Makefile, instead of quoting the original, which is used later.
416ECHO=$echo
417if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
418   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
419fi
420
421
422
423
424tagnames=${tagnames+${tagnames},}CXX
425
426tagnames=${tagnames+${tagnames},}F77
427
428# Name of the host.
429# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
430# so uname gets run too.
431ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
432
433exec 6>&1
434
435#
436# Initializations.
437#
438ac_default_prefix=/usr/local
439ac_config_libobj_dir=.
440cross_compiling=no
441subdirs=
442MFLAGS=
443MAKEFLAGS=
444SHELL=${CONFIG_SHELL-/bin/sh}
445
446# Maximum number of lines to put in a shell here document.
447# This variable seems obsolete.  It should probably be removed, and
448# only ac_max_sed_lines should be used.
449: ${ac_max_here_lines=38}
450
451# Identity of this package.
452PACKAGE_NAME='Bcps'
453PACKAGE_TARNAME='bcps'
454PACKAGE_VERSION='0.99'
455PACKAGE_STRING='Bcps 0.99'
456PACKAGE_BUGREPORT='https://github.com/coin-or/CHiPPS-BiCePS/issues/new'
457
458ac_unique_file="configure.ac"
459ac_default_prefix=`pwd`
460# Factoring default headers for most tests.
461ac_includes_default="\
462#include <stdio.h>
463#if HAVE_SYS_TYPES_H
464# include <sys/types.h>
465#endif
466#if HAVE_SYS_STAT_H
467# include <sys/stat.h>
468#endif
469#if STDC_HEADERS
470# include <stdlib.h>
471# include <stddef.h>
472#else
473# if HAVE_STDLIB_H
474#  include <stdlib.h>
475# endif
476#endif
477#if HAVE_STRING_H
478# if !STDC_HEADERS && HAVE_MEMORY_H
479#  include <memory.h>
480# endif
481# include <string.h>
482#endif
483#if HAVE_STRINGS_H
484# include <strings.h>
485#endif
486#if HAVE_INTTYPES_H
487# include <inttypes.h>
488#else
489# if HAVE_STDINT_H
490#  include <stdint.h>
491# endif
492#endif
493#if HAVE_UNISTD_H
494# include <unistd.h>
495#endif"
496
497ac_subdirs_all="$ac_subdirs_all CoinUtils"
498ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
499ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
500ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
501ac_subdirs_all="$ac_subdirs_all Data/Sample"
502ac_subdirs_all="$ac_subdirs_all Osi"
503ac_subdirs_all="$ac_subdirs_all Clp"
504ac_subdirs_all="$ac_subdirs_all Cgl"
505ac_subdirs_all="$ac_subdirs_all Alps"
506ac_subdirs_all="$ac_subdirs_all Bcps"
507ac_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 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 CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
508ac_subst_files=''
509
510# Initialize some variables set by options.
511ac_init_help=
512ac_init_version=false
513# The variables have the same names as the options, with
514# dashes changed to underlines.
515cache_file=/dev/null
516exec_prefix=NONE
517no_create=
518no_recursion=
519prefix=NONE
520program_prefix=NONE
521program_suffix=NONE
522program_transform_name=s,x,x,
523silent=
524site=
525srcdir=
526verbose=
527x_includes=NONE
528x_libraries=NONE
529
530# Installation directory options.
531# These are left unexpanded so users can "make install exec_prefix=/foo"
532# and all the variables that are supposed to be based on exec_prefix
533# by default will actually change.
534# Use braces instead of parens because sh, perl, etc. also accept them.
535bindir='${exec_prefix}/bin'
536sbindir='${exec_prefix}/sbin'
537libexecdir='${exec_prefix}/libexec'
538datadir='${prefix}/share'
539sysconfdir='${prefix}/etc'
540sharedstatedir='${prefix}/com'
541localstatedir='${prefix}/var'
542libdir='${exec_prefix}/lib'
543includedir='${prefix}/include'
544oldincludedir='/usr/include'
545infodir='${prefix}/info'
546mandir='${prefix}/man'
547
548ac_prev=
549for ac_option
550do
551  # If the previous option needs an argument, assign it.
552  if test -n "$ac_prev"; then
553    eval "$ac_prev=\$ac_option"
554    ac_prev=
555    continue
556  fi
557
558  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
559
560  # Accept the important Cygnus configure options, so we can diagnose typos.
561
562  case $ac_option in
563
564  -bindir | --bindir | --bindi | --bind | --bin | --bi)
565    ac_prev=bindir ;;
566  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
567    bindir=$ac_optarg ;;
568
569  -build | --build | --buil | --bui | --bu)
570    ac_prev=build_alias ;;
571  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
572    build_alias=$ac_optarg ;;
573
574  -cache-file | --cache-file | --cache-fil | --cache-fi \
575  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
576    ac_prev=cache_file ;;
577  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
578  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
579    cache_file=$ac_optarg ;;
580
581  --config-cache | -C)
582    cache_file=config.cache ;;
583
584  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
585    ac_prev=datadir ;;
586  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
587  | --da=*)
588    datadir=$ac_optarg ;;
589
590  -disable-* | --disable-*)
591    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
592    # Reject names that are not valid shell variable names.
593    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
595   { (exit 1); exit 1; }; }
596    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
597    eval "enable_$ac_feature=no" ;;
598
599  -enable-* | --enable-*)
600    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
604   { (exit 1); exit 1; }; }
605    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
606    case $ac_option in
607      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
608      *) ac_optarg=yes ;;
609    esac
610    eval "enable_$ac_feature='$ac_optarg'" ;;
611
612  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
613  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
614  | --exec | --exe | --ex)
615    ac_prev=exec_prefix ;;
616  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
617  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
618  | --exec=* | --exe=* | --ex=*)
619    exec_prefix=$ac_optarg ;;
620
621  -gas | --gas | --ga | --g)
622    # Obsolete; use --with-gas.
623    with_gas=yes ;;
624
625  -help | --help | --hel | --he | -h)
626    ac_init_help=long ;;
627  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
628    ac_init_help=recursive ;;
629  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
630    ac_init_help=short ;;
631
632  -host | --host | --hos | --ho)
633    ac_prev=host_alias ;;
634  -host=* | --host=* | --hos=* | --ho=*)
635    host_alias=$ac_optarg ;;
636
637  -includedir | --includedir | --includedi | --included | --include \
638  | --includ | --inclu | --incl | --inc)
639    ac_prev=includedir ;;
640  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
641  | --includ=* | --inclu=* | --incl=* | --inc=*)
642    includedir=$ac_optarg ;;
643
644  -infodir | --infodir | --infodi | --infod | --info | --inf)
645    ac_prev=infodir ;;
646  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
647    infodir=$ac_optarg ;;
648
649  -libdir | --libdir | --libdi | --libd)
650    ac_prev=libdir ;;
651  -libdir=* | --libdir=* | --libdi=* | --libd=*)
652    libdir=$ac_optarg ;;
653
654  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
655  | --libexe | --libex | --libe)
656    ac_prev=libexecdir ;;
657  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
658  | --libexe=* | --libex=* | --libe=*)
659    libexecdir=$ac_optarg ;;
660
661  -localstatedir | --localstatedir | --localstatedi | --localstated \
662  | --localstate | --localstat | --localsta | --localst \
663  | --locals | --local | --loca | --loc | --lo)
664    ac_prev=localstatedir ;;
665  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
666  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
667  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
668    localstatedir=$ac_optarg ;;
669
670  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
671    ac_prev=mandir ;;
672  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
673    mandir=$ac_optarg ;;
674
675  -nfp | --nfp | --nf)
676    # Obsolete; use --without-fp.
677    with_fp=no ;;
678
679  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
680  | --no-cr | --no-c | -n)
681    no_create=yes ;;
682
683  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
684  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
685    no_recursion=yes ;;
686
687  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
688  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
689  | --oldin | --oldi | --old | --ol | --o)
690    ac_prev=oldincludedir ;;
691  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
692  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
693  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
694    oldincludedir=$ac_optarg ;;
695
696  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
697    ac_prev=prefix ;;
698  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
699    prefix=$ac_optarg ;;
700
701  -program-prefix | --program-prefix | --program-prefi | --program-pref \
702  | --program-pre | --program-pr | --program-p)
703    ac_prev=program_prefix ;;
704  -program-prefix=* | --program-prefix=* | --program-prefi=* \
705  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
706    program_prefix=$ac_optarg ;;
707
708  -program-suffix | --program-suffix | --program-suffi | --program-suff \
709  | --program-suf | --program-su | --program-s)
710    ac_prev=program_suffix ;;
711  -program-suffix=* | --program-suffix=* | --program-suffi=* \
712  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
713    program_suffix=$ac_optarg ;;
714
715  -program-transform-name | --program-transform-name \
716  | --program-transform-nam | --program-transform-na \
717  | --program-transform-n | --program-transform- \
718  | --program-transform | --program-transfor \
719  | --program-transfo | --program-transf \
720  | --program-trans | --program-tran \
721  | --progr-tra | --program-tr | --program-t)
722    ac_prev=program_transform_name ;;
723  -program-transform-name=* | --program-transform-name=* \
724  | --program-transform-nam=* | --program-transform-na=* \
725  | --program-transform-n=* | --program-transform-=* \
726  | --program-transform=* | --program-transfor=* \
727  | --program-transfo=* | --program-transf=* \
728  | --program-trans=* | --program-tran=* \
729  | --progr-tra=* | --program-tr=* | --program-t=*)
730    program_transform_name=$ac_optarg ;;
731
732  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
733  | -silent | --silent | --silen | --sile | --sil)
734    silent=yes ;;
735
736  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
737    ac_prev=sbindir ;;
738  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
739  | --sbi=* | --sb=*)
740    sbindir=$ac_optarg ;;
741
742  -sharedstatedir | --sharedstatedir | --sharedstatedi \
743  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
744  | --sharedst | --shareds | --shared | --share | --shar \
745  | --sha | --sh)
746    ac_prev=sharedstatedir ;;
747  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
748  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
749  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
750  | --sha=* | --sh=*)
751    sharedstatedir=$ac_optarg ;;
752
753  -site | --site | --sit)
754    ac_prev=site ;;
755  -site=* | --site=* | --sit=*)
756    site=$ac_optarg ;;
757
758  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
759    ac_prev=srcdir ;;
760  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
761    srcdir=$ac_optarg ;;
762
763  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
764  | --syscon | --sysco | --sysc | --sys | --sy)
765    ac_prev=sysconfdir ;;
766  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
767  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
768    sysconfdir=$ac_optarg ;;
769
770  -target | --target | --targe | --targ | --tar | --ta | --t)
771    ac_prev=target_alias ;;
772  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
773    target_alias=$ac_optarg ;;
774
775  -v | -verbose | --verbose | --verbos | --verbo | --verb)
776    verbose=yes ;;
777
778  -version | --version | --versio | --versi | --vers | -V)
779    ac_init_version=: ;;
780
781  -with-* | --with-*)
782    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
783    # Reject names that are not valid shell variable names.
784    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
785      { echo "$as_me: error: invalid package name: $ac_package" >&2
786   { (exit 1); exit 1; }; }
787    ac_package=`echo $ac_package| sed 's/-/_/g'`
788    case $ac_option in
789      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
790      *) ac_optarg=yes ;;
791    esac
792    eval "with_$ac_package='$ac_optarg'" ;;
793
794  -without-* | --without-*)
795    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid package name: $ac_package" >&2
799   { (exit 1); exit 1; }; }
800    ac_package=`echo $ac_package | sed 's/-/_/g'`
801    eval "with_$ac_package=no" ;;
802
803  --x)
804    # Obsolete; use --with-x.
805    with_x=yes ;;
806
807  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
808  | --x-incl | --x-inc | --x-in | --x-i)
809    ac_prev=x_includes ;;
810  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
811  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
812    x_includes=$ac_optarg ;;
813
814  -x-libraries | --x-libraries | --x-librarie | --x-librari \
815  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
816    ac_prev=x_libraries ;;
817  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
818  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
819    x_libraries=$ac_optarg ;;
820
821  -*) { echo "$as_me: error: unrecognized option: $ac_option
822Try \`$0 --help' for more information." >&2
823   { (exit 1); exit 1; }; }
824    ;;
825
826  *=*)
827    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
828    # Reject names that are not valid shell variable names.
829    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
830      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
831   { (exit 1); exit 1; }; }
832    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
833    eval "$ac_envvar='$ac_optarg'"
834    export $ac_envvar ;;
835
836  *)
837    # FIXME: should be removed in autoconf 3.0.
838    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
839    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
841    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
842    ;;
843
844  esac
845done
846
847if test -n "$ac_prev"; then
848  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
849  { echo "$as_me: error: missing argument to $ac_option" >&2
850   { (exit 1); exit 1; }; }
851fi
852
853# Be sure to have absolute paths.
854for ac_var in exec_prefix prefix
855do
856  eval ac_val=$`echo $ac_var`
857  case $ac_val in
858    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
859    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
860   { (exit 1); exit 1; }; };;
861  esac
862done
863
864# Be sure to have absolute paths.
865for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
866	      localstatedir libdir includedir oldincludedir infodir mandir
867do
868  eval ac_val=$`echo $ac_var`
869  case $ac_val in
870    [\\/$]* | ?:[\\/]* ) ;;
871    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
872   { (exit 1); exit 1; }; };;
873  esac
874done
875
876# There might be people who depend on the old broken behavior: `$host'
877# used to hold the argument of --host etc.
878# FIXME: To remove some day.
879build=$build_alias
880host=$host_alias
881target=$target_alias
882
883# FIXME: To remove some day.
884if test "x$host_alias" != x; then
885  if test "x$build_alias" = x; then
886    cross_compiling=maybe
887    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
888    If a cross compiler is detected then cross compile mode will be used." >&2
889  elif test "x$build_alias" != "x$host_alias"; then
890    cross_compiling=yes
891  fi
892fi
893
894ac_tool_prefix=
895test -n "$host_alias" && ac_tool_prefix=$host_alias-
896
897test "$silent" = yes && exec 6>/dev/null
898
899
900# Find the source files, if location was not specified.
901if test -z "$srcdir"; then
902  ac_srcdir_defaulted=yes
903  # Try the directory containing this script, then its parent.
904  ac_confdir=`(dirname "$0") 2>/dev/null ||
905$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
906	 X"$0" : 'X\(//\)[^/]' \| \
907	 X"$0" : 'X\(//\)$' \| \
908	 X"$0" : 'X\(/\)' \| \
909	 .     : '\(.\)' 2>/dev/null ||
910echo X"$0" |
911    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
912  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
913  	  /^X\(\/\/\)$/{ s//\1/; q; }
914  	  /^X\(\/\).*/{ s//\1/; q; }
915  	  s/.*/./; q'`
916  srcdir=$ac_confdir
917  if test ! -r $srcdir/$ac_unique_file; then
918    srcdir=..
919  fi
920else
921  ac_srcdir_defaulted=no
922fi
923if test ! -r $srcdir/$ac_unique_file; then
924  if test "$ac_srcdir_defaulted" = yes; then
925    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
926   { (exit 1); exit 1; }; }
927  else
928    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
929   { (exit 1); exit 1; }; }
930  fi
931fi
932(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
933  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
934   { (exit 1); exit 1; }; }
935srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
936ac_env_build_alias_set=${build_alias+set}
937ac_env_build_alias_value=$build_alias
938ac_cv_env_build_alias_set=${build_alias+set}
939ac_cv_env_build_alias_value=$build_alias
940ac_env_host_alias_set=${host_alias+set}
941ac_env_host_alias_value=$host_alias
942ac_cv_env_host_alias_set=${host_alias+set}
943ac_cv_env_host_alias_value=$host_alias
944ac_env_target_alias_set=${target_alias+set}
945ac_env_target_alias_value=$target_alias
946ac_cv_env_target_alias_set=${target_alias+set}
947ac_cv_env_target_alias_value=$target_alias
948ac_env_CDEFS_set=${CDEFS+set}
949ac_env_CDEFS_value=$CDEFS
950ac_cv_env_CDEFS_set=${CDEFS+set}
951ac_cv_env_CDEFS_value=$CDEFS
952ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
953ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
954ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
955ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
956ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
957ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
958ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
959ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
960ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
961ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
962ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
963ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
964ac_env_CC_set=${CC+set}
965ac_env_CC_value=$CC
966ac_cv_env_CC_set=${CC+set}
967ac_cv_env_CC_value=$CC
968ac_env_CFLAGS_set=${CFLAGS+set}
969ac_env_CFLAGS_value=$CFLAGS
970ac_cv_env_CFLAGS_set=${CFLAGS+set}
971ac_cv_env_CFLAGS_value=$CFLAGS
972ac_env_LDFLAGS_set=${LDFLAGS+set}
973ac_env_LDFLAGS_value=$LDFLAGS
974ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
975ac_cv_env_LDFLAGS_value=$LDFLAGS
976ac_env_CPPFLAGS_set=${CPPFLAGS+set}
977ac_env_CPPFLAGS_value=$CPPFLAGS
978ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
979ac_cv_env_CPPFLAGS_value=$CPPFLAGS
980ac_env_MPICC_set=${MPICC+set}
981ac_env_MPICC_value=$MPICC
982ac_cv_env_MPICC_set=${MPICC+set}
983ac_cv_env_MPICC_value=$MPICC
984ac_env_CXXDEFS_set=${CXXDEFS+set}
985ac_env_CXXDEFS_value=$CXXDEFS
986ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
987ac_cv_env_CXXDEFS_value=$CXXDEFS
988ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
989ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
990ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
991ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
992ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
993ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
994ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
995ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
996ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
997ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
998ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
999ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
1000ac_env_CXX_set=${CXX+set}
1001ac_env_CXX_value=$CXX
1002ac_cv_env_CXX_set=${CXX+set}
1003ac_cv_env_CXX_value=$CXX
1004ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1005ac_env_CXXFLAGS_value=$CXXFLAGS
1006ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1007ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1008ac_env_MPICXX_set=${MPICXX+set}
1009ac_env_MPICXX_value=$MPICXX
1010ac_cv_env_MPICXX_set=${MPICXX+set}
1011ac_cv_env_MPICXX_value=$MPICXX
1012ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1013ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1014ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1015ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1016ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1017ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1018ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1019ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1020ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1021ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1022ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1023ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1024ac_env_F77_set=${F77+set}
1025ac_env_F77_value=$F77
1026ac_cv_env_F77_set=${F77+set}
1027ac_cv_env_F77_value=$F77
1028ac_env_FFLAGS_set=${FFLAGS+set}
1029ac_env_FFLAGS_value=$FFLAGS
1030ac_cv_env_FFLAGS_set=${FFLAGS+set}
1031ac_cv_env_FFLAGS_value=$FFLAGS
1032ac_env_MPIF77_set=${MPIF77+set}
1033ac_env_MPIF77_value=$MPIF77
1034ac_cv_env_MPIF77_set=${MPIF77+set}
1035ac_cv_env_MPIF77_value=$MPIF77
1036ac_env_CPP_set=${CPP+set}
1037ac_env_CPP_value=$CPP
1038ac_cv_env_CPP_set=${CPP+set}
1039ac_cv_env_CPP_value=$CPP
1040ac_env_CXXCPP_set=${CXXCPP+set}
1041ac_env_CXXCPP_value=$CXXCPP
1042ac_cv_env_CXXCPP_set=${CXXCPP+set}
1043ac_cv_env_CXXCPP_value=$CXXCPP
1044ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1045ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1046ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1047ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1048
1049#
1050# Report the --help message.
1051#
1052if test "$ac_init_help" = "long"; then
1053  # Omit some internal or obsolete options to make the list less imposing.
1054  # This message is too long to be a string in the A/UX 3.1 sh.
1055  cat <<_ACEOF
1056\`configure' configures Bcps 0.99 to adapt to many kinds of systems.
1057
1058Usage: $0 [OPTION]... [VAR=VALUE]...
1059
1060To assign environment variables (e.g., CC, CFLAGS...), specify them as
1061VAR=VALUE.  See below for descriptions of some of the useful variables.
1062
1063Defaults for the options are specified in brackets.
1064
1065Configuration:
1066  -h, --help              display this help and exit
1067      --help=short        display options specific to this package
1068      --help=recursive    display the short help of all the included packages
1069  -V, --version           display version information and exit
1070  -q, --quiet, --silent   do not print \`checking...' messages
1071      --cache-file=FILE   cache test results in FILE [disabled]
1072  -C, --config-cache      alias for \`--cache-file=config.cache'
1073  -n, --no-create         do not create output files
1074      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1075
1076_ACEOF
1077
1078  cat <<_ACEOF
1079Installation directories:
1080  --prefix=PREFIX         install architecture-independent files in PREFIX
1081			  [$ac_default_prefix]
1082  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1083			  [PREFIX]
1084
1085By default, \`make install' will install all the files in
1086\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1087an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1088for instance \`--prefix=\$HOME'.
1089
1090For better control, use the options below.
1091
1092Fine tuning of the installation directories:
1093  --bindir=DIR           user executables [EPREFIX/bin]
1094  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1095  --libexecdir=DIR       program executables [EPREFIX/libexec]
1096  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1097  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1098  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1099  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1100  --libdir=DIR           object code libraries [EPREFIX/lib]
1101  --includedir=DIR       C header files [PREFIX/include]
1102  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1103  --infodir=DIR          info documentation [PREFIX/info]
1104  --mandir=DIR           man documentation [PREFIX/man]
1105_ACEOF
1106
1107  cat <<\_ACEOF
1108
1109Program names:
1110  --program-prefix=PREFIX            prepend PREFIX to installed program names
1111  --program-suffix=SUFFIX            append SUFFIX to installed program names
1112  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1113
1114System types:
1115  --build=BUILD     configure for building on BUILD [guessed]
1116  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1117_ACEOF
1118fi
1119
1120if test -n "$ac_init_help"; then
1121  case $ac_init_help in
1122     short | recursive ) echo "Configuration of Bcps 0.99:";;
1123   esac
1124  cat <<\_ACEOF
1125
1126Optional Features:
1127  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1128  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1129  --enable-debug          compile all projects with debug options tests
1130                          (implies --disable-shared)
1131
1132  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1133  --enable-static[=PKGS]
1134                          build static libraries [default=no]
1135  --disable-dependency-tracking  speeds up one-time build
1136  --enable-dependency-tracking   do not reject slow dependency extractors
1137  --enable-maintainer-mode  enable make rules and dependencies not useful
1138			  (and sometimes confusing) to the casual installer
1139  --enable-shared[=PKGS]
1140                          build shared libraries [default=yes]
1141  --enable-fast-install[=PKGS]
1142                          optimize for fast installation [default=yes]
1143  --disable-libtool-lock  avoid locking (might break parallel builds)
1144  --disable-dependency-linking
1145                          disable linking library dependencies into shared
1146                          libraries
1147
1148Optional Packages:
1149  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1150  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1151  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1152  --with-pic              try to use only PIC/non-PIC objects [default=use
1153                          both]
1154  --with-tags[=TAGS]
1155                          include additional configurations [automatic]
1156
1157  --with-coinutils-lib linker flags for using project CoinUtils
1158  --with-coinutils-incdir directory with header files for using project
1159                          CoinUtils
1160  --with-coinutils-datadir
1161                          directory with data files for using project
1162                          CoinUtils
1163  --with-blas-lib linker flags for using project Blas
1164  --with-blas-incdir directory with header files for using project Blas
1165  --with-blas-datadir directory with data files for using project Blas
1166  --with-blas             specify BLAS library (or BUILD to enforce use of
1167                          ThirdParty/Blas)
1168  --with-lapack-lib linker flags for using project Lapack
1169  --with-lapack-incdir directory with header files for using project Lapack
1170  --with-lapack-datadir directory with data files for using project Lapack
1171  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1172                          ThirdParty/Lapack)
1173  --with-glpk-lib linker flags for using project Glpk
1174  --with-glpk-incdir directory with header files for using project Glpk
1175  --with-glpk-datadir directory with data files for using project Glpk
1176  --with-sample-lib linker flags for using project Sample
1177  --with-sample-incdir directory with header files for using project Sample
1178  --with-sample-datadir directory with data files for using project Sample
1179  --with-osi-lib linker flags for using project Osi
1180  --with-osi-incdir directory with header files for using project Osi
1181  --with-osi-datadir directory with data files for using project Osi
1182  --with-clp-lib linker flags for using project Clp
1183  --with-clp-incdir directory with header files for using project Clp
1184  --with-clp-datadir directory with data files for using project Clp
1185  --with-cgl-lib linker flags for using project Cgl
1186  --with-cgl-incdir directory with header files for using project Cgl
1187  --with-cgl-datadir directory with data files for using project Cgl
1188  --with-alps-lib linker flags for using project Alps
1189  --with-alps-incdir directory with header files for using project Alps
1190  --with-alps-datadir directory with data files for using project Alps
1191  --with-bcps-lib linker flags for using project Bcps
1192  --with-bcps-incdir directory with header files for using project Bcps
1193  --with-bcps-datadir directory with data files for using project Bcps
1194
1195Some influential environment variables:
1196  CDEFS       Additional -D flags to be used when compiling C code.
1197  ADD_CFLAGS  Additional C compiler options
1198  DBG_CFLAGS  Debug C compiler options
1199  OPT_CFLAGS  Optimize C compiler options
1200  CC          C compiler command
1201  CFLAGS      C compiler flags
1202  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1203              nonstandard directory <lib dir>
1204  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1205              headers in a nonstandard directory <include dir>
1206  MPICC       C MPI Compiler
1207  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1208  ADD_CXXFLAGS
1209              Additional C++ compiler options
1210  DBG_CXXFLAGS
1211              Debug C++ compiler options
1212  OPT_CXXFLAGS
1213              Optimize C++ compiler options
1214  CXX         C++ compiler command
1215  CXXFLAGS    C++ compiler flags
1216  MPICXX      C++ MPI Compiler
1217  ADD_FFLAGS  Additional Fortran compiler options
1218  DBG_FFLAGS  Debug Fortran compiler options
1219  OPT_FFLAGS  Optimize Fortran compiler options
1220  F77         Fortran 77 compiler command
1221  FFLAGS      Fortran 77 compiler flags
1222  MPIF77      Fortran MPI Compiler
1223  CPP         C preprocessor
1224  CXXCPP      C++ preprocessor
1225  COIN_SKIP_PROJECTS
1226              Set to the subdirectories of projects that should be skipped in
1227              the configuration
1228
1229Use these variables to override the choices made by `configure' or to help
1230it to find libraries and programs with nonstandard names/locations.
1231
1232Report bugs to <https://github.com/coin-or/CHiPPS-BiCePS/issues/new>.
1233_ACEOF
1234fi
1235
1236if test "$ac_init_help" = "recursive"; then
1237  # If there are subdirs, report their specific --help.
1238  ac_popdir=`pwd`
1239  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1240    test -d $ac_dir || continue
1241    ac_builddir=.
1242
1243if test "$ac_dir" != .; then
1244  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1245  # A "../" for each directory in $ac_dir_suffix.
1246  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1247else
1248  ac_dir_suffix= ac_top_builddir=
1249fi
1250
1251case $srcdir in
1252  .)  # No --srcdir option.  We are building in place.
1253    ac_srcdir=.
1254    if test -z "$ac_top_builddir"; then
1255       ac_top_srcdir=.
1256    else
1257       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1258    fi ;;
1259  [\\/]* | ?:[\\/]* )  # Absolute path.
1260    ac_srcdir=$srcdir$ac_dir_suffix;
1261    ac_top_srcdir=$srcdir ;;
1262  *) # Relative path.
1263    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1264    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1265esac
1266
1267# Do not use `cd foo && pwd` to compute absolute paths, because
1268# the directories may not exist.
1269case `pwd` in
1270.) ac_abs_builddir="$ac_dir";;
1271*)
1272  case "$ac_dir" in
1273  .) ac_abs_builddir=`pwd`;;
1274  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1275  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1276  esac;;
1277esac
1278case $ac_abs_builddir in
1279.) ac_abs_top_builddir=${ac_top_builddir}.;;
1280*)
1281  case ${ac_top_builddir}. in
1282  .) ac_abs_top_builddir=$ac_abs_builddir;;
1283  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1284  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1285  esac;;
1286esac
1287case $ac_abs_builddir in
1288.) ac_abs_srcdir=$ac_srcdir;;
1289*)
1290  case $ac_srcdir in
1291  .) ac_abs_srcdir=$ac_abs_builddir;;
1292  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1293  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1294  esac;;
1295esac
1296case $ac_abs_builddir in
1297.) ac_abs_top_srcdir=$ac_top_srcdir;;
1298*)
1299  case $ac_top_srcdir in
1300  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1301  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1302  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1303  esac;;
1304esac
1305
1306    cd $ac_dir
1307    # Check for guested configure; otherwise get Cygnus style configure.
1308    if test -f $ac_srcdir/configure.gnu; then
1309      echo
1310      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1311    elif test -f $ac_srcdir/configure; then
1312      echo
1313      $SHELL $ac_srcdir/configure  --help=recursive
1314    elif test -f $ac_srcdir/configure.ac ||
1315	   test -f $ac_srcdir/configure.in; then
1316      echo
1317      $ac_configure --help
1318    else
1319      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1320    fi
1321    cd $ac_popdir
1322  done
1323fi
1324
1325test -n "$ac_init_help" && exit 0
1326if $ac_init_version; then
1327  cat <<\_ACEOF
1328Bcps configure 0.99
1329generated by GNU Autoconf 2.59
1330
1331Copyright (C) 2003 Free Software Foundation, Inc.
1332This configure script is free software; the Free Software Foundation
1333gives unlimited permission to copy, distribute and modify it.
1334
1335
1336#==========================================================================#
1337# This file is part of the Branch, Constrain and Price Software (BiCePS).  #
1338#                                                                          #
1339# BiCePS is distributed under the Eclipse Public License as part of the    #
1340# COIN-OR repository (http://www.coin-or.org).                             #
1341#                                                                          #
1342# Authors:                                                                 #
1343#                                                                          #
1344#          Yan Xu, Lehigh University                                       #
1345#          Aykut Bulut, Lehigh University                                  #
1346#          Ted Ralphs, Lehigh University                                   #
1347#                                                                          #
1348# Conceptual Design:                                                       #
1349#                                                                          #
1350#          Yan Xu, Lehigh University                                       #
1351#          Ted Ralphs, Lehigh University                                   #
1352#          Laszlo Ladanyi, IBM T.J. Watson Research Center                 #
1353#          Matthew Saltzman, Clemson University                            #
1354#                                                                          #
1355#                                                                          #
1356# Copyright (C) 2001-2019, Lehigh University, Yan Xu, Aykut Bulut, and     #
1357#                          Ted Ralphs.                                     #
1358# All Rights Reserved.                                                     #
1359#==========================================================================#
1360
1361_ACEOF
1362  exit 0
1363fi
1364exec 5>config.log
1365cat >&5 <<_ACEOF
1366This file contains any messages produced by compilers while
1367running configure, to aid debugging if configure makes a mistake.
1368
1369It was created by Bcps $as_me 0.99, which was
1370generated by GNU Autoconf 2.59.  Invocation command line was
1371
1372  $ $0 $@
1373
1374_ACEOF
1375{
1376cat <<_ASUNAME
1377## --------- ##
1378## Platform. ##
1379## --------- ##
1380
1381hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1382uname -m = `(uname -m) 2>/dev/null || echo unknown`
1383uname -r = `(uname -r) 2>/dev/null || echo unknown`
1384uname -s = `(uname -s) 2>/dev/null || echo unknown`
1385uname -v = `(uname -v) 2>/dev/null || echo unknown`
1386
1387/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1388/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1389
1390/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1391/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1392/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1393hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1394/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1395/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1396/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1397
1398_ASUNAME
1399
1400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401for as_dir in $PATH
1402do
1403  IFS=$as_save_IFS
1404  test -z "$as_dir" && as_dir=.
1405  echo "PATH: $as_dir"
1406done
1407
1408} >&5
1409
1410cat >&5 <<_ACEOF
1411
1412
1413## ----------- ##
1414## Core tests. ##
1415## ----------- ##
1416
1417_ACEOF
1418
1419
1420# Keep a trace of the command line.
1421# Strip out --no-create and --no-recursion so they do not pile up.
1422# Strip out --silent because we don't want to record it for future runs.
1423# Also quote any args containing shell meta-characters.
1424# Make two passes to allow for proper duplicate-argument suppression.
1425ac_configure_args=
1426ac_configure_args0=
1427ac_configure_args1=
1428ac_sep=
1429ac_must_keep_next=false
1430for ac_pass in 1 2
1431do
1432  for ac_arg
1433  do
1434    case $ac_arg in
1435    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1436    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437    | -silent | --silent | --silen | --sile | --sil)
1438      continue ;;
1439    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1441    esac
1442    case $ac_pass in
1443    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1444    2)
1445      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1446      if test $ac_must_keep_next = true; then
1447	ac_must_keep_next=false # Got value, back to normal.
1448      else
1449	case $ac_arg in
1450	  *=* | --config-cache | -C | -disable-* | --disable-* \
1451	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1452	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1453	  | -with-* | --with-* | -without-* | --without-* | --x)
1454	    case "$ac_configure_args0 " in
1455	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1456	    esac
1457	    ;;
1458	  -* ) ac_must_keep_next=true ;;
1459	esac
1460      fi
1461      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1462      # Get rid of the leading space.
1463      ac_sep=" "
1464      ;;
1465    esac
1466  done
1467done
1468$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1469$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1470
1471# When interrupted or exit'd, cleanup temporary files, and complete
1472# config.log.  We remove comments because anyway the quotes in there
1473# would cause problems or look ugly.
1474# WARNING: Be sure not to use single quotes in there, as some shells,
1475# such as our DU 5.0 friend, will then `close' the trap.
1476trap 'exit_status=$?
1477  # Save into config.log some information that might help in debugging.
1478  {
1479    echo
1480
1481    cat <<\_ASBOX
1482## ---------------- ##
1483## Cache variables. ##
1484## ---------------- ##
1485_ASBOX
1486    echo
1487    # The following way of writing the cache mishandles newlines in values,
1488{
1489  (set) 2>&1 |
1490    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1491    *ac_space=\ *)
1492      sed -n \
1493	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1494	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1495      ;;
1496    *)
1497      sed -n \
1498	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1499      ;;
1500    esac;
1501}
1502    echo
1503
1504    cat <<\_ASBOX
1505## ----------------- ##
1506## Output variables. ##
1507## ----------------- ##
1508_ASBOX
1509    echo
1510    for ac_var in $ac_subst_vars
1511    do
1512      eval ac_val=$`echo $ac_var`
1513      echo "$ac_var='"'"'$ac_val'"'"'"
1514    done | sort
1515    echo
1516
1517    if test -n "$ac_subst_files"; then
1518      cat <<\_ASBOX
1519## ------------- ##
1520## Output files. ##
1521## ------------- ##
1522_ASBOX
1523      echo
1524      for ac_var in $ac_subst_files
1525      do
1526	eval ac_val=$`echo $ac_var`
1527	echo "$ac_var='"'"'$ac_val'"'"'"
1528      done | sort
1529      echo
1530    fi
1531
1532    if test -s confdefs.h; then
1533      cat <<\_ASBOX
1534## ----------- ##
1535## confdefs.h. ##
1536## ----------- ##
1537_ASBOX
1538      echo
1539      sed "/^$/d" confdefs.h | sort
1540      echo
1541    fi
1542    test "$ac_signal" != 0 &&
1543      echo "$as_me: caught signal $ac_signal"
1544    echo "$as_me: exit $exit_status"
1545  } >&5
1546  rm -f core *.core &&
1547  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1548    exit $exit_status
1549     ' 0
1550for ac_signal in 1 2 13 15; do
1551  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1552done
1553ac_signal=0
1554
1555# confdefs.h avoids OS command line length limits that DEFS can exceed.
1556rm -rf conftest* confdefs.h
1557# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1558echo >confdefs.h
1559
1560# Predefined preprocessor variables.
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_NAME "$PACKAGE_NAME"
1564_ACEOF
1565
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1569_ACEOF
1570
1571
1572cat >>confdefs.h <<_ACEOF
1573#define PACKAGE_VERSION "$PACKAGE_VERSION"
1574_ACEOF
1575
1576
1577cat >>confdefs.h <<_ACEOF
1578#define PACKAGE_STRING "$PACKAGE_STRING"
1579_ACEOF
1580
1581
1582cat >>confdefs.h <<_ACEOF
1583#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1584_ACEOF
1585
1586
1587# Let the site file select an alternate cache file if it wants to.
1588# Prefer explicitly selected file to automatically selected ones.
1589if test -z "$CONFIG_SITE"; then
1590  if test "x$prefix" != xNONE; then
1591    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1592  else
1593    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1594  fi
1595fi
1596for ac_site_file in $CONFIG_SITE; do
1597  if test -r "$ac_site_file"; then
1598    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1599echo "$as_me: loading site script $ac_site_file" >&6;}
1600    sed 's/^/| /' "$ac_site_file" >&5
1601    . "$ac_site_file"
1602  fi
1603done
1604
1605if test -r "$cache_file"; then
1606  # Some versions of bash will fail to source /dev/null (special
1607  # files actually), so we avoid doing that.
1608  if test -f "$cache_file"; then
1609    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1610echo "$as_me: loading cache $cache_file" >&6;}
1611    case $cache_file in
1612      [\\/]* | ?:[\\/]* ) . $cache_file;;
1613      *)                      . ./$cache_file;;
1614    esac
1615  fi
1616else
1617  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1618echo "$as_me: creating cache $cache_file" >&6;}
1619  >$cache_file
1620fi
1621
1622# Check that the precious variables saved in the cache have kept the same
1623# value.
1624ac_cache_corrupted=false
1625for ac_var in `(set) 2>&1 |
1626	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1627  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1628  eval ac_new_set=\$ac_env_${ac_var}_set
1629  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1630  eval ac_new_val="\$ac_env_${ac_var}_value"
1631  case $ac_old_set,$ac_new_set in
1632    set,)
1633      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1634echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1635      ac_cache_corrupted=: ;;
1636    ,set)
1637      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1638echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1639      ac_cache_corrupted=: ;;
1640    ,);;
1641    *)
1642      if test "x$ac_old_val" != "x$ac_new_val"; then
1643	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1644echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1645	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1646echo "$as_me:   former value:  $ac_old_val" >&2;}
1647	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1648echo "$as_me:   current value: $ac_new_val" >&2;}
1649	ac_cache_corrupted=:
1650      fi;;
1651  esac
1652  # Pass precious variables to config.status.
1653  if test "$ac_new_set" = set; then
1654    case $ac_new_val in
1655    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1656      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1657    *) ac_arg=$ac_var=$ac_new_val ;;
1658    esac
1659    case " $ac_configure_args " in
1660      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1661      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1662    esac
1663  fi
1664done
1665if $ac_cache_corrupted; then
1666  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1667echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1668  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1669echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1670   { (exit 1); exit 1; }; }
1671fi
1672
1673ac_ext=c
1674ac_cpp='$CPP $CPPFLAGS'
1675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1677ac_compiler_gnu=$ac_cv_c_compiler_gnu
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710# List one file in the package so that the configure script can test
1711# whether the package is actually there
1712
1713
1714# Where should everything be installed by default?  Here, we want it
1715# to be installed directly in 'bin', 'lib', 'include' subdirectories
1716# of the directory where configure is run.  The default would be
1717# /usr/local.
1718
1719
1720#############################################################################
1721#     We only need automake to generate Makefiles for the distribution      #
1722#############################################################################
1723
1724# Initialize automake
1725ac_aux_dir=
1726for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1727  if test -f $ac_dir/install-sh; then
1728    ac_aux_dir=$ac_dir
1729    ac_install_sh="$ac_aux_dir/install-sh -c"
1730    break
1731  elif test -f $ac_dir/install.sh; then
1732    ac_aux_dir=$ac_dir
1733    ac_install_sh="$ac_aux_dir/install.sh -c"
1734    break
1735  elif test -f $ac_dir/shtool; then
1736    ac_aux_dir=$ac_dir
1737    ac_install_sh="$ac_aux_dir/shtool install -c"
1738    break
1739  fi
1740done
1741if test -z "$ac_aux_dir"; then
1742  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1743echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1744   { (exit 1); exit 1; }; }
1745fi
1746ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1747ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1748ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1749
1750# Make sure we can run config.sub.
1751$ac_config_sub sun4 >/dev/null 2>&1 ||
1752  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1753echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1754   { (exit 1); exit 1; }; }
1755
1756echo "$as_me:$LINENO: checking build system type" >&5
1757echo $ECHO_N "checking build system type... $ECHO_C" >&6
1758if test "${ac_cv_build+set}" = set; then
1759  echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761  ac_cv_build_alias=$build_alias
1762test -z "$ac_cv_build_alias" &&
1763  ac_cv_build_alias=`$ac_config_guess`
1764test -z "$ac_cv_build_alias" &&
1765  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767   { (exit 1); exit 1; }; }
1768ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1769  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1770echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1771   { (exit 1); exit 1; }; }
1772
1773fi
1774echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775echo "${ECHO_T}$ac_cv_build" >&6
1776build=$ac_cv_build
1777build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1778build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1779build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1780
1781
1782
1783# Check if user wants to produce debugging code
1784
1785echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1786echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1787
1788# Check whether --enable-debug or --disable-debug was given.
1789if test "${enable_debug+set}" = set; then
1790  enableval="$enable_debug"
1791  case "${enableval}" in
1792   yes) coin_debug_compile=true
1793        if test "${enable_shared+set}" = set; then :; else
1794          enable_shared=no
1795        fi
1796        ;;
1797   no)  coin_debug_compile=false
1798        ;;
1799   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1800echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1801   { (exit 1); exit 1; }; }
1802        ;;
1803esac
1804else
1805  coin_debug_compile=false
1806fi;
1807
1808 # m4_ifvaln([],
1809
1810if test $coin_debug_compile = true; then
1811  echo "$as_me:$LINENO: result: yes" >&5
1812echo "${ECHO_T}yes" >&6
1813else
1814  echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816fi
1817
1818 # m4_ifvaln([],
1819
1820
1821
1822# Get the name of the C compiler and appropriate compiler options
1823
1824
1825  # for backward compatibility
1826  # Check whether --enable-doscompile or --disable-doscompile was given.
1827if test "${enable_doscompile+set}" = set; then
1828  enableval="$enable_doscompile"
1829  enable_doscompile=$enableval
1830else
1831  enable_doscompile=no
1832fi;
1833
1834  # Check whether --enable-msvc or --disable-msvc was given.
1835if test "${enable_msvc+set}" = set; then
1836  enableval="$enable_msvc"
1837  enable_msvc=$enableval
1838else
1839  enable_msvc=no
1840     if test "$enable_doscompile" = msvc ; then
1841       enable_msvc=yes
1842     elif test "$enable_doscompile" != no ; then
1843       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1844echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1845   { (exit 1); exit 1; }; }
1846     fi
1847
1848fi;
1849
1850  if test "$enable_msvc" = MD; then
1851    enable_shared=yes
1852    enable_msvc=yes
1853  fi
1854
1855  if test "$enable_msvc" = yes; then
1856    case $build in
1857      *-cygwin* | *-mingw*) ;;
1858      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1859echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1860   { (exit 1); exit 1; }; } ;;
1861    esac
1862  fi
1863
1864
1865
1866ac_ext=c
1867ac_cpp='$CPP $CPPFLAGS'
1868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871
1872
1873# For consistency, we set the C compiler to the same value of the C++
1874# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1875if test x"$CXX" != x; then
1876  case "$CXX" in
1877    clang* ) ;;
1878    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1879      if test x"$CC" = x; then
1880        CC="$CXX"
1881        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1882echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1883      fi
1884      ;;
1885  esac
1886fi
1887
1888
1889
1890
1891
1892
1893coin_has_cc=yes
1894
1895save_cflags="$CFLAGS"
1896
1897# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1898# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1899# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1900# compiler. In this case, put cc after gcc.
1901
1902case $build in
1903  *-cygwin* | *-mingw*)
1904  	     if test "$enable_msvc" = yes ; then
1905	       comps="icl cl gcc"
1906	     else
1907	       comps="gcc icl cl"
1908	     fi ;;
1909  *-*-solaris*)
1910	     # Extract the first word of "cc", so it can be a program name with args.
1911set dummy cc; ac_word=$2
1912echo "$as_me:$LINENO: checking for $ac_word" >&5
1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1915  echo $ECHO_N "(cached) $ECHO_C" >&6
1916else
1917  if test -n "$sol_cc_compiler"; then
1918  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1919else
1920  ac_prog_rejected=no
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924  IFS=$as_save_IFS
1925  test -z "$as_dir" && as_dir=.
1926  for ac_exec_ext in '' $ac_executable_extensions; do
1927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1929       ac_prog_rejected=yes
1930       continue
1931     fi
1932    ac_cv_prog_sol_cc_compiler="cc"
1933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934    break 2
1935  fi
1936done
1937done
1938
1939if test $ac_prog_rejected = yes; then
1940  # We found a bogon in the path, so make sure we never use it.
1941  set dummy $ac_cv_prog_sol_cc_compiler
1942  shift
1943  if test $# != 0; then
1944    # We chose a different compiler from the bogus one.
1945    # However, it has the same basename, so the bogon will be chosen
1946    # first if we set sol_cc_compiler to just the basename; use the full file name.
1947    shift
1948    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1949  fi
1950fi
1951fi
1952fi
1953sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1954if test -n "$sol_cc_compiler"; then
1955  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1956echo "${ECHO_T}$sol_cc_compiler" >&6
1957else
1958  echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960fi
1961
1962	     if test "$sol_cc_compiler" = "cc" ; then
1963	       comps="cc xlc gcc pgcc icc"
1964	     else
1965	       comps="xlc gcc pgcc icc cc"
1966	     fi
1967	     ;;
1968  *-*-darwin*) comps="clang gcc cc" ;;
1969  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1970  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1971  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1972esac
1973
1974# We delete the cached value, since the test might not have been
1975# performed with our choice of compilers earlier
1976$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1977# AC_MSG_NOTICE([C compiler candidates: $comps])
1978ac_ext=c
1979ac_cpp='$CPP $CPPFLAGS'
1980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983if test -n "$ac_tool_prefix"; then
1984  for ac_prog in $comps
1985  do
1986    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_CC+set}" = set; then
1991  echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993  if test -n "$CC"; then
1994  ac_cv_prog_CC="$CC" # Let the user override the test.
1995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999  IFS=$as_save_IFS
2000  test -z "$as_dir" && as_dir=.
2001  for ac_exec_ext in '' $ac_executable_extensions; do
2002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005    break 2
2006  fi
2007done
2008done
2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014  echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
2016else
2017  echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021    test -n "$CC" && break
2022  done
2023fi
2024if test -z "$CC"; then
2025  ac_ct_CC=$CC
2026  for ac_prog in $comps
2027do
2028  # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  if test -n "$ac_ct_CC"; then
2036  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043  for ac_exec_ext in '' $ac_executable_extensions; do
2044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045    ac_cv_prog_ac_ct_CC="$ac_prog"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051
2052fi
2053fi
2054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
2058else
2059  echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
2063  test -n "$ac_ct_CC" && break
2064done
2065
2066  CC=$ac_ct_CC
2067fi
2068
2069
2070test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&2;}
2074   { (exit 1); exit 1; }; }
2075
2076# Provide some information about the compiler.
2077echo "$as_me:$LINENO:" \
2078     "checking for C compiler version" >&5
2079ac_compiler=`set X $ac_compile; echo $2`
2080{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081  (eval $ac_compiler --version </dev/null >&5) 2>&5
2082  ac_status=$?
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); }
2085{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086  (eval $ac_compiler -v </dev/null >&5) 2>&5
2087  ac_status=$?
2088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089  (exit $ac_status); }
2090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091  (eval $ac_compiler -V </dev/null >&5) 2>&5
2092  ac_status=$?
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); }
2095
2096cat >conftest.$ac_ext <<_ACEOF
2097/* confdefs.h.  */
2098_ACEOF
2099cat confdefs.h >>conftest.$ac_ext
2100cat >>conftest.$ac_ext <<_ACEOF
2101/* end confdefs.h.  */
2102
2103int
2104main ()
2105{
2106
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111ac_clean_files_save=$ac_clean_files
2112ac_clean_files="$ac_clean_files a.out a.exe b.out"
2113# Try to create an executable without -o first, disregard a.out.
2114# It will help us diagnose broken compilers, and finding out an intuition
2115# of exeext.
2116echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2117echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2118ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120  (eval $ac_link_default) 2>&5
2121  ac_status=$?
2122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123  (exit $ac_status); }; then
2124  # Find the output, starting from the most likely.  This scheme is
2125# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126# resort.
2127
2128# Be careful to initialize this variable, since it used to be cached.
2129# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130ac_cv_exeext=
2131# b.out is created by i960 compilers.
2132for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2133do
2134  test -f "$ac_file" || continue
2135  case $ac_file in
2136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2137	;;
2138    conftest.$ac_ext )
2139	# This is the source file.
2140	;;
2141    [ab].out )
2142	# We found the default executable, but exeext='' is most
2143	# certainly right.
2144	break;;
2145    *.* )
2146	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147	# FIXME: I believe we export ac_cv_exeext for Libtool,
2148	# but it would be cool to find out if it's true.  Does anybody
2149	# maintain Libtool? --akim.
2150	export ac_cv_exeext
2151	break;;
2152    * )
2153	break;;
2154  esac
2155done
2156else
2157  echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2161See \`config.log' for more details." >&5
2162echo "$as_me: error: C compiler cannot create executables
2163See \`config.log' for more details." >&2;}
2164   { (exit 77); exit 77; }; }
2165fi
2166
2167ac_exeext=$ac_cv_exeext
2168echo "$as_me:$LINENO: result: $ac_file" >&5
2169echo "${ECHO_T}$ac_file" >&6
2170
2171# Check the compiler produces executables we can run.  If not, either
2172# the compiler is broken, or we cross compile.
2173echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2174echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2175# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2176# If not cross compiling, check that we can run a simple program.
2177if test "$cross_compiling" != yes; then
2178  if { ac_try='./$ac_file'
2179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180  (eval $ac_try) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; }; then
2184    cross_compiling=no
2185  else
2186    if test "$cross_compiling" = maybe; then
2187	cross_compiling=yes
2188    else
2189	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2190If you meant to cross compile, use \`--host'.
2191See \`config.log' for more details." >&5
2192echo "$as_me: error: cannot run C compiled programs.
2193If you meant to cross compile, use \`--host'.
2194See \`config.log' for more details." >&2;}
2195   { (exit 1); exit 1; }; }
2196    fi
2197  fi
2198fi
2199echo "$as_me:$LINENO: result: yes" >&5
2200echo "${ECHO_T}yes" >&6
2201
2202rm -f a.out a.exe conftest$ac_cv_exeext b.out
2203ac_clean_files=$ac_clean_files_save
2204# Check the compiler produces executables we can run.  If not, either
2205# the compiler is broken, or we cross compile.
2206echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2208echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209echo "${ECHO_T}$cross_compiling" >&6
2210
2211echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2214  (eval $ac_link) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; then
2218  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2219# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2220# work properly (i.e., refer to `conftest.exe'), while it won't with
2221# `rm'.
2222for ac_file in conftest.exe conftest conftest.*; do
2223  test -f "$ac_file" || continue
2224  case $ac_file in
2225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2226    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227	  export ac_cv_exeext
2228	  break;;
2229    * ) break;;
2230  esac
2231done
2232else
2233  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238fi
2239
2240rm -f conftest$ac_cv_exeext
2241echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242echo "${ECHO_T}$ac_cv_exeext" >&6
2243
2244rm -f conftest.$ac_ext
2245EXEEXT=$ac_cv_exeext
2246ac_exeext=$EXEEXT
2247echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249if test "${ac_cv_objext+set}" = set; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  cat >conftest.$ac_ext <<_ACEOF
2253/* confdefs.h.  */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h.  */
2258
2259int
2260main ()
2261{
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267rm -f conftest.o conftest.obj
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269  (eval $ac_compile) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; then
2273  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2276    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277       break;;
2278  esac
2279done
2280else
2281  echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&2;}
2288   { (exit 1); exit 1; }; }
2289fi
2290
2291rm -f conftest.$ac_cv_objext conftest.$ac_ext
2292fi
2293echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2294echo "${ECHO_T}$ac_cv_objext" >&6
2295OBJEXT=$ac_cv_objext
2296ac_objext=$OBJEXT
2297echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2298echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2299if test "${ac_cv_c_compiler_gnu+set}" = set; then
2300  echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302  cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h.  */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h.  */
2308
2309int
2310main ()
2311{
2312#ifndef __GNUC__
2313       choke me
2314#endif
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>conftest.er1
2323  ac_status=$?
2324  grep -v '^ *+' conftest.er1 >conftest.err
2325  rm -f conftest.er1
2326  cat conftest.err >&5
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); } &&
2329	 { ac_try='test -z "$ac_c_werror_flag"
2330			 || test ! -s conftest.err'
2331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332  (eval $ac_try) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; } &&
2336	 { ac_try='test -s conftest.$ac_objext'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; }; then
2342  ac_compiler_gnu=yes
2343else
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347ac_compiler_gnu=no
2348fi
2349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355GCC=`test $ac_compiler_gnu = yes && echo yes`
2356ac_test_CFLAGS=${CFLAGS+set}
2357ac_save_CFLAGS=$CFLAGS
2358CFLAGS="-g"
2359echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361if test "${ac_cv_prog_cc_g+set}" = set; then
2362  echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364  cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h.  */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h.  */
2370
2371int
2372main ()
2373{
2374
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381  (eval $ac_compile) 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388	 { ac_try='test -z "$ac_c_werror_flag"
2389			 || test ! -s conftest.err'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; } &&
2395	 { ac_try='test -s conftest.$ac_objext'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; }; then
2401  ac_cv_prog_cc_g=yes
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406ac_cv_prog_cc_g=no
2407fi
2408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409fi
2410echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412if test "$ac_test_CFLAGS" = set; then
2413  CFLAGS=$ac_save_CFLAGS
2414elif test $ac_cv_prog_cc_g = yes; then
2415  if test "$GCC" = yes; then
2416    CFLAGS="-g -O2"
2417  else
2418    CFLAGS="-g"
2419  fi
2420else
2421  if test "$GCC" = yes; then
2422    CFLAGS="-O2"
2423  else
2424    CFLAGS=
2425  fi
2426fi
2427echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  ac_cv_prog_cc_stdc=no
2433ac_save_CC=$CC
2434cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440#include <stdarg.h>
2441#include <stdio.h>
2442#include <sys/types.h>
2443#include <sys/stat.h>
2444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2445struct buf { int x; };
2446FILE * (*rcsopen) (struct buf *, struct stat *, int);
2447static char *e (p, i)
2448     char **p;
2449     int i;
2450{
2451  return p[i];
2452}
2453static char *f (char * (*g) (char **, int), char **p, ...)
2454{
2455  char *s;
2456  va_list v;
2457  va_start (v,p);
2458  s = g (p, va_arg (v,int));
2459  va_end (v);
2460  return s;
2461}
2462
2463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2464   function prototypes and stuff, but not '\xHH' hex character constants.
2465   These don't provoke an error unfortunately, instead are silently treated
2466   as 'x'.  The following induces an error, until -std1 is added to get
2467   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2468   array size at least.  It's necessary to write '\x00'==0 to get something
2469   that's true only with -std1.  */
2470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471
2472int test (int i, double x);
2473struct s1 {int (*f) (int a);};
2474struct s2 {int (*f) (double a);};
2475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476int argc;
2477char **argv;
2478int
2479main ()
2480{
2481return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2482  ;
2483  return 0;
2484}
2485_ACEOF
2486# Don't try gcc -ansi; that turns off useful extensions and
2487# breaks some systems' header files.
2488# AIX			-qlanglvl=ansi
2489# Ultrix and OSF/1	-std1
2490# HP-UX 10.20 and later	-Ae
2491# HP-UX older versions	-Aa -D_HPUX_SOURCE
2492# SVR4			-Xc -D__EXTENSIONS__
2493for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494do
2495  CC="$ac_save_CC $ac_arg"
2496  rm -f conftest.$ac_objext
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498  (eval $ac_compile) 2>conftest.er1
2499  ac_status=$?
2500  grep -v '^ *+' conftest.er1 >conftest.err
2501  rm -f conftest.er1
2502  cat conftest.err >&5
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); } &&
2505	 { ac_try='test -z "$ac_c_werror_flag"
2506			 || test ! -s conftest.err'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; } &&
2512	 { ac_try='test -s conftest.$ac_objext'
2513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514  (eval $ac_try) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; }; then
2518  ac_cv_prog_cc_stdc=$ac_arg
2519break
2520else
2521  echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524fi
2525rm -f conftest.err conftest.$ac_objext
2526done
2527rm -f conftest.$ac_ext conftest.$ac_objext
2528CC=$ac_save_CC
2529
2530fi
2531
2532case "x$ac_cv_prog_cc_stdc" in
2533  x|xno)
2534    echo "$as_me:$LINENO: result: none needed" >&5
2535echo "${ECHO_T}none needed" >&6 ;;
2536  *)
2537    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539    CC="$CC $ac_cv_prog_cc_stdc" ;;
2540esac
2541
2542# Some people use a C++ compiler to compile C.  Since we use `exit',
2543# in C++ we need to declare it.  In case someone uses the same compiler
2544# for both compiling C and C++ we need to have the C++ compiler decide
2545# the declaration of exit, since it's the most demanding environment.
2546cat >conftest.$ac_ext <<_ACEOF
2547#ifndef __cplusplus
2548  choke me
2549#endif
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553  (eval $ac_compile) 2>conftest.er1
2554  ac_status=$?
2555  grep -v '^ *+' conftest.er1 >conftest.err
2556  rm -f conftest.er1
2557  cat conftest.err >&5
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); } &&
2560	 { ac_try='test -z "$ac_c_werror_flag"
2561			 || test ! -s conftest.err'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; } &&
2567	 { ac_try='test -s conftest.$ac_objext'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; }; then
2573  for ac_declaration in \
2574   '' \
2575   'extern "C" void std::exit (int) throw (); using std::exit;' \
2576   'extern "C" void std::exit (int); using std::exit;' \
2577   'extern "C" void exit (int) throw ();' \
2578   'extern "C" void exit (int);' \
2579   'void exit (int);'
2580do
2581  cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h.  */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h.  */
2587$ac_declaration
2588#include <stdlib.h>
2589int
2590main ()
2591{
2592exit (42);
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599  (eval $ac_compile) 2>conftest.er1
2600  ac_status=$?
2601  grep -v '^ *+' conftest.er1 >conftest.err
2602  rm -f conftest.er1
2603  cat conftest.err >&5
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); } &&
2606	 { ac_try='test -z "$ac_c_werror_flag"
2607			 || test ! -s conftest.err'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; } &&
2613	 { ac_try='test -s conftest.$ac_objext'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; }; then
2619  :
2620else
2621  echo "$as_me: failed program was:" >&5
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
2624continue
2625fi
2626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627  cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633$ac_declaration
2634int
2635main ()
2636{
2637exit (42);
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651	 { ac_try='test -z "$ac_c_werror_flag"
2652			 || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658	 { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  break
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671done
2672rm -f conftest*
2673if test -n "$ac_declaration"; then
2674  echo '#ifdef __cplusplus' >>confdefs.h
2675  echo $ac_declaration      >>confdefs.h
2676  echo '#endif'             >>confdefs.h
2677fi
2678
2679else
2680  echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691if test -z "$CC" ; then
2692  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2693echo "$as_me: error: Failed to find a C compiler!" >&2;}
2694   { (exit 1); exit 1; }; }
2695fi
2696# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2697case "$CC" in
2698  clang* ) ;;
2699  cl* | */cl* | CL* | */CL* )
2700    if test "$ac_cv_prog_cc_g" = yes ; then
2701      ac_cv_prog_cc_g=no
2702      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2703echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2704    fi ;;
2705  * )
2706    if test x"$CYGPATH_W" = x ; then
2707      CYGPATH_W=echo
2708    fi
2709    ;;
2710esac
2711CFLAGS="$save_cflags"
2712
2713# add automake conditional so we can recognize cl compiler in makefile
2714coin_cc_is_cl=false
2715case "$CC" in
2716  clang* ) ;;
2717  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2718    coin_cc_is_cl=true
2719    ;;
2720esac
2721
2722
2723if test $coin_cc_is_cl = true; then
2724  COIN_CC_IS_CL_TRUE=
2725  COIN_CC_IS_CL_FALSE='#'
2726else
2727  COIN_CC_IS_CL_TRUE='#'
2728  COIN_CC_IS_CL_FALSE=
2729fi
2730
2731
2732# Check if a project specific CFLAGS variable has been set
2733if test x$COIN_PRJCT != x; then
2734  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2735  if test x$coin_tmp = xset; then
2736    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2737  fi
2738fi
2739
2740if test x"$CFLAGS" = x; then
2741
2742  coin_add_cflags=
2743  coin_opt_cflags=
2744  coin_dbg_cflags=
2745  coin_warn_cflags=
2746
2747  if test "$GCC" = "yes"; then
2748    case "$CC" in
2749      icc* | */icc*)
2750        ;;
2751      *)
2752        coin_opt_cflags="-O3"
2753        coin_add_cflags="-pipe"
2754        coin_dbg_cflags="-g -O0"
2755        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2756    esac
2757  fi
2758  if test -z "$coin_opt_cflags"; then
2759    case $build in
2760      *-cygwin* | *-mingw*)
2761        case "$CC" in
2762          clang* ) ;;
2763          cl* | */cl* | CL* | */CL*)
2764            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2765              coin_opt_cflags='-MD -O2'
2766              coin_dbg_cflags='-MDd'
2767            else
2768              coin_opt_cflags='-MT -O2'
2769              coin_dbg_cflags='-MTd'
2770            fi
2771            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2772            ;;
2773          icl* | */icl* | ICL* | */ICL*)
2774            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2775              coin_opt_cflags='-MD -Ox'
2776              coin_dbg_cflags='-MDd -debug'
2777            else
2778              coin_opt_cflags='-MT -Ox'
2779              coin_dbg_cflags='-MTd -debug'
2780            fi
2781            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2782            ;;
2783        esac
2784        ;;
2785      *-linux-*)
2786        case "$CC" in
2787          icc* | */icc*)
2788            coin_opt_cflags="-O3 -ip -mp1"
2789            coin_add_cflags=""
2790            coin_dbg_cflags="-g"
2791            # Check if -i_dynamic is necessary (for new glibc library)
2792            CFLAGS=
2793            cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803int i=0; i++;
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext conftest$ac_exeext
2809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2810  (eval $ac_link) 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } &&
2817	 { ac_try='test -z "$ac_c_werror_flag"
2818			 || test ! -s conftest.err'
2819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820  (eval $ac_try) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }; } &&
2824	 { ac_try='test -s conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  :
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835coin_add_cflags="-i_dynamic $coin_add_cflags"
2836fi
2837rm -f conftest.err conftest.$ac_objext \
2838      conftest$ac_exeext conftest.$ac_ext
2839            ;;
2840          pgcc* | */pgcc*)
2841            coin_opt_cflags="-fast"
2842            coin_add_cflags="-Kieee -pc 64"
2843            coin_dbg_cflags="-g"
2844            ;;
2845        esac
2846        ;;
2847      *-ibm-*)
2848        case "$CC" in
2849          xlc* | */xlc* | mpxlc* | */mpxlc*)
2850            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2851            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2852            coin_dbg_cflags="-g"
2853          ;;
2854        esac
2855        ;;
2856      *-hp-*)
2857        coin_opt_cflags="-O"
2858        coin_add_cflags="-Ae"
2859        coin_dbg_cflags="-g"
2860        ;;
2861      *-*-solaris*)
2862        coin_opt_cflags="-xO4"
2863        coin_dbg_cflags="-g"
2864        ;;
2865      *-sgi-*)
2866        coin_opt_cflags="-O -OPT:Olimit=0"
2867        coin_dbg_cflags="-g"
2868        ;;
2869    esac
2870  fi
2871
2872  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2873    coin_dbg_cflags="-g"
2874  fi
2875
2876  if test -z "$coin_opt_cflags"; then
2877    # Try if -O option works if nothing else is set
2878    CFLAGS="-O"
2879    cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885
2886int
2887main ()
2888{
2889int i=0; i++;
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext conftest$ac_exeext
2895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2896  (eval $ac_link) 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } &&
2903	 { ac_try='test -z "$ac_c_werror_flag"
2904			 || test ! -s conftest.err'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; } &&
2910	 { ac_try='test -s conftest$ac_exeext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  coin_opt_cflags="-O"
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924  fi
2925
2926  # if PM doesn't want the warning messages, take them out
2927  if test x"$coin_skip_warn_cflags" = xyes; then
2928    coin_warn_cflags=
2929  fi
2930
2931  if test x${DBG_CFLAGS+set} != xset; then
2932    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2933  fi
2934  if test x${OPT_CFLAGS+set} != xset; then
2935    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2936  fi
2937
2938  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2939  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2940
2941  if test "$coin_debug_compile" = "true"; then
2942    CFLAGS="$DBG_CFLAGS"
2943  else
2944    CFLAGS="$OPT_CFLAGS"
2945  fi
2946else
2947  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2948  if test x${DBG_CFLAGS+set} != xset; then
2949    DBG_CFLAGS="$CFLAGS"
2950  fi
2951  if test x${OPT_CFLAGS+set} != xset; then
2952    OPT_CFLAGS="$CFLAGS"
2953  fi
2954fi
2955
2956# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2957if test x$COIN_PRJCT != x; then
2958  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2959fi
2960
2961# Try if CFLAGS works
2962save_CFLAGS="$CFLAGS"
2963cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h.  */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h.  */
2969
2970int
2971main ()
2972{
2973int i=0; i++;
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext conftest$ac_exeext
2979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2980  (eval $ac_link) 2>conftest.er1
2981  ac_status=$?
2982  grep -v '^ *+' conftest.er1 >conftest.err
2983  rm -f conftest.er1
2984  cat conftest.err >&5
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); } &&
2987	 { ac_try='test -z "$ac_c_werror_flag"
2988			 || test ! -s conftest.err'
2989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990  (eval $ac_try) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); }; } &&
2994	 { ac_try='test -s conftest$ac_exeext'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; }; then
3000  :
3001else
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005CFLAGS=
3006fi
3007rm -f conftest.err conftest.$ac_objext \
3008      conftest$ac_exeext conftest.$ac_ext
3009if test -z "$CFLAGS"; then
3010  { 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
3011echo "$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;}
3012  CFLAGS='-O'
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023int i=0; i++;
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext conftest$ac_exeext
3029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030  (eval $ac_link) 2>conftest.er1
3031  ac_status=$?
3032  grep -v '^ *+' conftest.er1 >conftest.err
3033  rm -f conftest.er1
3034  cat conftest.err >&5
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); } &&
3037	 { ac_try='test -z "$ac_c_werror_flag"
3038			 || test ! -s conftest.err'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; } &&
3044	 { ac_try='test -s conftest$ac_exeext'
3045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046  (eval $ac_try) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; }; then
3050  :
3051else
3052  echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055CFLAGS=
3056fi
3057rm -f conftest.err conftest.$ac_objext \
3058      conftest$ac_exeext conftest.$ac_ext
3059  if test -z "$CFLAGS"; then
3060    { 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
3061echo "$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;}
3062  fi
3063fi
3064
3065{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3066echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3067
3068
3069if test x"$MPICC" = x; then :; else
3070  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3071echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3072  CC="$MPICC"
3073fi
3074
3075# Correct the LD variable if we are using the MS or Intel-windows compiler
3076case "$CC" in
3077  clang* ) ;;
3078  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3079    LD=link
3080    ;;
3081esac
3082
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089
3090
3091# Get the name of the C++ compiler and appropriate compiler options
3092
3093 #Let's try if that overcomes configuration problem with VC++ 6.0
3094
3095ac_ext=cc
3096ac_cpp='$CXXCPP $CPPFLAGS'
3097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100
3101
3102
3103
3104
3105
3106
3107coin_has_cxx=yes
3108
3109save_cxxflags="$CXXFLAGS"
3110# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3111case $build in
3112  *-cygwin* | *-mingw*)
3113      if test "$enable_msvc" = yes ; then
3114         comps="icl cl g++"
3115      else
3116         comps="g++ icl cl"
3117      fi ;;
3118  *-*-solaris*)
3119  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3120  *-darwin*) comps="clang++ g++ c++ CC" ;;
3121  *-linux-gnu*)
3122             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3123          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3124esac
3125
3126# We delete the cached value, since the test might not have been
3127# performed with our choice of compilers earlier
3128$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3129# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3130ac_ext=cc
3131ac_cpp='$CXXCPP $CPPFLAGS'
3132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3135if test -n "$ac_tool_prefix"; then
3136  for ac_prog in $CCC $comps
3137  do
3138    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140echo "$as_me:$LINENO: checking for $ac_word" >&5
3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142if test "${ac_cv_prog_CXX+set}" = set; then
3143  echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145  if test -n "$CXX"; then
3146  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153  for ac_exec_ext in '' $ac_executable_extensions; do
3154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160done
3161
3162fi
3163fi
3164CXX=$ac_cv_prog_CXX
3165if test -n "$CXX"; then
3166  echo "$as_me:$LINENO: result: $CXX" >&5
3167echo "${ECHO_T}$CXX" >&6
3168else
3169  echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171fi
3172
3173    test -n "$CXX" && break
3174  done
3175fi
3176if test -z "$CXX"; then
3177  ac_ct_CXX=$CXX
3178  for ac_prog in $CCC $comps
3179do
3180  # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3185  echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187  if test -n "$ac_ct_CXX"; then
3188  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195  for ac_exec_ext in '' $ac_executable_extensions; do
3196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_ac_ct_CXX="$ac_prog"
3198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202done
3203
3204fi
3205fi
3206ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3207if test -n "$ac_ct_CXX"; then
3208  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3209echo "${ECHO_T}$ac_ct_CXX" >&6
3210else
3211  echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213fi
3214
3215  test -n "$ac_ct_CXX" && break
3216done
3217test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3218
3219  CXX=$ac_ct_CXX
3220fi
3221
3222
3223# Provide some information about the compiler.
3224echo "$as_me:$LINENO:" \
3225     "checking for C++ compiler version" >&5
3226ac_compiler=`set X $ac_compile; echo $2`
3227{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3228  (eval $ac_compiler --version </dev/null >&5) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }
3232{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3233  (eval $ac_compiler -v </dev/null >&5) 2>&5
3234  ac_status=$?
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); }
3237{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3238  (eval $ac_compiler -V </dev/null >&5) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }
3242
3243echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3244echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3245if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h.  */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258#ifndef __GNUC__
3259       choke me
3260#endif
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268  (eval $ac_compile) 2>conftest.er1
3269  ac_status=$?
3270  grep -v '^ *+' conftest.er1 >conftest.err
3271  rm -f conftest.er1
3272  cat conftest.err >&5
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); } &&
3275	 { ac_try='test -z "$ac_cxx_werror_flag"
3276			 || test ! -s conftest.err'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; } &&
3282	 { ac_try='test -s conftest.$ac_objext'
3283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284  (eval $ac_try) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }; }; then
3288  ac_compiler_gnu=yes
3289else
3290  echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293ac_compiler_gnu=no
3294fi
3295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3296ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3297
3298fi
3299echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3300echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3301GXX=`test $ac_compiler_gnu = yes && echo yes`
3302ac_test_CXXFLAGS=${CXXFLAGS+set}
3303ac_save_CXXFLAGS=$CXXFLAGS
3304CXXFLAGS="-g"
3305echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3306echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3307if test "${ac_cv_prog_cxx_g+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h.  */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h.  */
3316
3317int
3318main ()
3319{
3320
3321  ;
3322  return 0;
3323}
3324_ACEOF
3325rm -f conftest.$ac_objext
3326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327  (eval $ac_compile) 2>conftest.er1
3328  ac_status=$?
3329  grep -v '^ *+' conftest.er1 >conftest.err
3330  rm -f conftest.er1
3331  cat conftest.err >&5
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); } &&
3334	 { ac_try='test -z "$ac_cxx_werror_flag"
3335			 || test ! -s conftest.err'
3336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337  (eval $ac_try) 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }; } &&
3341	 { ac_try='test -s conftest.$ac_objext'
3342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343  (eval $ac_try) 2>&5
3344  ac_status=$?
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); }; }; then
3347  ac_cv_prog_cxx_g=yes
3348else
3349  echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352ac_cv_prog_cxx_g=no
3353fi
3354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3355fi
3356echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3357echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3358if test "$ac_test_CXXFLAGS" = set; then
3359  CXXFLAGS=$ac_save_CXXFLAGS
3360elif test $ac_cv_prog_cxx_g = yes; then
3361  if test "$GXX" = yes; then
3362    CXXFLAGS="-g -O2"
3363  else
3364    CXXFLAGS="-g"
3365  fi
3366else
3367  if test "$GXX" = yes; then
3368    CXXFLAGS="-O2"
3369  else
3370    CXXFLAGS=
3371  fi
3372fi
3373for ac_declaration in \
3374   '' \
3375   'extern "C" void std::exit (int) throw (); using std::exit;' \
3376   'extern "C" void std::exit (int); using std::exit;' \
3377   'extern "C" void exit (int) throw ();' \
3378   'extern "C" void exit (int);' \
3379   'void exit (int);'
3380do
3381  cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h.  */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h.  */
3387$ac_declaration
3388#include <stdlib.h>
3389int
3390main ()
3391{
3392exit (42);
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399  (eval $ac_compile) 2>conftest.er1
3400  ac_status=$?
3401  grep -v '^ *+' conftest.er1 >conftest.err
3402  rm -f conftest.er1
3403  cat conftest.err >&5
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } &&
3406	 { ac_try='test -z "$ac_cxx_werror_flag"
3407			 || test ! -s conftest.err'
3408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409  (eval $ac_try) 2>&5
3410  ac_status=$?
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); }; } &&
3413	 { ac_try='test -s conftest.$ac_objext'
3414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415  (eval $ac_try) 2>&5
3416  ac_status=$?
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); }; }; then
3419  :
3420else
3421  echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424continue
3425fi
3426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427  cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h.  */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h.  */
3433$ac_declaration
3434int
3435main ()
3436{
3437exit (42);
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext
3443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444  (eval $ac_compile) 2>conftest.er1
3445  ac_status=$?
3446  grep -v '^ *+' conftest.er1 >conftest.err
3447  rm -f conftest.er1
3448  cat conftest.err >&5
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); } &&
3451	 { ac_try='test -z "$ac_cxx_werror_flag"
3452			 || test ! -s conftest.err'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; } &&
3458	 { ac_try='test -s conftest.$ac_objext'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; }; then
3464  break
3465else
3466  echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469fi
3470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471done
3472rm -f conftest*
3473if test -n "$ac_declaration"; then
3474  echo '#ifdef __cplusplus' >>confdefs.h
3475  echo $ac_declaration      >>confdefs.h
3476  echo '#endif'             >>confdefs.h
3477fi
3478
3479ac_ext=cc
3480ac_cpp='$CXXCPP $CPPFLAGS'
3481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3484
3485
3486#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3487#thus, we test here whether $CXX is actually working
3488ac_ext=cc
3489ac_cpp='$CXXCPP $CPPFLAGS'
3490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3493
3494echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3495echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3496cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h.  */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506int i=0;
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513  (eval $ac_compile) 2>conftest.er1
3514  ac_status=$?
3515  grep -v '^ *+' conftest.er1 >conftest.err
3516  rm -f conftest.er1
3517  cat conftest.err >&5
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); } &&
3520	 { ac_try='test -z "$ac_cxx_werror_flag"
3521			 || test ! -s conftest.err'
3522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523  (eval $ac_try) 2>&5
3524  ac_status=$?
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); }; } &&
3527	 { ac_try='test -s conftest.$ac_objext'
3528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529  (eval $ac_try) 2>&5
3530  ac_status=$?
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); }; }; then
3533  echo "$as_me:$LINENO: result: yes" >&5
3534echo "${ECHO_T}yes" >&6
3535else
3536  echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3542echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3543   { (exit 1); exit 1; }; }
3544
3545fi
3546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547ac_ext=cc
3548ac_cpp='$CXXCPP $CPPFLAGS'
3549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3552
3553
3554coin_cxx_is_cl=false
3555# It seems that we need to cleanup something here for the Windows
3556case "$CXX" in
3557  clang* | */clang*) ;;
3558  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3559    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3560    mv confdefs.hh confdefs.h
3561    coin_cxx_is_cl=true
3562    ;;
3563esac
3564
3565# add automake conditional so we can recognize cl compiler in makefile
3566
3567
3568if test $coin_cxx_is_cl = true; then
3569  COIN_CXX_IS_CL_TRUE=
3570  COIN_CXX_IS_CL_FALSE='#'
3571else
3572  COIN_CXX_IS_CL_TRUE='#'
3573  COIN_CXX_IS_CL_FALSE=
3574fi
3575
3576
3577# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3578case "$CXX" in
3579  clang* ) ;;
3580  cl* | */cl* | CL* | */CL* )
3581    if test "$ac_cv_prog_cxx_g" = yes ; then
3582      ac_cv_prog_cxx_g=no
3583      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3584echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3585    fi ;;
3586  * )
3587    if test x"$CYGPATH_W" = x ; then
3588      CYGPATH_W=echo
3589    fi
3590    ;;
3591esac
3592CXXFLAGS="$save_cxxflags"
3593
3594# Check if a project specific CXXFLAGS variable has been set
3595if test x$COIN_PRJCT != x; then
3596  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3597  if test x$coin_tmp = xset; then
3598    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3599  fi
3600fi
3601
3602if test x"$CXXFLAGS" = x; then
3603
3604# ToDo decide whether we want -DNDEBUG for optimization
3605  coin_add_cxxflags=
3606  coin_opt_cxxflags=
3607  coin_dbg_cxxflags=
3608  coin_warn_cxxflags=
3609
3610  if test "$GXX" = "yes"; then
3611    case "$CXX" in
3612      icpc* | */icpc*)
3613        ;;
3614      *)
3615# ToDo decide about unroll-loops
3616        coin_opt_cxxflags="-O3"
3617        coin_add_cxxflags="-pipe"
3618        coin_dbg_cxxflags="-g -O0"
3619        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3620    esac
3621  fi
3622
3623# Note that we do not need to cover GCC in the following tests.
3624
3625  if test -z "$coin_opt_cxxflags"; then
3626    case $build in
3627      *-cygwin* | *-mingw*)
3628        case "$CXX" in
3629          clang* ) ;;
3630          cl* | */cl* | CL* | */CL*)
3631            # The MT and MTd options are mutually exclusive
3632            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3633               coin_opt_cxxflags='-MD -O2'
3634               coin_dbg_cxxflags='-MDd'
3635            else
3636               coin_opt_cxxflags='-MT -O2'
3637               coin_dbg_cxxflags='-MTd'
3638            fi
3639            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3640            ;;
3641          icl* | */icl* | ICL* | */ICL*)
3642          # The MT and MTd options are mutually exclusive
3643            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3644              coin_opt_cxxflags='-MD -Ox'
3645              coin_dbg_cxxflags='-MDd -debug'
3646            else
3647              coin_opt_cxxflags='-MT -Ox'
3648              coin_dbg_cxxflags='-MTd -debug'
3649            fi
3650            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3651            ;;
3652        esac
3653        ;;
3654      *-linux-*)
3655        case "$CXX" in
3656          icpc* | */icpc*)
3657            coin_opt_cxxflags="-O3 -ip -mp1"
3658            coin_add_cxxflags=""
3659            coin_dbg_cxxflags="-g"
3660            # Check if -i_dynamic is necessary (for new glibc library)
3661            CXXFLAGS=
3662            cat >conftest.$ac_ext <<_ACEOF
3663/* confdefs.h.  */
3664_ACEOF
3665cat confdefs.h >>conftest.$ac_ext
3666cat >>conftest.$ac_ext <<_ACEOF
3667/* end confdefs.h.  */
3668
3669int
3670main ()
3671{
3672int i=0; i++;
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677rm -f conftest.$ac_objext conftest$ac_exeext
3678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3679  (eval $ac_link) 2>conftest.er1
3680  ac_status=$?
3681  grep -v '^ *+' conftest.er1 >conftest.err
3682  rm -f conftest.er1
3683  cat conftest.err >&5
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); } &&
3686	 { ac_try='test -z "$ac_cxx_werror_flag"
3687			 || test ! -s conftest.err'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; } &&
3693	 { ac_try='test -s conftest$ac_exeext'
3694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695  (eval $ac_try) 2>&5
3696  ac_status=$?
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); }; }; then
3699  :
3700else
3701  echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3705fi
3706rm -f conftest.err conftest.$ac_objext \
3707      conftest$ac_exeext conftest.$ac_ext
3708            ;;
3709          pgCC* | */pgCC*)
3710            coin_opt_cxxflags="-fast"
3711            coin_add_cxxflags="-Kieee -pc 64"
3712            coin_dbg_cxxflags="-g"
3713            ;;
3714        esac
3715        ;;
3716      *-ibm-*)
3717        case "$CXX" in
3718          xlC* | */xlC* | mpxlC* | */mpxlC*)
3719            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3720            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3721            coin_dbg_cxxflags="-g"
3722            ;;
3723        esac
3724        ;;
3725      *-hp-*)
3726        case "$CXX" in
3727          aCC* | */aCC* )
3728            coin_opt_cxxflags="-O"
3729            coin_add_cxxflags="-AA"
3730            coin_dbg_cxxflags="-g"
3731            ;;
3732        esac
3733        ;;
3734      *-*-solaris*)
3735          coin_opt_cxxflags="-O4"
3736          coin_dbg_cxxflags="-g"
3737        ;;
3738    esac
3739  fi
3740
3741# Generic flag settings. If these don't work, add a case above.
3742
3743  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3744    coin_dbg_cxxflags="-g"
3745  fi
3746
3747  if test -z "$coin_opt_cxxflags"; then
3748    # Try if -O option works if nothing else is set
3749    CXXFLAGS=-O
3750    cat >conftest.$ac_ext <<_ACEOF
3751/* confdefs.h.  */
3752_ACEOF
3753cat confdefs.h >>conftest.$ac_ext
3754cat >>conftest.$ac_ext <<_ACEOF
3755/* end confdefs.h.  */
3756
3757int
3758main ()
3759{
3760int i=0; i++;
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
3766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767  (eval $ac_link) 2>conftest.er1
3768  ac_status=$?
3769  grep -v '^ *+' conftest.er1 >conftest.err
3770  rm -f conftest.er1
3771  cat conftest.err >&5
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); } &&
3774	 { ac_try='test -z "$ac_cxx_werror_flag"
3775			 || test ! -s conftest.err'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; } &&
3781	 { ac_try='test -s conftest$ac_exeext'
3782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783  (eval $ac_try) 2>&5
3784  ac_status=$?
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); }; }; then
3787  coin_opt_cxxflags="-O"
3788else
3789  echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
3791
3792fi
3793rm -f conftest.err conftest.$ac_objext \
3794      conftest$ac_exeext conftest.$ac_ext
3795  fi
3796
3797  # if PM doesn't want the warning messages, take them out
3798  if test x"$coin_skip_warn_cxxflags" = xyes; then
3799    coin_warn_cxxflags=
3800  fi
3801
3802# Do final setup of flags based on values determined above.
3803
3804  if test x${DBG_CXXFLAGS+set} != xset; then
3805    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3806  fi
3807  if test x${OPT_CXXFLAGS+set} != xset; then
3808    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3809  fi
3810
3811  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3812  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3813
3814  if test "$coin_debug_compile" = "true"; then
3815    CXXFLAGS="$DBG_CXXFLAGS"
3816  else
3817    CXXFLAGS="$OPT_CXXFLAGS"
3818  fi
3819
3820# Handle the case where CXXFLAGS was set externally.
3821else
3822  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3823  if test x${DBG_CXXFLAGS+set} != xset; then
3824    DBG_CXXFLAGS="$CXXFLAGS"
3825  fi
3826  if test x${OPT_CXXFLAGS+set} != xset; then
3827    OPT_CXXFLAGS="$CXXFLAGS"
3828  fi
3829fi
3830
3831# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3832if test x$COIN_PRJCT != x; then
3833  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3834fi
3835
3836# Try if CXXFLAGS works
3837save_CXXFLAGS="$CXXFLAGS"
3838cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h.  */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844
3845int
3846main ()
3847{
3848int i=0; i++;
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext conftest$ac_exeext
3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855  (eval $ac_link) 2>conftest.er1
3856  ac_status=$?
3857  grep -v '^ *+' conftest.er1 >conftest.err
3858  rm -f conftest.er1
3859  cat conftest.err >&5
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); } &&
3862	 { ac_try='test -z "$ac_cxx_werror_flag"
3863			 || test ! -s conftest.err'
3864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865  (eval $ac_try) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; } &&
3869	 { ac_try='test -s conftest$ac_exeext'
3870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871  (eval $ac_try) 2>&5
3872  ac_status=$?
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); }; }; then
3875  :
3876else
3877  echo "$as_me: failed program was:" >&5
3878sed 's/^/| /' conftest.$ac_ext >&5
3879
3880CXXFLAGS=
3881fi
3882rm -f conftest.err conftest.$ac_objext \
3883      conftest$ac_exeext conftest.$ac_ext
3884if test -z "$CXXFLAGS"; then
3885  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3886echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3887  CXXFLAGS='-O'
3888  cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h.  */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h.  */
3894
3895int
3896main ()
3897{
3898int i=0; i++;
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
3904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905  (eval $ac_link) 2>conftest.er1
3906  ac_status=$?
3907  grep -v '^ *+' conftest.er1 >conftest.err
3908  rm -f conftest.er1
3909  cat conftest.err >&5
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); } &&
3912	 { ac_try='test -z "$ac_cxx_werror_flag"
3913			 || test ! -s conftest.err'
3914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915  (eval $ac_try) 2>&5
3916  ac_status=$?
3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918  (exit $ac_status); }; } &&
3919	 { ac_try='test -s conftest$ac_exeext'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; }; then
3925  :
3926else
3927  echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930CXXFLAGS=
3931fi
3932rm -f conftest.err conftest.$ac_objext \
3933      conftest$ac_exeext conftest.$ac_ext
3934  if test -z "$CXXFLAGS"; then
3935    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
3936echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
3937  fi
3938fi
3939
3940{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3941echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3942
3943
3944if test x"$MPICXX" = x; then :; else
3945  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3946echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3947  CXX="$MPICXX"
3948fi
3949
3950# correct the LD variable in a build with MS or Intel-windows compiler
3951case "$CXX" in
3952  clang* ) ;;
3953  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3954    LD=link
3955    ;;
3956esac
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965
3966# Get the name of the Fortran compiler and appropriate compiler options
3967case $build in
3968  *-cygwin* | *-mingw*)
3969     if test "$enable_msvc" = yes ; then
3970       coin_f77_comps="ifort fl32 compile_f2c"
3971     else
3972       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3973     fi ;;
3974  *-*-solaris*)
3975     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3976  *-linux-gnu*)
3977     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3978  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3979 esac
3980
3981
3982
3983
3984
3985ac_ext=f
3986ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3987ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3989
3990
3991
3992
3993
3994
3995coin_has_f77=yes
3996
3997save_fflags="$FFLAGS"
3998
3999# We delete the cached value, since the test might not have been
4000# performed with our choice of compilers earlier
4001$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4002
4003# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4004# coin_f77_comps to see if there's a program that matches one of the names.
4005# If there's no such program, F77 = unavailable. If we match the name,
4006# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4007# compiler.
4008# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4009
4010
4011{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4012echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4013if test -n "$ac_tool_prefix"; then
4014  for ac_prog in $coin_f77_comps
4015  do
4016    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4018echo "$as_me:$LINENO: checking for $ac_word" >&5
4019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020if test "${ac_cv_prog_F77+set}" = set; then
4021  echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023  if test -n "$F77"; then
4024  ac_cv_prog_F77="$F77" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031  for ac_exec_ext in '' $ac_executable_extensions; do
4032  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4034    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038done
4039
4040fi
4041fi
4042F77=$ac_cv_prog_F77
4043if test -n "$F77"; then
4044  echo "$as_me:$LINENO: result: $F77" >&5
4045echo "${ECHO_T}$F77" >&6
4046else
4047  echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049fi
4050
4051    test -n "$F77" && break
4052  done
4053fi
4054if test -z "$F77"; then
4055  ac_ct_F77=$F77
4056  for ac_prog in $coin_f77_comps
4057do
4058  # Extract the first word of "$ac_prog", so it can be a program name with args.
4059set dummy $ac_prog; ac_word=$2
4060echo "$as_me:$LINENO: checking for $ac_word" >&5
4061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4063  echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065  if test -n "$ac_ct_F77"; then
4066  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073  for ac_exec_ext in '' $ac_executable_extensions; do
4074  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075    ac_cv_prog_ac_ct_F77="$ac_prog"
4076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077    break 2
4078  fi
4079done
4080done
4081
4082fi
4083fi
4084ac_ct_F77=$ac_cv_prog_ac_ct_F77
4085if test -n "$ac_ct_F77"; then
4086  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4087echo "${ECHO_T}$ac_ct_F77" >&6
4088else
4089  echo "$as_me:$LINENO: result: no" >&5
4090echo "${ECHO_T}no" >&6
4091fi
4092
4093  test -n "$ac_ct_F77" && break
4094done
4095test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4096
4097  F77=$ac_ct_F77
4098fi
4099
4100
4101if test "$F77" != "unavailable" ; then
4102  ac_ext=f
4103ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4104ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4106if test -n "$ac_tool_prefix"; then
4107  for ac_prog in $coin_f77_comps
4108  do
4109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4111echo "$as_me:$LINENO: checking for $ac_word" >&5
4112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113if test "${ac_cv_prog_F77+set}" = set; then
4114  echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116  if test -n "$F77"; then
4117  ac_cv_prog_F77="$F77" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122  IFS=$as_save_IFS
4123  test -z "$as_dir" && as_dir=.
4124  for ac_exec_ext in '' $ac_executable_extensions; do
4125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128    break 2
4129  fi
4130done
4131done
4132
4133fi
4134fi
4135F77=$ac_cv_prog_F77
4136if test -n "$F77"; then
4137  echo "$as_me:$LINENO: result: $F77" >&5
4138echo "${ECHO_T}$F77" >&6
4139else
4140  echo "$as_me:$LINENO: result: no" >&5
4141echo "${ECHO_T}no" >&6
4142fi
4143
4144    test -n "$F77" && break
4145  done
4146fi
4147if test -z "$F77"; then
4148  ac_ct_F77=$F77
4149  for ac_prog in $coin_f77_comps
4150do
4151  # Extract the first word of "$ac_prog", so it can be a program name with args.
4152set dummy $ac_prog; ac_word=$2
4153echo "$as_me:$LINENO: checking for $ac_word" >&5
4154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  if test -n "$ac_ct_F77"; then
4159  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166  for ac_exec_ext in '' $ac_executable_extensions; do
4167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168    ac_cv_prog_ac_ct_F77="$ac_prog"
4169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173done
4174
4175fi
4176fi
4177ac_ct_F77=$ac_cv_prog_ac_ct_F77
4178if test -n "$ac_ct_F77"; then
4179  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4180echo "${ECHO_T}$ac_ct_F77" >&6
4181else
4182  echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6
4184fi
4185
4186  test -n "$ac_ct_F77" && break
4187done
4188
4189  F77=$ac_ct_F77
4190fi
4191
4192
4193# Provide some information about the compiler.
4194echo "$as_me:4194:" \
4195     "checking for Fortran 77 compiler version" >&5
4196ac_compiler=`set X $ac_compile; echo $2`
4197{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4198  (eval $ac_compiler --version </dev/null >&5) 2>&5
4199  ac_status=$?
4200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201  (exit $ac_status); }
4202{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4203  (eval $ac_compiler -v </dev/null >&5) 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); }
4207{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4208  (eval $ac_compiler -V </dev/null >&5) 2>&5
4209  ac_status=$?
4210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211  (exit $ac_status); }
4212rm -f a.out
4213
4214# If we don't use `.F' as extension, the preprocessor is not run on the
4215# input file.  (Note that this only needs to work for GNU compilers.)
4216ac_save_ext=$ac_ext
4217ac_ext=F
4218echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4219echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4220if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  cat >conftest.$ac_ext <<_ACEOF
4224      program main
4225#ifndef __GNUC__
4226       choke me
4227#endif
4228
4229      end
4230_ACEOF
4231rm -f conftest.$ac_objext
4232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233  (eval $ac_compile) 2>conftest.er1
4234  ac_status=$?
4235  grep -v '^ *+' conftest.er1 >conftest.err
4236  rm -f conftest.er1
4237  cat conftest.err >&5
4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239  (exit $ac_status); } &&
4240	 { ac_try='test -z "$ac_f77_werror_flag"
4241			 || test ! -s conftest.err'
4242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243  (eval $ac_try) 2>&5
4244  ac_status=$?
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); }; } &&
4247	 { ac_try='test -s conftest.$ac_objext'
4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249  (eval $ac_try) 2>&5
4250  ac_status=$?
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); }; }; then
4253  ac_compiler_gnu=yes
4254else
4255  echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4258ac_compiler_gnu=no
4259fi
4260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4261ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4262
4263fi
4264echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4265echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4266ac_ext=$ac_save_ext
4267ac_test_FFLAGS=${FFLAGS+set}
4268ac_save_FFLAGS=$FFLAGS
4269FFLAGS=
4270echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4271echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4272if test "${ac_cv_prog_f77_g+set}" = set; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275  FFLAGS=-g
4276cat >conftest.$ac_ext <<_ACEOF
4277      program main
4278
4279      end
4280_ACEOF
4281rm -f conftest.$ac_objext
4282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283  (eval $ac_compile) 2>conftest.er1
4284  ac_status=$?
4285  grep -v '^ *+' conftest.er1 >conftest.err
4286  rm -f conftest.er1
4287  cat conftest.err >&5
4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289  (exit $ac_status); } &&
4290	 { ac_try='test -z "$ac_f77_werror_flag"
4291			 || test ! -s conftest.err'
4292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293  (eval $ac_try) 2>&5
4294  ac_status=$?
4295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); }; } &&
4297	 { ac_try='test -s conftest.$ac_objext'
4298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299  (eval $ac_try) 2>&5
4300  ac_status=$?
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); }; }; then
4303  ac_cv_prog_f77_g=yes
4304else
4305  echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308ac_cv_prog_f77_g=no
4309fi
4310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311
4312fi
4313echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4314echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4315if test "$ac_test_FFLAGS" = set; then
4316  FFLAGS=$ac_save_FFLAGS
4317elif test $ac_cv_prog_f77_g = yes; then
4318  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4319    FFLAGS="-g -O2"
4320  else
4321    FFLAGS="-g"
4322  fi
4323else
4324  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4325    FFLAGS="-O2"
4326  else
4327    FFLAGS=
4328  fi
4329fi
4330
4331G77=`test $ac_compiler_gnu = yes && echo yes`
4332ac_ext=f
4333ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4334ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4336
4337else
4338  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4339echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4340fi
4341
4342FFLAGS="$save_fflags"
4343
4344# Check if a project specific FFLAGS variable has been set
4345if test x$COIN_PRJCT != x; then
4346  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4347  if test x$coin_tmp = xset; then
4348    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4349  fi
4350fi
4351
4352if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4353
4354  coin_add_fflags=
4355  coin_opt_fflags=
4356  coin_dbg_fflags=
4357  coin_warn_fflags=
4358
4359  if test "$G77" = "yes"; then
4360    coin_opt_fflags="-O3"
4361    coin_add_fflags="-pipe"
4362    coin_dbg_fflags="-g -O0"
4363  else
4364    case $build in
4365      *-cygwin* | *-mingw*)
4366        case $F77 in
4367          ifort* | */ifort* | IFORT* | */IFORT* )
4368            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4369              coin_opt_fflags='-MD -O3'
4370              coin_dbg_fflags='-MDd -debug'
4371            else
4372              coin_opt_fflags='-MT -O3'
4373              coin_dbg_fflags='-MTd -debug'
4374            fi
4375            coin_add_fflags='-fpp -nologo'
4376          ;;
4377          compile_f2c*)
4378            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4379              coin_opt_fflags='-MD -O2'
4380              coin_dbg_fflags='-MDd'
4381            else
4382              coin_opt_fflags='-MT -O2'
4383              coin_dbg_fflags='-MTd'
4384            fi
4385            coin_add_fflags='-nologo -wd4996'
4386          ;;
4387        esac
4388        ;;
4389      *-linux-*)
4390        case $F77 in
4391          ifc* | */ifc* | ifort* | */ifort*)
4392            coin_opt_fflags="-O3 -ip"
4393            coin_add_fflags="-cm -w90 -w95"
4394            coin_dbg_fflags="-g -CA -CB -CS"
4395            # Check if -i_dynamic is necessary (for new glibc library)
4396            FFLAGS=
4397            cat >conftest.$ac_ext <<_ACEOF
4398      program main
4399      write(*,*) 'Hello world'
4400      end
4401_ACEOF
4402rm -f conftest.$ac_objext conftest$ac_exeext
4403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4404  (eval $ac_link) 2>conftest.er1
4405  ac_status=$?
4406  grep -v '^ *+' conftest.er1 >conftest.err
4407  rm -f conftest.er1
4408  cat conftest.err >&5
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); } &&
4411	 { ac_try='test -z "$ac_f77_werror_flag"
4412			 || test ! -s conftest.err'
4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414  (eval $ac_try) 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; } &&
4418	 { ac_try='test -s conftest$ac_exeext'
4419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420  (eval $ac_try) 2>&5
4421  ac_status=$?
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); }; }; then
4424  :
4425else
4426  echo "$as_me: failed program was:" >&5
4427sed 's/^/| /' conftest.$ac_ext >&5
4428
4429coin_add_fflags="-i_dynamic $coin_add_fflags"
4430fi
4431rm -f conftest.err conftest.$ac_objext \
4432      conftest$ac_exeext conftest.$ac_ext
4433            ;;
4434          pgf77* | */pgf77* | pgf90* | */pgf90*)
4435            coin_opt_fflags="-fast"
4436            coin_add_fflags="-Kieee -pc 64"
4437            coin_dbg_fflags="-g"
4438          ;;
4439        esac
4440        ;;
4441      *-ibm-*)
4442        case "$F77" in
4443          xlf* | */xlf* | mpxlf* | */mpxlf* )
4444            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4445            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4446            coin_dbg_fflags="-g -C"
4447            ;;
4448        esac
4449        ;;
4450      *-hp-*)
4451        coin_opt_fflags="+O3"
4452        coin_add_fflags="+U77"
4453        coin_dbg_fflags="-C -g"
4454        ;;
4455      *-*-solaris*)
4456        coin_opt_fflags="-O4"
4457        coin_dbg_fflags="-g"
4458        ;;
4459      *-sgi-*)
4460        coin_opt_fflags="-O5 -OPT:Olimit=0"
4461        coin_dbg_fflags="-g"
4462        ;;
4463    esac
4464  fi
4465
4466  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4467    coin_dbg_fflags="-g"
4468  fi
4469
4470  if test -z "$coin_opt_fflags"; then
4471    # Try if -O option works if nothing else is set
4472    FFLAGS=-O
4473    cat >conftest.$ac_ext <<_ACEOF
4474      program main
4475      integer i
4476      end
4477_ACEOF
4478rm -f conftest.$ac_objext conftest$ac_exeext
4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480  (eval $ac_link) 2>conftest.er1
4481  ac_status=$?
4482  grep -v '^ *+' conftest.er1 >conftest.err
4483  rm -f conftest.er1
4484  cat conftest.err >&5
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); } &&
4487	 { ac_try='test -z "$ac_f77_werror_flag"
4488			 || test ! -s conftest.err'
4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490  (eval $ac_try) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; } &&
4494	 { ac_try='test -s conftest$ac_exeext'
4495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496  (eval $ac_try) 2>&5
4497  ac_status=$?
4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499  (exit $ac_status); }; }; then
4500  coin_opt_fflags="-O"
4501else
4502  echo "$as_me: failed program was:" >&5
4503sed 's/^/| /' conftest.$ac_ext >&5
4504
4505fi
4506rm -f conftest.err conftest.$ac_objext \
4507      conftest$ac_exeext conftest.$ac_ext
4508  fi
4509
4510  # if PM doesn't want the warning messages, take them out
4511  if test x"$coin_skip_warn_fflags" = xyes; then
4512    coin_warn_fflags=
4513  fi
4514
4515  if test x${DBG_FFLAGS+set} != xset; then
4516    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4517  fi
4518  if test x${OPT_FFLAGS+set} != xset; then
4519    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4520  fi
4521
4522  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4523  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4524
4525  if test "$coin_debug_compile" = "true"; then
4526    FFLAGS="$DBG_FFLAGS"
4527  else
4528    FFLAGS="$OPT_FFLAGS"
4529  fi
4530else
4531  FFLAGS="$FFLAGS $ADD_FFLAGS"
4532  if test x${DBG_FFLAGS+set} != xset; then
4533    DBG_FFLAGS="$FFLAGS"
4534  fi
4535  if test x${OPT_FFLAGS+set} != xset; then
4536    OPT_FFLAGS="$FFLAGS"
4537  fi
4538fi
4539
4540# Try if FFLAGS works
4541if test "$F77" != "unavailable" ; then
4542  orig_FFLAGS="FFLAGS"
4543  cat >conftest.$ac_ext <<_ACEOF
4544      program main
4545      integer i
4546      end
4547_ACEOF
4548rm -f conftest.$ac_objext conftest$ac_exeext
4549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550  (eval $ac_link) 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } &&
4557	 { ac_try='test -z "$ac_f77_werror_flag"
4558			 || test ! -s conftest.err'
4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560  (eval $ac_try) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; } &&
4564	 { ac_try='test -s conftest$ac_exeext'
4565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566  (eval $ac_try) 2>&5
4567  ac_status=$?
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; }; then
4570  :
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575FFLAGS=
4576fi
4577rm -f conftest.err conftest.$ac_objext \
4578      conftest$ac_exeext conftest.$ac_ext
4579  if test -z "$FFLAGS"; then
4580    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4581echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4582    FFLAGS='-O'
4583    cat >conftest.$ac_ext <<_ACEOF
4584      program main
4585      integer i
4586      end
4587_ACEOF
4588rm -f conftest.$ac_objext conftest$ac_exeext
4589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590  (eval $ac_link) 2>conftest.er1
4591  ac_status=$?
4592  grep -v '^ *+' conftest.er1 >conftest.err
4593  rm -f conftest.er1
4594  cat conftest.err >&5
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); } &&
4597	 { ac_try='test -z "$ac_f77_werror_flag"
4598			 || test ! -s conftest.err'
4599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600  (eval $ac_try) 2>&5
4601  ac_status=$?
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); }; } &&
4604	 { ac_try='test -s conftest$ac_exeext'
4605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606  (eval $ac_try) 2>&5
4607  ac_status=$?
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); }; }; then
4610  :
4611else
4612  echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
4615FFLAGS=
4616fi
4617rm -f conftest.err conftest.$ac_objext \
4618      conftest$ac_exeext conftest.$ac_ext
4619    if test -z "$FFLAGS"; then
4620      { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4621echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4622    fi
4623  fi
4624fi
4625
4626{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4627echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4628
4629
4630if test x"$MPIF77" = x; then :; else
4631  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4632echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4633  F77="$MPIF77"
4634fi
4635
4636# correct the LD variable if we use the intel fortran compiler in windows
4637case $build in
4638  *-cygwin* | *-mingw*)
4639    case "$F77" in
4640      ifort* | */ifort* | IFORT* | */IFORT*)
4641        LD=link
4642      ;;
4643    esac
4644  ;;
4645esac
4646
4647ac_ext=c
4648ac_cpp='$CPP $CPPFLAGS'
4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652
4653
4654
4655# Initialize automake and libtool
4656# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4657{
4658
4659
4660
4661# START
4662
4663coin_disable_shared=no
4664# Test if force_shared has been set
4665if test "x" = xforce_shared; then
4666  if test x$enable_shared = xno; then
4667    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4668echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4669   { (exit 1); exit 1; }; }
4670  fi
4671  enable_shared=yes;
4672else
4673  case $build in
4674    *-cygwin* | *-mingw*)
4675      coin_disable_shared=yes
4676      if test x"$enable_shared" = xyes; then
4677        case "$CC" in
4678          clang* )
4679            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4680echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4681            ;;
4682          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4683            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4684echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4685            ;;
4686          *gcc*)
4687            if test x"$enable_dependency_linking" = xyes; then
4688              coin_disable_shared=no
4689            else
4690              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4691echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4692            fi
4693            ;;
4694          *)
4695            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4696echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4697            ;;
4698        esac
4699      fi
4700    ;;
4701    *-aix*)
4702      coin_disable_shared=yes
4703      platform=AIX
4704      if test x"$enable_shared" = xyes; then
4705        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4706echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4707      fi
4708    ;;
4709  esac
4710fi
4711if test x"$coin_disable_shared" = xyes; then
4712  if test x"$enable_shared" = xyes; then
4713    :
4714  else
4715    # we don't disable shared, because it was not selected anyway
4716    coin_disable_shared=no
4717  fi
4718  enable_shared=no
4719fi
4720# By default, we only want the shared objects to be compiled
4721# Check whether --enable-static or --disable-static was given.
4722if test "${enable_static+set}" = set; then
4723  enableval="$enable_static"
4724  p=${PACKAGE-default}
4725    case $enableval in
4726    yes) enable_static=yes ;;
4727    no) enable_static=no ;;
4728    *)
4729     enable_static=no
4730      # Look at the argument we got.  We use all the common list separators.
4731      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4732      for pkg in $enableval; do
4733	IFS="$lt_save_ifs"
4734	if test "X$pkg" = "X$p"; then
4735	  enable_static=yes
4736	fi
4737      done
4738      IFS="$lt_save_ifs"
4739      ;;
4740    esac
4741else
4742  enable_static=no
4743fi;
4744
4745
4746
4747
4748# Initialize automake
4749echo "$as_me:$LINENO: checking for egrep" >&5
4750echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4751if test "${ac_cv_prog_egrep+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4755    then ac_cv_prog_egrep='grep -E'
4756    else ac_cv_prog_egrep='egrep'
4757    fi
4758fi
4759echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4760echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4761 EGREP=$ac_cv_prog_egrep
4762
4763
4764echo "$as_me:$LINENO: checking whether ln -s works" >&5
4765echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4766LN_S=$as_ln_s
4767if test "$LN_S" = "ln -s"; then
4768  echo "$as_me:$LINENO: result: yes" >&5
4769echo "${ECHO_T}yes" >&6
4770else
4771  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4772echo "${ECHO_T}no, using $LN_S" >&6
4773fi
4774
4775am__api_version="1.9"
4776# Find a good install program.  We prefer a C program (faster),
4777# so one script is as good as another.  But avoid the broken or
4778# incompatible versions:
4779# SysV /etc/install, /usr/sbin/install
4780# SunOS /usr/etc/install
4781# IRIX /sbin/install
4782# AIX /bin/install
4783# AmigaOS /C/install, which installs bootblocks on floppy discs
4784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4787# OS/2's system install, which has a completely different semantic
4788# ./install, which can be erroneously created by make from ./install.sh.
4789echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4790echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4791if test -z "$INSTALL"; then
4792if test "${ac_cv_path_install+set}" = set; then
4793  echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798  IFS=$as_save_IFS
4799  test -z "$as_dir" && as_dir=.
4800  # Account for people who put trailing slashes in PATH elements.
4801case $as_dir/ in
4802  ./ | .// | /cC/* | \
4803  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4804  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4805  /usr/ucb/* ) ;;
4806  *)
4807    # OSF1 and SCO ODT 3.0 have their own names for install.
4808    # Don't use installbsd from OSF since it installs stuff as root
4809    # by default.
4810    for ac_prog in ginstall scoinst install; do
4811      for ac_exec_ext in '' $ac_executable_extensions; do
4812	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4813	  if test $ac_prog = install &&
4814	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4815	    # AIX install.  It has an incompatible calling convention.
4816	    :
4817	  elif test $ac_prog = install &&
4818	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4819	    # program-specific install script used by HP pwplus--don't use.
4820	    :
4821	  else
4822	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4823	    break 3
4824	  fi
4825	fi
4826      done
4827    done
4828    ;;
4829esac
4830done
4831
4832
4833fi
4834  if test "${ac_cv_path_install+set}" = set; then
4835    INSTALL=$ac_cv_path_install
4836  else
4837    # As a last resort, use the slow shell script.  We don't cache a
4838    # path for INSTALL within a source directory, because that will
4839    # break other packages using the cache if that directory is
4840    # removed, or if the path is relative.
4841    INSTALL=$ac_install_sh
4842  fi
4843fi
4844echo "$as_me:$LINENO: result: $INSTALL" >&5
4845echo "${ECHO_T}$INSTALL" >&6
4846
4847# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4848# It thinks the first close brace ends the variable substitution.
4849test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4850
4851test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4852
4853test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4854
4855echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4856echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4857# Just in case
4858sleep 1
4859echo timestamp > conftest.file
4860# Do `set' in a subshell so we don't clobber the current shell's
4861# arguments.  Must try -L first in case configure is actually a
4862# symlink; some systems play weird games with the mod time of symlinks
4863# (eg FreeBSD returns the mod time of the symlink's containing
4864# directory).
4865if (
4866   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4867   if test "$*" = "X"; then
4868      # -L didn't work.
4869      set X `ls -t $srcdir/configure conftest.file`
4870   fi
4871   rm -f conftest.file
4872   if test "$*" != "X $srcdir/configure conftest.file" \
4873      && test "$*" != "X conftest.file $srcdir/configure"; then
4874
4875      # If neither matched, then we have a broken ls.  This can happen
4876      # if, for instance, CONFIG_SHELL is bash and it inherits a
4877      # broken ls alias from the environment.  This has actually
4878      # happened.  Such a system could not be considered "sane".
4879      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4880alias in your environment" >&5
4881echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4882alias in your environment" >&2;}
4883   { (exit 1); exit 1; }; }
4884   fi
4885
4886   test "$2" = conftest.file
4887   )
4888then
4889   # Ok.
4890   :
4891else
4892   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4893Check your system clock" >&5
4894echo "$as_me: error: newly created file is older than distributed files!
4895Check your system clock" >&2;}
4896   { (exit 1); exit 1; }; }
4897fi
4898echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
4900test "$program_prefix" != NONE &&
4901  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4902# Use a double $ so make ignores it.
4903test "$program_suffix" != NONE &&
4904  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4905# Double any \ or $.  echo might interpret backslashes.
4906# By default was `s,x,x', remove it if useless.
4907cat <<\_ACEOF >conftest.sed
4908s/[\\$]/&&/g;s/;s,x,x,$//
4909_ACEOF
4910program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4911rm conftest.sed
4912
4913# expand $ac_aux_dir to an absolute path
4914am_aux_dir=`cd $ac_aux_dir && pwd`
4915
4916test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4917# Use eval to expand $SHELL
4918if eval "$MISSING --run true"; then
4919  am_missing_run="$MISSING --run "
4920else
4921  am_missing_run=
4922  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4923echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4924fi
4925
4926if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4927  # We used to keeping the `.' as first argument, in order to
4928  # allow $(mkdir_p) to be used without argument.  As in
4929  #   $(mkdir_p) $(somedir)
4930  # where $(somedir) is conditionally defined.  However this is wrong
4931  # for two reasons:
4932  #  1. if the package is installed by a user who cannot write `.'
4933  #     make install will fail,
4934  #  2. the above comment should most certainly read
4935  #     $(mkdir_p) $(DESTDIR)$(somedir)
4936  #     so it does not work when $(somedir) is undefined and
4937  #     $(DESTDIR) is not.
4938  #  To support the latter case, we have to write
4939  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4940  #  so the `.' trick is pointless.
4941  mkdir_p='mkdir -p --'
4942else
4943  # On NextStep and OpenStep, the `mkdir' command does not
4944  # recognize any option.  It will interpret all options as
4945  # directories to create, and then abort because `.' already
4946  # exists.
4947  for d in ./-p ./--version;
4948  do
4949    test -d $d && rmdir $d
4950  done
4951  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4952  if test -f "$ac_aux_dir/mkinstalldirs"; then
4953    mkdir_p='$(mkinstalldirs)'
4954  else
4955    mkdir_p='$(install_sh) -d'
4956  fi
4957fi
4958
4959for ac_prog in gawk mawk nawk awk
4960do
4961  # Extract the first word of "$ac_prog", so it can be a program name with args.
4962set dummy $ac_prog; ac_word=$2
4963echo "$as_me:$LINENO: checking for $ac_word" >&5
4964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965if test "${ac_cv_prog_AWK+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  if test -n "$AWK"; then
4969  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4970else
4971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974  IFS=$as_save_IFS
4975  test -z "$as_dir" && as_dir=.
4976  for ac_exec_ext in '' $ac_executable_extensions; do
4977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978    ac_cv_prog_AWK="$ac_prog"
4979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980    break 2
4981  fi
4982done
4983done
4984
4985fi
4986fi
4987AWK=$ac_cv_prog_AWK
4988if test -n "$AWK"; then
4989  echo "$as_me:$LINENO: result: $AWK" >&5
4990echo "${ECHO_T}$AWK" >&6
4991else
4992  echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994fi
4995
4996  test -n "$AWK" && break
4997done
4998
4999echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5000echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5001set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5002if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005  cat >conftest.make <<\_ACEOF
5006all:
5007	@echo 'ac_maketemp="$(MAKE)"'
5008_ACEOF
5009# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5010eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5011if test -n "$ac_maketemp"; then
5012  eval ac_cv_prog_make_${ac_make}_set=yes
5013else
5014  eval ac_cv_prog_make_${ac_make}_set=no
5015fi
5016rm -f conftest.make
5017fi
5018if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5019  echo "$as_me:$LINENO: result: yes" >&5
5020echo "${ECHO_T}yes" >&6
5021  SET_MAKE=
5022else
5023  echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025  SET_MAKE="MAKE=${MAKE-make}"
5026fi
5027
5028rm -rf .tst 2>/dev/null
5029mkdir .tst 2>/dev/null
5030if test -d .tst; then
5031  am__leading_dot=.
5032else
5033  am__leading_dot=_
5034fi
5035rmdir .tst 2>/dev/null
5036
5037DEPDIR="${am__leading_dot}deps"
5038
5039          ac_config_commands="$ac_config_commands depfiles"
5040
5041
5042am_make=${MAKE-make}
5043cat > confinc << 'END'
5044am__doit:
5045	@echo done
5046.PHONY: am__doit
5047END
5048# If we don't find an include directive, just comment out the code.
5049echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5050echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5051am__include="#"
5052am__quote=
5053_am_result=none
5054# First try GNU make style include.
5055echo "include confinc" > confmf
5056# We grep out `Entering directory' and `Leaving directory'
5057# messages which can occur if `w' ends up in MAKEFLAGS.
5058# In particular we don't look at `^make:' because GNU make might
5059# be invoked under some other name (usually "gmake"), in which
5060# case it prints its new name instead of `make'.
5061if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5062   am__include=include
5063   am__quote=
5064   _am_result=GNU
5065fi
5066# Now try BSD make style include.
5067if test "$am__include" = "#"; then
5068   echo '.include "confinc"' > confmf
5069   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5070      am__include=.include
5071      am__quote="\""
5072      _am_result=BSD
5073   fi
5074fi
5075
5076
5077echo "$as_me:$LINENO: result: $_am_result" >&5
5078echo "${ECHO_T}$_am_result" >&6
5079rm -f confinc confmf
5080
5081# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5082if test "${enable_dependency_tracking+set}" = set; then
5083  enableval="$enable_dependency_tracking"
5084
5085fi;
5086if test "x$enable_dependency_tracking" != xno; then
5087  am_depcomp="$ac_aux_dir/depcomp"
5088  AMDEPBACKSLASH='\'
5089fi
5090
5091
5092if test "x$enable_dependency_tracking" != xno; then
5093  AMDEP_TRUE=
5094  AMDEP_FALSE='#'
5095else
5096  AMDEP_TRUE='#'
5097  AMDEP_FALSE=
5098fi
5099
5100
5101
5102
5103
5104
5105# AC_MSG_NOTICE([Beginning automake initialisation.])
5106# Stuff for automake
5107# test to see if srcdir already configured
5108if test "`cd $srcdir && pwd`" != "`pwd`" &&
5109   test -f $srcdir/config.status; then
5110  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5111echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5112   { (exit 1); exit 1; }; }
5113fi
5114
5115# test whether we have cygpath
5116if test -z "$CYGPATH_W"; then
5117  if (cygpath --version) >/dev/null 2>/dev/null; then
5118    CYGPATH_W='cygpath -w'
5119  else
5120    CYGPATH_W=echo
5121  fi
5122fi
5123
5124
5125# Define the identity of the package.
5126 PACKAGE='bcps'
5127 VERSION='0.99'
5128
5129
5130cat >>confdefs.h <<_ACEOF
5131#define PACKAGE "$PACKAGE"
5132_ACEOF
5133
5134
5135cat >>confdefs.h <<_ACEOF
5136#define VERSION "$VERSION"
5137_ACEOF
5138
5139# Some tools Automake needs.
5140
5141ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5142
5143
5144AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5145
5146
5147AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5148
5149
5150AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5151
5152
5153MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5154
5155install_sh=${install_sh-"$am_aux_dir/install-sh"}
5156
5157# Installed binaries are usually stripped using `strip' when the user
5158# run `make install-strip'.  However `strip' might not be the right
5159# tool to use in cross-compilation environments, therefore Automake
5160# will honor the `STRIP' environment variable to overrule this program.
5161if test "$cross_compiling" != no; then
5162  if test -n "$ac_tool_prefix"; then
5163  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5164set dummy ${ac_tool_prefix}strip; ac_word=$2
5165echo "$as_me:$LINENO: checking for $ac_word" >&5
5166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167if test "${ac_cv_prog_STRIP+set}" = set; then
5168  echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170  if test -n "$STRIP"; then
5171  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176  IFS=$as_save_IFS
5177  test -z "$as_dir" && as_dir=.
5178  for ac_exec_ext in '' $ac_executable_extensions; do
5179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182    break 2
5183  fi
5184done
5185done
5186
5187fi
5188fi
5189STRIP=$ac_cv_prog_STRIP
5190if test -n "$STRIP"; then
5191  echo "$as_me:$LINENO: result: $STRIP" >&5
5192echo "${ECHO_T}$STRIP" >&6
5193else
5194  echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196fi
5197
5198fi
5199if test -z "$ac_cv_prog_STRIP"; then
5200  ac_ct_STRIP=$STRIP
5201  # Extract the first word of "strip", so it can be a program name with args.
5202set dummy strip; ac_word=$2
5203echo "$as_me:$LINENO: checking for $ac_word" >&5
5204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5206  echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208  if test -n "$ac_ct_STRIP"; then
5209  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214  IFS=$as_save_IFS
5215  test -z "$as_dir" && as_dir=.
5216  for ac_exec_ext in '' $ac_executable_extensions; do
5217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218    ac_cv_prog_ac_ct_STRIP="strip"
5219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220    break 2
5221  fi
5222done
5223done
5224
5225  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5226fi
5227fi
5228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5229if test -n "$ac_ct_STRIP"; then
5230  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5231echo "${ECHO_T}$ac_ct_STRIP" >&6
5232else
5233  echo "$as_me:$LINENO: result: no" >&5
5234echo "${ECHO_T}no" >&6
5235fi
5236
5237  STRIP=$ac_ct_STRIP
5238else
5239  STRIP="$ac_cv_prog_STRIP"
5240fi
5241
5242fi
5243INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5244
5245# We need awk for the "check" target.  The system "awk" is bad on
5246# some platforms.
5247# Always define AMTAR for backward compatibility.
5248
5249AMTAR=${AMTAR-"${am_missing_run}tar"}
5250
5251am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5252
5253
5254
5255
5256depcc="$CC"   am_compiler_list=
5257
5258echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5259echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5260if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5261  echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5264  # We make a subdir and do the tests there.  Otherwise we can end up
5265  # making bogus files that we don't know about and never remove.  For
5266  # instance it was reported that on HP-UX the gcc test will end up
5267  # making a dummy file named `D' -- because `-MD' means `put the output
5268  # in D'.
5269  mkdir conftest.dir
5270  # Copy depcomp to subdir because otherwise we won't find it if we're
5271  # using a relative directory.
5272  cp "$am_depcomp" conftest.dir
5273  cd conftest.dir
5274  # We will build objects and dependencies in a subdirectory because
5275  # it helps to detect inapplicable dependency modes.  For instance
5276  # both Tru64's cc and ICC support -MD to output dependencies as a
5277  # side effect of compilation, but ICC will put the dependencies in
5278  # the current directory while Tru64 will put them in the object
5279  # directory.
5280  mkdir sub
5281
5282  am_cv_CC_dependencies_compiler_type=none
5283  if test "$am_compiler_list" = ""; then
5284     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5285  fi
5286  for depmode in $am_compiler_list; do
5287    # Setup a source with many dependencies, because some compilers
5288    # like to wrap large dependency lists on column 80 (with \), and
5289    # we should not choose a depcomp mode which is confused by this.
5290    #
5291    # We need to recreate these files for each test, as the compiler may
5292    # overwrite some of them when testing with obscure command lines.
5293    # This happens at least with the AIX C compiler.
5294    : > sub/conftest.c
5295    for i in 1 2 3 4 5 6; do
5296      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5297      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5298      # Solaris 8's {/usr,}/bin/sh.
5299      touch sub/conftst$i.h
5300    done
5301    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5302
5303    case $depmode in
5304    nosideeffect)
5305      # after this tag, mechanisms are not by side-effect, so they'll
5306      # only be used when explicitly requested
5307      if test "x$enable_dependency_tracking" = xyes; then
5308	continue
5309      else
5310	break
5311      fi
5312      ;;
5313    none) break ;;
5314    esac
5315    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5316    # mode.  It turns out that the SunPro C++ compiler does not properly
5317    # handle `-M -o', and we need to detect this.
5318    if depmode=$depmode \
5319       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5320       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5321       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5322         >/dev/null 2>conftest.err &&
5323       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5324       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5325       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5326      # icc doesn't choke on unknown options, it will just issue warnings
5327      # or remarks (even with -Werror).  So we grep stderr for any message
5328      # that says an option was ignored or not supported.
5329      # When given -MP, icc 7.0 and 7.1 complain thusly:
5330      #   icc: Command line warning: ignoring option '-M'; no argument required
5331      # The diagnosis changed in icc 8.0:
5332      #   icc: Command line remark: option '-MP' not supported
5333      if (grep 'ignoring option' conftest.err ||
5334          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5335        am_cv_CC_dependencies_compiler_type=$depmode
5336        break
5337      fi
5338    fi
5339  done
5340
5341  cd ..
5342  rm -rf conftest.dir
5343else
5344  am_cv_CC_dependencies_compiler_type=none
5345fi
5346
5347fi
5348echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5349echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5350CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5351
5352
5353
5354if
5355  test "x$enable_dependency_tracking" != xno \
5356  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5357  am__fastdepCC_TRUE=
5358  am__fastdepCC_FALSE='#'
5359else
5360  am__fastdepCC_TRUE='#'
5361  am__fastdepCC_FALSE=
5362fi
5363
5364
5365depcc="$CXX"  am_compiler_list=
5366
5367echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5368echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5369if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5370  echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5373  # We make a subdir and do the tests there.  Otherwise we can end up
5374  # making bogus files that we don't know about and never remove.  For
5375  # instance it was reported that on HP-UX the gcc test will end up
5376  # making a dummy file named `D' -- because `-MD' means `put the output
5377  # in D'.
5378  mkdir conftest.dir
5379  # Copy depcomp to subdir because otherwise we won't find it if we're
5380  # using a relative directory.
5381  cp "$am_depcomp" conftest.dir
5382  cd conftest.dir
5383  # We will build objects and dependencies in a subdirectory because
5384  # it helps to detect inapplicable dependency modes.  For instance
5385  # both Tru64's cc and ICC support -MD to output dependencies as a
5386  # side effect of compilation, but ICC will put the dependencies in
5387  # the current directory while Tru64 will put them in the object
5388  # directory.
5389  mkdir sub
5390
5391  am_cv_CXX_dependencies_compiler_type=none
5392  if test "$am_compiler_list" = ""; then
5393     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5394  fi
5395  for depmode in $am_compiler_list; do
5396    # Setup a source with many dependencies, because some compilers
5397    # like to wrap large dependency lists on column 80 (with \), and
5398    # we should not choose a depcomp mode which is confused by this.
5399    #
5400    # We need to recreate these files for each test, as the compiler may
5401    # overwrite some of them when testing with obscure command lines.
5402    # This happens at least with the AIX C compiler.
5403    : > sub/conftest.c
5404    for i in 1 2 3 4 5 6; do
5405      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5406      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5407      # Solaris 8's {/usr,}/bin/sh.
5408      touch sub/conftst$i.h
5409    done
5410    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5411
5412    case $depmode in
5413    nosideeffect)
5414      # after this tag, mechanisms are not by side-effect, so they'll
5415      # only be used when explicitly requested
5416      if test "x$enable_dependency_tracking" = xyes; then
5417	continue
5418      else
5419	break
5420      fi
5421      ;;
5422    none) break ;;
5423    esac
5424    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5425    # mode.  It turns out that the SunPro C++ compiler does not properly
5426    # handle `-M -o', and we need to detect this.
5427    if depmode=$depmode \
5428       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5429       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5430       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5431         >/dev/null 2>conftest.err &&
5432       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5433       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5434       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5435      # icc doesn't choke on unknown options, it will just issue warnings
5436      # or remarks (even with -Werror).  So we grep stderr for any message
5437      # that says an option was ignored or not supported.
5438      # When given -MP, icc 7.0 and 7.1 complain thusly:
5439      #   icc: Command line warning: ignoring option '-M'; no argument required
5440      # The diagnosis changed in icc 8.0:
5441      #   icc: Command line remark: option '-MP' not supported
5442      if (grep 'ignoring option' conftest.err ||
5443          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5444        am_cv_CXX_dependencies_compiler_type=$depmode
5445        break
5446      fi
5447    fi
5448  done
5449
5450  cd ..
5451  rm -rf conftest.dir
5452else
5453  am_cv_CXX_dependencies_compiler_type=none
5454fi
5455
5456fi
5457echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5458echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5459CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5460
5461
5462
5463if
5464  test "x$enable_dependency_tracking" != xno \
5465  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5466  am__fastdepCXX_TRUE=
5467  am__fastdepCXX_FALSE='#'
5468else
5469  am__fastdepCXX_TRUE='#'
5470  am__fastdepCXX_FALSE=
5471fi
5472
5473
5474
5475echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5476echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5477    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5478if test "${enable_maintainer_mode+set}" = set; then
5479  enableval="$enable_maintainer_mode"
5480  USE_MAINTAINER_MODE=$enableval
5481else
5482  USE_MAINTAINER_MODE=no
5483fi;
5484  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5485echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5486
5487
5488if test $USE_MAINTAINER_MODE = yes; then
5489  MAINTAINER_MODE_TRUE=
5490  MAINTAINER_MODE_FALSE='#'
5491else
5492  MAINTAINER_MODE_TRUE='#'
5493  MAINTAINER_MODE_FALSE=
5494fi
5495
5496  MAINT=$MAINTAINER_MODE_TRUE
5497
5498
5499
5500coin_have_externals=no
5501if test "$enable_maintainer_mode" = yes; then
5502
5503  # If maintainer mode is chosen, we make sure that the correct versions
5504  # of the tools are used, and that we know where libtool.m4 is (to
5505  # recreate acinclude.m4)
5506
5507
5508  LIBTOOLM4=
5509  # Normally, $HOME
5510  AUTOTOOLS_DFLT=$HOME
5511
5512  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5513echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5514if test "${ac_cv_use_correct_autotools+set}" = set; then
5515  echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517  ac_cv_use_correct_autotools=check
5518fi
5519echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5520echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5521
5522  if test $ac_cv_use_correct_autotools = check; then
5523    ac_cv_use_correct_autotools=yes
5524    # Check if we have autoconf
5525    # Extract the first word of "autoconf", so it can be a program name with args.
5526set dummy autoconf; ac_word=$2
5527echo "$as_me:$LINENO: checking for $ac_word" >&5
5528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529if test "${ac_cv_prog_have_autoconf+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532  if test -n "$have_autoconf"; then
5533  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540  for ac_exec_ext in '' $ac_executable_extensions; do
5541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542    ac_cv_prog_have_autoconf="yes"
5543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544    break 2
5545  fi
5546done
5547done
5548
5549  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5550fi
5551fi
5552have_autoconf=$ac_cv_prog_have_autoconf
5553if test -n "$have_autoconf"; then
5554  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5555echo "${ECHO_T}$have_autoconf" >&6
5556else
5557  echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559fi
5560
5561    if test $have_autoconf = no; then
5562      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5563echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5564   { (exit 1); exit 1; }; }
5565    fi
5566
5567    # Check whether autoconf is the correct version
5568    correct_version='2.59'
5569    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5570    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5571echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5572    autoconf --version > confauto.out 2>&1
5573    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5574      echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
5576    else
5577      rm -f confauto.out
5578      echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5581echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5582   { (exit 1); exit 1; }; }
5583    fi
5584    rm -f confauto.out
5585
5586    # Check if the executable autoconf is picked up from the correct location
5587    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5588echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5589    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5590    autoconf_dir=`cd $autoconf_dir; pwd`
5591    if test x$AUTOTOOLS_DIR = x; then
5592      want_dir=$AUTOTOOLS_DFLT/bin
5593    else
5594      want_dir=$AUTOTOOLS_DIR/bin
5595    fi
5596    if test $autoconf_dir = `cd $want_dir; pwd`; then
5597      echo "$as_me:$LINENO: result: yes" >&5
5598echo "${ECHO_T}yes" >&6
5599    else
5600      rm -f confauto.out
5601      echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5604echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5605   { (exit 1); exit 1; }; }
5606    fi
5607
5608    # Check if we have automake
5609    # Extract the first word of "automake", so it can be a program name with args.
5610set dummy automake; ac_word=$2
5611echo "$as_me:$LINENO: checking for $ac_word" >&5
5612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613if test "${ac_cv_prog_have_automake+set}" = set; then
5614  echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616  if test -n "$have_automake"; then
5617  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622  IFS=$as_save_IFS
5623  test -z "$as_dir" && as_dir=.
5624  for ac_exec_ext in '' $ac_executable_extensions; do
5625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626    ac_cv_prog_have_automake="yes"
5627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628    break 2
5629  fi
5630done
5631done
5632
5633  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5634fi
5635fi
5636have_automake=$ac_cv_prog_have_automake
5637if test -n "$have_automake"; then
5638  echo "$as_me:$LINENO: result: $have_automake" >&5
5639echo "${ECHO_T}$have_automake" >&6
5640else
5641  echo "$as_me:$LINENO: result: no" >&5
5642echo "${ECHO_T}no" >&6
5643fi
5644
5645    if test $have_automake = no; then
5646      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5647echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5648   { (exit 1); exit 1; }; }
5649    fi
5650
5651    # Check whether automake is the correct version
5652    correct_version='1.9.6'
5653    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5654    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5655echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5656    automake --version > confauto.out 2>&1
5657    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5658      echo "$as_me:$LINENO: result: yes" >&5
5659echo "${ECHO_T}yes" >&6
5660    else
5661      rm -f confauto.out
5662      echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5665echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5666   { (exit 1); exit 1; }; }
5667    fi
5668    rm -f confauto.out
5669
5670    # Check if the executable automake is picked up from the correct location
5671    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5672echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5673    automake_dir=`which automake | sed -e 's=/automake=='`
5674    automake_dir=`cd $automake_dir; pwd`
5675    if test x$AUTOTOOLS_DIR = x; then
5676      want_dir=$AUTOTOOLS_DFLT/bin
5677    else
5678      want_dir=$AUTOTOOLS_DIR/bin
5679    fi
5680    if test $automake_dir = `cd $want_dir; pwd`; then
5681      echo "$as_me:$LINENO: result: yes" >&5
5682echo "${ECHO_T}yes" >&6
5683    else
5684      rm -f confauto.out
5685      echo "$as_me:$LINENO: result: no" >&5
5686echo "${ECHO_T}no" >&6
5687      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5688echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5689   { (exit 1); exit 1; }; }
5690    fi
5691
5692    # Check if this is the correct version of libtool (with escaped dots)
5693    if test x$AUTOTOOLS_DIR = x; then
5694      want_dir=$AUTOTOOLS_DFLT/share
5695    else
5696      want_dir=$AUTOTOOLS_DIR/share
5697    fi
5698    correct_version='1.5.22'
5699    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5700    if test -r $want_dir/libtool/ltmain.sh; then
5701  have_ltmain=yes
5702  :
5703else
5704  have_ltmain=no
5705  :
5706fi
5707
5708    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5709echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5710    if test $have_ltmain = yes; then
5711    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5712        echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714      else
5715        echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5718echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5719   { (exit 1); exit 1; }; }
5720      fi
5721    else
5722      echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5725echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5726   { (exit 1); exit 1; }; }
5727    fi
5728  fi
5729
5730  # Check if we can find the libtool file
5731  if test x$AUTOTOOLS_DIR = x; then
5732    want_dir=$AUTOTOOLS_DFLT/share
5733  else
5734    want_dir=$AUTOTOOLS_DIR/share
5735  fi
5736  if test -r $want_dir/aclocal/libtool.m4; then
5737  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5738  :
5739else
5740  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5741echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5742   { (exit 1); exit 1; }; }
5743  :
5744fi
5745
5746
5747  # Check if we have an Dependencies file
5748  if test -r $srcdir/Dependencies; then
5749    coin_have_externals=yes
5750  fi
5751  # Check if subversion is installed and understands https
5752  # Extract the first word of "svn", so it can be a program name with args.
5753set dummy svn; ac_word=$2
5754echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756if test "${ac_cv_prog_have_svn+set}" = set; then
5757  echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759  if test -n "$have_svn"; then
5760  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767  for ac_exec_ext in '' $ac_executable_extensions; do
5768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_have_svn="yes"
5770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774done
5775
5776  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5777fi
5778fi
5779have_svn=$ac_cv_prog_have_svn
5780if test -n "$have_svn"; then
5781  echo "$as_me:$LINENO: result: $have_svn" >&5
5782echo "${ECHO_T}$have_svn" >&6
5783else
5784  echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
5786fi
5787
5788  if test x$have_svn = xyes; then
5789    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5790echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5791if test "${ac_cv_svn_understands_https+set}" = set; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  svn --version > confauto.out 2>&1
5795                    if $EGREP https confauto.out >/dev/null 2>&1; then
5796                      ac_cv_svn_understands_https=yes
5797                    else
5798                      ac_cv_svn_understands_https=no
5799                      have_svn=no
5800                      ac_cv_prog_have_svn=no
5801                    fi
5802                    rm -f confauto.out
5803fi
5804echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5805echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5806  fi
5807
5808  # Find the location of the BuildTools directory
5809  BUILDTOOLSDIR=
5810  if test -r $srcdir/BuildTools/coin.m4; then
5811    BUILDTOOLSDIR=$srcdir/BuildTools
5812  else
5813    if test -r $srcdir/../BuildTools/coin.m4; then
5814      BUILDTOOLSDIR=$srcdir/../BuildTools
5815    else
5816      if test -r $srcdir/../../BuildTools/coin.m4; then
5817        BUILDTOOLSDIR=$srcdir/../../BuildTools
5818      else
5819        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5820echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5821   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5822      fi
5823    fi
5824  fi
5825
5826
5827  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5828  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5829    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5830  fi
5831
5832  # The following variable is set to the name of the directory where
5833  # the autotool scripts are located
5834
5835  AUX_DIR=$ac_aux_dir
5836fi
5837
5838# helpful variable for the base directory of this package
5839abs_source_dir=`cd $srcdir; pwd`
5840
5841
5842# Stuff for example Makefiles
5843if test x$prefix = xNONE; then
5844  full_prefix=$ac_default_prefix
5845else
5846  full_prefix=$prefix
5847fi
5848full_prefix=`cd $full_prefix ; pwd`
5849
5850abs_lib_dir=$full_prefix/lib
5851
5852abs_include_dir=$full_prefix/include
5853
5854abs_bin_dir=$full_prefix/bin
5855
5856
5857
5858if test $coin_have_externals = yes && test x$have_svn = xyes; then
5859  HAVE_EXTERNALS_TRUE=
5860  HAVE_EXTERNALS_FALSE='#'
5861else
5862  HAVE_EXTERNALS_TRUE='#'
5863  HAVE_EXTERNALS_FALSE=
5864fi
5865
5866
5867# AC_MSG_NOTICE([End automake initialisation.])
5868
5869
5870
5871LIBTOOL=
5872if test -f ../libtool; then
5873  coin_config_dir=..
5874  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5875fi
5876if test "x$LIBTOOL" = x; then
5877  if test -f ../../libtool; then
5878    coin_config_dir=../..
5879    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5880  fi
5881fi
5882
5883if test "x$LIBTOOL" = x; then
5884# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5885  # Stuff for libtool
5886  # Check whether --enable-shared or --disable-shared was given.
5887if test "${enable_shared+set}" = set; then
5888  enableval="$enable_shared"
5889  p=${PACKAGE-default}
5890    case $enableval in
5891    yes) enable_shared=yes ;;
5892    no) enable_shared=no ;;
5893    *)
5894      enable_shared=no
5895      # Look at the argument we got.  We use all the common list separators.
5896      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5897      for pkg in $enableval; do
5898	IFS="$lt_save_ifs"
5899	if test "X$pkg" = "X$p"; then
5900	  enable_shared=yes
5901	fi
5902      done
5903      IFS="$lt_save_ifs"
5904      ;;
5905    esac
5906else
5907  enable_shared=yes
5908fi;
5909
5910# Check whether --enable-fast-install or --disable-fast-install was given.
5911if test "${enable_fast_install+set}" = set; then
5912  enableval="$enable_fast_install"
5913  p=${PACKAGE-default}
5914    case $enableval in
5915    yes) enable_fast_install=yes ;;
5916    no) enable_fast_install=no ;;
5917    *)
5918      enable_fast_install=no
5919      # Look at the argument we got.  We use all the common list separators.
5920      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5921      for pkg in $enableval; do
5922	IFS="$lt_save_ifs"
5923	if test "X$pkg" = "X$p"; then
5924	  enable_fast_install=yes
5925	fi
5926      done
5927      IFS="$lt_save_ifs"
5928      ;;
5929    esac
5930else
5931  enable_fast_install=yes
5932fi;
5933
5934echo "$as_me:$LINENO: checking host system type" >&5
5935echo $ECHO_N "checking host system type... $ECHO_C" >&6
5936if test "${ac_cv_host+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  ac_cv_host_alias=$host_alias
5940test -z "$ac_cv_host_alias" &&
5941  ac_cv_host_alias=$ac_cv_build_alias
5942ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5943  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5944echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5945   { (exit 1); exit 1; }; }
5946
5947fi
5948echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5949echo "${ECHO_T}$ac_cv_host" >&6
5950host=$ac_cv_host
5951host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5952host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5953host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5954
5955
5956echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5957echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5958if test "${lt_cv_path_SED+set}" = set; then
5959  echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961  # Loop through the user's path and test for sed and gsed.
5962# Then use that list of sed's as ones to test for truncation.
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968  for lt_ac_prog in sed gsed; do
5969    for ac_exec_ext in '' $ac_executable_extensions; do
5970      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5971        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5972      fi
5973    done
5974  done
5975done
5976lt_ac_max=0
5977lt_ac_count=0
5978# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5979# along with /bin/sed that truncates output.
5980for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5981  test ! -f $lt_ac_sed && continue
5982  cat /dev/null > conftest.in
5983  lt_ac_count=0
5984  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5985  # Check for GNU sed and select it if it is found.
5986  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5987    lt_cv_path_SED=$lt_ac_sed
5988    break
5989  fi
5990  while true; do
5991    cat conftest.in conftest.in >conftest.tmp
5992    mv conftest.tmp conftest.in
5993    cp conftest.in conftest.nl
5994    echo >>conftest.nl
5995    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5996    cmp -s conftest.out conftest.nl || break
5997    # 10000 chars as input seems more than enough
5998    test $lt_ac_count -gt 10 && break
5999    lt_ac_count=`expr $lt_ac_count + 1`
6000    if test $lt_ac_count -gt $lt_ac_max; then
6001      lt_ac_max=$lt_ac_count
6002      lt_cv_path_SED=$lt_ac_sed
6003    fi
6004  done
6005done
6006
6007fi
6008
6009SED=$lt_cv_path_SED
6010echo "$as_me:$LINENO: result: $SED" >&5
6011echo "${ECHO_T}$SED" >&6
6012
6013
6014# Check whether --with-gnu-ld or --without-gnu-ld was given.
6015if test "${with_gnu_ld+set}" = set; then
6016  withval="$with_gnu_ld"
6017  test "$withval" = no || with_gnu_ld=yes
6018else
6019  with_gnu_ld=no
6020fi;
6021ac_prog=ld
6022if test "$GCC" = yes; then
6023  # Check if gcc -print-prog-name=ld gives a path.
6024  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6025echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6026  case $host in
6027  *-*-mingw*)
6028    # gcc leaves a trailing carriage return which upsets mingw
6029    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6030  *)
6031    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6032  esac
6033  case $ac_prog in
6034    # Accept absolute paths.
6035    [\\/]* | ?:[\\/]*)
6036      re_direlt='/[^/][^/]*/\.\./'
6037      # Canonicalize the pathname of ld
6038      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6039      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6040	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6041      done
6042      test -z "$LD" && LD="$ac_prog"
6043      ;;
6044  "")
6045    # If it fails, then pretend we aren't using GCC.
6046    ac_prog=ld
6047    ;;
6048  *)
6049    # If it is relative, then search for the first ld in PATH.
6050    with_gnu_ld=unknown
6051    ;;
6052  esac
6053elif test "$with_gnu_ld" = yes; then
6054  echo "$as_me:$LINENO: checking for GNU ld" >&5
6055echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6056else
6057  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6058echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6059fi
6060if test "${lt_cv_path_LD+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  if test -z "$LD"; then
6064  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6065  for ac_dir in $PATH; do
6066    IFS="$lt_save_ifs"
6067    test -z "$ac_dir" && ac_dir=.
6068    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6069      lt_cv_path_LD="$ac_dir/$ac_prog"
6070      # Check to see if the program is GNU ld.  I'd rather use --version,
6071      # but apparently some variants of GNU ld only accept -v.
6072      # Break only if it was the GNU/non-GNU ld that we prefer.
6073      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6074      *GNU* | *'with BFD'*)
6075	test "$with_gnu_ld" != no && break
6076	;;
6077      *)
6078	test "$with_gnu_ld" != yes && break
6079	;;
6080      esac
6081    fi
6082  done
6083  IFS="$lt_save_ifs"
6084else
6085  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6086fi
6087fi
6088
6089LD="$lt_cv_path_LD"
6090if test -n "$LD"; then
6091  echo "$as_me:$LINENO: result: $LD" >&5
6092echo "${ECHO_T}$LD" >&6
6093else
6094  echo "$as_me:$LINENO: result: no" >&5
6095echo "${ECHO_T}no" >&6
6096fi
6097test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6098echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6099   { (exit 1); exit 1; }; }
6100echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6101echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6102if test "${lt_cv_prog_gnu_ld+set}" = set; then
6103  echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6106case `$LD -v 2>&1 </dev/null` in
6107*GNU* | *'with BFD'*)
6108  lt_cv_prog_gnu_ld=yes
6109  ;;
6110*)
6111  lt_cv_prog_gnu_ld=no
6112  ;;
6113esac
6114fi
6115echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6116echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6117with_gnu_ld=$lt_cv_prog_gnu_ld
6118
6119
6120echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6121echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6122if test "${lt_cv_ld_reload_flag+set}" = set; then
6123  echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125  lt_cv_ld_reload_flag='-r'
6126fi
6127echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6128echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6129reload_flag=$lt_cv_ld_reload_flag
6130case $reload_flag in
6131"" | " "*) ;;
6132*) reload_flag=" $reload_flag" ;;
6133esac
6134reload_cmds='$LD$reload_flag -o $output$reload_objs'
6135case $host_os in
6136  darwin*)
6137    if test "$GCC" = yes; then
6138      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6139    else
6140      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6141    fi
6142    ;;
6143esac
6144
6145echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6146echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6147if test "${lt_cv_path_NM+set}" = set; then
6148  echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150  if test -n "$NM"; then
6151  # Let the user override the test.
6152  lt_cv_path_NM="$NM"
6153else
6154  lt_nm_to_check="${ac_tool_prefix}nm"
6155  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6156    lt_nm_to_check="$lt_nm_to_check nm"
6157  fi
6158  for lt_tmp_nm in $lt_nm_to_check; do
6159    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6160    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6161      IFS="$lt_save_ifs"
6162      test -z "$ac_dir" && ac_dir=.
6163      tmp_nm="$ac_dir/$lt_tmp_nm"
6164      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6165	# Check to see if the nm accepts a BSD-compat flag.
6166	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6167	#   nm: unknown option "B" ignored
6168	# Tru64's nm complains that /dev/null is an invalid object file
6169	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6170	*/dev/null* | *'Invalid file or object type'*)
6171	  lt_cv_path_NM="$tmp_nm -B"
6172	  break
6173	  ;;
6174	*)
6175	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6176	  */dev/null*)
6177	    lt_cv_path_NM="$tmp_nm -p"
6178	    break
6179	    ;;
6180	  *)
6181	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6182	    continue # so that we can try to find one that supports BSD flags
6183	    ;;
6184	  esac
6185	  ;;
6186	esac
6187      fi
6188    done
6189    IFS="$lt_save_ifs"
6190  done
6191  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6192fi
6193fi
6194echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6195echo "${ECHO_T}$lt_cv_path_NM" >&6
6196NM="$lt_cv_path_NM"
6197
6198echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6199echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6200if test "${lt_cv_deplibs_check_method+set}" = set; then
6201  echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203  lt_cv_file_magic_cmd='$MAGIC_CMD'
6204lt_cv_file_magic_test_file=
6205lt_cv_deplibs_check_method='unknown'
6206# Need to set the preceding variable on all platforms that support
6207# interlibrary dependencies.
6208# 'none' -- dependencies not supported.
6209# `unknown' -- same as none, but documents that we really don't know.
6210# 'pass_all' -- all dependencies passed with no checks.
6211# 'test_compile' -- check by making test program.
6212# 'file_magic [[regex]]' -- check by looking for files in library path
6213# which responds to the $file_magic_cmd with a given extended regex.
6214# If you have `file' or equivalent on your system and you're not sure
6215# whether `pass_all' will *always* work, you probably want this one.
6216
6217case $host_os in
6218aix4* | aix5*)
6219  lt_cv_deplibs_check_method=pass_all
6220  ;;
6221
6222beos*)
6223  lt_cv_deplibs_check_method=pass_all
6224  ;;
6225
6226bsdi[45]*)
6227  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6228  lt_cv_file_magic_cmd='/usr/bin/file -L'
6229  lt_cv_file_magic_test_file=/shlib/libc.so
6230  ;;
6231
6232cygwin*)
6233  # func_win32_libid is a shell function defined in ltmain.sh
6234  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6235  lt_cv_file_magic_cmd='func_win32_libid'
6236  ;;
6237
6238mingw* | pw32*)
6239  # Base MSYS/MinGW do not provide the 'file' command needed by
6240  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6241  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6242  lt_cv_file_magic_cmd='$OBJDUMP -f'
6243  ;;
6244
6245darwin* | rhapsody*)
6246  lt_cv_deplibs_check_method=pass_all
6247  ;;
6248
6249freebsd* | kfreebsd*-gnu | dragonfly*)
6250  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6251    case $host_cpu in
6252    i*86 )
6253      # Not sure whether the presence of OpenBSD here was a mistake.
6254      # Let's accept both of them until this is cleared up.
6255      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6256      lt_cv_file_magic_cmd=/usr/bin/file
6257      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6258      ;;
6259    esac
6260  else
6261    lt_cv_deplibs_check_method=pass_all
6262  fi
6263  ;;
6264
6265gnu*)
6266  lt_cv_deplibs_check_method=pass_all
6267  ;;
6268
6269hpux10.20* | hpux11*)
6270  lt_cv_file_magic_cmd=/usr/bin/file
6271  case $host_cpu in
6272  ia64*)
6273    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6274    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6275    ;;
6276  hppa*64*)
6277    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]'
6278    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6279    ;;
6280  *)
6281    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6282    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6283    ;;
6284  esac
6285  ;;
6286
6287interix3*)
6288  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6289  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6290  ;;
6291
6292irix5* | irix6* | nonstopux*)
6293  case $LD in
6294  *-32|*"-32 ") libmagic=32-bit;;
6295  *-n32|*"-n32 ") libmagic=N32;;
6296  *-64|*"-64 ") libmagic=64-bit;;
6297  *) libmagic=never-match;;
6298  esac
6299  lt_cv_deplibs_check_method=pass_all
6300  ;;
6301
6302# This must be Linux ELF.
6303linux*)
6304  lt_cv_deplibs_check_method=pass_all
6305  ;;
6306
6307netbsd*)
6308  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6309    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6310  else
6311    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6312  fi
6313  ;;
6314
6315newos6*)
6316  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6317  lt_cv_file_magic_cmd=/usr/bin/file
6318  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6319  ;;
6320
6321nto-qnx*)
6322  lt_cv_deplibs_check_method=unknown
6323  ;;
6324
6325openbsd*)
6326  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6327    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6328  else
6329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6330  fi
6331  ;;
6332
6333osf3* | osf4* | osf5*)
6334  lt_cv_deplibs_check_method=pass_all
6335  ;;
6336
6337solaris*)
6338  lt_cv_deplibs_check_method=pass_all
6339  ;;
6340
6341sysv4 | sysv4.3*)
6342  case $host_vendor in
6343  motorola)
6344    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]'
6345    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6346    ;;
6347  ncr)
6348    lt_cv_deplibs_check_method=pass_all
6349    ;;
6350  sequent)
6351    lt_cv_file_magic_cmd='/bin/file'
6352    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6353    ;;
6354  sni)
6355    lt_cv_file_magic_cmd='/bin/file'
6356    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6357    lt_cv_file_magic_test_file=/lib/libc.so
6358    ;;
6359  siemens)
6360    lt_cv_deplibs_check_method=pass_all
6361    ;;
6362  pc)
6363    lt_cv_deplibs_check_method=pass_all
6364    ;;
6365  esac
6366  ;;
6367
6368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6369  lt_cv_deplibs_check_method=pass_all
6370  ;;
6371esac
6372
6373fi
6374echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6375echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6376file_magic_cmd=$lt_cv_file_magic_cmd
6377deplibs_check_method=$lt_cv_deplibs_check_method
6378test -z "$deplibs_check_method" && deplibs_check_method=unknown
6379
6380
6381
6382
6383# If no C compiler was specified, use CC.
6384LTCC=${LTCC-"$CC"}
6385
6386# If no C compiler flags were specified, use CFLAGS.
6387LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6388
6389# Allow CC to be a program name with arguments.
6390compiler=$CC
6391
6392# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6393if test "${enable_libtool_lock+set}" = set; then
6394  enableval="$enable_libtool_lock"
6395
6396fi;
6397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6398
6399# Some flags need to be propagated to the compiler or linker for good
6400# libtool support.
6401case $host in
6402ia64-*-hpux*)
6403  # Find out which ABI we are using.
6404  echo 'int i;' > conftest.$ac_ext
6405  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406  (eval $ac_compile) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }; then
6410    case `/usr/bin/file conftest.$ac_objext` in
6411    *ELF-32*)
6412      HPUX_IA64_MODE="32"
6413      ;;
6414    *ELF-64*)
6415      HPUX_IA64_MODE="64"
6416      ;;
6417    esac
6418  fi
6419  rm -rf conftest*
6420  ;;
6421*-*-irix6*)
6422  # Find out which ABI we are using.
6423  echo '#line 6423 "configure"' > conftest.$ac_ext
6424  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425  (eval $ac_compile) 2>&5
6426  ac_status=$?
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); }; then
6429   if test "$lt_cv_prog_gnu_ld" = yes; then
6430    case `/usr/bin/file conftest.$ac_objext` in
6431    *32-bit*)
6432      LD="${LD-ld} -melf32bsmip"
6433      ;;
6434    *N32*)
6435      LD="${LD-ld} -melf32bmipn32"
6436      ;;
6437    *64-bit*)
6438      LD="${LD-ld} -melf64bmip"
6439      ;;
6440    esac
6441   else
6442    case `/usr/bin/file conftest.$ac_objext` in
6443    *32-bit*)
6444      LD="${LD-ld} -32"
6445      ;;
6446    *N32*)
6447      LD="${LD-ld} -n32"
6448      ;;
6449    *64-bit*)
6450      LD="${LD-ld} -64"
6451      ;;
6452    esac
6453   fi
6454  fi
6455  rm -rf conftest*
6456  ;;
6457
6458x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6459  # Find out which ABI we are using.
6460  echo 'int i;' > conftest.$ac_ext
6461  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462  (eval $ac_compile) 2>&5
6463  ac_status=$?
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); }; then
6466    case `/usr/bin/file conftest.o` in
6467    *32-bit*)
6468      case $host in
6469        x86_64-*linux*)
6470          LD="${LD-ld} -m elf_i386"
6471          ;;
6472        ppc64-*linux*|powerpc64-*linux*)
6473          LD="${LD-ld} -m elf32ppclinux"
6474          ;;
6475        s390x-*linux*)
6476          LD="${LD-ld} -m elf_s390"
6477          ;;
6478        sparc64-*linux*)
6479          LD="${LD-ld} -m elf32_sparc"
6480          ;;
6481      esac
6482      ;;
6483    *64-bit*)
6484      case $host in
6485        x86_64-*linux*)
6486          LD="${LD-ld} -m elf_x86_64"
6487          ;;
6488        ppc*-*linux*|powerpc*-*linux*)
6489          LD="${LD-ld} -m elf64ppc"
6490          ;;
6491        s390*-*linux*)
6492          LD="${LD-ld} -m elf64_s390"
6493          ;;
6494        sparc*-*linux*)
6495          LD="${LD-ld} -m elf64_sparc"
6496          ;;
6497      esac
6498      ;;
6499    esac
6500  fi
6501  rm -rf conftest*
6502  ;;
6503
6504*-*-sco3.2v5*)
6505  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6506  SAVE_CFLAGS="$CFLAGS"
6507  CFLAGS="$CFLAGS -belf"
6508  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6510if test "${lt_cv_cc_needs_belf+set}" = set; then
6511  echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513  ac_ext=c
6514ac_cpp='$CPP $CPPFLAGS'
6515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
6519     cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h.  */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h.  */
6525
6526int
6527main ()
6528{
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534rm -f conftest.$ac_objext conftest$ac_exeext
6535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536  (eval $ac_link) 2>conftest.er1
6537  ac_status=$?
6538  grep -v '^ *+' conftest.er1 >conftest.err
6539  rm -f conftest.er1
6540  cat conftest.err >&5
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); } &&
6543	 { ac_try='test -z "$ac_c_werror_flag"
6544			 || test ! -s conftest.err'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; } &&
6550	 { ac_try='test -s conftest$ac_exeext'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; }; then
6556  lt_cv_cc_needs_belf=yes
6557else
6558  echo "$as_me: failed program was:" >&5
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561lt_cv_cc_needs_belf=no
6562fi
6563rm -f conftest.err conftest.$ac_objext \
6564      conftest$ac_exeext conftest.$ac_ext
6565     ac_ext=c
6566ac_cpp='$CPP $CPPFLAGS'
6567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
6571fi
6572echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6573echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6574  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6575    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6576    CFLAGS="$SAVE_CFLAGS"
6577  fi
6578  ;;
6579sparc*-*solaris*)
6580  # Find out which ABI we are using.
6581  echo 'int i;' > conftest.$ac_ext
6582  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583  (eval $ac_compile) 2>&5
6584  ac_status=$?
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); }; then
6587    case `/usr/bin/file conftest.o` in
6588    *64-bit*)
6589      case $lt_cv_prog_gnu_ld in
6590      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6591      *)    LD="${LD-ld} -64" ;;
6592      esac
6593      ;;
6594    esac
6595  fi
6596  rm -rf conftest*
6597  ;;
6598
6599
6600esac
6601
6602need_locks="$enable_libtool_lock"
6603
6604
6605ac_ext=c
6606ac_cpp='$CPP $CPPFLAGS'
6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6611echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6612# On Suns, sometimes $CPP names a directory.
6613if test -n "$CPP" && test -d "$CPP"; then
6614  CPP=
6615fi
6616if test -z "$CPP"; then
6617  if test "${ac_cv_prog_CPP+set}" = set; then
6618  echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620      # Double quotes because CPP needs to be expanded
6621    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6622    do
6623      ac_preproc_ok=false
6624for ac_c_preproc_warn_flag in '' yes
6625do
6626  # Use a header file that comes with gcc, so configuring glibc
6627  # with a fresh cross-compiler works.
6628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629  # <limits.h> exists even on freestanding compilers.
6630  # On the NeXT, cc -E runs the code through the compiler's parser,
6631  # not just through cpp. "Syntax error" is here to catch this case.
6632  cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h.  */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h.  */
6638#ifdef __STDC__
6639# include <limits.h>
6640#else
6641# include <assert.h>
6642#endif
6643		     Syntax error
6644_ACEOF
6645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } >/dev/null; then
6653  if test -s conftest.err; then
6654    ac_cpp_err=$ac_c_preproc_warn_flag
6655    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6656  else
6657    ac_cpp_err=
6658  fi
6659else
6660  ac_cpp_err=yes
6661fi
6662if test -z "$ac_cpp_err"; then
6663  :
6664else
6665  echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668  # Broken: fails on valid input.
6669continue
6670fi
6671rm -f conftest.err conftest.$ac_ext
6672
6673  # OK, works on sane cases.  Now check whether non-existent headers
6674  # can be detected and how.
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681#include <ac_nonexistent.h>
6682_ACEOF
6683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6684  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6685  ac_status=$?
6686  grep -v '^ *+' conftest.er1 >conftest.err
6687  rm -f conftest.er1
6688  cat conftest.err >&5
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); } >/dev/null; then
6691  if test -s conftest.err; then
6692    ac_cpp_err=$ac_c_preproc_warn_flag
6693    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6694  else
6695    ac_cpp_err=
6696  fi
6697else
6698  ac_cpp_err=yes
6699fi
6700if test -z "$ac_cpp_err"; then
6701  # Broken: success on invalid input.
6702continue
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707  # Passes both tests.
6708ac_preproc_ok=:
6709break
6710fi
6711rm -f conftest.err conftest.$ac_ext
6712
6713done
6714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6715rm -f conftest.err conftest.$ac_ext
6716if $ac_preproc_ok; then
6717  break
6718fi
6719
6720    done
6721    ac_cv_prog_CPP=$CPP
6722
6723fi
6724  CPP=$ac_cv_prog_CPP
6725else
6726  ac_cv_prog_CPP=$CPP
6727fi
6728echo "$as_me:$LINENO: result: $CPP" >&5
6729echo "${ECHO_T}$CPP" >&6
6730ac_preproc_ok=false
6731for ac_c_preproc_warn_flag in '' yes
6732do
6733  # Use a header file that comes with gcc, so configuring glibc
6734  # with a fresh cross-compiler works.
6735  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6736  # <limits.h> exists even on freestanding compilers.
6737  # On the NeXT, cc -E runs the code through the compiler's parser,
6738  # not just through cpp. "Syntax error" is here to catch this case.
6739  cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h.  */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h.  */
6745#ifdef __STDC__
6746# include <limits.h>
6747#else
6748# include <assert.h>
6749#endif
6750		     Syntax error
6751_ACEOF
6752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6754  ac_status=$?
6755  grep -v '^ *+' conftest.er1 >conftest.err
6756  rm -f conftest.er1
6757  cat conftest.err >&5
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); } >/dev/null; then
6760  if test -s conftest.err; then
6761    ac_cpp_err=$ac_c_preproc_warn_flag
6762    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6763  else
6764    ac_cpp_err=
6765  fi
6766else
6767  ac_cpp_err=yes
6768fi
6769if test -z "$ac_cpp_err"; then
6770  :
6771else
6772  echo "$as_me: failed program was:" >&5
6773sed 's/^/| /' conftest.$ac_ext >&5
6774
6775  # Broken: fails on valid input.
6776continue
6777fi
6778rm -f conftest.err conftest.$ac_ext
6779
6780  # OK, works on sane cases.  Now check whether non-existent headers
6781  # can be detected and how.
6782  cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788#include <ac_nonexistent.h>
6789_ACEOF
6790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6791  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6792  ac_status=$?
6793  grep -v '^ *+' conftest.er1 >conftest.err
6794  rm -f conftest.er1
6795  cat conftest.err >&5
6796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797  (exit $ac_status); } >/dev/null; then
6798  if test -s conftest.err; then
6799    ac_cpp_err=$ac_c_preproc_warn_flag
6800    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6801  else
6802    ac_cpp_err=
6803  fi
6804else
6805  ac_cpp_err=yes
6806fi
6807if test -z "$ac_cpp_err"; then
6808  # Broken: success on invalid input.
6809continue
6810else
6811  echo "$as_me: failed program was:" >&5
6812sed 's/^/| /' conftest.$ac_ext >&5
6813
6814  # Passes both tests.
6815ac_preproc_ok=:
6816break
6817fi
6818rm -f conftest.err conftest.$ac_ext
6819
6820done
6821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6822rm -f conftest.err conftest.$ac_ext
6823if $ac_preproc_ok; then
6824  :
6825else
6826  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6827See \`config.log' for more details." >&5
6828echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6829See \`config.log' for more details." >&2;}
6830   { (exit 1); exit 1; }; }
6831fi
6832
6833ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838
6839
6840echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6841echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6842if test "${ac_cv_header_stdc+set}" = set; then
6843  echo $ECHO_N "(cached) $ECHO_C" >&6
6844else
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#include <stdlib.h>
6852#include <stdarg.h>
6853#include <string.h>
6854#include <float.h>
6855
6856int
6857main ()
6858{
6859
6860  ;
6861  return 0;
6862}
6863_ACEOF
6864rm -f conftest.$ac_objext
6865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866  (eval $ac_compile) 2>conftest.er1
6867  ac_status=$?
6868  grep -v '^ *+' conftest.er1 >conftest.err
6869  rm -f conftest.er1
6870  cat conftest.err >&5
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); } &&
6873	 { ac_try='test -z "$ac_c_werror_flag"
6874			 || test ! -s conftest.err'
6875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876  (eval $ac_try) 2>&5
6877  ac_status=$?
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); }; } &&
6880	 { ac_try='test -s conftest.$ac_objext'
6881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882  (eval $ac_try) 2>&5
6883  ac_status=$?
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); }; }; then
6886  ac_cv_header_stdc=yes
6887else
6888  echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891ac_cv_header_stdc=no
6892fi
6893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894
6895if test $ac_cv_header_stdc = yes; then
6896  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6897  cat >conftest.$ac_ext <<_ACEOF
6898/* confdefs.h.  */
6899_ACEOF
6900cat confdefs.h >>conftest.$ac_ext
6901cat >>conftest.$ac_ext <<_ACEOF
6902/* end confdefs.h.  */
6903#include <string.h>
6904
6905_ACEOF
6906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907  $EGREP "memchr" >/dev/null 2>&1; then
6908  :
6909else
6910  ac_cv_header_stdc=no
6911fi
6912rm -f conftest*
6913
6914fi
6915
6916if test $ac_cv_header_stdc = yes; then
6917  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6918  cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h.  */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h.  */
6924#include <stdlib.h>
6925
6926_ACEOF
6927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6928  $EGREP "free" >/dev/null 2>&1; then
6929  :
6930else
6931  ac_cv_header_stdc=no
6932fi
6933rm -f conftest*
6934
6935fi
6936
6937if test $ac_cv_header_stdc = yes; then
6938  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6939  if test "$cross_compiling" = yes; then
6940  :
6941else
6942  cat >conftest.$ac_ext <<_ACEOF
6943/* confdefs.h.  */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h.  */
6948#include <ctype.h>
6949#if ((' ' & 0x0FF) == 0x020)
6950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6952#else
6953# define ISLOWER(c) \
6954		   (('a' <= (c) && (c) <= 'i') \
6955		     || ('j' <= (c) && (c) <= 'r') \
6956		     || ('s' <= (c) && (c) <= 'z'))
6957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6958#endif
6959
6960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6961int
6962main ()
6963{
6964  int i;
6965  for (i = 0; i < 256; i++)
6966    if (XOR (islower (i), ISLOWER (i))
6967	|| toupper (i) != TOUPPER (i))
6968      exit(2);
6969  exit (0);
6970}
6971_ACEOF
6972rm -f conftest$ac_exeext
6973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974  (eval $ac_link) 2>&5
6975  ac_status=$?
6976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979  (eval $ac_try) 2>&5
6980  ac_status=$?
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); }; }; then
6983  :
6984else
6985  echo "$as_me: program exited with status $ac_status" >&5
6986echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989( exit $ac_status )
6990ac_cv_header_stdc=no
6991fi
6992rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6993fi
6994fi
6995fi
6996echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6997echo "${ECHO_T}$ac_cv_header_stdc" >&6
6998if test $ac_cv_header_stdc = yes; then
6999
7000cat >>confdefs.h <<\_ACEOF
7001#define STDC_HEADERS 1
7002_ACEOF
7003
7004fi
7005
7006# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7017		  inttypes.h stdint.h unistd.h
7018do
7019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7020echo "$as_me:$LINENO: checking for $ac_header" >&5
7021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7022if eval "test \"\${$as_ac_Header+set}\" = set"; then
7023  echo $ECHO_N "(cached) $ECHO_C" >&6
7024else
7025  cat >conftest.$ac_ext <<_ACEOF
7026/* confdefs.h.  */
7027_ACEOF
7028cat confdefs.h >>conftest.$ac_ext
7029cat >>conftest.$ac_ext <<_ACEOF
7030/* end confdefs.h.  */
7031$ac_includes_default
7032
7033#include <$ac_header>
7034_ACEOF
7035rm -f conftest.$ac_objext
7036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037  (eval $ac_compile) 2>conftest.er1
7038  ac_status=$?
7039  grep -v '^ *+' conftest.er1 >conftest.err
7040  rm -f conftest.er1
7041  cat conftest.err >&5
7042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043  (exit $ac_status); } &&
7044	 { ac_try='test -z "$ac_c_werror_flag"
7045			 || test ! -s conftest.err'
7046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047  (eval $ac_try) 2>&5
7048  ac_status=$?
7049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050  (exit $ac_status); }; } &&
7051	 { ac_try='test -s conftest.$ac_objext'
7052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053  (eval $ac_try) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }; }; then
7057  eval "$as_ac_Header=yes"
7058else
7059  echo "$as_me: failed program was:" >&5
7060sed 's/^/| /' conftest.$ac_ext >&5
7061
7062eval "$as_ac_Header=no"
7063fi
7064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7065fi
7066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7068if test `eval echo '${'$as_ac_Header'}'` = yes; then
7069  cat >>confdefs.h <<_ACEOF
7070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7071_ACEOF
7072
7073fi
7074
7075done
7076
7077
7078
7079for ac_header in dlfcn.h
7080do
7081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7082if eval "test \"\${$as_ac_Header+set}\" = set"; then
7083  echo "$as_me:$LINENO: checking for $ac_header" >&5
7084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7085if eval "test \"\${$as_ac_Header+set}\" = set"; then
7086  echo $ECHO_N "(cached) $ECHO_C" >&6
7087fi
7088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7090else
7091  # Is the header compilable?
7092echo "$as_me:$LINENO: checking $ac_header usability" >&5
7093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7094cat >conftest.$ac_ext <<_ACEOF
7095/* confdefs.h.  */
7096_ACEOF
7097cat confdefs.h >>conftest.$ac_ext
7098cat >>conftest.$ac_ext <<_ACEOF
7099/* end confdefs.h.  */
7100$ac_includes_default
7101#include <$ac_header>
7102_ACEOF
7103rm -f conftest.$ac_objext
7104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105  (eval $ac_compile) 2>conftest.er1
7106  ac_status=$?
7107  grep -v '^ *+' conftest.er1 >conftest.err
7108  rm -f conftest.er1
7109  cat conftest.err >&5
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); } &&
7112	 { ac_try='test -z "$ac_c_werror_flag"
7113			 || test ! -s conftest.err'
7114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115  (eval $ac_try) 2>&5
7116  ac_status=$?
7117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); }; } &&
7119	 { ac_try='test -s conftest.$ac_objext'
7120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121  (eval $ac_try) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); }; }; then
7125  ac_header_compiler=yes
7126else
7127  echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130ac_header_compiler=no
7131fi
7132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7134echo "${ECHO_T}$ac_header_compiler" >&6
7135
7136# Is the header present?
7137echo "$as_me:$LINENO: checking $ac_header presence" >&5
7138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7139cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h.  */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h.  */
7145#include <$ac_header>
7146_ACEOF
7147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7148  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7149  ac_status=$?
7150  grep -v '^ *+' conftest.er1 >conftest.err
7151  rm -f conftest.er1
7152  cat conftest.err >&5
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); } >/dev/null; then
7155  if test -s conftest.err; then
7156    ac_cpp_err=$ac_c_preproc_warn_flag
7157    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7158  else
7159    ac_cpp_err=
7160  fi
7161else
7162  ac_cpp_err=yes
7163fi
7164if test -z "$ac_cpp_err"; then
7165  ac_header_preproc=yes
7166else
7167  echo "$as_me: failed program was:" >&5
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
7170  ac_header_preproc=no
7171fi
7172rm -f conftest.err conftest.$ac_ext
7173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7174echo "${ECHO_T}$ac_header_preproc" >&6
7175
7176# So?  What about this header?
7177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7178  yes:no: )
7179    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7183    ac_header_preproc=yes
7184    ;;
7185  no:yes:* )
7186    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7188    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7189echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7190    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7192    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7193echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7194    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7196    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7198    (
7199      cat <<\_ASBOX
7200## ------------------------------------------------------------------ ##
7201## Report this to https://github.com/coin-or/CHiPPS-BiCePS/issues/new ##
7202## ------------------------------------------------------------------ ##
7203_ASBOX
7204    ) |
7205      sed "s/^/$as_me: WARNING:     /" >&2
7206    ;;
7207esac
7208echo "$as_me:$LINENO: checking for $ac_header" >&5
7209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7210if eval "test \"\${$as_ac_Header+set}\" = set"; then
7211  echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213  eval "$as_ac_Header=\$ac_header_preproc"
7214fi
7215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217
7218fi
7219if test `eval echo '${'$as_ac_Header'}'` = yes; then
7220  cat >>confdefs.h <<_ACEOF
7221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7222_ACEOF
7223
7224fi
7225
7226done
7227
7228
7229
7230if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7231    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7232    (test "X$CXX" != "Xg++"))) ; then
7233  ac_ext=cc
7234ac_cpp='$CXXCPP $CPPFLAGS'
7235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7238echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7239echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7240if test -z "$CXXCPP"; then
7241  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7242  echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244      # Double quotes because CXXCPP needs to be expanded
7245    for CXXCPP in "$CXX -E" "/lib/cpp"
7246    do
7247      ac_preproc_ok=false
7248for ac_cxx_preproc_warn_flag in '' yes
7249do
7250  # Use a header file that comes with gcc, so configuring glibc
7251  # with a fresh cross-compiler works.
7252  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253  # <limits.h> exists even on freestanding compilers.
7254  # On the NeXT, cc -E runs the code through the compiler's parser,
7255  # not just through cpp. "Syntax error" is here to catch this case.
7256  cat >conftest.$ac_ext <<_ACEOF
7257/* confdefs.h.  */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h.  */
7262#ifdef __STDC__
7263# include <limits.h>
7264#else
7265# include <assert.h>
7266#endif
7267		     Syntax error
7268_ACEOF
7269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7271  ac_status=$?
7272  grep -v '^ *+' conftest.er1 >conftest.err
7273  rm -f conftest.er1
7274  cat conftest.err >&5
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); } >/dev/null; then
7277  if test -s conftest.err; then
7278    ac_cpp_err=$ac_cxx_preproc_warn_flag
7279    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7280  else
7281    ac_cpp_err=
7282  fi
7283else
7284  ac_cpp_err=yes
7285fi
7286if test -z "$ac_cpp_err"; then
7287  :
7288else
7289  echo "$as_me: failed program was:" >&5
7290sed 's/^/| /' conftest.$ac_ext >&5
7291
7292  # Broken: fails on valid input.
7293continue
7294fi
7295rm -f conftest.err conftest.$ac_ext
7296
7297  # OK, works on sane cases.  Now check whether non-existent headers
7298  # can be detected and how.
7299  cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h.  */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h.  */
7305#include <ac_nonexistent.h>
7306_ACEOF
7307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7308  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7309  ac_status=$?
7310  grep -v '^ *+' conftest.er1 >conftest.err
7311  rm -f conftest.er1
7312  cat conftest.err >&5
7313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314  (exit $ac_status); } >/dev/null; then
7315  if test -s conftest.err; then
7316    ac_cpp_err=$ac_cxx_preproc_warn_flag
7317    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7318  else
7319    ac_cpp_err=
7320  fi
7321else
7322  ac_cpp_err=yes
7323fi
7324if test -z "$ac_cpp_err"; then
7325  # Broken: success on invalid input.
7326continue
7327else
7328  echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
7331  # Passes both tests.
7332ac_preproc_ok=:
7333break
7334fi
7335rm -f conftest.err conftest.$ac_ext
7336
7337done
7338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7339rm -f conftest.err conftest.$ac_ext
7340if $ac_preproc_ok; then
7341  break
7342fi
7343
7344    done
7345    ac_cv_prog_CXXCPP=$CXXCPP
7346
7347fi
7348  CXXCPP=$ac_cv_prog_CXXCPP
7349else
7350  ac_cv_prog_CXXCPP=$CXXCPP
7351fi
7352echo "$as_me:$LINENO: result: $CXXCPP" >&5
7353echo "${ECHO_T}$CXXCPP" >&6
7354ac_preproc_ok=false
7355for ac_cxx_preproc_warn_flag in '' yes
7356do
7357  # Use a header file that comes with gcc, so configuring glibc
7358  # with a fresh cross-compiler works.
7359  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7360  # <limits.h> exists even on freestanding compilers.
7361  # On the NeXT, cc -E runs the code through the compiler's parser,
7362  # not just through cpp. "Syntax error" is here to catch this case.
7363  cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h.  */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h.  */
7369#ifdef __STDC__
7370# include <limits.h>
7371#else
7372# include <assert.h>
7373#endif
7374		     Syntax error
7375_ACEOF
7376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } >/dev/null; then
7384  if test -s conftest.err; then
7385    ac_cpp_err=$ac_cxx_preproc_warn_flag
7386    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7387  else
7388    ac_cpp_err=
7389  fi
7390else
7391  ac_cpp_err=yes
7392fi
7393if test -z "$ac_cpp_err"; then
7394  :
7395else
7396  echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399  # Broken: fails on valid input.
7400continue
7401fi
7402rm -f conftest.err conftest.$ac_ext
7403
7404  # OK, works on sane cases.  Now check whether non-existent headers
7405  # can be detected and how.
7406  cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h.  */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h.  */
7412#include <ac_nonexistent.h>
7413_ACEOF
7414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7415  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7416  ac_status=$?
7417  grep -v '^ *+' conftest.er1 >conftest.err
7418  rm -f conftest.er1
7419  cat conftest.err >&5
7420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421  (exit $ac_status); } >/dev/null; then
7422  if test -s conftest.err; then
7423    ac_cpp_err=$ac_cxx_preproc_warn_flag
7424    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7425  else
7426    ac_cpp_err=
7427  fi
7428else
7429  ac_cpp_err=yes
7430fi
7431if test -z "$ac_cpp_err"; then
7432  # Broken: success on invalid input.
7433continue
7434else
7435  echo "$as_me: failed program was:" >&5
7436sed 's/^/| /' conftest.$ac_ext >&5
7437
7438  # Passes both tests.
7439ac_preproc_ok=:
7440break
7441fi
7442rm -f conftest.err conftest.$ac_ext
7443
7444done
7445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7446rm -f conftest.err conftest.$ac_ext
7447if $ac_preproc_ok; then
7448  :
7449else
7450  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7451See \`config.log' for more details." >&5
7452echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7453See \`config.log' for more details." >&2;}
7454   { (exit 1); exit 1; }; }
7455fi
7456
7457ac_ext=cc
7458ac_cpp='$CXXCPP $CPPFLAGS'
7459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7462
7463fi
7464
7465
7466# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7467
7468# find the maximum length of command line arguments
7469echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7470echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7471if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7472  echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474    i=0
7475  teststring="ABCD"
7476
7477  case $build_os in
7478  msdosdjgpp*)
7479    # On DJGPP, this test can blow up pretty badly due to problems in libc
7480    # (any single argument exceeding 2000 bytes causes a buffer overrun
7481    # during glob expansion).  Even if it were fixed, the result of this
7482    # check would be larger than it should be.
7483    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7484    ;;
7485
7486  gnu*)
7487    # Under GNU Hurd, this test is not required because there is
7488    # no limit to the length of command line arguments.
7489    # Libtool will interpret -1 as no limit whatsoever
7490    lt_cv_sys_max_cmd_len=-1;
7491    ;;
7492
7493  cygwin* | mingw*)
7494    # On Win9x/ME, this test blows up -- it succeeds, but takes
7495    # about 5 minutes as the teststring grows exponentially.
7496    # Worse, since 9x/ME are not pre-emptively multitasking,
7497    # you end up with a "frozen" computer, even though with patience
7498    # the test eventually succeeds (with a max line length of 256k).
7499    # Instead, let's just punt: use the minimum linelength reported by
7500    # all of the supported platforms: 8192 (on NT/2K/XP).
7501    lt_cv_sys_max_cmd_len=8192;
7502    ;;
7503
7504  amigaos*)
7505    # On AmigaOS with pdksh, this test takes hours, literally.
7506    # So we just punt and use a minimum line length of 8192.
7507    lt_cv_sys_max_cmd_len=8192;
7508    ;;
7509
7510  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7511    # This has been around since 386BSD, at least.  Likely further.
7512    if test -x /sbin/sysctl; then
7513      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7514    elif test -x /usr/sbin/sysctl; then
7515      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7516    else
7517      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7518    fi
7519    # And add a safety zone
7520    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7521    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7522    ;;
7523
7524  interix*)
7525    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7526    lt_cv_sys_max_cmd_len=196608
7527    ;;
7528
7529  osf*)
7530    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7531    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7532    # nice to cause kernel panics so lets avoid the loop below.
7533    # First set a reasonable default.
7534    lt_cv_sys_max_cmd_len=16384
7535    #
7536    if test -x /sbin/sysconfig; then
7537      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7538        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7539      esac
7540    fi
7541    ;;
7542  sco3.2v5*)
7543    lt_cv_sys_max_cmd_len=102400
7544    ;;
7545  sysv5* | sco5v6* | sysv4.2uw2*)
7546    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7547    if test -n "$kargmax"; then
7548      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7549    else
7550      lt_cv_sys_max_cmd_len=32768
7551    fi
7552    ;;
7553  *)
7554    # If test is not a shell built-in, we'll probably end up computing a
7555    # maximum length that is only half of the actual maximum length, but
7556    # we can't tell.
7557    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7558    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7559	       = "XX$teststring") >/dev/null 2>&1 &&
7560	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7561	    lt_cv_sys_max_cmd_len=$new_result &&
7562	    test $i != 17 # 1/2 MB should be enough
7563    do
7564      i=`expr $i + 1`
7565      teststring=$teststring$teststring
7566    done
7567    teststring=
7568    # Add a significant safety factor because C++ compilers can tack on massive
7569    # amounts of additional arguments before passing them to the linker.
7570    # It appears as though 1/2 is a usable value.
7571    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7572    ;;
7573  esac
7574
7575fi
7576
7577if test -n $lt_cv_sys_max_cmd_len ; then
7578  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7579echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7580else
7581  echo "$as_me:$LINENO: result: none" >&5
7582echo "${ECHO_T}none" >&6
7583fi
7584
7585
7586
7587
7588# Check for command to grab the raw symbol name followed by C symbol from nm.
7589echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7590echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7591if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7592  echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594
7595# These are sane defaults that work on at least a few old systems.
7596# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7597
7598# Character class describing NM global symbol codes.
7599symcode='[BCDEGRST]'
7600
7601# Regexp to match symbols that can be accessed directly from C.
7602sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7603
7604# Transform an extracted symbol line into a proper C declaration
7605lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7606
7607# Transform an extracted symbol line into symbol name and symbol address
7608lt_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'"
7609
7610# Define system-specific variables.
7611case $host_os in
7612aix*)
7613  symcode='[BCDT]'
7614  ;;
7615cygwin* | mingw* | pw32*)
7616  symcode='[ABCDGISTW]'
7617  ;;
7618hpux*) # Its linker distinguishes data from code symbols
7619  if test "$host_cpu" = ia64; then
7620    symcode='[ABCDEGRST]'
7621  fi
7622  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7623  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'"
7624  ;;
7625linux*)
7626  if test "$host_cpu" = ia64; then
7627    symcode='[ABCDGIRSTW]'
7628    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7629    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'"
7630  fi
7631  ;;
7632irix* | nonstopux*)
7633  symcode='[BCDEGRST]'
7634  ;;
7635osf*)
7636  symcode='[BCDEGQRST]'
7637  ;;
7638solaris*)
7639  symcode='[BDRT]'
7640  ;;
7641sco3.2v5*)
7642  symcode='[DT]'
7643  ;;
7644sysv4.2uw2*)
7645  symcode='[DT]'
7646  ;;
7647sysv5* | sco5v6* | unixware* | OpenUNIX*)
7648  symcode='[ABDT]'
7649  ;;
7650sysv4)
7651  symcode='[DFNSTU]'
7652  ;;
7653esac
7654
7655# Handle CRLF in mingw tool chain
7656opt_cr=
7657case $build_os in
7658mingw*)
7659  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7660  ;;
7661esac
7662
7663# If we're using GNU nm, then use its standard symbol codes.
7664case `$NM -V 2>&1` in
7665*GNU* | *'with BFD'*)
7666  symcode='[ABCDGIRSTW]' ;;
7667esac
7668
7669# Try without a prefix undercore, then with it.
7670for ac_symprfx in "" "_"; do
7671
7672  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7673  symxfrm="\\1 $ac_symprfx\\2 \\2"
7674
7675  # Write the raw and C identifiers.
7676  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7677
7678  # Check to see that the pipe works correctly.
7679  pipe_works=no
7680
7681  rm -f conftest*
7682  cat > conftest.$ac_ext <<EOF
7683#ifdef __cplusplus
7684extern "C" {
7685#endif
7686char nm_test_var;
7687void nm_test_func(){}
7688#ifdef __cplusplus
7689}
7690#endif
7691int main(){nm_test_var='a';nm_test_func();return(0);}
7692EOF
7693
7694  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695  (eval $ac_compile) 2>&5
7696  ac_status=$?
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); }; then
7699    # Now try to grab the symbols.
7700    nlist=conftest.nm
7701    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7702  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7703  ac_status=$?
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); } && test -s "$nlist"; then
7706      # Try sorting and uniquifying the output.
7707      if sort "$nlist" | uniq > "$nlist"T; then
7708	mv -f "$nlist"T "$nlist"
7709      else
7710	rm -f "$nlist"T
7711      fi
7712
7713      # Make sure that we snagged all the symbols we need.
7714      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7715	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7716	  cat <<EOF > conftest.$ac_ext
7717#ifdef __cplusplus
7718extern "C" {
7719#endif
7720
7721EOF
7722	  # Now generate the symbol file.
7723	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7724
7725	  cat <<EOF >> conftest.$ac_ext
7726#if defined (__STDC__) && __STDC__
7727# define lt_ptr_t void *
7728#else
7729# define lt_ptr_t char *
7730# define const
7731#endif
7732
7733/* The mapping between symbol names and symbols. */
7734const struct {
7735  const char *name;
7736  lt_ptr_t address;
7737}
7738lt_preloaded_symbols[] =
7739{
7740EOF
7741	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7742	  cat <<\EOF >> conftest.$ac_ext
7743  {0, (lt_ptr_t) 0}
7744};
7745
7746#ifdef __cplusplus
7747}
7748#endif
7749EOF
7750	  # Now try linking the two files.
7751	  mv conftest.$ac_objext conftstm.$ac_objext
7752	  lt_save_LIBS="$LIBS"
7753	  lt_save_CFLAGS="$CFLAGS"
7754	  LIBS="conftstm.$ac_objext"
7755	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7756	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757  (eval $ac_link) 2>&5
7758  ac_status=$?
7759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7761	    pipe_works=yes
7762	  fi
7763	  LIBS="$lt_save_LIBS"
7764	  CFLAGS="$lt_save_CFLAGS"
7765	else
7766	  echo "cannot find nm_test_func in $nlist" >&5
7767	fi
7768      else
7769	echo "cannot find nm_test_var in $nlist" >&5
7770      fi
7771    else
7772      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7773    fi
7774  else
7775    echo "$progname: failed program was:" >&5
7776    cat conftest.$ac_ext >&5
7777  fi
7778  rm -f conftest* conftst*
7779
7780  # Do not use the global_symbol_pipe unless it works.
7781  if test "$pipe_works" = yes; then
7782    break
7783  else
7784    lt_cv_sys_global_symbol_pipe=
7785  fi
7786done
7787
7788fi
7789
7790if test -z "$lt_cv_sys_global_symbol_pipe"; then
7791  lt_cv_sys_global_symbol_to_cdecl=
7792fi
7793if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7794  echo "$as_me:$LINENO: result: failed" >&5
7795echo "${ECHO_T}failed" >&6
7796else
7797  echo "$as_me:$LINENO: result: ok" >&5
7798echo "${ECHO_T}ok" >&6
7799fi
7800
7801echo "$as_me:$LINENO: checking for objdir" >&5
7802echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7803if test "${lt_cv_objdir+set}" = set; then
7804  echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806  rm -f .libs 2>/dev/null
7807mkdir .libs 2>/dev/null
7808if test -d .libs; then
7809  lt_cv_objdir=.libs
7810else
7811  # MS-DOS does not allow filenames that begin with a dot.
7812  lt_cv_objdir=_libs
7813fi
7814rmdir .libs 2>/dev/null
7815fi
7816echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7817echo "${ECHO_T}$lt_cv_objdir" >&6
7818objdir=$lt_cv_objdir
7819
7820
7821
7822
7823
7824case $host_os in
7825aix3*)
7826  # AIX sometimes has problems with the GCC collect2 program.  For some
7827  # reason, if we set the COLLECT_NAMES environment variable, the problems
7828  # vanish in a puff of smoke.
7829  if test "X${COLLECT_NAMES+set}" != Xset; then
7830    COLLECT_NAMES=
7831    export COLLECT_NAMES
7832  fi
7833  ;;
7834esac
7835
7836# Sed substitution that helps us do robust quoting.  It backslashifies
7837# metacharacters that are still active within double-quoted strings.
7838Xsed='sed -e 1s/^X//'
7839sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7840
7841# Same as above, but do not quote variable references.
7842double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7843
7844# Sed substitution to delay expansion of an escaped shell variable in a
7845# double_quote_subst'ed string.
7846delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7847
7848# Sed substitution to avoid accidental globbing in evaled expressions
7849no_glob_subst='s/\*/\\\*/g'
7850
7851# Constants:
7852rm="rm -f"
7853
7854# Global variables:
7855default_ofile=libtool
7856can_build_shared=yes
7857
7858# All known linkers require a `.a' archive for static linking (except MSVC,
7859# which needs '.lib').
7860libext=a
7861ltmain="$ac_aux_dir/ltmain.sh"
7862ofile="$default_ofile"
7863with_gnu_ld="$lt_cv_prog_gnu_ld"
7864
7865if test -n "$ac_tool_prefix"; then
7866  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7867set dummy ${ac_tool_prefix}ar; ac_word=$2
7868echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7870if test "${ac_cv_prog_AR+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  if test -n "$AR"; then
7874  ac_cv_prog_AR="$AR" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879  IFS=$as_save_IFS
7880  test -z "$as_dir" && as_dir=.
7881  for ac_exec_ext in '' $ac_executable_extensions; do
7882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883    ac_cv_prog_AR="${ac_tool_prefix}ar"
7884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885    break 2
7886  fi
7887done
7888done
7889
7890fi
7891fi
7892AR=$ac_cv_prog_AR
7893if test -n "$AR"; then
7894  echo "$as_me:$LINENO: result: $AR" >&5
7895echo "${ECHO_T}$AR" >&6
7896else
7897  echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6
7899fi
7900
7901fi
7902if test -z "$ac_cv_prog_AR"; then
7903  ac_ct_AR=$AR
7904  # Extract the first word of "ar", so it can be a program name with args.
7905set dummy ar; ac_word=$2
7906echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7908if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7909  echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911  if test -n "$ac_ct_AR"; then
7912  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7913else
7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917  IFS=$as_save_IFS
7918  test -z "$as_dir" && as_dir=.
7919  for ac_exec_ext in '' $ac_executable_extensions; do
7920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921    ac_cv_prog_ac_ct_AR="ar"
7922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923    break 2
7924  fi
7925done
7926done
7927
7928  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7929fi
7930fi
7931ac_ct_AR=$ac_cv_prog_ac_ct_AR
7932if test -n "$ac_ct_AR"; then
7933  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7934echo "${ECHO_T}$ac_ct_AR" >&6
7935else
7936  echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
7938fi
7939
7940  AR=$ac_ct_AR
7941else
7942  AR="$ac_cv_prog_AR"
7943fi
7944
7945if test -n "$ac_tool_prefix"; then
7946  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7948echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950if test "${ac_cv_prog_RANLIB+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  if test -n "$RANLIB"; then
7954  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  test -z "$as_dir" && as_dir=.
7961  for ac_exec_ext in '' $ac_executable_extensions; do
7962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965    break 2
7966  fi
7967done
7968done
7969
7970fi
7971fi
7972RANLIB=$ac_cv_prog_RANLIB
7973if test -n "$RANLIB"; then
7974  echo "$as_me:$LINENO: result: $RANLIB" >&5
7975echo "${ECHO_T}$RANLIB" >&6
7976else
7977  echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6
7979fi
7980
7981fi
7982if test -z "$ac_cv_prog_RANLIB"; then
7983  ac_ct_RANLIB=$RANLIB
7984  # Extract the first word of "ranlib", so it can be a program name with args.
7985set dummy ranlib; ac_word=$2
7986echo "$as_me:$LINENO: checking for $ac_word" >&5
7987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7989  echo $ECHO_N "(cached) $ECHO_C" >&6
7990else
7991  if test -n "$ac_ct_RANLIB"; then
7992  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7993else
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997  IFS=$as_save_IFS
7998  test -z "$as_dir" && as_dir=.
7999  for ac_exec_ext in '' $ac_executable_extensions; do
8000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001    ac_cv_prog_ac_ct_RANLIB="ranlib"
8002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003    break 2
8004  fi
8005done
8006done
8007
8008  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8009fi
8010fi
8011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8012if test -n "$ac_ct_RANLIB"; then
8013  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8014echo "${ECHO_T}$ac_ct_RANLIB" >&6
8015else
8016  echo "$as_me:$LINENO: result: no" >&5
8017echo "${ECHO_T}no" >&6
8018fi
8019
8020  RANLIB=$ac_ct_RANLIB
8021else
8022  RANLIB="$ac_cv_prog_RANLIB"
8023fi
8024
8025if test -n "$ac_tool_prefix"; then
8026  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8027set dummy ${ac_tool_prefix}strip; ac_word=$2
8028echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8030if test "${ac_cv_prog_STRIP+set}" = set; then
8031  echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033  if test -n "$STRIP"; then
8034  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039  IFS=$as_save_IFS
8040  test -z "$as_dir" && as_dir=.
8041  for ac_exec_ext in '' $ac_executable_extensions; do
8042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048done
8049
8050fi
8051fi
8052STRIP=$ac_cv_prog_STRIP
8053if test -n "$STRIP"; then
8054  echo "$as_me:$LINENO: result: $STRIP" >&5
8055echo "${ECHO_T}$STRIP" >&6
8056else
8057  echo "$as_me:$LINENO: result: no" >&5
8058echo "${ECHO_T}no" >&6
8059fi
8060
8061fi
8062if test -z "$ac_cv_prog_STRIP"; then
8063  ac_ct_STRIP=$STRIP
8064  # Extract the first word of "strip", so it can be a program name with args.
8065set dummy strip; ac_word=$2
8066echo "$as_me:$LINENO: checking for $ac_word" >&5
8067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8068if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  if test -n "$ac_ct_STRIP"; then
8072  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8073else
8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075for as_dir in $PATH
8076do
8077  IFS=$as_save_IFS
8078  test -z "$as_dir" && as_dir=.
8079  for ac_exec_ext in '' $ac_executable_extensions; do
8080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081    ac_cv_prog_ac_ct_STRIP="strip"
8082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8083    break 2
8084  fi
8085done
8086done
8087
8088  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8089fi
8090fi
8091ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8092if test -n "$ac_ct_STRIP"; then
8093  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8094echo "${ECHO_T}$ac_ct_STRIP" >&6
8095else
8096  echo "$as_me:$LINENO: result: no" >&5
8097echo "${ECHO_T}no" >&6
8098fi
8099
8100  STRIP=$ac_ct_STRIP
8101else
8102  STRIP="$ac_cv_prog_STRIP"
8103fi
8104
8105
8106old_CC="$CC"
8107old_CFLAGS="$CFLAGS"
8108
8109# Set sane defaults for various variables
8110test -z "$AR" && AR=ar
8111test -z "$AR_FLAGS" && AR_FLAGS=cru
8112test -z "$AS" && AS=as
8113test -z "$CC" && CC=cc
8114test -z "$LTCC" && LTCC=$CC
8115test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8116test -z "$DLLTOOL" && DLLTOOL=dlltool
8117test -z "$LD" && LD=ld
8118test -z "$LN_S" && LN_S="ln -s"
8119test -z "$MAGIC_CMD" && MAGIC_CMD=file
8120test -z "$NM" && NM=nm
8121test -z "$SED" && SED=sed
8122test -z "$OBJDUMP" && OBJDUMP=objdump
8123test -z "$RANLIB" && RANLIB=:
8124test -z "$STRIP" && STRIP=:
8125test -z "$ac_objext" && ac_objext=o
8126
8127# Determine commands to create old-style static archives.
8128old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8129old_postinstall_cmds='chmod 644 $oldlib'
8130old_postuninstall_cmds=
8131
8132if test -n "$RANLIB"; then
8133  case $host_os in
8134  openbsd*)
8135    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8136    ;;
8137  *)
8138    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8139    ;;
8140  esac
8141  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8142fi
8143
8144for cc_temp in $compiler""; do
8145  case $cc_temp in
8146    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8147    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8148    \-*) ;;
8149    *) break;;
8150  esac
8151done
8152cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8153
8154
8155# Only perform the check for file, if the check method requires it
8156case $deplibs_check_method in
8157file_magic*)
8158  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8159    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8160echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8161if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8162  echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164  case $MAGIC_CMD in
8165[\\/*] |  ?:[\\/]*)
8166  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8167  ;;
8168*)
8169  lt_save_MAGIC_CMD="$MAGIC_CMD"
8170  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8171  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8172  for ac_dir in $ac_dummy; do
8173    IFS="$lt_save_ifs"
8174    test -z "$ac_dir" && ac_dir=.
8175    if test -f $ac_dir/${ac_tool_prefix}file; then
8176      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8177      if test -n "$file_magic_test_file"; then
8178	case $deplibs_check_method in
8179	"file_magic "*)
8180	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8181	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8183	    $EGREP "$file_magic_regex" > /dev/null; then
8184	    :
8185	  else
8186	    cat <<EOF 1>&2
8187
8188*** Warning: the command libtool uses to detect shared libraries,
8189*** $file_magic_cmd, produces output that libtool cannot recognize.
8190*** The result is that libtool may fail to recognize shared libraries
8191*** as such.  This will affect the creation of libtool libraries that
8192*** depend on shared libraries, but programs linked with such libtool
8193*** libraries will work regardless of this problem.  Nevertheless, you
8194*** may want to report the problem to your system manager and/or to
8195*** bug-libtool@gnu.org
8196
8197EOF
8198	  fi ;;
8199	esac
8200      fi
8201      break
8202    fi
8203  done
8204  IFS="$lt_save_ifs"
8205  MAGIC_CMD="$lt_save_MAGIC_CMD"
8206  ;;
8207esac
8208fi
8209
8210MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211if test -n "$MAGIC_CMD"; then
8212  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8213echo "${ECHO_T}$MAGIC_CMD" >&6
8214else
8215  echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
8217fi
8218
8219if test -z "$lt_cv_path_MAGIC_CMD"; then
8220  if test -n "$ac_tool_prefix"; then
8221    echo "$as_me:$LINENO: checking for file" >&5
8222echo $ECHO_N "checking for file... $ECHO_C" >&6
8223if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8224  echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226  case $MAGIC_CMD in
8227[\\/*] |  ?:[\\/]*)
8228  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8229  ;;
8230*)
8231  lt_save_MAGIC_CMD="$MAGIC_CMD"
8232  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8233  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8234  for ac_dir in $ac_dummy; do
8235    IFS="$lt_save_ifs"
8236    test -z "$ac_dir" && ac_dir=.
8237    if test -f $ac_dir/file; then
8238      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8239      if test -n "$file_magic_test_file"; then
8240	case $deplibs_check_method in
8241	"file_magic "*)
8242	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8243	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8244	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8245	    $EGREP "$file_magic_regex" > /dev/null; then
8246	    :
8247	  else
8248	    cat <<EOF 1>&2
8249
8250*** Warning: the command libtool uses to detect shared libraries,
8251*** $file_magic_cmd, produces output that libtool cannot recognize.
8252*** The result is that libtool may fail to recognize shared libraries
8253*** as such.  This will affect the creation of libtool libraries that
8254*** depend on shared libraries, but programs linked with such libtool
8255*** libraries will work regardless of this problem.  Nevertheless, you
8256*** may want to report the problem to your system manager and/or to
8257*** bug-libtool@gnu.org
8258
8259EOF
8260	  fi ;;
8261	esac
8262      fi
8263      break
8264    fi
8265  done
8266  IFS="$lt_save_ifs"
8267  MAGIC_CMD="$lt_save_MAGIC_CMD"
8268  ;;
8269esac
8270fi
8271
8272MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273if test -n "$MAGIC_CMD"; then
8274  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8275echo "${ECHO_T}$MAGIC_CMD" >&6
8276else
8277  echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
8279fi
8280
8281  else
8282    MAGIC_CMD=:
8283  fi
8284fi
8285
8286  fi
8287  ;;
8288esac
8289
8290enable_dlopen=no
8291enable_win32_dll=no
8292
8293# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8294if test "${enable_libtool_lock+set}" = set; then
8295  enableval="$enable_libtool_lock"
8296
8297fi;
8298test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8299
8300
8301# Check whether --with-pic or --without-pic was given.
8302if test "${with_pic+set}" = set; then
8303  withval="$with_pic"
8304  pic_mode="$withval"
8305else
8306  pic_mode=default
8307fi;
8308test -z "$pic_mode" && pic_mode=default
8309
8310# Use C for the default configuration in the libtool script
8311tagname=
8312lt_save_CC="$CC"
8313ac_ext=c
8314ac_cpp='$CPP $CPPFLAGS'
8315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317ac_compiler_gnu=$ac_cv_c_compiler_gnu
8318
8319
8320# Source file extension for C test sources.
8321ac_ext=c
8322
8323# Object file extension for compiled C test sources.
8324objext=o
8325objext=$objext
8326
8327# Code to be used in simple compile tests
8328lt_simple_compile_test_code="int some_variable = 0;\n"
8329
8330# Code to be used in simple link tests
8331lt_simple_link_test_code='int main(){return(0);}\n'
8332
8333
8334# If no C compiler was specified, use CC.
8335LTCC=${LTCC-"$CC"}
8336
8337# If no C compiler flags were specified, use CFLAGS.
8338LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8339
8340# Allow CC to be a program name with arguments.
8341compiler=$CC
8342
8343
8344# save warnings/boilerplate of simple test code
8345ac_outfile=conftest.$ac_objext
8346printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8348_lt_compiler_boilerplate=`cat conftest.err`
8349$rm conftest*
8350
8351ac_outfile=conftest.$ac_objext
8352printf "$lt_simple_link_test_code" >conftest.$ac_ext
8353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8354_lt_linker_boilerplate=`cat conftest.err`
8355$rm conftest*
8356
8357
8358## CAVEAT EMPTOR:
8359## There is no encapsulation within the following macros, do not change
8360## the running order or otherwise move them around unless you know exactly
8361## what you are doing...
8362
8363lt_prog_compiler_no_builtin_flag=
8364
8365if test "$GCC" = yes; then
8366  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8367
8368
8369echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8370echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8371if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8372  echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374  lt_cv_prog_compiler_rtti_exceptions=no
8375  ac_outfile=conftest.$ac_objext
8376   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8377   lt_compiler_flag="-fno-rtti -fno-exceptions"
8378   # Insert the option either (1) after the last *FLAGS variable, or
8379   # (2) before a word containing "conftest.", or (3) at the end.
8380   # Note that $ac_compile itself does not contain backslashes and begins
8381   # with a dollar sign (not a hyphen), so the echo should work correctly.
8382   # The option is referenced via a variable to avoid confusing sed.
8383   lt_compile=`echo "$ac_compile" | $SED \
8384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386   -e 's:$: $lt_compiler_flag:'`
8387   (eval echo "\"\$as_me:8387: $lt_compile\"" >&5)
8388   (eval "$lt_compile" 2>conftest.err)
8389   ac_status=$?
8390   cat conftest.err >&5
8391   echo "$as_me:8391: \$? = $ac_status" >&5
8392   if (exit $ac_status) && test -s "$ac_outfile"; then
8393     # The compiler can only warn and ignore the option if not recognized
8394     # So say no if there are warnings other than the usual output.
8395     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8396     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8397     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8398       lt_cv_prog_compiler_rtti_exceptions=yes
8399     fi
8400   fi
8401   $rm conftest*
8402
8403fi
8404echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8405echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8406
8407if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8408    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8409else
8410    :
8411fi
8412
8413fi
8414
8415lt_prog_compiler_wl=
8416lt_prog_compiler_pic=
8417lt_prog_compiler_static=
8418
8419echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8420echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8421
8422  if test "$GCC" = yes; then
8423    lt_prog_compiler_wl='-Wl,'
8424    lt_prog_compiler_static='-static'
8425
8426    case $host_os in
8427      aix*)
8428      # All AIX code is PIC.
8429      if test "$host_cpu" = ia64; then
8430	# AIX 5 now supports IA64 processor
8431	lt_prog_compiler_static='-Bstatic'
8432      fi
8433      ;;
8434
8435    amigaos*)
8436      # FIXME: we need at least 68020 code to build shared libraries, but
8437      # adding the `-m68020' flag to GCC prevents building anything better,
8438      # like `-m68040'.
8439      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8440      ;;
8441
8442    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8443      # PIC is the default for these OSes.
8444      ;;
8445
8446    mingw* | pw32* | os2*)
8447      # This hack is so that the source file can tell whether it is being
8448      # built for inclusion in a dll (and should export symbols for example).
8449      lt_prog_compiler_pic='-DDLL_EXPORT'
8450      ;;
8451
8452    darwin* | rhapsody*)
8453      # PIC is the default on this platform
8454      # Common symbols not allowed in MH_DYLIB files
8455      lt_prog_compiler_pic='-fno-common'
8456      ;;
8457
8458    interix3*)
8459      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8460      # Instead, we relocate shared libraries at runtime.
8461      ;;
8462
8463    msdosdjgpp*)
8464      # Just because we use GCC doesn't mean we suddenly get shared libraries
8465      # on systems that don't support them.
8466      lt_prog_compiler_can_build_shared=no
8467      enable_shared=no
8468      ;;
8469
8470    sysv4*MP*)
8471      if test -d /usr/nec; then
8472	lt_prog_compiler_pic=-Kconform_pic
8473      fi
8474      ;;
8475
8476    hpux*)
8477      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8478      # not for PA HP-UX.
8479      case $host_cpu in
8480      hppa*64*|ia64*)
8481	# +Z the default
8482	;;
8483      *)
8484	lt_prog_compiler_pic='-fPIC'
8485	;;
8486      esac
8487      ;;
8488
8489    *)
8490      lt_prog_compiler_pic='-fPIC'
8491      ;;
8492    esac
8493  else
8494    # PORTME Check for flag to pass linker flags through the system compiler.
8495    case $host_os in
8496    aix*)
8497      lt_prog_compiler_wl='-Wl,'
8498      if test "$host_cpu" = ia64; then
8499	# AIX 5 now supports IA64 processor
8500	lt_prog_compiler_static='-Bstatic'
8501      else
8502	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8503      fi
8504      ;;
8505      darwin*)
8506        # PIC is the default on this platform
8507        # Common symbols not allowed in MH_DYLIB files
8508       case $cc_basename in
8509         xlc*)
8510         lt_prog_compiler_pic='-qnocommon'
8511         lt_prog_compiler_wl='-Wl,'
8512         ;;
8513       esac
8514       ;;
8515
8516    mingw* | pw32* | os2*)
8517      # This hack is so that the source file can tell whether it is being
8518      # built for inclusion in a dll (and should export symbols for example).
8519      lt_prog_compiler_pic='-DDLL_EXPORT'
8520      ;;
8521
8522    hpux9* | hpux10* | hpux11*)
8523      lt_prog_compiler_wl='-Wl,'
8524      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8525      # not for PA HP-UX.
8526      case $host_cpu in
8527      hppa*64*|ia64*)
8528	# +Z the default
8529	;;
8530      *)
8531	lt_prog_compiler_pic='+Z'
8532	;;
8533      esac
8534      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8535      lt_prog_compiler_static='${wl}-a ${wl}archive'
8536      ;;
8537
8538    irix5* | irix6* | nonstopux*)
8539      lt_prog_compiler_wl='-Wl,'
8540      # PIC (with -KPIC) is the default.
8541      lt_prog_compiler_static='-non_shared'
8542      ;;
8543
8544    newsos6)
8545      lt_prog_compiler_pic='-KPIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    linux*)
8550      case $cc_basename in
8551      icc* | ecc*)
8552	lt_prog_compiler_wl='-Wl,'
8553	lt_prog_compiler_pic='-KPIC'
8554	lt_prog_compiler_static='-static'
8555        ;;
8556      pgcc* | pgf77* | pgf90* | pgf95*)
8557        # Portland Group compilers (*not* the Pentium gcc compiler,
8558	# which looks to be a dead project)
8559	lt_prog_compiler_wl='-Wl,'
8560	lt_prog_compiler_pic='-fpic'
8561	lt_prog_compiler_static='-Bstatic'
8562        ;;
8563      ccc*)
8564        lt_prog_compiler_wl='-Wl,'
8565        # All Alpha code is PIC.
8566        lt_prog_compiler_static='-non_shared'
8567        ;;
8568      esac
8569      ;;
8570
8571    osf3* | osf4* | osf5*)
8572      lt_prog_compiler_wl='-Wl,'
8573      # All OSF/1 code is PIC.
8574      lt_prog_compiler_static='-non_shared'
8575      ;;
8576
8577    solaris*)
8578      lt_prog_compiler_pic='-KPIC'
8579      lt_prog_compiler_static='-Bstatic'
8580      case $cc_basename in
8581      f77* | f90* | f95*)
8582	lt_prog_compiler_wl='-Qoption ld ';;
8583      *)
8584	lt_prog_compiler_wl='-Wl,';;
8585      esac
8586      ;;
8587
8588    sunos4*)
8589      lt_prog_compiler_wl='-Qoption ld '
8590      lt_prog_compiler_pic='-PIC'
8591      lt_prog_compiler_static='-Bstatic'
8592      ;;
8593
8594    sysv4 | sysv4.2uw2* | sysv4.3*)
8595      lt_prog_compiler_wl='-Wl,'
8596      lt_prog_compiler_pic='-KPIC'
8597      lt_prog_compiler_static='-Bstatic'
8598      ;;
8599
8600    sysv4*MP*)
8601      if test -d /usr/nec ;then
8602	lt_prog_compiler_pic='-Kconform_pic'
8603	lt_prog_compiler_static='-Bstatic'
8604      fi
8605      ;;
8606
8607    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8608      lt_prog_compiler_wl='-Wl,'
8609      lt_prog_compiler_pic='-KPIC'
8610      lt_prog_compiler_static='-Bstatic'
8611      ;;
8612
8613    unicos*)
8614      lt_prog_compiler_wl='-Wl,'
8615      lt_prog_compiler_can_build_shared=no
8616      ;;
8617
8618    uts4*)
8619      lt_prog_compiler_pic='-pic'
8620      lt_prog_compiler_static='-Bstatic'
8621      ;;
8622
8623    *)
8624      lt_prog_compiler_can_build_shared=no
8625      ;;
8626    esac
8627  fi
8628
8629echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8630echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8631
8632#
8633# Check to make sure the PIC flag actually works.
8634#
8635if test -n "$lt_prog_compiler_pic"; then
8636
8637echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8639if test "${lt_prog_compiler_pic_works+set}" = set; then
8640  echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642  lt_prog_compiler_pic_works=no
8643  ac_outfile=conftest.$ac_objext
8644   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8645   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8646   # Insert the option either (1) after the last *FLAGS variable, or
8647   # (2) before a word containing "conftest.", or (3) at the end.
8648   # Note that $ac_compile itself does not contain backslashes and begins
8649   # with a dollar sign (not a hyphen), so the echo should work correctly.
8650   # The option is referenced via a variable to avoid confusing sed.
8651   lt_compile=`echo "$ac_compile" | $SED \
8652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654   -e 's:$: $lt_compiler_flag:'`
8655   (eval echo "\"\$as_me:8655: $lt_compile\"" >&5)
8656   (eval "$lt_compile" 2>conftest.err)
8657   ac_status=$?
8658   cat conftest.err >&5
8659   echo "$as_me:8659: \$? = $ac_status" >&5
8660   if (exit $ac_status) && test -s "$ac_outfile"; then
8661     # The compiler can only warn and ignore the option if not recognized
8662     # So say no if there are warnings other than the usual output.
8663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8666       lt_prog_compiler_pic_works=yes
8667     fi
8668   fi
8669   $rm conftest*
8670
8671fi
8672echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8673echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8674
8675if test x"$lt_prog_compiler_pic_works" = xyes; then
8676    case $lt_prog_compiler_pic in
8677     "" | " "*) ;;
8678     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8679     esac
8680else
8681    lt_prog_compiler_pic=
8682     lt_prog_compiler_can_build_shared=no
8683fi
8684
8685fi
8686case $host_os in
8687  # For platforms which do not support PIC, -DPIC is meaningless:
8688  *djgpp*)
8689    lt_prog_compiler_pic=
8690    ;;
8691  *)
8692    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8693    ;;
8694esac
8695
8696#
8697# Check to make sure the static flag actually works.
8698#
8699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8700echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8701echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8702if test "${lt_prog_compiler_static_works+set}" = set; then
8703  echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705  lt_prog_compiler_static_works=no
8706   save_LDFLAGS="$LDFLAGS"
8707   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8708   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8709   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8710     # The linker can only warn and ignore the option if not recognized
8711     # So say no if there are warnings
8712     if test -s conftest.err; then
8713       # Append any errors to the config.log.
8714       cat conftest.err 1>&5
8715       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8716       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8717       if diff conftest.exp conftest.er2 >/dev/null; then
8718         lt_prog_compiler_static_works=yes
8719       fi
8720     else
8721       lt_prog_compiler_static_works=yes
8722     fi
8723   fi
8724   $rm conftest*
8725   LDFLAGS="$save_LDFLAGS"
8726
8727fi
8728echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8729echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8730
8731if test x"$lt_prog_compiler_static_works" = xyes; then
8732    :
8733else
8734    lt_prog_compiler_static=
8735fi
8736
8737
8738echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8740if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8741  echo $ECHO_N "(cached) $ECHO_C" >&6
8742else
8743  lt_cv_prog_compiler_c_o=no
8744   $rm -r conftest 2>/dev/null
8745   mkdir conftest
8746   cd conftest
8747   mkdir out
8748   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8749
8750   lt_compiler_flag="-o out/conftest2.$ac_objext"
8751   # Insert the option either (1) after the last *FLAGS variable, or
8752   # (2) before a word containing "conftest.", or (3) at the end.
8753   # Note that $ac_compile itself does not contain backslashes and begins
8754   # with a dollar sign (not a hyphen), so the echo should work correctly.
8755   lt_compile=`echo "$ac_compile" | $SED \
8756   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8757   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8758   -e 's:$: $lt_compiler_flag:'`
8759   (eval echo "\"\$as_me:8759: $lt_compile\"" >&5)
8760   (eval "$lt_compile" 2>out/conftest.err)
8761   ac_status=$?
8762   cat out/conftest.err >&5
8763   echo "$as_me:8763: \$? = $ac_status" >&5
8764   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8765   then
8766     # The compiler can only warn and ignore the option if not recognized
8767     # So say no if there are warnings
8768     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8769     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8770     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8771       lt_cv_prog_compiler_c_o=yes
8772     fi
8773   fi
8774   chmod u+w . 2>&5
8775   $rm conftest*
8776   # SGI C++ compiler will create directory out/ii_files/ for
8777   # template instantiation
8778   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8779   $rm out/* && rmdir out
8780   cd ..
8781   rmdir conftest
8782   $rm conftest*
8783
8784fi
8785echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8786echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8787
8788
8789hard_links="nottested"
8790if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8791  # do not overwrite the value of need_locks provided by the user
8792  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8793echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8794  hard_links=yes
8795  $rm conftest*
8796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8797  touch conftest.a
8798  ln conftest.a conftest.b 2>&5 || hard_links=no
8799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8800  echo "$as_me:$LINENO: result: $hard_links" >&5
8801echo "${ECHO_T}$hard_links" >&6
8802  if test "$hard_links" = no; then
8803    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8804echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8805    need_locks=warn
8806  fi
8807else
8808  need_locks=no
8809fi
8810
8811echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8812echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8813
8814  runpath_var=
8815  allow_undefined_flag=
8816  enable_shared_with_static_runtimes=no
8817  archive_cmds=
8818  archive_expsym_cmds=
8819  old_archive_From_new_cmds=
8820  old_archive_from_expsyms_cmds=
8821  export_dynamic_flag_spec=
8822  whole_archive_flag_spec=
8823  thread_safe_flag_spec=
8824  hardcode_libdir_flag_spec=
8825  hardcode_libdir_flag_spec_ld=
8826  hardcode_libdir_separator=
8827  hardcode_direct=no
8828  hardcode_minus_L=no
8829  hardcode_shlibpath_var=unsupported
8830  link_all_deplibs=unknown
8831  hardcode_automatic=no
8832  module_cmds=
8833  module_expsym_cmds=
8834  always_export_symbols=no
8835  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8836  # include_expsyms should be a list of space-separated symbols to be *always*
8837  # included in the symbol list
8838  include_expsyms=
8839  # exclude_expsyms can be an extended regexp of symbols to exclude
8840  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8841  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8842  # as well as any symbol that contains `d'.
8843  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8844  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8845  # platforms (ab)use it in PIC code, but their linkers get confused if
8846  # the symbol is explicitly referenced.  Since portable code cannot
8847  # rely on this symbol name, it's probably fine to never include it in
8848  # preloaded symbol tables.
8849  extract_expsyms_cmds=
8850  # Just being paranoid about ensuring that cc_basename is set.
8851  for cc_temp in $compiler""; do
8852  case $cc_temp in
8853    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8854    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8855    \-*) ;;
8856    *) break;;
8857  esac
8858done
8859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8860
8861  case $host_os in
8862  cygwin* | mingw* | pw32*)
8863    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8864    # When not using gcc, we currently assume that we are using
8865    # Microsoft Visual C++.
8866    if test "$GCC" != yes; then
8867      with_gnu_ld=no
8868    fi
8869    ;;
8870  interix*)
8871    # we just hope/assume this is gcc and not c89 (= MSVC++)
8872    with_gnu_ld=yes
8873    ;;
8874  openbsd*)
8875    with_gnu_ld=no
8876    ;;
8877  esac
8878
8879  ld_shlibs=yes
8880  if test "$with_gnu_ld" = yes; then
8881    # If archive_cmds runs LD, not CC, wlarc should be empty
8882    wlarc='${wl}'
8883
8884    # Set some defaults for GNU ld with shared library support. These
8885    # are reset later if shared libraries are not supported. Putting them
8886    # here allows them to be overridden if necessary.
8887    runpath_var=LD_RUN_PATH
8888    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8889    export_dynamic_flag_spec='${wl}--export-dynamic'
8890    # ancient GNU ld didn't support --whole-archive et. al.
8891    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8892	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8893      else
8894  	whole_archive_flag_spec=
8895    fi
8896    supports_anon_versioning=no
8897    case `$LD -v 2>/dev/null` in
8898      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8899      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8900      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8901      *\ 2.11.*) ;; # other 2.11 versions
8902      *) supports_anon_versioning=yes ;;
8903    esac
8904
8905    # See if GNU ld supports shared libraries.
8906    case $host_os in
8907    aix3* | aix4* | aix5*)
8908      # On AIX/PPC, the GNU linker is very broken
8909      if test "$host_cpu" != ia64; then
8910	ld_shlibs=no
8911	cat <<EOF 1>&2
8912
8913*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8914*** to be unable to reliably create shared libraries on AIX.
8915*** Therefore, libtool is disabling shared libraries support.  If you
8916*** really care for shared libraries, you may want to modify your PATH
8917*** so that a non-GNU linker is found, and then restart.
8918
8919EOF
8920      fi
8921      ;;
8922
8923    amigaos*)
8924      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)'
8925      hardcode_libdir_flag_spec='-L$libdir'
8926      hardcode_minus_L=yes
8927
8928      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8929      # that the semantics of dynamic libraries on AmigaOS, at least up
8930      # to version 4, is to share data among multiple programs linked
8931      # with the same dynamic library.  Since this doesn't match the
8932      # behavior of shared libraries on other platforms, we can't use
8933      # them.
8934      ld_shlibs=no
8935      ;;
8936
8937    beos*)
8938      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8939	allow_undefined_flag=unsupported
8940	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8941	# support --undefined.  This deserves some investigation.  FIXME
8942	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943      else
8944	ld_shlibs=no
8945      fi
8946      ;;
8947
8948    cygwin* | mingw* | pw32*)
8949      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8950      # as there is no search path for DLLs.
8951      hardcode_libdir_flag_spec='-L$libdir'
8952      allow_undefined_flag=unsupported
8953      always_export_symbols=no
8954      enable_shared_with_static_runtimes=yes
8955      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8956
8957      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8958        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8959	# If the export-symbols file already is a .def file (1st line
8960	# is EXPORTS), use it as is; otherwise, prepend...
8961	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8962	  cp $export_symbols $output_objdir/$soname.def;
8963	else
8964	  echo EXPORTS > $output_objdir/$soname.def;
8965	  cat $export_symbols >> $output_objdir/$soname.def;
8966	fi~
8967	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8968      else
8969	ld_shlibs=no
8970      fi
8971      ;;
8972
8973    interix3*)
8974      hardcode_direct=no
8975      hardcode_shlibpath_var=no
8976      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8977      export_dynamic_flag_spec='${wl}-E'
8978      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8979      # Instead, shared libraries are loaded at an image base (0x10000000 by
8980      # default) and relocated if they conflict, which is a slow very memory
8981      # consuming and fragmenting process.  To avoid this, we pick a random,
8982      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8983      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8984      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8985      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'
8986      ;;
8987
8988    linux*)
8989      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8990	tmp_addflag=
8991	case $cc_basename,$host_cpu in
8992	pgcc*)				# Portland Group C compiler
8993	  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'
8994	  tmp_addflag=' $pic_flag'
8995	  ;;
8996	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8997	  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'
8998	  tmp_addflag=' $pic_flag -Mnomain' ;;
8999	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9000	  tmp_addflag=' -i_dynamic' ;;
9001	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9002	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9003	ifc* | ifort*)			# Intel Fortran compiler
9004	  tmp_addflag=' -nofor_main' ;;
9005	esac
9006	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007
9008	if test $supports_anon_versioning = yes; then
9009	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9010  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9011  $echo "local: *; };" >> $output_objdir/$libname.ver~
9012	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9013	fi
9014      else
9015	ld_shlibs=no
9016      fi
9017      ;;
9018
9019    netbsd*)
9020      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9021	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9022	wlarc=
9023      else
9024	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026      fi
9027      ;;
9028
9029    solaris*)
9030      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9031	ld_shlibs=no
9032	cat <<EOF 1>&2
9033
9034*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9035*** create shared libraries on Solaris systems.  Therefore, libtool
9036*** is disabling shared libraries support.  We urge you to upgrade GNU
9037*** binutils to release 2.9.1 or newer.  Another option is to modify
9038*** your PATH or compiler configuration so that the native linker is
9039*** used, and then restart.
9040
9041EOF
9042      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9043	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045      else
9046	ld_shlibs=no
9047      fi
9048      ;;
9049
9050    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9051      case `$LD -v 2>&1` in
9052        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9053	ld_shlibs=no
9054	cat <<_LT_EOF 1>&2
9055
9056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9057*** reliably create shared libraries on SCO systems.  Therefore, libtool
9058*** is disabling shared libraries support.  We urge you to upgrade GNU
9059*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9060*** your PATH or compiler configuration so that the native linker is
9061*** used, and then restart.
9062
9063_LT_EOF
9064	;;
9065	*)
9066	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9067	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9068	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9069	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9070	  else
9071	    ld_shlibs=no
9072	  fi
9073	;;
9074      esac
9075      ;;
9076
9077    sunos4*)
9078      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9079      wlarc=
9080      hardcode_direct=yes
9081      hardcode_shlibpath_var=no
9082      ;;
9083
9084    *)
9085      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9086	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088      else
9089	ld_shlibs=no
9090      fi
9091      ;;
9092    esac
9093
9094    if test "$ld_shlibs" = no; then
9095      runpath_var=
9096      hardcode_libdir_flag_spec=
9097      export_dynamic_flag_spec=
9098      whole_archive_flag_spec=
9099    fi
9100  else
9101    # PORTME fill in a description of your system's linker (not GNU ld)
9102    case $host_os in
9103    aix3*)
9104      allow_undefined_flag=unsupported
9105      always_export_symbols=yes
9106      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'
9107      # Note: this linker hardcodes the directories in LIBPATH if there
9108      # are no directories specified by -L.
9109      hardcode_minus_L=yes
9110      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9111	# Neither direct hardcoding nor static linking is supported with a
9112	# broken collect2.
9113	hardcode_direct=unsupported
9114      fi
9115      ;;
9116
9117    aix4* | aix5*)
9118      if test "$host_cpu" = ia64; then
9119	# On IA64, the linker does run time linking by default, so we don't
9120	# have to do anything special.
9121	aix_use_runtimelinking=no
9122	exp_sym_flag='-Bexport'
9123	no_entry_flag=""
9124      else
9125	# If we're using GNU nm, then we don't want the "-C" option.
9126	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9127	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9128	  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'
9129	else
9130	  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'
9131	fi
9132	aix_use_runtimelinking=no
9133
9134	# Test if we are trying to use run time linking or normal
9135	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9136	# need to do runtime linking.
9137	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9138	  for ld_flag in $LDFLAGS; do
9139  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9140  	    aix_use_runtimelinking=yes
9141  	    break
9142  	  fi
9143	  done
9144	  ;;
9145	esac
9146
9147	exp_sym_flag='-bexport'
9148	no_entry_flag='-bnoentry'
9149      fi
9150
9151      # When large executables or shared objects are built, AIX ld can
9152      # have problems creating the table of contents.  If linking a library
9153      # or program results in "error TOC overflow" add -mminimal-toc to
9154      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9155      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9156
9157      archive_cmds=''
9158      hardcode_direct=yes
9159      hardcode_libdir_separator=':'
9160      link_all_deplibs=yes
9161
9162      if test "$GCC" = yes; then
9163	case $host_os in aix4.[012]|aix4.[012].*)
9164	# We only want to do this on AIX 4.2 and lower, the check
9165	# below for broken collect2 doesn't work under 4.3+
9166	  collect2name=`${CC} -print-prog-name=collect2`
9167	  if test -f "$collect2name" && \
9168  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9169	  then
9170  	  # We have reworked collect2
9171  	  hardcode_direct=yes
9172	  else
9173  	  # We have old collect2
9174  	  hardcode_direct=unsupported
9175  	  # It fails to find uninstalled libraries when the uninstalled
9176  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9177  	  # to unsupported forces relinking
9178  	  hardcode_minus_L=yes
9179  	  hardcode_libdir_flag_spec='-L$libdir'
9180  	  hardcode_libdir_separator=
9181	  fi
9182	  ;;
9183	esac
9184	shared_flag='-shared'
9185	if test "$aix_use_runtimelinking" = yes; then
9186	  shared_flag="$shared_flag "'${wl}-G'
9187	fi
9188      else
9189	# not using gcc
9190	if test "$host_cpu" = ia64; then
9191  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9192  	# chokes on -Wl,-G. The following line is correct:
9193	  shared_flag='-G'
9194	else
9195	  if test "$aix_use_runtimelinking" = yes; then
9196	    shared_flag='${wl}-G'
9197	  else
9198	    shared_flag='${wl}-bM:SRE'
9199	  fi
9200	fi
9201      fi
9202
9203      # It seems that -bexpall does not export symbols beginning with
9204      # underscore (_), so it is better to generate a list of symbols to export.
9205      always_export_symbols=yes
9206      if test "$aix_use_runtimelinking" = yes; then
9207	# Warning - without using the other runtime loading flags (-brtl),
9208	# -berok will link without error, but may produce a broken library.
9209	allow_undefined_flag='-berok'
9210       # Determine the default libpath from the value encoded in an empty executable.
9211       cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h.  */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h.  */
9217
9218int
9219main ()
9220{
9221
9222  ;
9223  return 0;
9224}
9225_ACEOF
9226rm -f conftest.$ac_objext conftest$ac_exeext
9227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228  (eval $ac_link) 2>conftest.er1
9229  ac_status=$?
9230  grep -v '^ *+' conftest.er1 >conftest.err
9231  rm -f conftest.er1
9232  cat conftest.err >&5
9233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234  (exit $ac_status); } &&
9235	 { ac_try='test -z "$ac_c_werror_flag"
9236			 || test ! -s conftest.err'
9237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238  (eval $ac_try) 2>&5
9239  ac_status=$?
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); }; } &&
9242	 { ac_try='test -s conftest$ac_exeext'
9243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244  (eval $ac_try) 2>&5
9245  ac_status=$?
9246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247  (exit $ac_status); }; }; then
9248
9249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9250}'`
9251# Check for a 64-bit object if we didn't find anything.
9252if 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; }
9253}'`; fi
9254else
9255  echo "$as_me: failed program was:" >&5
9256sed 's/^/| /' conftest.$ac_ext >&5
9257
9258fi
9259rm -f conftest.err conftest.$ac_objext \
9260      conftest$ac_exeext conftest.$ac_ext
9261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9262
9263       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9264	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"
9265       else
9266	if test "$host_cpu" = ia64; then
9267	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9268	  allow_undefined_flag="-z nodefs"
9269	  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"
9270	else
9271	 # Determine the default libpath from the value encoded in an empty executable.
9272	 cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h.  */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h.  */
9278
9279int
9280main ()
9281{
9282
9283  ;
9284  return 0;
9285}
9286_ACEOF
9287rm -f conftest.$ac_objext conftest$ac_exeext
9288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289  (eval $ac_link) 2>conftest.er1
9290  ac_status=$?
9291  grep -v '^ *+' conftest.er1 >conftest.err
9292  rm -f conftest.er1
9293  cat conftest.err >&5
9294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295  (exit $ac_status); } &&
9296	 { ac_try='test -z "$ac_c_werror_flag"
9297			 || test ! -s conftest.err'
9298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299  (eval $ac_try) 2>&5
9300  ac_status=$?
9301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302  (exit $ac_status); }; } &&
9303	 { ac_try='test -s conftest$ac_exeext'
9304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305  (eval $ac_try) 2>&5
9306  ac_status=$?
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); }; }; then
9309
9310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9311}'`
9312# Check for a 64-bit object if we didn't find anything.
9313if 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; }
9314}'`; fi
9315else
9316  echo "$as_me: failed program was:" >&5
9317sed 's/^/| /' conftest.$ac_ext >&5
9318
9319fi
9320rm -f conftest.err conftest.$ac_objext \
9321      conftest$ac_exeext conftest.$ac_ext
9322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9323
9324	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9325	  # Warning - without using the other run time loading flags,
9326	  # -berok will link without error, but may produce a broken library.
9327	  no_undefined_flag=' ${wl}-bernotok'
9328	  allow_undefined_flag=' ${wl}-berok'
9329	  # Exported symbols can be pulled into shared objects from archives
9330	  whole_archive_flag_spec='$convenience'
9331	  archive_cmds_need_lc=yes
9332	  # This is similar to how AIX traditionally builds its shared libraries.
9333	  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'
9334	fi
9335      fi
9336      ;;
9337
9338    amigaos*)
9339      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)'
9340      hardcode_libdir_flag_spec='-L$libdir'
9341      hardcode_minus_L=yes
9342      # see comment about different semantics on the GNU ld section
9343      ld_shlibs=no
9344      ;;
9345
9346    bsdi[45]*)
9347      export_dynamic_flag_spec=-rdynamic
9348      ;;
9349
9350    cygwin* | mingw* | pw32*)
9351      # When not using gcc, we currently assume that we are using
9352      # Microsoft Visual C++.
9353      # hardcode_libdir_flag_spec is actually meaningless, as there is
9354      # no search path for DLLs.
9355      hardcode_libdir_flag_spec=' '
9356      allow_undefined_flag=unsupported
9357      # Tell ltmain to make .lib files, not .a files.
9358      libext=lib
9359      # Tell ltmain to make .dll files, not .so files.
9360      shrext_cmds=".dll"
9361      # FIXME: Setting linknames here is a bad hack.
9362      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9363      # The linker will automatically build a .lib file if we build a DLL.
9364      old_archive_From_new_cmds='true'
9365      # FIXME: Should let the user specify the lib program.
9366      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9367      fix_srcfile_path='`cygpath -w "$srcfile"`'
9368      enable_shared_with_static_runtimes=yes
9369      ;;
9370
9371    darwin* | rhapsody*)
9372      case $host_os in
9373        rhapsody* | darwin1.[012])
9374         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9375         ;;
9376       *) # Darwin 1.3 on
9377         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9378           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9379         else
9380           case ${MACOSX_DEPLOYMENT_TARGET} in
9381             10.[012])
9382               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9383               ;;
9384             10.*)
9385               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9386               ;;
9387           esac
9388         fi
9389         ;;
9390      esac
9391      archive_cmds_need_lc=no
9392      hardcode_direct=no
9393      hardcode_automatic=yes
9394      hardcode_shlibpath_var=unsupported
9395      whole_archive_flag_spec=''
9396      link_all_deplibs=yes
9397    if test "$GCC" = yes ; then
9398    	output_verbose_link_cmd='echo'
9399        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9400      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9401      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9402      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}'
9403      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}'
9404    else
9405      case $cc_basename in
9406        xlc*)
9407         output_verbose_link_cmd='echo'
9408         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9409         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9410          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9411         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}'
9412          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}'
9413          ;;
9414       *)
9415         ld_shlibs=no
9416          ;;
9417      esac
9418    fi
9419      ;;
9420
9421    dgux*)
9422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423      hardcode_libdir_flag_spec='-L$libdir'
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    freebsd1*)
9428      ld_shlibs=no
9429      ;;
9430
9431    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9432    # support.  Future versions do this automatically, but an explicit c++rt0.o
9433    # does not break anything, and helps significantly (at the cost of a little
9434    # extra space).
9435    freebsd2.2*)
9436      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9437      hardcode_libdir_flag_spec='-R$libdir'
9438      hardcode_direct=yes
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9443    freebsd2*)
9444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9445      hardcode_direct=yes
9446      hardcode_minus_L=yes
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9451    freebsd* | kfreebsd*-gnu | dragonfly*)
9452      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9453      hardcode_libdir_flag_spec='-R$libdir'
9454      hardcode_direct=yes
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    hpux9*)
9459      if test "$GCC" = yes; then
9460	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'
9461      else
9462	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'
9463      fi
9464      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465      hardcode_libdir_separator=:
9466      hardcode_direct=yes
9467
9468      # hardcode_minus_L: Not really in the search PATH,
9469      # but as the default location of the library.
9470      hardcode_minus_L=yes
9471      export_dynamic_flag_spec='${wl}-E'
9472      ;;
9473
9474    hpux10*)
9475      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9476	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9477      else
9478	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9479      fi
9480      if test "$with_gnu_ld" = no; then
9481	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9482	hardcode_libdir_separator=:
9483
9484	hardcode_direct=yes
9485	export_dynamic_flag_spec='${wl}-E'
9486
9487	# hardcode_minus_L: Not really in the search PATH,
9488	# but as the default location of the library.
9489	hardcode_minus_L=yes
9490      fi
9491      ;;
9492
9493    hpux11*)
9494      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9495	case $host_cpu in
9496	hppa*64*)
9497	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498	  ;;
9499	ia64*)
9500	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9501	  ;;
9502	*)
9503	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9504	  ;;
9505	esac
9506      else
9507	case $host_cpu in
9508	hppa*64*)
9509	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9510	  ;;
9511	ia64*)
9512	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9513	  ;;
9514	*)
9515	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9516	  ;;
9517	esac
9518      fi
9519      if test "$with_gnu_ld" = no; then
9520	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521	hardcode_libdir_separator=:
9522
9523	case $host_cpu in
9524	hppa*64*|ia64*)
9525	  hardcode_libdir_flag_spec_ld='+b $libdir'
9526	  hardcode_direct=no
9527	  hardcode_shlibpath_var=no
9528	  ;;
9529	*)
9530	  hardcode_direct=yes
9531	  export_dynamic_flag_spec='${wl}-E'
9532
9533	  # hardcode_minus_L: Not really in the search PATH,
9534	  # but as the default location of the library.
9535	  hardcode_minus_L=yes
9536	  ;;
9537	esac
9538      fi
9539      ;;
9540
9541    irix5* | irix6* | nonstopux*)
9542      if test "$GCC" = yes; then
9543	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'
9544      else
9545	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'
9546	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9547      fi
9548      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549      hardcode_libdir_separator=:
9550      link_all_deplibs=yes
9551      ;;
9552
9553    netbsd*)
9554      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9555	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9556      else
9557	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9558      fi
9559      hardcode_libdir_flag_spec='-R$libdir'
9560      hardcode_direct=yes
9561      hardcode_shlibpath_var=no
9562      ;;
9563
9564    newsos6)
9565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566      hardcode_direct=yes
9567      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568      hardcode_libdir_separator=:
9569      hardcode_shlibpath_var=no
9570      ;;
9571
9572    openbsd*)
9573      hardcode_direct=yes
9574      hardcode_shlibpath_var=no
9575      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9576	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9578	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9579	export_dynamic_flag_spec='${wl}-E'
9580      else
9581       case $host_os in
9582	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9583	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9584	   hardcode_libdir_flag_spec='-R$libdir'
9585	   ;;
9586	 *)
9587	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9588	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9589	   ;;
9590       esac
9591      fi
9592      ;;
9593
9594    os2*)
9595      hardcode_libdir_flag_spec='-L$libdir'
9596      hardcode_minus_L=yes
9597      allow_undefined_flag=unsupported
9598      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'
9599      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9600      ;;
9601
9602    osf3*)
9603      if test "$GCC" = yes; then
9604	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605	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'
9606      else
9607	allow_undefined_flag=' -expect_unresolved \*'
9608	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'
9609      fi
9610      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9611      hardcode_libdir_separator=:
9612      ;;
9613
9614    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9615      if test "$GCC" = yes; then
9616	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9617	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'
9618	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619      else
9620	allow_undefined_flag=' -expect_unresolved \*'
9621	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'
9622	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9623	$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'
9624
9625	# Both c and cxx compiler support -rpath directly
9626	hardcode_libdir_flag_spec='-rpath $libdir'
9627      fi
9628      hardcode_libdir_separator=:
9629      ;;
9630
9631    solaris*)
9632      no_undefined_flag=' -z text'
9633      if test "$GCC" = yes; then
9634	wlarc='${wl}'
9635	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9636	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9637	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9638      else
9639	wlarc=''
9640	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9642  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9643      fi
9644      hardcode_libdir_flag_spec='-R$libdir'
9645      hardcode_shlibpath_var=no
9646      case $host_os in
9647      solaris2.[0-5] | solaris2.[0-5].*) ;;
9648      *)
9649 	# The compiler driver will combine linker options so we
9650 	# cannot just pass the convience library names through
9651 	# without $wl, iff we do not link with $LD.
9652 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9653 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9654 	case $wlarc in
9655 	'')
9656 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9657 	*)
9658 	  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' ;;
9659 	esac ;;
9660      esac
9661      link_all_deplibs=yes
9662      ;;
9663
9664    sunos4*)
9665      if test "x$host_vendor" = xsequent; then
9666	# Use $CC to link under sequent, because it throws in some extra .o
9667	# files that make .init and .fini sections work.
9668	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9669      else
9670	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9671      fi
9672      hardcode_libdir_flag_spec='-L$libdir'
9673      hardcode_direct=yes
9674      hardcode_minus_L=yes
9675      hardcode_shlibpath_var=no
9676      ;;
9677
9678    sysv4)
9679      case $host_vendor in
9680	sni)
9681	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682	  hardcode_direct=yes # is this really true???
9683	;;
9684	siemens)
9685	  ## LD is ld it makes a PLAMLIB
9686	  ## CC just makes a GrossModule.
9687	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9688	  reload_cmds='$CC -r -o $output$reload_objs'
9689	  hardcode_direct=no
9690        ;;
9691	motorola)
9692	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9694	;;
9695      esac
9696      runpath_var='LD_RUN_PATH'
9697      hardcode_shlibpath_var=no
9698      ;;
9699
9700    sysv4.3*)
9701      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702      hardcode_shlibpath_var=no
9703      export_dynamic_flag_spec='-Bexport'
9704      ;;
9705
9706    sysv4*MP*)
9707      if test -d /usr/nec; then
9708	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709	hardcode_shlibpath_var=no
9710	runpath_var=LD_RUN_PATH
9711	hardcode_runpath_var=yes
9712	ld_shlibs=yes
9713      fi
9714      ;;
9715
9716    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9717      no_undefined_flag='${wl}-z,text'
9718      archive_cmds_need_lc=no
9719      hardcode_shlibpath_var=no
9720      runpath_var='LD_RUN_PATH'
9721
9722      if test "$GCC" = yes; then
9723	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725      else
9726	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728      fi
9729      ;;
9730
9731    sysv5* | sco3.2v5* | sco5v6*)
9732      # Note: We can NOT use -z defs as we might desire, because we do not
9733      # link with -lc, and that would cause any symbols used from libc to
9734      # always be unresolved, which means just about no library would
9735      # ever link correctly.  If we're not using GNU ld we use -z text
9736      # though, which does catch some bad symbols but isn't as heavy-handed
9737      # as -z defs.
9738      no_undefined_flag='${wl}-z,text'
9739      allow_undefined_flag='${wl}-z,nodefs'
9740      archive_cmds_need_lc=no
9741      hardcode_shlibpath_var=no
9742      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9743      hardcode_libdir_separator=':'
9744      link_all_deplibs=yes
9745      export_dynamic_flag_spec='${wl}-Bexport'
9746      runpath_var='LD_RUN_PATH'
9747
9748      if test "$GCC" = yes; then
9749	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9750	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751      else
9752	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754      fi
9755      ;;
9756
9757    uts4*)
9758      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759      hardcode_libdir_flag_spec='-L$libdir'
9760      hardcode_shlibpath_var=no
9761      ;;
9762
9763    *)
9764      ld_shlibs=no
9765      ;;
9766    esac
9767  fi
9768
9769echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9770echo "${ECHO_T}$ld_shlibs" >&6
9771test "$ld_shlibs" = no && can_build_shared=no
9772
9773#
9774# Do we need to explicitly link libc?
9775#
9776case "x$archive_cmds_need_lc" in
9777x|xyes)
9778  # Assume -lc should be added
9779  archive_cmds_need_lc=yes
9780
9781  if test "$enable_shared" = yes && test "$GCC" = yes; then
9782    case $archive_cmds in
9783    *'~'*)
9784      # FIXME: we may have to deal with multi-command sequences.
9785      ;;
9786    '$CC '*)
9787      # Test whether the compiler implicitly links with -lc since on some
9788      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9789      # to ld, don't add -lc before -lgcc.
9790      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9791echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9792      $rm conftest*
9793      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9794
9795      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796  (eval $ac_compile) 2>&5
9797  ac_status=$?
9798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799  (exit $ac_status); } 2>conftest.err; then
9800        soname=conftest
9801        lib=conftest
9802        libobjs=conftest.$ac_objext
9803        deplibs=
9804        wl=$lt_prog_compiler_wl
9805	pic_flag=$lt_prog_compiler_pic
9806        compiler_flags=-v
9807        linker_flags=-v
9808        verstring=
9809        output_objdir=.
9810        libname=conftest
9811        lt_save_allow_undefined_flag=$allow_undefined_flag
9812        allow_undefined_flag=
9813        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9814  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9815  ac_status=$?
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); }
9818        then
9819	  archive_cmds_need_lc=no
9820        else
9821	  archive_cmds_need_lc=yes
9822        fi
9823        allow_undefined_flag=$lt_save_allow_undefined_flag
9824      else
9825        cat conftest.err 1>&5
9826      fi
9827      $rm conftest*
9828      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9829echo "${ECHO_T}$archive_cmds_need_lc" >&6
9830      ;;
9831    esac
9832  fi
9833  ;;
9834esac
9835
9836echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9837echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9838library_names_spec=
9839libname_spec='lib$name'
9840soname_spec=
9841shrext_cmds=".so"
9842postinstall_cmds=
9843postuninstall_cmds=
9844finish_cmds=
9845finish_eval=
9846shlibpath_var=
9847shlibpath_overrides_runpath=unknown
9848version_type=none
9849dynamic_linker="$host_os ld.so"
9850sys_lib_dlsearch_path_spec="/lib /usr/lib"
9851if test "$GCC" = yes; then
9852  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9853  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9854    # if the path contains ";" then we assume it to be the separator
9855    # otherwise default to the standard path separator (i.e. ":") - it is
9856    # assumed that no part of a normal pathname contains ";" but that should
9857    # okay in the real world where ";" in dirpaths is itself problematic.
9858    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9859  else
9860    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9861  fi
9862else
9863  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9864fi
9865need_lib_prefix=unknown
9866hardcode_into_libs=no
9867
9868# when you set need_version to no, make sure it does not cause -set_version
9869# flags to be left without arguments
9870need_version=unknown
9871
9872case $host_os in
9873aix3*)
9874  version_type=linux
9875  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9876  shlibpath_var=LIBPATH
9877
9878  # AIX 3 has no versioning support, so we append a major version to the name.
9879  soname_spec='${libname}${release}${shared_ext}$major'
9880  ;;
9881
9882aix4* | aix5*)
9883  version_type=linux
9884  need_lib_prefix=no
9885  need_version=no
9886  hardcode_into_libs=yes
9887  if test "$host_cpu" = ia64; then
9888    # AIX 5 supports IA64
9889    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9890    shlibpath_var=LD_LIBRARY_PATH
9891  else
9892    # With GCC up to 2.95.x, collect2 would create an import file
9893    # for dependence libraries.  The import file would start with
9894    # the line `#! .'.  This would cause the generated library to
9895    # depend on `.', always an invalid library.  This was fixed in
9896    # development snapshots of GCC prior to 3.0.
9897    case $host_os in
9898      aix4 | aix4.[01] | aix4.[01].*)
9899      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9900	   echo ' yes '
9901	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9902	:
9903      else
9904	can_build_shared=no
9905      fi
9906      ;;
9907    esac
9908    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9909    # soname into executable. Probably we can add versioning support to
9910    # collect2, so additional links can be useful in future.
9911    if test "$aix_use_runtimelinking" = yes; then
9912      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9913      # instead of lib<name>.a to let people know that these are not
9914      # typical AIX shared libraries.
9915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916    else
9917      # We preserve .a as extension for shared libraries through AIX4.2
9918      # and later when we are not doing run time linking.
9919      library_names_spec='${libname}${release}.a $libname.a'
9920      soname_spec='${libname}${release}${shared_ext}$major'
9921    fi
9922    shlibpath_var=LIBPATH
9923  fi
9924  ;;
9925
9926amigaos*)
9927  library_names_spec='$libname.ixlibrary $libname.a'
9928  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9929  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'
9930  ;;
9931
9932beos*)
9933  library_names_spec='${libname}${shared_ext}'
9934  dynamic_linker="$host_os ld.so"
9935  shlibpath_var=LIBRARY_PATH
9936  ;;
9937
9938bsdi[45]*)
9939  version_type=linux
9940  need_version=no
9941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942  soname_spec='${libname}${release}${shared_ext}$major'
9943  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9944  shlibpath_var=LD_LIBRARY_PATH
9945  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9946  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9947  # the default ld.so.conf also contains /usr/contrib/lib and
9948  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9949  # libtool to hard-code these into programs
9950  ;;
9951
9952cygwin* | mingw* | pw32*)
9953  version_type=windows
9954  shrext_cmds=".dll"
9955  need_version=no
9956  need_lib_prefix=no
9957
9958  case $GCC,$host_os in
9959  yes,cygwin* | yes,mingw* | yes,pw32*)
9960    library_names_spec='$libname.dll.a'
9961    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9962    postinstall_cmds='base_file=`basename \${file}`~
9963      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9964      dldir=$destdir/`dirname \$dlpath`~
9965      test -d \$dldir || mkdir -p \$dldir~
9966      $install_prog $dir/$dlname \$dldir/$dlname~
9967      chmod a+x \$dldir/$dlname'
9968    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9969      dlpath=$dir/\$dldll~
9970       $rm \$dlpath'
9971    shlibpath_overrides_runpath=yes
9972
9973    case $host_os in
9974    cygwin*)
9975      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9976      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9978      ;;
9979    mingw*)
9980      # MinGW DLLs use traditional 'lib' prefix
9981      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9983      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9984        # It is most probably a Windows format PATH printed by
9985        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9986        # path with ; separators, and with drive letters. We can handle the
9987        # drive letters (cygwin fileutils understands them), so leave them,
9988        # especially as we might pass files found there to a mingw objdump,
9989        # which wouldn't understand a cygwinified path. Ahh.
9990        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9991      else
9992        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9993      fi
9994      ;;
9995    pw32*)
9996      # pw32 DLLs use 'pw' prefix rather than 'lib'
9997      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998      ;;
9999    esac
10000    ;;
10001
10002  *)
10003    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10004    ;;
10005  esac
10006  dynamic_linker='Win32 ld.exe'
10007  # FIXME: first we should search . and the directory the executable is in
10008  shlibpath_var=PATH
10009  ;;
10010
10011darwin* | rhapsody*)
10012  dynamic_linker="$host_os dyld"
10013  version_type=darwin
10014  need_lib_prefix=no
10015  need_version=no
10016  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10017  soname_spec='${libname}${release}${major}$shared_ext'
10018  shlibpath_overrides_runpath=yes
10019  shlibpath_var=DYLD_LIBRARY_PATH
10020  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10021  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10022  if test "$GCC" = yes; then
10023    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"`
10024  else
10025    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10026  fi
10027  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10028  ;;
10029
10030dgux*)
10031  version_type=linux
10032  need_lib_prefix=no
10033  need_version=no
10034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10035  soname_spec='${libname}${release}${shared_ext}$major'
10036  shlibpath_var=LD_LIBRARY_PATH
10037  ;;
10038
10039freebsd1*)
10040  dynamic_linker=no
10041  ;;
10042
10043kfreebsd*-gnu)
10044  version_type=linux
10045  need_lib_prefix=no
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  shlibpath_var=LD_LIBRARY_PATH
10050  shlibpath_overrides_runpath=no
10051  hardcode_into_libs=yes
10052  dynamic_linker='GNU ld.so'
10053  ;;
10054
10055freebsd* | dragonfly*)
10056  # DragonFly does not have aout.  When/if they implement a new
10057  # versioning mechanism, adjust this.
10058  if test -x /usr/bin/objformat; then
10059    objformat=`/usr/bin/objformat`
10060  else
10061    case $host_os in
10062    freebsd[123]*) objformat=aout ;;
10063    *) objformat=elf ;;
10064    esac
10065  fi
10066  version_type=freebsd-$objformat
10067  case $version_type in
10068    freebsd-elf*)
10069      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10070      need_version=no
10071      need_lib_prefix=no
10072      ;;
10073    freebsd-*)
10074      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10075      need_version=yes
10076      ;;
10077  esac
10078  shlibpath_var=LD_LIBRARY_PATH
10079  case $host_os in
10080  freebsd2*)
10081    shlibpath_overrides_runpath=yes
10082    ;;
10083  freebsd3.[01]* | freebsdelf3.[01]*)
10084    shlibpath_overrides_runpath=yes
10085    hardcode_into_libs=yes
10086    ;;
10087  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10088  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10089    shlibpath_overrides_runpath=no
10090    hardcode_into_libs=yes
10091    ;;
10092  freebsd*) # from 4.6 on
10093    shlibpath_overrides_runpath=yes
10094    hardcode_into_libs=yes
10095    ;;
10096  esac
10097  ;;
10098
10099gnu*)
10100  version_type=linux
10101  need_lib_prefix=no
10102  need_version=no
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10104  soname_spec='${libname}${release}${shared_ext}$major'
10105  shlibpath_var=LD_LIBRARY_PATH
10106  hardcode_into_libs=yes
10107  ;;
10108
10109hpux9* | hpux10* | hpux11*)
10110  # Give a soname corresponding to the major version so that dld.sl refuses to
10111  # link against other versions.
10112  version_type=sunos
10113  need_lib_prefix=no
10114  need_version=no
10115  case $host_cpu in
10116  ia64*)
10117    shrext_cmds='.so'
10118    hardcode_into_libs=yes
10119    dynamic_linker="$host_os dld.so"
10120    shlibpath_var=LD_LIBRARY_PATH
10121    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123    soname_spec='${libname}${release}${shared_ext}$major'
10124    if test "X$HPUX_IA64_MODE" = X32; then
10125      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10126    else
10127      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10128    fi
10129    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10130    ;;
10131   hppa*64*)
10132     shrext_cmds='.sl'
10133     hardcode_into_libs=yes
10134     dynamic_linker="$host_os dld.sl"
10135     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138     soname_spec='${libname}${release}${shared_ext}$major'
10139     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10141     ;;
10142   *)
10143    shrext_cmds='.sl'
10144    dynamic_linker="$host_os dld.sl"
10145    shlibpath_var=SHLIB_PATH
10146    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148    soname_spec='${libname}${release}${shared_ext}$major'
10149    ;;
10150  esac
10151  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10152  postinstall_cmds='chmod 555 $lib'
10153  ;;
10154
10155interix3*)
10156  version_type=linux
10157  need_lib_prefix=no
10158  need_version=no
10159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10160  soname_spec='${libname}${release}${shared_ext}$major'
10161  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10162  shlibpath_var=LD_LIBRARY_PATH
10163  shlibpath_overrides_runpath=no
10164  hardcode_into_libs=yes
10165  ;;
10166
10167irix5* | irix6* | nonstopux*)
10168  case $host_os in
10169    nonstopux*) version_type=nonstopux ;;
10170    *)
10171	if test "$lt_cv_prog_gnu_ld" = yes; then
10172		version_type=linux
10173	else
10174		version_type=irix
10175	fi ;;
10176  esac
10177  need_lib_prefix=no
10178  need_version=no
10179  soname_spec='${libname}${release}${shared_ext}$major'
10180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10181  case $host_os in
10182  irix5* | nonstopux*)
10183    libsuff= shlibsuff=
10184    ;;
10185  *)
10186    case $LD in # libtool.m4 will add one of these switches to LD
10187    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10188      libsuff= shlibsuff= libmagic=32-bit;;
10189    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10190      libsuff=32 shlibsuff=N32 libmagic=N32;;
10191    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10192      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10193    *) libsuff= shlibsuff= libmagic=never-match;;
10194    esac
10195    ;;
10196  esac
10197  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10198  shlibpath_overrides_runpath=no
10199  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10200  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10201  hardcode_into_libs=yes
10202  ;;
10203
10204# No shared lib support for Linux oldld, aout, or coff.
10205linux*oldld* | linux*aout* | linux*coff*)
10206  dynamic_linker=no
10207  ;;
10208
10209# This must be Linux ELF.
10210linux*)
10211  version_type=linux
10212  need_lib_prefix=no
10213  need_version=no
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10217  shlibpath_var=LD_LIBRARY_PATH
10218  shlibpath_overrides_runpath=no
10219  # This implies no fast_install, which is unacceptable.
10220  # Some rework will be needed to allow for fast_install
10221  # before this can be enabled.
10222  hardcode_into_libs=yes
10223
10224  # Append ld.so.conf contents to the search path
10225  if test -f /etc/ld.so.conf; then
10226    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' ' '`
10227    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10228  fi
10229
10230  # We used to test for /lib/ld.so.1 and disable shared libraries on
10231  # powerpc, because MkLinux only supported shared libraries with the
10232  # GNU dynamic linker.  Since this was broken with cross compilers,
10233  # most powerpc-linux boxes support dynamic linking these days and
10234  # people can always --disable-shared, the test was removed, and we
10235  # assume the GNU/Linux dynamic linker is in use.
10236  dynamic_linker='GNU/Linux ld.so'
10237  ;;
10238
10239knetbsd*-gnu)
10240  version_type=linux
10241  need_lib_prefix=no
10242  need_version=no
10243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10244  soname_spec='${libname}${release}${shared_ext}$major'
10245  shlibpath_var=LD_LIBRARY_PATH
10246  shlibpath_overrides_runpath=no
10247  hardcode_into_libs=yes
10248  dynamic_linker='GNU ld.so'
10249  ;;
10250
10251netbsd*)
10252  version_type=sunos
10253  need_lib_prefix=no
10254  need_version=no
10255  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10256    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10257    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10258    dynamic_linker='NetBSD (a.out) ld.so'
10259  else
10260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10261    soname_spec='${libname}${release}${shared_ext}$major'
10262    dynamic_linker='NetBSD ld.elf_so'
10263  fi
10264  shlibpath_var=LD_LIBRARY_PATH
10265  shlibpath_overrides_runpath=yes
10266  hardcode_into_libs=yes
10267  ;;
10268
10269newsos6)
10270  version_type=linux
10271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272  shlibpath_var=LD_LIBRARY_PATH
10273  shlibpath_overrides_runpath=yes
10274  ;;
10275
10276nto-qnx*)
10277  version_type=linux
10278  need_lib_prefix=no
10279  need_version=no
10280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281  soname_spec='${libname}${release}${shared_ext}$major'
10282  shlibpath_var=LD_LIBRARY_PATH
10283  shlibpath_overrides_runpath=yes
10284  ;;
10285
10286openbsd*)
10287  version_type=sunos
10288  sys_lib_dlsearch_path_spec="/usr/lib"
10289  need_lib_prefix=no
10290  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10291  case $host_os in
10292    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10293    *)                         need_version=no  ;;
10294  esac
10295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10297  shlibpath_var=LD_LIBRARY_PATH
10298  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10299    case $host_os in
10300      openbsd2.[89] | openbsd2.[89].*)
10301	shlibpath_overrides_runpath=no
10302	;;
10303      *)
10304	shlibpath_overrides_runpath=yes
10305	;;
10306      esac
10307  else
10308    shlibpath_overrides_runpath=yes
10309  fi
10310  ;;
10311
10312os2*)
10313  libname_spec='$name'
10314  shrext_cmds=".dll"
10315  need_lib_prefix=no
10316  library_names_spec='$libname${shared_ext} $libname.a'
10317  dynamic_linker='OS/2 ld.exe'
10318  shlibpath_var=LIBPATH
10319  ;;
10320
10321osf3* | osf4* | osf5*)
10322  version_type=osf
10323  need_lib_prefix=no
10324  need_version=no
10325  soname_spec='${libname}${release}${shared_ext}$major'
10326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327  shlibpath_var=LD_LIBRARY_PATH
10328  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10329  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10330  ;;
10331
10332solaris*)
10333  version_type=linux
10334  need_lib_prefix=no
10335  need_version=no
10336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337  soname_spec='${libname}${release}${shared_ext}$major'
10338  shlibpath_var=LD_LIBRARY_PATH
10339  shlibpath_overrides_runpath=yes
10340  hardcode_into_libs=yes
10341  # ldd complains unless libraries are executable
10342  postinstall_cmds='chmod +x $lib'
10343  ;;
10344
10345sunos4*)
10346  version_type=sunos
10347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349  shlibpath_var=LD_LIBRARY_PATH
10350  shlibpath_overrides_runpath=yes
10351  if test "$with_gnu_ld" = yes; then
10352    need_lib_prefix=no
10353  fi
10354  need_version=yes
10355  ;;
10356
10357sysv4 | sysv4.3*)
10358  version_type=linux
10359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360  soname_spec='${libname}${release}${shared_ext}$major'
10361  shlibpath_var=LD_LIBRARY_PATH
10362  case $host_vendor in
10363    sni)
10364      shlibpath_overrides_runpath=no
10365      need_lib_prefix=no
10366      export_dynamic_flag_spec='${wl}-Blargedynsym'
10367      runpath_var=LD_RUN_PATH
10368      ;;
10369    siemens)
10370      need_lib_prefix=no
10371      ;;
10372    motorola)
10373      need_lib_prefix=no
10374      need_version=no
10375      shlibpath_overrides_runpath=no
10376      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377      ;;
10378  esac
10379  ;;
10380
10381sysv4*MP*)
10382  if test -d /usr/nec ;then
10383    version_type=linux
10384    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385    soname_spec='$libname${shared_ext}.$major'
10386    shlibpath_var=LD_LIBRARY_PATH
10387  fi
10388  ;;
10389
10390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10391  version_type=freebsd-elf
10392  need_lib_prefix=no
10393  need_version=no
10394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10395  soname_spec='${libname}${release}${shared_ext}$major'
10396  shlibpath_var=LD_LIBRARY_PATH
10397  hardcode_into_libs=yes
10398  if test "$with_gnu_ld" = yes; then
10399    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10400    shlibpath_overrides_runpath=no
10401  else
10402    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10403    shlibpath_overrides_runpath=yes
10404    case $host_os in
10405      sco3.2v5*)
10406        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10407	;;
10408    esac
10409  fi
10410  sys_lib_dlsearch_path_spec='/usr/lib'
10411  ;;
10412
10413uts4*)
10414  version_type=linux
10415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416  soname_spec='${libname}${release}${shared_ext}$major'
10417  shlibpath_var=LD_LIBRARY_PATH
10418  ;;
10419
10420*)
10421  dynamic_linker=no
10422  ;;
10423esac
10424echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10425echo "${ECHO_T}$dynamic_linker" >&6
10426test "$dynamic_linker" = no && can_build_shared=no
10427
10428variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10429if test "$GCC" = yes; then
10430  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10431fi
10432
10433echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10435hardcode_action=
10436if test -n "$hardcode_libdir_flag_spec" || \
10437   test -n "$runpath_var" || \
10438   test "X$hardcode_automatic" = "Xyes" ; then
10439
10440  # We can hardcode non-existant directories.
10441  if test "$hardcode_direct" != no &&
10442     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443     # have to relink, otherwise we might link with an installed library
10444     # when we should be linking with a yet-to-be-installed one
10445     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446     test "$hardcode_minus_L" != no; then
10447    # Linking always hardcodes the temporary library directory.
10448    hardcode_action=relink
10449  else
10450    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451    hardcode_action=immediate
10452  fi
10453else
10454  # We cannot hardcode anything, or else we can only hardcode existing
10455  # directories.
10456  hardcode_action=unsupported
10457fi
10458echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459echo "${ECHO_T}$hardcode_action" >&6
10460
10461if test "$hardcode_action" = relink; then
10462  # Fast installation is not supported
10463  enable_fast_install=no
10464elif test "$shlibpath_overrides_runpath" = yes ||
10465     test "$enable_shared" = no; then
10466  # Fast installation is not necessary
10467  enable_fast_install=needless
10468fi
10469
10470striplib=
10471old_striplib=
10472echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10474if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477  echo "$as_me:$LINENO: result: yes" >&5
10478echo "${ECHO_T}yes" >&6
10479else
10480# FIXME - insert some real tests, host_os isn't really good enough
10481  case $host_os in
10482   darwin*)
10483       if test -n "$STRIP" ; then
10484         striplib="$STRIP -x"
10485         echo "$as_me:$LINENO: result: yes" >&5
10486echo "${ECHO_T}yes" >&6
10487       else
10488  echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
10490fi
10491       ;;
10492   *)
10493  echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
10495    ;;
10496  esac
10497fi
10498
10499if test "x$enable_dlopen" != xyes; then
10500  enable_dlopen=unknown
10501  enable_dlopen_self=unknown
10502  enable_dlopen_self_static=unknown
10503else
10504  lt_cv_dlopen=no
10505  lt_cv_dlopen_libs=
10506
10507  case $host_os in
10508  beos*)
10509    lt_cv_dlopen="load_add_on"
10510    lt_cv_dlopen_libs=
10511    lt_cv_dlopen_self=yes
10512    ;;
10513
10514  mingw* | pw32*)
10515    lt_cv_dlopen="LoadLibrary"
10516    lt_cv_dlopen_libs=
10517   ;;
10518
10519  cygwin*)
10520    lt_cv_dlopen="dlopen"
10521    lt_cv_dlopen_libs=
10522   ;;
10523
10524  darwin*)
10525  # if libdl is installed we need to link against it
10526    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10528if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529  echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531  ac_check_lib_save_LIBS=$LIBS
10532LIBS="-ldl  $LIBS"
10533cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h.  */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h.  */
10539
10540/* Override any gcc2 internal prototype to avoid an error.  */
10541#ifdef __cplusplus
10542extern "C"
10543#endif
10544/* We use char because int might match the return type of a gcc2
10545   builtin and then its argument prototype would still apply.  */
10546char dlopen ();
10547int
10548main ()
10549{
10550dlopen ();
10551  ;
10552  return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext conftest$ac_exeext
10556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557  (eval $ac_link) 2>conftest.er1
10558  ac_status=$?
10559  grep -v '^ *+' conftest.er1 >conftest.err
10560  rm -f conftest.er1
10561  cat conftest.err >&5
10562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563  (exit $ac_status); } &&
10564	 { ac_try='test -z "$ac_c_werror_flag"
10565			 || test ! -s conftest.err'
10566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567  (eval $ac_try) 2>&5
10568  ac_status=$?
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); }; } &&
10571	 { ac_try='test -s conftest$ac_exeext'
10572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573  (eval $ac_try) 2>&5
10574  ac_status=$?
10575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576  (exit $ac_status); }; }; then
10577  ac_cv_lib_dl_dlopen=yes
10578else
10579  echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
10582ac_cv_lib_dl_dlopen=no
10583fi
10584rm -f conftest.err conftest.$ac_objext \
10585      conftest$ac_exeext conftest.$ac_ext
10586LIBS=$ac_check_lib_save_LIBS
10587fi
10588echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10589echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10590if test $ac_cv_lib_dl_dlopen = yes; then
10591  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10592else
10593
10594    lt_cv_dlopen="dyld"
10595    lt_cv_dlopen_libs=
10596    lt_cv_dlopen_self=yes
10597
10598fi
10599
10600   ;;
10601
10602  *)
10603    echo "$as_me:$LINENO: checking for shl_load" >&5
10604echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10605if test "${ac_cv_func_shl_load+set}" = set; then
10606  echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608  cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h.  */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h.  */
10614/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10615   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10616#define shl_load innocuous_shl_load
10617
10618/* System header to define __stub macros and hopefully few prototypes,
10619    which can conflict with char shl_load (); below.
10620    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10621    <limits.h> exists even on freestanding compilers.  */
10622
10623#ifdef __STDC__
10624# include <limits.h>
10625#else
10626# include <assert.h>
10627#endif
10628
10629#undef shl_load
10630
10631/* Override any gcc2 internal prototype to avoid an error.  */
10632#ifdef __cplusplus
10633extern "C"
10634{
10635#endif
10636/* We use char because int might match the return type of a gcc2
10637   builtin and then its argument prototype would still apply.  */
10638char shl_load ();
10639/* The GNU C library defines this for functions which it implements
10640    to always fail with ENOSYS.  Some functions are actually named
10641    something starting with __ and the normal name is an alias.  */
10642#if defined (__stub_shl_load) || defined (__stub___shl_load)
10643choke me
10644#else
10645char (*f) () = shl_load;
10646#endif
10647#ifdef __cplusplus
10648}
10649#endif
10650
10651int
10652main ()
10653{
10654return f != shl_load;
10655  ;
10656  return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext conftest$ac_exeext
10660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661  (eval $ac_link) 2>conftest.er1
10662  ac_status=$?
10663  grep -v '^ *+' conftest.er1 >conftest.err
10664  rm -f conftest.er1
10665  cat conftest.err >&5
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); } &&
10668	 { ac_try='test -z "$ac_c_werror_flag"
10669			 || test ! -s conftest.err'
10670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671  (eval $ac_try) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); }; } &&
10675	 { ac_try='test -s conftest$ac_exeext'
10676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677  (eval $ac_try) 2>&5
10678  ac_status=$?
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); }; }; then
10681  ac_cv_func_shl_load=yes
10682else
10683  echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
10686ac_cv_func_shl_load=no
10687fi
10688rm -f conftest.err conftest.$ac_objext \
10689      conftest$ac_exeext conftest.$ac_ext
10690fi
10691echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10692echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10693if test $ac_cv_func_shl_load = yes; then
10694  lt_cv_dlopen="shl_load"
10695else
10696  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10697echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10698if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10699  echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
10701  ac_check_lib_save_LIBS=$LIBS
10702LIBS="-ldld  $LIBS"
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h.  */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h.  */
10709
10710/* Override any gcc2 internal prototype to avoid an error.  */
10711#ifdef __cplusplus
10712extern "C"
10713#endif
10714/* We use char because int might match the return type of a gcc2
10715   builtin and then its argument prototype would still apply.  */
10716char shl_load ();
10717int
10718main ()
10719{
10720shl_load ();
10721  ;
10722  return 0;
10723}
10724_ACEOF
10725rm -f conftest.$ac_objext conftest$ac_exeext
10726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727  (eval $ac_link) 2>conftest.er1
10728  ac_status=$?
10729  grep -v '^ *+' conftest.er1 >conftest.err
10730  rm -f conftest.er1
10731  cat conftest.err >&5
10732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733  (exit $ac_status); } &&
10734	 { ac_try='test -z "$ac_c_werror_flag"
10735			 || test ! -s conftest.err'
10736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737  (eval $ac_try) 2>&5
10738  ac_status=$?
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); }; } &&
10741	 { ac_try='test -s conftest$ac_exeext'
10742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743  (eval $ac_try) 2>&5
10744  ac_status=$?
10745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746  (exit $ac_status); }; }; then
10747  ac_cv_lib_dld_shl_load=yes
10748else
10749  echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
10752ac_cv_lib_dld_shl_load=no
10753fi
10754rm -f conftest.err conftest.$ac_objext \
10755      conftest$ac_exeext conftest.$ac_ext
10756LIBS=$ac_check_lib_save_LIBS
10757fi
10758echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10759echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10760if test $ac_cv_lib_dld_shl_load = yes; then
10761  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10762else
10763  echo "$as_me:$LINENO: checking for dlopen" >&5
10764echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10765if test "${ac_cv_func_dlopen+set}" = set; then
10766  echo $ECHO_N "(cached) $ECHO_C" >&6
10767else
10768  cat >conftest.$ac_ext <<_ACEOF
10769/* confdefs.h.  */
10770_ACEOF
10771cat confdefs.h >>conftest.$ac_ext
10772cat >>conftest.$ac_ext <<_ACEOF
10773/* end confdefs.h.  */
10774/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10776#define dlopen innocuous_dlopen
10777
10778/* System header to define __stub macros and hopefully few prototypes,
10779    which can conflict with char dlopen (); below.
10780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10781    <limits.h> exists even on freestanding compilers.  */
10782
10783#ifdef __STDC__
10784# include <limits.h>
10785#else
10786# include <assert.h>
10787#endif
10788
10789#undef dlopen
10790
10791/* Override any gcc2 internal prototype to avoid an error.  */
10792#ifdef __cplusplus
10793extern "C"
10794{
10795#endif
10796/* We use char because int might match the return type of a gcc2
10797   builtin and then its argument prototype would still apply.  */
10798char dlopen ();
10799/* The GNU C library defines this for functions which it implements
10800    to always fail with ENOSYS.  Some functions are actually named
10801    something starting with __ and the normal name is an alias.  */
10802#if defined (__stub_dlopen) || defined (__stub___dlopen)
10803choke me
10804#else
10805char (*f) () = dlopen;
10806#endif
10807#ifdef __cplusplus
10808}
10809#endif
10810
10811int
10812main ()
10813{
10814return f != dlopen;
10815  ;
10816  return 0;
10817}
10818_ACEOF
10819rm -f conftest.$ac_objext conftest$ac_exeext
10820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821  (eval $ac_link) 2>conftest.er1
10822  ac_status=$?
10823  grep -v '^ *+' conftest.er1 >conftest.err
10824  rm -f conftest.er1
10825  cat conftest.err >&5
10826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827  (exit $ac_status); } &&
10828	 { ac_try='test -z "$ac_c_werror_flag"
10829			 || test ! -s conftest.err'
10830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831  (eval $ac_try) 2>&5
10832  ac_status=$?
10833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834  (exit $ac_status); }; } &&
10835	 { ac_try='test -s conftest$ac_exeext'
10836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837  (eval $ac_try) 2>&5
10838  ac_status=$?
10839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840  (exit $ac_status); }; }; then
10841  ac_cv_func_dlopen=yes
10842else
10843  echo "$as_me: failed program was:" >&5
10844sed 's/^/| /' conftest.$ac_ext >&5
10845
10846ac_cv_func_dlopen=no
10847fi
10848rm -f conftest.err conftest.$ac_objext \
10849      conftest$ac_exeext conftest.$ac_ext
10850fi
10851echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10852echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10853if test $ac_cv_func_dlopen = yes; then
10854  lt_cv_dlopen="dlopen"
10855else
10856  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10857echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10859  echo $ECHO_N "(cached) $ECHO_C" >&6
10860else
10861  ac_check_lib_save_LIBS=$LIBS
10862LIBS="-ldl  $LIBS"
10863cat >conftest.$ac_ext <<_ACEOF
10864/* confdefs.h.  */
10865_ACEOF
10866cat confdefs.h >>conftest.$ac_ext
10867cat >>conftest.$ac_ext <<_ACEOF
10868/* end confdefs.h.  */
10869
10870/* Override any gcc2 internal prototype to avoid an error.  */
10871#ifdef __cplusplus
10872extern "C"
10873#endif
10874/* We use char because int might match the return type of a gcc2
10875   builtin and then its argument prototype would still apply.  */
10876char dlopen ();
10877int
10878main ()
10879{
10880dlopen ();
10881  ;
10882  return 0;
10883}
10884_ACEOF
10885rm -f conftest.$ac_objext conftest$ac_exeext
10886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887  (eval $ac_link) 2>conftest.er1
10888  ac_status=$?
10889  grep -v '^ *+' conftest.er1 >conftest.err
10890  rm -f conftest.er1
10891  cat conftest.err >&5
10892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893  (exit $ac_status); } &&
10894	 { ac_try='test -z "$ac_c_werror_flag"
10895			 || test ! -s conftest.err'
10896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897  (eval $ac_try) 2>&5
10898  ac_status=$?
10899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900  (exit $ac_status); }; } &&
10901	 { ac_try='test -s conftest$ac_exeext'
10902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903  (eval $ac_try) 2>&5
10904  ac_status=$?
10905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906  (exit $ac_status); }; }; then
10907  ac_cv_lib_dl_dlopen=yes
10908else
10909  echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912ac_cv_lib_dl_dlopen=no
10913fi
10914rm -f conftest.err conftest.$ac_objext \
10915      conftest$ac_exeext conftest.$ac_ext
10916LIBS=$ac_check_lib_save_LIBS
10917fi
10918echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10919echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10920if test $ac_cv_lib_dl_dlopen = yes; then
10921  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10922else
10923  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10924echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10925if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10926  echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928  ac_check_lib_save_LIBS=$LIBS
10929LIBS="-lsvld  $LIBS"
10930cat >conftest.$ac_ext <<_ACEOF
10931/* confdefs.h.  */
10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h.  */
10936
10937/* Override any gcc2 internal prototype to avoid an error.  */
10938#ifdef __cplusplus
10939extern "C"
10940#endif
10941/* We use char because int might match the return type of a gcc2
10942   builtin and then its argument prototype would still apply.  */
10943char dlopen ();
10944int
10945main ()
10946{
10947dlopen ();
10948  ;
10949  return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext conftest$ac_exeext
10953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954  (eval $ac_link) 2>conftest.er1
10955  ac_status=$?
10956  grep -v '^ *+' conftest.er1 >conftest.err
10957  rm -f conftest.er1
10958  cat conftest.err >&5
10959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960  (exit $ac_status); } &&
10961	 { ac_try='test -z "$ac_c_werror_flag"
10962			 || test ! -s conftest.err'
10963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964  (eval $ac_try) 2>&5
10965  ac_status=$?
10966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967  (exit $ac_status); }; } &&
10968	 { ac_try='test -s conftest$ac_exeext'
10969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970  (eval $ac_try) 2>&5
10971  ac_status=$?
10972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973  (exit $ac_status); }; }; then
10974  ac_cv_lib_svld_dlopen=yes
10975else
10976  echo "$as_me: failed program was:" >&5
10977sed 's/^/| /' conftest.$ac_ext >&5
10978
10979ac_cv_lib_svld_dlopen=no
10980fi
10981rm -f conftest.err conftest.$ac_objext \
10982      conftest$ac_exeext conftest.$ac_ext
10983LIBS=$ac_check_lib_save_LIBS
10984fi
10985echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10986echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10987if test $ac_cv_lib_svld_dlopen = yes; then
10988  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10989else
10990  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10991echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10992if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10993  echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995  ac_check_lib_save_LIBS=$LIBS
10996LIBS="-ldld  $LIBS"
10997cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h.  */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h.  */
11003
11004/* Override any gcc2 internal prototype to avoid an error.  */
11005#ifdef __cplusplus
11006extern "C"
11007#endif
11008/* We use char because int might match the return type of a gcc2
11009   builtin and then its argument prototype would still apply.  */
11010char dld_link ();
11011int
11012main ()
11013{
11014dld_link ();
11015  ;
11016  return 0;
11017}
11018_ACEOF
11019rm -f conftest.$ac_objext conftest$ac_exeext
11020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021  (eval $ac_link) 2>conftest.er1
11022  ac_status=$?
11023  grep -v '^ *+' conftest.er1 >conftest.err
11024  rm -f conftest.er1
11025  cat conftest.err >&5
11026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027  (exit $ac_status); } &&
11028	 { ac_try='test -z "$ac_c_werror_flag"
11029			 || test ! -s conftest.err'
11030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031  (eval $ac_try) 2>&5
11032  ac_status=$?
11033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034  (exit $ac_status); }; } &&
11035	 { ac_try='test -s conftest$ac_exeext'
11036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037  (eval $ac_try) 2>&5
11038  ac_status=$?
11039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040  (exit $ac_status); }; }; then
11041  ac_cv_lib_dld_dld_link=yes
11042else
11043  echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046ac_cv_lib_dld_dld_link=no
11047fi
11048rm -f conftest.err conftest.$ac_objext \
11049      conftest$ac_exeext conftest.$ac_ext
11050LIBS=$ac_check_lib_save_LIBS
11051fi
11052echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11053echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11054if test $ac_cv_lib_dld_dld_link = yes; then
11055  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11056fi
11057
11058
11059fi
11060
11061
11062fi
11063
11064
11065fi
11066
11067
11068fi
11069
11070
11071fi
11072
11073    ;;
11074  esac
11075
11076  if test "x$lt_cv_dlopen" != xno; then
11077    enable_dlopen=yes
11078  else
11079    enable_dlopen=no
11080  fi
11081
11082  case $lt_cv_dlopen in
11083  dlopen)
11084    save_CPPFLAGS="$CPPFLAGS"
11085    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11086
11087    save_LDFLAGS="$LDFLAGS"
11088    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11089
11090    save_LIBS="$LIBS"
11091    LIBS="$lt_cv_dlopen_libs $LIBS"
11092
11093    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11094echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11095if test "${lt_cv_dlopen_self+set}" = set; then
11096  echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098  	  if test "$cross_compiling" = yes; then :
11099  lt_cv_dlopen_self=cross
11100else
11101  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102  lt_status=$lt_dlunknown
11103  cat > conftest.$ac_ext <<EOF
11104#line 11104 "configure"
11105#include "confdefs.h"
11106
11107#if HAVE_DLFCN_H
11108#include <dlfcn.h>
11109#endif
11110
11111#include <stdio.h>
11112
11113#ifdef RTLD_GLOBAL
11114#  define LT_DLGLOBAL		RTLD_GLOBAL
11115#else
11116#  ifdef DL_GLOBAL
11117#    define LT_DLGLOBAL		DL_GLOBAL
11118#  else
11119#    define LT_DLGLOBAL		0
11120#  endif
11121#endif
11122
11123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124   find out it does not work in some platform. */
11125#ifndef LT_DLLAZY_OR_NOW
11126#  ifdef RTLD_LAZY
11127#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11128#  else
11129#    ifdef DL_LAZY
11130#      define LT_DLLAZY_OR_NOW		DL_LAZY
11131#    else
11132#      ifdef RTLD_NOW
11133#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11134#      else
11135#        ifdef DL_NOW
11136#          define LT_DLLAZY_OR_NOW	DL_NOW
11137#        else
11138#          define LT_DLLAZY_OR_NOW	0
11139#        endif
11140#      endif
11141#    endif
11142#  endif
11143#endif
11144
11145#ifdef __cplusplus
11146extern "C" void exit (int);
11147#endif
11148
11149void fnord() { int i=42;}
11150int main ()
11151{
11152  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153  int status = $lt_dlunknown;
11154
11155  if (self)
11156    {
11157      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11158      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11159      /* dlclose (self); */
11160    }
11161  else
11162    puts (dlerror ());
11163
11164    exit (status);
11165}
11166EOF
11167  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11168  (eval $ac_link) 2>&5
11169  ac_status=$?
11170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11172    (./conftest; exit; ) >&5 2>/dev/null
11173    lt_status=$?
11174    case x$lt_status in
11175      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11176      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11177      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11178    esac
11179  else :
11180    # compilation failed
11181    lt_cv_dlopen_self=no
11182  fi
11183fi
11184rm -fr conftest*
11185
11186
11187fi
11188echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11189echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11190
11191    if test "x$lt_cv_dlopen_self" = xyes; then
11192      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11193      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11194echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11195if test "${lt_cv_dlopen_self_static+set}" = set; then
11196  echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198  	  if test "$cross_compiling" = yes; then :
11199  lt_cv_dlopen_self_static=cross
11200else
11201  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11202  lt_status=$lt_dlunknown
11203  cat > conftest.$ac_ext <<EOF
11204#line 11204 "configure"
11205#include "confdefs.h"
11206
11207#if HAVE_DLFCN_H
11208#include <dlfcn.h>
11209#endif
11210
11211#include <stdio.h>
11212
11213#ifdef RTLD_GLOBAL
11214#  define LT_DLGLOBAL		RTLD_GLOBAL
11215#else
11216#  ifdef DL_GLOBAL
11217#    define LT_DLGLOBAL		DL_GLOBAL
11218#  else
11219#    define LT_DLGLOBAL		0
11220#  endif
11221#endif
11222
11223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11224   find out it does not work in some platform. */
11225#ifndef LT_DLLAZY_OR_NOW
11226#  ifdef RTLD_LAZY
11227#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11228#  else
11229#    ifdef DL_LAZY
11230#      define LT_DLLAZY_OR_NOW		DL_LAZY
11231#    else
11232#      ifdef RTLD_NOW
11233#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11234#      else
11235#        ifdef DL_NOW
11236#          define LT_DLLAZY_OR_NOW	DL_NOW
11237#        else
11238#          define LT_DLLAZY_OR_NOW	0
11239#        endif
11240#      endif
11241#    endif
11242#  endif
11243#endif
11244
11245#ifdef __cplusplus
11246extern "C" void exit (int);
11247#endif
11248
11249void fnord() { int i=42;}
11250int main ()
11251{
11252  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11253  int status = $lt_dlunknown;
11254
11255  if (self)
11256    {
11257      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11258      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11259      /* dlclose (self); */
11260    }
11261  else
11262    puts (dlerror ());
11263
11264    exit (status);
11265}
11266EOF
11267  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268  (eval $ac_link) 2>&5
11269  ac_status=$?
11270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11272    (./conftest; exit; ) >&5 2>/dev/null
11273    lt_status=$?
11274    case x$lt_status in
11275      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11276      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11277      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11278    esac
11279  else :
11280    # compilation failed
11281    lt_cv_dlopen_self_static=no
11282  fi
11283fi
11284rm -fr conftest*
11285
11286
11287fi
11288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11289echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11290    fi
11291
11292    CPPFLAGS="$save_CPPFLAGS"
11293    LDFLAGS="$save_LDFLAGS"
11294    LIBS="$save_LIBS"
11295    ;;
11296  esac
11297
11298  case $lt_cv_dlopen_self in
11299  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11300  *) enable_dlopen_self=unknown ;;
11301  esac
11302
11303  case $lt_cv_dlopen_self_static in
11304  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11305  *) enable_dlopen_self_static=unknown ;;
11306  esac
11307fi
11308
11309
11310# Report which library types will actually be built
11311echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11312echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11313echo "$as_me:$LINENO: result: $can_build_shared" >&5
11314echo "${ECHO_T}$can_build_shared" >&6
11315
11316echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11317echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11318test "$can_build_shared" = "no" && enable_shared=no
11319
11320# On AIX, shared libraries and static libraries use the same namespace, and
11321# are all built from PIC.
11322case $host_os in
11323aix3*)
11324  test "$enable_shared" = yes && enable_static=no
11325  if test -n "$RANLIB"; then
11326    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11327    postinstall_cmds='$RANLIB $lib'
11328  fi
11329  ;;
11330
11331aix4* | aix5*)
11332  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11333    test "$enable_shared" = yes && enable_static=no
11334  fi
11335    ;;
11336esac
11337echo "$as_me:$LINENO: result: $enable_shared" >&5
11338echo "${ECHO_T}$enable_shared" >&6
11339
11340echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11341echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11342# Make sure either enable_shared or enable_static is yes.
11343test "$enable_shared" = yes || enable_static=yes
11344echo "$as_me:$LINENO: result: $enable_static" >&5
11345echo "${ECHO_T}$enable_static" >&6
11346
11347# The else clause should only fire when bootstrapping the
11348# libtool distribution, otherwise you forgot to ship ltmain.sh
11349# with your package, and you will get complaints that there are
11350# no rules to generate ltmain.sh.
11351if test -f "$ltmain"; then
11352  # See if we are running on zsh, and set the options which allow our commands through
11353  # without removal of \ escapes.
11354  if test -n "${ZSH_VERSION+set}" ; then
11355    setopt NO_GLOB_SUBST
11356  fi
11357  # Now quote all the things that may contain metacharacters while being
11358  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11359  # variables and quote the copies for generation of the libtool script.
11360  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11361    SED SHELL STRIP \
11362    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11363    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11364    deplibs_check_method reload_flag reload_cmds need_locks \
11365    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11366    lt_cv_sys_global_symbol_to_c_name_address \
11367    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11368    old_postinstall_cmds old_postuninstall_cmds \
11369    compiler \
11370    CC \
11371    LD \
11372    lt_prog_compiler_wl \
11373    lt_prog_compiler_pic \
11374    lt_prog_compiler_static \
11375    lt_prog_compiler_no_builtin_flag \
11376    export_dynamic_flag_spec \
11377    thread_safe_flag_spec \
11378    whole_archive_flag_spec \
11379    enable_shared_with_static_runtimes \
11380    old_archive_cmds \
11381    old_archive_from_new_cmds \
11382    predep_objects \
11383    postdep_objects \
11384    predeps \
11385    postdeps \
11386    compiler_lib_search_path \
11387    archive_cmds \
11388    archive_expsym_cmds \
11389    postinstall_cmds \
11390    postuninstall_cmds \
11391    old_archive_from_expsyms_cmds \
11392    allow_undefined_flag \
11393    no_undefined_flag \
11394    export_symbols_cmds \
11395    hardcode_libdir_flag_spec \
11396    hardcode_libdir_flag_spec_ld \
11397    hardcode_libdir_separator \
11398    hardcode_automatic \
11399    module_cmds \
11400    module_expsym_cmds \
11401    lt_cv_prog_compiler_c_o \
11402    exclude_expsyms \
11403    include_expsyms; do
11404
11405    case $var in
11406    old_archive_cmds | \
11407    old_archive_from_new_cmds | \
11408    archive_cmds | \
11409    archive_expsym_cmds | \
11410    module_cmds | \
11411    module_expsym_cmds | \
11412    old_archive_from_expsyms_cmds | \
11413    export_symbols_cmds | \
11414    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11415    postinstall_cmds | postuninstall_cmds | \
11416    old_postinstall_cmds | old_postuninstall_cmds | \
11417    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11418      # Double-quote double-evaled strings.
11419      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11420      ;;
11421    *)
11422      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11423      ;;
11424    esac
11425  done
11426
11427  case $lt_echo in
11428  *'\$0 --fallback-echo"')
11429    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11430    ;;
11431  esac
11432
11433cfgfile="${ofile}T"
11434  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11435  $rm -f "$cfgfile"
11436  { echo "$as_me:$LINENO: creating $ofile" >&5
11437echo "$as_me: creating $ofile" >&6;}
11438
11439  cat <<__EOF__ >> "$cfgfile"
11440#! $SHELL
11441
11442# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11443# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11444# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11445#
11446# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11447# Free Software Foundation, Inc.
11448#
11449# This file is part of GNU Libtool:
11450# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11451#
11452# This program is free software; you can redistribute it and/or modify
11453# it under the terms of the GNU General Public License as published by
11454# the Free Software Foundation; either version 2 of the License, or
11455# (at your option) any later version.
11456#
11457# This program is distributed in the hope that it will be useful, but
11458# WITHOUT ANY WARRANTY; without even the implied warranty of
11459# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11460# General Public License for more details.
11461#
11462# You should have received a copy of the GNU General Public License
11463# along with this program; if not, write to the Free Software
11464# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11465#
11466# As a special exception to the GNU General Public License, if you
11467# distribute this file as part of a program that contains a
11468# configuration script generated by Autoconf, you may include it under
11469# the same distribution terms that you use for the rest of that program.
11470
11471# A sed program that does not truncate output.
11472SED=$lt_SED
11473
11474# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11475Xsed="$SED -e 1s/^X//"
11476
11477# The HP-UX ksh and POSIX shell print the target directory to stdout
11478# if CDPATH is set.
11479(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11480
11481# The names of the tagged configurations supported by this script.
11482available_tags=
11483
11484# ### BEGIN LIBTOOL CONFIG
11485
11486# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11487
11488# Shell to use when invoking shell scripts.
11489SHELL=$lt_SHELL
11490
11491# Whether or not to build shared libraries.
11492build_libtool_libs=$enable_shared
11493
11494# Whether or not to build static libraries.
11495build_old_libs=$enable_static
11496
11497# Whether or not to add -lc for building shared libraries.
11498build_libtool_need_lc=$archive_cmds_need_lc
11499
11500# Whether or not to disallow shared libs when runtime libs are static
11501allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11502
11503# Whether or not to optimize for fast installation.
11504fast_install=$enable_fast_install
11505
11506# The host system.
11507host_alias=$host_alias
11508host=$host
11509host_os=$host_os
11510
11511# The build system.
11512build_alias=$build_alias
11513build=$build
11514build_os=$build_os
11515
11516# An echo program that does not interpret backslashes.
11517echo=$lt_echo
11518
11519# The archiver.
11520AR=$lt_AR
11521AR_FLAGS=$lt_AR_FLAGS
11522
11523# A C compiler.
11524LTCC=$lt_LTCC
11525
11526# LTCC compiler flags.
11527LTCFLAGS=$lt_LTCFLAGS
11528
11529# A language-specific compiler.
11530CC=$lt_compiler
11531
11532# Is the compiler the GNU C compiler?
11533with_gcc=$GCC
11534
11535# An ERE matcher.
11536EGREP=$lt_EGREP
11537
11538# The linker used to build libraries.
11539LD=$lt_LD
11540
11541# Whether we need hard or soft links.
11542LN_S=$lt_LN_S
11543
11544# A BSD-compatible nm program.
11545NM=$lt_NM
11546
11547# A symbol stripping program
11548STRIP=$lt_STRIP
11549
11550# Used to examine libraries when file_magic_cmd begins "file"
11551MAGIC_CMD=$MAGIC_CMD
11552
11553# Used on cygwin: DLL creation program.
11554DLLTOOL="$DLLTOOL"
11555
11556# Used on cygwin: object dumper.
11557OBJDUMP="$OBJDUMP"
11558
11559# Used on cygwin: assembler.
11560AS="$AS"
11561
11562# The name of the directory that contains temporary libtool files.
11563objdir=$objdir
11564
11565# How to create reloadable object files.
11566reload_flag=$lt_reload_flag
11567reload_cmds=$lt_reload_cmds
11568
11569# How to pass a linker flag through the compiler.
11570wl=$lt_lt_prog_compiler_wl
11571
11572# Object file suffix (normally "o").
11573objext="$ac_objext"
11574
11575# Old archive suffix (normally "a").
11576libext="$libext"
11577
11578# Shared library suffix (normally ".so").
11579shrext_cmds='$shrext_cmds'
11580
11581# Executable file suffix (normally "").
11582exeext="$exeext"
11583
11584# Additional compiler flags for building library objects.
11585pic_flag=$lt_lt_prog_compiler_pic
11586pic_mode=$pic_mode
11587
11588# What is the maximum length of a command?
11589max_cmd_len=$lt_cv_sys_max_cmd_len
11590
11591# Does compiler simultaneously support -c and -o options?
11592compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11593
11594# Must we lock files when doing compilation?
11595need_locks=$lt_need_locks
11596
11597# Do we need the lib prefix for modules?
11598need_lib_prefix=$need_lib_prefix
11599
11600# Do we need a version for libraries?
11601need_version=$need_version
11602
11603# Whether dlopen is supported.
11604dlopen_support=$enable_dlopen
11605
11606# Whether dlopen of programs is supported.
11607dlopen_self=$enable_dlopen_self
11608
11609# Whether dlopen of statically linked programs is supported.
11610dlopen_self_static=$enable_dlopen_self_static
11611
11612# Compiler flag to prevent dynamic linking.
11613link_static_flag=$lt_lt_prog_compiler_static
11614
11615# Compiler flag to turn off builtin functions.
11616no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11617
11618# Compiler flag to allow reflexive dlopens.
11619export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11620
11621# Compiler flag to generate shared objects directly from archives.
11622whole_archive_flag_spec=$lt_whole_archive_flag_spec
11623
11624# Compiler flag to generate thread-safe objects.
11625thread_safe_flag_spec=$lt_thread_safe_flag_spec
11626
11627# Library versioning type.
11628version_type=$version_type
11629
11630# Format of library name prefix.
11631libname_spec=$lt_libname_spec
11632
11633# List of archive names.  First name is the real one, the rest are links.
11634# The last name is the one that the linker finds with -lNAME.
11635library_names_spec=$lt_library_names_spec
11636
11637# The coded name of the library, if different from the real name.
11638soname_spec=$lt_soname_spec
11639
11640# Commands used to build and install an old-style archive.
11641RANLIB=$lt_RANLIB
11642old_archive_cmds=$lt_old_archive_cmds
11643old_postinstall_cmds=$lt_old_postinstall_cmds
11644old_postuninstall_cmds=$lt_old_postuninstall_cmds
11645
11646# Create an old-style archive from a shared archive.
11647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11648
11649# Create a temporary old-style archive to link instead of a shared archive.
11650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11651
11652# Commands used to build and install a shared archive.
11653archive_cmds=$lt_archive_cmds
11654archive_expsym_cmds=$lt_archive_expsym_cmds
11655postinstall_cmds=$lt_postinstall_cmds
11656postuninstall_cmds=$lt_postuninstall_cmds
11657
11658# Commands used to build a loadable module (assumed same as above if empty)
11659module_cmds=$lt_module_cmds
11660module_expsym_cmds=$lt_module_expsym_cmds
11661
11662# Commands to strip libraries.
11663old_striplib=$lt_old_striplib
11664striplib=$lt_striplib
11665
11666# Dependencies to place before the objects being linked to create a
11667# shared library.
11668predep_objects=$lt_predep_objects
11669
11670# Dependencies to place after the objects being linked to create a
11671# shared library.
11672postdep_objects=$lt_postdep_objects
11673
11674# Dependencies to place before the objects being linked to create a
11675# shared library.
11676predeps=$lt_predeps
11677
11678# Dependencies to place after the objects being linked to create a
11679# shared library.
11680postdeps=$lt_postdeps
11681
11682# The library search path used internally by the compiler when linking
11683# a shared library.
11684compiler_lib_search_path=$lt_compiler_lib_search_path
11685
11686# Method to check whether dependent libraries are shared objects.
11687deplibs_check_method=$lt_deplibs_check_method
11688
11689# Command to use when deplibs_check_method == file_magic.
11690file_magic_cmd=$lt_file_magic_cmd
11691
11692# Flag that allows shared libraries with undefined symbols to be built.
11693allow_undefined_flag=$lt_allow_undefined_flag
11694
11695# Flag that forces no undefined symbols.
11696no_undefined_flag=$lt_no_undefined_flag
11697
11698# Commands used to finish a libtool library installation in a directory.
11699finish_cmds=$lt_finish_cmds
11700
11701# Same as above, but a single script fragment to be evaled but not shown.
11702finish_eval=$lt_finish_eval
11703
11704# Take the output of nm and produce a listing of raw symbols and C names.
11705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11706
11707# Transform the output of nm in a proper C declaration
11708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11709
11710# Transform the output of nm in a C name address pair
11711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11712
11713# This is the shared library runtime path variable.
11714runpath_var=$runpath_var
11715
11716# This is the shared library path variable.
11717shlibpath_var=$shlibpath_var
11718
11719# Is shlibpath searched before the hard-coded library search path?
11720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11721
11722# How to hardcode a shared library path into an executable.
11723hardcode_action=$hardcode_action
11724
11725# Whether we should hardcode library paths into libraries.
11726hardcode_into_libs=$hardcode_into_libs
11727
11728# Flag to hardcode \$libdir into a binary during linking.
11729# This must work even if \$libdir does not exist.
11730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11731
11732# If ld is used when linking, flag to hardcode \$libdir into
11733# a binary during linking. This must work even if \$libdir does
11734# not exist.
11735hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11736
11737# Whether we need a single -rpath flag with a separated argument.
11738hardcode_libdir_separator=$lt_hardcode_libdir_separator
11739
11740# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11741# resulting binary.
11742hardcode_direct=$hardcode_direct
11743
11744# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11745# resulting binary.
11746hardcode_minus_L=$hardcode_minus_L
11747
11748# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11749# the resulting binary.
11750hardcode_shlibpath_var=$hardcode_shlibpath_var
11751
11752# Set to yes if building a shared library automatically hardcodes DIR into the library
11753# and all subsequent libraries and executables linked against it.
11754hardcode_automatic=$hardcode_automatic
11755
11756# Variables whose values should be saved in libtool wrapper scripts and
11757# restored at relink time.
11758variables_saved_for_relink="$variables_saved_for_relink"
11759
11760# Whether libtool must link a program against all its dependency libraries.
11761link_all_deplibs=$link_all_deplibs
11762
11763# Compile-time system search path for libraries
11764sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11765
11766# Run-time system search path for libraries
11767sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11768
11769# Fix the shell variable \$srcfile for the compiler.
11770fix_srcfile_path="$fix_srcfile_path"
11771
11772# Set to yes if exported symbols are required.
11773always_export_symbols=$always_export_symbols
11774
11775# The commands to list exported symbols.
11776export_symbols_cmds=$lt_export_symbols_cmds
11777
11778# The commands to extract the exported symbol list from a shared archive.
11779extract_expsyms_cmds=$lt_extract_expsyms_cmds
11780
11781# Symbols that should not be listed in the preloaded symbols.
11782exclude_expsyms=$lt_exclude_expsyms
11783
11784# Symbols that must always be exported.
11785include_expsyms=$lt_include_expsyms
11786
11787# ### END LIBTOOL CONFIG
11788
11789__EOF__
11790
11791
11792  case $host_os in
11793  aix3*)
11794    cat <<\EOF >> "$cfgfile"
11795
11796# AIX sometimes has problems with the GCC collect2 program.  For some
11797# reason, if we set the COLLECT_NAMES environment variable, the problems
11798# vanish in a puff of smoke.
11799if test "X${COLLECT_NAMES+set}" != Xset; then
11800  COLLECT_NAMES=
11801  export COLLECT_NAMES
11802fi
11803EOF
11804    ;;
11805  esac
11806
11807  # We use sed instead of cat because bash on DJGPP gets confused if
11808  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11809  # text mode, it properly converts lines to CR/LF.  This bash problem
11810  # is reportedly fixed, but why not run on old versions too?
11811  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11812
11813  mv -f "$cfgfile" "$ofile" || \
11814    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11815  chmod +x "$ofile"
11816
11817else
11818  # If there is no Makefile yet, we rely on a make rule to execute
11819  # `config.status --recheck' to rerun these tests and create the
11820  # libtool script then.
11821  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11822  if test -f "$ltmain_in"; then
11823    test -f Makefile && make "$ltmain"
11824  fi
11825fi
11826
11827
11828ac_ext=c
11829ac_cpp='$CPP $CPPFLAGS'
11830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11832ac_compiler_gnu=$ac_cv_c_compiler_gnu
11833
11834CC="$lt_save_CC"
11835
11836
11837# Check whether --with-tags or --without-tags was given.
11838if test "${with_tags+set}" = set; then
11839  withval="$with_tags"
11840  tagnames="$withval"
11841fi;
11842
11843if test -f "$ltmain" && test -n "$tagnames"; then
11844  if test ! -f "${ofile}"; then
11845    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11846echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11847  fi
11848
11849  if test -z "$LTCC"; then
11850    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11851    if test -z "$LTCC"; then
11852      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11853echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11854    else
11855      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11856echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11857    fi
11858  fi
11859  if test -z "$LTCFLAGS"; then
11860    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11861  fi
11862
11863  # Extract list of available tagged configurations in $ofile.
11864  # Note that this assumes the entire list is on one line.
11865  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11866
11867  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11868  for tagname in $tagnames; do
11869    IFS="$lt_save_ifs"
11870    # Check whether tagname contains only valid characters
11871    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11872    "") ;;
11873    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11874echo "$as_me: error: invalid tag name: $tagname" >&2;}
11875   { (exit 1); exit 1; }; }
11876	;;
11877    esac
11878
11879    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11880    then
11881      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11882echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11883   { (exit 1); exit 1; }; }
11884    fi
11885
11886    # Update the list of available tags.
11887    if test -n "$tagname"; then
11888      echo appending configuration tag \"$tagname\" to $ofile
11889
11890      case $tagname in
11891      CXX)
11892	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11893	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11894	    (test "X$CXX" != "Xg++"))) ; then
11895	  ac_ext=cc
11896ac_cpp='$CXXCPP $CPPFLAGS'
11897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11900
11901
11902
11903
11904archive_cmds_need_lc_CXX=no
11905allow_undefined_flag_CXX=
11906always_export_symbols_CXX=no
11907archive_expsym_cmds_CXX=
11908export_dynamic_flag_spec_CXX=
11909hardcode_direct_CXX=no
11910hardcode_libdir_flag_spec_CXX=
11911hardcode_libdir_flag_spec_ld_CXX=
11912hardcode_libdir_separator_CXX=
11913hardcode_minus_L_CXX=no
11914hardcode_shlibpath_var_CXX=unsupported
11915hardcode_automatic_CXX=no
11916module_cmds_CXX=
11917module_expsym_cmds_CXX=
11918link_all_deplibs_CXX=unknown
11919old_archive_cmds_CXX=$old_archive_cmds
11920no_undefined_flag_CXX=
11921whole_archive_flag_spec_CXX=
11922enable_shared_with_static_runtimes_CXX=no
11923
11924# Dependencies to place before and after the object being linked:
11925predep_objects_CXX=
11926postdep_objects_CXX=
11927predeps_CXX=
11928postdeps_CXX=
11929compiler_lib_search_path_CXX=
11930
11931# Source file extension for C++ test sources.
11932ac_ext=cpp
11933
11934# Object file extension for compiled C++ test sources.
11935objext=o
11936objext_CXX=$objext
11937
11938# Code to be used in simple compile tests
11939lt_simple_compile_test_code="int some_variable = 0;\n"
11940
11941# Code to be used in simple link tests
11942lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11943
11944# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11945
11946# If no C compiler was specified, use CC.
11947LTCC=${LTCC-"$CC"}
11948
11949# If no C compiler flags were specified, use CFLAGS.
11950LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11951
11952# Allow CC to be a program name with arguments.
11953compiler=$CC
11954
11955
11956# save warnings/boilerplate of simple test code
11957ac_outfile=conftest.$ac_objext
11958printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11959eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11960_lt_compiler_boilerplate=`cat conftest.err`
11961$rm conftest*
11962
11963ac_outfile=conftest.$ac_objext
11964printf "$lt_simple_link_test_code" >conftest.$ac_ext
11965eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11966_lt_linker_boilerplate=`cat conftest.err`
11967$rm conftest*
11968
11969
11970# Allow CC to be a program name with arguments.
11971lt_save_CC=$CC
11972lt_save_LD=$LD
11973lt_save_GCC=$GCC
11974GCC=$GXX
11975lt_save_with_gnu_ld=$with_gnu_ld
11976lt_save_path_LD=$lt_cv_path_LD
11977if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11978  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11979else
11980  $as_unset lt_cv_prog_gnu_ld
11981fi
11982if test -n "${lt_cv_path_LDCXX+set}"; then
11983  lt_cv_path_LD=$lt_cv_path_LDCXX
11984else
11985  $as_unset lt_cv_path_LD
11986fi
11987test -z "${LDCXX+set}" || LD=$LDCXX
11988CC=${CXX-"c++"}
11989compiler=$CC
11990compiler_CXX=$CC
11991for cc_temp in $compiler""; do
11992  case $cc_temp in
11993    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11994    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11995    \-*) ;;
11996    *) break;;
11997  esac
11998done
11999cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12000
12001
12002# We don't want -fno-exception wen compiling C++ code, so set the
12003# no_builtin_flag separately
12004if test "$GXX" = yes; then
12005  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12006else
12007  lt_prog_compiler_no_builtin_flag_CXX=
12008fi
12009
12010if test "$GXX" = yes; then
12011  # Set up default GNU C++ configuration
12012
12013
12014# Check whether --with-gnu-ld or --without-gnu-ld was given.
12015if test "${with_gnu_ld+set}" = set; then
12016  withval="$with_gnu_ld"
12017  test "$withval" = no || with_gnu_ld=yes
12018else
12019  with_gnu_ld=no
12020fi;
12021ac_prog=ld
12022if test "$GCC" = yes; then
12023  # Check if gcc -print-prog-name=ld gives a path.
12024  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12025echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12026  case $host in
12027  *-*-mingw*)
12028    # gcc leaves a trailing carriage return which upsets mingw
12029    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12030  *)
12031    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12032  esac
12033  case $ac_prog in
12034    # Accept absolute paths.
12035    [\\/]* | ?:[\\/]*)
12036      re_direlt='/[^/][^/]*/\.\./'
12037      # Canonicalize the pathname of ld
12038      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12039      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12040	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12041      done
12042      test -z "$LD" && LD="$ac_prog"
12043      ;;
12044  "")
12045    # If it fails, then pretend we aren't using GCC.
12046    ac_prog=ld
12047    ;;
12048  *)
12049    # If it is relative, then search for the first ld in PATH.
12050    with_gnu_ld=unknown
12051    ;;
12052  esac
12053elif test "$with_gnu_ld" = yes; then
12054  echo "$as_me:$LINENO: checking for GNU ld" >&5
12055echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12056else
12057  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12058echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12059fi
12060if test "${lt_cv_path_LD+set}" = set; then
12061  echo $ECHO_N "(cached) $ECHO_C" >&6
12062else
12063  if test -z "$LD"; then
12064  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12065  for ac_dir in $PATH; do
12066    IFS="$lt_save_ifs"
12067    test -z "$ac_dir" && ac_dir=.
12068    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12069      lt_cv_path_LD="$ac_dir/$ac_prog"
12070      # Check to see if the program is GNU ld.  I'd rather use --version,
12071      # but apparently some variants of GNU ld only accept -v.
12072      # Break only if it was the GNU/non-GNU ld that we prefer.
12073      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12074      *GNU* | *'with BFD'*)
12075	test "$with_gnu_ld" != no && break
12076	;;
12077      *)
12078	test "$with_gnu_ld" != yes && break
12079	;;
12080      esac
12081    fi
12082  done
12083  IFS="$lt_save_ifs"
12084else
12085  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12086fi
12087fi
12088
12089LD="$lt_cv_path_LD"
12090if test -n "$LD"; then
12091  echo "$as_me:$LINENO: result: $LD" >&5
12092echo "${ECHO_T}$LD" >&6
12093else
12094  echo "$as_me:$LINENO: result: no" >&5
12095echo "${ECHO_T}no" >&6
12096fi
12097test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12098echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12099   { (exit 1); exit 1; }; }
12100echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12101echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12102if test "${lt_cv_prog_gnu_ld+set}" = set; then
12103  echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12106case `$LD -v 2>&1 </dev/null` in
12107*GNU* | *'with BFD'*)
12108  lt_cv_prog_gnu_ld=yes
12109  ;;
12110*)
12111  lt_cv_prog_gnu_ld=no
12112  ;;
12113esac
12114fi
12115echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12116echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12117with_gnu_ld=$lt_cv_prog_gnu_ld
12118
12119
12120
12121  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12122  # archiving commands below assume that GNU ld is being used.
12123  if test "$with_gnu_ld" = yes; then
12124    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12125    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'
12126
12127    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12128    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12129
12130    # If archive_cmds runs LD, not CC, wlarc should be empty
12131    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12132    #     investigate it a little bit more. (MM)
12133    wlarc='${wl}'
12134
12135    # ancient GNU ld didn't support --whole-archive et. al.
12136    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12137	grep 'no-whole-archive' > /dev/null; then
12138      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12139    else
12140      whole_archive_flag_spec_CXX=
12141    fi
12142  else
12143    with_gnu_ld=no
12144    wlarc=
12145
12146    # A generic and very simple default shared library creation
12147    # command for GNU C++ for the case where it uses the native
12148    # linker, instead of GNU ld.  If possible, this setting should
12149    # overridden to take advantage of the native linker features on
12150    # the platform it is being used on.
12151    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12152  fi
12153
12154  # Commands to make compiler produce verbose output that lists
12155  # what "hidden" libraries, object files and flags are used when
12156  # linking a shared library.
12157  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12158
12159else
12160  GXX=no
12161  with_gnu_ld=no
12162  wlarc=
12163fi
12164
12165# PORTME: fill in a description of your system's C++ link characteristics
12166echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12167echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12168ld_shlibs_CXX=yes
12169case $host_os in
12170  aix3*)
12171    # FIXME: insert proper C++ library support
12172    ld_shlibs_CXX=no
12173    ;;
12174  aix4* | aix5*)
12175    if test "$host_cpu" = ia64; then
12176      # On IA64, the linker does run time linking by default, so we don't
12177      # have to do anything special.
12178      aix_use_runtimelinking=no
12179      exp_sym_flag='-Bexport'
12180      no_entry_flag=""
12181    else
12182      aix_use_runtimelinking=no
12183
12184      # Test if we are trying to use run time linking or normal
12185      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12186      # need to do runtime linking.
12187      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12188	for ld_flag in $LDFLAGS; do
12189	  case $ld_flag in
12190	  *-brtl*)
12191	    aix_use_runtimelinking=yes
12192	    break
12193	    ;;
12194	  esac
12195	done
12196	;;
12197      esac
12198
12199      exp_sym_flag='-bexport'
12200      no_entry_flag='-bnoentry'
12201    fi
12202
12203    # When large executables or shared objects are built, AIX ld can
12204    # have problems creating the table of contents.  If linking a library
12205    # or program results in "error TOC overflow" add -mminimal-toc to
12206    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12207    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12208
12209    archive_cmds_CXX=''
12210    hardcode_direct_CXX=yes
12211    hardcode_libdir_separator_CXX=':'
12212    link_all_deplibs_CXX=yes
12213
12214    if test "$GXX" = yes; then
12215      case $host_os in aix4.[012]|aix4.[012].*)
12216      # We only want to do this on AIX 4.2 and lower, the check
12217      # below for broken collect2 doesn't work under 4.3+
12218	collect2name=`${CC} -print-prog-name=collect2`
12219	if test -f "$collect2name" && \
12220	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12221	then
12222	  # We have reworked collect2
12223	  hardcode_direct_CXX=yes
12224	else
12225	  # We have old collect2
12226	  hardcode_direct_CXX=unsupported
12227	  # It fails to find uninstalled libraries when the uninstalled
12228	  # path is not listed in the libpath.  Setting hardcode_minus_L
12229	  # to unsupported forces relinking
12230	  hardcode_minus_L_CXX=yes
12231	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12232	  hardcode_libdir_separator_CXX=
12233	fi
12234	;;
12235      esac
12236      shared_flag='-shared'
12237      if test "$aix_use_runtimelinking" = yes; then
12238	shared_flag="$shared_flag "'${wl}-G'
12239      fi
12240    else
12241      # not using gcc
12242      if test "$host_cpu" = ia64; then
12243	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12244	# chokes on -Wl,-G. The following line is correct:
12245	shared_flag='-G'
12246      else
12247	if test "$aix_use_runtimelinking" = yes; then
12248	  shared_flag='${wl}-G'
12249	else
12250	  shared_flag='${wl}-bM:SRE'
12251	fi
12252      fi
12253    fi
12254
12255    # It seems that -bexpall does not export symbols beginning with
12256    # underscore (_), so it is better to generate a list of symbols to export.
12257    always_export_symbols_CXX=yes
12258    if test "$aix_use_runtimelinking" = yes; then
12259      # Warning - without using the other runtime loading flags (-brtl),
12260      # -berok will link without error, but may produce a broken library.
12261      allow_undefined_flag_CXX='-berok'
12262      # Determine the default libpath from the value encoded in an empty executable.
12263      cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h.  */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h.  */
12269
12270int
12271main ()
12272{
12273
12274  ;
12275  return 0;
12276}
12277_ACEOF
12278rm -f conftest.$ac_objext conftest$ac_exeext
12279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12280  (eval $ac_link) 2>conftest.er1
12281  ac_status=$?
12282  grep -v '^ *+' conftest.er1 >conftest.err
12283  rm -f conftest.er1
12284  cat conftest.err >&5
12285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286  (exit $ac_status); } &&
12287	 { ac_try='test -z "$ac_cxx_werror_flag"
12288			 || test ! -s conftest.err'
12289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290  (eval $ac_try) 2>&5
12291  ac_status=$?
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); }; } &&
12294	 { ac_try='test -s conftest$ac_exeext'
12295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296  (eval $ac_try) 2>&5
12297  ac_status=$?
12298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299  (exit $ac_status); }; }; then
12300
12301aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12302}'`
12303# Check for a 64-bit object if we didn't find anything.
12304if 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; }
12305}'`; fi
12306else
12307  echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
12310fi
12311rm -f conftest.err conftest.$ac_objext \
12312      conftest$ac_exeext conftest.$ac_ext
12313if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12314
12315      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12316
12317      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"
12318     else
12319      if test "$host_cpu" = ia64; then
12320	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12321	allow_undefined_flag_CXX="-z nodefs"
12322	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"
12323      else
12324	# Determine the default libpath from the value encoded in an empty executable.
12325	cat >conftest.$ac_ext <<_ACEOF
12326/* confdefs.h.  */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
12330/* end confdefs.h.  */
12331
12332int
12333main ()
12334{
12335
12336  ;
12337  return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext conftest$ac_exeext
12341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342  (eval $ac_link) 2>conftest.er1
12343  ac_status=$?
12344  grep -v '^ *+' conftest.er1 >conftest.err
12345  rm -f conftest.er1
12346  cat conftest.err >&5
12347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348  (exit $ac_status); } &&
12349	 { ac_try='test -z "$ac_cxx_werror_flag"
12350			 || test ! -s conftest.err'
12351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352  (eval $ac_try) 2>&5
12353  ac_status=$?
12354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355  (exit $ac_status); }; } &&
12356	 { ac_try='test -s conftest$ac_exeext'
12357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358  (eval $ac_try) 2>&5
12359  ac_status=$?
12360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361  (exit $ac_status); }; }; then
12362
12363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12364}'`
12365# Check for a 64-bit object if we didn't find anything.
12366if 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; }
12367}'`; fi
12368else
12369  echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
12371
12372fi
12373rm -f conftest.err conftest.$ac_objext \
12374      conftest$ac_exeext conftest.$ac_ext
12375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12376
12377	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12378	# Warning - without using the other run time loading flags,
12379	# -berok will link without error, but may produce a broken library.
12380	no_undefined_flag_CXX=' ${wl}-bernotok'
12381	allow_undefined_flag_CXX=' ${wl}-berok'
12382	# Exported symbols can be pulled into shared objects from archives
12383	whole_archive_flag_spec_CXX='$convenience'
12384	archive_cmds_need_lc_CXX=yes
12385	# This is similar to how AIX traditionally builds its shared libraries.
12386	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'
12387      fi
12388    fi
12389    ;;
12390
12391  beos*)
12392    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12393      allow_undefined_flag_CXX=unsupported
12394      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12395      # support --undefined.  This deserves some investigation.  FIXME
12396      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12397    else
12398      ld_shlibs_CXX=no
12399    fi
12400    ;;
12401
12402  chorus*)
12403    case $cc_basename in
12404      *)
12405	# FIXME: insert proper C++ library support
12406	ld_shlibs_CXX=no
12407	;;
12408    esac
12409    ;;
12410
12411  cygwin* | mingw* | pw32*)
12412    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12413    # as there is no search path for DLLs.
12414    hardcode_libdir_flag_spec_CXX='-L$libdir'
12415    allow_undefined_flag_CXX=unsupported
12416    always_export_symbols_CXX=no
12417    enable_shared_with_static_runtimes_CXX=yes
12418
12419    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12420      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'
12421      # If the export-symbols file already is a .def file (1st line
12422      # is EXPORTS), use it as is; otherwise, prepend...
12423      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12424	cp $export_symbols $output_objdir/$soname.def;
12425      else
12426	echo EXPORTS > $output_objdir/$soname.def;
12427	cat $export_symbols >> $output_objdir/$soname.def;
12428      fi~
12429      $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'
12430    else
12431      ld_shlibs_CXX=no
12432    fi
12433  ;;
12434      darwin* | rhapsody*)
12435        case $host_os in
12436        rhapsody* | darwin1.[012])
12437         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12438         ;;
12439       *) # Darwin 1.3 on
12440         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12441           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12442         else
12443           case ${MACOSX_DEPLOYMENT_TARGET} in
12444             10.[012])
12445               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12446               ;;
12447             10.*)
12448               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12449               ;;
12450           esac
12451         fi
12452         ;;
12453        esac
12454      archive_cmds_need_lc_CXX=no
12455      hardcode_direct_CXX=no
12456      hardcode_automatic_CXX=yes
12457      hardcode_shlibpath_var_CXX=unsupported
12458      whole_archive_flag_spec_CXX=''
12459      link_all_deplibs_CXX=yes
12460
12461    if test "$GXX" = yes ; then
12462      lt_int_apple_cc_single_mod=no
12463      output_verbose_link_cmd='echo'
12464      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12465       lt_int_apple_cc_single_mod=yes
12466      fi
12467      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12468       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12469      else
12470          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'
12471        fi
12472        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12473        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12474          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12475            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}'
12476          else
12477            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}'
12478          fi
12479            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}'
12480      else
12481      case $cc_basename in
12482        xlc*)
12483         output_verbose_link_cmd='echo'
12484          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'
12485          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12486          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12487          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}'
12488          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}'
12489          ;;
12490       *)
12491         ld_shlibs_CXX=no
12492          ;;
12493      esac
12494      fi
12495        ;;
12496
12497  dgux*)
12498    case $cc_basename in
12499      ec++*)
12500	# FIXME: insert proper C++ library support
12501	ld_shlibs_CXX=no
12502	;;
12503      ghcx*)
12504	# Green Hills C++ Compiler
12505	# FIXME: insert proper C++ library support
12506	ld_shlibs_CXX=no
12507	;;
12508      *)
12509	# FIXME: insert proper C++ library support
12510	ld_shlibs_CXX=no
12511	;;
12512    esac
12513    ;;
12514  freebsd[12]*)
12515    # C++ shared libraries reported to be fairly broken before switch to ELF
12516    ld_shlibs_CXX=no
12517    ;;
12518  freebsd-elf*)
12519    archive_cmds_need_lc_CXX=no
12520    ;;
12521  freebsd* | kfreebsd*-gnu | dragonfly*)
12522    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12523    # conventions
12524    ld_shlibs_CXX=yes
12525    ;;
12526  gnu*)
12527    ;;
12528  hpux9*)
12529    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12530    hardcode_libdir_separator_CXX=:
12531    export_dynamic_flag_spec_CXX='${wl}-E'
12532    hardcode_direct_CXX=yes
12533    hardcode_minus_L_CXX=yes # Not in the search PATH,
12534				# but as the default
12535				# location of the library.
12536
12537    case $cc_basename in
12538    CC*)
12539      # FIXME: insert proper C++ library support
12540      ld_shlibs_CXX=no
12541      ;;
12542    aCC*)
12543      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'
12544      # Commands to make compiler produce verbose output that lists
12545      # what "hidden" libraries, object files and flags are used when
12546      # linking a shared library.
12547      #
12548      # There doesn't appear to be a way to prevent this compiler from
12549      # explicitly linking system object files so we need to strip them
12550      # from the output so that they don't get included in the library
12551      # dependencies.
12552      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'
12553      ;;
12554    *)
12555      if test "$GXX" = yes; then
12556        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'
12557      else
12558        # FIXME: insert proper C++ library support
12559        ld_shlibs_CXX=no
12560      fi
12561      ;;
12562    esac
12563    ;;
12564  hpux10*|hpux11*)
12565    if test $with_gnu_ld = no; then
12566      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12567      hardcode_libdir_separator_CXX=:
12568
12569      case $host_cpu in
12570      hppa*64*|ia64*)
12571	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12572        ;;
12573      *)
12574	export_dynamic_flag_spec_CXX='${wl}-E'
12575        ;;
12576      esac
12577    fi
12578    case $host_cpu in
12579    hppa*64*|ia64*)
12580      hardcode_direct_CXX=no
12581      hardcode_shlibpath_var_CXX=no
12582      ;;
12583    *)
12584      hardcode_direct_CXX=yes
12585      hardcode_minus_L_CXX=yes # Not in the search PATH,
12586					      # but as the default
12587					      # location of the library.
12588      ;;
12589    esac
12590
12591    case $cc_basename in
12592      CC*)
12593	# FIXME: insert proper C++ library support
12594	ld_shlibs_CXX=no
12595	;;
12596      aCC*)
12597	case $host_cpu in
12598	hppa*64*)
12599	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12600	  ;;
12601	ia64*)
12602	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12603	  ;;
12604	*)
12605	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12606	  ;;
12607	esac
12608	# Commands to make compiler produce verbose output that lists
12609	# what "hidden" libraries, object files and flags are used when
12610	# linking a shared library.
12611	#
12612	# There doesn't appear to be a way to prevent this compiler from
12613	# explicitly linking system object files so we need to strip them
12614	# from the output so that they don't get included in the library
12615	# dependencies.
12616	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'
12617	;;
12618      *)
12619	if test "$GXX" = yes; then
12620	  if test $with_gnu_ld = no; then
12621	    case $host_cpu in
12622	    hppa*64*)
12623	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12624	      ;;
12625	    ia64*)
12626	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12627	      ;;
12628	    *)
12629	      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'
12630	      ;;
12631	    esac
12632	  fi
12633	else
12634	  # FIXME: insert proper C++ library support
12635	  ld_shlibs_CXX=no
12636	fi
12637	;;
12638    esac
12639    ;;
12640  interix3*)
12641    hardcode_direct_CXX=no
12642    hardcode_shlibpath_var_CXX=no
12643    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12644    export_dynamic_flag_spec_CXX='${wl}-E'
12645    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12646    # Instead, shared libraries are loaded at an image base (0x10000000 by
12647    # default) and relocated if they conflict, which is a slow very memory
12648    # consuming and fragmenting process.  To avoid this, we pick a random,
12649    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12650    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12651    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'
12652    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'
12653    ;;
12654  irix5* | irix6*)
12655    case $cc_basename in
12656      CC*)
12657	# SGI C++
12658	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'
12659
12660	# Archives containing C++ object files must be created using
12661	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12662	# necessary to make sure instantiated templates are included
12663	# in the archive.
12664	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12665	;;
12666      *)
12667	if test "$GXX" = yes; then
12668	  if test "$with_gnu_ld" = no; then
12669	    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'
12670	  else
12671	    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'
12672	  fi
12673	fi
12674	link_all_deplibs_CXX=yes
12675	;;
12676    esac
12677    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12678    hardcode_libdir_separator_CXX=:
12679    ;;
12680  linux*)
12681    case $cc_basename in
12682      KCC*)
12683	# Kuck and Associates, Inc. (KAI) C++ Compiler
12684
12685	# KCC will only create a shared library if the output file
12686	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12687	# to its proper name (with version) after linking.
12688	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'
12689	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'
12690	# Commands to make compiler produce verbose output that lists
12691	# what "hidden" libraries, object files and flags are used when
12692	# linking a shared library.
12693	#
12694	# There doesn't appear to be a way to prevent this compiler from
12695	# explicitly linking system object files so we need to strip them
12696	# from the output so that they don't get included in the library
12697	# dependencies.
12698	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'
12699
12700	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12701	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12702
12703	# Archives containing C++ object files must be created using
12704	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12705	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12706	;;
12707      icpc*)
12708	# Intel C++
12709	with_gnu_ld=yes
12710	# version 8.0 and above of icpc choke on multiply defined symbols
12711	# if we add $predep_objects and $postdep_objects, however 7.1 and
12712	# earlier do not add the objects themselves.
12713	case `$CC -V 2>&1` in
12714	*"Version 7."*)
12715  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12716  	  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'
12717	  ;;
12718	*)  # Version 8.0 or newer
12719	  tmp_idyn=
12720	  case $host_cpu in
12721	    ia64*) tmp_idyn=' -i_dynamic';;
12722	  esac
12723  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724	  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'
12725	  ;;
12726	esac
12727	archive_cmds_need_lc_CXX=no
12728	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12729	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12730	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12731	;;
12732      pgCC*)
12733        # Portland Group C++ compiler
12734	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12735  	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'
12736
12737	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12738	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12739	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'
12740        ;;
12741      cxx*)
12742	# Compaq C++
12743	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744	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'
12745
12746	runpath_var=LD_RUN_PATH
12747	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12748	hardcode_libdir_separator_CXX=:
12749
12750	# Commands to make compiler produce verbose output that lists
12751	# what "hidden" libraries, object files and flags are used when
12752	# linking a shared library.
12753	#
12754	# There doesn't appear to be a way to prevent this compiler from
12755	# explicitly linking system object files so we need to strip them
12756	# from the output so that they don't get included in the library
12757	# dependencies.
12758	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'
12759	;;
12760    esac
12761    ;;
12762  lynxos*)
12763    # FIXME: insert proper C++ library support
12764    ld_shlibs_CXX=no
12765    ;;
12766  m88k*)
12767    # FIXME: insert proper C++ library support
12768    ld_shlibs_CXX=no
12769    ;;
12770  mvs*)
12771    case $cc_basename in
12772      cxx*)
12773	# FIXME: insert proper C++ library support
12774	ld_shlibs_CXX=no
12775	;;
12776      *)
12777	# FIXME: insert proper C++ library support
12778	ld_shlibs_CXX=no
12779	;;
12780    esac
12781    ;;
12782  netbsd*)
12783    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12784      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12785      wlarc=
12786      hardcode_libdir_flag_spec_CXX='-R$libdir'
12787      hardcode_direct_CXX=yes
12788      hardcode_shlibpath_var_CXX=no
12789    fi
12790    # Workaround some broken pre-1.5 toolchains
12791    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12792    ;;
12793  openbsd2*)
12794    # C++ shared libraries are fairly broken
12795    ld_shlibs_CXX=no
12796    ;;
12797  openbsd*)
12798    hardcode_direct_CXX=yes
12799    hardcode_shlibpath_var_CXX=no
12800    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12801    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12803      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12804      export_dynamic_flag_spec_CXX='${wl}-E'
12805      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12806    fi
12807    output_verbose_link_cmd='echo'
12808    ;;
12809  osf3*)
12810    case $cc_basename in
12811      KCC*)
12812	# Kuck and Associates, Inc. (KAI) C++ Compiler
12813
12814	# KCC will only create a shared library if the output file
12815	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12816	# to its proper name (with version) after linking.
12817	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'
12818
12819	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12820	hardcode_libdir_separator_CXX=:
12821
12822	# Archives containing C++ object files must be created using
12823	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12824	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12825
12826	;;
12827      RCC*)
12828	# Rational C++ 2.4.1
12829	# FIXME: insert proper C++ library support
12830	ld_shlibs_CXX=no
12831	;;
12832      cxx*)
12833	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12834	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'
12835
12836	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12837	hardcode_libdir_separator_CXX=:
12838
12839	# Commands to make compiler produce verbose output that lists
12840	# what "hidden" libraries, object files and flags are used when
12841	# linking a shared library.
12842	#
12843	# There doesn't appear to be a way to prevent this compiler from
12844	# explicitly linking system object files so we need to strip them
12845	# from the output so that they don't get included in the library
12846	# dependencies.
12847	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'
12848	;;
12849      *)
12850	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12851	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12852	  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'
12853
12854	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12855	  hardcode_libdir_separator_CXX=:
12856
12857	  # Commands to make compiler produce verbose output that lists
12858	  # what "hidden" libraries, object files and flags are used when
12859	  # linking a shared library.
12860	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12861
12862	else
12863	  # FIXME: insert proper C++ library support
12864	  ld_shlibs_CXX=no
12865	fi
12866	;;
12867    esac
12868    ;;
12869  osf4* | osf5*)
12870    case $cc_basename in
12871      KCC*)
12872	# Kuck and Associates, Inc. (KAI) C++ Compiler
12873
12874	# KCC will only create a shared library if the output file
12875	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12876	# to its proper name (with version) after linking.
12877	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'
12878
12879	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12880	hardcode_libdir_separator_CXX=:
12881
12882	# Archives containing C++ object files must be created using
12883	# the KAI C++ compiler.
12884	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12885	;;
12886      RCC*)
12887	# Rational C++ 2.4.1
12888	# FIXME: insert proper C++ library support
12889	ld_shlibs_CXX=no
12890	;;
12891      cxx*)
12892	allow_undefined_flag_CXX=' -expect_unresolved \*'
12893	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'
12894	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12895	  echo "-hidden">> $lib.exp~
12896	  $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~
12897	  $rm $lib.exp'
12898
12899	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12900	hardcode_libdir_separator_CXX=:
12901
12902	# Commands to make compiler produce verbose output that lists
12903	# what "hidden" libraries, object files and flags are used when
12904	# linking a shared library.
12905	#
12906	# There doesn't appear to be a way to prevent this compiler from
12907	# explicitly linking system object files so we need to strip them
12908	# from the output so that they don't get included in the library
12909	# dependencies.
12910	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'
12911	;;
12912      *)
12913	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12914	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12915	 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'
12916
12917	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12918	  hardcode_libdir_separator_CXX=:
12919
12920	  # Commands to make compiler produce verbose output that lists
12921	  # what "hidden" libraries, object files and flags are used when
12922	  # linking a shared library.
12923	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12924
12925	else
12926	  # FIXME: insert proper C++ library support
12927	  ld_shlibs_CXX=no
12928	fi
12929	;;
12930    esac
12931    ;;
12932  psos*)
12933    # FIXME: insert proper C++ library support
12934    ld_shlibs_CXX=no
12935    ;;
12936  sunos4*)
12937    case $cc_basename in
12938      CC*)
12939	# Sun C++ 4.x
12940	# FIXME: insert proper C++ library support
12941	ld_shlibs_CXX=no
12942	;;
12943      lcc*)
12944	# Lucid
12945	# FIXME: insert proper C++ library support
12946	ld_shlibs_CXX=no
12947	;;
12948      *)
12949	# FIXME: insert proper C++ library support
12950	ld_shlibs_CXX=no
12951	;;
12952    esac
12953    ;;
12954  solaris*)
12955    case $cc_basename in
12956      CC*)
12957	# Sun C++ 4.2, 5.x and Centerline C++
12958        archive_cmds_need_lc_CXX=yes
12959	no_undefined_flag_CXX=' -zdefs'
12960	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12961	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12962	$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'
12963
12964	hardcode_libdir_flag_spec_CXX='-R$libdir'
12965	hardcode_shlibpath_var_CXX=no
12966	case $host_os in
12967	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12968	  *)
12969	    # The C++ compiler is used as linker so we must use $wl
12970	    # flag to pass the commands to the underlying system
12971	    # linker. We must also pass each convience library through
12972	    # to the system linker between allextract/defaultextract.
12973	    # The C++ compiler will combine linker options so we
12974	    # cannot just pass the convience library names through
12975	    # without $wl.
12976	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12977	    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'
12978	    ;;
12979	esac
12980	link_all_deplibs_CXX=yes
12981
12982	output_verbose_link_cmd='echo'
12983
12984	# Archives containing C++ object files must be created using
12985	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12986	# necessary to make sure instantiated templates are included
12987	# in the archive.
12988	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12989	;;
12990      gcx*)
12991	# Green Hills C++ Compiler
12992	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12993
12994	# The C++ compiler must be used to create the archive.
12995	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12996	;;
12997      *)
12998	# GNU C++ compiler with Solaris linker
12999	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13000	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13001	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13002	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13003	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13004		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13005
13006	    # Commands to make compiler produce verbose output that lists
13007	    # what "hidden" libraries, object files and flags are used when
13008	    # linking a shared library.
13009	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13010	  else
13011	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13012	    # platform.
13013	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13014	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13015		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13016
13017	    # Commands to make compiler produce verbose output that lists
13018	    # what "hidden" libraries, object files and flags are used when
13019	    # linking a shared library.
13020	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13021	  fi
13022
13023	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13024	fi
13025	;;
13026    esac
13027    ;;
13028  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13029    no_undefined_flag_CXX='${wl}-z,text'
13030    archive_cmds_need_lc_CXX=no
13031    hardcode_shlibpath_var_CXX=no
13032    runpath_var='LD_RUN_PATH'
13033
13034    case $cc_basename in
13035      CC*)
13036	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13037	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13038	;;
13039      *)
13040	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13042	;;
13043    esac
13044    ;;
13045  sysv5* | sco3.2v5* | sco5v6*)
13046    # Note: We can NOT use -z defs as we might desire, because we do not
13047    # link with -lc, and that would cause any symbols used from libc to
13048    # always be unresolved, which means just about no library would
13049    # ever link correctly.  If we're not using GNU ld we use -z text
13050    # though, which does catch some bad symbols but isn't as heavy-handed
13051    # as -z defs.
13052    # For security reasons, it is highly recommended that you always
13053    # use absolute paths for naming shared libraries, and exclude the
13054    # DT_RUNPATH tag from executables and libraries.  But doing so
13055    # requires that you compile everything twice, which is a pain.
13056    # So that behaviour is only enabled if SCOABSPATH is set to a
13057    # non-empty value in the environment.  Most likely only useful for
13058    # creating official distributions of packages.
13059    # This is a hack until libtool officially supports absolute path
13060    # names for shared libraries.
13061    no_undefined_flag_CXX='${wl}-z,text'
13062    allow_undefined_flag_CXX='${wl}-z,nodefs'
13063    archive_cmds_need_lc_CXX=no
13064    hardcode_shlibpath_var_CXX=no
13065    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13066    hardcode_libdir_separator_CXX=':'
13067    link_all_deplibs_CXX=yes
13068    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13069    runpath_var='LD_RUN_PATH'
13070
13071    case $cc_basename in
13072      CC*)
13073	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13074	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13075	;;
13076      *)
13077	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13078	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13079	;;
13080    esac
13081    ;;
13082  tandem*)
13083    case $cc_basename in
13084      NCC*)
13085	# NonStop-UX NCC 3.20
13086	# FIXME: insert proper C++ library support
13087	ld_shlibs_CXX=no
13088	;;
13089      *)
13090	# FIXME: insert proper C++ library support
13091	ld_shlibs_CXX=no
13092	;;
13093    esac
13094    ;;
13095  vxworks*)
13096    # FIXME: insert proper C++ library support
13097    ld_shlibs_CXX=no
13098    ;;
13099  *)
13100    # FIXME: insert proper C++ library support
13101    ld_shlibs_CXX=no
13102    ;;
13103esac
13104echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13105echo "${ECHO_T}$ld_shlibs_CXX" >&6
13106test "$ld_shlibs_CXX" = no && can_build_shared=no
13107
13108GCC_CXX="$GXX"
13109LD_CXX="$LD"
13110
13111## CAVEAT EMPTOR:
13112## There is no encapsulation within the following macros, do not change
13113## the running order or otherwise move them around unless you know exactly
13114## what you are doing...
13115
13116cat > conftest.$ac_ext <<EOF
13117class Foo
13118{
13119public:
13120  Foo (void) { a = 0; }
13121private:
13122  int a;
13123};
13124EOF
13125
13126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127  (eval $ac_compile) 2>&5
13128  ac_status=$?
13129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130  (exit $ac_status); }; then
13131  # Parse the compiler output and extract the necessary
13132  # objects, libraries and library flags.
13133
13134  # Sentinel used to keep track of whether or not we are before
13135  # the conftest object file.
13136  pre_test_object_deps_done=no
13137
13138  # The `*' in the case matches for architectures that use `case' in
13139  # $output_verbose_cmd can trigger glob expansion during the loop
13140  # eval without this substitution.
13141  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13142
13143  for p in `eval $output_verbose_link_cmd`; do
13144    case $p in
13145
13146    -L* | -R* | -l*)
13147       # Some compilers place space between "-{L,R}" and the path.
13148       # Remove the space.
13149       if test $p = "-L" \
13150	  || test $p = "-R"; then
13151	 prev=$p
13152	 continue
13153       else
13154	 prev=
13155       fi
13156
13157       if test "$pre_test_object_deps_done" = no; then
13158	 case $p in
13159	 -L* | -R*)
13160	   # Internal compiler library paths should come after those
13161	   # provided the user.  The postdeps already come after the
13162	   # user supplied libs so there is no need to process them.
13163	   if test -z "$compiler_lib_search_path_CXX"; then
13164	     compiler_lib_search_path_CXX="${prev}${p}"
13165	   else
13166	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13167	   fi
13168	   ;;
13169	 # The "-l" case would never come before the object being
13170	 # linked, so don't bother handling this case.
13171	 esac
13172       else
13173	 if test -z "$postdeps_CXX"; then
13174	   postdeps_CXX="${prev}${p}"
13175	 else
13176	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13177	 fi
13178       fi
13179       ;;
13180
13181    *.$objext)
13182       # This assumes that the test object file only shows up
13183       # once in the compiler output.
13184       if test "$p" = "conftest.$objext"; then
13185	 pre_test_object_deps_done=yes
13186	 continue
13187       fi
13188
13189       if test "$pre_test_object_deps_done" = no; then
13190	 if test -z "$predep_objects_CXX"; then
13191	   predep_objects_CXX="$p"
13192	 else
13193	   predep_objects_CXX="$predep_objects_CXX $p"
13194	 fi
13195       else
13196	 if test -z "$postdep_objects_CXX"; then
13197	   postdep_objects_CXX="$p"
13198	 else
13199	   postdep_objects_CXX="$postdep_objects_CXX $p"
13200	 fi
13201       fi
13202       ;;
13203
13204    *) ;; # Ignore the rest.
13205
13206    esac
13207  done
13208
13209  # Clean up.
13210  rm -f a.out a.exe
13211else
13212  echo "libtool.m4: error: problem compiling CXX test program"
13213fi
13214
13215$rm -f confest.$objext
13216
13217# PORTME: override above test on systems where it is broken
13218case $host_os in
13219interix3*)
13220  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13221  # hack all around it, let's just trust "g++" to DTRT.
13222  predep_objects_CXX=
13223  postdep_objects_CXX=
13224  postdeps_CXX=
13225  ;;
13226
13227solaris*)
13228  case $cc_basename in
13229  CC*)
13230    # Adding this requires a known-good setup of shared libraries for
13231    # Sun compiler versions before 5.6, else PIC objects from an old
13232    # archive will be linked into the output, leading to subtle bugs.
13233    postdeps_CXX='-lCstd -lCrun'
13234    ;;
13235  esac
13236  ;;
13237esac
13238
13239
13240case " $postdeps_CXX " in
13241*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13242esac
13243
13244lt_prog_compiler_wl_CXX=
13245lt_prog_compiler_pic_CXX=
13246lt_prog_compiler_static_CXX=
13247
13248echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13249echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13250
13251  # C++ specific cases for pic, static, wl, etc.
13252  if test "$GXX" = yes; then
13253    lt_prog_compiler_wl_CXX='-Wl,'
13254    lt_prog_compiler_static_CXX='-static'
13255
13256    case $host_os in
13257    aix*)
13258      # All AIX code is PIC.
13259      if test "$host_cpu" = ia64; then
13260	# AIX 5 now supports IA64 processor
13261	lt_prog_compiler_static_CXX='-Bstatic'
13262      fi
13263      ;;
13264    amigaos*)
13265      # FIXME: we need at least 68020 code to build shared libraries, but
13266      # adding the `-m68020' flag to GCC prevents building anything better,
13267      # like `-m68040'.
13268      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13269      ;;
13270    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13271      # PIC is the default for these OSes.
13272      ;;
13273    mingw* | os2* | pw32*)
13274      # This hack is so that the source file can tell whether it is being
13275      # built for inclusion in a dll (and should export symbols for example).
13276      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13277      ;;
13278    darwin* | rhapsody*)
13279      # PIC is the default on this platform
13280      # Common symbols not allowed in MH_DYLIB files
13281      lt_prog_compiler_pic_CXX='-fno-common'
13282      ;;
13283    *djgpp*)
13284      # DJGPP does not support shared libraries at all
13285      lt_prog_compiler_pic_CXX=
13286      ;;
13287    interix3*)
13288      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13289      # Instead, we relocate shared libraries at runtime.
13290      ;;
13291    sysv4*MP*)
13292      if test -d /usr/nec; then
13293	lt_prog_compiler_pic_CXX=-Kconform_pic
13294      fi
13295      ;;
13296    hpux*)
13297      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13298      # not for PA HP-UX.
13299      case $host_cpu in
13300      hppa*64*|ia64*)
13301	;;
13302      *)
13303	lt_prog_compiler_pic_CXX='-fPIC'
13304	;;
13305      esac
13306      ;;
13307    *)
13308      lt_prog_compiler_pic_CXX='-fPIC'
13309      ;;
13310    esac
13311  else
13312    case $host_os in
13313      aix4* | aix5*)
13314	# All AIX code is PIC.
13315	if test "$host_cpu" = ia64; then
13316	  # AIX 5 now supports IA64 processor
13317	  lt_prog_compiler_static_CXX='-Bstatic'
13318	else
13319	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13320	fi
13321	;;
13322      chorus*)
13323	case $cc_basename in
13324	cxch68*)
13325	  # Green Hills C++ Compiler
13326	  # _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"
13327	  ;;
13328	esac
13329	;;
13330       darwin*)
13331         # PIC is the default on this platform
13332         # Common symbols not allowed in MH_DYLIB files
13333         case $cc_basename in
13334           xlc*)
13335           lt_prog_compiler_pic_CXX='-qnocommon'
13336           lt_prog_compiler_wl_CXX='-Wl,'
13337           ;;
13338         esac
13339       ;;
13340      dgux*)
13341	case $cc_basename in
13342	  ec++*)
13343	    lt_prog_compiler_pic_CXX='-KPIC'
13344	    ;;
13345	  ghcx*)
13346	    # Green Hills C++ Compiler
13347	    lt_prog_compiler_pic_CXX='-pic'
13348	    ;;
13349	  *)
13350	    ;;
13351	esac
13352	;;
13353      freebsd* | kfreebsd*-gnu | dragonfly*)
13354	# FreeBSD uses GNU C++
13355	;;
13356      hpux9* | hpux10* | hpux11*)
13357	case $cc_basename in
13358	  CC*)
13359	    lt_prog_compiler_wl_CXX='-Wl,'
13360	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13361	    if test "$host_cpu" != ia64; then
13362	      lt_prog_compiler_pic_CXX='+Z'
13363	    fi
13364	    ;;
13365	  aCC*)
13366	    lt_prog_compiler_wl_CXX='-Wl,'
13367	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13368	    case $host_cpu in
13369	    hppa*64*|ia64*)
13370	      # +Z the default
13371	      ;;
13372	    *)
13373	      lt_prog_compiler_pic_CXX='+Z'
13374	      ;;
13375	    esac
13376	    ;;
13377	  *)
13378	    ;;
13379	esac
13380	;;
13381      interix*)
13382	# This is c89, which is MS Visual C++ (no shared libs)
13383	# Anyone wants to do a port?
13384	;;
13385      irix5* | irix6* | nonstopux*)
13386	case $cc_basename in
13387	  CC*)
13388	    lt_prog_compiler_wl_CXX='-Wl,'
13389	    lt_prog_compiler_static_CXX='-non_shared'
13390	    # CC pic flag -KPIC is the default.
13391	    ;;
13392	  *)
13393	    ;;
13394	esac
13395	;;
13396      linux*)
13397	case $cc_basename in
13398	  KCC*)
13399	    # KAI C++ Compiler
13400	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13401	    lt_prog_compiler_pic_CXX='-fPIC'
13402	    ;;
13403	  icpc* | ecpc*)
13404	    # Intel C++
13405	    lt_prog_compiler_wl_CXX='-Wl,'
13406	    lt_prog_compiler_pic_CXX='-KPIC'
13407	    lt_prog_compiler_static_CXX='-static'
13408	    ;;
13409	  pgCC*)
13410	    # Portland Group C++ compiler.
13411	    lt_prog_compiler_wl_CXX='-Wl,'
13412	    lt_prog_compiler_pic_CXX='-fpic'
13413	    lt_prog_compiler_static_CXX='-Bstatic'
13414	    ;;
13415	  cxx*)
13416	    # Compaq C++
13417	    # Make sure the PIC flag is empty.  It appears that all Alpha
13418	    # Linux and Compaq Tru64 Unix objects are PIC.
13419	    lt_prog_compiler_pic_CXX=
13420	    lt_prog_compiler_static_CXX='-non_shared'
13421	    ;;
13422	  *)
13423	    ;;
13424	esac
13425	;;
13426      lynxos*)
13427	;;
13428      m88k*)
13429	;;
13430      mvs*)
13431	case $cc_basename in
13432	  cxx*)
13433	    lt_prog_compiler_pic_CXX='-W c,exportall'
13434	    ;;
13435	  *)
13436	    ;;
13437	esac
13438	;;
13439      netbsd*)
13440	;;
13441      osf3* | osf4* | osf5*)
13442	case $cc_basename in
13443	  KCC*)
13444	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13445	    ;;
13446	  RCC*)
13447	    # Rational C++ 2.4.1
13448	    lt_prog_compiler_pic_CXX='-pic'
13449	    ;;
13450	  cxx*)
13451	    # Digital/Compaq C++
13452	    lt_prog_compiler_wl_CXX='-Wl,'
13453	    # Make sure the PIC flag is empty.  It appears that all Alpha
13454	    # Linux and Compaq Tru64 Unix objects are PIC.
13455	    lt_prog_compiler_pic_CXX=
13456	    lt_prog_compiler_static_CXX='-non_shared'
13457	    ;;
13458	  *)
13459	    ;;
13460	esac
13461	;;
13462      psos*)
13463	;;
13464      solaris*)
13465	case $cc_basename in
13466	  CC*)
13467	    # Sun C++ 4.2, 5.x and Centerline C++
13468	    lt_prog_compiler_pic_CXX='-KPIC'
13469	    lt_prog_compiler_static_CXX='-Bstatic'
13470	    lt_prog_compiler_wl_CXX='-Qoption ld '
13471	    ;;
13472	  gcx*)
13473	    # Green Hills C++ Compiler
13474	    lt_prog_compiler_pic_CXX='-PIC'
13475	    ;;
13476	  *)
13477	    ;;
13478	esac
13479	;;
13480      sunos4*)
13481	case $cc_basename in
13482	  CC*)
13483	    # Sun C++ 4.x
13484	    lt_prog_compiler_pic_CXX='-pic'
13485	    lt_prog_compiler_static_CXX='-Bstatic'
13486	    ;;
13487	  lcc*)
13488	    # Lucid
13489	    lt_prog_compiler_pic_CXX='-pic'
13490	    ;;
13491	  *)
13492	    ;;
13493	esac
13494	;;
13495      tandem*)
13496	case $cc_basename in
13497	  NCC*)
13498	    # NonStop-UX NCC 3.20
13499	    lt_prog_compiler_pic_CXX='-KPIC'
13500	    ;;
13501	  *)
13502	    ;;
13503	esac
13504	;;
13505      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13506	case $cc_basename in
13507	  CC*)
13508	    lt_prog_compiler_wl_CXX='-Wl,'
13509	    lt_prog_compiler_pic_CXX='-KPIC'
13510	    lt_prog_compiler_static_CXX='-Bstatic'
13511	    ;;
13512	esac
13513	;;
13514      vxworks*)
13515	;;
13516      *)
13517	lt_prog_compiler_can_build_shared_CXX=no
13518	;;
13519    esac
13520  fi
13521
13522echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13523echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13524
13525#
13526# Check to make sure the PIC flag actually works.
13527#
13528if test -n "$lt_prog_compiler_pic_CXX"; then
13529
13530echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13531echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13532if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13533  echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
13535  lt_prog_compiler_pic_works_CXX=no
13536  ac_outfile=conftest.$ac_objext
13537   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13538   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13539   # Insert the option either (1) after the last *FLAGS variable, or
13540   # (2) before a word containing "conftest.", or (3) at the end.
13541   # Note that $ac_compile itself does not contain backslashes and begins
13542   # with a dollar sign (not a hyphen), so the echo should work correctly.
13543   # The option is referenced via a variable to avoid confusing sed.
13544   lt_compile=`echo "$ac_compile" | $SED \
13545   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13547   -e 's:$: $lt_compiler_flag:'`
13548   (eval echo "\"\$as_me:13548: $lt_compile\"" >&5)
13549   (eval "$lt_compile" 2>conftest.err)
13550   ac_status=$?
13551   cat conftest.err >&5
13552   echo "$as_me:13552: \$? = $ac_status" >&5
13553   if (exit $ac_status) && test -s "$ac_outfile"; then
13554     # The compiler can only warn and ignore the option if not recognized
13555     # So say no if there are warnings other than the usual output.
13556     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13557     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13558     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13559       lt_prog_compiler_pic_works_CXX=yes
13560     fi
13561   fi
13562   $rm conftest*
13563
13564fi
13565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13566echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13567
13568if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13569    case $lt_prog_compiler_pic_CXX in
13570     "" | " "*) ;;
13571     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13572     esac
13573else
13574    lt_prog_compiler_pic_CXX=
13575     lt_prog_compiler_can_build_shared_CXX=no
13576fi
13577
13578fi
13579case $host_os in
13580  # For platforms which do not support PIC, -DPIC is meaningless:
13581  *djgpp*)
13582    lt_prog_compiler_pic_CXX=
13583    ;;
13584  *)
13585    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13586    ;;
13587esac
13588
13589#
13590# Check to make sure the static flag actually works.
13591#
13592wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13593echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13594echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13595if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13596  echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
13598  lt_prog_compiler_static_works_CXX=no
13599   save_LDFLAGS="$LDFLAGS"
13600   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13601   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13602   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13603     # The linker can only warn and ignore the option if not recognized
13604     # So say no if there are warnings
13605     if test -s conftest.err; then
13606       # Append any errors to the config.log.
13607       cat conftest.err 1>&5
13608       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13609       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13610       if diff conftest.exp conftest.er2 >/dev/null; then
13611         lt_prog_compiler_static_works_CXX=yes
13612       fi
13613     else
13614       lt_prog_compiler_static_works_CXX=yes
13615     fi
13616   fi
13617   $rm conftest*
13618   LDFLAGS="$save_LDFLAGS"
13619
13620fi
13621echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13622echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13623
13624if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13625    :
13626else
13627    lt_prog_compiler_static_CXX=
13628fi
13629
13630
13631echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13632echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13633if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13634  echo $ECHO_N "(cached) $ECHO_C" >&6
13635else
13636  lt_cv_prog_compiler_c_o_CXX=no
13637   $rm -r conftest 2>/dev/null
13638   mkdir conftest
13639   cd conftest
13640   mkdir out
13641   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13642
13643   lt_compiler_flag="-o out/conftest2.$ac_objext"
13644   # Insert the option either (1) after the last *FLAGS variable, or
13645   # (2) before a word containing "conftest.", or (3) at the end.
13646   # Note that $ac_compile itself does not contain backslashes and begins
13647   # with a dollar sign (not a hyphen), so the echo should work correctly.
13648   lt_compile=`echo "$ac_compile" | $SED \
13649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13651   -e 's:$: $lt_compiler_flag:'`
13652   (eval echo "\"\$as_me:13652: $lt_compile\"" >&5)
13653   (eval "$lt_compile" 2>out/conftest.err)
13654   ac_status=$?
13655   cat out/conftest.err >&5
13656   echo "$as_me:13656: \$? = $ac_status" >&5
13657   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13658   then
13659     # The compiler can only warn and ignore the option if not recognized
13660     # So say no if there are warnings
13661     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13662     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13663     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13664       lt_cv_prog_compiler_c_o_CXX=yes
13665     fi
13666   fi
13667   chmod u+w . 2>&5
13668   $rm conftest*
13669   # SGI C++ compiler will create directory out/ii_files/ for
13670   # template instantiation
13671   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13672   $rm out/* && rmdir out
13673   cd ..
13674   rmdir conftest
13675   $rm conftest*
13676
13677fi
13678echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13679echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13680
13681
13682hard_links="nottested"
13683if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13684  # do not overwrite the value of need_locks provided by the user
13685  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13686echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13687  hard_links=yes
13688  $rm conftest*
13689  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13690  touch conftest.a
13691  ln conftest.a conftest.b 2>&5 || hard_links=no
13692  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13693  echo "$as_me:$LINENO: result: $hard_links" >&5
13694echo "${ECHO_T}$hard_links" >&6
13695  if test "$hard_links" = no; then
13696    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13698    need_locks=warn
13699  fi
13700else
13701  need_locks=no
13702fi
13703
13704echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13705echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13706
13707  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13708  case $host_os in
13709  aix4* | aix5*)
13710    # If we're using GNU nm, then we don't want the "-C" option.
13711    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13712    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13713      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'
13714    else
13715      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'
13716    fi
13717    ;;
13718  pw32*)
13719    export_symbols_cmds_CXX="$ltdll_cmds"
13720  ;;
13721  cygwin* | mingw*)
13722    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'
13723  ;;
13724  *)
13725    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13726  ;;
13727  esac
13728
13729echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13730echo "${ECHO_T}$ld_shlibs_CXX" >&6
13731test "$ld_shlibs_CXX" = no && can_build_shared=no
13732
13733#
13734# Do we need to explicitly link libc?
13735#
13736case "x$archive_cmds_need_lc_CXX" in
13737x|xyes)
13738  # Assume -lc should be added
13739  archive_cmds_need_lc_CXX=yes
13740
13741  if test "$enable_shared" = yes && test "$GCC" = yes; then
13742    case $archive_cmds_CXX in
13743    *'~'*)
13744      # FIXME: we may have to deal with multi-command sequences.
13745      ;;
13746    '$CC '*)
13747      # Test whether the compiler implicitly links with -lc since on some
13748      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13749      # to ld, don't add -lc before -lgcc.
13750      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13751echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13752      $rm conftest*
13753      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13754
13755      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756  (eval $ac_compile) 2>&5
13757  ac_status=$?
13758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759  (exit $ac_status); } 2>conftest.err; then
13760        soname=conftest
13761        lib=conftest
13762        libobjs=conftest.$ac_objext
13763        deplibs=
13764        wl=$lt_prog_compiler_wl_CXX
13765	pic_flag=$lt_prog_compiler_pic_CXX
13766        compiler_flags=-v
13767        linker_flags=-v
13768        verstring=
13769        output_objdir=.
13770        libname=conftest
13771        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13772        allow_undefined_flag_CXX=
13773        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13774  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13775  ac_status=$?
13776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777  (exit $ac_status); }
13778        then
13779	  archive_cmds_need_lc_CXX=no
13780        else
13781	  archive_cmds_need_lc_CXX=yes
13782        fi
13783        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13784      else
13785        cat conftest.err 1>&5
13786      fi
13787      $rm conftest*
13788      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13789echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13790      ;;
13791    esac
13792  fi
13793  ;;
13794esac
13795
13796echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13797echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13798library_names_spec=
13799libname_spec='lib$name'
13800soname_spec=
13801shrext_cmds=".so"
13802postinstall_cmds=
13803postuninstall_cmds=
13804finish_cmds=
13805finish_eval=
13806shlibpath_var=
13807shlibpath_overrides_runpath=unknown
13808version_type=none
13809dynamic_linker="$host_os ld.so"
13810sys_lib_dlsearch_path_spec="/lib /usr/lib"
13811if test "$GCC" = yes; then
13812  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13813  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13814    # if the path contains ";" then we assume it to be the separator
13815    # otherwise default to the standard path separator (i.e. ":") - it is
13816    # assumed that no part of a normal pathname contains ";" but that should
13817    # okay in the real world where ";" in dirpaths is itself problematic.
13818    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13819  else
13820    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13821  fi
13822else
13823  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13824fi
13825need_lib_prefix=unknown
13826hardcode_into_libs=no
13827
13828# when you set need_version to no, make sure it does not cause -set_version
13829# flags to be left without arguments
13830need_version=unknown
13831
13832case $host_os in
13833aix3*)
13834  version_type=linux
13835  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13836  shlibpath_var=LIBPATH
13837
13838  # AIX 3 has no versioning support, so we append a major version to the name.
13839  soname_spec='${libname}${release}${shared_ext}$major'
13840  ;;
13841
13842aix4* | aix5*)
13843  version_type=linux
13844  need_lib_prefix=no
13845  need_version=no
13846  hardcode_into_libs=yes
13847  if test "$host_cpu" = ia64; then
13848    # AIX 5 supports IA64
13849    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13850    shlibpath_var=LD_LIBRARY_PATH
13851  else
13852    # With GCC up to 2.95.x, collect2 would create an import file
13853    # for dependence libraries.  The import file would start with
13854    # the line `#! .'.  This would cause the generated library to
13855    # depend on `.', always an invalid library.  This was fixed in
13856    # development snapshots of GCC prior to 3.0.
13857    case $host_os in
13858      aix4 | aix4.[01] | aix4.[01].*)
13859      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13860	   echo ' yes '
13861	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13862	:
13863      else
13864	can_build_shared=no
13865      fi
13866      ;;
13867    esac
13868    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13869    # soname into executable. Probably we can add versioning support to
13870    # collect2, so additional links can be useful in future.
13871    if test "$aix_use_runtimelinking" = yes; then
13872      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13873      # instead of lib<name>.a to let people know that these are not
13874      # typical AIX shared libraries.
13875      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876    else
13877      # We preserve .a as extension for shared libraries through AIX4.2
13878      # and later when we are not doing run time linking.
13879      library_names_spec='${libname}${release}.a $libname.a'
13880      soname_spec='${libname}${release}${shared_ext}$major'
13881    fi
13882    shlibpath_var=LIBPATH
13883  fi
13884  ;;
13885
13886amigaos*)
13887  library_names_spec='$libname.ixlibrary $libname.a'
13888  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13889  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'
13890  ;;
13891
13892beos*)
13893  library_names_spec='${libname}${shared_ext}'
13894  dynamic_linker="$host_os ld.so"
13895  shlibpath_var=LIBRARY_PATH
13896  ;;
13897
13898bsdi[45]*)
13899  version_type=linux
13900  need_version=no
13901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902  soname_spec='${libname}${release}${shared_ext}$major'
13903  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13904  shlibpath_var=LD_LIBRARY_PATH
13905  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13906  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13907  # the default ld.so.conf also contains /usr/contrib/lib and
13908  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13909  # libtool to hard-code these into programs
13910  ;;
13911
13912cygwin* | mingw* | pw32*)
13913  version_type=windows
13914  shrext_cmds=".dll"
13915  need_version=no
13916  need_lib_prefix=no
13917
13918  case $GCC,$host_os in
13919  yes,cygwin* | yes,mingw* | yes,pw32*)
13920    library_names_spec='$libname.dll.a'
13921    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13922    postinstall_cmds='base_file=`basename \${file}`~
13923      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13924      dldir=$destdir/`dirname \$dlpath`~
13925      test -d \$dldir || mkdir -p \$dldir~
13926      $install_prog $dir/$dlname \$dldir/$dlname~
13927      chmod a+x \$dldir/$dlname'
13928    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13929      dlpath=$dir/\$dldll~
13930       $rm \$dlpath'
13931    shlibpath_overrides_runpath=yes
13932
13933    case $host_os in
13934    cygwin*)
13935      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13936      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13937      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13938      ;;
13939    mingw*)
13940      # MinGW DLLs use traditional 'lib' prefix
13941      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13942      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13943      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13944        # It is most probably a Windows format PATH printed by
13945        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13946        # path with ; separators, and with drive letters. We can handle the
13947        # drive letters (cygwin fileutils understands them), so leave them,
13948        # especially as we might pass files found there to a mingw objdump,
13949        # which wouldn't understand a cygwinified path. Ahh.
13950        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13951      else
13952        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13953      fi
13954      ;;
13955    pw32*)
13956      # pw32 DLLs use 'pw' prefix rather than 'lib'
13957      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13958      ;;
13959    esac
13960    ;;
13961
13962  *)
13963    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13964    ;;
13965  esac
13966  dynamic_linker='Win32 ld.exe'
13967  # FIXME: first we should search . and the directory the executable is in
13968  shlibpath_var=PATH
13969  ;;
13970
13971darwin* | rhapsody*)
13972  dynamic_linker="$host_os dyld"
13973  version_type=darwin
13974  need_lib_prefix=no
13975  need_version=no
13976  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13977  soname_spec='${libname}${release}${major}$shared_ext'
13978  shlibpath_overrides_runpath=yes
13979  shlibpath_var=DYLD_LIBRARY_PATH
13980  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13981  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13982  if test "$GCC" = yes; then
13983    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"`
13984  else
13985    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13986  fi
13987  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13988  ;;
13989
13990dgux*)
13991  version_type=linux
13992  need_lib_prefix=no
13993  need_version=no
13994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13995  soname_spec='${libname}${release}${shared_ext}$major'
13996  shlibpath_var=LD_LIBRARY_PATH
13997  ;;
13998
13999freebsd1*)
14000  dynamic_linker=no
14001  ;;
14002
14003kfreebsd*-gnu)
14004  version_type=linux
14005  need_lib_prefix=no
14006  need_version=no
14007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14008  soname_spec='${libname}${release}${shared_ext}$major'
14009  shlibpath_var=LD_LIBRARY_PATH
14010  shlibpath_overrides_runpath=no
14011  hardcode_into_libs=yes
14012  dynamic_linker='GNU ld.so'
14013  ;;
14014
14015freebsd* | dragonfly*)
14016  # DragonFly does not have aout.  When/if they implement a new
14017  # versioning mechanism, adjust this.
14018  if test -x /usr/bin/objformat; then
14019    objformat=`/usr/bin/objformat`
14020  else
14021    case $host_os in
14022    freebsd[123]*) objformat=aout ;;
14023    *) objformat=elf ;;
14024    esac
14025  fi
14026  version_type=freebsd-$objformat
14027  case $version_type in
14028    freebsd-elf*)
14029      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14030      need_version=no
14031      need_lib_prefix=no
14032      ;;
14033    freebsd-*)
14034      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14035      need_version=yes
14036      ;;
14037  esac
14038  shlibpath_var=LD_LIBRARY_PATH
14039  case $host_os in
14040  freebsd2*)
14041    shlibpath_overrides_runpath=yes
14042    ;;
14043  freebsd3.[01]* | freebsdelf3.[01]*)
14044    shlibpath_overrides_runpath=yes
14045    hardcode_into_libs=yes
14046    ;;
14047  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14048  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14049    shlibpath_overrides_runpath=no
14050    hardcode_into_libs=yes
14051    ;;
14052  freebsd*) # from 4.6 on
14053    shlibpath_overrides_runpath=yes
14054    hardcode_into_libs=yes
14055    ;;
14056  esac
14057  ;;
14058
14059gnu*)
14060  version_type=linux
14061  need_lib_prefix=no
14062  need_version=no
14063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14064  soname_spec='${libname}${release}${shared_ext}$major'
14065  shlibpath_var=LD_LIBRARY_PATH
14066  hardcode_into_libs=yes
14067  ;;
14068
14069hpux9* | hpux10* | hpux11*)
14070  # Give a soname corresponding to the major version so that dld.sl refuses to
14071  # link against other versions.
14072  version_type=sunos
14073  need_lib_prefix=no
14074  need_version=no
14075  case $host_cpu in
14076  ia64*)
14077    shrext_cmds='.so'
14078    hardcode_into_libs=yes
14079    dynamic_linker="$host_os dld.so"
14080    shlibpath_var=LD_LIBRARY_PATH
14081    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083    soname_spec='${libname}${release}${shared_ext}$major'
14084    if test "X$HPUX_IA64_MODE" = X32; then
14085      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14086    else
14087      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14088    fi
14089    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14090    ;;
14091   hppa*64*)
14092     shrext_cmds='.sl'
14093     hardcode_into_libs=yes
14094     dynamic_linker="$host_os dld.sl"
14095     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14096     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098     soname_spec='${libname}${release}${shared_ext}$major'
14099     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14100     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14101     ;;
14102   *)
14103    shrext_cmds='.sl'
14104    dynamic_linker="$host_os dld.sl"
14105    shlibpath_var=SHLIB_PATH
14106    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14107    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108    soname_spec='${libname}${release}${shared_ext}$major'
14109    ;;
14110  esac
14111  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14112  postinstall_cmds='chmod 555 $lib'
14113  ;;
14114
14115interix3*)
14116  version_type=linux
14117  need_lib_prefix=no
14118  need_version=no
14119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14120  soname_spec='${libname}${release}${shared_ext}$major'
14121  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14122  shlibpath_var=LD_LIBRARY_PATH
14123  shlibpath_overrides_runpath=no
14124  hardcode_into_libs=yes
14125  ;;
14126
14127irix5* | irix6* | nonstopux*)
14128  case $host_os in
14129    nonstopux*) version_type=nonstopux ;;
14130    *)
14131	if test "$lt_cv_prog_gnu_ld" = yes; then
14132		version_type=linux
14133	else
14134		version_type=irix
14135	fi ;;
14136  esac
14137  need_lib_prefix=no
14138  need_version=no
14139  soname_spec='${libname}${release}${shared_ext}$major'
14140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14141  case $host_os in
14142  irix5* | nonstopux*)
14143    libsuff= shlibsuff=
14144    ;;
14145  *)
14146    case $LD in # libtool.m4 will add one of these switches to LD
14147    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14148      libsuff= shlibsuff= libmagic=32-bit;;
14149    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14150      libsuff=32 shlibsuff=N32 libmagic=N32;;
14151    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14152      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14153    *) libsuff= shlibsuff= libmagic=never-match;;
14154    esac
14155    ;;
14156  esac
14157  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14158  shlibpath_overrides_runpath=no
14159  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14160  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14161  hardcode_into_libs=yes
14162  ;;
14163
14164# No shared lib support for Linux oldld, aout, or coff.
14165linux*oldld* | linux*aout* | linux*coff*)
14166  dynamic_linker=no
14167  ;;
14168
14169# This must be Linux ELF.
14170linux*)
14171  version_type=linux
14172  need_lib_prefix=no
14173  need_version=no
14174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175  soname_spec='${libname}${release}${shared_ext}$major'
14176  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14177  shlibpath_var=LD_LIBRARY_PATH
14178  shlibpath_overrides_runpath=no
14179  # This implies no fast_install, which is unacceptable.
14180  # Some rework will be needed to allow for fast_install
14181  # before this can be enabled.
14182  hardcode_into_libs=yes
14183
14184  # Append ld.so.conf contents to the search path
14185  if test -f /etc/ld.so.conf; then
14186    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' ' '`
14187    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14188  fi
14189
14190  # We used to test for /lib/ld.so.1 and disable shared libraries on
14191  # powerpc, because MkLinux only supported shared libraries with the
14192  # GNU dynamic linker.  Since this was broken with cross compilers,
14193  # most powerpc-linux boxes support dynamic linking these days and
14194  # people can always --disable-shared, the test was removed, and we
14195  # assume the GNU/Linux dynamic linker is in use.
14196  dynamic_linker='GNU/Linux ld.so'
14197  ;;
14198
14199knetbsd*-gnu)
14200  version_type=linux
14201  need_lib_prefix=no
14202  need_version=no
14203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14204  soname_spec='${libname}${release}${shared_ext}$major'
14205  shlibpath_var=LD_LIBRARY_PATH
14206  shlibpath_overrides_runpath=no
14207  hardcode_into_libs=yes
14208  dynamic_linker='GNU ld.so'
14209  ;;
14210
14211netbsd*)
14212  version_type=sunos
14213  need_lib_prefix=no
14214  need_version=no
14215  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14216    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14217    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14218    dynamic_linker='NetBSD (a.out) ld.so'
14219  else
14220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14221    soname_spec='${libname}${release}${shared_ext}$major'
14222    dynamic_linker='NetBSD ld.elf_so'
14223  fi
14224  shlibpath_var=LD_LIBRARY_PATH
14225  shlibpath_overrides_runpath=yes
14226  hardcode_into_libs=yes
14227  ;;
14228
14229newsos6)
14230  version_type=linux
14231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232  shlibpath_var=LD_LIBRARY_PATH
14233  shlibpath_overrides_runpath=yes
14234  ;;
14235
14236nto-qnx*)
14237  version_type=linux
14238  need_lib_prefix=no
14239  need_version=no
14240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241  soname_spec='${libname}${release}${shared_ext}$major'
14242  shlibpath_var=LD_LIBRARY_PATH
14243  shlibpath_overrides_runpath=yes
14244  ;;
14245
14246openbsd*)
14247  version_type=sunos
14248  sys_lib_dlsearch_path_spec="/usr/lib"
14249  need_lib_prefix=no
14250  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14251  case $host_os in
14252    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14253    *)                         need_version=no  ;;
14254  esac
14255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14256  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14257  shlibpath_var=LD_LIBRARY_PATH
14258  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14259    case $host_os in
14260      openbsd2.[89] | openbsd2.[89].*)
14261	shlibpath_overrides_runpath=no
14262	;;
14263      *)
14264	shlibpath_overrides_runpath=yes
14265	;;
14266      esac
14267  else
14268    shlibpath_overrides_runpath=yes
14269  fi
14270  ;;
14271
14272os2*)
14273  libname_spec='$name'
14274  shrext_cmds=".dll"
14275  need_lib_prefix=no
14276  library_names_spec='$libname${shared_ext} $libname.a'
14277  dynamic_linker='OS/2 ld.exe'
14278  shlibpath_var=LIBPATH
14279  ;;
14280
14281osf3* | osf4* | osf5*)
14282  version_type=osf
14283  need_lib_prefix=no
14284  need_version=no
14285  soname_spec='${libname}${release}${shared_ext}$major'
14286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287  shlibpath_var=LD_LIBRARY_PATH
14288  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14289  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14290  ;;
14291
14292solaris*)
14293  version_type=linux
14294  need_lib_prefix=no
14295  need_version=no
14296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14297  soname_spec='${libname}${release}${shared_ext}$major'
14298  shlibpath_var=LD_LIBRARY_PATH
14299  shlibpath_overrides_runpath=yes
14300  hardcode_into_libs=yes
14301  # ldd complains unless libraries are executable
14302  postinstall_cmds='chmod +x $lib'
14303  ;;
14304
14305sunos4*)
14306  version_type=sunos
14307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14308  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14309  shlibpath_var=LD_LIBRARY_PATH
14310  shlibpath_overrides_runpath=yes
14311  if test "$with_gnu_ld" = yes; then
14312    need_lib_prefix=no
14313  fi
14314  need_version=yes
14315  ;;
14316
14317sysv4 | sysv4.3*)
14318  version_type=linux
14319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320  soname_spec='${libname}${release}${shared_ext}$major'
14321  shlibpath_var=LD_LIBRARY_PATH
14322  case $host_vendor in
14323    sni)
14324      shlibpath_overrides_runpath=no
14325      need_lib_prefix=no
14326      export_dynamic_flag_spec='${wl}-Blargedynsym'
14327      runpath_var=LD_RUN_PATH
14328      ;;
14329    siemens)
14330      need_lib_prefix=no
14331      ;;
14332    motorola)
14333      need_lib_prefix=no
14334      need_version=no
14335      shlibpath_overrides_runpath=no
14336      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14337      ;;
14338  esac
14339  ;;
14340
14341sysv4*MP*)
14342  if test -d /usr/nec ;then
14343    version_type=linux
14344    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14345    soname_spec='$libname${shared_ext}.$major'
14346    shlibpath_var=LD_LIBRARY_PATH
14347  fi
14348  ;;
14349
14350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14351  version_type=freebsd-elf
14352  need_lib_prefix=no
14353  need_version=no
14354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14355  soname_spec='${libname}${release}${shared_ext}$major'
14356  shlibpath_var=LD_LIBRARY_PATH
14357  hardcode_into_libs=yes
14358  if test "$with_gnu_ld" = yes; then
14359    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14360    shlibpath_overrides_runpath=no
14361  else
14362    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14363    shlibpath_overrides_runpath=yes
14364    case $host_os in
14365      sco3.2v5*)
14366        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14367	;;
14368    esac
14369  fi
14370  sys_lib_dlsearch_path_spec='/usr/lib'
14371  ;;
14372
14373uts4*)
14374  version_type=linux
14375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376  soname_spec='${libname}${release}${shared_ext}$major'
14377  shlibpath_var=LD_LIBRARY_PATH
14378  ;;
14379
14380*)
14381  dynamic_linker=no
14382  ;;
14383esac
14384echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14385echo "${ECHO_T}$dynamic_linker" >&6
14386test "$dynamic_linker" = no && can_build_shared=no
14387
14388variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14389if test "$GCC" = yes; then
14390  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14391fi
14392
14393echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14394echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14395hardcode_action_CXX=
14396if test -n "$hardcode_libdir_flag_spec_CXX" || \
14397   test -n "$runpath_var_CXX" || \
14398   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14399
14400  # We can hardcode non-existant directories.
14401  if test "$hardcode_direct_CXX" != no &&
14402     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14403     # have to relink, otherwise we might link with an installed library
14404     # when we should be linking with a yet-to-be-installed one
14405     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14406     test "$hardcode_minus_L_CXX" != no; then
14407    # Linking always hardcodes the temporary library directory.
14408    hardcode_action_CXX=relink
14409  else
14410    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14411    hardcode_action_CXX=immediate
14412  fi
14413else
14414  # We cannot hardcode anything, or else we can only hardcode existing
14415  # directories.
14416  hardcode_action_CXX=unsupported
14417fi
14418echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14419echo "${ECHO_T}$hardcode_action_CXX" >&6
14420
14421if test "$hardcode_action_CXX" = relink; then
14422  # Fast installation is not supported
14423  enable_fast_install=no
14424elif test "$shlibpath_overrides_runpath" = yes ||
14425     test "$enable_shared" = no; then
14426  # Fast installation is not necessary
14427  enable_fast_install=needless
14428fi
14429
14430
14431# The else clause should only fire when bootstrapping the
14432# libtool distribution, otherwise you forgot to ship ltmain.sh
14433# with your package, and you will get complaints that there are
14434# no rules to generate ltmain.sh.
14435if test -f "$ltmain"; then
14436  # See if we are running on zsh, and set the options which allow our commands through
14437  # without removal of \ escapes.
14438  if test -n "${ZSH_VERSION+set}" ; then
14439    setopt NO_GLOB_SUBST
14440  fi
14441  # Now quote all the things that may contain metacharacters while being
14442  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14443  # variables and quote the copies for generation of the libtool script.
14444  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14445    SED SHELL STRIP \
14446    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14447    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14448    deplibs_check_method reload_flag reload_cmds need_locks \
14449    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14450    lt_cv_sys_global_symbol_to_c_name_address \
14451    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14452    old_postinstall_cmds old_postuninstall_cmds \
14453    compiler_CXX \
14454    CC_CXX \
14455    LD_CXX \
14456    lt_prog_compiler_wl_CXX \
14457    lt_prog_compiler_pic_CXX \
14458    lt_prog_compiler_static_CXX \
14459    lt_prog_compiler_no_builtin_flag_CXX \
14460    export_dynamic_flag_spec_CXX \
14461    thread_safe_flag_spec_CXX \
14462    whole_archive_flag_spec_CXX \
14463    enable_shared_with_static_runtimes_CXX \
14464    old_archive_cmds_CXX \
14465    old_archive_from_new_cmds_CXX \
14466    predep_objects_CXX \
14467    postdep_objects_CXX \
14468    predeps_CXX \
14469    postdeps_CXX \
14470    compiler_lib_search_path_CXX \
14471    archive_cmds_CXX \
14472    archive_expsym_cmds_CXX \
14473    postinstall_cmds_CXX \
14474    postuninstall_cmds_CXX \
14475    old_archive_from_expsyms_cmds_CXX \
14476    allow_undefined_flag_CXX \
14477    no_undefined_flag_CXX \
14478    export_symbols_cmds_CXX \
14479    hardcode_libdir_flag_spec_CXX \
14480    hardcode_libdir_flag_spec_ld_CXX \
14481    hardcode_libdir_separator_CXX \
14482    hardcode_automatic_CXX \
14483    module_cmds_CXX \
14484    module_expsym_cmds_CXX \
14485    lt_cv_prog_compiler_c_o_CXX \
14486    exclude_expsyms_CXX \
14487    include_expsyms_CXX; do
14488
14489    case $var in
14490    old_archive_cmds_CXX | \
14491    old_archive_from_new_cmds_CXX | \
14492    archive_cmds_CXX | \
14493    archive_expsym_cmds_CXX | \
14494    module_cmds_CXX | \
14495    module_expsym_cmds_CXX | \
14496    old_archive_from_expsyms_cmds_CXX | \
14497    export_symbols_cmds_CXX | \
14498    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14499    postinstall_cmds | postuninstall_cmds | \
14500    old_postinstall_cmds | old_postuninstall_cmds | \
14501    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14502      # Double-quote double-evaled strings.
14503      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14504      ;;
14505    *)
14506      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14507      ;;
14508    esac
14509  done
14510
14511  case $lt_echo in
14512  *'\$0 --fallback-echo"')
14513    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14514    ;;
14515  esac
14516
14517cfgfile="$ofile"
14518
14519  cat <<__EOF__ >> "$cfgfile"
14520# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14521
14522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14523
14524# Shell to use when invoking shell scripts.
14525SHELL=$lt_SHELL
14526
14527# Whether or not to build shared libraries.
14528build_libtool_libs=$enable_shared
14529
14530# Whether or not to build static libraries.
14531build_old_libs=$enable_static
14532
14533# Whether or not to add -lc for building shared libraries.
14534build_libtool_need_lc=$archive_cmds_need_lc_CXX
14535
14536# Whether or not to disallow shared libs when runtime libs are static
14537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14538
14539# Whether or not to optimize for fast installation.
14540fast_install=$enable_fast_install
14541
14542# The host system.
14543host_alias=$host_alias
14544host=$host
14545host_os=$host_os
14546
14547# The build system.
14548build_alias=$build_alias
14549build=$build
14550build_os=$build_os
14551
14552# An echo program that does not interpret backslashes.
14553echo=$lt_echo
14554
14555# The archiver.
14556AR=$lt_AR
14557AR_FLAGS=$lt_AR_FLAGS
14558
14559# A C compiler.
14560LTCC=$lt_LTCC
14561
14562# LTCC compiler flags.
14563LTCFLAGS=$lt_LTCFLAGS
14564
14565# A language-specific compiler.
14566CC=$lt_compiler_CXX
14567
14568# Is the compiler the GNU C compiler?
14569with_gcc=$GCC_CXX
14570
14571# An ERE matcher.
14572EGREP=$lt_EGREP
14573
14574# The linker used to build libraries.
14575LD=$lt_LD_CXX
14576
14577# Whether we need hard or soft links.
14578LN_S=$lt_LN_S
14579
14580# A BSD-compatible nm program.
14581NM=$lt_NM
14582
14583# A symbol stripping program
14584STRIP=$lt_STRIP
14585
14586# Used to examine libraries when file_magic_cmd begins "file"
14587MAGIC_CMD=$MAGIC_CMD
14588
14589# Used on cygwin: DLL creation program.
14590DLLTOOL="$DLLTOOL"
14591
14592# Used on cygwin: object dumper.
14593OBJDUMP="$OBJDUMP"
14594
14595# Used on cygwin: assembler.
14596AS="$AS"
14597
14598# The name of the directory that contains temporary libtool files.
14599objdir=$objdir
14600
14601# How to create reloadable object files.
14602reload_flag=$lt_reload_flag
14603reload_cmds=$lt_reload_cmds
14604
14605# How to pass a linker flag through the compiler.
14606wl=$lt_lt_prog_compiler_wl_CXX
14607
14608# Object file suffix (normally "o").
14609objext="$ac_objext"
14610
14611# Old archive suffix (normally "a").
14612libext="$libext"
14613
14614# Shared library suffix (normally ".so").
14615shrext_cmds='$shrext_cmds'
14616
14617# Executable file suffix (normally "").
14618exeext="$exeext"
14619
14620# Additional compiler flags for building library objects.
14621pic_flag=$lt_lt_prog_compiler_pic_CXX
14622pic_mode=$pic_mode
14623
14624# What is the maximum length of a command?
14625max_cmd_len=$lt_cv_sys_max_cmd_len
14626
14627# Does compiler simultaneously support -c and -o options?
14628compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14629
14630# Must we lock files when doing compilation?
14631need_locks=$lt_need_locks
14632
14633# Do we need the lib prefix for modules?
14634need_lib_prefix=$need_lib_prefix
14635
14636# Do we need a version for libraries?
14637need_version=$need_version
14638
14639# Whether dlopen is supported.
14640dlopen_support=$enable_dlopen
14641
14642# Whether dlopen of programs is supported.
14643dlopen_self=$enable_dlopen_self
14644
14645# Whether dlopen of statically linked programs is supported.
14646dlopen_self_static=$enable_dlopen_self_static
14647
14648# Compiler flag to prevent dynamic linking.
14649link_static_flag=$lt_lt_prog_compiler_static_CXX
14650
14651# Compiler flag to turn off builtin functions.
14652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14653
14654# Compiler flag to allow reflexive dlopens.
14655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14656
14657# Compiler flag to generate shared objects directly from archives.
14658whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14659
14660# Compiler flag to generate thread-safe objects.
14661thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14662
14663# Library versioning type.
14664version_type=$version_type
14665
14666# Format of library name prefix.
14667libname_spec=$lt_libname_spec
14668
14669# List of archive names.  First name is the real one, the rest are links.
14670# The last name is the one that the linker finds with -lNAME.
14671library_names_spec=$lt_library_names_spec
14672
14673# The coded name of the library, if different from the real name.
14674soname_spec=$lt_soname_spec
14675
14676# Commands used to build and install an old-style archive.
14677RANLIB=$lt_RANLIB
14678old_archive_cmds=$lt_old_archive_cmds_CXX
14679old_postinstall_cmds=$lt_old_postinstall_cmds
14680old_postuninstall_cmds=$lt_old_postuninstall_cmds
14681
14682# Create an old-style archive from a shared archive.
14683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14684
14685# Create a temporary old-style archive to link instead of a shared archive.
14686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14687
14688# Commands used to build and install a shared archive.
14689archive_cmds=$lt_archive_cmds_CXX
14690archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14691postinstall_cmds=$lt_postinstall_cmds
14692postuninstall_cmds=$lt_postuninstall_cmds
14693
14694# Commands used to build a loadable module (assumed same as above if empty)
14695module_cmds=$lt_module_cmds_CXX
14696module_expsym_cmds=$lt_module_expsym_cmds_CXX
14697
14698# Commands to strip libraries.
14699old_striplib=$lt_old_striplib
14700striplib=$lt_striplib
14701
14702# Dependencies to place before the objects being linked to create a
14703# shared library.
14704predep_objects=$lt_predep_objects_CXX
14705
14706# Dependencies to place after the objects being linked to create a
14707# shared library.
14708postdep_objects=$lt_postdep_objects_CXX
14709
14710# Dependencies to place before the objects being linked to create a
14711# shared library.
14712predeps=$lt_predeps_CXX
14713
14714# Dependencies to place after the objects being linked to create a
14715# shared library.
14716postdeps=$lt_postdeps_CXX
14717
14718# The library search path used internally by the compiler when linking
14719# a shared library.
14720compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14721
14722# Method to check whether dependent libraries are shared objects.
14723deplibs_check_method=$lt_deplibs_check_method
14724
14725# Command to use when deplibs_check_method == file_magic.
14726file_magic_cmd=$lt_file_magic_cmd
14727
14728# Flag that allows shared libraries with undefined symbols to be built.
14729allow_undefined_flag=$lt_allow_undefined_flag_CXX
14730
14731# Flag that forces no undefined symbols.
14732no_undefined_flag=$lt_no_undefined_flag_CXX
14733
14734# Commands used to finish a libtool library installation in a directory.
14735finish_cmds=$lt_finish_cmds
14736
14737# Same as above, but a single script fragment to be evaled but not shown.
14738finish_eval=$lt_finish_eval
14739
14740# Take the output of nm and produce a listing of raw symbols and C names.
14741global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14742
14743# Transform the output of nm in a proper C declaration
14744global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14745
14746# Transform the output of nm in a C name address pair
14747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14748
14749# This is the shared library runtime path variable.
14750runpath_var=$runpath_var
14751
14752# This is the shared library path variable.
14753shlibpath_var=$shlibpath_var
14754
14755# Is shlibpath searched before the hard-coded library search path?
14756shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14757
14758# How to hardcode a shared library path into an executable.
14759hardcode_action=$hardcode_action_CXX
14760
14761# Whether we should hardcode library paths into libraries.
14762hardcode_into_libs=$hardcode_into_libs
14763
14764# Flag to hardcode \$libdir into a binary during linking.
14765# This must work even if \$libdir does not exist.
14766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14767
14768# If ld is used when linking, flag to hardcode \$libdir into
14769# a binary during linking. This must work even if \$libdir does
14770# not exist.
14771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14772
14773# Whether we need a single -rpath flag with a separated argument.
14774hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14775
14776# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14777# resulting binary.
14778hardcode_direct=$hardcode_direct_CXX
14779
14780# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14781# resulting binary.
14782hardcode_minus_L=$hardcode_minus_L_CXX
14783
14784# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14785# the resulting binary.
14786hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14787
14788# Set to yes if building a shared library automatically hardcodes DIR into the library
14789# and all subsequent libraries and executables linked against it.
14790hardcode_automatic=$hardcode_automatic_CXX
14791
14792# Variables whose values should be saved in libtool wrapper scripts and
14793# restored at relink time.
14794variables_saved_for_relink="$variables_saved_for_relink"
14795
14796# Whether libtool must link a program against all its dependency libraries.
14797link_all_deplibs=$link_all_deplibs_CXX
14798
14799# Compile-time system search path for libraries
14800sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14801
14802# Run-time system search path for libraries
14803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14804
14805# Fix the shell variable \$srcfile for the compiler.
14806fix_srcfile_path="$fix_srcfile_path_CXX"
14807
14808# Set to yes if exported symbols are required.
14809always_export_symbols=$always_export_symbols_CXX
14810
14811# The commands to list exported symbols.
14812export_symbols_cmds=$lt_export_symbols_cmds_CXX
14813
14814# The commands to extract the exported symbol list from a shared archive.
14815extract_expsyms_cmds=$lt_extract_expsyms_cmds
14816
14817# Symbols that should not be listed in the preloaded symbols.
14818exclude_expsyms=$lt_exclude_expsyms_CXX
14819
14820# Symbols that must always be exported.
14821include_expsyms=$lt_include_expsyms_CXX
14822
14823# ### END LIBTOOL TAG CONFIG: $tagname
14824
14825__EOF__
14826
14827
14828else
14829  # If there is no Makefile yet, we rely on a make rule to execute
14830  # `config.status --recheck' to rerun these tests and create the
14831  # libtool script then.
14832  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14833  if test -f "$ltmain_in"; then
14834    test -f Makefile && make "$ltmain"
14835  fi
14836fi
14837
14838
14839ac_ext=c
14840ac_cpp='$CPP $CPPFLAGS'
14841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843ac_compiler_gnu=$ac_cv_c_compiler_gnu
14844
14845CC=$lt_save_CC
14846LDCXX=$LD
14847LD=$lt_save_LD
14848GCC=$lt_save_GCC
14849with_gnu_ldcxx=$with_gnu_ld
14850with_gnu_ld=$lt_save_with_gnu_ld
14851lt_cv_path_LDCXX=$lt_cv_path_LD
14852lt_cv_path_LD=$lt_save_path_LD
14853lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14854lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14855
14856	else
14857	  tagname=""
14858	fi
14859	;;
14860
14861      F77)
14862	if test -n "$F77" && test "X$F77" != "Xno"; then
14863
14864ac_ext=f
14865ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14866ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14867ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14868
14869
14870archive_cmds_need_lc_F77=no
14871allow_undefined_flag_F77=
14872always_export_symbols_F77=no
14873archive_expsym_cmds_F77=
14874export_dynamic_flag_spec_F77=
14875hardcode_direct_F77=no
14876hardcode_libdir_flag_spec_F77=
14877hardcode_libdir_flag_spec_ld_F77=
14878hardcode_libdir_separator_F77=
14879hardcode_minus_L_F77=no
14880hardcode_automatic_F77=no
14881module_cmds_F77=
14882module_expsym_cmds_F77=
14883link_all_deplibs_F77=unknown
14884old_archive_cmds_F77=$old_archive_cmds
14885no_undefined_flag_F77=
14886whole_archive_flag_spec_F77=
14887enable_shared_with_static_runtimes_F77=no
14888
14889# Source file extension for f77 test sources.
14890ac_ext=f
14891
14892# Object file extension for compiled f77 test sources.
14893objext=o
14894objext_F77=$objext
14895
14896# Code to be used in simple compile tests
14897lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14898
14899# Code to be used in simple link tests
14900lt_simple_link_test_code="      program t\n      end\n"
14901
14902# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14903
14904# If no C compiler was specified, use CC.
14905LTCC=${LTCC-"$CC"}
14906
14907# If no C compiler flags were specified, use CFLAGS.
14908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14909
14910# Allow CC to be a program name with arguments.
14911compiler=$CC
14912
14913
14914# save warnings/boilerplate of simple test code
14915ac_outfile=conftest.$ac_objext
14916printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14917eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14918_lt_compiler_boilerplate=`cat conftest.err`
14919$rm conftest*
14920
14921ac_outfile=conftest.$ac_objext
14922printf "$lt_simple_link_test_code" >conftest.$ac_ext
14923eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14924_lt_linker_boilerplate=`cat conftest.err`
14925$rm conftest*
14926
14927
14928# Allow CC to be a program name with arguments.
14929lt_save_CC="$CC"
14930CC=${F77-"f77"}
14931compiler=$CC
14932compiler_F77=$CC
14933for cc_temp in $compiler""; do
14934  case $cc_temp in
14935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14937    \-*) ;;
14938    *) break;;
14939  esac
14940done
14941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14942
14943
14944echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14945echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14946echo "$as_me:$LINENO: result: $can_build_shared" >&5
14947echo "${ECHO_T}$can_build_shared" >&6
14948
14949echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14950echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14951test "$can_build_shared" = "no" && enable_shared=no
14952
14953# On AIX, shared libraries and static libraries use the same namespace, and
14954# are all built from PIC.
14955case $host_os in
14956aix3*)
14957  test "$enable_shared" = yes && enable_static=no
14958  if test -n "$RANLIB"; then
14959    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14960    postinstall_cmds='$RANLIB $lib'
14961  fi
14962  ;;
14963aix4* | aix5*)
14964  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14965    test "$enable_shared" = yes && enable_static=no
14966  fi
14967  ;;
14968esac
14969echo "$as_me:$LINENO: result: $enable_shared" >&5
14970echo "${ECHO_T}$enable_shared" >&6
14971
14972echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14973echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14974# Make sure either enable_shared or enable_static is yes.
14975test "$enable_shared" = yes || enable_static=yes
14976echo "$as_me:$LINENO: result: $enable_static" >&5
14977echo "${ECHO_T}$enable_static" >&6
14978
14979GCC_F77="$G77"
14980LD_F77="$LD"
14981
14982lt_prog_compiler_wl_F77=
14983lt_prog_compiler_pic_F77=
14984lt_prog_compiler_static_F77=
14985
14986echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14987echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14988
14989  if test "$GCC" = yes; then
14990    lt_prog_compiler_wl_F77='-Wl,'
14991    lt_prog_compiler_static_F77='-static'
14992
14993    case $host_os in
14994      aix*)
14995      # All AIX code is PIC.
14996      if test "$host_cpu" = ia64; then
14997	# AIX 5 now supports IA64 processor
14998	lt_prog_compiler_static_F77='-Bstatic'
14999      fi
15000      ;;
15001
15002    amigaos*)
15003      # FIXME: we need at least 68020 code to build shared libraries, but
15004      # adding the `-m68020' flag to GCC prevents building anything better,
15005      # like `-m68040'.
15006      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15007      ;;
15008
15009    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15010      # PIC is the default for these OSes.
15011      ;;
15012
15013    mingw* | pw32* | os2*)
15014      # This hack is so that the source file can tell whether it is being
15015      # built for inclusion in a dll (and should export symbols for example).
15016      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15017      ;;
15018
15019    darwin* | rhapsody*)
15020      # PIC is the default on this platform
15021      # Common symbols not allowed in MH_DYLIB files
15022      lt_prog_compiler_pic_F77='-fno-common'
15023      ;;
15024
15025    interix3*)
15026      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15027      # Instead, we relocate shared libraries at runtime.
15028      ;;
15029
15030    msdosdjgpp*)
15031      # Just because we use GCC doesn't mean we suddenly get shared libraries
15032      # on systems that don't support them.
15033      lt_prog_compiler_can_build_shared_F77=no
15034      enable_shared=no
15035      ;;
15036
15037    sysv4*MP*)
15038      if test -d /usr/nec; then
15039	lt_prog_compiler_pic_F77=-Kconform_pic
15040      fi
15041      ;;
15042
15043    hpux*)
15044      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15045      # not for PA HP-UX.
15046      case $host_cpu in
15047      hppa*64*|ia64*)
15048	# +Z the default
15049	;;
15050      *)
15051	lt_prog_compiler_pic_F77='-fPIC'
15052	;;
15053      esac
15054      ;;
15055
15056    *)
15057      lt_prog_compiler_pic_F77='-fPIC'
15058      ;;
15059    esac
15060  else
15061    # PORTME Check for flag to pass linker flags through the system compiler.
15062    case $host_os in
15063    aix*)
15064      lt_prog_compiler_wl_F77='-Wl,'
15065      if test "$host_cpu" = ia64; then
15066	# AIX 5 now supports IA64 processor
15067	lt_prog_compiler_static_F77='-Bstatic'
15068      else
15069	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15070      fi
15071      ;;
15072      darwin*)
15073        # PIC is the default on this platform
15074        # Common symbols not allowed in MH_DYLIB files
15075       case $cc_basename in
15076         xlc*)
15077         lt_prog_compiler_pic_F77='-qnocommon'
15078         lt_prog_compiler_wl_F77='-Wl,'
15079         ;;
15080       esac
15081       ;;
15082
15083    mingw* | pw32* | os2*)
15084      # This hack is so that the source file can tell whether it is being
15085      # built for inclusion in a dll (and should export symbols for example).
15086      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15087      ;;
15088
15089    hpux9* | hpux10* | hpux11*)
15090      lt_prog_compiler_wl_F77='-Wl,'
15091      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15092      # not for PA HP-UX.
15093      case $host_cpu in
15094      hppa*64*|ia64*)
15095	# +Z the default
15096	;;
15097      *)
15098	lt_prog_compiler_pic_F77='+Z'
15099	;;
15100      esac
15101      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15102      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15103      ;;
15104
15105    irix5* | irix6* | nonstopux*)
15106      lt_prog_compiler_wl_F77='-Wl,'
15107      # PIC (with -KPIC) is the default.
15108      lt_prog_compiler_static_F77='-non_shared'
15109      ;;
15110
15111    newsos6)
15112      lt_prog_compiler_pic_F77='-KPIC'
15113      lt_prog_compiler_static_F77='-Bstatic'
15114      ;;
15115
15116    linux*)
15117      case $cc_basename in
15118      icc* | ecc*)
15119	lt_prog_compiler_wl_F77='-Wl,'
15120	lt_prog_compiler_pic_F77='-KPIC'
15121	lt_prog_compiler_static_F77='-static'
15122        ;;
15123      pgcc* | pgf77* | pgf90* | pgf95*)
15124        # Portland Group compilers (*not* the Pentium gcc compiler,
15125	# which looks to be a dead project)
15126	lt_prog_compiler_wl_F77='-Wl,'
15127	lt_prog_compiler_pic_F77='-fpic'
15128	lt_prog_compiler_static_F77='-Bstatic'
15129        ;;
15130      ccc*)
15131        lt_prog_compiler_wl_F77='-Wl,'
15132        # All Alpha code is PIC.
15133        lt_prog_compiler_static_F77='-non_shared'
15134        ;;
15135      esac
15136      ;;
15137
15138    osf3* | osf4* | osf5*)
15139      lt_prog_compiler_wl_F77='-Wl,'
15140      # All OSF/1 code is PIC.
15141      lt_prog_compiler_static_F77='-non_shared'
15142      ;;
15143
15144    solaris*)
15145      lt_prog_compiler_pic_F77='-KPIC'
15146      lt_prog_compiler_static_F77='-Bstatic'
15147      case $cc_basename in
15148      f77* | f90* | f95*)
15149	lt_prog_compiler_wl_F77='-Qoption ld ';;
15150      *)
15151	lt_prog_compiler_wl_F77='-Wl,';;
15152      esac
15153      ;;
15154
15155    sunos4*)
15156      lt_prog_compiler_wl_F77='-Qoption ld '
15157      lt_prog_compiler_pic_F77='-PIC'
15158      lt_prog_compiler_static_F77='-Bstatic'
15159      ;;
15160
15161    sysv4 | sysv4.2uw2* | sysv4.3*)
15162      lt_prog_compiler_wl_F77='-Wl,'
15163      lt_prog_compiler_pic_F77='-KPIC'
15164      lt_prog_compiler_static_F77='-Bstatic'
15165      ;;
15166
15167    sysv4*MP*)
15168      if test -d /usr/nec ;then
15169	lt_prog_compiler_pic_F77='-Kconform_pic'
15170	lt_prog_compiler_static_F77='-Bstatic'
15171      fi
15172      ;;
15173
15174    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15175      lt_prog_compiler_wl_F77='-Wl,'
15176      lt_prog_compiler_pic_F77='-KPIC'
15177      lt_prog_compiler_static_F77='-Bstatic'
15178      ;;
15179
15180    unicos*)
15181      lt_prog_compiler_wl_F77='-Wl,'
15182      lt_prog_compiler_can_build_shared_F77=no
15183      ;;
15184
15185    uts4*)
15186      lt_prog_compiler_pic_F77='-pic'
15187      lt_prog_compiler_static_F77='-Bstatic'
15188      ;;
15189
15190    *)
15191      lt_prog_compiler_can_build_shared_F77=no
15192      ;;
15193    esac
15194  fi
15195
15196echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15197echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15198
15199#
15200# Check to make sure the PIC flag actually works.
15201#
15202if test -n "$lt_prog_compiler_pic_F77"; then
15203
15204echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15205echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15206if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15207  echo $ECHO_N "(cached) $ECHO_C" >&6
15208else
15209  lt_prog_compiler_pic_works_F77=no
15210  ac_outfile=conftest.$ac_objext
15211   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15212   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15213   # Insert the option either (1) after the last *FLAGS variable, or
15214   # (2) before a word containing "conftest.", or (3) at the end.
15215   # Note that $ac_compile itself does not contain backslashes and begins
15216   # with a dollar sign (not a hyphen), so the echo should work correctly.
15217   # The option is referenced via a variable to avoid confusing sed.
15218   lt_compile=`echo "$ac_compile" | $SED \
15219   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15220   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15221   -e 's:$: $lt_compiler_flag:'`
15222   (eval echo "\"\$as_me:15222: $lt_compile\"" >&5)
15223   (eval "$lt_compile" 2>conftest.err)
15224   ac_status=$?
15225   cat conftest.err >&5
15226   echo "$as_me:15226: \$? = $ac_status" >&5
15227   if (exit $ac_status) && test -s "$ac_outfile"; then
15228     # The compiler can only warn and ignore the option if not recognized
15229     # So say no if there are warnings other than the usual output.
15230     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15231     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15232     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15233       lt_prog_compiler_pic_works_F77=yes
15234     fi
15235   fi
15236   $rm conftest*
15237
15238fi
15239echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15240echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15241
15242if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15243    case $lt_prog_compiler_pic_F77 in
15244     "" | " "*) ;;
15245     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15246     esac
15247else
15248    lt_prog_compiler_pic_F77=
15249     lt_prog_compiler_can_build_shared_F77=no
15250fi
15251
15252fi
15253case $host_os in
15254  # For platforms which do not support PIC, -DPIC is meaningless:
15255  *djgpp*)
15256    lt_prog_compiler_pic_F77=
15257    ;;
15258  *)
15259    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15260    ;;
15261esac
15262
15263#
15264# Check to make sure the static flag actually works.
15265#
15266wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15267echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15268echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15269if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15270  echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272  lt_prog_compiler_static_works_F77=no
15273   save_LDFLAGS="$LDFLAGS"
15274   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15275   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15276   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15277     # The linker can only warn and ignore the option if not recognized
15278     # So say no if there are warnings
15279     if test -s conftest.err; then
15280       # Append any errors to the config.log.
15281       cat conftest.err 1>&5
15282       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15283       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15284       if diff conftest.exp conftest.er2 >/dev/null; then
15285         lt_prog_compiler_static_works_F77=yes
15286       fi
15287     else
15288       lt_prog_compiler_static_works_F77=yes
15289     fi
15290   fi
15291   $rm conftest*
15292   LDFLAGS="$save_LDFLAGS"
15293
15294fi
15295echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15296echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15297
15298if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15299    :
15300else
15301    lt_prog_compiler_static_F77=
15302fi
15303
15304
15305echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15306echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15307if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15308  echo $ECHO_N "(cached) $ECHO_C" >&6
15309else
15310  lt_cv_prog_compiler_c_o_F77=no
15311   $rm -r conftest 2>/dev/null
15312   mkdir conftest
15313   cd conftest
15314   mkdir out
15315   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15316
15317   lt_compiler_flag="-o out/conftest2.$ac_objext"
15318   # Insert the option either (1) after the last *FLAGS variable, or
15319   # (2) before a word containing "conftest.", or (3) at the end.
15320   # Note that $ac_compile itself does not contain backslashes and begins
15321   # with a dollar sign (not a hyphen), so the echo should work correctly.
15322   lt_compile=`echo "$ac_compile" | $SED \
15323   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15324   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325   -e 's:$: $lt_compiler_flag:'`
15326   (eval echo "\"\$as_me:15326: $lt_compile\"" >&5)
15327   (eval "$lt_compile" 2>out/conftest.err)
15328   ac_status=$?
15329   cat out/conftest.err >&5
15330   echo "$as_me:15330: \$? = $ac_status" >&5
15331   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15332   then
15333     # The compiler can only warn and ignore the option if not recognized
15334     # So say no if there are warnings
15335     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15336     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15337     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15338       lt_cv_prog_compiler_c_o_F77=yes
15339     fi
15340   fi
15341   chmod u+w . 2>&5
15342   $rm conftest*
15343   # SGI C++ compiler will create directory out/ii_files/ for
15344   # template instantiation
15345   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15346   $rm out/* && rmdir out
15347   cd ..
15348   rmdir conftest
15349   $rm conftest*
15350
15351fi
15352echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15353echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15354
15355
15356hard_links="nottested"
15357if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15358  # do not overwrite the value of need_locks provided by the user
15359  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15360echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15361  hard_links=yes
15362  $rm conftest*
15363  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15364  touch conftest.a
15365  ln conftest.a conftest.b 2>&5 || hard_links=no
15366  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367  echo "$as_me:$LINENO: result: $hard_links" >&5
15368echo "${ECHO_T}$hard_links" >&6
15369  if test "$hard_links" = no; then
15370    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15371echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15372    need_locks=warn
15373  fi
15374else
15375  need_locks=no
15376fi
15377
15378echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15379echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15380
15381  runpath_var=
15382  allow_undefined_flag_F77=
15383  enable_shared_with_static_runtimes_F77=no
15384  archive_cmds_F77=
15385  archive_expsym_cmds_F77=
15386  old_archive_From_new_cmds_F77=
15387  old_archive_from_expsyms_cmds_F77=
15388  export_dynamic_flag_spec_F77=
15389  whole_archive_flag_spec_F77=
15390  thread_safe_flag_spec_F77=
15391  hardcode_libdir_flag_spec_F77=
15392  hardcode_libdir_flag_spec_ld_F77=
15393  hardcode_libdir_separator_F77=
15394  hardcode_direct_F77=no
15395  hardcode_minus_L_F77=no
15396  hardcode_shlibpath_var_F77=unsupported
15397  link_all_deplibs_F77=unknown
15398  hardcode_automatic_F77=no
15399  module_cmds_F77=
15400  module_expsym_cmds_F77=
15401  always_export_symbols_F77=no
15402  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15403  # include_expsyms should be a list of space-separated symbols to be *always*
15404  # included in the symbol list
15405  include_expsyms_F77=
15406  # exclude_expsyms can be an extended regexp of symbols to exclude
15407  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15408  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15409  # as well as any symbol that contains `d'.
15410  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15411  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15412  # platforms (ab)use it in PIC code, but their linkers get confused if
15413  # the symbol is explicitly referenced.  Since portable code cannot
15414  # rely on this symbol name, it's probably fine to never include it in
15415  # preloaded symbol tables.
15416  extract_expsyms_cmds=
15417  # Just being paranoid about ensuring that cc_basename is set.
15418  for cc_temp in $compiler""; do
15419  case $cc_temp in
15420    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15421    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15422    \-*) ;;
15423    *) break;;
15424  esac
15425done
15426cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15427
15428  case $host_os in
15429  cygwin* | mingw* | pw32*)
15430    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15431    # When not using gcc, we currently assume that we are using
15432    # Microsoft Visual C++.
15433    if test "$GCC" != yes; then
15434      with_gnu_ld=no
15435    fi
15436    ;;
15437  interix*)
15438    # we just hope/assume this is gcc and not c89 (= MSVC++)
15439    with_gnu_ld=yes
15440    ;;
15441  openbsd*)
15442    with_gnu_ld=no
15443    ;;
15444  esac
15445
15446  ld_shlibs_F77=yes
15447  if test "$with_gnu_ld" = yes; then
15448    # If archive_cmds runs LD, not CC, wlarc should be empty
15449    wlarc='${wl}'
15450
15451    # Set some defaults for GNU ld with shared library support. These
15452    # are reset later if shared libraries are not supported. Putting them
15453    # here allows them to be overridden if necessary.
15454    runpath_var=LD_RUN_PATH
15455    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15456    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15457    # ancient GNU ld didn't support --whole-archive et. al.
15458    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15459	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15460      else
15461  	whole_archive_flag_spec_F77=
15462    fi
15463    supports_anon_versioning=no
15464    case `$LD -v 2>/dev/null` in
15465      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15466      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15467      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15468      *\ 2.11.*) ;; # other 2.11 versions
15469      *) supports_anon_versioning=yes ;;
15470    esac
15471
15472    # See if GNU ld supports shared libraries.
15473    case $host_os in
15474    aix3* | aix4* | aix5*)
15475      # On AIX/PPC, the GNU linker is very broken
15476      if test "$host_cpu" != ia64; then
15477	ld_shlibs_F77=no
15478	cat <<EOF 1>&2
15479
15480*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15481*** to be unable to reliably create shared libraries on AIX.
15482*** Therefore, libtool is disabling shared libraries support.  If you
15483*** really care for shared libraries, you may want to modify your PATH
15484*** so that a non-GNU linker is found, and then restart.
15485
15486EOF
15487      fi
15488      ;;
15489
15490    amigaos*)
15491      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)'
15492      hardcode_libdir_flag_spec_F77='-L$libdir'
15493      hardcode_minus_L_F77=yes
15494
15495      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15496      # that the semantics of dynamic libraries on AmigaOS, at least up
15497      # to version 4, is to share data among multiple programs linked
15498      # with the same dynamic library.  Since this doesn't match the
15499      # behavior of shared libraries on other platforms, we can't use
15500      # them.
15501      ld_shlibs_F77=no
15502      ;;
15503
15504    beos*)
15505      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15506	allow_undefined_flag_F77=unsupported
15507	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15508	# support --undefined.  This deserves some investigation.  FIXME
15509	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510      else
15511	ld_shlibs_F77=no
15512      fi
15513      ;;
15514
15515    cygwin* | mingw* | pw32*)
15516      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15517      # as there is no search path for DLLs.
15518      hardcode_libdir_flag_spec_F77='-L$libdir'
15519      allow_undefined_flag_F77=unsupported
15520      always_export_symbols_F77=no
15521      enable_shared_with_static_runtimes_F77=yes
15522      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15523
15524      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15525        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15526	# If the export-symbols file already is a .def file (1st line
15527	# is EXPORTS), use it as is; otherwise, prepend...
15528	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15529	  cp $export_symbols $output_objdir/$soname.def;
15530	else
15531	  echo EXPORTS > $output_objdir/$soname.def;
15532	  cat $export_symbols >> $output_objdir/$soname.def;
15533	fi~
15534	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15535      else
15536	ld_shlibs_F77=no
15537      fi
15538      ;;
15539
15540    interix3*)
15541      hardcode_direct_F77=no
15542      hardcode_shlibpath_var_F77=no
15543      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15544      export_dynamic_flag_spec_F77='${wl}-E'
15545      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15546      # Instead, shared libraries are loaded at an image base (0x10000000 by
15547      # default) and relocated if they conflict, which is a slow very memory
15548      # consuming and fragmenting process.  To avoid this, we pick a random,
15549      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15550      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15551      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'
15552      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'
15553      ;;
15554
15555    linux*)
15556      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15557	tmp_addflag=
15558	case $cc_basename,$host_cpu in
15559	pgcc*)				# Portland Group C compiler
15560	  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'
15561	  tmp_addflag=' $pic_flag'
15562	  ;;
15563	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15564	  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'
15565	  tmp_addflag=' $pic_flag -Mnomain' ;;
15566	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15567	  tmp_addflag=' -i_dynamic' ;;
15568	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15569	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15570	ifc* | ifort*)			# Intel Fortran compiler
15571	  tmp_addflag=' -nofor_main' ;;
15572	esac
15573	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15574
15575	if test $supports_anon_versioning = yes; then
15576	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15577  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15578  $echo "local: *; };" >> $output_objdir/$libname.ver~
15579	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15580	fi
15581      else
15582	ld_shlibs_F77=no
15583      fi
15584      ;;
15585
15586    netbsd*)
15587      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15588	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15589	wlarc=
15590      else
15591	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15592	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15593      fi
15594      ;;
15595
15596    solaris*)
15597      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15598	ld_shlibs_F77=no
15599	cat <<EOF 1>&2
15600
15601*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15602*** create shared libraries on Solaris systems.  Therefore, libtool
15603*** is disabling shared libraries support.  We urge you to upgrade GNU
15604*** binutils to release 2.9.1 or newer.  Another option is to modify
15605*** your PATH or compiler configuration so that the native linker is
15606*** used, and then restart.
15607
15608EOF
15609      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15610	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15611	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15612      else
15613	ld_shlibs_F77=no
15614      fi
15615      ;;
15616
15617    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15618      case `$LD -v 2>&1` in
15619        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15620	ld_shlibs_F77=no
15621	cat <<_LT_EOF 1>&2
15622
15623*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15624*** reliably create shared libraries on SCO systems.  Therefore, libtool
15625*** is disabling shared libraries support.  We urge you to upgrade GNU
15626*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15627*** your PATH or compiler configuration so that the native linker is
15628*** used, and then restart.
15629
15630_LT_EOF
15631	;;
15632	*)
15633	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15634	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15635	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15636	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15637	  else
15638	    ld_shlibs_F77=no
15639	  fi
15640	;;
15641      esac
15642      ;;
15643
15644    sunos4*)
15645      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15646      wlarc=
15647      hardcode_direct_F77=yes
15648      hardcode_shlibpath_var_F77=no
15649      ;;
15650
15651    *)
15652      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15653	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15655      else
15656	ld_shlibs_F77=no
15657      fi
15658      ;;
15659    esac
15660
15661    if test "$ld_shlibs_F77" = no; then
15662      runpath_var=
15663      hardcode_libdir_flag_spec_F77=
15664      export_dynamic_flag_spec_F77=
15665      whole_archive_flag_spec_F77=
15666    fi
15667  else
15668    # PORTME fill in a description of your system's linker (not GNU ld)
15669    case $host_os in
15670    aix3*)
15671      allow_undefined_flag_F77=unsupported
15672      always_export_symbols_F77=yes
15673      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'
15674      # Note: this linker hardcodes the directories in LIBPATH if there
15675      # are no directories specified by -L.
15676      hardcode_minus_L_F77=yes
15677      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15678	# Neither direct hardcoding nor static linking is supported with a
15679	# broken collect2.
15680	hardcode_direct_F77=unsupported
15681      fi
15682      ;;
15683
15684    aix4* | aix5*)
15685      if test "$host_cpu" = ia64; then
15686	# On IA64, the linker does run time linking by default, so we don't
15687	# have to do anything special.
15688	aix_use_runtimelinking=no
15689	exp_sym_flag='-Bexport'
15690	no_entry_flag=""
15691      else
15692	# If we're using GNU nm, then we don't want the "-C" option.
15693	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15694	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15695	  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'
15696	else
15697	  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'
15698	fi
15699	aix_use_runtimelinking=no
15700
15701	# Test if we are trying to use run time linking or normal
15702	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15703	# need to do runtime linking.
15704	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15705	  for ld_flag in $LDFLAGS; do
15706  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15707  	    aix_use_runtimelinking=yes
15708  	    break
15709  	  fi
15710	  done
15711	  ;;
15712	esac
15713
15714	exp_sym_flag='-bexport'
15715	no_entry_flag='-bnoentry'
15716      fi
15717
15718      # When large executables or shared objects are built, AIX ld can
15719      # have problems creating the table of contents.  If linking a library
15720      # or program results in "error TOC overflow" add -mminimal-toc to
15721      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15722      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15723
15724      archive_cmds_F77=''
15725      hardcode_direct_F77=yes
15726      hardcode_libdir_separator_F77=':'
15727      link_all_deplibs_F77=yes
15728
15729      if test "$GCC" = yes; then
15730	case $host_os in aix4.[012]|aix4.[012].*)
15731	# We only want to do this on AIX 4.2 and lower, the check
15732	# below for broken collect2 doesn't work under 4.3+
15733	  collect2name=`${CC} -print-prog-name=collect2`
15734	  if test -f "$collect2name" && \
15735  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15736	  then
15737  	  # We have reworked collect2
15738  	  hardcode_direct_F77=yes
15739	  else
15740  	  # We have old collect2
15741  	  hardcode_direct_F77=unsupported
15742  	  # It fails to find uninstalled libraries when the uninstalled
15743  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15744  	  # to unsupported forces relinking
15745  	  hardcode_minus_L_F77=yes
15746  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15747  	  hardcode_libdir_separator_F77=
15748	  fi
15749	  ;;
15750	esac
15751	shared_flag='-shared'
15752	if test "$aix_use_runtimelinking" = yes; then
15753	  shared_flag="$shared_flag "'${wl}-G'
15754	fi
15755      else
15756	# not using gcc
15757	if test "$host_cpu" = ia64; then
15758  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15759  	# chokes on -Wl,-G. The following line is correct:
15760	  shared_flag='-G'
15761	else
15762	  if test "$aix_use_runtimelinking" = yes; then
15763	    shared_flag='${wl}-G'
15764	  else
15765	    shared_flag='${wl}-bM:SRE'
15766	  fi
15767	fi
15768      fi
15769
15770      # It seems that -bexpall does not export symbols beginning with
15771      # underscore (_), so it is better to generate a list of symbols to export.
15772      always_export_symbols_F77=yes
15773      if test "$aix_use_runtimelinking" = yes; then
15774	# Warning - without using the other runtime loading flags (-brtl),
15775	# -berok will link without error, but may produce a broken library.
15776	allow_undefined_flag_F77='-berok'
15777       # Determine the default libpath from the value encoded in an empty executable.
15778       cat >conftest.$ac_ext <<_ACEOF
15779      program main
15780
15781      end
15782_ACEOF
15783rm -f conftest.$ac_objext conftest$ac_exeext
15784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785  (eval $ac_link) 2>conftest.er1
15786  ac_status=$?
15787  grep -v '^ *+' conftest.er1 >conftest.err
15788  rm -f conftest.er1
15789  cat conftest.err >&5
15790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791  (exit $ac_status); } &&
15792	 { ac_try='test -z "$ac_f77_werror_flag"
15793			 || test ! -s conftest.err'
15794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795  (eval $ac_try) 2>&5
15796  ac_status=$?
15797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798  (exit $ac_status); }; } &&
15799	 { ac_try='test -s conftest$ac_exeext'
15800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801  (eval $ac_try) 2>&5
15802  ac_status=$?
15803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804  (exit $ac_status); }; }; then
15805
15806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15807}'`
15808# Check for a 64-bit object if we didn't find anything.
15809if 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; }
15810}'`; fi
15811else
15812  echo "$as_me: failed program was:" >&5
15813sed 's/^/| /' conftest.$ac_ext >&5
15814
15815fi
15816rm -f conftest.err conftest.$ac_objext \
15817      conftest$ac_exeext conftest.$ac_ext
15818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15819
15820       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15821	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"
15822       else
15823	if test "$host_cpu" = ia64; then
15824	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15825	  allow_undefined_flag_F77="-z nodefs"
15826	  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"
15827	else
15828	 # Determine the default libpath from the value encoded in an empty executable.
15829	 cat >conftest.$ac_ext <<_ACEOF
15830      program main
15831
15832      end
15833_ACEOF
15834rm -f conftest.$ac_objext conftest$ac_exeext
15835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836  (eval $ac_link) 2>conftest.er1
15837  ac_status=$?
15838  grep -v '^ *+' conftest.er1 >conftest.err
15839  rm -f conftest.er1
15840  cat conftest.err >&5
15841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842  (exit $ac_status); } &&
15843	 { ac_try='test -z "$ac_f77_werror_flag"
15844			 || test ! -s conftest.err'
15845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846  (eval $ac_try) 2>&5
15847  ac_status=$?
15848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849  (exit $ac_status); }; } &&
15850	 { ac_try='test -s conftest$ac_exeext'
15851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852  (eval $ac_try) 2>&5
15853  ac_status=$?
15854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855  (exit $ac_status); }; }; then
15856
15857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15858}'`
15859# Check for a 64-bit object if we didn't find anything.
15860if 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; }
15861}'`; fi
15862else
15863  echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866fi
15867rm -f conftest.err conftest.$ac_objext \
15868      conftest$ac_exeext conftest.$ac_ext
15869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15870
15871	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15872	  # Warning - without using the other run time loading flags,
15873	  # -berok will link without error, but may produce a broken library.
15874	  no_undefined_flag_F77=' ${wl}-bernotok'
15875	  allow_undefined_flag_F77=' ${wl}-berok'
15876	  # Exported symbols can be pulled into shared objects from archives
15877	  whole_archive_flag_spec_F77='$convenience'
15878	  archive_cmds_need_lc_F77=yes
15879	  # This is similar to how AIX traditionally builds its shared libraries.
15880	  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'
15881	fi
15882      fi
15883      ;;
15884
15885    amigaos*)
15886      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)'
15887      hardcode_libdir_flag_spec_F77='-L$libdir'
15888      hardcode_minus_L_F77=yes
15889      # see comment about different semantics on the GNU ld section
15890      ld_shlibs_F77=no
15891      ;;
15892
15893    bsdi[45]*)
15894      export_dynamic_flag_spec_F77=-rdynamic
15895      ;;
15896
15897    cygwin* | mingw* | pw32*)
15898      # When not using gcc, we currently assume that we are using
15899      # Microsoft Visual C++.
15900      # hardcode_libdir_flag_spec is actually meaningless, as there is
15901      # no search path for DLLs.
15902      hardcode_libdir_flag_spec_F77=' '
15903      allow_undefined_flag_F77=unsupported
15904      # Tell ltmain to make .lib files, not .a files.
15905      libext=lib
15906      # Tell ltmain to make .dll files, not .so files.
15907      shrext_cmds=".dll"
15908      # FIXME: Setting linknames here is a bad hack.
15909      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15910      # The linker will automatically build a .lib file if we build a DLL.
15911      old_archive_From_new_cmds_F77='true'
15912      # FIXME: Should let the user specify the lib program.
15913      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15914      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15915      enable_shared_with_static_runtimes_F77=yes
15916      ;;
15917
15918    darwin* | rhapsody*)
15919      case $host_os in
15920        rhapsody* | darwin1.[012])
15921         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15922         ;;
15923       *) # Darwin 1.3 on
15924         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15925           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15926         else
15927           case ${MACOSX_DEPLOYMENT_TARGET} in
15928             10.[012])
15929               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15930               ;;
15931             10.*)
15932               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15933               ;;
15934           esac
15935         fi
15936         ;;
15937      esac
15938      archive_cmds_need_lc_F77=no
15939      hardcode_direct_F77=no
15940      hardcode_automatic_F77=yes
15941      hardcode_shlibpath_var_F77=unsupported
15942      whole_archive_flag_spec_F77=''
15943      link_all_deplibs_F77=yes
15944    if test "$GCC" = yes ; then
15945    	output_verbose_link_cmd='echo'
15946        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15947      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15948      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15949      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}'
15950      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}'
15951    else
15952      case $cc_basename in
15953        xlc*)
15954         output_verbose_link_cmd='echo'
15955         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15956         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15957          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15958         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}'
15959          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}'
15960          ;;
15961       *)
15962         ld_shlibs_F77=no
15963          ;;
15964      esac
15965    fi
15966      ;;
15967
15968    dgux*)
15969      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15970      hardcode_libdir_flag_spec_F77='-L$libdir'
15971      hardcode_shlibpath_var_F77=no
15972      ;;
15973
15974    freebsd1*)
15975      ld_shlibs_F77=no
15976      ;;
15977
15978    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15979    # support.  Future versions do this automatically, but an explicit c++rt0.o
15980    # does not break anything, and helps significantly (at the cost of a little
15981    # extra space).
15982    freebsd2.2*)
15983      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15984      hardcode_libdir_flag_spec_F77='-R$libdir'
15985      hardcode_direct_F77=yes
15986      hardcode_shlibpath_var_F77=no
15987      ;;
15988
15989    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15990    freebsd2*)
15991      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992      hardcode_direct_F77=yes
15993      hardcode_minus_L_F77=yes
15994      hardcode_shlibpath_var_F77=no
15995      ;;
15996
15997    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15998    freebsd* | kfreebsd*-gnu | dragonfly*)
15999      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16000      hardcode_libdir_flag_spec_F77='-R$libdir'
16001      hardcode_direct_F77=yes
16002      hardcode_shlibpath_var_F77=no
16003      ;;
16004
16005    hpux9*)
16006      if test "$GCC" = yes; then
16007	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'
16008      else
16009	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'
16010      fi
16011      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16012      hardcode_libdir_separator_F77=:
16013      hardcode_direct_F77=yes
16014
16015      # hardcode_minus_L: Not really in the search PATH,
16016      # but as the default location of the library.
16017      hardcode_minus_L_F77=yes
16018      export_dynamic_flag_spec_F77='${wl}-E'
16019      ;;
16020
16021    hpux10*)
16022      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16023	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16024      else
16025	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16026      fi
16027      if test "$with_gnu_ld" = no; then
16028	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16029	hardcode_libdir_separator_F77=:
16030
16031	hardcode_direct_F77=yes
16032	export_dynamic_flag_spec_F77='${wl}-E'
16033
16034	# hardcode_minus_L: Not really in the search PATH,
16035	# but as the default location of the library.
16036	hardcode_minus_L_F77=yes
16037      fi
16038      ;;
16039
16040    hpux11*)
16041      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16042	case $host_cpu in
16043	hppa*64*)
16044	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16045	  ;;
16046	ia64*)
16047	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16048	  ;;
16049	*)
16050	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16051	  ;;
16052	esac
16053      else
16054	case $host_cpu in
16055	hppa*64*)
16056	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16057	  ;;
16058	ia64*)
16059	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16060	  ;;
16061	*)
16062	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16063	  ;;
16064	esac
16065      fi
16066      if test "$with_gnu_ld" = no; then
16067	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16068	hardcode_libdir_separator_F77=:
16069
16070	case $host_cpu in
16071	hppa*64*|ia64*)
16072	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16073	  hardcode_direct_F77=no
16074	  hardcode_shlibpath_var_F77=no
16075	  ;;
16076	*)
16077	  hardcode_direct_F77=yes
16078	  export_dynamic_flag_spec_F77='${wl}-E'
16079
16080	  # hardcode_minus_L: Not really in the search PATH,
16081	  # but as the default location of the library.
16082	  hardcode_minus_L_F77=yes
16083	  ;;
16084	esac
16085      fi
16086      ;;
16087
16088    irix5* | irix6* | nonstopux*)
16089      if test "$GCC" = yes; then
16090	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'
16091      else
16092	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'
16093	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16094      fi
16095      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16096      hardcode_libdir_separator_F77=:
16097      link_all_deplibs_F77=yes
16098      ;;
16099
16100    netbsd*)
16101      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16102	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16103      else
16104	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16105      fi
16106      hardcode_libdir_flag_spec_F77='-R$libdir'
16107      hardcode_direct_F77=yes
16108      hardcode_shlibpath_var_F77=no
16109      ;;
16110
16111    newsos6)
16112      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113      hardcode_direct_F77=yes
16114      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16115      hardcode_libdir_separator_F77=:
16116      hardcode_shlibpath_var_F77=no
16117      ;;
16118
16119    openbsd*)
16120      hardcode_direct_F77=yes
16121      hardcode_shlibpath_var_F77=no
16122      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16123	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16124	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16125	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16126	export_dynamic_flag_spec_F77='${wl}-E'
16127      else
16128       case $host_os in
16129	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16130	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16131	   hardcode_libdir_flag_spec_F77='-R$libdir'
16132	   ;;
16133	 *)
16134	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16135	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16136	   ;;
16137       esac
16138      fi
16139      ;;
16140
16141    os2*)
16142      hardcode_libdir_flag_spec_F77='-L$libdir'
16143      hardcode_minus_L_F77=yes
16144      allow_undefined_flag_F77=unsupported
16145      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'
16146      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16147      ;;
16148
16149    osf3*)
16150      if test "$GCC" = yes; then
16151	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16152	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'
16153      else
16154	allow_undefined_flag_F77=' -expect_unresolved \*'
16155	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'
16156      fi
16157      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16158      hardcode_libdir_separator_F77=:
16159      ;;
16160
16161    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16162      if test "$GCC" = yes; then
16163	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16164	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'
16165	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16166      else
16167	allow_undefined_flag_F77=' -expect_unresolved \*'
16168	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'
16169	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~
16170	$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'
16171
16172	# Both c and cxx compiler support -rpath directly
16173	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16174      fi
16175      hardcode_libdir_separator_F77=:
16176      ;;
16177
16178    solaris*)
16179      no_undefined_flag_F77=' -z text'
16180      if test "$GCC" = yes; then
16181	wlarc='${wl}'
16182	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16183	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16184	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16185      else
16186	wlarc=''
16187	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16188	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16189  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16190      fi
16191      hardcode_libdir_flag_spec_F77='-R$libdir'
16192      hardcode_shlibpath_var_F77=no
16193      case $host_os in
16194      solaris2.[0-5] | solaris2.[0-5].*) ;;
16195      *)
16196 	# The compiler driver will combine linker options so we
16197 	# cannot just pass the convience library names through
16198 	# without $wl, iff we do not link with $LD.
16199 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16200 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16201 	case $wlarc in
16202 	'')
16203 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16204 	*)
16205 	  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' ;;
16206 	esac ;;
16207      esac
16208      link_all_deplibs_F77=yes
16209      ;;
16210
16211    sunos4*)
16212      if test "x$host_vendor" = xsequent; then
16213	# Use $CC to link under sequent, because it throws in some extra .o
16214	# files that make .init and .fini sections work.
16215	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16216      else
16217	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16218      fi
16219      hardcode_libdir_flag_spec_F77='-L$libdir'
16220      hardcode_direct_F77=yes
16221      hardcode_minus_L_F77=yes
16222      hardcode_shlibpath_var_F77=no
16223      ;;
16224
16225    sysv4)
16226      case $host_vendor in
16227	sni)
16228	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229	  hardcode_direct_F77=yes # is this really true???
16230	;;
16231	siemens)
16232	  ## LD is ld it makes a PLAMLIB
16233	  ## CC just makes a GrossModule.
16234	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16235	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16236	  hardcode_direct_F77=no
16237        ;;
16238	motorola)
16239	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16241	;;
16242      esac
16243      runpath_var='LD_RUN_PATH'
16244      hardcode_shlibpath_var_F77=no
16245      ;;
16246
16247    sysv4.3*)
16248      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249      hardcode_shlibpath_var_F77=no
16250      export_dynamic_flag_spec_F77='-Bexport'
16251      ;;
16252
16253    sysv4*MP*)
16254      if test -d /usr/nec; then
16255	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256	hardcode_shlibpath_var_F77=no
16257	runpath_var=LD_RUN_PATH
16258	hardcode_runpath_var=yes
16259	ld_shlibs_F77=yes
16260      fi
16261      ;;
16262
16263    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16264      no_undefined_flag_F77='${wl}-z,text'
16265      archive_cmds_need_lc_F77=no
16266      hardcode_shlibpath_var_F77=no
16267      runpath_var='LD_RUN_PATH'
16268
16269      if test "$GCC" = yes; then
16270	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16271	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16272      else
16273	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16274	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16275      fi
16276      ;;
16277
16278    sysv5* | sco3.2v5* | sco5v6*)
16279      # Note: We can NOT use -z defs as we might desire, because we do not
16280      # link with -lc, and that would cause any symbols used from libc to
16281      # always be unresolved, which means just about no library would
16282      # ever link correctly.  If we're not using GNU ld we use -z text
16283      # though, which does catch some bad symbols but isn't as heavy-handed
16284      # as -z defs.
16285      no_undefined_flag_F77='${wl}-z,text'
16286      allow_undefined_flag_F77='${wl}-z,nodefs'
16287      archive_cmds_need_lc_F77=no
16288      hardcode_shlibpath_var_F77=no
16289      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16290      hardcode_libdir_separator_F77=':'
16291      link_all_deplibs_F77=yes
16292      export_dynamic_flag_spec_F77='${wl}-Bexport'
16293      runpath_var='LD_RUN_PATH'
16294
16295      if test "$GCC" = yes; then
16296	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16297	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16298      else
16299	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16300	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16301      fi
16302      ;;
16303
16304    uts4*)
16305      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306      hardcode_libdir_flag_spec_F77='-L$libdir'
16307      hardcode_shlibpath_var_F77=no
16308      ;;
16309
16310    *)
16311      ld_shlibs_F77=no
16312      ;;
16313    esac
16314  fi
16315
16316echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16317echo "${ECHO_T}$ld_shlibs_F77" >&6
16318test "$ld_shlibs_F77" = no && can_build_shared=no
16319
16320#
16321# Do we need to explicitly link libc?
16322#
16323case "x$archive_cmds_need_lc_F77" in
16324x|xyes)
16325  # Assume -lc should be added
16326  archive_cmds_need_lc_F77=yes
16327
16328  if test "$enable_shared" = yes && test "$GCC" = yes; then
16329    case $archive_cmds_F77 in
16330    *'~'*)
16331      # FIXME: we may have to deal with multi-command sequences.
16332      ;;
16333    '$CC '*)
16334      # Test whether the compiler implicitly links with -lc since on some
16335      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16336      # to ld, don't add -lc before -lgcc.
16337      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16339      $rm conftest*
16340      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16341
16342      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16343  (eval $ac_compile) 2>&5
16344  ac_status=$?
16345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346  (exit $ac_status); } 2>conftest.err; then
16347        soname=conftest
16348        lib=conftest
16349        libobjs=conftest.$ac_objext
16350        deplibs=
16351        wl=$lt_prog_compiler_wl_F77
16352	pic_flag=$lt_prog_compiler_pic_F77
16353        compiler_flags=-v
16354        linker_flags=-v
16355        verstring=
16356        output_objdir=.
16357        libname=conftest
16358        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16359        allow_undefined_flag_F77=
16360        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16361  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16362  ac_status=$?
16363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364  (exit $ac_status); }
16365        then
16366	  archive_cmds_need_lc_F77=no
16367        else
16368	  archive_cmds_need_lc_F77=yes
16369        fi
16370        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16371      else
16372        cat conftest.err 1>&5
16373      fi
16374      $rm conftest*
16375      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16376echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16377      ;;
16378    esac
16379  fi
16380  ;;
16381esac
16382
16383echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16384echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16385library_names_spec=
16386libname_spec='lib$name'
16387soname_spec=
16388shrext_cmds=".so"
16389postinstall_cmds=
16390postuninstall_cmds=
16391finish_cmds=
16392finish_eval=
16393shlibpath_var=
16394shlibpath_overrides_runpath=unknown
16395version_type=none
16396dynamic_linker="$host_os ld.so"
16397sys_lib_dlsearch_path_spec="/lib /usr/lib"
16398if test "$GCC" = yes; then
16399  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16400  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16401    # if the path contains ";" then we assume it to be the separator
16402    # otherwise default to the standard path separator (i.e. ":") - it is
16403    # assumed that no part of a normal pathname contains ";" but that should
16404    # okay in the real world where ";" in dirpaths is itself problematic.
16405    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16406  else
16407    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16408  fi
16409else
16410  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16411fi
16412need_lib_prefix=unknown
16413hardcode_into_libs=no
16414
16415# when you set need_version to no, make sure it does not cause -set_version
16416# flags to be left without arguments
16417need_version=unknown
16418
16419case $host_os in
16420aix3*)
16421  version_type=linux
16422  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16423  shlibpath_var=LIBPATH
16424
16425  # AIX 3 has no versioning support, so we append a major version to the name.
16426  soname_spec='${libname}${release}${shared_ext}$major'
16427  ;;
16428
16429aix4* | aix5*)
16430  version_type=linux
16431  need_lib_prefix=no
16432  need_version=no
16433  hardcode_into_libs=yes
16434  if test "$host_cpu" = ia64; then
16435    # AIX 5 supports IA64
16436    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16437    shlibpath_var=LD_LIBRARY_PATH
16438  else
16439    # With GCC up to 2.95.x, collect2 would create an import file
16440    # for dependence libraries.  The import file would start with
16441    # the line `#! .'.  This would cause the generated library to
16442    # depend on `.', always an invalid library.  This was fixed in
16443    # development snapshots of GCC prior to 3.0.
16444    case $host_os in
16445      aix4 | aix4.[01] | aix4.[01].*)
16446      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16447	   echo ' yes '
16448	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16449	:
16450      else
16451	can_build_shared=no
16452      fi
16453      ;;
16454    esac
16455    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16456    # soname into executable. Probably we can add versioning support to
16457    # collect2, so additional links can be useful in future.
16458    if test "$aix_use_runtimelinking" = yes; then
16459      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16460      # instead of lib<name>.a to let people know that these are not
16461      # typical AIX shared libraries.
16462      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463    else
16464      # We preserve .a as extension for shared libraries through AIX4.2
16465      # and later when we are not doing run time linking.
16466      library_names_spec='${libname}${release}.a $libname.a'
16467      soname_spec='${libname}${release}${shared_ext}$major'
16468    fi
16469    shlibpath_var=LIBPATH
16470  fi
16471  ;;
16472
16473amigaos*)
16474  library_names_spec='$libname.ixlibrary $libname.a'
16475  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16476  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'
16477  ;;
16478
16479beos*)
16480  library_names_spec='${libname}${shared_ext}'
16481  dynamic_linker="$host_os ld.so"
16482  shlibpath_var=LIBRARY_PATH
16483  ;;
16484
16485bsdi[45]*)
16486  version_type=linux
16487  need_version=no
16488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489  soname_spec='${libname}${release}${shared_ext}$major'
16490  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16491  shlibpath_var=LD_LIBRARY_PATH
16492  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16493  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16494  # the default ld.so.conf also contains /usr/contrib/lib and
16495  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16496  # libtool to hard-code these into programs
16497  ;;
16498
16499cygwin* | mingw* | pw32*)
16500  version_type=windows
16501  shrext_cmds=".dll"
16502  need_version=no
16503  need_lib_prefix=no
16504
16505  case $GCC,$host_os in
16506  yes,cygwin* | yes,mingw* | yes,pw32*)
16507    library_names_spec='$libname.dll.a'
16508    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16509    postinstall_cmds='base_file=`basename \${file}`~
16510      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16511      dldir=$destdir/`dirname \$dlpath`~
16512      test -d \$dldir || mkdir -p \$dldir~
16513      $install_prog $dir/$dlname \$dldir/$dlname~
16514      chmod a+x \$dldir/$dlname'
16515    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16516      dlpath=$dir/\$dldll~
16517       $rm \$dlpath'
16518    shlibpath_overrides_runpath=yes
16519
16520    case $host_os in
16521    cygwin*)
16522      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16523      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16524      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16525      ;;
16526    mingw*)
16527      # MinGW DLLs use traditional 'lib' prefix
16528      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16529      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16530      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16531        # It is most probably a Windows format PATH printed by
16532        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16533        # path with ; separators, and with drive letters. We can handle the
16534        # drive letters (cygwin fileutils understands them), so leave them,
16535        # especially as we might pass files found there to a mingw objdump,
16536        # which wouldn't understand a cygwinified path. Ahh.
16537        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16538      else
16539        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16540      fi
16541      ;;
16542    pw32*)
16543      # pw32 DLLs use 'pw' prefix rather than 'lib'
16544      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16545      ;;
16546    esac
16547    ;;
16548
16549  *)
16550    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16551    ;;
16552  esac
16553  dynamic_linker='Win32 ld.exe'
16554  # FIXME: first we should search . and the directory the executable is in
16555  shlibpath_var=PATH
16556  ;;
16557
16558darwin* | rhapsody*)
16559  dynamic_linker="$host_os dyld"
16560  version_type=darwin
16561  need_lib_prefix=no
16562  need_version=no
16563  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16564  soname_spec='${libname}${release}${major}$shared_ext'
16565  shlibpath_overrides_runpath=yes
16566  shlibpath_var=DYLD_LIBRARY_PATH
16567  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16568  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16569  if test "$GCC" = yes; then
16570    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"`
16571  else
16572    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16573  fi
16574  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16575  ;;
16576
16577dgux*)
16578  version_type=linux
16579  need_lib_prefix=no
16580  need_version=no
16581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16582  soname_spec='${libname}${release}${shared_ext}$major'
16583  shlibpath_var=LD_LIBRARY_PATH
16584  ;;
16585
16586freebsd1*)
16587  dynamic_linker=no
16588  ;;
16589
16590kfreebsd*-gnu)
16591  version_type=linux
16592  need_lib_prefix=no
16593  need_version=no
16594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16595  soname_spec='${libname}${release}${shared_ext}$major'
16596  shlibpath_var=LD_LIBRARY_PATH
16597  shlibpath_overrides_runpath=no
16598  hardcode_into_libs=yes
16599  dynamic_linker='GNU ld.so'
16600  ;;
16601
16602freebsd* | dragonfly*)
16603  # DragonFly does not have aout.  When/if they implement a new
16604  # versioning mechanism, adjust this.
16605  if test -x /usr/bin/objformat; then
16606    objformat=`/usr/bin/objformat`
16607  else
16608    case $host_os in
16609    freebsd[123]*) objformat=aout ;;
16610    *) objformat=elf ;;
16611    esac
16612  fi
16613  version_type=freebsd-$objformat
16614  case $version_type in
16615    freebsd-elf*)
16616      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16617      need_version=no
16618      need_lib_prefix=no
16619      ;;
16620    freebsd-*)
16621      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16622      need_version=yes
16623      ;;
16624  esac
16625  shlibpath_var=LD_LIBRARY_PATH
16626  case $host_os in
16627  freebsd2*)
16628    shlibpath_overrides_runpath=yes
16629    ;;
16630  freebsd3.[01]* | freebsdelf3.[01]*)
16631    shlibpath_overrides_runpath=yes
16632    hardcode_into_libs=yes
16633    ;;
16634  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16635  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16636    shlibpath_overrides_runpath=no
16637    hardcode_into_libs=yes
16638    ;;
16639  freebsd*) # from 4.6 on
16640    shlibpath_overrides_runpath=yes
16641    hardcode_into_libs=yes
16642    ;;
16643  esac
16644  ;;
16645
16646gnu*)
16647  version_type=linux
16648  need_lib_prefix=no
16649  need_version=no
16650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16651  soname_spec='${libname}${release}${shared_ext}$major'
16652  shlibpath_var=LD_LIBRARY_PATH
16653  hardcode_into_libs=yes
16654  ;;
16655
16656hpux9* | hpux10* | hpux11*)
16657  # Give a soname corresponding to the major version so that dld.sl refuses to
16658  # link against other versions.
16659  version_type=sunos
16660  need_lib_prefix=no
16661  need_version=no
16662  case $host_cpu in
16663  ia64*)
16664    shrext_cmds='.so'
16665    hardcode_into_libs=yes
16666    dynamic_linker="$host_os dld.so"
16667    shlibpath_var=LD_LIBRARY_PATH
16668    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670    soname_spec='${libname}${release}${shared_ext}$major'
16671    if test "X$HPUX_IA64_MODE" = X32; then
16672      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16673    else
16674      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16675    fi
16676    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16677    ;;
16678   hppa*64*)
16679     shrext_cmds='.sl'
16680     hardcode_into_libs=yes
16681     dynamic_linker="$host_os dld.sl"
16682     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685     soname_spec='${libname}${release}${shared_ext}$major'
16686     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16687     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16688     ;;
16689   *)
16690    shrext_cmds='.sl'
16691    dynamic_linker="$host_os dld.sl"
16692    shlibpath_var=SHLIB_PATH
16693    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16694    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695    soname_spec='${libname}${release}${shared_ext}$major'
16696    ;;
16697  esac
16698  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16699  postinstall_cmds='chmod 555 $lib'
16700  ;;
16701
16702interix3*)
16703  version_type=linux
16704  need_lib_prefix=no
16705  need_version=no
16706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16707  soname_spec='${libname}${release}${shared_ext}$major'
16708  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16709  shlibpath_var=LD_LIBRARY_PATH
16710  shlibpath_overrides_runpath=no
16711  hardcode_into_libs=yes
16712  ;;
16713
16714irix5* | irix6* | nonstopux*)
16715  case $host_os in
16716    nonstopux*) version_type=nonstopux ;;
16717    *)
16718	if test "$lt_cv_prog_gnu_ld" = yes; then
16719		version_type=linux
16720	else
16721		version_type=irix
16722	fi ;;
16723  esac
16724  need_lib_prefix=no
16725  need_version=no
16726  soname_spec='${libname}${release}${shared_ext}$major'
16727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16728  case $host_os in
16729  irix5* | nonstopux*)
16730    libsuff= shlibsuff=
16731    ;;
16732  *)
16733    case $LD in # libtool.m4 will add one of these switches to LD
16734    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16735      libsuff= shlibsuff= libmagic=32-bit;;
16736    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16737      libsuff=32 shlibsuff=N32 libmagic=N32;;
16738    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16739      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16740    *) libsuff= shlibsuff= libmagic=never-match;;
16741    esac
16742    ;;
16743  esac
16744  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16745  shlibpath_overrides_runpath=no
16746  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16747  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16748  hardcode_into_libs=yes
16749  ;;
16750
16751# No shared lib support for Linux oldld, aout, or coff.
16752linux*oldld* | linux*aout* | linux*coff*)
16753  dynamic_linker=no
16754  ;;
16755
16756# This must be Linux ELF.
16757linux*)
16758  version_type=linux
16759  need_lib_prefix=no
16760  need_version=no
16761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762  soname_spec='${libname}${release}${shared_ext}$major'
16763  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16764  shlibpath_var=LD_LIBRARY_PATH
16765  shlibpath_overrides_runpath=no
16766  # This implies no fast_install, which is unacceptable.
16767  # Some rework will be needed to allow for fast_install
16768  # before this can be enabled.
16769  hardcode_into_libs=yes
16770
16771  # Append ld.so.conf contents to the search path
16772  if test -f /etc/ld.so.conf; then
16773    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' ' '`
16774    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16775  fi
16776
16777  # We used to test for /lib/ld.so.1 and disable shared libraries on
16778  # powerpc, because MkLinux only supported shared libraries with the
16779  # GNU dynamic linker.  Since this was broken with cross compilers,
16780  # most powerpc-linux boxes support dynamic linking these days and
16781  # people can always --disable-shared, the test was removed, and we
16782  # assume the GNU/Linux dynamic linker is in use.
16783  dynamic_linker='GNU/Linux ld.so'
16784  ;;
16785
16786knetbsd*-gnu)
16787  version_type=linux
16788  need_lib_prefix=no
16789  need_version=no
16790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791  soname_spec='${libname}${release}${shared_ext}$major'
16792  shlibpath_var=LD_LIBRARY_PATH
16793  shlibpath_overrides_runpath=no
16794  hardcode_into_libs=yes
16795  dynamic_linker='GNU ld.so'
16796  ;;
16797
16798netbsd*)
16799  version_type=sunos
16800  need_lib_prefix=no
16801  need_version=no
16802  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16804    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16805    dynamic_linker='NetBSD (a.out) ld.so'
16806  else
16807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16808    soname_spec='${libname}${release}${shared_ext}$major'
16809    dynamic_linker='NetBSD ld.elf_so'
16810  fi
16811  shlibpath_var=LD_LIBRARY_PATH
16812  shlibpath_overrides_runpath=yes
16813  hardcode_into_libs=yes
16814  ;;
16815
16816newsos6)
16817  version_type=linux
16818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819  shlibpath_var=LD_LIBRARY_PATH
16820  shlibpath_overrides_runpath=yes
16821  ;;
16822
16823nto-qnx*)
16824  version_type=linux
16825  need_lib_prefix=no
16826  need_version=no
16827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828  soname_spec='${libname}${release}${shared_ext}$major'
16829  shlibpath_var=LD_LIBRARY_PATH
16830  shlibpath_overrides_runpath=yes
16831  ;;
16832
16833openbsd*)
16834  version_type=sunos
16835  sys_lib_dlsearch_path_spec="/usr/lib"
16836  need_lib_prefix=no
16837  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16838  case $host_os in
16839    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16840    *)                         need_version=no  ;;
16841  esac
16842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16844  shlibpath_var=LD_LIBRARY_PATH
16845  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16846    case $host_os in
16847      openbsd2.[89] | openbsd2.[89].*)
16848	shlibpath_overrides_runpath=no
16849	;;
16850      *)
16851	shlibpath_overrides_runpath=yes
16852	;;
16853      esac
16854  else
16855    shlibpath_overrides_runpath=yes
16856  fi
16857  ;;
16858
16859os2*)
16860  libname_spec='$name'
16861  shrext_cmds=".dll"
16862  need_lib_prefix=no
16863  library_names_spec='$libname${shared_ext} $libname.a'
16864  dynamic_linker='OS/2 ld.exe'
16865  shlibpath_var=LIBPATH
16866  ;;
16867
16868osf3* | osf4* | osf5*)
16869  version_type=osf
16870  need_lib_prefix=no
16871  need_version=no
16872  soname_spec='${libname}${release}${shared_ext}$major'
16873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874  shlibpath_var=LD_LIBRARY_PATH
16875  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16876  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16877  ;;
16878
16879solaris*)
16880  version_type=linux
16881  need_lib_prefix=no
16882  need_version=no
16883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884  soname_spec='${libname}${release}${shared_ext}$major'
16885  shlibpath_var=LD_LIBRARY_PATH
16886  shlibpath_overrides_runpath=yes
16887  hardcode_into_libs=yes
16888  # ldd complains unless libraries are executable
16889  postinstall_cmds='chmod +x $lib'
16890  ;;
16891
16892sunos4*)
16893  version_type=sunos
16894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16895  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16896  shlibpath_var=LD_LIBRARY_PATH
16897  shlibpath_overrides_runpath=yes
16898  if test "$with_gnu_ld" = yes; then
16899    need_lib_prefix=no
16900  fi
16901  need_version=yes
16902  ;;
16903
16904sysv4 | sysv4.3*)
16905  version_type=linux
16906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907  soname_spec='${libname}${release}${shared_ext}$major'
16908  shlibpath_var=LD_LIBRARY_PATH
16909  case $host_vendor in
16910    sni)
16911      shlibpath_overrides_runpath=no
16912      need_lib_prefix=no
16913      export_dynamic_flag_spec='${wl}-Blargedynsym'
16914      runpath_var=LD_RUN_PATH
16915      ;;
16916    siemens)
16917      need_lib_prefix=no
16918      ;;
16919    motorola)
16920      need_lib_prefix=no
16921      need_version=no
16922      shlibpath_overrides_runpath=no
16923      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16924      ;;
16925  esac
16926  ;;
16927
16928sysv4*MP*)
16929  if test -d /usr/nec ;then
16930    version_type=linux
16931    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16932    soname_spec='$libname${shared_ext}.$major'
16933    shlibpath_var=LD_LIBRARY_PATH
16934  fi
16935  ;;
16936
16937sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16938  version_type=freebsd-elf
16939  need_lib_prefix=no
16940  need_version=no
16941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16942  soname_spec='${libname}${release}${shared_ext}$major'
16943  shlibpath_var=LD_LIBRARY_PATH
16944  hardcode_into_libs=yes
16945  if test "$with_gnu_ld" = yes; then
16946    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16947    shlibpath_overrides_runpath=no
16948  else
16949    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16950    shlibpath_overrides_runpath=yes
16951    case $host_os in
16952      sco3.2v5*)
16953        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16954	;;
16955    esac
16956  fi
16957  sys_lib_dlsearch_path_spec='/usr/lib'
16958  ;;
16959
16960uts4*)
16961  version_type=linux
16962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963  soname_spec='${libname}${release}${shared_ext}$major'
16964  shlibpath_var=LD_LIBRARY_PATH
16965  ;;
16966
16967*)
16968  dynamic_linker=no
16969  ;;
16970esac
16971echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16972echo "${ECHO_T}$dynamic_linker" >&6
16973test "$dynamic_linker" = no && can_build_shared=no
16974
16975variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16976if test "$GCC" = yes; then
16977  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16978fi
16979
16980echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16981echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16982hardcode_action_F77=
16983if test -n "$hardcode_libdir_flag_spec_F77" || \
16984   test -n "$runpath_var_F77" || \
16985   test "X$hardcode_automatic_F77" = "Xyes" ; then
16986
16987  # We can hardcode non-existant directories.
16988  if test "$hardcode_direct_F77" != no &&
16989     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16990     # have to relink, otherwise we might link with an installed library
16991     # when we should be linking with a yet-to-be-installed one
16992     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16993     test "$hardcode_minus_L_F77" != no; then
16994    # Linking always hardcodes the temporary library directory.
16995    hardcode_action_F77=relink
16996  else
16997    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16998    hardcode_action_F77=immediate
16999  fi
17000else
17001  # We cannot hardcode anything, or else we can only hardcode existing
17002  # directories.
17003  hardcode_action_F77=unsupported
17004fi
17005echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17006echo "${ECHO_T}$hardcode_action_F77" >&6
17007
17008if test "$hardcode_action_F77" = relink; then
17009  # Fast installation is not supported
17010  enable_fast_install=no
17011elif test "$shlibpath_overrides_runpath" = yes ||
17012     test "$enable_shared" = no; then
17013  # Fast installation is not necessary
17014  enable_fast_install=needless
17015fi
17016
17017
17018# The else clause should only fire when bootstrapping the
17019# libtool distribution, otherwise you forgot to ship ltmain.sh
17020# with your package, and you will get complaints that there are
17021# no rules to generate ltmain.sh.
17022if test -f "$ltmain"; then
17023  # See if we are running on zsh, and set the options which allow our commands through
17024  # without removal of \ escapes.
17025  if test -n "${ZSH_VERSION+set}" ; then
17026    setopt NO_GLOB_SUBST
17027  fi
17028  # Now quote all the things that may contain metacharacters while being
17029  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17030  # variables and quote the copies for generation of the libtool script.
17031  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17032    SED SHELL STRIP \
17033    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17034    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17035    deplibs_check_method reload_flag reload_cmds need_locks \
17036    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17037    lt_cv_sys_global_symbol_to_c_name_address \
17038    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17039    old_postinstall_cmds old_postuninstall_cmds \
17040    compiler_F77 \
17041    CC_F77 \
17042    LD_F77 \
17043    lt_prog_compiler_wl_F77 \
17044    lt_prog_compiler_pic_F77 \
17045    lt_prog_compiler_static_F77 \
17046    lt_prog_compiler_no_builtin_flag_F77 \
17047    export_dynamic_flag_spec_F77 \
17048    thread_safe_flag_spec_F77 \
17049    whole_archive_flag_spec_F77 \
17050    enable_shared_with_static_runtimes_F77 \
17051    old_archive_cmds_F77 \
17052    old_archive_from_new_cmds_F77 \
17053    predep_objects_F77 \
17054    postdep_objects_F77 \
17055    predeps_F77 \
17056    postdeps_F77 \
17057    compiler_lib_search_path_F77 \
17058    archive_cmds_F77 \
17059    archive_expsym_cmds_F77 \
17060    postinstall_cmds_F77 \
17061    postuninstall_cmds_F77 \
17062    old_archive_from_expsyms_cmds_F77 \
17063    allow_undefined_flag_F77 \
17064    no_undefined_flag_F77 \
17065    export_symbols_cmds_F77 \
17066    hardcode_libdir_flag_spec_F77 \
17067    hardcode_libdir_flag_spec_ld_F77 \
17068    hardcode_libdir_separator_F77 \
17069    hardcode_automatic_F77 \
17070    module_cmds_F77 \
17071    module_expsym_cmds_F77 \
17072    lt_cv_prog_compiler_c_o_F77 \
17073    exclude_expsyms_F77 \
17074    include_expsyms_F77; do
17075
17076    case $var in
17077    old_archive_cmds_F77 | \
17078    old_archive_from_new_cmds_F77 | \
17079    archive_cmds_F77 | \
17080    archive_expsym_cmds_F77 | \
17081    module_cmds_F77 | \
17082    module_expsym_cmds_F77 | \
17083    old_archive_from_expsyms_cmds_F77 | \
17084    export_symbols_cmds_F77 | \
17085    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17086    postinstall_cmds | postuninstall_cmds | \
17087    old_postinstall_cmds | old_postuninstall_cmds | \
17088    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17089      # Double-quote double-evaled strings.
17090      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17091      ;;
17092    *)
17093      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17094      ;;
17095    esac
17096  done
17097
17098  case $lt_echo in
17099  *'\$0 --fallback-echo"')
17100    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17101    ;;
17102  esac
17103
17104cfgfile="$ofile"
17105
17106  cat <<__EOF__ >> "$cfgfile"
17107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17108
17109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17110
17111# Shell to use when invoking shell scripts.
17112SHELL=$lt_SHELL
17113
17114# Whether or not to build shared libraries.
17115build_libtool_libs=$enable_shared
17116
17117# Whether or not to build static libraries.
17118build_old_libs=$enable_static
17119
17120# Whether or not to add -lc for building shared libraries.
17121build_libtool_need_lc=$archive_cmds_need_lc_F77
17122
17123# Whether or not to disallow shared libs when runtime libs are static
17124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17125
17126# Whether or not to optimize for fast installation.
17127fast_install=$enable_fast_install
17128
17129# The host system.
17130host_alias=$host_alias
17131host=$host
17132host_os=$host_os
17133
17134# The build system.
17135build_alias=$build_alias
17136build=$build
17137build_os=$build_os
17138
17139# An echo program that does not interpret backslashes.
17140echo=$lt_echo
17141
17142# The archiver.
17143AR=$lt_AR
17144AR_FLAGS=$lt_AR_FLAGS
17145
17146# A C compiler.
17147LTCC=$lt_LTCC
17148
17149# LTCC compiler flags.
17150LTCFLAGS=$lt_LTCFLAGS
17151
17152# A language-specific compiler.
17153CC=$lt_compiler_F77
17154
17155# Is the compiler the GNU C compiler?
17156with_gcc=$GCC_F77
17157
17158# An ERE matcher.
17159EGREP=$lt_EGREP
17160
17161# The linker used to build libraries.
17162LD=$lt_LD_F77
17163
17164# Whether we need hard or soft links.
17165LN_S=$lt_LN_S
17166
17167# A BSD-compatible nm program.
17168NM=$lt_NM
17169
17170# A symbol stripping program
17171STRIP=$lt_STRIP
17172
17173# Used to examine libraries when file_magic_cmd begins "file"
17174MAGIC_CMD=$MAGIC_CMD
17175
17176# Used on cygwin: DLL creation program.
17177DLLTOOL="$DLLTOOL"
17178
17179# Used on cygwin: object dumper.
17180OBJDUMP="$OBJDUMP"
17181
17182# Used on cygwin: assembler.
17183AS="$AS"
17184
17185# The name of the directory that contains temporary libtool files.
17186objdir=$objdir
17187
17188# How to create reloadable object files.
17189reload_flag=$lt_reload_flag
17190reload_cmds=$lt_reload_cmds
17191
17192# How to pass a linker flag through the compiler.
17193wl=$lt_lt_prog_compiler_wl_F77
17194
17195# Object file suffix (normally "o").
17196objext="$ac_objext"
17197
17198# Old archive suffix (normally "a").
17199libext="$libext"
17200
17201# Shared library suffix (normally ".so").
17202shrext_cmds='$shrext_cmds'
17203
17204# Executable file suffix (normally "").
17205exeext="$exeext"
17206
17207# Additional compiler flags for building library objects.
17208pic_flag=$lt_lt_prog_compiler_pic_F77
17209pic_mode=$pic_mode
17210
17211# What is the maximum length of a command?
17212max_cmd_len=$lt_cv_sys_max_cmd_len
17213
17214# Does compiler simultaneously support -c and -o options?
17215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17216
17217# Must we lock files when doing compilation?
17218need_locks=$lt_need_locks
17219
17220# Do we need the lib prefix for modules?
17221need_lib_prefix=$need_lib_prefix
17222
17223# Do we need a version for libraries?
17224need_version=$need_version
17225
17226# Whether dlopen is supported.
17227dlopen_support=$enable_dlopen
17228
17229# Whether dlopen of programs is supported.
17230dlopen_self=$enable_dlopen_self
17231
17232# Whether dlopen of statically linked programs is supported.
17233dlopen_self_static=$enable_dlopen_self_static
17234
17235# Compiler flag to prevent dynamic linking.
17236link_static_flag=$lt_lt_prog_compiler_static_F77
17237
17238# Compiler flag to turn off builtin functions.
17239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17240
17241# Compiler flag to allow reflexive dlopens.
17242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17243
17244# Compiler flag to generate shared objects directly from archives.
17245whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17246
17247# Compiler flag to generate thread-safe objects.
17248thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17249
17250# Library versioning type.
17251version_type=$version_type
17252
17253# Format of library name prefix.
17254libname_spec=$lt_libname_spec
17255
17256# List of archive names.  First name is the real one, the rest are links.
17257# The last name is the one that the linker finds with -lNAME.
17258library_names_spec=$lt_library_names_spec
17259
17260# The coded name of the library, if different from the real name.
17261soname_spec=$lt_soname_spec
17262
17263# Commands used to build and install an old-style archive.
17264RANLIB=$lt_RANLIB
17265old_archive_cmds=$lt_old_archive_cmds_F77
17266old_postinstall_cmds=$lt_old_postinstall_cmds
17267old_postuninstall_cmds=$lt_old_postuninstall_cmds
17268
17269# Create an old-style archive from a shared archive.
17270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17271
17272# Create a temporary old-style archive to link instead of a shared archive.
17273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17274
17275# Commands used to build and install a shared archive.
17276archive_cmds=$lt_archive_cmds_F77
17277archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17278postinstall_cmds=$lt_postinstall_cmds
17279postuninstall_cmds=$lt_postuninstall_cmds
17280
17281# Commands used to build a loadable module (assumed same as above if empty)
17282module_cmds=$lt_module_cmds_F77
17283module_expsym_cmds=$lt_module_expsym_cmds_F77
17284
17285# Commands to strip libraries.
17286old_striplib=$lt_old_striplib
17287striplib=$lt_striplib
17288
17289# Dependencies to place before the objects being linked to create a
17290# shared library.
17291predep_objects=$lt_predep_objects_F77
17292
17293# Dependencies to place after the objects being linked to create a
17294# shared library.
17295postdep_objects=$lt_postdep_objects_F77
17296
17297# Dependencies to place before the objects being linked to create a
17298# shared library.
17299predeps=$lt_predeps_F77
17300
17301# Dependencies to place after the objects being linked to create a
17302# shared library.
17303postdeps=$lt_postdeps_F77
17304
17305# The library search path used internally by the compiler when linking
17306# a shared library.
17307compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17308
17309# Method to check whether dependent libraries are shared objects.
17310deplibs_check_method=$lt_deplibs_check_method
17311
17312# Command to use when deplibs_check_method == file_magic.
17313file_magic_cmd=$lt_file_magic_cmd
17314
17315# Flag that allows shared libraries with undefined symbols to be built.
17316allow_undefined_flag=$lt_allow_undefined_flag_F77
17317
17318# Flag that forces no undefined symbols.
17319no_undefined_flag=$lt_no_undefined_flag_F77
17320
17321# Commands used to finish a libtool library installation in a directory.
17322finish_cmds=$lt_finish_cmds
17323
17324# Same as above, but a single script fragment to be evaled but not shown.
17325finish_eval=$lt_finish_eval
17326
17327# Take the output of nm and produce a listing of raw symbols and C names.
17328global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17329
17330# Transform the output of nm in a proper C declaration
17331global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17332
17333# Transform the output of nm in a C name address pair
17334global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17335
17336# This is the shared library runtime path variable.
17337runpath_var=$runpath_var
17338
17339# This is the shared library path variable.
17340shlibpath_var=$shlibpath_var
17341
17342# Is shlibpath searched before the hard-coded library search path?
17343shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17344
17345# How to hardcode a shared library path into an executable.
17346hardcode_action=$hardcode_action_F77
17347
17348# Whether we should hardcode library paths into libraries.
17349hardcode_into_libs=$hardcode_into_libs
17350
17351# Flag to hardcode \$libdir into a binary during linking.
17352# This must work even if \$libdir does not exist.
17353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17354
17355# If ld is used when linking, flag to hardcode \$libdir into
17356# a binary during linking. This must work even if \$libdir does
17357# not exist.
17358hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17359
17360# Whether we need a single -rpath flag with a separated argument.
17361hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17362
17363# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17364# resulting binary.
17365hardcode_direct=$hardcode_direct_F77
17366
17367# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17368# resulting binary.
17369hardcode_minus_L=$hardcode_minus_L_F77
17370
17371# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17372# the resulting binary.
17373hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17374
17375# Set to yes if building a shared library automatically hardcodes DIR into the library
17376# and all subsequent libraries and executables linked against it.
17377hardcode_automatic=$hardcode_automatic_F77
17378
17379# Variables whose values should be saved in libtool wrapper scripts and
17380# restored at relink time.
17381variables_saved_for_relink="$variables_saved_for_relink"
17382
17383# Whether libtool must link a program against all its dependency libraries.
17384link_all_deplibs=$link_all_deplibs_F77
17385
17386# Compile-time system search path for libraries
17387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17388
17389# Run-time system search path for libraries
17390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17391
17392# Fix the shell variable \$srcfile for the compiler.
17393fix_srcfile_path="$fix_srcfile_path_F77"
17394
17395# Set to yes if exported symbols are required.
17396always_export_symbols=$always_export_symbols_F77
17397
17398# The commands to list exported symbols.
17399export_symbols_cmds=$lt_export_symbols_cmds_F77
17400
17401# The commands to extract the exported symbol list from a shared archive.
17402extract_expsyms_cmds=$lt_extract_expsyms_cmds
17403
17404# Symbols that should not be listed in the preloaded symbols.
17405exclude_expsyms=$lt_exclude_expsyms_F77
17406
17407# Symbols that must always be exported.
17408include_expsyms=$lt_include_expsyms_F77
17409
17410# ### END LIBTOOL TAG CONFIG: $tagname
17411
17412__EOF__
17413
17414
17415else
17416  # If there is no Makefile yet, we rely on a make rule to execute
17417  # `config.status --recheck' to rerun these tests and create the
17418  # libtool script then.
17419  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17420  if test -f "$ltmain_in"; then
17421    test -f Makefile && make "$ltmain"
17422  fi
17423fi
17424
17425
17426ac_ext=c
17427ac_cpp='$CPP $CPPFLAGS'
17428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431
17432CC="$lt_save_CC"
17433
17434	else
17435	  tagname=""
17436	fi
17437	;;
17438
17439      GCJ)
17440	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17441
17442
17443
17444# Source file extension for Java test sources.
17445ac_ext=java
17446
17447# Object file extension for compiled Java test sources.
17448objext=o
17449objext_GCJ=$objext
17450
17451# Code to be used in simple compile tests
17452lt_simple_compile_test_code="class foo {}\n"
17453
17454# Code to be used in simple link tests
17455lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17456
17457# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17458
17459# If no C compiler was specified, use CC.
17460LTCC=${LTCC-"$CC"}
17461
17462# If no C compiler flags were specified, use CFLAGS.
17463LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17464
17465# Allow CC to be a program name with arguments.
17466compiler=$CC
17467
17468
17469# save warnings/boilerplate of simple test code
17470ac_outfile=conftest.$ac_objext
17471printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17472eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17473_lt_compiler_boilerplate=`cat conftest.err`
17474$rm conftest*
17475
17476ac_outfile=conftest.$ac_objext
17477printf "$lt_simple_link_test_code" >conftest.$ac_ext
17478eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17479_lt_linker_boilerplate=`cat conftest.err`
17480$rm conftest*
17481
17482
17483# Allow CC to be a program name with arguments.
17484lt_save_CC="$CC"
17485CC=${GCJ-"gcj"}
17486compiler=$CC
17487compiler_GCJ=$CC
17488for cc_temp in $compiler""; do
17489  case $cc_temp in
17490    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17491    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17492    \-*) ;;
17493    *) break;;
17494  esac
17495done
17496cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17497
17498
17499# GCJ did not exist at the time GCC didn't implicitly link libc in.
17500archive_cmds_need_lc_GCJ=no
17501
17502old_archive_cmds_GCJ=$old_archive_cmds
17503
17504## CAVEAT EMPTOR:
17505## There is no encapsulation within the following macros, do not change
17506## the running order or otherwise move them around unless you know exactly
17507## what you are doing...
17508
17509lt_prog_compiler_no_builtin_flag_GCJ=
17510
17511if test "$GCC" = yes; then
17512  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17513
17514
17515echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17516echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17517if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17518  echo $ECHO_N "(cached) $ECHO_C" >&6
17519else
17520  lt_cv_prog_compiler_rtti_exceptions=no
17521  ac_outfile=conftest.$ac_objext
17522   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17523   lt_compiler_flag="-fno-rtti -fno-exceptions"
17524   # Insert the option either (1) after the last *FLAGS variable, or
17525   # (2) before a word containing "conftest.", or (3) at the end.
17526   # Note that $ac_compile itself does not contain backslashes and begins
17527   # with a dollar sign (not a hyphen), so the echo should work correctly.
17528   # The option is referenced via a variable to avoid confusing sed.
17529   lt_compile=`echo "$ac_compile" | $SED \
17530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17532   -e 's:$: $lt_compiler_flag:'`
17533   (eval echo "\"\$as_me:17533: $lt_compile\"" >&5)
17534   (eval "$lt_compile" 2>conftest.err)
17535   ac_status=$?
17536   cat conftest.err >&5
17537   echo "$as_me:17537: \$? = $ac_status" >&5
17538   if (exit $ac_status) && test -s "$ac_outfile"; then
17539     # The compiler can only warn and ignore the option if not recognized
17540     # So say no if there are warnings other than the usual output.
17541     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17542     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17543     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17544       lt_cv_prog_compiler_rtti_exceptions=yes
17545     fi
17546   fi
17547   $rm conftest*
17548
17549fi
17550echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17551echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17552
17553if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17554    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17555else
17556    :
17557fi
17558
17559fi
17560
17561lt_prog_compiler_wl_GCJ=
17562lt_prog_compiler_pic_GCJ=
17563lt_prog_compiler_static_GCJ=
17564
17565echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17566echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17567
17568  if test "$GCC" = yes; then
17569    lt_prog_compiler_wl_GCJ='-Wl,'
17570    lt_prog_compiler_static_GCJ='-static'
17571
17572    case $host_os in
17573      aix*)
17574      # All AIX code is PIC.
17575      if test "$host_cpu" = ia64; then
17576	# AIX 5 now supports IA64 processor
17577	lt_prog_compiler_static_GCJ='-Bstatic'
17578      fi
17579      ;;
17580
17581    amigaos*)
17582      # FIXME: we need at least 68020 code to build shared libraries, but
17583      # adding the `-m68020' flag to GCC prevents building anything better,
17584      # like `-m68040'.
17585      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17586      ;;
17587
17588    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17589      # PIC is the default for these OSes.
17590      ;;
17591
17592    mingw* | pw32* | os2*)
17593      # This hack is so that the source file can tell whether it is being
17594      # built for inclusion in a dll (and should export symbols for example).
17595      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17596      ;;
17597
17598    darwin* | rhapsody*)
17599      # PIC is the default on this platform
17600      # Common symbols not allowed in MH_DYLIB files
17601      lt_prog_compiler_pic_GCJ='-fno-common'
17602      ;;
17603
17604    interix3*)
17605      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17606      # Instead, we relocate shared libraries at runtime.
17607      ;;
17608
17609    msdosdjgpp*)
17610      # Just because we use GCC doesn't mean we suddenly get shared libraries
17611      # on systems that don't support them.
17612      lt_prog_compiler_can_build_shared_GCJ=no
17613      enable_shared=no
17614      ;;
17615
17616    sysv4*MP*)
17617      if test -d /usr/nec; then
17618	lt_prog_compiler_pic_GCJ=-Kconform_pic
17619      fi
17620      ;;
17621
17622    hpux*)
17623      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17624      # not for PA HP-UX.
17625      case $host_cpu in
17626      hppa*64*|ia64*)
17627	# +Z the default
17628	;;
17629      *)
17630	lt_prog_compiler_pic_GCJ='-fPIC'
17631	;;
17632      esac
17633      ;;
17634
17635    *)
17636      lt_prog_compiler_pic_GCJ='-fPIC'
17637      ;;
17638    esac
17639  else
17640    # PORTME Check for flag to pass linker flags through the system compiler.
17641    case $host_os in
17642    aix*)
17643      lt_prog_compiler_wl_GCJ='-Wl,'
17644      if test "$host_cpu" = ia64; then
17645	# AIX 5 now supports IA64 processor
17646	lt_prog_compiler_static_GCJ='-Bstatic'
17647      else
17648	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17649      fi
17650      ;;
17651      darwin*)
17652        # PIC is the default on this platform
17653        # Common symbols not allowed in MH_DYLIB files
17654       case $cc_basename in
17655         xlc*)
17656         lt_prog_compiler_pic_GCJ='-qnocommon'
17657         lt_prog_compiler_wl_GCJ='-Wl,'
17658         ;;
17659       esac
17660       ;;
17661
17662    mingw* | pw32* | os2*)
17663      # This hack is so that the source file can tell whether it is being
17664      # built for inclusion in a dll (and should export symbols for example).
17665      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17666      ;;
17667
17668    hpux9* | hpux10* | hpux11*)
17669      lt_prog_compiler_wl_GCJ='-Wl,'
17670      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17671      # not for PA HP-UX.
17672      case $host_cpu in
17673      hppa*64*|ia64*)
17674	# +Z the default
17675	;;
17676      *)
17677	lt_prog_compiler_pic_GCJ='+Z'
17678	;;
17679      esac
17680      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17681      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17682      ;;
17683
17684    irix5* | irix6* | nonstopux*)
17685      lt_prog_compiler_wl_GCJ='-Wl,'
17686      # PIC (with -KPIC) is the default.
17687      lt_prog_compiler_static_GCJ='-non_shared'
17688      ;;
17689
17690    newsos6)
17691      lt_prog_compiler_pic_GCJ='-KPIC'
17692      lt_prog_compiler_static_GCJ='-Bstatic'
17693      ;;
17694
17695    linux*)
17696      case $cc_basename in
17697      icc* | ecc*)
17698	lt_prog_compiler_wl_GCJ='-Wl,'
17699	lt_prog_compiler_pic_GCJ='-KPIC'
17700	lt_prog_compiler_static_GCJ='-static'
17701        ;;
17702      pgcc* | pgf77* | pgf90* | pgf95*)
17703        # Portland Group compilers (*not* the Pentium gcc compiler,
17704	# which looks to be a dead project)
17705	lt_prog_compiler_wl_GCJ='-Wl,'
17706	lt_prog_compiler_pic_GCJ='-fpic'
17707	lt_prog_compiler_static_GCJ='-Bstatic'
17708        ;;
17709      ccc*)
17710        lt_prog_compiler_wl_GCJ='-Wl,'
17711        # All Alpha code is PIC.
17712        lt_prog_compiler_static_GCJ='-non_shared'
17713        ;;
17714      esac
17715      ;;
17716
17717    osf3* | osf4* | osf5*)
17718      lt_prog_compiler_wl_GCJ='-Wl,'
17719      # All OSF/1 code is PIC.
17720      lt_prog_compiler_static_GCJ='-non_shared'
17721      ;;
17722
17723    solaris*)
17724      lt_prog_compiler_pic_GCJ='-KPIC'
17725      lt_prog_compiler_static_GCJ='-Bstatic'
17726      case $cc_basename in
17727      f77* | f90* | f95*)
17728	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17729      *)
17730	lt_prog_compiler_wl_GCJ='-Wl,';;
17731      esac
17732      ;;
17733
17734    sunos4*)
17735      lt_prog_compiler_wl_GCJ='-Qoption ld '
17736      lt_prog_compiler_pic_GCJ='-PIC'
17737      lt_prog_compiler_static_GCJ='-Bstatic'
17738      ;;
17739
17740    sysv4 | sysv4.2uw2* | sysv4.3*)
17741      lt_prog_compiler_wl_GCJ='-Wl,'
17742      lt_prog_compiler_pic_GCJ='-KPIC'
17743      lt_prog_compiler_static_GCJ='-Bstatic'
17744      ;;
17745
17746    sysv4*MP*)
17747      if test -d /usr/nec ;then
17748	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17749	lt_prog_compiler_static_GCJ='-Bstatic'
17750      fi
17751      ;;
17752
17753    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17754      lt_prog_compiler_wl_GCJ='-Wl,'
17755      lt_prog_compiler_pic_GCJ='-KPIC'
17756      lt_prog_compiler_static_GCJ='-Bstatic'
17757      ;;
17758
17759    unicos*)
17760      lt_prog_compiler_wl_GCJ='-Wl,'
17761      lt_prog_compiler_can_build_shared_GCJ=no
17762      ;;
17763
17764    uts4*)
17765      lt_prog_compiler_pic_GCJ='-pic'
17766      lt_prog_compiler_static_GCJ='-Bstatic'
17767      ;;
17768
17769    *)
17770      lt_prog_compiler_can_build_shared_GCJ=no
17771      ;;
17772    esac
17773  fi
17774
17775echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17776echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17777
17778#
17779# Check to make sure the PIC flag actually works.
17780#
17781if test -n "$lt_prog_compiler_pic_GCJ"; then
17782
17783echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17784echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17785if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17786  echo $ECHO_N "(cached) $ECHO_C" >&6
17787else
17788  lt_prog_compiler_pic_works_GCJ=no
17789  ac_outfile=conftest.$ac_objext
17790   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17791   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17792   # Insert the option either (1) after the last *FLAGS variable, or
17793   # (2) before a word containing "conftest.", or (3) at the end.
17794   # Note that $ac_compile itself does not contain backslashes and begins
17795   # with a dollar sign (not a hyphen), so the echo should work correctly.
17796   # The option is referenced via a variable to avoid confusing sed.
17797   lt_compile=`echo "$ac_compile" | $SED \
17798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17800   -e 's:$: $lt_compiler_flag:'`
17801   (eval echo "\"\$as_me:17801: $lt_compile\"" >&5)
17802   (eval "$lt_compile" 2>conftest.err)
17803   ac_status=$?
17804   cat conftest.err >&5
17805   echo "$as_me:17805: \$? = $ac_status" >&5
17806   if (exit $ac_status) && test -s "$ac_outfile"; then
17807     # The compiler can only warn and ignore the option if not recognized
17808     # So say no if there are warnings other than the usual output.
17809     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17810     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17811     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17812       lt_prog_compiler_pic_works_GCJ=yes
17813     fi
17814   fi
17815   $rm conftest*
17816
17817fi
17818echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17819echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17820
17821if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17822    case $lt_prog_compiler_pic_GCJ in
17823     "" | " "*) ;;
17824     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17825     esac
17826else
17827    lt_prog_compiler_pic_GCJ=
17828     lt_prog_compiler_can_build_shared_GCJ=no
17829fi
17830
17831fi
17832case $host_os in
17833  # For platforms which do not support PIC, -DPIC is meaningless:
17834  *djgpp*)
17835    lt_prog_compiler_pic_GCJ=
17836    ;;
17837  *)
17838    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17839    ;;
17840esac
17841
17842#
17843# Check to make sure the static flag actually works.
17844#
17845wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17846echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17847echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17848if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17849  echo $ECHO_N "(cached) $ECHO_C" >&6
17850else
17851  lt_prog_compiler_static_works_GCJ=no
17852   save_LDFLAGS="$LDFLAGS"
17853   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17854   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17855   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17856     # The linker can only warn and ignore the option if not recognized
17857     # So say no if there are warnings
17858     if test -s conftest.err; then
17859       # Append any errors to the config.log.
17860       cat conftest.err 1>&5
17861       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17862       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17863       if diff conftest.exp conftest.er2 >/dev/null; then
17864         lt_prog_compiler_static_works_GCJ=yes
17865       fi
17866     else
17867       lt_prog_compiler_static_works_GCJ=yes
17868     fi
17869   fi
17870   $rm conftest*
17871   LDFLAGS="$save_LDFLAGS"
17872
17873fi
17874echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17875echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17876
17877if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17878    :
17879else
17880    lt_prog_compiler_static_GCJ=
17881fi
17882
17883
17884echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17885echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17886if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17887  echo $ECHO_N "(cached) $ECHO_C" >&6
17888else
17889  lt_cv_prog_compiler_c_o_GCJ=no
17890   $rm -r conftest 2>/dev/null
17891   mkdir conftest
17892   cd conftest
17893   mkdir out
17894   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17895
17896   lt_compiler_flag="-o out/conftest2.$ac_objext"
17897   # Insert the option either (1) after the last *FLAGS variable, or
17898   # (2) before a word containing "conftest.", or (3) at the end.
17899   # Note that $ac_compile itself does not contain backslashes and begins
17900   # with a dollar sign (not a hyphen), so the echo should work correctly.
17901   lt_compile=`echo "$ac_compile" | $SED \
17902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17904   -e 's:$: $lt_compiler_flag:'`
17905   (eval echo "\"\$as_me:17905: $lt_compile\"" >&5)
17906   (eval "$lt_compile" 2>out/conftest.err)
17907   ac_status=$?
17908   cat out/conftest.err >&5
17909   echo "$as_me:17909: \$? = $ac_status" >&5
17910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17911   then
17912     # The compiler can only warn and ignore the option if not recognized
17913     # So say no if there are warnings
17914     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17917       lt_cv_prog_compiler_c_o_GCJ=yes
17918     fi
17919   fi
17920   chmod u+w . 2>&5
17921   $rm conftest*
17922   # SGI C++ compiler will create directory out/ii_files/ for
17923   # template instantiation
17924   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17925   $rm out/* && rmdir out
17926   cd ..
17927   rmdir conftest
17928   $rm conftest*
17929
17930fi
17931echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17932echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17933
17934
17935hard_links="nottested"
17936if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17937  # do not overwrite the value of need_locks provided by the user
17938  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17939echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17940  hard_links=yes
17941  $rm conftest*
17942  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17943  touch conftest.a
17944  ln conftest.a conftest.b 2>&5 || hard_links=no
17945  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17946  echo "$as_me:$LINENO: result: $hard_links" >&5
17947echo "${ECHO_T}$hard_links" >&6
17948  if test "$hard_links" = no; then
17949    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17950echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17951    need_locks=warn
17952  fi
17953else
17954  need_locks=no
17955fi
17956
17957echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17958echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17959
17960  runpath_var=
17961  allow_undefined_flag_GCJ=
17962  enable_shared_with_static_runtimes_GCJ=no
17963  archive_cmds_GCJ=
17964  archive_expsym_cmds_GCJ=
17965  old_archive_From_new_cmds_GCJ=
17966  old_archive_from_expsyms_cmds_GCJ=
17967  export_dynamic_flag_spec_GCJ=
17968  whole_archive_flag_spec_GCJ=
17969  thread_safe_flag_spec_GCJ=
17970  hardcode_libdir_flag_spec_GCJ=
17971  hardcode_libdir_flag_spec_ld_GCJ=
17972  hardcode_libdir_separator_GCJ=
17973  hardcode_direct_GCJ=no
17974  hardcode_minus_L_GCJ=no
17975  hardcode_shlibpath_var_GCJ=unsupported
17976  link_all_deplibs_GCJ=unknown
17977  hardcode_automatic_GCJ=no
17978  module_cmds_GCJ=
17979  module_expsym_cmds_GCJ=
17980  always_export_symbols_GCJ=no
17981  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17982  # include_expsyms should be a list of space-separated symbols to be *always*
17983  # included in the symbol list
17984  include_expsyms_GCJ=
17985  # exclude_expsyms can be an extended regexp of symbols to exclude
17986  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17987  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17988  # as well as any symbol that contains `d'.
17989  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17990  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17991  # platforms (ab)use it in PIC code, but their linkers get confused if
17992  # the symbol is explicitly referenced.  Since portable code cannot
17993  # rely on this symbol name, it's probably fine to never include it in
17994  # preloaded symbol tables.
17995  extract_expsyms_cmds=
17996  # Just being paranoid about ensuring that cc_basename is set.
17997  for cc_temp in $compiler""; do
17998  case $cc_temp in
17999    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18000    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18001    \-*) ;;
18002    *) break;;
18003  esac
18004done
18005cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18006
18007  case $host_os in
18008  cygwin* | mingw* | pw32*)
18009    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18010    # When not using gcc, we currently assume that we are using
18011    # Microsoft Visual C++.
18012    if test "$GCC" != yes; then
18013      with_gnu_ld=no
18014    fi
18015    ;;
18016  interix*)
18017    # we just hope/assume this is gcc and not c89 (= MSVC++)
18018    with_gnu_ld=yes
18019    ;;
18020  openbsd*)
18021    with_gnu_ld=no
18022    ;;
18023  esac
18024
18025  ld_shlibs_GCJ=yes
18026  if test "$with_gnu_ld" = yes; then
18027    # If archive_cmds runs LD, not CC, wlarc should be empty
18028    wlarc='${wl}'
18029
18030    # Set some defaults for GNU ld with shared library support. These
18031    # are reset later if shared libraries are not supported. Putting them
18032    # here allows them to be overridden if necessary.
18033    runpath_var=LD_RUN_PATH
18034    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18035    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18036    # ancient GNU ld didn't support --whole-archive et. al.
18037    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18038	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18039      else
18040  	whole_archive_flag_spec_GCJ=
18041    fi
18042    supports_anon_versioning=no
18043    case `$LD -v 2>/dev/null` in
18044      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18045      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18046      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18047      *\ 2.11.*) ;; # other 2.11 versions
18048      *) supports_anon_versioning=yes ;;
18049    esac
18050
18051    # See if GNU ld supports shared libraries.
18052    case $host_os in
18053    aix3* | aix4* | aix5*)
18054      # On AIX/PPC, the GNU linker is very broken
18055      if test "$host_cpu" != ia64; then
18056	ld_shlibs_GCJ=no
18057	cat <<EOF 1>&2
18058
18059*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18060*** to be unable to reliably create shared libraries on AIX.
18061*** Therefore, libtool is disabling shared libraries support.  If you
18062*** really care for shared libraries, you may want to modify your PATH
18063*** so that a non-GNU linker is found, and then restart.
18064
18065EOF
18066      fi
18067      ;;
18068
18069    amigaos*)
18070      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)'
18071      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18072      hardcode_minus_L_GCJ=yes
18073
18074      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18075      # that the semantics of dynamic libraries on AmigaOS, at least up
18076      # to version 4, is to share data among multiple programs linked
18077      # with the same dynamic library.  Since this doesn't match the
18078      # behavior of shared libraries on other platforms, we can't use
18079      # them.
18080      ld_shlibs_GCJ=no
18081      ;;
18082
18083    beos*)
18084      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18085	allow_undefined_flag_GCJ=unsupported
18086	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18087	# support --undefined.  This deserves some investigation.  FIXME
18088	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18089      else
18090	ld_shlibs_GCJ=no
18091      fi
18092      ;;
18093
18094    cygwin* | mingw* | pw32*)
18095      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18096      # as there is no search path for DLLs.
18097      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18098      allow_undefined_flag_GCJ=unsupported
18099      always_export_symbols_GCJ=no
18100      enable_shared_with_static_runtimes_GCJ=yes
18101      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18102
18103      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18104        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18105	# If the export-symbols file already is a .def file (1st line
18106	# is EXPORTS), use it as is; otherwise, prepend...
18107	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18108	  cp $export_symbols $output_objdir/$soname.def;
18109	else
18110	  echo EXPORTS > $output_objdir/$soname.def;
18111	  cat $export_symbols >> $output_objdir/$soname.def;
18112	fi~
18113	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18114      else
18115	ld_shlibs_GCJ=no
18116      fi
18117      ;;
18118
18119    interix3*)
18120      hardcode_direct_GCJ=no
18121      hardcode_shlibpath_var_GCJ=no
18122      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18123      export_dynamic_flag_spec_GCJ='${wl}-E'
18124      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18125      # Instead, shared libraries are loaded at an image base (0x10000000 by
18126      # default) and relocated if they conflict, which is a slow very memory
18127      # consuming and fragmenting process.  To avoid this, we pick a random,
18128      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18129      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18130      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'
18131      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'
18132      ;;
18133
18134    linux*)
18135      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18136	tmp_addflag=
18137	case $cc_basename,$host_cpu in
18138	pgcc*)				# Portland Group C compiler
18139	  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'
18140	  tmp_addflag=' $pic_flag'
18141	  ;;
18142	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18143	  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'
18144	  tmp_addflag=' $pic_flag -Mnomain' ;;
18145	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18146	  tmp_addflag=' -i_dynamic' ;;
18147	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18148	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18149	ifc* | ifort*)			# Intel Fortran compiler
18150	  tmp_addflag=' -nofor_main' ;;
18151	esac
18152	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18153
18154	if test $supports_anon_versioning = yes; then
18155	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18156  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18157  $echo "local: *; };" >> $output_objdir/$libname.ver~
18158	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18159	fi
18160      else
18161	ld_shlibs_GCJ=no
18162      fi
18163      ;;
18164
18165    netbsd*)
18166      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18167	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18168	wlarc=
18169      else
18170	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18171	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18172      fi
18173      ;;
18174
18175    solaris*)
18176      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18177	ld_shlibs_GCJ=no
18178	cat <<EOF 1>&2
18179
18180*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18181*** create shared libraries on Solaris systems.  Therefore, libtool
18182*** is disabling shared libraries support.  We urge you to upgrade GNU
18183*** binutils to release 2.9.1 or newer.  Another option is to modify
18184*** your PATH or compiler configuration so that the native linker is
18185*** used, and then restart.
18186
18187EOF
18188      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18189	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18191      else
18192	ld_shlibs_GCJ=no
18193      fi
18194      ;;
18195
18196    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18197      case `$LD -v 2>&1` in
18198        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18199	ld_shlibs_GCJ=no
18200	cat <<_LT_EOF 1>&2
18201
18202*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18203*** reliably create shared libraries on SCO systems.  Therefore, libtool
18204*** is disabling shared libraries support.  We urge you to upgrade GNU
18205*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18206*** your PATH or compiler configuration so that the native linker is
18207*** used, and then restart.
18208
18209_LT_EOF
18210	;;
18211	*)
18212	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18213	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18214	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18215	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18216	  else
18217	    ld_shlibs_GCJ=no
18218	  fi
18219	;;
18220      esac
18221      ;;
18222
18223    sunos4*)
18224      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18225      wlarc=
18226      hardcode_direct_GCJ=yes
18227      hardcode_shlibpath_var_GCJ=no
18228      ;;
18229
18230    *)
18231      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18232	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18233	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18234      else
18235	ld_shlibs_GCJ=no
18236      fi
18237      ;;
18238    esac
18239
18240    if test "$ld_shlibs_GCJ" = no; then
18241      runpath_var=
18242      hardcode_libdir_flag_spec_GCJ=
18243      export_dynamic_flag_spec_GCJ=
18244      whole_archive_flag_spec_GCJ=
18245    fi
18246  else
18247    # PORTME fill in a description of your system's linker (not GNU ld)
18248    case $host_os in
18249    aix3*)
18250      allow_undefined_flag_GCJ=unsupported
18251      always_export_symbols_GCJ=yes
18252      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'
18253      # Note: this linker hardcodes the directories in LIBPATH if there
18254      # are no directories specified by -L.
18255      hardcode_minus_L_GCJ=yes
18256      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18257	# Neither direct hardcoding nor static linking is supported with a
18258	# broken collect2.
18259	hardcode_direct_GCJ=unsupported
18260      fi
18261      ;;
18262
18263    aix4* | aix5*)
18264      if test "$host_cpu" = ia64; then
18265	# On IA64, the linker does run time linking by default, so we don't
18266	# have to do anything special.
18267	aix_use_runtimelinking=no
18268	exp_sym_flag='-Bexport'
18269	no_entry_flag=""
18270      else
18271	# If we're using GNU nm, then we don't want the "-C" option.
18272	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18273	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18274	  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'
18275	else
18276	  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'
18277	fi
18278	aix_use_runtimelinking=no
18279
18280	# Test if we are trying to use run time linking or normal
18281	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18282	# need to do runtime linking.
18283	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18284	  for ld_flag in $LDFLAGS; do
18285  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18286  	    aix_use_runtimelinking=yes
18287  	    break
18288  	  fi
18289	  done
18290	  ;;
18291	esac
18292
18293	exp_sym_flag='-bexport'
18294	no_entry_flag='-bnoentry'
18295      fi
18296
18297      # When large executables or shared objects are built, AIX ld can
18298      # have problems creating the table of contents.  If linking a library
18299      # or program results in "error TOC overflow" add -mminimal-toc to
18300      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18301      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18302
18303      archive_cmds_GCJ=''
18304      hardcode_direct_GCJ=yes
18305      hardcode_libdir_separator_GCJ=':'
18306      link_all_deplibs_GCJ=yes
18307
18308      if test "$GCC" = yes; then
18309	case $host_os in aix4.[012]|aix4.[012].*)
18310	# We only want to do this on AIX 4.2 and lower, the check
18311	# below for broken collect2 doesn't work under 4.3+
18312	  collect2name=`${CC} -print-prog-name=collect2`
18313	  if test -f "$collect2name" && \
18314  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18315	  then
18316  	  # We have reworked collect2
18317  	  hardcode_direct_GCJ=yes
18318	  else
18319  	  # We have old collect2
18320  	  hardcode_direct_GCJ=unsupported
18321  	  # It fails to find uninstalled libraries when the uninstalled
18322  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18323  	  # to unsupported forces relinking
18324  	  hardcode_minus_L_GCJ=yes
18325  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18326  	  hardcode_libdir_separator_GCJ=
18327	  fi
18328	  ;;
18329	esac
18330	shared_flag='-shared'
18331	if test "$aix_use_runtimelinking" = yes; then
18332	  shared_flag="$shared_flag "'${wl}-G'
18333	fi
18334      else
18335	# not using gcc
18336	if test "$host_cpu" = ia64; then
18337  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18338  	# chokes on -Wl,-G. The following line is correct:
18339	  shared_flag='-G'
18340	else
18341	  if test "$aix_use_runtimelinking" = yes; then
18342	    shared_flag='${wl}-G'
18343	  else
18344	    shared_flag='${wl}-bM:SRE'
18345	  fi
18346	fi
18347      fi
18348
18349      # It seems that -bexpall does not export symbols beginning with
18350      # underscore (_), so it is better to generate a list of symbols to export.
18351      always_export_symbols_GCJ=yes
18352      if test "$aix_use_runtimelinking" = yes; then
18353	# Warning - without using the other runtime loading flags (-brtl),
18354	# -berok will link without error, but may produce a broken library.
18355	allow_undefined_flag_GCJ='-berok'
18356       # Determine the default libpath from the value encoded in an empty executable.
18357       cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h.  */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h.  */
18363
18364int
18365main ()
18366{
18367
18368  ;
18369  return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext conftest$ac_exeext
18373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18374  (eval $ac_link) 2>conftest.er1
18375  ac_status=$?
18376  grep -v '^ *+' conftest.er1 >conftest.err
18377  rm -f conftest.er1
18378  cat conftest.err >&5
18379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380  (exit $ac_status); } &&
18381	 { ac_try='test -z "$ac_c_werror_flag"
18382			 || test ! -s conftest.err'
18383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384  (eval $ac_try) 2>&5
18385  ac_status=$?
18386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387  (exit $ac_status); }; } &&
18388	 { ac_try='test -s conftest$ac_exeext'
18389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390  (eval $ac_try) 2>&5
18391  ac_status=$?
18392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393  (exit $ac_status); }; }; then
18394
18395aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18396}'`
18397# Check for a 64-bit object if we didn't find anything.
18398if 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; }
18399}'`; fi
18400else
18401  echo "$as_me: failed program was:" >&5
18402sed 's/^/| /' conftest.$ac_ext >&5
18403
18404fi
18405rm -f conftest.err conftest.$ac_objext \
18406      conftest$ac_exeext conftest.$ac_ext
18407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18408
18409       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18410	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"
18411       else
18412	if test "$host_cpu" = ia64; then
18413	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18414	  allow_undefined_flag_GCJ="-z nodefs"
18415	  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"
18416	else
18417	 # Determine the default libpath from the value encoded in an empty executable.
18418	 cat >conftest.$ac_ext <<_ACEOF
18419/* confdefs.h.  */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h.  */
18424
18425int
18426main ()
18427{
18428
18429  ;
18430  return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext conftest$ac_exeext
18434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435  (eval $ac_link) 2>conftest.er1
18436  ac_status=$?
18437  grep -v '^ *+' conftest.er1 >conftest.err
18438  rm -f conftest.er1
18439  cat conftest.err >&5
18440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441  (exit $ac_status); } &&
18442	 { ac_try='test -z "$ac_c_werror_flag"
18443			 || test ! -s conftest.err'
18444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445  (eval $ac_try) 2>&5
18446  ac_status=$?
18447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448  (exit $ac_status); }; } &&
18449	 { ac_try='test -s conftest$ac_exeext'
18450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451  (eval $ac_try) 2>&5
18452  ac_status=$?
18453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454  (exit $ac_status); }; }; then
18455
18456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18457}'`
18458# Check for a 64-bit object if we didn't find anything.
18459if 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; }
18460}'`; fi
18461else
18462  echo "$as_me: failed program was:" >&5
18463sed 's/^/| /' conftest.$ac_ext >&5
18464
18465fi
18466rm -f conftest.err conftest.$ac_objext \
18467      conftest$ac_exeext conftest.$ac_ext
18468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18469
18470	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18471	  # Warning - without using the other run time loading flags,
18472	  # -berok will link without error, but may produce a broken library.
18473	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18474	  allow_undefined_flag_GCJ=' ${wl}-berok'
18475	  # Exported symbols can be pulled into shared objects from archives
18476	  whole_archive_flag_spec_GCJ='$convenience'
18477	  archive_cmds_need_lc_GCJ=yes
18478	  # This is similar to how AIX traditionally builds its shared libraries.
18479	  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'
18480	fi
18481      fi
18482      ;;
18483
18484    amigaos*)
18485      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)'
18486      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18487      hardcode_minus_L_GCJ=yes
18488      # see comment about different semantics on the GNU ld section
18489      ld_shlibs_GCJ=no
18490      ;;
18491
18492    bsdi[45]*)
18493      export_dynamic_flag_spec_GCJ=-rdynamic
18494      ;;
18495
18496    cygwin* | mingw* | pw32*)
18497      # When not using gcc, we currently assume that we are using
18498      # Microsoft Visual C++.
18499      # hardcode_libdir_flag_spec is actually meaningless, as there is
18500      # no search path for DLLs.
18501      hardcode_libdir_flag_spec_GCJ=' '
18502      allow_undefined_flag_GCJ=unsupported
18503      # Tell ltmain to make .lib files, not .a files.
18504      libext=lib
18505      # Tell ltmain to make .dll files, not .so files.
18506      shrext_cmds=".dll"
18507      # FIXME: Setting linknames here is a bad hack.
18508      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18509      # The linker will automatically build a .lib file if we build a DLL.
18510      old_archive_From_new_cmds_GCJ='true'
18511      # FIXME: Should let the user specify the lib program.
18512      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18513      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18514      enable_shared_with_static_runtimes_GCJ=yes
18515      ;;
18516
18517    darwin* | rhapsody*)
18518      case $host_os in
18519        rhapsody* | darwin1.[012])
18520         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18521         ;;
18522       *) # Darwin 1.3 on
18523         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18524           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18525         else
18526           case ${MACOSX_DEPLOYMENT_TARGET} in
18527             10.[012])
18528               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18529               ;;
18530             10.*)
18531               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18532               ;;
18533           esac
18534         fi
18535         ;;
18536      esac
18537      archive_cmds_need_lc_GCJ=no
18538      hardcode_direct_GCJ=no
18539      hardcode_automatic_GCJ=yes
18540      hardcode_shlibpath_var_GCJ=unsupported
18541      whole_archive_flag_spec_GCJ=''
18542      link_all_deplibs_GCJ=yes
18543    if test "$GCC" = yes ; then
18544    	output_verbose_link_cmd='echo'
18545        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18546      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18547      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18548      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}'
18549      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}'
18550    else
18551      case $cc_basename in
18552        xlc*)
18553         output_verbose_link_cmd='echo'
18554         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18555         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18556          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18557         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}'
18558          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}'
18559          ;;
18560       *)
18561         ld_shlibs_GCJ=no
18562          ;;
18563      esac
18564    fi
18565      ;;
18566
18567    dgux*)
18568      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18569      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18570      hardcode_shlibpath_var_GCJ=no
18571      ;;
18572
18573    freebsd1*)
18574      ld_shlibs_GCJ=no
18575      ;;
18576
18577    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18578    # support.  Future versions do this automatically, but an explicit c++rt0.o
18579    # does not break anything, and helps significantly (at the cost of a little
18580    # extra space).
18581    freebsd2.2*)
18582      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18583      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18584      hardcode_direct_GCJ=yes
18585      hardcode_shlibpath_var_GCJ=no
18586      ;;
18587
18588    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18589    freebsd2*)
18590      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18591      hardcode_direct_GCJ=yes
18592      hardcode_minus_L_GCJ=yes
18593      hardcode_shlibpath_var_GCJ=no
18594      ;;
18595
18596    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18597    freebsd* | kfreebsd*-gnu | dragonfly*)
18598      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18599      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18600      hardcode_direct_GCJ=yes
18601      hardcode_shlibpath_var_GCJ=no
18602      ;;
18603
18604    hpux9*)
18605      if test "$GCC" = yes; then
18606	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'
18607      else
18608	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'
18609      fi
18610      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18611      hardcode_libdir_separator_GCJ=:
18612      hardcode_direct_GCJ=yes
18613
18614      # hardcode_minus_L: Not really in the search PATH,
18615      # but as the default location of the library.
18616      hardcode_minus_L_GCJ=yes
18617      export_dynamic_flag_spec_GCJ='${wl}-E'
18618      ;;
18619
18620    hpux10*)
18621      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18622	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18623      else
18624	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18625      fi
18626      if test "$with_gnu_ld" = no; then
18627	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18628	hardcode_libdir_separator_GCJ=:
18629
18630	hardcode_direct_GCJ=yes
18631	export_dynamic_flag_spec_GCJ='${wl}-E'
18632
18633	# hardcode_minus_L: Not really in the search PATH,
18634	# but as the default location of the library.
18635	hardcode_minus_L_GCJ=yes
18636      fi
18637      ;;
18638
18639    hpux11*)
18640      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18641	case $host_cpu in
18642	hppa*64*)
18643	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18644	  ;;
18645	ia64*)
18646	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18647	  ;;
18648	*)
18649	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18650	  ;;
18651	esac
18652      else
18653	case $host_cpu in
18654	hppa*64*)
18655	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18656	  ;;
18657	ia64*)
18658	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18659	  ;;
18660	*)
18661	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18662	  ;;
18663	esac
18664      fi
18665      if test "$with_gnu_ld" = no; then
18666	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18667	hardcode_libdir_separator_GCJ=:
18668
18669	case $host_cpu in
18670	hppa*64*|ia64*)
18671	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18672	  hardcode_direct_GCJ=no
18673	  hardcode_shlibpath_var_GCJ=no
18674	  ;;
18675	*)
18676	  hardcode_direct_GCJ=yes
18677	  export_dynamic_flag_spec_GCJ='${wl}-E'
18678
18679	  # hardcode_minus_L: Not really in the search PATH,
18680	  # but as the default location of the library.
18681	  hardcode_minus_L_GCJ=yes
18682	  ;;
18683	esac
18684      fi
18685      ;;
18686
18687    irix5* | irix6* | nonstopux*)
18688      if test "$GCC" = yes; then
18689	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'
18690      else
18691	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'
18692	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18693      fi
18694      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18695      hardcode_libdir_separator_GCJ=:
18696      link_all_deplibs_GCJ=yes
18697      ;;
18698
18699    netbsd*)
18700      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18701	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18702      else
18703	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18704      fi
18705      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18706      hardcode_direct_GCJ=yes
18707      hardcode_shlibpath_var_GCJ=no
18708      ;;
18709
18710    newsos6)
18711      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18712      hardcode_direct_GCJ=yes
18713      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18714      hardcode_libdir_separator_GCJ=:
18715      hardcode_shlibpath_var_GCJ=no
18716      ;;
18717
18718    openbsd*)
18719      hardcode_direct_GCJ=yes
18720      hardcode_shlibpath_var_GCJ=no
18721      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18722	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18723	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18724	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18725	export_dynamic_flag_spec_GCJ='${wl}-E'
18726      else
18727       case $host_os in
18728	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18729	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18730	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18731	   ;;
18732	 *)
18733	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18734	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18735	   ;;
18736       esac
18737      fi
18738      ;;
18739
18740    os2*)
18741      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18742      hardcode_minus_L_GCJ=yes
18743      allow_undefined_flag_GCJ=unsupported
18744      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'
18745      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18746      ;;
18747
18748    osf3*)
18749      if test "$GCC" = yes; then
18750	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18751	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'
18752      else
18753	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18754	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'
18755      fi
18756      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18757      hardcode_libdir_separator_GCJ=:
18758      ;;
18759
18760    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18761      if test "$GCC" = yes; then
18762	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18763	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'
18764	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18765      else
18766	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18767	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'
18768	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~
18769	$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'
18770
18771	# Both c and cxx compiler support -rpath directly
18772	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18773      fi
18774      hardcode_libdir_separator_GCJ=:
18775      ;;
18776
18777    solaris*)
18778      no_undefined_flag_GCJ=' -z text'
18779      if test "$GCC" = yes; then
18780	wlarc='${wl}'
18781	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18782	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18783	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18784      else
18785	wlarc=''
18786	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18787	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18788  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18789      fi
18790      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18791      hardcode_shlibpath_var_GCJ=no
18792      case $host_os in
18793      solaris2.[0-5] | solaris2.[0-5].*) ;;
18794      *)
18795 	# The compiler driver will combine linker options so we
18796 	# cannot just pass the convience library names through
18797 	# without $wl, iff we do not link with $LD.
18798 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18799 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18800 	case $wlarc in
18801 	'')
18802 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18803 	*)
18804 	  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' ;;
18805 	esac ;;
18806      esac
18807      link_all_deplibs_GCJ=yes
18808      ;;
18809
18810    sunos4*)
18811      if test "x$host_vendor" = xsequent; then
18812	# Use $CC to link under sequent, because it throws in some extra .o
18813	# files that make .init and .fini sections work.
18814	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18815      else
18816	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18817      fi
18818      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18819      hardcode_direct_GCJ=yes
18820      hardcode_minus_L_GCJ=yes
18821      hardcode_shlibpath_var_GCJ=no
18822      ;;
18823
18824    sysv4)
18825      case $host_vendor in
18826	sni)
18827	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18828	  hardcode_direct_GCJ=yes # is this really true???
18829	;;
18830	siemens)
18831	  ## LD is ld it makes a PLAMLIB
18832	  ## CC just makes a GrossModule.
18833	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18834	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18835	  hardcode_direct_GCJ=no
18836        ;;
18837	motorola)
18838	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18839	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18840	;;
18841      esac
18842      runpath_var='LD_RUN_PATH'
18843      hardcode_shlibpath_var_GCJ=no
18844      ;;
18845
18846    sysv4.3*)
18847      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848      hardcode_shlibpath_var_GCJ=no
18849      export_dynamic_flag_spec_GCJ='-Bexport'
18850      ;;
18851
18852    sysv4*MP*)
18853      if test -d /usr/nec; then
18854	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18855	hardcode_shlibpath_var_GCJ=no
18856	runpath_var=LD_RUN_PATH
18857	hardcode_runpath_var=yes
18858	ld_shlibs_GCJ=yes
18859      fi
18860      ;;
18861
18862    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18863      no_undefined_flag_GCJ='${wl}-z,text'
18864      archive_cmds_need_lc_GCJ=no
18865      hardcode_shlibpath_var_GCJ=no
18866      runpath_var='LD_RUN_PATH'
18867
18868      if test "$GCC" = yes; then
18869	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18870	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871      else
18872	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18874      fi
18875      ;;
18876
18877    sysv5* | sco3.2v5* | sco5v6*)
18878      # Note: We can NOT use -z defs as we might desire, because we do not
18879      # link with -lc, and that would cause any symbols used from libc to
18880      # always be unresolved, which means just about no library would
18881      # ever link correctly.  If we're not using GNU ld we use -z text
18882      # though, which does catch some bad symbols but isn't as heavy-handed
18883      # as -z defs.
18884      no_undefined_flag_GCJ='${wl}-z,text'
18885      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18886      archive_cmds_need_lc_GCJ=no
18887      hardcode_shlibpath_var_GCJ=no
18888      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18889      hardcode_libdir_separator_GCJ=':'
18890      link_all_deplibs_GCJ=yes
18891      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18892      runpath_var='LD_RUN_PATH'
18893
18894      if test "$GCC" = yes; then
18895	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18896	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18897      else
18898	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18899	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18900      fi
18901      ;;
18902
18903    uts4*)
18904      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18905      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18906      hardcode_shlibpath_var_GCJ=no
18907      ;;
18908
18909    *)
18910      ld_shlibs_GCJ=no
18911      ;;
18912    esac
18913  fi
18914
18915echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18916echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18917test "$ld_shlibs_GCJ" = no && can_build_shared=no
18918
18919#
18920# Do we need to explicitly link libc?
18921#
18922case "x$archive_cmds_need_lc_GCJ" in
18923x|xyes)
18924  # Assume -lc should be added
18925  archive_cmds_need_lc_GCJ=yes
18926
18927  if test "$enable_shared" = yes && test "$GCC" = yes; then
18928    case $archive_cmds_GCJ in
18929    *'~'*)
18930      # FIXME: we may have to deal with multi-command sequences.
18931      ;;
18932    '$CC '*)
18933      # Test whether the compiler implicitly links with -lc since on some
18934      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18935      # to ld, don't add -lc before -lgcc.
18936      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18937echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18938      $rm conftest*
18939      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18940
18941      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942  (eval $ac_compile) 2>&5
18943  ac_status=$?
18944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945  (exit $ac_status); } 2>conftest.err; then
18946        soname=conftest
18947        lib=conftest
18948        libobjs=conftest.$ac_objext
18949        deplibs=
18950        wl=$lt_prog_compiler_wl_GCJ
18951	pic_flag=$lt_prog_compiler_pic_GCJ
18952        compiler_flags=-v
18953        linker_flags=-v
18954        verstring=
18955        output_objdir=.
18956        libname=conftest
18957        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18958        allow_undefined_flag_GCJ=
18959        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18960  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18961  ac_status=$?
18962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963  (exit $ac_status); }
18964        then
18965	  archive_cmds_need_lc_GCJ=no
18966        else
18967	  archive_cmds_need_lc_GCJ=yes
18968        fi
18969        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18970      else
18971        cat conftest.err 1>&5
18972      fi
18973      $rm conftest*
18974      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18975echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18976      ;;
18977    esac
18978  fi
18979  ;;
18980esac
18981
18982echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18983echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18984library_names_spec=
18985libname_spec='lib$name'
18986soname_spec=
18987shrext_cmds=".so"
18988postinstall_cmds=
18989postuninstall_cmds=
18990finish_cmds=
18991finish_eval=
18992shlibpath_var=
18993shlibpath_overrides_runpath=unknown
18994version_type=none
18995dynamic_linker="$host_os ld.so"
18996sys_lib_dlsearch_path_spec="/lib /usr/lib"
18997if test "$GCC" = yes; then
18998  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18999  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19000    # if the path contains ";" then we assume it to be the separator
19001    # otherwise default to the standard path separator (i.e. ":") - it is
19002    # assumed that no part of a normal pathname contains ";" but that should
19003    # okay in the real world where ";" in dirpaths is itself problematic.
19004    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19005  else
19006    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19007  fi
19008else
19009  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19010fi
19011need_lib_prefix=unknown
19012hardcode_into_libs=no
19013
19014# when you set need_version to no, make sure it does not cause -set_version
19015# flags to be left without arguments
19016need_version=unknown
19017
19018case $host_os in
19019aix3*)
19020  version_type=linux
19021  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19022  shlibpath_var=LIBPATH
19023
19024  # AIX 3 has no versioning support, so we append a major version to the name.
19025  soname_spec='${libname}${release}${shared_ext}$major'
19026  ;;
19027
19028aix4* | aix5*)
19029  version_type=linux
19030  need_lib_prefix=no
19031  need_version=no
19032  hardcode_into_libs=yes
19033  if test "$host_cpu" = ia64; then
19034    # AIX 5 supports IA64
19035    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19036    shlibpath_var=LD_LIBRARY_PATH
19037  else
19038    # With GCC up to 2.95.x, collect2 would create an import file
19039    # for dependence libraries.  The import file would start with
19040    # the line `#! .'.  This would cause the generated library to
19041    # depend on `.', always an invalid library.  This was fixed in
19042    # development snapshots of GCC prior to 3.0.
19043    case $host_os in
19044      aix4 | aix4.[01] | aix4.[01].*)
19045      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19046	   echo ' yes '
19047	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19048	:
19049      else
19050	can_build_shared=no
19051      fi
19052      ;;
19053    esac
19054    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19055    # soname into executable. Probably we can add versioning support to
19056    # collect2, so additional links can be useful in future.
19057    if test "$aix_use_runtimelinking" = yes; then
19058      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19059      # instead of lib<name>.a to let people know that these are not
19060      # typical AIX shared libraries.
19061      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19062    else
19063      # We preserve .a as extension for shared libraries through AIX4.2
19064      # and later when we are not doing run time linking.
19065      library_names_spec='${libname}${release}.a $libname.a'
19066      soname_spec='${libname}${release}${shared_ext}$major'
19067    fi
19068    shlibpath_var=LIBPATH
19069  fi
19070  ;;
19071
19072amigaos*)
19073  library_names_spec='$libname.ixlibrary $libname.a'
19074  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19075  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'
19076  ;;
19077
19078beos*)
19079  library_names_spec='${libname}${shared_ext}'
19080  dynamic_linker="$host_os ld.so"
19081  shlibpath_var=LIBRARY_PATH
19082  ;;
19083
19084bsdi[45]*)
19085  version_type=linux
19086  need_version=no
19087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19088  soname_spec='${libname}${release}${shared_ext}$major'
19089  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19090  shlibpath_var=LD_LIBRARY_PATH
19091  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19092  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19093  # the default ld.so.conf also contains /usr/contrib/lib and
19094  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19095  # libtool to hard-code these into programs
19096  ;;
19097
19098cygwin* | mingw* | pw32*)
19099  version_type=windows
19100  shrext_cmds=".dll"
19101  need_version=no
19102  need_lib_prefix=no
19103
19104  case $GCC,$host_os in
19105  yes,cygwin* | yes,mingw* | yes,pw32*)
19106    library_names_spec='$libname.dll.a'
19107    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19108    postinstall_cmds='base_file=`basename \${file}`~
19109      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19110      dldir=$destdir/`dirname \$dlpath`~
19111      test -d \$dldir || mkdir -p \$dldir~
19112      $install_prog $dir/$dlname \$dldir/$dlname~
19113      chmod a+x \$dldir/$dlname'
19114    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19115      dlpath=$dir/\$dldll~
19116       $rm \$dlpath'
19117    shlibpath_overrides_runpath=yes
19118
19119    case $host_os in
19120    cygwin*)
19121      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19122      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19123      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19124      ;;
19125    mingw*)
19126      # MinGW DLLs use traditional 'lib' prefix
19127      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19128      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19129      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19130        # It is most probably a Windows format PATH printed by
19131        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19132        # path with ; separators, and with drive letters. We can handle the
19133        # drive letters (cygwin fileutils understands them), so leave them,
19134        # especially as we might pass files found there to a mingw objdump,
19135        # which wouldn't understand a cygwinified path. Ahh.
19136        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19137      else
19138        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19139      fi
19140      ;;
19141    pw32*)
19142      # pw32 DLLs use 'pw' prefix rather than 'lib'
19143      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19144      ;;
19145    esac
19146    ;;
19147
19148  *)
19149    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19150    ;;
19151  esac
19152  dynamic_linker='Win32 ld.exe'
19153  # FIXME: first we should search . and the directory the executable is in
19154  shlibpath_var=PATH
19155  ;;
19156
19157darwin* | rhapsody*)
19158  dynamic_linker="$host_os dyld"
19159  version_type=darwin
19160  need_lib_prefix=no
19161  need_version=no
19162  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19163  soname_spec='${libname}${release}${major}$shared_ext'
19164  shlibpath_overrides_runpath=yes
19165  shlibpath_var=DYLD_LIBRARY_PATH
19166  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19167  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19168  if test "$GCC" = yes; then
19169    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"`
19170  else
19171    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19172  fi
19173  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19174  ;;
19175
19176dgux*)
19177  version_type=linux
19178  need_lib_prefix=no
19179  need_version=no
19180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19181  soname_spec='${libname}${release}${shared_ext}$major'
19182  shlibpath_var=LD_LIBRARY_PATH
19183  ;;
19184
19185freebsd1*)
19186  dynamic_linker=no
19187  ;;
19188
19189kfreebsd*-gnu)
19190  version_type=linux
19191  need_lib_prefix=no
19192  need_version=no
19193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19194  soname_spec='${libname}${release}${shared_ext}$major'
19195  shlibpath_var=LD_LIBRARY_PATH
19196  shlibpath_overrides_runpath=no
19197  hardcode_into_libs=yes
19198  dynamic_linker='GNU ld.so'
19199  ;;
19200
19201freebsd* | dragonfly*)
19202  # DragonFly does not have aout.  When/if they implement a new
19203  # versioning mechanism, adjust this.
19204  if test -x /usr/bin/objformat; then
19205    objformat=`/usr/bin/objformat`
19206  else
19207    case $host_os in
19208    freebsd[123]*) objformat=aout ;;
19209    *) objformat=elf ;;
19210    esac
19211  fi
19212  version_type=freebsd-$objformat
19213  case $version_type in
19214    freebsd-elf*)
19215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19216      need_version=no
19217      need_lib_prefix=no
19218      ;;
19219    freebsd-*)
19220      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19221      need_version=yes
19222      ;;
19223  esac
19224  shlibpath_var=LD_LIBRARY_PATH
19225  case $host_os in
19226  freebsd2*)
19227    shlibpath_overrides_runpath=yes
19228    ;;
19229  freebsd3.[01]* | freebsdelf3.[01]*)
19230    shlibpath_overrides_runpath=yes
19231    hardcode_into_libs=yes
19232    ;;
19233  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19234  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19235    shlibpath_overrides_runpath=no
19236    hardcode_into_libs=yes
19237    ;;
19238  freebsd*) # from 4.6 on
19239    shlibpath_overrides_runpath=yes
19240    hardcode_into_libs=yes
19241    ;;
19242  esac
19243  ;;
19244
19245gnu*)
19246  version_type=linux
19247  need_lib_prefix=no
19248  need_version=no
19249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19250  soname_spec='${libname}${release}${shared_ext}$major'
19251  shlibpath_var=LD_LIBRARY_PATH
19252  hardcode_into_libs=yes
19253  ;;
19254
19255hpux9* | hpux10* | hpux11*)
19256  # Give a soname corresponding to the major version so that dld.sl refuses to
19257  # link against other versions.
19258  version_type=sunos
19259  need_lib_prefix=no
19260  need_version=no
19261  case $host_cpu in
19262  ia64*)
19263    shrext_cmds='.so'
19264    hardcode_into_libs=yes
19265    dynamic_linker="$host_os dld.so"
19266    shlibpath_var=LD_LIBRARY_PATH
19267    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269    soname_spec='${libname}${release}${shared_ext}$major'
19270    if test "X$HPUX_IA64_MODE" = X32; then
19271      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19272    else
19273      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19274    fi
19275    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19276    ;;
19277   hppa*64*)
19278     shrext_cmds='.sl'
19279     hardcode_into_libs=yes
19280     dynamic_linker="$host_os dld.sl"
19281     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19282     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19284     soname_spec='${libname}${release}${shared_ext}$major'
19285     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19287     ;;
19288   *)
19289    shrext_cmds='.sl'
19290    dynamic_linker="$host_os dld.sl"
19291    shlibpath_var=SHLIB_PATH
19292    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19294    soname_spec='${libname}${release}${shared_ext}$major'
19295    ;;
19296  esac
19297  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19298  postinstall_cmds='chmod 555 $lib'
19299  ;;
19300
19301interix3*)
19302  version_type=linux
19303  need_lib_prefix=no
19304  need_version=no
19305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19306  soname_spec='${libname}${release}${shared_ext}$major'
19307  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19308  shlibpath_var=LD_LIBRARY_PATH
19309  shlibpath_overrides_runpath=no
19310  hardcode_into_libs=yes
19311  ;;
19312
19313irix5* | irix6* | nonstopux*)
19314  case $host_os in
19315    nonstopux*) version_type=nonstopux ;;
19316    *)
19317	if test "$lt_cv_prog_gnu_ld" = yes; then
19318		version_type=linux
19319	else
19320		version_type=irix
19321	fi ;;
19322  esac
19323  need_lib_prefix=no
19324  need_version=no
19325  soname_spec='${libname}${release}${shared_ext}$major'
19326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19327  case $host_os in
19328  irix5* | nonstopux*)
19329    libsuff= shlibsuff=
19330    ;;
19331  *)
19332    case $LD in # libtool.m4 will add one of these switches to LD
19333    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19334      libsuff= shlibsuff= libmagic=32-bit;;
19335    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19336      libsuff=32 shlibsuff=N32 libmagic=N32;;
19337    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19338      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19339    *) libsuff= shlibsuff= libmagic=never-match;;
19340    esac
19341    ;;
19342  esac
19343  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19344  shlibpath_overrides_runpath=no
19345  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19346  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19347  hardcode_into_libs=yes
19348  ;;
19349
19350# No shared lib support for Linux oldld, aout, or coff.
19351linux*oldld* | linux*aout* | linux*coff*)
19352  dynamic_linker=no
19353  ;;
19354
19355# This must be Linux ELF.
19356linux*)
19357  version_type=linux
19358  need_lib_prefix=no
19359  need_version=no
19360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19361  soname_spec='${libname}${release}${shared_ext}$major'
19362  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19363  shlibpath_var=LD_LIBRARY_PATH
19364  shlibpath_overrides_runpath=no
19365  # This implies no fast_install, which is unacceptable.
19366  # Some rework will be needed to allow for fast_install
19367  # before this can be enabled.
19368  hardcode_into_libs=yes
19369
19370  # Append ld.so.conf contents to the search path
19371  if test -f /etc/ld.so.conf; then
19372    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' ' '`
19373    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19374  fi
19375
19376  # We used to test for /lib/ld.so.1 and disable shared libraries on
19377  # powerpc, because MkLinux only supported shared libraries with the
19378  # GNU dynamic linker.  Since this was broken with cross compilers,
19379  # most powerpc-linux boxes support dynamic linking these days and
19380  # people can always --disable-shared, the test was removed, and we
19381  # assume the GNU/Linux dynamic linker is in use.
19382  dynamic_linker='GNU/Linux ld.so'
19383  ;;
19384
19385knetbsd*-gnu)
19386  version_type=linux
19387  need_lib_prefix=no
19388  need_version=no
19389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19390  soname_spec='${libname}${release}${shared_ext}$major'
19391  shlibpath_var=LD_LIBRARY_PATH
19392  shlibpath_overrides_runpath=no
19393  hardcode_into_libs=yes
19394  dynamic_linker='GNU ld.so'
19395  ;;
19396
19397netbsd*)
19398  version_type=sunos
19399  need_lib_prefix=no
19400  need_version=no
19401  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19403    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19404    dynamic_linker='NetBSD (a.out) ld.so'
19405  else
19406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19407    soname_spec='${libname}${release}${shared_ext}$major'
19408    dynamic_linker='NetBSD ld.elf_so'
19409  fi
19410  shlibpath_var=LD_LIBRARY_PATH
19411  shlibpath_overrides_runpath=yes
19412  hardcode_into_libs=yes
19413  ;;
19414
19415newsos6)
19416  version_type=linux
19417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19418  shlibpath_var=LD_LIBRARY_PATH
19419  shlibpath_overrides_runpath=yes
19420  ;;
19421
19422nto-qnx*)
19423  version_type=linux
19424  need_lib_prefix=no
19425  need_version=no
19426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19427  soname_spec='${libname}${release}${shared_ext}$major'
19428  shlibpath_var=LD_LIBRARY_PATH
19429  shlibpath_overrides_runpath=yes
19430  ;;
19431
19432openbsd*)
19433  version_type=sunos
19434  sys_lib_dlsearch_path_spec="/usr/lib"
19435  need_lib_prefix=no
19436  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19437  case $host_os in
19438    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19439    *)                         need_version=no  ;;
19440  esac
19441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19443  shlibpath_var=LD_LIBRARY_PATH
19444  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19445    case $host_os in
19446      openbsd2.[89] | openbsd2.[89].*)
19447	shlibpath_overrides_runpath=no
19448	;;
19449      *)
19450	shlibpath_overrides_runpath=yes
19451	;;
19452      esac
19453  else
19454    shlibpath_overrides_runpath=yes
19455  fi
19456  ;;
19457
19458os2*)
19459  libname_spec='$name'
19460  shrext_cmds=".dll"
19461  need_lib_prefix=no
19462  library_names_spec='$libname${shared_ext} $libname.a'
19463  dynamic_linker='OS/2 ld.exe'
19464  shlibpath_var=LIBPATH
19465  ;;
19466
19467osf3* | osf4* | osf5*)
19468  version_type=osf
19469  need_lib_prefix=no
19470  need_version=no
19471  soname_spec='${libname}${release}${shared_ext}$major'
19472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19473  shlibpath_var=LD_LIBRARY_PATH
19474  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19475  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19476  ;;
19477
19478solaris*)
19479  version_type=linux
19480  need_lib_prefix=no
19481  need_version=no
19482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19483  soname_spec='${libname}${release}${shared_ext}$major'
19484  shlibpath_var=LD_LIBRARY_PATH
19485  shlibpath_overrides_runpath=yes
19486  hardcode_into_libs=yes
19487  # ldd complains unless libraries are executable
19488  postinstall_cmds='chmod +x $lib'
19489  ;;
19490
19491sunos4*)
19492  version_type=sunos
19493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19494  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19495  shlibpath_var=LD_LIBRARY_PATH
19496  shlibpath_overrides_runpath=yes
19497  if test "$with_gnu_ld" = yes; then
19498    need_lib_prefix=no
19499  fi
19500  need_version=yes
19501  ;;
19502
19503sysv4 | sysv4.3*)
19504  version_type=linux
19505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19506  soname_spec='${libname}${release}${shared_ext}$major'
19507  shlibpath_var=LD_LIBRARY_PATH
19508  case $host_vendor in
19509    sni)
19510      shlibpath_overrides_runpath=no
19511      need_lib_prefix=no
19512      export_dynamic_flag_spec='${wl}-Blargedynsym'
19513      runpath_var=LD_RUN_PATH
19514      ;;
19515    siemens)
19516      need_lib_prefix=no
19517      ;;
19518    motorola)
19519      need_lib_prefix=no
19520      need_version=no
19521      shlibpath_overrides_runpath=no
19522      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19523      ;;
19524  esac
19525  ;;
19526
19527sysv4*MP*)
19528  if test -d /usr/nec ;then
19529    version_type=linux
19530    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19531    soname_spec='$libname${shared_ext}.$major'
19532    shlibpath_var=LD_LIBRARY_PATH
19533  fi
19534  ;;
19535
19536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19537  version_type=freebsd-elf
19538  need_lib_prefix=no
19539  need_version=no
19540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19541  soname_spec='${libname}${release}${shared_ext}$major'
19542  shlibpath_var=LD_LIBRARY_PATH
19543  hardcode_into_libs=yes
19544  if test "$with_gnu_ld" = yes; then
19545    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19546    shlibpath_overrides_runpath=no
19547  else
19548    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19549    shlibpath_overrides_runpath=yes
19550    case $host_os in
19551      sco3.2v5*)
19552        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19553	;;
19554    esac
19555  fi
19556  sys_lib_dlsearch_path_spec='/usr/lib'
19557  ;;
19558
19559uts4*)
19560  version_type=linux
19561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19562  soname_spec='${libname}${release}${shared_ext}$major'
19563  shlibpath_var=LD_LIBRARY_PATH
19564  ;;
19565
19566*)
19567  dynamic_linker=no
19568  ;;
19569esac
19570echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19571echo "${ECHO_T}$dynamic_linker" >&6
19572test "$dynamic_linker" = no && can_build_shared=no
19573
19574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19575if test "$GCC" = yes; then
19576  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19577fi
19578
19579echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19580echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19581hardcode_action_GCJ=
19582if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19583   test -n "$runpath_var_GCJ" || \
19584   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19585
19586  # We can hardcode non-existant directories.
19587  if test "$hardcode_direct_GCJ" != no &&
19588     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19589     # have to relink, otherwise we might link with an installed library
19590     # when we should be linking with a yet-to-be-installed one
19591     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19592     test "$hardcode_minus_L_GCJ" != no; then
19593    # Linking always hardcodes the temporary library directory.
19594    hardcode_action_GCJ=relink
19595  else
19596    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19597    hardcode_action_GCJ=immediate
19598  fi
19599else
19600  # We cannot hardcode anything, or else we can only hardcode existing
19601  # directories.
19602  hardcode_action_GCJ=unsupported
19603fi
19604echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19605echo "${ECHO_T}$hardcode_action_GCJ" >&6
19606
19607if test "$hardcode_action_GCJ" = relink; then
19608  # Fast installation is not supported
19609  enable_fast_install=no
19610elif test "$shlibpath_overrides_runpath" = yes ||
19611     test "$enable_shared" = no; then
19612  # Fast installation is not necessary
19613  enable_fast_install=needless
19614fi
19615
19616
19617# The else clause should only fire when bootstrapping the
19618# libtool distribution, otherwise you forgot to ship ltmain.sh
19619# with your package, and you will get complaints that there are
19620# no rules to generate ltmain.sh.
19621if test -f "$ltmain"; then
19622  # See if we are running on zsh, and set the options which allow our commands through
19623  # without removal of \ escapes.
19624  if test -n "${ZSH_VERSION+set}" ; then
19625    setopt NO_GLOB_SUBST
19626  fi
19627  # Now quote all the things that may contain metacharacters while being
19628  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19629  # variables and quote the copies for generation of the libtool script.
19630  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19631    SED SHELL STRIP \
19632    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19633    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19634    deplibs_check_method reload_flag reload_cmds need_locks \
19635    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19636    lt_cv_sys_global_symbol_to_c_name_address \
19637    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19638    old_postinstall_cmds old_postuninstall_cmds \
19639    compiler_GCJ \
19640    CC_GCJ \
19641    LD_GCJ \
19642    lt_prog_compiler_wl_GCJ \
19643    lt_prog_compiler_pic_GCJ \
19644    lt_prog_compiler_static_GCJ \
19645    lt_prog_compiler_no_builtin_flag_GCJ \
19646    export_dynamic_flag_spec_GCJ \
19647    thread_safe_flag_spec_GCJ \
19648    whole_archive_flag_spec_GCJ \
19649    enable_shared_with_static_runtimes_GCJ \
19650    old_archive_cmds_GCJ \
19651    old_archive_from_new_cmds_GCJ \
19652    predep_objects_GCJ \
19653    postdep_objects_GCJ \
19654    predeps_GCJ \
19655    postdeps_GCJ \
19656    compiler_lib_search_path_GCJ \
19657    archive_cmds_GCJ \
19658    archive_expsym_cmds_GCJ \
19659    postinstall_cmds_GCJ \
19660    postuninstall_cmds_GCJ \
19661    old_archive_from_expsyms_cmds_GCJ \
19662    allow_undefined_flag_GCJ \
19663    no_undefined_flag_GCJ \
19664    export_symbols_cmds_GCJ \
19665    hardcode_libdir_flag_spec_GCJ \
19666    hardcode_libdir_flag_spec_ld_GCJ \
19667    hardcode_libdir_separator_GCJ \
19668    hardcode_automatic_GCJ \
19669    module_cmds_GCJ \
19670    module_expsym_cmds_GCJ \
19671    lt_cv_prog_compiler_c_o_GCJ \
19672    exclude_expsyms_GCJ \
19673    include_expsyms_GCJ; do
19674
19675    case $var in
19676    old_archive_cmds_GCJ | \
19677    old_archive_from_new_cmds_GCJ | \
19678    archive_cmds_GCJ | \
19679    archive_expsym_cmds_GCJ | \
19680    module_cmds_GCJ | \
19681    module_expsym_cmds_GCJ | \
19682    old_archive_from_expsyms_cmds_GCJ | \
19683    export_symbols_cmds_GCJ | \
19684    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19685    postinstall_cmds | postuninstall_cmds | \
19686    old_postinstall_cmds | old_postuninstall_cmds | \
19687    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19688      # Double-quote double-evaled strings.
19689      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19690      ;;
19691    *)
19692      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19693      ;;
19694    esac
19695  done
19696
19697  case $lt_echo in
19698  *'\$0 --fallback-echo"')
19699    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19700    ;;
19701  esac
19702
19703cfgfile="$ofile"
19704
19705  cat <<__EOF__ >> "$cfgfile"
19706# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19707
19708# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19709
19710# Shell to use when invoking shell scripts.
19711SHELL=$lt_SHELL
19712
19713# Whether or not to build shared libraries.
19714build_libtool_libs=$enable_shared
19715
19716# Whether or not to build static libraries.
19717build_old_libs=$enable_static
19718
19719# Whether or not to add -lc for building shared libraries.
19720build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19721
19722# Whether or not to disallow shared libs when runtime libs are static
19723allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19724
19725# Whether or not to optimize for fast installation.
19726fast_install=$enable_fast_install
19727
19728# The host system.
19729host_alias=$host_alias
19730host=$host
19731host_os=$host_os
19732
19733# The build system.
19734build_alias=$build_alias
19735build=$build
19736build_os=$build_os
19737
19738# An echo program that does not interpret backslashes.
19739echo=$lt_echo
19740
19741# The archiver.
19742AR=$lt_AR
19743AR_FLAGS=$lt_AR_FLAGS
19744
19745# A C compiler.
19746LTCC=$lt_LTCC
19747
19748# LTCC compiler flags.
19749LTCFLAGS=$lt_LTCFLAGS
19750
19751# A language-specific compiler.
19752CC=$lt_compiler_GCJ
19753
19754# Is the compiler the GNU C compiler?
19755with_gcc=$GCC_GCJ
19756
19757# An ERE matcher.
19758EGREP=$lt_EGREP
19759
19760# The linker used to build libraries.
19761LD=$lt_LD_GCJ
19762
19763# Whether we need hard or soft links.
19764LN_S=$lt_LN_S
19765
19766# A BSD-compatible nm program.
19767NM=$lt_NM
19768
19769# A symbol stripping program
19770STRIP=$lt_STRIP
19771
19772# Used to examine libraries when file_magic_cmd begins "file"
19773MAGIC_CMD=$MAGIC_CMD
19774
19775# Used on cygwin: DLL creation program.
19776DLLTOOL="$DLLTOOL"
19777
19778# Used on cygwin: object dumper.
19779OBJDUMP="$OBJDUMP"
19780
19781# Used on cygwin: assembler.
19782AS="$AS"
19783
19784# The name of the directory that contains temporary libtool files.
19785objdir=$objdir
19786
19787# How to create reloadable object files.
19788reload_flag=$lt_reload_flag
19789reload_cmds=$lt_reload_cmds
19790
19791# How to pass a linker flag through the compiler.
19792wl=$lt_lt_prog_compiler_wl_GCJ
19793
19794# Object file suffix (normally "o").
19795objext="$ac_objext"
19796
19797# Old archive suffix (normally "a").
19798libext="$libext"
19799
19800# Shared library suffix (normally ".so").
19801shrext_cmds='$shrext_cmds'
19802
19803# Executable file suffix (normally "").
19804exeext="$exeext"
19805
19806# Additional compiler flags for building library objects.
19807pic_flag=$lt_lt_prog_compiler_pic_GCJ
19808pic_mode=$pic_mode
19809
19810# What is the maximum length of a command?
19811max_cmd_len=$lt_cv_sys_max_cmd_len
19812
19813# Does compiler simultaneously support -c and -o options?
19814compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19815
19816# Must we lock files when doing compilation?
19817need_locks=$lt_need_locks
19818
19819# Do we need the lib prefix for modules?
19820need_lib_prefix=$need_lib_prefix
19821
19822# Do we need a version for libraries?
19823need_version=$need_version
19824
19825# Whether dlopen is supported.
19826dlopen_support=$enable_dlopen
19827
19828# Whether dlopen of programs is supported.
19829dlopen_self=$enable_dlopen_self
19830
19831# Whether dlopen of statically linked programs is supported.
19832dlopen_self_static=$enable_dlopen_self_static
19833
19834# Compiler flag to prevent dynamic linking.
19835link_static_flag=$lt_lt_prog_compiler_static_GCJ
19836
19837# Compiler flag to turn off builtin functions.
19838no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19839
19840# Compiler flag to allow reflexive dlopens.
19841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19842
19843# Compiler flag to generate shared objects directly from archives.
19844whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19845
19846# Compiler flag to generate thread-safe objects.
19847thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19848
19849# Library versioning type.
19850version_type=$version_type
19851
19852# Format of library name prefix.
19853libname_spec=$lt_libname_spec
19854
19855# List of archive names.  First name is the real one, the rest are links.
19856# The last name is the one that the linker finds with -lNAME.
19857library_names_spec=$lt_library_names_spec
19858
19859# The coded name of the library, if different from the real name.
19860soname_spec=$lt_soname_spec
19861
19862# Commands used to build and install an old-style archive.
19863RANLIB=$lt_RANLIB
19864old_archive_cmds=$lt_old_archive_cmds_GCJ
19865old_postinstall_cmds=$lt_old_postinstall_cmds
19866old_postuninstall_cmds=$lt_old_postuninstall_cmds
19867
19868# Create an old-style archive from a shared archive.
19869old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19870
19871# Create a temporary old-style archive to link instead of a shared archive.
19872old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19873
19874# Commands used to build and install a shared archive.
19875archive_cmds=$lt_archive_cmds_GCJ
19876archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19877postinstall_cmds=$lt_postinstall_cmds
19878postuninstall_cmds=$lt_postuninstall_cmds
19879
19880# Commands used to build a loadable module (assumed same as above if empty)
19881module_cmds=$lt_module_cmds_GCJ
19882module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19883
19884# Commands to strip libraries.
19885old_striplib=$lt_old_striplib
19886striplib=$lt_striplib
19887
19888# Dependencies to place before the objects being linked to create a
19889# shared library.
19890predep_objects=$lt_predep_objects_GCJ
19891
19892# Dependencies to place after the objects being linked to create a
19893# shared library.
19894postdep_objects=$lt_postdep_objects_GCJ
19895
19896# Dependencies to place before the objects being linked to create a
19897# shared library.
19898predeps=$lt_predeps_GCJ
19899
19900# Dependencies to place after the objects being linked to create a
19901# shared library.
19902postdeps=$lt_postdeps_GCJ
19903
19904# The library search path used internally by the compiler when linking
19905# a shared library.
19906compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19907
19908# Method to check whether dependent libraries are shared objects.
19909deplibs_check_method=$lt_deplibs_check_method
19910
19911# Command to use when deplibs_check_method == file_magic.
19912file_magic_cmd=$lt_file_magic_cmd
19913
19914# Flag that allows shared libraries with undefined symbols to be built.
19915allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19916
19917# Flag that forces no undefined symbols.
19918no_undefined_flag=$lt_no_undefined_flag_GCJ
19919
19920# Commands used to finish a libtool library installation in a directory.
19921finish_cmds=$lt_finish_cmds
19922
19923# Same as above, but a single script fragment to be evaled but not shown.
19924finish_eval=$lt_finish_eval
19925
19926# Take the output of nm and produce a listing of raw symbols and C names.
19927global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19928
19929# Transform the output of nm in a proper C declaration
19930global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19931
19932# Transform the output of nm in a C name address pair
19933global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19934
19935# This is the shared library runtime path variable.
19936runpath_var=$runpath_var
19937
19938# This is the shared library path variable.
19939shlibpath_var=$shlibpath_var
19940
19941# Is shlibpath searched before the hard-coded library search path?
19942shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19943
19944# How to hardcode a shared library path into an executable.
19945hardcode_action=$hardcode_action_GCJ
19946
19947# Whether we should hardcode library paths into libraries.
19948hardcode_into_libs=$hardcode_into_libs
19949
19950# Flag to hardcode \$libdir into a binary during linking.
19951# This must work even if \$libdir does not exist.
19952hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19953
19954# If ld is used when linking, flag to hardcode \$libdir into
19955# a binary during linking. This must work even if \$libdir does
19956# not exist.
19957hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19958
19959# Whether we need a single -rpath flag with a separated argument.
19960hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19961
19962# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19963# resulting binary.
19964hardcode_direct=$hardcode_direct_GCJ
19965
19966# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19967# resulting binary.
19968hardcode_minus_L=$hardcode_minus_L_GCJ
19969
19970# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19971# the resulting binary.
19972hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19973
19974# Set to yes if building a shared library automatically hardcodes DIR into the library
19975# and all subsequent libraries and executables linked against it.
19976hardcode_automatic=$hardcode_automatic_GCJ
19977
19978# Variables whose values should be saved in libtool wrapper scripts and
19979# restored at relink time.
19980variables_saved_for_relink="$variables_saved_for_relink"
19981
19982# Whether libtool must link a program against all its dependency libraries.
19983link_all_deplibs=$link_all_deplibs_GCJ
19984
19985# Compile-time system search path for libraries
19986sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19987
19988# Run-time system search path for libraries
19989sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19990
19991# Fix the shell variable \$srcfile for the compiler.
19992fix_srcfile_path="$fix_srcfile_path_GCJ"
19993
19994# Set to yes if exported symbols are required.
19995always_export_symbols=$always_export_symbols_GCJ
19996
19997# The commands to list exported symbols.
19998export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19999
20000# The commands to extract the exported symbol list from a shared archive.
20001extract_expsyms_cmds=$lt_extract_expsyms_cmds
20002
20003# Symbols that should not be listed in the preloaded symbols.
20004exclude_expsyms=$lt_exclude_expsyms_GCJ
20005
20006# Symbols that must always be exported.
20007include_expsyms=$lt_include_expsyms_GCJ
20008
20009# ### END LIBTOOL TAG CONFIG: $tagname
20010
20011__EOF__
20012
20013
20014else
20015  # If there is no Makefile yet, we rely on a make rule to execute
20016  # `config.status --recheck' to rerun these tests and create the
20017  # libtool script then.
20018  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20019  if test -f "$ltmain_in"; then
20020    test -f Makefile && make "$ltmain"
20021  fi
20022fi
20023
20024
20025ac_ext=c
20026ac_cpp='$CPP $CPPFLAGS'
20027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20029ac_compiler_gnu=$ac_cv_c_compiler_gnu
20030
20031CC="$lt_save_CC"
20032
20033	else
20034	  tagname=""
20035	fi
20036	;;
20037
20038      RC)
20039
20040
20041
20042# Source file extension for RC test sources.
20043ac_ext=rc
20044
20045# Object file extension for compiled RC test sources.
20046objext=o
20047objext_RC=$objext
20048
20049# Code to be used in simple compile tests
20050lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20051
20052# Code to be used in simple link tests
20053lt_simple_link_test_code="$lt_simple_compile_test_code"
20054
20055# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20056
20057# If no C compiler was specified, use CC.
20058LTCC=${LTCC-"$CC"}
20059
20060# If no C compiler flags were specified, use CFLAGS.
20061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20062
20063# Allow CC to be a program name with arguments.
20064compiler=$CC
20065
20066
20067# save warnings/boilerplate of simple test code
20068ac_outfile=conftest.$ac_objext
20069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20071_lt_compiler_boilerplate=`cat conftest.err`
20072$rm conftest*
20073
20074ac_outfile=conftest.$ac_objext
20075printf "$lt_simple_link_test_code" >conftest.$ac_ext
20076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20077_lt_linker_boilerplate=`cat conftest.err`
20078$rm conftest*
20079
20080
20081# Allow CC to be a program name with arguments.
20082lt_save_CC="$CC"
20083CC=${RC-"windres"}
20084compiler=$CC
20085compiler_RC=$CC
20086for cc_temp in $compiler""; do
20087  case $cc_temp in
20088    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20089    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20090    \-*) ;;
20091    *) break;;
20092  esac
20093done
20094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20095
20096lt_cv_prog_compiler_c_o_RC=yes
20097
20098# The else clause should only fire when bootstrapping the
20099# libtool distribution, otherwise you forgot to ship ltmain.sh
20100# with your package, and you will get complaints that there are
20101# no rules to generate ltmain.sh.
20102if test -f "$ltmain"; then
20103  # See if we are running on zsh, and set the options which allow our commands through
20104  # without removal of \ escapes.
20105  if test -n "${ZSH_VERSION+set}" ; then
20106    setopt NO_GLOB_SUBST
20107  fi
20108  # Now quote all the things that may contain metacharacters while being
20109  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20110  # variables and quote the copies for generation of the libtool script.
20111  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20112    SED SHELL STRIP \
20113    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20114    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20115    deplibs_check_method reload_flag reload_cmds need_locks \
20116    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20117    lt_cv_sys_global_symbol_to_c_name_address \
20118    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20119    old_postinstall_cmds old_postuninstall_cmds \
20120    compiler_RC \
20121    CC_RC \
20122    LD_RC \
20123    lt_prog_compiler_wl_RC \
20124    lt_prog_compiler_pic_RC \
20125    lt_prog_compiler_static_RC \
20126    lt_prog_compiler_no_builtin_flag_RC \
20127    export_dynamic_flag_spec_RC \
20128    thread_safe_flag_spec_RC \
20129    whole_archive_flag_spec_RC \
20130    enable_shared_with_static_runtimes_RC \
20131    old_archive_cmds_RC \
20132    old_archive_from_new_cmds_RC \
20133    predep_objects_RC \
20134    postdep_objects_RC \
20135    predeps_RC \
20136    postdeps_RC \
20137    compiler_lib_search_path_RC \
20138    archive_cmds_RC \
20139    archive_expsym_cmds_RC \
20140    postinstall_cmds_RC \
20141    postuninstall_cmds_RC \
20142    old_archive_from_expsyms_cmds_RC \
20143    allow_undefined_flag_RC \
20144    no_undefined_flag_RC \
20145    export_symbols_cmds_RC \
20146    hardcode_libdir_flag_spec_RC \
20147    hardcode_libdir_flag_spec_ld_RC \
20148    hardcode_libdir_separator_RC \
20149    hardcode_automatic_RC \
20150    module_cmds_RC \
20151    module_expsym_cmds_RC \
20152    lt_cv_prog_compiler_c_o_RC \
20153    exclude_expsyms_RC \
20154    include_expsyms_RC; do
20155
20156    case $var in
20157    old_archive_cmds_RC | \
20158    old_archive_from_new_cmds_RC | \
20159    archive_cmds_RC | \
20160    archive_expsym_cmds_RC | \
20161    module_cmds_RC | \
20162    module_expsym_cmds_RC | \
20163    old_archive_from_expsyms_cmds_RC | \
20164    export_symbols_cmds_RC | \
20165    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20166    postinstall_cmds | postuninstall_cmds | \
20167    old_postinstall_cmds | old_postuninstall_cmds | \
20168    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20169      # Double-quote double-evaled strings.
20170      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20171      ;;
20172    *)
20173      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20174      ;;
20175    esac
20176  done
20177
20178  case $lt_echo in
20179  *'\$0 --fallback-echo"')
20180    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20181    ;;
20182  esac
20183
20184cfgfile="$ofile"
20185
20186  cat <<__EOF__ >> "$cfgfile"
20187# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20188
20189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20190
20191# Shell to use when invoking shell scripts.
20192SHELL=$lt_SHELL
20193
20194# Whether or not to build shared libraries.
20195build_libtool_libs=$enable_shared
20196
20197# Whether or not to build static libraries.
20198build_old_libs=$enable_static
20199
20200# Whether or not to add -lc for building shared libraries.
20201build_libtool_need_lc=$archive_cmds_need_lc_RC
20202
20203# Whether or not to disallow shared libs when runtime libs are static
20204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20205
20206# Whether or not to optimize for fast installation.
20207fast_install=$enable_fast_install
20208
20209# The host system.
20210host_alias=$host_alias
20211host=$host
20212host_os=$host_os
20213
20214# The build system.
20215build_alias=$build_alias
20216build=$build
20217build_os=$build_os
20218
20219# An echo program that does not interpret backslashes.
20220echo=$lt_echo
20221
20222# The archiver.
20223AR=$lt_AR
20224AR_FLAGS=$lt_AR_FLAGS
20225
20226# A C compiler.
20227LTCC=$lt_LTCC
20228
20229# LTCC compiler flags.
20230LTCFLAGS=$lt_LTCFLAGS
20231
20232# A language-specific compiler.
20233CC=$lt_compiler_RC
20234
20235# Is the compiler the GNU C compiler?
20236with_gcc=$GCC_RC
20237
20238# An ERE matcher.
20239EGREP=$lt_EGREP
20240
20241# The linker used to build libraries.
20242LD=$lt_LD_RC
20243
20244# Whether we need hard or soft links.
20245LN_S=$lt_LN_S
20246
20247# A BSD-compatible nm program.
20248NM=$lt_NM
20249
20250# A symbol stripping program
20251STRIP=$lt_STRIP
20252
20253# Used to examine libraries when file_magic_cmd begins "file"
20254MAGIC_CMD=$MAGIC_CMD
20255
20256# Used on cygwin: DLL creation program.
20257DLLTOOL="$DLLTOOL"
20258
20259# Used on cygwin: object dumper.
20260OBJDUMP="$OBJDUMP"
20261
20262# Used on cygwin: assembler.
20263AS="$AS"
20264
20265# The name of the directory that contains temporary libtool files.
20266objdir=$objdir
20267
20268# How to create reloadable object files.
20269reload_flag=$lt_reload_flag
20270reload_cmds=$lt_reload_cmds
20271
20272# How to pass a linker flag through the compiler.
20273wl=$lt_lt_prog_compiler_wl_RC
20274
20275# Object file suffix (normally "o").
20276objext="$ac_objext"
20277
20278# Old archive suffix (normally "a").
20279libext="$libext"
20280
20281# Shared library suffix (normally ".so").
20282shrext_cmds='$shrext_cmds'
20283
20284# Executable file suffix (normally "").
20285exeext="$exeext"
20286
20287# Additional compiler flags for building library objects.
20288pic_flag=$lt_lt_prog_compiler_pic_RC
20289pic_mode=$pic_mode
20290
20291# What is the maximum length of a command?
20292max_cmd_len=$lt_cv_sys_max_cmd_len
20293
20294# Does compiler simultaneously support -c and -o options?
20295compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20296
20297# Must we lock files when doing compilation?
20298need_locks=$lt_need_locks
20299
20300# Do we need the lib prefix for modules?
20301need_lib_prefix=$need_lib_prefix
20302
20303# Do we need a version for libraries?
20304need_version=$need_version
20305
20306# Whether dlopen is supported.
20307dlopen_support=$enable_dlopen
20308
20309# Whether dlopen of programs is supported.
20310dlopen_self=$enable_dlopen_self
20311
20312# Whether dlopen of statically linked programs is supported.
20313dlopen_self_static=$enable_dlopen_self_static
20314
20315# Compiler flag to prevent dynamic linking.
20316link_static_flag=$lt_lt_prog_compiler_static_RC
20317
20318# Compiler flag to turn off builtin functions.
20319no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20320
20321# Compiler flag to allow reflexive dlopens.
20322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20323
20324# Compiler flag to generate shared objects directly from archives.
20325whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20326
20327# Compiler flag to generate thread-safe objects.
20328thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20329
20330# Library versioning type.
20331version_type=$version_type
20332
20333# Format of library name prefix.
20334libname_spec=$lt_libname_spec
20335
20336# List of archive names.  First name is the real one, the rest are links.
20337# The last name is the one that the linker finds with -lNAME.
20338library_names_spec=$lt_library_names_spec
20339
20340# The coded name of the library, if different from the real name.
20341soname_spec=$lt_soname_spec
20342
20343# Commands used to build and install an old-style archive.
20344RANLIB=$lt_RANLIB
20345old_archive_cmds=$lt_old_archive_cmds_RC
20346old_postinstall_cmds=$lt_old_postinstall_cmds
20347old_postuninstall_cmds=$lt_old_postuninstall_cmds
20348
20349# Create an old-style archive from a shared archive.
20350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20351
20352# Create a temporary old-style archive to link instead of a shared archive.
20353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20354
20355# Commands used to build and install a shared archive.
20356archive_cmds=$lt_archive_cmds_RC
20357archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20358postinstall_cmds=$lt_postinstall_cmds
20359postuninstall_cmds=$lt_postuninstall_cmds
20360
20361# Commands used to build a loadable module (assumed same as above if empty)
20362module_cmds=$lt_module_cmds_RC
20363module_expsym_cmds=$lt_module_expsym_cmds_RC
20364
20365# Commands to strip libraries.
20366old_striplib=$lt_old_striplib
20367striplib=$lt_striplib
20368
20369# Dependencies to place before the objects being linked to create a
20370# shared library.
20371predep_objects=$lt_predep_objects_RC
20372
20373# Dependencies to place after the objects being linked to create a
20374# shared library.
20375postdep_objects=$lt_postdep_objects_RC
20376
20377# Dependencies to place before the objects being linked to create a
20378# shared library.
20379predeps=$lt_predeps_RC
20380
20381# Dependencies to place after the objects being linked to create a
20382# shared library.
20383postdeps=$lt_postdeps_RC
20384
20385# The library search path used internally by the compiler when linking
20386# a shared library.
20387compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20388
20389# Method to check whether dependent libraries are shared objects.
20390deplibs_check_method=$lt_deplibs_check_method
20391
20392# Command to use when deplibs_check_method == file_magic.
20393file_magic_cmd=$lt_file_magic_cmd
20394
20395# Flag that allows shared libraries with undefined symbols to be built.
20396allow_undefined_flag=$lt_allow_undefined_flag_RC
20397
20398# Flag that forces no undefined symbols.
20399no_undefined_flag=$lt_no_undefined_flag_RC
20400
20401# Commands used to finish a libtool library installation in a directory.
20402finish_cmds=$lt_finish_cmds
20403
20404# Same as above, but a single script fragment to be evaled but not shown.
20405finish_eval=$lt_finish_eval
20406
20407# Take the output of nm and produce a listing of raw symbols and C names.
20408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20409
20410# Transform the output of nm in a proper C declaration
20411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20412
20413# Transform the output of nm in a C name address pair
20414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20415
20416# This is the shared library runtime path variable.
20417runpath_var=$runpath_var
20418
20419# This is the shared library path variable.
20420shlibpath_var=$shlibpath_var
20421
20422# Is shlibpath searched before the hard-coded library search path?
20423shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20424
20425# How to hardcode a shared library path into an executable.
20426hardcode_action=$hardcode_action_RC
20427
20428# Whether we should hardcode library paths into libraries.
20429hardcode_into_libs=$hardcode_into_libs
20430
20431# Flag to hardcode \$libdir into a binary during linking.
20432# This must work even if \$libdir does not exist.
20433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20434
20435# If ld is used when linking, flag to hardcode \$libdir into
20436# a binary during linking. This must work even if \$libdir does
20437# not exist.
20438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20439
20440# Whether we need a single -rpath flag with a separated argument.
20441hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20442
20443# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20444# resulting binary.
20445hardcode_direct=$hardcode_direct_RC
20446
20447# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20448# resulting binary.
20449hardcode_minus_L=$hardcode_minus_L_RC
20450
20451# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20452# the resulting binary.
20453hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20454
20455# Set to yes if building a shared library automatically hardcodes DIR into the library
20456# and all subsequent libraries and executables linked against it.
20457hardcode_automatic=$hardcode_automatic_RC
20458
20459# Variables whose values should be saved in libtool wrapper scripts and
20460# restored at relink time.
20461variables_saved_for_relink="$variables_saved_for_relink"
20462
20463# Whether libtool must link a program against all its dependency libraries.
20464link_all_deplibs=$link_all_deplibs_RC
20465
20466# Compile-time system search path for libraries
20467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20468
20469# Run-time system search path for libraries
20470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20471
20472# Fix the shell variable \$srcfile for the compiler.
20473fix_srcfile_path="$fix_srcfile_path_RC"
20474
20475# Set to yes if exported symbols are required.
20476always_export_symbols=$always_export_symbols_RC
20477
20478# The commands to list exported symbols.
20479export_symbols_cmds=$lt_export_symbols_cmds_RC
20480
20481# The commands to extract the exported symbol list from a shared archive.
20482extract_expsyms_cmds=$lt_extract_expsyms_cmds
20483
20484# Symbols that should not be listed in the preloaded symbols.
20485exclude_expsyms=$lt_exclude_expsyms_RC
20486
20487# Symbols that must always be exported.
20488include_expsyms=$lt_include_expsyms_RC
20489
20490# ### END LIBTOOL TAG CONFIG: $tagname
20491
20492__EOF__
20493
20494
20495else
20496  # If there is no Makefile yet, we rely on a make rule to execute
20497  # `config.status --recheck' to rerun these tests and create the
20498  # libtool script then.
20499  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20500  if test -f "$ltmain_in"; then
20501    test -f Makefile && make "$ltmain"
20502  fi
20503fi
20504
20505
20506ac_ext=c
20507ac_cpp='$CPP $CPPFLAGS'
20508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20510ac_compiler_gnu=$ac_cv_c_compiler_gnu
20511
20512CC="$lt_save_CC"
20513
20514	;;
20515
20516      *)
20517	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20518echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20519   { (exit 1); exit 1; }; }
20520	;;
20521      esac
20522
20523      # Append the new tag name to the list of available tags.
20524      if test -n "$tagname" ; then
20525      available_tags="$available_tags $tagname"
20526    fi
20527    fi
20528  done
20529  IFS="$lt_save_ifs"
20530
20531  # Now substitute the updated list of available tags.
20532  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20533    mv "${ofile}T" "$ofile"
20534    chmod +x "$ofile"
20535  else
20536    rm -f "${ofile}T"
20537    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20538echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20539   { (exit 1); exit 1; }; }
20540  fi
20541fi
20542
20543
20544
20545# This can be used to rebuild libtool when needed
20546LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20547
20548# Always use our own libtool.
20549LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20550
20551# Prevent multiple expansion
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20564 # AC_REQUIRE([AC_COIN_DLFCN_H])
20565
20566# NEW: If libtool exists in the directory higher up, we use that one
20567#      instead of creating a new one
20568
20569# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20570# out in front of this macro body. You'll notice that LIBTOOL is already
20571# defined here.  We'll have to count on this macro not being called if libtool
20572# already exists, or at least move the libtool fixes outside the conditional.
20573# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20574# This test is therefore removed.  -- lh, 061214 --
20575# if test "x$LIBTOOL" = x; then
20576
20577# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20588
20589
20590
20591  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20592echo "$as_me: Build is \"$build\"." >&6;}
20593  mydos2unix='| dos2unix'
20594  case $build in
20595    *-mingw*)
20596      CYGPATH_W=echo
20597      ;;
20598  esac
20599
20600  case $build in
20601    # Here we need to check if -m32 is specified.  If so, we need to correct
20602    # sys_lib_search_path_spec
20603    *-cygwin* | *-mingw*)
20604       case "$CXX" in
20605    clang* )
20606      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20607      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20608echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20609      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20610	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20611	  -e 's|libext="lib"|libext="a"|' \
20612      libtool > conftest.bla
20613      ;;
20614    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20615      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20616echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20617      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20618	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20619	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20620	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20621	  -e 's%lib /OUT:%lib -OUT:%' \
20622	  -e "s%cygpath -w%$CYGPATH_W%" \
20623	  -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%' \
20624	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20625	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20626	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20627	  -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"%' \
20628      libtool > conftest.bla
20629      ;;
20630    *)
20631      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20632echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20633      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20634	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20635	  -e 's|libext="lib"|libext="a"|' \
20636      libtool > conftest.bla
20637      ;;
20638  esac
20639  mv conftest.bla libtool
20640  chmod 755 libtool
20641
20642      ;;
20643    *x86_64-*)
20644      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20645        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20646echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20647        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20648        mv conftest.bla libtool
20649        chmod 755 libtool
20650      fi
20651      ;;
20652
20653    *-solaris*)
20654       if test "$GCC" = yes && \
20655     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20656    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20657    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20658      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20659echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20660      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20661      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20662      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20663	# AC_MSG_NOTICE(Compensating for broken gcc)
20664	for lib in $fixlibtmp ; do
20665	  if test -d "${lib}${hdwisa}" ; then
20666	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20667	  fi
20668	done
20669	syslibpath64="${syslibpath64} ${fixlibtmp}"
20670      else
20671	syslibpath64="$fixlibtmp"
20672      fi
20673      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20674      mv conftest.bla libtool
20675      chmod 755 libtool
20676    fi
20677    # AC_MSG_NOTICE(Result is )
20678    # $EGREP 'sys_lib_search_path_spec=' libtool
20679  fi
20680      ;;
20681    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20682    *-darwin*)
20683      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20684echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20685      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"/' \
20686        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20687      libtool > conftest.bla
20688
20689      mv conftest.bla libtool
20690      chmod 755 libtool
20691      ;;
20692  esac
20693# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20694# the macro. -- lh, 061214 --
20695# fi
20696
20697# AC_MSG_NOTICE([End libtool initialisation.])
20698
20699# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20700  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20701  # of the shared objects
20702  RPATH_FLAGS=
20703
20704if test $enable_shared = yes; then
20705  case $build in
20706    *-linux-*)
20707      if test "$GXX" = "yes"; then
20708        RPATH_FLAGS=
20709        for dir in $abs_lib_dir; do
20710          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20711        done
20712      fi ;;
20713    *-darwin*)
20714        RPATH_FLAGS=nothing ;;
20715    *-ibm-*)
20716      case "$CXX" in
20717      xlC* | */xlC* | mpxlC* | */mpxlC*)
20718        RPATH_FLAGS=nothing ;;
20719      esac ;;
20720    *-hp-*)
20721        RPATH_FLAGS=nothing ;;
20722    *-mingw32)
20723        RPATH_FLAGS=nothing ;;
20724    *-*-solaris*)
20725        RPATH_FLAGS=
20726        for dir in $abs_lib_dir; do
20727          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20728        done
20729  esac
20730
20731  if test "$RPATH_FLAGS" = ""; then
20732    { 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
20733echo "$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;}
20734  fi
20735  if test "$RPATH_FLAGS" = "nothing"; then
20736    RPATH_FLAGS=
20737  fi
20738fi
20739
20740
20741
20742
20743else
20744
20745  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20746echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20747  # get all missing information from the config.log file
20748
20749  # output variables and defines
20750  as_save_IFS=$IFS
20751  IFS='
20752'
20753  for oneline in `cat $coin_config_dir/config.status`; do
20754    case "$oneline" in
20755         # First some automake conditionals
20756      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20757      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20758      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20759      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20760        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20761#        echo "$command"
20762        eval "$command"
20763        ;;
20764      s,@DEFS@* )
20765        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20766#        echo "$command"
20767        eval "$command"
20768        ;;
20769    esac
20770  done
20771  IFS=$as_save_IFS
20772
20773  # And some defines (assuming here that the packages base dir
20774  # doesn't have a config.h file
20775  for word in $defsline; do
20776#    echo word $word
20777    case $word in
20778      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20779        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20780#        echo dd $i
20781        echo $i >>confdefs.h
20782        ;;
20783    esac
20784  done
20785fi
20786
20787# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20788
20789# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20790if test "${enable_dependency_linking+set}" = set; then
20791  enableval="$enable_dependency_linking"
20792  dependency_linking="$enableval"
20793else
20794  dependency_linking=auto
20795fi;
20796
20797if test "$dependency_linking" = auto; then
20798  # On Cygwin and AIX, building DLLs doesn't work
20799  dependency_linking=no
20800  if test x"$coin_disable_shared" = xno; then
20801    case $build in
20802      *-cygwin* | *-mingw*)
20803        case "$CC" in
20804          clang* )
20805            dependency_linking=yes
20806            ;;
20807          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20808            dependency_linking=no
20809            ;;
20810          *gcc*)
20811            dependency_linking=yes
20812            ;;
20813          *)
20814            dependency_linking=yes
20815            ;;
20816        esac
20817        ;;
20818      *)
20819        dependency_linking=yes
20820        ;;
20821    esac
20822  fi
20823fi
20824
20825if test "$dependency_linking" = yes ;
20826then
20827  LT_LDFLAGS="-no-undefined"
20828else
20829  LT_LDFLAGS=
20830fi
20831
20832
20833
20834if test "$dependency_linking" = yes; then
20835  DEPENDENCY_LINKING_TRUE=
20836  DEPENDENCY_LINKING_FALSE='#'
20837else
20838  DEPENDENCY_LINKING_TRUE='#'
20839  DEPENDENCY_LINKING_FALSE=
20840fi
20841
20842
20843# Check if we want to set the library version
20844echo "$as_me:$LINENO: checking if library version is set" >&5
20845echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20846if test x"$coin_libversion" != x; then
20847  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20848  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20849echo "${ECHO_T}$coin_libversion" >&6
20850else
20851  echo "$as_me:$LINENO: result: no" >&5
20852echo "${ECHO_T}no" >&6
20853fi
20854
20855
20856
20857#END
20858}
20859# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20860
20861
20862#############################################################################
20863#                  Check which subprojects are there                        #
20864#############################################################################
20865
20866
20867echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
20868echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
20869
20870coin_has_coinutils=notGiven
20871coin_reason=
20872
20873# check if user wants to skip project in any case
20874
20875if test x"$COIN_SKIP_PROJECTS" != x; then
20876  for dir in $COIN_SKIP_PROJECTS; do
20877    if test $dir = "CoinUtils"; then
20878      coin_has_coinutils="no"
20879      coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
20880    fi
20881
20882  done
20883fi
20884
20885if test "$coin_has_coinutils" != no; then
20886
20887# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20888if test "${with_coinutils+set}" = set; then
20889  withval="$with_coinutils"
20890  if test "$withval" = no ; then
20891       coin_has_coinutils="no"
20892       coin_reason="--without-coinutils has been specified"
20893     fi
20894
20895fi;
20896fi
20897
20898if test "$coin_has_coinutils" != no; then
20899
20900# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20901if test "${with_coinutils_lib+set}" = set; then
20902  withval="$with_coinutils_lib"
20903  if test "$withval" = no ; then
20904       coin_has_coinutils="no"
20905       coin_reason="--without-coinutils-lib has been specified"
20906     else
20907       coin_has_coinutils="no"
20908       coin_reason="--with-coinutils-lib has been specified"
20909     fi
20910fi;
20911fi
20912
20913if test "$coin_has_coinutils" != no; then
20914
20915# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20916if test "${with_coinutils_incdir+set}" = set; then
20917  withval="$with_coinutils_incdir"
20918  if test "$withval" = no ; then
20919       coin_has_coinutils="no"
20920       coin_reason="--without-coinutils-incdir has been specified"
20921     else
20922       coin_has_coinutils="no"
20923       coin_reason="--with-coinutils-incdir has been specified"
20924     fi
20925fi;
20926fi
20927
20928if test "$coin_has_coinutils" != no; then
20929
20930# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20931if test "${with_coinutils_datadir+set}" = set; then
20932  withval="$with_coinutils_datadir"
20933  if test "$withval" = no ; then
20934       coin_has_coinutils="no"
20935       coin_reason="--without-coinutils-datadir has been specified"
20936     else
20937       coin_has_coinutils="no"
20938       coin_reason="--with-coinutils-datadir has been specified"
20939     fi
20940fi;
20941fi
20942
20943
20944
20945
20946
20947# check if project is available in present directory
20948if test "$coin_has_coinutils" = notGiven; then
20949  coin_has_coinutils=no
20950  if test -d $srcdir/CoinUtils; then
20951    coin_reason="source in CoinUtils"
20952    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20953    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20954    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20955     coin_has_coinutils="yes"
20956
20957  fi
20958fi
20959
20960if test -z "$coin_reason" ; then
20961  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
20962echo "${ECHO_T}$coin_has_coinutils" >&6
20963else
20964  echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
20965echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
20966fi
20967
20968if test "$coin_has_coinutils" = yes ; then
20969  if test -r $srcdir/CoinUtils/configure; then
20970    coin_subdirs="$coin_subdirs CoinUtils"
20971
20972
20973subdirs="$subdirs CoinUtils"
20974
20975  fi
20976fi
20977
20978
20979echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
20980echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
20981
20982coin_has_blas=notGiven
20983coin_reason=
20984
20985# check if user wants to skip project in any case
20986
20987if test x"$COIN_SKIP_PROJECTS" != x; then
20988  for dir in $COIN_SKIP_PROJECTS; do
20989    if test $dir = "Blas"; then
20990      coin_has_blas="no"
20991      coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
20992    fi
20993
20994    if test $dir = "ThirdParty/Blas"; then
20995      coin_has_blas="no"
20996      coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
20997    fi
20998  done
20999fi
21000
21001if test "$coin_has_blas" != no; then
21002
21003# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
21004if test "${with_blas+set}" = set; then
21005  withval="$with_blas"
21006  if test "$withval" = no ; then
21007       coin_has_blas="no"
21008       coin_reason="--without-blas has been specified"
21009     fi
21010
21011fi;
21012fi
21013
21014if test "$coin_has_blas" != no; then
21015
21016# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
21017if test "${with_blas_lib+set}" = set; then
21018  withval="$with_blas_lib"
21019  if test "$withval" = no ; then
21020       coin_has_blas="no"
21021       coin_reason="--without-blas-lib has been specified"
21022     else
21023       coin_has_blas="no"
21024       coin_reason="--with-blas-lib has been specified"
21025     fi
21026fi;
21027fi
21028
21029if test "$coin_has_blas" != no; then
21030
21031# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
21032if test "${with_blas_incdir+set}" = set; then
21033  withval="$with_blas_incdir"
21034  if test "$withval" = no ; then
21035       coin_has_blas="no"
21036       coin_reason="--without-blas-incdir has been specified"
21037     else
21038       coin_has_blas="no"
21039       coin_reason="--with-blas-incdir has been specified"
21040     fi
21041fi;
21042fi
21043
21044if test "$coin_has_blas" != no; then
21045
21046# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
21047if test "${with_blas_datadir+set}" = set; then
21048  withval="$with_blas_datadir"
21049  if test "$withval" = no ; then
21050       coin_has_blas="no"
21051       coin_reason="--without-blas-datadir has been specified"
21052     else
21053       coin_has_blas="no"
21054       coin_reason="--with-blas-datadir has been specified"
21055     fi
21056fi;
21057fi
21058
21059
21060  if test $coin_has_blas != no; then
21061    #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
21062
21063# Check whether --with-blas or --without-blas was given.
21064if test "${with_blas+set}" = set; then
21065  withval="$with_blas"
21066  if test x"$withval" = "xno" ; then
21067           coin_has_blas="no"
21068           coin_reason="--without-blas has been specified"
21069         elif test x"$withval" != "xBUILD" ; then
21070           coin_has_blas="no"
21071           coin_reason="--with-blas has been specified"
21072         fi
21073fi;
21074  fi
21075
21076
21077
21078
21079# check if project is available in present directory
21080if test "$coin_has_blas" = notGiven; then
21081  coin_has_blas=no
21082  if test -d $srcdir/ThirdParty/Blas; then
21083    coin_reason="source in ThirdParty/Blas"
21084    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21085    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21086    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21087    for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21088         if test -r $i; then
21089           coin_has_blas="yes"
21090         else
21091           coin_has_blas="no"
21092           coin_reason="source file $i not available"
21093           break
21094         fi
21095       done
21096
21097  fi
21098fi
21099
21100if test -z "$coin_reason" ; then
21101  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21102echo "${ECHO_T}$coin_has_blas" >&6
21103else
21104  echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21105echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21106fi
21107
21108if test "$coin_has_blas" = yes ; then
21109  if test -r $srcdir/ThirdParty/Blas/configure; then
21110    coin_subdirs="$coin_subdirs ThirdParty/Blas"
21111
21112
21113subdirs="$subdirs ThirdParty/Blas"
21114
21115  fi
21116fi
21117
21118
21119echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21120echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21121
21122coin_has_lapack=notGiven
21123coin_reason=
21124
21125# check if user wants to skip project in any case
21126
21127if test x"$COIN_SKIP_PROJECTS" != x; then
21128  for dir in $COIN_SKIP_PROJECTS; do
21129    if test $dir = "Lapack"; then
21130      coin_has_lapack="no"
21131      coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21132    fi
21133
21134    if test $dir = "ThirdParty/Lapack"; then
21135      coin_has_lapack="no"
21136      coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21137    fi
21138  done
21139fi
21140
21141if test "$coin_has_lapack" != no; then
21142
21143# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21144if test "${with_lapack+set}" = set; then
21145  withval="$with_lapack"
21146  if test "$withval" = no ; then
21147       coin_has_lapack="no"
21148       coin_reason="--without-lapack has been specified"
21149     fi
21150
21151fi;
21152fi
21153
21154if test "$coin_has_lapack" != no; then
21155
21156# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21157if test "${with_lapack_lib+set}" = set; then
21158  withval="$with_lapack_lib"
21159  if test "$withval" = no ; then
21160       coin_has_lapack="no"
21161       coin_reason="--without-lapack-lib has been specified"
21162     else
21163       coin_has_lapack="no"
21164       coin_reason="--with-lapack-lib has been specified"
21165     fi
21166fi;
21167fi
21168
21169if test "$coin_has_lapack" != no; then
21170
21171# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21172if test "${with_lapack_incdir+set}" = set; then
21173  withval="$with_lapack_incdir"
21174  if test "$withval" = no ; then
21175       coin_has_lapack="no"
21176       coin_reason="--without-lapack-incdir has been specified"
21177     else
21178       coin_has_lapack="no"
21179       coin_reason="--with-lapack-incdir has been specified"
21180     fi
21181fi;
21182fi
21183
21184if test "$coin_has_lapack" != no; then
21185
21186# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21187if test "${with_lapack_datadir+set}" = set; then
21188  withval="$with_lapack_datadir"
21189  if test "$withval" = no ; then
21190       coin_has_lapack="no"
21191       coin_reason="--without-lapack-datadir has been specified"
21192     else
21193       coin_has_lapack="no"
21194       coin_reason="--with-lapack-datadir has been specified"
21195     fi
21196fi;
21197fi
21198
21199
21200
21201
21202  if test $coin_has_lapack != no; then
21203    #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21204
21205# Check whether --with-lapack or --without-lapack was given.
21206if test "${with_lapack+set}" = set; then
21207  withval="$with_lapack"
21208  if test x"$withval" = "xno" ; then
21209           coin_has_lapack="no"
21210           coin_reason="--without-lapack has been specified"
21211         elif test x"$withval" != "xBUILD" ; then
21212           coin_has_lapack="no"
21213           coin_reason="--with-lapack has been specified"
21214         fi
21215fi;
21216  fi
21217
21218
21219# check if project is available in present directory
21220if test "$coin_has_lapack" = notGiven; then
21221  coin_has_lapack=no
21222  if test -d $srcdir/ThirdParty/Lapack; then
21223    coin_reason="source in ThirdParty/Lapack"
21224    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21225    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21226    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21227    for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21228         if test -r $i; then
21229           coin_has_lapack="yes"
21230         else
21231           coin_has_lapack="no"
21232           coin_reason="source file $i not available"
21233           break
21234         fi
21235       done
21236
21237  fi
21238fi
21239
21240if test -z "$coin_reason" ; then
21241  echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21242echo "${ECHO_T}$coin_has_lapack" >&6
21243else
21244  echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21245echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21246fi
21247
21248if test "$coin_has_lapack" = yes ; then
21249  if test -r $srcdir/ThirdParty/Lapack/configure; then
21250    coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21251
21252
21253subdirs="$subdirs ThirdParty/Lapack"
21254
21255  fi
21256fi
21257
21258
21259echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
21260echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
21261
21262coin_has_glpk=notGiven
21263coin_reason=
21264
21265# check if user wants to skip project in any case
21266
21267if test x"$COIN_SKIP_PROJECTS" != x; then
21268  for dir in $COIN_SKIP_PROJECTS; do
21269    if test $dir = "Glpk"; then
21270      coin_has_glpk="no"
21271      coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
21272    fi
21273
21274    if test $dir = "ThirdParty/Glpk"; then
21275      coin_has_glpk="no"
21276      coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
21277    fi
21278  done
21279fi
21280
21281if test "$coin_has_glpk" != no; then
21282
21283# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
21284if test "${with_glpk+set}" = set; then
21285  withval="$with_glpk"
21286  if test "$withval" = no ; then
21287       coin_has_glpk="no"
21288       coin_reason="--without-glpk has been specified"
21289     fi
21290
21291fi;
21292fi
21293
21294if test "$coin_has_glpk" != no; then
21295
21296# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
21297if test "${with_glpk_lib+set}" = set; then
21298  withval="$with_glpk_lib"
21299  if test "$withval" = no ; then
21300       coin_has_glpk="no"
21301       coin_reason="--without-glpk-lib has been specified"
21302     else
21303       coin_has_glpk="no"
21304       coin_reason="--with-glpk-lib has been specified"
21305     fi
21306fi;
21307fi
21308
21309if test "$coin_has_glpk" != no; then
21310
21311# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
21312if test "${with_glpk_incdir+set}" = set; then
21313  withval="$with_glpk_incdir"
21314  if test "$withval" = no ; then
21315       coin_has_glpk="no"
21316       coin_reason="--without-glpk-incdir has been specified"
21317     else
21318       coin_has_glpk="no"
21319       coin_reason="--with-glpk-incdir has been specified"
21320     fi
21321fi;
21322fi
21323
21324if test "$coin_has_glpk" != no; then
21325
21326# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
21327if test "${with_glpk_datadir+set}" = set; then
21328  withval="$with_glpk_datadir"
21329  if test "$withval" = no ; then
21330       coin_has_glpk="no"
21331       coin_reason="--without-glpk-datadir has been specified"
21332     else
21333       coin_has_glpk="no"
21334       coin_reason="--with-glpk-datadir has been specified"
21335     fi
21336fi;
21337fi
21338
21339
21340
21341
21342
21343# check if project is available in present directory
21344if test "$coin_has_glpk" = notGiven; then
21345  coin_has_glpk=no
21346  if test -d $srcdir/ThirdParty/Glpk; then
21347    coin_reason="source in ThirdParty/Glpk"
21348    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21349    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21350    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21351    for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do
21352         if test -r $i; then
21353           coin_has_glpk="yes"
21354         else
21355           coin_has_glpk="no"
21356           coin_reason="source file $i not available"
21357           break
21358         fi
21359       done
21360
21361  fi
21362fi
21363
21364if test -z "$coin_reason" ; then
21365  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
21366echo "${ECHO_T}$coin_has_glpk" >&6
21367else
21368  echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
21369echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
21370fi
21371
21372if test "$coin_has_glpk" = yes ; then
21373  if test -r $srcdir/ThirdParty/Glpk/configure; then
21374    coin_subdirs="$coin_subdirs ThirdParty/Glpk"
21375
21376
21377subdirs="$subdirs ThirdParty/Glpk"
21378
21379  fi
21380fi
21381
21382
21383echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21384echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21385
21386coin_has_sample=notGiven
21387coin_reason=
21388
21389# check if user wants to skip project in any case
21390
21391if test x"$COIN_SKIP_PROJECTS" != x; then
21392  for dir in $COIN_SKIP_PROJECTS; do
21393    if test $dir = "Sample"; then
21394      coin_has_sample="no"
21395      coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21396    fi
21397
21398    if test $dir = "Data/Sample"; then
21399      coin_has_sample="no"
21400      coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21401    fi
21402  done
21403fi
21404
21405if test "$coin_has_sample" != no; then
21406
21407# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21408if test "${with_sample+set}" = set; then
21409  withval="$with_sample"
21410  if test "$withval" = no ; then
21411       coin_has_sample="no"
21412       coin_reason="--without-sample has been specified"
21413     fi
21414
21415fi;
21416fi
21417
21418if test "$coin_has_sample" != no; then
21419
21420# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21421if test "${with_sample_lib+set}" = set; then
21422  withval="$with_sample_lib"
21423  if test "$withval" = no ; then
21424       coin_has_sample="no"
21425       coin_reason="--without-sample-lib has been specified"
21426     else
21427       coin_has_sample="no"
21428       coin_reason="--with-sample-lib has been specified"
21429     fi
21430fi;
21431fi
21432
21433if test "$coin_has_sample" != no; then
21434
21435# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21436if test "${with_sample_incdir+set}" = set; then
21437  withval="$with_sample_incdir"
21438  if test "$withval" = no ; then
21439       coin_has_sample="no"
21440       coin_reason="--without-sample-incdir has been specified"
21441     else
21442       coin_has_sample="no"
21443       coin_reason="--with-sample-incdir has been specified"
21444     fi
21445fi;
21446fi
21447
21448if test "$coin_has_sample" != no; then
21449
21450# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21451if test "${with_sample_datadir+set}" = set; then
21452  withval="$with_sample_datadir"
21453  if test "$withval" = no ; then
21454       coin_has_sample="no"
21455       coin_reason="--without-sample-datadir has been specified"
21456     else
21457       coin_has_sample="no"
21458       coin_reason="--with-sample-datadir has been specified"
21459     fi
21460fi;
21461fi
21462
21463
21464
21465
21466
21467# check if project is available in present directory
21468if test "$coin_has_sample" = notGiven; then
21469  coin_has_sample=no
21470  if test -d $srcdir/Data/Sample; then
21471    coin_reason="source in Data/Sample"
21472    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21473    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21474    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21475     coin_has_sample="yes"
21476
21477  fi
21478fi
21479
21480if test -z "$coin_reason" ; then
21481  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21482echo "${ECHO_T}$coin_has_sample" >&6
21483else
21484  echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21485echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21486fi
21487
21488if test "$coin_has_sample" = yes ; then
21489  if test -r $srcdir/Data/Sample/configure; then
21490    coin_subdirs="$coin_subdirs Data/Sample"
21491
21492
21493subdirs="$subdirs Data/Sample"
21494
21495  fi
21496fi
21497
21498
21499echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21500echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21501
21502coin_has_osi=notGiven
21503coin_reason=
21504
21505# check if user wants to skip project in any case
21506
21507if test x"$COIN_SKIP_PROJECTS" != x; then
21508  for dir in $COIN_SKIP_PROJECTS; do
21509    if test $dir = "Osi"; then
21510      coin_has_osi="no"
21511      coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21512    fi
21513
21514  done
21515fi
21516
21517if test "$coin_has_osi" != no; then
21518
21519# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21520if test "${with_osi+set}" = set; then
21521  withval="$with_osi"
21522  if test "$withval" = no ; then
21523       coin_has_osi="no"
21524       coin_reason="--without-osi has been specified"
21525     fi
21526
21527fi;
21528fi
21529
21530if test "$coin_has_osi" != no; then
21531
21532# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21533if test "${with_osi_lib+set}" = set; then
21534  withval="$with_osi_lib"
21535  if test "$withval" = no ; then
21536       coin_has_osi="no"
21537       coin_reason="--without-osi-lib has been specified"
21538     else
21539       coin_has_osi="no"
21540       coin_reason="--with-osi-lib has been specified"
21541     fi
21542fi;
21543fi
21544
21545if test "$coin_has_osi" != no; then
21546
21547# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21548if test "${with_osi_incdir+set}" = set; then
21549  withval="$with_osi_incdir"
21550  if test "$withval" = no ; then
21551       coin_has_osi="no"
21552       coin_reason="--without-osi-incdir has been specified"
21553     else
21554       coin_has_osi="no"
21555       coin_reason="--with-osi-incdir has been specified"
21556     fi
21557fi;
21558fi
21559
21560if test "$coin_has_osi" != no; then
21561
21562# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21563if test "${with_osi_datadir+set}" = set; then
21564  withval="$with_osi_datadir"
21565  if test "$withval" = no ; then
21566       coin_has_osi="no"
21567       coin_reason="--without-osi-datadir has been specified"
21568     else
21569       coin_has_osi="no"
21570       coin_reason="--with-osi-datadir has been specified"
21571     fi
21572fi;
21573fi
21574
21575
21576
21577
21578
21579# check if project is available in present directory
21580if test "$coin_has_osi" = notGiven; then
21581  coin_has_osi=no
21582  if test -d $srcdir/Osi; then
21583    coin_reason="source in Osi"
21584    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21585    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21586    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21587     coin_has_osi="yes"
21588
21589  fi
21590fi
21591
21592if test -z "$coin_reason" ; then
21593  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21594echo "${ECHO_T}$coin_has_osi" >&6
21595else
21596  echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21597echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21598fi
21599
21600if test "$coin_has_osi" = yes ; then
21601  if test -r $srcdir/Osi/configure; then
21602    coin_subdirs="$coin_subdirs Osi"
21603
21604
21605subdirs="$subdirs Osi"
21606
21607  fi
21608fi
21609
21610
21611echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
21612echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
21613
21614coin_has_clp=notGiven
21615coin_reason=
21616
21617# check if user wants to skip project in any case
21618
21619if test x"$COIN_SKIP_PROJECTS" != x; then
21620  for dir in $COIN_SKIP_PROJECTS; do
21621    if test $dir = "Clp"; then
21622      coin_has_clp="no"
21623      coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
21624    fi
21625
21626  done
21627fi
21628
21629if test "$coin_has_clp" != no; then
21630
21631# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
21632if test "${with_clp+set}" = set; then
21633  withval="$with_clp"
21634  if test "$withval" = no ; then
21635       coin_has_clp="no"
21636       coin_reason="--without-clp has been specified"
21637     fi
21638
21639fi;
21640fi
21641
21642if test "$coin_has_clp" != no; then
21643
21644# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
21645if test "${with_clp_lib+set}" = set; then
21646  withval="$with_clp_lib"
21647  if test "$withval" = no ; then
21648       coin_has_clp="no"
21649       coin_reason="--without-clp-lib has been specified"
21650     else
21651       coin_has_clp="no"
21652       coin_reason="--with-clp-lib has been specified"
21653     fi
21654fi;
21655fi
21656
21657if test "$coin_has_clp" != no; then
21658
21659# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
21660if test "${with_clp_incdir+set}" = set; then
21661  withval="$with_clp_incdir"
21662  if test "$withval" = no ; then
21663       coin_has_clp="no"
21664       coin_reason="--without-clp-incdir has been specified"
21665     else
21666       coin_has_clp="no"
21667       coin_reason="--with-clp-incdir has been specified"
21668     fi
21669fi;
21670fi
21671
21672if test "$coin_has_clp" != no; then
21673
21674# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
21675if test "${with_clp_datadir+set}" = set; then
21676  withval="$with_clp_datadir"
21677  if test "$withval" = no ; then
21678       coin_has_clp="no"
21679       coin_reason="--without-clp-datadir has been specified"
21680     else
21681       coin_has_clp="no"
21682       coin_reason="--with-clp-datadir has been specified"
21683     fi
21684fi;
21685fi
21686
21687
21688
21689
21690
21691# check if project is available in present directory
21692if test "$coin_has_clp" = notGiven; then
21693  coin_has_clp=no
21694  if test -d $srcdir/Clp; then
21695    coin_reason="source in Clp"
21696    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21697    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21698    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21699     coin_has_clp="yes"
21700
21701  fi
21702fi
21703
21704if test -z "$coin_reason" ; then
21705  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
21706echo "${ECHO_T}$coin_has_clp" >&6
21707else
21708  echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
21709echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
21710fi
21711
21712if test "$coin_has_clp" = yes ; then
21713  if test -r $srcdir/Clp/configure; then
21714    coin_subdirs="$coin_subdirs Clp"
21715
21716
21717subdirs="$subdirs Clp"
21718
21719  fi
21720fi
21721
21722
21723echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5
21724echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6
21725
21726coin_has_cgl=notGiven
21727coin_reason=
21728
21729# check if user wants to skip project in any case
21730
21731if test x"$COIN_SKIP_PROJECTS" != x; then
21732  for dir in $COIN_SKIP_PROJECTS; do
21733    if test $dir = "Cgl"; then
21734      coin_has_cgl="no"
21735      coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS"
21736    fi
21737
21738  done
21739fi
21740
21741if test "$coin_has_cgl" != no; then
21742
21743# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
21744if test "${with_cgl+set}" = set; then
21745  withval="$with_cgl"
21746  if test "$withval" = no ; then
21747       coin_has_cgl="no"
21748       coin_reason="--without-cgl has been specified"
21749     fi
21750
21751fi;
21752fi
21753
21754if test "$coin_has_cgl" != no; then
21755
21756# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
21757if test "${with_cgl_lib+set}" = set; then
21758  withval="$with_cgl_lib"
21759  if test "$withval" = no ; then
21760       coin_has_cgl="no"
21761       coin_reason="--without-cgl-lib has been specified"
21762     else
21763       coin_has_cgl="no"
21764       coin_reason="--with-cgl-lib has been specified"
21765     fi
21766fi;
21767fi
21768
21769if test "$coin_has_cgl" != no; then
21770
21771# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
21772if test "${with_cgl_incdir+set}" = set; then
21773  withval="$with_cgl_incdir"
21774  if test "$withval" = no ; then
21775       coin_has_cgl="no"
21776       coin_reason="--without-cgl-incdir has been specified"
21777     else
21778       coin_has_cgl="no"
21779       coin_reason="--with-cgl-incdir has been specified"
21780     fi
21781fi;
21782fi
21783
21784if test "$coin_has_cgl" != no; then
21785
21786# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
21787if test "${with_cgl_datadir+set}" = set; then
21788  withval="$with_cgl_datadir"
21789  if test "$withval" = no ; then
21790       coin_has_cgl="no"
21791       coin_reason="--without-cgl-datadir has been specified"
21792     else
21793       coin_has_cgl="no"
21794       coin_reason="--with-cgl-datadir has been specified"
21795     fi
21796fi;
21797fi
21798
21799
21800
21801
21802
21803# check if project is available in present directory
21804if test "$coin_has_cgl" = notGiven; then
21805  coin_has_cgl=no
21806  if test -d $srcdir/Cgl; then
21807    coin_reason="source in Cgl"
21808    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21809    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21810    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21811     coin_has_cgl="yes"
21812
21813  fi
21814fi
21815
21816if test -z "$coin_reason" ; then
21817  echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
21818echo "${ECHO_T}$coin_has_cgl" >&6
21819else
21820  echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5
21821echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6
21822fi
21823
21824if test "$coin_has_cgl" = yes ; then
21825  if test -r $srcdir/Cgl/configure; then
21826    coin_subdirs="$coin_subdirs Cgl"
21827
21828
21829subdirs="$subdirs Cgl"
21830
21831  fi
21832fi
21833
21834
21835echo "$as_me:$LINENO: checking whether source of project Alps is available and should be compiled" >&5
21836echo $ECHO_N "checking whether source of project Alps is available and should be compiled... $ECHO_C" >&6
21837
21838coin_has_alps=notGiven
21839coin_reason=
21840
21841# check if user wants to skip project in any case
21842
21843if test x"$COIN_SKIP_PROJECTS" != x; then
21844  for dir in $COIN_SKIP_PROJECTS; do
21845    if test $dir = "Alps"; then
21846      coin_has_alps="no"
21847      coin_reason="Alps has been specified in COIN_SKIP_PROJECTS"
21848    fi
21849
21850  done
21851fi
21852
21853if test "$coin_has_alps" != no; then
21854
21855# Check whether --with-m4_tolower(Alps) or --without-m4_tolower(Alps) was given.
21856if test "${with_alps+set}" = set; then
21857  withval="$with_alps"
21858  if test "$withval" = no ; then
21859       coin_has_alps="no"
21860       coin_reason="--without-alps has been specified"
21861     fi
21862
21863fi;
21864fi
21865
21866if test "$coin_has_alps" != no; then
21867
21868# Check whether --with-m4_tolower(Alps)-lib or --without-m4_tolower(Alps)-lib was given.
21869if test "${with_alps_lib+set}" = set; then
21870  withval="$with_alps_lib"
21871  if test "$withval" = no ; then
21872       coin_has_alps="no"
21873       coin_reason="--without-alps-lib has been specified"
21874     else
21875       coin_has_alps="no"
21876       coin_reason="--with-alps-lib has been specified"
21877     fi
21878fi;
21879fi
21880
21881if test "$coin_has_alps" != no; then
21882
21883# Check whether --with-m4_tolower(Alps)-incdir or --without-m4_tolower(Alps)-incdir was given.
21884if test "${with_alps_incdir+set}" = set; then
21885  withval="$with_alps_incdir"
21886  if test "$withval" = no ; then
21887       coin_has_alps="no"
21888       coin_reason="--without-alps-incdir has been specified"
21889     else
21890       coin_has_alps="no"
21891       coin_reason="--with-alps-incdir has been specified"
21892     fi
21893fi;
21894fi
21895
21896if test "$coin_has_alps" != no; then
21897
21898# Check whether --with-m4_tolower(Alps)-datadir or --without-m4_tolower(Alps)-datadir was given.
21899if test "${with_alps_datadir+set}" = set; then
21900  withval="$with_alps_datadir"
21901  if test "$withval" = no ; then
21902       coin_has_alps="no"
21903       coin_reason="--without-alps-datadir has been specified"
21904     else
21905       coin_has_alps="no"
21906       coin_reason="--with-alps-datadir has been specified"
21907     fi
21908fi;
21909fi
21910
21911
21912
21913
21914
21915# check if project is available in present directory
21916if test "$coin_has_alps" = notGiven; then
21917  coin_has_alps=no
21918  if test -d $srcdir/Alps; then
21919    coin_reason="source in Alps"
21920    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21921    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21922    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21923     coin_has_alps="yes"
21924
21925  fi
21926fi
21927
21928if test -z "$coin_reason" ; then
21929  echo "$as_me:$LINENO: result: $coin_has_alps" >&5
21930echo "${ECHO_T}$coin_has_alps" >&6
21931else
21932  echo "$as_me:$LINENO: result: $coin_has_alps, $coin_reason" >&5
21933echo "${ECHO_T}$coin_has_alps, $coin_reason" >&6
21934fi
21935
21936if test "$coin_has_alps" = yes ; then
21937  if test -r $srcdir/Alps/configure; then
21938    coin_subdirs="$coin_subdirs Alps"
21939
21940
21941subdirs="$subdirs Alps"
21942
21943  fi
21944fi
21945
21946
21947echo "$as_me:$LINENO: checking whether source of project Bcps is available and should be compiled" >&5
21948echo $ECHO_N "checking whether source of project Bcps is available and should be compiled... $ECHO_C" >&6
21949
21950coin_has_bcps=notGiven
21951coin_reason=
21952
21953# check if user wants to skip project in any case
21954
21955if test x"$COIN_SKIP_PROJECTS" != x; then
21956  for dir in $COIN_SKIP_PROJECTS; do
21957    if test $dir = "Bcps"; then
21958      coin_has_bcps="no"
21959      coin_reason="Bcps has been specified in COIN_SKIP_PROJECTS"
21960    fi
21961
21962  done
21963fi
21964
21965if test "$coin_has_bcps" != no; then
21966
21967# Check whether --with-m4_tolower(Bcps) or --without-m4_tolower(Bcps) was given.
21968if test "${with_bcps+set}" = set; then
21969  withval="$with_bcps"
21970  if test "$withval" = no ; then
21971       coin_has_bcps="no"
21972       coin_reason="--without-bcps has been specified"
21973     fi
21974
21975fi;
21976fi
21977
21978if test "$coin_has_bcps" != no; then
21979
21980# Check whether --with-m4_tolower(Bcps)-lib or --without-m4_tolower(Bcps)-lib was given.
21981if test "${with_bcps_lib+set}" = set; then
21982  withval="$with_bcps_lib"
21983  if test "$withval" = no ; then
21984       coin_has_bcps="no"
21985       coin_reason="--without-bcps-lib has been specified"
21986     else
21987       coin_has_bcps="no"
21988       coin_reason="--with-bcps-lib has been specified"
21989     fi
21990fi;
21991fi
21992
21993if test "$coin_has_bcps" != no; then
21994
21995# Check whether --with-m4_tolower(Bcps)-incdir or --without-m4_tolower(Bcps)-incdir was given.
21996if test "${with_bcps_incdir+set}" = set; then
21997  withval="$with_bcps_incdir"
21998  if test "$withval" = no ; then
21999       coin_has_bcps="no"
22000       coin_reason="--without-bcps-incdir has been specified"
22001     else
22002       coin_has_bcps="no"
22003       coin_reason="--with-bcps-incdir has been specified"
22004     fi
22005fi;
22006fi
22007
22008if test "$coin_has_bcps" != no; then
22009
22010# Check whether --with-m4_tolower(Bcps)-datadir or --without-m4_tolower(Bcps)-datadir was given.
22011if test "${with_bcps_datadir+set}" = set; then
22012  withval="$with_bcps_datadir"
22013  if test "$withval" = no ; then
22014       coin_has_bcps="no"
22015       coin_reason="--without-bcps-datadir has been specified"
22016     else
22017       coin_has_bcps="no"
22018       coin_reason="--with-bcps-datadir has been specified"
22019     fi
22020fi;
22021fi
22022
22023
22024
22025
22026
22027# check if project is available in present directory
22028if test "$coin_has_bcps" = notGiven; then
22029  coin_has_bcps=no
22030  if test -d $srcdir/Bcps; then
22031    coin_reason="source in Bcps"
22032    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22033    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22034    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22035     coin_has_bcps="yes"
22036
22037  fi
22038fi
22039
22040if test -z "$coin_reason" ; then
22041  echo "$as_me:$LINENO: result: $coin_has_bcps" >&5
22042echo "${ECHO_T}$coin_has_bcps" >&6
22043else
22044  echo "$as_me:$LINENO: result: $coin_has_bcps, $coin_reason" >&5
22045echo "${ECHO_T}$coin_has_bcps, $coin_reason" >&6
22046fi
22047
22048if test "$coin_has_bcps" = yes ; then
22049  if test -r $srcdir/Bcps/configure; then
22050    coin_subdirs="$coin_subdirs Bcps"
22051
22052
22053subdirs="$subdirs Bcps"
22054
22055  fi
22056fi
22057
22058
22059##############################################################################
22060#                   Finishing up by writing all the output                   #
22061##############################################################################
22062
22063# Here list all the files that configure should create (except for the
22064# configuration header file)
22065          ac_config_files="$ac_config_files Makefile"
22066
22067
22068# Finally, we let configure write all the output...
22069
22070
22071
22072
22073echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22074echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22075coin_link_input_cmd="$LN_S"
22076case "$CC" in
22077  clang* ) ;;
22078  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22079    coin_link_input_cmd=cp ;;
22080esac
22081echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22082echo "${ECHO_T}$coin_link_input_cmd" >&6
22083
22084
22085
22086if test x$coin_skip_ac_output != xyes; then
22087
22088  # library extension
22089
22090  case "$CC" in
22091    clang* )
22092         LIBEXT=a ;;
22093    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22094         LIBEXT=lib ;;
22095      *) LIBEXT=a ;;
22096  esac
22097
22098  # Define VPATH_DISTCLEANFILES to be everything that needs to be
22099  # cleaned for distclean in a vpath configuration
22100
22101  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22102
22103  # Take out subdirectories if their configuration concluded that they
22104  # don't need to be compiled
22105  if test x"$coin_ac_skip_subdirs" != x; then
22106    new_subdirs=
22107    for i in $subdirs; do
22108      skipme=no
22109      for j in $coin_ac_skip_subdirs; do
22110        if test $i = $j; then
22111          skipme=yes;
22112        fi
22113      done
22114      if test $skipme = no; then
22115        new_subdirs="$new_subdirs $i"
22116      fi
22117    done
22118    subdirs="$new_subdirs"
22119  fi
22120
22121  # need to come before AC_OUTPUT
22122  if test x$coin_projectdir != xyes; then
22123    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22124    echo $coin_subdirs > coin_subdirs.txt
22125  else
22126    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22127    ABSBUILDDIR="`pwd`"
22128
22129  fi
22130
22131  cat >confcache <<\_ACEOF
22132# This file is a shell script that caches the results of configure
22133# tests run on this system so they can be shared between configure
22134# scripts and configure runs, see configure's option --config-cache.
22135# It is not useful on other systems.  If it contains results you don't
22136# want to keep, you may remove or edit it.
22137#
22138# config.status only pays attention to the cache file if you give it
22139# the --recheck option to rerun configure.
22140#
22141# `ac_cv_env_foo' variables (set or unset) will be overridden when
22142# loading this file, other *unset* `ac_cv_foo' will be assigned the
22143# following values.
22144
22145_ACEOF
22146
22147# The following way of writing the cache mishandles newlines in values,
22148# but we know of no workaround that is simple, portable, and efficient.
22149# So, don't put newlines in cache variables' values.
22150# Ultrix sh set writes to stderr and can't be redirected directly,
22151# and sets the high bit in the cache file unless we assign to the vars.
22152{
22153  (set) 2>&1 |
22154    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22155    *ac_space=\ *)
22156      # `set' does not quote correctly, so add quotes (double-quote
22157      # substitution turns \\\\ into \\, and sed turns \\ into \).
22158      sed -n \
22159	"s/'/'\\\\''/g;
22160	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22161      ;;
22162    *)
22163      # `set' quotes correctly as required by POSIX, so do not add quotes.
22164      sed -n \
22165	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22166      ;;
22167    esac;
22168} |
22169  sed '
22170     t clear
22171     : clear
22172     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22173     t end
22174     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22175     : end' >>confcache
22176if diff $cache_file confcache >/dev/null 2>&1; then :; else
22177  if test -w $cache_file; then
22178    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22179    cat confcache >$cache_file
22180  else
22181    echo "not updating unwritable cache $cache_file"
22182  fi
22183fi
22184rm -f confcache
22185
22186test "x$prefix" = xNONE && prefix=$ac_default_prefix
22187# Let make expand exec_prefix.
22188test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22189
22190# VPATH may cause trouble with some makes, so we remove $(srcdir),
22191# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22192# trailing colons and then remove the whole line if VPATH becomes empty
22193# (actually we leave an empty line to preserve line numbers).
22194if test "x$srcdir" = x.; then
22195  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22196s/:*\$(srcdir):*/:/;
22197s/:*\${srcdir}:*/:/;
22198s/:*@srcdir@:*/:/;
22199s/^\([^=]*=[	 ]*\):*/\1/;
22200s/:*$//;
22201s/^[^=]*=[	 ]*$//;
22202}'
22203fi
22204
22205# Transform confdefs.h into DEFS.
22206# Protect against shell expansion while executing Makefile rules.
22207# Protect against Makefile macro expansion.
22208#
22209# If the first sed substitution is executed (which looks for macros that
22210# take arguments), then we branch to the quote section.  Otherwise,
22211# look for a macro that doesn't take arguments.
22212cat >confdef2opt.sed <<\_ACEOF
22213t clear
22214: clear
22215s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
22216t quote
22217s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
22218t quote
22219d
22220: quote
22221s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
22222s,\[,\\&,g
22223s,\],\\&,g
22224s,\$,$$,g
22225p
22226_ACEOF
22227# We use echo to avoid assuming a particular line-breaking character.
22228# The extra dot is to prevent the shell from consuming trailing
22229# line-breaks from the sub-command output.  A line-break within
22230# single-quotes doesn't work because, if this script is created in a
22231# platform that uses two characters for line-breaks (e.g., DOS), tr
22232# would break.
22233ac_LF_and_DOT=`echo; echo .`
22234DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22235rm -f confdef2opt.sed
22236
22237
22238ac_libobjs=
22239ac_ltlibobjs=
22240for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22241  # 1. Remove the extension, and $U if already installed.
22242  ac_i=`echo "$ac_i" |
22243	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22244  # 2. Add them.
22245  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22246  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22247done
22248LIBOBJS=$ac_libobjs
22249
22250LTLIBOBJS=$ac_ltlibobjs
22251
22252
22253if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22254  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22255Usually this means the macro was only invoked conditionally." >&5
22256echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22257Usually this means the macro was only invoked conditionally." >&2;}
22258   { (exit 1); exit 1; }; }
22259fi
22260if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22261  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22262Usually this means the macro was only invoked conditionally." >&5
22263echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22264Usually this means the macro was only invoked conditionally." >&2;}
22265   { (exit 1); exit 1; }; }
22266fi
22267if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22268  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22269Usually this means the macro was only invoked conditionally." >&5
22270echo "$as_me: error: conditional \"AMDEP\" was never defined.
22271Usually this means the macro was only invoked conditionally." >&2;}
22272   { (exit 1); exit 1; }; }
22273fi
22274if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22275  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22276Usually this means the macro was only invoked conditionally." >&5
22277echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22278Usually this means the macro was only invoked conditionally." >&2;}
22279   { (exit 1); exit 1; }; }
22280fi
22281if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22282  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22283Usually this means the macro was only invoked conditionally." >&5
22284echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22285Usually this means the macro was only invoked conditionally." >&2;}
22286   { (exit 1); exit 1; }; }
22287fi
22288if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22289  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22290Usually this means the macro was only invoked conditionally." >&5
22291echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22292Usually this means the macro was only invoked conditionally." >&2;}
22293   { (exit 1); exit 1; }; }
22294fi
22295if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22296  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22297Usually this means the macro was only invoked conditionally." >&5
22298echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22299Usually this means the macro was only invoked conditionally." >&2;}
22300   { (exit 1); exit 1; }; }
22301fi
22302if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22303  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22304Usually this means the macro was only invoked conditionally." >&5
22305echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22306Usually this means the macro was only invoked conditionally." >&2;}
22307   { (exit 1); exit 1; }; }
22308fi
22309
22310: ${CONFIG_STATUS=./config.status}
22311ac_clean_files_save=$ac_clean_files
22312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22313{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22314echo "$as_me: creating $CONFIG_STATUS" >&6;}
22315cat >$CONFIG_STATUS <<_ACEOF
22316#! $SHELL
22317# Generated by $as_me.
22318# Run this file to recreate the current configuration.
22319# Compiler output produced by configure, useful for debugging
22320# configure, is in config.log if it exists.
22321
22322debug=false
22323ac_cs_recheck=false
22324ac_cs_silent=false
22325SHELL=\${CONFIG_SHELL-$SHELL}
22326_ACEOF
22327
22328cat >>$CONFIG_STATUS <<\_ACEOF
22329## --------------------- ##
22330## M4sh Initialization.  ##
22331## --------------------- ##
22332
22333# Be Bourne compatible
22334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22335  emulate sh
22336  NULLCMD=:
22337  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22338  # is contrary to our usage.  Disable this feature.
22339  alias -g '${1+"$@"}'='"$@"'
22340elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22341  set -o posix
22342fi
22343DUALCASE=1; export DUALCASE # for MKS sh
22344
22345# Support unset when possible.
22346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22347  as_unset=unset
22348else
22349  as_unset=false
22350fi
22351
22352
22353# Work around bugs in pre-3.0 UWIN ksh.
22354$as_unset ENV MAIL MAILPATH
22355PS1='$ '
22356PS2='> '
22357PS4='+ '
22358
22359# NLS nuisances.
22360for as_var in \
22361  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22362  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22363  LC_TELEPHONE LC_TIME
22364do
22365  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22366    eval $as_var=C; export $as_var
22367  else
22368    $as_unset $as_var
22369  fi
22370done
22371
22372# Required to use basename.
22373if expr a : '\(a\)' >/dev/null 2>&1; then
22374  as_expr=expr
22375else
22376  as_expr=false
22377fi
22378
22379if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22380  as_basename=basename
22381else
22382  as_basename=false
22383fi
22384
22385
22386# Name of the executable.
22387as_me=`$as_basename "$0" ||
22388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22389	 X"$0" : 'X\(//\)$' \| \
22390	 X"$0" : 'X\(/\)$' \| \
22391	 .     : '\(.\)' 2>/dev/null ||
22392echo X/"$0" |
22393    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22394  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22395  	  /^X\/\(\/\).*/{ s//\1/; q; }
22396  	  s/.*/./; q'`
22397
22398
22399# PATH needs CR, and LINENO needs CR and PATH.
22400# Avoid depending upon Character Ranges.
22401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22404as_cr_digits='0123456789'
22405as_cr_alnum=$as_cr_Letters$as_cr_digits
22406
22407# The user is always right.
22408if test "${PATH_SEPARATOR+set}" != set; then
22409  echo "#! /bin/sh" >conf$$.sh
22410  echo  "exit 0"   >>conf$$.sh
22411  chmod +x conf$$.sh
22412  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22413    PATH_SEPARATOR=';'
22414  else
22415    PATH_SEPARATOR=:
22416  fi
22417  rm -f conf$$.sh
22418fi
22419
22420
22421  as_lineno_1=$LINENO
22422  as_lineno_2=$LINENO
22423  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22424  test "x$as_lineno_1" != "x$as_lineno_2" &&
22425  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22426  # Find who we are.  Look in the path if we contain no path at all
22427  # relative or not.
22428  case $0 in
22429    *[\\/]* ) as_myself=$0 ;;
22430    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431for as_dir in $PATH
22432do
22433  IFS=$as_save_IFS
22434  test -z "$as_dir" && as_dir=.
22435  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22436done
22437
22438       ;;
22439  esac
22440  # We did not find ourselves, most probably we were run as `sh COMMAND'
22441  # in which case we are not to be found in the path.
22442  if test "x$as_myself" = x; then
22443    as_myself=$0
22444  fi
22445  if test ! -f "$as_myself"; then
22446    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22447echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22448   { (exit 1); exit 1; }; }
22449  fi
22450  case $CONFIG_SHELL in
22451  '')
22452    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22453for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22454do
22455  IFS=$as_save_IFS
22456  test -z "$as_dir" && as_dir=.
22457  for as_base in sh bash ksh sh5; do
22458	 case $as_dir in
22459	 /*)
22460	   if ("$as_dir/$as_base" -c '
22461  as_lineno_1=$LINENO
22462  as_lineno_2=$LINENO
22463  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22464  test "x$as_lineno_1" != "x$as_lineno_2" &&
22465  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22466	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22467	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22468	     CONFIG_SHELL=$as_dir/$as_base
22469	     export CONFIG_SHELL
22470	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22471	   fi;;
22472	 esac
22473       done
22474done
22475;;
22476  esac
22477
22478  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22479  # uniformly replaced by the line number.  The first 'sed' inserts a
22480  # line-number line before each line; the second 'sed' does the real
22481  # work.  The second script uses 'N' to pair each line-number line
22482  # with the numbered line, and appends trailing '-' during
22483  # substitution so that $LINENO is not a special case at line end.
22484  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22485  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22486  sed '=' <$as_myself |
22487    sed '
22488      N
22489      s,$,-,
22490      : loop
22491      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22492      t loop
22493      s,-$,,
22494      s,^['$as_cr_digits']*\n,,
22495    ' >$as_me.lineno &&
22496  chmod +x $as_me.lineno ||
22497    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22498echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22499   { (exit 1); exit 1; }; }
22500
22501  # Don't try to exec as it changes $[0], causing all sort of problems
22502  # (the dirname of $[0] is not the place where we might find the
22503  # original and so on.  Autoconf is especially sensible to this).
22504  . ./$as_me.lineno
22505  # Exit status is that of the last command.
22506  exit
22507}
22508
22509
22510case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22511  *c*,-n*) ECHO_N= ECHO_C='
22512' ECHO_T='	' ;;
22513  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22514  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22515esac
22516
22517if expr a : '\(a\)' >/dev/null 2>&1; then
22518  as_expr=expr
22519else
22520  as_expr=false
22521fi
22522
22523rm -f conf$$ conf$$.exe conf$$.file
22524echo >conf$$.file
22525if ln -s conf$$.file conf$$ 2>/dev/null; then
22526  # We could just check for DJGPP; but this test a) works b) is more generic
22527  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22528  if test -f conf$$.exe; then
22529    # Don't use ln at all; we don't have any links
22530    as_ln_s='cp -p'
22531  else
22532    as_ln_s='ln -s'
22533  fi
22534elif ln conf$$.file conf$$ 2>/dev/null; then
22535  as_ln_s=ln
22536else
22537  as_ln_s='cp -p'
22538fi
22539rm -f conf$$ conf$$.exe conf$$.file
22540
22541if mkdir -p . 2>/dev/null; then
22542  as_mkdir_p=:
22543else
22544  test -d ./-p && rmdir ./-p
22545  as_mkdir_p=false
22546fi
22547
22548as_executable_p="test -f"
22549
22550# Sed expression to map a string onto a valid CPP name.
22551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22552
22553# Sed expression to map a string onto a valid variable name.
22554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22555
22556
22557# IFS
22558# We need space, tab and new line, in precisely that order.
22559as_nl='
22560'
22561IFS=" 	$as_nl"
22562
22563# CDPATH.
22564$as_unset CDPATH
22565
22566exec 6>&1
22567
22568# Open the log real soon, to keep \$[0] and so on meaningful, and to
22569# report actual input values of CONFIG_FILES etc. instead of their
22570# values after options handling.  Logging --version etc. is OK.
22571exec 5>>config.log
22572{
22573  echo
22574  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575## Running $as_me. ##
22576_ASBOX
22577} >&5
22578cat >&5 <<_CSEOF
22579
22580This file was extended by Bcps $as_me 0.99, which was
22581generated by GNU Autoconf 2.59.  Invocation command line was
22582
22583  CONFIG_FILES    = $CONFIG_FILES
22584  CONFIG_HEADERS  = $CONFIG_HEADERS
22585  CONFIG_LINKS    = $CONFIG_LINKS
22586  CONFIG_COMMANDS = $CONFIG_COMMANDS
22587  $ $0 $@
22588
22589_CSEOF
22590echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22591echo >&5
22592_ACEOF
22593
22594# Files that config.status was made for.
22595if test -n "$ac_config_files"; then
22596  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22597fi
22598
22599if test -n "$ac_config_headers"; then
22600  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22601fi
22602
22603if test -n "$ac_config_links"; then
22604  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22605fi
22606
22607if test -n "$ac_config_commands"; then
22608  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22609fi
22610
22611cat >>$CONFIG_STATUS <<\_ACEOF
22612
22613ac_cs_usage="\
22614\`$as_me' instantiates files from templates according to the
22615current configuration.
22616
22617Usage: $0 [OPTIONS] [FILE]...
22618
22619  -h, --help       print this help, then exit
22620  -V, --version    print version number, then exit
22621  -q, --quiet      do not print progress messages
22622  -d, --debug      don't remove temporary files
22623      --recheck    update $as_me by reconfiguring in the same conditions
22624  --file=FILE[:TEMPLATE]
22625		   instantiate the configuration file FILE
22626
22627Configuration files:
22628$config_files
22629
22630Configuration commands:
22631$config_commands
22632
22633Report bugs to <bug-autoconf@gnu.org>."
22634_ACEOF
22635
22636cat >>$CONFIG_STATUS <<_ACEOF
22637ac_cs_version="\\
22638Bcps config.status 0.99
22639configured by $0, generated by GNU Autoconf 2.59,
22640  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22641
22642Copyright (C) 2003 Free Software Foundation, Inc.
22643This config.status script is free software; the Free Software Foundation
22644gives unlimited permission to copy, distribute and modify it."
22645srcdir=$srcdir
22646INSTALL="$INSTALL"
22647_ACEOF
22648
22649cat >>$CONFIG_STATUS <<\_ACEOF
22650# If no file are specified by the user, then we need to provide default
22651# value.  By we need to know if files were specified by the user.
22652ac_need_defaults=:
22653while test $# != 0
22654do
22655  case $1 in
22656  --*=*)
22657    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22658    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22659    ac_shift=:
22660    ;;
22661  -*)
22662    ac_option=$1
22663    ac_optarg=$2
22664    ac_shift=shift
22665    ;;
22666  *) # This is not an option, so the user has probably given explicit
22667     # arguments.
22668     ac_option=$1
22669     ac_need_defaults=false;;
22670  esac
22671
22672  case $ac_option in
22673  # Handling of the options.
22674_ACEOF
22675cat >>$CONFIG_STATUS <<\_ACEOF
22676  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22677    ac_cs_recheck=: ;;
22678  --version | --vers* | -V )
22679    echo "$ac_cs_version"; exit 0 ;;
22680  --he | --h)
22681    # Conflict between --help and --header
22682    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22683Try \`$0 --help' for more information." >&5
22684echo "$as_me: error: ambiguous option: $1
22685Try \`$0 --help' for more information." >&2;}
22686   { (exit 1); exit 1; }; };;
22687  --help | --hel | -h )
22688    echo "$ac_cs_usage"; exit 0 ;;
22689  --debug | --d* | -d )
22690    debug=: ;;
22691  --file | --fil | --fi | --f )
22692    $ac_shift
22693    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22694    ac_need_defaults=false;;
22695  --header | --heade | --head | --hea )
22696    $ac_shift
22697    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22698    ac_need_defaults=false;;
22699  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22700  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22701    ac_cs_silent=: ;;
22702
22703  # This is an error.
22704  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22705Try \`$0 --help' for more information." >&5
22706echo "$as_me: error: unrecognized option: $1
22707Try \`$0 --help' for more information." >&2;}
22708   { (exit 1); exit 1; }; } ;;
22709
22710  *) ac_config_targets="$ac_config_targets $1" ;;
22711
22712  esac
22713  shift
22714done
22715
22716ac_configure_extra_args=
22717
22718if $ac_cs_silent; then
22719  exec 6>/dev/null
22720  ac_configure_extra_args="$ac_configure_extra_args --silent"
22721fi
22722
22723_ACEOF
22724cat >>$CONFIG_STATUS <<_ACEOF
22725if \$ac_cs_recheck; then
22726  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22727  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22728fi
22729
22730_ACEOF
22731
22732cat >>$CONFIG_STATUS <<_ACEOF
22733#
22734# INIT-COMMANDS section.
22735#
22736
22737AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22738
22739_ACEOF
22740
22741
22742
22743cat >>$CONFIG_STATUS <<\_ACEOF
22744for ac_config_target in $ac_config_targets
22745do
22746  case "$ac_config_target" in
22747  # Handling of arguments.
22748  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22749  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22750  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22751echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22752   { (exit 1); exit 1; }; };;
22753  esac
22754done
22755
22756# If the user did not use the arguments to specify the items to instantiate,
22757# then the envvar interface is used.  Set only those that are not.
22758# We use the long form for the default assignment because of an extremely
22759# bizarre bug on SunOS 4.1.3.
22760if $ac_need_defaults; then
22761  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22762  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22763fi
22764
22765# Have a temporary directory for convenience.  Make it in the build tree
22766# simply because there is no reason to put it here, and in addition,
22767# creating and moving files from /tmp can sometimes cause problems.
22768# Create a temporary directory, and hook for its removal unless debugging.
22769$debug ||
22770{
22771  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22772  trap '{ (exit 1); exit 1; }' 1 2 13 15
22773}
22774
22775# Create a (secure) tmp directory for tmp files.
22776
22777{
22778  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22779  test -n "$tmp" && test -d "$tmp"
22780}  ||
22781{
22782  tmp=./confstat$$-$RANDOM
22783  (umask 077 && mkdir $tmp)
22784} ||
22785{
22786   echo "$me: cannot create a temporary directory in ." >&2
22787   { (exit 1); exit 1; }
22788}
22789
22790_ACEOF
22791
22792cat >>$CONFIG_STATUS <<_ACEOF
22793
22794#
22795# CONFIG_FILES section.
22796#
22797
22798# No need to generate the scripts if there are no CONFIG_FILES.
22799# This happens for instance when ./config.status config.h
22800if test -n "\$CONFIG_FILES"; then
22801  # Protect against being on the right side of a sed subst in config.status.
22802  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22803   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22804s,@SHELL@,$SHELL,;t t
22805s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22806s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22807s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22808s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22809s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22810s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22811s,@exec_prefix@,$exec_prefix,;t t
22812s,@prefix@,$prefix,;t t
22813s,@program_transform_name@,$program_transform_name,;t t
22814s,@bindir@,$bindir,;t t
22815s,@sbindir@,$sbindir,;t t
22816s,@libexecdir@,$libexecdir,;t t
22817s,@datadir@,$datadir,;t t
22818s,@sysconfdir@,$sysconfdir,;t t
22819s,@sharedstatedir@,$sharedstatedir,;t t
22820s,@localstatedir@,$localstatedir,;t t
22821s,@libdir@,$libdir,;t t
22822s,@includedir@,$includedir,;t t
22823s,@oldincludedir@,$oldincludedir,;t t
22824s,@infodir@,$infodir,;t t
22825s,@mandir@,$mandir,;t t
22826s,@build_alias@,$build_alias,;t t
22827s,@host_alias@,$host_alias,;t t
22828s,@target_alias@,$target_alias,;t t
22829s,@DEFS@,$DEFS,;t t
22830s,@ECHO_C@,$ECHO_C,;t t
22831s,@ECHO_N@,$ECHO_N,;t t
22832s,@ECHO_T@,$ECHO_T,;t t
22833s,@LIBS@,$LIBS,;t t
22834s,@build@,$build,;t t
22835s,@build_cpu@,$build_cpu,;t t
22836s,@build_vendor@,$build_vendor,;t t
22837s,@build_os@,$build_os,;t t
22838s,@CDEFS@,$CDEFS,;t t
22839s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22840s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22841s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22842s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22843s,@CC@,$CC,;t t
22844s,@CFLAGS@,$CFLAGS,;t t
22845s,@LDFLAGS@,$LDFLAGS,;t t
22846s,@CPPFLAGS@,$CPPFLAGS,;t t
22847s,@ac_ct_CC@,$ac_ct_CC,;t t
22848s,@EXEEXT@,$EXEEXT,;t t
22849s,@OBJEXT@,$OBJEXT,;t t
22850s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22851s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22852s,@MPICC@,$MPICC,;t t
22853s,@CXXDEFS@,$CXXDEFS,;t t
22854s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22855s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22856s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22857s,@CXX@,$CXX,;t t
22858s,@CXXFLAGS@,$CXXFLAGS,;t t
22859s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22860s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22861s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22862s,@MPICXX@,$MPICXX,;t t
22863s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22864s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22865s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22866s,@F77@,$F77,;t t
22867s,@ac_ct_F77@,$ac_ct_F77,;t t
22868s,@FFLAGS@,$FFLAGS,;t t
22869s,@MPIF77@,$MPIF77,;t t
22870s,@EGREP@,$EGREP,;t t
22871s,@LN_S@,$LN_S,;t t
22872s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22873s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22874s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22875s,@CYGPATH_W@,$CYGPATH_W,;t t
22876s,@PACKAGE@,$PACKAGE,;t t
22877s,@VERSION@,$VERSION,;t t
22878s,@ACLOCAL@,$ACLOCAL,;t t
22879s,@AUTOCONF@,$AUTOCONF,;t t
22880s,@AUTOMAKE@,$AUTOMAKE,;t t
22881s,@AUTOHEADER@,$AUTOHEADER,;t t
22882s,@MAKEINFO@,$MAKEINFO,;t t
22883s,@install_sh@,$install_sh,;t t
22884s,@STRIP@,$STRIP,;t t
22885s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22886s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22887s,@mkdir_p@,$mkdir_p,;t t
22888s,@AWK@,$AWK,;t t
22889s,@SET_MAKE@,$SET_MAKE,;t t
22890s,@am__leading_dot@,$am__leading_dot,;t t
22891s,@AMTAR@,$AMTAR,;t t
22892s,@am__tar@,$am__tar,;t t
22893s,@am__untar@,$am__untar,;t t
22894s,@DEPDIR@,$DEPDIR,;t t
22895s,@am__include@,$am__include,;t t
22896s,@am__quote@,$am__quote,;t t
22897s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22898s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22899s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22900s,@CCDEPMODE@,$CCDEPMODE,;t t
22901s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22902s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22903s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22904s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22905s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22906s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22907s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22908s,@MAINT@,$MAINT,;t t
22909s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22910s,@have_autoconf@,$have_autoconf,;t t
22911s,@have_automake@,$have_automake,;t t
22912s,@have_svn@,$have_svn,;t t
22913s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22914s,@AUX_DIR@,$AUX_DIR,;t t
22915s,@abs_source_dir@,$abs_source_dir,;t t
22916s,@abs_lib_dir@,$abs_lib_dir,;t t
22917s,@abs_include_dir@,$abs_include_dir,;t t
22918s,@abs_bin_dir@,$abs_bin_dir,;t t
22919s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22920s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22921s,@host@,$host,;t t
22922s,@host_cpu@,$host_cpu,;t t
22923s,@host_vendor@,$host_vendor,;t t
22924s,@host_os@,$host_os,;t t
22925s,@ECHO@,$ECHO,;t t
22926s,@AR@,$AR,;t t
22927s,@ac_ct_AR@,$ac_ct_AR,;t t
22928s,@RANLIB@,$RANLIB,;t t
22929s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22930s,@CPP@,$CPP,;t t
22931s,@CXXCPP@,$CXXCPP,;t t
22932s,@LIBTOOL@,$LIBTOOL,;t t
22933s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22934s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22935s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22936s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22937s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22938s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22939s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
22940s,@subdirs@,$subdirs,;t t
22941s,@LIBEXT@,$LIBEXT,;t t
22942s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22943s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22944s,@LIBOBJS@,$LIBOBJS,;t t
22945s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22946CEOF
22947
22948_ACEOF
22949
22950  cat >>$CONFIG_STATUS <<\_ACEOF
22951  # Split the substitutions into bite-sized pieces for seds with
22952  # small command number limits, like on Digital OSF/1 and HP-UX.
22953  ac_max_sed_lines=48
22954  ac_sed_frag=1 # Number of current file.
22955  ac_beg=1 # First line for current file.
22956  ac_end=$ac_max_sed_lines # Line after last line for current file.
22957  ac_more_lines=:
22958  ac_sed_cmds=
22959  while $ac_more_lines; do
22960    if test $ac_beg -gt 1; then
22961      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22962    else
22963      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22964    fi
22965    if test ! -s $tmp/subs.frag; then
22966      ac_more_lines=false
22967    else
22968      # The purpose of the label and of the branching condition is to
22969      # speed up the sed processing (if there are no `@' at all, there
22970      # is no need to browse any of the substitutions).
22971      # These are the two extra sed commands mentioned above.
22972      (echo ':t
22973  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22974      if test -z "$ac_sed_cmds"; then
22975	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22976      else
22977	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22978      fi
22979      ac_sed_frag=`expr $ac_sed_frag + 1`
22980      ac_beg=$ac_end
22981      ac_end=`expr $ac_end + $ac_max_sed_lines`
22982    fi
22983  done
22984  if test -z "$ac_sed_cmds"; then
22985    ac_sed_cmds=cat
22986  fi
22987fi # test -n "$CONFIG_FILES"
22988
22989_ACEOF
22990cat >>$CONFIG_STATUS <<\_ACEOF
22991for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22992  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22993  case $ac_file in
22994  - | *:- | *:-:* ) # input from stdin
22995	cat >$tmp/stdin
22996	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22997	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22998  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22999	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23000  * )   ac_file_in=$ac_file.in ;;
23001  esac
23002
23003  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23004  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23005$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006	 X"$ac_file" : 'X\(//\)[^/]' \| \
23007	 X"$ac_file" : 'X\(//\)$' \| \
23008	 X"$ac_file" : 'X\(/\)' \| \
23009	 .     : '\(.\)' 2>/dev/null ||
23010echo X"$ac_file" |
23011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23012  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23013  	  /^X\(\/\/\)$/{ s//\1/; q; }
23014  	  /^X\(\/\).*/{ s//\1/; q; }
23015  	  s/.*/./; q'`
23016  { if $as_mkdir_p; then
23017    mkdir -p "$ac_dir"
23018  else
23019    as_dir="$ac_dir"
23020    as_dirs=
23021    while test ! -d "$as_dir"; do
23022      as_dirs="$as_dir $as_dirs"
23023      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23025	 X"$as_dir" : 'X\(//\)[^/]' \| \
23026	 X"$as_dir" : 'X\(//\)$' \| \
23027	 X"$as_dir" : 'X\(/\)' \| \
23028	 .     : '\(.\)' 2>/dev/null ||
23029echo X"$as_dir" |
23030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23031  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23032  	  /^X\(\/\/\)$/{ s//\1/; q; }
23033  	  /^X\(\/\).*/{ s//\1/; q; }
23034  	  s/.*/./; q'`
23035    done
23036    test ! -n "$as_dirs" || mkdir $as_dirs
23037  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23038echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23039   { (exit 1); exit 1; }; }; }
23040
23041  ac_builddir=.
23042
23043if test "$ac_dir" != .; then
23044  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23045  # A "../" for each directory in $ac_dir_suffix.
23046  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23047else
23048  ac_dir_suffix= ac_top_builddir=
23049fi
23050
23051case $srcdir in
23052  .)  # No --srcdir option.  We are building in place.
23053    ac_srcdir=.
23054    if test -z "$ac_top_builddir"; then
23055       ac_top_srcdir=.
23056    else
23057       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23058    fi ;;
23059  [\\/]* | ?:[\\/]* )  # Absolute path.
23060    ac_srcdir=$srcdir$ac_dir_suffix;
23061    ac_top_srcdir=$srcdir ;;
23062  *) # Relative path.
23063    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23064    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23065esac
23066
23067# Do not use `cd foo && pwd` to compute absolute paths, because
23068# the directories may not exist.
23069case `pwd` in
23070.) ac_abs_builddir="$ac_dir";;
23071*)
23072  case "$ac_dir" in
23073  .) ac_abs_builddir=`pwd`;;
23074  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23075  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23076  esac;;
23077esac
23078case $ac_abs_builddir in
23079.) ac_abs_top_builddir=${ac_top_builddir}.;;
23080*)
23081  case ${ac_top_builddir}. in
23082  .) ac_abs_top_builddir=$ac_abs_builddir;;
23083  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23084  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23085  esac;;
23086esac
23087case $ac_abs_builddir in
23088.) ac_abs_srcdir=$ac_srcdir;;
23089*)
23090  case $ac_srcdir in
23091  .) ac_abs_srcdir=$ac_abs_builddir;;
23092  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23093  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23094  esac;;
23095esac
23096case $ac_abs_builddir in
23097.) ac_abs_top_srcdir=$ac_top_srcdir;;
23098*)
23099  case $ac_top_srcdir in
23100  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23101  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23102  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23103  esac;;
23104esac
23105
23106
23107  case $INSTALL in
23108  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23109  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23110  esac
23111
23112  if test x"$ac_file" != x-; then
23113    { echo "$as_me:$LINENO: creating $ac_file" >&5
23114echo "$as_me: creating $ac_file" >&6;}
23115    rm -f "$ac_file"
23116  fi
23117  # Let's still pretend it is `configure' which instantiates (i.e., don't
23118  # use $as_me), people would be surprised to read:
23119  #    /* config.h.  Generated by config.status.  */
23120  if test x"$ac_file" = x-; then
23121    configure_input=
23122  else
23123    configure_input="$ac_file.  "
23124  fi
23125  configure_input=$configure_input"Generated from `echo $ac_file_in |
23126				     sed 's,.*/,,'` by configure."
23127
23128  # First look for the input files in the build tree, otherwise in the
23129  # src tree.
23130  ac_file_inputs=`IFS=:
23131    for f in $ac_file_in; do
23132      case $f in
23133      -) echo $tmp/stdin ;;
23134      [\\/$]*)
23135	 # Absolute (can't be DOS-style, as IFS=:)
23136	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23137echo "$as_me: error: cannot find input file: $f" >&2;}
23138   { (exit 1); exit 1; }; }
23139	 echo "$f";;
23140      *) # Relative
23141	 if test -f "$f"; then
23142	   # Build tree
23143	   echo "$f"
23144	 elif test -f "$srcdir/$f"; then
23145	   # Source tree
23146	   echo "$srcdir/$f"
23147	 else
23148	   # /dev/null tree
23149	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23150echo "$as_me: error: cannot find input file: $f" >&2;}
23151   { (exit 1); exit 1; }; }
23152	 fi;;
23153      esac
23154    done` || { (exit 1); exit 1; }
23155_ACEOF
23156cat >>$CONFIG_STATUS <<_ACEOF
23157  sed "$ac_vpsub
23158$extrasub
23159_ACEOF
23160cat >>$CONFIG_STATUS <<\_ACEOF
23161:t
23162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23163s,@configure_input@,$configure_input,;t t
23164s,@srcdir@,$ac_srcdir,;t t
23165s,@abs_srcdir@,$ac_abs_srcdir,;t t
23166s,@top_srcdir@,$ac_top_srcdir,;t t
23167s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23168s,@builddir@,$ac_builddir,;t t
23169s,@abs_builddir@,$ac_abs_builddir,;t t
23170s,@top_builddir@,$ac_top_builddir,;t t
23171s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23172s,@INSTALL@,$ac_INSTALL,;t t
23173" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23174  rm -f $tmp/stdin
23175  if test x"$ac_file" != x-; then
23176    mv $tmp/out $ac_file
23177  else
23178    cat $tmp/out
23179    rm -f $tmp/out
23180  fi
23181
23182done
23183_ACEOF
23184cat >>$CONFIG_STATUS <<\_ACEOF
23185
23186#
23187# CONFIG_COMMANDS section.
23188#
23189for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23190  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23191  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23192  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23193$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23194	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23195	 X"$ac_dest" : 'X\(//\)$' \| \
23196	 X"$ac_dest" : 'X\(/\)' \| \
23197	 .     : '\(.\)' 2>/dev/null ||
23198echo X"$ac_dest" |
23199    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23200  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23201  	  /^X\(\/\/\)$/{ s//\1/; q; }
23202  	  /^X\(\/\).*/{ s//\1/; q; }
23203  	  s/.*/./; q'`
23204  { if $as_mkdir_p; then
23205    mkdir -p "$ac_dir"
23206  else
23207    as_dir="$ac_dir"
23208    as_dirs=
23209    while test ! -d "$as_dir"; do
23210      as_dirs="$as_dir $as_dirs"
23211      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23213	 X"$as_dir" : 'X\(//\)[^/]' \| \
23214	 X"$as_dir" : 'X\(//\)$' \| \
23215	 X"$as_dir" : 'X\(/\)' \| \
23216	 .     : '\(.\)' 2>/dev/null ||
23217echo X"$as_dir" |
23218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23219  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23220  	  /^X\(\/\/\)$/{ s//\1/; q; }
23221  	  /^X\(\/\).*/{ s//\1/; q; }
23222  	  s/.*/./; q'`
23223    done
23224    test ! -n "$as_dirs" || mkdir $as_dirs
23225  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23226echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23227   { (exit 1); exit 1; }; }; }
23228
23229  ac_builddir=.
23230
23231if test "$ac_dir" != .; then
23232  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23233  # A "../" for each directory in $ac_dir_suffix.
23234  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23235else
23236  ac_dir_suffix= ac_top_builddir=
23237fi
23238
23239case $srcdir in
23240  .)  # No --srcdir option.  We are building in place.
23241    ac_srcdir=.
23242    if test -z "$ac_top_builddir"; then
23243       ac_top_srcdir=.
23244    else
23245       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23246    fi ;;
23247  [\\/]* | ?:[\\/]* )  # Absolute path.
23248    ac_srcdir=$srcdir$ac_dir_suffix;
23249    ac_top_srcdir=$srcdir ;;
23250  *) # Relative path.
23251    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23252    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23253esac
23254
23255# Do not use `cd foo && pwd` to compute absolute paths, because
23256# the directories may not exist.
23257case `pwd` in
23258.) ac_abs_builddir="$ac_dir";;
23259*)
23260  case "$ac_dir" in
23261  .) ac_abs_builddir=`pwd`;;
23262  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23263  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23264  esac;;
23265esac
23266case $ac_abs_builddir in
23267.) ac_abs_top_builddir=${ac_top_builddir}.;;
23268*)
23269  case ${ac_top_builddir}. in
23270  .) ac_abs_top_builddir=$ac_abs_builddir;;
23271  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23272  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23273  esac;;
23274esac
23275case $ac_abs_builddir in
23276.) ac_abs_srcdir=$ac_srcdir;;
23277*)
23278  case $ac_srcdir in
23279  .) ac_abs_srcdir=$ac_abs_builddir;;
23280  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23281  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23282  esac;;
23283esac
23284case $ac_abs_builddir in
23285.) ac_abs_top_srcdir=$ac_top_srcdir;;
23286*)
23287  case $ac_top_srcdir in
23288  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23289  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23290  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23291  esac;;
23292esac
23293
23294
23295  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23296echo "$as_me: executing $ac_dest commands" >&6;}
23297  case $ac_dest in
23298    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23299  # Strip MF so we end up with the name of the file.
23300  mf=`echo "$mf" | sed -e 's/:.*$//'`
23301  # Check whether this is an Automake generated Makefile or not.
23302  # We used to match only the files named `Makefile.in', but
23303  # some people rename them; so instead we look at the file content.
23304  # Grep'ing the first line is not enough: some people post-process
23305  # each Makefile.in and add a new line on top of each file to say so.
23306  # So let's grep whole file.
23307  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23308    dirpart=`(dirname "$mf") 2>/dev/null ||
23309$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310	 X"$mf" : 'X\(//\)[^/]' \| \
23311	 X"$mf" : 'X\(//\)$' \| \
23312	 X"$mf" : 'X\(/\)' \| \
23313	 .     : '\(.\)' 2>/dev/null ||
23314echo X"$mf" |
23315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23316  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23317  	  /^X\(\/\/\)$/{ s//\1/; q; }
23318  	  /^X\(\/\).*/{ s//\1/; q; }
23319  	  s/.*/./; q'`
23320  else
23321    continue
23322  fi
23323  # Extract the definition of DEPDIR, am__include, and am__quote
23324  # from the Makefile without running `make'.
23325  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23326  test -z "$DEPDIR" && continue
23327  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23328  test -z "am__include" && continue
23329  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23330  # When using ansi2knr, U may be empty or an underscore; expand it
23331  U=`sed -n 's/^U = //p' < "$mf"`
23332  # Find all dependency output files, they are included files with
23333  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23334  # simplest approach to changing $(DEPDIR) to its actual value in the
23335  # expansion.
23336  for file in `sed -n "
23337    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23338       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23339    # Make sure the directory exists.
23340    test -f "$dirpart/$file" && continue
23341    fdir=`(dirname "$file") 2>/dev/null ||
23342$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23343	 X"$file" : 'X\(//\)[^/]' \| \
23344	 X"$file" : 'X\(//\)$' \| \
23345	 X"$file" : 'X\(/\)' \| \
23346	 .     : '\(.\)' 2>/dev/null ||
23347echo X"$file" |
23348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23349  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23350  	  /^X\(\/\/\)$/{ s//\1/; q; }
23351  	  /^X\(\/\).*/{ s//\1/; q; }
23352  	  s/.*/./; q'`
23353    { if $as_mkdir_p; then
23354    mkdir -p $dirpart/$fdir
23355  else
23356    as_dir=$dirpart/$fdir
23357    as_dirs=
23358    while test ! -d "$as_dir"; do
23359      as_dirs="$as_dir $as_dirs"
23360      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23361$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23362	 X"$as_dir" : 'X\(//\)[^/]' \| \
23363	 X"$as_dir" : 'X\(//\)$' \| \
23364	 X"$as_dir" : 'X\(/\)' \| \
23365	 .     : '\(.\)' 2>/dev/null ||
23366echo X"$as_dir" |
23367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23368  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23369  	  /^X\(\/\/\)$/{ s//\1/; q; }
23370  	  /^X\(\/\).*/{ s//\1/; q; }
23371  	  s/.*/./; q'`
23372    done
23373    test ! -n "$as_dirs" || mkdir $as_dirs
23374  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23375echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23376   { (exit 1); exit 1; }; }; }
23377
23378    # echo "creating $dirpart/$file"
23379    echo '# dummy' > "$dirpart/$file"
23380  done
23381done
23382 ;;
23383  esac
23384done
23385_ACEOF
23386
23387cat >>$CONFIG_STATUS <<\_ACEOF
23388
23389{ (exit 0); exit 0; }
23390_ACEOF
23391chmod +x $CONFIG_STATUS
23392ac_clean_files=$ac_clean_files_save
23393
23394
23395# configure is writing to config.log, and then calls config.status.
23396# config.status does its own redirection, appending to config.log.
23397# Unfortunately, on DOS this fails, as config.log is still kept open
23398# by configure, so config.status won't be able to write to it; its
23399# output is simply discarded.  So we exec the FD to /dev/null,
23400# effectively closing config.log, so it can be properly (re)opened and
23401# appended to by config.status.  When coming back to configure, we
23402# need to make the FD available again.
23403if test "$no_create" != yes; then
23404  ac_cs_success=:
23405  ac_config_status_args=
23406  test "$silent" = yes &&
23407    ac_config_status_args="$ac_config_status_args --quiet"
23408  exec 5>/dev/null
23409  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23410  exec 5>>config.log
23411  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23412  # would make configure fail if this is the last instruction.
23413  $ac_cs_success || { (exit 1); exit 1; }
23414fi
23415
23416#
23417# CONFIG_SUBDIRS section.
23418#
23419if test "$no_recursion" != yes; then
23420
23421  # Remove --cache-file and --srcdir arguments so they do not pile up.
23422  ac_sub_configure_args=
23423  ac_prev=
23424  for ac_arg in $ac_configure_args; do
23425    if test -n "$ac_prev"; then
23426      ac_prev=
23427      continue
23428    fi
23429    case $ac_arg in
23430    -cache-file | --cache-file | --cache-fil | --cache-fi \
23431    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23432      ac_prev=cache_file ;;
23433    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23434    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23435    | --c=*)
23436      ;;
23437    --config-cache | -C)
23438      ;;
23439    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23440      ac_prev=srcdir ;;
23441    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23442      ;;
23443    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23444      ac_prev=prefix ;;
23445    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23446      ;;
23447    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23448    esac
23449  done
23450
23451  # Always prepend --prefix to ensure using the same prefix
23452  # in subdir configurations.
23453  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23454
23455  ac_popdir=`pwd`
23456  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23457
23458    # Do not complain, so a configure script can configure whichever
23459    # parts of a large source tree are present.
23460    test -d $srcdir/$ac_dir || continue
23461
23462    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23463echo "$as_me: configuring in $ac_dir" >&6;}
23464    { if $as_mkdir_p; then
23465    mkdir -p "$ac_dir"
23466  else
23467    as_dir="$ac_dir"
23468    as_dirs=
23469    while test ! -d "$as_dir"; do
23470      as_dirs="$as_dir $as_dirs"
23471      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23473	 X"$as_dir" : 'X\(//\)[^/]' \| \
23474	 X"$as_dir" : 'X\(//\)$' \| \
23475	 X"$as_dir" : 'X\(/\)' \| \
23476	 .     : '\(.\)' 2>/dev/null ||
23477echo X"$as_dir" |
23478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23479  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23480  	  /^X\(\/\/\)$/{ s//\1/; q; }
23481  	  /^X\(\/\).*/{ s//\1/; q; }
23482  	  s/.*/./; q'`
23483    done
23484    test ! -n "$as_dirs" || mkdir $as_dirs
23485  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23486echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23487   { (exit 1); exit 1; }; }; }
23488
23489    ac_builddir=.
23490
23491if test "$ac_dir" != .; then
23492  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23493  # A "../" for each directory in $ac_dir_suffix.
23494  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23495else
23496  ac_dir_suffix= ac_top_builddir=
23497fi
23498
23499case $srcdir in
23500  .)  # No --srcdir option.  We are building in place.
23501    ac_srcdir=.
23502    if test -z "$ac_top_builddir"; then
23503       ac_top_srcdir=.
23504    else
23505       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23506    fi ;;
23507  [\\/]* | ?:[\\/]* )  # Absolute path.
23508    ac_srcdir=$srcdir$ac_dir_suffix;
23509    ac_top_srcdir=$srcdir ;;
23510  *) # Relative path.
23511    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23512    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23513esac
23514
23515# Do not use `cd foo && pwd` to compute absolute paths, because
23516# the directories may not exist.
23517case `pwd` in
23518.) ac_abs_builddir="$ac_dir";;
23519*)
23520  case "$ac_dir" in
23521  .) ac_abs_builddir=`pwd`;;
23522  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23523  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23524  esac;;
23525esac
23526case $ac_abs_builddir in
23527.) ac_abs_top_builddir=${ac_top_builddir}.;;
23528*)
23529  case ${ac_top_builddir}. in
23530  .) ac_abs_top_builddir=$ac_abs_builddir;;
23531  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23532  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23533  esac;;
23534esac
23535case $ac_abs_builddir in
23536.) ac_abs_srcdir=$ac_srcdir;;
23537*)
23538  case $ac_srcdir in
23539  .) ac_abs_srcdir=$ac_abs_builddir;;
23540  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23541  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23542  esac;;
23543esac
23544case $ac_abs_builddir in
23545.) ac_abs_top_srcdir=$ac_top_srcdir;;
23546*)
23547  case $ac_top_srcdir in
23548  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23549  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23550  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23551  esac;;
23552esac
23553
23554
23555    cd $ac_dir
23556
23557    # Check for guested configure; otherwise get Cygnus style configure.
23558    if test -f $ac_srcdir/configure.gnu; then
23559      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23560    elif test -f $ac_srcdir/configure; then
23561      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23562    elif test -f $ac_srcdir/configure.in; then
23563      ac_sub_configure=$ac_configure
23564    else
23565      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23566echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23567      ac_sub_configure=
23568    fi
23569
23570    # The recursion is here.
23571    if test -n "$ac_sub_configure"; then
23572      # Make the cache file name correct relative to the subdirectory.
23573      case $cache_file in
23574      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23575      *) # Relative path.
23576	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23577      esac
23578
23579      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23580echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23581      # The eval makes quoting arguments work.
23582      eval $ac_sub_configure $ac_sub_configure_args \
23583	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23584	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23585echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23586   { (exit 1); exit 1; }; }
23587    fi
23588
23589    cd $ac_popdir
23590  done
23591fi
23592
23593
23594  if test x"$coin_vpath_link_files" = x; then : ; else
23595    lnkcmd="$coin_link_input_cmd"
23596    if test "$lnkcmd" = cp; then
23597      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23598echo "$as_me: Copying data files for VPATH configuration" >&6;}
23599    else
23600      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23601echo "$as_me: Creating VPATH links for data files" >&6;}
23602    fi
23603    for file in $coin_vpath_link_files; do
23604      dir=`(dirname "./$file") 2>/dev/null ||
23605$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23606	 X"./$file" : 'X\(//\)[^/]' \| \
23607	 X"./$file" : 'X\(//\)$' \| \
23608	 X"./$file" : 'X\(/\)' \| \
23609	 .     : '\(.\)' 2>/dev/null ||
23610echo X"./$file" |
23611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23612  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23613  	  /^X\(\/\/\)$/{ s//\1/; q; }
23614  	  /^X\(\/\).*/{ s//\1/; q; }
23615  	  s/.*/./; q'`
23616      if test -d $dir; then : ; else
23617        { if $as_mkdir_p; then
23618    mkdir -p $dir
23619  else
23620    as_dir=$dir
23621    as_dirs=
23622    while test ! -d "$as_dir"; do
23623      as_dirs="$as_dir $as_dirs"
23624      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23626	 X"$as_dir" : 'X\(//\)[^/]' \| \
23627	 X"$as_dir" : 'X\(//\)$' \| \
23628	 X"$as_dir" : 'X\(/\)' \| \
23629	 .     : '\(.\)' 2>/dev/null ||
23630echo X"$as_dir" |
23631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23632  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23633  	  /^X\(\/\/\)$/{ s//\1/; q; }
23634  	  /^X\(\/\).*/{ s//\1/; q; }
23635  	  s/.*/./; q'`
23636    done
23637    test ! -n "$as_dirs" || mkdir $as_dirs
23638  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23639echo "$as_me: error: cannot create directory $dir" >&2;}
23640   { (exit 1); exit 1; }; }; }
23641
23642      fi
23643      rm -f $file
23644      $lnkcmd $abs_source_dir/$file $file
23645    done
23646  fi
23647
23648  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23649echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23650  if test x$coin_projectdir = xyes; then
23651    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23652echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23653  else
23654    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23655echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23656  fi
23657else
23658  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23659echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23660fi
23661
23662
23663