source: ThirdParty/Metis/stable/1.2/configure @ 3025

Last change on this file since 3025 was 3025, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty/Metis?/stable/1.2

  • Property svn:executable set to *
File size: 708.8 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.2.
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.2'
433PACKAGE_STRING='ThirdPartyMetis 1.2'
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 LT_LDFLAGS METISDIR 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.2 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.2:";;
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
1079Optional Packages:
1080  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082  --with-metis-verbosity specify the debug verbosity level for project Metis
1083  --with-metis-checklevel specify the sanity check level for project Metis
1084  --with-coin-instdir     prefix of installation directory for precompiled
1085                          COIN packages
1086  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1087  --with-pic              try to use only PIC/non-PIC objects [default=use
1088                          both]
1089  --with-tags[=TAGS]
1090                          include additional configurations [automatic]
1091
1092Some influential environment variables:
1093  CDEFS       Additional -D flags to be used when compiling C code.
1094  ADD_CFLAGS  Additional C compiler options
1095  DBG_CFLAGS  Debug C compiler options
1096  OPT_CFLAGS  Optimize C compiler options
1097  CC          C compiler command
1098  CFLAGS      C compiler flags
1099  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1100              nonstandard directory <lib dir>
1101  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102              headers in a nonstandard directory <include dir>
1103  MPICC       C MPI Compiler
1104  PKG_CONFIG  path to pkg-config utility
1105  CPP         C preprocessor
1106  CXX         C++ compiler command
1107  CXXFLAGS    C++ compiler flags
1108  CXXCPP      C++ preprocessor
1109  F77         Fortran 77 compiler command
1110  FFLAGS      Fortran 77 compiler flags
1111
1112Use these variables to override the choices made by `configure' or to help
1113it to find libraries and programs with nonstandard names/locations.
1114
1115Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1116_ACEOF
1117fi
1118
1119if test "$ac_init_help" = "recursive"; then
1120  # If there are subdirs, report their specific --help.
1121  ac_popdir=`pwd`
1122  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1123    test -d $ac_dir || continue
1124    ac_builddir=.
1125
1126if test "$ac_dir" != .; then
1127  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1128  # A "../" for each directory in $ac_dir_suffix.
1129  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130else
1131  ac_dir_suffix= ac_top_builddir=
1132fi
1133
1134case $srcdir in
1135  .)  # No --srcdir option.  We are building in place.
1136    ac_srcdir=.
1137    if test -z "$ac_top_builddir"; then
1138       ac_top_srcdir=.
1139    else
1140       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141    fi ;;
1142  [\\/]* | ?:[\\/]* )  # Absolute path.
1143    ac_srcdir=$srcdir$ac_dir_suffix;
1144    ac_top_srcdir=$srcdir ;;
1145  *) # Relative path.
1146    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1147    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148esac
1149
1150# Do not use `cd foo && pwd` to compute absolute paths, because
1151# the directories may not exist.
1152case `pwd` in
1153.) ac_abs_builddir="$ac_dir";;
1154*)
1155  case "$ac_dir" in
1156  .) ac_abs_builddir=`pwd`;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1158  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159  esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_builddir=${ac_top_builddir}.;;
1163*)
1164  case ${ac_top_builddir}. in
1165  .) ac_abs_top_builddir=$ac_abs_builddir;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1167  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_srcdir=$ac_srcdir;;
1172*)
1173  case $ac_srcdir in
1174  .) ac_abs_srcdir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1176  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_top_srcdir=$ac_top_srcdir;;
1181*)
1182  case $ac_top_srcdir in
1183  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1185  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186  esac;;
1187esac
1188
1189    cd $ac_dir
1190    # Check for guested configure; otherwise get Cygnus style configure.
1191    if test -f $ac_srcdir/configure.gnu; then
1192      echo
1193      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1194    elif test -f $ac_srcdir/configure; then
1195      echo
1196      $SHELL $ac_srcdir/configure  --help=recursive
1197    elif test -f $ac_srcdir/configure.ac ||
1198           test -f $ac_srcdir/configure.in; then
1199      echo
1200      $ac_configure --help
1201    else
1202      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203    fi
1204    cd $ac_popdir
1205  done
1206fi
1207
1208test -n "$ac_init_help" && exit 0
1209if $ac_init_version; then
1210  cat <<\_ACEOF
1211ThirdPartyMetis configure 1.2
1212generated by GNU Autoconf 2.59
1213
1214Copyright (C) 2003 Free Software Foundation, Inc.
1215This configure script is free software; the Free Software Foundation
1216gives unlimited permission to copy, distribute and modify it.
1217
1218
1219Copyright 2009 International Business Machines and others.
1220All Rights Reserved.
1221This file is part of the open source package Coin which is distributed
1222under the Eclipse Public License.
1223_ACEOF
1224  exit 0
1225fi
1226exec 5>config.log
1227cat >&5 <<_ACEOF
1228This file contains any messages produced by compilers while
1229running configure, to aid debugging if configure makes a mistake.
1230
1231It was created by ThirdPartyMetis $as_me 1.2, which was
1232generated by GNU Autoconf 2.59.  Invocation command line was
1233
1234  $ $0 $@
1235
1236_ACEOF
1237{
1238cat <<_ASUNAME
1239## --------- ##
1240## Platform. ##
1241## --------- ##
1242
1243hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248
1249/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1251
1252/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1253/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1254/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1256/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1257/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1258/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1259
1260_ASUNAME
1261
1262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263for as_dir in $PATH
1264do
1265  IFS=$as_save_IFS
1266  test -z "$as_dir" && as_dir=.
1267  echo "PATH: $as_dir"
1268done
1269
1270} >&5
1271
1272cat >&5 <<_ACEOF
1273
1274
1275## ----------- ##
1276## Core tests. ##
1277## ----------- ##
1278
1279_ACEOF
1280
1281
1282# Keep a trace of the command line.
1283# Strip out --no-create and --no-recursion so they do not pile up.
1284# Strip out --silent because we don't want to record it for future runs.
1285# Also quote any args containing shell meta-characters.
1286# Make two passes to allow for proper duplicate-argument suppression.
1287ac_configure_args=
1288ac_configure_args0=
1289ac_configure_args1=
1290ac_sep=
1291ac_must_keep_next=false
1292for ac_pass in 1 2
1293do
1294  for ac_arg
1295  do
1296    case $ac_arg in
1297    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299    | -silent | --silent | --silen | --sile | --sil)
1300      continue ;;
1301    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303    esac
1304    case $ac_pass in
1305    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306    2)
1307      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308      if test $ac_must_keep_next = true; then
1309        ac_must_keep_next=false # Got value, back to normal.
1310      else
1311        case $ac_arg in
1312          *=* | --config-cache | -C | -disable-* | --disable-* \
1313          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315          | -with-* | --with-* | -without-* | --without-* | --x)
1316            case "$ac_configure_args0 " in
1317              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318            esac
1319            ;;
1320          -* ) ac_must_keep_next=true ;;
1321        esac
1322      fi
1323      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324      # Get rid of the leading space.
1325      ac_sep=" "
1326      ;;
1327    esac
1328  done
1329done
1330$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332
1333# When interrupted or exit'd, cleanup temporary files, and complete
1334# config.log.  We remove comments because anyway the quotes in there
1335# would cause problems or look ugly.
1336# WARNING: Be sure not to use single quotes in there, as some shells,
1337# such as our DU 5.0 friend, will then `close' the trap.
1338trap 'exit_status=$?
1339  # Save into config.log some information that might help in debugging.
1340  {
1341    echo
1342
1343    cat <<\_ASBOX
1344## ---------------- ##
1345## Cache variables. ##
1346## ---------------- ##
1347_ASBOX
1348    echo
1349    # The following way of writing the cache mishandles newlines in values,
1350{
1351  (set) 2>&1 |
1352    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353    *ac_space=\ *)
1354      sed -n \
1355        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357      ;;
1358    *)
1359      sed -n \
1360        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361      ;;
1362    esac;
1363}
1364    echo
1365
1366    cat <<\_ASBOX
1367## ----------------- ##
1368## Output variables. ##
1369## ----------------- ##
1370_ASBOX
1371    echo
1372    for ac_var in $ac_subst_vars
1373    do
1374      eval ac_val=$`echo $ac_var`
1375      echo "$ac_var='"'"'$ac_val'"'"'"
1376    done | sort
1377    echo
1378
1379    if test -n "$ac_subst_files"; then
1380      cat <<\_ASBOX
1381## ------------- ##
1382## Output files. ##
1383## ------------- ##
1384_ASBOX
1385      echo
1386      for ac_var in $ac_subst_files
1387      do
1388        eval ac_val=$`echo $ac_var`
1389        echo "$ac_var='"'"'$ac_val'"'"'"
1390      done | sort
1391      echo
1392    fi
1393
1394    if test -s confdefs.h; then
1395      cat <<\_ASBOX
1396## ----------- ##
1397## confdefs.h. ##
1398## ----------- ##
1399_ASBOX
1400      echo
1401      sed "/^$/d" confdefs.h | sort
1402      echo
1403    fi
1404    test "$ac_signal" != 0 &&
1405      echo "$as_me: caught signal $ac_signal"
1406    echo "$as_me: exit $exit_status"
1407  } >&5
1408  rm -f core *.core &&
1409  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410    exit $exit_status
1411     ' 0
1412for ac_signal in 1 2 13 15; do
1413  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414done
1415ac_signal=0
1416
1417# confdefs.h avoids OS command line length limits that DEFS can exceed.
1418rm -rf conftest* confdefs.h
1419# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420echo >confdefs.h
1421
1422# Predefined preprocessor variables.
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_NAME "$PACKAGE_NAME"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_VERSION "$PACKAGE_VERSION"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_STRING "$PACKAGE_STRING"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446_ACEOF
1447
1448
1449# Let the site file select an alternate cache file if it wants to.
1450# Prefer explicitly selected file to automatically selected ones.
1451if test -z "$CONFIG_SITE"; then
1452  if test "x$prefix" != xNONE; then
1453    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454  else
1455    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456  fi
1457fi
1458for ac_site_file in $CONFIG_SITE; do
1459  if test -r "$ac_site_file"; then
1460    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461echo "$as_me: loading site script $ac_site_file" >&6;}
1462    sed 's/^/| /' "$ac_site_file" >&5
1463    . "$ac_site_file"
1464  fi
1465done
1466
1467if test -r "$cache_file"; then
1468  # Some versions of bash will fail to source /dev/null (special
1469  # files actually), so we avoid doing that.
1470  if test -f "$cache_file"; then
1471    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472echo "$as_me: loading cache $cache_file" >&6;}
1473    case $cache_file in
1474      [\\/]* | ?:[\\/]* ) . $cache_file;;
1475      *)                      . ./$cache_file;;
1476    esac
1477  fi
1478else
1479  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480echo "$as_me: creating cache $cache_file" >&6;}
1481  >$cache_file
1482fi
1483
1484# Check that the precious variables saved in the cache have kept the same
1485# value.
1486ac_cache_corrupted=false
1487for ac_var in `(set) 2>&1 |
1488               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490  eval ac_new_set=\$ac_env_${ac_var}_set
1491  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492  eval ac_new_val="\$ac_env_${ac_var}_value"
1493  case $ac_old_set,$ac_new_set in
1494    set,)
1495      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497      ac_cache_corrupted=: ;;
1498    ,set)
1499      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501      ac_cache_corrupted=: ;;
1502    ,);;
1503    *)
1504      if test "x$ac_old_val" != "x$ac_new_val"; then
1505        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1506echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1507        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1508echo "$as_me:   former value:  $ac_old_val" >&2;}
1509        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1510echo "$as_me:   current value: $ac_new_val" >&2;}
1511        ac_cache_corrupted=:
1512      fi;;
1513  esac
1514  # Pass precious variables to config.status.
1515  if test "$ac_new_set" = set; then
1516    case $ac_new_val in
1517    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1518      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1519    *) ac_arg=$ac_var=$ac_new_val ;;
1520    esac
1521    case " $ac_configure_args " in
1522      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1523      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1524    esac
1525  fi
1526done
1527if $ac_cache_corrupted; then
1528  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1529echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1530  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1531echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1532   { (exit 1); exit 1; }; }
1533fi
1534
1535ac_ext=c
1536ac_cpp='$CPP $CPPFLAGS'
1537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540
1541
1542
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# List one file in the package so that the configure script can test
1571# whether the package is actually there
1572
1573
1574# Where should everything be installed by default?  Here, we want it
1575# to be installed directly in 'bin', 'lib', 'include' subdirectories
1576# of the directory where configure is run.  The default would be
1577# /usr/local.
1578
1579
1580
1581# As backup, we make sure we don't loose an FLIBS if it has been set
1582# by the user
1583save_FLIBS="$FLIBS"
1584
1585# A useful makefile conditional that is always false
1586
1587
1588if false; then
1589  ALWAYS_FALSE_TRUE=
1590  ALWAYS_FALSE_FALSE='#'
1591else
1592  ALWAYS_FALSE_TRUE='#'
1593  ALWAYS_FALSE_FALSE=
1594fi
1595
1596
1597# We set the following variable so that we know later in AC_COIN_FINALIZE
1598# that we are in a project main directory
1599coin_projectdir=yes
1600
1601# Set the project's version numbers
1602
1603
1604cat >>confdefs.h <<_ACEOF
1605#define METIS_VERSION "$PACKAGE_VERSION"
1606_ACEOF
1607
1608
1609  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1610  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1611  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1612  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1613  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1614  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1615
1616cat >>confdefs.h <<_ACEOF
1617#define METIS_VERSION_MAJOR $coin_majorver
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define METIS_VERSION_MINOR $coin_minorver
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define METIS_VERSION_RELEASE $coin_releasever
1628_ACEOF
1629
1630
1631  # We use the following variable to have a string with the upper case
1632  # version of the project name
1633  COIN_PRJCT=METIS
1634
1635  # Set the project's SVN revision number. The complicated sed expression
1636  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1637  # as a single number.
1638  # Extract the first word of "svnversion", so it can be a program name with args.
1639set dummy svnversion; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_have_svnversion+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  if test -n "$have_svnversion"; then
1646  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  for ac_exec_ext in '' $ac_executable_extensions; do
1654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655    ac_cv_prog_have_svnversion="yes"
1656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657    break 2
1658  fi
1659done
1660done
1661
1662  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1663fi
1664fi
1665have_svnversion=$ac_cv_prog_have_svnversion
1666if test -n "$have_svnversion"; then
1667  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1668echo "${ECHO_T}$have_svnversion" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674  if test "x$have_svnversion" = xyes; then
1675
1676    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1677    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1678      METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1679
1680cat >>confdefs.h <<_ACEOF
1681#define METIS_SVN_REV $METIS_SVN_REV
1682_ACEOF
1683
1684    fi
1685  fi
1686
1687
1688
1689# Capture libtool library version, if given.
1690
1691
1692
1693
1694#############################################################################
1695#                         Standard build tool stuff                         #
1696#############################################################################
1697
1698# Get the system type
1699ac_aux_dir=
1700for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1701  if test -f $ac_dir/install-sh; then
1702    ac_aux_dir=$ac_dir
1703    ac_install_sh="$ac_aux_dir/install-sh -c"
1704    break
1705  elif test -f $ac_dir/install.sh; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/install.sh -c"
1708    break
1709  elif test -f $ac_dir/shtool; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/shtool install -c"
1712    break
1713  fi
1714done
1715if test -z "$ac_aux_dir"; then
1716  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1717echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1718   { (exit 1); exit 1; }; }
1719fi
1720ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1721ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1722ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1723
1724# Make sure we can run config.sub.
1725$ac_config_sub sun4 >/dev/null 2>&1 ||
1726  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730echo "$as_me:$LINENO: checking build system type" >&5
1731echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732if test "${ac_cv_build+set}" = set; then
1733  echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735  ac_cv_build_alias=$build_alias
1736test -z "$ac_cv_build_alias" &&
1737  ac_cv_build_alias=`$ac_config_guess`
1738test -z "$ac_cv_build_alias" &&
1739  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741   { (exit 1); exit 1; }; }
1742ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745   { (exit 1); exit 1; }; }
1746
1747fi
1748echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749echo "${ECHO_T}$ac_cv_build" >&6
1750build=$ac_cv_build
1751build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756
1757#turn off warnings and pedantic mode since they could make trouble on some platforms,
1758#and we couldn't fix them anyway
1759coin_skip_warn_cflags=yes
1760coin_skip_warn_fflags=yes
1761
1762# Check if user wants to produce debugging code
1763
1764echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1765echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1766
1767# Check whether --enable-debug or --disable-debug was given.
1768if test "${enable_debug+set}" = set; then
1769  enableval="$enable_debug"
1770  case "${enableval}" in
1771   yes) coin_debug_compile=true
1772        if test "${enable_shared+set}" = set; then :; else
1773          enable_shared=no
1774        fi
1775        ;;
1776   no)  coin_debug_compile=false
1777        ;;
1778   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1779echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1780   { (exit 1); exit 1; }; }
1781        ;;
1782esac
1783else
1784  coin_debug_compile=false
1785fi;
1786
1787# Check whether --enable-debug-metis or --disable-debug-metis was given.
1788if test "${enable_debug_metis+set}" = set; then
1789  enableval="$enable_debug_metis"
1790  case "${enableval}" in
1791    yes) coin_debug_compile=true
1792         ;;
1793    no)  coin_debug_compile=false
1794         ;;
1795    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1796echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1797   { (exit 1); exit 1; }; }
1798         ;;
1799 esac
1800else
1801  :
1802fi;
1803
1804 # m4_ifvaln([Metis],
1805
1806if test $coin_debug_compile = true; then
1807  echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809else
1810  echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812fi
1813
1814
1815# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1816if test "${with_metis_verbosity+set}" = set; then
1817  withval="$with_metis_verbosity"
1818  if test "$withval" = yes; then
1819                withval=1
1820              fi
1821              coin_metis_verbosity=$withval
1822else
1823  coin_metis_verbosity=0
1824fi;
1825
1826cat >>confdefs.h <<_ACEOF
1827#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1828_ACEOF
1829
1830
1831
1832# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1833if test "${with_metis_checklevel+set}" = set; then
1834  withval="$with_metis_checklevel"
1835  if test "$withval" = yes; then
1836                withval=1
1837              fi
1838              coin_metis_checklevel=$withval
1839else
1840  coin_metis_checklevel=0
1841fi;
1842
1843cat >>confdefs.h <<_ACEOF
1844#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1845_ACEOF
1846
1847
1848 # m4_ifvaln([Metis],
1849
1850
1851
1852# Get the name of the C compiler
1853
1854
1855  # for backward compatibility
1856  # Check whether --enable-doscompile or --disable-doscompile was given.
1857if test "${enable_doscompile+set}" = set; then
1858  enableval="$enable_doscompile"
1859  enable_doscompile=$enableval
1860else
1861  enable_doscompile=no
1862fi;
1863
1864  # Check whether --enable-msvc or --disable-msvc was given.
1865if test "${enable_msvc+set}" = set; then
1866  enableval="$enable_msvc"
1867  enable_msvc=$enableval
1868else
1869  enable_msvc=no
1870     if test "$enable_doscompile" = msvc ; then
1871       enable_msvc=yes
1872     elif test "$enable_doscompile" != no ; then
1873       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1874echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1875   { (exit 1); exit 1; }; }
1876     fi
1877
1878fi;
1879
1880  if test "$enable_msvc" = MD; then
1881    enable_shared=yes
1882    enable_msvc=yes
1883  fi
1884
1885  if test "$enable_msvc" = yes; then
1886    case $build in
1887      *-cygwin* | *-mingw*) ;;
1888      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1889echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1890   { (exit 1); exit 1; }; } ;;
1891    esac
1892  fi
1893
1894
1895 case $build in
1896  *-mingw*)
1897    if test "${LD+set}" = set; then :; else
1898      LD=link
1899    fi
1900    ;;
1901 esac
1902 if test $enable_msvc = yes ; then
1903   if test "x${LD+set}" = xset; then :; else
1904     LD=link
1905   fi
1906 fi
1907
1908
1909
1910
1911ac_ext=c
1912ac_cpp='$CPP $CPPFLAGS'
1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918# For consistency, we set the C compiler to the same value of the C++
1919# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1920if test x"$CXX" != x; then
1921  case "$CXX" in
1922    clang* ) ;;
1923    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1924      if test x"$CC" = x; then
1925        CC="$CXX"
1926        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1927echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1928      fi
1929      ;;
1930  esac
1931fi
1932
1933
1934
1935
1936
1937
1938coin_has_cc=yes
1939
1940save_cflags="$CFLAGS"
1941
1942# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1943# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1944# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1945# compiler. In this case, put cc after gcc.
1946
1947case $build in
1948  *-cygwin* | *-mingw*)
1949             if test "$enable_msvc" = yes ; then
1950               comps="icl cl gcc"
1951             else
1952               comps="gcc icl cl"
1953             fi ;;
1954  *-*-solaris*)
1955             # Extract the first word of "cc", so it can be a program name with args.
1956set dummy cc; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$sol_cc_compiler"; then
1963  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1964else
1965  ac_prog_rejected=no
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974       ac_prog_rejected=yes
1975       continue
1976     fi
1977    ac_cv_prog_sol_cc_compiler="cc"
1978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979    break 2
1980  fi
1981done
1982done
1983
1984if test $ac_prog_rejected = yes; then
1985  # We found a bogon in the path, so make sure we never use it.
1986  set dummy $ac_cv_prog_sol_cc_compiler
1987  shift
1988  if test $# != 0; then
1989    # We chose a different compiler from the bogus one.
1990    # However, it has the same basename, so the bogon will be chosen
1991    # first if we set sol_cc_compiler to just the basename; use the full file name.
1992    shift
1993    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1994  fi
1995fi
1996fi
1997fi
1998sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1999if test -n "$sol_cc_compiler"; then
2000  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2001echo "${ECHO_T}$sol_cc_compiler" >&6
2002else
2003  echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007             if test "$sol_cc_compiler" = "cc" ; then
2008               comps="cc xlc gcc pgcc icc"
2009             else
2010               comps="xlc gcc pgcc icc cc"
2011             fi
2012             ;;
2013  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2014  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2015  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2016esac
2017
2018# We delete the cached value, since the test might not have been
2019# performed with our choice of compilers earlier
2020$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2021# AC_MSG_NOTICE([C compiler candidates: $comps])
2022ac_ext=c
2023ac_cpp='$CPP $CPPFLAGS'
2024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027if test -n "$ac_tool_prefix"; then
2028  for ac_prog in $comps
2029  do
2030    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$CC"; then
2038  ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045  for ac_exec_ext in '' $ac_executable_extensions; do
2046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058  echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061  echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065    test -n "$CC" && break
2066  done
2067fi
2068if test -z "$CC"; then
2069  ac_ct_CC=$CC
2070  for ac_prog in $comps
2071do
2072  # Extract the first word of "$ac_prog", so it can be a program name with args.
2073set dummy $ac_prog; ac_word=$2
2074echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077  echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079  if test -n "$ac_ct_CC"; then
2080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  test -z "$as_dir" && as_dir=.
2087  for ac_exec_ext in '' $ac_executable_extensions; do
2088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089    ac_cv_prog_ac_ct_CC="$ac_prog"
2090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091    break 2
2092  fi
2093done
2094done
2095
2096fi
2097fi
2098ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099if test -n "$ac_ct_CC"; then
2100  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101echo "${ECHO_T}$ac_ct_CC" >&6
2102else
2103  echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
2107  test -n "$ac_ct_CC" && break
2108done
2109
2110  CC=$ac_ct_CC
2111fi
2112
2113
2114test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&5
2116echo "$as_me: error: no acceptable C compiler found in \$PATH
2117See \`config.log' for more details." >&2;}
2118   { (exit 1); exit 1; }; }
2119
2120# Provide some information about the compiler.
2121echo "$as_me:$LINENO:" \
2122     "checking for C compiler version" >&5
2123ac_compiler=`set X $ac_compile; echo $2`
2124{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2125  (eval $ac_compiler --version </dev/null >&5) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2130  (eval $ac_compiler -v </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2135  (eval $ac_compiler -V </dev/null >&5) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }
2139
2140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h.  */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h.  */
2146
2147int
2148main ()
2149{
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155ac_clean_files_save=$ac_clean_files
2156ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157# Try to create an executable without -o first, disregard a.out.
2158# It will help us diagnose broken compilers, and finding out an intuition
2159# of exeext.
2160echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2162ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164  (eval $ac_link_default) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; then
2168  # Find the output, starting from the most likely.  This scheme is
2169# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170# resort.
2171
2172# Be careful to initialize this variable, since it used to be cached.
2173# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174ac_cv_exeext=
2175# b.out is created by i960 compilers.
2176for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177do
2178  test -f "$ac_file" || continue
2179  case $ac_file in
2180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181        ;;
2182    conftest.$ac_ext )
2183        # This is the source file.
2184        ;;
2185    [ab].out )
2186        # We found the default executable, but exeext='' is most
2187        # certainly right.
2188        break;;
2189    *.* )
2190        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191        # FIXME: I believe we export ac_cv_exeext for Libtool,
2192        # but it would be cool to find out if it's true.  Does anybody
2193        # maintain Libtool? --akim.
2194        export ac_cv_exeext
2195        break;;
2196    * )
2197        break;;
2198  esac
2199done
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208   { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6
2214
2215# Check the compiler produces executables we can run.  If not, either
2216# the compiler is broken, or we cross compile.
2217echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222  if { ac_try='./$ac_file'
2223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224  (eval $ac_try) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; }; then
2228    cross_compiling=no
2229  else
2230    if test "$cross_compiling" = maybe; then
2231        cross_compiling=yes
2232    else
2233        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239   { (exit 1); exit 1; }; }
2240    fi
2241  fi
2242fi
2243echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247ac_clean_files=$ac_clean_files_save
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2252echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6
2254
2255echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2258  (eval $ac_link) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; then
2262  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2264# work properly (i.e., refer to `conftest.exe'), while it won't with
2265# `rm'.
2266for ac_file in conftest.exe conftest conftest.*; do
2267  test -f "$ac_file" || continue
2268  case $ac_file in
2269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2270    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271          export ac_cv_exeext
2272          break;;
2273    * ) break;;
2274  esac
2275done
2276else
2277  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&2;}
2281   { (exit 1); exit 1; }; }
2282fi
2283
2284rm -f conftest$ac_cv_exeext
2285echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286echo "${ECHO_T}$ac_cv_exeext" >&6
2287
2288rm -f conftest.$ac_ext
2289EXEEXT=$ac_cv_exeext
2290ac_exeext=$EXEEXT
2291echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2293if test "${ac_cv_objext+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h.  */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h.  */
2302
2303int
2304main ()
2305{
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.o conftest.obj
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; then
2317  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2320    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321       break;;
2322  esac
2323done
2324else
2325  echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336fi
2337echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338echo "${ECHO_T}$ac_cv_objext" >&6
2339OBJEXT=$ac_cv_objext
2340ac_objext=$OBJEXT
2341echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2342echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2343if test "${ac_cv_c_compiler_gnu+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356#ifndef __GNUC__
2357       choke me
2358#endif
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364rm -f conftest.$ac_objext
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366  (eval $ac_compile) 2>conftest.er1
2367  ac_status=$?
2368  grep -v '^ *+' conftest.er1 >conftest.err
2369  rm -f conftest.er1
2370  cat conftest.err >&5
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); } &&
2373         { ac_try='test -z "$ac_c_werror_flag"
2374                         || test ! -s conftest.err'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; } &&
2380         { ac_try='test -s conftest.$ac_objext'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; }; then
2386  ac_compiler_gnu=yes
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391ac_compiler_gnu=no
2392fi
2393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394ac_cv_c_compiler_gnu=$ac_compiler_gnu
2395
2396fi
2397echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2398echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2399GCC=`test $ac_compiler_gnu = yes && echo yes`
2400ac_test_CFLAGS=${CFLAGS+set}
2401ac_save_CFLAGS=$CFLAGS
2402CFLAGS="-g"
2403echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2404echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2405if test "${ac_cv_prog_cc_g+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423rm -f conftest.$ac_objext
2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425  (eval $ac_compile) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } &&
2432         { ac_try='test -z "$ac_c_werror_flag"
2433                         || test ! -s conftest.err'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; } &&
2439         { ac_try='test -s conftest.$ac_objext'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_cv_prog_cc_g=yes
2446else
2447  echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450ac_cv_prog_cc_g=no
2451fi
2452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2455echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2456if test "$ac_test_CFLAGS" = set; then
2457  CFLAGS=$ac_save_CFLAGS
2458elif test $ac_cv_prog_cc_g = yes; then
2459  if test "$GCC" = yes; then
2460    CFLAGS="-g -O2"
2461  else
2462    CFLAGS="-g"
2463  fi
2464else
2465  if test "$GCC" = yes; then
2466    CFLAGS="-O2"
2467  else
2468    CFLAGS=
2469  fi
2470fi
2471echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2472echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2473if test "${ac_cv_prog_cc_stdc+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  ac_cv_prog_cc_stdc=no
2477ac_save_CC=$CC
2478cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484#include <stdarg.h>
2485#include <stdio.h>
2486#include <sys/types.h>
2487#include <sys/stat.h>
2488/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2489struct buf { int x; };
2490FILE * (*rcsopen) (struct buf *, struct stat *, int);
2491static char *e (p, i)
2492     char **p;
2493     int i;
2494{
2495  return p[i];
2496}
2497static char *f (char * (*g) (char **, int), char **p, ...)
2498{
2499  char *s;
2500  va_list v;
2501  va_start (v,p);
2502  s = g (p, va_arg (v,int));
2503  va_end (v);
2504  return s;
2505}
2506
2507/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2508   function prototypes and stuff, but not '\xHH' hex character constants.
2509   These don't provoke an error unfortunately, instead are silently treated
2510   as 'x'.  The following induces an error, until -std1 is added to get
2511   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2512   array size at least.  It's necessary to write '\x00'==0 to get something
2513   that's true only with -std1.  */
2514int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2515
2516int test (int i, double x);
2517struct s1 {int (*f) (int a);};
2518struct s2 {int (*f) (double a);};
2519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2520int argc;
2521char **argv;
2522int
2523main ()
2524{
2525return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2526  ;
2527  return 0;
2528}
2529_ACEOF
2530# Don't try gcc -ansi; that turns off useful extensions and
2531# breaks some systems' header files.
2532# AIX                   -qlanglvl=ansi
2533# Ultrix and OSF/1      -std1
2534# HP-UX 10.20 and later -Ae
2535# HP-UX older versions  -Aa -D_HPUX_SOURCE
2536# SVR4                  -Xc -D__EXTENSIONS__
2537for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2538do
2539  CC="$ac_save_CC $ac_arg"
2540  rm -f conftest.$ac_objext
2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542  (eval $ac_compile) 2>conftest.er1
2543  ac_status=$?
2544  grep -v '^ *+' conftest.er1 >conftest.err
2545  rm -f conftest.er1
2546  cat conftest.err >&5
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); } &&
2549         { ac_try='test -z "$ac_c_werror_flag"
2550                         || test ! -s conftest.err'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; } &&
2556         { ac_try='test -s conftest.$ac_objext'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; }; then
2562  ac_cv_prog_cc_stdc=$ac_arg
2563break
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568fi
2569rm -f conftest.err conftest.$ac_objext
2570done
2571rm -f conftest.$ac_ext conftest.$ac_objext
2572CC=$ac_save_CC
2573
2574fi
2575
2576case "x$ac_cv_prog_cc_stdc" in
2577  x|xno)
2578    echo "$as_me:$LINENO: result: none needed" >&5
2579echo "${ECHO_T}none needed" >&6 ;;
2580  *)
2581    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2582echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2583    CC="$CC $ac_cv_prog_cc_stdc" ;;
2584esac
2585
2586# Some people use a C++ compiler to compile C.  Since we use `exit',
2587# in C++ we need to declare it.  In case someone uses the same compiler
2588# for both compiling C and C++ we need to have the C++ compiler decide
2589# the declaration of exit, since it's the most demanding environment.
2590cat >conftest.$ac_ext <<_ACEOF
2591#ifndef __cplusplus
2592  choke me
2593#endif
2594_ACEOF
2595rm -f conftest.$ac_objext
2596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597  (eval $ac_compile) 2>conftest.er1
2598  ac_status=$?
2599  grep -v '^ *+' conftest.er1 >conftest.err
2600  rm -f conftest.er1
2601  cat conftest.err >&5
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); } &&
2604         { ac_try='test -z "$ac_c_werror_flag"
2605                         || test ! -s conftest.err'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; } &&
2611         { ac_try='test -s conftest.$ac_objext'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; }; then
2617  for ac_declaration in \
2618   '' \
2619   'extern "C" void std::exit (int) throw (); using std::exit;' \
2620   'extern "C" void std::exit (int); using std::exit;' \
2621   'extern "C" void exit (int) throw ();' \
2622   'extern "C" void exit (int);' \
2623   'void exit (int);'
2624do
2625  cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631$ac_declaration
2632#include <stdlib.h>
2633int
2634main ()
2635{
2636exit (42);
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650         { ac_try='test -z "$ac_c_werror_flag"
2651                         || test ! -s conftest.err'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; } &&
2657         { ac_try='test -s conftest.$ac_objext'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; }; then
2663  :
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668continue
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671  cat >conftest.$ac_ext <<_ACEOF
2672/* confdefs.h.  */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h.  */
2677$ac_declaration
2678int
2679main ()
2680{
2681exit (42);
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  break
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713fi
2714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715done
2716rm -f conftest*
2717if test -n "$ac_declaration"; then
2718  echo '#ifdef __cplusplus' >>confdefs.h
2719  echo $ac_declaration      >>confdefs.h
2720  echo '#endif'             >>confdefs.h
2721fi
2722
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735if test -z "$CC" ; then
2736  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2737echo "$as_me: error: Failed to find a C compiler!" >&2;}
2738   { (exit 1); exit 1; }; }
2739fi
2740# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2741case "$CC" in
2742  clang* ) ;;
2743  cl* | */cl* | CL* | */CL* )
2744    if test "$ac_cv_prog_cc_g" = yes ; then
2745      ac_cv_prog_cc_g=no
2746      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2747echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2748    fi ;;
2749  * )
2750    CYGPATH_W=echo
2751    ;;
2752esac
2753CFLAGS="$save_cflags"
2754
2755# add automake conditional so we can recognize cl compiler in makefile
2756coin_cc_is_cl=false
2757case "$CC" in
2758  clang* ) ;;
2759  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2760    coin_cc_is_cl=true
2761    ;;
2762esac
2763
2764
2765if test $coin_cc_is_cl = true; then
2766  COIN_CC_IS_CL_TRUE=
2767  COIN_CC_IS_CL_FALSE='#'
2768else
2769  COIN_CC_IS_CL_TRUE='#'
2770  COIN_CC_IS_CL_FALSE=
2771fi
2772
2773
2774# Check if a project specific CFLAGS variable has been set
2775if test x$COIN_PRJCT != x; then
2776  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2777  if test x$coin_tmp = xset; then
2778    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2779  fi
2780fi
2781
2782if test x"$CFLAGS" = x; then
2783
2784  coin_add_cflags=
2785  coin_opt_cflags=
2786  coin_dbg_cflags=
2787  coin_warn_cflags=
2788
2789  if test "$GCC" = "yes"; then
2790    case "$CC" in
2791      icc* | */icc*)
2792        ;;
2793      *)
2794        coin_opt_cflags="-O3"
2795        coin_add_cflags="-pipe"
2796        coin_dbg_cflags="-g -O0"
2797        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2798        case $build in
2799          *-darwin*)
2800            ;;
2801          *)
2802            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2803            ;;
2804        esac
2805    esac
2806  fi
2807  if test -z "$coin_opt_cflags"; then
2808    case $build in
2809      *-cygwin* | *-mingw*)
2810        case "$CC" in
2811          clang* ) ;;
2812          cl* | */cl* | CL* | */CL*)
2813            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2814              coin_opt_cflags='-MD -O2'
2815              coin_dbg_cflags='-MDd'
2816            else
2817              coin_opt_cflags='-MT -O2'
2818              coin_dbg_cflags='-MTd'
2819            fi
2820            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2821            ;;
2822          icl* | */icl* | ICL* | */ICL*)
2823            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2824              coin_opt_cflags='-MD -Ox'
2825              coin_dbg_cflags='-MDd -debug'
2826            else
2827              coin_opt_cflags='-MT -Ox'
2828              coin_dbg_cflags='-MTd -debug'
2829            fi
2830            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2831            ;;
2832        esac
2833        ;;
2834      *-linux-*)
2835        case "$CC" in
2836          icc* | */icc*)
2837            coin_opt_cflags="-O3 -ip -mp1"
2838            coin_add_cflags=""
2839            coin_dbg_cflags="-g"
2840            # Check if -i_dynamic is necessary (for new glibc library)
2841            CFLAGS=
2842            cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848
2849int
2850main ()
2851{
2852int i=0; i++;
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext conftest$ac_exeext
2858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859  (eval $ac_link) 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } &&
2866         { ac_try='test -z "$ac_c_werror_flag"
2867                         || test ! -s conftest.err'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873         { ac_try='test -s conftest$ac_exeext'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879  :
2880else
2881  echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884coin_add_cflags="-i_dynamic $coin_add_cflags"
2885fi
2886rm -f conftest.err conftest.$ac_objext \
2887      conftest$ac_exeext conftest.$ac_ext
2888            ;;
2889          pgcc* | */pgcc*)
2890            coin_opt_cflags="-fast"
2891            coin_add_cflags="-Kieee -pc 64"
2892            coin_dbg_cflags="-g"
2893            ;;
2894        esac
2895        ;;
2896      *-ibm-*)
2897        case "$CC" in
2898          xlc* | */xlc* | mpxlc* | */mpxlc*)
2899            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2900            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2901            coin_dbg_cflags="-g"
2902          ;;
2903        esac
2904        ;;
2905      *-hp-*)
2906        coin_opt_cflags="-O"
2907        coin_add_cflags="-Ae"
2908        coin_dbg_cflags="-g"
2909        ;;
2910      *-*-solaris*)
2911        coin_opt_cflags="-xO4"
2912        coin_dbg_cflags="-g"
2913        ;;
2914      *-sgi-*)
2915        coin_opt_cflags="-O -OPT:Olimit=0"
2916        coin_dbg_cflags="-g"
2917        ;;
2918    esac
2919  fi
2920
2921  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2922    coin_dbg_cflags="-g"
2923  fi
2924
2925  if test -z "$coin_opt_cflags"; then
2926    # Try if -O option works if nothing else is set
2927    CFLAGS="-O"
2928    cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938int i=0; i++;
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945  (eval $ac_link) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest$ac_exeext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965  coin_opt_cflags="-O"
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970fi
2971rm -f conftest.err conftest.$ac_objext \
2972      conftest$ac_exeext conftest.$ac_ext
2973  fi
2974
2975  # if PM doesn't want the warning messages, take them out
2976  if test x"$coin_skip_warn_cflags" = xyes; then
2977    coin_warn_cflags=
2978  fi
2979
2980  if test x${DBG_CFLAGS+set} != xset; then
2981    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2982  fi
2983  if test x${OPT_CFLAGS+set} != xset; then
2984    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2985  fi
2986
2987  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2988  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2989
2990  if test "$coin_debug_compile" = "true"; then
2991    CFLAGS="$DBG_CFLAGS"
2992  else
2993    CFLAGS="$OPT_CFLAGS"
2994  fi
2995else
2996  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2997  if test x${DBG_CFLAGS+set} != xset; then
2998    DBG_CFLAGS="$CFLAGS"
2999  fi
3000  if test x${OPT_CFLAGS+set} != xset; then
3001    OPT_CFLAGS="$CFLAGS"
3002  fi
3003fi
3004
3005# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3006if test x$COIN_PRJCT != x; then
3007  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3008fi
3009
3010# Try if CFLAGS works
3011save_CFLAGS="$CFLAGS"
3012cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019int
3020main ()
3021{
3022int i=0; i++;
3023  ;
3024  return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext conftest$ac_exeext
3028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029  (eval $ac_link) 2>conftest.er1
3030  ac_status=$?
3031  grep -v '^ *+' conftest.er1 >conftest.err
3032  rm -f conftest.er1
3033  cat conftest.err >&5
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); } &&
3036         { ac_try='test -z "$ac_c_werror_flag"
3037                         || test ! -s conftest.err'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; } &&
3043         { ac_try='test -s conftest$ac_exeext'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; }; then
3049  :
3050else
3051  echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054CFLAGS=
3055fi
3056rm -f conftest.err conftest.$ac_objext \
3057      conftest$ac_exeext conftest.$ac_ext
3058if test -z "$CFLAGS"; then
3059  { 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
3060echo "$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;}
3061  CFLAGS='-O'
3062  cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h.  */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072int i=0; i++;
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext conftest$ac_exeext
3078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079  (eval $ac_link) 2>conftest.er1
3080  ac_status=$?
3081  grep -v '^ *+' conftest.er1 >conftest.err
3082  rm -f conftest.er1
3083  cat conftest.err >&5
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); } &&
3086         { ac_try='test -z "$ac_c_werror_flag"
3087                         || test ! -s conftest.err'
3088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089  (eval $ac_try) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; } &&
3093         { ac_try='test -s conftest$ac_exeext'
3094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095  (eval $ac_try) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; }; then
3099  :
3100else
3101  echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104CFLAGS=
3105fi
3106rm -f conftest.err conftest.$ac_objext \
3107      conftest$ac_exeext conftest.$ac_ext
3108  if test -z "$CFLAGS"; then
3109    { 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
3110echo "$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;}
3111  fi
3112fi
3113
3114{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3115echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3116
3117
3118if test x"$MPICC" = x; then :; else
3119  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3120echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3121  CC="$MPICC"
3122fi
3123
3124# Correct the LD variable if we are using the MS or Intel-windows compiler
3125case "$CC" in
3126  clang* ) ;;
3127  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3128
3129 case $build in
3130  *-mingw*)
3131    if test "${LD+set}" = set; then :; else
3132      LD=link
3133    fi
3134    ;;
3135 esac
3136 if test $enable_msvc = yes ; then
3137   if test "x${LD+set}" = xset; then :; else
3138     LD=link
3139   fi
3140 fi
3141
3142    ;;
3143esac
3144
3145ac_ext=c
3146ac_cpp='$CPP $CPPFLAGS'
3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150
3151
3152
3153# Check if pkg-config is available (to setup addlibs file)
3154
3155
3156# Check whether --enable-pkg-config or --disable-pkg-config was given.
3157if test "${enable_pkg_config+set}" = set; then
3158  enableval="$enable_pkg_config"
3159  use_pkgconfig="$enableval"
3160else
3161  if test x$coin_cc_is_cl = xtrue; then
3162     use_pkgconfig=no
3163   else
3164     use_pkgconfig=yes
3165   fi
3166fi;
3167
3168if test $use_pkgconfig = yes ; then
3169  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3170    if test -n "$ac_tool_prefix"; then
3171  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3172set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3173echo "$as_me:$LINENO: checking for $ac_word" >&5
3174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3176  echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178  if test -n "$PKG_CONFIG"; then
3179  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186  for ac_exec_ext in '' $ac_executable_extensions; do
3187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193done
3194
3195fi
3196fi
3197PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3198if test -n "$PKG_CONFIG"; then
3199  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3200echo "${ECHO_T}$PKG_CONFIG" >&6
3201else
3202  echo "$as_me:$LINENO: result: no" >&5
3203echo "${ECHO_T}no" >&6
3204fi
3205
3206fi
3207if test -z "$ac_cv_prog_PKG_CONFIG"; then
3208  ac_ct_PKG_CONFIG=$PKG_CONFIG
3209  # Extract the first word of "pkg-config", so it can be a program name with args.
3210set dummy pkg-config; ac_word=$2
3211echo "$as_me:$LINENO: checking for $ac_word" >&5
3212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  if test -n "$ac_ct_PKG_CONFIG"; then
3217  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  test -z "$as_dir" && as_dir=.
3224  for ac_exec_ext in '' $ac_executable_extensions; do
3225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228    break 2
3229  fi
3230done
3231done
3232
3233fi
3234fi
3235ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3236if test -n "$ac_ct_PKG_CONFIG"; then
3237  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3238echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3239else
3240  echo "$as_me:$LINENO: result: no" >&5
3241echo "${ECHO_T}no" >&6
3242fi
3243
3244  PKG_CONFIG=$ac_ct_PKG_CONFIG
3245else
3246  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3247fi
3248
3249  fi
3250  if test -n "$PKG_CONFIG"; then
3251    _pkg_min_version=0.16.0
3252    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3253echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3254    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3255      echo "$as_me:$LINENO: result: yes" >&5
3256echo "${ECHO_T}yes" >&6
3257    else
3258      echo "$as_me:$LINENO: result: no" >&5
3259echo "${ECHO_T}no" >&6
3260      PKG_CONFIG=""
3261    fi
3262  fi
3263
3264  # check if pkg-config supports the short-errors flag
3265  if test -n "$PKG_CONFIG" && \
3266    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3267    pkg_short_errors=" --short-errors "
3268  else
3269    pkg_short_errors=""
3270  fi
3271fi
3272
3273
3274
3275if test -n "$PKG_CONFIG"; then
3276  COIN_HAS_PKGCONFIG_TRUE=
3277  COIN_HAS_PKGCONFIG_FALSE='#'
3278else
3279  COIN_HAS_PKGCONFIG_TRUE='#'
3280  COIN_HAS_PKGCONFIG_FALSE=
3281fi
3282
3283
3284
3285# assemble pkg-config search path for installed projects
3286COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3287
3288# 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
3289# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3290# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3291if test "x${prefix}" = xNONE ; then
3292  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3293else
3294  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3295fi
3296
3297
3298# Check whether --with-coin-instdir or --without-coin-instdir was given.
3299if test "${with_coin_instdir+set}" = set; then
3300  withval="$with_coin_instdir"
3301  if test -d "$withval"; then : ; else
3302     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3303echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3304   { (exit 1); exit 1; }; }
3305   fi
3306   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3307
3308fi;
3309
3310
3311
3312# assemble additional pkg-config search paths for uninstalled projects
3313if test x$coin_projectdir = xyes ; then
3314  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3315  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3316  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3317  # 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)
3318  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3319  if test -f ../coin_subdirs.txt ; then
3320    for i in `cat ../coin_subdirs.txt` ; do
3321      if test -d ../$i ; then
3322        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3323      fi
3324      if test -d ../$i/pkgconfig ; then
3325        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3326      fi
3327    done
3328  fi
3329
3330  if test -f ../../coin_subdirs.txt ; then
3331    for i in `cat ../../coin_subdirs.txt` ; do
3332      if test -d ../../$i ; then
3333        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3334      fi
3335      if test -d ../../$i/pkgconfig ; then
3336        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3337      fi
3338    done
3339  fi
3340
3341
3342fi
3343
3344if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3345  { 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
3346echo "$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;}
3347fi
3348
3349
3350
3351# Initialize automake
3352{
3353
3354
3355
3356# START
3357
3358coin_disable_shared=no
3359# Test if force_shared has been set
3360if test "x" = xforce_shared; then
3361  if test x$enable_shared = xno; then
3362    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3363echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3364   { (exit 1); exit 1; }; }
3365  fi
3366  enable_shared=yes;
3367else
3368  # On Cygwin and AIX, building DLLs doesn't work
3369  case $build in
3370    *-cygwin* | *-mingw*)
3371      coin_disable_shared=yes
3372      if test x"$enable_shared" = xyes; then
3373        case "$CXX" in
3374          clang* )
3375            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3376echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3377            ;;
3378          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3379            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
3380echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
3381            ;;
3382          *)
3383            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3384echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3385            ;;
3386        esac
3387      fi
3388    ;;
3389    *-aix*)
3390      coin_disable_shared=yes
3391      platform=AIX
3392      if test x"$enable_shared" = xyes; then
3393        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3394echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3395      fi
3396    ;;
3397  esac
3398fi
3399if test x"$coin_disable_shared" = xyes; then
3400  if test x"$enable_shared" = xyes; then
3401    :
3402  else
3403    # we don't disable shared, because it was not selected anyway
3404    coin_disable_shared=no
3405  fi
3406  enable_shared=no
3407fi
3408# By default, we only want the shared objects to be compiled
3409# Check whether --enable-static or --disable-static was given.
3410if test "${enable_static+set}" = set; then
3411  enableval="$enable_static"
3412  p=${PACKAGE-default}
3413    case $enableval in
3414    yes) enable_static=yes ;;
3415    no) enable_static=no ;;
3416    *)
3417     enable_static=no
3418      # Look at the argument we got.  We use all the common list separators.
3419      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3420      for pkg in $enableval; do
3421        IFS="$lt_save_ifs"
3422        if test "X$pkg" = "X$p"; then
3423          enable_static=yes
3424        fi
3425      done
3426      IFS="$lt_save_ifs"
3427      ;;
3428    esac
3429else
3430  enable_static=no
3431fi;
3432
3433
3434
3435
3436# Initialize automake
3437echo "$as_me:$LINENO: checking for egrep" >&5
3438echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3439if test "${ac_cv_prog_egrep+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3443    then ac_cv_prog_egrep='grep -E'
3444    else ac_cv_prog_egrep='egrep'
3445    fi
3446fi
3447echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3448echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3449 EGREP=$ac_cv_prog_egrep
3450
3451
3452echo "$as_me:$LINENO: checking whether ln -s works" >&5
3453echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3454LN_S=$as_ln_s
3455if test "$LN_S" = "ln -s"; then
3456  echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6
3458else
3459  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3460echo "${ECHO_T}no, using $LN_S" >&6
3461fi
3462
3463am__api_version="1.9"
3464# Find a good install program.  We prefer a C program (faster),
3465# so one script is as good as another.  But avoid the broken or
3466# incompatible versions:
3467# SysV /etc/install, /usr/sbin/install
3468# SunOS /usr/etc/install
3469# IRIX /sbin/install
3470# AIX /bin/install
3471# AmigaOS /C/install, which installs bootblocks on floppy discs
3472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3475# OS/2's system install, which has a completely different semantic
3476# ./install, which can be erroneously created by make from ./install.sh.
3477echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3478echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3479if test -z "$INSTALL"; then
3480if test "${ac_cv_path_install+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  test -z "$as_dir" && as_dir=.
3488  # Account for people who put trailing slashes in PATH elements.
3489case $as_dir/ in
3490  ./ | .// | /cC/* | \
3491  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3492  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3493  /usr/ucb/* ) ;;
3494  *)
3495    # OSF1 and SCO ODT 3.0 have their own names for install.
3496    # Don't use installbsd from OSF since it installs stuff as root
3497    # by default.
3498    for ac_prog in ginstall scoinst install; do
3499      for ac_exec_ext in '' $ac_executable_extensions; do
3500        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3501          if test $ac_prog = install &&
3502            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3503            # AIX install.  It has an incompatible calling convention.
3504            :
3505          elif test $ac_prog = install &&
3506            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3507            # program-specific install script used by HP pwplus--don't use.
3508            :
3509          else
3510            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3511            break 3
3512          fi
3513        fi
3514      done
3515    done
3516    ;;
3517esac
3518done
3519
3520
3521fi
3522  if test "${ac_cv_path_install+set}" = set; then
3523    INSTALL=$ac_cv_path_install
3524  else
3525    # As a last resort, use the slow shell script.  We don't cache a
3526    # path for INSTALL within a source directory, because that will
3527    # break other packages using the cache if that directory is
3528    # removed, or if the path is relative.
3529    INSTALL=$ac_install_sh
3530  fi
3531fi
3532echo "$as_me:$LINENO: result: $INSTALL" >&5
3533echo "${ECHO_T}$INSTALL" >&6
3534
3535# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3536# It thinks the first close brace ends the variable substitution.
3537test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3538
3539test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3540
3541test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3542
3543echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3544echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3545# Just in case
3546sleep 1
3547echo timestamp > conftest.file
3548# Do `set' in a subshell so we don't clobber the current shell's
3549# arguments.  Must try -L first in case configure is actually a
3550# symlink; some systems play weird games with the mod time of symlinks
3551# (eg FreeBSD returns the mod time of the symlink's containing
3552# directory).
3553if (
3554   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3555   if test "$*" = "X"; then
3556      # -L didn't work.
3557      set X `ls -t $srcdir/configure conftest.file`
3558   fi
3559   rm -f conftest.file
3560   if test "$*" != "X $srcdir/configure conftest.file" \
3561      && test "$*" != "X conftest.file $srcdir/configure"; then
3562
3563      # If neither matched, then we have a broken ls.  This can happen
3564      # if, for instance, CONFIG_SHELL is bash and it inherits a
3565      # broken ls alias from the environment.  This has actually
3566      # happened.  Such a system could not be considered "sane".
3567      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3568alias in your environment" >&5
3569echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3570alias in your environment" >&2;}
3571   { (exit 1); exit 1; }; }
3572   fi
3573
3574   test "$2" = conftest.file
3575   )
3576then
3577   # Ok.
3578   :
3579else
3580   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3581Check your system clock" >&5
3582echo "$as_me: error: newly created file is older than distributed files!
3583Check your system clock" >&2;}
3584   { (exit 1); exit 1; }; }
3585fi
3586echo "$as_me:$LINENO: result: yes" >&5
3587echo "${ECHO_T}yes" >&6
3588test "$program_prefix" != NONE &&
3589  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3590# Use a double $ so make ignores it.
3591test "$program_suffix" != NONE &&
3592  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3593# Double any \ or $.  echo might interpret backslashes.
3594# By default was `s,x,x', remove it if useless.
3595cat <<\_ACEOF >conftest.sed
3596s/[\\$]/&&/g;s/;s,x,x,$//
3597_ACEOF
3598program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3599rm conftest.sed
3600
3601# expand $ac_aux_dir to an absolute path
3602am_aux_dir=`cd $ac_aux_dir && pwd`
3603
3604test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3605# Use eval to expand $SHELL
3606if eval "$MISSING --run true"; then
3607  am_missing_run="$MISSING --run "
3608else
3609  am_missing_run=
3610  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3611echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3612fi
3613
3614if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3615  # We used to keeping the `.' as first argument, in order to
3616  # allow $(mkdir_p) to be used without argument.  As in
3617  #   $(mkdir_p) $(somedir)
3618  # where $(somedir) is conditionally defined.  However this is wrong
3619  # for two reasons:
3620  #  1. if the package is installed by a user who cannot write `.'
3621  #     make install will fail,
3622  #  2. the above comment should most certainly read
3623  #     $(mkdir_p) $(DESTDIR)$(somedir)
3624  #     so it does not work when $(somedir) is undefined and
3625  #     $(DESTDIR) is not.
3626  #  To support the latter case, we have to write
3627  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3628  #  so the `.' trick is pointless.
3629  mkdir_p='mkdir -p --'
3630else
3631  # On NextStep and OpenStep, the `mkdir' command does not
3632  # recognize any option.  It will interpret all options as
3633  # directories to create, and then abort because `.' already
3634  # exists.
3635  for d in ./-p ./--version;
3636  do
3637    test -d $d && rmdir $d
3638  done
3639  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3640  if test -f "$ac_aux_dir/mkinstalldirs"; then
3641    mkdir_p='$(mkinstalldirs)'
3642  else
3643    mkdir_p='$(install_sh) -d'
3644  fi
3645fi
3646
3647for ac_prog in gawk mawk nawk awk
3648do
3649  # Extract the first word of "$ac_prog", so it can be a program name with args.
3650set dummy $ac_prog; ac_word=$2
3651echo "$as_me:$LINENO: checking for $ac_word" >&5
3652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653if test "${ac_cv_prog_AWK+set}" = set; then
3654  echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656  if test -n "$AWK"; then
3657  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662  IFS=$as_save_IFS
3663  test -z "$as_dir" && as_dir=.
3664  for ac_exec_ext in '' $ac_executable_extensions; do
3665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666    ac_cv_prog_AWK="$ac_prog"
3667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671done
3672
3673fi
3674fi
3675AWK=$ac_cv_prog_AWK
3676if test -n "$AWK"; then
3677  echo "$as_me:$LINENO: result: $AWK" >&5
3678echo "${ECHO_T}$AWK" >&6
3679else
3680  echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6
3682fi
3683
3684  test -n "$AWK" && break
3685done
3686
3687echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3688echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3689set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3690if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3691  echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693  cat >conftest.make <<\_ACEOF
3694all:
3695        @echo 'ac_maketemp="$(MAKE)"'
3696_ACEOF
3697# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3698eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3699if test -n "$ac_maketemp"; then
3700  eval ac_cv_prog_make_${ac_make}_set=yes
3701else
3702  eval ac_cv_prog_make_${ac_make}_set=no
3703fi
3704rm -f conftest.make
3705fi
3706if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3707  echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709  SET_MAKE=
3710else
3711  echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713  SET_MAKE="MAKE=${MAKE-make}"
3714fi
3715
3716rm -rf .tst 2>/dev/null
3717mkdir .tst 2>/dev/null
3718if test -d .tst; then
3719  am__leading_dot=.
3720else
3721  am__leading_dot=_
3722fi
3723rmdir .tst 2>/dev/null
3724
3725DEPDIR="${am__leading_dot}deps"
3726
3727          ac_config_commands="$ac_config_commands depfiles"
3728
3729
3730am_make=${MAKE-make}
3731cat > confinc << 'END'
3732am__doit:
3733        @echo done
3734.PHONY: am__doit
3735END
3736# If we don't find an include directive, just comment out the code.
3737echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3738echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3739am__include="#"
3740am__quote=
3741_am_result=none
3742# First try GNU make style include.
3743echo "include confinc" > confmf
3744# We grep out `Entering directory' and `Leaving directory'
3745# messages which can occur if `w' ends up in MAKEFLAGS.
3746# In particular we don't look at `^make:' because GNU make might
3747# be invoked under some other name (usually "gmake"), in which
3748# case it prints its new name instead of `make'.
3749if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3750   am__include=include
3751   am__quote=
3752   _am_result=GNU
3753fi
3754# Now try BSD make style include.
3755if test "$am__include" = "#"; then
3756   echo '.include "confinc"' > confmf
3757   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3758      am__include=.include
3759      am__quote="\""
3760      _am_result=BSD
3761   fi
3762fi
3763
3764
3765echo "$as_me:$LINENO: result: $_am_result" >&5
3766echo "${ECHO_T}$_am_result" >&6
3767rm -f confinc confmf
3768
3769# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3770if test "${enable_dependency_tracking+set}" = set; then
3771  enableval="$enable_dependency_tracking"
3772
3773fi;
3774if test "x$enable_dependency_tracking" != xno; then
3775  am_depcomp="$ac_aux_dir/depcomp"
3776  AMDEPBACKSLASH='\'
3777fi
3778
3779
3780if test "x$enable_dependency_tracking" != xno; then
3781  AMDEP_TRUE=
3782  AMDEP_FALSE='#'
3783else
3784  AMDEP_TRUE='#'
3785  AMDEP_FALSE=
3786fi
3787
3788
3789
3790
3791
3792
3793# AC_MSG_NOTICE([Beginning automake initialisation.])
3794# Stuff for automake
3795# test to see if srcdir already configured
3796if test "`cd $srcdir && pwd`" != "`pwd`" &&
3797   test -f $srcdir/config.status; then
3798  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3799echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3800   { (exit 1); exit 1; }; }
3801fi
3802
3803# test whether we have cygpath
3804if test -z "$CYGPATH_W"; then
3805  if (cygpath --version) >/dev/null 2>/dev/null; then
3806    CYGPATH_W='cygpath -w'
3807  else
3808    CYGPATH_W=echo
3809  fi
3810fi
3811
3812
3813# Define the identity of the package.
3814 PACKAGE='thirdpartymetis'
3815 VERSION='1.2'
3816
3817
3818cat >>confdefs.h <<_ACEOF
3819#define PACKAGE "$PACKAGE"
3820_ACEOF
3821
3822
3823cat >>confdefs.h <<_ACEOF
3824#define VERSION "$VERSION"
3825_ACEOF
3826
3827# Some tools Automake needs.
3828
3829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3830
3831
3832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3833
3834
3835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3836
3837
3838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3839
3840
3841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3842
3843install_sh=${install_sh-"$am_aux_dir/install-sh"}
3844
3845# Installed binaries are usually stripped using `strip' when the user
3846# run `make install-strip'.  However `strip' might not be the right
3847# tool to use in cross-compilation environments, therefore Automake
3848# will honor the `STRIP' environment variable to overrule this program.
3849if test "$cross_compiling" != no; then
3850  if test -n "$ac_tool_prefix"; then
3851  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3852set dummy ${ac_tool_prefix}strip; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_prog_STRIP+set}" = set; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  if test -n "$STRIP"; then
3859  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866  for ac_exec_ext in '' $ac_executable_extensions; do
3867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873done
3874
3875fi
3876fi
3877STRIP=$ac_cv_prog_STRIP
3878if test -n "$STRIP"; then
3879  echo "$as_me:$LINENO: result: $STRIP" >&5
3880echo "${ECHO_T}$STRIP" >&6
3881else
3882  echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
3884fi
3885
3886fi
3887if test -z "$ac_cv_prog_STRIP"; then
3888  ac_ct_STRIP=$STRIP
3889  # Extract the first word of "strip", so it can be a program name with args.
3890set dummy strip; ac_word=$2
3891echo "$as_me:$LINENO: checking for $ac_word" >&5
3892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3894  echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896  if test -n "$ac_ct_STRIP"; then
3897  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  test -z "$as_dir" && as_dir=.
3904  for ac_exec_ext in '' $ac_executable_extensions; do
3905  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906    ac_cv_prog_ac_ct_STRIP="strip"
3907    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908    break 2
3909  fi
3910done
3911done
3912
3913  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3914fi
3915fi
3916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3917if test -n "$ac_ct_STRIP"; then
3918  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3919echo "${ECHO_T}$ac_ct_STRIP" >&6
3920else
3921  echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923fi
3924
3925  STRIP=$ac_ct_STRIP
3926else
3927  STRIP="$ac_cv_prog_STRIP"
3928fi
3929
3930fi
3931INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3932
3933# We need awk for the "check" target.  The system "awk" is bad on
3934# some platforms.
3935# Always define AMTAR for backward compatibility.
3936
3937AMTAR=${AMTAR-"${am_missing_run}tar"}
3938
3939am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3940
3941
3942
3943
3944depcc="$CC"   am_compiler_list=
3945
3946echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3947echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3948if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3952  # We make a subdir and do the tests there.  Otherwise we can end up
3953  # making bogus files that we don't know about and never remove.  For
3954  # instance it was reported that on HP-UX the gcc test will end up
3955  # making a dummy file named `D' -- because `-MD' means `put the output
3956  # in D'.
3957  mkdir conftest.dir
3958  # Copy depcomp to subdir because otherwise we won't find it if we're
3959  # using a relative directory.
3960  cp "$am_depcomp" conftest.dir
3961  cd conftest.dir
3962  # We will build objects and dependencies in a subdirectory because
3963  # it helps to detect inapplicable dependency modes.  For instance
3964  # both Tru64's cc and ICC support -MD to output dependencies as a
3965  # side effect of compilation, but ICC will put the dependencies in
3966  # the current directory while Tru64 will put them in the object
3967  # directory.
3968  mkdir sub
3969
3970  am_cv_CC_dependencies_compiler_type=none
3971  if test "$am_compiler_list" = ""; then
3972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3973  fi
3974  for depmode in $am_compiler_list; do
3975    # Setup a source with many dependencies, because some compilers
3976    # like to wrap large dependency lists on column 80 (with \), and
3977    # we should not choose a depcomp mode which is confused by this.
3978    #
3979    # We need to recreate these files for each test, as the compiler may
3980    # overwrite some of them when testing with obscure command lines.
3981    # This happens at least with the AIX C compiler.
3982    : > sub/conftest.c
3983    for i in 1 2 3 4 5 6; do
3984      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986      # Solaris 8's {/usr,}/bin/sh.
3987      touch sub/conftst$i.h
3988    done
3989    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991    case $depmode in
3992    nosideeffect)
3993      # after this tag, mechanisms are not by side-effect, so they'll
3994      # only be used when explicitly requested
3995      if test "x$enable_dependency_tracking" = xyes; then
3996        continue
3997      else
3998        break
3999      fi
4000      ;;
4001    none) break ;;
4002    esac
4003    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4004    # mode.  It turns out that the SunPro C++ compiler does not properly
4005    # handle `-M -o', and we need to detect this.
4006    if depmode=$depmode \
4007       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4008       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4009       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4010         >/dev/null 2>conftest.err &&
4011       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4013       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014      # icc doesn't choke on unknown options, it will just issue warnings
4015      # or remarks (even with -Werror).  So we grep stderr for any message
4016      # that says an option was ignored or not supported.
4017      # When given -MP, icc 7.0 and 7.1 complain thusly:
4018      #   icc: Command line warning: ignoring option '-M'; no argument required
4019      # The diagnosis changed in icc 8.0:
4020      #   icc: Command line remark: option '-MP' not supported
4021      if (grep 'ignoring option' conftest.err ||
4022          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023        am_cv_CC_dependencies_compiler_type=$depmode
4024        break
4025      fi
4026    fi
4027  done
4028
4029  cd ..
4030  rm -rf conftest.dir
4031else
4032  am_cv_CC_dependencies_compiler_type=none
4033fi
4034
4035fi
4036echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4037echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4038CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
4040
4041
4042if
4043  test "x$enable_dependency_tracking" != xno \
4044  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4045  am__fastdepCC_TRUE=
4046  am__fastdepCC_FALSE='#'
4047else
4048  am__fastdepCC_TRUE='#'
4049  am__fastdepCC_FALSE=
4050fi
4051
4052
4053
4054echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4055echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4056    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4057if test "${enable_maintainer_mode+set}" = set; then
4058  enableval="$enable_maintainer_mode"
4059  USE_MAINTAINER_MODE=$enableval
4060else
4061  USE_MAINTAINER_MODE=no
4062fi;
4063  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4064echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4065
4066
4067if test $USE_MAINTAINER_MODE = yes; then
4068  MAINTAINER_MODE_TRUE=
4069  MAINTAINER_MODE_FALSE='#'
4070else
4071  MAINTAINER_MODE_TRUE='#'
4072  MAINTAINER_MODE_FALSE=
4073fi
4074
4075  MAINT=$MAINTAINER_MODE_TRUE
4076
4077
4078
4079coin_have_externals=no
4080if test "$enable_maintainer_mode" = yes; then
4081
4082  # If maintainer mode is chosen, we make sure that the correct versions
4083  # of the tools are used, and that we know where libtool.m4 is (to
4084  # recreate acinclude.m4)
4085
4086
4087  LIBTOOLM4=
4088  # Normally, $HOME
4089  AUTOTOOLS_DFLT=$HOME
4090
4091  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4092echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4093if test "${ac_cv_use_correct_autotools+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  ac_cv_use_correct_autotools=check
4097fi
4098echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4099echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4100
4101  if test $ac_cv_use_correct_autotools = check; then
4102    ac_cv_use_correct_autotools=yes
4103    # Check if we have autoconf
4104    # Extract the first word of "autoconf", so it can be a program name with args.
4105set dummy autoconf; ac_word=$2
4106echo "$as_me:$LINENO: checking for $ac_word" >&5
4107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108if test "${ac_cv_prog_have_autoconf+set}" = set; then
4109  echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111  if test -n "$have_autoconf"; then
4112  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4113else
4114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH
4116do
4117  IFS=$as_save_IFS
4118  test -z "$as_dir" && as_dir=.
4119  for ac_exec_ext in '' $ac_executable_extensions; do
4120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121    ac_cv_prog_have_autoconf="yes"
4122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123    break 2
4124  fi
4125done
4126done
4127
4128  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4129fi
4130fi
4131have_autoconf=$ac_cv_prog_have_autoconf
4132if test -n "$have_autoconf"; then
4133  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4134echo "${ECHO_T}$have_autoconf" >&6
4135else
4136  echo "$as_me:$LINENO: result: no" >&5
4137echo "${ECHO_T}no" >&6
4138fi
4139
4140    if test $have_autoconf = no; then
4141      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4142echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4143   { (exit 1); exit 1; }; }
4144    fi
4145
4146    # Check whether autoconf is the correct version
4147    correct_version='2.59'
4148    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4149    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4150echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4151    autoconf --version > confauto.out 2>&1
4152    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4153      echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155    else
4156      rm -f confauto.out
4157      echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4160echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4161   { (exit 1); exit 1; }; }
4162    fi
4163    rm -f confauto.out
4164
4165    # Check if the executable autoconf is picked up from the correct location
4166    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4167echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4168    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4169    autoconf_dir=`cd $autoconf_dir; pwd`
4170    if test x$AUTOTOOLS_DIR = x; then
4171      want_dir=$AUTOTOOLS_DFLT/bin
4172    else
4173      want_dir=$AUTOTOOLS_DIR/bin
4174    fi
4175    if test $autoconf_dir = `cd $want_dir; pwd`; then
4176      echo "$as_me:$LINENO: result: yes" >&5
4177echo "${ECHO_T}yes" >&6
4178    else
4179      rm -f confauto.out
4180      echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4183echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4184   { (exit 1); exit 1; }; }
4185    fi
4186
4187    # Check if we have automake
4188    # Extract the first word of "automake", so it can be a program name with args.
4189set dummy automake; ac_word=$2
4190echo "$as_me:$LINENO: checking for $ac_word" >&5
4191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192if test "${ac_cv_prog_have_automake+set}" = set; then
4193  echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195  if test -n "$have_automake"; then
4196  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4197else
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201  IFS=$as_save_IFS
4202  test -z "$as_dir" && as_dir=.
4203  for ac_exec_ext in '' $ac_executable_extensions; do
4204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205    ac_cv_prog_have_automake="yes"
4206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207    break 2
4208  fi
4209done
4210done
4211
4212  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4213fi
4214fi
4215have_automake=$ac_cv_prog_have_automake
4216if test -n "$have_automake"; then
4217  echo "$as_me:$LINENO: result: $have_automake" >&5
4218echo "${ECHO_T}$have_automake" >&6
4219else
4220  echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
4222fi
4223
4224    if test $have_automake = no; then
4225      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4226echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4227   { (exit 1); exit 1; }; }
4228    fi
4229
4230    # Check whether automake is the correct version
4231    correct_version='1.9.6'
4232    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4233    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4234echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4235    automake --version > confauto.out 2>&1
4236    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4237      echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
4239    else
4240      rm -f confauto.out
4241      echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4244echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4245   { (exit 1); exit 1; }; }
4246    fi
4247    rm -f confauto.out
4248
4249    # Check if the executable automake is picked up from the correct location
4250    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4251echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4252    automake_dir=`which automake | sed -e 's=/automake=='`
4253    automake_dir=`cd $automake_dir; pwd`
4254    if test x$AUTOTOOLS_DIR = x; then
4255      want_dir=$AUTOTOOLS_DFLT/bin
4256    else
4257      want_dir=$AUTOTOOLS_DIR/bin
4258    fi
4259    if test $automake_dir = `cd $want_dir; pwd`; then
4260      echo "$as_me:$LINENO: result: yes" >&5
4261echo "${ECHO_T}yes" >&6
4262    else
4263      rm -f confauto.out
4264      echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
4266      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4267echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4268   { (exit 1); exit 1; }; }
4269    fi
4270
4271    # Check if this is the correct version of libtool (with escaped dots)
4272    if test x$AUTOTOOLS_DIR = x; then
4273      want_dir=$AUTOTOOLS_DFLT/share
4274    else
4275      want_dir=$AUTOTOOLS_DIR/share
4276    fi
4277    correct_version='1.5.22'
4278    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4279    if test -r $want_dir/libtool/ltmain.sh; then
4280  have_ltmain=yes
4281  :
4282else
4283  have_ltmain=no
4284  :
4285fi
4286
4287    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4288echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4289    if test $have_ltmain = yes; then
4290    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4291        echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
4293      else
4294        echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
4296        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4297echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4298   { (exit 1); exit 1; }; }
4299      fi
4300    else
4301      echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4304echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4305   { (exit 1); exit 1; }; }
4306    fi
4307  fi
4308
4309  # Check if we can find the libtool file
4310  if test x$AUTOTOOLS_DIR = x; then
4311    want_dir=$AUTOTOOLS_DFLT/share
4312  else
4313    want_dir=$AUTOTOOLS_DIR/share
4314  fi
4315  if test -r $want_dir/aclocal/libtool.m4; then
4316  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4317  :
4318else
4319  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4320echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4321   { (exit 1); exit 1; }; }
4322  :
4323fi
4324
4325
4326  # Check if we have an Dependencies file
4327  if test -r $srcdir/Dependencies; then
4328    coin_have_externals=yes
4329  fi
4330  # Check if subversion is installed and understands https
4331  # Extract the first word of "svn", so it can be a program name with args.
4332set dummy svn; ac_word=$2
4333echo "$as_me:$LINENO: checking for $ac_word" >&5
4334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335if test "${ac_cv_prog_have_svn+set}" = set; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338  if test -n "$have_svn"; then
4339  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4340else
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346  for ac_exec_ext in '' $ac_executable_extensions; do
4347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348    ac_cv_prog_have_svn="yes"
4349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350    break 2
4351  fi
4352done
4353done
4354
4355  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4356fi
4357fi
4358have_svn=$ac_cv_prog_have_svn
4359if test -n "$have_svn"; then
4360  echo "$as_me:$LINENO: result: $have_svn" >&5
4361echo "${ECHO_T}$have_svn" >&6
4362else
4363  echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365fi
4366
4367  if test x$have_svn = xyes; then
4368    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4369echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4370if test "${ac_cv_svn_understands_https+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  svn --version > confauto.out 2>&1
4374                    if $EGREP https confauto.out >/dev/null 2>&1; then
4375                      ac_cv_svn_understands_https=yes
4376                    else
4377                      ac_cv_svn_understands_https=no
4378                      have_svn=no
4379                      ac_cv_prog_have_svn=no
4380                    fi
4381                    rm -f confauto.out
4382fi
4383echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4384echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4385  fi
4386
4387  # Find the location of the BuildTools directory
4388  BUILDTOOLSDIR=
4389  if test -r $srcdir/BuildTools/coin.m4; then
4390    BUILDTOOLSDIR=$srcdir/BuildTools
4391  else
4392    if test -r $srcdir/../BuildTools/coin.m4; then
4393      BUILDTOOLSDIR=$srcdir/../BuildTools
4394    else
4395      if test -r $srcdir/../../BuildTools/coin.m4; then
4396        BUILDTOOLSDIR=$srcdir/../../BuildTools
4397      else
4398        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4399echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4400   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4401      fi
4402    fi
4403  fi
4404
4405
4406  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4407  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4408    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4409  fi
4410
4411  # The following variable is set to the name of the directory where
4412  # the autotool scripts are located
4413
4414  AUX_DIR=$ac_aux_dir
4415fi
4416
4417# helpful variable for the base directory of this package
4418abs_source_dir=`cd $srcdir; pwd`
4419
4420
4421# Stuff for example Makefiles
4422if test x$prefix = xNONE; then
4423  full_prefix=$ac_default_prefix
4424else
4425  full_prefix=$prefix
4426fi
4427full_prefix=`cd $full_prefix ; pwd`
4428
4429abs_lib_dir=$full_prefix/lib
4430
4431abs_include_dir=$full_prefix/include
4432
4433abs_bin_dir=$full_prefix/bin
4434
4435
4436
4437if test $coin_have_externals = yes && test x$have_svn = xyes; then
4438  HAVE_EXTERNALS_TRUE=
4439  HAVE_EXTERNALS_FALSE='#'
4440else
4441  HAVE_EXTERNALS_TRUE='#'
4442  HAVE_EXTERNALS_FALSE=
4443fi
4444
4445
4446# AC_MSG_NOTICE([End automake initialisation.])
4447
4448
4449
4450LIBTOOL=
4451if test -f ../libtool; then
4452  coin_config_dir=..
4453  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4454fi
4455if test "x$LIBTOOL" = x; then
4456  if test -f ../../libtool; then
4457    coin_config_dir=../..
4458    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4459  fi
4460fi
4461
4462if test "x$LIBTOOL" = x; then
4463# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4464  # Stuff for libtool
4465  # Check whether --enable-shared or --disable-shared was given.
4466if test "${enable_shared+set}" = set; then
4467  enableval="$enable_shared"
4468  p=${PACKAGE-default}
4469    case $enableval in
4470    yes) enable_shared=yes ;;
4471    no) enable_shared=no ;;
4472    *)
4473      enable_shared=no
4474      # Look at the argument we got.  We use all the common list separators.
4475      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4476      for pkg in $enableval; do
4477        IFS="$lt_save_ifs"
4478        if test "X$pkg" = "X$p"; then
4479          enable_shared=yes
4480        fi
4481      done
4482      IFS="$lt_save_ifs"
4483      ;;
4484    esac
4485else
4486  enable_shared=yes
4487fi;
4488
4489# Check whether --enable-fast-install or --disable-fast-install was given.
4490if test "${enable_fast_install+set}" = set; then
4491  enableval="$enable_fast_install"
4492  p=${PACKAGE-default}
4493    case $enableval in
4494    yes) enable_fast_install=yes ;;
4495    no) enable_fast_install=no ;;
4496    *)
4497      enable_fast_install=no
4498      # Look at the argument we got.  We use all the common list separators.
4499      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4500      for pkg in $enableval; do
4501        IFS="$lt_save_ifs"
4502        if test "X$pkg" = "X$p"; then
4503          enable_fast_install=yes
4504        fi
4505      done
4506      IFS="$lt_save_ifs"
4507      ;;
4508    esac
4509else
4510  enable_fast_install=yes
4511fi;
4512
4513echo "$as_me:$LINENO: checking host system type" >&5
4514echo $ECHO_N "checking host system type... $ECHO_C" >&6
4515if test "${ac_cv_host+set}" = set; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  ac_cv_host_alias=$host_alias
4519test -z "$ac_cv_host_alias" &&
4520  ac_cv_host_alias=$ac_cv_build_alias
4521ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4522  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4523echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4524   { (exit 1); exit 1; }; }
4525
4526fi
4527echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4528echo "${ECHO_T}$ac_cv_host" >&6
4529host=$ac_cv_host
4530host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4531host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4532host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4533
4534
4535echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4536echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4537if test "${lt_cv_path_SED+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  # Loop through the user's path and test for sed and gsed.
4541# Then use that list of sed's as ones to test for truncation.
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547  for lt_ac_prog in sed gsed; do
4548    for ac_exec_ext in '' $ac_executable_extensions; do
4549      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4550        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4551      fi
4552    done
4553  done
4554done
4555lt_ac_max=0
4556lt_ac_count=0
4557# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4558# along with /bin/sed that truncates output.
4559for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4560  test ! -f $lt_ac_sed && continue
4561  cat /dev/null > conftest.in
4562  lt_ac_count=0
4563  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4564  # Check for GNU sed and select it if it is found.
4565  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4566    lt_cv_path_SED=$lt_ac_sed
4567    break
4568  fi
4569  while true; do
4570    cat conftest.in conftest.in >conftest.tmp
4571    mv conftest.tmp conftest.in
4572    cp conftest.in conftest.nl
4573    echo >>conftest.nl
4574    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4575    cmp -s conftest.out conftest.nl || break
4576    # 10000 chars as input seems more than enough
4577    test $lt_ac_count -gt 10 && break
4578    lt_ac_count=`expr $lt_ac_count + 1`
4579    if test $lt_ac_count -gt $lt_ac_max; then
4580      lt_ac_max=$lt_ac_count
4581      lt_cv_path_SED=$lt_ac_sed
4582    fi
4583  done
4584done
4585
4586fi
4587
4588SED=$lt_cv_path_SED
4589echo "$as_me:$LINENO: result: $SED" >&5
4590echo "${ECHO_T}$SED" >&6
4591
4592
4593# Check whether --with-gnu-ld or --without-gnu-ld was given.
4594if test "${with_gnu_ld+set}" = set; then
4595  withval="$with_gnu_ld"
4596  test "$withval" = no || with_gnu_ld=yes
4597else
4598  with_gnu_ld=no
4599fi;
4600ac_prog=ld
4601if test "$GCC" = yes; then
4602  # Check if gcc -print-prog-name=ld gives a path.
4603  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4604echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4605  case $host in
4606  *-*-mingw*)
4607    # gcc leaves a trailing carriage return which upsets mingw
4608    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4609  *)
4610    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4611  esac
4612  case $ac_prog in
4613    # Accept absolute paths.
4614    [\\/]* | ?:[\\/]*)
4615      re_direlt='/[^/][^/]*/\.\./'
4616      # Canonicalize the pathname of ld
4617      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4618      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4619        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4620      done
4621      test -z "$LD" && LD="$ac_prog"
4622      ;;
4623  "")
4624    # If it fails, then pretend we aren't using GCC.
4625    ac_prog=ld
4626    ;;
4627  *)
4628    # If it is relative, then search for the first ld in PATH.
4629    with_gnu_ld=unknown
4630    ;;
4631  esac
4632elif test "$with_gnu_ld" = yes; then
4633  echo "$as_me:$LINENO: checking for GNU ld" >&5
4634echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4635else
4636  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4637echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4638fi
4639if test "${lt_cv_path_LD+set}" = set; then
4640  echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642  if test -z "$LD"; then
4643  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4644  for ac_dir in $PATH; do
4645    IFS="$lt_save_ifs"
4646    test -z "$ac_dir" && ac_dir=.
4647    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4648      lt_cv_path_LD="$ac_dir/$ac_prog"
4649      # Check to see if the program is GNU ld.  I'd rather use --version,
4650      # but apparently some variants of GNU ld only accept -v.
4651      # Break only if it was the GNU/non-GNU ld that we prefer.
4652      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4653      *GNU* | *'with BFD'*)
4654        test "$with_gnu_ld" != no && break
4655        ;;
4656      *)
4657        test "$with_gnu_ld" != yes && break
4658        ;;
4659      esac
4660    fi
4661  done
4662  IFS="$lt_save_ifs"
4663else
4664  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4665fi
4666fi
4667
4668LD="$lt_cv_path_LD"
4669if test -n "$LD"; then
4670  echo "$as_me:$LINENO: result: $LD" >&5
4671echo "${ECHO_T}$LD" >&6
4672else
4673  echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675fi
4676test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4677echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4678   { (exit 1); exit 1; }; }
4679echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4680echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4681if test "${lt_cv_prog_gnu_ld+set}" = set; then
4682  echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4685case `$LD -v 2>&1 </dev/null` in
4686*GNU* | *'with BFD'*)
4687  lt_cv_prog_gnu_ld=yes
4688  ;;
4689*)
4690  lt_cv_prog_gnu_ld=no
4691  ;;
4692esac
4693fi
4694echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4695echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4696with_gnu_ld=$lt_cv_prog_gnu_ld
4697
4698
4699echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4700echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4701if test "${lt_cv_ld_reload_flag+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  lt_cv_ld_reload_flag='-r'
4705fi
4706echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4707echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4708reload_flag=$lt_cv_ld_reload_flag
4709case $reload_flag in
4710"" | " "*) ;;
4711*) reload_flag=" $reload_flag" ;;
4712esac
4713reload_cmds='$LD$reload_flag -o $output$reload_objs'
4714case $host_os in
4715  darwin*)
4716    if test "$GCC" = yes; then
4717      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4718    else
4719      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4720    fi
4721    ;;
4722esac
4723
4724echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4725echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4726if test "${lt_cv_path_NM+set}" = set; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  if test -n "$NM"; then
4730  # Let the user override the test.
4731  lt_cv_path_NM="$NM"
4732else
4733  lt_nm_to_check="${ac_tool_prefix}nm"
4734  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4735    lt_nm_to_check="$lt_nm_to_check nm"
4736  fi
4737  for lt_tmp_nm in $lt_nm_to_check; do
4738    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4739    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4740      IFS="$lt_save_ifs"
4741      test -z "$ac_dir" && ac_dir=.
4742      tmp_nm="$ac_dir/$lt_tmp_nm"
4743      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4744        # Check to see if the nm accepts a BSD-compat flag.
4745        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4746        #   nm: unknown option "B" ignored
4747        # Tru64's nm complains that /dev/null is an invalid object file
4748        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4749        */dev/null* | *'Invalid file or object type'*)
4750          lt_cv_path_NM="$tmp_nm -B"
4751          break
4752          ;;
4753        *)
4754          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4755          */dev/null*)
4756            lt_cv_path_NM="$tmp_nm -p"
4757            break
4758            ;;
4759          *)
4760            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4761            continue # so that we can try to find one that supports BSD flags
4762            ;;
4763          esac
4764          ;;
4765        esac
4766      fi
4767    done
4768    IFS="$lt_save_ifs"
4769  done
4770  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4771fi
4772fi
4773echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4774echo "${ECHO_T}$lt_cv_path_NM" >&6
4775NM="$lt_cv_path_NM"
4776
4777echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4778echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4779if test "${lt_cv_deplibs_check_method+set}" = set; then
4780  echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782  lt_cv_file_magic_cmd='$MAGIC_CMD'
4783lt_cv_file_magic_test_file=
4784lt_cv_deplibs_check_method='unknown'
4785# Need to set the preceding variable on all platforms that support
4786# interlibrary dependencies.
4787# 'none' -- dependencies not supported.
4788# `unknown' -- same as none, but documents that we really don't know.
4789# 'pass_all' -- all dependencies passed with no checks.
4790# 'test_compile' -- check by making test program.
4791# 'file_magic [[regex]]' -- check by looking for files in library path
4792# which responds to the $file_magic_cmd with a given extended regex.
4793# If you have `file' or equivalent on your system and you're not sure
4794# whether `pass_all' will *always* work, you probably want this one.
4795
4796case $host_os in
4797aix4* | aix5*)
4798  lt_cv_deplibs_check_method=pass_all
4799  ;;
4800
4801beos*)
4802  lt_cv_deplibs_check_method=pass_all
4803  ;;
4804
4805bsdi[45]*)
4806  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807  lt_cv_file_magic_cmd='/usr/bin/file -L'
4808  lt_cv_file_magic_test_file=/shlib/libc.so
4809  ;;
4810
4811cygwin*)
4812  # func_win32_libid is a shell function defined in ltmain.sh
4813  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4814  lt_cv_file_magic_cmd='func_win32_libid'
4815  ;;
4816
4817mingw* | pw32*)
4818  # Base MSYS/MinGW do not provide the 'file' command needed by
4819  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4820  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4821  lt_cv_file_magic_cmd='$OBJDUMP -f'
4822  ;;
4823
4824darwin* | rhapsody*)
4825  lt_cv_deplibs_check_method=pass_all
4826  ;;
4827
4828freebsd* | kfreebsd*-gnu | dragonfly*)
4829  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4830    case $host_cpu in
4831    i*86 )
4832      # Not sure whether the presence of OpenBSD here was a mistake.
4833      # Let's accept both of them until this is cleared up.
4834      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4835      lt_cv_file_magic_cmd=/usr/bin/file
4836      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4837      ;;
4838    esac
4839  else
4840    lt_cv_deplibs_check_method=pass_all
4841  fi
4842  ;;
4843
4844gnu*)
4845  lt_cv_deplibs_check_method=pass_all
4846  ;;
4847
4848hpux10.20* | hpux11*)
4849  lt_cv_file_magic_cmd=/usr/bin/file
4850  case $host_cpu in
4851  ia64*)
4852    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4853    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4854    ;;
4855  hppa*64*)
4856    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]'
4857    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4858    ;;
4859  *)
4860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4861    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4862    ;;
4863  esac
4864  ;;
4865
4866interix3*)
4867  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4868  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4869  ;;
4870
4871irix5* | irix6* | nonstopux*)
4872  case $LD in
4873  *-32|*"-32 ") libmagic=32-bit;;
4874  *-n32|*"-n32 ") libmagic=N32;;
4875  *-64|*"-64 ") libmagic=64-bit;;
4876  *) libmagic=never-match;;
4877  esac
4878  lt_cv_deplibs_check_method=pass_all
4879  ;;
4880
4881# This must be Linux ELF.
4882linux*)
4883  lt_cv_deplibs_check_method=pass_all
4884  ;;
4885
4886netbsd*)
4887  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4888    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4889  else
4890    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4891  fi
4892  ;;
4893
4894newos6*)
4895  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4896  lt_cv_file_magic_cmd=/usr/bin/file
4897  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4898  ;;
4899
4900nto-qnx*)
4901  lt_cv_deplibs_check_method=unknown
4902  ;;
4903
4904openbsd*)
4905  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4906    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4907  else
4908    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4909  fi
4910  ;;
4911
4912osf3* | osf4* | osf5*)
4913  lt_cv_deplibs_check_method=pass_all
4914  ;;
4915
4916solaris*)
4917  lt_cv_deplibs_check_method=pass_all
4918  ;;
4919
4920sysv4 | sysv4.3*)
4921  case $host_vendor in
4922  motorola)
4923    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]'
4924    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4925    ;;
4926  ncr)
4927    lt_cv_deplibs_check_method=pass_all
4928    ;;
4929  sequent)
4930    lt_cv_file_magic_cmd='/bin/file'
4931    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4932    ;;
4933  sni)
4934    lt_cv_file_magic_cmd='/bin/file'
4935    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4936    lt_cv_file_magic_test_file=/lib/libc.so
4937    ;;
4938  siemens)
4939    lt_cv_deplibs_check_method=pass_all
4940    ;;
4941  pc)
4942    lt_cv_deplibs_check_method=pass_all
4943    ;;
4944  esac
4945  ;;
4946
4947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4948  lt_cv_deplibs_check_method=pass_all
4949  ;;
4950esac
4951
4952fi
4953echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4954echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4955file_magic_cmd=$lt_cv_file_magic_cmd
4956deplibs_check_method=$lt_cv_deplibs_check_method
4957test -z "$deplibs_check_method" && deplibs_check_method=unknown
4958
4959
4960
4961
4962# If no C compiler was specified, use CC.
4963LTCC=${LTCC-"$CC"}
4964
4965# If no C compiler flags were specified, use CFLAGS.
4966LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4967
4968# Allow CC to be a program name with arguments.
4969compiler=$CC
4970
4971# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4972if test "${enable_libtool_lock+set}" = set; then
4973  enableval="$enable_libtool_lock"
4974
4975fi;
4976test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4977
4978# Some flags need to be propagated to the compiler or linker for good
4979# libtool support.
4980case $host in
4981ia64-*-hpux*)
4982  # Find out which ABI we are using.
4983  echo 'int i;' > conftest.$ac_ext
4984  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985  (eval $ac_compile) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; then
4989    case `/usr/bin/file conftest.$ac_objext` in
4990    *ELF-32*)
4991      HPUX_IA64_MODE="32"
4992      ;;
4993    *ELF-64*)
4994      HPUX_IA64_MODE="64"
4995      ;;
4996    esac
4997  fi
4998  rm -rf conftest*
4999  ;;
5000*-*-irix6*)
5001  # Find out which ABI we are using.
5002  echo '#line 5002 "configure"' > conftest.$ac_ext
5003  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004  (eval $ac_compile) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; then
5008   if test "$lt_cv_prog_gnu_ld" = yes; then
5009    case `/usr/bin/file conftest.$ac_objext` in
5010    *32-bit*)
5011      LD="${LD-ld} -melf32bsmip"
5012      ;;
5013    *N32*)
5014      LD="${LD-ld} -melf32bmipn32"
5015      ;;
5016    *64-bit*)
5017      LD="${LD-ld} -melf64bmip"
5018      ;;
5019    esac
5020   else
5021    case `/usr/bin/file conftest.$ac_objext` in
5022    *32-bit*)
5023      LD="${LD-ld} -32"
5024      ;;
5025    *N32*)
5026      LD="${LD-ld} -n32"
5027      ;;
5028    *64-bit*)
5029      LD="${LD-ld} -64"
5030      ;;
5031    esac
5032   fi
5033  fi
5034  rm -rf conftest*
5035  ;;
5036
5037x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5038  # Find out which ABI we are using.
5039  echo 'int i;' > conftest.$ac_ext
5040  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041  (eval $ac_compile) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; then
5045    case `/usr/bin/file conftest.o` in
5046    *32-bit*)
5047      case $host in
5048        x86_64-*linux*)
5049          LD="${LD-ld} -m elf_i386"
5050          ;;
5051        ppc64-*linux*|powerpc64-*linux*)
5052          LD="${LD-ld} -m elf32ppclinux"
5053          ;;
5054        s390x-*linux*)
5055          LD="${LD-ld} -m elf_s390"
5056          ;;
5057        sparc64-*linux*)
5058          LD="${LD-ld} -m elf32_sparc"
5059          ;;
5060      esac
5061      ;;
5062    *64-bit*)
5063      case $host in
5064        x86_64-*linux*)
5065          LD="${LD-ld} -m elf_x86_64"
5066          ;;
5067        ppc*-*linux*|powerpc*-*linux*)
5068          LD="${LD-ld} -m elf64ppc"
5069          ;;
5070        s390*-*linux*)
5071          LD="${LD-ld} -m elf64_s390"
5072          ;;
5073        sparc*-*linux*)
5074          LD="${LD-ld} -m elf64_sparc"
5075          ;;
5076      esac
5077      ;;
5078    esac
5079  fi
5080  rm -rf conftest*
5081  ;;
5082
5083*-*-sco3.2v5*)
5084  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5085  SAVE_CFLAGS="$CFLAGS"
5086  CFLAGS="$CFLAGS -belf"
5087  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5088echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5089if test "${lt_cv_cc_needs_belf+set}" = set; then
5090  echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092  ac_ext=c
5093ac_cpp='$CPP $CPPFLAGS'
5094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097
5098     cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h.  */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h.  */
5104
5105int
5106main ()
5107{
5108
5109  ;
5110  return 0;
5111}
5112_ACEOF
5113rm -f conftest.$ac_objext conftest$ac_exeext
5114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115  (eval $ac_link) 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } &&
5122         { ac_try='test -z "$ac_c_werror_flag"
5123                         || test ! -s conftest.err'
5124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125  (eval $ac_try) 2>&5
5126  ac_status=$?
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); }; } &&
5129         { ac_try='test -s conftest$ac_exeext'
5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131  (eval $ac_try) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); }; }; then
5135  lt_cv_cc_needs_belf=yes
5136else
5137  echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140lt_cv_cc_needs_belf=no
5141fi
5142rm -f conftest.err conftest.$ac_objext \
5143      conftest$ac_exeext conftest.$ac_ext
5144     ac_ext=c
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150fi
5151echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5152echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5153  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5154    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5155    CFLAGS="$SAVE_CFLAGS"
5156  fi
5157  ;;
5158sparc*-*solaris*)
5159  # Find out which ABI we are using.
5160  echo 'int i;' > conftest.$ac_ext
5161  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162  (eval $ac_compile) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); }; then
5166    case `/usr/bin/file conftest.o` in
5167    *64-bit*)
5168      case $lt_cv_prog_gnu_ld in
5169      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5170      *)    LD="${LD-ld} -64" ;;
5171      esac
5172      ;;
5173    esac
5174  fi
5175  rm -rf conftest*
5176  ;;
5177
5178
5179esac
5180
5181need_locks="$enable_libtool_lock"
5182
5183
5184ac_ext=c
5185ac_cpp='$CPP $CPPFLAGS'
5186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5190echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5191# On Suns, sometimes $CPP names a directory.
5192if test -n "$CPP" && test -d "$CPP"; then
5193  CPP=
5194fi
5195if test -z "$CPP"; then
5196  if test "${ac_cv_prog_CPP+set}" = set; then
5197  echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199      # Double quotes because CPP needs to be expanded
5200    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5201    do
5202      ac_preproc_ok=false
5203for ac_c_preproc_warn_flag in '' yes
5204do
5205  # Use a header file that comes with gcc, so configuring glibc
5206  # with a fresh cross-compiler works.
5207  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5208  # <limits.h> exists even on freestanding compilers.
5209  # On the NeXT, cc -E runs the code through the compiler's parser,
5210  # not just through cpp. "Syntax error" is here to catch this case.
5211  cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h.  */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h.  */
5217#ifdef __STDC__
5218# include <limits.h>
5219#else
5220# include <assert.h>
5221#endif
5222                     Syntax error
5223_ACEOF
5224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5225  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5226  ac_status=$?
5227  grep -v '^ *+' conftest.er1 >conftest.err
5228  rm -f conftest.er1
5229  cat conftest.err >&5
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); } >/dev/null; then
5232  if test -s conftest.err; then
5233    ac_cpp_err=$ac_c_preproc_warn_flag
5234    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235  else
5236    ac_cpp_err=
5237  fi
5238else
5239  ac_cpp_err=yes
5240fi
5241if test -z "$ac_cpp_err"; then
5242  :
5243else
5244  echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247  # Broken: fails on valid input.
5248continue
5249fi
5250rm -f conftest.err conftest.$ac_ext
5251
5252  # OK, works on sane cases.  Now check whether non-existent headers
5253  # can be detected and how.
5254  cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h.  */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h.  */
5260#include <ac_nonexistent.h>
5261_ACEOF
5262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5263  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264  ac_status=$?
5265  grep -v '^ *+' conftest.er1 >conftest.err
5266  rm -f conftest.er1
5267  cat conftest.err >&5
5268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269  (exit $ac_status); } >/dev/null; then
5270  if test -s conftest.err; then
5271    ac_cpp_err=$ac_c_preproc_warn_flag
5272    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273  else
5274    ac_cpp_err=
5275  fi
5276else
5277  ac_cpp_err=yes
5278fi
5279if test -z "$ac_cpp_err"; then
5280  # Broken: success on invalid input.
5281continue
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286  # Passes both tests.
5287ac_preproc_ok=:
5288break
5289fi
5290rm -f conftest.err conftest.$ac_ext
5291
5292done
5293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5294rm -f conftest.err conftest.$ac_ext
5295if $ac_preproc_ok; then
5296  break
5297fi
5298
5299    done
5300    ac_cv_prog_CPP=$CPP
5301
5302fi
5303  CPP=$ac_cv_prog_CPP
5304else
5305  ac_cv_prog_CPP=$CPP
5306fi
5307echo "$as_me:$LINENO: result: $CPP" >&5
5308echo "${ECHO_T}$CPP" >&6
5309ac_preproc_ok=false
5310for ac_c_preproc_warn_flag in '' yes
5311do
5312  # Use a header file that comes with gcc, so configuring glibc
5313  # with a fresh cross-compiler works.
5314  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5315  # <limits.h> exists even on freestanding compilers.
5316  # On the NeXT, cc -E runs the code through the compiler's parser,
5317  # not just through cpp. "Syntax error" is here to catch this case.
5318  cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h.  */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h.  */
5324#ifdef __STDC__
5325# include <limits.h>
5326#else
5327# include <assert.h>
5328#endif
5329                     Syntax error
5330_ACEOF
5331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5332  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5333  ac_status=$?
5334  grep -v '^ *+' conftest.er1 >conftest.err
5335  rm -f conftest.er1
5336  cat conftest.err >&5
5337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); } >/dev/null; then
5339  if test -s conftest.err; then
5340    ac_cpp_err=$ac_c_preproc_warn_flag
5341    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5342  else
5343    ac_cpp_err=
5344  fi
5345else
5346  ac_cpp_err=yes
5347fi
5348if test -z "$ac_cpp_err"; then
5349  :
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354  # Broken: fails on valid input.
5355continue
5356fi
5357rm -f conftest.err conftest.$ac_ext
5358
5359  # OK, works on sane cases.  Now check whether non-existent headers
5360  # can be detected and how.
5361  cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h.  */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h.  */
5367#include <ac_nonexistent.h>
5368_ACEOF
5369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371  ac_status=$?
5372  grep -v '^ *+' conftest.er1 >conftest.err
5373  rm -f conftest.er1
5374  cat conftest.err >&5
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); } >/dev/null; then
5377  if test -s conftest.err; then
5378    ac_cpp_err=$ac_c_preproc_warn_flag
5379    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5380  else
5381    ac_cpp_err=
5382  fi
5383else
5384  ac_cpp_err=yes
5385fi
5386if test -z "$ac_cpp_err"; then
5387  # Broken: success on invalid input.
5388continue
5389else
5390  echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393  # Passes both tests.
5394ac_preproc_ok=:
5395break
5396fi
5397rm -f conftest.err conftest.$ac_ext
5398
5399done
5400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401rm -f conftest.err conftest.$ac_ext
5402if $ac_preproc_ok; then
5403  :
5404else
5405  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5406See \`config.log' for more details." >&5
5407echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5408See \`config.log' for more details." >&2;}
5409   { (exit 1); exit 1; }; }
5410fi
5411
5412ac_ext=c
5413ac_cpp='$CPP $CPPFLAGS'
5414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5420echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5421if test "${ac_cv_header_stdc+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424  cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h.  */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h.  */
5430#include <stdlib.h>
5431#include <stdarg.h>
5432#include <string.h>
5433#include <float.h>
5434
5435int
5436main ()
5437{
5438
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443rm -f conftest.$ac_objext
5444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445  (eval $ac_compile) 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } &&
5452         { ac_try='test -z "$ac_c_werror_flag"
5453                         || test ! -s conftest.err'
5454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455  (eval $ac_try) 2>&5
5456  ac_status=$?
5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); }; } &&
5459         { ac_try='test -s conftest.$ac_objext'
5460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461  (eval $ac_try) 2>&5
5462  ac_status=$?
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); }; }; then
5465  ac_cv_header_stdc=yes
5466else
5467  echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470ac_cv_header_stdc=no
5471fi
5472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473
5474if test $ac_cv_header_stdc = yes; then
5475  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5476  cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482#include <string.h>
5483
5484_ACEOF
5485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5486  $EGREP "memchr" >/dev/null 2>&1; then
5487  :
5488else
5489  ac_cv_header_stdc=no
5490fi
5491rm -f conftest*
5492
5493fi
5494
5495if test $ac_cv_header_stdc = yes; then
5496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5497  cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h.  */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h.  */
5503#include <stdlib.h>
5504
5505_ACEOF
5506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5507  $EGREP "free" >/dev/null 2>&1; then
5508  :
5509else
5510  ac_cv_header_stdc=no
5511fi
5512rm -f conftest*
5513
5514fi
5515
5516if test $ac_cv_header_stdc = yes; then
5517  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5518  if test "$cross_compiling" = yes; then
5519  :
5520else
5521  cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h.  */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h.  */
5527#include <ctype.h>
5528#if ((' ' & 0x0FF) == 0x020)
5529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5531#else
5532# define ISLOWER(c) \
5533                   (('a' <= (c) && (c) <= 'i') \
5534                     || ('j' <= (c) && (c) <= 'r') \
5535                     || ('s' <= (c) && (c) <= 'z'))
5536# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5537#endif
5538
5539#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5540int
5541main ()
5542{
5543  int i;
5544  for (i = 0; i < 256; i++)
5545    if (XOR (islower (i), ISLOWER (i))
5546        || toupper (i) != TOUPPER (i))
5547      exit(2);
5548  exit (0);
5549}
5550_ACEOF
5551rm -f conftest$ac_exeext
5552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553  (eval $ac_link) 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558  (eval $ac_try) 2>&5
5559  ac_status=$?
5560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561  (exit $ac_status); }; }; then
5562  :
5563else
5564  echo "$as_me: program exited with status $ac_status" >&5
5565echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568( exit $ac_status )
5569ac_cv_header_stdc=no
5570fi
5571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5572fi
5573fi
5574fi
5575echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5576echo "${ECHO_T}$ac_cv_header_stdc" >&6
5577if test $ac_cv_header_stdc = yes; then
5578
5579cat >>confdefs.h <<\_ACEOF
5580#define STDC_HEADERS 1
5581_ACEOF
5582
5583fi
5584
5585# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5596                  inttypes.h stdint.h unistd.h
5597do
5598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5599echo "$as_me:$LINENO: checking for $ac_header" >&5
5600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602  echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604  cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610$ac_includes_default
5611
5612#include <$ac_header>
5613_ACEOF
5614rm -f conftest.$ac_objext
5615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616  (eval $ac_compile) 2>conftest.er1
5617  ac_status=$?
5618  grep -v '^ *+' conftest.er1 >conftest.err
5619  rm -f conftest.er1
5620  cat conftest.err >&5
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); } &&
5623         { ac_try='test -z "$ac_c_werror_flag"
5624                         || test ! -s conftest.err'
5625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626  (eval $ac_try) 2>&5
5627  ac_status=$?
5628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629  (exit $ac_status); }; } &&
5630         { ac_try='test -s conftest.$ac_objext'
5631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632  (eval $ac_try) 2>&5
5633  ac_status=$?
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); }; }; then
5636  eval "$as_ac_Header=yes"
5637else
5638  echo "$as_me: failed program was:" >&5
5639sed 's/^/| /' conftest.$ac_ext >&5
5640
5641eval "$as_ac_Header=no"
5642fi
5643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5644fi
5645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5647if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648  cat >>confdefs.h <<_ACEOF
5649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650_ACEOF
5651
5652fi
5653
5654done
5655
5656
5657
5658for ac_header in dlfcn.h
5659do
5660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661if eval "test \"\${$as_ac_Header+set}\" = set"; then
5662  echo "$as_me:$LINENO: checking for $ac_header" >&5
5663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665  echo $ECHO_N "(cached) $ECHO_C" >&6
5666fi
5667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5669else
5670  # Is the header compilable?
5671echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5673cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h.  */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h.  */
5679$ac_includes_default
5680#include <$ac_header>
5681_ACEOF
5682rm -f conftest.$ac_objext
5683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684  (eval $ac_compile) 2>conftest.er1
5685  ac_status=$?
5686  grep -v '^ *+' conftest.er1 >conftest.err
5687  rm -f conftest.er1
5688  cat conftest.err >&5
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); } &&
5691         { ac_try='test -z "$ac_c_werror_flag"
5692                         || test ! -s conftest.err'
5693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694  (eval $ac_try) 2>&5
5695  ac_status=$?
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); }; } &&
5698         { ac_try='test -s conftest.$ac_objext'
5699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700  (eval $ac_try) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }; }; then
5704  ac_header_compiler=yes
5705else
5706  echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
5709ac_header_compiler=no
5710fi
5711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5713echo "${ECHO_T}$ac_header_compiler" >&6
5714
5715# Is the header present?
5716echo "$as_me:$LINENO: checking $ac_header presence" >&5
5717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5718cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h.  */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h.  */
5724#include <$ac_header>
5725_ACEOF
5726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5728  ac_status=$?
5729  grep -v '^ *+' conftest.er1 >conftest.err
5730  rm -f conftest.er1
5731  cat conftest.err >&5
5732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733  (exit $ac_status); } >/dev/null; then
5734  if test -s conftest.err; then
5735    ac_cpp_err=$ac_c_preproc_warn_flag
5736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5737  else
5738    ac_cpp_err=
5739  fi
5740else
5741  ac_cpp_err=yes
5742fi
5743if test -z "$ac_cpp_err"; then
5744  ac_header_preproc=yes
5745else
5746  echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749  ac_header_preproc=no
5750fi
5751rm -f conftest.err conftest.$ac_ext
5752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5753echo "${ECHO_T}$ac_header_preproc" >&6
5754
5755# So?  What about this header?
5756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5757  yes:no: )
5758    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5762    ac_header_preproc=yes
5763    ;;
5764  no:yes:* )
5765    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5767    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5768echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5769    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5771    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5772echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5777    (
5778      cat <<\_ASBOX
5779## --------------------------------------------------------------- ##
5780## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5781## --------------------------------------------------------------- ##
5782_ASBOX
5783    ) |
5784      sed "s/^/$as_me: WARNING:     /" >&2
5785    ;;
5786esac
5787echo "$as_me:$LINENO: checking for $ac_header" >&5
5788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5789if eval "test \"\${$as_ac_Header+set}\" = set"; then
5790  echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792  eval "$as_ac_Header=\$ac_header_preproc"
5793fi
5794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5796
5797fi
5798if test `eval echo '${'$as_ac_Header'}'` = yes; then
5799  cat >>confdefs.h <<_ACEOF
5800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5801_ACEOF
5802
5803fi
5804
5805done
5806
5807ac_ext=cc
5808ac_cpp='$CXXCPP $CPPFLAGS'
5809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812if test -n "$ac_tool_prefix"; then
5813  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5814  do
5815    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5817echo "$as_me:$LINENO: checking for $ac_word" >&5
5818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5819if test "${ac_cv_prog_CXX+set}" = set; then
5820  echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822  if test -n "$CXX"; then
5823  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828  IFS=$as_save_IFS
5829  test -z "$as_dir" && as_dir=.
5830  for ac_exec_ext in '' $ac_executable_extensions; do
5831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834    break 2
5835  fi
5836done
5837done
5838
5839fi
5840fi
5841CXX=$ac_cv_prog_CXX
5842if test -n "$CXX"; then
5843  echo "$as_me:$LINENO: result: $CXX" >&5
5844echo "${ECHO_T}$CXX" >&6
5845else
5846  echo "$as_me:$LINENO: result: no" >&5
5847echo "${ECHO_T}no" >&6
5848fi
5849
5850    test -n "$CXX" && break
5851  done
5852fi
5853if test -z "$CXX"; then
5854  ac_ct_CXX=$CXX
5855  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5856do
5857  # Extract the first word of "$ac_prog", so it can be a program name with args.
5858set dummy $ac_prog; ac_word=$2
5859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864  if test -n "$ac_ct_CXX"; then
5865  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872  for ac_exec_ext in '' $ac_executable_extensions; do
5873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_ac_ct_CXX="$ac_prog"
5875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879done
5880
5881fi
5882fi
5883ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5884if test -n "$ac_ct_CXX"; then
5885  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5886echo "${ECHO_T}$ac_ct_CXX" >&6
5887else
5888  echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890fi
5891
5892  test -n "$ac_ct_CXX" && break
5893done
5894test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5895
5896  CXX=$ac_ct_CXX
5897fi
5898
5899
5900# Provide some information about the compiler.
5901echo "$as_me:$LINENO:" \
5902     "checking for C++ compiler version" >&5
5903ac_compiler=`set X $ac_compile; echo $2`
5904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5905  (eval $ac_compiler --version </dev/null >&5) 2>&5
5906  ac_status=$?
5907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908  (exit $ac_status); }
5909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5910  (eval $ac_compiler -v </dev/null >&5) 2>&5
5911  ac_status=$?
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); }
5914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5915  (eval $ac_compiler -V </dev/null >&5) 2>&5
5916  ac_status=$?
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); }
5919
5920echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5921echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5922if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5923  echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925  cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h.  */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h.  */
5931
5932int
5933main ()
5934{
5935#ifndef __GNUC__
5936       choke me
5937#endif
5938
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext
5944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945  (eval $ac_compile) 2>conftest.er1
5946  ac_status=$?
5947  grep -v '^ *+' conftest.er1 >conftest.err
5948  rm -f conftest.er1
5949  cat conftest.err >&5
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); } &&
5952         { ac_try='test -z "$ac_cxx_werror_flag"
5953                         || test ! -s conftest.err'
5954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955  (eval $ac_try) 2>&5
5956  ac_status=$?
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); }; } &&
5959         { ac_try='test -s conftest.$ac_objext'
5960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961  (eval $ac_try) 2>&5
5962  ac_status=$?
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); }; }; then
5965  ac_compiler_gnu=yes
5966else
5967  echo "$as_me: failed program was:" >&5
5968sed 's/^/| /' conftest.$ac_ext >&5
5969
5970ac_compiler_gnu=no
5971fi
5972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5974
5975fi
5976echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5977echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5978GXX=`test $ac_compiler_gnu = yes && echo yes`
5979ac_test_CXXFLAGS=${CXXFLAGS+set}
5980ac_save_CXXFLAGS=$CXXFLAGS
5981CXXFLAGS="-g"
5982echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5983echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5984if test "${ac_cv_prog_cxx_g+set}" = set; then
5985  echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987  cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h.  */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h.  */
5993
5994int
5995main ()
5996{
5997
5998  ;
5999  return 0;
6000}
6001_ACEOF
6002rm -f conftest.$ac_objext
6003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004  (eval $ac_compile) 2>conftest.er1
6005  ac_status=$?
6006  grep -v '^ *+' conftest.er1 >conftest.err
6007  rm -f conftest.er1
6008  cat conftest.err >&5
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); } &&
6011         { ac_try='test -z "$ac_cxx_werror_flag"
6012                         || test ! -s conftest.err'
6013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014  (eval $ac_try) 2>&5
6015  ac_status=$?
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); }; } &&
6018         { ac_try='test -s conftest.$ac_objext'
6019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020  (eval $ac_try) 2>&5
6021  ac_status=$?
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); }; }; then
6024  ac_cv_prog_cxx_g=yes
6025else
6026  echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029ac_cv_prog_cxx_g=no
6030fi
6031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032fi
6033echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6034echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6035if test "$ac_test_CXXFLAGS" = set; then
6036  CXXFLAGS=$ac_save_CXXFLAGS
6037elif test $ac_cv_prog_cxx_g = yes; then
6038  if test "$GXX" = yes; then
6039    CXXFLAGS="-g -O2"
6040  else
6041    CXXFLAGS="-g"
6042  fi
6043else
6044  if test "$GXX" = yes; then
6045    CXXFLAGS="-O2"
6046  else
6047    CXXFLAGS=
6048  fi
6049fi
6050for ac_declaration in \
6051   '' \
6052   'extern "C" void std::exit (int) throw (); using std::exit;' \
6053   'extern "C" void std::exit (int); using std::exit;' \
6054   'extern "C" void exit (int) throw ();' \
6055   'extern "C" void exit (int);' \
6056   'void exit (int);'
6057do
6058  cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h.  */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h.  */
6064$ac_declaration
6065#include <stdlib.h>
6066int
6067main ()
6068{
6069exit (42);
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074rm -f conftest.$ac_objext
6075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076  (eval $ac_compile) 2>conftest.er1
6077  ac_status=$?
6078  grep -v '^ *+' conftest.er1 >conftest.err
6079  rm -f conftest.er1
6080  cat conftest.err >&5
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); } &&
6083         { ac_try='test -z "$ac_cxx_werror_flag"
6084                         || test ! -s conftest.err'
6085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086  (eval $ac_try) 2>&5
6087  ac_status=$?
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); }; } &&
6090         { ac_try='test -s conftest.$ac_objext'
6091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092  (eval $ac_try) 2>&5
6093  ac_status=$?
6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095  (exit $ac_status); }; }; then
6096  :
6097else
6098  echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101continue
6102fi
6103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104  cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h.  */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h.  */
6110$ac_declaration
6111int
6112main ()
6113{
6114exit (42);
6115  ;
6116  return 0;
6117}
6118_ACEOF
6119rm -f conftest.$ac_objext
6120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121  (eval $ac_compile) 2>conftest.er1
6122  ac_status=$?
6123  grep -v '^ *+' conftest.er1 >conftest.err
6124  rm -f conftest.er1
6125  cat conftest.err >&5
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); } &&
6128         { ac_try='test -z "$ac_cxx_werror_flag"
6129                         || test ! -s conftest.err'
6130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131  (eval $ac_try) 2>&5
6132  ac_status=$?
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); }; } &&
6135         { ac_try='test -s conftest.$ac_objext'
6136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137  (eval $ac_try) 2>&5
6138  ac_status=$?
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); }; }; then
6141  break
6142else
6143  echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146fi
6147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148done
6149rm -f conftest*
6150if test -n "$ac_declaration"; then
6151  echo '#ifdef __cplusplus' >>confdefs.h
6152  echo $ac_declaration      >>confdefs.h
6153  echo '#endif'             >>confdefs.h
6154fi
6155
6156ac_ext=cc
6157ac_cpp='$CXXCPP $CPPFLAGS'
6158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6161
6162depcc="$CXX"  am_compiler_list=
6163
6164echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6165echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6166if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6170  # We make a subdir and do the tests there.  Otherwise we can end up
6171  # making bogus files that we don't know about and never remove.  For
6172  # instance it was reported that on HP-UX the gcc test will end up
6173  # making a dummy file named `D' -- because `-MD' means `put the output
6174  # in D'.
6175  mkdir conftest.dir
6176  # Copy depcomp to subdir because otherwise we won't find it if we're
6177  # using a relative directory.
6178  cp "$am_depcomp" conftest.dir
6179  cd conftest.dir
6180  # We will build objects and dependencies in a subdirectory because
6181  # it helps to detect inapplicable dependency modes.  For instance
6182  # both Tru64's cc and ICC support -MD to output dependencies as a
6183  # side effect of compilation, but ICC will put the dependencies in
6184  # the current directory while Tru64 will put them in the object
6185  # directory.
6186  mkdir sub
6187
6188  am_cv_CXX_dependencies_compiler_type=none
6189  if test "$am_compiler_list" = ""; then
6190     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6191  fi
6192  for depmode in $am_compiler_list; do
6193    # Setup a source with many dependencies, because some compilers
6194    # like to wrap large dependency lists on column 80 (with \), and
6195    # we should not choose a depcomp mode which is confused by this.
6196    #
6197    # We need to recreate these files for each test, as the compiler may
6198    # overwrite some of them when testing with obscure command lines.
6199    # This happens at least with the AIX C compiler.
6200    : > sub/conftest.c
6201    for i in 1 2 3 4 5 6; do
6202      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6203      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6204      # Solaris 8's {/usr,}/bin/sh.
6205      touch sub/conftst$i.h
6206    done
6207    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6208
6209    case $depmode in
6210    nosideeffect)
6211      # after this tag, mechanisms are not by side-effect, so they'll
6212      # only be used when explicitly requested
6213      if test "x$enable_dependency_tracking" = xyes; then
6214        continue
6215      else
6216        break
6217      fi
6218      ;;
6219    none) break ;;
6220    esac
6221    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6222    # mode.  It turns out that the SunPro C++ compiler does not properly
6223    # handle `-M -o', and we need to detect this.
6224    if depmode=$depmode \
6225       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6226       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6227       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6228         >/dev/null 2>conftest.err &&
6229       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6230       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6231       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6232      # icc doesn't choke on unknown options, it will just issue warnings
6233      # or remarks (even with -Werror).  So we grep stderr for any message
6234      # that says an option was ignored or not supported.
6235      # When given -MP, icc 7.0 and 7.1 complain thusly:
6236      #   icc: Command line warning: ignoring option '-M'; no argument required
6237      # The diagnosis changed in icc 8.0:
6238      #   icc: Command line remark: option '-MP' not supported
6239      if (grep 'ignoring option' conftest.err ||
6240          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6241        am_cv_CXX_dependencies_compiler_type=$depmode
6242        break
6243      fi
6244    fi
6245  done
6246
6247  cd ..
6248  rm -rf conftest.dir
6249else
6250  am_cv_CXX_dependencies_compiler_type=none
6251fi
6252
6253fi
6254echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6255echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6256CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6257
6258
6259
6260if
6261  test "x$enable_dependency_tracking" != xno \
6262  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6263  am__fastdepCXX_TRUE=
6264  am__fastdepCXX_FALSE='#'
6265else
6266  am__fastdepCXX_TRUE='#'
6267  am__fastdepCXX_FALSE=
6268fi
6269
6270
6271
6272
6273if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6274    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6275    (test "X$CXX" != "Xg++"))) ; then
6276  ac_ext=cc
6277ac_cpp='$CXXCPP $CPPFLAGS'
6278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6281echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6282echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6283if test -z "$CXXCPP"; then
6284  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6285  echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287      # Double quotes because CXXCPP needs to be expanded
6288    for CXXCPP in "$CXX -E" "/lib/cpp"
6289    do
6290      ac_preproc_ok=false
6291for ac_cxx_preproc_warn_flag in '' yes
6292do
6293  # Use a header file that comes with gcc, so configuring glibc
6294  # with a fresh cross-compiler works.
6295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6296  # <limits.h> exists even on freestanding compilers.
6297  # On the NeXT, cc -E runs the code through the compiler's parser,
6298  # not just through cpp. "Syntax error" is here to catch this case.
6299  cat >conftest.$ac_ext <<_ACEOF
6300/* confdefs.h.  */
6301_ACEOF
6302cat confdefs.h >>conftest.$ac_ext
6303cat >>conftest.$ac_ext <<_ACEOF
6304/* end confdefs.h.  */
6305#ifdef __STDC__
6306# include <limits.h>
6307#else
6308# include <assert.h>
6309#endif
6310                     Syntax error
6311_ACEOF
6312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6314  ac_status=$?
6315  grep -v '^ *+' conftest.er1 >conftest.err
6316  rm -f conftest.er1
6317  cat conftest.err >&5
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); } >/dev/null; then
6320  if test -s conftest.err; then
6321    ac_cpp_err=$ac_cxx_preproc_warn_flag
6322    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6323  else
6324    ac_cpp_err=
6325  fi
6326else
6327  ac_cpp_err=yes
6328fi
6329if test -z "$ac_cpp_err"; then
6330  :
6331else
6332  echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
6335  # Broken: fails on valid input.
6336continue
6337fi
6338rm -f conftest.err conftest.$ac_ext
6339
6340  # OK, works on sane cases.  Now check whether non-existent headers
6341  # can be detected and how.
6342  cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h.  */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h.  */
6348#include <ac_nonexistent.h>
6349_ACEOF
6350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6352  ac_status=$?
6353  grep -v '^ *+' conftest.er1 >conftest.err
6354  rm -f conftest.er1
6355  cat conftest.err >&5
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); } >/dev/null; then
6358  if test -s conftest.err; then
6359    ac_cpp_err=$ac_cxx_preproc_warn_flag
6360    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6361  else
6362    ac_cpp_err=
6363  fi
6364else
6365  ac_cpp_err=yes
6366fi
6367if test -z "$ac_cpp_err"; then
6368  # Broken: success on invalid input.
6369continue
6370else
6371  echo "$as_me: failed program was:" >&5
6372sed 's/^/| /' conftest.$ac_ext >&5
6373
6374  # Passes both tests.
6375ac_preproc_ok=:
6376break
6377fi
6378rm -f conftest.err conftest.$ac_ext
6379
6380done
6381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382rm -f conftest.err conftest.$ac_ext
6383if $ac_preproc_ok; then
6384  break
6385fi
6386
6387    done
6388    ac_cv_prog_CXXCPP=$CXXCPP
6389
6390fi
6391  CXXCPP=$ac_cv_prog_CXXCPP
6392else
6393  ac_cv_prog_CXXCPP=$CXXCPP
6394fi
6395echo "$as_me:$LINENO: result: $CXXCPP" >&5
6396echo "${ECHO_T}$CXXCPP" >&6
6397ac_preproc_ok=false
6398for ac_cxx_preproc_warn_flag in '' yes
6399do
6400  # Use a header file that comes with gcc, so configuring glibc
6401  # with a fresh cross-compiler works.
6402  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403  # <limits.h> exists even on freestanding compilers.
6404  # On the NeXT, cc -E runs the code through the compiler's parser,
6405  # not just through cpp. "Syntax error" is here to catch this case.
6406  cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h.  */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h.  */
6412#ifdef __STDC__
6413# include <limits.h>
6414#else
6415# include <assert.h>
6416#endif
6417                     Syntax error
6418_ACEOF
6419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6421  ac_status=$?
6422  grep -v '^ *+' conftest.er1 >conftest.err
6423  rm -f conftest.er1
6424  cat conftest.err >&5
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); } >/dev/null; then
6427  if test -s conftest.err; then
6428    ac_cpp_err=$ac_cxx_preproc_warn_flag
6429    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6430  else
6431    ac_cpp_err=
6432  fi
6433else
6434  ac_cpp_err=yes
6435fi
6436if test -z "$ac_cpp_err"; then
6437  :
6438else
6439  echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442  # Broken: fails on valid input.
6443continue
6444fi
6445rm -f conftest.err conftest.$ac_ext
6446
6447  # OK, works on sane cases.  Now check whether non-existent headers
6448  # can be detected and how.
6449  cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h.  */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h.  */
6455#include <ac_nonexistent.h>
6456_ACEOF
6457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6459  ac_status=$?
6460  grep -v '^ *+' conftest.er1 >conftest.err
6461  rm -f conftest.er1
6462  cat conftest.err >&5
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); } >/dev/null; then
6465  if test -s conftest.err; then
6466    ac_cpp_err=$ac_cxx_preproc_warn_flag
6467    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6468  else
6469    ac_cpp_err=
6470  fi
6471else
6472  ac_cpp_err=yes
6473fi
6474if test -z "$ac_cpp_err"; then
6475  # Broken: success on invalid input.
6476continue
6477else
6478  echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481  # Passes both tests.
6482ac_preproc_ok=:
6483break
6484fi
6485rm -f conftest.err conftest.$ac_ext
6486
6487done
6488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6489rm -f conftest.err conftest.$ac_ext
6490if $ac_preproc_ok; then
6491  :
6492else
6493  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6494See \`config.log' for more details." >&5
6495echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6496See \`config.log' for more details." >&2;}
6497   { (exit 1); exit 1; }; }
6498fi
6499
6500ac_ext=cc
6501ac_cpp='$CXXCPP $CPPFLAGS'
6502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6505
6506fi
6507
6508
6509ac_ext=f
6510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6512ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6513if test -n "$ac_tool_prefix"; then
6514  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6515  do
6516    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6517set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6518echo "$as_me:$LINENO: checking for $ac_word" >&5
6519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6520if test "${ac_cv_prog_F77+set}" = set; then
6521  echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523  if test -n "$F77"; then
6524  ac_cv_prog_F77="$F77" # Let the user override the test.
6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529  IFS=$as_save_IFS
6530  test -z "$as_dir" && as_dir=.
6531  for ac_exec_ext in '' $ac_executable_extensions; do
6532  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535    break 2
6536  fi
6537done
6538done
6539
6540fi
6541fi
6542F77=$ac_cv_prog_F77
6543if test -n "$F77"; then
6544  echo "$as_me:$LINENO: result: $F77" >&5
6545echo "${ECHO_T}$F77" >&6
6546else
6547  echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6
6549fi
6550
6551    test -n "$F77" && break
6552  done
6553fi
6554if test -z "$F77"; then
6555  ac_ct_F77=$F77
6556  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6557do
6558  # Extract the first word of "$ac_prog", so it can be a program name with args.
6559set dummy $ac_prog; ac_word=$2
6560echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6562if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  if test -n "$ac_ct_F77"; then
6566  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6567else
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571  IFS=$as_save_IFS
6572  test -z "$as_dir" && as_dir=.
6573  for ac_exec_ext in '' $ac_executable_extensions; do
6574  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575    ac_cv_prog_ac_ct_F77="$ac_prog"
6576    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577    break 2
6578  fi
6579done
6580done
6581
6582fi
6583fi
6584ac_ct_F77=$ac_cv_prog_ac_ct_F77
6585if test -n "$ac_ct_F77"; then
6586  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6587echo "${ECHO_T}$ac_ct_F77" >&6
6588else
6589  echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591fi
6592
6593  test -n "$ac_ct_F77" && break
6594done
6595
6596  F77=$ac_ct_F77
6597fi
6598
6599
6600# Provide some information about the compiler.
6601echo "$as_me:6601:" \
6602     "checking for Fortran 77 compiler version" >&5
6603ac_compiler=`set X $ac_compile; echo $2`
6604{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6605  (eval $ac_compiler --version </dev/null >&5) 2>&5
6606  ac_status=$?
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); }
6609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6610  (eval $ac_compiler -v </dev/null >&5) 2>&5
6611  ac_status=$?
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); }
6614{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6615  (eval $ac_compiler -V </dev/null >&5) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }
6619rm -f a.out
6620
6621# If we don't use `.F' as extension, the preprocessor is not run on the
6622# input file.  (Note that this only needs to work for GNU compilers.)
6623ac_save_ext=$ac_ext
6624ac_ext=F
6625echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6626echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6627if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6628  echo $ECHO_N "(cached) $ECHO_C" >&6
6629else
6630  cat >conftest.$ac_ext <<_ACEOF
6631      program main
6632#ifndef __GNUC__
6633       choke me
6634#endif
6635
6636      end
6637_ACEOF
6638rm -f conftest.$ac_objext
6639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640  (eval $ac_compile) 2>conftest.er1
6641  ac_status=$?
6642  grep -v '^ *+' conftest.er1 >conftest.err
6643  rm -f conftest.er1
6644  cat conftest.err >&5
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); } &&
6647         { ac_try='test -z "$ac_f77_werror_flag"
6648                         || test ! -s conftest.err'
6649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650  (eval $ac_try) 2>&5
6651  ac_status=$?
6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); }; } &&
6654         { ac_try='test -s conftest.$ac_objext'
6655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656  (eval $ac_try) 2>&5
6657  ac_status=$?
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); }; }; then
6660  ac_compiler_gnu=yes
6661else
6662  echo "$as_me: failed program was:" >&5
6663sed 's/^/| /' conftest.$ac_ext >&5
6664
6665ac_compiler_gnu=no
6666fi
6667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6668ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6669
6670fi
6671echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6672echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6673ac_ext=$ac_save_ext
6674ac_test_FFLAGS=${FFLAGS+set}
6675ac_save_FFLAGS=$FFLAGS
6676FFLAGS=
6677echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6678echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6679if test "${ac_cv_prog_f77_g+set}" = set; then
6680  echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682  FFLAGS=-g
6683cat >conftest.$ac_ext <<_ACEOF
6684      program main
6685
6686      end
6687_ACEOF
6688rm -f conftest.$ac_objext
6689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690  (eval $ac_compile) 2>conftest.er1
6691  ac_status=$?
6692  grep -v '^ *+' conftest.er1 >conftest.err
6693  rm -f conftest.er1
6694  cat conftest.err >&5
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); } &&
6697         { ac_try='test -z "$ac_f77_werror_flag"
6698                         || test ! -s conftest.err'
6699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700  (eval $ac_try) 2>&5
6701  ac_status=$?
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); }; } &&
6704         { ac_try='test -s conftest.$ac_objext'
6705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706  (eval $ac_try) 2>&5
6707  ac_status=$?
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); }; }; then
6710  ac_cv_prog_f77_g=yes
6711else
6712  echo "$as_me: failed program was:" >&5
6713sed 's/^/| /' conftest.$ac_ext >&5
6714
6715ac_cv_prog_f77_g=no
6716fi
6717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719fi
6720echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6721echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6722if test "$ac_test_FFLAGS" = set; then
6723  FFLAGS=$ac_save_FFLAGS
6724elif test $ac_cv_prog_f77_g = yes; then
6725  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6726    FFLAGS="-g -O2"
6727  else
6728    FFLAGS="-g"
6729  fi
6730else
6731  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6732    FFLAGS="-O2"
6733  else
6734    FFLAGS=
6735  fi
6736fi
6737
6738G77=`test $ac_compiler_gnu = yes && echo yes`
6739ac_ext=c
6740ac_cpp='$CPP $CPPFLAGS'
6741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743ac_compiler_gnu=$ac_cv_c_compiler_gnu
6744
6745
6746
6747# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6748
6749# find the maximum length of command line arguments
6750echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6751echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6752if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755    i=0
6756  teststring="ABCD"
6757
6758  case $build_os in
6759  msdosdjgpp*)
6760    # On DJGPP, this test can blow up pretty badly due to problems in libc
6761    # (any single argument exceeding 2000 bytes causes a buffer overrun
6762    # during glob expansion).  Even if it were fixed, the result of this
6763    # check would be larger than it should be.
6764    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6765    ;;
6766
6767  gnu*)
6768    # Under GNU Hurd, this test is not required because there is
6769    # no limit to the length of command line arguments.
6770    # Libtool will interpret -1 as no limit whatsoever
6771    lt_cv_sys_max_cmd_len=-1;
6772    ;;
6773
6774  cygwin* | mingw*)
6775    # On Win9x/ME, this test blows up -- it succeeds, but takes
6776    # about 5 minutes as the teststring grows exponentially.
6777    # Worse, since 9x/ME are not pre-emptively multitasking,
6778    # you end up with a "frozen" computer, even though with patience
6779    # the test eventually succeeds (with a max line length of 256k).
6780    # Instead, let's just punt: use the minimum linelength reported by
6781    # all of the supported platforms: 8192 (on NT/2K/XP).
6782    lt_cv_sys_max_cmd_len=8192;
6783    ;;
6784
6785  amigaos*)
6786    # On AmigaOS with pdksh, this test takes hours, literally.
6787    # So we just punt and use a minimum line length of 8192.
6788    lt_cv_sys_max_cmd_len=8192;
6789    ;;
6790
6791  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6792    # This has been around since 386BSD, at least.  Likely further.
6793    if test -x /sbin/sysctl; then
6794      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6795    elif test -x /usr/sbin/sysctl; then
6796      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6797    else
6798      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6799    fi
6800    # And add a safety zone
6801    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6802    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6803    ;;
6804
6805  interix*)
6806    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6807    lt_cv_sys_max_cmd_len=196608
6808    ;;
6809
6810  osf*)
6811    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6812    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6813    # nice to cause kernel panics so lets avoid the loop below.
6814    # First set a reasonable default.
6815    lt_cv_sys_max_cmd_len=16384
6816    #
6817    if test -x /sbin/sysconfig; then
6818      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6819        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6820      esac
6821    fi
6822    ;;
6823  sco3.2v5*)
6824    lt_cv_sys_max_cmd_len=102400
6825    ;;
6826  sysv5* | sco5v6* | sysv4.2uw2*)
6827    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6828    if test -n "$kargmax"; then
6829      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6830    else
6831      lt_cv_sys_max_cmd_len=32768
6832    fi
6833    ;;
6834  *)
6835    # If test is not a shell built-in, we'll probably end up computing a
6836    # maximum length that is only half of the actual maximum length, but
6837    # we can't tell.
6838    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6839    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6840               = "XX$teststring") >/dev/null 2>&1 &&
6841            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6842            lt_cv_sys_max_cmd_len=$new_result &&
6843            test $i != 17 # 1/2 MB should be enough
6844    do
6845      i=`expr $i + 1`
6846      teststring=$teststring$teststring
6847    done
6848    teststring=
6849    # Add a significant safety factor because C++ compilers can tack on massive
6850    # amounts of additional arguments before passing them to the linker.
6851    # It appears as though 1/2 is a usable value.
6852    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6853    ;;
6854  esac
6855
6856fi
6857
6858if test -n $lt_cv_sys_max_cmd_len ; then
6859  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6860echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6861else
6862  echo "$as_me:$LINENO: result: none" >&5
6863echo "${ECHO_T}none" >&6
6864fi
6865
6866
6867
6868
6869# Check for command to grab the raw symbol name followed by C symbol from nm.
6870echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6871echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6872if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6873  echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875
6876# These are sane defaults that work on at least a few old systems.
6877# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6878
6879# Character class describing NM global symbol codes.
6880symcode='[BCDEGRST]'
6881
6882# Regexp to match symbols that can be accessed directly from C.
6883sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6884
6885# Transform an extracted symbol line into a proper C declaration
6886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6887
6888# Transform an extracted symbol line into symbol name and symbol address
6889lt_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
6891# Define system-specific variables.
6892case $host_os in
6893aix*)
6894  symcode='[BCDT]'
6895  ;;
6896cygwin* | mingw* | pw32*)
6897  symcode='[ABCDGISTW]'
6898  ;;
6899hpux*) # Its linker distinguishes data from code symbols
6900  if test "$host_cpu" = ia64; then
6901    symcode='[ABCDEGRST]'
6902  fi
6903  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904  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'"
6905  ;;
6906linux*)
6907  if test "$host_cpu" = ia64; then
6908    symcode='[ABCDGIRSTW]'
6909    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6910    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'"
6911  fi
6912  ;;
6913irix* | nonstopux*)
6914  symcode='[BCDEGRST]'
6915  ;;
6916osf*)
6917  symcode='[BCDEGQRST]'
6918  ;;
6919solaris*)
6920  symcode='[BDRT]'
6921  ;;
6922sco3.2v5*)
6923  symcode='[DT]'
6924  ;;
6925sysv4.2uw2*)
6926  symcode='[DT]'
6927  ;;
6928sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929  symcode='[ABDT]'
6930  ;;
6931sysv4)
6932  symcode='[DFNSTU]'
6933  ;;
6934esac
6935
6936# Handle CRLF in mingw tool chain
6937opt_cr=
6938case $build_os in
6939mingw*)
6940  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6941  ;;
6942esac
6943
6944# If we're using GNU nm, then use its standard symbol codes.
6945case `$NM -V 2>&1` in
6946*GNU* | *'with BFD'*)
6947  symcode='[ABCDGIRSTW]' ;;
6948esac
6949
6950# Try without a prefix undercore, then with it.
6951for ac_symprfx in "" "_"; do
6952
6953  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6954  symxfrm="\\1 $ac_symprfx\\2 \\2"
6955
6956  # Write the raw and C identifiers.
6957  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6958
6959  # Check to see that the pipe works correctly.
6960  pipe_works=no
6961
6962  rm -f conftest*
6963  cat > conftest.$ac_ext <<EOF
6964#ifdef __cplusplus
6965extern "C" {
6966#endif
6967char nm_test_var;
6968void nm_test_func(){}
6969#ifdef __cplusplus
6970}
6971#endif
6972int main(){nm_test_var='a';nm_test_func();return(0);}
6973EOF
6974
6975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976  (eval $ac_compile) 2>&5
6977  ac_status=$?
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); }; then
6980    # Now try to grab the symbols.
6981    nlist=conftest.nm
6982    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6983  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } && test -s "$nlist"; then
6987      # Try sorting and uniquifying the output.
6988      if sort "$nlist" | uniq > "$nlist"T; then
6989        mv -f "$nlist"T "$nlist"
6990      else
6991        rm -f "$nlist"T
6992      fi
6993
6994      # Make sure that we snagged all the symbols we need.
6995      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6996        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6997          cat <<EOF > conftest.$ac_ext
6998#ifdef __cplusplus
6999extern "C" {
7000#endif
7001
7002EOF
7003          # Now generate the symbol file.
7004          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7005
7006          cat <<EOF >> conftest.$ac_ext
7007#if defined (__STDC__) && __STDC__
7008# define lt_ptr_t void *
7009#else
7010# define lt_ptr_t char *
7011# define const
7012#endif
7013
7014/* The mapping between symbol names and symbols. */
7015const struct {
7016  const char *name;
7017  lt_ptr_t address;
7018}
7019lt_preloaded_symbols[] =
7020{
7021EOF
7022          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7023          cat <<\EOF >> conftest.$ac_ext
7024  {0, (lt_ptr_t) 0}
7025};
7026
7027#ifdef __cplusplus
7028}
7029#endif
7030EOF
7031          # Now try linking the two files.
7032          mv conftest.$ac_objext conftstm.$ac_objext
7033          lt_save_LIBS="$LIBS"
7034          lt_save_CFLAGS="$CFLAGS"
7035          LIBS="conftstm.$ac_objext"
7036          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7037          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038  (eval $ac_link) 2>&5
7039  ac_status=$?
7040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7042            pipe_works=yes
7043          fi
7044          LIBS="$lt_save_LIBS"
7045          CFLAGS="$lt_save_CFLAGS"
7046        else
7047          echo "cannot find nm_test_func in $nlist" >&5
7048        fi
7049      else
7050        echo "cannot find nm_test_var in $nlist" >&5
7051      fi
7052    else
7053      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7054    fi
7055  else
7056    echo "$progname: failed program was:" >&5
7057    cat conftest.$ac_ext >&5
7058  fi
7059  rm -f conftest* conftst*
7060
7061  # Do not use the global_symbol_pipe unless it works.
7062  if test "$pipe_works" = yes; then
7063    break
7064  else
7065    lt_cv_sys_global_symbol_pipe=
7066  fi
7067done
7068
7069fi
7070
7071if test -z "$lt_cv_sys_global_symbol_pipe"; then
7072  lt_cv_sys_global_symbol_to_cdecl=
7073fi
7074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7075  echo "$as_me:$LINENO: result: failed" >&5
7076echo "${ECHO_T}failed" >&6
7077else
7078  echo "$as_me:$LINENO: result: ok" >&5
7079echo "${ECHO_T}ok" >&6
7080fi
7081
7082echo "$as_me:$LINENO: checking for objdir" >&5
7083echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7084if test "${lt_cv_objdir+set}" = set; then
7085  echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087  rm -f .libs 2>/dev/null
7088mkdir .libs 2>/dev/null
7089if test -d .libs; then
7090  lt_cv_objdir=.libs
7091else
7092  # MS-DOS does not allow filenames that begin with a dot.
7093  lt_cv_objdir=_libs
7094fi
7095rmdir .libs 2>/dev/null
7096fi
7097echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7098echo "${ECHO_T}$lt_cv_objdir" >&6
7099objdir=$lt_cv_objdir
7100
7101
7102
7103
7104
7105case $host_os in
7106aix3*)
7107  # AIX sometimes has problems with the GCC collect2 program.  For some
7108  # reason, if we set the COLLECT_NAMES environment variable, the problems
7109  # vanish in a puff of smoke.
7110  if test "X${COLLECT_NAMES+set}" != Xset; then
7111    COLLECT_NAMES=
7112    export COLLECT_NAMES
7113  fi
7114  ;;
7115esac
7116
7117# Sed substitution that helps us do robust quoting.  It backslashifies
7118# metacharacters that are still active within double-quoted strings.
7119Xsed='sed -e 1s/^X//'
7120sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7121
7122# Same as above, but do not quote variable references.
7123double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7124
7125# Sed substitution to delay expansion of an escaped shell variable in a
7126# double_quote_subst'ed string.
7127delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7128
7129# Sed substitution to avoid accidental globbing in evaled expressions
7130no_glob_subst='s/\*/\\\*/g'
7131
7132# Constants:
7133rm="rm -f"
7134
7135# Global variables:
7136default_ofile=libtool
7137can_build_shared=yes
7138
7139# All known linkers require a `.a' archive for static linking (except MSVC,
7140# which needs '.lib').
7141libext=a
7142ltmain="$ac_aux_dir/ltmain.sh"
7143ofile="$default_ofile"
7144with_gnu_ld="$lt_cv_prog_gnu_ld"
7145
7146if test -n "$ac_tool_prefix"; then
7147  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7148set dummy ${ac_tool_prefix}ar; ac_word=$2
7149echo "$as_me:$LINENO: checking for $ac_word" >&5
7150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151if test "${ac_cv_prog_AR+set}" = set; then
7152  echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154  if test -n "$AR"; then
7155  ac_cv_prog_AR="$AR" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160  IFS=$as_save_IFS
7161  test -z "$as_dir" && as_dir=.
7162  for ac_exec_ext in '' $ac_executable_extensions; do
7163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164    ac_cv_prog_AR="${ac_tool_prefix}ar"
7165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166    break 2
7167  fi
7168done
7169done
7170
7171fi
7172fi
7173AR=$ac_cv_prog_AR
7174if test -n "$AR"; then
7175  echo "$as_me:$LINENO: result: $AR" >&5
7176echo "${ECHO_T}$AR" >&6
7177else
7178  echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180fi
7181
7182fi
7183if test -z "$ac_cv_prog_AR"; then
7184  ac_ct_AR=$AR
7185  # Extract the first word of "ar", so it can be a program name with args.
7186set dummy ar; ac_word=$2
7187echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7190  echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192  if test -n "$ac_ct_AR"; then
7193  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198  IFS=$as_save_IFS
7199  test -z "$as_dir" && as_dir=.
7200  for ac_exec_ext in '' $ac_executable_extensions; do
7201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202    ac_cv_prog_ac_ct_AR="ar"
7203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204    break 2
7205  fi
7206done
7207done
7208
7209  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7210fi
7211fi
7212ac_ct_AR=$ac_cv_prog_ac_ct_AR
7213if test -n "$ac_ct_AR"; then
7214  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7215echo "${ECHO_T}$ac_ct_AR" >&6
7216else
7217  echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
7219fi
7220
7221  AR=$ac_ct_AR
7222else
7223  AR="$ac_cv_prog_AR"
7224fi
7225
7226if test -n "$ac_tool_prefix"; then
7227  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7229echo "$as_me:$LINENO: checking for $ac_word" >&5
7230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231if test "${ac_cv_prog_RANLIB+set}" = set; then
7232  echo $ECHO_N "(cached) $ECHO_C" >&6
7233else
7234  if test -n "$RANLIB"; then
7235  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7236else
7237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240  IFS=$as_save_IFS
7241  test -z "$as_dir" && as_dir=.
7242  for ac_exec_ext in '' $ac_executable_extensions; do
7243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246    break 2
7247  fi
7248done
7249done
7250
7251fi
7252fi
7253RANLIB=$ac_cv_prog_RANLIB
7254if test -n "$RANLIB"; then
7255  echo "$as_me:$LINENO: result: $RANLIB" >&5
7256echo "${ECHO_T}$RANLIB" >&6
7257else
7258  echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6
7260fi
7261
7262fi
7263if test -z "$ac_cv_prog_RANLIB"; then
7264  ac_ct_RANLIB=$RANLIB
7265  # Extract the first word of "ranlib", so it can be a program name with args.
7266set dummy ranlib; ac_word=$2
7267echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  if test -n "$ac_ct_RANLIB"; then
7273  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280  for ac_exec_ext in '' $ac_executable_extensions; do
7281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282    ac_cv_prog_ac_ct_RANLIB="ranlib"
7283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284    break 2
7285  fi
7286done
7287done
7288
7289  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7290fi
7291fi
7292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7293if test -n "$ac_ct_RANLIB"; then
7294  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7295echo "${ECHO_T}$ac_ct_RANLIB" >&6
7296else
7297  echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299fi
7300
7301  RANLIB=$ac_ct_RANLIB
7302else
7303  RANLIB="$ac_cv_prog_RANLIB"
7304fi
7305
7306if test -n "$ac_tool_prefix"; then
7307  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}strip; ac_word=$2
7309echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311if test "${ac_cv_prog_STRIP+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  if test -n "$STRIP"; then
7315  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322  for ac_exec_ext in '' $ac_executable_extensions; do
7323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329done
7330
7331fi
7332fi
7333STRIP=$ac_cv_prog_STRIP
7334if test -n "$STRIP"; then
7335  echo "$as_me:$LINENO: result: $STRIP" >&5
7336echo "${ECHO_T}$STRIP" >&6
7337else
7338  echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6
7340fi
7341
7342fi
7343if test -z "$ac_cv_prog_STRIP"; then
7344  ac_ct_STRIP=$STRIP
7345  # Extract the first word of "strip", so it can be a program name with args.
7346set dummy strip; ac_word=$2
7347echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7350  echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352  if test -n "$ac_ct_STRIP"; then
7353  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360  for ac_exec_ext in '' $ac_executable_extensions; do
7361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362    ac_cv_prog_ac_ct_STRIP="strip"
7363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367done
7368
7369  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7370fi
7371fi
7372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7373if test -n "$ac_ct_STRIP"; then
7374  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7375echo "${ECHO_T}$ac_ct_STRIP" >&6
7376else
7377  echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
7379fi
7380
7381  STRIP=$ac_ct_STRIP
7382else
7383  STRIP="$ac_cv_prog_STRIP"
7384fi
7385
7386
7387old_CC="$CC"
7388old_CFLAGS="$CFLAGS"
7389
7390# Set sane defaults for various variables
7391test -z "$AR" && AR=ar
7392test -z "$AR_FLAGS" && AR_FLAGS=cru
7393test -z "$AS" && AS=as
7394test -z "$CC" && CC=cc
7395test -z "$LTCC" && LTCC=$CC
7396test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7397test -z "$DLLTOOL" && DLLTOOL=dlltool
7398test -z "$LD" && LD=ld
7399test -z "$LN_S" && LN_S="ln -s"
7400test -z "$MAGIC_CMD" && MAGIC_CMD=file
7401test -z "$NM" && NM=nm
7402test -z "$SED" && SED=sed
7403test -z "$OBJDUMP" && OBJDUMP=objdump
7404test -z "$RANLIB" && RANLIB=:
7405test -z "$STRIP" && STRIP=:
7406test -z "$ac_objext" && ac_objext=o
7407
7408# Determine commands to create old-style static archives.
7409old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7410old_postinstall_cmds='chmod 644 $oldlib'
7411old_postuninstall_cmds=
7412
7413if test -n "$RANLIB"; then
7414  case $host_os in
7415  openbsd*)
7416    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7417    ;;
7418  *)
7419    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7420    ;;
7421  esac
7422  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7423fi
7424
7425for cc_temp in $compiler""; do
7426  case $cc_temp in
7427    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7428    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7429    \-*) ;;
7430    *) break;;
7431  esac
7432done
7433cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7434
7435
7436# Only perform the check for file, if the check method requires it
7437case $deplibs_check_method in
7438file_magic*)
7439  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7440    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7441echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7442if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7443  echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445  case $MAGIC_CMD in
7446[\\/*] |  ?:[\\/]*)
7447  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7448  ;;
7449*)
7450  lt_save_MAGIC_CMD="$MAGIC_CMD"
7451  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7452  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7453  for ac_dir in $ac_dummy; do
7454    IFS="$lt_save_ifs"
7455    test -z "$ac_dir" && ac_dir=.
7456    if test -f $ac_dir/${ac_tool_prefix}file; then
7457      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7458      if test -n "$file_magic_test_file"; then
7459        case $deplibs_check_method in
7460        "file_magic "*)
7461          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7462          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7464            $EGREP "$file_magic_regex" > /dev/null; then
7465            :
7466          else
7467            cat <<EOF 1>&2
7468
7469*** Warning: the command libtool uses to detect shared libraries,
7470*** $file_magic_cmd, produces output that libtool cannot recognize.
7471*** The result is that libtool may fail to recognize shared libraries
7472*** as such.  This will affect the creation of libtool libraries that
7473*** depend on shared libraries, but programs linked with such libtool
7474*** libraries will work regardless of this problem.  Nevertheless, you
7475*** may want to report the problem to your system manager and/or to
7476*** bug-libtool@gnu.org
7477
7478EOF
7479          fi ;;
7480        esac
7481      fi
7482      break
7483    fi
7484  done
7485  IFS="$lt_save_ifs"
7486  MAGIC_CMD="$lt_save_MAGIC_CMD"
7487  ;;
7488esac
7489fi
7490
7491MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7492if test -n "$MAGIC_CMD"; then
7493  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7494echo "${ECHO_T}$MAGIC_CMD" >&6
7495else
7496  echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498fi
7499
7500if test -z "$lt_cv_path_MAGIC_CMD"; then
7501  if test -n "$ac_tool_prefix"; then
7502    echo "$as_me:$LINENO: checking for file" >&5
7503echo $ECHO_N "checking for file... $ECHO_C" >&6
7504if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7505  echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507  case $MAGIC_CMD in
7508[\\/*] |  ?:[\\/]*)
7509  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7510  ;;
7511*)
7512  lt_save_MAGIC_CMD="$MAGIC_CMD"
7513  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7514  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7515  for ac_dir in $ac_dummy; do
7516    IFS="$lt_save_ifs"
7517    test -z "$ac_dir" && ac_dir=.
7518    if test -f $ac_dir/file; then
7519      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7520      if test -n "$file_magic_test_file"; then
7521        case $deplibs_check_method in
7522        "file_magic "*)
7523          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7524          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7525          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7526            $EGREP "$file_magic_regex" > /dev/null; then
7527            :
7528          else
7529            cat <<EOF 1>&2
7530
7531*** Warning: the command libtool uses to detect shared libraries,
7532*** $file_magic_cmd, produces output that libtool cannot recognize.
7533*** The result is that libtool may fail to recognize shared libraries
7534*** as such.  This will affect the creation of libtool libraries that
7535*** depend on shared libraries, but programs linked with such libtool
7536*** libraries will work regardless of this problem.  Nevertheless, you
7537*** may want to report the problem to your system manager and/or to
7538*** bug-libtool@gnu.org
7539
7540EOF
7541          fi ;;
7542        esac
7543      fi
7544      break
7545    fi
7546  done
7547  IFS="$lt_save_ifs"
7548  MAGIC_CMD="$lt_save_MAGIC_CMD"
7549  ;;
7550esac
7551fi
7552
7553MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554if test -n "$MAGIC_CMD"; then
7555  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7556echo "${ECHO_T}$MAGIC_CMD" >&6
7557else
7558  echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6
7560fi
7561
7562  else
7563    MAGIC_CMD=:
7564  fi
7565fi
7566
7567  fi
7568  ;;
7569esac
7570
7571enable_dlopen=no
7572enable_win32_dll=no
7573
7574# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7575if test "${enable_libtool_lock+set}" = set; then
7576  enableval="$enable_libtool_lock"
7577
7578fi;
7579test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7580
7581
7582# Check whether --with-pic or --without-pic was given.
7583if test "${with_pic+set}" = set; then
7584  withval="$with_pic"
7585  pic_mode="$withval"
7586else
7587  pic_mode=default
7588fi;
7589test -z "$pic_mode" && pic_mode=default
7590
7591# Use C for the default configuration in the libtool script
7592tagname=
7593lt_save_CC="$CC"
7594ac_ext=c
7595ac_cpp='$CPP $CPPFLAGS'
7596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600
7601# Source file extension for C test sources.
7602ac_ext=c
7603
7604# Object file extension for compiled C test sources.
7605objext=o
7606objext=$objext
7607
7608# Code to be used in simple compile tests
7609lt_simple_compile_test_code="int some_variable = 0;\n"
7610
7611# Code to be used in simple link tests
7612lt_simple_link_test_code='int main(){return(0);}\n'
7613
7614
7615# If no C compiler was specified, use CC.
7616LTCC=${LTCC-"$CC"}
7617
7618# If no C compiler flags were specified, use CFLAGS.
7619LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7620
7621# Allow CC to be a program name with arguments.
7622compiler=$CC
7623
7624
7625# save warnings/boilerplate of simple test code
7626ac_outfile=conftest.$ac_objext
7627printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7629_lt_compiler_boilerplate=`cat conftest.err`
7630$rm conftest*
7631
7632ac_outfile=conftest.$ac_objext
7633printf "$lt_simple_link_test_code" >conftest.$ac_ext
7634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7635_lt_linker_boilerplate=`cat conftest.err`
7636$rm conftest*
7637
7638
7639## CAVEAT EMPTOR:
7640## There is no encapsulation within the following macros, do not change
7641## the running order or otherwise move them around unless you know exactly
7642## what you are doing...
7643
7644lt_prog_compiler_no_builtin_flag=
7645
7646if test "$GCC" = yes; then
7647  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7648
7649
7650echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7651echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7652if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7653  echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655  lt_cv_prog_compiler_rtti_exceptions=no
7656  ac_outfile=conftest.$ac_objext
7657   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7658   lt_compiler_flag="-fno-rtti -fno-exceptions"
7659   # Insert the option either (1) after the last *FLAGS variable, or
7660   # (2) before a word containing "conftest.", or (3) at the end.
7661   # Note that $ac_compile itself does not contain backslashes and begins
7662   # with a dollar sign (not a hyphen), so the echo should work correctly.
7663   # The option is referenced via a variable to avoid confusing sed.
7664   lt_compile=`echo "$ac_compile" | $SED \
7665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7667   -e 's:$: $lt_compiler_flag:'`
7668   (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
7669   (eval "$lt_compile" 2>conftest.err)
7670   ac_status=$?
7671   cat conftest.err >&5
7672   echo "$as_me:7672: \$? = $ac_status" >&5
7673   if (exit $ac_status) && test -s "$ac_outfile"; then
7674     # The compiler can only warn and ignore the option if not recognized
7675     # So say no if there are warnings other than the usual output.
7676     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7677     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7678     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7679       lt_cv_prog_compiler_rtti_exceptions=yes
7680     fi
7681   fi
7682   $rm conftest*
7683
7684fi
7685echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7686echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7687
7688if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7689    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7690else
7691    :
7692fi
7693
7694fi
7695
7696lt_prog_compiler_wl=
7697lt_prog_compiler_pic=
7698lt_prog_compiler_static=
7699
7700echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7701echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7702
7703  if test "$GCC" = yes; then
7704    lt_prog_compiler_wl='-Wl,'
7705    lt_prog_compiler_static='-static'
7706
7707    case $host_os in
7708      aix*)
7709      # All AIX code is PIC.
7710      if test "$host_cpu" = ia64; then
7711        # AIX 5 now supports IA64 processor
7712        lt_prog_compiler_static='-Bstatic'
7713      fi
7714      ;;
7715
7716    amigaos*)
7717      # FIXME: we need at least 68020 code to build shared libraries, but
7718      # adding the `-m68020' flag to GCC prevents building anything better,
7719      # like `-m68040'.
7720      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7721      ;;
7722
7723    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7724      # PIC is the default for these OSes.
7725      ;;
7726
7727    mingw* | pw32* | os2*)
7728      # This hack is so that the source file can tell whether it is being
7729      # built for inclusion in a dll (and should export symbols for example).
7730      lt_prog_compiler_pic='-DDLL_EXPORT'
7731      ;;
7732
7733    darwin* | rhapsody*)
7734      # PIC is the default on this platform
7735      # Common symbols not allowed in MH_DYLIB files
7736      lt_prog_compiler_pic='-fno-common'
7737      ;;
7738
7739    interix3*)
7740      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7741      # Instead, we relocate shared libraries at runtime.
7742      ;;
7743
7744    msdosdjgpp*)
7745      # Just because we use GCC doesn't mean we suddenly get shared libraries
7746      # on systems that don't support them.
7747      lt_prog_compiler_can_build_shared=no
7748      enable_shared=no
7749      ;;
7750
7751    sysv4*MP*)
7752      if test -d /usr/nec; then
7753        lt_prog_compiler_pic=-Kconform_pic
7754      fi
7755      ;;
7756
7757    hpux*)
7758      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7759      # not for PA HP-UX.
7760      case $host_cpu in
7761      hppa*64*|ia64*)
7762        # +Z the default
7763        ;;
7764      *)
7765        lt_prog_compiler_pic='-fPIC'
7766        ;;
7767      esac
7768      ;;
7769
7770    *)
7771      lt_prog_compiler_pic='-fPIC'
7772      ;;
7773    esac
7774  else
7775    # PORTME Check for flag to pass linker flags through the system compiler.
7776    case $host_os in
7777    aix*)
7778      lt_prog_compiler_wl='-Wl,'
7779      if test "$host_cpu" = ia64; then
7780        # AIX 5 now supports IA64 processor
7781        lt_prog_compiler_static='-Bstatic'
7782      else
7783        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7784      fi
7785      ;;
7786      darwin*)
7787        # PIC is the default on this platform
7788        # Common symbols not allowed in MH_DYLIB files
7789       case $cc_basename in
7790         xlc*)
7791         lt_prog_compiler_pic='-qnocommon'
7792         lt_prog_compiler_wl='-Wl,'
7793         ;;
7794       esac
7795       ;;
7796
7797    mingw* | pw32* | os2*)
7798      # This hack is so that the source file can tell whether it is being
7799      # built for inclusion in a dll (and should export symbols for example).
7800      lt_prog_compiler_pic='-DDLL_EXPORT'
7801      ;;
7802
7803    hpux9* | hpux10* | hpux11*)
7804      lt_prog_compiler_wl='-Wl,'
7805      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7806      # not for PA HP-UX.
7807      case $host_cpu in
7808      hppa*64*|ia64*)
7809        # +Z the default
7810        ;;
7811      *)
7812        lt_prog_compiler_pic='+Z'
7813        ;;
7814      esac
7815      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7816      lt_prog_compiler_static='${wl}-a ${wl}archive'
7817      ;;
7818
7819    irix5* | irix6* | nonstopux*)
7820      lt_prog_compiler_wl='-Wl,'
7821      # PIC (with -KPIC) is the default.
7822      lt_prog_compiler_static='-non_shared'
7823      ;;
7824
7825    newsos6)
7826      lt_prog_compiler_pic='-KPIC'
7827      lt_prog_compiler_static='-Bstatic'
7828      ;;
7829
7830    linux*)
7831      case $cc_basename in
7832      icc* | ecc*)
7833        lt_prog_compiler_wl='-Wl,'
7834        lt_prog_compiler_pic='-KPIC'
7835        lt_prog_compiler_static='-static'
7836        ;;
7837      pgcc* | pgf77* | pgf90* | pgf95*)
7838        # Portland Group compilers (*not* the Pentium gcc compiler,
7839        # which looks to be a dead project)
7840        lt_prog_compiler_wl='-Wl,'
7841        lt_prog_compiler_pic='-fpic'
7842        lt_prog_compiler_static='-Bstatic'
7843        ;;
7844      ccc*)
7845        lt_prog_compiler_wl='-Wl,'
7846        # All Alpha code is PIC.
7847        lt_prog_compiler_static='-non_shared'
7848        ;;
7849      esac
7850      ;;
7851
7852    osf3* | osf4* | osf5*)
7853      lt_prog_compiler_wl='-Wl,'
7854      # All OSF/1 code is PIC.
7855      lt_prog_compiler_static='-non_shared'
7856      ;;
7857
7858    solaris*)
7859      lt_prog_compiler_pic='-KPIC'
7860      lt_prog_compiler_static='-Bstatic'
7861      case $cc_basename in
7862      f77* | f90* | f95*)
7863        lt_prog_compiler_wl='-Qoption ld ';;
7864      *)
7865        lt_prog_compiler_wl='-Wl,';;
7866      esac
7867      ;;
7868
7869    sunos4*)
7870      lt_prog_compiler_wl='-Qoption ld '
7871      lt_prog_compiler_pic='-PIC'
7872      lt_prog_compiler_static='-Bstatic'
7873      ;;
7874
7875    sysv4 | sysv4.2uw2* | sysv4.3*)
7876      lt_prog_compiler_wl='-Wl,'
7877      lt_prog_compiler_pic='-KPIC'
7878      lt_prog_compiler_static='-Bstatic'
7879      ;;
7880
7881    sysv4*MP*)
7882      if test -d /usr/nec ;then
7883        lt_prog_compiler_pic='-Kconform_pic'
7884        lt_prog_compiler_static='-Bstatic'
7885      fi
7886      ;;
7887
7888    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7889      lt_prog_compiler_wl='-Wl,'
7890      lt_prog_compiler_pic='-KPIC'
7891      lt_prog_compiler_static='-Bstatic'
7892      ;;
7893
7894    unicos*)
7895      lt_prog_compiler_wl='-Wl,'
7896      lt_prog_compiler_can_build_shared=no
7897      ;;
7898
7899    uts4*)
7900      lt_prog_compiler_pic='-pic'
7901      lt_prog_compiler_static='-Bstatic'
7902      ;;
7903
7904    *)
7905      lt_prog_compiler_can_build_shared=no
7906      ;;
7907    esac
7908  fi
7909
7910echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7911echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7912
7913#
7914# Check to make sure the PIC flag actually works.
7915#
7916if test -n "$lt_prog_compiler_pic"; then
7917
7918echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7919echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7920if test "${lt_prog_compiler_pic_works+set}" = set; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923  lt_prog_compiler_pic_works=no
7924  ac_outfile=conftest.$ac_objext
7925   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7926   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7927   # Insert the option either (1) after the last *FLAGS variable, or
7928   # (2) before a word containing "conftest.", or (3) at the end.
7929   # Note that $ac_compile itself does not contain backslashes and begins
7930   # with a dollar sign (not a hyphen), so the echo should work correctly.
7931   # The option is referenced via a variable to avoid confusing sed.
7932   lt_compile=`echo "$ac_compile" | $SED \
7933   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7934   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7935   -e 's:$: $lt_compiler_flag:'`
7936   (eval echo "\"\$as_me:7936: $lt_compile\"" >&5)
7937   (eval "$lt_compile" 2>conftest.err)
7938   ac_status=$?
7939   cat conftest.err >&5
7940   echo "$as_me:7940: \$? = $ac_status" >&5
7941   if (exit $ac_status) && test -s "$ac_outfile"; then
7942     # The compiler can only warn and ignore the option if not recognized
7943     # So say no if there are warnings other than the usual output.
7944     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7945     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7946     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7947       lt_prog_compiler_pic_works=yes
7948     fi
7949   fi
7950   $rm conftest*
7951
7952fi
7953echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7954echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7955
7956if test x"$lt_prog_compiler_pic_works" = xyes; then
7957    case $lt_prog_compiler_pic in
7958     "" | " "*) ;;
7959     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7960     esac
7961else
7962    lt_prog_compiler_pic=
7963     lt_prog_compiler_can_build_shared=no
7964fi
7965
7966fi
7967case $host_os in
7968  # For platforms which do not support PIC, -DPIC is meaningless:
7969  *djgpp*)
7970    lt_prog_compiler_pic=
7971    ;;
7972  *)
7973    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7974    ;;
7975esac
7976
7977#
7978# Check to make sure the static flag actually works.
7979#
7980wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7981echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7982echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7983if test "${lt_prog_compiler_static_works+set}" = set; then
7984  echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986  lt_prog_compiler_static_works=no
7987   save_LDFLAGS="$LDFLAGS"
7988   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7989   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7990   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7991     # The linker can only warn and ignore the option if not recognized
7992     # So say no if there are warnings
7993     if test -s conftest.err; then
7994       # Append any errors to the config.log.
7995       cat conftest.err 1>&5
7996       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7997       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7998       if diff conftest.exp conftest.er2 >/dev/null; then
7999         lt_prog_compiler_static_works=yes
8000       fi
8001     else
8002       lt_prog_compiler_static_works=yes
8003     fi
8004   fi
8005   $rm conftest*
8006   LDFLAGS="$save_LDFLAGS"
8007
8008fi
8009echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8010echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8011
8012if test x"$lt_prog_compiler_static_works" = xyes; then
8013    :
8014else
8015    lt_prog_compiler_static=
8016fi
8017
8018
8019echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8020echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8021if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8022  echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024  lt_cv_prog_compiler_c_o=no
8025   $rm -r conftest 2>/dev/null
8026   mkdir conftest
8027   cd conftest
8028   mkdir out
8029   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8030
8031   lt_compiler_flag="-o out/conftest2.$ac_objext"
8032   # Insert the option either (1) after the last *FLAGS variable, or
8033   # (2) before a word containing "conftest.", or (3) at the end.
8034   # Note that $ac_compile itself does not contain backslashes and begins
8035   # with a dollar sign (not a hyphen), so the echo should work correctly.
8036   lt_compile=`echo "$ac_compile" | $SED \
8037   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8038   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8039   -e 's:$: $lt_compiler_flag:'`
8040   (eval echo "\"\$as_me:8040: $lt_compile\"" >&5)
8041   (eval "$lt_compile" 2>out/conftest.err)
8042   ac_status=$?
8043   cat out/conftest.err >&5
8044   echo "$as_me:8044: \$? = $ac_status" >&5
8045   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8046   then
8047     # The compiler can only warn and ignore the option if not recognized
8048     # So say no if there are warnings
8049     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8050     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8051     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8052       lt_cv_prog_compiler_c_o=yes
8053     fi
8054   fi
8055   chmod u+w . 2>&5
8056   $rm conftest*
8057   # SGI C++ compiler will create directory out/ii_files/ for
8058   # template instantiation
8059   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8060   $rm out/* && rmdir out
8061   cd ..
8062   rmdir conftest
8063   $rm conftest*
8064
8065fi
8066echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8067echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8068
8069
8070hard_links="nottested"
8071if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8072  # do not overwrite the value of need_locks provided by the user
8073  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8074echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8075  hard_links=yes
8076  $rm conftest*
8077  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8078  touch conftest.a
8079  ln conftest.a conftest.b 2>&5 || hard_links=no
8080  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8081  echo "$as_me:$LINENO: result: $hard_links" >&5
8082echo "${ECHO_T}$hard_links" >&6
8083  if test "$hard_links" = no; then
8084    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8085echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8086    need_locks=warn
8087  fi
8088else
8089  need_locks=no
8090fi
8091
8092echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8093echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8094
8095  runpath_var=
8096  allow_undefined_flag=
8097  enable_shared_with_static_runtimes=no
8098  archive_cmds=
8099  archive_expsym_cmds=
8100  old_archive_From_new_cmds=
8101  old_archive_from_expsyms_cmds=
8102  export_dynamic_flag_spec=
8103  whole_archive_flag_spec=
8104  thread_safe_flag_spec=
8105  hardcode_libdir_flag_spec=
8106  hardcode_libdir_flag_spec_ld=
8107  hardcode_libdir_separator=
8108  hardcode_direct=no
8109  hardcode_minus_L=no
8110  hardcode_shlibpath_var=unsupported
8111  link_all_deplibs=unknown
8112  hardcode_automatic=no
8113  module_cmds=
8114  module_expsym_cmds=
8115  always_export_symbols=no
8116  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8117  # include_expsyms should be a list of space-separated symbols to be *always*
8118  # included in the symbol list
8119  include_expsyms=
8120  # exclude_expsyms can be an extended regexp of symbols to exclude
8121  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8122  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8123  # as well as any symbol that contains `d'.
8124  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8125  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8126  # platforms (ab)use it in PIC code, but their linkers get confused if
8127  # the symbol is explicitly referenced.  Since portable code cannot
8128  # rely on this symbol name, it's probably fine to never include it in
8129  # preloaded symbol tables.
8130  extract_expsyms_cmds=
8131  # Just being paranoid about ensuring that cc_basename is set.
8132  for cc_temp in $compiler""; do
8133  case $cc_temp in
8134    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8135    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8136    \-*) ;;
8137    *) break;;
8138  esac
8139done
8140cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8141
8142  case $host_os in
8143  cygwin* | mingw* | pw32*)
8144    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8145    # When not using gcc, we currently assume that we are using
8146    # Microsoft Visual C++.
8147    if test "$GCC" != yes; then
8148      with_gnu_ld=no
8149    fi
8150    ;;
8151  interix*)
8152    # we just hope/assume this is gcc and not c89 (= MSVC++)
8153    with_gnu_ld=yes
8154    ;;
8155  openbsd*)
8156    with_gnu_ld=no
8157    ;;
8158  esac
8159
8160  ld_shlibs=yes
8161  if test "$with_gnu_ld" = yes; then
8162    # If archive_cmds runs LD, not CC, wlarc should be empty
8163    wlarc='${wl}'
8164
8165    # Set some defaults for GNU ld with shared library support. These
8166    # are reset later if shared libraries are not supported. Putting them
8167    # here allows them to be overridden if necessary.
8168    runpath_var=LD_RUN_PATH
8169    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8170    export_dynamic_flag_spec='${wl}--export-dynamic'
8171    # ancient GNU ld didn't support --whole-archive et. al.
8172    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8173        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8174      else
8175        whole_archive_flag_spec=
8176    fi
8177    supports_anon_versioning=no
8178    case `$LD -v 2>/dev/null` in
8179      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8180      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8181      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8182      *\ 2.11.*) ;; # other 2.11 versions
8183      *) supports_anon_versioning=yes ;;
8184    esac
8185
8186    # See if GNU ld supports shared libraries.
8187    case $host_os in
8188    aix3* | aix4* | aix5*)
8189      # On AIX/PPC, the GNU linker is very broken
8190      if test "$host_cpu" != ia64; then
8191        ld_shlibs=no
8192        cat <<EOF 1>&2
8193
8194*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8195*** to be unable to reliably create shared libraries on AIX.
8196*** Therefore, libtool is disabling shared libraries support.  If you
8197*** really care for shared libraries, you may want to modify your PATH
8198*** so that a non-GNU linker is found, and then restart.
8199
8200EOF
8201      fi
8202      ;;
8203
8204    amigaos*)
8205      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)'
8206      hardcode_libdir_flag_spec='-L$libdir'
8207      hardcode_minus_L=yes
8208
8209      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8210      # that the semantics of dynamic libraries on AmigaOS, at least up
8211      # to version 4, is to share data among multiple programs linked
8212      # with the same dynamic library.  Since this doesn't match the
8213      # behavior of shared libraries on other platforms, we can't use
8214      # them.
8215      ld_shlibs=no
8216      ;;
8217
8218    beos*)
8219      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8220        allow_undefined_flag=unsupported
8221        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8222        # support --undefined.  This deserves some investigation.  FIXME
8223        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224      else
8225        ld_shlibs=no
8226      fi
8227      ;;
8228
8229    cygwin* | mingw* | pw32*)
8230      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8231      # as there is no search path for DLLs.
8232      hardcode_libdir_flag_spec='-L$libdir'
8233      allow_undefined_flag=unsupported
8234      always_export_symbols=no
8235      enable_shared_with_static_runtimes=yes
8236      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8237
8238      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8239        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8240        # If the export-symbols file already is a .def file (1st line
8241        # is EXPORTS), use it as is; otherwise, prepend...
8242        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8243          cp $export_symbols $output_objdir/$soname.def;
8244        else
8245          echo EXPORTS > $output_objdir/$soname.def;
8246          cat $export_symbols >> $output_objdir/$soname.def;
8247        fi~
8248        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8249      else
8250        ld_shlibs=no
8251      fi
8252      ;;
8253
8254    interix3*)
8255      hardcode_direct=no
8256      hardcode_shlibpath_var=no
8257      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8258      export_dynamic_flag_spec='${wl}-E'
8259      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8260      # Instead, shared libraries are loaded at an image base (0x10000000 by
8261      # default) and relocated if they conflict, which is a slow very memory
8262      # consuming and fragmenting process.  To avoid this, we pick a random,
8263      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8264      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8265      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8266      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'
8267      ;;
8268
8269    linux*)
8270      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271        tmp_addflag=
8272        case $cc_basename,$host_cpu in
8273        pgcc*)                          # Portland Group C compiler
8274          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'
8275          tmp_addflag=' $pic_flag'
8276          ;;
8277        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8278          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'
8279          tmp_addflag=' $pic_flag -Mnomain' ;;
8280        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8281          tmp_addflag=' -i_dynamic' ;;
8282        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8283          tmp_addflag=' -i_dynamic -nofor_main' ;;
8284        ifc* | ifort*)                  # Intel Fortran compiler
8285          tmp_addflag=' -nofor_main' ;;
8286        esac
8287        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288
8289        if test $supports_anon_versioning = yes; then
8290          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8291  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8292  $echo "local: *; };" >> $output_objdir/$libname.ver~
8293          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8294        fi
8295      else
8296        ld_shlibs=no
8297      fi
8298      ;;
8299
8300    netbsd*)
8301      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8302        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8303        wlarc=
8304      else
8305        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307      fi
8308      ;;
8309
8310    solaris*)
8311      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8312        ld_shlibs=no
8313        cat <<EOF 1>&2
8314
8315*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8316*** create shared libraries on Solaris systems.  Therefore, libtool
8317*** is disabling shared libraries support.  We urge you to upgrade GNU
8318*** binutils to release 2.9.1 or newer.  Another option is to modify
8319*** your PATH or compiler configuration so that the native linker is
8320*** used, and then restart.
8321
8322EOF
8323      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8324        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326      else
8327        ld_shlibs=no
8328      fi
8329      ;;
8330
8331    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8332      case `$LD -v 2>&1` in
8333        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8334        ld_shlibs=no
8335        cat <<_LT_EOF 1>&2
8336
8337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8338*** reliably create shared libraries on SCO systems.  Therefore, libtool
8339*** is disabling shared libraries support.  We urge you to upgrade GNU
8340*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8341*** your PATH or compiler configuration so that the native linker is
8342*** used, and then restart.
8343
8344_LT_EOF
8345        ;;
8346        *)
8347          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8348            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8349            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8350            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8351          else
8352            ld_shlibs=no
8353          fi
8354        ;;
8355      esac
8356      ;;
8357
8358    sunos4*)
8359      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8360      wlarc=
8361      hardcode_direct=yes
8362      hardcode_shlibpath_var=no
8363      ;;
8364
8365    *)
8366      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8367        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8368        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8369      else
8370        ld_shlibs=no
8371      fi
8372      ;;
8373    esac
8374
8375    if test "$ld_shlibs" = no; then
8376      runpath_var=
8377      hardcode_libdir_flag_spec=
8378      export_dynamic_flag_spec=
8379      whole_archive_flag_spec=
8380    fi
8381  else
8382    # PORTME fill in a description of your system's linker (not GNU ld)
8383    case $host_os in
8384    aix3*)
8385      allow_undefined_flag=unsupported
8386      always_export_symbols=yes
8387      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'
8388      # Note: this linker hardcodes the directories in LIBPATH if there
8389      # are no directories specified by -L.
8390      hardcode_minus_L=yes
8391      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8392        # Neither direct hardcoding nor static linking is supported with a
8393        # broken collect2.
8394        hardcode_direct=unsupported
8395      fi
8396      ;;
8397
8398    aix4* | aix5*)
8399      if test "$host_cpu" = ia64; then
8400        # On IA64, the linker does run time linking by default, so we don't
8401        # have to do anything special.
8402        aix_use_runtimelinking=no
8403        exp_sym_flag='-Bexport'
8404        no_entry_flag=""
8405      else
8406        # If we're using GNU nm, then we don't want the "-C" option.
8407        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8408        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8409          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'
8410        else
8411          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'
8412        fi
8413        aix_use_runtimelinking=no
8414
8415        # Test if we are trying to use run time linking or normal
8416        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8417        # need to do runtime linking.
8418        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8419          for ld_flag in $LDFLAGS; do
8420          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8421            aix_use_runtimelinking=yes
8422            break
8423          fi
8424          done
8425          ;;
8426        esac
8427
8428        exp_sym_flag='-bexport'
8429        no_entry_flag='-bnoentry'
8430      fi
8431
8432      # When large executables or shared objects are built, AIX ld can
8433      # have problems creating the table of contents.  If linking a library
8434      # or program results in "error TOC overflow" add -mminimal-toc to
8435      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8436      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8437
8438      archive_cmds=''
8439      hardcode_direct=yes
8440      hardcode_libdir_separator=':'
8441      link_all_deplibs=yes
8442
8443      if test "$GCC" = yes; then
8444        case $host_os in aix4.[012]|aix4.[012].*)
8445        # We only want to do this on AIX 4.2 and lower, the check
8446        # below for broken collect2 doesn't work under 4.3+
8447          collect2name=`${CC} -print-prog-name=collect2`
8448          if test -f "$collect2name" && \
8449           strings "$collect2name" | grep resolve_lib_name >/dev/null
8450          then
8451          # We have reworked collect2
8452          hardcode_direct=yes
8453          else
8454          # We have old collect2
8455          hardcode_direct=unsupported
8456          # It fails to find uninstalled libraries when the uninstalled
8457          # path is not listed in the libpath.  Setting hardcode_minus_L
8458          # to unsupported forces relinking
8459          hardcode_minus_L=yes
8460          hardcode_libdir_flag_spec='-L$libdir'
8461          hardcode_libdir_separator=
8462          fi
8463          ;;
8464        esac
8465        shared_flag='-shared'
8466        if test "$aix_use_runtimelinking" = yes; then
8467          shared_flag="$shared_flag "'${wl}-G'
8468        fi
8469      else
8470        # not using gcc
8471        if test "$host_cpu" = ia64; then
8472        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8473        # chokes on -Wl,-G. The following line is correct:
8474          shared_flag='-G'
8475        else
8476          if test "$aix_use_runtimelinking" = yes; then
8477            shared_flag='${wl}-G'
8478          else
8479            shared_flag='${wl}-bM:SRE'
8480          fi
8481        fi
8482      fi
8483
8484      # It seems that -bexpall does not export symbols beginning with
8485      # underscore (_), so it is better to generate a list of symbols to export.
8486      always_export_symbols=yes
8487      if test "$aix_use_runtimelinking" = yes; then
8488        # Warning - without using the other runtime loading flags (-brtl),
8489        # -berok will link without error, but may produce a broken library.
8490        allow_undefined_flag='-berok'
8491       # Determine the default libpath from the value encoded in an empty executable.
8492       cat >conftest.$ac_ext <<_ACEOF
8493/* confdefs.h.  */
8494_ACEOF
8495cat confdefs.h >>conftest.$ac_ext
8496cat >>conftest.$ac_ext <<_ACEOF
8497/* end confdefs.h.  */
8498
8499int
8500main ()
8501{
8502
8503  ;
8504  return 0;
8505}
8506_ACEOF
8507rm -f conftest.$ac_objext conftest$ac_exeext
8508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509  (eval $ac_link) 2>conftest.er1
8510  ac_status=$?
8511  grep -v '^ *+' conftest.er1 >conftest.err
8512  rm -f conftest.er1
8513  cat conftest.err >&5
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); } &&
8516         { ac_try='test -z "$ac_c_werror_flag"
8517                         || test ! -s conftest.err'
8518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519  (eval $ac_try) 2>&5
8520  ac_status=$?
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); }; } &&
8523         { ac_try='test -s conftest$ac_exeext'
8524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525  (eval $ac_try) 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); }; }; then
8529
8530aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8531}'`
8532# Check for a 64-bit object if we didn't find anything.
8533if 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; }
8534}'`; fi
8535else
8536  echo "$as_me: failed program was:" >&5
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
8539fi
8540rm -f conftest.err conftest.$ac_objext \
8541      conftest$ac_exeext conftest.$ac_ext
8542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8543
8544       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8545        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"
8546       else
8547        if test "$host_cpu" = ia64; then
8548          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8549          allow_undefined_flag="-z nodefs"
8550          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"
8551        else
8552         # Determine the default libpath from the value encoded in an empty executable.
8553         cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h.  */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h.  */
8559
8560int
8561main ()
8562{
8563
8564  ;
8565  return 0;
8566}
8567_ACEOF
8568rm -f conftest.$ac_objext conftest$ac_exeext
8569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570  (eval $ac_link) 2>conftest.er1
8571  ac_status=$?
8572  grep -v '^ *+' conftest.er1 >conftest.err
8573  rm -f conftest.er1
8574  cat conftest.err >&5
8575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576  (exit $ac_status); } &&
8577         { ac_try='test -z "$ac_c_werror_flag"
8578                         || test ! -s conftest.err'
8579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580  (eval $ac_try) 2>&5
8581  ac_status=$?
8582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583  (exit $ac_status); }; } &&
8584         { ac_try='test -s conftest$ac_exeext'
8585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586  (eval $ac_try) 2>&5
8587  ac_status=$?
8588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589  (exit $ac_status); }; }; then
8590
8591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8592}'`
8593# Check for a 64-bit object if we didn't find anything.
8594if 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; }
8595}'`; fi
8596else
8597  echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
8600fi
8601rm -f conftest.err conftest.$ac_objext \
8602      conftest$ac_exeext conftest.$ac_ext
8603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8604
8605         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8606          # Warning - without using the other run time loading flags,
8607          # -berok will link without error, but may produce a broken library.
8608          no_undefined_flag=' ${wl}-bernotok'
8609          allow_undefined_flag=' ${wl}-berok'
8610          # Exported symbols can be pulled into shared objects from archives
8611          whole_archive_flag_spec='$convenience'
8612          archive_cmds_need_lc=yes
8613          # This is similar to how AIX traditionally builds its shared libraries.
8614          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'
8615        fi
8616      fi
8617      ;;
8618
8619    amigaos*)
8620      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)'
8621      hardcode_libdir_flag_spec='-L$libdir'
8622      hardcode_minus_L=yes
8623      # see comment about different semantics on the GNU ld section
8624      ld_shlibs=no
8625      ;;
8626
8627    bsdi[45]*)
8628      export_dynamic_flag_spec=-rdynamic
8629      ;;
8630
8631    cygwin* | mingw* | pw32*)
8632      # When not using gcc, we currently assume that we are using
8633      # Microsoft Visual C++.
8634      # hardcode_libdir_flag_spec is actually meaningless, as there is
8635      # no search path for DLLs.
8636      hardcode_libdir_flag_spec=' '
8637      allow_undefined_flag=unsupported
8638      # Tell ltmain to make .lib files, not .a files.
8639      libext=lib
8640      # Tell ltmain to make .dll files, not .so files.
8641      shrext_cmds=".dll"
8642      # FIXME: Setting linknames here is a bad hack.
8643      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8644      # The linker will automatically build a .lib file if we build a DLL.
8645      old_archive_From_new_cmds='true'
8646      # FIXME: Should let the user specify the lib program.
8647      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8648      fix_srcfile_path='`cygpath -w "$srcfile"`'
8649      enable_shared_with_static_runtimes=yes
8650      ;;
8651
8652    darwin* | rhapsody*)
8653      case $host_os in
8654        rhapsody* | darwin1.[012])
8655         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8656         ;;
8657       *) # Darwin 1.3 on
8658         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8659           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8660         else
8661           case ${MACOSX_DEPLOYMENT_TARGET} in
8662             10.[012])
8663               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8664               ;;
8665             10.*)
8666               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8667               ;;
8668           esac
8669         fi
8670         ;;
8671      esac
8672      archive_cmds_need_lc=no
8673      hardcode_direct=no
8674      hardcode_automatic=yes
8675      hardcode_shlibpath_var=unsupported
8676      whole_archive_flag_spec=''
8677      link_all_deplibs=yes
8678    if test "$GCC" = yes ; then
8679        output_verbose_link_cmd='echo'
8680        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8681      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8682      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8683      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}'
8684      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}'
8685    else
8686      case $cc_basename in
8687        xlc*)
8688         output_verbose_link_cmd='echo'
8689         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8690         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8691          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8692         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}'
8693          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}'
8694          ;;
8695       *)
8696         ld_shlibs=no
8697          ;;
8698      esac
8699    fi
8700      ;;
8701
8702    dgux*)
8703      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704      hardcode_libdir_flag_spec='-L$libdir'
8705      hardcode_shlibpath_var=no
8706      ;;
8707
8708    freebsd1*)
8709      ld_shlibs=no
8710      ;;
8711
8712    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8713    # support.  Future versions do this automatically, but an explicit c++rt0.o
8714    # does not break anything, and helps significantly (at the cost of a little
8715    # extra space).
8716    freebsd2.2*)
8717      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8718      hardcode_libdir_flag_spec='-R$libdir'
8719      hardcode_direct=yes
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8724    freebsd2*)
8725      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726      hardcode_direct=yes
8727      hardcode_minus_L=yes
8728      hardcode_shlibpath_var=no
8729      ;;
8730
8731    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8732    freebsd* | kfreebsd*-gnu | dragonfly*)
8733      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8734      hardcode_libdir_flag_spec='-R$libdir'
8735      hardcode_direct=yes
8736      hardcode_shlibpath_var=no
8737      ;;
8738
8739    hpux9*)
8740      if test "$GCC" = yes; then
8741        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'
8742      else
8743        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'
8744      fi
8745      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8746      hardcode_libdir_separator=:
8747      hardcode_direct=yes
8748
8749      # hardcode_minus_L: Not really in the search PATH,
8750      # but as the default location of the library.
8751      hardcode_minus_L=yes
8752      export_dynamic_flag_spec='${wl}-E'
8753      ;;
8754
8755    hpux10*)
8756      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8757        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8758      else
8759        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8760      fi
8761      if test "$with_gnu_ld" = no; then
8762        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8763        hardcode_libdir_separator=:
8764
8765        hardcode_direct=yes
8766        export_dynamic_flag_spec='${wl}-E'
8767
8768        # hardcode_minus_L: Not really in the search PATH,
8769        # but as the default location of the library.
8770        hardcode_minus_L=yes
8771      fi
8772      ;;
8773
8774    hpux11*)
8775      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8776        case $host_cpu in
8777        hppa*64*)
8778          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779          ;;
8780        ia64*)
8781          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8782          ;;
8783        *)
8784          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8785          ;;
8786        esac
8787      else
8788        case $host_cpu in
8789        hppa*64*)
8790          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791          ;;
8792        ia64*)
8793          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8794          ;;
8795        *)
8796          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8797          ;;
8798        esac
8799      fi
8800      if test "$with_gnu_ld" = no; then
8801        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802        hardcode_libdir_separator=:
8803
8804        case $host_cpu in
8805        hppa*64*|ia64*)
8806          hardcode_libdir_flag_spec_ld='+b $libdir'
8807          hardcode_direct=no
8808          hardcode_shlibpath_var=no
8809          ;;
8810        *)
8811          hardcode_direct=yes
8812          export_dynamic_flag_spec='${wl}-E'
8813
8814          # hardcode_minus_L: Not really in the search PATH,
8815          # but as the default location of the library.
8816          hardcode_minus_L=yes
8817          ;;
8818        esac
8819      fi
8820      ;;
8821
8822    irix5* | irix6* | nonstopux*)
8823      if test "$GCC" = yes; then
8824        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'
8825      else
8826        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'
8827        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8828      fi
8829      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830      hardcode_libdir_separator=:
8831      link_all_deplibs=yes
8832      ;;
8833
8834    netbsd*)
8835      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8836        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8837      else
8838        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8839      fi
8840      hardcode_libdir_flag_spec='-R$libdir'
8841      hardcode_direct=yes
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    newsos6)
8846      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847      hardcode_direct=yes
8848      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849      hardcode_libdir_separator=:
8850      hardcode_shlibpath_var=no
8851      ;;
8852
8853    openbsd*)
8854      hardcode_direct=yes
8855      hardcode_shlibpath_var=no
8856      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8857        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8858        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8859        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8860        export_dynamic_flag_spec='${wl}-E'
8861      else
8862       case $host_os in
8863         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8864           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8865           hardcode_libdir_flag_spec='-R$libdir'
8866           ;;
8867         *)
8868           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8869           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8870           ;;
8871       esac
8872      fi
8873      ;;
8874
8875    os2*)
8876      hardcode_libdir_flag_spec='-L$libdir'
8877      hardcode_minus_L=yes
8878      allow_undefined_flag=unsupported
8879      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'
8880      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8881      ;;
8882
8883    osf3*)
8884      if test "$GCC" = yes; then
8885        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8886        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'
8887      else
8888        allow_undefined_flag=' -expect_unresolved \*'
8889        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'
8890      fi
8891      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892      hardcode_libdir_separator=:
8893      ;;
8894
8895    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8896      if test "$GCC" = yes; then
8897        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8898        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'
8899        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900      else
8901        allow_undefined_flag=' -expect_unresolved \*'
8902        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'
8903        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8904        $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'
8905
8906        # Both c and cxx compiler support -rpath directly
8907        hardcode_libdir_flag_spec='-rpath $libdir'
8908      fi
8909      hardcode_libdir_separator=:
8910      ;;
8911
8912    solaris*)
8913      no_undefined_flag=' -z text'
8914      if test "$GCC" = yes; then
8915        wlarc='${wl}'
8916        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8917        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8918          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8919      else
8920        wlarc=''
8921        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924      fi
8925      hardcode_libdir_flag_spec='-R$libdir'
8926      hardcode_shlibpath_var=no
8927      case $host_os in
8928      solaris2.[0-5] | solaris2.[0-5].*) ;;
8929      *)
8930        # The compiler driver will combine linker options so we
8931        # cannot just pass the convience library names through
8932        # without $wl, iff we do not link with $LD.
8933        # Luckily, gcc supports the same syntax we need for Sun Studio.
8934        # Supported since Solaris 2.6 (maybe 2.5.1?)
8935        case $wlarc in
8936        '')
8937          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8938        *)
8939          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' ;;
8940        esac ;;
8941      esac
8942      link_all_deplibs=yes
8943      ;;
8944
8945    sunos4*)
8946      if test "x$host_vendor" = xsequent; then
8947        # Use $CC to link under sequent, because it throws in some extra .o
8948        # files that make .init and .fini sections work.
8949        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8950      else
8951        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8952      fi
8953      hardcode_libdir_flag_spec='-L$libdir'
8954      hardcode_direct=yes
8955      hardcode_minus_L=yes
8956      hardcode_shlibpath_var=no
8957      ;;
8958
8959    sysv4)
8960      case $host_vendor in
8961        sni)
8962          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963          hardcode_direct=yes # is this really true???
8964        ;;
8965        siemens)
8966          ## LD is ld it makes a PLAMLIB
8967          ## CC just makes a GrossModule.
8968          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8969          reload_cmds='$CC -r -o $output$reload_objs'
8970          hardcode_direct=no
8971        ;;
8972        motorola)
8973          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8975        ;;
8976      esac
8977      runpath_var='LD_RUN_PATH'
8978      hardcode_shlibpath_var=no
8979      ;;
8980
8981    sysv4.3*)
8982      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983      hardcode_shlibpath_var=no
8984      export_dynamic_flag_spec='-Bexport'
8985      ;;
8986
8987    sysv4*MP*)
8988      if test -d /usr/nec; then
8989        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990        hardcode_shlibpath_var=no
8991        runpath_var=LD_RUN_PATH
8992        hardcode_runpath_var=yes
8993        ld_shlibs=yes
8994      fi
8995      ;;
8996
8997    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8998      no_undefined_flag='${wl}-z,text'
8999      archive_cmds_need_lc=no
9000      hardcode_shlibpath_var=no
9001      runpath_var='LD_RUN_PATH'
9002
9003      if test "$GCC" = yes; then
9004        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9005        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006      else
9007        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9008        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009      fi
9010      ;;
9011
9012    sysv5* | sco3.2v5* | sco5v6*)
9013      # Note: We can NOT use -z defs as we might desire, because we do not
9014      # link with -lc, and that would cause any symbols used from libc to
9015      # always be unresolved, which means just about no library would
9016      # ever link correctly.  If we're not using GNU ld we use -z text
9017      # though, which does catch some bad symbols but isn't as heavy-handed
9018      # as -z defs.
9019      no_undefined_flag='${wl}-z,text'
9020      allow_undefined_flag='${wl}-z,nodefs'
9021      archive_cmds_need_lc=no
9022      hardcode_shlibpath_var=no
9023      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9024      hardcode_libdir_separator=':'
9025      link_all_deplibs=yes
9026      export_dynamic_flag_spec='${wl}-Bexport'
9027      runpath_var='LD_RUN_PATH'
9028
9029      if test "$GCC" = yes; then
9030        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9031        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9032      else
9033        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9034        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035      fi
9036      ;;
9037
9038    uts4*)
9039      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040      hardcode_libdir_flag_spec='-L$libdir'
9041      hardcode_shlibpath_var=no
9042      ;;
9043
9044    *)
9045      ld_shlibs=no
9046      ;;
9047    esac
9048  fi
9049
9050echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9051echo "${ECHO_T}$ld_shlibs" >&6
9052test "$ld_shlibs" = no && can_build_shared=no
9053
9054#
9055# Do we need to explicitly link libc?
9056#
9057case "x$archive_cmds_need_lc" in
9058x|xyes)
9059  # Assume -lc should be added
9060  archive_cmds_need_lc=yes
9061
9062  if test "$enable_shared" = yes && test "$GCC" = yes; then
9063    case $archive_cmds in
9064    *'~'*)
9065      # FIXME: we may have to deal with multi-command sequences.
9066      ;;
9067    '$CC '*)
9068      # Test whether the compiler implicitly links with -lc since on some
9069      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9070      # to ld, don't add -lc before -lgcc.
9071      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9072echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9073      $rm conftest*
9074      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9075
9076      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9077  (eval $ac_compile) 2>&5
9078  ac_status=$?
9079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080  (exit $ac_status); } 2>conftest.err; then
9081        soname=conftest
9082        lib=conftest
9083        libobjs=conftest.$ac_objext
9084        deplibs=
9085        wl=$lt_prog_compiler_wl
9086        pic_flag=$lt_prog_compiler_pic
9087        compiler_flags=-v
9088        linker_flags=-v
9089        verstring=
9090        output_objdir=.
9091        libname=conftest
9092        lt_save_allow_undefined_flag=$allow_undefined_flag
9093        allow_undefined_flag=
9094        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9095  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9096  ac_status=$?
9097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098  (exit $ac_status); }
9099        then
9100          archive_cmds_need_lc=no
9101        else
9102          archive_cmds_need_lc=yes
9103        fi
9104        allow_undefined_flag=$lt_save_allow_undefined_flag
9105      else
9106        cat conftest.err 1>&5
9107      fi
9108      $rm conftest*
9109      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9110echo "${ECHO_T}$archive_cmds_need_lc" >&6
9111      ;;
9112    esac
9113  fi
9114  ;;
9115esac
9116
9117echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9118echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9119library_names_spec=
9120libname_spec='lib$name'
9121soname_spec=
9122shrext_cmds=".so"
9123postinstall_cmds=
9124postuninstall_cmds=
9125finish_cmds=
9126finish_eval=
9127shlibpath_var=
9128shlibpath_overrides_runpath=unknown
9129version_type=none
9130dynamic_linker="$host_os ld.so"
9131sys_lib_dlsearch_path_spec="/lib /usr/lib"
9132if test "$GCC" = yes; then
9133  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9134  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9135    # if the path contains ";" then we assume it to be the separator
9136    # otherwise default to the standard path separator (i.e. ":") - it is
9137    # assumed that no part of a normal pathname contains ";" but that should
9138    # okay in the real world where ";" in dirpaths is itself problematic.
9139    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9140  else
9141    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9142  fi
9143else
9144  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9145fi
9146need_lib_prefix=unknown
9147hardcode_into_libs=no
9148
9149# when you set need_version to no, make sure it does not cause -set_version
9150# flags to be left without arguments
9151need_version=unknown
9152
9153case $host_os in
9154aix3*)
9155  version_type=linux
9156  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9157  shlibpath_var=LIBPATH
9158
9159  # AIX 3 has no versioning support, so we append a major version to the name.
9160  soname_spec='${libname}${release}${shared_ext}$major'
9161  ;;
9162
9163aix4* | aix5*)
9164  version_type=linux
9165  need_lib_prefix=no
9166  need_version=no
9167  hardcode_into_libs=yes
9168  if test "$host_cpu" = ia64; then
9169    # AIX 5 supports IA64
9170    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9171    shlibpath_var=LD_LIBRARY_PATH
9172  else
9173    # With GCC up to 2.95.x, collect2 would create an import file
9174    # for dependence libraries.  The import file would start with
9175    # the line `#! .'.  This would cause the generated library to
9176    # depend on `.', always an invalid library.  This was fixed in
9177    # development snapshots of GCC prior to 3.0.
9178    case $host_os in
9179      aix4 | aix4.[01] | aix4.[01].*)
9180      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9181           echo ' yes '
9182           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9183        :
9184      else
9185        can_build_shared=no
9186      fi
9187      ;;
9188    esac
9189    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9190    # soname into executable. Probably we can add versioning support to
9191    # collect2, so additional links can be useful in future.
9192    if test "$aix_use_runtimelinking" = yes; then
9193      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9194      # instead of lib<name>.a to let people know that these are not
9195      # typical AIX shared libraries.
9196      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197    else
9198      # We preserve .a as extension for shared libraries through AIX4.2
9199      # and later when we are not doing run time linking.
9200      library_names_spec='${libname}${release}.a $libname.a'
9201      soname_spec='${libname}${release}${shared_ext}$major'
9202    fi
9203    shlibpath_var=LIBPATH
9204  fi
9205  ;;
9206
9207amigaos*)
9208  library_names_spec='$libname.ixlibrary $libname.a'
9209  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9210  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'
9211  ;;
9212
9213beos*)
9214  library_names_spec='${libname}${shared_ext}'
9215  dynamic_linker="$host_os ld.so"
9216  shlibpath_var=LIBRARY_PATH
9217  ;;
9218
9219bsdi[45]*)
9220  version_type=linux
9221  need_version=no
9222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223  soname_spec='${libname}${release}${shared_ext}$major'
9224  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9225  shlibpath_var=LD_LIBRARY_PATH
9226  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9227  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9228  # the default ld.so.conf also contains /usr/contrib/lib and
9229  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9230  # libtool to hard-code these into programs
9231  ;;
9232
9233cygwin* | mingw* | pw32*)
9234  version_type=windows
9235  shrext_cmds=".dll"
9236  need_version=no
9237  need_lib_prefix=no
9238
9239  case $GCC,$host_os in
9240  yes,cygwin* | yes,mingw* | yes,pw32*)
9241    library_names_spec='$libname.dll.a'
9242    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9243    postinstall_cmds='base_file=`basename \${file}`~
9244      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9245      dldir=$destdir/`dirname \$dlpath`~
9246      test -d \$dldir || mkdir -p \$dldir~
9247      $install_prog $dir/$dlname \$dldir/$dlname~
9248      chmod a+x \$dldir/$dlname'
9249    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9250      dlpath=$dir/\$dldll~
9251       $rm \$dlpath'
9252    shlibpath_overrides_runpath=yes
9253
9254    case $host_os in
9255    cygwin*)
9256      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9257      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9258      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9259      ;;
9260    mingw*)
9261      # MinGW DLLs use traditional 'lib' prefix
9262      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9264      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9265        # It is most probably a Windows format PATH printed by
9266        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9267        # path with ; separators, and with drive letters. We can handle the
9268        # drive letters (cygwin fileutils understands them), so leave them,
9269        # especially as we might pass files found there to a mingw objdump,
9270        # which wouldn't understand a cygwinified path. Ahh.
9271        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9272      else
9273        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9274      fi
9275      ;;
9276    pw32*)
9277      # pw32 DLLs use 'pw' prefix rather than 'lib'
9278      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9279      ;;
9280    esac
9281    ;;
9282
9283  *)
9284    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9285    ;;
9286  esac
9287  dynamic_linker='Win32 ld.exe'
9288  # FIXME: first we should search . and the directory the executable is in
9289  shlibpath_var=PATH
9290  ;;
9291
9292darwin* | rhapsody*)
9293  dynamic_linker="$host_os dyld"
9294  version_type=darwin
9295  need_lib_prefix=no
9296  need_version=no
9297  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9298  soname_spec='${libname}${release}${major}$shared_ext'
9299  shlibpath_overrides_runpath=yes
9300  shlibpath_var=DYLD_LIBRARY_PATH
9301  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9302  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9303  if test "$GCC" = yes; then
9304    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"`
9305  else
9306    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9307  fi
9308  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9309  ;;
9310
9311dgux*)
9312  version_type=linux
9313  need_lib_prefix=no
9314  need_version=no
9315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9316  soname_spec='${libname}${release}${shared_ext}$major'
9317  shlibpath_var=LD_LIBRARY_PATH
9318  ;;
9319
9320freebsd1*)
9321  dynamic_linker=no
9322  ;;
9323
9324kfreebsd*-gnu)
9325  version_type=linux
9326  need_lib_prefix=no
9327  need_version=no
9328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  shlibpath_var=LD_LIBRARY_PATH
9331  shlibpath_overrides_runpath=no
9332  hardcode_into_libs=yes
9333  dynamic_linker='GNU ld.so'
9334  ;;
9335
9336freebsd* | dragonfly*)
9337  # DragonFly does not have aout.  When/if they implement a new
9338  # versioning mechanism, adjust this.
9339  if test -x /usr/bin/objformat; then
9340    objformat=`/usr/bin/objformat`
9341  else
9342    case $host_os in
9343    freebsd[123]*) objformat=aout ;;
9344    *) objformat=elf ;;
9345    esac
9346  fi
9347  version_type=freebsd-$objformat
9348  case $version_type in
9349    freebsd-elf*)
9350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9351      need_version=no
9352      need_lib_prefix=no
9353      ;;
9354    freebsd-*)
9355      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9356      need_version=yes
9357      ;;
9358  esac
9359  shlibpath_var=LD_LIBRARY_PATH
9360  case $host_os in
9361  freebsd2*)
9362    shlibpath_overrides_runpath=yes
9363    ;;
9364  freebsd3.[01]* | freebsdelf3.[01]*)
9365    shlibpath_overrides_runpath=yes
9366    hardcode_into_libs=yes
9367    ;;
9368  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9369  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9370    shlibpath_overrides_runpath=no
9371    hardcode_into_libs=yes
9372    ;;
9373  freebsd*) # from 4.6 on
9374    shlibpath_overrides_runpath=yes
9375    hardcode_into_libs=yes
9376    ;;
9377  esac
9378  ;;
9379
9380gnu*)
9381  version_type=linux
9382  need_lib_prefix=no
9383  need_version=no
9384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9385  soname_spec='${libname}${release}${shared_ext}$major'
9386  shlibpath_var=LD_LIBRARY_PATH
9387  hardcode_into_libs=yes
9388  ;;
9389
9390hpux9* | hpux10* | hpux11*)
9391  # Give a soname corresponding to the major version so that dld.sl refuses to
9392  # link against other versions.
9393  version_type=sunos
9394  need_lib_prefix=no
9395  need_version=no
9396  case $host_cpu in
9397  ia64*)
9398    shrext_cmds='.so'
9399    hardcode_into_libs=yes
9400    dynamic_linker="$host_os dld.so"
9401    shlibpath_var=LD_LIBRARY_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    if test "X$HPUX_IA64_MODE" = X32; then
9406      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9407    else
9408      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9409    fi
9410    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9411    ;;
9412   hppa*64*)
9413     shrext_cmds='.sl'
9414     hardcode_into_libs=yes
9415     dynamic_linker="$host_os dld.sl"
9416     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419     soname_spec='${libname}${release}${shared_ext}$major'
9420     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9422     ;;
9423   *)
9424    shrext_cmds='.sl'
9425    dynamic_linker="$host_os dld.sl"
9426    shlibpath_var=SHLIB_PATH
9427    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429    soname_spec='${libname}${release}${shared_ext}$major'
9430    ;;
9431  esac
9432  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9433  postinstall_cmds='chmod 555 $lib'
9434  ;;
9435
9436interix3*)
9437  version_type=linux
9438  need_lib_prefix=no
9439  need_version=no
9440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9443  shlibpath_var=LD_LIBRARY_PATH
9444  shlibpath_overrides_runpath=no
9445  hardcode_into_libs=yes
9446  ;;
9447
9448irix5* | irix6* | nonstopux*)
9449  case $host_os in
9450    nonstopux*) version_type=nonstopux ;;
9451    *)
9452        if test "$lt_cv_prog_gnu_ld" = yes; then
9453                version_type=linux
9454        else
9455                version_type=irix
9456        fi ;;
9457  esac
9458  need_lib_prefix=no
9459  need_version=no
9460  soname_spec='${libname}${release}${shared_ext}$major'
9461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9462  case $host_os in
9463  irix5* | nonstopux*)
9464    libsuff= shlibsuff=
9465    ;;
9466  *)
9467    case $LD in # libtool.m4 will add one of these switches to LD
9468    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9469      libsuff= shlibsuff= libmagic=32-bit;;
9470    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9471      libsuff=32 shlibsuff=N32 libmagic=N32;;
9472    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9473      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9474    *) libsuff= shlibsuff= libmagic=never-match;;
9475    esac
9476    ;;
9477  esac
9478  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9479  shlibpath_overrides_runpath=no
9480  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9481  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9482  hardcode_into_libs=yes
9483  ;;
9484
9485# No shared lib support for Linux oldld, aout, or coff.
9486linux*oldld* | linux*aout* | linux*coff*)
9487  dynamic_linker=no
9488  ;;
9489
9490# This must be Linux ELF.
9491linux*)
9492  version_type=linux
9493  need_lib_prefix=no
9494  need_version=no
9495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9498  shlibpath_var=LD_LIBRARY_PATH
9499  shlibpath_overrides_runpath=no
9500  # This implies no fast_install, which is unacceptable.
9501  # Some rework will be needed to allow for fast_install
9502  # before this can be enabled.
9503  hardcode_into_libs=yes
9504
9505  # Append ld.so.conf contents to the search path
9506  if test -f /etc/ld.so.conf; then
9507    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' ' '`
9508    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9509  fi
9510
9511  # We used to test for /lib/ld.so.1 and disable shared libraries on
9512  # powerpc, because MkLinux only supported shared libraries with the
9513  # GNU dynamic linker.  Since this was broken with cross compilers,
9514  # most powerpc-linux boxes support dynamic linking these days and
9515  # people can always --disable-shared, the test was removed, and we
9516  # assume the GNU/Linux dynamic linker is in use.
9517  dynamic_linker='GNU/Linux ld.so'
9518  ;;
9519
9520knetbsd*-gnu)
9521  version_type=linux
9522  need_lib_prefix=no
9523  need_version=no
9524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9525  soname_spec='${libname}${release}${shared_ext}$major'
9526  shlibpath_var=LD_LIBRARY_PATH
9527  shlibpath_overrides_runpath=no
9528  hardcode_into_libs=yes
9529  dynamic_linker='GNU ld.so'
9530  ;;
9531
9532netbsd*)
9533  version_type=sunos
9534  need_lib_prefix=no
9535  need_version=no
9536  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9537    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9538    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9539    dynamic_linker='NetBSD (a.out) ld.so'
9540  else
9541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9542    soname_spec='${libname}${release}${shared_ext}$major'
9543    dynamic_linker='NetBSD ld.elf_so'
9544  fi
9545  shlibpath_var=LD_LIBRARY_PATH
9546  shlibpath_overrides_runpath=yes
9547  hardcode_into_libs=yes
9548  ;;
9549
9550newsos6)
9551  version_type=linux
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553  shlibpath_var=LD_LIBRARY_PATH
9554  shlibpath_overrides_runpath=yes
9555  ;;
9556
9557nto-qnx*)
9558  version_type=linux
9559  need_lib_prefix=no
9560  need_version=no
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562  soname_spec='${libname}${release}${shared_ext}$major'
9563  shlibpath_var=LD_LIBRARY_PATH
9564  shlibpath_overrides_runpath=yes
9565  ;;
9566
9567openbsd*)
9568  version_type=sunos
9569  sys_lib_dlsearch_path_spec="/usr/lib"
9570  need_lib_prefix=no
9571  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9572  case $host_os in
9573    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9574    *)                         need_version=no  ;;
9575  esac
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9580    case $host_os in
9581      openbsd2.[89] | openbsd2.[89].*)
9582        shlibpath_overrides_runpath=no
9583        ;;
9584      *)
9585        shlibpath_overrides_runpath=yes
9586        ;;
9587      esac
9588  else
9589    shlibpath_overrides_runpath=yes
9590  fi
9591  ;;
9592
9593os2*)
9594  libname_spec='$name'
9595  shrext_cmds=".dll"
9596  need_lib_prefix=no
9597  library_names_spec='$libname${shared_ext} $libname.a'
9598  dynamic_linker='OS/2 ld.exe'
9599  shlibpath_var=LIBPATH
9600  ;;
9601
9602osf3* | osf4* | osf5*)
9603  version_type=osf
9604  need_lib_prefix=no
9605  need_version=no
9606  soname_spec='${libname}${release}${shared_ext}$major'
9607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608  shlibpath_var=LD_LIBRARY_PATH
9609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9610  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9611  ;;
9612
9613solaris*)
9614  version_type=linux
9615  need_lib_prefix=no
9616  need_version=no
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618  soname_spec='${libname}${release}${shared_ext}$major'
9619  shlibpath_var=LD_LIBRARY_PATH
9620  shlibpath_overrides_runpath=yes
9621  hardcode_into_libs=yes
9622  # ldd complains unless libraries are executable
9623  postinstall_cmds='chmod +x $lib'
9624  ;;
9625
9626sunos4*)
9627  version_type=sunos
9628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9629  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9630  shlibpath_var=LD_LIBRARY_PATH
9631  shlibpath_overrides_runpath=yes
9632  if test "$with_gnu_ld" = yes; then
9633    need_lib_prefix=no
9634  fi
9635  need_version=yes
9636  ;;
9637
9638sysv4 | sysv4.3*)
9639  version_type=linux
9640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641  soname_spec='${libname}${release}${shared_ext}$major'
9642  shlibpath_var=LD_LIBRARY_PATH
9643  case $host_vendor in
9644    sni)
9645      shlibpath_overrides_runpath=no
9646      need_lib_prefix=no
9647      export_dynamic_flag_spec='${wl}-Blargedynsym'
9648      runpath_var=LD_RUN_PATH
9649      ;;
9650    siemens)
9651      need_lib_prefix=no
9652      ;;
9653    motorola)
9654      need_lib_prefix=no
9655      need_version=no
9656      shlibpath_overrides_runpath=no
9657      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9658      ;;
9659  esac
9660  ;;
9661
9662sysv4*MP*)
9663  if test -d /usr/nec ;then
9664    version_type=linux
9665    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9666    soname_spec='$libname${shared_ext}.$major'
9667    shlibpath_var=LD_LIBRARY_PATH
9668  fi
9669  ;;
9670
9671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9672  version_type=freebsd-elf
9673  need_lib_prefix=no
9674  need_version=no
9675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9676  soname_spec='${libname}${release}${shared_ext}$major'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  hardcode_into_libs=yes
9679  if test "$with_gnu_ld" = yes; then
9680    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9681    shlibpath_overrides_runpath=no
9682  else
9683    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9684    shlibpath_overrides_runpath=yes
9685    case $host_os in
9686      sco3.2v5*)
9687        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9688        ;;
9689    esac
9690  fi
9691  sys_lib_dlsearch_path_spec='/usr/lib'
9692  ;;
9693
9694uts4*)
9695  version_type=linux
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697  soname_spec='${libname}${release}${shared_ext}$major'
9698  shlibpath_var=LD_LIBRARY_PATH
9699  ;;
9700
9701*)
9702  dynamic_linker=no
9703  ;;
9704esac
9705echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9706echo "${ECHO_T}$dynamic_linker" >&6
9707test "$dynamic_linker" = no && can_build_shared=no
9708
9709variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9710if test "$GCC" = yes; then
9711  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9712fi
9713
9714echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9715echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9716hardcode_action=
9717if test -n "$hardcode_libdir_flag_spec" || \
9718   test -n "$runpath_var" || \
9719   test "X$hardcode_automatic" = "Xyes" ; then
9720
9721  # We can hardcode non-existant directories.
9722  if test "$hardcode_direct" != no &&
9723     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9724     # have to relink, otherwise we might link with an installed library
9725     # when we should be linking with a yet-to-be-installed one
9726     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9727     test "$hardcode_minus_L" != no; then
9728    # Linking always hardcodes the temporary library directory.
9729    hardcode_action=relink
9730  else
9731    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9732    hardcode_action=immediate
9733  fi
9734else
9735  # We cannot hardcode anything, or else we can only hardcode existing
9736  # directories.
9737  hardcode_action=unsupported
9738fi
9739echo "$as_me:$LINENO: result: $hardcode_action" >&5
9740echo "${ECHO_T}$hardcode_action" >&6
9741
9742if test "$hardcode_action" = relink; then
9743  # Fast installation is not supported
9744  enable_fast_install=no
9745elif test "$shlibpath_overrides_runpath" = yes ||
9746     test "$enable_shared" = no; then
9747  # Fast installation is not necessary
9748  enable_fast_install=needless
9749fi
9750
9751striplib=
9752old_striplib=
9753echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9754echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9755if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9756  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9757  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9758  echo "$as_me:$LINENO: result: yes" >&5
9759echo "${ECHO_T}yes" >&6
9760else
9761# FIXME - insert some real tests, host_os isn't really good enough
9762  case $host_os in
9763   darwin*)
9764       if test -n "$STRIP" ; then
9765         striplib="$STRIP -x"
9766         echo "$as_me:$LINENO: result: yes" >&5
9767echo "${ECHO_T}yes" >&6
9768       else
9769  echo "$as_me:$LINENO: result: no" >&5
9770echo "${ECHO_T}no" >&6
9771fi
9772       ;;
9773   *)
9774  echo "$as_me:$LINENO: result: no" >&5
9775echo "${ECHO_T}no" >&6
9776    ;;
9777  esac
9778fi
9779
9780if test "x$enable_dlopen" != xyes; then
9781  enable_dlopen=unknown
9782  enable_dlopen_self=unknown
9783  enable_dlopen_self_static=unknown
9784else
9785  lt_cv_dlopen=no
9786  lt_cv_dlopen_libs=
9787
9788  case $host_os in
9789  beos*)
9790    lt_cv_dlopen="load_add_on"
9791    lt_cv_dlopen_libs=
9792    lt_cv_dlopen_self=yes
9793    ;;
9794
9795  mingw* | pw32*)
9796    lt_cv_dlopen="LoadLibrary"
9797    lt_cv_dlopen_libs=
9798   ;;
9799
9800  cygwin*)
9801    lt_cv_dlopen="dlopen"
9802    lt_cv_dlopen_libs=
9803   ;;
9804
9805  darwin*)
9806  # if libdl is installed we need to link against it
9807    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9808echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9809if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9810  echo $ECHO_N "(cached) $ECHO_C" >&6
9811else
9812  ac_check_lib_save_LIBS=$LIBS
9813LIBS="-ldl  $LIBS"
9814cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h.  */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h.  */
9820
9821/* Override any gcc2 internal prototype to avoid an error.  */
9822#ifdef __cplusplus
9823extern "C"
9824#endif
9825/* We use char because int might match the return type of a gcc2
9826   builtin and then its argument prototype would still apply.  */
9827char dlopen ();
9828int
9829main ()
9830{
9831dlopen ();
9832  ;
9833  return 0;
9834}
9835_ACEOF
9836rm -f conftest.$ac_objext conftest$ac_exeext
9837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838  (eval $ac_link) 2>conftest.er1
9839  ac_status=$?
9840  grep -v '^ *+' conftest.er1 >conftest.err
9841  rm -f conftest.er1
9842  cat conftest.err >&5
9843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844  (exit $ac_status); } &&
9845         { ac_try='test -z "$ac_c_werror_flag"
9846                         || test ! -s conftest.err'
9847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848  (eval $ac_try) 2>&5
9849  ac_status=$?
9850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851  (exit $ac_status); }; } &&
9852         { ac_try='test -s conftest$ac_exeext'
9853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854  (eval $ac_try) 2>&5
9855  ac_status=$?
9856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857  (exit $ac_status); }; }; then
9858  ac_cv_lib_dl_dlopen=yes
9859else
9860  echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863ac_cv_lib_dl_dlopen=no
9864fi
9865rm -f conftest.err conftest.$ac_objext \
9866      conftest$ac_exeext conftest.$ac_ext
9867LIBS=$ac_check_lib_save_LIBS
9868fi
9869echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9871if test $ac_cv_lib_dl_dlopen = yes; then
9872  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9873else
9874
9875    lt_cv_dlopen="dyld"
9876    lt_cv_dlopen_libs=
9877    lt_cv_dlopen_self=yes
9878
9879fi
9880
9881   ;;
9882
9883  *)
9884    echo "$as_me:$LINENO: checking for shl_load" >&5
9885echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9886if test "${ac_cv_func_shl_load+set}" = set; then
9887  echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889  cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h.  */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h.  */
9895/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9896   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9897#define shl_load innocuous_shl_load
9898
9899/* System header to define __stub macros and hopefully few prototypes,
9900    which can conflict with char shl_load (); below.
9901    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902    <limits.h> exists even on freestanding compilers.  */
9903
9904#ifdef __STDC__
9905# include <limits.h>
9906#else
9907# include <assert.h>
9908#endif
9909
9910#undef shl_load
9911
9912/* Override any gcc2 internal prototype to avoid an error.  */
9913#ifdef __cplusplus
9914extern "C"
9915{
9916#endif
9917/* We use char because int might match the return type of a gcc2
9918   builtin and then its argument prototype would still apply.  */
9919char shl_load ();
9920/* The GNU C library defines this for functions which it implements
9921    to always fail with ENOSYS.  Some functions are actually named
9922    something starting with __ and the normal name is an alias.  */
9923#if defined (__stub_shl_load) || defined (__stub___shl_load)
9924choke me
9925#else
9926char (*f) () = shl_load;
9927#endif
9928#ifdef __cplusplus
9929}
9930#endif
9931
9932int
9933main ()
9934{
9935return f != shl_load;
9936  ;
9937  return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942  (eval $ac_link) 2>conftest.er1
9943  ac_status=$?
9944  grep -v '^ *+' conftest.er1 >conftest.err
9945  rm -f conftest.er1
9946  cat conftest.err >&5
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); } &&
9949         { ac_try='test -z "$ac_c_werror_flag"
9950                         || test ! -s conftest.err'
9951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952  (eval $ac_try) 2>&5
9953  ac_status=$?
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); }; } &&
9956         { ac_try='test -s conftest$ac_exeext'
9957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958  (eval $ac_try) 2>&5
9959  ac_status=$?
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); }; }; then
9962  ac_cv_func_shl_load=yes
9963else
9964  echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967ac_cv_func_shl_load=no
9968fi
9969rm -f conftest.err conftest.$ac_objext \
9970      conftest$ac_exeext conftest.$ac_ext
9971fi
9972echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9973echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9974if test $ac_cv_func_shl_load = yes; then
9975  lt_cv_dlopen="shl_load"
9976else
9977  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9978echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9979if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9980  echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982  ac_check_lib_save_LIBS=$LIBS
9983LIBS="-ldld  $LIBS"
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h.  */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h.  */
9990
9991/* Override any gcc2 internal prototype to avoid an error.  */
9992#ifdef __cplusplus
9993extern "C"
9994#endif
9995/* We use char because int might match the return type of a gcc2
9996   builtin and then its argument prototype would still apply.  */
9997char shl_load ();
9998int
9999main ()
10000{
10001shl_load ();
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008  (eval $ac_link) 2>conftest.er1
10009  ac_status=$?
10010  grep -v '^ *+' conftest.er1 >conftest.err
10011  rm -f conftest.er1
10012  cat conftest.err >&5
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); } &&
10015         { ac_try='test -z "$ac_c_werror_flag"
10016                         || test ! -s conftest.err'
10017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018  (eval $ac_try) 2>&5
10019  ac_status=$?
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); }; } &&
10022         { ac_try='test -s conftest$ac_exeext'
10023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024  (eval $ac_try) 2>&5
10025  ac_status=$?
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); }; }; then
10028  ac_cv_lib_dld_shl_load=yes
10029else
10030  echo "$as_me: failed program was:" >&5
10031sed 's/^/| /' conftest.$ac_ext >&5
10032
10033ac_cv_lib_dld_shl_load=no
10034fi
10035rm -f conftest.err conftest.$ac_objext \
10036      conftest$ac_exeext conftest.$ac_ext
10037LIBS=$ac_check_lib_save_LIBS
10038fi
10039echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10040echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10041if test $ac_cv_lib_dld_shl_load = yes; then
10042  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10043else
10044  echo "$as_me:$LINENO: checking for dlopen" >&5
10045echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10046if test "${ac_cv_func_dlopen+set}" = set; then
10047  echo $ECHO_N "(cached) $ECHO_C" >&6
10048else
10049  cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h.  */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h.  */
10055/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10056   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10057#define dlopen innocuous_dlopen
10058
10059/* System header to define __stub macros and hopefully few prototypes,
10060    which can conflict with char dlopen (); below.
10061    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10062    <limits.h> exists even on freestanding compilers.  */
10063
10064#ifdef __STDC__
10065# include <limits.h>
10066#else
10067# include <assert.h>
10068#endif
10069
10070#undef dlopen
10071
10072/* Override any gcc2 internal prototype to avoid an error.  */
10073#ifdef __cplusplus
10074extern "C"
10075{
10076#endif
10077/* We use char because int might match the return type of a gcc2
10078   builtin and then its argument prototype would still apply.  */
10079char dlopen ();
10080/* The GNU C library defines this for functions which it implements
10081    to always fail with ENOSYS.  Some functions are actually named
10082    something starting with __ and the normal name is an alias.  */
10083#if defined (__stub_dlopen) || defined (__stub___dlopen)
10084choke me
10085#else
10086char (*f) () = dlopen;
10087#endif
10088#ifdef __cplusplus
10089}
10090#endif
10091
10092int
10093main ()
10094{
10095return f != dlopen;
10096  ;
10097  return 0;
10098}
10099_ACEOF
10100rm -f conftest.$ac_objext conftest$ac_exeext
10101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102  (eval $ac_link) 2>conftest.er1
10103  ac_status=$?
10104  grep -v '^ *+' conftest.er1 >conftest.err
10105  rm -f conftest.er1
10106  cat conftest.err >&5
10107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108  (exit $ac_status); } &&
10109         { ac_try='test -z "$ac_c_werror_flag"
10110                         || test ! -s conftest.err'
10111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112  (eval $ac_try) 2>&5
10113  ac_status=$?
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); }; } &&
10116         { ac_try='test -s conftest$ac_exeext'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; }; then
10122  ac_cv_func_dlopen=yes
10123else
10124  echo "$as_me: failed program was:" >&5
10125sed 's/^/| /' conftest.$ac_ext >&5
10126
10127ac_cv_func_dlopen=no
10128fi
10129rm -f conftest.err conftest.$ac_objext \
10130      conftest$ac_exeext conftest.$ac_ext
10131fi
10132echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10133echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10134if test $ac_cv_func_dlopen = yes; then
10135  lt_cv_dlopen="dlopen"
10136else
10137  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10138echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10139if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10140  echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142  ac_check_lib_save_LIBS=$LIBS
10143LIBS="-ldl  $LIBS"
10144cat >conftest.$ac_ext <<_ACEOF
10145/* confdefs.h.  */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h.  */
10150
10151/* Override any gcc2 internal prototype to avoid an error.  */
10152#ifdef __cplusplus
10153extern "C"
10154#endif
10155/* We use char because int might match the return type of a gcc2
10156   builtin and then its argument prototype would still apply.  */
10157char dlopen ();
10158int
10159main ()
10160{
10161dlopen ();
10162  ;
10163  return 0;
10164}
10165_ACEOF
10166rm -f conftest.$ac_objext conftest$ac_exeext
10167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168  (eval $ac_link) 2>conftest.er1
10169  ac_status=$?
10170  grep -v '^ *+' conftest.er1 >conftest.err
10171  rm -f conftest.er1
10172  cat conftest.err >&5
10173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); } &&
10175         { ac_try='test -z "$ac_c_werror_flag"
10176                         || test ! -s conftest.err'
10177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178  (eval $ac_try) 2>&5
10179  ac_status=$?
10180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181  (exit $ac_status); }; } &&
10182         { ac_try='test -s conftest$ac_exeext'
10183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184  (eval $ac_try) 2>&5
10185  ac_status=$?
10186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187  (exit $ac_status); }; }; then
10188  ac_cv_lib_dl_dlopen=yes
10189else
10190  echo "$as_me: failed program was:" >&5
10191sed 's/^/| /' conftest.$ac_ext >&5
10192
10193ac_cv_lib_dl_dlopen=no
10194fi
10195rm -f conftest.err conftest.$ac_objext \
10196      conftest$ac_exeext conftest.$ac_ext
10197LIBS=$ac_check_lib_save_LIBS
10198fi
10199echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10200echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10201if test $ac_cv_lib_dl_dlopen = yes; then
10202  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10203else
10204  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10205echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10206if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10207  echo $ECHO_N "(cached) $ECHO_C" >&6
10208else
10209  ac_check_lib_save_LIBS=$LIBS
10210LIBS="-lsvld  $LIBS"
10211cat >conftest.$ac_ext <<_ACEOF
10212/* confdefs.h.  */
10213_ACEOF
10214cat confdefs.h >>conftest.$ac_ext
10215cat >>conftest.$ac_ext <<_ACEOF
10216/* end confdefs.h.  */
10217
10218/* Override any gcc2 internal prototype to avoid an error.  */
10219#ifdef __cplusplus
10220extern "C"
10221#endif
10222/* We use char because int might match the return type of a gcc2
10223   builtin and then its argument prototype would still apply.  */
10224char dlopen ();
10225int
10226main ()
10227{
10228dlopen ();
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235  (eval $ac_link) 2>conftest.er1
10236  ac_status=$?
10237  grep -v '^ *+' conftest.er1 >conftest.err
10238  rm -f conftest.er1
10239  cat conftest.err >&5
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); } &&
10242         { ac_try='test -z "$ac_c_werror_flag"
10243                         || test ! -s conftest.err'
10244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245  (eval $ac_try) 2>&5
10246  ac_status=$?
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); }; } &&
10249         { ac_try='test -s conftest$ac_exeext'
10250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251  (eval $ac_try) 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; }; then
10255  ac_cv_lib_svld_dlopen=yes
10256else
10257  echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260ac_cv_lib_svld_dlopen=no
10261fi
10262rm -f conftest.err conftest.$ac_objext \
10263      conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10267echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10268if test $ac_cv_lib_svld_dlopen = yes; then
10269  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10270else
10271  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10272echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10273if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10274  echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276  ac_check_lib_save_LIBS=$LIBS
10277LIBS="-ldld  $LIBS"
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h.  */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h.  */
10284
10285/* Override any gcc2 internal prototype to avoid an error.  */
10286#ifdef __cplusplus
10287extern "C"
10288#endif
10289/* We use char because int might match the return type of a gcc2
10290   builtin and then its argument prototype would still apply.  */
10291char dld_link ();
10292int
10293main ()
10294{
10295dld_link ();
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302  (eval $ac_link) 2>conftest.er1
10303  ac_status=$?
10304  grep -v '^ *+' conftest.er1 >conftest.err
10305  rm -f conftest.er1
10306  cat conftest.err >&5
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); } &&
10309         { ac_try='test -z "$ac_c_werror_flag"
10310                         || test ! -s conftest.err'
10311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312  (eval $ac_try) 2>&5
10313  ac_status=$?
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); }; } &&
10316         { ac_try='test -s conftest$ac_exeext'
10317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318  (eval $ac_try) 2>&5
10319  ac_status=$?
10320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321  (exit $ac_status); }; }; then
10322  ac_cv_lib_dld_dld_link=yes
10323else
10324  echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327ac_cv_lib_dld_dld_link=no
10328fi
10329rm -f conftest.err conftest.$ac_objext \
10330      conftest$ac_exeext conftest.$ac_ext
10331LIBS=$ac_check_lib_save_LIBS
10332fi
10333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10334echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10335if test $ac_cv_lib_dld_dld_link = yes; then
10336  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351
10352fi
10353
10354    ;;
10355  esac
10356
10357  if test "x$lt_cv_dlopen" != xno; then
10358    enable_dlopen=yes
10359  else
10360    enable_dlopen=no
10361  fi
10362
10363  case $lt_cv_dlopen in
10364  dlopen)
10365    save_CPPFLAGS="$CPPFLAGS"
10366    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10367
10368    save_LDFLAGS="$LDFLAGS"
10369    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10370
10371    save_LIBS="$LIBS"
10372    LIBS="$lt_cv_dlopen_libs $LIBS"
10373
10374    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10375echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10376if test "${lt_cv_dlopen_self+set}" = set; then
10377  echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379          if test "$cross_compiling" = yes; then :
10380  lt_cv_dlopen_self=cross
10381else
10382  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10383  lt_status=$lt_dlunknown
10384  cat > conftest.$ac_ext <<EOF
10385#line 10385 "configure"
10386#include "confdefs.h"
10387
10388#if HAVE_DLFCN_H
10389#include <dlfcn.h>
10390#endif
10391
10392#include <stdio.h>
10393
10394#ifdef RTLD_GLOBAL
10395#  define LT_DLGLOBAL           RTLD_GLOBAL
10396#else
10397#  ifdef DL_GLOBAL
10398#    define LT_DLGLOBAL         DL_GLOBAL
10399#  else
10400#    define LT_DLGLOBAL         0
10401#  endif
10402#endif
10403
10404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10405   find out it does not work in some platform. */
10406#ifndef LT_DLLAZY_OR_NOW
10407#  ifdef RTLD_LAZY
10408#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10409#  else
10410#    ifdef DL_LAZY
10411#      define LT_DLLAZY_OR_NOW          DL_LAZY
10412#    else
10413#      ifdef RTLD_NOW
10414#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10415#      else
10416#        ifdef DL_NOW
10417#          define LT_DLLAZY_OR_NOW      DL_NOW
10418#        else
10419#          define LT_DLLAZY_OR_NOW      0
10420#        endif
10421#      endif
10422#    endif
10423#  endif
10424#endif
10425
10426#ifdef __cplusplus
10427extern "C" void exit (int);
10428#endif
10429
10430void fnord() { int i=42;}
10431int main ()
10432{
10433  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10434  int status = $lt_dlunknown;
10435
10436  if (self)
10437    {
10438      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10439      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10440      /* dlclose (self); */
10441    }
10442  else
10443    puts (dlerror ());
10444
10445    exit (status);
10446}
10447EOF
10448  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449  (eval $ac_link) 2>&5
10450  ac_status=$?
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10453    (./conftest; exit; ) >&5 2>/dev/null
10454    lt_status=$?
10455    case x$lt_status in
10456      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10457      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10458      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10459    esac
10460  else :
10461    # compilation failed
10462    lt_cv_dlopen_self=no
10463  fi
10464fi
10465rm -fr conftest*
10466
10467
10468fi
10469echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10470echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10471
10472    if test "x$lt_cv_dlopen_self" = xyes; then
10473      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10474      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10475echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10476if test "${lt_cv_dlopen_self_static+set}" = set; then
10477  echo $ECHO_N "(cached) $ECHO_C" >&6
10478else
10479          if test "$cross_compiling" = yes; then :
10480  lt_cv_dlopen_self_static=cross
10481else
10482  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10483  lt_status=$lt_dlunknown
10484  cat > conftest.$ac_ext <<EOF
10485#line 10485 "configure"
10486#include "confdefs.h"
10487
10488#if HAVE_DLFCN_H
10489#include <dlfcn.h>
10490#endif
10491
10492#include <stdio.h>
10493
10494#ifdef RTLD_GLOBAL
10495#  define LT_DLGLOBAL           RTLD_GLOBAL
10496#else
10497#  ifdef DL_GLOBAL
10498#    define LT_DLGLOBAL         DL_GLOBAL
10499#  else
10500#    define LT_DLGLOBAL         0
10501#  endif
10502#endif
10503
10504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10505   find out it does not work in some platform. */
10506#ifndef LT_DLLAZY_OR_NOW
10507#  ifdef RTLD_LAZY
10508#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10509#  else
10510#    ifdef DL_LAZY
10511#      define LT_DLLAZY_OR_NOW          DL_LAZY
10512#    else
10513#      ifdef RTLD_NOW
10514#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10515#      else
10516#        ifdef DL_NOW
10517#          define LT_DLLAZY_OR_NOW      DL_NOW
10518#        else
10519#          define LT_DLLAZY_OR_NOW      0
10520#        endif
10521#      endif
10522#    endif
10523#  endif
10524#endif
10525
10526#ifdef __cplusplus
10527extern "C" void exit (int);
10528#endif
10529
10530void fnord() { int i=42;}
10531int main ()
10532{
10533  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10534  int status = $lt_dlunknown;
10535
10536  if (self)
10537    {
10538      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10539      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10540      /* dlclose (self); */
10541    }
10542  else
10543    puts (dlerror ());
10544
10545    exit (status);
10546}
10547EOF
10548  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549  (eval $ac_link) 2>&5
10550  ac_status=$?
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10553    (./conftest; exit; ) >&5 2>/dev/null
10554    lt_status=$?
10555    case x$lt_status in
10556      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10557      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10558      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10559    esac
10560  else :
10561    # compilation failed
10562    lt_cv_dlopen_self_static=no
10563  fi
10564fi
10565rm -fr conftest*
10566
10567
10568fi
10569echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10570echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10571    fi
10572
10573    CPPFLAGS="$save_CPPFLAGS"
10574    LDFLAGS="$save_LDFLAGS"
10575    LIBS="$save_LIBS"
10576    ;;
10577  esac
10578
10579  case $lt_cv_dlopen_self in
10580  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10581  *) enable_dlopen_self=unknown ;;
10582  esac
10583
10584  case $lt_cv_dlopen_self_static in
10585  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10586  *) enable_dlopen_self_static=unknown ;;
10587  esac
10588fi
10589
10590
10591# Report which library types will actually be built
10592echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10593echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10594echo "$as_me:$LINENO: result: $can_build_shared" >&5
10595echo "${ECHO_T}$can_build_shared" >&6
10596
10597echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10598echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10599test "$can_build_shared" = "no" && enable_shared=no
10600
10601# On AIX, shared libraries and static libraries use the same namespace, and
10602# are all built from PIC.
10603case $host_os in
10604aix3*)
10605  test "$enable_shared" = yes && enable_static=no
10606  if test -n "$RANLIB"; then
10607    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10608    postinstall_cmds='$RANLIB $lib'
10609  fi
10610  ;;
10611
10612aix4* | aix5*)
10613  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10614    test "$enable_shared" = yes && enable_static=no
10615  fi
10616    ;;
10617esac
10618echo "$as_me:$LINENO: result: $enable_shared" >&5
10619echo "${ECHO_T}$enable_shared" >&6
10620
10621echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10622echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10623# Make sure either enable_shared or enable_static is yes.
10624test "$enable_shared" = yes || enable_static=yes
10625echo "$as_me:$LINENO: result: $enable_static" >&5
10626echo "${ECHO_T}$enable_static" >&6
10627
10628# The else clause should only fire when bootstrapping the
10629# libtool distribution, otherwise you forgot to ship ltmain.sh
10630# with your package, and you will get complaints that there are
10631# no rules to generate ltmain.sh.
10632if test -f "$ltmain"; then
10633  # See if we are running on zsh, and set the options which allow our commands through
10634  # without removal of \ escapes.
10635  if test -n "${ZSH_VERSION+set}" ; then
10636    setopt NO_GLOB_SUBST
10637  fi
10638  # Now quote all the things that may contain metacharacters while being
10639  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10640  # variables and quote the copies for generation of the libtool script.
10641  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10642    SED SHELL STRIP \
10643    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10644    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10645    deplibs_check_method reload_flag reload_cmds need_locks \
10646    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10647    lt_cv_sys_global_symbol_to_c_name_address \
10648    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10649    old_postinstall_cmds old_postuninstall_cmds \
10650    compiler \
10651    CC \
10652    LD \
10653    lt_prog_compiler_wl \
10654    lt_prog_compiler_pic \
10655    lt_prog_compiler_static \
10656    lt_prog_compiler_no_builtin_flag \
10657    export_dynamic_flag_spec \
10658    thread_safe_flag_spec \
10659    whole_archive_flag_spec \
10660    enable_shared_with_static_runtimes \
10661    old_archive_cmds \
10662    old_archive_from_new_cmds \
10663    predep_objects \
10664    postdep_objects \
10665    predeps \
10666    postdeps \
10667    compiler_lib_search_path \
10668    archive_cmds \
10669    archive_expsym_cmds \
10670    postinstall_cmds \
10671    postuninstall_cmds \
10672    old_archive_from_expsyms_cmds \
10673    allow_undefined_flag \
10674    no_undefined_flag \
10675    export_symbols_cmds \
10676    hardcode_libdir_flag_spec \
10677    hardcode_libdir_flag_spec_ld \
10678    hardcode_libdir_separator \
10679    hardcode_automatic \
10680    module_cmds \
10681    module_expsym_cmds \
10682    lt_cv_prog_compiler_c_o \
10683    exclude_expsyms \
10684    include_expsyms; do
10685
10686    case $var in
10687    old_archive_cmds | \
10688    old_archive_from_new_cmds | \
10689    archive_cmds | \
10690    archive_expsym_cmds | \
10691    module_cmds | \
10692    module_expsym_cmds | \
10693    old_archive_from_expsyms_cmds | \
10694    export_symbols_cmds | \
10695    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10696    postinstall_cmds | postuninstall_cmds | \
10697    old_postinstall_cmds | old_postuninstall_cmds | \
10698    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10699      # Double-quote double-evaled strings.
10700      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10701      ;;
10702    *)
10703      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10704      ;;
10705    esac
10706  done
10707
10708  case $lt_echo in
10709  *'\$0 --fallback-echo"')
10710    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10711    ;;
10712  esac
10713
10714cfgfile="${ofile}T"
10715  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10716  $rm -f "$cfgfile"
10717  { echo "$as_me:$LINENO: creating $ofile" >&5
10718echo "$as_me: creating $ofile" >&6;}
10719
10720  cat <<__EOF__ >> "$cfgfile"
10721#! $SHELL
10722
10723# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10724# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10725# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10726#
10727# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10728# Free Software Foundation, Inc.
10729#
10730# This file is part of GNU Libtool:
10731# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10732#
10733# This program is free software; you can redistribute it and/or modify
10734# it under the terms of the GNU General Public License as published by
10735# the Free Software Foundation; either version 2 of the License, or
10736# (at your option) any later version.
10737#
10738# This program is distributed in the hope that it will be useful, but
10739# WITHOUT ANY WARRANTY; without even the implied warranty of
10740# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10741# General Public License for more details.
10742#
10743# You should have received a copy of the GNU General Public License
10744# along with this program; if not, write to the Free Software
10745# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10746#
10747# As a special exception to the GNU General Public License, if you
10748# distribute this file as part of a program that contains a
10749# configuration script generated by Autoconf, you may include it under
10750# the same distribution terms that you use for the rest of that program.
10751
10752# A sed program that does not truncate output.
10753SED=$lt_SED
10754
10755# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10756Xsed="$SED -e 1s/^X//"
10757
10758# The HP-UX ksh and POSIX shell print the target directory to stdout
10759# if CDPATH is set.
10760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10761
10762# The names of the tagged configurations supported by this script.
10763available_tags=
10764
10765# ### BEGIN LIBTOOL CONFIG
10766
10767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: