source: ThirdParty/Metis/stable/1.3/configure @ 3541

Last change on this file since 3541 was 3541, checked in by stefan, 4 years ago

restoring BuildTools/ThirdParty/Metis?/stable/1.3

  • Property svn:executable set to *
File size: 710.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMetis 1.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='ThirdPartyMetis 1.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV 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 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS METISDIR METIS_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis 1.3 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis 1.3:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-metis compile project Metis with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-dependency-linking
1079                          disable linking library dependencies into shared
1080                          libraries
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-metis-verbosity specify the debug verbosity level for project Metis
1086  --with-metis-checklevel specify the sanity check level for project Metis
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyMetis configure 1.3
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2009 International Business Machines and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyMetis $as_me 1.3, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define METIS_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define METIS_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define METIS_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define METIS_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=METIS
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define METIS_SVN_REV $METIS_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693
1694
1695
1696
1697#############################################################################
1698#                         Standard build tool stuff                         #
1699#############################################################################
1700
1701# Get the system type
1702ac_aux_dir=
1703for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1704  if test -f $ac_dir/install-sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install-sh -c"
1707    break
1708  elif test -f $ac_dir/install.sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install.sh -c"
1711    break
1712  elif test -f $ac_dir/shtool; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/shtool install -c"
1715    break
1716  fi
1717done
1718if test -z "$ac_aux_dir"; then
1719  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1720echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1721   { (exit 1); exit 1; }; }
1722fi
1723ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740  ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744   { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759
1760#turn off warnings and pedantic mode since they could make trouble on some platforms,
1761#and we couldn't fix them anyway
1762coin_skip_warn_cflags=yes
1763coin_skip_warn_fflags=yes
1764
1765# Check if user wants to produce debugging code
1766
1767echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1768echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1769
1770# Check whether --enable-debug or --disable-debug was given.
1771if test "${enable_debug+set}" = set; then
1772  enableval="$enable_debug"
1773  case "${enableval}" in
1774   yes) coin_debug_compile=true
1775        if test "${enable_shared+set}" = set; then :; else
1776          enable_shared=no
1777        fi
1778        ;;
1779   no)  coin_debug_compile=false
1780        ;;
1781   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1782echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1783   { (exit 1); exit 1; }; }
1784        ;;
1785esac
1786else
1787  coin_debug_compile=false
1788fi;
1789
1790# Check whether --enable-debug-metis or --disable-debug-metis was given.
1791if test "${enable_debug_metis+set}" = set; then
1792  enableval="$enable_debug_metis"
1793  case "${enableval}" in
1794    yes) coin_debug_compile=true
1795         ;;
1796    no)  coin_debug_compile=false
1797         ;;
1798    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1799echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1800   { (exit 1); exit 1; }; }
1801         ;;
1802 esac
1803else
1804  :
1805fi;
1806
1807 # m4_ifvaln([Metis],
1808
1809if test $coin_debug_compile = true; then
1810  echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817
1818# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1819if test "${with_metis_verbosity+set}" = set; then
1820  withval="$with_metis_verbosity"
1821  if test "$withval" = yes; then
1822                withval=1
1823              fi
1824              coin_metis_verbosity=$withval
1825else
1826  coin_metis_verbosity=0
1827fi;
1828
1829cat >>confdefs.h <<_ACEOF
1830#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1831_ACEOF
1832
1833
1834
1835# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1836if test "${with_metis_checklevel+set}" = set; then
1837  withval="$with_metis_checklevel"
1838  if test "$withval" = yes; then
1839                withval=1
1840              fi
1841              coin_metis_checklevel=$withval
1842else
1843  coin_metis_checklevel=0
1844fi;
1845
1846cat >>confdefs.h <<_ACEOF
1847#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1848_ACEOF
1849
1850
1851 # m4_ifvaln([Metis],
1852
1853
1854
1855# Get the name of the C compiler
1856
1857
1858  # for backward compatibility
1859  # Check whether --enable-doscompile or --disable-doscompile was given.
1860if test "${enable_doscompile+set}" = set; then
1861  enableval="$enable_doscompile"
1862  enable_doscompile=$enableval
1863else
1864  enable_doscompile=no
1865fi;
1866
1867  # Check whether --enable-msvc or --disable-msvc was given.
1868if test "${enable_msvc+set}" = set; then
1869  enableval="$enable_msvc"
1870  enable_msvc=$enableval
1871else
1872  enable_msvc=no
1873     if test "$enable_doscompile" = msvc ; then
1874       enable_msvc=yes
1875     elif test "$enable_doscompile" != no ; then
1876       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1877echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1878   { (exit 1); exit 1; }; }
1879     fi
1880
1881fi;
1882
1883  if test "$enable_msvc" = MD; then
1884    enable_shared=yes
1885    enable_msvc=yes
1886  fi
1887
1888  if test "$enable_msvc" = yes; then
1889    case $build in
1890      *-cygwin* | *-mingw*) ;;
1891      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1892echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1893   { (exit 1); exit 1; }; } ;;
1894    esac
1895  fi
1896
1897
1898
1899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906# For consistency, we set the C compiler to the same value of the C++
1907# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1908if test x"$CXX" != x; then
1909  case "$CXX" in
1910    clang* ) ;;
1911    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1912      if test x"$CC" = x; then
1913        CC="$CXX"
1914        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1915echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1916      fi
1917      ;;
1918  esac
1919fi
1920
1921
1922
1923
1924
1925
1926coin_has_cc=yes
1927
1928save_cflags="$CFLAGS"
1929
1930# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1931# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1932# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1933# compiler. In this case, put cc after gcc.
1934
1935case $build in
1936  *-cygwin* | *-mingw*)
1937             if test "$enable_msvc" = yes ; then
1938               comps="icl cl gcc"
1939             else
1940               comps="gcc icl cl"
1941             fi ;;
1942  *-*-solaris*)
1943             # Extract the first word of "cc", so it can be a program name with args.
1944set dummy cc; ac_word=$2
1945echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1948  echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950  if test -n "$sol_cc_compiler"; then
1951  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1952else
1953  ac_prog_rejected=no
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1962       ac_prog_rejected=yes
1963       continue
1964     fi
1965    ac_cv_prog_sol_cc_compiler="cc"
1966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967    break 2
1968  fi
1969done
1970done
1971
1972if test $ac_prog_rejected = yes; then
1973  # We found a bogon in the path, so make sure we never use it.
1974  set dummy $ac_cv_prog_sol_cc_compiler
1975  shift
1976  if test $# != 0; then
1977    # We chose a different compiler from the bogus one.
1978    # However, it has the same basename, so the bogon will be chosen
1979    # first if we set sol_cc_compiler to just the basename; use the full file name.
1980    shift
1981    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1982  fi
1983fi
1984fi
1985fi
1986sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1987if test -n "$sol_cc_compiler"; then
1988  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1989echo "${ECHO_T}$sol_cc_compiler" >&6
1990else
1991  echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
1993fi
1994
1995             if test "$sol_cc_compiler" = "cc" ; then
1996               comps="cc xlc gcc pgcc icc"
1997             else
1998               comps="xlc gcc pgcc icc cc"
1999             fi
2000             ;;
2001  *-*-darwin*) comps="clang gcc cc" ;;
2002  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2003  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2004  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2005esac
2006
2007# We delete the cached value, since the test might not have been
2008# performed with our choice of compilers earlier
2009$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2010# AC_MSG_NOTICE([C compiler candidates: $comps])
2011ac_ext=c
2012ac_cpp='$CPP $CPPFLAGS'
2013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016if test -n "$ac_tool_prefix"; then
2017  for ac_prog in $comps
2018  do
2019    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023if test "${ac_cv_prog_CC+set}" = set; then
2024  echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026  if test -n "$CC"; then
2027  ac_cv_prog_CC="$CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032  IFS=$as_save_IFS
2033  test -z "$as_dir" && as_dir=.
2034  for ac_exec_ext in '' $ac_executable_extensions; do
2035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    break 2
2039  fi
2040done
2041done
2042
2043fi
2044fi
2045CC=$ac_cv_prog_CC
2046if test -n "$CC"; then
2047  echo "$as_me:$LINENO: result: $CC" >&5
2048echo "${ECHO_T}$CC" >&6
2049else
2050  echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054    test -n "$CC" && break
2055  done
2056fi
2057if test -z "$CC"; then
2058  ac_ct_CC=$CC
2059  for ac_prog in $comps
2060do
2061  # Extract the first word of "$ac_prog", so it can be a program name with args.
2062set dummy $ac_prog; ac_word=$2
2063echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  if test -n "$ac_ct_CC"; then
2069  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076  for ac_exec_ext in '' $ac_executable_extensions; do
2077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078    ac_cv_prog_ac_ct_CC="$ac_prog"
2079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080    break 2
2081  fi
2082done
2083done
2084
2085fi
2086fi
2087ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088if test -n "$ac_ct_CC"; then
2089  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090echo "${ECHO_T}$ac_ct_CC" >&6
2091else
2092  echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6
2094fi
2095
2096  test -n "$ac_ct_CC" && break
2097done
2098
2099  CC=$ac_ct_CC
2100fi
2101
2102
2103test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: no acceptable C compiler found in \$PATH
2106See \`config.log' for more details." >&2;}
2107   { (exit 1); exit 1; }; }
2108
2109# Provide some information about the compiler.
2110echo "$as_me:$LINENO:" \
2111     "checking for C compiler version" >&5
2112ac_compiler=`set X $ac_compile; echo $2`
2113{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2114  (eval $ac_compiler --version </dev/null >&5) 2>&5
2115  ac_status=$?
2116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117  (exit $ac_status); }
2118{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2119  (eval $ac_compiler -v </dev/null >&5) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }
2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2124  (eval $ac_compiler -V </dev/null >&5) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }
2128
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h.  */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h.  */
2135
2136int
2137main ()
2138{
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144ac_clean_files_save=$ac_clean_files
2145ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146# Try to create an executable without -o first, disregard a.out.
2147# It will help us diagnose broken compilers, and finding out an intuition
2148# of exeext.
2149echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2153  (eval $ac_link_default) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; then
2157  # Find the output, starting from the most likely.  This scheme is
2158# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2159# resort.
2160
2161# Be careful to initialize this variable, since it used to be cached.
2162# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2163ac_cv_exeext=
2164# b.out is created by i960 compilers.
2165for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2166do
2167  test -f "$ac_file" || continue
2168  case $ac_file in
2169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2170        ;;
2171    conftest.$ac_ext )
2172        # This is the source file.
2173        ;;
2174    [ab].out )
2175        # We found the default executable, but exeext='' is most
2176        # certainly right.
2177        break;;
2178    *.* )
2179        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180        # FIXME: I believe we export ac_cv_exeext for Libtool,
2181        # but it would be cool to find out if it's true.  Does anybody
2182        # maintain Libtool? --akim.
2183        export ac_cv_exeext
2184        break;;
2185    * )
2186        break;;
2187  esac
2188done
2189else
2190  echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2194See \`config.log' for more details." >&5
2195echo "$as_me: error: C compiler cannot create executables
2196See \`config.log' for more details." >&2;}
2197   { (exit 77); exit 77; }; }
2198fi
2199
2200ac_exeext=$ac_cv_exeext
2201echo "$as_me:$LINENO: result: $ac_file" >&5
2202echo "${ECHO_T}$ac_file" >&6
2203
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 the C compiler works" >&5
2207echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2208# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2209# If not cross compiling, check that we can run a simple program.
2210if test "$cross_compiling" != yes; then
2211  if { ac_try='./$ac_file'
2212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213  (eval $ac_try) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; }; then
2217    cross_compiling=no
2218  else
2219    if test "$cross_compiling" = maybe; then
2220        cross_compiling=yes
2221    else
2222        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223If you meant to cross compile, use \`--host'.
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&2;}
2228   { (exit 1); exit 1; }; }
2229    fi
2230  fi
2231fi
2232echo "$as_me:$LINENO: result: yes" >&5
2233echo "${ECHO_T}yes" >&6
2234
2235rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236ac_clean_files=$ac_clean_files_save
2237# Check the compiler produces executables we can run.  If not, either
2238# the compiler is broken, or we cross compile.
2239echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2241echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242echo "${ECHO_T}$cross_compiling" >&6
2243
2244echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2247  (eval $ac_link) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; then
2251  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2252# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2253# work properly (i.e., refer to `conftest.exe'), while it won't with
2254# `rm'.
2255for ac_file in conftest.exe conftest conftest.*; do
2256  test -f "$ac_file" || continue
2257  case $ac_file in
2258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2259    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260          export ac_cv_exeext
2261          break;;
2262    * ) break;;
2263  esac
2264done
2265else
2266  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2269See \`config.log' for more details." >&2;}
2270   { (exit 1); exit 1; }; }
2271fi
2272
2273rm -f conftest$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2275echo "${ECHO_T}$ac_cv_exeext" >&6
2276
2277rm -f conftest.$ac_ext
2278EXEEXT=$ac_cv_exeext
2279ac_exeext=$EXEEXT
2280echo "$as_me:$LINENO: checking for suffix of object files" >&5
2281echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2282if test "${ac_cv_objext+set}" = set; then
2283  echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
2285  cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h.  */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h.  */
2291
2292int
2293main ()
2294{
2295
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300rm -f conftest.o conftest.obj
2301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302  (eval $ac_compile) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; then
2306  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2307  case $ac_file in
2308    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2309    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2310       break;;
2311  esac
2312done
2313else
2314  echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2318See \`config.log' for more details." >&5
2319echo "$as_me: error: cannot compute suffix of object files: cannot compile
2320See \`config.log' for more details." >&2;}
2321   { (exit 1); exit 1; }; }
2322fi
2323
2324rm -f conftest.$ac_cv_objext conftest.$ac_ext
2325fi
2326echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2327echo "${ECHO_T}$ac_cv_objext" >&6
2328OBJEXT=$ac_cv_objext
2329ac_objext=$OBJEXT
2330echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2331echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2332if test "${ac_cv_c_compiler_gnu+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341
2342int
2343main ()
2344{
2345#ifndef __GNUC__
2346       choke me
2347#endif
2348
2349  ;
2350  return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_compiler_gnu=yes
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380ac_compiler_gnu=no
2381fi
2382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384
2385fi
2386echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2387echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2388GCC=`test $ac_compiler_gnu = yes && echo yes`
2389ac_test_CFLAGS=${CFLAGS+set}
2390ac_save_CFLAGS=$CFLAGS
2391CFLAGS="-g"
2392echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2393echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2394if test "${ac_cv_prog_cc_g+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403
2404int
2405main ()
2406{
2407
2408  ;
2409  return 0;
2410}
2411_ACEOF
2412rm -f conftest.$ac_objext
2413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414  (eval $ac_compile) 2>conftest.er1
2415  ac_status=$?
2416  grep -v '^ *+' conftest.er1 >conftest.err
2417  rm -f conftest.er1
2418  cat conftest.err >&5
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); } &&
2421         { ac_try='test -z "$ac_c_werror_flag"
2422                         || test ! -s conftest.err'
2423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424  (eval $ac_try) 2>&5
2425  ac_status=$?
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); }; } &&
2428         { ac_try='test -s conftest.$ac_objext'
2429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430  (eval $ac_try) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; }; then
2434  ac_cv_prog_cc_g=yes
2435else
2436  echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439ac_cv_prog_cc_g=no
2440fi
2441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442fi
2443echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2444echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2445if test "$ac_test_CFLAGS" = set; then
2446  CFLAGS=$ac_save_CFLAGS
2447elif test $ac_cv_prog_cc_g = yes; then
2448  if test "$GCC" = yes; then
2449    CFLAGS="-g -O2"
2450  else
2451    CFLAGS="-g"
2452  fi
2453else
2454  if test "$GCC" = yes; then
2455    CFLAGS="-O2"
2456  else
2457    CFLAGS=
2458  fi
2459fi
2460echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2461echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2462if test "${ac_cv_prog_cc_stdc+set}" = set; then
2463  echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465  ac_cv_prog_cc_stdc=no
2466ac_save_CC=$CC
2467cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h.  */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h.  */
2473#include <stdarg.h>
2474#include <stdio.h>
2475#include <sys/types.h>
2476#include <sys/stat.h>
2477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2478struct buf { int x; };
2479FILE * (*rcsopen) (struct buf *, struct stat *, int);
2480static char *e (p, i)
2481     char **p;
2482     int i;
2483{
2484  return p[i];
2485}
2486static char *f (char * (*g) (char **, int), char **p, ...)
2487{
2488  char *s;
2489  va_list v;
2490  va_start (v,p);
2491  s = g (p, va_arg (v,int));
2492  va_end (v);
2493  return s;
2494}
2495
2496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2497   function prototypes and stuff, but not '\xHH' hex character constants.
2498   These don't provoke an error unfortunately, instead are silently treated
2499   as 'x'.  The following induces an error, until -std1 is added to get
2500   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2501   array size at least.  It's necessary to write '\x00'==0 to get something
2502   that's true only with -std1.  */
2503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2504
2505int test (int i, double x);
2506struct s1 {int (*f) (int a);};
2507struct s2 {int (*f) (double a);};
2508int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2509int argc;
2510char **argv;
2511int
2512main ()
2513{
2514return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519# Don't try gcc -ansi; that turns off useful extensions and
2520# breaks some systems' header files.
2521# AIX                   -qlanglvl=ansi
2522# Ultrix and OSF/1      -std1
2523# HP-UX 10.20 and later -Ae
2524# HP-UX older versions  -Aa -D_HPUX_SOURCE
2525# SVR4                  -Xc -D__EXTENSIONS__
2526for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2527do
2528  CC="$ac_save_CC $ac_arg"
2529  rm -f conftest.$ac_objext
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531  (eval $ac_compile) 2>conftest.er1
2532  ac_status=$?
2533  grep -v '^ *+' conftest.er1 >conftest.err
2534  rm -f conftest.er1
2535  cat conftest.err >&5
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); } &&
2538         { ac_try='test -z "$ac_c_werror_flag"
2539                         || test ! -s conftest.err'
2540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541  (eval $ac_try) 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; } &&
2545         { ac_try='test -s conftest.$ac_objext'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; }; then
2551  ac_cv_prog_cc_stdc=$ac_arg
2552break
2553else
2554  echo "$as_me: failed program was:" >&5
2555sed 's/^/| /' conftest.$ac_ext >&5
2556
2557fi
2558rm -f conftest.err conftest.$ac_objext
2559done
2560rm -f conftest.$ac_ext conftest.$ac_objext
2561CC=$ac_save_CC
2562
2563fi
2564
2565case "x$ac_cv_prog_cc_stdc" in
2566  x|xno)
2567    echo "$as_me:$LINENO: result: none needed" >&5
2568echo "${ECHO_T}none needed" >&6 ;;
2569  *)
2570    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2571echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2572    CC="$CC $ac_cv_prog_cc_stdc" ;;
2573esac
2574
2575# Some people use a C++ compiler to compile C.  Since we use `exit',
2576# in C++ we need to declare it.  In case someone uses the same compiler
2577# for both compiling C and C++ we need to have the C++ compiler decide
2578# the declaration of exit, since it's the most demanding environment.
2579cat >conftest.$ac_ext <<_ACEOF
2580#ifndef __cplusplus
2581  choke me
2582#endif
2583_ACEOF
2584rm -f conftest.$ac_objext
2585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586  (eval $ac_compile) 2>conftest.er1
2587  ac_status=$?
2588  grep -v '^ *+' conftest.er1 >conftest.err
2589  rm -f conftest.er1
2590  cat conftest.err >&5
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); } &&
2593         { ac_try='test -z "$ac_c_werror_flag"
2594                         || test ! -s conftest.err'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; } &&
2600         { ac_try='test -s conftest.$ac_objext'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; }; then
2606  for ac_declaration in \
2607   '' \
2608   'extern "C" void std::exit (int) throw (); using std::exit;' \
2609   'extern "C" void std::exit (int); using std::exit;' \
2610   'extern "C" void exit (int) throw ();' \
2611   'extern "C" void exit (int);' \
2612   'void exit (int);'
2613do
2614  cat >conftest.$ac_ext <<_ACEOF
2615/* confdefs.h.  */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h.  */
2620$ac_declaration
2621#include <stdlib.h>
2622int
2623main ()
2624{
2625exit (42);
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>conftest.er1
2633  ac_status=$?
2634  grep -v '^ *+' conftest.er1 >conftest.err
2635  rm -f conftest.er1
2636  cat conftest.err >&5
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); } &&
2639         { ac_try='test -z "$ac_c_werror_flag"
2640                         || test ! -s conftest.err'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; } &&
2646         { ac_try='test -s conftest.$ac_objext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  :
2653else
2654  echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
2657continue
2658fi
2659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660  cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666$ac_declaration
2667int
2668main ()
2669{
2670exit (42);
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677  (eval $ac_compile) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } &&
2684         { ac_try='test -z "$ac_c_werror_flag"
2685                         || test ! -s conftest.err'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; } &&
2691         { ac_try='test -s conftest.$ac_objext'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; }; then
2697  break
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702fi
2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704done
2705rm -f conftest*
2706if test -n "$ac_declaration"; then
2707  echo '#ifdef __cplusplus' >>confdefs.h
2708  echo $ac_declaration      >>confdefs.h
2709  echo '#endif'             >>confdefs.h
2710fi
2711
2712else
2713  echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716fi
2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724if test -z "$CC" ; then
2725  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2726echo "$as_me: error: Failed to find a C compiler!" >&2;}
2727   { (exit 1); exit 1; }; }
2728fi
2729# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2730case "$CC" in
2731  clang* ) ;;
2732  cl* | */cl* | CL* | */CL* )
2733    if test "$ac_cv_prog_cc_g" = yes ; then
2734      ac_cv_prog_cc_g=no
2735      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2736echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2737    fi ;;
2738  * )
2739    if test x"$CYGPATH_W" = x ; then
2740      CYGPATH_W=echo
2741    fi
2742    ;;
2743esac
2744CFLAGS="$save_cflags"
2745
2746# add automake conditional so we can recognize cl compiler in makefile
2747coin_cc_is_cl=false
2748case "$CC" in
2749  clang* ) ;;
2750  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2751    coin_cc_is_cl=true
2752    ;;
2753esac
2754
2755
2756if test $coin_cc_is_cl = true; then
2757  COIN_CC_IS_CL_TRUE=
2758  COIN_CC_IS_CL_FALSE='#'
2759else
2760  COIN_CC_IS_CL_TRUE='#'
2761  COIN_CC_IS_CL_FALSE=
2762fi
2763
2764
2765# Check if a project specific CFLAGS variable has been set
2766if test x$COIN_PRJCT != x; then
2767  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2768  if test x$coin_tmp = xset; then
2769    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2770  fi
2771fi
2772
2773if test x"$CFLAGS" = x; then
2774
2775  coin_add_cflags=
2776  coin_opt_cflags=
2777  coin_dbg_cflags=
2778  coin_warn_cflags=
2779
2780  if test "$GCC" = "yes"; then
2781    case "$CC" in
2782      icc* | */icc*)
2783        ;;
2784      *)
2785        coin_opt_cflags="-O3"
2786        coin_add_cflags="-pipe"
2787        coin_dbg_cflags="-g -O0"
2788        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2789        case $build in
2790          *-darwin*)
2791            ;;
2792          *)
2793            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2794            ;;
2795        esac
2796    esac
2797  fi
2798  if test -z "$coin_opt_cflags"; then
2799    case $build in
2800      *-cygwin* | *-mingw*)
2801        case "$CC" in
2802          clang* ) ;;
2803          cl* | */cl* | CL* | */CL*)
2804            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2805              coin_opt_cflags='-MD -O2'
2806              coin_dbg_cflags='-MDd'
2807            else
2808              coin_opt_cflags='-MT -O2'
2809              coin_dbg_cflags='-MTd'
2810            fi
2811            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2812            ;;
2813          icl* | */icl* | ICL* | */ICL*)
2814            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2815              coin_opt_cflags='-MD -Ox'
2816              coin_dbg_cflags='-MDd -debug'
2817            else
2818              coin_opt_cflags='-MT -Ox'
2819              coin_dbg_cflags='-MTd -debug'
2820            fi
2821            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2822            ;;
2823        esac
2824        ;;
2825      *-linux-*)
2826        case "$CC" in
2827          icc* | */icc*)
2828            coin_opt_cflags="-O3 -ip -mp1"
2829            coin_add_cflags=""
2830            coin_dbg_cflags="-g"
2831            # Check if -i_dynamic is necessary (for new glibc library)
2832            CFLAGS=
2833            cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h.  */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h.  */
2839
2840int
2841main ()
2842{
2843int i=0; i++;
2844  ;
2845  return 0;
2846}
2847_ACEOF
2848rm -f conftest.$ac_objext conftest$ac_exeext
2849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2850  (eval $ac_link) 2>conftest.er1
2851  ac_status=$?
2852  grep -v '^ *+' conftest.er1 >conftest.err
2853  rm -f conftest.er1
2854  cat conftest.err >&5
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } &&
2857         { ac_try='test -z "$ac_c_werror_flag"
2858                         || test ! -s conftest.err'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; } &&
2864         { ac_try='test -s conftest$ac_exeext'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; }; then
2870  :
2871else
2872  echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
2875coin_add_cflags="-i_dynamic $coin_add_cflags"
2876fi
2877rm -f conftest.err conftest.$ac_objext \
2878      conftest$ac_exeext conftest.$ac_ext
2879            ;;
2880          pgcc* | */pgcc*)
2881            coin_opt_cflags="-fast"
2882            coin_add_cflags="-Kieee -pc 64"
2883            coin_dbg_cflags="-g"
2884            ;;
2885        esac
2886        ;;
2887      *-ibm-*)
2888        case "$CC" in
2889          xlc* | */xlc* | mpxlc* | */mpxlc*)
2890            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2891            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2892            coin_dbg_cflags="-g"
2893          ;;
2894        esac
2895        ;;
2896      *-hp-*)
2897        coin_opt_cflags="-O"
2898        coin_add_cflags="-Ae"
2899        coin_dbg_cflags="-g"
2900        ;;
2901      *-*-solaris*)
2902        coin_opt_cflags="-xO4"
2903        coin_dbg_cflags="-g"
2904        ;;
2905      *-sgi-*)
2906        coin_opt_cflags="-O -OPT:Olimit=0"
2907        coin_dbg_cflags="-g"
2908        ;;
2909    esac
2910  fi
2911
2912  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2913    coin_dbg_cflags="-g"
2914  fi
2915
2916  if test -z "$coin_opt_cflags"; then
2917    # Try if -O option works if nothing else is set
2918    CFLAGS="-O"
2919    cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h.  */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h.  */
2925
2926int
2927main ()
2928{
2929int i=0; i++;
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936  (eval $ac_link) 2>conftest.er1
2937  ac_status=$?
2938  grep -v '^ *+' conftest.er1 >conftest.err
2939  rm -f conftest.er1
2940  cat conftest.err >&5
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } &&
2943         { ac_try='test -z "$ac_c_werror_flag"
2944                         || test ! -s conftest.err'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; } &&
2950         { ac_try='test -s conftest$ac_exeext'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; }; then
2956  coin_opt_cflags="-O"
2957else
2958  echo "$as_me: failed program was:" >&5
2959sed 's/^/| /' conftest.$ac_ext >&5
2960
2961fi
2962rm -f conftest.err conftest.$ac_objext \
2963      conftest$ac_exeext conftest.$ac_ext
2964  fi
2965
2966  # if PM doesn't want the warning messages, take them out
2967  if test x"$coin_skip_warn_cflags" = xyes; then
2968    coin_warn_cflags=
2969  fi
2970
2971  if test x${DBG_CFLAGS+set} != xset; then
2972    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2973  fi
2974  if test x${OPT_CFLAGS+set} != xset; then
2975    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2976  fi
2977
2978  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2979  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2980
2981  if test "$coin_debug_compile" = "true"; then
2982    CFLAGS="$DBG_CFLAGS"
2983  else
2984    CFLAGS="$OPT_CFLAGS"
2985  fi
2986else
2987  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2988  if test x${DBG_CFLAGS+set} != xset; then
2989    DBG_CFLAGS="$CFLAGS"
2990  fi
2991  if test x${OPT_CFLAGS+set} != xset; then
2992    OPT_CFLAGS="$CFLAGS"
2993  fi
2994fi
2995
2996# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2997if test x$COIN_PRJCT != x; then
2998  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2999fi
3000
3001# Try if CFLAGS works
3002save_CFLAGS="$CFLAGS"
3003cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013int i=0; i++;
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
3019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020  (eval $ac_link) 2>conftest.er1
3021  ac_status=$?
3022  grep -v '^ *+' conftest.er1 >conftest.err
3023  rm -f conftest.er1
3024  cat conftest.err >&5
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); } &&
3027         { ac_try='test -z "$ac_c_werror_flag"
3028                         || test ! -s conftest.err'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; } &&
3034         { ac_try='test -s conftest$ac_exeext'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; }; then
3040  :
3041else
3042  echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045CFLAGS=
3046fi
3047rm -f conftest.err conftest.$ac_objext \
3048      conftest$ac_exeext conftest.$ac_ext
3049if test -z "$CFLAGS"; then
3050  { 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
3051echo "$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;}
3052  CFLAGS='-O'
3053  cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063int i=0; i++;
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext conftest$ac_exeext
3069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070  (eval $ac_link) 2>conftest.er1
3071  ac_status=$?
3072  grep -v '^ *+' conftest.er1 >conftest.err
3073  rm -f conftest.er1
3074  cat conftest.err >&5
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077         { ac_try='test -z "$ac_c_werror_flag"
3078                         || test ! -s conftest.err'
3079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080  (eval $ac_try) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; } &&
3084         { ac_try='test -s conftest$ac_exeext'
3085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090  :
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095CFLAGS=
3096fi
3097rm -f conftest.err conftest.$ac_objext \
3098      conftest$ac_exeext conftest.$ac_ext
3099  if test -z "$CFLAGS"; then
3100    { 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
3101echo "$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;}
3102  fi
3103fi
3104
3105{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3106echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3107
3108
3109if test x"$MPICC" = x; then :; else
3110  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3111echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3112  CC="$MPICC"
3113fi
3114
3115# Correct the LD variable if we are using the MS or Intel-windows compiler
3116case "$CC" in
3117  clang* ) ;;
3118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3119    LD=link
3120    ;;
3121esac
3122
3123ac_ext=c
3124ac_cpp='$CPP $CPPFLAGS'
3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128
3129
3130
3131# Check if pkg-config is available (to setup addlibs file)
3132
3133
3134# Check whether --enable-pkg-config or --disable-pkg-config was given.
3135if test "${enable_pkg_config+set}" = set; then
3136  enableval="$enable_pkg_config"
3137  use_pkgconfig="$enableval"
3138else
3139  if test x$coin_cc_is_cl = xtrue; then
3140     use_pkgconfig=no
3141   else
3142     use_pkgconfig=yes
3143   fi
3144fi;
3145
3146if test $use_pkgconfig = yes ; then
3147  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3148    if test -n "$ac_tool_prefix"; then
3149  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  if test -n "$PKG_CONFIG"; then
3157  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164  for ac_exec_ext in '' $ac_executable_extensions; do
3165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171done
3172
3173fi
3174fi
3175PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3176if test -n "$PKG_CONFIG"; then
3177  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3178echo "${ECHO_T}$PKG_CONFIG" >&6
3179else
3180  echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182fi
3183
3184fi
3185if test -z "$ac_cv_prog_PKG_CONFIG"; then
3186  ac_ct_PKG_CONFIG=$PKG_CONFIG
3187  # Extract the first word of "pkg-config", so it can be a program name with args.
3188set dummy pkg-config; ac_word=$2
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3192  echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194  if test -n "$ac_ct_PKG_CONFIG"; then
3195  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202  for ac_exec_ext in '' $ac_executable_extensions; do
3203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209done
3210
3211fi
3212fi
3213ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3214if test -n "$ac_ct_PKG_CONFIG"; then
3215  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3216echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3217else
3218  echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220fi
3221
3222  PKG_CONFIG=$ac_ct_PKG_CONFIG
3223else
3224  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3225fi
3226
3227  fi
3228  if test -n "$PKG_CONFIG"; then
3229    _pkg_min_version=0.16.0
3230    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3231echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3232    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3233      echo "$as_me:$LINENO: result: yes" >&5
3234echo "${ECHO_T}yes" >&6
3235    else
3236      echo "$as_me:$LINENO: result: no" >&5
3237echo "${ECHO_T}no" >&6
3238      PKG_CONFIG=""
3239    fi
3240  fi
3241
3242  # check if pkg-config supports the short-errors flag
3243  if test -n "$PKG_CONFIG" && \
3244    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3245    pkg_short_errors=" --short-errors "
3246  else
3247    pkg_short_errors=""
3248  fi
3249fi
3250
3251
3252
3253if test -n "$PKG_CONFIG"; then
3254  COIN_HAS_PKGCONFIG_TRUE=
3255  COIN_HAS_PKGCONFIG_FALSE='#'
3256else
3257  COIN_HAS_PKGCONFIG_TRUE='#'
3258  COIN_HAS_PKGCONFIG_FALSE=
3259fi
3260
3261
3262
3263# assemble pkg-config search path for installed projects
3264COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3265
3266# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
3267# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3268# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3269if test "x${prefix}" = xNONE ; then
3270  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3271else
3272  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3273fi
3274
3275
3276# Check whether --with-coin-instdir or --without-coin-instdir was given.
3277if test "${with_coin_instdir+set}" = set; then
3278  withval="$with_coin_instdir"
3279  if test -d "$withval"; then : ; else
3280     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3281echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3282   { (exit 1); exit 1; }; }
3283   fi
3284   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3285
3286fi;
3287
3288
3289
3290# assemble additional pkg-config search paths for uninstalled projects
3291if test x$coin_projectdir = xyes ; then
3292  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3293  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3294  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3295  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
3296  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3297  if test -f ../coin_subdirs.txt ; then
3298    for i in `cat ../coin_subdirs.txt` ; do
3299      if test -d ../$i ; then
3300        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3301      fi
3302      if test -d ../$i/pkgconfig ; then
3303        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3304      fi
3305    done
3306  fi
3307
3308  if test -f ../../coin_subdirs.txt ; then
3309    for i in `cat ../../coin_subdirs.txt` ; do
3310      if test -d ../../$i ; then
3311        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3312      fi
3313      if test -d ../../$i/pkgconfig ; then
3314        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3315      fi
3316    done
3317  fi
3318
3319
3320fi
3321
3322if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3323  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
3324echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
3325fi
3326
3327
3328
3329# Initialize automake
3330{
3331
3332
3333
3334# START
3335
3336coin_disable_shared=no
3337# Test if force_shared has been set
3338if test "x" = xforce_shared; then
3339  if test x$enable_shared = xno; then
3340    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3341echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3342   { (exit 1); exit 1; }; }
3343  fi
3344  enable_shared=yes;
3345else
3346  case $build in
3347    *-cygwin* | *-mingw*)
3348      coin_disable_shared=yes
3349      if test x"$enable_shared" = xyes; then
3350        case "$CC" in
3351          clang* )
3352            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3353echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3354            ;;
3355          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3356            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3357echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3358            ;;
3359          *gcc*)
3360            if test x"$enable_dependency_linking" = xyes; then
3361              coin_disable_shared=no
3362            else
3363              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3364echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3365            fi
3366            ;;
3367          *)
3368            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3369echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3370            ;;
3371        esac
3372      fi
3373    ;;
3374    *-aix*)
3375      coin_disable_shared=yes
3376      platform=AIX
3377      if test x"$enable_shared" = xyes; then
3378        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3379echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3380      fi
3381    ;;
3382  esac
3383fi
3384if test x"$coin_disable_shared" = xyes; then
3385  if test x"$enable_shared" = xyes; then
3386    :
3387  else
3388    # we don't disable shared, because it was not selected anyway
3389    coin_disable_shared=no
3390  fi
3391  enable_shared=no
3392fi
3393# By default, we only want the shared objects to be compiled
3394# Check whether --enable-static or --disable-static was given.
3395if test "${enable_static+set}" = set; then
3396  enableval="$enable_static"
3397  p=${PACKAGE-default}
3398    case $enableval in
3399    yes) enable_static=yes ;;
3400    no) enable_static=no ;;
3401    *)
3402     enable_static=no
3403      # Look at the argument we got.  We use all the common list separators.
3404      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405      for pkg in $enableval; do
3406        IFS="$lt_save_ifs"
3407        if test "X$pkg" = "X$p"; then
3408          enable_static=yes
3409        fi
3410      done
3411      IFS="$lt_save_ifs"
3412      ;;
3413    esac
3414else
3415  enable_static=no
3416fi;
3417
3418
3419
3420
3421# Initialize automake
3422echo "$as_me:$LINENO: checking for egrep" >&5
3423echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3424if test "${ac_cv_prog_egrep+set}" = set; then
3425  echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3428    then ac_cv_prog_egrep='grep -E'
3429    else ac_cv_prog_egrep='egrep'
3430    fi
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3433echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3434 EGREP=$ac_cv_prog_egrep
3435
3436
3437echo "$as_me:$LINENO: checking whether ln -s works" >&5
3438echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3439LN_S=$as_ln_s
3440if test "$LN_S" = "ln -s"; then
3441  echo "$as_me:$LINENO: result: yes" >&5
3442echo "${ECHO_T}yes" >&6
3443else
3444  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3445echo "${ECHO_T}no, using $LN_S" >&6
3446fi
3447
3448am__api_version="1.9"
3449# Find a good install program.  We prefer a C program (faster),
3450# so one script is as good as another.  But avoid the broken or
3451# incompatible versions:
3452# SysV /etc/install, /usr/sbin/install
3453# SunOS /usr/etc/install
3454# IRIX /sbin/install
3455# AIX /bin/install
3456# AmigaOS /C/install, which installs bootblocks on floppy discs
3457# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3458# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3459# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460# OS/2's system install, which has a completely different semantic
3461# ./install, which can be erroneously created by make from ./install.sh.
3462echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3463echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3464if test -z "$INSTALL"; then
3465if test "${ac_cv_path_install+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in $PATH
3470do
3471  IFS=$as_save_IFS
3472  test -z "$as_dir" && as_dir=.
3473  # Account for people who put trailing slashes in PATH elements.
3474case $as_dir/ in
3475  ./ | .// | /cC/* | \
3476  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3477  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3478  /usr/ucb/* ) ;;
3479  *)
3480    # OSF1 and SCO ODT 3.0 have their own names for install.
3481    # Don't use installbsd from OSF since it installs stuff as root
3482    # by default.
3483    for ac_prog in ginstall scoinst install; do
3484      for ac_exec_ext in '' $ac_executable_extensions; do
3485        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3486          if test $ac_prog = install &&
3487            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488            # AIX install.  It has an incompatible calling convention.
3489            :
3490          elif test $ac_prog = install &&
3491            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492            # program-specific install script used by HP pwplus--don't use.
3493            :
3494          else
3495            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3496            break 3
3497          fi
3498        fi
3499      done
3500    done
3501    ;;
3502esac
3503done
3504
3505
3506fi
3507  if test "${ac_cv_path_install+set}" = set; then
3508    INSTALL=$ac_cv_path_install
3509  else
3510    # As a last resort, use the slow shell script.  We don't cache a
3511    # path for INSTALL within a source directory, because that will
3512    # break other packages using the cache if that directory is
3513    # removed, or if the path is relative.
3514    INSTALL=$ac_install_sh
3515  fi
3516fi
3517echo "$as_me:$LINENO: result: $INSTALL" >&5
3518echo "${ECHO_T}$INSTALL" >&6
3519
3520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3521# It thinks the first close brace ends the variable substitution.
3522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3523
3524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3525
3526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3527
3528echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3529echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3530# Just in case
3531sleep 1
3532echo timestamp > conftest.file
3533# Do `set' in a subshell so we don't clobber the current shell's
3534# arguments.  Must try -L first in case configure is actually a
3535# symlink; some systems play weird games with the mod time of symlinks
3536# (eg FreeBSD returns the mod time of the symlink's containing
3537# directory).
3538if (
3539   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3540   if test "$*" = "X"; then
3541      # -L didn't work.
3542      set X `ls -t $srcdir/configure conftest.file`
3543   fi
3544   rm -f conftest.file
3545   if test "$*" != "X $srcdir/configure conftest.file" \
3546      && test "$*" != "X conftest.file $srcdir/configure"; then
3547
3548      # If neither matched, then we have a broken ls.  This can happen
3549      # if, for instance, CONFIG_SHELL is bash and it inherits a
3550      # broken ls alias from the environment.  This has actually
3551      # happened.  Such a system could not be considered "sane".
3552      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3553alias in your environment" >&5
3554echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3555alias in your environment" >&2;}
3556   { (exit 1); exit 1; }; }
3557   fi
3558
3559   test "$2" = conftest.file
3560   )
3561then
3562   # Ok.
3563   :
3564else
3565   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3566Check your system clock" >&5
3567echo "$as_me: error: newly created file is older than distributed files!
3568Check your system clock" >&2;}
3569   { (exit 1); exit 1; }; }
3570fi
3571echo "$as_me:$LINENO: result: yes" >&5
3572echo "${ECHO_T}yes" >&6
3573test "$program_prefix" != NONE &&
3574  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3575# Use a double $ so make ignores it.
3576test "$program_suffix" != NONE &&
3577  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3578# Double any \ or $.  echo might interpret backslashes.
3579# By default was `s,x,x', remove it if useless.
3580cat <<\_ACEOF >conftest.sed
3581s/[\\$]/&&/g;s/;s,x,x,$//
3582_ACEOF
3583program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3584rm conftest.sed
3585
3586# expand $ac_aux_dir to an absolute path
3587am_aux_dir=`cd $ac_aux_dir && pwd`
3588
3589test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3590# Use eval to expand $SHELL
3591if eval "$MISSING --run true"; then
3592  am_missing_run="$MISSING --run "
3593else
3594  am_missing_run=
3595  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3596echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3597fi
3598
3599if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3600  # We used to keeping the `.' as first argument, in order to
3601  # allow $(mkdir_p) to be used without argument.  As in
3602  #   $(mkdir_p) $(somedir)
3603  # where $(somedir) is conditionally defined.  However this is wrong
3604  # for two reasons:
3605  #  1. if the package is installed by a user who cannot write `.'
3606  #     make install will fail,
3607  #  2. the above comment should most certainly read
3608  #     $(mkdir_p) $(DESTDIR)$(somedir)
3609  #     so it does not work when $(somedir) is undefined and
3610  #     $(DESTDIR) is not.
3611  #  To support the latter case, we have to write
3612  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3613  #  so the `.' trick is pointless.
3614  mkdir_p='mkdir -p --'
3615else
3616  # On NextStep and OpenStep, the `mkdir' command does not
3617  # recognize any option.  It will interpret all options as
3618  # directories to create, and then abort because `.' already
3619  # exists.
3620  for d in ./-p ./--version;
3621  do
3622    test -d $d && rmdir $d
3623  done
3624  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3625  if test -f "$ac_aux_dir/mkinstalldirs"; then
3626    mkdir_p='$(mkinstalldirs)'
3627  else
3628    mkdir_p='$(install_sh) -d'
3629  fi
3630fi
3631
3632for ac_prog in gawk mawk nawk awk
3633do
3634  # Extract the first word of "$ac_prog", so it can be a program name with args.
3635set dummy $ac_prog; ac_word=$2
3636echo "$as_me:$LINENO: checking for $ac_word" >&5
3637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638if test "${ac_cv_prog_AWK+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  if test -n "$AWK"; then
3642  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3643else
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647  IFS=$as_save_IFS
3648  test -z "$as_dir" && as_dir=.
3649  for ac_exec_ext in '' $ac_executable_extensions; do
3650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651    ac_cv_prog_AWK="$ac_prog"
3652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653    break 2
3654  fi
3655done
3656done
3657
3658fi
3659fi
3660AWK=$ac_cv_prog_AWK
3661if test -n "$AWK"; then
3662  echo "$as_me:$LINENO: result: $AWK" >&5
3663echo "${ECHO_T}$AWK" >&6
3664else
3665  echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
3667fi
3668
3669  test -n "$AWK" && break
3670done
3671
3672echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3673echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3674set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3675if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3676  echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678  cat >conftest.make <<\_ACEOF
3679all:
3680        @echo 'ac_maketemp="$(MAKE)"'
3681_ACEOF
3682# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3683eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3684if test -n "$ac_maketemp"; then
3685  eval ac_cv_prog_make_${ac_make}_set=yes
3686else
3687  eval ac_cv_prog_make_${ac_make}_set=no
3688fi
3689rm -f conftest.make
3690fi
3691if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3692  echo "$as_me:$LINENO: result: yes" >&5
3693echo "${ECHO_T}yes" >&6
3694  SET_MAKE=
3695else
3696  echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
3698  SET_MAKE="MAKE=${MAKE-make}"
3699fi
3700
3701rm -rf .tst 2>/dev/null
3702mkdir .tst 2>/dev/null
3703if test -d .tst; then
3704  am__leading_dot=.
3705else
3706  am__leading_dot=_
3707fi
3708rmdir .tst 2>/dev/null
3709
3710DEPDIR="${am__leading_dot}deps"
3711
3712          ac_config_commands="$ac_config_commands depfiles"
3713
3714
3715am_make=${MAKE-make}
3716cat > confinc << 'END'
3717am__doit:
3718        @echo done
3719.PHONY: am__doit
3720END
3721# If we don't find an include directive, just comment out the code.
3722echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3723echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3724am__include="#"
3725am__quote=
3726_am_result=none
3727# First try GNU make style include.
3728echo "include confinc" > confmf
3729# We grep out `Entering directory' and `Leaving directory'
3730# messages which can occur if `w' ends up in MAKEFLAGS.
3731# In particular we don't look at `^make:' because GNU make might
3732# be invoked under some other name (usually "gmake"), in which
3733# case it prints its new name instead of `make'.
3734if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3735   am__include=include
3736   am__quote=
3737   _am_result=GNU
3738fi
3739# Now try BSD make style include.
3740if test "$am__include" = "#"; then
3741   echo '.include "confinc"' > confmf
3742   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3743      am__include=.include
3744      am__quote="\""
3745      _am_result=BSD
3746   fi
3747fi
3748
3749
3750echo "$as_me:$LINENO: result: $_am_result" >&5
3751echo "${ECHO_T}$_am_result" >&6
3752rm -f confinc confmf
3753
3754# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3755if test "${enable_dependency_tracking+set}" = set; then
3756  enableval="$enable_dependency_tracking"
3757
3758fi;
3759if test "x$enable_dependency_tracking" != xno; then
3760  am_depcomp="$ac_aux_dir/depcomp"
3761  AMDEPBACKSLASH='\'
3762fi
3763
3764
3765if test "x$enable_dependency_tracking" != xno; then
3766  AMDEP_TRUE=
3767  AMDEP_FALSE='#'
3768else
3769  AMDEP_TRUE='#'
3770  AMDEP_FALSE=
3771fi
3772
3773
3774
3775
3776
3777
3778# AC_MSG_NOTICE([Beginning automake initialisation.])
3779# Stuff for automake
3780# test to see if srcdir already configured
3781if test "`cd $srcdir && pwd`" != "`pwd`" &&
3782   test -f $srcdir/config.status; then
3783  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3784echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3785   { (exit 1); exit 1; }; }
3786fi
3787
3788# test whether we have cygpath
3789if test -z "$CYGPATH_W"; then
3790  if (cygpath --version) >/dev/null 2>/dev/null; then
3791    CYGPATH_W='cygpath -w'
3792  else
3793    CYGPATH_W=echo
3794  fi
3795fi
3796
3797
3798# Define the identity of the package.
3799 PACKAGE='thirdpartymetis'
3800 VERSION='1.3'
3801
3802
3803cat >>confdefs.h <<_ACEOF
3804#define PACKAGE "$PACKAGE"
3805_ACEOF
3806
3807
3808cat >>confdefs.h <<_ACEOF
3809#define VERSION "$VERSION"
3810_ACEOF
3811
3812# Some tools Automake needs.
3813
3814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3815
3816
3817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3818
3819
3820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3821
3822
3823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3824
3825
3826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3827
3828install_sh=${install_sh-"$am_aux_dir/install-sh"}
3829
3830# Installed binaries are usually stripped using `strip' when the user
3831# run `make install-strip'.  However `strip' might not be the right
3832# tool to use in cross-compilation environments, therefore Automake
3833# will honor the `STRIP' environment variable to overrule this program.
3834if test "$cross_compiling" != no; then
3835  if test -n "$ac_tool_prefix"; then
3836  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3837set dummy ${ac_tool_prefix}strip; ac_word=$2
3838echo "$as_me:$LINENO: checking for $ac_word" >&5
3839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840if test "${ac_cv_prog_STRIP+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843  if test -n "$STRIP"; then
3844  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849  IFS=$as_save_IFS
3850  test -z "$as_dir" && as_dir=.
3851  for ac_exec_ext in '' $ac_executable_extensions; do
3852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855    break 2
3856  fi
3857done
3858done
3859
3860fi
3861fi
3862STRIP=$ac_cv_prog_STRIP
3863if test -n "$STRIP"; then
3864  echo "$as_me:$LINENO: result: $STRIP" >&5
3865echo "${ECHO_T}$STRIP" >&6
3866else
3867  echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
3869fi
3870
3871fi
3872if test -z "$ac_cv_prog_STRIP"; then
3873  ac_ct_STRIP=$STRIP
3874  # Extract the first word of "strip", so it can be a program name with args.
3875set dummy strip; ac_word=$2
3876echo "$as_me:$LINENO: checking for $ac_word" >&5
3877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3879  echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881  if test -n "$ac_ct_STRIP"; then
3882  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887  IFS=$as_save_IFS
3888  test -z "$as_dir" && as_dir=.
3889  for ac_exec_ext in '' $ac_executable_extensions; do
3890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891    ac_cv_prog_ac_ct_STRIP="strip"
3892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893    break 2
3894  fi
3895done
3896done
3897
3898  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3899fi
3900fi
3901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3902if test -n "$ac_ct_STRIP"; then
3903  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3904echo "${ECHO_T}$ac_ct_STRIP" >&6
3905else
3906  echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
3908fi
3909
3910  STRIP=$ac_ct_STRIP
3911else
3912  STRIP="$ac_cv_prog_STRIP"
3913fi
3914
3915fi
3916INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3917
3918# We need awk for the "check" target.  The system "awk" is bad on
3919# some platforms.
3920# Always define AMTAR for backward compatibility.
3921
3922AMTAR=${AMTAR-"${am_missing_run}tar"}
3923
3924am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3925
3926
3927
3928
3929depcc="$CC"   am_compiler_list=
3930
3931echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3932echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3933if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3934  echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3937  # We make a subdir and do the tests there.  Otherwise we can end up
3938  # making bogus files that we don't know about and never remove.  For
3939  # instance it was reported that on HP-UX the gcc test will end up
3940  # making a dummy file named `D' -- because `-MD' means `put the output
3941  # in D'.
3942  mkdir conftest.dir
3943  # Copy depcomp to subdir because otherwise we won't find it if we're
3944  # using a relative directory.
3945  cp "$am_depcomp" conftest.dir
3946  cd conftest.dir
3947  # We will build objects and dependencies in a subdirectory because
3948  # it helps to detect inapplicable dependency modes.  For instance
3949  # both Tru64's cc and ICC support -MD to output dependencies as a
3950  # side effect of compilation, but ICC will put the dependencies in
3951  # the current directory while Tru64 will put them in the object
3952  # directory.
3953  mkdir sub
3954
3955  am_cv_CC_dependencies_compiler_type=none
3956  if test "$am_compiler_list" = ""; then
3957     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958  fi
3959  for depmode in $am_compiler_list; do
3960    # Setup a source with many dependencies, because some compilers
3961    # like to wrap large dependency lists on column 80 (with \), and
3962    # we should not choose a depcomp mode which is confused by this.
3963    #
3964    # We need to recreate these files for each test, as the compiler may
3965    # overwrite some of them when testing with obscure command lines.
3966    # This happens at least with the AIX C compiler.
3967    : > sub/conftest.c
3968    for i in 1 2 3 4 5 6; do
3969      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3971      # Solaris 8's {/usr,}/bin/sh.
3972      touch sub/conftst$i.h
3973    done
3974    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976    case $depmode in
3977    nosideeffect)
3978      # after this tag, mechanisms are not by side-effect, so they'll
3979      # only be used when explicitly requested
3980      if test "x$enable_dependency_tracking" = xyes; then
3981        continue
3982      else
3983        break
3984      fi
3985      ;;
3986    none) break ;;
3987    esac
3988    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3989    # mode.  It turns out that the SunPro C++ compiler does not properly
3990    # handle `-M -o', and we need to detect this.
3991    if depmode=$depmode \
3992       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3993       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3995         >/dev/null 2>conftest.err &&
3996       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3997       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3998       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3999      # icc doesn't choke on unknown options, it will just issue warnings
4000      # or remarks (even with -Werror).  So we grep stderr for any message
4001      # that says an option was ignored or not supported.
4002      # When given -MP, icc 7.0 and 7.1 complain thusly:
4003      #   icc: Command line warning: ignoring option '-M'; no argument required
4004      # The diagnosis changed in icc 8.0:
4005      #   icc: Command line remark: option '-MP' not supported
4006      if (grep 'ignoring option' conftest.err ||
4007          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4008        am_cv_CC_dependencies_compiler_type=$depmode
4009        break
4010      fi
4011    fi
4012  done
4013
4014  cd ..
4015  rm -rf conftest.dir
4016else
4017  am_cv_CC_dependencies_compiler_type=none
4018fi
4019
4020fi
4021echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4022echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4023CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024
4025
4026
4027if
4028  test "x$enable_dependency_tracking" != xno \
4029  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4030  am__fastdepCC_TRUE=
4031  am__fastdepCC_FALSE='#'
4032else
4033  am__fastdepCC_TRUE='#'
4034  am__fastdepCC_FALSE=
4035fi
4036
4037
4038
4039echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4040echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4041    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4042if test "${enable_maintainer_mode+set}" = set; then
4043  enableval="$enable_maintainer_mode"
4044  USE_MAINTAINER_MODE=$enableval
4045else
4046  USE_MAINTAINER_MODE=no
4047fi;
4048  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4049echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4050
4051
4052if test $USE_MAINTAINER_MODE = yes; then
4053  MAINTAINER_MODE_TRUE=
4054  MAINTAINER_MODE_FALSE='#'
4055else
4056  MAINTAINER_MODE_TRUE='#'
4057  MAINTAINER_MODE_FALSE=
4058fi
4059
4060  MAINT=$MAINTAINER_MODE_TRUE
4061
4062
4063
4064coin_have_externals=no
4065if test "$enable_maintainer_mode" = yes; then
4066
4067  # If maintainer mode is chosen, we make sure that the correct versions
4068  # of the tools are used, and that we know where libtool.m4 is (to
4069  # recreate acinclude.m4)
4070
4071
4072  LIBTOOLM4=
4073  # Normally, $HOME
4074  AUTOTOOLS_DFLT=$HOME
4075
4076  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4077echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4078if test "${ac_cv_use_correct_autotools+set}" = set; then
4079  echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081  ac_cv_use_correct_autotools=check
4082fi
4083echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4084echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4085
4086  if test $ac_cv_use_correct_autotools = check; then
4087    ac_cv_use_correct_autotools=yes
4088    # Check if we have autoconf
4089    # Extract the first word of "autoconf", so it can be a program name with args.
4090set dummy autoconf; ac_word=$2
4091echo "$as_me:$LINENO: checking for $ac_word" >&5
4092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093if test "${ac_cv_prog_have_autoconf+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  if test -n "$have_autoconf"; then
4097  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4098else
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102  IFS=$as_save_IFS
4103  test -z "$as_dir" && as_dir=.
4104  for ac_exec_ext in '' $ac_executable_extensions; do
4105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106    ac_cv_prog_have_autoconf="yes"
4107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108    break 2
4109  fi
4110done
4111done
4112
4113  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4114fi
4115fi
4116have_autoconf=$ac_cv_prog_have_autoconf
4117if test -n "$have_autoconf"; then
4118  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4119echo "${ECHO_T}$have_autoconf" >&6
4120else
4121  echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123fi
4124
4125    if test $have_autoconf = no; then
4126      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4127echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4128   { (exit 1); exit 1; }; }
4129    fi
4130
4131    # Check whether autoconf is the correct version
4132    correct_version='2.59'
4133    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4134    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4135echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4136    autoconf --version > confauto.out 2>&1
4137    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4138      echo "$as_me:$LINENO: result: yes" >&5
4139echo "${ECHO_T}yes" >&6
4140    else
4141      rm -f confauto.out
4142      echo "$as_me:$LINENO: result: no" >&5
4143echo "${ECHO_T}no" >&6
4144      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4145echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4146   { (exit 1); exit 1; }; }
4147    fi
4148    rm -f confauto.out
4149
4150    # Check if the executable autoconf is picked up from the correct location
4151    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4152echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4153    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4154    autoconf_dir=`cd $autoconf_dir; pwd`
4155    if test x$AUTOTOOLS_DIR = x; then
4156      want_dir=$AUTOTOOLS_DFLT/bin
4157    else
4158      want_dir=$AUTOTOOLS_DIR/bin
4159    fi
4160    if test $autoconf_dir = `cd $want_dir; pwd`; then
4161      echo "$as_me:$LINENO: result: yes" >&5
4162echo "${ECHO_T}yes" >&6
4163    else
4164      rm -f confauto.out
4165      echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4168echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4169   { (exit 1); exit 1; }; }
4170    fi
4171
4172    # Check if we have automake
4173    # Extract the first word of "automake", so it can be a program name with args.
4174set dummy automake; ac_word=$2
4175echo "$as_me:$LINENO: checking for $ac_word" >&5
4176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4177if test "${ac_cv_prog_have_automake+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180  if test -n "$have_automake"; then
4181  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4182else
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186  IFS=$as_save_IFS
4187  test -z "$as_dir" && as_dir=.
4188  for ac_exec_ext in '' $ac_executable_extensions; do
4189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190    ac_cv_prog_have_automake="yes"
4191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4192    break 2
4193  fi
4194done
4195done
4196
4197  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4198fi
4199fi
4200have_automake=$ac_cv_prog_have_automake
4201if test -n "$have_automake"; then
4202  echo "$as_me:$LINENO: result: $have_automake" >&5
4203echo "${ECHO_T}$have_automake" >&6
4204else
4205  echo "$as_me:$LINENO: result: no" >&5
4206echo "${ECHO_T}no" >&6
4207fi
4208
4209    if test $have_automake = no; then
4210      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4211echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4212   { (exit 1); exit 1; }; }
4213    fi
4214
4215    # Check whether automake is the correct version
4216    correct_version='1.9.6'
4217    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4218    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4219echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4220    automake --version > confauto.out 2>&1
4221    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4222      echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
4224    else
4225      rm -f confauto.out
4226      echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
4228      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4229echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4230   { (exit 1); exit 1; }; }
4231    fi
4232    rm -f confauto.out
4233
4234    # Check if the executable automake is picked up from the correct location
4235    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4236echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4237    automake_dir=`which automake | sed -e 's=/automake=='`
4238    automake_dir=`cd $automake_dir; pwd`
4239    if test x$AUTOTOOLS_DIR = x; then
4240      want_dir=$AUTOTOOLS_DFLT/bin
4241    else
4242      want_dir=$AUTOTOOLS_DIR/bin
4243    fi
4244    if test $automake_dir = `cd $want_dir; pwd`; then
4245      echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247    else
4248      rm -f confauto.out
4249      echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
4251      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4252echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4253   { (exit 1); exit 1; }; }
4254    fi
4255
4256    # Check if this is the correct version of libtool (with escaped dots)
4257    if test x$AUTOTOOLS_DIR = x; then
4258      want_dir=$AUTOTOOLS_DFLT/share
4259    else
4260      want_dir=$AUTOTOOLS_DIR/share
4261    fi
4262    correct_version='1.5.22'
4263    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4264    if test -r $want_dir/libtool/ltmain.sh; then
4265  have_ltmain=yes
4266  :
4267else
4268  have_ltmain=no
4269  :
4270fi
4271
4272    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4273echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4274    if test $have_ltmain = yes; then
4275    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4276        echo "$as_me:$LINENO: result: yes" >&5
4277echo "${ECHO_T}yes" >&6
4278      else
4279        echo "$as_me:$LINENO: result: no" >&5
4280echo "${ECHO_T}no" >&6
4281        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4282echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4283   { (exit 1); exit 1; }; }
4284      fi
4285    else
4286      echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4289echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4290   { (exit 1); exit 1; }; }
4291    fi
4292  fi
4293
4294  # Check if we can find the libtool file
4295  if test x$AUTOTOOLS_DIR = x; then
4296    want_dir=$AUTOTOOLS_DFLT/share
4297  else
4298    want_dir=$AUTOTOOLS_DIR/share
4299  fi
4300  if test -r $want_dir/aclocal/libtool.m4; then
4301  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4302  :
4303else
4304  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4305echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4306   { (exit 1); exit 1; }; }
4307  :
4308fi
4309
4310
4311  # Check if we have an Dependencies file
4312  if test -r $srcdir/Dependencies; then
4313    coin_have_externals=yes
4314  fi
4315  # Check if subversion is installed and understands https
4316  # Extract the first word of "svn", so it can be a program name with args.
4317set dummy svn; ac_word=$2
4318echo "$as_me:$LINENO: checking for $ac_word" >&5
4319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320if test "${ac_cv_prog_have_svn+set}" = set; then
4321  echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323  if test -n "$have_svn"; then
4324  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4325else
4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329  IFS=$as_save_IFS
4330  test -z "$as_dir" && as_dir=.
4331  for ac_exec_ext in '' $ac_executable_extensions; do
4332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333    ac_cv_prog_have_svn="yes"
4334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335    break 2
4336  fi
4337done
4338done
4339
4340  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4341fi
4342fi
4343have_svn=$ac_cv_prog_have_svn
4344if test -n "$have_svn"; then
4345  echo "$as_me:$LINENO: result: $have_svn" >&5
4346echo "${ECHO_T}$have_svn" >&6
4347else
4348  echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
4350fi
4351
4352  if test x$have_svn = xyes; then
4353    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4354echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4355if test "${ac_cv_svn_understands_https+set}" = set; then
4356  echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358  svn --version > confauto.out 2>&1
4359                    if $EGREP https confauto.out >/dev/null 2>&1; then
4360                      ac_cv_svn_understands_https=yes
4361                    else
4362                      ac_cv_svn_understands_https=no
4363                      have_svn=no
4364                      ac_cv_prog_have_svn=no
4365                    fi
4366                    rm -f confauto.out
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4369echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4370  fi
4371
4372  # Find the location of the BuildTools directory
4373  BUILDTOOLSDIR=
4374  if test -r $srcdir/BuildTools/coin.m4; then
4375    BUILDTOOLSDIR=$srcdir/BuildTools
4376  else
4377    if test -r $srcdir/../BuildTools/coin.m4; then
4378      BUILDTOOLSDIR=$srcdir/../BuildTools
4379    else
4380      if test -r $srcdir/../../BuildTools/coin.m4; then
4381        BUILDTOOLSDIR=$srcdir/../../BuildTools
4382      else
4383        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4384echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4385   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4386      fi
4387    fi
4388  fi
4389
4390
4391  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4392  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4393    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4394  fi
4395
4396  # The following variable is set to the name of the directory where
4397  # the autotool scripts are located
4398
4399  AUX_DIR=$ac_aux_dir
4400fi
4401
4402# helpful variable for the base directory of this package
4403abs_source_dir=`cd $srcdir; pwd`
4404
4405
4406# Stuff for example Makefiles
4407if test x$prefix = xNONE; then
4408  full_prefix=$ac_default_prefix
4409else
4410  full_prefix=$prefix
4411fi
4412full_prefix=`cd $full_prefix ; pwd`
4413
4414abs_lib_dir=$full_prefix/lib
4415
4416abs_include_dir=$full_prefix/include
4417
4418abs_bin_dir=$full_prefix/bin
4419
4420
4421
4422if test $coin_have_externals = yes && test x$have_svn = xyes; then
4423  HAVE_EXTERNALS_TRUE=
4424  HAVE_EXTERNALS_FALSE='#'
4425else
4426  HAVE_EXTERNALS_TRUE='#'
4427  HAVE_EXTERNALS_FALSE=
4428fi
4429
4430
4431# AC_MSG_NOTICE([End automake initialisation.])
4432
4433
4434
4435LIBTOOL=
4436if test -f ../libtool; then
4437  coin_config_dir=..
4438  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4439fi
4440if test "x$LIBTOOL" = x; then
4441  if test -f ../../libtool; then
4442    coin_config_dir=../..
4443    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4444  fi
4445fi
4446
4447if test "x$LIBTOOL" = x; then
4448# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4449  # Stuff for libtool
4450  # Check whether --enable-shared or --disable-shared was given.
4451if test "${enable_shared+set}" = set; then
4452  enableval="$enable_shared"
4453  p=${PACKAGE-default}
4454    case $enableval in
4455    yes) enable_shared=yes ;;
4456    no) enable_shared=no ;;
4457    *)
4458      enable_shared=no
4459      # Look at the argument we got.  We use all the common list separators.
4460      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4461      for pkg in $enableval; do
4462        IFS="$lt_save_ifs"
4463        if test "X$pkg" = "X$p"; then
4464          enable_shared=yes
4465        fi
4466      done
4467      IFS="$lt_save_ifs"
4468      ;;
4469    esac
4470else
4471  enable_shared=yes
4472fi;
4473
4474# Check whether --enable-fast-install or --disable-fast-install was given.
4475if test "${enable_fast_install+set}" = set; then
4476  enableval="$enable_fast_install"
4477  p=${PACKAGE-default}
4478    case $enableval in
4479    yes) enable_fast_install=yes ;;
4480    no) enable_fast_install=no ;;
4481    *)
4482      enable_fast_install=no
4483      # Look at the argument we got.  We use all the common list separators.
4484      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4485      for pkg in $enableval; do
4486        IFS="$lt_save_ifs"
4487        if test "X$pkg" = "X$p"; then
4488          enable_fast_install=yes
4489        fi
4490      done
4491      IFS="$lt_save_ifs"
4492      ;;
4493    esac
4494else
4495  enable_fast_install=yes
4496fi;
4497
4498echo "$as_me:$LINENO: checking host system type" >&5
4499echo $ECHO_N "checking host system type... $ECHO_C" >&6
4500if test "${ac_cv_host+set}" = set; then
4501  echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503  ac_cv_host_alias=$host_alias
4504test -z "$ac_cv_host_alias" &&
4505  ac_cv_host_alias=$ac_cv_build_alias
4506ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4507  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4508echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4509   { (exit 1); exit 1; }; }
4510
4511fi
4512echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4513echo "${ECHO_T}$ac_cv_host" >&6
4514host=$ac_cv_host
4515host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4516host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4517host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4518
4519
4520echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4521echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4522if test "${lt_cv_path_SED+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  # Loop through the user's path and test for sed and gsed.
4526# Then use that list of sed's as ones to test for truncation.
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530  IFS=$as_save_IFS
4531  test -z "$as_dir" && as_dir=.
4532  for lt_ac_prog in sed gsed; do
4533    for ac_exec_ext in '' $ac_executable_extensions; do
4534      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4535        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4536      fi
4537    done
4538  done
4539done
4540lt_ac_max=0
4541lt_ac_count=0
4542# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4543# along with /bin/sed that truncates output.
4544for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4545  test ! -f $lt_ac_sed && continue
4546  cat /dev/null > conftest.in
4547  lt_ac_count=0
4548  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4549  # Check for GNU sed and select it if it is found.
4550  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4551    lt_cv_path_SED=$lt_ac_sed
4552    break
4553  fi
4554  while true; do
4555    cat conftest.in conftest.in >conftest.tmp
4556    mv conftest.tmp conftest.in
4557    cp conftest.in conftest.nl
4558    echo >>conftest.nl
4559    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4560    cmp -s conftest.out conftest.nl || break
4561    # 10000 chars as input seems more than enough
4562    test $lt_ac_count -gt 10 && break
4563    lt_ac_count=`expr $lt_ac_count + 1`
4564    if test $lt_ac_count -gt $lt_ac_max; then
4565      lt_ac_max=$lt_ac_count
4566      lt_cv_path_SED=$lt_ac_sed
4567    fi
4568  done
4569done
4570
4571fi
4572
4573SED=$lt_cv_path_SED
4574echo "$as_me:$LINENO: result: $SED" >&5
4575echo "${ECHO_T}$SED" >&6
4576
4577
4578# Check whether --with-gnu-ld or --without-gnu-ld was given.
4579if test "${with_gnu_ld+set}" = set; then
4580  withval="$with_gnu_ld"
4581  test "$withval" = no || with_gnu_ld=yes
4582else
4583  with_gnu_ld=no
4584fi;
4585ac_prog=ld
4586if test "$GCC" = yes; then
4587  # Check if gcc -print-prog-name=ld gives a path.
4588  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4589echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4590  case $host in
4591  *-*-mingw*)
4592    # gcc leaves a trailing carriage return which upsets mingw
4593    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4594  *)
4595    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4596  esac
4597  case $ac_prog in
4598    # Accept absolute paths.
4599    [\\/]* | ?:[\\/]*)
4600      re_direlt='/[^/][^/]*/\.\./'
4601      # Canonicalize the pathname of ld
4602      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4603      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4604        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4605      done
4606      test -z "$LD" && LD="$ac_prog"
4607      ;;
4608  "")
4609    # If it fails, then pretend we aren't using GCC.
4610    ac_prog=ld
4611    ;;
4612  *)
4613    # If it is relative, then search for the first ld in PATH.
4614    with_gnu_ld=unknown
4615    ;;
4616  esac
4617elif test "$with_gnu_ld" = yes; then
4618  echo "$as_me:$LINENO: checking for GNU ld" >&5
4619echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4620else
4621  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4622echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4623fi
4624if test "${lt_cv_path_LD+set}" = set; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627  if test -z "$LD"; then
4628  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629  for ac_dir in $PATH; do
4630    IFS="$lt_save_ifs"
4631    test -z "$ac_dir" && ac_dir=.
4632    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4633      lt_cv_path_LD="$ac_dir/$ac_prog"
4634      # Check to see if the program is GNU ld.  I'd rather use --version,
4635      # but apparently some variants of GNU ld only accept -v.
4636      # Break only if it was the GNU/non-GNU ld that we prefer.
4637      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4638      *GNU* | *'with BFD'*)
4639        test "$with_gnu_ld" != no && break
4640        ;;
4641      *)
4642        test "$with_gnu_ld" != yes && break
4643        ;;
4644      esac
4645    fi
4646  done
4647  IFS="$lt_save_ifs"
4648else
4649  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4650fi
4651fi
4652
4653LD="$lt_cv_path_LD"
4654if test -n "$LD"; then
4655  echo "$as_me:$LINENO: result: $LD" >&5
4656echo "${ECHO_T}$LD" >&6
4657else
4658  echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6
4660fi
4661test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4662echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4663   { (exit 1); exit 1; }; }
4664echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4665echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4666if test "${lt_cv_prog_gnu_ld+set}" = set; then
4667  echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4670case `$LD -v 2>&1 </dev/null` in
4671*GNU* | *'with BFD'*)
4672  lt_cv_prog_gnu_ld=yes
4673  ;;
4674*)
4675  lt_cv_prog_gnu_ld=no
4676  ;;
4677esac
4678fi
4679echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4680echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4681with_gnu_ld=$lt_cv_prog_gnu_ld
4682
4683
4684echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4685echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4686if test "${lt_cv_ld_reload_flag+set}" = set; then
4687  echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689  lt_cv_ld_reload_flag='-r'
4690fi
4691echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4692echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4693reload_flag=$lt_cv_ld_reload_flag
4694case $reload_flag in
4695"" | " "*) ;;
4696*) reload_flag=" $reload_flag" ;;
4697esac
4698reload_cmds='$LD$reload_flag -o $output$reload_objs'
4699case $host_os in
4700  darwin*)
4701    if test "$GCC" = yes; then
4702      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4703    else
4704      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4705    fi
4706    ;;
4707esac
4708
4709echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4710echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4711if test "${lt_cv_path_NM+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  if test -n "$NM"; then
4715  # Let the user override the test.
4716  lt_cv_path_NM="$NM"
4717else
4718  lt_nm_to_check="${ac_tool_prefix}nm"
4719  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4720    lt_nm_to_check="$lt_nm_to_check nm"
4721  fi
4722  for lt_tmp_nm in $lt_nm_to_check; do
4723    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4724    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4725      IFS="$lt_save_ifs"
4726      test -z "$ac_dir" && ac_dir=.
4727      tmp_nm="$ac_dir/$lt_tmp_nm"
4728      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4729        # Check to see if the nm accepts a BSD-compat flag.
4730        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4731        #   nm: unknown option "B" ignored
4732        # Tru64's nm complains that /dev/null is an invalid object file
4733        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4734        */dev/null* | *'Invalid file or object type'*)
4735          lt_cv_path_NM="$tmp_nm -B"
4736          break
4737          ;;
4738        *)
4739          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4740          */dev/null*)
4741            lt_cv_path_NM="$tmp_nm -p"
4742            break
4743            ;;
4744          *)
4745            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4746            continue # so that we can try to find one that supports BSD flags
4747            ;;
4748          esac
4749          ;;
4750        esac
4751      fi
4752    done
4753    IFS="$lt_save_ifs"
4754  done
4755  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4756fi
4757fi
4758echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4759echo "${ECHO_T}$lt_cv_path_NM" >&6
4760NM="$lt_cv_path_NM"
4761
4762echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4763echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4764if test "${lt_cv_deplibs_check_method+set}" = set; then
4765  echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767  lt_cv_file_magic_cmd='$MAGIC_CMD'
4768lt_cv_file_magic_test_file=
4769lt_cv_deplibs_check_method='unknown'
4770# Need to set the preceding variable on all platforms that support
4771# interlibrary dependencies.
4772# 'none' -- dependencies not supported.
4773# `unknown' -- same as none, but documents that we really don't know.
4774# 'pass_all' -- all dependencies passed with no checks.
4775# 'test_compile' -- check by making test program.
4776# 'file_magic [[regex]]' -- check by looking for files in library path
4777# which responds to the $file_magic_cmd with a given extended regex.
4778# If you have `file' or equivalent on your system and you're not sure
4779# whether `pass_all' will *always* work, you probably want this one.
4780
4781case $host_os in
4782aix4* | aix5*)
4783  lt_cv_deplibs_check_method=pass_all
4784  ;;
4785
4786beos*)
4787  lt_cv_deplibs_check_method=pass_all
4788  ;;
4789
4790bsdi[45]*)
4791  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4792  lt_cv_file_magic_cmd='/usr/bin/file -L'
4793  lt_cv_file_magic_test_file=/shlib/libc.so
4794  ;;
4795
4796cygwin*)
4797  # func_win32_libid is a shell function defined in ltmain.sh
4798  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4799  lt_cv_file_magic_cmd='func_win32_libid'
4800  ;;
4801
4802mingw* | pw32*)
4803  # Base MSYS/MinGW do not provide the 'file' command needed by
4804  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4805  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4806  lt_cv_file_magic_cmd='$OBJDUMP -f'
4807  ;;
4808
4809darwin* | rhapsody*)
4810  lt_cv_deplibs_check_method=pass_all
4811  ;;
4812
4813freebsd* | kfreebsd*-gnu | dragonfly*)
4814  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4815    case $host_cpu in
4816    i*86 )
4817      # Not sure whether the presence of OpenBSD here was a mistake.
4818      # Let's accept both of them until this is cleared up.
4819      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4820      lt_cv_file_magic_cmd=/usr/bin/file
4821      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4822      ;;
4823    esac
4824  else
4825    lt_cv_deplibs_check_method=pass_all
4826  fi
4827  ;;
4828
4829gnu*)
4830  lt_cv_deplibs_check_method=pass_all
4831  ;;
4832
4833hpux10.20* | hpux11*)
4834  lt_cv_file_magic_cmd=/usr/bin/file
4835  case $host_cpu in
4836  ia64*)
4837    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4838    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4839    ;;
4840  hppa*64*)
4841    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]'
4842    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4843    ;;
4844  *)
4845    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4846    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4847    ;;
4848  esac
4849  ;;
4850
4851interix3*)
4852  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4853  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4854  ;;
4855
4856irix5* | irix6* | nonstopux*)
4857  case $LD in
4858  *-32|*"-32 ") libmagic=32-bit;;
4859  *-n32|*"-n32 ") libmagic=N32;;
4860  *-64|*"-64 ") libmagic=64-bit;;
4861  *) libmagic=never-match;;
4862  esac
4863  lt_cv_deplibs_check_method=pass_all
4864  ;;
4865
4866# This must be Linux ELF.
4867linux*)
4868  lt_cv_deplibs_check_method=pass_all
4869  ;;
4870
4871netbsd*)
4872  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4873    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4874  else
4875    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4876  fi
4877  ;;
4878
4879newos6*)
4880  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4881  lt_cv_file_magic_cmd=/usr/bin/file
4882  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4883  ;;
4884
4885nto-qnx*)
4886  lt_cv_deplibs_check_method=unknown
4887  ;;
4888
4889openbsd*)
4890  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4891    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4892  else
4893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4894  fi
4895  ;;
4896
4897osf3* | osf4* | osf5*)
4898  lt_cv_deplibs_check_method=pass_all
4899  ;;
4900
4901solaris*)
4902  lt_cv_deplibs_check_method=pass_all
4903  ;;
4904
4905sysv4 | sysv4.3*)
4906  case $host_vendor in
4907  motorola)
4908    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]'
4909    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4910    ;;
4911  ncr)
4912    lt_cv_deplibs_check_method=pass_all
4913    ;;
4914  sequent)
4915    lt_cv_file_magic_cmd='/bin/file'
4916    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4917    ;;
4918  sni)
4919    lt_cv_file_magic_cmd='/bin/file'
4920    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4921    lt_cv_file_magic_test_file=/lib/libc.so
4922    ;;
4923  siemens)
4924    lt_cv_deplibs_check_method=pass_all
4925    ;;
4926  pc)
4927    lt_cv_deplibs_check_method=pass_all
4928    ;;
4929  esac
4930  ;;
4931
4932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4933  lt_cv_deplibs_check_method=pass_all
4934  ;;
4935esac
4936
4937fi
4938echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4939echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4940file_magic_cmd=$lt_cv_file_magic_cmd
4941deplibs_check_method=$lt_cv_deplibs_check_method
4942test -z "$deplibs_check_method" && deplibs_check_method=unknown
4943
4944
4945
4946
4947# If no C compiler was specified, use CC.
4948LTCC=${LTCC-"$CC"}
4949
4950# If no C compiler flags were specified, use CFLAGS.
4951LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4952
4953# Allow CC to be a program name with arguments.
4954compiler=$CC
4955
4956# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4957if test "${enable_libtool_lock+set}" = set; then
4958  enableval="$enable_libtool_lock"
4959
4960fi;
4961test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4962
4963# Some flags need to be propagated to the compiler or linker for good
4964# libtool support.
4965case $host in
4966ia64-*-hpux*)
4967  # Find out which ABI we are using.
4968  echo 'int i;' > conftest.$ac_ext
4969  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970  (eval $ac_compile) 2>&5
4971  ac_status=$?
4972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973  (exit $ac_status); }; then
4974    case `/usr/bin/file conftest.$ac_objext` in
4975    *ELF-32*)
4976      HPUX_IA64_MODE="32"
4977      ;;
4978    *ELF-64*)
4979      HPUX_IA64_MODE="64"
4980      ;;
4981    esac
4982  fi
4983  rm -rf conftest*
4984  ;;
4985*-*-irix6*)
4986  # Find out which ABI we are using.
4987  echo '#line 4987 "configure"' > conftest.$ac_ext
4988  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989  (eval $ac_compile) 2>&5
4990  ac_status=$?
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); }; then
4993   if test "$lt_cv_prog_gnu_ld" = yes; then
4994    case `/usr/bin/file conftest.$ac_objext` in
4995    *32-bit*)
4996      LD="${LD-ld} -melf32bsmip"
4997      ;;
4998    *N32*)
4999      LD="${LD-ld} -melf32bmipn32"
5000      ;;
5001    *64-bit*)
5002      LD="${LD-ld} -melf64bmip"
5003      ;;
5004    esac
5005   else
5006    case `/usr/bin/file conftest.$ac_objext` in
5007    *32-bit*)
5008      LD="${LD-ld} -32"
5009      ;;
5010    *N32*)
5011      LD="${LD-ld} -n32"
5012      ;;
5013    *64-bit*)
5014      LD="${LD-ld} -64"
5015      ;;
5016    esac
5017   fi
5018  fi
5019  rm -rf conftest*
5020  ;;
5021
5022x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5023  # Find out which ABI we are using.
5024  echo 'int i;' > conftest.$ac_ext
5025  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026  (eval $ac_compile) 2>&5
5027  ac_status=$?
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); }; then
5030    case `/usr/bin/file conftest.o` in
5031    *32-bit*)
5032      case $host in
5033        x86_64-*linux*)
5034          LD="${LD-ld} -m elf_i386"
5035          ;;
5036        ppc64-*linux*|powerpc64-*linux*)
5037          LD="${LD-ld} -m elf32ppclinux"
5038          ;;
5039        s390x-*linux*)
5040          LD="${LD-ld} -m elf_s390"
5041          ;;
5042        sparc64-*linux*)
5043          LD="${LD-ld} -m elf32_sparc"
5044          ;;
5045      esac
5046      ;;
5047    *64-bit*)
5048      case $host in
5049        x86_64-*linux*)
5050          LD="${LD-ld} -m elf_x86_64"
5051          ;;
5052        ppc*-*linux*|powerpc*-*linux*)
5053          LD="${LD-ld} -m elf64ppc"
5054          ;;
5055        s390*-*linux*)
5056          LD="${LD-ld} -m elf64_s390"
5057          ;;
5058        sparc*-*linux*)
5059          LD="${LD-ld} -m elf64_sparc"
5060          ;;
5061      esac
5062      ;;
5063    esac
5064  fi
5065  rm -rf conftest*
5066  ;;
5067
5068*-*-sco3.2v5*)
5069  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5070  SAVE_CFLAGS="$CFLAGS"
5071  CFLAGS="$CFLAGS -belf"
5072  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5073echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5074if test "${lt_cv_cc_needs_belf+set}" = set; then
5075  echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077  ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082
5083     cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h.  */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h.  */
5089
5090int
5091main ()
5092{
5093
5094  ;
5095  return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext conftest$ac_exeext
5099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100  (eval $ac_link) 2>conftest.er1
5101  ac_status=$?
5102  grep -v '^ *+' conftest.er1 >conftest.err
5103  rm -f conftest.er1
5104  cat conftest.err >&5
5105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106  (exit $ac_status); } &&
5107         { ac_try='test -z "$ac_c_werror_flag"
5108                         || test ! -s conftest.err'
5109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110  (eval $ac_try) 2>&5
5111  ac_status=$?
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); }; } &&
5114         { ac_try='test -s conftest$ac_exeext'
5115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116  (eval $ac_try) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); }; }; then
5120  lt_cv_cc_needs_belf=yes
5121else
5122  echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125lt_cv_cc_needs_belf=no
5126fi
5127rm -f conftest.err conftest.$ac_objext \
5128      conftest$ac_exeext conftest.$ac_ext
5129     ac_ext=c
5130ac_cpp='$CPP $CPPFLAGS'
5131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134
5135fi
5136echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5137echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5138  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5139    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5140    CFLAGS="$SAVE_CFLAGS"
5141  fi
5142  ;;
5143sparc*-*solaris*)
5144  # Find out which ABI we are using.
5145  echo 'int i;' > conftest.$ac_ext
5146  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147  (eval $ac_compile) 2>&5
5148  ac_status=$?
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); }; then
5151    case `/usr/bin/file conftest.o` in
5152    *64-bit*)
5153      case $lt_cv_prog_gnu_ld in
5154      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5155      *)    LD="${LD-ld} -64" ;;
5156      esac
5157      ;;
5158    esac
5159  fi
5160  rm -rf conftest*
5161  ;;
5162
5163
5164esac
5165
5166need_locks="$enable_libtool_lock"
5167
5168
5169ac_ext=c
5170ac_cpp='$CPP $CPPFLAGS'
5171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5175echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5176# On Suns, sometimes $CPP names a directory.
5177if test -n "$CPP" && test -d "$CPP"; then
5178  CPP=
5179fi
5180if test -z "$CPP"; then
5181  if test "${ac_cv_prog_CPP+set}" = set; then
5182  echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184      # Double quotes because CPP needs to be expanded
5185    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5186    do
5187      ac_preproc_ok=false
5188for ac_c_preproc_warn_flag in '' yes
5189do
5190  # Use a header file that comes with gcc, so configuring glibc
5191  # with a fresh cross-compiler works.
5192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193  # <limits.h> exists even on freestanding compilers.
5194  # On the NeXT, cc -E runs the code through the compiler's parser,
5195  # not just through cpp. "Syntax error" is here to catch this case.
5196  cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h.  */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h.  */
5202#ifdef __STDC__
5203# include <limits.h>
5204#else
5205# include <assert.h>
5206#endif
5207                     Syntax error
5208_ACEOF
5209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5211  ac_status=$?
5212  grep -v '^ *+' conftest.er1 >conftest.err
5213  rm -f conftest.er1
5214  cat conftest.err >&5
5215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216  (exit $ac_status); } >/dev/null; then
5217  if test -s conftest.err; then
5218    ac_cpp_err=$ac_c_preproc_warn_flag
5219    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5220  else
5221    ac_cpp_err=
5222  fi
5223else
5224  ac_cpp_err=yes
5225fi
5226if test -z "$ac_cpp_err"; then
5227  :
5228else
5229  echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232  # Broken: fails on valid input.
5233continue
5234fi
5235rm -f conftest.err conftest.$ac_ext
5236
5237  # OK, works on sane cases.  Now check whether non-existent headers
5238  # can be detected and how.
5239  cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245#include <ac_nonexistent.h>
5246_ACEOF
5247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249  ac_status=$?
5250  grep -v '^ *+' conftest.er1 >conftest.err
5251  rm -f conftest.er1
5252  cat conftest.err >&5
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); } >/dev/null; then
5255  if test -s conftest.err; then
5256    ac_cpp_err=$ac_c_preproc_warn_flag
5257    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258  else
5259    ac_cpp_err=
5260  fi
5261else
5262  ac_cpp_err=yes
5263fi
5264if test -z "$ac_cpp_err"; then
5265  # Broken: success on invalid input.
5266continue
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271  # Passes both tests.
5272ac_preproc_ok=:
5273break
5274fi
5275rm -f conftest.err conftest.$ac_ext
5276
5277done
5278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5279rm -f conftest.err conftest.$ac_ext
5280if $ac_preproc_ok; then
5281  break
5282fi
5283
5284    done
5285    ac_cv_prog_CPP=$CPP
5286
5287fi
5288  CPP=$ac_cv_prog_CPP
5289else
5290  ac_cv_prog_CPP=$CPP
5291fi
5292echo "$as_me:$LINENO: result: $CPP" >&5
5293echo "${ECHO_T}$CPP" >&6
5294ac_preproc_ok=false
5295for ac_c_preproc_warn_flag in '' yes
5296do
5297  # Use a header file that comes with gcc, so configuring glibc
5298  # with a fresh cross-compiler works.
5299  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5300  # <limits.h> exists even on freestanding compilers.
5301  # On the NeXT, cc -E runs the code through the compiler's parser,
5302  # not just through cpp. "Syntax error" is here to catch this case.
5303  cat >conftest.$ac_ext <<_ACEOF
5304/* confdefs.h.  */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h.  */
5309#ifdef __STDC__
5310# include <limits.h>
5311#else
5312# include <assert.h>
5313#endif
5314                     Syntax error
5315_ACEOF
5316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5317  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5318  ac_status=$?
5319  grep -v '^ *+' conftest.er1 >conftest.err
5320  rm -f conftest.er1
5321  cat conftest.err >&5
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); } >/dev/null; then
5324  if test -s conftest.err; then
5325    ac_cpp_err=$ac_c_preproc_warn_flag
5326    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5327  else
5328    ac_cpp_err=
5329  fi
5330else
5331  ac_cpp_err=yes
5332fi
5333if test -z "$ac_cpp_err"; then
5334  :
5335else
5336  echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339  # Broken: fails on valid input.
5340continue
5341fi
5342rm -f conftest.err conftest.$ac_ext
5343
5344  # OK, works on sane cases.  Now check whether non-existent headers
5345  # can be detected and how.
5346  cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h.  */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h.  */
5352#include <ac_nonexistent.h>
5353_ACEOF
5354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356  ac_status=$?
5357  grep -v '^ *+' conftest.er1 >conftest.err
5358  rm -f conftest.er1
5359  cat conftest.err >&5
5360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361  (exit $ac_status); } >/dev/null; then
5362  if test -s conftest.err; then
5363    ac_cpp_err=$ac_c_preproc_warn_flag
5364    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365  else
5366    ac_cpp_err=
5367  fi
5368else
5369  ac_cpp_err=yes
5370fi
5371if test -z "$ac_cpp_err"; then
5372  # Broken: success on invalid input.
5373continue
5374else
5375  echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378  # Passes both tests.
5379ac_preproc_ok=:
5380break
5381fi
5382rm -f conftest.err conftest.$ac_ext
5383
5384done
5385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5386rm -f conftest.err conftest.$ac_ext
5387if $ac_preproc_ok; then
5388  :
5389else
5390  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5391See \`config.log' for more details." >&5
5392echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5393See \`config.log' for more details." >&2;}
5394   { (exit 1); exit 1; }; }
5395fi
5396
5397ac_ext=c
5398ac_cpp='$CPP $CPPFLAGS'
5399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402
5403
5404echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5405echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5406if test "${ac_cv_header_stdc+set}" = set; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415#include <stdlib.h>
5416#include <stdarg.h>
5417#include <string.h>
5418#include <float.h>
5419
5420int
5421main ()
5422{
5423
5424  ;
5425  return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext
5429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430  (eval $ac_compile) 2>conftest.er1
5431  ac_status=$?
5432  grep -v '^ *+' conftest.er1 >conftest.err
5433  rm -f conftest.er1
5434  cat conftest.err >&5
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); } &&
5437         { ac_try='test -z "$ac_c_werror_flag"
5438                         || test ! -s conftest.err'
5439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440  (eval $ac_try) 2>&5
5441  ac_status=$?
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); }; } &&
5444         { ac_try='test -s conftest.$ac_objext'
5445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446  (eval $ac_try) 2>&5
5447  ac_status=$?
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); }; }; then
5450  ac_cv_header_stdc=yes
5451else
5452  echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455ac_cv_header_stdc=no
5456fi
5457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458
5459if test $ac_cv_header_stdc = yes; then
5460  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5461  cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h.  */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h.  */
5467#include <string.h>
5468
5469_ACEOF
5470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471  $EGREP "memchr" >/dev/null 2>&1; then
5472  :
5473else
5474  ac_cv_header_stdc=no
5475fi
5476rm -f conftest*
5477
5478fi
5479
5480if test $ac_cv_header_stdc = yes; then
5481  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5482  cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h.  */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h.  */
5488#include <stdlib.h>
5489
5490_ACEOF
5491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492  $EGREP "free" >/dev/null 2>&1; then
5493  :
5494else
5495  ac_cv_header_stdc=no
5496fi
5497rm -f conftest*
5498
5499fi
5500
5501if test $ac_cv_header_stdc = yes; then
5502  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5503  if test "$cross_compiling" = yes; then
5504  :
5505else
5506  cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h.  */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h.  */
5512#include <ctype.h>
5513#if ((' ' & 0x0FF) == 0x020)
5514# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5515# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516#else
5517# define ISLOWER(c) \
5518                   (('a' <= (c) && (c) <= 'i') \
5519                     || ('j' <= (c) && (c) <= 'r') \
5520                     || ('s' <= (c) && (c) <= 'z'))
5521# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5522#endif
5523
5524#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5525int
5526main ()
5527{
5528  int i;
5529  for (i = 0; i < 256; i++)
5530    if (XOR (islower (i), ISLOWER (i))
5531        || toupper (i) != TOUPPER (i))
5532      exit(2);
5533  exit (0);
5534}
5535_ACEOF
5536rm -f conftest$ac_exeext
5537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538  (eval $ac_link) 2>&5
5539  ac_status=$?
5540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543  (eval $ac_try) 2>&5
5544  ac_status=$?
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); }; }; then
5547  :
5548else
5549  echo "$as_me: program exited with status $ac_status" >&5
5550echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553( exit $ac_status )
5554ac_cv_header_stdc=no
5555fi
5556rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5557fi
5558fi
5559fi
5560echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5561echo "${ECHO_T}$ac_cv_header_stdc" >&6
5562if test $ac_cv_header_stdc = yes; then
5563
5564cat >>confdefs.h <<\_ACEOF
5565#define STDC_HEADERS 1
5566_ACEOF
5567
5568fi
5569
5570# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5581                  inttypes.h stdint.h unistd.h
5582do
5583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5584echo "$as_me:$LINENO: checking for $ac_header" >&5
5585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5586if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589  cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h.  */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h.  */
5595$ac_includes_default
5596
5597#include <$ac_header>
5598_ACEOF
5599rm -f conftest.$ac_objext
5600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601  (eval $ac_compile) 2>conftest.er1
5602  ac_status=$?
5603  grep -v '^ *+' conftest.er1 >conftest.err
5604  rm -f conftest.er1
5605  cat conftest.err >&5
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); } &&
5608         { ac_try='test -z "$ac_c_werror_flag"
5609                         || test ! -s conftest.err'
5610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611  (eval $ac_try) 2>&5
5612  ac_status=$?
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); }; } &&
5615         { ac_try='test -s conftest.$ac_objext'
5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617  (eval $ac_try) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); }; }; then
5621  eval "$as_ac_Header=yes"
5622else
5623  echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
5626eval "$as_ac_Header=no"
5627fi
5628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629fi
5630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5632if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633  cat >>confdefs.h <<_ACEOF
5634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635_ACEOF
5636
5637fi
5638
5639done
5640
5641
5642
5643for ac_header in dlfcn.h
5644do
5645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5646if eval "test \"\${$as_ac_Header+set}\" = set"; then
5647  echo "$as_me:$LINENO: checking for $ac_header" >&5
5648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5649if eval "test \"\${$as_ac_Header+set}\" = set"; then
5650  echo $ECHO_N "(cached) $ECHO_C" >&6
5651fi
5652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5654else
5655  # Is the header compilable?
5656echo "$as_me:$LINENO: checking $ac_header usability" >&5
5657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5658cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h.  */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h.  */
5664$ac_includes_default
5665#include <$ac_header>
5666_ACEOF
5667rm -f conftest.$ac_objext
5668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669  (eval $ac_compile) 2>conftest.er1
5670  ac_status=$?
5671  grep -v '^ *+' conftest.er1 >conftest.err
5672  rm -f conftest.er1
5673  cat conftest.err >&5
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); } &&
5676         { ac_try='test -z "$ac_c_werror_flag"
5677                         || test ! -s conftest.err'
5678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679  (eval $ac_try) 2>&5
5680  ac_status=$?
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); }; } &&
5683         { ac_try='test -s conftest.$ac_objext'
5684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685  (eval $ac_try) 2>&5
5686  ac_status=$?
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; }; then
5689  ac_header_compiler=yes
5690else
5691  echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694ac_header_compiler=no
5695fi
5696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5698echo "${ECHO_T}$ac_header_compiler" >&6
5699
5700# Is the header present?
5701echo "$as_me:$LINENO: checking $ac_header presence" >&5
5702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5703cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h.  */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h.  */
5709#include <$ac_header>
5710_ACEOF
5711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5712  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5713  ac_status=$?
5714  grep -v '^ *+' conftest.er1 >conftest.err
5715  rm -f conftest.er1
5716  cat conftest.err >&5
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); } >/dev/null; then
5719  if test -s conftest.err; then
5720    ac_cpp_err=$ac_c_preproc_warn_flag
5721    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5722  else
5723    ac_cpp_err=
5724  fi
5725else
5726  ac_cpp_err=yes
5727fi
5728if test -z "$ac_cpp_err"; then
5729  ac_header_preproc=yes
5730else
5731  echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734  ac_header_preproc=no
5735fi
5736rm -f conftest.err conftest.$ac_ext
5737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5738echo "${ECHO_T}$ac_header_preproc" >&6
5739
5740# So?  What about this header?
5741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5742  yes:no: )
5743    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5745    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5747    ac_header_preproc=yes
5748    ;;
5749  no:yes:* )
5750    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5752    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5753echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5754    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5756    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5757echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5758    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5760    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5762    (
5763      cat <<\_ASBOX
5764## --------------------------------------------------------------- ##
5765## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5766## --------------------------------------------------------------- ##
5767_ASBOX
5768    ) |
5769      sed "s/^/$as_me: WARNING:     /" >&2
5770    ;;
5771esac
5772echo "$as_me:$LINENO: checking for $ac_header" >&5
5773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  eval "$as_ac_Header=\$ac_header_preproc"
5778fi
5779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5781
5782fi
5783if test `eval echo '${'$as_ac_Header'}'` = yes; then
5784  cat >>confdefs.h <<_ACEOF
5785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786_ACEOF
5787
5788fi
5789
5790done
5791
5792ac_ext=cc
5793ac_cpp='$CXXCPP $CPPFLAGS'
5794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5797if test -n "$ac_tool_prefix"; then
5798  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5799  do
5800    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802echo "$as_me:$LINENO: checking for $ac_word" >&5
5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804if test "${ac_cv_prog_CXX+set}" = set; then
5805  echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807  if test -n "$CXX"; then
5808  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813  IFS=$as_save_IFS
5814  test -z "$as_dir" && as_dir=.
5815  for ac_exec_ext in '' $ac_executable_extensions; do
5816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822done
5823
5824fi
5825fi
5826CXX=$ac_cv_prog_CXX
5827if test -n "$CXX"; then
5828  echo "$as_me:$LINENO: result: $CXX" >&5
5829echo "${ECHO_T}$CXX" >&6
5830else
5831  echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
5833fi
5834
5835    test -n "$CXX" && break
5836  done
5837fi
5838if test -z "$CXX"; then
5839  ac_ct_CXX=$CXX
5840  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5841do
5842  # Extract the first word of "$ac_prog", so it can be a program name with args.
5843set dummy $ac_prog; ac_word=$2
5844echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  if test -n "$ac_ct_CXX"; then
5850  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855  IFS=$as_save_IFS
5856  test -z "$as_dir" && as_dir=.
5857  for ac_exec_ext in '' $ac_executable_extensions; do
5858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859    ac_cv_prog_ac_ct_CXX="$ac_prog"
5860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864done
5865
5866fi
5867fi
5868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5869if test -n "$ac_ct_CXX"; then
5870  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5871echo "${ECHO_T}$ac_ct_CXX" >&6
5872else
5873  echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875fi
5876
5877  test -n "$ac_ct_CXX" && break
5878done
5879test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5880
5881  CXX=$ac_ct_CXX
5882fi
5883
5884
5885# Provide some information about the compiler.
5886echo "$as_me:$LINENO:" \
5887     "checking for C++ compiler version" >&5
5888ac_compiler=`set X $ac_compile; echo $2`
5889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5890  (eval $ac_compiler --version </dev/null >&5) 2>&5
5891  ac_status=$?
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); }
5894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5895  (eval $ac_compiler -v </dev/null >&5) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }
5899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5900  (eval $ac_compiler -V </dev/null >&5) 2>&5
5901  ac_status=$?
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); }
5904
5905echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5906echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h.  */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h.  */
5916
5917int
5918main ()
5919{
5920#ifndef __GNUC__
5921       choke me
5922#endif
5923
5924  ;
5925  return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext
5929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930  (eval $ac_compile) 2>conftest.er1
5931  ac_status=$?
5932  grep -v '^ *+' conftest.er1 >conftest.err
5933  rm -f conftest.er1
5934  cat conftest.err >&5
5935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936  (exit $ac_status); } &&
5937         { ac_try='test -z "$ac_cxx_werror_flag"
5938                         || test ! -s conftest.err'
5939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940  (eval $ac_try) 2>&5
5941  ac_status=$?
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); }; } &&
5944         { ac_try='test -s conftest.$ac_objext'
5945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946  (eval $ac_try) 2>&5
5947  ac_status=$?
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); }; }; then
5950  ac_compiler_gnu=yes
5951else
5952  echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955ac_compiler_gnu=no
5956fi
5957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5959
5960fi
5961echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5962echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5963GXX=`test $ac_compiler_gnu = yes && echo yes`
5964ac_test_CXXFLAGS=${CXXFLAGS+set}
5965ac_save_CXXFLAGS=$CXXFLAGS
5966CXXFLAGS="-g"
5967echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5968echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5969if test "${ac_cv_prog_cxx_g+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978
5979int
5980main ()
5981{
5982
5983  ;
5984  return 0;
5985}
5986_ACEOF
5987rm -f conftest.$ac_objext
5988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989  (eval $ac_compile) 2>conftest.er1
5990  ac_status=$?
5991  grep -v '^ *+' conftest.er1 >conftest.err
5992  rm -f conftest.er1
5993  cat conftest.err >&5
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); } &&
5996         { ac_try='test -z "$ac_cxx_werror_flag"
5997                         || test ! -s conftest.err'
5998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999  (eval $ac_try) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; } &&
6003         { ac_try='test -s conftest.$ac_objext'
6004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005  (eval $ac_try) 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); }; }; then
6009  ac_cv_prog_cxx_g=yes
6010else
6011  echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014ac_cv_prog_cxx_g=no
6015fi
6016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6019echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6020if test "$ac_test_CXXFLAGS" = set; then
6021  CXXFLAGS=$ac_save_CXXFLAGS
6022elif test $ac_cv_prog_cxx_g = yes; then
6023  if test "$GXX" = yes; then
6024    CXXFLAGS="-g -O2"
6025  else
6026    CXXFLAGS="-g"
6027  fi
6028else
6029  if test "$GXX" = yes; then
6030    CXXFLAGS="-O2"
6031  else
6032    CXXFLAGS=
6033  fi
6034fi
6035for ac_declaration in \
6036   '' \
6037   'extern "C" void std::exit (int) throw (); using std::exit;' \
6038   'extern "C" void std::exit (int); using std::exit;' \
6039   'extern "C" void exit (int) throw ();' \
6040   'extern "C" void exit (int);' \
6041   'void exit (int);'
6042do
6043  cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h.  */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h.  */
6049$ac_declaration
6050#include <stdlib.h>
6051int
6052main ()
6053{
6054exit (42);
6055  ;
6056  return 0;
6057}
6058_ACEOF
6059rm -f conftest.$ac_objext
6060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061  (eval $ac_compile) 2>conftest.er1
6062  ac_status=$?
6063  grep -v '^ *+' conftest.er1 >conftest.err
6064  rm -f conftest.er1
6065  cat conftest.err >&5
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); } &&
6068         { ac_try='test -z "$ac_cxx_werror_flag"
6069                         || test ! -s conftest.err'
6070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071  (eval $ac_try) 2>&5
6072  ac_status=$?
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); }; } &&
6075         { ac_try='test -s conftest.$ac_objext'
6076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077  (eval $ac_try) 2>&5
6078  ac_status=$?
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); }; }; then
6081  :
6082else
6083  echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086continue
6087fi
6088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089  cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h.  */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h.  */
6095$ac_declaration
6096int
6097main ()
6098{
6099exit (42);
6100  ;
6101  return 0;
6102}
6103_ACEOF
6104rm -f conftest.$ac_objext
6105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106  (eval $ac_compile) 2>conftest.er1
6107  ac_status=$?
6108  grep -v '^ *+' conftest.er1 >conftest.err
6109  rm -f conftest.er1
6110  cat conftest.err >&5
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); } &&
6113         { ac_try='test -z "$ac_cxx_werror_flag"
6114                         || test ! -s conftest.err'
6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; } &&
6120         { ac_try='test -s conftest.$ac_objext'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; }; then
6126  break
6127else
6128  echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131fi
6132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6133done
6134rm -f conftest*
6135if test -n "$ac_declaration"; then
6136  echo '#ifdef __cplusplus' >>confdefs.h
6137  echo $ac_declaration      >>confdefs.h
6138  echo '#endif'             >>confdefs.h
6139fi
6140
6141ac_ext=cc
6142ac_cpp='$CXXCPP $CPPFLAGS'
6143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6146
6147depcc="$CXX"  am_compiler_list=
6148
6149echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6150echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6151if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6152  echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6155  # We make a subdir and do the tests there.  Otherwise we can end up
6156  # making bogus files that we don't know about and never remove.  For
6157  # instance it was reported that on HP-UX the gcc test will end up
6158  # making a dummy file named `D' -- because `-MD' means `put the output
6159  # in D'.
6160  mkdir conftest.dir
6161  # Copy depcomp to subdir because otherwise we won't find it if we're
6162  # using a relative directory.
6163  cp "$am_depcomp" conftest.dir
6164  cd conftest.dir
6165  # We will build objects and dependencies in a subdirectory because
6166  # it helps to detect inapplicable dependency modes.  For instance
6167  # both Tru64's cc and ICC support -MD to output dependencies as a
6168  # side effect of compilation, but ICC will put the dependencies in
6169  # the current directory while Tru64 will put them in the object
6170  # directory.
6171  mkdir sub
6172
6173  am_cv_CXX_dependencies_compiler_type=none
6174  if test "$am_compiler_list" = ""; then
6175     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6176  fi
6177  for depmode in $am_compiler_list; do
6178    # Setup a source with many dependencies, because some compilers
6179    # like to wrap large dependency lists on column 80 (with \), and
6180    # we should not choose a depcomp mode which is confused by this.
6181    #
6182    # We need to recreate these files for each test, as the compiler may
6183    # overwrite some of them when testing with obscure command lines.
6184    # This happens at least with the AIX C compiler.
6185    : > sub/conftest.c
6186    for i in 1 2 3 4 5 6; do
6187      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6188      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6189      # Solaris 8's {/usr,}/bin/sh.
6190      touch sub/conftst$i.h
6191    done
6192    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6193
6194    case $depmode in
6195    nosideeffect)
6196      # after this tag, mechanisms are not by side-effect, so they'll
6197      # only be used when explicitly requested
6198      if test "x$enable_dependency_tracking" = xyes; then
6199        continue
6200      else
6201        break
6202      fi
6203      ;;
6204    none) break ;;
6205    esac
6206    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6207    # mode.  It turns out that the SunPro C++ compiler does not properly
6208    # handle `-M -o', and we need to detect this.
6209    if depmode=$depmode \
6210       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6211       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6212       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6213         >/dev/null 2>conftest.err &&
6214       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6215       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6216       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6217      # icc doesn't choke on unknown options, it will just issue warnings
6218      # or remarks (even with -Werror).  So we grep stderr for any message
6219      # that says an option was ignored or not supported.
6220      # When given -MP, icc 7.0 and 7.1 complain thusly:
6221      #   icc: Command line warning: ignoring option '-M'; no argument required
6222      # The diagnosis changed in icc 8.0:
6223      #   icc: Command line remark: option '-MP' not supported
6224      if (grep 'ignoring option' conftest.err ||
6225          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6226        am_cv_CXX_dependencies_compiler_type=$depmode
6227        break
6228      fi
6229    fi
6230  done
6231
6232  cd ..
6233  rm -rf conftest.dir
6234else
6235  am_cv_CXX_dependencies_compiler_type=none
6236fi
6237
6238fi
6239echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6240echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6241CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6242
6243
6244
6245if
6246  test "x$enable_dependency_tracking" != xno \
6247  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6248  am__fastdepCXX_TRUE=
6249  am__fastdepCXX_FALSE='#'
6250else
6251  am__fastdepCXX_TRUE='#'
6252  am__fastdepCXX_FALSE=
6253fi
6254
6255
6256
6257
6258if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6259    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6260    (test "X$CXX" != "Xg++"))) ; then
6261  ac_ext=cc
6262ac_cpp='$CXXCPP $CPPFLAGS'
6263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6266echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6267echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6268if test -z "$CXXCPP"; then
6269  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6270  echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272      # Double quotes because CXXCPP needs to be expanded
6273    for CXXCPP in "$CXX -E" "/lib/cpp"
6274    do
6275      ac_preproc_ok=false
6276for ac_cxx_preproc_warn_flag in '' yes
6277do
6278  # Use a header file that comes with gcc, so configuring glibc
6279  # with a fresh cross-compiler works.
6280  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6281  # <limits.h> exists even on freestanding compilers.
6282  # On the NeXT, cc -E runs the code through the compiler's parser,
6283  # not just through cpp. "Syntax error" is here to catch this case.
6284  cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290#ifdef __STDC__
6291# include <limits.h>
6292#else
6293# include <assert.h>
6294#endif
6295                     Syntax error
6296_ACEOF
6297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6299  ac_status=$?
6300  grep -v '^ *+' conftest.er1 >conftest.err
6301  rm -f conftest.er1
6302  cat conftest.err >&5
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); } >/dev/null; then
6305  if test -s conftest.err; then
6306    ac_cpp_err=$ac_cxx_preproc_warn_flag
6307    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6308  else
6309    ac_cpp_err=
6310  fi
6311else
6312  ac_cpp_err=yes
6313fi
6314if test -z "$ac_cpp_err"; then
6315  :
6316else
6317  echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320  # Broken: fails on valid input.
6321continue
6322fi
6323rm -f conftest.err conftest.$ac_ext
6324
6325  # OK, works on sane cases.  Now check whether non-existent headers
6326  # can be detected and how.
6327  cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h.  */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h.  */
6333#include <ac_nonexistent.h>
6334_ACEOF
6335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6337  ac_status=$?
6338  grep -v '^ *+' conftest.er1 >conftest.err
6339  rm -f conftest.er1
6340  cat conftest.err >&5
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); } >/dev/null; then
6343  if test -s conftest.err; then
6344    ac_cpp_err=$ac_cxx_preproc_warn_flag
6345    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6346  else
6347    ac_cpp_err=
6348  fi
6349else
6350  ac_cpp_err=yes
6351fi
6352if test -z "$ac_cpp_err"; then
6353  # Broken: success on invalid input.
6354continue
6355else
6356  echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359  # Passes both tests.
6360ac_preproc_ok=:
6361break
6362fi
6363rm -f conftest.err conftest.$ac_ext
6364
6365done
6366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367rm -f conftest.err conftest.$ac_ext
6368if $ac_preproc_ok; then
6369  break
6370fi
6371
6372    done
6373    ac_cv_prog_CXXCPP=$CXXCPP
6374
6375fi
6376  CXXCPP=$ac_cv_prog_CXXCPP
6377else
6378  ac_cv_prog_CXXCPP=$CXXCPP
6379fi
6380echo "$as_me:$LINENO: result: $CXXCPP" >&5
6381echo "${ECHO_T}$CXXCPP" >&6
6382ac_preproc_ok=false
6383for ac_cxx_preproc_warn_flag in '' yes
6384do
6385  # Use a header file that comes with gcc, so configuring glibc
6386  # with a fresh cross-compiler works.
6387  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6388  # <limits.h> exists even on freestanding compilers.
6389  # On the NeXT, cc -E runs the code through the compiler's parser,
6390  # not just through cpp. "Syntax error" is here to catch this case.
6391  cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h.  */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h.  */
6397#ifdef __STDC__
6398# include <limits.h>
6399#else
6400# include <assert.h>
6401#endif
6402                     Syntax error
6403_ACEOF
6404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6405  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6406  ac_status=$?
6407  grep -v '^ *+' conftest.er1 >conftest.err
6408  rm -f conftest.er1
6409  cat conftest.err >&5
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); } >/dev/null; then
6412  if test -s conftest.err; then
6413    ac_cpp_err=$ac_cxx_preproc_warn_flag
6414    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6415  else
6416    ac_cpp_err=
6417  fi
6418else
6419  ac_cpp_err=yes
6420fi
6421if test -z "$ac_cpp_err"; then
6422  :
6423else
6424  echo "$as_me: failed program was:" >&5
6425sed 's/^/| /' conftest.$ac_ext >&5
6426
6427  # Broken: fails on valid input.
6428continue
6429fi
6430rm -f conftest.err conftest.$ac_ext
6431
6432  # OK, works on sane cases.  Now check whether non-existent headers
6433  # can be detected and how.
6434  cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h.  */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h.  */
6440#include <ac_nonexistent.h>
6441_ACEOF
6442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6444  ac_status=$?
6445  grep -v '^ *+' conftest.er1 >conftest.err
6446  rm -f conftest.er1
6447  cat conftest.err >&5
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } >/dev/null; then
6450  if test -s conftest.err; then
6451    ac_cpp_err=$ac_cxx_preproc_warn_flag
6452    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6453  else
6454    ac_cpp_err=
6455  fi
6456else
6457  ac_cpp_err=yes
6458fi
6459if test -z "$ac_cpp_err"; then
6460  # Broken: success on invalid input.
6461continue
6462else
6463  echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466  # Passes both tests.
6467ac_preproc_ok=:
6468break
6469fi
6470rm -f conftest.err conftest.$ac_ext
6471
6472done
6473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6474rm -f conftest.err conftest.$ac_ext
6475if $ac_preproc_ok; then
6476  :
6477else
6478  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6479See \`config.log' for more details." >&5
6480echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6481See \`config.log' for more details." >&2;}
6482   { (exit 1); exit 1; }; }
6483fi
6484
6485ac_ext=cc
6486ac_cpp='$CXXCPP $CPPFLAGS'
6487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6490
6491fi
6492
6493
6494ac_ext=f
6495ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6496ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6498if test -n "$ac_tool_prefix"; then
6499  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6500  do
6501    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6503echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505if test "${ac_cv_prog_F77+set}" = set; then
6506  echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508  if test -n "$F77"; then
6509  ac_cv_prog_F77="$F77" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514  IFS=$as_save_IFS
6515  test -z "$as_dir" && as_dir=.
6516  for ac_exec_ext in '' $ac_executable_extensions; do
6517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520    break 2
6521  fi
6522done
6523done
6524
6525fi
6526fi
6527F77=$ac_cv_prog_F77
6528if test -n "$F77"; then
6529  echo "$as_me:$LINENO: result: $F77" >&5
6530echo "${ECHO_T}$F77" >&6
6531else
6532  echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534fi
6535
6536    test -n "$F77" && break
6537  done
6538fi
6539if test -z "$F77"; then
6540  ac_ct_F77=$F77
6541  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6542do
6543  # Extract the first word of "$ac_prog", so it can be a program name with args.
6544set dummy $ac_prog; ac_word=$2
6545echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6547if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6548  echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550  if test -n "$ac_ct_F77"; then
6551  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556  IFS=$as_save_IFS
6557  test -z "$as_dir" && as_dir=.
6558  for ac_exec_ext in '' $ac_executable_extensions; do
6559  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560    ac_cv_prog_ac_ct_F77="$ac_prog"
6561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562    break 2
6563  fi
6564done
6565done
6566
6567fi
6568fi
6569ac_ct_F77=$ac_cv_prog_ac_ct_F77
6570if test -n "$ac_ct_F77"; then
6571  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6572echo "${ECHO_T}$ac_ct_F77" >&6
6573else
6574  echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6
6576fi
6577
6578  test -n "$ac_ct_F77" && break
6579done
6580
6581  F77=$ac_ct_F77
6582fi
6583
6584
6585# Provide some information about the compiler.
6586echo "$as_me:6586:" \
6587     "checking for Fortran 77 compiler version" >&5
6588ac_compiler=`set X $ac_compile; echo $2`
6589{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6590  (eval $ac_compiler --version </dev/null >&5) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }
6594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6595  (eval $ac_compiler -v </dev/null >&5) 2>&5
6596  ac_status=$?
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); }
6599{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6600  (eval $ac_compiler -V </dev/null >&5) 2>&5
6601  ac_status=$?
6602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); }
6604rm -f a.out
6605
6606# If we don't use `.F' as extension, the preprocessor is not run on the
6607# input file.  (Note that this only needs to work for GNU compilers.)
6608ac_save_ext=$ac_ext
6609ac_ext=F
6610echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6611echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6612if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615  cat >conftest.$ac_ext <<_ACEOF
6616      program main
6617#ifndef __GNUC__
6618       choke me
6619#endif
6620
6621      end
6622_ACEOF
6623rm -f conftest.$ac_objext
6624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625  (eval $ac_compile) 2>conftest.er1
6626  ac_status=$?
6627  grep -v '^ *+' conftest.er1 >conftest.err
6628  rm -f conftest.er1
6629  cat conftest.err >&5
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); } &&
6632         { ac_try='test -z "$ac_f77_werror_flag"
6633                         || test ! -s conftest.err'
6634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635  (eval $ac_try) 2>&5
6636  ac_status=$?
6637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); }; } &&
6639         { ac_try='test -s conftest.$ac_objext'
6640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641  (eval $ac_try) 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); }; }; then
6645  ac_compiler_gnu=yes
6646else
6647  echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650ac_compiler_gnu=no
6651fi
6652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6654
6655fi
6656echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6657echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6658ac_ext=$ac_save_ext
6659ac_test_FFLAGS=${FFLAGS+set}
6660ac_save_FFLAGS=$FFLAGS
6661FFLAGS=
6662echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6663echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6664if test "${ac_cv_prog_f77_g+set}" = set; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667  FFLAGS=-g
6668cat >conftest.$ac_ext <<_ACEOF
6669      program main
6670
6671      end
6672_ACEOF
6673rm -f conftest.$ac_objext
6674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675  (eval $ac_compile) 2>conftest.er1
6676  ac_status=$?
6677  grep -v '^ *+' conftest.er1 >conftest.err
6678  rm -f conftest.er1
6679  cat conftest.err >&5
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); } &&
6682         { ac_try='test -z "$ac_f77_werror_flag"
6683                         || test ! -s conftest.err'
6684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685  (eval $ac_try) 2>&5
6686  ac_status=$?
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); }; } &&
6689         { ac_try='test -s conftest.$ac_objext'
6690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691  (eval $ac_try) 2>&5
6692  ac_status=$?
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); }; }; then
6695  ac_cv_prog_f77_g=yes
6696else
6697  echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700ac_cv_prog_f77_g=no
6701fi
6702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703
6704fi
6705echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6706echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6707if test "$ac_test_FFLAGS" = set; then
6708  FFLAGS=$ac_save_FFLAGS
6709elif test $ac_cv_prog_f77_g = yes; then
6710  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6711    FFLAGS="-g -O2"
6712  else
6713    FFLAGS="-g"
6714  fi
6715else
6716  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6717    FFLAGS="-O2"
6718  else
6719    FFLAGS=
6720  fi
6721fi
6722
6723G77=`test $ac_compiler_gnu = yes && echo yes`
6724ac_ext=c
6725ac_cpp='$CPP $CPPFLAGS'
6726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728ac_compiler_gnu=$ac_cv_c_compiler_gnu
6729
6730
6731
6732# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6733
6734# find the maximum length of command line arguments
6735echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6736echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6737if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6738  echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740    i=0
6741  teststring="ABCD"
6742
6743  case $build_os in
6744  msdosdjgpp*)
6745    # On DJGPP, this test can blow up pretty badly due to problems in libc
6746    # (any single argument exceeding 2000 bytes causes a buffer overrun
6747    # during glob expansion).  Even if it were fixed, the result of this
6748    # check would be larger than it should be.
6749    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6750    ;;
6751
6752  gnu*)
6753    # Under GNU Hurd, this test is not required because there is
6754    # no limit to the length of command line arguments.
6755    # Libtool will interpret -1 as no limit whatsoever
6756    lt_cv_sys_max_cmd_len=-1;
6757    ;;
6758
6759  cygwin* | mingw*)
6760    # On Win9x/ME, this test blows up -- it succeeds, but takes
6761    # about 5 minutes as the teststring grows exponentially.
6762    # Worse, since 9x/ME are not pre-emptively multitasking,
6763    # you end up with a "frozen" computer, even though with patience
6764    # the test eventually succeeds (with a max line length of 256k).
6765    # Instead, let's just punt: use the minimum linelength reported by
6766    # all of the supported platforms: 8192 (on NT/2K/XP).
6767    lt_cv_sys_max_cmd_len=8192;
6768    ;;
6769
6770  amigaos*)
6771    # On AmigaOS with pdksh, this test takes hours, literally.
6772    # So we just punt and use a minimum line length of 8192.
6773    lt_cv_sys_max_cmd_len=8192;
6774    ;;
6775
6776  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6777    # This has been around since 386BSD, at least.  Likely further.
6778    if test -x /sbin/sysctl; then
6779      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6780    elif test -x /usr/sbin/sysctl; then
6781      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6782    else
6783      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6784    fi
6785    # And add a safety zone
6786    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6787    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6788    ;;
6789
6790  interix*)
6791    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6792    lt_cv_sys_max_cmd_len=196608
6793    ;;
6794
6795  osf*)
6796    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6797    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6798    # nice to cause kernel panics so lets avoid the loop below.
6799    # First set a reasonable default.
6800    lt_cv_sys_max_cmd_len=16384
6801    #
6802    if test -x /sbin/sysconfig; then
6803      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6804        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6805      esac
6806    fi
6807    ;;
6808  sco3.2v5*)
6809    lt_cv_sys_max_cmd_len=102400
6810    ;;
6811  sysv5* | sco5v6* | sysv4.2uw2*)
6812    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6813    if test -n "$kargmax"; then
6814      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6815    else
6816      lt_cv_sys_max_cmd_len=32768
6817    fi
6818    ;;
6819  *)
6820    # If test is not a shell built-in, we'll probably end up computing a
6821    # maximum length that is only half of the actual maximum length, but
6822    # we can't tell.
6823    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6824    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6825               = "XX$teststring") >/dev/null 2>&1 &&
6826            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6827            lt_cv_sys_max_cmd_len=$new_result &&
6828            test $i != 17 # 1/2 MB should be enough
6829    do
6830      i=`expr $i + 1`
6831      teststring=$teststring$teststring
6832    done
6833    teststring=
6834    # Add a significant safety factor because C++ compilers can tack on massive
6835    # amounts of additional arguments before passing them to the linker.
6836    # It appears as though 1/2 is a usable value.
6837    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6838    ;;
6839  esac
6840
6841fi
6842
6843if test -n $lt_cv_sys_max_cmd_len ; then
6844  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6845echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6846else
6847  echo "$as_me:$LINENO: result: none" >&5
6848echo "${ECHO_T}none" >&6
6849fi
6850
6851
6852
6853
6854# Check for command to grab the raw symbol name followed by C symbol from nm.
6855echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6856echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6857if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6858  echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860
6861# These are sane defaults that work on at least a few old systems.
6862# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6863
6864# Character class describing NM global symbol codes.
6865symcode='[BCDEGRST]'
6866
6867# Regexp to match symbols that can be accessed directly from C.
6868sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6869
6870# Transform an extracted symbol line into a proper C declaration
6871lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6872
6873# Transform an extracted symbol line into symbol name and symbol address
6874lt_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'"
6875
6876# Define system-specific variables.
6877case $host_os in
6878aix*)
6879  symcode='[BCDT]'
6880  ;;
6881cygwin* | mingw* | pw32*)
6882  symcode='[ABCDGISTW]'
6883  ;;
6884hpux*) # Its linker distinguishes data from code symbols
6885  if test "$host_cpu" = ia64; then
6886    symcode='[ABCDEGRST]'
6887  fi
6888  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6889  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'"
6890  ;;
6891linux*)
6892  if test "$host_cpu" = ia64; then
6893    symcode='[ABCDGIRSTW]'
6894    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6895    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'"
6896  fi
6897  ;;
6898irix* | nonstopux*)
6899  symcode='[BCDEGRST]'
6900  ;;
6901osf*)
6902  symcode='[BCDEGQRST]'
6903  ;;
6904solaris*)
6905  symcode='[BDRT]'
6906  ;;
6907sco3.2v5*)
6908  symcode='[DT]'
6909  ;;
6910sysv4.2uw2*)
6911  symcode='[DT]'
6912  ;;
6913sysv5* | sco5v6* | unixware* | OpenUNIX*)
6914  symcode='[ABDT]'
6915  ;;
6916sysv4)
6917  symcode='[DFNSTU]'
6918  ;;
6919esac
6920
6921# Handle CRLF in mingw tool chain
6922opt_cr=
6923case $build_os in
6924mingw*)
6925  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6926  ;;
6927esac
6928
6929# If we're using GNU nm, then use its standard symbol codes.
6930case `$NM -V 2>&1` in
6931*GNU* | *'with BFD'*)
6932  symcode='[ABCDGIRSTW]' ;;
6933esac
6934
6935# Try without a prefix undercore, then with it.
6936for ac_symprfx in "" "_"; do
6937
6938  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6939  symxfrm="\\1 $ac_symprfx\\2 \\2"
6940
6941  # Write the raw and C identifiers.
6942  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6943
6944  # Check to see that the pipe works correctly.
6945  pipe_works=no
6946
6947  rm -f conftest*
6948  cat > conftest.$ac_ext <<EOF
6949#ifdef __cplusplus
6950extern "C" {
6951#endif
6952char nm_test_var;
6953void nm_test_func(){}
6954#ifdef __cplusplus
6955}
6956#endif
6957int main(){nm_test_var='a';nm_test_func();return(0);}
6958EOF
6959
6960  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961  (eval $ac_compile) 2>&5
6962  ac_status=$?
6963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964  (exit $ac_status); }; then
6965    # Now try to grab the symbols.
6966    nlist=conftest.nm
6967    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6968  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6969  ac_status=$?
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); } && test -s "$nlist"; then
6972      # Try sorting and uniquifying the output.
6973      if sort "$nlist" | uniq > "$nlist"T; then
6974        mv -f "$nlist"T "$nlist"
6975      else
6976        rm -f "$nlist"T
6977      fi
6978
6979      # Make sure that we snagged all the symbols we need.
6980      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6981        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6982          cat <<EOF > conftest.$ac_ext
6983#ifdef __cplusplus
6984extern "C" {
6985#endif
6986
6987EOF
6988          # Now generate the symbol file.
6989          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6990
6991          cat <<EOF >> conftest.$ac_ext
6992#if defined (__STDC__) && __STDC__
6993# define lt_ptr_t void *
6994#else
6995# define lt_ptr_t char *
6996# define const
6997#endif
6998
6999/* The mapping between symbol names and symbols. */
7000const struct {
7001  const char *name;
7002  lt_ptr_t address;
7003}
7004lt_preloaded_symbols[] =
7005{
7006EOF
7007          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7008          cat <<\EOF >> conftest.$ac_ext
7009  {0, (lt_ptr_t) 0}
7010};
7011
7012#ifdef __cplusplus
7013}
7014#endif
7015EOF
7016          # Now try linking the two files.
7017          mv conftest.$ac_objext conftstm.$ac_objext
7018          lt_save_LIBS="$LIBS"
7019          lt_save_CFLAGS="$CFLAGS"
7020          LIBS="conftstm.$ac_objext"
7021          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7022          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023  (eval $ac_link) 2>&5
7024  ac_status=$?
7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7027            pipe_works=yes
7028          fi
7029          LIBS="$lt_save_LIBS"
7030          CFLAGS="$lt_save_CFLAGS"
7031        else
7032          echo "cannot find nm_test_func in $nlist" >&5
7033        fi
7034      else
7035        echo "cannot find nm_test_var in $nlist" >&5
7036      fi
7037    else
7038      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7039    fi
7040  else
7041    echo "$progname: failed program was:" >&5
7042    cat conftest.$ac_ext >&5
7043  fi
7044  rm -f conftest* conftst*
7045
7046  # Do not use the global_symbol_pipe unless it works.
7047  if test "$pipe_works" = yes; then
7048    break
7049  else
7050    lt_cv_sys_global_symbol_pipe=
7051  fi
7052done
7053
7054fi
7055
7056if test -z "$lt_cv_sys_global_symbol_pipe"; then
7057  lt_cv_sys_global_symbol_to_cdecl=
7058fi
7059if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7060  echo "$as_me:$LINENO: result: failed" >&5
7061echo "${ECHO_T}failed" >&6
7062else
7063  echo "$as_me:$LINENO: result: ok" >&5
7064echo "${ECHO_T}ok" >&6
7065fi
7066
7067echo "$as_me:$LINENO: checking for objdir" >&5
7068echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7069if test "${lt_cv_objdir+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072  rm -f .libs 2>/dev/null
7073mkdir .libs 2>/dev/null
7074if test -d .libs; then
7075  lt_cv_objdir=.libs
7076else
7077  # MS-DOS does not allow filenames that begin with a dot.
7078  lt_cv_objdir=_libs
7079fi
7080rmdir .libs 2>/dev/null
7081fi
7082echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7083echo "${ECHO_T}$lt_cv_objdir" >&6
7084objdir=$lt_cv_objdir
7085
7086
7087
7088
7089
7090case $host_os in
7091aix3*)
7092  # AIX sometimes has problems with the GCC collect2 program.  For some
7093  # reason, if we set the COLLECT_NAMES environment variable, the problems
7094  # vanish in a puff of smoke.
7095  if test "X${COLLECT_NAMES+set}" != Xset; then
7096    COLLECT_NAMES=
7097    export COLLECT_NAMES
7098  fi
7099  ;;
7100esac
7101
7102# Sed substitution that helps us do robust quoting.  It backslashifies
7103# metacharacters that are still active within double-quoted strings.
7104Xsed='sed -e 1s/^X//'
7105sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7106
7107# Same as above, but do not quote variable references.
7108double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7109
7110# Sed substitution to delay expansion of an escaped shell variable in a
7111# double_quote_subst'ed string.
7112delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7113
7114# Sed substitution to avoid accidental globbing in evaled expressions
7115no_glob_subst='s/\*/\\\*/g'
7116
7117# Constants:
7118rm="rm -f"
7119
7120# Global variables:
7121default_ofile=libtool
7122can_build_shared=yes
7123
7124# All known linkers require a `.a' archive for static linking (except MSVC,
7125# which needs '.lib').
7126libext=a
7127ltmain="$ac_aux_dir/ltmain.sh"
7128ofile="$default_ofile"
7129with_gnu_ld="$lt_cv_prog_gnu_ld"
7130
7131if test -n "$ac_tool_prefix"; then
7132  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7133set dummy ${ac_tool_prefix}ar; ac_word=$2
7134echo "$as_me:$LINENO: checking for $ac_word" >&5
7135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136if test "${ac_cv_prog_AR+set}" = set; then
7137  echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139  if test -n "$AR"; then
7140  ac_cv_prog_AR="$AR" # Let the user override the test.
7141else
7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145  IFS=$as_save_IFS
7146  test -z "$as_dir" && as_dir=.
7147  for ac_exec_ext in '' $ac_executable_extensions; do
7148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149    ac_cv_prog_AR="${ac_tool_prefix}ar"
7150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151    break 2
7152  fi
7153done
7154done
7155
7156fi
7157fi
7158AR=$ac_cv_prog_AR
7159if test -n "$AR"; then
7160  echo "$as_me:$LINENO: result: $AR" >&5
7161echo "${ECHO_T}$AR" >&6
7162else
7163  echo "$as_me:$LINENO: result: no" >&5
7164echo "${ECHO_T}no" >&6
7165fi
7166
7167fi
7168if test -z "$ac_cv_prog_AR"; then
7169  ac_ct_AR=$AR
7170  # Extract the first word of "ar", so it can be a program name with args.
7171set dummy ar; ac_word=$2
7172echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7175  echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177  if test -n "$ac_ct_AR"; then
7178  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183  IFS=$as_save_IFS
7184  test -z "$as_dir" && as_dir=.
7185  for ac_exec_ext in '' $ac_executable_extensions; do
7186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187    ac_cv_prog_ac_ct_AR="ar"
7188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189    break 2
7190  fi
7191done
7192done
7193
7194  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7195fi
7196fi
7197ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198if test -n "$ac_ct_AR"; then
7199  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7200echo "${ECHO_T}$ac_ct_AR" >&6
7201else
7202  echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6
7204fi
7205
7206  AR=$ac_ct_AR
7207else
7208  AR="$ac_cv_prog_AR"
7209fi
7210
7211if test -n "$ac_tool_prefix"; then
7212  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7213set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7214echo "$as_me:$LINENO: checking for $ac_word" >&5
7215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7216if test "${ac_cv_prog_RANLIB+set}" = set; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  if test -n "$RANLIB"; then
7220  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227  for ac_exec_ext in '' $ac_executable_extensions; do
7228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234done
7235
7236fi
7237fi
7238RANLIB=$ac_cv_prog_RANLIB
7239if test -n "$RANLIB"; then
7240  echo "$as_me:$LINENO: result: $RANLIB" >&5
7241echo "${ECHO_T}$RANLIB" >&6
7242else
7243  echo "$as_me:$LINENO: result: no" >&5
7244echo "${ECHO_T}no" >&6
7245fi
7246
7247fi
7248if test -z "$ac_cv_prog_RANLIB"; then
7249  ac_ct_RANLIB=$RANLIB
7250  # Extract the first word of "ranlib", so it can be a program name with args.
7251set dummy ranlib; ac_word=$2
7252echo "$as_me:$LINENO: checking for $ac_word" >&5
7253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7255  echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257  if test -n "$ac_ct_RANLIB"; then
7258  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263  IFS=$as_save_IFS
7264  test -z "$as_dir" && as_dir=.
7265  for ac_exec_ext in '' $ac_executable_extensions; do
7266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267    ac_cv_prog_ac_ct_RANLIB="ranlib"
7268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269    break 2
7270  fi
7271done
7272done
7273
7274  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7275fi
7276fi
7277ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7278if test -n "$ac_ct_RANLIB"; then
7279  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7280echo "${ECHO_T}$ac_ct_RANLIB" >&6
7281else
7282  echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284fi
7285
7286  RANLIB=$ac_ct_RANLIB
7287else
7288  RANLIB="$ac_cv_prog_RANLIB"
7289fi
7290
7291if test -n "$ac_tool_prefix"; then
7292  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7293set dummy ${ac_tool_prefix}strip; ac_word=$2
7294echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296if test "${ac_cv_prog_STRIP+set}" = set; then
7297  echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299  if test -n "$STRIP"; then
7300  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305  IFS=$as_save_IFS
7306  test -z "$as_dir" && as_dir=.
7307  for ac_exec_ext in '' $ac_executable_extensions; do
7308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311    break 2
7312  fi
7313done
7314done
7315
7316fi
7317fi
7318STRIP=$ac_cv_prog_STRIP
7319if test -n "$STRIP"; then
7320  echo "$as_me:$LINENO: result: $STRIP" >&5
7321echo "${ECHO_T}$STRIP" >&6
7322else
7323  echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
7325fi
7326
7327fi
7328if test -z "$ac_cv_prog_STRIP"; then
7329  ac_ct_STRIP=$STRIP
7330  # Extract the first word of "strip", so it can be a program name with args.
7331set dummy strip; ac_word=$2
7332echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337  if test -n "$ac_ct_STRIP"; then
7338  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343  IFS=$as_save_IFS
7344  test -z "$as_dir" && as_dir=.
7345  for ac_exec_ext in '' $ac_executable_extensions; do
7346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347    ac_cv_prog_ac_ct_STRIP="strip"
7348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352done
7353
7354  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7355fi
7356fi
7357ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7358if test -n "$ac_ct_STRIP"; then
7359  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7360echo "${ECHO_T}$ac_ct_STRIP" >&6
7361else
7362  echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6
7364fi
7365
7366  STRIP=$ac_ct_STRIP
7367else
7368  STRIP="$ac_cv_prog_STRIP"
7369fi
7370
7371
7372old_CC="$CC"
7373old_CFLAGS="$CFLAGS"
7374
7375# Set sane defaults for various variables
7376test -z "$AR" && AR=ar
7377test -z "$AR_FLAGS" && AR_FLAGS=cru
7378test -z "$AS" && AS=as
7379test -z "$CC" && CC=cc
7380test -z "$LTCC" && LTCC=$CC
7381test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7382test -z "$DLLTOOL" && DLLTOOL=dlltool
7383test -z "$LD" && LD=ld
7384test -z "$LN_S" && LN_S="ln -s"
7385test -z "$MAGIC_CMD" && MAGIC_CMD=file
7386test -z "$NM" && NM=nm
7387test -z "$SED" && SED=sed
7388test -z "$OBJDUMP" && OBJDUMP=objdump
7389test -z "$RANLIB" && RANLIB=:
7390test -z "$STRIP" && STRIP=:
7391test -z "$ac_objext" && ac_objext=o
7392
7393# Determine commands to create old-style static archives.
7394old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7395old_postinstall_cmds='chmod 644 $oldlib'
7396old_postuninstall_cmds=
7397
7398if test -n "$RANLIB"; then
7399  case $host_os in
7400  openbsd*)
7401    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7402    ;;
7403  *)
7404    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7405    ;;
7406  esac
7407  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7408fi
7409
7410for cc_temp in $compiler""; do
7411  case $cc_temp in
7412    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7413    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7414    \-*) ;;
7415    *) break;;
7416  esac
7417done
7418cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7419
7420
7421# Only perform the check for file, if the check method requires it
7422case $deplibs_check_method in
7423file_magic*)
7424  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7425    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7426echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7427if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7428  echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430  case $MAGIC_CMD in
7431[\\/*] |  ?:[\\/]*)
7432  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7433  ;;
7434*)
7435  lt_save_MAGIC_CMD="$MAGIC_CMD"
7436  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7437  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7438  for ac_dir in $ac_dummy; do
7439    IFS="$lt_save_ifs"
7440    test -z "$ac_dir" && ac_dir=.
7441    if test -f $ac_dir/${ac_tool_prefix}file; then
7442      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7443      if test -n "$file_magic_test_file"; then
7444        case $deplibs_check_method in
7445        "file_magic "*)
7446          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7447          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7448          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7449            $EGREP "$file_magic_regex" > /dev/null; then
7450            :
7451          else
7452            cat <<EOF 1>&2
7453
7454*** Warning: the command libtool uses to detect shared libraries,
7455*** $file_magic_cmd, produces output that libtool cannot recognize.
7456*** The result is that libtool may fail to recognize shared libraries
7457*** as such.  This will affect the creation of libtool libraries that
7458*** depend on shared libraries, but programs linked with such libtool
7459*** libraries will work regardless of this problem.  Nevertheless, you
7460*** may want to report the problem to your system manager and/or to
7461*** bug-libtool@gnu.org
7462
7463EOF
7464          fi ;;
7465        esac
7466      fi
7467      break
7468    fi
7469  done
7470  IFS="$lt_save_ifs"
7471  MAGIC_CMD="$lt_save_MAGIC_CMD"
7472  ;;
7473esac
7474fi
7475
7476MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7477if test -n "$MAGIC_CMD"; then
7478  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7479echo "${ECHO_T}$MAGIC_CMD" >&6
7480else
7481  echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6
7483fi
7484
7485if test -z "$lt_cv_path_MAGIC_CMD"; then
7486  if test -n "$ac_tool_prefix"; then
7487    echo "$as_me:$LINENO: checking for file" >&5
7488echo $ECHO_N "checking for file... $ECHO_C" >&6
7489if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7490  echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492  case $MAGIC_CMD in
7493[\\/*] |  ?:[\\/]*)
7494  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7495  ;;
7496*)
7497  lt_save_MAGIC_CMD="$MAGIC_CMD"
7498  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7499  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7500  for ac_dir in $ac_dummy; do
7501    IFS="$lt_save_ifs"
7502    test -z "$ac_dir" && ac_dir=.
7503    if test -f $ac_dir/file; then
7504      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7505      if test -n "$file_magic_test_file"; then
7506        case $deplibs_check_method in
7507        "file_magic "*)
7508          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7509          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7510          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7511            $EGREP "$file_magic_regex" > /dev/null; then
7512            :
7513          else
7514            cat <<EOF 1>&2
7515
7516*** Warning: the command libtool uses to detect shared libraries,
7517*** $file_magic_cmd, produces output that libtool cannot recognize.
7518*** The result is that libtool may fail to recognize shared libraries
7519*** as such.  This will affect the creation of libtool libraries that
7520*** depend on shared libraries, but programs linked with such libtool
7521*** libraries will work regardless of this problem.  Nevertheless, you
7522*** may want to report the problem to your system manager and/or to
7523*** bug-libtool@gnu.org
7524
7525EOF
7526          fi ;;
7527        esac
7528      fi
7529      break
7530    fi
7531  done
7532  IFS="$lt_save_ifs"
7533  MAGIC_CMD="$lt_save_MAGIC_CMD"
7534  ;;
7535esac
7536fi
7537
7538MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539if test -n "$MAGIC_CMD"; then
7540  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7541echo "${ECHO_T}$MAGIC_CMD" >&6
7542else
7543  echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
7545fi
7546
7547  else
7548    MAGIC_CMD=:
7549  fi
7550fi
7551
7552  fi
7553  ;;
7554esac
7555
7556enable_dlopen=no
7557enable_win32_dll=no
7558
7559# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7560if test "${enable_libtool_lock+set}" = set; then
7561  enableval="$enable_libtool_lock"
7562
7563fi;
7564test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7565
7566
7567# Check whether --with-pic or --without-pic was given.
7568if test "${with_pic+set}" = set; then
7569  withval="$with_pic"
7570  pic_mode="$withval"
7571else
7572  pic_mode=default
7573fi;
7574test -z "$pic_mode" && pic_mode=default
7575
7576# Use C for the default configuration in the libtool script
7577tagname=
7578lt_save_CC="$CC"
7579ac_ext=c
7580ac_cpp='$CPP $CPPFLAGS'
7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585
7586# Source file extension for C test sources.
7587ac_ext=c
7588
7589# Object file extension for compiled C test sources.
7590objext=o
7591objext=$objext
7592
7593# Code to be used in simple compile tests
7594lt_simple_compile_test_code="int some_variable = 0;\n"
7595
7596# Code to be used in simple link tests
7597lt_simple_link_test_code='int main(){return(0);}\n'
7598
7599
7600# If no C compiler was specified, use CC.
7601LTCC=${LTCC-"$CC"}
7602
7603# If no C compiler flags were specified, use CFLAGS.
7604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7605
7606# Allow CC to be a program name with arguments.
7607compiler=$CC
7608
7609
7610# save warnings/boilerplate of simple test code
7611ac_outfile=conftest.$ac_objext
7612printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7613eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7614_lt_compiler_boilerplate=`cat conftest.err`
7615$rm conftest*
7616
7617ac_outfile=conftest.$ac_objext
7618printf "$lt_simple_link_test_code" >conftest.$ac_ext
7619eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620_lt_linker_boilerplate=`cat conftest.err`
7621$rm conftest*
7622
7623
7624## CAVEAT EMPTOR:
7625## There is no encapsulation within the following macros, do not change
7626## the running order or otherwise move them around unless you know exactly
7627## what you are doing...
7628
7629lt_prog_compiler_no_builtin_flag=
7630
7631if test "$GCC" = yes; then
7632  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7633
7634
7635echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7636echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7637if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7638  echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640  lt_cv_prog_compiler_rtti_exceptions=no
7641  ac_outfile=conftest.$ac_objext
7642   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7643   lt_compiler_flag="-fno-rtti -fno-exceptions"
7644   # Insert the option either (1) after the last *FLAGS variable, or
7645   # (2) before a word containing "conftest.", or (3) at the end.
7646   # Note that $ac_compile itself does not contain backslashes and begins
7647   # with a dollar sign (not a hyphen), so the echo should work correctly.
7648   # The option is referenced via a variable to avoid confusing sed.
7649   lt_compile=`echo "$ac_compile" | $SED \
7650   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7651   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7652   -e 's:$: $lt_compiler_flag:'`
7653   (eval echo "\"\$as_me:7653: $lt_compile\"" >&5)
7654   (eval "$lt_compile" 2>conftest.err)
7655   ac_status=$?
7656   cat conftest.err >&5
7657   echo "$as_me:7657: \$? = $ac_status" >&5
7658   if (exit $ac_status) && test -s "$ac_outfile"; then
7659     # The compiler can only warn and ignore the option if not recognized
7660     # So say no if there are warnings other than the usual output.
7661     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7662     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7663     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7664       lt_cv_prog_compiler_rtti_exceptions=yes
7665     fi
7666   fi
7667   $rm conftest*
7668
7669fi
7670echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7671echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7672
7673if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7674    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7675else
7676    :
7677fi
7678
7679fi
7680
7681lt_prog_compiler_wl=
7682lt_prog_compiler_pic=
7683lt_prog_compiler_static=
7684
7685echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7686echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7687
7688  if test "$GCC" = yes; then
7689    lt_prog_compiler_wl='-Wl,'
7690    lt_prog_compiler_static='-static'
7691
7692    case $host_os in
7693      aix*)
7694      # All AIX code is PIC.
7695      if test "$host_cpu" = ia64; then
7696        # AIX 5 now supports IA64 processor
7697        lt_prog_compiler_static='-Bstatic'
7698      fi
7699      ;;
7700
7701    amigaos*)
7702      # FIXME: we need at least 68020 code to build shared libraries, but
7703      # adding the `-m68020' flag to GCC prevents building anything better,
7704      # like `-m68040'.
7705      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7706      ;;
7707
7708    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7709      # PIC is the default for these OSes.
7710      ;;
7711
7712    mingw* | pw32* | os2*)
7713      # This hack is so that the source file can tell whether it is being
7714      # built for inclusion in a dll (and should export symbols for example).
7715      lt_prog_compiler_pic='-DDLL_EXPORT'
7716      ;;
7717
7718    darwin* | rhapsody*)
7719      # PIC is the default on this platform
7720      # Common symbols not allowed in MH_DYLIB files
7721      lt_prog_compiler_pic='-fno-common'
7722      ;;
7723
7724    interix3*)
7725      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7726      # Instead, we relocate shared libraries at runtime.
7727      ;;
7728
7729    msdosdjgpp*)
7730      # Just because we use GCC doesn't mean we suddenly get shared libraries
7731      # on systems that don't support them.
7732      lt_prog_compiler_can_build_shared=no
7733      enable_shared=no
7734      ;;
7735
7736    sysv4*MP*)
7737      if test -d /usr/nec; then
7738        lt_prog_compiler_pic=-Kconform_pic
7739      fi
7740      ;;
7741
7742    hpux*)
7743      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7744      # not for PA HP-UX.
7745      case $host_cpu in
7746      hppa*64*|ia64*)
7747        # +Z the default
7748        ;;
7749      *)
7750        lt_prog_compiler_pic='-fPIC'
7751        ;;
7752      esac
7753      ;;
7754
7755    *)
7756      lt_prog_compiler_pic='-fPIC'
7757      ;;
7758    esac
7759  else
7760    # PORTME Check for flag to pass linker flags through the system compiler.
7761    case $host_os in
7762    aix*)
7763      lt_prog_compiler_wl='-Wl,'
7764      if test "$host_cpu" = ia64; then
7765        # AIX 5 now supports IA64 processor
7766        lt_prog_compiler_static='-Bstatic'
7767      else
7768        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7769      fi
7770      ;;
7771      darwin*)
7772        # PIC is the default on this platform
7773        # Common symbols not allowed in MH_DYLIB files
7774       case $cc_basename in
7775         xlc*)
7776         lt_prog_compiler_pic='-qnocommon'
7777         lt_prog_compiler_wl='-Wl,'
7778         ;;
7779       esac
7780       ;;
7781
7782    mingw* | pw32* | os2*)
7783      # This hack is so that the source file can tell whether it is being
7784      # built for inclusion in a dll (and should export symbols for example).
7785      lt_prog_compiler_pic='-DDLL_EXPORT'
7786      ;;
7787
7788    hpux9* | hpux10* | hpux11*)
7789      lt_prog_compiler_wl='-Wl,'
7790      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7791      # not for PA HP-UX.
7792      case $host_cpu in
7793      hppa*64*|ia64*)
7794        # +Z the default
7795        ;;
7796      *)
7797        lt_prog_compiler_pic='+Z'
7798        ;;
7799      esac
7800      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7801      lt_prog_compiler_static='${wl}-a ${wl}archive'
7802      ;;
7803
7804    irix5* | irix6* | nonstopux*)
7805      lt_prog_compiler_wl='-Wl,'
7806      # PIC (with -KPIC) is the default.
7807      lt_prog_compiler_static='-non_shared'
7808      ;;
7809
7810    newsos6)
7811      lt_prog_compiler_pic='-KPIC'
7812      lt_prog_compiler_static='-Bstatic'
7813      ;;
7814
7815    linux*)
7816      case $cc_basename in
7817      icc* | ecc*)
7818        lt_prog_compiler_wl='-Wl,'
7819        lt_prog_compiler_pic='-KPIC'
7820        lt_prog_compiler_static='-static'
7821        ;;
7822      pgcc* | pgf77* | pgf90* | pgf95*)
7823        # Portland Group compilers (*not* the Pentium gcc compiler,
7824        # which looks to be a dead project)
7825        lt_prog_compiler_wl='-Wl,'
7826        lt_prog_compiler_pic='-fpic'
7827        lt_prog_compiler_static='-Bstatic'
7828        ;;
7829      ccc*)
7830        lt_prog_compiler_wl='-Wl,'
7831        # All Alpha code is PIC.
7832        lt_prog_compiler_static='-non_shared'
7833        ;;
7834      esac
7835      ;;
7836
7837    osf3* | osf4* | osf5*)
7838      lt_prog_compiler_wl='-Wl,'
7839      # All OSF/1 code is PIC.
7840      lt_prog_compiler_static='-non_shared'
7841      ;;
7842
7843    solaris*)
7844      lt_prog_compiler_pic='-KPIC'
7845      lt_prog_compiler_static='-Bstatic'
7846      case $cc_basename in
7847      f77* | f90* | f95*)
7848        lt_prog_compiler_wl='-Qoption ld ';;
7849      *)
7850        lt_prog_compiler_wl='-Wl,';;
7851      esac
7852      ;;
7853
7854    sunos4*)
7855      lt_prog_compiler_wl='-Qoption ld '
7856      lt_prog_compiler_pic='-PIC'
7857      lt_prog_compiler_static='-Bstatic'
7858      ;;
7859
7860    sysv4 | sysv4.2uw2* | sysv4.3*)
7861      lt_prog_compiler_wl='-Wl,'
7862      lt_prog_compiler_pic='-KPIC'
7863      lt_prog_compiler_static='-Bstatic'
7864      ;;
7865
7866    sysv4*MP*)
7867      if test -d /usr/nec ;then
7868        lt_prog_compiler_pic='-Kconform_pic'
7869        lt_prog_compiler_static='-Bstatic'
7870      fi
7871      ;;
7872
7873    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7874      lt_prog_compiler_wl='-Wl,'
7875      lt_prog_compiler_pic='-KPIC'
7876      lt_prog_compiler_static='-Bstatic'
7877      ;;
7878
7879    unicos*)
7880      lt_prog_compiler_wl='-Wl,'
7881      lt_prog_compiler_can_build_shared=no
7882      ;;
7883
7884    uts4*)
7885      lt_prog_compiler_pic='-pic'
7886      lt_prog_compiler_static='-Bstatic'
7887      ;;
7888
7889    *)
7890      lt_prog_compiler_can_build_shared=no
7891      ;;
7892    esac
7893  fi
7894
7895echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7896echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7897
7898#
7899# Check to make sure the PIC flag actually works.
7900#
7901if test -n "$lt_prog_compiler_pic"; then
7902
7903echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7904echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7905if test "${lt_prog_compiler_pic_works+set}" = set; then
7906  echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908  lt_prog_compiler_pic_works=no
7909  ac_outfile=conftest.$ac_objext
7910   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7911   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7912   # Insert the option either (1) after the last *FLAGS variable, or
7913   # (2) before a word containing "conftest.", or (3) at the end.
7914   # Note that $ac_compile itself does not contain backslashes and begins
7915   # with a dollar sign (not a hyphen), so the echo should work correctly.
7916   # The option is referenced via a variable to avoid confusing sed.
7917   lt_compile=`echo "$ac_compile" | $SED \
7918   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920   -e 's:$: $lt_compiler_flag:'`
7921   (eval echo "\"\$as_me:7921: $lt_compile\"" >&5)
7922   (eval "$lt_compile" 2>conftest.err)
7923   ac_status=$?
7924   cat conftest.err >&5
7925   echo "$as_me:7925: \$? = $ac_status" >&5
7926   if (exit $ac_status) && test -s "$ac_outfile"; then
7927     # The compiler can only warn and ignore the option if not recognized
7928     # So say no if there are warnings other than the usual output.
7929     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7930     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7931     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7932       lt_prog_compiler_pic_works=yes
7933     fi
7934   fi
7935   $rm conftest*
7936
7937fi
7938echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7939echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7940
7941if test x"$lt_prog_compiler_pic_works" = xyes; then
7942    case $lt_prog_compiler_pic in
7943     "" | " "*) ;;
7944     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7945     esac
7946else
7947    lt_prog_compiler_pic=
7948     lt_prog_compiler_can_build_shared=no
7949fi
7950
7951fi
7952case $host_os in
7953  # For platforms which do not support PIC, -DPIC is meaningless:
7954  *djgpp*)
7955    lt_prog_compiler_pic=
7956    ;;
7957  *)
7958    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7959    ;;
7960esac
7961
7962#
7963# Check to make sure the static flag actually works.
7964#
7965wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7966echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7967echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7968if test "${lt_prog_compiler_static_works+set}" = set; then
7969  echo $ECHO_N "(cached) $ECHO_C" >&6
7970else
7971  lt_prog_compiler_static_works=no
7972   save_LDFLAGS="$LDFLAGS"
7973   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7974   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7975   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7976     # The linker can only warn and ignore the option if not recognized
7977     # So say no if there are warnings
7978     if test -s conftest.err; then
7979       # Append any errors to the config.log.
7980       cat conftest.err 1>&5
7981       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7982       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7983       if diff conftest.exp conftest.er2 >/dev/null; then
7984         lt_prog_compiler_static_works=yes
7985       fi
7986     else
7987       lt_prog_compiler_static_works=yes
7988     fi
7989   fi
7990   $rm conftest*
7991   LDFLAGS="$save_LDFLAGS"
7992
7993fi
7994echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7995echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7996
7997if test x"$lt_prog_compiler_static_works" = xyes; then
7998    :
7999else
8000    lt_prog_compiler_static=
8001fi
8002
8003
8004echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8005echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8006if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  lt_cv_prog_compiler_c_o=no
8010   $rm -r conftest 2>/dev/null
8011   mkdir conftest
8012   cd conftest
8013   mkdir out
8014   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8015
8016   lt_compiler_flag="-o out/conftest2.$ac_objext"
8017   # Insert the option either (1) after the last *FLAGS variable, or
8018   # (2) before a word containing "conftest.", or (3) at the end.
8019   # Note that $ac_compile itself does not contain backslashes and begins
8020   # with a dollar sign (not a hyphen), so the echo should work correctly.
8021   lt_compile=`echo "$ac_compile" | $SED \
8022   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8023   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8024   -e 's:$: $lt_compiler_flag:'`
8025   (eval echo "\"\$as_me:8025: $lt_compile\"" >&5)
8026   (eval "$lt_compile" 2>out/conftest.err)
8027   ac_status=$?
8028   cat out/conftest.err >&5
8029   echo "$as_me:8029: \$? = $ac_status" >&5
8030   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8031   then
8032     # The compiler can only warn and ignore the option if not recognized
8033     # So say no if there are warnings
8034     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8035     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8036     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8037       lt_cv_prog_compiler_c_o=yes
8038     fi
8039   fi
8040   chmod u+w . 2>&5
8041   $rm conftest*
8042   # SGI C++ compiler will create directory out/ii_files/ for
8043   # template instantiation
8044   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8045   $rm out/* && rmdir out
8046   cd ..
8047   rmdir conftest
8048   $rm conftest*
8049
8050fi
8051echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8052echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8053
8054
8055hard_links="nottested"
8056if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8057  # do not overwrite the value of need_locks provided by the user
8058  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8059echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8060  hard_links=yes
8061  $rm conftest*
8062  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8063  touch conftest.a
8064  ln conftest.a conftest.b 2>&5 || hard_links=no
8065  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8066  echo "$as_me:$LINENO: result: $hard_links" >&5
8067echo "${ECHO_T}$hard_links" >&6
8068  if test "$hard_links" = no; then
8069    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8070echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8071    need_locks=warn
8072  fi
8073else
8074  need_locks=no
8075fi
8076
8077echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8078echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8079
8080  runpath_var=
8081  allow_undefined_flag=
8082  enable_shared_with_static_runtimes=no
8083  archive_cmds=
8084  archive_expsym_cmds=
8085  old_archive_From_new_cmds=
8086  old_archive_from_expsyms_cmds=
8087  export_dynamic_flag_spec=
8088  whole_archive_flag_spec=
8089  thread_safe_flag_spec=
8090  hardcode_libdir_flag_spec=
8091  hardcode_libdir_flag_spec_ld=
8092  hardcode_libdir_separator=
8093  hardcode_direct=no
8094  hardcode_minus_L=no
8095  hardcode_shlibpath_var=unsupported
8096  link_all_deplibs=unknown
8097  hardcode_automatic=no
8098  module_cmds=
8099  module_expsym_cmds=
8100  always_export_symbols=no
8101  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8102  # include_expsyms should be a list of space-separated symbols to be *always*
8103  # included in the symbol list
8104  include_expsyms=
8105  # exclude_expsyms can be an extended regexp of symbols to exclude
8106  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8107  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8108  # as well as any symbol that contains `d'.
8109  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8110  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8111  # platforms (ab)use it in PIC code, but their linkers get confused if
8112  # the symbol is explicitly referenced.  Since portable code cannot
8113  # rely on this symbol name, it's probably fine to never include it in
8114  # preloaded symbol tables.
8115  extract_expsyms_cmds=
8116  # Just being paranoid about ensuring that cc_basename is set.
8117  for cc_temp in $compiler""; do
8118  case $cc_temp in
8119    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8120    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8121    \-*) ;;
8122    *) break;;
8123  esac
8124done
8125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8126
8127  case $host_os in
8128  cygwin* | mingw* | pw32*)
8129    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8130    # When not using gcc, we currently assume that we are using
8131    # Microsoft Visual C++.
8132    if test "$GCC" != yes; then
8133      with_gnu_ld=no
8134    fi
8135    ;;
8136  interix*)
8137    # we just hope/assume this is gcc and not c89 (= MSVC++)
8138    with_gnu_ld=yes
8139    ;;
8140  openbsd*)
8141    with_gnu_ld=no
8142    ;;
8143  esac
8144
8145  ld_shlibs=yes
8146  if test "$with_gnu_ld" = yes; then
8147    # If archive_cmds runs LD, not CC, wlarc should be empty
8148    wlarc='${wl}'
8149
8150    # Set some defaults for GNU ld with shared library support. These
8151    # are reset later if shared libraries are not supported. Putting them
8152    # here allows them to be overridden if necessary.
8153    runpath_var=LD_RUN_PATH
8154    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8155    export_dynamic_flag_spec='${wl}--export-dynamic'
8156    # ancient GNU ld didn't support --whole-archive et. al.
8157    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8158        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8159      else
8160        whole_archive_flag_spec=
8161    fi
8162    supports_anon_versioning=no
8163    case `$LD -v 2>/dev/null` in
8164      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8165      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8166      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8167      *\ 2.11.*) ;; # other 2.11 versions
8168      *) supports_anon_versioning=yes ;;
8169    esac
8170
8171    # See if GNU ld supports shared libraries.
8172    case $host_os in
8173    aix3* | aix4* | aix5*)
8174      # On AIX/PPC, the GNU linker is very broken
8175      if test "$host_cpu" != ia64; then
8176        ld_shlibs=no
8177        cat <<EOF 1>&2
8178
8179*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8180*** to be unable to reliably create shared libraries on AIX.
8181*** Therefore, libtool is disabling shared libraries support.  If you
8182*** really care for shared libraries, you may want to modify your PATH
8183*** so that a non-GNU linker is found, and then restart.
8184
8185EOF
8186      fi
8187      ;;
8188
8189    amigaos*)
8190      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)'
8191      hardcode_libdir_flag_spec='-L$libdir'
8192      hardcode_minus_L=yes
8193
8194      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8195      # that the semantics of dynamic libraries on AmigaOS, at least up
8196      # to version 4, is to share data among multiple programs linked
8197      # with the same dynamic library.  Since this doesn't match the
8198      # behavior of shared libraries on other platforms, we can't use
8199      # them.
8200      ld_shlibs=no
8201      ;;
8202
8203    beos*)
8204      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205        allow_undefined_flag=unsupported
8206        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8207        # support --undefined.  This deserves some investigation.  FIXME
8208        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209      else
8210        ld_shlibs=no
8211      fi
8212      ;;
8213
8214    cygwin* | mingw* | pw32*)
8215      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8216      # as there is no search path for DLLs.
8217      hardcode_libdir_flag_spec='-L$libdir'
8218      allow_undefined_flag=unsupported
8219      always_export_symbols=no
8220      enable_shared_with_static_runtimes=yes
8221      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8222
8223      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8224        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8225        # If the export-symbols file already is a .def file (1st line
8226        # is EXPORTS), use it as is; otherwise, prepend...
8227        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8228          cp $export_symbols $output_objdir/$soname.def;
8229        else
8230          echo EXPORTS > $output_objdir/$soname.def;
8231          cat $export_symbols >> $output_objdir/$soname.def;
8232        fi~
8233        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8234      else
8235        ld_shlibs=no
8236      fi
8237      ;;
8238
8239    interix3*)
8240      hardcode_direct=no
8241      hardcode_shlibpath_var=no
8242      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8243      export_dynamic_flag_spec='${wl}-E'
8244      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8245      # Instead, shared libraries are loaded at an image base (0x10000000 by
8246      # default) and relocated if they conflict, which is a slow very memory
8247      # consuming and fragmenting process.  To avoid this, we pick a random,
8248      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8249      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8250      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8251      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'
8252      ;;
8253
8254    linux*)
8255      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256        tmp_addflag=
8257        case $cc_basename,$host_cpu in
8258        pgcc*)                          # Portland Group C compiler
8259          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'
8260          tmp_addflag=' $pic_flag'
8261          ;;
8262        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8263          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'
8264          tmp_addflag=' $pic_flag -Mnomain' ;;
8265        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8266          tmp_addflag=' -i_dynamic' ;;
8267        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8268          tmp_addflag=' -i_dynamic -nofor_main' ;;
8269        ifc* | ifort*)                  # Intel Fortran compiler
8270          tmp_addflag=' -nofor_main' ;;
8271        esac
8272        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273
8274        if test $supports_anon_versioning = yes; then
8275          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8276  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8277  $echo "local: *; };" >> $output_objdir/$libname.ver~
8278          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8279        fi
8280      else
8281        ld_shlibs=no
8282      fi
8283      ;;
8284
8285    netbsd*)
8286      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8287        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8288        wlarc=
8289      else
8290        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292      fi
8293      ;;
8294
8295    solaris*)
8296      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8297        ld_shlibs=no
8298        cat <<EOF 1>&2
8299
8300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8301*** create shared libraries on Solaris systems.  Therefore, libtool
8302*** is disabling shared libraries support.  We urge you to upgrade GNU
8303*** binutils to release 2.9.1 or newer.  Another option is to modify
8304*** your PATH or compiler configuration so that the native linker is
8305*** used, and then restart.
8306
8307EOF
8308      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8311      else
8312        ld_shlibs=no
8313      fi
8314      ;;
8315
8316    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8317      case `$LD -v 2>&1` in
8318        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8319        ld_shlibs=no
8320        cat <<_LT_EOF 1>&2
8321
8322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8323*** reliably create shared libraries on SCO systems.  Therefore, libtool
8324*** is disabling shared libraries support.  We urge you to upgrade GNU
8325*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8326*** your PATH or compiler configuration so that the native linker is
8327*** used, and then restart.
8328
8329_LT_EOF
8330        ;;
8331        *)
8332          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8333            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8334            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8335            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8336          else
8337            ld_shlibs=no
8338          fi
8339        ;;
8340      esac
8341      ;;
8342
8343    sunos4*)
8344      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8345      wlarc=
8346      hardcode_direct=yes
8347      hardcode_shlibpath_var=no
8348      ;;
8349
8350    *)
8351      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8352        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8354      else
8355        ld_shlibs=no
8356      fi
8357      ;;
8358    esac
8359
8360    if test "$ld_shlibs" = no; then
8361      runpath_var=
8362      hardcode_libdir_flag_spec=
8363      export_dynamic_flag_spec=
8364      whole_archive_flag_spec=
8365    fi
8366  else
8367    # PORTME fill in a description of your system's linker (not GNU ld)
8368    case $host_os in
8369    aix3*)
8370      allow_undefined_flag=unsupported
8371      always_export_symbols=yes
8372      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'
8373      # Note: this linker hardcodes the directories in LIBPATH if there
8374      # are no directories specified by -L.
8375      hardcode_minus_L=yes
8376      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8377        # Neither direct hardcoding nor static linking is supported with a
8378        # broken collect2.
8379        hardcode_direct=unsupported
8380      fi
8381      ;;
8382
8383    aix4* | aix5*)
8384      if test "$host_cpu" = ia64; then
8385        # On IA64, the linker does run time linking by default, so we don't
8386        # have to do anything special.
8387        aix_use_runtimelinking=no
8388        exp_sym_flag='-Bexport'
8389        no_entry_flag=""
8390      else
8391        # If we're using GNU nm, then we don't want the "-C" option.
8392        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8393        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8394          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'
8395        else
8396          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'
8397        fi
8398        aix_use_runtimelinking=no
8399
8400        # Test if we are trying to use run time linking or normal
8401        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8402        # need to do runtime linking.
8403        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8404          for ld_flag in $LDFLAGS; do
8405          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8406            aix_use_runtimelinking=yes
8407            break
8408          fi
8409          done
8410          ;;
8411        esac
8412
8413        exp_sym_flag='-bexport'
8414        no_entry_flag='-bnoentry'
8415      fi
8416
8417      # When large executables or shared objects are built, AIX ld can
8418      # have problems creating the table of contents.  If linking a library
8419      # or program results in "error TOC overflow" add -mminimal-toc to
8420      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8421      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8422
8423      archive_cmds=''
8424      hardcode_direct=yes
8425      hardcode_libdir_separator=':'
8426      link_all_deplibs=yes
8427
8428      if test "$GCC" = yes; then
8429        case $host_os in aix4.[012]|aix4.[012].*)
8430        # We only want to do this on AIX 4.2 and lower, the check
8431        # below for broken collect2 doesn't work under 4.3+
8432          collect2name=`${CC} -print-prog-name=collect2`
8433          if test -f "$collect2name" && \
8434           strings "$collect2name" | grep resolve_lib_name >/dev/null
8435          then
8436          # We have reworked collect2
8437          hardcode_direct=yes
8438          else
8439          # We have old collect2
8440          hardcode_direct=unsupported
8441          # It fails to find uninstalled libraries when the uninstalled
8442          # path is not listed in the libpath.  Setting hardcode_minus_L
8443          # to unsupported forces relinking
8444          hardcode_minus_L=yes
8445          hardcode_libdir_flag_spec='-L$libdir'
8446          hardcode_libdir_separator=
8447          fi
8448          ;;
8449        esac
8450        shared_flag='-shared'
8451        if test "$aix_use_runtimelinking" = yes; then
8452          shared_flag="$shared_flag "'${wl}-G'
8453        fi
8454      else
8455        # not using gcc
8456        if test "$host_cpu" = ia64; then
8457        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8458        # chokes on -Wl,-G. The following line is correct:
8459          shared_flag='-G'
8460        else
8461          if test "$aix_use_runtimelinking" = yes; then
8462            shared_flag='${wl}-G'
8463          else
8464            shared_flag='${wl}-bM:SRE'
8465          fi
8466        fi
8467      fi
8468
8469      # It seems that -bexpall does not export symbols beginning with
8470      # underscore (_), so it is better to generate a list of symbols to export.
8471      always_export_symbols=yes
8472      if test "$aix_use_runtimelinking" = yes; then
8473        # Warning - without using the other runtime loading flags (-brtl),
8474        # -berok will link without error, but may produce a broken library.
8475        allow_undefined_flag='-berok'
8476       # Determine the default libpath from the value encoded in an empty executable.
8477       cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h.  */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h.  */
8483
8484int
8485main ()
8486{
8487
8488  ;
8489  return 0;
8490}
8491_ACEOF
8492rm -f conftest.$ac_objext conftest$ac_exeext
8493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494  (eval $ac_link) 2>conftest.er1
8495  ac_status=$?
8496  grep -v '^ *+' conftest.er1 >conftest.err
8497  rm -f conftest.er1
8498  cat conftest.err >&5
8499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500  (exit $ac_status); } &&
8501         { ac_try='test -z "$ac_c_werror_flag"
8502                         || test ! -s conftest.err'
8503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504  (eval $ac_try) 2>&5
8505  ac_status=$?
8506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507  (exit $ac_status); }; } &&
8508         { ac_try='test -s conftest$ac_exeext'
8509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510  (eval $ac_try) 2>&5
8511  ac_status=$?
8512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); }; }; then
8514
8515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8516}'`
8517# Check for a 64-bit object if we didn't find anything.
8518if 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; }
8519}'`; fi
8520else
8521  echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
8524fi
8525rm -f conftest.err conftest.$ac_objext \
8526      conftest$ac_exeext conftest.$ac_ext
8527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8528
8529       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8530        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"
8531       else
8532        if test "$host_cpu" = ia64; then
8533          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8534          allow_undefined_flag="-z nodefs"
8535          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"
8536        else
8537         # Determine the default libpath from the value encoded in an empty executable.
8538         cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h.  */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h.  */
8544
8545int
8546main ()
8547{
8548
8549  ;
8550  return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555  (eval $ac_link) 2>conftest.er1
8556  ac_status=$?
8557  grep -v '^ *+' conftest.er1 >conftest.err
8558  rm -f conftest.er1
8559  cat conftest.err >&5
8560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); } &&
8562         { ac_try='test -z "$ac_c_werror_flag"
8563                         || test ! -s conftest.err'
8564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565  (eval $ac_try) 2>&5
8566  ac_status=$?
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); }; } &&
8569         { ac_try='test -s conftest$ac_exeext'
8570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571  (eval $ac_try) 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575
8576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8577}'`
8578# Check for a 64-bit object if we didn't find anything.
8579if 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; }
8580}'`; fi
8581else
8582  echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585fi
8586rm -f conftest.err conftest.$ac_objext \
8587      conftest$ac_exeext conftest.$ac_ext
8588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589
8590         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591          # Warning - without using the other run time loading flags,
8592          # -berok will link without error, but may produce a broken library.
8593          no_undefined_flag=' ${wl}-bernotok'
8594          allow_undefined_flag=' ${wl}-berok'
8595          # Exported symbols can be pulled into shared objects from archives
8596          whole_archive_flag_spec='$convenience'
8597          archive_cmds_need_lc=yes
8598          # This is similar to how AIX traditionally builds its shared libraries.
8599          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'
8600        fi
8601      fi
8602      ;;
8603
8604    amigaos*)
8605      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)'
8606      hardcode_libdir_flag_spec='-L$libdir'
8607      hardcode_minus_L=yes
8608      # see comment about different semantics on the GNU ld section
8609      ld_shlibs=no
8610      ;;
8611
8612    bsdi[45]*)
8613      export_dynamic_flag_spec=-rdynamic
8614      ;;
8615
8616    cygwin* | mingw* | pw32*)
8617      # When not using gcc, we currently assume that we are using
8618      # Microsoft Visual C++.
8619      # hardcode_libdir_flag_spec is actually meaningless, as there is
8620      # no search path for DLLs.
8621      hardcode_libdir_flag_spec=' '
8622      allow_undefined_flag=unsupported
8623      # Tell ltmain to make .lib files, not .a files.
8624      libext=lib
8625      # Tell ltmain to make .dll files, not .so files.
8626      shrext_cmds=".dll"
8627      # FIXME: Setting linknames here is a bad hack.
8628      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8629      # The linker will automatically build a .lib file if we build a DLL.
8630      old_archive_From_new_cmds='true'
8631      # FIXME: Should let the user specify the lib program.
8632      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8633      fix_srcfile_path='`cygpath -w "$srcfile"`'
8634      enable_shared_with_static_runtimes=yes
8635      ;;
8636
8637    darwin* | rhapsody*)
8638      case $host_os in
8639        rhapsody* | darwin1.[012])
8640         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8641         ;;
8642       *) # Darwin 1.3 on
8643         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8644           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8645         else
8646           case ${MACOSX_DEPLOYMENT_TARGET} in
8647             10.[012])
8648               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8649               ;;
8650             10.*)
8651               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8652               ;;
8653           esac
8654         fi
8655         ;;
8656      esac
8657      archive_cmds_need_lc=no
8658      hardcode_direct=no
8659      hardcode_automatic=yes
8660      hardcode_shlibpath_var=unsupported
8661      whole_archive_flag_spec=''
8662      link_all_deplibs=yes
8663    if test "$GCC" = yes ; then
8664        output_verbose_link_cmd='echo'
8665        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8666      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8667      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8668      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}'
8669      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}'
8670    else
8671      case $cc_basename in
8672        xlc*)
8673         output_verbose_link_cmd='echo'
8674         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8675         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8676          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8677         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}'
8678          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}'
8679          ;;
8680       *)
8681         ld_shlibs=no
8682          ;;
8683      esac
8684    fi
8685      ;;
8686
8687    dgux*)
8688      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689      hardcode_libdir_flag_spec='-L$libdir'
8690      hardcode_shlibpath_var=no
8691      ;;
8692
8693    freebsd1*)
8694      ld_shlibs=no
8695      ;;
8696
8697    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8698    # support.  Future versions do this automatically, but an explicit c++rt0.o
8699    # does not break anything, and helps significantly (at the cost of a little
8700    # extra space).
8701    freebsd2.2*)
8702      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8703      hardcode_libdir_flag_spec='-R$libdir'
8704      hardcode_direct=yes
8705      hardcode_shlibpath_var=no
8706      ;;
8707
8708    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8709    freebsd2*)
8710      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711      hardcode_direct=yes
8712      hardcode_minus_L=yes
8713      hardcode_shlibpath_var=no
8714      ;;
8715
8716    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8717    freebsd* | kfreebsd*-gnu | dragonfly*)
8718      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8719      hardcode_libdir_flag_spec='-R$libdir'
8720      hardcode_direct=yes
8721      hardcode_shlibpath_var=no
8722      ;;
8723
8724    hpux9*)
8725      if test "$GCC" = yes; then
8726        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'
8727      else
8728        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'
8729      fi
8730      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8731      hardcode_libdir_separator=:
8732      hardcode_direct=yes
8733
8734      # hardcode_minus_L: Not really in the search PATH,
8735      # but as the default location of the library.
8736      hardcode_minus_L=yes
8737      export_dynamic_flag_spec='${wl}-E'
8738      ;;
8739
8740    hpux10*)
8741      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8742        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8743      else
8744        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8745      fi
8746      if test "$with_gnu_ld" = no; then
8747        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748        hardcode_libdir_separator=:
8749
8750        hardcode_direct=yes
8751        export_dynamic_flag_spec='${wl}-E'
8752
8753        # hardcode_minus_L: Not really in the search PATH,
8754        # but as the default location of the library.
8755        hardcode_minus_L=yes
8756      fi
8757      ;;
8758
8759    hpux11*)
8760      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8761        case $host_cpu in
8762        hppa*64*)
8763          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8764          ;;
8765        ia64*)
8766          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8767          ;;
8768        *)
8769          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8770          ;;
8771        esac
8772      else
8773        case $host_cpu in
8774        hppa*64*)
8775          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776          ;;
8777        ia64*)
8778          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8779          ;;
8780        *)
8781          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8782          ;;
8783        esac
8784      fi
8785      if test "$with_gnu_ld" = no; then
8786        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8787        hardcode_libdir_separator=:
8788
8789        case $host_cpu in
8790        hppa*64*|ia64*)
8791          hardcode_libdir_flag_spec_ld='+b $libdir'
8792          hardcode_direct=no
8793          hardcode_shlibpath_var=no
8794          ;;
8795        *)
8796          hardcode_direct=yes
8797          export_dynamic_flag_spec='${wl}-E'
8798
8799          # hardcode_minus_L: Not really in the search PATH,
8800          # but as the default location of the library.
8801          hardcode_minus_L=yes
8802          ;;
8803        esac
8804      fi
8805      ;;
8806
8807    irix5* | irix6* | nonstopux*)
8808      if test "$GCC" = yes; then
8809        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'
8810      else
8811        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'
8812        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8813      fi
8814      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815      hardcode_libdir_separator=:
8816      link_all_deplibs=yes
8817      ;;
8818
8819    netbsd*)
8820      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8821        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8822      else
8823        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8824      fi
8825      hardcode_libdir_flag_spec='-R$libdir'
8826      hardcode_direct=yes
8827      hardcode_shlibpath_var=no
8828      ;;
8829
8830    newsos6)
8831      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832      hardcode_direct=yes
8833      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834      hardcode_libdir_separator=:
8835      hardcode_shlibpath_var=no
8836      ;;
8837
8838    openbsd*)
8839      hardcode_direct=yes
8840      hardcode_shlibpath_var=no
8841      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8842        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8843        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8844        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8845        export_dynamic_flag_spec='${wl}-E'
8846      else
8847       case $host_os in
8848         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8849           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8850           hardcode_libdir_flag_spec='-R$libdir'
8851           ;;
8852         *)
8853           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8854           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8855           ;;
8856       esac
8857      fi
8858      ;;
8859
8860    os2*)
8861      hardcode_libdir_flag_spec='-L$libdir'
8862      hardcode_minus_L=yes
8863      allow_undefined_flag=unsupported
8864      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'
8865      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8866      ;;
8867
8868    osf3*)
8869      if test "$GCC" = yes; then
8870        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8871        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'
8872      else
8873        allow_undefined_flag=' -expect_unresolved \*'
8874        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'
8875      fi
8876      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8877      hardcode_libdir_separator=:
8878      ;;
8879
8880    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8881      if test "$GCC" = yes; then
8882        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8883        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'
8884        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885      else
8886        allow_undefined_flag=' -expect_unresolved \*'
8887        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'
8888        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8889        $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'
8890
8891        # Both c and cxx compiler support -rpath directly
8892        hardcode_libdir_flag_spec='-rpath $libdir'
8893      fi
8894      hardcode_libdir_separator=:
8895      ;;
8896
8897    solaris*)
8898      no_undefined_flag=' -z text'
8899      if test "$GCC" = yes; then
8900        wlarc='${wl}'
8901        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8902        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8903          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8904      else
8905        wlarc=''
8906        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8908        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8909      fi
8910      hardcode_libdir_flag_spec='-R$libdir'
8911      hardcode_shlibpath_var=no
8912      case $host_os in
8913      solaris2.[0-5] | solaris2.[0-5].*) ;;
8914      *)
8915        # The compiler driver will combine linker options so we
8916        # cannot just pass the convience library names through
8917        # without $wl, iff we do not link with $LD.
8918        # Luckily, gcc supports the same syntax we need for Sun Studio.
8919        # Supported since Solaris 2.6 (maybe 2.5.1?)
8920        case $wlarc in
8921        '')
8922          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8923        *)
8924          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' ;;
8925        esac ;;
8926      esac
8927      link_all_deplibs=yes
8928      ;;
8929
8930    sunos4*)
8931      if test "x$host_vendor" = xsequent; then
8932        # Use $CC to link under sequent, because it throws in some extra .o
8933        # files that make .init and .fini sections work.
8934        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8935      else
8936        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8937      fi
8938      hardcode_libdir_flag_spec='-L$libdir'
8939      hardcode_direct=yes
8940      hardcode_minus_L=yes
8941      hardcode_shlibpath_var=no
8942      ;;
8943
8944    sysv4)
8945      case $host_vendor in
8946        sni)
8947          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948          hardcode_direct=yes # is this really true???
8949        ;;
8950        siemens)
8951          ## LD is ld it makes a PLAMLIB
8952          ## CC just makes a GrossModule.
8953          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8954          reload_cmds='$CC -r -o $output$reload_objs'
8955          hardcode_direct=no
8956        ;;
8957        motorola)
8958          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8959          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8960        ;;
8961      esac
8962      runpath_var='LD_RUN_PATH'
8963      hardcode_shlibpath_var=no
8964      ;;
8965
8966    sysv4.3*)
8967      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968      hardcode_shlibpath_var=no
8969      export_dynamic_flag_spec='-Bexport'
8970      ;;
8971
8972    sysv4*MP*)
8973      if test -d /usr/nec; then
8974        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975        hardcode_shlibpath_var=no
8976        runpath_var=LD_RUN_PATH
8977        hardcode_runpath_var=yes
8978        ld_shlibs=yes
8979      fi
8980      ;;
8981
8982    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8983      no_undefined_flag='${wl}-z,text'
8984      archive_cmds_need_lc=no
8985      hardcode_shlibpath_var=no
8986      runpath_var='LD_RUN_PATH'
8987
8988      if test "$GCC" = yes; then
8989        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8990        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991      else
8992        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8993        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8994      fi
8995      ;;
8996
8997    sysv5* | sco3.2v5* | sco5v6*)
8998      # Note: We can NOT use -z defs as we might desire, because we do not
8999      # link with -lc, and that would cause any symbols used from libc to
9000      # always be unresolved, which means just about no library would
9001      # ever link correctly.  If we're not using GNU ld we use -z text
9002      # though, which does catch some bad symbols but isn't as heavy-handed
9003      # as -z defs.
9004      no_undefined_flag='${wl}-z,text'
9005      allow_undefined_flag='${wl}-z,nodefs'
9006      archive_cmds_need_lc=no
9007      hardcode_shlibpath_var=no
9008      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9009      hardcode_libdir_separator=':'
9010      link_all_deplibs=yes
9011      export_dynamic_flag_spec='${wl}-Bexport'
9012      runpath_var='LD_RUN_PATH'
9013
9014      if test "$GCC" = yes; then
9015        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9016        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017      else
9018        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9019        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9020      fi
9021      ;;
9022
9023    uts4*)
9024      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025      hardcode_libdir_flag_spec='-L$libdir'
9026      hardcode_shlibpath_var=no
9027      ;;
9028
9029    *)
9030      ld_shlibs=no
9031      ;;
9032    esac
9033  fi
9034
9035echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9036echo "${ECHO_T}$ld_shlibs" >&6
9037test "$ld_shlibs" = no && can_build_shared=no
9038
9039#
9040# Do we need to explicitly link libc?
9041#
9042case "x$archive_cmds_need_lc" in
9043x|xyes)
9044  # Assume -lc should be added
9045  archive_cmds_need_lc=yes
9046
9047  if test "$enable_shared" = yes && test "$GCC" = yes; then
9048    case $archive_cmds in
9049    *'~'*)
9050      # FIXME: we may have to deal with multi-command sequences.
9051      ;;
9052    '$CC '*)
9053      # Test whether the compiler implicitly links with -lc since on some
9054      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9055      # to ld, don't add -lc before -lgcc.
9056      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9057echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9058      $rm conftest*
9059      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9060
9061      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9062  (eval $ac_compile) 2>&5
9063  ac_status=$?
9064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); } 2>conftest.err; then
9066        soname=conftest
9067        lib=conftest
9068        libobjs=conftest.$ac_objext
9069        deplibs=
9070        wl=$lt_prog_compiler_wl
9071        pic_flag=$lt_prog_compiler_pic
9072        compiler_flags=-v
9073        linker_flags=-v
9074        verstring=
9075        output_objdir=.
9076        libname=conftest
9077        lt_save_allow_undefined_flag=$allow_undefined_flag
9078        allow_undefined_flag=
9079        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9080  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9081  ac_status=$?
9082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083  (exit $ac_status); }
9084        then
9085          archive_cmds_need_lc=no
9086        else
9087          archive_cmds_need_lc=yes
9088        fi
9089        allow_undefined_flag=$lt_save_allow_undefined_flag
9090      else
9091        cat conftest.err 1>&5
9092      fi
9093      $rm conftest*
9094      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9095echo "${ECHO_T}$archive_cmds_need_lc" >&6
9096      ;;
9097    esac
9098  fi
9099  ;;
9100esac
9101
9102echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9103echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9104library_names_spec=
9105libname_spec='lib$name'
9106soname_spec=
9107shrext_cmds=".so"
9108postinstall_cmds=
9109postuninstall_cmds=
9110finish_cmds=
9111finish_eval=
9112shlibpath_var=
9113shlibpath_overrides_runpath=unknown
9114version_type=none
9115dynamic_linker="$host_os ld.so"
9116sys_lib_dlsearch_path_spec="/lib /usr/lib"
9117if test "$GCC" = yes; then
9118  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9119  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9120    # if the path contains ";" then we assume it to be the separator
9121    # otherwise default to the standard path separator (i.e. ":") - it is
9122    # assumed that no part of a normal pathname contains ";" but that should
9123    # okay in the real world where ";" in dirpaths is itself problematic.
9124    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9125  else
9126    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9127  fi
9128else
9129  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9130fi
9131need_lib_prefix=unknown
9132hardcode_into_libs=no
9133
9134# when you set need_version to no, make sure it does not cause -set_version
9135# flags to be left without arguments
9136need_version=unknown
9137
9138case $host_os in
9139aix3*)
9140  version_type=linux
9141  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9142  shlibpath_var=LIBPATH
9143
9144  # AIX 3 has no versioning support, so we append a major version to the name.
9145  soname_spec='${libname}${release}${shared_ext}$major'
9146  ;;
9147
9148aix4* | aix5*)
9149  version_type=linux
9150  need_lib_prefix=no
9151  need_version=no
9152  hardcode_into_libs=yes
9153  if test "$host_cpu" = ia64; then
9154    # AIX 5 supports IA64
9155    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9156    shlibpath_var=LD_LIBRARY_PATH
9157  else
9158    # With GCC up to 2.95.x, collect2 would create an import file
9159    # for dependence libraries.  The import file would start with
9160    # the line `#! .'.  This would cause the generated library to
9161    # depend on `.', always an invalid library.  This was fixed in
9162    # development snapshots of GCC prior to 3.0.
9163    case $host_os in
9164      aix4 | aix4.[01] | aix4.[01].*)
9165      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9166           echo ' yes '
9167           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9168        :
9169      else
9170        can_build_shared=no
9171      fi
9172      ;;
9173    esac
9174    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9175    # soname into executable. Probably we can add versioning support to
9176    # collect2, so additional links can be useful in future.
9177    if test "$aix_use_runtimelinking" = yes; then
9178      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9179      # instead of lib<name>.a to let people know that these are not
9180      # typical AIX shared libraries.
9181      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182    else
9183      # We preserve .a as extension for shared libraries through AIX4.2
9184      # and later when we are not doing run time linking.
9185      library_names_spec='${libname}${release}.a $libname.a'
9186      soname_spec='${libname}${release}${shared_ext}$major'
9187    fi
9188    shlibpath_var=LIBPATH
9189  fi
9190  ;;
9191
9192amigaos*)
9193  library_names_spec='$libname.ixlibrary $libname.a'
9194  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9195  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'
9196  ;;
9197
9198beos*)
9199  library_names_spec='${libname}${shared_ext}'
9200  dynamic_linker="$host_os ld.so"
9201  shlibpath_var=LIBRARY_PATH
9202  ;;
9203
9204bsdi[45]*)
9205  version_type=linux
9206  need_version=no
9207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208  soname_spec='${libname}${release}${shared_ext}$major'
9209  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9210  shlibpath_var=LD_LIBRARY_PATH
9211  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9212  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9213  # the default ld.so.conf also contains /usr/contrib/lib and
9214  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9215  # libtool to hard-code these into programs
9216  ;;
9217
9218cygwin* | mingw* | pw32*)
9219  version_type=windows
9220  shrext_cmds=".dll"
9221  need_version=no
9222  need_lib_prefix=no
9223
9224  case $GCC,$host_os in
9225  yes,cygwin* | yes,mingw* | yes,pw32*)
9226    library_names_spec='$libname.dll.a'
9227    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9228    postinstall_cmds='base_file=`basename \${file}`~
9229      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9230      dldir=$destdir/`dirname \$dlpath`~
9231      test -d \$dldir || mkdir -p \$dldir~
9232      $install_prog $dir/$dlname \$dldir/$dlname~
9233      chmod a+x \$dldir/$dlname'
9234    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9235      dlpath=$dir/\$dldll~
9236       $rm \$dlpath'
9237    shlibpath_overrides_runpath=yes
9238
9239    case $host_os in
9240    cygwin*)
9241      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9242      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9243      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9244      ;;
9245    mingw*)
9246      # MinGW DLLs use traditional 'lib' prefix
9247      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9249      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9250        # It is most probably a Windows format PATH printed by
9251        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9252        # path with ; separators, and with drive letters. We can handle the
9253        # drive letters (cygwin fileutils understands them), so leave them,
9254        # especially as we might pass files found there to a mingw objdump,
9255        # which wouldn't understand a cygwinified path. Ahh.
9256        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9257      else
9258        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9259      fi
9260      ;;
9261    pw32*)
9262      # pw32 DLLs use 'pw' prefix rather than 'lib'
9263      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9264      ;;
9265    esac
9266    ;;
9267
9268  *)
9269    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9270    ;;
9271  esac
9272  dynamic_linker='Win32 ld.exe'
9273  # FIXME: first we should search . and the directory the executable is in
9274  shlibpath_var=PATH
9275  ;;
9276
9277darwin* | rhapsody*)
9278  dynamic_linker="$host_os dyld"
9279  version_type=darwin
9280  need_lib_prefix=no
9281  need_version=no
9282  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9283  soname_spec='${libname}${release}${major}$shared_ext'
9284  shlibpath_overrides_runpath=yes
9285  shlibpath_var=DYLD_LIBRARY_PATH
9286  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9287  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9288  if test "$GCC" = yes; then
9289    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"`
9290  else
9291    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9292  fi
9293  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9294  ;;
9295
9296dgux*)
9297  version_type=linux
9298  need_lib_prefix=no
9299  need_version=no
9300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9301  soname_spec='${libname}${release}${shared_ext}$major'
9302  shlibpath_var=LD_LIBRARY_PATH
9303  ;;
9304
9305freebsd1*)
9306  dynamic_linker=no
9307  ;;
9308
9309kfreebsd*-gnu)
9310  version_type=linux
9311  need_lib_prefix=no
9312  need_version=no
9313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9314  soname_spec='${libname}${release}${shared_ext}$major'
9315  shlibpath_var=LD_LIBRARY_PATH
9316  shlibpath_overrides_runpath=no
9317  hardcode_into_libs=yes
9318  dynamic_linker='GNU ld.so'
9319  ;;
9320
9321freebsd* | dragonfly*)
9322  # DragonFly does not have aout.  When/if they implement a new
9323  # versioning mechanism, adjust this.
9324  if test -x /usr/bin/objformat; then
9325    objformat=`/usr/bin/objformat`
9326  else
9327    case $host_os in
9328    freebsd[123]*) objformat=aout ;;
9329    *) objformat=elf ;;
9330    esac
9331  fi
9332  version_type=freebsd-$objformat
9333  case $version_type in
9334    freebsd-elf*)
9335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9336      need_version=no
9337      need_lib_prefix=no
9338      ;;
9339    freebsd-*)
9340      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9341      need_version=yes
9342      ;;
9343  esac
9344  shlibpath_var=LD_LIBRARY_PATH
9345  case $host_os in
9346  freebsd2*)
9347    shlibpath_overrides_runpath=yes
9348    ;;
9349  freebsd3.[01]* | freebsdelf3.[01]*)
9350    shlibpath_overrides_runpath=yes
9351    hardcode_into_libs=yes
9352    ;;
9353  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9354  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9355    shlibpath_overrides_runpath=no
9356    hardcode_into_libs=yes
9357    ;;
9358  freebsd*) # from 4.6 on
9359    shlibpath_overrides_runpath=yes
9360    hardcode_into_libs=yes
9361    ;;
9362  esac
9363  ;;
9364
9365gnu*)
9366  version_type=linux
9367  need_lib_prefix=no
9368  need_version=no
9369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9370  soname_spec='${libname}${release}${shared_ext}$major'
9371  shlibpath_var=LD_LIBRARY_PATH
9372  hardcode_into_libs=yes
9373  ;;
9374
9375hpux9* | hpux10* | hpux11*)
9376  # Give a soname corresponding to the major version so that dld.sl refuses to
9377  # link against other versions.
9378  version_type=sunos
9379  need_lib_prefix=no
9380  need_version=no
9381  case $host_cpu in
9382  ia64*)
9383    shrext_cmds='.so'
9384    hardcode_into_libs=yes
9385    dynamic_linker="$host_os dld.so"
9386    shlibpath_var=LD_LIBRARY_PATH
9387    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9388    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389    soname_spec='${libname}${release}${shared_ext}$major'
9390    if test "X$HPUX_IA64_MODE" = X32; then
9391      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9392    else
9393      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9394    fi
9395    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9396    ;;
9397   hppa*64*)
9398     shrext_cmds='.sl'
9399     hardcode_into_libs=yes
9400     dynamic_linker="$host_os dld.sl"
9401     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404     soname_spec='${libname}${release}${shared_ext}$major'
9405     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9406     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9407     ;;
9408   *)
9409    shrext_cmds='.sl'
9410    dynamic_linker="$host_os dld.sl"
9411    shlibpath_var=SHLIB_PATH
9412    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414    soname_spec='${libname}${release}${shared_ext}$major'
9415    ;;
9416  esac
9417  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9418  postinstall_cmds='chmod 555 $lib'
9419  ;;
9420
9421interix3*)
9422  version_type=linux
9423  need_lib_prefix=no
9424  need_version=no
9425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9426  soname_spec='${libname}${release}${shared_ext}$major'
9427  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9428  shlibpath_var=LD_LIBRARY_PATH
9429  shlibpath_overrides_runpath=no
9430  hardcode_into_libs=yes
9431  ;;
9432
9433irix5* | irix6* | nonstopux*)
9434  case $host_os in
9435    nonstopux*) version_type=nonstopux ;;
9436    *)
9437        if test "$lt_cv_prog_gnu_ld" = yes; then
9438                version_type=linux
9439        else
9440                version_type=irix
9441        fi ;;
9442  esac
9443  need_lib_prefix=no
9444  need_version=no
9445  soname_spec='${libname}${release}${shared_ext}$major'
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9447  case $host_os in
9448  irix5* | nonstopux*)
9449    libsuff= shlibsuff=
9450    ;;
9451  *)
9452    case $LD in # libtool.m4 will add one of these switches to LD
9453    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9454      libsuff= shlibsuff= libmagic=32-bit;;
9455    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9456      libsuff=32 shlibsuff=N32 libmagic=N32;;
9457    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9458      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9459    *) libsuff= shlibsuff= libmagic=never-match;;
9460    esac
9461    ;;
9462  esac
9463  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9464  shlibpath_overrides_runpath=no
9465  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9466  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9467  hardcode_into_libs=yes
9468  ;;
9469
9470# No shared lib support for Linux oldld, aout, or coff.
9471linux*oldld* | linux*aout* | linux*coff*)
9472  dynamic_linker=no
9473  ;;
9474
9475# This must be Linux ELF.
9476linux*)
9477  version_type=linux
9478  need_lib_prefix=no
9479  need_version=no
9480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481  soname_spec='${libname}${release}${shared_ext}$major'
9482  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9483  shlibpath_var=LD_LIBRARY_PATH
9484  shlibpath_overrides_runpath=no
9485  # This implies no fast_install, which is unacceptable.
9486  # Some rework will be needed to allow for fast_install
9487  # before this can be enabled.
9488  hardcode_into_libs=yes
9489
9490  # Append ld.so.conf contents to the search path
9491  if test -f /etc/ld.so.conf; then
9492    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' ' '`
9493    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9494  fi
9495
9496  # We used to test for /lib/ld.so.1 and disable shared libraries on
9497  # powerpc, because MkLinux only supported shared libraries with the
9498  # GNU dynamic linker.  Since this was broken with cross compilers,
9499  # most powerpc-linux boxes support dynamic linking these days and
9500  # people can always --disable-shared, the test was removed, and we
9501  # assume the GNU/Linux dynamic linker is in use.
9502  dynamic_linker='GNU/Linux ld.so'
9503  ;;
9504
9505knetbsd*-gnu)
9506  version_type=linux
9507  need_lib_prefix=no
9508  need_version=no
9509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9510  soname_spec='${libname}${release}${shared_ext}$major'
9511  shlibpath_var=LD_LIBRARY_PATH
9512  shlibpath_overrides_runpath=no
9513  hardcode_into_libs=yes
9514  dynamic_linker='GNU ld.so'
9515  ;;
9516
9517netbsd*)
9518  version_type=sunos
9519  need_lib_prefix=no
9520  need_version=no
9521  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9523    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9524    dynamic_linker='NetBSD (a.out) ld.so'
9525  else
9526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9527    soname_spec='${libname}${release}${shared_ext}$major'
9528    dynamic_linker='NetBSD ld.elf_so'
9529  fi
9530  shlibpath_var=LD_LIBRARY_PATH
9531  shlibpath_overrides_runpath=yes
9532  hardcode_into_libs=yes
9533  ;;
9534
9535newsos6)
9536  version_type=linux
9537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538  shlibpath_var=LD_LIBRARY_PATH
9539  shlibpath_overrides_runpath=yes
9540  ;;
9541
9542nto-qnx*)
9543  version_type=linux
9544  need_lib_prefix=no
9545  need_version=no
9546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547  soname_spec='${libname}${release}${shared_ext}$major'
9548  shlibpath_var=LD_LIBRARY_PATH
9549  shlibpath_overrides_runpath=yes
9550  ;;
9551
9552openbsd*)
9553  version_type=sunos
9554  sys_lib_dlsearch_path_spec="/usr/lib"
9555  need_lib_prefix=no
9556  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9557  case $host_os in
9558    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9559    *)                         need_version=no  ;;
9560  esac
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9562  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9563  shlibpath_var=LD_LIBRARY_PATH
9564  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565    case $host_os in
9566      openbsd2.[89] | openbsd2.[89].*)
9567        shlibpath_overrides_runpath=no
9568        ;;
9569      *)
9570        shlibpath_overrides_runpath=yes
9571        ;;
9572      esac
9573  else
9574    shlibpath_overrides_runpath=yes
9575  fi
9576  ;;
9577
9578os2*)
9579  libname_spec='$name'
9580  shrext_cmds=".dll"
9581  need_lib_prefix=no
9582  library_names_spec='$libname${shared_ext} $libname.a'
9583  dynamic_linker='OS/2 ld.exe'
9584  shlibpath_var=LIBPATH
9585  ;;
9586
9587osf3* | osf4* | osf5*)
9588  version_type=osf
9589  need_lib_prefix=no
9590  need_version=no
9591  soname_spec='${libname}${release}${shared_ext}$major'
9592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593  shlibpath_var=LD_LIBRARY_PATH
9594  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9595  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9596  ;;
9597
9598solaris*)
9599  version_type=linux
9600  need_lib_prefix=no
9601  need_version=no
9602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603  soname_spec='${libname}${release}${shared_ext}$major'
9604  shlibpath_var=LD_LIBRARY_PATH
9605  shlibpath_overrides_runpath=yes
9606  hardcode_into_libs=yes
9607  # ldd complains unless libraries are executable
9608  postinstall_cmds='chmod +x $lib'
9609  ;;
9610
9611sunos4*)
9612  version_type=sunos
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9614  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  shlibpath_overrides_runpath=yes
9617  if test "$with_gnu_ld" = yes; then
9618    need_lib_prefix=no
9619  fi
9620  need_version=yes
9621  ;;
9622
9623sysv4 | sysv4.3*)
9624  version_type=linux
9625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626  soname_spec='${libname}${release}${shared_ext}$major'
9627  shlibpath_var=LD_LIBRARY_PATH
9628  case $host_vendor in
9629    sni)
9630      shlibpath_overrides_runpath=no
9631      need_lib_prefix=no
9632      export_dynamic_flag_spec='${wl}-Blargedynsym'
9633      runpath_var=LD_RUN_PATH
9634      ;;
9635    siemens)
9636      need_lib_prefix=no
9637      ;;
9638    motorola)
9639      need_lib_prefix=no
9640      need_version=no
9641      shlibpath_overrides_runpath=no
9642      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9643      ;;
9644  esac
9645  ;;
9646
9647sysv4*MP*)
9648  if test -d /usr/nec ;then
9649    version_type=linux
9650    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9651    soname_spec='$libname${shared_ext}.$major'
9652    shlibpath_var=LD_LIBRARY_PATH
9653  fi
9654  ;;
9655
9656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9657  version_type=freebsd-elf
9658  need_lib_prefix=no
9659  need_version=no
9660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9661  soname_spec='${libname}${release}${shared_ext}$major'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  hardcode_into_libs=yes
9664  if test "$with_gnu_ld" = yes; then
9665    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9666    shlibpath_overrides_runpath=no
9667  else
9668    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9669    shlibpath_overrides_runpath=yes
9670    case $host_os in
9671      sco3.2v5*)
9672        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9673        ;;
9674    esac
9675  fi
9676  sys_lib_dlsearch_path_spec='/usr/lib'
9677  ;;
9678
9679uts4*)
9680  version_type=linux
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682  soname_spec='${libname}${release}${shared_ext}$major'
9683  shlibpath_var=LD_LIBRARY_PATH
9684  ;;
9685
9686*)
9687  dynamic_linker=no
9688  ;;
9689esac
9690echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9691echo "${ECHO_T}$dynamic_linker" >&6
9692test "$dynamic_linker" = no && can_build_shared=no
9693
9694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9695if test "$GCC" = yes; then
9696  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9697fi
9698
9699echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9700echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9701hardcode_action=
9702if test -n "$hardcode_libdir_flag_spec" || \
9703   test -n "$runpath_var" || \
9704   test "X$hardcode_automatic" = "Xyes" ; then
9705
9706  # We can hardcode non-existant directories.
9707  if test "$hardcode_direct" != no &&
9708     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9709     # have to relink, otherwise we might link with an installed library
9710     # when we should be linking with a yet-to-be-installed one
9711     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9712     test "$hardcode_minus_L" != no; then
9713    # Linking always hardcodes the temporary library directory.
9714    hardcode_action=relink
9715  else
9716    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9717    hardcode_action=immediate
9718  fi
9719else
9720  # We cannot hardcode anything, or else we can only hardcode existing
9721  # directories.
9722  hardcode_action=unsupported
9723fi
9724echo "$as_me:$LINENO: result: $hardcode_action" >&5
9725echo "${ECHO_T}$hardcode_action" >&6
9726
9727if test "$hardcode_action" = relink; then
9728  # Fast installation is not supported
9729  enable_fast_install=no
9730elif test "$shlibpath_overrides_runpath" = yes ||
9731     test "$enable_shared" = no; then
9732  # Fast installation is not necessary
9733  enable_fast_install=needless
9734fi
9735
9736striplib=
9737old_striplib=
9738echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9739echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9740if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9741  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9742  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9743  echo "$as_me:$LINENO: result: yes" >&5
9744echo "${ECHO_T}yes" >&6
9745else
9746# FIXME - insert some real tests, host_os isn't really good enough
9747  case $host_os in
9748   darwin*)
9749       if test -n "$STRIP" ; then
9750         striplib="$STRIP -x"
9751         echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
9753       else
9754  echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756fi
9757       ;;
9758   *)
9759  echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761    ;;
9762  esac
9763fi
9764
9765if test "x$enable_dlopen" != xyes; then
9766  enable_dlopen=unknown
9767  enable_dlopen_self=unknown
9768  enable_dlopen_self_static=unknown
9769else
9770  lt_cv_dlopen=no
9771  lt_cv_dlopen_libs=
9772
9773  case $host_os in
9774  beos*)
9775    lt_cv_dlopen="load_add_on"
9776    lt_cv_dlopen_libs=
9777    lt_cv_dlopen_self=yes
9778    ;;
9779
9780  mingw* | pw32*)
9781    lt_cv_dlopen="LoadLibrary"
9782    lt_cv_dlopen_libs=
9783   ;;
9784
9785  cygwin*)
9786    lt_cv_dlopen="dlopen"
9787    lt_cv_dlopen_libs=
9788   ;;
9789
9790  darwin*)
9791  # if libdl is installed we need to link against it
9792    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9793echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9794if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9795  echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797  ac_check_lib_save_LIBS=$LIBS
9798LIBS="-ldl  $LIBS"
9799cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h.  */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h.  */
9805
9806/* Override any gcc2 internal prototype to avoid an error.  */
9807#ifdef __cplusplus
9808extern "C"
9809#endif
9810/* We use char because int might match the return type of a gcc2
9811   builtin and then its argument prototype would still apply.  */
9812char dlopen ();
9813int
9814main ()
9815{
9816dlopen ();
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821rm -f conftest.$ac_objext conftest$ac_exeext
9822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823  (eval $ac_link) 2>conftest.er1
9824  ac_status=$?
9825  grep -v '^ *+' conftest.er1 >conftest.err
9826  rm -f conftest.er1
9827  cat conftest.err >&5
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); } &&
9830         { ac_try='test -z "$ac_c_werror_flag"
9831                         || test ! -s conftest.err'
9832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833  (eval $ac_try) 2>&5
9834  ac_status=$?
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); }; } &&
9837         { ac_try='test -s conftest$ac_exeext'
9838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839  (eval $ac_try) 2>&5
9840  ac_status=$?
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }; }; then
9843  ac_cv_lib_dl_dlopen=yes
9844else
9845  echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848ac_cv_lib_dl_dlopen=no
9849fi
9850rm -f conftest.err conftest.$ac_objext \
9851      conftest$ac_exeext conftest.$ac_ext
9852LIBS=$ac_check_lib_save_LIBS
9853fi
9854echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9855echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9856if test $ac_cv_lib_dl_dlopen = yes; then
9857  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9858else
9859
9860    lt_cv_dlopen="dyld"
9861    lt_cv_dlopen_libs=
9862    lt_cv_dlopen_self=yes
9863
9864fi
9865
9866   ;;
9867
9868  *)
9869    echo "$as_me:$LINENO: checking for shl_load" >&5
9870echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9871if test "${ac_cv_func_shl_load+set}" = set; then
9872  echo $ECHO_N "(cached) $ECHO_C" >&6
9873else
9874  cat >conftest.$ac_ext <<_ACEOF
9875/* confdefs.h.  */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h.  */
9880/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9882#define shl_load innocuous_shl_load
9883
9884/* System header to define __stub macros and hopefully few prototypes,
9885    which can conflict with char shl_load (); below.
9886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9887    <limits.h> exists even on freestanding compilers.  */
9888
9889#ifdef __STDC__
9890# include <limits.h>
9891#else
9892# include <assert.h>
9893#endif
9894
9895#undef shl_load
9896
9897/* Override any gcc2 internal prototype to avoid an error.  */
9898#ifdef __cplusplus
9899extern "C"
9900{
9901#endif
9902/* We use char because int might match the return type of a gcc2
9903   builtin and then its argument prototype would still apply.  */
9904char shl_load ();
9905/* The GNU C library defines this for functions which it implements
9906    to always fail with ENOSYS.  Some functions are actually named
9907    something starting with __ and the normal name is an alias.  */
9908#if defined (__stub_shl_load) || defined (__stub___shl_load)
9909choke me
9910#else
9911char (*f) () = shl_load;
9912#endif
9913#ifdef __cplusplus
9914}
9915#endif
9916
9917int
9918main ()
9919{
9920return f != shl_load;
9921  ;
9922  return 0;
9923}
9924_ACEOF
9925rm -f conftest.$ac_objext conftest$ac_exeext
9926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927  (eval $ac_link) 2>conftest.er1
9928  ac_status=$?
9929  grep -v '^ *+' conftest.er1 >conftest.err
9930  rm -f conftest.er1
9931  cat conftest.err >&5
9932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933  (exit $ac_status); } &&
9934         { ac_try='test -z "$ac_c_werror_flag"
9935                         || test ! -s conftest.err'
9936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937  (eval $ac_try) 2>&5
9938  ac_status=$?
9939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940  (exit $ac_status); }; } &&
9941         { ac_try='test -s conftest$ac_exeext'
9942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943  (eval $ac_try) 2>&5
9944  ac_status=$?
9945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946  (exit $ac_status); }; }; then
9947  ac_cv_func_shl_load=yes
9948else
9949  echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
9952ac_cv_func_shl_load=no
9953fi
9954rm -f conftest.err conftest.$ac_objext \
9955      conftest$ac_exeext conftest.$ac_ext
9956fi
9957echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9958echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9959if test $ac_cv_func_shl_load = yes; then
9960  lt_cv_dlopen="shl_load"
9961else
9962  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9963echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9964if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9965  echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967  ac_check_lib_save_LIBS=$LIBS
9968LIBS="-ldld  $LIBS"
9969cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h.  */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h.  */
9975
9976/* Override any gcc2 internal prototype to avoid an error.  */
9977#ifdef __cplusplus
9978extern "C"
9979#endif
9980/* We use char because int might match the return type of a gcc2
9981   builtin and then its argument prototype would still apply.  */
9982char shl_load ();
9983int
9984main ()
9985{
9986shl_load ();
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991rm -f conftest.$ac_objext conftest$ac_exeext
9992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993  (eval $ac_link) 2>conftest.er1
9994  ac_status=$?
9995  grep -v '^ *+' conftest.er1 >conftest.err
9996  rm -f conftest.er1
9997  cat conftest.err >&5
9998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999  (exit $ac_status); } &&
10000         { ac_try='test -z "$ac_c_werror_flag"
10001                         || test ! -s conftest.err'
10002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003  (eval $ac_try) 2>&5
10004  ac_status=$?
10005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); }; } &&
10007         { ac_try='test -s conftest$ac_exeext'
10008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009  (eval $ac_try) 2>&5
10010  ac_status=$?
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); }; }; then
10013  ac_cv_lib_dld_shl_load=yes
10014else
10015  echo "$as_me: failed program was:" >&5
10016sed 's/^/| /' conftest.$ac_ext >&5
10017
10018ac_cv_lib_dld_shl_load=no
10019fi
10020rm -f conftest.err conftest.$ac_objext \
10021      conftest$ac_exeext conftest.$ac_ext
10022LIBS=$ac_check_lib_save_LIBS
10023fi
10024echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10025echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10026if test $ac_cv_lib_dld_shl_load = yes; then
10027  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10028else
10029  echo "$as_me:$LINENO: checking for dlopen" >&5
10030echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10031if test "${ac_cv_func_dlopen+set}" = set; then
10032  echo $ECHO_N "(cached) $ECHO_C" >&6
10033else
10034  cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h.  */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h.  */
10040/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10042#define dlopen innocuous_dlopen
10043
10044/* System header to define __stub macros and hopefully few prototypes,
10045    which can conflict with char dlopen (); below.
10046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10047    <limits.h> exists even on freestanding compilers.  */
10048
10049#ifdef __STDC__
10050# include <limits.h>
10051#else
10052# include <assert.h>
10053#endif
10054
10055#undef dlopen
10056
10057/* Override any gcc2 internal prototype to avoid an error.  */
10058#ifdef __cplusplus
10059extern "C"
10060{
10061#endif
10062/* We use char because int might match the return type of a gcc2
10063   builtin and then its argument prototype would still apply.  */
10064char dlopen ();
10065/* The GNU C library defines this for functions which it implements
10066    to always fail with ENOSYS.  Some functions are actually named
10067    something starting with __ and the normal name is an alias.  */
10068#if defined (__stub_dlopen) || defined (__stub___dlopen)
10069choke me
10070#else
10071char (*f) () = dlopen;
10072#endif
10073#ifdef __cplusplus
10074}
10075#endif
10076
10077int
10078main ()
10079{
10080return f != dlopen;
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
10086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10087  (eval $ac_link) 2>conftest.er1
10088  ac_status=$?
10089  grep -v '^ *+' conftest.er1 >conftest.err
10090  rm -f conftest.er1
10091  cat conftest.err >&5
10092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); } &&
10094         { ac_try='test -z "$ac_c_werror_flag"
10095                         || test ! -s conftest.err'
10096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097  (eval $ac_try) 2>&5
10098  ac_status=$?
10099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100  (exit $ac_status); }; } &&
10101         { ac_try='test -s conftest$ac_exeext'
10102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103  (eval $ac_try) 2>&5
10104  ac_status=$?
10105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106  (exit $ac_status); }; }; then
10107  ac_cv_func_dlopen=yes
10108else
10109  echo "$as_me: failed program was:" >&5
10110sed 's/^/| /' conftest.$ac_ext >&5
10111
10112ac_cv_func_dlopen=no
10113fi
10114rm -f conftest.err conftest.$ac_objext \
10115      conftest$ac_exeext conftest.$ac_ext
10116fi
10117echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10118echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10119if test $ac_cv_func_dlopen = yes; then
10120  lt_cv_dlopen="dlopen"
10121else
10122  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10123echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10124if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10125  echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127  ac_check_lib_save_LIBS=$LIBS
10128LIBS="-ldl  $LIBS"
10129cat >conftest.$ac_ext <<_ACEOF
10130/* confdefs.h.  */
10131_ACEOF
10132cat confdefs.h >>conftest.$ac_ext
10133cat >>conftest.$ac_ext <<_ACEOF
10134/* end confdefs.h.  */
10135
10136/* Override any gcc2 internal prototype to avoid an error.  */
10137#ifdef __cplusplus
10138extern "C"
10139#endif
10140/* We use char because int might match the return type of a gcc2
10141   builtin and then its argument prototype would still apply.  */
10142char dlopen ();
10143int
10144main ()
10145{
10146dlopen ();
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151rm -f conftest.$ac_objext conftest$ac_exeext
10152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153  (eval $ac_link) 2>conftest.er1
10154  ac_status=$?
10155  grep -v '^ *+' conftest.er1 >conftest.err
10156  rm -f conftest.er1
10157  cat conftest.err >&5
10158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159  (exit $ac_status); } &&
10160         { ac_try='test -z "$ac_c_werror_flag"
10161                         || test ! -s conftest.err'
10162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163  (eval $ac_try) 2>&5
10164  ac_status=$?
10165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166  (exit $ac_status); }; } &&
10167         { ac_try='test -s conftest$ac_exeext'
10168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169  (eval $ac_try) 2>&5
10170  ac_status=$?
10171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172  (exit $ac_status); }; }; then
10173  ac_cv_lib_dl_dlopen=yes
10174else
10175  echo "$as_me: failed program was:" >&5
10176sed 's/^/| /' conftest.$ac_ext >&5
10177
10178ac_cv_lib_dl_dlopen=no
10179fi
10180rm -f conftest.err conftest.$ac_objext \
10181      conftest$ac_exeext conftest.$ac_ext
10182LIBS=$ac_check_lib_save_LIBS
10183fi
10184echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10185echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10186if test $ac_cv_lib_dl_dlopen = yes; then
10187  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10188else
10189  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10190echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10191if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10192  echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194  ac_check_lib_save_LIBS=$LIBS
10195LIBS="-lsvld  $LIBS"
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h.  */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h.  */
10202
10203/* Override any gcc2 internal prototype to avoid an error.  */
10204#ifdef __cplusplus
10205extern "C"
10206#endif
10207/* We use char because int might match the return type of a gcc2
10208   builtin and then its argument prototype would still apply.  */
10209char dlopen ();
10210int
10211main ()
10212{
10213dlopen ();
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218rm -f conftest.$ac_objext conftest$ac_exeext
10219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10220  (eval $ac_link) 2>conftest.er1
10221  ac_status=$?
10222  grep -v '^ *+' conftest.er1 >conftest.err
10223  rm -f conftest.er1
10224  cat conftest.err >&5
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); } &&
10227         { ac_try='test -z "$ac_c_werror_flag"
10228                         || test ! -s conftest.err'
10229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230  (eval $ac_try) 2>&5
10231  ac_status=$?
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); }; } &&
10234         { ac_try='test -s conftest$ac_exeext'
10235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236  (eval $ac_try) 2>&5
10237  ac_status=$?
10238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239  (exit $ac_status); }; }; then
10240  ac_cv_lib_svld_dlopen=yes
10241else
10242  echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245ac_cv_lib_svld_dlopen=no
10246fi
10247rm -f conftest.err conftest.$ac_objext \
10248      conftest$ac_exeext conftest.$ac_ext
10249LIBS=$ac_check_lib_save_LIBS
10250fi
10251echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10252echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10253if test $ac_cv_lib_svld_dlopen = yes; then
10254  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10255else
10256  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10257echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10258if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10259  echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261  ac_check_lib_save_LIBS=$LIBS
10262LIBS="-ldld  $LIBS"
10263cat >conftest.$ac_ext <<_ACEOF
10264/* confdefs.h.  */
10265_ACEOF
10266cat confdefs.h >>conftest.$ac_ext
10267cat >>conftest.$ac_ext <<_ACEOF
10268/* end confdefs.h.  */
10269
10270/* Override any gcc2 internal prototype to avoid an error.  */
10271#ifdef __cplusplus
10272extern "C"
10273#endif
10274/* We use char because int might match the return type of a gcc2
10275   builtin and then its argument prototype would still apply.  */
10276char dld_link ();
10277int
10278main ()
10279{
10280dld_link ();
10281  ;
10282  return 0;
10283}
10284_ACEOF
10285rm -f conftest.$ac_objext conftest$ac_exeext
10286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287  (eval $ac_link) 2>conftest.er1
10288  ac_status=$?
10289  grep -v '^ *+' conftest.er1 >conftest.err
10290  rm -f conftest.er1
10291  cat conftest.err >&5
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); } &&
10294         { ac_try='test -z "$ac_c_werror_flag"
10295                         || test ! -s conftest.err'
10296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297  (eval $ac_try) 2>&5
10298  ac_status=$?
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); }; } &&
10301         { ac_try='test -s conftest$ac_exeext'
10302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303  (eval $ac_try) 2>&5
10304  ac_status=$?
10305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306  (exit $ac_status); }; }; then
10307  ac_cv_lib_dld_dld_link=yes
10308else
10309  echo "$as_me: failed program was:" >&5
10310sed 's/^/| /' conftest.$ac_ext >&5
10311
10312ac_cv_lib_dld_dld_link=no
10313fi
10314rm -f conftest.err conftest.$ac_objext \
10315      conftest$ac_exeext conftest.$ac_ext
10316LIBS=$ac_check_lib_save_LIBS
10317fi
10318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10319echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10320if test $ac_cv_lib_dld_dld_link = yes; then
10321  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10322fi
10323
10324
10325fi
10326
10327
10328fi
10329
10330
10331fi
10332
10333
10334fi
10335
10336
10337fi
10338
10339    ;;
10340  esac
10341
10342  if test "x$lt_cv_dlopen" != xno; then
10343    enable_dlopen=yes
10344  else
10345    enable_dlopen=no
10346  fi
10347
10348  case $lt_cv_dlopen in
10349  dlopen)
10350    save_CPPFLAGS="$CPPFLAGS"
10351    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10352
10353    save_LDFLAGS="$LDFLAGS"
10354    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10355
10356    save_LIBS="$LIBS"
10357    LIBS="$lt_cv_dlopen_libs $LIBS"
10358
10359    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10360echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10361if test "${lt_cv_dlopen_self+set}" = set; then
10362  echo $ECHO_N "(cached) $ECHO_C" >&6
10363else
10364          if test "$cross_compiling" = yes; then :
10365  lt_cv_dlopen_self=cross
10366else
10367  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10368  lt_status=$lt_dlunknown
10369  cat > conftest.$ac_ext <<EOF
10370#line 10370 "configure"
10371#include "confdefs.h"
10372
10373#if HAVE_DLFCN_H
10374#include <dlfcn.h>
10375#endif
10376
10377#include <stdio.h>
10378
10379#ifdef RTLD_GLOBAL
10380#  define LT_DLGLOBAL           RTLD_GLOBAL
10381#else
10382#  ifdef DL_GLOBAL
10383#    define LT_DLGLOBAL         DL_GLOBAL
10384#  else
10385#    define LT_DLGLOBAL         0
10386#  endif
10387#endif
10388
10389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10390   find out it does not work in some platform. */
10391#ifndef LT_DLLAZY_OR_NOW
10392#  ifdef RTLD_LAZY
10393#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10394#  else
10395#    ifdef DL_LAZY
10396#      define LT_DLLAZY_OR_NOW          DL_LAZY
10397#    else
10398#      ifdef RTLD_NOW
10399#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10400#      else
10401#        ifdef DL_NOW
10402#          define LT_DLLAZY_OR_NOW      DL_NOW
10403#        else
10404#          define LT_DLLAZY_OR_NOW      0
10405#        endif
10406#      endif
10407#    endif
10408#  endif
10409#endif
10410
10411#ifdef __cplusplus
10412extern "C" void exit (int);
10413#endif
10414
10415void fnord() { int i=42;}
10416int main ()
10417{
10418  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10419  int status = $lt_dlunknown;
10420
10421  if (self)
10422    {
10423      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10424      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10425      /* dlclose (self); */
10426    }
10427  else
10428    puts (dlerror ());
10429
10430    exit (status);
10431}
10432EOF
10433  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434  (eval $ac_link) 2>&5
10435  ac_status=$?
10436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10438    (./conftest; exit; ) >&5 2>/dev/null
10439    lt_status=$?
10440    case x$lt_status in
10441      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10442      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10443      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10444    esac
10445  else :
10446    # compilation failed
10447    lt_cv_dlopen_self=no
10448  fi
10449fi
10450rm -fr conftest*
10451
10452
10453fi
10454echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10455echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10456
10457    if test "x$lt_cv_dlopen_self" = xyes; then
10458      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10459      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10460echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10461if test "${lt_cv_dlopen_self_static+set}" = set; then
10462  echo $ECHO_N "(cached) $ECHO_C" >&6
10463else
10464          if test "$cross_compiling" = yes; then :
10465  lt_cv_dlopen_self_static=cross
10466else
10467  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10468  lt_status=$lt_dlunknown
10469  cat > conftest.$ac_ext <<EOF
10470#line 10470 "configure"
10471#include "confdefs.h"
10472
10473#if HAVE_DLFCN_H
10474#include <dlfcn.h>
10475#endif
10476
10477#include <stdio.h>
10478
10479#ifdef RTLD_GLOBAL
10480#  define LT_DLGLOBAL           RTLD_GLOBAL
10481#else
10482#  ifdef DL_GLOBAL
10483#    define LT_DLGLOBAL         DL_GLOBAL
10484#  else
10485#    define LT_DLGLOBAL         0
10486#  endif
10487#endif
10488
10489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10490   find out it does not work in some platform. */
10491#ifndef LT_DLLAZY_OR_NOW
10492#  ifdef RTLD_LAZY
10493#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10494#  else
10495#    ifdef DL_LAZY
10496#      define LT_DLLAZY_OR_NOW          DL_LAZY
10497#    else
10498#      ifdef RTLD_NOW
10499#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10500#      else
10501#        ifdef DL_NOW
10502#          define LT_DLLAZY_OR_NOW      DL_NOW
10503#        else
10504#          define LT_DLLAZY_OR_NOW      0
10505#        endif
10506#      endif
10507#    endif
10508#  endif
10509#endif
10510
10511#ifdef __cplusplus
10512extern "C" void exit (int);
10513#endif
10514
10515void fnord() { int i=42;}
10516int main ()
10517{
10518  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10519  int status = $lt_dlunknown;
10520
10521  if (self)
10522    {
10523      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10524      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10525      /* dlclose (self); */
10526    }
10527  else
10528    puts (dlerror ());
10529
10530    exit (status);
10531}
10532EOF
10533  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534  (eval $ac_link) 2>&5
10535  ac_status=$?
10536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10538    (./conftest; exit; ) >&5 2>/dev/null
10539    lt_status=$?
10540    case x$lt_status in
10541      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10542      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10543      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10544    esac
10545  else :
10546    # compilation failed
10547    lt_cv_dlopen_self_static=no
10548  fi
10549fi
10550rm -fr conftest*
10551
10552
10553fi
10554echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10555echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10556    fi
10557
10558    CPPFLAGS="$save_CPPFLAGS"
10559    LDFLAGS="$save_LDFLAGS"
10560    LIBS="$save_LIBS"
10561    ;;
10562  esac
10563
10564  case $lt_cv_dlopen_self in
10565  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10566  *) enable_dlopen_self=unknown ;;
10567  esac
10568
10569  case $lt_cv_dlopen_self_static in
10570  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10571  *) enable_dlopen_self_static=unknown ;;
10572  esac
10573fi
10574
10575
10576# Report which library types will actually be built
10577echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10578echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10579echo "$as_me:$LINENO: result: $can_build_shared" >&5
10580echo "${ECHO_T}$can_build_shared" >&6
10581
10582echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10583echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10584test "$can_build_shared" = "no" && enable_shared=no
10585
10586# On AIX, shared libraries and static libraries use the same namespace, and
10587# are all built from PIC.
10588case $host_os in
10589aix3*)
10590  test "$enable_shared" = yes && enable_static=no
10591  if test -n "$RANLIB"; then
10592    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10593    postinstall_cmds='$RANLIB $lib'
10594  fi
10595  ;;
10596
10597aix4* | aix5*)
10598  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10599    test "$enable_shared" = yes && enable_static=no
10600  fi
10601    ;;
10602esac
10603echo "$as_me:$LINENO: result: $enable_shared" >&5
10604echo "${ECHO_T}$enable_shared" >&6
10605
10606echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10607echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10608# Make sure either enable_shared or enable_static is yes.
10609test "$enable_shared" = yes || enable_static=yes
10610echo "$as_me:$LINENO: result: $enable_static" >&5
10611echo "${ECHO_T}$enable_static" >&6
10612
10613# The else clause should only fire when bootstrapping the
10614# libtool distribution, otherwise you forgot to ship ltmain.sh
10615# with your package, and you will get complaints that there are
10616# no rules to generate ltmain.sh.
10617if test -f "$ltmain"; then
10618  # See if we are running on zsh, and set the options which allow our commands through
10619  # without removal of \ escapes.
10620  if test -n "${ZSH_VERSION+set}" ; then
10621    setopt NO_GLOB_SUBST
10622  fi
10623  # Now quote all the things that may contain metacharacters while being
10624  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10625  # variables and quote the copies for generation of the libtool script.
10626  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10627    SED SHELL STRIP \
10628    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10629    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10630    deplibs_check_method reload_flag reload_cmds need_locks \
10631    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10632    lt_cv_sys_global_symbol_to_c_name_address \
10633    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10634    old_postinstall_cmds old_postuninstall_cmds \
10635    compiler \
10636    CC \
10637    LD \
10638    lt_prog_compiler_wl \
10639    lt_prog_compiler_pic \
10640    lt_prog_compiler_static \
10641    lt_prog_compiler_no_builtin_flag \
10642    export_dynamic_flag_spec \
10643    thread_safe_flag_spec \
10644    whole_archive_flag_spec \
10645    enable_shared_with_static_runtimes \
10646    old_archive_cmds \
10647    old_archive_from_new_cmds \
10648    predep_objects \
10649    postdep_objects \
10650    predeps \
10651    postdeps \
10652    compiler_lib_search_path \
10653    archive_cmds \
10654    archive_expsym_cmds \
10655    postinstall_cmds \
10656    postuninstall_cmds \
10657    old_archive_from_expsyms_cmds \
10658    allow_undefined_flag \
10659    no_undefined_flag \
10660    export_symbols_cmds \
10661    hardcode_libdir_flag_spec \
10662    hardcode_libdir_flag_spec_ld \
10663    hardcode_libdir_separator \
10664    hardcode_automatic \
10665    module_cmds \
10666    module_expsym_cmds \
10667    lt_cv_prog_compiler_c_o \
10668    exclude_expsyms \
10669    include_expsyms; do
10670
10671    case $var in
10672    old_archive_cmds | \
10673    old_archive_from_new_cmds | \
10674    archive_cmds | \
10675    archive_expsym_cmds | \
10676    module_cmds | \
10677    module_expsym_cmds | \
10678    old_archive_from_expsyms_cmds | \
10679    export_symbols_cmds | \
10680    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10681    postinstall_cmds | postuninstall_cmds | \
10682    old_postinstall_cmds | old_postuninstall_cmds | \
10683    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10684      # Double-quote double-evaled strings.
10685      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10686      ;;
10687    *)
10688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10689      ;;
10690    esac
10691  done
10692
10693  case $lt_echo in
10694  *'\$0 --fallback-echo"')
10695    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10696    ;;
10697  esac
10698
10699cfgfile="${ofile}T"
10700  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10701  $rm -f "$cfgfile"
10702  { echo "$as_me:$LINENO: creating $ofile" >&5
10703echo "$as_me: creating $ofile" >&6;}
10704
10705  cat <<__EOF__ >> "$cfgfile"
10706#! $SHELL
10707
10708# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10709# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10710# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10711#
10712# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10713# Free Software Foundation, Inc.
10714#
10715# This file is part of GNU Libtool:
10716# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10717#
10718# This program is free software; you can redistribute it and/or modify
10719# it under the terms of the GNU General Public License as published by
10720# the Free Software Foundation; either version 2 of the License, or
10721# (at your option) any later version.
10722#
10723# This program is distributed in the hope that it will be useful, but
10724# WITHOUT ANY WARRANTY; without even the implied warranty of
10725# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10726# General Public License for more details.
10727#
10728# You should have received a copy of the GNU General Public License
10729# along with this program; if not, write to the Free Software
10730# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10731#
10732# As a special exception to the GNU General Public License, if you
10733# distribute this file as part of a program that contains a
10734# configuration script generated by Autoconf, you may include it under
10735# the same distribution terms that you use for the rest of that program.
10736
10737# A sed program that does not truncate output.
10738SED=$lt_SED
10739
10740# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10741Xsed="$SED -e 1s/^X//"
10742
10743# The HP-UX ksh and POSIX shell print the target directory to stdout
10744# if CDPATH is set.
10745(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10746
10747# The names of the tagged configurations supported by this script.
10748available_tags=
10749
10750# ### BEGIN LIBTOOL CONFIG
10751
10752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10753
10754# Shell to use when invoking shell scripts.
10755SHELL=$lt_SHELL
10756
10757# Whether or not to build shared libraries.
10758build_libtool_libs=$enable_shared
10759
10760# Whether or not to build static libraries.
10761build_old_li