source: ThirdParty/Metis/trunk/configure @ 1411

Last change on this file since 1411 was 1411, checked in by stefan, 11 years ago

revert my recent changes related to BSPsplit after copying them into branches

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