source: ThirdParty/Metis/trunk/configure @ 3304

Last change on this file since 3304 was 3304, checked in by tkr, 7 years ago

restoring BuildTools/ThirdParty/Metis?/trunk

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