source: ThirdParty/Metis/trunk/configure @ 2174

Last change on this file since 2174 was 2174, checked in by stefan, 9 years ago

rerun autotools

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