source: ThirdParty/Metis/trunk/configure @ 1886

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

rerun autotools

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