source: ThirdParty/Metis/trunk/configure @ 1724

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

set version number to 'trunk'

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