source: ThirdParty/Metis/trunk/configure @ 1588

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

give project name to COIN_PROJECTDIR_INIT; rerun autotools

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