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

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

sync with trunk; rerun autotools

  • Property svn:executable set to *
File size: 709.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMetis 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartyMetis 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR METIS_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis 1.2 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis 1.2:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-metis compile project Metis with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079Optional Packages:
1080  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082  --with-metis-verbosity specify the debug verbosity level for project Metis
1083  --with-metis-checklevel specify the sanity check level for project Metis
1084  --with-coin-instdir     prefix of installation directory for precompiled
1085                          COIN packages
1086  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1087  --with-pic              try to use only PIC/non-PIC objects [default=use
1088                          both]
1089  --with-tags[=TAGS]
1090                          include additional configurations [automatic]
1091
1092Some influential environment variables:
1093  CDEFS       Additional -D flags to be used when compiling C code.
1094  ADD_CFLAGS  Additional C compiler options
1095  DBG_CFLAGS  Debug C compiler options
1096  OPT_CFLAGS  Optimize C compiler options
1097  CC          C compiler command
1098  CFLAGS      C compiler flags
1099  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1100              nonstandard directory <lib dir>
1101  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102              headers in a nonstandard directory <include dir>
1103  MPICC       C MPI Compiler
1104  PKG_CONFIG  path to pkg-config utility
1105  CPP         C preprocessor
1106  CXX         C++ compiler command
1107  CXXFLAGS    C++ compiler flags
1108  CXXCPP      C++ preprocessor
1109  F77         Fortran 77 compiler command
1110  FFLAGS      Fortran 77 compiler flags
1111
1112Use these variables to override the choices made by `configure' or to help
1113it to find libraries and programs with nonstandard names/locations.
1114
1115Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1116_ACEOF
1117fi
1118
1119if test "$ac_init_help" = "recursive"; then
1120  # If there are subdirs, report their specific --help.
1121  ac_popdir=`pwd`
1122  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1123    test -d $ac_dir || continue
1124    ac_builddir=.
1125
1126if test "$ac_dir" != .; then
1127  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1128  # A "../" for each directory in $ac_dir_suffix.
1129  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130else
1131  ac_dir_suffix= ac_top_builddir=
1132fi
1133
1134case $srcdir in
1135  .)  # No --srcdir option.  We are building in place.
1136    ac_srcdir=.
1137    if test -z "$ac_top_builddir"; then
1138       ac_top_srcdir=.
1139    else
1140       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141    fi ;;
1142  [\\/]* | ?:[\\/]* )  # Absolute path.
1143    ac_srcdir=$srcdir$ac_dir_suffix;
1144    ac_top_srcdir=$srcdir ;;
1145  *) # Relative path.
1146    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1147    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148esac
1149
1150# Do not use `cd foo && pwd` to compute absolute paths, because
1151# the directories may not exist.
1152case `pwd` in
1153.) ac_abs_builddir="$ac_dir";;
1154*)
1155  case "$ac_dir" in
1156  .) ac_abs_builddir=`pwd`;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1158  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159  esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_builddir=${ac_top_builddir}.;;
1163*)
1164  case ${ac_top_builddir}. in
1165  .) ac_abs_top_builddir=$ac_abs_builddir;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1167  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_srcdir=$ac_srcdir;;
1172*)
1173  case $ac_srcdir in
1174  .) ac_abs_srcdir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1176  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_top_srcdir=$ac_top_srcdir;;
1181*)
1182  case $ac_top_srcdir in
1183  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1185  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186  esac;;
1187esac
1188
1189    cd $ac_dir
1190    # Check for guested configure; otherwise get Cygnus style configure.
1191    if test -f $ac_srcdir/configure.gnu; then
1192      echo
1193      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1194    elif test -f $ac_srcdir/configure; then
1195      echo
1196      $SHELL $ac_srcdir/configure  --help=recursive
1197    elif test -f $ac_srcdir/configure.ac ||
1198           test -f $ac_srcdir/configure.in; then
1199      echo
1200      $ac_configure --help
1201    else
1202      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203    fi
1204    cd $ac_popdir
1205  done
1206fi
1207
1208test -n "$ac_init_help" && exit 0
1209if $ac_init_version; then
1210  cat <<\_ACEOF
1211ThirdPartyMetis configure 1.2
1212generated by GNU Autoconf 2.59
1213
1214Copyright (C) 2003 Free Software Foundation, Inc.
1215This configure script is free software; the Free Software Foundation
1216gives unlimited permission to copy, distribute and modify it.
1217
1218
1219Copyright 2009 International Business Machines and others.
1220All Rights Reserved.
1221This file is part of the open source package Coin which is distributed
1222under the Eclipse Public License.
1223_ACEOF
1224  exit 0
1225fi
1226exec 5>config.log
1227cat >&5 <<_ACEOF
1228This file contains any messages produced by compilers while
1229running configure, to aid debugging if configure makes a mistake.
1230
1231It was created by ThirdPartyMetis $as_me 1.2, which was
1232generated by GNU Autoconf 2.59.  Invocation command line was
1233
1234  $ $0 $@
1235
1236_ACEOF
1237{
1238cat <<_ASUNAME
1239## --------- ##
1240## Platform. ##
1241## --------- ##
1242
1243hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248
1249/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1251
1252/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1253/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1254/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1256/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1257/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1258/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1259
1260_ASUNAME
1261
1262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263for as_dir in $PATH
1264do
1265  IFS=$as_save_IFS
1266  test -z "$as_dir" && as_dir=.
1267  echo "PATH: $as_dir"
1268done
1269
1270} >&5
1271
1272cat >&5 <<_ACEOF
1273
1274
1275## ----------- ##
1276## Core tests. ##
1277## ----------- ##
1278
1279_ACEOF
1280
1281
1282# Keep a trace of the command line.
1283# Strip out --no-create and --no-recursion so they do not pile up.
1284# Strip out --silent because we don't want to record it for future runs.
1285# Also quote any args containing shell meta-characters.
1286# Make two passes to allow for proper duplicate-argument suppression.
1287ac_configure_args=
1288ac_configure_args0=
1289ac_configure_args1=
1290ac_sep=
1291ac_must_keep_next=false
1292for ac_pass in 1 2
1293do
1294  for ac_arg
1295  do
1296    case $ac_arg in
1297    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299    | -silent | --silent | --silen | --sile | --sil)
1300      continue ;;
1301    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303    esac
1304    case $ac_pass in
1305    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306    2)
1307      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308      if test $ac_must_keep_next = true; then
1309        ac_must_keep_next=false # Got value, back to normal.
1310      else
1311        case $ac_arg in
1312          *=* | --config-cache | -C | -disable-* | --disable-* \
1313          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315          | -with-* | --with-* | -without-* | --without-* | --x)
1316            case "$ac_configure_args0 " in
1317              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318            esac
1319            ;;
1320          -* ) ac_must_keep_next=true ;;
1321        esac
1322      fi
1323      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324      # Get rid of the leading space.
1325      ac_sep=" "
1326      ;;
1327    esac
1328  done
1329done
1330$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332
1333# When interrupted or exit'd, cleanup temporary files, and complete
1334# config.log.  We remove comments because anyway the quotes in there
1335# would cause problems or look ugly.
1336# WARNING: Be sure not to use single quotes in there, as some shells,
1337# such as our DU 5.0 friend, will then `close' the trap.
1338trap 'exit_status=$?
1339  # Save into config.log some information that might help in debugging.
1340  {
1341    echo
1342
1343    cat <<\_ASBOX
1344## ---------------- ##
1345## Cache variables. ##
1346## ---------------- ##
1347_ASBOX
1348    echo
1349    # The following way of writing the cache mishandles newlines in values,
1350{
1351  (set) 2>&1 |
1352    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353    *ac_space=\ *)
1354      sed -n \
1355        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357      ;;
1358    *)
1359      sed -n \
1360        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361      ;;
1362    esac;
1363}
1364    echo
1365
1366    cat <<\_ASBOX
1367## ----------------- ##
1368## Output variables. ##
1369## ----------------- ##
1370_ASBOX
1371    echo
1372    for ac_var in $ac_subst_vars
1373    do
1374      eval ac_val=$`echo $ac_var`
1375      echo "$ac_var='"'"'$ac_val'"'"'"
1376    done | sort
1377    echo
1378
1379    if test -n "$ac_subst_files"; then
1380      cat <<\_ASBOX
1381## ------------- ##
1382## Output files. ##
1383## ------------- ##
1384_ASBOX
1385      echo
1386      for ac_var in $ac_subst_files
1387      do
1388        eval ac_val=$`echo $ac_var`
1389        echo "$ac_var='"'"'$ac_val'"'"'"
1390      done | sort
1391      echo
1392    fi
1393
1394    if test -s confdefs.h; then
1395      cat <<\_ASBOX
1396## ----------- ##
1397## confdefs.h. ##
1398## ----------- ##
1399_ASBOX
1400      echo
1401      sed "/^$/d" confdefs.h | sort
1402      echo
1403    fi
1404    test "$ac_signal" != 0 &&
1405      echo "$as_me: caught signal $ac_signal"
1406    echo "$as_me: exit $exit_status"
1407  } >&5
1408  rm -f core *.core &&
1409  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410    exit $exit_status
1411     ' 0
1412for ac_signal in 1 2 13 15; do
1413  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414done
1415ac_signal=0
1416
1417# confdefs.h avoids OS command line length limits that DEFS can exceed.
1418rm -rf conftest* confdefs.h
1419# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420echo >confdefs.h
1421
1422# Predefined preprocessor variables.
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_NAME "$PACKAGE_NAME"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_VERSION "$PACKAGE_VERSION"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_STRING "$PACKAGE_STRING"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446_ACEOF
1447
1448
1449# Let the site file select an alternate cache file if it wants to.
1450# Prefer explicitly selected file to automatically selected ones.
1451if test -z "$CONFIG_SITE"; then
1452  if test "x$prefix" != xNONE; then
1453    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454  else
1455    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456  fi
1457fi
1458for ac_site_file in $CONFIG_SITE; do
1459  if test -r "$ac_site_file"; then
1460    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461echo "$as_me: loading site script $ac_site_file" >&6;}
1462    sed 's/^/| /' "$ac_site_file" >&5
1463    . "$ac_site_file"
1464  fi
1465done
1466
1467if test -r "$cache_file"; then
1468  # Some versions of bash will fail to source /dev/null (special
1469  # files actually), so we avoid doing that.
1470  if test -f "$cache_file"; then
1471    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472echo "$as_me: loading cache $cache_file" >&6;}
1473    case $cache_file in
1474      [\\/]* | ?:[\\/]* ) . $cache_file;;
1475      *)                      . ./$cache_file;;
1476    esac
1477  fi
1478else
1479  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480echo "$as_me: creating cache $cache_file" >&6;}
1481  >$cache_file
1482fi
1483
1484# Check that the precious variables saved in the cache have kept the same
1485# value.
1486ac_cache_corrupted=false
1487for ac_var in `(set) 2>&1 |
1488               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490  eval ac_new_set=\$ac_env_${ac_var}_set
1491  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492  eval ac_new_val="\$ac_env_${ac_var}_value"
1493  case $ac_old_set,$ac_new_set in
1494    set,)
1495      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497      ac_cache_corrupted=: ;;
1498    ,set)
1499      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501      ac_cache_corrupted=: ;;
1502    ,);;
1503    *)
1504      if test "x$ac_old_val" != "x$ac_new_val"; then
1505        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1506echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1507        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1508echo "$as_me:   former value:  $ac_old_val" >&2;}
1509        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1510echo "$as_me:   current value: $ac_new_val" >&2;}
1511        ac_cache_corrupted=:
1512      fi;;
1513  esac
1514  # Pass precious variables to config.status.
1515  if test "$ac_new_set" = set; then
1516    case $ac_new_val in
1517    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1518      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1519    *) ac_arg=$ac_var=$ac_new_val ;;
1520    esac
1521    case " $ac_configure_args " in
1522      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1523      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1524    esac
1525  fi
1526done
1527if $ac_cache_corrupted; then
1528  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1529echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1530  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1531echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1532   { (exit 1); exit 1; }; }
1533fi
1534
1535ac_ext=c
1536ac_cpp='$CPP $CPPFLAGS'
1537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570# List one file in the package so that the configure script can test
1571# whether the package is actually there
1572
1573
1574# Where should everything be installed by default?  Here, we want it
1575# to be installed directly in 'bin', 'lib', 'include' subdirectories
1576# of the directory where configure is run.  The default would be
1577# /usr/local.
1578
1579
1580
1581# As backup, we make sure we don't loose an FLIBS if it has been set
1582# by the user
1583save_FLIBS="$FLIBS"
1584
1585# A useful makefile conditional that is always false
1586
1587
1588if false; then
1589  ALWAYS_FALSE_TRUE=
1590  ALWAYS_FALSE_FALSE='#'
1591else
1592  ALWAYS_FALSE_TRUE='#'
1593  ALWAYS_FALSE_FALSE=
1594fi
1595
1596
1597# We set the following variable so that we know later in AC_COIN_FINALIZE
1598# that we are in a project main directory
1599coin_projectdir=yes
1600
1601# Set the project's version numbers
1602
1603
1604cat >>confdefs.h <<_ACEOF
1605#define METIS_VERSION "$PACKAGE_VERSION"
1606_ACEOF
1607
1608
1609  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1610  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1611  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1612  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1613  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1614  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1615
1616cat >>confdefs.h <<_ACEOF
1617#define METIS_VERSION_MAJOR $coin_majorver
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define METIS_VERSION_MINOR $coin_minorver
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define METIS_VERSION_RELEASE $coin_releasever
1628_ACEOF
1629
1630
1631  # We use the following variable to have a string with the upper case
1632  # version of the project name
1633  COIN_PRJCT=METIS
1634
1635  # Set the project's SVN revision number. The complicated sed expression
1636  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1637  # as a single number.
1638  # Extract the first word of "svnversion", so it can be a program name with args.
1639set dummy svnversion; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_have_svnversion+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  if test -n "$have_svnversion"; then
1646  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  for ac_exec_ext in '' $ac_executable_extensions; do
1654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655    ac_cv_prog_have_svnversion="yes"
1656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657    break 2
1658  fi
1659done
1660done
1661
1662  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1663fi
1664fi
1665have_svnversion=$ac_cv_prog_have_svnversion
1666if test -n "$have_svnversion"; then
1667  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1668echo "${ECHO_T}$have_svnversion" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674  if test "x$have_svnversion" = xyes; then
1675
1676    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1677    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1678      METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1679
1680cat >>confdefs.h <<_ACEOF
1681#define METIS_SVN_REV $METIS_SVN_REV
1682_ACEOF
1683
1684    fi
1685  fi
1686
1687
1688
1689# Capture libtool library version, if given.
1690
1691
1692
1693
1694#############################################################################
1695#                         Standard build tool stuff                         #
1696#############################################################################
1697
1698# Get the system type
1699ac_aux_dir=
1700for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1701  if test -f $ac_dir/install-sh; then
1702    ac_aux_dir=$ac_dir
1703    ac_install_sh="$ac_aux_dir/install-sh -c"
1704    break
1705  elif test -f $ac_dir/install.sh; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/install.sh -c"
1708    break
1709  elif test -f $ac_dir/shtool; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/shtool install -c"
1712    break
1713  fi
1714done
1715if test -z "$ac_aux_dir"; then
1716  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1717echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1718   { (exit 1); exit 1; }; }
1719fi
1720ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1721ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1722ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1723
1724# Make sure we can run config.sub.
1725$ac_config_sub sun4 >/dev/null 2>&1 ||
1726  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730echo "$as_me:$LINENO: checking build system type" >&5
1731echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732if test "${ac_cv_build+set}" = set; then
1733  echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735  ac_cv_build_alias=$build_alias
1736test -z "$ac_cv_build_alias" &&
1737  ac_cv_build_alias=`$ac_config_guess`
1738test -z "$ac_cv_build_alias" &&
1739  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741   { (exit 1); exit 1; }; }
1742ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745   { (exit 1); exit 1; }; }
1746
1747fi
1748echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749echo "${ECHO_T}$ac_cv_build" >&6
1750build=$ac_cv_build
1751build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756
1757#turn off warnings and pedantic mode since they could make trouble on some platforms,
1758#and we couldn't fix them anyway
1759coin_skip_warn_cflags=yes
1760coin_skip_warn_fflags=yes
1761
1762# Check if user wants to produce debugging code
1763
1764echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1765echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1766
1767# Check whether --enable-debug or --disable-debug was given.
1768if test "${enable_debug+set}" = set; then
1769  enableval="$enable_debug"
1770  case "${enableval}" in
1771   yes) coin_debug_compile=true
1772        if test "${enable_shared+set}" = set; then :; else
1773          enable_shared=no
1774        fi
1775        ;;
1776   no)  coin_debug_compile=false
1777        ;;
1778   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1779echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1780   { (exit 1); exit 1; }; }
1781        ;;
1782esac
1783else
1784  coin_debug_compile=false
1785fi;
1786
1787# Check whether --enable-debug-metis or --disable-debug-metis was given.
1788if test "${enable_debug_metis+set}" = set; then
1789  enableval="$enable_debug_metis"
1790  case "${enableval}" in
1791    yes) coin_debug_compile=true
1792         ;;
1793    no)  coin_debug_compile=false
1794         ;;
1795    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1796echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1797   { (exit 1); exit 1; }; }
1798         ;;
1799 esac
1800else
1801  :
1802fi;
1803
1804 # m4_ifvaln([Metis],
1805
1806if test $coin_debug_compile = true; then
1807  echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809else
1810  echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812fi
1813
1814
1815# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1816if test "${with_metis_verbosity+set}" = set; then
1817  withval="$with_metis_verbosity"
1818  if test "$withval" = yes; then
1819                withval=1
1820              fi
1821              coin_metis_verbosity=$withval
1822else
1823  coin_metis_verbosity=0
1824fi;
1825
1826cat >>confdefs.h <<_ACEOF
1827#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1828_ACEOF
1829
1830
1831
1832# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1833if test "${with_metis_checklevel+set}" = set; then
1834  withval="$with_metis_checklevel"
1835  if test "$withval" = yes; then
1836                withval=1
1837              fi
1838              coin_metis_checklevel=$withval
1839else
1840  coin_metis_checklevel=0
1841fi;
1842
1843cat >>confdefs.h <<_ACEOF
1844#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1845_ACEOF
1846
1847
1848 # m4_ifvaln([Metis],
1849
1850
1851
1852# Get the name of the C compiler
1853
1854
1855  # for backward compatibility
1856  # Check whether --enable-doscompile or --disable-doscompile was given.
1857if test "${enable_doscompile+set}" = set; then
1858  enableval="$enable_doscompile"
1859  enable_doscompile=$enableval
1860else
1861  enable_doscompile=no
1862fi;
1863
1864  # Check whether --enable-msvc or --disable-msvc was given.
1865if test "${enable_msvc+set}" = set; then
1866  enableval="$enable_msvc"
1867  enable_msvc=$enableval
1868else
1869  enable_msvc=no
1870     if test "$enable_doscompile" = msvc ; then
1871       enable_msvc=yes
1872     elif test "$enable_doscompile" != no ; then
1873       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1874echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1875   { (exit 1); exit 1; }; }
1876     fi
1877
1878fi;
1879
1880  if test "$enable_msvc" = MD; then
1881    enable_shared=yes
1882    enable_msvc=yes
1883  fi
1884
1885  if test "$enable_msvc" = yes; then
1886    case $build in
1887      *-cygwin* | *-mingw*) ;;
1888      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1889echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1890   { (exit 1); exit 1; }; } ;;
1891    esac
1892  fi
1893
1894
1895 case $build in
1896  *-mingw*)
1897    if test "${LD+set}" = set; then :; else
1898      LD=link
1899    fi
1900    ;;
1901 esac
1902 if test $enable_msvc = yes ; then
1903   if test "x${LD+set}" = xset; then :; else
1904     LD=link
1905   fi
1906 fi
1907
1908
1909
1910
1911ac_ext=c
1912ac_cpp='$CPP $CPPFLAGS'
1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918# For consistency, we set the C compiler to the same value of the C++
1919# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1920if test x"$CXX" != x; then
1921  case "$CXX" in
1922    clang* ) ;;
1923    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1924      if test x"$CC" = x; then
1925        CC="$CXX"
1926        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1927echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1928      fi
1929      ;;
1930  esac
1931fi
1932
1933
1934
1935
1936
1937
1938coin_has_cc=yes
1939
1940save_cflags="$CFLAGS"
1941
1942# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1943# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1944# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1945# compiler. In this case, put cc after gcc.
1946
1947case $build in
1948  *-cygwin* | *-mingw*)
1949             if test "$enable_msvc" = yes ; then
1950               comps="icl cl gcc"
1951             else
1952               comps="gcc icl cl"
1953             fi ;;
1954  *-*-solaris*)
1955             # Extract the first word of "cc", so it can be a program name with args.
1956set dummy cc; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$sol_cc_compiler"; then
1963  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1964else
1965  ac_prog_rejected=no
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974       ac_prog_rejected=yes
1975       continue
1976     fi
1977    ac_cv_prog_sol_cc_compiler="cc"
1978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979    break 2
1980  fi
1981done
1982done
1983
1984if test $ac_prog_rejected = yes; then
1985  # We found a bogon in the path, so make sure we never use it.
1986  set dummy $ac_cv_prog_sol_cc_compiler
1987  shift
1988  if test $# != 0; then
1989    # We chose a different compiler from the bogus one.
1990    # However, it has the same basename, so the bogon will be chosen
1991    # first if we set sol_cc_compiler to just the basename; use the full file name.
1992    shift
1993    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1994  fi
1995fi
1996fi
1997fi
1998sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1999if test -n "$sol_cc_compiler"; then
2000  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2001echo "${ECHO_T}$sol_cc_compiler" >&6
2002else
2003  echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007             if test "$sol_cc_compiler" = "cc" ; then
2008               comps="cc xlc gcc pgcc icc"
2009             else
2010               comps="xlc gcc pgcc icc cc"
2011             fi
2012             ;;
2013  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2014  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2015  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2016esac
2017
2018# We delete the cached value, since the test might not have been
2019# performed with our choice of compilers earlier
2020$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2021# AC_MSG_NOTICE([C compiler candidates: $comps])
2022ac_ext=c
2023ac_cpp='$CPP $CPPFLAGS'
2024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027if test -n "$ac_tool_prefix"; then
2028  for ac_prog in $comps
2029  do
2030    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$CC"; then
2038  ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045  for ac_exec_ext in '' $ac_executable_extensions; do
2046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058  echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061  echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065    test -n "$CC" && break
2066  done
2067fi
2068if test -z "$CC"; then
2069  ac_ct_CC=$CC
2070  for ac_prog in $comps
2071do
2072  # Extract the first word of "$ac_prog", so it can be a program name with args.
2073set dummy $ac_prog; ac_word=$2
2074echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077  echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079  if test -n "$ac_ct_CC"; then
2080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  test -z "$as_dir" && as_dir=.
2087  for ac_exec_ext in '' $ac_executable_extensions; do
2088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089    ac_cv_prog_ac_ct_CC="$ac_prog"
2090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091    break 2
2092  fi
2093done
2094done
2095
2096fi
2097fi
2098ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099if test -n "$ac_ct_CC"; then
2100  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101echo "${ECHO_T}$ac_ct_CC" >&6
2102else
2103  echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
2107  test -n "$ac_ct_CC" && break
2108done
2109
2110  CC=$ac_ct_CC
2111fi
2112
2113
2114test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&5
2116echo "$as_me: error: no acceptable C compiler found in \$PATH
2117See \`config.log' for more details." >&2;}
2118   { (exit 1); exit 1; }; }
2119
2120# Provide some information about the compiler.
2121echo "$as_me:$LINENO:" \
2122     "checking for C compiler version" >&5
2123ac_compiler=`set X $ac_compile; echo $2`
2124{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2125  (eval $ac_compiler --version </dev/null >&5) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2130  (eval $ac_compiler -v </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2135  (eval $ac_compiler -V </dev/null >&5) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }
2139
2140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h.  */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h.  */
2146
2147int
2148main ()
2149{
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155ac_clean_files_save=$ac_clean_files
2156ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157# Try to create an executable without -o first, disregard a.out.
2158# It will help us diagnose broken compilers, and finding out an intuition
2159# of exeext.
2160echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2162ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164  (eval $ac_link_default) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; then
2168  # Find the output, starting from the most likely.  This scheme is
2169# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170# resort.
2171
2172# Be careful to initialize this variable, since it used to be cached.
2173# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174ac_cv_exeext=
2175# b.out is created by i960 compilers.
2176for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177do
2178  test -f "$ac_file" || continue
2179  case $ac_file in
2180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181        ;;
2182    conftest.$ac_ext )
2183        # This is the source file.
2184        ;;
2185    [ab].out )
2186        # We found the default executable, but exeext='' is most
2187        # certainly right.
2188        break;;
2189    *.* )
2190        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191        # FIXME: I believe we export ac_cv_exeext for Libtool,
2192        # but it would be cool to find out if it's true.  Does anybody
2193        # maintain Libtool? --akim.
2194        export ac_cv_exeext
2195        break;;
2196    * )
2197        break;;
2198  esac
2199done
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208   { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6
2214
2215# Check the compiler produces executables we can run.  If not, either
2216# the compiler is broken, or we cross compile.
2217echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222  if { ac_try='./$ac_file'
2223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224  (eval $ac_try) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; }; then
2228    cross_compiling=no
2229  else
2230    if test "$cross_compiling" = maybe; then
2231        cross_compiling=yes
2232    else
2233        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239   { (exit 1); exit 1; }; }
2240    fi
2241  fi
2242fi
2243echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247ac_clean_files=$ac_clean_files_save
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2252echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6
2254
2255echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2258  (eval $ac_link) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; then
2262  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2264# work properly (i.e., refer to `conftest.exe'), while it won't with
2265# `rm'.
2266for ac_file in conftest.exe conftest conftest.*; do
2267  test -f "$ac_file" || continue
2268  case $ac_file in
2269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2270    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271          export ac_cv_exeext
2272          break;;
2273    * ) break;;
2274  esac
2275done
2276else
2277  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&2;}
2281   { (exit 1); exit 1; }; }
2282fi
2283
2284rm -f conftest$ac_cv_exeext
2285echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286echo "${ECHO_T}$ac_cv_exeext" >&6
2287
2288rm -f conftest.$ac_ext
2289EXEEXT=$ac_cv_exeext
2290ac_exeext=$EXEEXT
2291echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2293if test "${ac_cv_objext+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h.  */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h.  */
2302
2303int
2304main ()
2305{
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.o conftest.obj
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; then
2317  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2320    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321       break;;
2322  esac
2323done
2324else
2325  echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336fi
2337echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338echo "${ECHO_T}$ac_cv_objext" >&6
2339OBJEXT=$ac_cv_objext
2340ac_objext=$OBJEXT
2341echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2342echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2343if test "${ac_cv_c_compiler_gnu+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356#ifndef __GNUC__
2357       choke me
2358#endif
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364rm -f conftest.$ac_objext
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366  (eval $ac_compile) 2>conftest.er1
2367  ac_status=$?
2368  grep -v '^ *+' conftest.er1 >conftest.err
2369  rm -f conftest.er1
2370  cat conftest.err >&5
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); } &&
2373         { ac_try='test -z "$ac_c_werror_flag"
2374                         || test ! -s conftest.err'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; } &&
2380         { ac_try='test -s conftest.$ac_objext'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; }; then
2386  ac_compiler_gnu=yes
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391ac_compiler_gnu=no
2392fi
2393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394ac_cv_c_compiler_gnu=$ac_compiler_gnu
2395
2396fi
2397echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2398echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2399GCC=`test $ac_compiler_gnu = yes && echo yes`
2400ac_test_CFLAGS=${CFLAGS+set}
2401ac_save_CFLAGS=$CFLAGS
2402CFLAGS="-g"
2403echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2404echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2405if test "${ac_cv_prog_cc_g+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423rm -f conftest.$ac_objext
2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425  (eval $ac_compile) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } &&
2432         { ac_try='test -z "$ac_c_werror_flag"
2433                         || test ! -s conftest.err'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; } &&
2439         { ac_try='test -s conftest.$ac_objext'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_cv_prog_cc_g=yes
2446else
2447  echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450ac_cv_prog_cc_g=no
2451fi
2452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2455echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2456if test "$ac_test_CFLAGS" = set; then
2457  CFLAGS=$ac_save_CFLAGS
2458elif test $ac_cv_prog_cc_g = yes; then
2459  if test "$GCC" = yes; then
2460    CFLAGS="-g -O2"
2461  else
2462    CFLAGS="-g"
2463  fi
2464else
2465  if test "$GCC" = yes; then
2466    CFLAGS="-O2"
2467  else
2468    CFLAGS=
2469  fi
2470fi
2471echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2472echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2473if test "${ac_cv_prog_cc_stdc+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  ac_cv_prog_cc_stdc=no
2477ac_save_CC=$CC
2478cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484#include <stdarg.h>
2485#include <stdio.h>
2486#include <sys/types.h>
2487#include <sys/stat.h>
2488/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2489struct buf { int x; };
2490FILE * (*rcsopen) (struct buf *, struct stat *, int);
2491static char *e (p, i)
2492     char **p;
2493     int i;
2494{
2495  return p[i];
2496}
2497static char *f (char * (*g) (char **, int), char **p, ...)
2498{
2499  char *s;
2500  va_list v;
2501  va_start (v,p);
2502  s = g (p, va_arg (v,int));
2503  va_end (v);
2504  return s;
2505}
2506
2507/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2508   function prototypes and stuff, but not '\xHH' hex character constants.
2509   These don't provoke an error unfortunately, instead are silently treated
2510   as 'x'.  The following induces an error, until -std1 is added to get
2511   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2512   array size at least.  It's necessary to write '\x00'==0 to get something
2513   that's true only with -std1.  */
2514int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2515
2516int test (int i, double x);
2517struct s1 {int (*f) (int a);};
2518struct s2 {int (*f) (double a);};
2519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2520int argc;
2521char **argv;
2522int
2523main ()
2524{
2525return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2526  ;
2527  return 0;
2528}
2529_ACEOF
2530# Don't try gcc -ansi; that turns off useful extensions and
2531# breaks some systems' header files.
2532# AIX                   -qlanglvl=ansi
2533# Ultrix and OSF/1      -std1
2534# HP-UX 10.20 and later -Ae
2535# HP-UX older versions  -Aa -D_HPUX_SOURCE
2536# SVR4                  -Xc -D__EXTENSIONS__
2537for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2538do
2539  CC="$ac_save_CC $ac_arg"
2540  rm -f conftest.$ac_objext
2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542  (eval $ac_compile) 2>conftest.er1
2543  ac_status=$?
2544  grep -v '^ *+' conftest.er1 >conftest.err
2545  rm -f conftest.er1
2546  cat conftest.err >&5
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); } &&
2549         { ac_try='test -z "$ac_c_werror_flag"
2550                         || test ! -s conftest.err'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; } &&
2556         { ac_try='test -s conftest.$ac_objext'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; }; then
2562  ac_cv_prog_cc_stdc=$ac_arg
2563break
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568fi
2569rm -f conftest.err conftest.$ac_objext
2570done
2571rm -f conftest.$ac_ext conftest.$ac_objext
2572CC=$ac_save_CC
2573
2574fi
2575
2576case "x$ac_cv_prog_cc_stdc" in
2577  x|xno)
2578    echo "$as_me:$LINENO: result: none needed" >&5
2579echo "${ECHO_T}none needed" >&6 ;;
2580  *)
2581    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2582echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2583    CC="$CC $ac_cv_prog_cc_stdc" ;;
2584esac
2585
2586# Some people use a C++ compiler to compile C.  Since we use `exit',
2587# in C++ we need to declare it.  In case someone uses the same compiler
2588# for both compiling C and C++ we need to have the C++ compiler decide
2589# the declaration of exit, since it's the most demanding environment.
2590cat >conftest.$ac_ext <<_ACEOF
2591#ifndef __cplusplus
2592  choke me
2593#endif
2594_ACEOF
2595rm -f conftest.$ac_objext
2596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597  (eval $ac_compile) 2>conftest.er1
2598  ac_status=$?
2599  grep -v '^ *+' conftest.er1 >conftest.err
2600  rm -f conftest.er1
2601  cat conftest.err >&5
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); } &&
2604         { ac_try='test -z "$ac_c_werror_flag"
2605                         || test ! -s conftest.err'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; } &&
2611         { ac_try='test -s conftest.$ac_objext'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; }; then
2617  for ac_declaration in \
2618   '' \
2619   'extern "C" void std::exit (int) throw (); using std::exit;' \
2620   'extern "C" void std::exit (int); using std::exit;' \
2621   'extern "C" void exit (int) throw ();' \
2622   'extern "C" void exit (int);' \
2623   'void exit (int);'
2624do
2625  cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631$ac_declaration
2632#include <stdlib.h>
2633int
2634main ()
2635{
2636exit (42);
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650         { ac_try='test -z "$ac_c_werror_flag"
2651                         || test ! -s conftest.err'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; } &&
2657         { ac_try='test -s conftest.$ac_objext'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; }; then
2663  :
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668continue
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671  cat >conftest.$ac_ext <<_ACEOF
2672/* confdefs.h.  */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h.  */
2677$ac_declaration
2678int
2679main ()
2680{
2681exit (42);
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  break
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713fi
2714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715done
2716rm -f conftest*
2717if test -n "$ac_declaration"; then
2718  echo '#ifdef __cplusplus' >>confdefs.h
2719  echo $ac_declaration      >>confdefs.h
2720  echo '#endif'             >>confdefs.h
2721fi
2722
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735if test -z "$CC" ; then
2736  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2737echo "$as_me: error: Failed to find a C compiler!" >&2;}
2738   { (exit 1); exit 1; }; }
2739fi
2740# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2741case "$CC" in
2742  clang* ) ;;
2743  cl* | */cl* | CL* | */CL* )
2744    if test "$ac_cv_prog_cc_g" = yes ; then
2745      ac_cv_prog_cc_g=no
2746      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2747echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2748    fi ;;
2749  * )
2750    if test x"$CYGPATH_W" = x ; then
2751      CYGPATH_W=echo
2752    fi
2753    ;;
2754esac
2755CFLAGS="$save_cflags"
2756
2757# add automake conditional so we can recognize cl compiler in makefile
2758coin_cc_is_cl=false
2759case "$CC" in
2760  clang* ) ;;
2761  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2762    coin_cc_is_cl=true
2763    ;;
2764esac
2765
2766
2767if test $coin_cc_is_cl = true; then
2768  COIN_CC_IS_CL_TRUE=
2769  COIN_CC_IS_CL_FALSE='#'
2770else
2771  COIN_CC_IS_CL_TRUE='#'
2772  COIN_CC_IS_CL_FALSE=
2773fi
2774
2775
2776# Check if a project specific CFLAGS variable has been set
2777if test x$COIN_PRJCT != x; then
2778  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2779  if test x$coin_tmp = xset; then
2780    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2781  fi
2782fi
2783
2784if test x"$CFLAGS" = x; then
2785
2786  coin_add_cflags=
2787  coin_opt_cflags=
2788  coin_dbg_cflags=
2789  coin_warn_cflags=
2790
2791  if test "$GCC" = "yes"; then
2792    case "$CC" in
2793      icc* | */icc*)
2794        ;;
2795      *)
2796        coin_opt_cflags="-O3"
2797        coin_add_cflags="-pipe"
2798        coin_dbg_cflags="-g -O0"
2799        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2800        case $build in
2801          *-darwin*)
2802            ;;
2803          *)
2804            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2805            ;;
2806        esac
2807    esac
2808  fi
2809  if test -z "$coin_opt_cflags"; then
2810    case $build in
2811      *-cygwin* | *-mingw*)
2812        case "$CC" in
2813          clang* ) ;;
2814          cl* | */cl* | CL* | */CL*)
2815            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2816              coin_opt_cflags='-MD -O2'
2817              coin_dbg_cflags='-MDd'
2818            else
2819              coin_opt_cflags='-MT -O2'
2820              coin_dbg_cflags='-MTd'
2821            fi
2822            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2823            ;;
2824          icl* | */icl* | ICL* | */ICL*)
2825            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2826              coin_opt_cflags='-MD -Ox'
2827              coin_dbg_cflags='-MDd -debug'
2828            else
2829              coin_opt_cflags='-MT -Ox'
2830              coin_dbg_cflags='-MTd -debug'
2831            fi
2832            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2833            ;;
2834        esac
2835        ;;
2836      *-linux-*)
2837        case "$CC" in
2838          icc* | */icc*)
2839            coin_opt_cflags="-O3 -ip -mp1"
2840            coin_add_cflags=""
2841            coin_dbg_cflags="-g"
2842            # Check if -i_dynamic is necessary (for new glibc library)
2843            CFLAGS=
2844            cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h.  */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h.  */
2850
2851int
2852main ()
2853{
2854int i=0; i++;
2855  ;
2856  return 0;
2857}
2858_ACEOF
2859rm -f conftest.$ac_objext conftest$ac_exeext
2860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861  (eval $ac_link) 2>conftest.er1
2862  ac_status=$?
2863  grep -v '^ *+' conftest.er1 >conftest.err
2864  rm -f conftest.er1
2865  cat conftest.err >&5
2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867  (exit $ac_status); } &&
2868         { ac_try='test -z "$ac_c_werror_flag"
2869                         || test ! -s conftest.err'
2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871  (eval $ac_try) 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; } &&
2875         { ac_try='test -s conftest$ac_exeext'
2876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877  (eval $ac_try) 2>&5
2878  ac_status=$?
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); }; }; then
2881  :
2882else
2883  echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886coin_add_cflags="-i_dynamic $coin_add_cflags"
2887fi
2888rm -f conftest.err conftest.$ac_objext \
2889      conftest$ac_exeext conftest.$ac_ext
2890            ;;
2891          pgcc* | */pgcc*)
2892            coin_opt_cflags="-fast"
2893            coin_add_cflags="-Kieee -pc 64"
2894            coin_dbg_cflags="-g"
2895            ;;
2896        esac
2897        ;;
2898      *-ibm-*)
2899        case "$CC" in
2900          xlc* | */xlc* | mpxlc* | */mpxlc*)
2901            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2902            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2903            coin_dbg_cflags="-g"
2904          ;;
2905        esac
2906        ;;
2907      *-hp-*)
2908        coin_opt_cflags="-O"
2909        coin_add_cflags="-Ae"
2910        coin_dbg_cflags="-g"
2911        ;;
2912      *-*-solaris*)
2913        coin_opt_cflags="-xO4"
2914        coin_dbg_cflags="-g"
2915        ;;
2916      *-sgi-*)
2917        coin_opt_cflags="-O -OPT:Olimit=0"
2918        coin_dbg_cflags="-g"
2919        ;;
2920    esac
2921  fi
2922
2923  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2924    coin_dbg_cflags="-g"
2925  fi
2926
2927  if test -z "$coin_opt_cflags"; then
2928    # Try if -O option works if nothing else is set
2929    CFLAGS="-O"
2930    cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h.  */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h.  */
2936
2937int
2938main ()
2939{
2940int i=0; i++;
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext conftest$ac_exeext
2946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947  (eval $ac_link) 2>conftest.er1
2948  ac_status=$?
2949  grep -v '^ *+' conftest.er1 >conftest.err
2950  rm -f conftest.er1
2951  cat conftest.err >&5
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); } &&
2954         { ac_try='test -z "$ac_c_werror_flag"
2955                         || test ! -s conftest.err'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; } &&
2961         { ac_try='test -s conftest$ac_exeext'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; }; then
2967  coin_opt_cflags="-O"
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972fi
2973rm -f conftest.err conftest.$ac_objext \
2974      conftest$ac_exeext conftest.$ac_ext
2975  fi
2976
2977  # if PM doesn't want the warning messages, take them out
2978  if test x"$coin_skip_warn_cflags" = xyes; then
2979    coin_warn_cflags=
2980  fi
2981
2982  if test x${DBG_CFLAGS+set} != xset; then
2983    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2984  fi
2985  if test x${OPT_CFLAGS+set} != xset; then
2986    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2987  fi
2988
2989  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2990  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2991
2992  if test "$coin_debug_compile" = "true"; then
2993    CFLAGS="$DBG_CFLAGS"
2994  else
2995    CFLAGS="$OPT_CFLAGS"
2996  fi
2997else
2998  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2999  if test x${DBG_CFLAGS+set} != xset; then
3000    DBG_CFLAGS="$CFLAGS"
3001  fi
3002  if test x${OPT_CFLAGS+set} != xset; then
3003    OPT_CFLAGS="$CFLAGS"
3004  fi
3005fi
3006
3007# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3008if test x$COIN_PRJCT != x; then
3009  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3010fi
3011
3012# Try if CFLAGS works
3013save_CFLAGS="$CFLAGS"
3014cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h.  */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024int i=0; i++;
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext conftest$ac_exeext
3030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3031  (eval $ac_link) 2>conftest.er1
3032  ac_status=$?
3033  grep -v '^ *+' conftest.er1 >conftest.err
3034  rm -f conftest.er1
3035  cat conftest.err >&5
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); } &&
3038         { ac_try='test -z "$ac_c_werror_flag"
3039                         || test ! -s conftest.err'
3040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041  (eval $ac_try) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; } &&
3045         { ac_try='test -s conftest$ac_exeext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  :
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056CFLAGS=
3057fi
3058rm -f conftest.err conftest.$ac_objext \
3059      conftest$ac_exeext conftest.$ac_ext
3060if test -z "$CFLAGS"; then
3061  { 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
3062echo "$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;}
3063  CFLAGS='-O'
3064  cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074int i=0; i++;
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext conftest$ac_exeext
3080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081  (eval $ac_link) 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } &&
3088         { ac_try='test -z "$ac_c_werror_flag"
3089                         || test ! -s conftest.err'
3090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091  (eval $ac_try) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; } &&
3095         { ac_try='test -s conftest$ac_exeext'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101  :
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106CFLAGS=
3107fi
3108rm -f conftest.err conftest.$ac_objext \
3109      conftest$ac_exeext conftest.$ac_ext
3110  if test -z "$CFLAGS"; then
3111    { 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
3112echo "$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;}
3113  fi
3114fi
3115
3116{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3117echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3118
3119
3120if test x"$MPICC" = x; then :; else
3121  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3122echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3123  CC="$MPICC"
3124fi
3125
3126# Correct the LD variable if we are using the MS or Intel-windows compiler
3127case "$CC" in
3128  clang* ) ;;
3129  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3130
3131 case $build in
3132  *-mingw*)
3133    if test "${LD+set}" = set; then :; else
3134      LD=link
3135    fi
3136    ;;
3137 esac
3138 if test $enable_msvc = yes ; then
3139   if test "x${LD+set}" = xset; then :; else
3140     LD=link
3141   fi
3142 fi
3143
3144    ;;
3145esac
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152
3153
3154
3155# Check if pkg-config is available (to setup addlibs file)
3156
3157
3158# Check whether --enable-pkg-config or --disable-pkg-config was given.
3159if test "${enable_pkg_config+set}" = set; then
3160  enableval="$enable_pkg_config"
3161  use_pkgconfig="$enableval"
3162else
3163  if test x$coin_cc_is_cl = xtrue; then
3164     use_pkgconfig=no
3165   else
3166     use_pkgconfig=yes
3167   fi
3168fi;
3169
3170if test $use_pkgconfig = yes ; then
3171  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3172    if test -n "$ac_tool_prefix"; then
3173  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3174set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3175echo "$as_me:$LINENO: checking for $ac_word" >&5
3176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3178  echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180  if test -n "$PKG_CONFIG"; then
3181  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188  for ac_exec_ext in '' $ac_executable_extensions; do
3189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195done
3196
3197fi
3198fi
3199PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3200if test -n "$PKG_CONFIG"; then
3201  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3202echo "${ECHO_T}$PKG_CONFIG" >&6
3203else
3204  echo "$as_me:$LINENO: result: no" >&5
3205echo "${ECHO_T}no" >&6
3206fi
3207
3208fi
3209if test -z "$ac_cv_prog_PKG_CONFIG"; then
3210  ac_ct_PKG_CONFIG=$PKG_CONFIG
3211  # Extract the first word of "pkg-config", so it can be a program name with args.
3212set dummy 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_prog_ac_ct_PKG_CONFIG+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  if test -n "$ac_ct_PKG_CONFIG"; then
3219  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226  for ac_exec_ext in '' $ac_executable_extensions; do
3227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233done
3234
3235fi
3236fi
3237ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3238if test -n "$ac_ct_PKG_CONFIG"; then
3239  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3240echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3241else
3242  echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244fi
3245
3246  PKG_CONFIG=$ac_ct_PKG_CONFIG
3247else
3248  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3249fi
3250
3251  fi
3252  if test -n "$PKG_CONFIG"; then
3253    _pkg_min_version=0.16.0
3254    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3255echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3256    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3257      echo "$as_me:$LINENO: result: yes" >&5
3258echo "${ECHO_T}yes" >&6
3259    else
3260      echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262      PKG_CONFIG=""
3263    fi
3264  fi
3265
3266  # check if pkg-config supports the short-errors flag
3267  if test -n "$PKG_CONFIG" && \
3268    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3269    pkg_short_errors=" --short-errors "
3270  else
3271    pkg_short_errors=""
3272  fi
3273fi
3274
3275
3276
3277if test -n "$PKG_CONFIG"; then
3278  COIN_HAS_PKGCONFIG_TRUE=
3279  COIN_HAS_PKGCONFIG_FALSE='#'
3280else
3281  COIN_HAS_PKGCONFIG_TRUE='#'
3282  COIN_HAS_PKGCONFIG_FALSE=
3283fi
3284
3285
3286
3287# assemble pkg-config search path for installed projects
3288COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3289
3290# 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
3291# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3292# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3293if test "x${prefix}" = xNONE ; then
3294  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3295else
3296  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3297fi
3298
3299
3300# Check whether --with-coin-instdir or --without-coin-instdir was given.
3301if test "${with_coin_instdir+set}" = set; then
3302  withval="$with_coin_instdir"
3303  if test -d "$withval"; then : ; else
3304     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3305echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3306   { (exit 1); exit 1; }; }
3307   fi
3308   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3309
3310fi;
3311
3312
3313
3314# assemble additional pkg-config search paths for uninstalled projects
3315if test x$coin_projectdir = xyes ; then
3316  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3317  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3318  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3319  # 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)
3320  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3321  if test -f ../coin_subdirs.txt ; then
3322    for i in `cat ../coin_subdirs.txt` ; do
3323      if test -d ../$i ; then
3324        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3325      fi
3326      if test -d ../$i/pkgconfig ; then
3327        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3328      fi
3329    done
3330  fi
3331
3332  if test -f ../../coin_subdirs.txt ; then
3333    for i in `cat ../../coin_subdirs.txt` ; do
3334      if test -d ../../$i ; then
3335        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3336      fi
3337      if test -d ../../$i/pkgconfig ; then
3338        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3339      fi
3340    done
3341  fi
3342
3343
3344fi
3345
3346if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3347  { 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
3348echo "$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;}
3349fi
3350
3351
3352
3353# Initialize automake
3354{
3355
3356
3357
3358# START
3359
3360coin_disable_shared=no
3361# Test if force_shared has been set
3362if test "x" = xforce_shared; then
3363  if test x$enable_shared = xno; then
3364    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3365echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3366   { (exit 1); exit 1; }; }
3367  fi
3368  enable_shared=yes;
3369else
3370  # On Cygwin and AIX, building DLLs doesn't work
3371  case $build in
3372    *-cygwin* | *-mingw*)
3373      coin_disable_shared=yes
3374      if test x"$enable_shared" = xyes; then
3375        case "$CXX" in
3376          clang* )
3377            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3378echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3379            ;;
3380          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3381            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
3382echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
3383            ;;
3384          *)
3385            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3386echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3387            ;;
3388        esac
3389      fi
3390    ;;
3391    *-aix*)
3392      coin_disable_shared=yes
3393      platform=AIX
3394      if test x"$enable_shared" = xyes; then
3395        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3396echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3397      fi
3398    ;;
3399  esac
3400fi
3401if test x"$coin_disable_shared" = xyes; then
3402  if test x"$enable_shared" = xyes; then
3403    :
3404  else
3405    # we don't disable shared, because it was not selected anyway
3406    coin_disable_shared=no
3407  fi
3408  enable_shared=no
3409fi
3410# By default, we only want the shared objects to be compiled
3411# Check whether --enable-static or --disable-static was given.
3412if test "${enable_static+set}" = set; then
3413  enableval="$enable_static"
3414  p=${PACKAGE-default}
3415    case $enableval in
3416    yes) enable_static=yes ;;
3417    no) enable_static=no ;;
3418    *)
3419     enable_static=no
3420      # Look at the argument we got.  We use all the common list separators.
3421      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3422      for pkg in $enableval; do
3423        IFS="$lt_save_ifs"
3424        if test "X$pkg" = "X$p"; then
3425          enable_static=yes
3426        fi
3427      done
3428      IFS="$lt_save_ifs"
3429      ;;
3430    esac
3431else
3432  enable_static=no
3433fi;
3434
3435
3436
3437
3438# Initialize automake
3439echo "$as_me:$LINENO: checking for egrep" >&5
3440echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3441if test "${ac_cv_prog_egrep+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3445    then ac_cv_prog_egrep='grep -E'
3446    else ac_cv_prog_egrep='egrep'
3447    fi
3448fi
3449echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3450echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3451 EGREP=$ac_cv_prog_egrep
3452
3453
3454echo "$as_me:$LINENO: checking whether ln -s works" >&5
3455echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3456LN_S=$as_ln_s
3457if test "$LN_S" = "ln -s"; then
3458  echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6
3460else
3461  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3462echo "${ECHO_T}no, using $LN_S" >&6
3463fi
3464
3465am__api_version="1.9"
3466# Find a good install program.  We prefer a C program (faster),
3467# so one script is as good as another.  But avoid the broken or
3468# incompatible versions:
3469# SysV /etc/install, /usr/sbin/install
3470# SunOS /usr/etc/install
3471# IRIX /sbin/install
3472# AIX /bin/install
3473# AmigaOS /C/install, which installs bootblocks on floppy discs
3474# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3475# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3476# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3477# OS/2's system install, which has a completely different semantic
3478# ./install, which can be erroneously created by make from ./install.sh.
3479echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3480echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3481if test -z "$INSTALL"; then
3482if test "${ac_cv_path_install+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH
3487do
3488  IFS=$as_save_IFS
3489  test -z "$as_dir" && as_dir=.
3490  # Account for people who put trailing slashes in PATH elements.
3491case $as_dir/ in
3492  ./ | .// | /cC/* | \
3493  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3494  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3495  /usr/ucb/* ) ;;
3496  *)
3497    # OSF1 and SCO ODT 3.0 have their own names for install.
3498    # Don't use installbsd from OSF since it installs stuff as root
3499    # by default.
3500    for ac_prog in ginstall scoinst install; do
3501      for ac_exec_ext in '' $ac_executable_extensions; do
3502        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3503          if test $ac_prog = install &&
3504            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3505            # AIX install.  It has an incompatible calling convention.
3506            :
3507          elif test $ac_prog = install &&
3508            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3509            # program-specific install script used by HP pwplus--don't use.
3510            :
3511          else
3512            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3513            break 3
3514          fi
3515        fi
3516      done
3517    done
3518    ;;
3519esac
3520done
3521
3522
3523fi
3524  if test "${ac_cv_path_install+set}" = set; then
3525    INSTALL=$ac_cv_path_install
3526  else
3527    # As a last resort, use the slow shell script.  We don't cache a
3528    # path for INSTALL within a source directory, because that will
3529    # break other packages using the cache if that directory is
3530    # removed, or if the path is relative.
3531    INSTALL=$ac_install_sh
3532  fi
3533fi
3534echo "$as_me:$LINENO: result: $INSTALL" >&5
3535echo "${ECHO_T}$INSTALL" >&6
3536
3537# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3538# It thinks the first close brace ends the variable substitution.
3539test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3540
3541test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3542
3543test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3544
3545echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3546echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3547# Just in case
3548sleep 1
3549echo timestamp > conftest.file
3550# Do `set' in a subshell so we don't clobber the current shell's
3551# arguments.  Must try -L first in case configure is actually a
3552# symlink; some systems play weird games with the mod time of symlinks
3553# (eg FreeBSD returns the mod time of the symlink's containing
3554# directory).
3555if (
3556   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3557   if test "$*" = "X"; then
3558      # -L didn't work.
3559      set X `ls -t $srcdir/configure conftest.file`
3560   fi
3561   rm -f conftest.file
3562   if test "$*" != "X $srcdir/configure conftest.file" \
3563      && test "$*" != "X conftest.file $srcdir/configure"; then
3564
3565      # If neither matched, then we have a broken ls.  This can happen
3566      # if, for instance, CONFIG_SHELL is bash and it inherits a
3567      # broken ls alias from the environment.  This has actually
3568      # happened.  Such a system could not be considered "sane".
3569      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3570alias in your environment" >&5
3571echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3572alias in your environment" >&2;}
3573   { (exit 1); exit 1; }; }
3574   fi
3575
3576   test "$2" = conftest.file
3577   )
3578then
3579   # Ok.
3580   :
3581else
3582   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3583Check your system clock" >&5
3584echo "$as_me: error: newly created file is older than distributed files!
3585Check your system clock" >&2;}
3586   { (exit 1); exit 1; }; }
3587fi
3588echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590test "$program_prefix" != NONE &&
3591  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3592# Use a double $ so make ignores it.
3593test "$program_suffix" != NONE &&
3594  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3595# Double any \ or $.  echo might interpret backslashes.
3596# By default was `s,x,x', remove it if useless.
3597cat <<\_ACEOF >conftest.sed
3598s/[\\$]/&&/g;s/;s,x,x,$//
3599_ACEOF
3600program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3601rm conftest.sed
3602
3603# expand $ac_aux_dir to an absolute path
3604am_aux_dir=`cd $ac_aux_dir && pwd`
3605
3606test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3607# Use eval to expand $SHELL
3608if eval "$MISSING --run true"; then
3609  am_missing_run="$MISSING --run "
3610else
3611  am_missing_run=
3612  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3613echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3614fi
3615
3616if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3617  # We used to keeping the `.' as first argument, in order to
3618  # allow $(mkdir_p) to be used without argument.  As in
3619  #   $(mkdir_p) $(somedir)
3620  # where $(somedir) is conditionally defined.  However this is wrong
3621  # for two reasons:
3622  #  1. if the package is installed by a user who cannot write `.'
3623  #     make install will fail,
3624  #  2. the above comment should most certainly read
3625  #     $(mkdir_p) $(DESTDIR)$(somedir)
3626  #     so it does not work when $(somedir) is undefined and
3627  #     $(DESTDIR) is not.
3628  #  To support the latter case, we have to write
3629  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3630  #  so the `.' trick is pointless.
3631  mkdir_p='mkdir -p --'
3632else
3633  # On NextStep and OpenStep, the `mkdir' command does not
3634  # recognize any option.  It will interpret all options as
3635  # directories to create, and then abort because `.' already
3636  # exists.
3637  for d in ./-p ./--version;
3638  do
3639    test -d $d && rmdir $d
3640  done
3641  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3642  if test -f "$ac_aux_dir/mkinstalldirs"; then
3643    mkdir_p='$(mkinstalldirs)'
3644  else
3645    mkdir_p='$(install_sh) -d'
3646  fi
3647fi
3648
3649for ac_prog in gawk mawk nawk awk
3650do
3651  # Extract the first word of "$ac_prog", so it can be a program name with args.
3652set dummy $ac_prog; ac_word=$2
3653echo "$as_me:$LINENO: checking for $ac_word" >&5
3654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655if test "${ac_cv_prog_AWK+set}" = set; then
3656  echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658  if test -n "$AWK"; then
3659  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664  IFS=$as_save_IFS
3665  test -z "$as_dir" && as_dir=.
3666  for ac_exec_ext in '' $ac_executable_extensions; do
3667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668    ac_cv_prog_AWK="$ac_prog"
3669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670    break 2
3671  fi
3672done
3673done
3674
3675fi
3676fi
3677AWK=$ac_cv_prog_AWK
3678if test -n "$AWK"; then
3679  echo "$as_me:$LINENO: result: $AWK" >&5
3680echo "${ECHO_T}$AWK" >&6
3681else
3682  echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684fi
3685
3686  test -n "$AWK" && break
3687done
3688
3689echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3690echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3691set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3692if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3693  echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695  cat >conftest.make <<\_ACEOF
3696all:
3697        @echo 'ac_maketemp="$(MAKE)"'
3698_ACEOF
3699# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3700eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3701if test -n "$ac_maketemp"; then
3702  eval ac_cv_prog_make_${ac_make}_set=yes
3703else
3704  eval ac_cv_prog_make_${ac_make}_set=no
3705fi
3706rm -f conftest.make
3707fi
3708if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3709  echo "$as_me:$LINENO: result: yes" >&5
3710echo "${ECHO_T}yes" >&6
3711  SET_MAKE=
3712else
3713  echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715  SET_MAKE="MAKE=${MAKE-make}"
3716fi
3717
3718rm -rf .tst 2>/dev/null
3719mkdir .tst 2>/dev/null
3720if test -d .tst; then
3721  am__leading_dot=.
3722else
3723  am__leading_dot=_
3724fi
3725rmdir .tst 2>/dev/null
3726
3727DEPDIR="${am__leading_dot}deps"
3728
3729          ac_config_commands="$ac_config_commands depfiles"
3730
3731
3732am_make=${MAKE-make}
3733cat > confinc << 'END'
3734am__doit:
3735        @echo done
3736.PHONY: am__doit
3737END
3738# If we don't find an include directive, just comment out the code.
3739echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3740echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3741am__include="#"
3742am__quote=
3743_am_result=none
3744# First try GNU make style include.
3745echo "include confinc" > confmf
3746# We grep out `Entering directory' and `Leaving directory'
3747# messages which can occur if `w' ends up in MAKEFLAGS.
3748# In particular we don't look at `^make:' because GNU make might
3749# be invoked under some other name (usually "gmake"), in which
3750# case it prints its new name instead of `make'.
3751if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3752   am__include=include
3753   am__quote=
3754   _am_result=GNU
3755fi
3756# Now try BSD make style include.
3757if test "$am__include" = "#"; then
3758   echo '.include "confinc"' > confmf
3759   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3760      am__include=.include
3761      am__quote="\""
3762      _am_result=BSD
3763   fi
3764fi
3765
3766
3767echo "$as_me:$LINENO: result: $_am_result" >&5
3768echo "${ECHO_T}$_am_result" >&6
3769rm -f confinc confmf
3770
3771# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3772if test "${enable_dependency_tracking+set}" = set; then
3773  enableval="$enable_dependency_tracking"
3774
3775fi;
3776if test "x$enable_dependency_tracking" != xno; then
3777  am_depcomp="$ac_aux_dir/depcomp"
3778  AMDEPBACKSLASH='\'
3779fi
3780
3781
3782if test "x$enable_dependency_tracking" != xno; then
3783  AMDEP_TRUE=
3784  AMDEP_FALSE='#'
3785else
3786  AMDEP_TRUE='#'
3787  AMDEP_FALSE=
3788fi
3789
3790
3791
3792
3793
3794
3795# AC_MSG_NOTICE([Beginning automake initialisation.])
3796# Stuff for automake
3797# test to see if srcdir already configured
3798if test "`cd $srcdir && pwd`" != "`pwd`" &&
3799   test -f $srcdir/config.status; then
3800  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3801echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3802   { (exit 1); exit 1; }; }
3803fi
3804
3805# test whether we have cygpath
3806if test -z "$CYGPATH_W"; then
3807  if (cygpath --version) >/dev/null 2>/dev/null; then
3808    CYGPATH_W='cygpath -w'
3809  else
3810    CYGPATH_W=echo
3811  fi
3812fi
3813
3814
3815# Define the identity of the package.
3816 PACKAGE='thirdpartymetis'
3817 VERSION='1.2'
3818
3819
3820cat >>confdefs.h <<_ACEOF
3821#define PACKAGE "$PACKAGE"
3822_ACEOF
3823
3824
3825cat >>confdefs.h <<_ACEOF
3826#define VERSION "$VERSION"
3827_ACEOF
3828
3829# Some tools Automake needs.
3830
3831ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3832
3833
3834AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3835
3836
3837AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3838
3839
3840AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3841
3842
3843MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3844
3845install_sh=${install_sh-"$am_aux_dir/install-sh"}
3846
3847# Installed binaries are usually stripped using `strip' when the user
3848# run `make install-strip'.  However `strip' might not be the right
3849# tool to use in cross-compilation environments, therefore Automake
3850# will honor the `STRIP' environment variable to overrule this program.
3851if test "$cross_compiling" != no; then
3852  if test -n "$ac_tool_prefix"; then
3853  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3854set dummy ${ac_tool_prefix}strip; ac_word=$2
3855echo "$as_me:$LINENO: checking for $ac_word" >&5
3856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857if test "${ac_cv_prog_STRIP+set}" = set; then
3858  echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860  if test -n "$STRIP"; then
3861  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868  for ac_exec_ext in '' $ac_executable_extensions; do
3869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875done
3876
3877fi
3878fi
3879STRIP=$ac_cv_prog_STRIP
3880if test -n "$STRIP"; then
3881  echo "$as_me:$LINENO: result: $STRIP" >&5
3882echo "${ECHO_T}$STRIP" >&6
3883else
3884  echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6
3886fi
3887
3888fi
3889if test -z "$ac_cv_prog_STRIP"; then
3890  ac_ct_STRIP=$STRIP
3891  # Extract the first word of "strip", so it can be a program name with args.
3892set dummy strip; ac_word=$2
3893echo "$as_me:$LINENO: checking for $ac_word" >&5
3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898  if test -n "$ac_ct_STRIP"; then
3899  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906  for ac_exec_ext in '' $ac_executable_extensions; do
3907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908    ac_cv_prog_ac_ct_STRIP="strip"
3909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912done
3913done
3914
3915  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3916fi
3917fi
3918ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3919if test -n "$ac_ct_STRIP"; then
3920  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3921echo "${ECHO_T}$ac_ct_STRIP" >&6
3922else
3923  echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
3925fi
3926
3927  STRIP=$ac_ct_STRIP
3928else
3929  STRIP="$ac_cv_prog_STRIP"
3930fi
3931
3932fi
3933INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3934
3935# We need awk for the "check" target.  The system "awk" is bad on
3936# some platforms.
3937# Always define AMTAR for backward compatibility.
3938
3939AMTAR=${AMTAR-"${am_missing_run}tar"}
3940
3941am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3942
3943
3944
3945
3946depcc="$CC"   am_compiler_list=
3947
3948echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3949echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3950if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3951  echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3954  # We make a subdir and do the tests there.  Otherwise we can end up
3955  # making bogus files that we don't know about and never remove.  For
3956  # instance it was reported that on HP-UX the gcc test will end up
3957  # making a dummy file named `D' -- because `-MD' means `put the output
3958  # in D'.
3959  mkdir conftest.dir
3960  # Copy depcomp to subdir because otherwise we won't find it if we're
3961  # using a relative directory.
3962  cp "$am_depcomp" conftest.dir
3963  cd conftest.dir
3964  # We will build objects and dependencies in a subdirectory because
3965  # it helps to detect inapplicable dependency modes.  For instance
3966  # both Tru64's cc and ICC support -MD to output dependencies as a
3967  # side effect of compilation, but ICC will put the dependencies in
3968  # the current directory while Tru64 will put them in the object
3969  # directory.
3970  mkdir sub
3971
3972  am_cv_CC_dependencies_compiler_type=none
3973  if test "$am_compiler_list" = ""; then
3974     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3975  fi
3976  for depmode in $am_compiler_list; do
3977    # Setup a source with many dependencies, because some compilers
3978    # like to wrap large dependency lists on column 80 (with \), and
3979    # we should not choose a depcomp mode which is confused by this.
3980    #
3981    # We need to recreate these files for each test, as the compiler may
3982    # overwrite some of them when testing with obscure command lines.
3983    # This happens at least with the AIX C compiler.
3984    : > sub/conftest.c
3985    for i in 1 2 3 4 5 6; do
3986      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3987      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3988      # Solaris 8's {/usr,}/bin/sh.
3989      touch sub/conftst$i.h
3990    done
3991    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3992
3993    case $depmode in
3994    nosideeffect)
3995      # after this tag, mechanisms are not by side-effect, so they'll
3996      # only be used when explicitly requested
3997      if test "x$enable_dependency_tracking" = xyes; then
3998        continue
3999      else
4000        break
4001      fi
4002      ;;
4003    none) break ;;
4004    esac
4005    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4006    # mode.  It turns out that the SunPro C++ compiler does not properly
4007    # handle `-M -o', and we need to detect this.
4008    if depmode=$depmode \
4009       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4010       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4011       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4012         >/dev/null 2>conftest.err &&
4013       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4014       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4015       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4016      # icc doesn't choke on unknown options, it will just issue warnings
4017      # or remarks (even with -Werror).  So we grep stderr for any message
4018      # that says an option was ignored or not supported.
4019      # When given -MP, icc 7.0 and 7.1 complain thusly:
4020      #   icc: Command line warning: ignoring option '-M'; no argument required
4021      # The diagnosis changed in icc 8.0:
4022      #   icc: Command line remark: option '-MP' not supported
4023      if (grep 'ignoring option' conftest.err ||
4024          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4025        am_cv_CC_dependencies_compiler_type=$depmode
4026        break
4027      fi
4028    fi
4029  done
4030
4031  cd ..
4032  rm -rf conftest.dir
4033else
4034  am_cv_CC_dependencies_compiler_type=none
4035fi
4036
4037fi
4038echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4039echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4040CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4041
4042
4043
4044if
4045  test "x$enable_dependency_tracking" != xno \
4046  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4047  am__fastdepCC_TRUE=
4048  am__fastdepCC_FALSE='#'
4049else
4050  am__fastdepCC_TRUE='#'
4051  am__fastdepCC_FALSE=
4052fi
4053
4054
4055
4056echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4057echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4058    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4059if test "${enable_maintainer_mode+set}" = set; then
4060  enableval="$enable_maintainer_mode"
4061  USE_MAINTAINER_MODE=$enableval
4062else
4063  USE_MAINTAINER_MODE=no
4064fi;
4065  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4066echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4067
4068
4069if test $USE_MAINTAINER_MODE = yes; then
4070  MAINTAINER_MODE_TRUE=
4071  MAINTAINER_MODE_FALSE='#'
4072else
4073  MAINTAINER_MODE_TRUE='#'
4074  MAINTAINER_MODE_FALSE=
4075fi
4076
4077  MAINT=$MAINTAINER_MODE_TRUE
4078
4079
4080
4081coin_have_externals=no
4082if test "$enable_maintainer_mode" = yes; then
4083
4084  # If maintainer mode is chosen, we make sure that the correct versions
4085  # of the tools are used, and that we know where libtool.m4 is (to
4086  # recreate acinclude.m4)
4087
4088
4089  LIBTOOLM4=
4090  # Normally, $HOME
4091  AUTOTOOLS_DFLT=$HOME
4092
4093  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4094echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4095if test "${ac_cv_use_correct_autotools+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098  ac_cv_use_correct_autotools=check
4099fi
4100echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4101echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4102
4103  if test $ac_cv_use_correct_autotools = check; then
4104    ac_cv_use_correct_autotools=yes
4105    # Check if we have autoconf
4106    # Extract the first word of "autoconf", so it can be a program name with args.
4107set dummy autoconf; ac_word=$2
4108echo "$as_me:$LINENO: checking for $ac_word" >&5
4109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110if test "${ac_cv_prog_have_autoconf+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  if test -n "$have_autoconf"; then
4114  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119  IFS=$as_save_IFS
4120  test -z "$as_dir" && as_dir=.
4121  for ac_exec_ext in '' $ac_executable_extensions; do
4122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123    ac_cv_prog_have_autoconf="yes"
4124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125    break 2
4126  fi
4127done
4128done
4129
4130  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4131fi
4132fi
4133have_autoconf=$ac_cv_prog_have_autoconf
4134if test -n "$have_autoconf"; then
4135  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4136echo "${ECHO_T}$have_autoconf" >&6
4137else
4138  echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
4140fi
4141
4142    if test $have_autoconf = no; then
4143      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4144echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4145   { (exit 1); exit 1; }; }
4146    fi
4147
4148    # Check whether autoconf is the correct version
4149    correct_version='2.59'
4150    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4151    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4152echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4153    autoconf --version > confauto.out 2>&1
4154    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4155      echo "$as_me:$LINENO: result: yes" >&5
4156echo "${ECHO_T}yes" >&6
4157    else
4158      rm -f confauto.out
4159      echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4162echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4163   { (exit 1); exit 1; }; }
4164    fi
4165    rm -f confauto.out
4166
4167    # Check if the executable autoconf is picked up from the correct location
4168    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4169echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4170    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4171    autoconf_dir=`cd $autoconf_dir; pwd`
4172    if test x$AUTOTOOLS_DIR = x; then
4173      want_dir=$AUTOTOOLS_DFLT/bin
4174    else
4175      want_dir=$AUTOTOOLS_DIR/bin
4176    fi
4177    if test $autoconf_dir = `cd $want_dir; pwd`; then
4178      echo "$as_me:$LINENO: result: yes" >&5
4179echo "${ECHO_T}yes" >&6
4180    else
4181      rm -f confauto.out
4182      echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6
4184      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4185echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4186   { (exit 1); exit 1; }; }
4187    fi
4188
4189    # Check if we have automake
4190    # Extract the first word of "automake", so it can be a program name with args.
4191set dummy automake; ac_word=$2
4192echo "$as_me:$LINENO: checking for $ac_word" >&5
4193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194if test "${ac_cv_prog_have_automake+set}" = set; then
4195  echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197  if test -n "$have_automake"; then
4198  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203  IFS=$as_save_IFS
4204  test -z "$as_dir" && as_dir=.
4205  for ac_exec_ext in '' $ac_executable_extensions; do
4206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207    ac_cv_prog_have_automake="yes"
4208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209    break 2
4210  fi
4211done
4212done
4213
4214  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4215fi
4216fi
4217have_automake=$ac_cv_prog_have_automake
4218if test -n "$have_automake"; then
4219  echo "$as_me:$LINENO: result: $have_automake" >&5
4220echo "${ECHO_T}$have_automake" >&6
4221else
4222  echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
4224fi
4225
4226    if test $have_automake = no; then
4227      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4228echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4229   { (exit 1); exit 1; }; }
4230    fi
4231
4232    # Check whether automake is the correct version
4233    correct_version='1.9.6'
4234    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4235    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4236echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4237    automake --version > confauto.out 2>&1
4238    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4239      echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241    else
4242      rm -f confauto.out
4243      echo "$as_me:$LINENO: result: no" >&5
4244echo "${ECHO_T}no" >&6
4245      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4246echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4247   { (exit 1); exit 1; }; }
4248    fi
4249    rm -f confauto.out
4250
4251    # Check if the executable automake is picked up from the correct location
4252    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4253echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4254    automake_dir=`which automake | sed -e 's=/automake=='`
4255    automake_dir=`cd $automake_dir; pwd`
4256    if test x$AUTOTOOLS_DIR = x; then
4257      want_dir=$AUTOTOOLS_DFLT/bin
4258    else
4259      want_dir=$AUTOTOOLS_DIR/bin
4260    fi
4261    if test $automake_dir = `cd $want_dir; pwd`; then
4262      echo "$as_me:$LINENO: result: yes" >&5
4263echo "${ECHO_T}yes" >&6
4264    else
4265      rm -f confauto.out
4266      echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4269echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4270   { (exit 1); exit 1; }; }
4271    fi
4272
4273    # Check if this is the correct version of libtool (with escaped dots)
4274    if test x$AUTOTOOLS_DIR = x; then
4275      want_dir=$AUTOTOOLS_DFLT/share
4276    else
4277      want_dir=$AUTOTOOLS_DIR/share
4278    fi
4279    correct_version='1.5.22'
4280    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4281    if test -r $want_dir/libtool/ltmain.sh; then
4282  have_ltmain=yes
4283  :
4284else
4285  have_ltmain=no
4286  :
4287fi
4288
4289    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4290echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4291    if test $have_ltmain = yes; then
4292    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4293        echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
4295      else
4296        echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
4298        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4299echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4300   { (exit 1); exit 1; }; }
4301      fi
4302    else
4303      echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
4305      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4306echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4307   { (exit 1); exit 1; }; }
4308    fi
4309  fi
4310
4311  # Check if we can find the libtool file
4312  if test x$AUTOTOOLS_DIR = x; then
4313    want_dir=$AUTOTOOLS_DFLT/share
4314  else
4315    want_dir=$AUTOTOOLS_DIR/share
4316  fi
4317  if test -r $want_dir/aclocal/libtool.m4; then
4318  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4319  :
4320else
4321  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4322echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4323   { (exit 1); exit 1; }; }
4324  :
4325fi
4326
4327
4328  # Check if we have an Dependencies file
4329  if test -r $srcdir/Dependencies; then
4330    coin_have_externals=yes
4331  fi
4332  # Check if subversion is installed and understands https
4333  # Extract the first word of "svn", so it can be a program name with args.
4334set dummy svn; ac_word=$2
4335echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337if test "${ac_cv_prog_have_svn+set}" = set; then
4338  echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340  if test -n "$have_svn"; then
4341  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348  for ac_exec_ext in '' $ac_executable_extensions; do
4349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350    ac_cv_prog_have_svn="yes"
4351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352    break 2
4353  fi
4354done
4355done
4356
4357  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4358fi
4359fi
4360have_svn=$ac_cv_prog_have_svn
4361if test -n "$have_svn"; then
4362  echo "$as_me:$LINENO: result: $have_svn" >&5
4363echo "${ECHO_T}$have_svn" >&6
4364else
4365  echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367fi
4368
4369  if test x$have_svn = xyes; then
4370    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4371echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4372if test "${ac_cv_svn_understands_https+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  svn --version > confauto.out 2>&1
4376                    if $EGREP https confauto.out >/dev/null 2>&1; then
4377                      ac_cv_svn_understands_https=yes
4378                    else
4379                      ac_cv_svn_understands_https=no
4380                      have_svn=no
4381                      ac_cv_prog_have_svn=no
4382                    fi
4383                    rm -f confauto.out
4384fi
4385echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4386echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4387  fi
4388
4389  # Find the location of the BuildTools directory
4390  BUILDTOOLSDIR=
4391  if test -r $srcdir/BuildTools/coin.m4; then
4392    BUILDTOOLSDIR=$srcdir/BuildTools
4393  else
4394    if test -r $srcdir/../BuildTools/coin.m4; then
4395      BUILDTOOLSDIR=$srcdir/../BuildTools
4396    else
4397      if test -r $srcdir/../../BuildTools/coin.m4; then
4398        BUILDTOOLSDIR=$srcdir/../../BuildTools
4399      else
4400        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4401echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4402   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4403      fi
4404    fi
4405  fi
4406
4407
4408  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4409  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4410    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4411  fi
4412
4413  # The following variable is set to the name of the directory where
4414  # the autotool scripts are located
4415
4416  AUX_DIR=$ac_aux_dir
4417fi
4418
4419# helpful variable for the base directory of this package
4420abs_source_dir=`cd $srcdir; pwd`
4421
4422
4423# Stuff for example Makefiles
4424if test x$prefix = xNONE; then
4425  full_prefix=$ac_default_prefix
4426else
4427  full_prefix=$prefix
4428fi
4429full_prefix=`cd $full_prefix ; pwd`
4430
4431abs_lib_dir=$full_prefix/lib
4432
4433abs_include_dir=$full_prefix/include
4434
4435abs_bin_dir=$full_prefix/bin
4436
4437
4438
4439if test $coin_have_externals = yes && test x$have_svn = xyes; then
4440  HAVE_EXTERNALS_TRUE=
4441  HAVE_EXTERNALS_FALSE='#'
4442else
4443  HAVE_EXTERNALS_TRUE='#'
4444  HAVE_EXTERNALS_FALSE=
4445fi
4446
4447
4448# AC_MSG_NOTICE([End automake initialisation.])
4449
4450
4451
4452LIBTOOL=
4453if test -f ../libtool; then
4454  coin_config_dir=..
4455  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4456fi
4457if test "x$LIBTOOL" = x; then
4458  if test -f ../../libtool; then
4459    coin_config_dir=../..
4460    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4461  fi
4462fi
4463
4464if test "x$LIBTOOL" = x; then
4465# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4466  # Stuff for libtool
4467  # Check whether --enable-shared or --disable-shared was given.
4468if test "${enable_shared+set}" = set; then
4469  enableval="$enable_shared"
4470  p=${PACKAGE-default}
4471    case $enableval in
4472    yes) enable_shared=yes ;;
4473    no) enable_shared=no ;;
4474    *)
4475      enable_shared=no
4476      # Look at the argument we got.  We use all the common list separators.
4477      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4478      for pkg in $enableval; do
4479        IFS="$lt_save_ifs"
4480        if test "X$pkg" = "X$p"; then
4481          enable_shared=yes
4482        fi
4483      done
4484      IFS="$lt_save_ifs"
4485      ;;
4486    esac
4487else
4488  enable_shared=yes
4489fi;
4490
4491# Check whether --enable-fast-install or --disable-fast-install was given.
4492if test "${enable_fast_install+set}" = set; then
4493  enableval="$enable_fast_install"
4494  p=${PACKAGE-default}
4495    case $enableval in
4496    yes) enable_fast_install=yes ;;
4497    no) enable_fast_install=no ;;
4498    *)
4499      enable_fast_install=no
4500      # Look at the argument we got.  We use all the common list separators.
4501      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4502      for pkg in $enableval; do
4503        IFS="$lt_save_ifs"
4504        if test "X$pkg" = "X$p"; then
4505          enable_fast_install=yes
4506        fi
4507      done
4508      IFS="$lt_save_ifs"
4509      ;;
4510    esac
4511else
4512  enable_fast_install=yes
4513fi;
4514
4515echo "$as_me:$LINENO: checking host system type" >&5
4516echo $ECHO_N "checking host system type... $ECHO_C" >&6
4517if test "${ac_cv_host+set}" = set; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  ac_cv_host_alias=$host_alias
4521test -z "$ac_cv_host_alias" &&
4522  ac_cv_host_alias=$ac_cv_build_alias
4523ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4524  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4525echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4526   { (exit 1); exit 1; }; }
4527
4528fi
4529echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4530echo "${ECHO_T}$ac_cv_host" >&6
4531host=$ac_cv_host
4532host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4533host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4534host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4535
4536
4537echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4538echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4539if test "${lt_cv_path_SED+set}" = set; then
4540  echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542  # Loop through the user's path and test for sed and gsed.
4543# Then use that list of sed's as ones to test for truncation.
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549  for lt_ac_prog in sed gsed; do
4550    for ac_exec_ext in '' $ac_executable_extensions; do
4551      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4552        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4553      fi
4554    done
4555  done
4556done
4557lt_ac_max=0
4558lt_ac_count=0
4559# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4560# along with /bin/sed that truncates output.
4561for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4562  test ! -f $lt_ac_sed && continue
4563  cat /dev/null > conftest.in
4564  lt_ac_count=0
4565  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4566  # Check for GNU sed and select it if it is found.
4567  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4568    lt_cv_path_SED=$lt_ac_sed
4569    break
4570  fi
4571  while true; do
4572    cat conftest.in conftest.in >conftest.tmp
4573    mv conftest.tmp conftest.in
4574    cp conftest.in conftest.nl
4575    echo >>conftest.nl
4576    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4577    cmp -s conftest.out conftest.nl || break
4578    # 10000 chars as input seems more than enough
4579    test $lt_ac_count -gt 10 && break
4580    lt_ac_count=`expr $lt_ac_count + 1`
4581    if test $lt_ac_count -gt $lt_ac_max; then
4582      lt_ac_max=$lt_ac_count
4583      lt_cv_path_SED=$lt_ac_sed
4584    fi
4585  done
4586done
4587
4588fi
4589
4590SED=$lt_cv_path_SED
4591echo "$as_me:$LINENO: result: $SED" >&5
4592echo "${ECHO_T}$SED" >&6
4593
4594
4595# Check whether --with-gnu-ld or --without-gnu-ld was given.
4596if test "${with_gnu_ld+set}" = set; then
4597  withval="$with_gnu_ld"
4598  test "$withval" = no || with_gnu_ld=yes
4599else
4600  with_gnu_ld=no
4601fi;
4602ac_prog=ld
4603if test "$GCC" = yes; then
4604  # Check if gcc -print-prog-name=ld gives a path.
4605  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4606echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4607  case $host in
4608  *-*-mingw*)
4609    # gcc leaves a trailing carriage return which upsets mingw
4610    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4611  *)
4612    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4613  esac
4614  case $ac_prog in
4615    # Accept absolute paths.
4616    [\\/]* | ?:[\\/]*)
4617      re_direlt='/[^/][^/]*/\.\./'
4618      # Canonicalize the pathname of ld
4619      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4620      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4621        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4622      done
4623      test -z "$LD" && LD="$ac_prog"
4624      ;;
4625  "")
4626    # If it fails, then pretend we aren't using GCC.
4627    ac_prog=ld
4628    ;;
4629  *)
4630    # If it is relative, then search for the first ld in PATH.
4631    with_gnu_ld=unknown
4632    ;;
4633  esac
4634elif test "$with_gnu_ld" = yes; then
4635  echo "$as_me:$LINENO: checking for GNU ld" >&5
4636echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4637else
4638  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4639echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4640fi
4641if test "${lt_cv_path_LD+set}" = set; then
4642  echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644  if test -z "$LD"; then
4645  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4646  for ac_dir in $PATH; do
4647    IFS="$lt_save_ifs"
4648    test -z "$ac_dir" && ac_dir=.
4649    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4650      lt_cv_path_LD="$ac_dir/$ac_prog"
4651      # Check to see if the program is GNU ld.  I'd rather use --version,
4652      # but apparently some variants of GNU ld only accept -v.
4653      # Break only if it was the GNU/non-GNU ld that we prefer.
4654      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4655      *GNU* | *'with BFD'*)
4656        test "$with_gnu_ld" != no && break
4657        ;;
4658      *)
4659        test "$with_gnu_ld" != yes && break
4660        ;;
4661      esac
4662    fi
4663  done
4664  IFS="$lt_save_ifs"
4665else
4666  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4667fi
4668fi
4669
4670LD="$lt_cv_path_LD"
4671if test -n "$LD"; then
4672  echo "$as_me:$LINENO: result: $LD" >&5
4673echo "${ECHO_T}$LD" >&6
4674else
4675  echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6
4677fi
4678test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4679echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4680   { (exit 1); exit 1; }; }
4681echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4682echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4683if test "${lt_cv_prog_gnu_ld+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4687case `$LD -v 2>&1 </dev/null` in
4688*GNU* | *'with BFD'*)
4689  lt_cv_prog_gnu_ld=yes
4690  ;;
4691*)
4692  lt_cv_prog_gnu_ld=no
4693  ;;
4694esac
4695fi
4696echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4697echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4698with_gnu_ld=$lt_cv_prog_gnu_ld
4699
4700
4701echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4702echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4703if test "${lt_cv_ld_reload_flag+set}" = set; then
4704  echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706  lt_cv_ld_reload_flag='-r'
4707fi
4708echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4709echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4710reload_flag=$lt_cv_ld_reload_flag
4711case $reload_flag in
4712"" | " "*) ;;
4713*) reload_flag=" $reload_flag" ;;
4714esac
4715reload_cmds='$LD$reload_flag -o $output$reload_objs'
4716case $host_os in
4717  darwin*)
4718    if test "$GCC" = yes; then
4719      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4720    else
4721      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4722    fi
4723    ;;
4724esac
4725
4726echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4727echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4728if test "${lt_cv_path_NM+set}" = set; then
4729  echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731  if test -n "$NM"; then
4732  # Let the user override the test.
4733  lt_cv_path_NM="$NM"
4734else
4735  lt_nm_to_check="${ac_tool_prefix}nm"
4736  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4737    lt_nm_to_check="$lt_nm_to_check nm"
4738  fi
4739  for lt_tmp_nm in $lt_nm_to_check; do
4740    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4741    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4742      IFS="$lt_save_ifs"
4743      test -z "$ac_dir" && ac_dir=.
4744      tmp_nm="$ac_dir/$lt_tmp_nm"
4745      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4746        # Check to see if the nm accepts a BSD-compat flag.
4747        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4748        #   nm: unknown option "B" ignored
4749        # Tru64's nm complains that /dev/null is an invalid object file
4750        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4751        */dev/null* | *'Invalid file or object type'*)
4752          lt_cv_path_NM="$tmp_nm -B"
4753          break
4754          ;;
4755        *)
4756          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4757          */dev/null*)
4758            lt_cv_path_NM="$tmp_nm -p"
4759            break
4760            ;;
4761          *)
4762            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4763            continue # so that we can try to find one that supports BSD flags
4764            ;;
4765          esac
4766          ;;
4767        esac
4768      fi
4769    done
4770    IFS="$lt_save_ifs"
4771  done
4772  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4773fi
4774fi
4775echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4776echo "${ECHO_T}$lt_cv_path_NM" >&6
4777NM="$lt_cv_path_NM"
4778
4779echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4780echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4781if test "${lt_cv_deplibs_check_method+set}" = set; then
4782  echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784  lt_cv_file_magic_cmd='$MAGIC_CMD'
4785lt_cv_file_magic_test_file=
4786lt_cv_deplibs_check_method='unknown'
4787# Need to set the preceding variable on all platforms that support
4788# interlibrary dependencies.
4789# 'none' -- dependencies not supported.
4790# `unknown' -- same as none, but documents that we really don't know.
4791# 'pass_all' -- all dependencies passed with no checks.
4792# 'test_compile' -- check by making test program.
4793# 'file_magic [[regex]]' -- check by looking for files in library path
4794# which responds to the $file_magic_cmd with a given extended regex.
4795# If you have `file' or equivalent on your system and you're not sure
4796# whether `pass_all' will *always* work, you probably want this one.
4797
4798case $host_os in
4799aix4* | aix5*)
4800  lt_cv_deplibs_check_method=pass_all
4801  ;;
4802
4803beos*)
4804  lt_cv_deplibs_check_method=pass_all
4805  ;;
4806
4807bsdi[45]*)
4808  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4809  lt_cv_file_magic_cmd='/usr/bin/file -L'
4810  lt_cv_file_magic_test_file=/shlib/libc.so
4811  ;;
4812
4813cygwin*)
4814  # func_win32_libid is a shell function defined in ltmain.sh
4815  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4816  lt_cv_file_magic_cmd='func_win32_libid'
4817  ;;
4818
4819mingw* | pw32*)
4820  # Base MSYS/MinGW do not provide the 'file' command needed by
4821  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4822  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4823  lt_cv_file_magic_cmd='$OBJDUMP -f'
4824  ;;
4825
4826darwin* | rhapsody*)
4827  lt_cv_deplibs_check_method=pass_all
4828  ;;
4829
4830freebsd* | kfreebsd*-gnu | dragonfly*)
4831  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4832    case $host_cpu in
4833    i*86 )
4834      # Not sure whether the presence of OpenBSD here was a mistake.
4835      # Let's accept both of them until this is cleared up.
4836      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4837      lt_cv_file_magic_cmd=/usr/bin/file
4838      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4839      ;;
4840    esac
4841  else
4842    lt_cv_deplibs_check_method=pass_all
4843  fi
4844  ;;
4845
4846gnu*)
4847  lt_cv_deplibs_check_method=pass_all
4848  ;;
4849
4850hpux10.20* | hpux11*)
4851  lt_cv_file_magic_cmd=/usr/bin/file
4852  case $host_cpu in
4853  ia64*)
4854    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4855    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4856    ;;
4857  hppa*64*)
4858    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]'
4859    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4860    ;;
4861  *)
4862    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4863    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4864    ;;
4865  esac
4866  ;;
4867
4868interix3*)
4869  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4870  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4871  ;;
4872
4873irix5* | irix6* | nonstopux*)
4874  case $LD in
4875  *-32|*"-32 ") libmagic=32-bit;;
4876  *-n32|*"-n32 ") libmagic=N32;;
4877  *-64|*"-64 ") libmagic=64-bit;;
4878  *) libmagic=never-match;;
4879  esac
4880  lt_cv_deplibs_check_method=pass_all
4881  ;;
4882
4883# This must be Linux ELF.
4884linux*)
4885  lt_cv_deplibs_check_method=pass_all
4886  ;;
4887
4888netbsd*)
4889  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4890    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4891  else
4892    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4893  fi
4894  ;;
4895
4896newos6*)
4897  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4898  lt_cv_file_magic_cmd=/usr/bin/file
4899  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4900  ;;
4901
4902nto-qnx*)
4903  lt_cv_deplibs_check_method=unknown
4904  ;;
4905
4906openbsd*)
4907  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4908    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4909  else
4910    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4911  fi
4912  ;;
4913
4914osf3* | osf4* | osf5*)
4915  lt_cv_deplibs_check_method=pass_all
4916  ;;
4917
4918solaris*)
4919  lt_cv_deplibs_check_method=pass_all
4920  ;;
4921
4922sysv4 | sysv4.3*)
4923  case $host_vendor in
4924  motorola)
4925    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]'
4926    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4927    ;;
4928  ncr)
4929    lt_cv_deplibs_check_method=pass_all
4930    ;;
4931  sequent)
4932    lt_cv_file_magic_cmd='/bin/file'
4933    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4934    ;;
4935  sni)
4936    lt_cv_file_magic_cmd='/bin/file'
4937    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4938    lt_cv_file_magic_test_file=/lib/libc.so
4939    ;;
4940  siemens)
4941    lt_cv_deplibs_check_method=pass_all
4942    ;;
4943  pc)
4944    lt_cv_deplibs_check_method=pass_all
4945    ;;
4946  esac
4947  ;;
4948
4949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4950  lt_cv_deplibs_check_method=pass_all
4951  ;;
4952esac
4953
4954fi
4955echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4956echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4957file_magic_cmd=$lt_cv_file_magic_cmd
4958deplibs_check_method=$lt_cv_deplibs_check_method
4959test -z "$deplibs_check_method" && deplibs_check_method=unknown
4960
4961
4962
4963
4964# If no C compiler was specified, use CC.
4965LTCC=${LTCC-"$CC"}
4966
4967# If no C compiler flags were specified, use CFLAGS.
4968LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4969
4970# Allow CC to be a program name with arguments.
4971compiler=$CC
4972
4973# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4974if test "${enable_libtool_lock+set}" = set; then
4975  enableval="$enable_libtool_lock"
4976
4977fi;
4978test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4979
4980# Some flags need to be propagated to the compiler or linker for good
4981# libtool support.
4982case $host in
4983ia64-*-hpux*)
4984  # Find out which ABI we are using.
4985  echo 'int i;' > conftest.$ac_ext
4986  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987  (eval $ac_compile) 2>&5
4988  ac_status=$?
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); }; then
4991    case `/usr/bin/file conftest.$ac_objext` in
4992    *ELF-32*)
4993      HPUX_IA64_MODE="32"
4994      ;;
4995    *ELF-64*)
4996      HPUX_IA64_MODE="64"
4997      ;;
4998    esac
4999  fi
5000  rm -rf conftest*
5001  ;;
5002*-*-irix6*)
5003  # Find out which ABI we are using.
5004  echo '#line 5004 "configure"' > conftest.$ac_ext
5005  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006  (eval $ac_compile) 2>&5
5007  ac_status=$?
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); }; then
5010   if test "$lt_cv_prog_gnu_ld" = yes; then
5011    case `/usr/bin/file conftest.$ac_objext` in
5012    *32-bit*)
5013      LD="${LD-ld} -melf32bsmip"
5014      ;;
5015    *N32*)
5016      LD="${LD-ld} -melf32bmipn32"
5017      ;;
5018    *64-bit*)
5019      LD="${LD-ld} -melf64bmip"
5020      ;;
5021    esac
5022   else
5023    case `/usr/bin/file conftest.$ac_objext` in
5024    *32-bit*)
5025      LD="${LD-ld} -32"
5026      ;;
5027    *N32*)
5028      LD="${LD-ld} -n32"
5029      ;;
5030    *64-bit*)
5031      LD="${LD-ld} -64"
5032      ;;
5033    esac
5034   fi
5035  fi
5036  rm -rf conftest*
5037  ;;
5038
5039x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5040  # Find out which ABI we are using.
5041  echo 'int i;' > conftest.$ac_ext
5042  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043  (eval $ac_compile) 2>&5
5044  ac_status=$?
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); }; then
5047    case `/usr/bin/file conftest.o` in
5048    *32-bit*)
5049      case $host in
5050        x86_64-*linux*)
5051          LD="${LD-ld} -m elf_i386"
5052          ;;
5053        ppc64-*linux*|powerpc64-*linux*)
5054          LD="${LD-ld} -m elf32ppclinux"
5055          ;;
5056        s390x-*linux*)
5057          LD="${LD-ld} -m elf_s390"
5058          ;;
5059        sparc64-*linux*)
5060          LD="${LD-ld} -m elf32_sparc"
5061          ;;
5062      esac
5063      ;;
5064    *64-bit*)
5065      case $host in
5066        x86_64-*linux*)
5067          LD="${LD-ld} -m elf_x86_64"
5068          ;;
5069        ppc*-*linux*|powerpc*-*linux*)
5070          LD="${LD-ld} -m elf64ppc"
5071          ;;
5072        s390*-*linux*)
5073          LD="${LD-ld} -m elf64_s390"
5074          ;;
5075        sparc*-*linux*)
5076          LD="${LD-ld} -m elf64_sparc"
5077          ;;
5078      esac
5079      ;;
5080    esac
5081  fi
5082  rm -rf conftest*
5083  ;;
5084
5085*-*-sco3.2v5*)
5086  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5087  SAVE_CFLAGS="$CFLAGS"
5088  CFLAGS="$CFLAGS -belf"
5089  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5090echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5091if test "${lt_cv_cc_needs_belf+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  ac_ext=c
5095ac_cpp='$CPP $CPPFLAGS'
5096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100     cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h.  */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h.  */
5106
5107int
5108main ()
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115rm -f conftest.$ac_objext conftest$ac_exeext
5116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5117  (eval $ac_link) 2>conftest.er1
5118  ac_status=$?
5119  grep -v '^ *+' conftest.er1 >conftest.err
5120  rm -f conftest.er1
5121  cat conftest.err >&5
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); } &&
5124         { ac_try='test -z "$ac_c_werror_flag"
5125                         || test ! -s conftest.err'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; } &&
5131         { ac_try='test -s conftest$ac_exeext'
5132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133  (eval $ac_try) 2>&5
5134  ac_status=$?
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  lt_cv_cc_needs_belf=yes
5138else
5139  echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142lt_cv_cc_needs_belf=no
5143fi
5144rm -f conftest.err conftest.$ac_objext \
5145      conftest$ac_exeext conftest.$ac_ext
5146     ac_ext=c
5147ac_cpp='$CPP $CPPFLAGS'
5148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152fi
5153echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5154echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5155  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5156    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5157    CFLAGS="$SAVE_CFLAGS"
5158  fi
5159  ;;
5160sparc*-*solaris*)
5161  # Find out which ABI we are using.
5162  echo 'int i;' > conftest.$ac_ext
5163  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164  (eval $ac_compile) 2>&5
5165  ac_status=$?
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); }; then
5168    case `/usr/bin/file conftest.o` in
5169    *64-bit*)
5170      case $lt_cv_prog_gnu_ld in
5171      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5172      *)    LD="${LD-ld} -64" ;;
5173      esac
5174      ;;
5175    esac
5176  fi
5177  rm -rf conftest*
5178  ;;
5179
5180
5181esac
5182
5183need_locks="$enable_libtool_lock"
5184
5185
5186ac_ext=c
5187ac_cpp='$CPP $CPPFLAGS'
5188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5192echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5193# On Suns, sometimes $CPP names a directory.
5194if test -n "$CPP" && test -d "$CPP"; then
5195  CPP=
5196fi
5197if test -z "$CPP"; then
5198  if test "${ac_cv_prog_CPP+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201      # Double quotes because CPP needs to be expanded
5202    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5203    do
5204      ac_preproc_ok=false
5205for ac_c_preproc_warn_flag in '' yes
5206do
5207  # Use a header file that comes with gcc, so configuring glibc
5208  # with a fresh cross-compiler works.
5209  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210  # <limits.h> exists even on freestanding compilers.
5211  # On the NeXT, cc -E runs the code through the compiler's parser,
5212  # not just through cpp. "Syntax error" is here to catch this case.
5213  cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219#ifdef __STDC__
5220# include <limits.h>
5221#else
5222# include <assert.h>
5223#endif
5224                     Syntax error
5225_ACEOF
5226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228  ac_status=$?
5229  grep -v '^ *+' conftest.er1 >conftest.err
5230  rm -f conftest.er1
5231  cat conftest.err >&5
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); } >/dev/null; then
5234  if test -s conftest.err; then
5235    ac_cpp_err=$ac_c_preproc_warn_flag
5236    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237  else
5238    ac_cpp_err=
5239  fi
5240else
5241  ac_cpp_err=yes
5242fi
5243if test -z "$ac_cpp_err"; then
5244  :
5245else
5246  echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249  # Broken: fails on valid input.
5250continue
5251fi
5252rm -f conftest.err conftest.$ac_ext
5253
5254  # OK, works on sane cases.  Now check whether non-existent headers
5255  # can be detected and how.
5256  cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266  ac_status=$?
5267  grep -v '^ *+' conftest.er1 >conftest.err
5268  rm -f conftest.er1
5269  cat conftest.err >&5
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); } >/dev/null; then
5272  if test -s conftest.err; then
5273    ac_cpp_err=$ac_c_preproc_warn_flag
5274    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5275  else
5276    ac_cpp_err=
5277  fi
5278else
5279  ac_cpp_err=yes
5280fi
5281if test -z "$ac_cpp_err"; then
5282  # Broken: success on invalid input.
5283continue
5284else
5285  echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288  # Passes both tests.
5289ac_preproc_ok=:
5290break
5291fi
5292rm -f conftest.err conftest.$ac_ext
5293
5294done
5295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296rm -f conftest.err conftest.$ac_ext
5297if $ac_preproc_ok; then
5298  break
5299fi
5300
5301    done
5302    ac_cv_prog_CPP=$CPP
5303
5304fi
5305  CPP=$ac_cv_prog_CPP
5306else
5307  ac_cv_prog_CPP=$CPP
5308fi
5309echo "$as_me:$LINENO: result: $CPP" >&5
5310echo "${ECHO_T}$CPP" >&6
5311ac_preproc_ok=false
5312for ac_c_preproc_warn_flag in '' yes
5313do
5314  # Use a header file that comes with gcc, so configuring glibc
5315  # with a fresh cross-compiler works.
5316  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5317  # <limits.h> exists even on freestanding compilers.
5318  # On the NeXT, cc -E runs the code through the compiler's parser,
5319  # not just through cpp. "Syntax error" is here to catch this case.
5320  cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h.  */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h.  */
5326#ifdef __STDC__
5327# include <limits.h>
5328#else
5329# include <assert.h>
5330#endif
5331                     Syntax error
5332_ACEOF
5333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5334  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335  ac_status=$?
5336  grep -v '^ *+' conftest.er1 >conftest.err
5337  rm -f conftest.er1
5338  cat conftest.err >&5
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); } >/dev/null; then
5341  if test -s conftest.err; then
5342    ac_cpp_err=$ac_c_preproc_warn_flag
5343    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344  else
5345    ac_cpp_err=
5346  fi
5347else
5348  ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
5351  :
5352else
5353  echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356  # Broken: fails on valid input.
5357continue
5358fi
5359rm -f conftest.err conftest.$ac_ext
5360
5361  # OK, works on sane cases.  Now check whether non-existent headers
5362  # can be detected and how.
5363  cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369#include <ac_nonexistent.h>
5370_ACEOF
5371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373  ac_status=$?
5374  grep -v '^ *+' conftest.er1 >conftest.err
5375  rm -f conftest.er1
5376  cat conftest.err >&5
5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); } >/dev/null; then
5379  if test -s conftest.err; then
5380    ac_cpp_err=$ac_c_preproc_warn_flag
5381    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5382  else
5383    ac_cpp_err=
5384  fi
5385else
5386  ac_cpp_err=yes
5387fi
5388if test -z "$ac_cpp_err"; then
5389  # Broken: success on invalid input.
5390continue
5391else
5392  echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395  # Passes both tests.
5396ac_preproc_ok=:
5397break
5398fi
5399rm -f conftest.err conftest.$ac_ext
5400
5401done
5402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403rm -f conftest.err conftest.$ac_ext
5404if $ac_preproc_ok; then
5405  :
5406else
5407  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5408See \`config.log' for more details." >&5
5409echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5410See \`config.log' for more details." >&2;}
5411   { (exit 1); exit 1; }; }
5412fi
5413
5414ac_ext=c
5415ac_cpp='$CPP $CPPFLAGS'
5416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419
5420
5421echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5422echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5423if test "${ac_cv_header_stdc+set}" = set; then
5424  echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426  cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h.  */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h.  */
5432#include <stdlib.h>
5433#include <stdarg.h>
5434#include <string.h>
5435#include <float.h>
5436
5437int
5438main ()
5439{
5440
5441  ;
5442  return 0;
5443}
5444_ACEOF
5445rm -f conftest.$ac_objext
5446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447  (eval $ac_compile) 2>conftest.er1
5448  ac_status=$?
5449  grep -v '^ *+' conftest.er1 >conftest.err
5450  rm -f conftest.er1
5451  cat conftest.err >&5
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } &&
5454         { ac_try='test -z "$ac_c_werror_flag"
5455                         || test ! -s conftest.err'
5456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457  (eval $ac_try) 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }; } &&
5461         { ac_try='test -s conftest.$ac_objext'
5462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463  (eval $ac_try) 2>&5
5464  ac_status=$?
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); }; }; then
5467  ac_cv_header_stdc=yes
5468else
5469  echo "$as_me: failed program was:" >&5
5470sed 's/^/| /' conftest.$ac_ext >&5
5471
5472ac_cv_header_stdc=no
5473fi
5474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475
5476if test $ac_cv_header_stdc = yes; then
5477  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5478  cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h.  */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h.  */
5484#include <string.h>
5485
5486_ACEOF
5487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488  $EGREP "memchr" >/dev/null 2>&1; then
5489  :
5490else
5491  ac_cv_header_stdc=no
5492fi
5493rm -f conftest*
5494
5495fi
5496
5497if test $ac_cv_header_stdc = yes; then
5498  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5499  cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h.  */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h.  */
5505#include <stdlib.h>
5506
5507_ACEOF
5508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509  $EGREP "free" >/dev/null 2>&1; then
5510  :
5511else
5512  ac_cv_header_stdc=no
5513fi
5514rm -f conftest*
5515
5516fi
5517
5518if test $ac_cv_header_stdc = yes; then
5519  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5520  if test "$cross_compiling" = yes; then
5521  :
5522else
5523  cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h.  */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h.  */
5529#include <ctype.h>
5530#if ((' ' & 0x0FF) == 0x020)
5531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5533#else
5534# define ISLOWER(c) \
5535                   (('a' <= (c) && (c) <= 'i') \
5536                     || ('j' <= (c) && (c) <= 'r') \
5537                     || ('s' <= (c) && (c) <= 'z'))
5538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5539#endif
5540
5541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5542int
5543main ()
5544{
5545  int i;
5546  for (i = 0; i < 256; i++)
5547    if (XOR (islower (i), ISLOWER (i))
5548        || toupper (i) != TOUPPER (i))
5549      exit(2);
5550  exit (0);
5551}
5552_ACEOF
5553rm -f conftest$ac_exeext
5554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5555  (eval $ac_link) 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560  (eval $ac_try) 2>&5
5561  ac_status=$?
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); }; }; then
5564  :
5565else
5566  echo "$as_me: program exited with status $ac_status" >&5
5567echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570( exit $ac_status )
5571ac_cv_header_stdc=no
5572fi
5573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5574fi
5575fi
5576fi
5577echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5578echo "${ECHO_T}$ac_cv_header_stdc" >&6
5579if test $ac_cv_header_stdc = yes; then
5580
5581cat >>confdefs.h <<\_ACEOF
5582#define STDC_HEADERS 1
5583_ACEOF
5584
5585fi
5586
5587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5598                  inttypes.h stdint.h unistd.h
5599do
5600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5601echo "$as_me:$LINENO: checking for $ac_header" >&5
5602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5603if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604  echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606  cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h.  */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h.  */
5612$ac_includes_default
5613
5614#include <$ac_header>
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618  (eval $ac_compile) 2>conftest.er1
5619  ac_status=$?
5620  grep -v '^ *+' conftest.er1 >conftest.err
5621  rm -f conftest.er1
5622  cat conftest.err >&5
5623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624  (exit $ac_status); } &&
5625         { ac_try='test -z "$ac_c_werror_flag"
5626                         || test ! -s conftest.err'
5627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628  (eval $ac_try) 2>&5
5629  ac_status=$?
5630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631  (exit $ac_status); }; } &&
5632         { ac_try='test -s conftest.$ac_objext'
5633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634  (eval $ac_try) 2>&5
5635  ac_status=$?
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); }; }; then
5638  eval "$as_ac_Header=yes"
5639else
5640  echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643eval "$as_ac_Header=no"
5644fi
5645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5646fi
5647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5649if test `eval echo '${'$as_ac_Header'}'` = yes; then
5650  cat >>confdefs.h <<_ACEOF
5651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652_ACEOF
5653
5654fi
5655
5656done
5657
5658
5659
5660for ac_header in dlfcn.h
5661do
5662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664  echo "$as_me:$LINENO: checking for $ac_header" >&5
5665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668fi
5669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671else
5672  # Is the header compilable?
5673echo "$as_me:$LINENO: checking $ac_header usability" >&5
5674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5675cat >conftest.$ac_ext <<_ACEOF
5676/* confdefs.h.  */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h.  */
5681$ac_includes_default
5682#include <$ac_header>
5683_ACEOF
5684rm -f conftest.$ac_objext
5685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686  (eval $ac_compile) 2>conftest.er1
5687  ac_status=$?
5688  grep -v '^ *+' conftest.er1 >conftest.err
5689  rm -f conftest.er1
5690  cat conftest.err >&5
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); } &&
5693         { ac_try='test -z "$ac_c_werror_flag"
5694                         || test ! -s conftest.err'
5695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696  (eval $ac_try) 2>&5
5697  ac_status=$?
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); }; } &&
5700         { ac_try='test -s conftest.$ac_objext'
5701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702  (eval $ac_try) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); }; }; then
5706  ac_header_compiler=yes
5707else
5708  echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711ac_header_compiler=no
5712fi
5713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5715echo "${ECHO_T}$ac_header_compiler" >&6
5716
5717# Is the header present?
5718echo "$as_me:$LINENO: checking $ac_header presence" >&5
5719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5720cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h.  */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h.  */
5726#include <$ac_header>
5727_ACEOF
5728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } >/dev/null; then
5736  if test -s conftest.err; then
5737    ac_cpp_err=$ac_c_preproc_warn_flag
5738    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5739  else
5740    ac_cpp_err=
5741  fi
5742else
5743  ac_cpp_err=yes
5744fi
5745if test -z "$ac_cpp_err"; then
5746  ac_header_preproc=yes
5747else
5748  echo "$as_me: failed program was:" >&5
5749sed 's/^/| /' conftest.$ac_ext >&5
5750
5751  ac_header_preproc=no
5752fi
5753rm -f conftest.err conftest.$ac_ext
5754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5755echo "${ECHO_T}$ac_header_preproc" >&6
5756
5757# So?  What about this header?
5758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5759  yes:no: )
5760    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5764    ac_header_preproc=yes
5765    ;;
5766  no:yes:* )
5767    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5769    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5770echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5771    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5773    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5774echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5777    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5779    (
5780      cat <<\_ASBOX
5781## --------------------------------------------------------------- ##
5782## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5783## --------------------------------------------------------------- ##
5784_ASBOX
5785    ) |
5786      sed "s/^/$as_me: WARNING:     /" >&2
5787    ;;
5788esac
5789echo "$as_me:$LINENO: checking for $ac_header" >&5
5790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5791if eval "test \"\${$as_ac_Header+set}\" = set"; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  eval "$as_ac_Header=\$ac_header_preproc"
5795fi
5796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798
5799fi
5800if test `eval echo '${'$as_ac_Header'}'` = yes; then
5801  cat >>confdefs.h <<_ACEOF
5802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5803_ACEOF
5804
5805fi
5806
5807done
5808
5809ac_ext=cc
5810ac_cpp='$CXXCPP $CPPFLAGS'
5811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5814if test -n "$ac_tool_prefix"; then
5815  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5816  do
5817    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5818set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5819echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5821if test "${ac_cv_prog_CXX+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  if test -n "$CXX"; then
5825  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832  for ac_exec_ext in '' $ac_executable_extensions; do
5833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839done
5840
5841fi
5842fi
5843CXX=$ac_cv_prog_CXX
5844if test -n "$CXX"; then
5845  echo "$as_me:$LINENO: result: $CXX" >&5
5846echo "${ECHO_T}$CXX" >&6
5847else
5848  echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6
5850fi
5851
5852    test -n "$CXX" && break
5853  done
5854fi
5855if test -z "$CXX"; then
5856  ac_ct_CXX=$CXX
5857  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5858do
5859  # Extract the first word of "$ac_prog", so it can be a program name with args.
5860set dummy $ac_prog; ac_word=$2
5861echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5864  echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866  if test -n "$ac_ct_CXX"; then
5867  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874  for ac_exec_ext in '' $ac_executable_extensions; do
5875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876    ac_cv_prog_ac_ct_CXX="$ac_prog"
5877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881done
5882
5883fi
5884fi
5885ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5886if test -n "$ac_ct_CXX"; then
5887  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5888echo "${ECHO_T}$ac_ct_CXX" >&6
5889else
5890  echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
5892fi
5893
5894  test -n "$ac_ct_CXX" && break
5895done
5896test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5897
5898  CXX=$ac_ct_CXX
5899fi
5900
5901
5902# Provide some information about the compiler.
5903echo "$as_me:$LINENO:" \
5904     "checking for C++ compiler version" >&5
5905ac_compiler=`set X $ac_compile; echo $2`
5906{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5907  (eval $ac_compiler --version </dev/null >&5) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }
5911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5912  (eval $ac_compiler -v </dev/null >&5) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); }
5916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5917  (eval $ac_compiler -V </dev/null >&5) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }
5921
5922echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5923echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5924if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h.  */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h.  */
5933
5934int
5935main ()
5936{
5937#ifndef __GNUC__
5938       choke me
5939#endif
5940
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947  (eval $ac_compile) 2>conftest.er1
5948  ac_status=$?
5949  grep -v '^ *+' conftest.er1 >conftest.err
5950  rm -f conftest.er1
5951  cat conftest.err >&5
5952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953  (exit $ac_status); } &&
5954         { ac_try='test -z "$ac_cxx_werror_flag"
5955                         || test ! -s conftest.err'
5956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957  (eval $ac_try) 2>&5
5958  ac_status=$?
5959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960  (exit $ac_status); }; } &&
5961         { ac_try='test -s conftest.$ac_objext'
5962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963  (eval $ac_try) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; }; then
5967  ac_compiler_gnu=yes
5968else
5969  echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972ac_compiler_gnu=no
5973fi
5974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5976
5977fi
5978echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5979echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5980GXX=`test $ac_compiler_gnu = yes && echo yes`
5981ac_test_CXXFLAGS=${CXXFLAGS+set}
5982ac_save_CXXFLAGS=$CXXFLAGS
5983CXXFLAGS="-g"
5984echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5985echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5986if test "${ac_cv_prog_cxx_g+set}" = set; then
5987  echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989  cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h.  */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h.  */
5995
5996int
5997main ()
5998{
5999
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006  (eval $ac_compile) 2>conftest.er1
6007  ac_status=$?
6008  grep -v '^ *+' conftest.er1 >conftest.err
6009  rm -f conftest.er1
6010  cat conftest.err >&5
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } &&
6013         { ac_try='test -z "$ac_cxx_werror_flag"
6014                         || test ! -s conftest.err'
6015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016  (eval $ac_try) 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }; } &&
6020         { ac_try='test -s conftest.$ac_objext'
6021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022  (eval $ac_try) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }; }; then
6026  ac_cv_prog_cxx_g=yes
6027else
6028  echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031ac_cv_prog_cxx_g=no
6032fi
6033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034fi
6035echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6036echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6037if test "$ac_test_CXXFLAGS" = set; then
6038  CXXFLAGS=$ac_save_CXXFLAGS
6039elif test $ac_cv_prog_cxx_g = yes; then
6040  if test "$GXX" = yes; then
6041    CXXFLAGS="-g -O2"
6042  else
6043    CXXFLAGS="-g"
6044  fi
6045else
6046  if test "$GXX" = yes; then
6047    CXXFLAGS="-O2"
6048  else
6049    CXXFLAGS=
6050  fi
6051fi
6052for ac_declaration in \
6053   '' \
6054   'extern "C" void std::exit (int) throw (); using std::exit;' \
6055   'extern "C" void std::exit (int); using std::exit;' \
6056   'extern "C" void exit (int) throw ();' \
6057   'extern "C" void exit (int);' \
6058   'void exit (int);'
6059do
6060  cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h.  */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h.  */
6066$ac_declaration
6067#include <stdlib.h>
6068int
6069main ()
6070{
6071exit (42);
6072  ;
6073  return 0;
6074}
6075_ACEOF
6076rm -f conftest.$ac_objext
6077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078  (eval $ac_compile) 2>conftest.er1
6079  ac_status=$?
6080  grep -v '^ *+' conftest.er1 >conftest.err
6081  rm -f conftest.er1
6082  cat conftest.err >&5
6083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); } &&
6085         { ac_try='test -z "$ac_cxx_werror_flag"
6086                         || test ! -s conftest.err'
6087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088  (eval $ac_try) 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }; } &&
6092         { ac_try='test -s conftest.$ac_objext'
6093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094  (eval $ac_try) 2>&5
6095  ac_status=$?
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); }; }; then
6098  :
6099else
6100  echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103continue
6104fi
6105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106  cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h.  */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h.  */
6112$ac_declaration
6113int
6114main ()
6115{
6116exit (42);
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext
6122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123  (eval $ac_compile) 2>conftest.er1
6124  ac_status=$?
6125  grep -v '^ *+' conftest.er1 >conftest.err
6126  rm -f conftest.er1
6127  cat conftest.err >&5
6128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); } &&
6130         { ac_try='test -z "$ac_cxx_werror_flag"
6131                         || test ! -s conftest.err'
6132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133  (eval $ac_try) 2>&5
6134  ac_status=$?
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); }; } &&
6137         { ac_try='test -s conftest.$ac_objext'
6138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139  (eval $ac_try) 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; }; then
6143  break
6144else
6145  echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148fi
6149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150done
6151rm -f conftest*
6152if test -n "$ac_declaration"; then
6153  echo '#ifdef __cplusplus' >>confdefs.h
6154  echo $ac_declaration      >>confdefs.h
6155  echo '#endif'             >>confdefs.h
6156fi
6157
6158ac_ext=cc
6159ac_cpp='$CXXCPP $CPPFLAGS'
6160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6163
6164depcc="$CXX"  am_compiler_list=
6165
6166echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6168if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6169  echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
6171  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6172  # We make a subdir and do the tests there.  Otherwise we can end up
6173  # making bogus files that we don't know about and never remove.  For
6174  # instance it was reported that on HP-UX the gcc test will end up
6175  # making a dummy file named `D' -- because `-MD' means `put the output
6176  # in D'.
6177  mkdir conftest.dir
6178  # Copy depcomp to subdir because otherwise we won't find it if we're
6179  # using a relative directory.
6180  cp "$am_depcomp" conftest.dir
6181  cd conftest.dir
6182  # We will build objects and dependencies in a subdirectory because
6183  # it helps to detect inapplicable dependency modes.  For instance
6184  # both Tru64's cc and ICC support -MD to output dependencies as a
6185  # side effect of compilation, but ICC will put the dependencies in
6186  # the current directory while Tru64 will put them in the object
6187  # directory.
6188  mkdir sub
6189
6190  am_cv_CXX_dependencies_compiler_type=none
6191  if test "$am_compiler_list" = ""; then
6192     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6193  fi
6194  for depmode in $am_compiler_list; do
6195    # Setup a source with many dependencies, because some compilers
6196    # like to wrap large dependency lists on column 80 (with \), and
6197    # we should not choose a depcomp mode which is confused by this.
6198    #
6199    # We need to recreate these files for each test, as the compiler may
6200    # overwrite some of them when testing with obscure command lines.
6201    # This happens at least with the AIX C compiler.
6202    : > sub/conftest.c
6203    for i in 1 2 3 4 5 6; do
6204      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6205      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6206      # Solaris 8's {/usr,}/bin/sh.
6207      touch sub/conftst$i.h
6208    done
6209    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6210
6211    case $depmode in
6212    nosideeffect)
6213      # after this tag, mechanisms are not by side-effect, so they'll
6214      # only be used when explicitly requested
6215      if test "x$enable_dependency_tracking" = xyes; then
6216        continue
6217      else
6218        break
6219      fi
6220      ;;
6221    none) break ;;
6222    esac
6223    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6224    # mode.  It turns out that the SunPro C++ compiler does not properly
6225    # handle `-M -o', and we need to detect this.
6226    if depmode=$depmode \
6227       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6228       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6229       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6230         >/dev/null 2>conftest.err &&
6231       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6232       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6233       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6234      # icc doesn't choke on unknown options, it will just issue warnings
6235      # or remarks (even with -Werror).  So we grep stderr for any message
6236      # that says an option was ignored or not supported.
6237      # When given -MP, icc 7.0 and 7.1 complain thusly:
6238      #   icc: Command line warning: ignoring option '-M'; no argument required
6239      # The diagnosis changed in icc 8.0:
6240      #   icc: Command line remark: option '-MP' not supported
6241      if (grep 'ignoring option' conftest.err ||
6242          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6243        am_cv_CXX_dependencies_compiler_type=$depmode
6244        break
6245      fi
6246    fi
6247  done
6248
6249  cd ..
6250  rm -rf conftest.dir
6251else
6252  am_cv_CXX_dependencies_compiler_type=none
6253fi
6254
6255fi
6256echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6257echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6258CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6259
6260
6261
6262if
6263  test "x$enable_dependency_tracking" != xno \
6264  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6265  am__fastdepCXX_TRUE=
6266  am__fastdepCXX_FALSE='#'
6267else
6268  am__fastdepCXX_TRUE='#'
6269  am__fastdepCXX_FALSE=
6270fi
6271
6272
6273
6274
6275if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6276    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6277    (test "X$CXX" != "Xg++"))) ; then
6278  ac_ext=cc
6279ac_cpp='$CXXCPP $CPPFLAGS'
6280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6283echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6284echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6285if test -z "$CXXCPP"; then
6286  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6287  echo $ECHO_N "(cached) $ECHO_C" >&6
6288else
6289      # Double quotes because CXXCPP needs to be expanded
6290    for CXXCPP in "$CXX -E" "/lib/cpp"
6291    do
6292      ac_preproc_ok=false
6293for ac_cxx_preproc_warn_flag in '' yes
6294do
6295  # Use a header file that comes with gcc, so configuring glibc
6296  # with a fresh cross-compiler works.
6297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298  # <limits.h> exists even on freestanding compilers.
6299  # On the NeXT, cc -E runs the code through the compiler's parser,
6300  # not just through cpp. "Syntax error" is here to catch this case.
6301  cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h.  */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h.  */
6307#ifdef __STDC__
6308# include <limits.h>
6309#else
6310# include <assert.h>
6311#endif
6312                     Syntax error
6313_ACEOF
6314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316  ac_status=$?
6317  grep -v '^ *+' conftest.er1 >conftest.err
6318  rm -f conftest.er1
6319  cat conftest.err >&5
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); } >/dev/null; then
6322  if test -s conftest.err; then
6323    ac_cpp_err=$ac_cxx_preproc_warn_flag
6324    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6325  else
6326    ac_cpp_err=
6327  fi
6328else
6329  ac_cpp_err=yes
6330fi
6331if test -z "$ac_cpp_err"; then
6332  :
6333else
6334  echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337  # Broken: fails on valid input.
6338continue
6339fi
6340rm -f conftest.err conftest.$ac_ext
6341
6342  # OK, works on sane cases.  Now check whether non-existent headers
6343  # can be detected and how.
6344  cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350#include <ac_nonexistent.h>
6351_ACEOF
6352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } >/dev/null; then
6360  if test -s conftest.err; then
6361    ac_cpp_err=$ac_cxx_preproc_warn_flag
6362    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6363  else
6364    ac_cpp_err=
6365  fi
6366else
6367  ac_cpp_err=yes
6368fi
6369if test -z "$ac_cpp_err"; then
6370  # Broken: success on invalid input.
6371continue
6372else
6373  echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376  # Passes both tests.
6377ac_preproc_ok=:
6378break
6379fi
6380rm -f conftest.err conftest.$ac_ext
6381
6382done
6383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6384rm -f conftest.err conftest.$ac_ext
6385if $ac_preproc_ok; then
6386  break
6387fi
6388
6389    done
6390    ac_cv_prog_CXXCPP=$CXXCPP
6391
6392fi
6393  CXXCPP=$ac_cv_prog_CXXCPP
6394else
6395  ac_cv_prog_CXXCPP=$CXXCPP
6396fi
6397echo "$as_me:$LINENO: result: $CXXCPP" >&5
6398echo "${ECHO_T}$CXXCPP" >&6
6399ac_preproc_ok=false
6400for ac_cxx_preproc_warn_flag in '' yes
6401do
6402  # Use a header file that comes with gcc, so configuring glibc
6403  # with a fresh cross-compiler works.
6404  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6405  # <limits.h> exists even on freestanding compilers.
6406  # On the NeXT, cc -E runs the code through the compiler's parser,
6407  # not just through cpp. "Syntax error" is here to catch this case.
6408  cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h.  */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h.  */
6414#ifdef __STDC__
6415# include <limits.h>
6416#else
6417# include <assert.h>
6418#endif
6419                     Syntax error
6420_ACEOF
6421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6422  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6423  ac_status=$?
6424  grep -v '^ *+' conftest.er1 >conftest.err
6425  rm -f conftest.er1
6426  cat conftest.err >&5
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); } >/dev/null; then
6429  if test -s conftest.err; then
6430    ac_cpp_err=$ac_cxx_preproc_warn_flag
6431    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6432  else
6433    ac_cpp_err=
6434  fi
6435else
6436  ac_cpp_err=yes
6437fi
6438if test -z "$ac_cpp_err"; then
6439  :
6440else
6441  echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444  # Broken: fails on valid input.
6445continue
6446fi
6447rm -f conftest.err conftest.$ac_ext
6448
6449  # OK, works on sane cases.  Now check whether non-existent headers
6450  # can be detected and how.
6451  cat >conftest.$ac_ext <<_ACEOF
6452/* confdefs.h.  */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h.  */
6457#include <ac_nonexistent.h>
6458_ACEOF
6459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6461  ac_status=$?
6462  grep -v '^ *+' conftest.er1 >conftest.err
6463  rm -f conftest.er1
6464  cat conftest.err >&5
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); } >/dev/null; then
6467  if test -s conftest.err; then
6468    ac_cpp_err=$ac_cxx_preproc_warn_flag
6469    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6470  else
6471    ac_cpp_err=
6472  fi
6473else
6474  ac_cpp_err=yes
6475fi
6476if test -z "$ac_cpp_err"; then
6477  # Broken: success on invalid input.
6478continue
6479else
6480  echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5
6482
6483  # Passes both tests.
6484ac_preproc_ok=:
6485break
6486fi
6487rm -f conftest.err conftest.$ac_ext
6488
6489done
6490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6491rm -f conftest.err conftest.$ac_ext
6492if $ac_preproc_ok; then
6493  :
6494else
6495  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6496See \`config.log' for more details." >&5
6497echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6498See \`config.log' for more details." >&2;}
6499   { (exit 1); exit 1; }; }
6500fi
6501
6502ac_ext=cc
6503ac_cpp='$CXXCPP $CPPFLAGS'
6504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6507
6508fi
6509
6510
6511ac_ext=f
6512ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6513ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6515if test -n "$ac_tool_prefix"; then
6516  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6517  do
6518    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6520echo "$as_me:$LINENO: checking for $ac_word" >&5
6521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6522if test "${ac_cv_prog_F77+set}" = set; then
6523  echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525  if test -n "$F77"; then
6526  ac_cv_prog_F77="$F77" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531  IFS=$as_save_IFS
6532  test -z "$as_dir" && as_dir=.
6533  for ac_exec_ext in '' $ac_executable_extensions; do
6534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537    break 2
6538  fi
6539done
6540done
6541
6542fi
6543fi
6544F77=$ac_cv_prog_F77
6545if test -n "$F77"; then
6546  echo "$as_me:$LINENO: result: $F77" >&5
6547echo "${ECHO_T}$F77" >&6
6548else
6549  echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551fi
6552
6553    test -n "$F77" && break
6554  done
6555fi
6556if test -z "$F77"; then
6557  ac_ct_F77=$F77
6558  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6559do
6560  # Extract the first word of "$ac_prog", so it can be a program name with args.
6561set dummy $ac_prog; ac_word=$2
6562echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6565  echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567  if test -n "$ac_ct_F77"; then
6568  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573  IFS=$as_save_IFS
6574  test -z "$as_dir" && as_dir=.
6575  for ac_exec_ext in '' $ac_executable_extensions; do
6576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577    ac_cv_prog_ac_ct_F77="$ac_prog"
6578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579    break 2
6580  fi
6581done
6582done
6583
6584fi
6585fi
6586ac_ct_F77=$ac_cv_prog_ac_ct_F77
6587if test -n "$ac_ct_F77"; then
6588  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6589echo "${ECHO_T}$ac_ct_F77" >&6
6590else
6591  echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593fi
6594
6595  test -n "$ac_ct_F77" && break
6596done
6597
6598  F77=$ac_ct_F77
6599fi
6600
6601
6602# Provide some information about the compiler.
6603echo "$as_me:6603:" \
6604     "checking for Fortran 77 compiler version" >&5
6605ac_compiler=`set X $ac_compile; echo $2`
6606{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6607  (eval $ac_compiler --version </dev/null >&5) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }
6611{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6612  (eval $ac_compiler -v </dev/null >&5) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }
6616{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6617  (eval $ac_compiler -V </dev/null >&5) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }
6621rm -f a.out
6622
6623# If we don't use `.F' as extension, the preprocessor is not run on the
6624# input file.  (Note that this only needs to work for GNU compilers.)
6625ac_save_ext=$ac_ext
6626ac_ext=F
6627echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6628echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6629if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6630  echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632  cat >conftest.$ac_ext <<_ACEOF
6633      program main
6634#ifndef __GNUC__
6635       choke me
6636#endif
6637
6638      end
6639_ACEOF
6640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642  (eval $ac_compile) 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } &&
6649         { ac_try='test -z "$ac_f77_werror_flag"
6650                         || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656         { ac_try='test -s conftest.$ac_objext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  ac_compiler_gnu=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667ac_compiler_gnu=no
6668fi
6669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6671
6672fi
6673echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6674echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6675ac_ext=$ac_save_ext
6676ac_test_FFLAGS=${FFLAGS+set}
6677ac_save_FFLAGS=$FFLAGS
6678FFLAGS=
6679echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6680echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6681if test "${ac_cv_prog_f77_g+set}" = set; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684  FFLAGS=-g
6685cat >conftest.$ac_ext <<_ACEOF
6686      program main
6687
6688      end
6689_ACEOF
6690rm -f conftest.$ac_objext
6691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692  (eval $ac_compile) 2>conftest.er1
6693  ac_status=$?
6694  grep -v '^ *+' conftest.er1 >conftest.err
6695  rm -f conftest.er1
6696  cat conftest.err >&5
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); } &&
6699         { ac_try='test -z "$ac_f77_werror_flag"
6700                         || test ! -s conftest.err'
6701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702  (eval $ac_try) 2>&5
6703  ac_status=$?
6704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); }; } &&
6706         { ac_try='test -s conftest.$ac_objext'
6707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708  (eval $ac_try) 2>&5
6709  ac_status=$?
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); }; }; then
6712  ac_cv_prog_f77_g=yes
6713else
6714  echo "$as_me: failed program was:" >&5
6715sed 's/^/| /' conftest.$ac_ext >&5
6716
6717ac_cv_prog_f77_g=no
6718fi
6719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6720
6721fi
6722echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6723echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6724if test "$ac_test_FFLAGS" = set; then
6725  FFLAGS=$ac_save_FFLAGS
6726elif test $ac_cv_prog_f77_g = yes; then
6727  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6728    FFLAGS="-g -O2"
6729  else
6730    FFLAGS="-g"
6731  fi
6732else
6733  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6734    FFLAGS="-O2"
6735  else
6736    FFLAGS=
6737  fi
6738fi
6739
6740G77=`test $ac_compiler_gnu = yes && echo yes`
6741ac_ext=c
6742ac_cpp='$CPP $CPPFLAGS'
6743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747
6748
6749# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6750
6751# find the maximum length of command line arguments
6752echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6753echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6754if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6755  echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757    i=0
6758  teststring="ABCD"
6759
6760  case $build_os in
6761  msdosdjgpp*)
6762    # On DJGPP, this test can blow up pretty badly due to problems in libc
6763    # (any single argument exceeding 2000 bytes causes a buffer overrun
6764    # during glob expansion).  Even if it were fixed, the result of this
6765    # check would be larger than it should be.
6766    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6767    ;;
6768
6769  gnu*)
6770    # Under GNU Hurd, this test is not required because there is
6771    # no limit to the length of command line arguments.
6772    # Libtool will interpret -1 as no limit whatsoever
6773    lt_cv_sys_max_cmd_len=-1;
6774    ;;
6775
6776  cygwin* | mingw*)
6777    # On Win9x/ME, this test blows up -- it succeeds, but takes
6778    # about 5 minutes as the teststring grows exponentially.
6779    # Worse, since 9x/ME are not pre-emptively multitasking,
6780    # you end up with a "frozen" computer, even though with patience
6781    # the test eventually succeeds (with a max line length of 256k).
6782    # Instead, let's just punt: use the minimum linelength reported by
6783    # all of the supported platforms: 8192 (on NT/2K/XP).
6784    lt_cv_sys_max_cmd_len=8192;
6785    ;;
6786
6787  amigaos*)
6788    # On AmigaOS with pdksh, this test takes hours, literally.
6789    # So we just punt and use a minimum line length of 8192.
6790    lt_cv_sys_max_cmd_len=8192;
6791    ;;
6792
6793  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6794    # This has been around since 386BSD, at least.  Likely further.
6795    if test -x /sbin/sysctl; then
6796      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6797    elif test -x /usr/sbin/sysctl; then
6798      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6799    else
6800      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6801    fi
6802    # And add a safety zone
6803    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6804    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6805    ;;
6806
6807  interix*)
6808    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6809    lt_cv_sys_max_cmd_len=196608
6810    ;;
6811
6812  osf*)
6813    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6814    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6815    # nice to cause kernel panics so lets avoid the loop below.
6816    # First set a reasonable default.
6817    lt_cv_sys_max_cmd_len=16384
6818    #
6819    if test -x /sbin/sysconfig; then
6820      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6821        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6822      esac
6823    fi
6824    ;;
6825  sco3.2v5*)
6826    lt_cv_sys_max_cmd_len=102400
6827    ;;
6828  sysv5* | sco5v6* | sysv4.2uw2*)
6829    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6830    if test -n "$kargmax"; then
6831      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6832    else
6833      lt_cv_sys_max_cmd_len=32768
6834    fi
6835    ;;
6836  *)
6837    # If test is not a shell built-in, we'll probably end up computing a
6838    # maximum length that is only half of the actual maximum length, but
6839    # we can't tell.
6840    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6841    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6842               = "XX$teststring") >/dev/null 2>&1 &&
6843            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6844            lt_cv_sys_max_cmd_len=$new_result &&
6845            test $i != 17 # 1/2 MB should be enough
6846    do
6847      i=`expr $i + 1`
6848      teststring=$teststring$teststring
6849    done
6850    teststring=
6851    # Add a significant safety factor because C++ compilers can tack on massive
6852    # amounts of additional arguments before passing them to the linker.
6853    # It appears as though 1/2 is a usable value.
6854    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6855    ;;
6856  esac
6857
6858fi
6859
6860if test -n $lt_cv_sys_max_cmd_len ; then
6861  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6862echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6863else
6864  echo "$as_me:$LINENO: result: none" >&5
6865echo "${ECHO_T}none" >&6
6866fi
6867
6868
6869
6870
6871# Check for command to grab the raw symbol name followed by C symbol from nm.
6872echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6873echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6874if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877
6878# These are sane defaults that work on at least a few old systems.
6879# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6880
6881# Character class describing NM global symbol codes.
6882symcode='[BCDEGRST]'
6883
6884# Regexp to match symbols that can be accessed directly from C.
6885sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6886
6887# Transform an extracted symbol line into a proper C declaration
6888lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6889
6890# Transform an extracted symbol line into symbol name and symbol address
6891lt_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'"
6892
6893# Define system-specific variables.
6894case $host_os in
6895aix*)
6896  symcode='[BCDT]'
6897  ;;
6898cygwin* | mingw* | pw32*)
6899  symcode='[ABCDGISTW]'
6900  ;;
6901hpux*) # Its linker distinguishes data from code symbols
6902  if test "$host_cpu" = ia64; then
6903    symcode='[ABCDEGRST]'
6904  fi
6905  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906  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'"
6907  ;;
6908linux*)
6909  if test "$host_cpu" = ia64; then
6910    symcode='[ABCDGIRSTW]'
6911    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6912    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'"
6913  fi
6914  ;;
6915irix* | nonstopux*)
6916  symcode='[BCDEGRST]'
6917  ;;
6918osf*)
6919  symcode='[BCDEGQRST]'
6920  ;;
6921solaris*)
6922  symcode='[BDRT]'
6923  ;;
6924sco3.2v5*)
6925  symcode='[DT]'
6926  ;;
6927sysv4.2uw2*)
6928  symcode='[DT]'
6929  ;;
6930sysv5* | sco5v6* | unixware* | OpenUNIX*)
6931  symcode='[ABDT]'
6932  ;;
6933sysv4)
6934  symcode='[DFNSTU]'
6935  ;;
6936esac
6937
6938# Handle CRLF in mingw tool chain
6939opt_cr=
6940case $build_os in
6941mingw*)
6942  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6943  ;;
6944esac
6945
6946# If we're using GNU nm, then use its standard symbol codes.
6947case `$NM -V 2>&1` in
6948*GNU* | *'with BFD'*)
6949  symcode='[ABCDGIRSTW]' ;;
6950esac
6951
6952# Try without a prefix undercore, then with it.
6953for ac_symprfx in "" "_"; do
6954
6955  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956  symxfrm="\\1 $ac_symprfx\\2 \\2"
6957
6958  # Write the raw and C identifiers.
6959  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6960
6961  # Check to see that the pipe works correctly.
6962  pipe_works=no
6963
6964  rm -f conftest*
6965  cat > conftest.$ac_ext <<EOF
6966#ifdef __cplusplus
6967extern "C" {
6968#endif
6969char nm_test_var;
6970void nm_test_func(){}
6971#ifdef __cplusplus
6972}
6973#endif
6974int main(){nm_test_var='a';nm_test_func();return(0);}
6975EOF
6976
6977  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978  (eval $ac_compile) 2>&5
6979  ac_status=$?
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); }; then
6982    # Now try to grab the symbols.
6983    nlist=conftest.nm
6984    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6985  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); } && test -s "$nlist"; then
6989      # Try sorting and uniquifying the output.
6990      if sort "$nlist" | uniq > "$nlist"T; then
6991        mv -f "$nlist"T "$nlist"
6992      else
6993        rm -f "$nlist"T
6994      fi
6995
6996      # Make sure that we snagged all the symbols we need.
6997      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6998        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6999          cat <<EOF > conftest.$ac_ext
7000#ifdef __cplusplus
7001extern "C" {
7002#endif
7003
7004EOF
7005          # Now generate the symbol file.
7006          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7007
7008          cat <<EOF >> conftest.$ac_ext
7009#if defined (__STDC__) && __STDC__
7010# define lt_ptr_t void *
7011#else
7012# define lt_ptr_t char *
7013# define const
7014#endif
7015
7016/* The mapping between symbol names and symbols. */
7017const struct {
7018  const char *name;
7019  lt_ptr_t address;
7020}
7021lt_preloaded_symbols[] =
7022{
7023EOF
7024          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7025          cat <<\EOF >> conftest.$ac_ext
7026  {0, (lt_ptr_t) 0}
7027};
7028
7029#ifdef __cplusplus
7030}
7031#endif
7032EOF
7033          # Now try linking the two files.
7034          mv conftest.$ac_objext conftstm.$ac_objext
7035          lt_save_LIBS="$LIBS"
7036          lt_save_CFLAGS="$CFLAGS"
7037          LIBS="conftstm.$ac_objext"
7038          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7039          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040  (eval $ac_link) 2>&5
7041  ac_status=$?
7042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7044            pipe_works=yes
7045          fi
7046          LIBS="$lt_save_LIBS"
7047          CFLAGS="$lt_save_CFLAGS"
7048        else
7049          echo "cannot find nm_test_func in $nlist" >&5
7050        fi
7051      else
7052        echo "cannot find nm_test_var in $nlist" >&5
7053      fi
7054    else
7055      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7056    fi
7057  else
7058    echo "$progname: failed program was:" >&5
7059    cat conftest.$ac_ext >&5
7060  fi
7061  rm -f conftest* conftst*
7062
7063  # Do not use the global_symbol_pipe unless it works.
7064  if test "$pipe_works" = yes; then
7065    break
7066  else
7067    lt_cv_sys_global_symbol_pipe=
7068  fi
7069done
7070
7071fi
7072
7073if test -z "$lt_cv_sys_global_symbol_pipe"; then
7074  lt_cv_sys_global_symbol_to_cdecl=
7075fi
7076if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7077  echo "$as_me:$LINENO: result: failed" >&5
7078echo "${ECHO_T}failed" >&6
7079else
7080  echo "$as_me:$LINENO: result: ok" >&5
7081echo "${ECHO_T}ok" >&6
7082fi
7083
7084echo "$as_me:$LINENO: checking for objdir" >&5
7085echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7086if test "${lt_cv_objdir+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089  rm -f .libs 2>/dev/null
7090mkdir .libs 2>/dev/null
7091if test -d .libs; then
7092  lt_cv_objdir=.libs
7093else
7094  # MS-DOS does not allow filenames that begin with a dot.
7095  lt_cv_objdir=_libs
7096fi
7097rmdir .libs 2>/dev/null
7098fi
7099echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7100echo "${ECHO_T}$lt_cv_objdir" >&6
7101objdir=$lt_cv_objdir
7102
7103
7104
7105
7106
7107case $host_os in
7108aix3*)
7109  # AIX sometimes has problems with the GCC collect2 program.  For some
7110  # reason, if we set the COLLECT_NAMES environment variable, the problems
7111  # vanish in a puff of smoke.
7112  if test "X${COLLECT_NAMES+set}" != Xset; then
7113    COLLECT_NAMES=
7114    export COLLECT_NAMES
7115  fi
7116  ;;
7117esac
7118
7119# Sed substitution that helps us do robust quoting.  It backslashifies
7120# metacharacters that are still active within double-quoted strings.
7121Xsed='sed -e 1s/^X//'
7122sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7123
7124# Same as above, but do not quote variable references.
7125double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7126
7127# Sed substitution to delay expansion of an escaped shell variable in a
7128# double_quote_subst'ed string.
7129delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7130
7131# Sed substitution to avoid accidental globbing in evaled expressions
7132no_glob_subst='s/\*/\\\*/g'
7133
7134# Constants:
7135rm="rm -f"
7136
7137# Global variables:
7138default_ofile=libtool
7139can_build_shared=yes
7140
7141# All known linkers require a `.a' archive for static linking (except MSVC,
7142# which needs '.lib').
7143libext=a
7144ltmain="$ac_aux_dir/ltmain.sh"
7145ofile="$default_ofile"
7146with_gnu_ld="$lt_cv_prog_gnu_ld"
7147
7148if test -n "$ac_tool_prefix"; then
7149  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7150set dummy ${ac_tool_prefix}ar; ac_word=$2
7151echo "$as_me:$LINENO: checking for $ac_word" >&5
7152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7153if test "${ac_cv_prog_AR+set}" = set; then
7154  echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156  if test -n "$AR"; then
7157  ac_cv_prog_AR="$AR" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162  IFS=$as_save_IFS
7163  test -z "$as_dir" && as_dir=.
7164  for ac_exec_ext in '' $ac_executable_extensions; do
7165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166    ac_cv_prog_AR="${ac_tool_prefix}ar"
7167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168    break 2
7169  fi
7170done
7171done
7172
7173fi
7174fi
7175AR=$ac_cv_prog_AR
7176if test -n "$AR"; then
7177  echo "$as_me:$LINENO: result: $AR" >&5
7178echo "${ECHO_T}$AR" >&6
7179else
7180  echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6
7182fi
7183
7184fi
7185if test -z "$ac_cv_prog_AR"; then
7186  ac_ct_AR=$AR
7187  # Extract the first word of "ar", so it can be a program name with args.
7188set dummy ar; ac_word=$2
7189echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194  if test -n "$ac_ct_AR"; then
7195  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7196else
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202  for ac_exec_ext in '' $ac_executable_extensions; do
7203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204    ac_cv_prog_ac_ct_AR="ar"
7205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209done
7210
7211  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7212fi
7213fi
7214ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215if test -n "$ac_ct_AR"; then
7216  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7217echo "${ECHO_T}$ac_ct_AR" >&6
7218else
7219  echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221fi
7222
7223  AR=$ac_ct_AR
7224else
7225  AR="$ac_cv_prog_AR"
7226fi
7227
7228if test -n "$ac_tool_prefix"; then
7229  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7230set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7231echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233if test "${ac_cv_prog_RANLIB+set}" = set; then
7234  echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236  if test -n "$RANLIB"; then
7237  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244  for ac_exec_ext in '' $ac_executable_extensions; do
7245  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251done
7252
7253fi
7254fi
7255RANLIB=$ac_cv_prog_RANLIB
7256if test -n "$RANLIB"; then
7257  echo "$as_me:$LINENO: result: $RANLIB" >&5
7258echo "${ECHO_T}$RANLIB" >&6
7259else
7260  echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262fi
7263
7264fi
7265if test -z "$ac_cv_prog_RANLIB"; then
7266  ac_ct_RANLIB=$RANLIB
7267  # Extract the first word of "ranlib", so it can be a program name with args.
7268set dummy ranlib; ac_word=$2
7269echo "$as_me:$LINENO: checking for $ac_word" >&5
7270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7272  echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274  if test -n "$ac_ct_RANLIB"; then
7275  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282  for ac_exec_ext in '' $ac_executable_extensions; do
7283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284    ac_cv_prog_ac_ct_RANLIB="ranlib"
7285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289done
7290
7291  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7292fi
7293fi
7294ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7295if test -n "$ac_ct_RANLIB"; then
7296  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7297echo "${ECHO_T}$ac_ct_RANLIB" >&6
7298else
7299  echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301fi
7302
7303  RANLIB=$ac_ct_RANLIB
7304else
7305  RANLIB="$ac_cv_prog_RANLIB"
7306fi
7307
7308if test -n "$ac_tool_prefix"; then
7309  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310set dummy ${ac_tool_prefix}strip; ac_word=$2
7311echo "$as_me:$LINENO: checking for $ac_word" >&5
7312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313if test "${ac_cv_prog_STRIP+set}" = set; then
7314  echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316  if test -n "$STRIP"; then
7317  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324  for ac_exec_ext in '' $ac_executable_extensions; do
7325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331done
7332
7333fi
7334fi
7335STRIP=$ac_cv_prog_STRIP
7336if test -n "$STRIP"; then
7337  echo "$as_me:$LINENO: result: $STRIP" >&5
7338echo "${ECHO_T}$STRIP" >&6
7339else
7340  echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6
7342fi
7343
7344fi
7345if test -z "$ac_cv_prog_STRIP"; then
7346  ac_ct_STRIP=$STRIP
7347  # Extract the first word of "strip", so it can be a program name with args.
7348set dummy strip; ac_word=$2
7349echo "$as_me:$LINENO: checking for $ac_word" >&5
7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7352  echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354  if test -n "$ac_ct_STRIP"; then
7355  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362  for ac_exec_ext in '' $ac_executable_extensions; do
7363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364    ac_cv_prog_ac_ct_STRIP="strip"
7365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369done
7370
7371  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7372fi
7373fi
7374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7375if test -n "$ac_ct_STRIP"; then
7376  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7377echo "${ECHO_T}$ac_ct_STRIP" >&6
7378else
7379  echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
7381fi
7382
7383  STRIP=$ac_ct_STRIP
7384else
7385  STRIP="$ac_cv_prog_STRIP"
7386fi
7387
7388
7389old_CC="$CC"
7390old_CFLAGS="$CFLAGS"
7391
7392# Set sane defaults for various variables
7393test -z "$AR" && AR=ar
7394test -z "$AR_FLAGS" && AR_FLAGS=cru
7395test -z "$AS" && AS=as
7396test -z "$CC" && CC=cc
7397test -z "$LTCC" && LTCC=$CC
7398test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7399test -z "$DLLTOOL" && DLLTOOL=dlltool
7400test -z "$LD" && LD=ld
7401test -z "$LN_S" && LN_S="ln -s"
7402test -z "$MAGIC_CMD" && MAGIC_CMD=file
7403test -z "$NM" && NM=nm
7404test -z "$SED" && SED=sed
7405test -z "$OBJDUMP" && OBJDUMP=objdump
7406test -z "$RANLIB" && RANLIB=:
7407test -z "$STRIP" && STRIP=:
7408test -z "$ac_objext" && ac_objext=o
7409
7410# Determine commands to create old-style static archives.
7411old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7412old_postinstall_cmds='chmod 644 $oldlib'
7413old_postuninstall_cmds=
7414
7415if test -n "$RANLIB"; then
7416  case $host_os in
7417  openbsd*)
7418    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7419    ;;
7420  *)
7421    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7422    ;;
7423  esac
7424  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7425fi
7426
7427for cc_temp in $compiler""; do
7428  case $cc_temp in
7429    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7430    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7431    \-*) ;;
7432    *) break;;
7433  esac
7434done
7435cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7436
7437
7438# Only perform the check for file, if the check method requires it
7439case $deplibs_check_method in
7440file_magic*)
7441  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7442    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7443echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7444if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7445  echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447  case $MAGIC_CMD in
7448[\\/*] |  ?:[\\/]*)
7449  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7450  ;;
7451*)
7452  lt_save_MAGIC_CMD="$MAGIC_CMD"
7453  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7454  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7455  for ac_dir in $ac_dummy; do
7456    IFS="$lt_save_ifs"
7457    test -z "$ac_dir" && ac_dir=.
7458    if test -f $ac_dir/${ac_tool_prefix}file; then
7459      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7460      if test -n "$file_magic_test_file"; then
7461        case $deplibs_check_method in
7462        "file_magic "*)
7463          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7464          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7465          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7466            $EGREP "$file_magic_regex" > /dev/null; then
7467            :
7468          else
7469            cat <<EOF 1>&2
7470
7471*** Warning: the command libtool uses to detect shared libraries,
7472*** $file_magic_cmd, produces output that libtool cannot recognize.
7473*** The result is that libtool may fail to recognize shared libraries
7474*** as such.  This will affect the creation of libtool libraries that
7475*** depend on shared libraries, but programs linked with such libtool
7476*** libraries will work regardless of this problem.  Nevertheless, you
7477*** may want to report the problem to your system manager and/or to
7478*** bug-libtool@gnu.org
7479
7480EOF
7481          fi ;;
7482        esac
7483      fi
7484      break
7485    fi
7486  done
7487  IFS="$lt_save_ifs"
7488  MAGIC_CMD="$lt_save_MAGIC_CMD"
7489  ;;
7490esac
7491fi
7492
7493MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494if test -n "$MAGIC_CMD"; then
7495  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7496echo "${ECHO_T}$MAGIC_CMD" >&6
7497else
7498  echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500fi
7501
7502if test -z "$lt_cv_path_MAGIC_CMD"; then
7503  if test -n "$ac_tool_prefix"; then
7504    echo "$as_me:$LINENO: checking for file" >&5
7505echo $ECHO_N "checking for file... $ECHO_C" >&6
7506if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7507  echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509  case $MAGIC_CMD in
7510[\\/*] |  ?:[\\/]*)
7511  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7512  ;;
7513*)
7514  lt_save_MAGIC_CMD="$MAGIC_CMD"
7515  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517  for ac_dir in $ac_dummy; do
7518    IFS="$lt_save_ifs"
7519    test -z "$ac_dir" && ac_dir=.
7520    if test -f $ac_dir/file; then
7521      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7522      if test -n "$file_magic_test_file"; then
7523        case $deplibs_check_method in
7524        "file_magic "*)
7525          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528            $EGREP "$file_magic_regex" > /dev/null; then
7529            :
7530          else
7531            cat <<EOF 1>&2
7532
7533*** Warning: the command libtool uses to detect shared libraries,
7534*** $file_magic_cmd, produces output that libtool cannot recognize.
7535*** The result is that libtool may fail to recognize shared libraries
7536*** as such.  This will affect the creation of libtool libraries that
7537*** depend on shared libraries, but programs linked with such libtool
7538*** libraries will work regardless of this problem.  Nevertheless, you
7539*** may want to report the problem to your system manager and/or to
7540*** bug-libtool@gnu.org
7541
7542EOF
7543          fi ;;
7544        esac
7545      fi
7546      break
7547    fi
7548  done
7549  IFS="$lt_save_ifs"
7550  MAGIC_CMD="$lt_save_MAGIC_CMD"
7551  ;;
7552esac
7553fi
7554
7555MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556if test -n "$MAGIC_CMD"; then
7557  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7558echo "${ECHO_T}$MAGIC_CMD" >&6
7559else
7560  echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562fi
7563
7564  else
7565    MAGIC_CMD=:
7566  fi
7567fi
7568
7569  fi
7570  ;;
7571esac
7572
7573enable_dlopen=no
7574enable_win32_dll=no
7575
7576# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7577if test "${enable_libtool_lock+set}" = set; then
7578  enableval="$enable_libtool_lock"
7579
7580fi;
7581test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7582
7583
7584# Check whether --with-pic or --without-pic was given.
7585if test "${with_pic+set}" = set; then
7586  withval="$with_pic"
7587  pic_mode="$withval"
7588else
7589  pic_mode=default
7590fi;
7591test -z "$pic_mode" && pic_mode=default
7592
7593# Use C for the default configuration in the libtool script
7594tagname=
7595lt_save_CC="$CC"
7596ac_ext=c
7597ac_cpp='$CPP $CPPFLAGS'
7598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600ac_compiler_gnu=$ac_cv_c_compiler_gnu
7601
7602
7603# Source file extension for C test sources.
7604ac_ext=c
7605
7606# Object file extension for compiled C test sources.
7607objext=o
7608objext=$objext
7609
7610# Code to be used in simple compile tests
7611lt_simple_compile_test_code="int some_variable = 0;\n"
7612
7613# Code to be used in simple link tests
7614lt_simple_link_test_code='int main(){return(0);}\n'
7615
7616
7617# If no C compiler was specified, use CC.
7618LTCC=${LTCC-"$CC"}
7619
7620# If no C compiler flags were specified, use CFLAGS.
7621LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7622
7623# Allow CC to be a program name with arguments.
7624compiler=$CC
7625
7626
7627# save warnings/boilerplate of simple test code
7628ac_outfile=conftest.$ac_objext
7629printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7630eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7631_lt_compiler_boilerplate=`cat conftest.err`
7632$rm conftest*
7633
7634ac_outfile=conftest.$ac_objext
7635printf "$lt_simple_link_test_code" >conftest.$ac_ext
7636eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7637_lt_linker_boilerplate=`cat conftest.err`
7638$rm conftest*
7639
7640
7641## CAVEAT EMPTOR:
7642## There is no encapsulation within the following macros, do not change
7643## the running order or otherwise move them around unless you know exactly
7644## what you are doing...
7645
7646lt_prog_compiler_no_builtin_flag=
7647
7648if test "$GCC" = yes; then
7649  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7650
7651
7652echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7653echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7654if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7655  echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657  lt_cv_prog_compiler_rtti_exceptions=no
7658  ac_outfile=conftest.$ac_objext
7659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7660   lt_compiler_flag="-fno-rtti -fno-exceptions"
7661   # Insert the option either (1) after the last *FLAGS variable, or
7662   # (2) before a word containing "conftest.", or (3) at the end.
7663   # Note that $ac_compile itself does not contain backslashes and begins
7664   # with a dollar sign (not a hyphen), so the echo should work correctly.
7665   # The option is referenced via a variable to avoid confusing sed.
7666   lt_compile=`echo "$ac_compile" | $SED \
7667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669   -e 's:$: $lt_compiler_flag:'`
7670   (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
7671   (eval "$lt_compile" 2>conftest.err)
7672   ac_status=$?
7673   cat conftest.err >&5
7674   echo "$as_me:7674: \$? = $ac_status" >&5
7675   if (exit $ac_status) && test -s "$ac_outfile"; then
7676     # The compiler can only warn and ignore the option if not recognized
7677     # So say no if there are warnings other than the usual output.
7678     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7679     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7680     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7681       lt_cv_prog_compiler_rtti_exceptions=yes
7682     fi
7683   fi
7684   $rm conftest*
7685
7686fi
7687echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7688echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7689
7690if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7691    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7692else
7693    :
7694fi
7695
7696fi
7697
7698lt_prog_compiler_wl=
7699lt_prog_compiler_pic=
7700lt_prog_compiler_static=
7701
7702echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7703echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7704
7705  if test "$GCC" = yes; then
7706    lt_prog_compiler_wl='-Wl,'
7707    lt_prog_compiler_static='-static'
7708
7709    case $host_os in
7710      aix*)
7711      # All AIX code is PIC.
7712      if test "$host_cpu" = ia64; then
7713        # AIX 5 now supports IA64 processor
7714        lt_prog_compiler_static='-Bstatic'
7715      fi
7716      ;;
7717
7718    amigaos*)
7719      # FIXME: we need at least 68020 code to build shared libraries, but
7720      # adding the `-m68020' flag to GCC prevents building anything better,
7721      # like `-m68040'.
7722      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7723      ;;
7724
7725    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7726      # PIC is the default for these OSes.
7727      ;;
7728
7729    mingw* | pw32* | os2*)
7730      # This hack is so that the source file can tell whether it is being
7731      # built for inclusion in a dll (and should export symbols for example).
7732      lt_prog_compiler_pic='-DDLL_EXPORT'
7733      ;;
7734
7735    darwin* | rhapsody*)
7736      # PIC is the default on this platform
7737      # Common symbols not allowed in MH_DYLIB files
7738      lt_prog_compiler_pic='-fno-common'
7739      ;;
7740
7741    interix3*)
7742      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7743      # Instead, we relocate shared libraries at runtime.
7744      ;;
7745
7746    msdosdjgpp*)
7747      # Just because we use GCC doesn't mean we suddenly get shared libraries
7748      # on systems that don't support them.
7749      lt_prog_compiler_can_build_shared=no
7750      enable_shared=no
7751      ;;
7752
7753    sysv4*MP*)
7754      if test -d /usr/nec; then
7755        lt_prog_compiler_pic=-Kconform_pic
7756      fi
7757      ;;
7758
7759    hpux*)
7760      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7761      # not for PA HP-UX.
7762      case $host_cpu in
7763      hppa*64*|ia64*)
7764        # +Z the default
7765        ;;
7766      *)
7767        lt_prog_compiler_pic='-fPIC'
7768        ;;
7769      esac
7770      ;;
7771
7772    *)
7773      lt_prog_compiler_pic='-fPIC'
7774      ;;
7775    esac
7776  else
7777    # PORTME Check for flag to pass linker flags through the system compiler.
7778    case $host_os in
7779    aix*)
7780      lt_prog_compiler_wl='-Wl,'
7781      if test "$host_cpu" = ia64; then
7782        # AIX 5 now supports IA64 processor
7783        lt_prog_compiler_static='-Bstatic'
7784      else
7785        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7786      fi
7787      ;;
7788      darwin*)
7789        # PIC is the default on this platform
7790        # Common symbols not allowed in MH_DYLIB files
7791       case $cc_basename in
7792         xlc*)
7793         lt_prog_compiler_pic='-qnocommon'
7794         lt_prog_compiler_wl='-Wl,'
7795         ;;
7796       esac
7797       ;;
7798
7799    mingw* | pw32* | os2*)
7800      # This hack is so that the source file can tell whether it is being
7801      # built for inclusion in a dll (and should export symbols for example).
7802      lt_prog_compiler_pic='-DDLL_EXPORT'
7803      ;;
7804
7805    hpux9* | hpux10* | hpux11*)
7806      lt_prog_compiler_wl='-Wl,'
7807      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808      # not for PA HP-UX.
7809      case $host_cpu in
7810      hppa*64*|ia64*)
7811        # +Z the default
7812        ;;
7813      *)
7814        lt_prog_compiler_pic='+Z'
7815        ;;
7816      esac
7817      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7818      lt_prog_compiler_static='${wl}-a ${wl}archive'
7819      ;;
7820
7821    irix5* | irix6* | nonstopux*)
7822      lt_prog_compiler_wl='-Wl,'
7823      # PIC (with -KPIC) is the default.
7824      lt_prog_compiler_static='-non_shared'
7825      ;;
7826
7827    newsos6)
7828      lt_prog_compiler_pic='-KPIC'
7829      lt_prog_compiler_static='-Bstatic'
7830      ;;
7831
7832    linux*)
7833      case $cc_basename in
7834      icc* | ecc*)
7835        lt_prog_compiler_wl='-Wl,'
7836        lt_prog_compiler_pic='-KPIC'
7837        lt_prog_compiler_static='-static'
7838        ;;
7839      pgcc* | pgf77* | pgf90* | pgf95*)
7840        # Portland Group compilers (*not* the Pentium gcc compiler,
7841        # which looks to be a dead project)
7842        lt_prog_compiler_wl='-Wl,'
7843        lt_prog_compiler_pic='-fpic'
7844        lt_prog_compiler_static='-Bstatic'
7845        ;;
7846      ccc*)
7847        lt_prog_compiler_wl='-Wl,'
7848        # All Alpha code is PIC.
7849        lt_prog_compiler_static='-non_shared'
7850        ;;
7851      esac
7852      ;;
7853
7854    osf3* | osf4* | osf5*)
7855      lt_prog_compiler_wl='-Wl,'
7856      # All OSF/1 code is PIC.
7857      lt_prog_compiler_static='-non_shared'
7858      ;;
7859
7860    solaris*)
7861      lt_prog_compiler_pic='-KPIC'
7862      lt_prog_compiler_static='-Bstatic'
7863      case $cc_basename in
7864      f77* | f90* | f95*)
7865        lt_prog_compiler_wl='-Qoption ld ';;
7866      *)
7867        lt_prog_compiler_wl='-Wl,';;
7868      esac
7869      ;;
7870
7871    sunos4*)
7872      lt_prog_compiler_wl='-Qoption ld '
7873      lt_prog_compiler_pic='-PIC'
7874      lt_prog_compiler_static='-Bstatic'
7875      ;;
7876
7877    sysv4 | sysv4.2uw2* | sysv4.3*)
7878      lt_prog_compiler_wl='-Wl,'
7879      lt_prog_compiler_pic='-KPIC'
7880      lt_prog_compiler_static='-Bstatic'
7881      ;;
7882
7883    sysv4*MP*)
7884      if test -d /usr/nec ;then
7885        lt_prog_compiler_pic='-Kconform_pic'
7886        lt_prog_compiler_static='-Bstatic'
7887      fi
7888      ;;
7889
7890    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7891      lt_prog_compiler_wl='-Wl,'
7892      lt_prog_compiler_pic='-KPIC'
7893      lt_prog_compiler_static='-Bstatic'
7894      ;;
7895
7896    unicos*)
7897      lt_prog_compiler_wl='-Wl,'
7898      lt_prog_compiler_can_build_shared=no
7899      ;;
7900
7901    uts4*)
7902      lt_prog_compiler_pic='-pic'
7903      lt_prog_compiler_static='-Bstatic'
7904      ;;
7905
7906    *)
7907      lt_prog_compiler_can_build_shared=no
7908      ;;
7909    esac
7910  fi
7911
7912echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7913echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7914
7915#
7916# Check to make sure the PIC flag actually works.
7917#
7918if test -n "$lt_prog_compiler_pic"; then
7919
7920echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7921echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7922if test "${lt_prog_compiler_pic_works+set}" = set; then
7923  echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925  lt_prog_compiler_pic_works=no
7926  ac_outfile=conftest.$ac_objext
7927   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7928   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7929   # Insert the option either (1) after the last *FLAGS variable, or
7930   # (2) before a word containing "conftest.", or (3) at the end.
7931   # Note that $ac_compile itself does not contain backslashes and begins
7932   # with a dollar sign (not a hyphen), so the echo should work correctly.
7933   # The option is referenced via a variable to avoid confusing sed.
7934   lt_compile=`echo "$ac_compile" | $SED \
7935   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7937   -e 's:$: $lt_compiler_flag:'`
7938   (eval echo "\"\$as_me:7938: $lt_compile\"" >&5)
7939   (eval "$lt_compile" 2>conftest.err)
7940   ac_status=$?
7941   cat conftest.err >&5
7942   echo "$as_me:7942: \$? = $ac_status" >&5
7943   if (exit $ac_status) && test -s "$ac_outfile"; then
7944     # The compiler can only warn and ignore the option if not recognized
7945     # So say no if there are warnings other than the usual output.
7946     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7947     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7948     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7949       lt_prog_compiler_pic_works=yes
7950     fi
7951   fi
7952   $rm conftest*
7953
7954fi
7955echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7956echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7957
7958if test x"$lt_prog_compiler_pic_works" = xyes; then
7959    case $lt_prog_compiler_pic in
7960     "" | " "*) ;;
7961     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7962     esac
7963else
7964    lt_prog_compiler_pic=
7965     lt_prog_compiler_can_build_shared=no
7966fi
7967
7968fi
7969case $host_os in
7970  # For platforms which do not support PIC, -DPIC is meaningless:
7971  *djgpp*)
7972    lt_prog_compiler_pic=
7973    ;;
7974  *)
7975    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7976    ;;
7977esac
7978
7979#
7980# Check to make sure the static flag actually works.
7981#
7982wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7983echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7984echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7985if test "${lt_prog_compiler_static_works+set}" = set; then
7986  echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988  lt_prog_compiler_static_works=no
7989   save_LDFLAGS="$LDFLAGS"
7990   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7991   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7992   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7993     # The linker can only warn and ignore the option if not recognized
7994     # So say no if there are warnings
7995     if test -s conftest.err; then
7996       # Append any errors to the config.log.
7997       cat conftest.err 1>&5
7998       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7999       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8000       if diff conftest.exp conftest.er2 >/dev/null; then
8001         lt_prog_compiler_static_works=yes
8002       fi
8003     else
8004       lt_prog_compiler_static_works=yes
8005     fi
8006   fi
8007   $rm conftest*
8008   LDFLAGS="$save_LDFLAGS"
8009
8010fi
8011echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8012echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8013
8014if test x"$lt_prog_compiler_static_works" = xyes; then
8015    :
8016else
8017    lt_prog_compiler_static=
8018fi
8019
8020
8021echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8022echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8023if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8024  echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026  lt_cv_prog_compiler_c_o=no
8027   $rm -r conftest 2>/dev/null
8028   mkdir conftest
8029   cd conftest
8030   mkdir out
8031   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8032
8033   lt_compiler_flag="-o out/conftest2.$ac_objext"
8034   # Insert the option either (1) after the last *FLAGS variable, or
8035   # (2) before a word containing "conftest.", or (3) at the end.
8036   # Note that $ac_compile itself does not contain backslashes and begins
8037   # with a dollar sign (not a hyphen), so the echo should work correctly.
8038   lt_compile=`echo "$ac_compile" | $SED \
8039   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041   -e 's:$: $lt_compiler_flag:'`
8042   (eval echo "\"\$as_me:8042: $lt_compile\"" >&5)
8043   (eval "$lt_compile" 2>out/conftest.err)
8044   ac_status=$?
8045   cat out/conftest.err >&5
8046   echo "$as_me:8046: \$? = $ac_status" >&5
8047   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8048   then
8049     # The compiler can only warn and ignore the option if not recognized
8050     # So say no if there are warnings
8051     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8052     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8053     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8054       lt_cv_prog_compiler_c_o=yes
8055     fi
8056   fi
8057   chmod u+w . 2>&5
8058   $rm conftest*
8059   # SGI C++ compiler will create directory out/ii_files/ for
8060   # template instantiation
8061   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8062   $rm out/* && rmdir out
8063   cd ..
8064   rmdir conftest
8065   $rm conftest*
8066
8067fi
8068echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8069echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8070
8071
8072hard_links="nottested"
8073if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8074  # do not overwrite the value of need_locks provided by the user
8075  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8076echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8077  hard_links=yes
8078  $rm conftest*
8079  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8080  touch conftest.a
8081  ln conftest.a conftest.b 2>&5 || hard_links=no
8082  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8083  echo "$as_me:$LINENO: result: $hard_links" >&5
8084echo "${ECHO_T}$hard_links" >&6
8085  if test "$hard_links" = no; then
8086    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8087echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8088    need_locks=warn
8089  fi
8090else
8091  need_locks=no
8092fi
8093
8094echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8096
8097  runpath_var=
8098  allow_undefined_flag=
8099  enable_shared_with_static_runtimes=no
8100  archive_cmds=
8101  archive_expsym_cmds=
8102  old_archive_From_new_cmds=
8103  old_archive_from_expsyms_cmds=
8104  export_dynamic_flag_spec=
8105  whole_archive_flag_spec=
8106  thread_safe_flag_spec=
8107  hardcode_libdir_flag_spec=
8108  hardcode_libdir_flag_spec_ld=
8109  hardcode_libdir_separator=
8110  hardcode_direct=no
8111  hardcode_minus_L=no
8112  hardcode_shlibpath_var=unsupported
8113  link_all_deplibs=unknown
8114  hardcode_automatic=no
8115  module_cmds=
8116  module_expsym_cmds=
8117  always_export_symbols=no
8118  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8119  # include_expsyms should be a list of space-separated symbols to be *always*
8120  # included in the symbol list
8121  include_expsyms=
8122  # exclude_expsyms can be an extended regexp of symbols to exclude
8123  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8124  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8125  # as well as any symbol that contains `d'.
8126  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8127  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8128  # platforms (ab)use it in PIC code, but their linkers get confused if
8129  # the symbol is explicitly referenced.  Since portable code cannot
8130  # rely on this symbol name, it's probably fine to never include it in
8131  # preloaded symbol tables.
8132  extract_expsyms_cmds=
8133  # Just being paranoid about ensuring that cc_basename is set.
8134  for cc_temp in $compiler""; do
8135  case $cc_temp in
8136    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8137    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8138    \-*) ;;
8139    *) break;;
8140  esac
8141done
8142cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8143
8144  case $host_os in
8145  cygwin* | mingw* | pw32*)
8146    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8147    # When not using gcc, we currently assume that we are using
8148    # Microsoft Visual C++.
8149    if test "$GCC" != yes; then
8150      with_gnu_ld=no
8151    fi
8152    ;;
8153  interix*)
8154    # we just hope/assume this is gcc and not c89 (= MSVC++)
8155    with_gnu_ld=yes
8156    ;;
8157  openbsd*)
8158    with_gnu_ld=no
8159    ;;
8160  esac
8161
8162  ld_shlibs=yes
8163  if test "$with_gnu_ld" = yes; then
8164    # If archive_cmds runs LD, not CC, wlarc should be empty
8165    wlarc='${wl}'
8166
8167    # Set some defaults for GNU ld with shared library support. These
8168    # are reset later if shared libraries are not supported. Putting them
8169    # here allows them to be overridden if necessary.
8170    runpath_var=LD_RUN_PATH
8171    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8172    export_dynamic_flag_spec='${wl}--export-dynamic'
8173    # ancient GNU ld didn't support --whole-archive et. al.
8174    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8175        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8176      else
8177        whole_archive_flag_spec=
8178    fi
8179    supports_anon_versioning=no
8180    case `$LD -v 2>/dev/null` in
8181      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8182      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8183      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8184      *\ 2.11.*) ;; # other 2.11 versions
8185      *) supports_anon_versioning=yes ;;
8186    esac
8187
8188    # See if GNU ld supports shared libraries.
8189    case $host_os in
8190    aix3* | aix4* | aix5*)
8191      # On AIX/PPC, the GNU linker is very broken
8192      if test "$host_cpu" != ia64; then
8193        ld_shlibs=no
8194        cat <<EOF 1>&2
8195
8196*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8197*** to be unable to reliably create shared libraries on AIX.
8198*** Therefore, libtool is disabling shared libraries support.  If you
8199*** really care for shared libraries, you may want to modify your PATH
8200*** so that a non-GNU linker is found, and then restart.
8201
8202EOF
8203      fi
8204      ;;
8205
8206    amigaos*)
8207      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)'
8208      hardcode_libdir_flag_spec='-L$libdir'
8209      hardcode_minus_L=yes
8210
8211      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8212      # that the semantics of dynamic libraries on AmigaOS, at least up
8213      # to version 4, is to share data among multiple programs linked
8214      # with the same dynamic library.  Since this doesn't match the
8215      # behavior of shared libraries on other platforms, we can't use
8216      # them.
8217      ld_shlibs=no
8218      ;;
8219
8220    beos*)
8221      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222        allow_undefined_flag=unsupported
8223        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8224        # support --undefined.  This deserves some investigation.  FIXME
8225        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226      else
8227        ld_shlibs=no
8228      fi
8229      ;;
8230
8231    cygwin* | mingw* | pw32*)
8232      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8233      # as there is no search path for DLLs.
8234      hardcode_libdir_flag_spec='-L$libdir'
8235      allow_undefined_flag=unsupported
8236      always_export_symbols=no
8237      enable_shared_with_static_runtimes=yes
8238      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8239
8240      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8241        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8242        # If the export-symbols file already is a .def file (1st line
8243        # is EXPORTS), use it as is; otherwise, prepend...
8244        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8245          cp $export_symbols $output_objdir/$soname.def;
8246        else
8247          echo EXPORTS > $output_objdir/$soname.def;
8248          cat $export_symbols >> $output_objdir/$soname.def;
8249        fi~
8250        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8251      else
8252        ld_shlibs=no
8253      fi
8254      ;;
8255
8256    interix3*)
8257      hardcode_direct=no
8258      hardcode_shlibpath_var=no
8259      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8260      export_dynamic_flag_spec='${wl}-E'
8261      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8262      # Instead, shared libraries are loaded at an image base (0x10000000 by
8263      # default) and relocated if they conflict, which is a slow very memory
8264      # consuming and fragmenting process.  To avoid this, we pick a random,
8265      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8266      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8267      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8268      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'
8269      ;;
8270
8271    linux*)
8272      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273        tmp_addflag=
8274        case $cc_basename,$host_cpu in
8275        pgcc*)                          # Portland Group C compiler
8276          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'
8277          tmp_addflag=' $pic_flag'
8278          ;;
8279        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8280          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'
8281          tmp_addflag=' $pic_flag -Mnomain' ;;
8282        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8283          tmp_addflag=' -i_dynamic' ;;
8284        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8285          tmp_addflag=' -i_dynamic -nofor_main' ;;
8286        ifc* | ifort*)                  # Intel Fortran compiler
8287          tmp_addflag=' -nofor_main' ;;
8288        esac
8289        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290
8291        if test $supports_anon_versioning = yes; then
8292          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8293  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8294  $echo "local: *; };" >> $output_objdir/$libname.ver~
8295          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8296        fi
8297      else
8298        ld_shlibs=no
8299      fi
8300      ;;
8301
8302    netbsd*)
8303      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8304        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8305        wlarc=
8306      else
8307        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309      fi
8310      ;;
8311
8312    solaris*)
8313      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8314        ld_shlibs=no
8315        cat <<EOF 1>&2
8316
8317*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8318*** create shared libraries on Solaris systems.  Therefore, libtool
8319*** is disabling shared libraries support.  We urge you to upgrade GNU
8320*** binutils to release 2.9.1 or newer.  Another option is to modify
8321*** your PATH or compiler configuration so that the native linker is
8322*** used, and then restart.
8323
8324EOF
8325      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8328      else
8329        ld_shlibs=no
8330      fi
8331      ;;
8332
8333    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8334      case `$LD -v 2>&1` in
8335        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8336        ld_shlibs=no
8337        cat <<_LT_EOF 1>&2
8338
8339*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8340*** reliably create shared libraries on SCO systems.  Therefore, libtool
8341*** is disabling shared libraries support.  We urge you to upgrade GNU
8342*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8343*** your PATH or compiler configuration so that the native linker is
8344*** used, and then restart.
8345
8346_LT_EOF
8347        ;;
8348        *)
8349          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8350            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8351            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8352            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8353          else
8354            ld_shlibs=no
8355          fi
8356        ;;
8357      esac
8358      ;;
8359
8360    sunos4*)
8361      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8362      wlarc=
8363      hardcode_direct=yes
8364      hardcode_shlibpath_var=no
8365      ;;
8366
8367    *)
8368      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8369        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8371      else
8372        ld_shlibs=no
8373      fi
8374      ;;
8375    esac
8376
8377    if test "$ld_shlibs" = no; then
8378      runpath_var=
8379      hardcode_libdir_flag_spec=
8380      export_dynamic_flag_spec=
8381      whole_archive_flag_spec=
8382    fi
8383  else
8384    # PORTME fill in a description of your system's linker (not GNU ld)
8385    case $host_os in
8386    aix3*)
8387      allow_undefined_flag=unsupported
8388      always_export_symbols=yes
8389      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'
8390      # Note: this linker hardcodes the directories in LIBPATH if there
8391      # are no directories specified by -L.
8392      hardcode_minus_L=yes
8393      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8394        # Neither direct hardcoding nor static linking is supported with a
8395        # broken collect2.
8396        hardcode_direct=unsupported
8397      fi
8398      ;;
8399
8400    aix4* | aix5*)
8401      if test "$host_cpu" = ia64; then
8402        # On IA64, the linker does run time linking by default, so we don't
8403        # have to do anything special.
8404        aix_use_runtimelinking=no
8405        exp_sym_flag='-Bexport'
8406        no_entry_flag=""
8407      else
8408        # If we're using GNU nm, then we don't want the "-C" option.
8409        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8410        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8411          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'
8412        else
8413          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'
8414        fi
8415        aix_use_runtimelinking=no
8416
8417        # Test if we are trying to use run time linking or normal
8418        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8419        # need to do runtime linking.
8420        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8421          for ld_flag in $LDFLAGS; do
8422          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8423            aix_use_runtimelinking=yes
8424            break
8425          fi
8426          done
8427          ;;
8428        esac
8429
8430        exp_sym_flag='-bexport'
8431        no_entry_flag='-bnoentry'
8432      fi
8433
8434      # When large executables or shared objects are built, AIX ld can
8435      # have problems creating the table of contents.  If linking a library
8436      # or program results in "error TOC overflow" add -mminimal-toc to
8437      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8438      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8439
8440      archive_cmds=''
8441      hardcode_direct=yes
8442      hardcode_libdir_separator=':'
8443      link_all_deplibs=yes
8444
8445      if test "$GCC" = yes; then
8446        case $host_os in aix4.[012]|aix4.[012].*)
8447        # We only want to do this on AIX 4.2 and lower, the check
8448        # below for broken collect2 doesn't work under 4.3+
8449          collect2name=`${CC} -print-prog-name=collect2`
8450          if test -f "$collect2name" && \
8451           strings "$collect2name" | grep resolve_lib_name >/dev/null
8452          then
8453          # We have reworked collect2
8454          hardcode_direct=yes
8455          else
8456          # We have old collect2
8457          hardcode_direct=unsupported
8458          # It fails to find uninstalled libraries when the uninstalled
8459          # path is not listed in the libpath.  Setting hardcode_minus_L
8460          # to unsupported forces relinking
8461          hardcode_minus_L=yes
8462          hardcode_libdir_flag_spec='-L$libdir'
8463          hardcode_libdir_separator=
8464          fi
8465          ;;
8466        esac
8467        shared_flag='-shared'
8468        if test "$aix_use_runtimelinking" = yes; then
8469          shared_flag="$shared_flag "'${wl}-G'
8470        fi
8471      else
8472        # not using gcc
8473        if test "$host_cpu" = ia64; then
8474        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8475        # chokes on -Wl,-G. The following line is correct:
8476          shared_flag='-G'
8477        else
8478          if test "$aix_use_runtimelinking" = yes; then
8479            shared_flag='${wl}-G'
8480          else
8481            shared_flag='${wl}-bM:SRE'
8482          fi
8483        fi
8484      fi
8485
8486      # It seems that -bexpall does not export symbols beginning with
8487      # underscore (_), so it is better to generate a list of symbols to export.
8488      always_export_symbols=yes
8489      if test "$aix_use_runtimelinking" = yes; then
8490        # Warning - without using the other runtime loading flags (-brtl),
8491        # -berok will link without error, but may produce a broken library.
8492        allow_undefined_flag='-berok'
8493       # Determine the default libpath from the value encoded in an empty executable.
8494       cat >conftest.$ac_ext <<_ACEOF
8495/* confdefs.h.  */
8496_ACEOF
8497cat confdefs.h >>conftest.$ac_ext
8498cat >>conftest.$ac_ext <<_ACEOF
8499/* end confdefs.h.  */
8500
8501int
8502main ()
8503{
8504
8505  ;
8506  return 0;
8507}
8508_ACEOF
8509rm -f conftest.$ac_objext conftest$ac_exeext
8510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8511  (eval $ac_link) 2>conftest.er1
8512  ac_status=$?
8513  grep -v '^ *+' conftest.er1 >conftest.err
8514  rm -f conftest.er1
8515  cat conftest.err >&5
8516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517  (exit $ac_status); } &&
8518         { ac_try='test -z "$ac_c_werror_flag"
8519                         || test ! -s conftest.err'
8520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521  (eval $ac_try) 2>&5
8522  ac_status=$?
8523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524  (exit $ac_status); }; } &&
8525         { ac_try='test -s conftest$ac_exeext'
8526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527  (eval $ac_try) 2>&5
8528  ac_status=$?
8529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530  (exit $ac_status); }; }; then
8531
8532aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8533}'`
8534# Check for a 64-bit object if we didn't find anything.
8535if 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; }
8536}'`; fi
8537else
8538  echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541fi
8542rm -f conftest.err conftest.$ac_objext \
8543      conftest$ac_exeext conftest.$ac_ext
8544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8545
8546       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8547        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"
8548       else
8549        if test "$host_cpu" = ia64; then
8550          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8551          allow_undefined_flag="-z nodefs"
8552          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"
8553        else
8554         # Determine the default libpath from the value encoded in an empty executable.
8555         cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h.  */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h.  */
8561
8562int
8563main ()
8564{
8565
8566  ;
8567  return 0;
8568}
8569_ACEOF
8570rm -f conftest.$ac_objext conftest$ac_exeext
8571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572  (eval $ac_link) 2>conftest.er1
8573  ac_status=$?
8574  grep -v '^ *+' conftest.er1 >conftest.err
8575  rm -f conftest.er1
8576  cat conftest.err >&5
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); } &&
8579         { ac_try='test -z "$ac_c_werror_flag"
8580                         || test ! -s conftest.err'
8581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582  (eval $ac_try) 2>&5
8583  ac_status=$?
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); }; } &&
8586         { ac_try='test -s conftest$ac_exeext'
8587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588  (eval $ac_try) 2>&5
8589  ac_status=$?
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); }; }; then
8592
8593aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8594}'`
8595# Check for a 64-bit object if we didn't find anything.
8596if 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; }
8597}'`; fi
8598else
8599  echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602fi
8603rm -f conftest.err conftest.$ac_objext \
8604      conftest$ac_exeext conftest.$ac_ext
8605if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8606
8607         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8608          # Warning - without using the other run time loading flags,
8609          # -berok will link without error, but may produce a broken library.
8610          no_undefined_flag=' ${wl}-bernotok'
8611          allow_undefined_flag=' ${wl}-berok'
8612          # Exported symbols can be pulled into shared objects from archives
8613          whole_archive_flag_spec='$convenience'
8614          archive_cmds_need_lc=yes
8615          # This is similar to how AIX traditionally builds its shared libraries.
8616          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'
8617        fi
8618      fi
8619      ;;
8620
8621    amigaos*)
8622      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)'
8623      hardcode_libdir_flag_spec='-L$libdir'
8624      hardcode_minus_L=yes
8625      # see comment about different semantics on the GNU ld section
8626      ld_shlibs=no
8627      ;;
8628
8629    bsdi[45]*)
8630      export_dynamic_flag_spec=-rdynamic
8631      ;;
8632
8633    cygwin* | mingw* | pw32*)
8634      # When not using gcc, we currently assume that we are using
8635      # Microsoft Visual C++.
8636      # hardcode_libdir_flag_spec is actually meaningless, as there is
8637      # no search path for DLLs.
8638      hardcode_libdir_flag_spec=' '
8639      allow_undefined_flag=unsupported
8640      # Tell ltmain to make .lib files, not .a files.
8641      libext=lib
8642      # Tell ltmain to make .dll files, not .so files.
8643      shrext_cmds=".dll"
8644      # FIXME: Setting linknames here is a bad hack.
8645      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8646      # The linker will automatically build a .lib file if we build a DLL.
8647      old_archive_From_new_cmds='true'
8648      # FIXME: Should let the user specify the lib program.
8649      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8650      fix_srcfile_path='`cygpath -w "$srcfile"`'
8651      enable_shared_with_static_runtimes=yes
8652      ;;
8653
8654    darwin* | rhapsody*)
8655      case $host_os in
8656        rhapsody* | darwin1.[012])
8657         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8658         ;;
8659       *) # Darwin 1.3 on
8660         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8661           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8662         else
8663           case ${MACOSX_DEPLOYMENT_TARGET} in
8664             10.[012])
8665               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8666               ;;
8667             10.*)
8668               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8669               ;;
8670           esac
8671         fi
8672         ;;
8673      esac
8674      archive_cmds_need_lc=no
8675      hardcode_direct=no
8676      hardcode_automatic=yes
8677      hardcode_shlibpath_var=unsupported
8678      whole_archive_flag_spec=''
8679      link_all_deplibs=yes
8680    if test "$GCC" = yes ; then
8681        output_verbose_link_cmd='echo'
8682        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8683      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8684      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8685      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}'
8686      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}'
8687    else
8688      case $cc_basename in
8689        xlc*)
8690         output_verbose_link_cmd='echo'
8691         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8692         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8693          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8694         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}'
8695          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}'
8696          ;;
8697       *)
8698         ld_shlibs=no
8699          ;;
8700      esac
8701    fi
8702      ;;
8703
8704    dgux*)
8705      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8706      hardcode_libdir_flag_spec='-L$libdir'
8707      hardcode_shlibpath_var=no
8708      ;;
8709
8710    freebsd1*)
8711      ld_shlibs=no
8712      ;;
8713
8714    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8715    # support.  Future versions do this automatically, but an explicit c++rt0.o
8716    # does not break anything, and helps significantly (at the cost of a little
8717    # extra space).
8718    freebsd2.2*)
8719      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8720      hardcode_libdir_flag_spec='-R$libdir'
8721      hardcode_direct=yes
8722      hardcode_shlibpath_var=no
8723      ;;
8724
8725    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8726    freebsd2*)
8727      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8728      hardcode_direct=yes
8729      hardcode_minus_L=yes
8730      hardcode_shlibpath_var=no
8731      ;;
8732
8733    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8734    freebsd* | kfreebsd*-gnu | dragonfly*)
8735      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8736      hardcode_libdir_flag_spec='-R$libdir'
8737      hardcode_direct=yes
8738      hardcode_shlibpath_var=no
8739      ;;
8740
8741    hpux9*)
8742      if test "$GCC" = yes; then
8743        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'
8744      else
8745        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'
8746      fi
8747      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748      hardcode_libdir_separator=:
8749      hardcode_direct=yes
8750
8751      # hardcode_minus_L: Not really in the search PATH,
8752      # but as the default location of the library.
8753      hardcode_minus_L=yes
8754      export_dynamic_flag_spec='${wl}-E'
8755      ;;
8756
8757    hpux10*)
8758      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8759        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8760      else
8761        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8762      fi
8763      if test "$with_gnu_ld" = no; then
8764        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8765        hardcode_libdir_separator=:
8766
8767        hardcode_direct=yes
8768        export_dynamic_flag_spec='${wl}-E'
8769
8770        # hardcode_minus_L: Not really in the search PATH,
8771        # but as the default location of the library.
8772        hardcode_minus_L=yes
8773      fi
8774      ;;
8775
8776    hpux11*)
8777      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8778        case $host_cpu in
8779        hppa*64*)
8780          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8781          ;;
8782        ia64*)
8783          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8784          ;;
8785        *)
8786          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8787          ;;
8788        esac
8789      else
8790        case $host_cpu in
8791        hppa*64*)
8792          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793          ;;
8794        ia64*)
8795          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8796          ;;
8797        *)
8798          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8799          ;;
8800        esac
8801      fi
8802      if test "$with_gnu_ld" = no; then
8803        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804        hardcode_libdir_separator=:
8805
8806        case $host_cpu in
8807        hppa*64*|ia64*)
8808          hardcode_libdir_flag_spec_ld='+b $libdir'
8809          hardcode_direct=no
8810          hardcode_shlibpath_var=no
8811          ;;
8812        *)
8813          hardcode_direct=yes
8814          export_dynamic_flag_spec='${wl}-E'
8815
8816          # hardcode_minus_L: Not really in the search PATH,
8817          # but as the default location of the library.
8818          hardcode_minus_L=yes
8819          ;;
8820        esac
8821      fi
8822      ;;
8823
8824    irix5* | irix6* | nonstopux*)
8825      if test "$GCC" = yes; then
8826        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'
8827      else
8828        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'
8829        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8830      fi
8831      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832      hardcode_libdir_separator=:
8833      link_all_deplibs=yes
8834      ;;
8835
8836    netbsd*)
8837      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8838        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8839      else
8840        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8841      fi
8842      hardcode_libdir_flag_spec='-R$libdir'
8843      hardcode_direct=yes
8844      hardcode_shlibpath_var=no
8845      ;;
8846
8847    newsos6)
8848      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849      hardcode_direct=yes
8850      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8851      hardcode_libdir_separator=:
8852      hardcode_shlibpath_var=no
8853      ;;
8854
8855    openbsd*)
8856      hardcode_direct=yes
8857      hardcode_shlibpath_var=no
8858      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8859        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8860        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8861        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8862        export_dynamic_flag_spec='${wl}-E'
8863      else
8864       case $host_os in
8865         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8866           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8867           hardcode_libdir_flag_spec='-R$libdir'
8868           ;;
8869         *)
8870           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8871           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872           ;;
8873       esac
8874      fi
8875      ;;
8876
8877    os2*)
8878      hardcode_libdir_flag_spec='-L$libdir'
8879      hardcode_minus_L=yes
8880      allow_undefined_flag=unsupported
8881      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'
8882      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8883      ;;
8884
8885    osf3*)
8886      if test "$GCC" = yes; then
8887        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8888        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'
8889      else
8890        allow_undefined_flag=' -expect_unresolved \*'
8891        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'
8892      fi
8893      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894      hardcode_libdir_separator=:
8895      ;;
8896
8897    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8898      if test "$GCC" = yes; then
8899        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8900        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'
8901        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902      else
8903        allow_undefined_flag=' -expect_unresolved \*'
8904        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'
8905        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8906        $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'
8907
8908        # Both c and cxx compiler support -rpath directly
8909        hardcode_libdir_flag_spec='-rpath $libdir'
8910      fi
8911      hardcode_libdir_separator=:
8912      ;;
8913
8914    solaris*)
8915      no_undefined_flag=' -z text'
8916      if test "$GCC" = yes; then
8917        wlarc='${wl}'
8918        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8919        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8920          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8921      else
8922        wlarc=''
8923        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8925        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8926      fi
8927      hardcode_libdir_flag_spec='-R$libdir'
8928      hardcode_shlibpath_var=no
8929      case $host_os in
8930      solaris2.[0-5] | solaris2.[0-5].*) ;;
8931      *)
8932        # The compiler driver will combine linker options so we
8933        # cannot just pass the convience library names through
8934        # without $wl, iff we do not link with $LD.
8935        # Luckily, gcc supports the same syntax we need for Sun Studio.
8936        # Supported since Solaris 2.6 (maybe 2.5.1?)
8937        case $wlarc in
8938        '')
8939          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8940        *)
8941          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' ;;
8942        esac ;;
8943      esac
8944      link_all_deplibs=yes
8945      ;;
8946
8947    sunos4*)
8948      if test "x$host_vendor" = xsequent; then
8949        # Use $CC to link under sequent, because it throws in some extra .o
8950        # files that make .init and .fini sections work.
8951        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8952      else
8953        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8954      fi
8955      hardcode_libdir_flag_spec='-L$libdir'
8956      hardcode_direct=yes
8957      hardcode_minus_L=yes
8958      hardcode_shlibpath_var=no
8959      ;;
8960
8961    sysv4)
8962      case $host_vendor in
8963        sni)
8964          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965          hardcode_direct=yes # is this really true???
8966        ;;
8967        siemens)
8968          ## LD is ld it makes a PLAMLIB
8969          ## CC just makes a GrossModule.
8970          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8971          reload_cmds='$CC -r -o $output$reload_objs'
8972          hardcode_direct=no
8973        ;;
8974        motorola)
8975          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8977        ;;
8978      esac
8979      runpath_var='LD_RUN_PATH'
8980      hardcode_shlibpath_var=no
8981      ;;
8982
8983    sysv4.3*)
8984      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985      hardcode_shlibpath_var=no
8986      export_dynamic_flag_spec='-Bexport'
8987      ;;
8988
8989    sysv4*MP*)
8990      if test -d /usr/nec; then
8991        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992        hardcode_shlibpath_var=no
8993        runpath_var=LD_RUN_PATH
8994        hardcode_runpath_var=yes
8995        ld_shlibs=yes
8996      fi
8997      ;;
8998
8999    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9000      no_undefined_flag='${wl}-z,text'
9001      archive_cmds_need_lc=no
9002      hardcode_shlibpath_var=no
9003      runpath_var='LD_RUN_PATH'
9004
9005      if test "$GCC" = yes; then
9006        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9008      else
9009        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011      fi
9012      ;;
9013
9014    sysv5* | sco3.2v5* | sco5v6*)
9015      # Note: We can NOT use -z defs as we might desire, because we do not
9016      # link with -lc, and that would cause any symbols used from libc to
9017      # always be unresolved, which means just about no library would
9018      # ever link correctly.  If we're not using GNU ld we use -z text
9019      # though, which does catch some bad symbols but isn't as heavy-handed
9020      # as -z defs.
9021      no_undefined_flag='${wl}-z,text'
9022      allow_undefined_flag='${wl}-z,nodefs'
9023      archive_cmds_need_lc=no
9024      hardcode_shlibpath_var=no
9025      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9026      hardcode_libdir_separator=':'
9027      link_all_deplibs=yes
9028      export_dynamic_flag_spec='${wl}-Bexport'
9029      runpath_var='LD_RUN_PATH'
9030
9031      if test "$GCC" = yes; then
9032        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9033        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9034      else
9035        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9036        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037      fi
9038      ;;
9039
9040    uts4*)
9041      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042      hardcode_libdir_flag_spec='-L$libdir'
9043      hardcode_shlibpath_var=no
9044      ;;
9045
9046    *)
9047      ld_shlibs=no
9048      ;;
9049    esac
9050  fi
9051
9052echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9053echo "${ECHO_T}$ld_shlibs" >&6
9054test "$ld_shlibs" = no && can_build_shared=no
9055
9056#
9057# Do we need to explicitly link libc?
9058#
9059case "x$archive_cmds_need_lc" in
9060x|xyes)
9061  # Assume -lc should be added
9062  archive_cmds_need_lc=yes
9063
9064  if test "$enable_shared" = yes && test "$GCC" = yes; then
9065    case $archive_cmds in
9066    *'~'*)
9067      # FIXME: we may have to deal with multi-command sequences.
9068      ;;
9069    '$CC '*)
9070      # Test whether the compiler implicitly links with -lc since on some
9071      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9072      # to ld, don't add -lc before -lgcc.
9073      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9074echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9075      $rm conftest*
9076      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9077
9078      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9079  (eval $ac_compile) 2>&5
9080  ac_status=$?
9081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082  (exit $ac_status); } 2>conftest.err; then
9083        soname=conftest
9084        lib=conftest
9085        libobjs=conftest.$ac_objext
9086        deplibs=
9087        wl=$lt_prog_compiler_wl
9088        pic_flag=$lt_prog_compiler_pic
9089        compiler_flags=-v
9090        linker_flags=-v
9091        verstring=
9092        output_objdir=.
9093        libname=conftest
9094        lt_save_allow_undefined_flag=$allow_undefined_flag
9095        allow_undefined_flag=
9096        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9097  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9098  ac_status=$?
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); }
9101        then
9102          archive_cmds_need_lc=no
9103        else
9104          archive_cmds_need_lc=yes
9105        fi
9106        allow_undefined_flag=$lt_save_allow_undefined_flag
9107      else
9108        cat conftest.err 1>&5
9109      fi
9110      $rm conftest*
9111      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9112echo "${ECHO_T}$archive_cmds_need_lc" >&6
9113      ;;
9114    esac
9115  fi
9116  ;;
9117esac
9118
9119echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9120echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9121library_names_spec=
9122libname_spec='lib$name'
9123soname_spec=
9124shrext_cmds=".so"
9125postinstall_cmds=
9126postuninstall_cmds=
9127finish_cmds=
9128finish_eval=
9129shlibpath_var=
9130shlibpath_overrides_runpath=unknown
9131version_type=none
9132dynamic_linker="$host_os ld.so"
9133sys_lib_dlsearch_path_spec="/lib /usr/lib"
9134if test "$GCC" = yes; then
9135  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9136  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9137    # if the path contains ";" then we assume it to be the separator
9138    # otherwise default to the standard path separator (i.e. ":") - it is
9139    # assumed that no part of a normal pathname contains ";" but that should
9140    # okay in the real world where ";" in dirpaths is itself problematic.
9141    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9142  else
9143    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9144  fi
9145else
9146  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9147fi
9148need_lib_prefix=unknown
9149hardcode_into_libs=no
9150
9151# when you set need_version to no, make sure it does not cause -set_version
9152# flags to be left without arguments
9153need_version=unknown
9154
9155case $host_os in
9156aix3*)
9157  version_type=linux
9158  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9159  shlibpath_var=LIBPATH
9160
9161  # AIX 3 has no versioning support, so we append a major version to the name.
9162  soname_spec='${libname}${release}${shared_ext}$major'
9163  ;;
9164
9165aix4* | aix5*)
9166  version_type=linux
9167  need_lib_prefix=no
9168  need_version=no
9169  hardcode_into_libs=yes
9170  if test "$host_cpu" = ia64; then
9171    # AIX 5 supports IA64
9172    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9173    shlibpath_var=LD_LIBRARY_PATH
9174  else
9175    # With GCC up to 2.95.x, collect2 would create an import file
9176    # for dependence libraries.  The import file would start with
9177    # the line `#! .'.  This would cause the generated library to
9178    # depend on `.', always an invalid library.  This was fixed in
9179    # development snapshots of GCC prior to 3.0.
9180    case $host_os in
9181      aix4 | aix4.[01] | aix4.[01].*)
9182      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9183           echo ' yes '
9184           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9185        :
9186      else
9187        can_build_shared=no
9188      fi
9189      ;;
9190    esac
9191    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9192    # soname into executable. Probably we can add versioning support to
9193    # collect2, so additional links can be useful in future.
9194    if test "$aix_use_runtimelinking" = yes; then
9195      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9196      # instead of lib<name>.a to let people know that these are not
9197      # typical AIX shared libraries.
9198      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199    else
9200      # We preserve .a as extension for shared libraries through AIX4.2
9201      # and later when we are not doing run time linking.
9202      library_names_spec='${libname}${release}.a $libname.a'
9203      soname_spec='${libname}${release}${shared_ext}$major'
9204    fi
9205    shlibpath_var=LIBPATH
9206  fi
9207  ;;
9208
9209amigaos*)
9210  library_names_spec='$libname.ixlibrary $libname.a'
9211  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9212  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'
9213  ;;
9214
9215beos*)
9216  library_names_spec='${libname}${shared_ext}'
9217  dynamic_linker="$host_os ld.so"
9218  shlibpath_var=LIBRARY_PATH
9219  ;;
9220
9221bsdi[45]*)
9222  version_type=linux
9223  need_version=no
9224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225  soname_spec='${libname}${release}${shared_ext}$major'
9226  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9227  shlibpath_var=LD_LIBRARY_PATH
9228  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9229  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9230  # the default ld.so.conf also contains /usr/contrib/lib and
9231  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9232  # libtool to hard-code these into programs
9233  ;;
9234
9235cygwin* | mingw* | pw32*)
9236  version_type=windows
9237  shrext_cmds=".dll"
9238  need_version=no
9239  need_lib_prefix=no
9240
9241  case $GCC,$host_os in
9242  yes,cygwin* | yes,mingw* | yes,pw32*)
9243    library_names_spec='$libname.dll.a'
9244    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9245    postinstall_cmds='base_file=`basename \${file}`~
9246      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9247      dldir=$destdir/`dirname \$dlpath`~
9248      test -d \$dldir || mkdir -p \$dldir~
9249      $install_prog $dir/$dlname \$dldir/$dlname~
9250      chmod a+x \$dldir/$dlname'
9251    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9252      dlpath=$dir/\$dldll~
9253       $rm \$dlpath'
9254    shlibpath_overrides_runpath=yes
9255
9256    case $host_os in
9257    cygwin*)
9258      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9259      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9261      ;;
9262    mingw*)
9263      # MinGW DLLs use traditional 'lib' prefix
9264      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9266      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9267        # It is most probably a Windows format PATH printed by
9268        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9269        # path with ; separators, and with drive letters. We can handle the
9270        # drive letters (cygwin fileutils understands them), so leave them,
9271        # especially as we might pass files found there to a mingw objdump,
9272        # which wouldn't understand a cygwinified path. Ahh.
9273        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9274      else
9275        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9276      fi
9277      ;;
9278    pw32*)
9279      # pw32 DLLs use 'pw' prefix rather than 'lib'
9280      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9281      ;;
9282    esac
9283    ;;
9284
9285  *)
9286    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9287    ;;
9288  esac
9289  dynamic_linker='Win32 ld.exe'
9290  # FIXME: first we should search . and the directory the executable is in
9291  shlibpath_var=PATH
9292  ;;
9293
9294darwin* | rhapsody*)
9295  dynamic_linker="$host_os dyld"
9296  version_type=darwin
9297  need_lib_prefix=no
9298  need_version=no
9299  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9300  soname_spec='${libname}${release}${major}$shared_ext'
9301  shlibpath_overrides_runpath=yes
9302  shlibpath_var=DYLD_LIBRARY_PATH
9303  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9304  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9305  if test "$GCC" = yes; then
9306    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"`
9307  else
9308    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9309  fi
9310  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9311  ;;
9312
9313dgux*)
9314  version_type=linux
9315  need_lib_prefix=no
9316  need_version=no
9317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9318  soname_spec='${libname}${release}${shared_ext}$major'
9319  shlibpath_var=LD_LIBRARY_PATH
9320  ;;
9321
9322freebsd1*)
9323  dynamic_linker=no
9324  ;;
9325
9326kfreebsd*-gnu)
9327  version_type=linux
9328  need_lib_prefix=no
9329  need_version=no
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9331  soname_spec='${libname}${release}${shared_ext}$major'
9332  shlibpath_var=LD_LIBRARY_PATH
9333  shlibpath_overrides_runpath=no
9334  hardcode_into_libs=yes
9335  dynamic_linker='GNU ld.so'
9336  ;;
9337
9338freebsd* | dragonfly*)
9339  # DragonFly does not have aout.  When/if they implement a new
9340  # versioning mechanism, adjust this.
9341  if test -x /usr/bin/objformat; then
9342    objformat=`/usr/bin/objformat`
9343  else
9344    case $host_os in
9345    freebsd[123]*) objformat=aout ;;
9346    *) objformat=elf ;;
9347    esac
9348  fi
9349  version_type=freebsd-$objformat
9350  case $version_type in
9351    freebsd-elf*)
9352      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9353      need_version=no
9354      need_lib_prefix=no
9355      ;;
9356    freebsd-*)
9357      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9358      need_version=yes
9359      ;;
9360  esac
9361  shlibpath_var=LD_LIBRARY_PATH
9362  case $host_os in
9363  freebsd2*)
9364    shlibpath_overrides_runpath=yes
9365    ;;
9366  freebsd3.[01]* | freebsdelf3.[01]*)
9367    shlibpath_overrides_runpath=yes
9368    hardcode_into_libs=yes
9369    ;;
9370  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9371  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9372    shlibpath_overrides_runpath=no
9373    hardcode_into_libs=yes
9374    ;;
9375  freebsd*) # from 4.6 on
9376    shlibpath_overrides_runpath=yes
9377    hardcode_into_libs=yes
9378    ;;
9379  esac
9380  ;;
9381
9382gnu*)
9383  version_type=linux
9384  need_lib_prefix=no
9385  need_version=no
9386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9387  soname_spec='${libname}${release}${shared_ext}$major'
9388  shlibpath_var=LD_LIBRARY_PATH
9389  hardcode_into_libs=yes
9390  ;;
9391
9392hpux9* | hpux10* | hpux11*)
9393  # Give a soname corresponding to the major version so that dld.sl refuses to
9394  # link against other versions.
9395  version_type=sunos
9396  need_lib_prefix=no
9397  need_version=no
9398  case $host_cpu in
9399  ia64*)
9400    shrext_cmds='.so'
9401    hardcode_into_libs=yes
9402    dynamic_linker="$host_os dld.so"
9403    shlibpath_var=LD_LIBRARY_PATH
9404    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406    soname_spec='${libname}${release}${shared_ext}$major'
9407    if test "X$HPUX_IA64_MODE" = X32; then
9408      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9409    else
9410      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9411    fi
9412    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9413    ;;
9414   hppa*64*)
9415     shrext_cmds='.sl'
9416     hardcode_into_libs=yes
9417     dynamic_linker="$host_os dld.sl"
9418     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9419     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9423     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9424     ;;
9425   *)
9426    shrext_cmds='.sl'
9427    dynamic_linker="$host_os dld.sl"
9428    shlibpath_var=SHLIB_PATH
9429    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431    soname_spec='${libname}${release}${shared_ext}$major'
9432    ;;
9433  esac
9434  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9435  postinstall_cmds='chmod 555 $lib'
9436  ;;
9437
9438interix3*)
9439  version_type=linux
9440  need_lib_prefix=no
9441  need_version=no
9442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9443  soname_spec='${libname}${release}${shared_ext}$major'
9444  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  shlibpath_overrides_runpath=no
9447  hardcode_into_libs=yes
9448  ;;
9449
9450irix5* | irix6* | nonstopux*)
9451  case $host_os in
9452    nonstopux*) version_type=nonstopux ;;
9453    *)
9454        if test "$lt_cv_prog_gnu_ld" = yes; then
9455                version_type=linux
9456        else
9457                version_type=irix
9458        fi ;;
9459  esac
9460  need_lib_prefix=no
9461  need_version=no
9462  soname_spec='${libname}${release}${shared_ext}$major'
9463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9464  case $host_os in
9465  irix5* | nonstopux*)
9466    libsuff= shlibsuff=
9467    ;;
9468  *)
9469    case $LD in # libtool.m4 will add one of these switches to LD
9470    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9471      libsuff= shlibsuff= libmagic=32-bit;;
9472    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9473      libsuff=32 shlibsuff=N32 libmagic=N32;;
9474    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9475      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9476    *) libsuff= shlibsuff= libmagic=never-match;;
9477    esac
9478    ;;
9479  esac
9480  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9481  shlibpath_overrides_runpath=no
9482  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9483  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9484  hardcode_into_libs=yes
9485  ;;
9486
9487# No shared lib support for Linux oldld, aout, or coff.
9488linux*oldld* | linux*aout* | linux*coff*)
9489  dynamic_linker=no
9490  ;;
9491
9492# This must be Linux ELF.
9493linux*)
9494  version_type=linux
9495  need_lib_prefix=no
9496  need_version=no
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498  soname_spec='${libname}${release}${shared_ext}$major'
9499  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9500  shlibpath_var=LD_LIBRARY_PATH
9501  shlibpath_overrides_runpath=no
9502  # This implies no fast_install, which is unacceptable.
9503  # Some rework will be needed to allow for fast_install
9504  # before this can be enabled.
9505  hardcode_into_libs=yes
9506
9507  # Append ld.so.conf contents to the search path
9508  if test -f /etc/ld.so.conf; then
9509    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' ' '`
9510    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9511  fi
9512
9513  # We used to test for /lib/ld.so.1 and disable shared libraries on
9514  # powerpc, because MkLinux only supported shared libraries with the
9515  # GNU dynamic linker.  Since this was broken with cross compilers,
9516  # most powerpc-linux boxes support dynamic linking these days and
9517  # people can always --disable-shared, the test was removed, and we
9518  # assume the GNU/Linux dynamic linker is in use.
9519  dynamic_linker='GNU/Linux ld.so'
9520  ;;
9521
9522knetbsd*-gnu)
9523  version_type=linux
9524  need_lib_prefix=no
9525  need_version=no
9526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9527  soname_spec='${libname}${release}${shared_ext}$major'
9528  shlibpath_var=LD_LIBRARY_PATH
9529  shlibpath_overrides_runpath=no
9530  hardcode_into_libs=yes
9531  dynamic_linker='GNU ld.so'
9532  ;;
9533
9534netbsd*)
9535  version_type=sunos
9536  need_lib_prefix=no
9537  need_version=no
9538  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9539    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9541    dynamic_linker='NetBSD (a.out) ld.so'
9542  else
9543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9544    soname_spec='${libname}${release}${shared_ext}$major'
9545    dynamic_linker='NetBSD ld.elf_so'
9546  fi
9547  shlibpath_var=LD_LIBRARY_PATH
9548  shlibpath_overrides_runpath=yes
9549  hardcode_into_libs=yes
9550  ;;
9551
9552newsos6)
9553  version_type=linux
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555  shlibpath_var=LD_LIBRARY_PATH
9556  shlibpath_overrides_runpath=yes
9557  ;;
9558
9559nto-qnx*)
9560  version_type=linux
9561  need_lib_prefix=no
9562  need_version=no
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564  soname_spec='${libname}${release}${shared_ext}$major'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  shlibpath_overrides_runpath=yes
9567  ;;
9568
9569openbsd*)
9570  version_type=sunos
9571  sys_lib_dlsearch_path_spec="/usr/lib"
9572  need_lib_prefix=no
9573  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9574  case $host_os in
9575    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9576    *)                         need_version=no  ;;
9577  esac
9578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9579  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9580  shlibpath_var=LD_LIBRARY_PATH
9581  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9582    case $host_os in
9583      openbsd2.[89] | openbsd2.[89].*)
9584        shlibpath_overrides_runpath=no
9585        ;;
9586      *)
9587        shlibpath_overrides_runpath=yes
9588        ;;
9589      esac
9590  else
9591    shlibpath_overrides_runpath=yes
9592  fi
9593  ;;
9594
9595os2*)
9596  libname_spec='$name'
9597  shrext_cmds=".dll"
9598  need_lib_prefix=no
9599  library_names_spec='$libname${shared_ext} $libname.a'
9600  dynamic_linker='OS/2 ld.exe'
9601  shlibpath_var=LIBPATH
9602  ;;
9603
9604osf3* | osf4* | osf5*)
9605  version_type=osf
9606  need_lib_prefix=no
9607  need_version=no
9608  soname_spec='${libname}${release}${shared_ext}$major'
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610  shlibpath_var=LD_LIBRARY_PATH
9611  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9612  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9613  ;;
9614
9615solaris*)
9616  version_type=linux
9617  need_lib_prefix=no
9618  need_version=no
9619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620  soname_spec='${libname}${release}${shared_ext}$major'
9621  shlibpath_var=LD_LIBRARY_PATH
9622  shlibpath_overrides_runpath=yes
9623  hardcode_into_libs=yes
9624  # ldd complains unless libraries are executable
9625  postinstall_cmds='chmod +x $lib'
9626  ;;
9627
9628sunos4*)
9629  version_type=sunos
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  shlibpath_overrides_runpath=yes
9634  if test "$with_gnu_ld" = yes; then
9635    need_lib_prefix=no
9636  fi
9637  need_version=yes
9638  ;;
9639
9640sysv4 | sysv4.3*)
9641  version_type=linux
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  case $host_vendor in
9646    sni)
9647      shlibpath_overrides_runpath=no
9648      need_lib_prefix=no
9649      export_dynamic_flag_spec='${wl}-Blargedynsym'
9650      runpath_var=LD_RUN_PATH
9651      ;;
9652    siemens)
9653      need_lib_prefix=no
9654      ;;
9655    motorola)
9656      need_lib_prefix=no
9657      need_version=no
9658      shlibpath_overrides_runpath=no
9659      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9660      ;;
9661  esac
9662  ;;
9663
9664sysv4*MP*)
9665  if test -d /usr/nec ;then
9666    version_type=linux
9667    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9668    soname_spec='$libname${shared_ext}.$major'
9669    shlibpath_var=LD_LIBRARY_PATH
9670  fi
9671  ;;
9672
9673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9674  version_type=freebsd-elf
9675  need_lib_prefix=no
9676  need_version=no
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  shlibpath_var=LD_LIBRARY_PATH
9680  hardcode_into_libs=yes
9681  if test "$with_gnu_ld" = yes; then
9682    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9683    shlibpath_overrides_runpath=no
9684  else
9685    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9686    shlibpath_overrides_runpath=yes
9687    case $host_os in
9688      sco3.2v5*)
9689        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9690        ;;
9691    esac
9692  fi
9693  sys_lib_dlsearch_path_spec='/usr/lib'
9694  ;;
9695
9696uts4*)
9697  version_type=linux
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  ;;
9702
9703*)
9704  dynamic_linker=no
9705  ;;
9706esac
9707echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9708echo "${ECHO_T}$dynamic_linker" >&6
9709test "$dynamic_linker" = no && can_build_shared=no
9710
9711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9712if test "$GCC" = yes; then
9713  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9714fi
9715
9716echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9717echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9718hardcode_action=
9719if test -n "$hardcode_libdir_flag_spec" || \
9720   test -n "$runpath_var" || \
9721   test "X$hardcode_automatic" = "Xyes" ; then
9722
9723  # We can hardcode non-existant directories.
9724  if test "$hardcode_direct" != no &&
9725     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9726     # have to relink, otherwise we might link with an installed library
9727     # when we should be linking with a yet-to-be-installed one
9728     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9729     test "$hardcode_minus_L" != no; then
9730    # Linking always hardcodes the temporary library directory.
9731    hardcode_action=relink
9732  else
9733    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9734    hardcode_action=immediate
9735  fi
9736else
9737  # We cannot hardcode anything, or else we can only hardcode existing
9738  # directories.
9739  hardcode_action=unsupported
9740fi
9741echo "$as_me:$LINENO: result: $hardcode_action" >&5
9742echo "${ECHO_T}$hardcode_action" >&6
9743
9744if test "$hardcode_action" = relink; then
9745  # Fast installation is not supported
9746  enable_fast_install=no
9747elif test "$shlibpath_overrides_runpath" = yes ||
9748     test "$enable_shared" = no; then
9749  # Fast installation is not necessary
9750  enable_fast_install=needless
9751fi
9752
9753striplib=
9754old_striplib=
9755echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9756echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9757if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9758  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9759  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9760  echo "$as_me:$LINENO: result: yes" >&5
9761echo "${ECHO_T}yes" >&6
9762else
9763# FIXME - insert some real tests, host_os isn't really good enough
9764  case $host_os in
9765   darwin*)
9766       if test -n "$STRIP" ; then
9767         striplib="$STRIP -x"
9768         echo "$as_me:$LINENO: result: yes" >&5
9769echo "${ECHO_T}yes" >&6
9770       else
9771  echo "$as_me:$LINENO: result: no" >&5
9772echo "${ECHO_T}no" >&6
9773fi
9774       ;;
9775   *)
9776  echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
9778    ;;
9779  esac
9780fi
9781
9782if test "x$enable_dlopen" != xyes; then
9783  enable_dlopen=unknown
9784  enable_dlopen_self=unknown
9785  enable_dlopen_self_static=unknown
9786else
9787  lt_cv_dlopen=no
9788  lt_cv_dlopen_libs=
9789
9790  case $host_os in
9791  beos*)
9792    lt_cv_dlopen="load_add_on"
9793    lt_cv_dlopen_libs=
9794    lt_cv_dlopen_self=yes
9795    ;;
9796
9797  mingw* | pw32*)
9798    lt_cv_dlopen="LoadLibrary"
9799    lt_cv_dlopen_libs=
9800   ;;
9801
9802  cygwin*)
9803    lt_cv_dlopen="dlopen"
9804    lt_cv_dlopen_libs=
9805   ;;
9806
9807  darwin*)
9808  # if libdl is installed we need to link against it
9809    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9810echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9812  echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814  ac_check_lib_save_LIBS=$LIBS
9815LIBS="-ldl  $LIBS"
9816cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h.  */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h.  */
9822
9823/* Override any gcc2 internal prototype to avoid an error.  */
9824#ifdef __cplusplus
9825extern "C"
9826#endif
9827/* We use char because int might match the return type of a gcc2
9828   builtin and then its argument prototype would still apply.  */
9829char dlopen ();
9830int
9831main ()
9832{
9833dlopen ();
9834  ;
9835  return 0;
9836}
9837_ACEOF
9838rm -f conftest.$ac_objext conftest$ac_exeext
9839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840  (eval $ac_link) 2>conftest.er1
9841  ac_status=$?
9842  grep -v '^ *+' conftest.er1 >conftest.err
9843  rm -f conftest.er1
9844  cat conftest.err >&5
9845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846  (exit $ac_status); } &&
9847         { ac_try='test -z "$ac_c_werror_flag"
9848                         || test ! -s conftest.err'
9849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850  (eval $ac_try) 2>&5
9851  ac_status=$?
9852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); }; } &&
9854         { ac_try='test -s conftest$ac_exeext'
9855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856  (eval $ac_try) 2>&5
9857  ac_status=$?
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); }; }; then
9860  ac_cv_lib_dl_dlopen=yes
9861else
9862  echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865ac_cv_lib_dl_dlopen=no
9866fi
9867rm -f conftest.err conftest.$ac_objext \
9868      conftest$ac_exeext conftest.$ac_ext
9869LIBS=$ac_check_lib_save_LIBS
9870fi
9871echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9872echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9873if test $ac_cv_lib_dl_dlopen = yes; then
9874  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9875else
9876
9877    lt_cv_dlopen="dyld"
9878    lt_cv_dlopen_libs=
9879    lt_cv_dlopen_self=yes
9880
9881fi
9882
9883   ;;
9884
9885  *)
9886    echo "$as_me:$LINENO: checking for shl_load" >&5
9887echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9888if test "${ac_cv_func_shl_load+set}" = set; then
9889  echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891  cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h.  */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h.  */
9897/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9898   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9899#define shl_load innocuous_shl_load
9900
9901/* System header to define __stub macros and hopefully few prototypes,
9902    which can conflict with char shl_load (); below.
9903    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904    <limits.h> exists even on freestanding compilers.  */
9905
9906#ifdef __STDC__
9907# include <limits.h>
9908#else
9909# include <assert.h>
9910#endif
9911
9912#undef shl_load
9913
9914/* Override any gcc2 internal prototype to avoid an error.  */
9915#ifdef __cplusplus
9916extern "C"
9917{
9918#endif
9919/* We use char because int might match the return type of a gcc2
9920   builtin and then its argument prototype would still apply.  */
9921char shl_load ();
9922/* The GNU C library defines this for functions which it implements
9923    to always fail with ENOSYS.  Some functions are actually named
9924    something starting with __ and the normal name is an alias.  */
9925#if defined (__stub_shl_load) || defined (__stub___shl_load)
9926choke me
9927#else
9928char (*f) () = shl_load;
9929#endif
9930#ifdef __cplusplus
9931}
9932#endif
9933
9934int
9935main ()
9936{
9937return f != shl_load;
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944  (eval $ac_link) 2>conftest.er1
9945  ac_status=$?
9946  grep -v '^ *+' conftest.er1 >conftest.err
9947  rm -f conftest.er1
9948  cat conftest.err >&5
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); } &&
9951         { ac_try='test -z "$ac_c_werror_flag"
9952                         || test ! -s conftest.err'
9953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954  (eval $ac_try) 2>&5
9955  ac_status=$?
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); }; } &&
9958         { ac_try='test -s conftest$ac_exeext'
9959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960  (eval $ac_try) 2>&5
9961  ac_status=$?
9962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963  (exit $ac_status); }; }; then
9964  ac_cv_func_shl_load=yes
9965else
9966  echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969ac_cv_func_shl_load=no
9970fi
9971rm -f conftest.err conftest.$ac_objext \
9972      conftest$ac_exeext conftest.$ac_ext
9973fi
9974echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9975echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9976if test $ac_cv_func_shl_load = yes; then
9977  lt_cv_dlopen="shl_load"
9978else
9979  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9980echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9981if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9982  echo $ECHO_N "(cached) $ECHO_C" >&6
9983else
9984  ac_check_lib_save_LIBS=$LIBS
9985LIBS="-ldld  $LIBS"
9986cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h.  */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h.  */
9992
9993/* Override any gcc2 internal prototype to avoid an error.  */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997/* We use char because int might match the return type of a gcc2
9998   builtin and then its argument prototype would still apply.  */
9999char shl_load ();
10000int
10001main ()
10002{
10003shl_load ();
10004  ;
10005  return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010  (eval $ac_link) 2>conftest.er1
10011  ac_status=$?
10012  grep -v '^ *+' conftest.er1 >conftest.err
10013  rm -f conftest.er1
10014  cat conftest.err >&5
10015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016  (exit $ac_status); } &&
10017         { ac_try='test -z "$ac_c_werror_flag"
10018                         || test ! -s conftest.err'
10019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020  (eval $ac_try) 2>&5
10021  ac_status=$?
10022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); }; } &&
10024         { ac_try='test -s conftest$ac_exeext'
10025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026  (eval $ac_try) 2>&5
10027  ac_status=$?
10028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029  (exit $ac_status); }; }; then
10030  ac_cv_lib_dld_shl_load=yes
10031else
10032  echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035ac_cv_lib_dld_shl_load=no
10036fi
10037rm -f conftest.err conftest.$ac_objext \
10038      conftest$ac_exeext conftest.$ac_ext
10039LIBS=$ac_check_lib_save_LIBS
10040fi
10041echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10042echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10043if test $ac_cv_lib_dld_shl_load = yes; then
10044  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10045else
10046  echo "$as_me:$LINENO: checking for dlopen" >&5
10047echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10048if test "${ac_cv_func_dlopen+set}" = set; then
10049  echo $ECHO_N "(cached) $ECHO_C" >&6
10050else
10051  cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h.  */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h.  */
10057/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10058   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10059#define dlopen innocuous_dlopen
10060
10061/* System header to define __stub macros and hopefully few prototypes,
10062    which can conflict with char dlopen (); below.
10063    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064    <limits.h> exists even on freestanding compilers.  */
10065
10066#ifdef __STDC__
10067# include <limits.h>
10068#else
10069# include <assert.h>
10070#endif
10071
10072#undef dlopen
10073
10074/* Override any gcc2 internal prototype to avoid an error.  */
10075#ifdef __cplusplus
10076extern "C"
10077{
10078#endif
10079/* We use char because int might match the return type of a gcc2
10080   builtin and then its argument prototype would still apply.  */
10081char dlopen ();
10082/* The GNU C library defines this for functions which it implements
10083    to always fail with ENOSYS.  Some functions are actually named
10084    something starting with __ and the normal name is an alias.  */
10085#if defined (__stub_dlopen) || defined (__stub___dlopen)
10086choke me
10087#else
10088char (*f) () = dlopen;
10089#endif
10090#ifdef __cplusplus
10091}
10092#endif
10093
10094int
10095main ()
10096{
10097return f != dlopen;
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102rm -f conftest.$ac_objext conftest$ac_exeext
10103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104  (eval $ac_link) 2>conftest.er1
10105  ac_status=$?
10106  grep -v '^ *+' conftest.er1 >conftest.err
10107  rm -f conftest.er1
10108  cat conftest.err >&5
10109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110  (exit $ac_status); } &&
10111         { ac_try='test -z "$ac_c_werror_flag"
10112                         || test ! -s conftest.err'
10113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114  (eval $ac_try) 2>&5
10115  ac_status=$?
10116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117  (exit $ac_status); }; } &&
10118         { ac_try='test -s conftest$ac_exeext'
10119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120  (eval $ac_try) 2>&5
10121  ac_status=$?
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); }; }; then
10124  ac_cv_func_dlopen=yes
10125else
10126  echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129ac_cv_func_dlopen=no
10130fi
10131rm -f conftest.err conftest.$ac_objext \
10132      conftest$ac_exeext conftest.$ac_ext
10133fi
10134echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10135echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10136if test $ac_cv_func_dlopen = yes; then
10137  lt_cv_dlopen="dlopen"
10138else
10139  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10140echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10141if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10142  echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144  ac_check_lib_save_LIBS=$LIBS
10145LIBS="-ldl  $LIBS"
10146cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h.  */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h.  */
10152
10153/* Override any gcc2 internal prototype to avoid an error.  */
10154#ifdef __cplusplus
10155extern "C"
10156#endif
10157/* We use char because int might match the return type of a gcc2
10158   builtin and then its argument prototype would still apply.  */
10159char dlopen ();
10160int
10161main ()
10162{
10163dlopen ();
10164  ;
10165  return 0;
10166}
10167_ACEOF
10168rm -f conftest.$ac_objext conftest$ac_exeext
10169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170  (eval $ac_link) 2>conftest.er1
10171  ac_status=$?
10172  grep -v '^ *+' conftest.er1 >conftest.err
10173  rm -f conftest.er1
10174  cat conftest.err >&5
10175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); } &&
10177         { ac_try='test -z "$ac_c_werror_flag"
10178                         || test ! -s conftest.err'
10179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180  (eval $ac_try) 2>&5
10181  ac_status=$?
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); }; } &&
10184         { ac_try='test -s conftest$ac_exeext'
10185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186  (eval $ac_try) 2>&5
10187  ac_status=$?
10188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189  (exit $ac_status); }; }; then
10190  ac_cv_lib_dl_dlopen=yes
10191else
10192  echo "$as_me: failed program was:" >&5
10193sed 's/^/| /' conftest.$ac_ext >&5
10194
10195ac_cv_lib_dl_dlopen=no
10196fi
10197rm -f conftest.err conftest.$ac_objext \
10198      conftest$ac_exeext conftest.$ac_ext
10199LIBS=$ac_check_lib_save_LIBS
10200fi
10201echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10202echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10203if test $ac_cv_lib_dl_dlopen = yes; then
10204  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10205else
10206  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10207echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10208if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10209  echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211  ac_check_lib_save_LIBS=$LIBS
10212LIBS="-lsvld  $LIBS"
10213cat >conftest.$ac_ext <<_ACEOF
10214/* confdefs.h.  */
10215_ACEOF
10216cat confdefs.h >>conftest.$ac_ext
10217cat >>conftest.$ac_ext <<_ACEOF
10218/* end confdefs.h.  */
10219
10220/* Override any gcc2 internal prototype to avoid an error.  */
10221#ifdef __cplusplus
10222extern "C"
10223#endif
10224/* We use char because int might match the return type of a gcc2
10225   builtin and then its argument prototype would still apply.  */
10226char dlopen ();
10227int
10228main ()
10229{
10230dlopen ();
10231  ;
10232  return 0;
10233}
10234_ACEOF
10235rm -f conftest.$ac_objext conftest$ac_exeext
10236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237  (eval $ac_link) 2>conftest.er1
10238  ac_status=$?
10239  grep -v '^ *+' conftest.er1 >conftest.err
10240  rm -f conftest.er1
10241  cat conftest.err >&5
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); } &&
10244         { ac_try='test -z "$ac_c_werror_flag"
10245                         || test ! -s conftest.err'
10246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247  (eval $ac_try) 2>&5
10248  ac_status=$?
10249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250  (exit $ac_status); }; } &&
10251         { ac_try='test -s conftest$ac_exeext'
10252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253  (eval $ac_try) 2>&5
10254  ac_status=$?
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); }; }; then
10257  ac_cv_lib_svld_dlopen=yes
10258else
10259  echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262ac_cv_lib_svld_dlopen=no
10263fi
10264rm -f conftest.err conftest.$ac_objext \
10265      conftest$ac_exeext conftest.$ac_ext
10266LIBS=$ac_check_lib_save_LIBS
10267fi
10268echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10269echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10270if test $ac_cv_lib_svld_dlopen = yes; then
10271  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10272else
10273  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10274echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10275if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10276  echo $ECHO_N "(cached) $ECHO_C" >&6
10277else
10278  ac_check_lib_save_LIBS=$LIBS
10279LIBS="-ldld  $LIBS"
10280cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h.  */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h.  */
10286
10287/* Override any gcc2 internal prototype to avoid an error.  */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291/* We use char because int might match the return type of a gcc2
10292   builtin and then its argument prototype would still apply.  */
10293char dld_link ();
10294int
10295main ()
10296{
10297dld_link ();
10298  ;
10299  return 0;
10300}
10301_ACEOF
10302rm -f conftest.$ac_objext conftest$ac_exeext
10303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304  (eval $ac_link) 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } &&
10311         { ac_try='test -z "$ac_c_werror_flag"
10312                         || test ! -s conftest.err'
10313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314  (eval $ac_try) 2>&5
10315  ac_status=$?
10316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317  (exit $ac_status); }; } &&
10318         { ac_try='test -s conftest$ac_exeext'
10319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320  (eval $ac_try) 2>&5
10321  ac_status=$?
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); }; }; then
10324  ac_cv_lib_dld_dld_link=yes
10325else
10326  echo "$as_me: failed program was:" >&5
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
10329ac_cv_lib_dld_dld_link=no
10330fi
10331rm -f conftest.err conftest.$ac_objext \
10332      conftest$ac_exeext conftest.$ac_ext
10333LIBS=$ac_check_lib_save_LIBS
10334fi
10335echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10336echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10337if test $ac_cv_lib_dld_dld_link = yes; then
10338  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10339fi
10340
10341
10342fi
10343
10344
10345fi
10346
10347
10348fi
10349
10350
10351fi
10352
10353
10354fi
10355
10356    ;;
10357  esac
10358
10359  if test "x$lt_cv_dlopen" != xno; then
10360    enable_dlopen=yes
10361  else
10362    enable_dlopen=no
10363  fi
10364
10365  case $lt_cv_dlopen in
10366  dlopen)
10367    save_CPPFLAGS="$CPPFLAGS"
10368    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10369
10370    save_LDFLAGS="$LDFLAGS"
10371    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10372
10373    save_LIBS="$LIBS"
10374    LIBS="$lt_cv_dlopen_libs $LIBS"
10375
10376    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10377echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10378if test "${lt_cv_dlopen_self+set}" = set; then
10379  echo $ECHO_N "(cached) $ECHO_C" >&6
10380else
10381          if test "$cross_compiling" = yes; then :
10382  lt_cv_dlopen_self=cross
10383else
10384  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10385  lt_status=$lt_dlunknown
10386  cat > conftest.$ac_ext <<EOF
10387#line 10387 "configure"
10388#include "confdefs.h"
10389
10390#if HAVE_DLFCN_H
10391#include <dlfcn.h>
10392#endif
10393
10394#include <stdio.h>
10395
10396#ifdef RTLD_GLOBAL
10397#  define LT_DLGLOBAL           RTLD_GLOBAL
10398#else
10399#  ifdef DL_GLOBAL
10400#    define LT_DLGLOBAL         DL_GLOBAL
10401#  else
10402#    define LT_DLGLOBAL         0
10403#  endif
10404#endif
10405
10406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10407   find out it does not work in some platform. */
10408#ifndef LT_DLLAZY_OR_NOW
10409#  ifdef RTLD_LAZY
10410#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10411#  else
10412#    ifdef DL_LAZY
10413#      define LT_DLLAZY_OR_NOW          DL_LAZY
10414#    else
10415#      ifdef RTLD_NOW
10416#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10417#      else
10418#        ifdef DL_NOW
10419#          define LT_DLLAZY_OR_NOW      DL_NOW
10420#        else
10421#          define LT_DLLAZY_OR_NOW      0
10422#        endif
10423#      endif
10424#    endif
10425#  endif
10426#endif
10427
10428#ifdef __cplusplus
10429extern "C" void exit (int);
10430#endif
10431
10432void fnord() { int i=42;}
10433int main ()
10434{
10435  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10436  int status = $lt_dlunknown;
10437
10438  if (self)
10439    {
10440      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10441      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10442      /* dlclose (self); */
10443    }
10444  else
10445    puts (dlerror ());
10446
10447    exit (status);
10448}
10449EOF
10450  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451  (eval $ac_link) 2>&5
10452  ac_status=$?
10453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10455    (./conftest; exit; ) >&5 2>/dev/null
10456    lt_status=$?
10457    case x$lt_status in
10458      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10459      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10460      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10461    esac
10462  else :
10463    # compilation failed
10464    lt_cv_dlopen_self=no
10465  fi
10466fi
10467rm -fr conftest*
10468
10469
10470fi
10471echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10472echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10473
10474    if test "x$lt_cv_dlopen_self" = xyes; then
10475      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10476      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10477echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10478if test "${lt_cv_dlopen_self_static+set}" = set; then
10479  echo $ECHO_N "(cached) $ECHO_C" >&6
10480else
10481          if test "$cross_compiling" = yes; then :
10482  lt_cv_dlopen_self_static=cross
10483else
10484  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10485  lt_status=$lt_dlunknown
10486  cat > conftest.$ac_ext <<EOF
10487#line 10487 "configure"
10488#include "confdefs.h"
10489
10490#if HAVE_DLFCN_H
10491#include <dlfcn.h>
10492#endif
10493
10494#include <stdio.h>
10495
10496#ifdef RTLD_GLOBAL
10497#  define LT_DLGLOBAL           RTLD_GLOBAL
10498#else
10499#  ifdef DL_GLOBAL
10500#    define LT_DLGLOBAL         DL_GLOBAL
10501#  else
10502#    define LT_DLGLOBAL         0
10503#  endif
10504#endif
10505
10506/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10507   find out it does not work in some platform. */
10508#ifndef LT_DLLAZY_OR_NOW
10509#  ifdef RTLD_LAZY
10510#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10511#  else
10512#    ifdef DL_LAZY
10513#      define LT_DLLAZY_OR_NOW          DL_LAZY
10514#    else
10515#      ifdef RTLD_NOW
10516#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10517#      else
10518#        ifdef DL_NOW
10519#          define LT_DLLAZY_OR_NOW      DL_NOW
10520#        else
10521#          define LT_DLLAZY_OR_NOW      0
10522#        endif
10523#      endif
10524#    endif
10525#  endif
10526#endif
10527
10528#ifdef __cplusplus
10529extern "C" void exit (int);
10530#endif
10531
10532void fnord() { int i=42;}
10533int main ()
10534{
10535  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10536  int status = $lt_dlunknown;
10537
10538  if (self)
10539    {
10540      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10541      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10542      /* dlclose (self); */
10543    }
10544  else
10545    puts (dlerror ());
10546
10547    exit (status);
10548}
10549EOF
10550  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551  (eval $ac_link) 2>&5
10552  ac_status=$?
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10555    (./conftest; exit; ) >&5 2>/dev/null
10556    lt_status=$?
10557    case x$lt_status in
10558      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10559      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10560      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10561    esac
10562  else :
10563    # compilation failed
10564    lt_cv_dlopen_self_static=no
10565  fi
10566fi
10567rm -fr conftest*
10568
10569
10570fi
10571echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10572echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10573    fi
10574
10575    CPPFLAGS="$save_CPPFLAGS"
10576    LDFLAGS="$save_LDFLAGS"
10577    LIBS="$save_LIBS"
10578    ;;
10579  esac
10580
10581  case $lt_cv_dlopen_self in
10582  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10583  *) enable_dlopen_self=unknown ;;
10584  esac
10585
10586  case $lt_cv_dlopen_self_static in
10587  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10588  *) enable_dlopen_self_static=unknown ;;
10589  esac
10590fi
10591
10592
10593# Report which library types will actually be built
10594echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10595echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10596echo "$as_me:$LINENO: result: $can_build_shared" >&5
10597echo "${ECHO_T}$can_build_shared" >&6
10598
10599echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10600echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10601test "$can_build_shared" = "no" && enable_shared=no
10602
10603# On AIX, shared libraries and static libraries use the same namespace, and
10604# are all built from PIC.
10605case $host_os in
10606aix3*)
10607  test "$enable_shared" = yes && enable_static=no
10608  if test -n "$RANLIB"; then
10609    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10610    postinstall_cmds='$RANLIB $lib'
10611  fi
10612  ;;
10613
10614aix4* | aix5*)
10615  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10616    test "$enable_shared" = yes && enable_static=no
10617  fi
10618    ;;
10619esac
10620echo "$as_me:$LINENO: result: $enable_shared" >&5
10621echo "${ECHO_T}$enable_shared" >&6
10622
10623echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10624echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10625# Make sure either enable_shared or enable_static is yes.
10626test "$enable_shared" = yes || enable_static=yes
10627echo "$as_me:$LINENO: result: $enable_static" >&5
10628echo "${ECHO_T}$enable_static" >&6
10629
10630# The else clause should only fire when bootstrapping the
10631# libtool distribution, otherwise you forgot to ship ltmain.sh
10632# with your package, and you will get complaints that there are
10633# no rules to generate ltmain.sh.
10634if test -f "$ltmain"; then
10635  # See if we are running on zsh, and set the options which allow our commands through
10636  # without removal of \ escapes.
10637  if test -n "${ZSH_VERSION+set}" ; then
10638    setopt NO_GLOB_SUBST
10639  fi
10640  # Now quote all the things that may contain metacharacters while being
10641  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10642  # variables and quote the copies for generation of the libtool script.
10643  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10644    SED SHELL STRIP \
10645    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10646    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10647    deplibs_check_method reload_flag reload_cmds need_locks \
10648    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10649    lt_cv_sys_global_symbol_to_c_name_address \
10650    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10651    old_postinstall_cmds old_postuninstall_cmds \
10652    compiler \
10653    CC \
10654    LD \
10655    lt_prog_compiler_wl \
10656    lt_prog_compiler_pic \
10657    lt_prog_compiler_static \
10658    lt_prog_compiler_no_builtin_flag \
10659    export_dynamic_flag_spec \
10660    thread_safe_flag_spec \
10661    whole_archive_flag_spec \
10662    enable_shared_with_static_runtimes \
10663    old_archive_cmds \
10664    old_archive_from_new_cmds \
10665    predep_objects \
10666    postdep_objects \
10667    predeps \
10668    postdeps \
10669    compiler_lib_search_path \
10670    archive_cmds \
10671    archive_expsym_cmds \
10672    postinstall_cmds \
10673    postuninstall_cmds \
10674    old_archive_from_expsyms_cmds \
10675    allow_undefined_flag \
10676    no_undefined_flag \
10677    export_symbols_cmds \
10678    hardcode_libdir_flag_spec \
10679    hardcode_libdir_flag_spec_ld \
10680    hardcode_libdir_separator \
10681    hardcode_automatic \
10682    module_cmds \
10683    module_expsym_cmds \
10684    lt_cv_prog_compiler_c_o \
10685    exclude_expsyms \
10686    include_expsyms; do
10687
10688    case $var in
10689    old_archive_cmds | \
10690    old_archive_from_new_cmds | \
10691    archive_cmds | \
10692    archive_expsym_cmds | \
10693    module_cmds | \
10694    module_expsym_cmds | \
10695    old_archive_from_expsyms_cmds | \
10696    export_symbols_cmds | \
10697    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10698    postinstall_cmds | postuninstall_cmds | \
10699    old_postinstall_cmds | old_postuninstall_cmds | \
10700    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10701      # Double-quote double-evaled strings.
10702      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10703      ;;
10704    *)
10705      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10706      ;;
10707    esac
10708  done
10709
10710  case $lt_echo in
10711  *'\$0 --fallback-echo"')
10712    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10713    ;;
10714  esac
10715
10716cfgfile="${ofile}T"
10717  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10718  $rm -f "$cfgfile"
10719  { echo "$as_me:$LINENO: creating $ofile" >&5
10720echo "$as_me: creating $ofile" >&6;}
10721
10722  cat <<__EOF__ >> "$cfgfile"
10723#! $SHELL
10724
10725# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10726# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10727# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10728#
10729# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10730# Free Software Foundation, Inc.
10731#
10732# This file is part of GNU Libtool:
10733# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10734#
10735# This program is free software; you can redistribute it and/or modify
10736# it under the terms of the GNU General Public License as published by
10737# the Free Software Foundation; either version 2 of the License, or
10738# (at your option) any later version.
10739#
10740# This program is distributed in the hope that it will be useful, but
10741# WITHOUT ANY WARRANTY; without even the implied warranty of
10742# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10743# General Public License for more details.
10744#
10745# You should have received a copy of the GNU General Public License
10746# along with this program; if not, write to the Free Software
10747# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10748#
10749# As a special exception to the GNU General Public License, if you
10750# distribute this file as part of a program that contains a
10751# configuration script generated by Autoconf, you may include it under
10752# the same distribution terms that you use for the rest of that program.
10753
10754# A sed program that does not truncate output.
10755SED=$lt_SED
10756
10757# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10758Xsed="$SED -e 1s/^X//"
10759
10760# The HP-UX ksh and POSIX shell print the target directory to stdout
10761# if CDPATH is set.
10762(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10763
10764# The names of the tagged configurations supported by this script.
10765available_tags=
10766
10767# ### BEGIN LIBTOOL CONFIG
10768