source: ThirdParty/Metis/stable/1.0/configure @ 1282

Last change on this file since 1282 was 1282, checked in by andreasw, 11 years ago

temporarily committing release candidate to stable

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