source: ThirdParty/Metis/releases/1.2.6/configure @ 2981

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

Re-running the autotools

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