source: ThirdParty/Metis/trunk/configure @ 1764

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

restoring BuildTools/ThirdParty/Metis?/trunk

  • Property svn:executable set to *
File size: 701.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMetis trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMetis trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis trunk to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis trunk:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062  --enable-debug-metis compile this project (Metis) with debug options
1063  --enable-doscompile     Under Cygwin, compile so that executables run under
1064                          DOS. Set to mingw to use gcc/g++/ld with
1065                          -mno-cygwin. Set to msvc to use cl/link (or
1066                          icl/link). Default when mentioned: mingw. Default
1067                          when not mentioned: disabled.
1068  --enable-pkg-config     use pkg-config if available (default is yes)
1069  --enable-static[=PKGS]
1070                          build static libraries [default=no]
1071  --disable-dependency-tracking  speeds up one-time build
1072  --enable-dependency-tracking   do not reject slow dependency extractors
1073  --enable-maintainer-mode  enable make rules and dependencies not useful
1074                          (and sometimes confusing) to the casual installer
1075  --enable-shared[=PKGS]
1076                          build shared libraries [default=yes]
1077  --enable-fast-install[=PKGS]
1078                          optimize for fast installation [default=yes]
1079  --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081Optional Packages:
1082  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084  --with-metis-verbosity specify the debug verbosity level for project Metis
1085  --with-metis-checklevel specify the sanity check level for project Metis
1086  --with-coin-instdir     prefix of installation directory for precompiled
1087                          COIN packages
1088  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1089  --with-pic              try to use only PIC/non-PIC objects [default=use
1090                          both]
1091  --with-tags[=TAGS]
1092                          include additional configurations [automatic]
1093
1094Some influential environment variables:
1095  CDEFS       Additional -D flags to be used when compiling C code.
1096  ADD_CFLAGS  Additional C compiler options
1097  DBG_CFLAGS  Debug C compiler options
1098  OPT_CFLAGS  Optimize C compiler options
1099  CC          C compiler command
1100  CFLAGS      C compiler flags
1101  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102              nonstandard directory <lib dir>
1103  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104              headers in a nonstandard directory <include dir>
1105  MPICC       C MPI Compiler
1106  PKG_CONFIG  path to pkg-config utility
1107  CPP         C preprocessor
1108  CXX         C++ compiler command
1109  CXXFLAGS    C++ compiler flags
1110  CXXCPP      C++ preprocessor
1111  F77         Fortran 77 compiler command
1112  FFLAGS      Fortran 77 compiler flags
1113
1114Use these variables to override the choices made by `configure' or to help
1115it to find libraries and programs with nonstandard names/locations.
1116
1117Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1118_ACEOF
1119fi
1120
1121if test "$ac_init_help" = "recursive"; then
1122  # If there are subdirs, report their specific --help.
1123  ac_popdir=`pwd`
1124  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1125    test -d $ac_dir || continue
1126    ac_builddir=.
1127
1128if test "$ac_dir" != .; then
1129  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1130  # A "../" for each directory in $ac_dir_suffix.
1131  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1132else
1133  ac_dir_suffix= ac_top_builddir=
1134fi
1135
1136case $srcdir in
1137  .)  # No --srcdir option.  We are building in place.
1138    ac_srcdir=.
1139    if test -z "$ac_top_builddir"; then
1140       ac_top_srcdir=.
1141    else
1142       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1143    fi ;;
1144  [\\/]* | ?:[\\/]* )  # Absolute path.
1145    ac_srcdir=$srcdir$ac_dir_suffix;
1146    ac_top_srcdir=$srcdir ;;
1147  *) # Relative path.
1148    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1149    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1150esac
1151
1152# Do not use `cd foo && pwd` to compute absolute paths, because
1153# the directories may not exist.
1154case `pwd` in
1155.) ac_abs_builddir="$ac_dir";;
1156*)
1157  case "$ac_dir" in
1158  .) ac_abs_builddir=`pwd`;;
1159  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1160  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1161  esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_builddir=${ac_top_builddir}.;;
1165*)
1166  case ${ac_top_builddir}. in
1167  .) ac_abs_top_builddir=$ac_abs_builddir;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1169  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_srcdir=$ac_srcdir;;
1174*)
1175  case $ac_srcdir in
1176  .) ac_abs_srcdir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1178  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_srcdir=$ac_top_srcdir;;
1183*)
1184  case $ac_top_srcdir in
1185  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1187  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188  esac;;
1189esac
1190
1191    cd $ac_dir
1192    # Check for guested configure; otherwise get Cygnus style configure.
1193    if test -f $ac_srcdir/configure.gnu; then
1194      echo
1195      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1196    elif test -f $ac_srcdir/configure; then
1197      echo
1198      $SHELL $ac_srcdir/configure  --help=recursive
1199    elif test -f $ac_srcdir/configure.ac ||
1200           test -f $ac_srcdir/configure.in; then
1201      echo
1202      $ac_configure --help
1203    else
1204      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205    fi
1206    cd $ac_popdir
1207  done
1208fi
1209
1210test -n "$ac_init_help" && exit 0
1211if $ac_init_version; then
1212  cat <<\_ACEOF
1213ThirdPartyMetis configure trunk
1214generated by GNU Autoconf 2.59
1215
1216Copyright (C) 2003 Free Software Foundation, Inc.
1217This configure script is free software; the Free Software Foundation
1218gives unlimited permission to copy, distribute and modify it.
1219
1220
1221Copyright 2009 International Business Machines and others.
1222All Rights Reserved.
1223This file is part of the open source package Coin which is distributed
1224under the Common Public License.
1225_ACEOF
1226  exit 0
1227fi
1228exec 5>config.log
1229cat >&5 <<_ACEOF
1230This file contains any messages produced by compilers while
1231running configure, to aid debugging if configure makes a mistake.
1232
1233It was created by ThirdPartyMetis $as_me trunk, which was
1234generated by GNU Autoconf 2.59.  Invocation command line was
1235
1236  $ $0 $@
1237
1238_ACEOF
1239{
1240cat <<_ASUNAME
1241## --------- ##
1242## Platform. ##
1243## --------- ##
1244
1245hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1246uname -m = `(uname -m) 2>/dev/null || echo unknown`
1247uname -r = `(uname -r) 2>/dev/null || echo unknown`
1248uname -s = `(uname -s) 2>/dev/null || echo unknown`
1249uname -v = `(uname -v) 2>/dev/null || echo unknown`
1250
1251/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1252/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1253
1254/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1255/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1256/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1257hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1258/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1259/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1260/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1261
1262_ASUNAME
1263
1264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1265for as_dir in $PATH
1266do
1267  IFS=$as_save_IFS
1268  test -z "$as_dir" && as_dir=.
1269  echo "PATH: $as_dir"
1270done
1271
1272} >&5
1273
1274cat >&5 <<_ACEOF
1275
1276
1277## ----------- ##
1278## Core tests. ##
1279## ----------- ##
1280
1281_ACEOF
1282
1283
1284# Keep a trace of the command line.
1285# Strip out --no-create and --no-recursion so they do not pile up.
1286# Strip out --silent because we don't want to record it for future runs.
1287# Also quote any args containing shell meta-characters.
1288# Make two passes to allow for proper duplicate-argument suppression.
1289ac_configure_args=
1290ac_configure_args0=
1291ac_configure_args1=
1292ac_sep=
1293ac_must_keep_next=false
1294for ac_pass in 1 2
1295do
1296  for ac_arg
1297  do
1298    case $ac_arg in
1299    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1300    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301    | -silent | --silent | --silen | --sile | --sil)
1302      continue ;;
1303    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1305    esac
1306    case $ac_pass in
1307    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1308    2)
1309      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1310      if test $ac_must_keep_next = true; then
1311        ac_must_keep_next=false # Got value, back to normal.
1312      else
1313        case $ac_arg in
1314          *=* | --config-cache | -C | -disable-* | --disable-* \
1315          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1316          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1317          | -with-* | --with-* | -without-* | --without-* | --x)
1318            case "$ac_configure_args0 " in
1319              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1320            esac
1321            ;;
1322          -* ) ac_must_keep_next=true ;;
1323        esac
1324      fi
1325      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1326      # Get rid of the leading space.
1327      ac_sep=" "
1328      ;;
1329    esac
1330  done
1331done
1332$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1333$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1334
1335# When interrupted or exit'd, cleanup temporary files, and complete
1336# config.log.  We remove comments because anyway the quotes in there
1337# would cause problems or look ugly.
1338# WARNING: Be sure not to use single quotes in there, as some shells,
1339# such as our DU 5.0 friend, will then `close' the trap.
1340trap 'exit_status=$?
1341  # Save into config.log some information that might help in debugging.
1342  {
1343    echo
1344
1345    cat <<\_ASBOX
1346## ---------------- ##
1347## Cache variables. ##
1348## ---------------- ##
1349_ASBOX
1350    echo
1351    # The following way of writing the cache mishandles newlines in values,
1352{
1353  (set) 2>&1 |
1354    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1355    *ac_space=\ *)
1356      sed -n \
1357        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1358          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359      ;;
1360    *)
1361      sed -n \
1362        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1363      ;;
1364    esac;
1365}
1366    echo
1367
1368    cat <<\_ASBOX
1369## ----------------- ##
1370## Output variables. ##
1371## ----------------- ##
1372_ASBOX
1373    echo
1374    for ac_var in $ac_subst_vars
1375    do
1376      eval ac_val=$`echo $ac_var`
1377      echo "$ac_var='"'"'$ac_val'"'"'"
1378    done | sort
1379    echo
1380
1381    if test -n "$ac_subst_files"; then
1382      cat <<\_ASBOX
1383## ------------- ##
1384## Output files. ##
1385## ------------- ##
1386_ASBOX
1387      echo
1388      for ac_var in $ac_subst_files
1389      do
1390        eval ac_val=$`echo $ac_var`
1391        echo "$ac_var='"'"'$ac_val'"'"'"
1392      done | sort
1393      echo
1394    fi
1395
1396    if test -s confdefs.h; then
1397      cat <<\_ASBOX
1398## ----------- ##
1399## confdefs.h. ##
1400## ----------- ##
1401_ASBOX
1402      echo
1403      sed "/^$/d" confdefs.h | sort
1404      echo
1405    fi
1406    test "$ac_signal" != 0 &&
1407      echo "$as_me: caught signal $ac_signal"
1408    echo "$as_me: exit $exit_status"
1409  } >&5
1410  rm -f core *.core &&
1411  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1412    exit $exit_status
1413     ' 0
1414for ac_signal in 1 2 13 15; do
1415  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1416done
1417ac_signal=0
1418
1419# confdefs.h avoids OS command line length limits that DEFS can exceed.
1420rm -rf conftest* confdefs.h
1421# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1422echo >confdefs.h
1423
1424# Predefined preprocessor variables.
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_NAME "$PACKAGE_NAME"
1428_ACEOF
1429
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1433_ACEOF
1434
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_VERSION "$PACKAGE_VERSION"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_STRING "$PACKAGE_STRING"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1448_ACEOF
1449
1450
1451# Let the site file select an alternate cache file if it wants to.
1452# Prefer explicitly selected file to automatically selected ones.
1453if test -z "$CONFIG_SITE"; then
1454  if test "x$prefix" != xNONE; then
1455    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1456  else
1457    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458  fi
1459fi
1460for ac_site_file in $CONFIG_SITE; do
1461  if test -r "$ac_site_file"; then
1462    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1463echo "$as_me: loading site script $ac_site_file" >&6;}
1464    sed 's/^/| /' "$ac_site_file" >&5
1465    . "$ac_site_file"
1466  fi
1467done
1468
1469if test -r "$cache_file"; then
1470  # Some versions of bash will fail to source /dev/null (special
1471  # files actually), so we avoid doing that.
1472  if test -f "$cache_file"; then
1473    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1474echo "$as_me: loading cache $cache_file" >&6;}
1475    case $cache_file in
1476      [\\/]* | ?:[\\/]* ) . $cache_file;;
1477      *)                      . ./$cache_file;;
1478    esac
1479  fi
1480else
1481  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1482echo "$as_me: creating cache $cache_file" >&6;}
1483  >$cache_file
1484fi
1485
1486# Check that the precious variables saved in the cache have kept the same
1487# value.
1488ac_cache_corrupted=false
1489for ac_var in `(set) 2>&1 |
1490               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1491  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1492  eval ac_new_set=\$ac_env_${ac_var}_set
1493  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1494  eval ac_new_val="\$ac_env_${ac_var}_value"
1495  case $ac_old_set,$ac_new_set in
1496    set,)
1497      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1498echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1499      ac_cache_corrupted=: ;;
1500    ,set)
1501      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1502echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1503      ac_cache_corrupted=: ;;
1504    ,);;
1505    *)
1506      if test "x$ac_old_val" != "x$ac_new_val"; then
1507        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1510echo "$as_me:   former value:  $ac_old_val" >&2;}
1511        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1512echo "$as_me:   current value: $ac_new_val" >&2;}
1513        ac_cache_corrupted=:
1514      fi;;
1515  esac
1516  # Pass precious variables to config.status.
1517  if test "$ac_new_set" = set; then
1518    case $ac_new_val in
1519    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521    *) ac_arg=$ac_var=$ac_new_val ;;
1522    esac
1523    case " $ac_configure_args " in
1524      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1525      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1526    esac
1527  fi
1528done
1529if $ac_cache_corrupted; then
1530  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1531echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1532  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1533echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1534   { (exit 1); exit 1; }; }
1535fi
1536
1537ac_ext=c
1538ac_cpp='$CPP $CPPFLAGS'
1539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572# List one file in the package so that the configure script can test
1573# whether the package is actually there
1574
1575
1576# Where should everything be installed by default?  Here, we want it
1577# to be installed directly in 'bin', 'lib', 'include' subdirectories
1578# of the directory where configure is run.  The default would be
1579# /usr/local.
1580
1581
1582# Initialize the ADDLIBS variable
1583ADDLIBS="-lm $LIBS"
1584
1585
1586# Initialize the PCADDLIBS variable.
1587# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1588# In certain cases, it may contain more flags than the ADDLIBS variable.
1589PCADDLIBS=""
1590
1591
1592# As backup, we make sure we don't loose an FLIBS if it has been set
1593# by the user
1594save_FLIBS="$FLIBS"
1595
1596# Initialize the FADDLIBS variable (which is to be used with a fortran
1597# compiler and will not include FLIBS)
1598FADDLIBS="$LIBS"
1599
1600
1601# A useful makefile conditional that is always false
1602
1603
1604if false; then
1605  ALWAYS_FALSE_TRUE=
1606  ALWAYS_FALSE_FALSE='#'
1607else
1608  ALWAYS_FALSE_TRUE='#'
1609  ALWAYS_FALSE_FALSE=
1610fi
1611
1612
1613# We set the following variable so that we know later in AC_COIN_FINALIZE
1614# that we are in a project main directory
1615coin_projectdir=yes
1616
1617# Set the project's version number
1618if test "xMetis" != x; then
1619
1620cat >>confdefs.h <<_ACEOF
1621#define METIS_VERSION "$PACKAGE_VERSION"
1622_ACEOF
1623
1624fi
1625
1626# Set the project's SVN revision number. The complicated sed expression
1627# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1628# as a single number.
1629# Extract the first word of "svnversion", so it can be a program name with args.
1630set dummy svnversion; ac_word=$2
1631echo "$as_me:$LINENO: checking for $ac_word" >&5
1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_have_svnversion+set}" = set; then
1634  echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636  if test -n "$have_svnversion"; then
1637  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1638else
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642  IFS=$as_save_IFS
1643  test -z "$as_dir" && as_dir=.
1644  for ac_exec_ext in '' $ac_executable_extensions; do
1645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646    ac_cv_prog_have_svnversion="yes"
1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648    break 2
1649  fi
1650done
1651done
1652
1653  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1654fi
1655fi
1656have_svnversion=$ac_cv_prog_have_svnversion
1657if test -n "$have_svnversion"; then
1658  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1659echo "${ECHO_T}$have_svnversion" >&6
1660else
1661  echo "$as_me:$LINENO: result: no" >&5
1662echo "${ECHO_T}no" >&6
1663fi
1664
1665if test "x$have_svnversion" = xyes && test "xMetis" != x; then
1666
1667  svn_rev_tmp=`cd $srcdir/$coin_has_metis ; svnversion`
1668  METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1669  if test $METIS_SVN_REV != exported; then
1670
1671cat >>confdefs.h <<_ACEOF
1672#define METIS_SVN_REV $METIS_SVN_REV
1673_ACEOF
1674
1675  fi
1676fi
1677
1678# Capture libtool library version, if given.
1679
1680
1681
1682#############################################################################
1683#                         Standard build tool stuff                         #
1684#############################################################################
1685
1686# Get the system type
1687ac_aux_dir=
1688for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1689  if test -f $ac_dir/install-sh; then
1690    ac_aux_dir=$ac_dir
1691    ac_install_sh="$ac_aux_dir/install-sh -c"
1692    break
1693  elif test -f $ac_dir/install.sh; then
1694    ac_aux_dir=$ac_dir
1695    ac_install_sh="$ac_aux_dir/install.sh -c"
1696    break
1697  elif test -f $ac_dir/shtool; then
1698    ac_aux_dir=$ac_dir
1699    ac_install_sh="$ac_aux_dir/shtool install -c"
1700    break
1701  fi
1702done
1703if test -z "$ac_aux_dir"; then
1704  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1705echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1706   { (exit 1); exit 1; }; }
1707fi
1708ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1709ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1710ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1711
1712# Make sure we can run config.sub.
1713$ac_config_sub sun4 >/dev/null 2>&1 ||
1714  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1715echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1716   { (exit 1); exit 1; }; }
1717
1718echo "$as_me:$LINENO: checking build system type" >&5
1719echo $ECHO_N "checking build system type... $ECHO_C" >&6
1720if test "${ac_cv_build+set}" = set; then
1721  echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723  ac_cv_build_alias=$build_alias
1724test -z "$ac_cv_build_alias" &&
1725  ac_cv_build_alias=`$ac_config_guess`
1726test -z "$ac_cv_build_alias" &&
1727  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1728echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1729   { (exit 1); exit 1; }; }
1730ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1731  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1732echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1733   { (exit 1); exit 1; }; }
1734
1735fi
1736echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1737echo "${ECHO_T}$ac_cv_build" >&6
1738build=$ac_cv_build
1739build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1740build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1741build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1742
1743
1744
1745#turn off warnings and pedantic mode since they could make trouble on some platforms,
1746#and we couldn't fix them anyway
1747coin_skip_warn_cflags=yes
1748coin_skip_warn_fflags=yes
1749
1750# Check if user wants to produce debugging code
1751
1752echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1753echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1754
1755# Check whether --enable-debug or --disable-debug was given.
1756if test "${enable_debug+set}" = set; then
1757  enableval="$enable_debug"
1758  case "${enableval}" in
1759   yes) coin_debug_compile=true
1760        if test "${enable_shared+set}" = set; then :; else
1761          enable_shared=no
1762        fi
1763        ;;
1764   no)  coin_debug_compile=false
1765        ;;
1766   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1767echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1768   { (exit 1); exit 1; }; }
1769        ;;
1770esac
1771else
1772  coin_debug_compile=false
1773fi;
1774
1775# Check whether --enable-debug-metis or --disable-debug-metis was given.
1776if test "${enable_debug_metis+set}" = set; then
1777  enableval="$enable_debug_metis"
1778  case "${enableval}" in
1779    yes) coin_debug_compile=true
1780         enable_shared=no
1781         ;;
1782    no)  coin_debug_compile=false
1783         ;;
1784    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1785echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1786   { (exit 1); exit 1; }; }
1787         ;;
1788 esac
1789else
1790  :
1791fi;
1792
1793 # m4_ifvaln([Metis],
1794
1795if test $coin_debug_compile = true; then
1796  echo "$as_me:$LINENO: result: yes" >&5
1797echo "${ECHO_T}yes" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803
1804# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1805if test "${with_metis_verbosity+set}" = set; then
1806  withval="$with_metis_verbosity"
1807  if test "$withval" = yes; then
1808                withval=1
1809              fi
1810              coin_metis_verbosity=$withval
1811else
1812  coin_metis_verbosity=0
1813fi;
1814
1815cat >>confdefs.h <<_ACEOF
1816#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1817_ACEOF
1818
1819
1820
1821# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1822if test "${with_metis_checklevel+set}" = set; then
1823  withval="$with_metis_checklevel"
1824  if test "$withval" = yes; then
1825                withval=1
1826              fi
1827              coin_metis_checklevel=$withval
1828else
1829  coin_metis_checklevel=0
1830fi;
1831
1832cat >>confdefs.h <<_ACEOF
1833#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1834_ACEOF
1835
1836
1837# We use the following variable to have a string with the upper case
1838# version of the project name
1839COIN_PRJCT=METIS
1840
1841
1842 # m4_ifvaln([Metis],
1843
1844
1845
1846# Get the name of the C compiler
1847case $build in
1848  *-mingw*)
1849    if test "${LD+set}" = set; then :; else
1850      LD=link
1851    fi
1852    ;;
1853 esac
1854 case $enable_doscompile in
1855   msvc)
1856     if test "x${LD+set}" = xset; then :; else
1857       LD=link
1858     fi
1859     ;;
1860 esac
1861
1862
1863 # Check whether --enable-doscompile or --disable-doscompile was given.
1864if test "${enable_doscompile+set}" = set; then
1865  enableval="$enable_doscompile"
1866  if test "$enable_doscompile" != no; then
1867     case $build in
1868       *-cygwin* | *-mingw*) ;;
1869       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1870echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1871   { (exit 1); exit 1; }; } ;;
1872     esac
1873   fi
1874else
1875  enable_doscompile=no
1876fi;
1877 case "$enable_doscompile" in
1878   mingw)
1879     case $build in
1880       *-mingw*) enable_doscompile=no ;;
1881     esac
1882     ;;
1883   msvc|no) ;;
1884   yes) enable_doscompile=mingw ;;
1885   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1886                    Try configure --help=recursive." >&5
1887echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1888                    Try configure --help=recursive." >&2;}
1889   { (exit 1); exit 1; }; }
1890      ;;
1891  esac
1892  if test "$enable_doscompile" != no ; then
1893    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1894echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1895  fi
1896
1897
1898
1899
1900ac_ext=c
1901ac_cpp='$CPP $CPPFLAGS'
1902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905
1906
1907# For consistency, we set the C compiler to the same value of the C++
1908# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1909if test x"$CXX" != x; then
1910  case "$CXX" in
1911    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1912      if test x"$CC" = x; then
1913        CC="$CXX"
1914        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1915echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1916      fi
1917      ;;
1918  esac
1919fi
1920
1921
1922
1923
1924
1925
1926coin_has_cc=yes
1927
1928save_cflags="$CFLAGS"
1929
1930# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1931# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1932# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1933# compiler. In this case, put cc after gcc.
1934
1935case $build in
1936  *-cygwin* | *-mingw*)
1937             if test "$enable_doscompile" = msvc ; then
1938               comps="icl cl"
1939             else
1940               comps="gcc cl"
1941             fi ;;
1942  *-*-solaris*)
1943             # Extract the first word of "cc", so it can be a program name with args.
1944set dummy cc; ac_word=$2
1945echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1948  echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950  if test -n "$sol_cc_compiler"; then
1951  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1952else
1953  ac_prog_rejected=no
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1962       ac_prog_rejected=yes
1963       continue
1964     fi
1965    ac_cv_prog_sol_cc_compiler="cc"
1966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967    break 2
1968  fi
1969done
1970done
1971
1972if test $ac_prog_rejected = yes; then
1973  # We found a bogon in the path, so make sure we never use it.
1974  set dummy $ac_cv_prog_sol_cc_compiler
1975  shift
1976  if test $# != 0; then
1977    # We chose a different compiler from the bogus one.
1978    # However, it has the same basename, so the bogon will be chosen
1979    # first if we set sol_cc_compiler to just the basename; use the full file name.
1980    shift
1981    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1982  fi
1983fi
1984fi
1985fi
1986sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1987if test -n "$sol_cc_compiler"; then
1988  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1989echo "${ECHO_T}$sol_cc_compiler" >&6
1990else
1991  echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
1993fi
1994
1995             if test "$sol_cc_compiler" = "cc" ; then
1996               comps="cc xlc gcc pgcc icc"
1997             else
1998               comps="xlc gcc pgcc icc cc"
1999             fi
2000             ;;
2001  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2002  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2003esac
2004
2005# We delete the cached value, since the test might not have been
2006# performed with our choice of compilers earlier
2007$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2008# AC_MSG_NOTICE([C compiler candidates: $comps])
2009ac_ext=c
2010ac_cpp='$CPP $CPPFLAGS'
2011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014if test -n "$ac_tool_prefix"; then
2015  for ac_prog in $comps
2016  do
2017    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_CC+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$CC"; then
2025  ac_cv_prog_CC="$CC" # Let the user override the test.
2026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030  IFS=$as_save_IFS
2031  test -z "$as_dir" && as_dir=.
2032  for ac_exec_ext in '' $ac_executable_extensions; do
2033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036    break 2
2037  fi
2038done
2039done
2040
2041fi
2042fi
2043CC=$ac_cv_prog_CC
2044if test -n "$CC"; then
2045  echo "$as_me:$LINENO: result: $CC" >&5
2046echo "${ECHO_T}$CC" >&6
2047else
2048  echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6
2050fi
2051
2052    test -n "$CC" && break
2053  done
2054fi
2055if test -z "$CC"; then
2056  ac_ct_CC=$CC
2057  for ac_prog in $comps
2058do
2059  # Extract the first word of "$ac_prog", so it can be a program name with args.
2060set dummy $ac_prog; ac_word=$2
2061echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064  echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066  if test -n "$ac_ct_CC"; then
2067  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068else
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072  IFS=$as_save_IFS
2073  test -z "$as_dir" && as_dir=.
2074  for ac_exec_ext in '' $ac_executable_extensions; do
2075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076    ac_cv_prog_ac_ct_CC="$ac_prog"
2077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078    break 2
2079  fi
2080done
2081done
2082
2083fi
2084fi
2085ac_ct_CC=$ac_cv_prog_ac_ct_CC
2086if test -n "$ac_ct_CC"; then
2087  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088echo "${ECHO_T}$ac_ct_CC" >&6
2089else
2090  echo "$as_me:$LINENO: result: no" >&5
2091echo "${ECHO_T}no" >&6
2092fi
2093
2094  test -n "$ac_ct_CC" && break
2095done
2096
2097  CC=$ac_ct_CC
2098fi
2099
2100
2101test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102See \`config.log' for more details." >&5
2103echo "$as_me: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&2;}
2105   { (exit 1); exit 1; }; }
2106
2107# Provide some information about the compiler.
2108echo "$as_me:$LINENO:" \
2109     "checking for C compiler version" >&5
2110ac_compiler=`set X $ac_compile; echo $2`
2111{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2112  (eval $ac_compiler --version </dev/null >&5) 2>&5
2113  ac_status=$?
2114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115  (exit $ac_status); }
2116{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2117  (eval $ac_compiler -v </dev/null >&5) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); }
2121{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2122  (eval $ac_compiler -V </dev/null >&5) 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }
2126
2127cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h.  */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h.  */
2133
2134int
2135main ()
2136{
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142ac_clean_files_save=$ac_clean_files
2143ac_clean_files="$ac_clean_files a.out a.exe b.out"
2144# Try to create an executable without -o first, disregard a.out.
2145# It will help us diagnose broken compilers, and finding out an intuition
2146# of exeext.
2147echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2149ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2151  (eval $ac_link_default) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }; then
2155  # Find the output, starting from the most likely.  This scheme is
2156# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2157# resort.
2158
2159# Be careful to initialize this variable, since it used to be cached.
2160# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2161ac_cv_exeext=
2162# b.out is created by i960 compilers.
2163for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164do
2165  test -f "$ac_file" || continue
2166  case $ac_file in
2167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168        ;;
2169    conftest.$ac_ext )
2170        # This is the source file.
2171        ;;
2172    [ab].out )
2173        # We found the default executable, but exeext='' is most
2174        # certainly right.
2175        break;;
2176    *.* )
2177        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178        # FIXME: I believe we export ac_cv_exeext for Libtool,
2179        # but it would be cool to find out if it's true.  Does anybody
2180        # maintain Libtool? --akim.
2181        export ac_cv_exeext
2182        break;;
2183    * )
2184        break;;
2185  esac
2186done
2187else
2188  echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2192See \`config.log' for more details." >&5
2193echo "$as_me: error: C compiler cannot create executables
2194See \`config.log' for more details." >&2;}
2195   { (exit 77); exit 77; }; }
2196fi
2197
2198ac_exeext=$ac_cv_exeext
2199echo "$as_me:$LINENO: result: $ac_file" >&5
2200echo "${ECHO_T}$ac_file" >&6
2201
2202# Check the compiler produces executables we can run.  If not, either
2203# the compiler is broken, or we cross compile.
2204echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2205echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2206# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2207# If not cross compiling, check that we can run a simple program.
2208if test "$cross_compiling" != yes; then
2209  if { ac_try='./$ac_file'
2210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211  (eval $ac_try) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; }; then
2215    cross_compiling=no
2216  else
2217    if test "$cross_compiling" = maybe; then
2218        cross_compiling=yes
2219    else
2220        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221If you meant to cross compile, use \`--host'.
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: cannot run C compiled programs.
2224If you meant to cross compile, use \`--host'.
2225See \`config.log' for more details." >&2;}
2226   { (exit 1); exit 1; }; }
2227    fi
2228  fi
2229fi
2230echo "$as_me:$LINENO: result: yes" >&5
2231echo "${ECHO_T}yes" >&6
2232
2233rm -f a.out a.exe conftest$ac_cv_exeext b.out
2234ac_clean_files=$ac_clean_files_save
2235# Check the compiler produces executables we can run.  If not, either
2236# the compiler is broken, or we cross compile.
2237echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2239echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240echo "${ECHO_T}$cross_compiling" >&6
2241
2242echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2245  (eval $ac_link) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; then
2249  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2250# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2251# work properly (i.e., refer to `conftest.exe'), while it won't with
2252# `rm'.
2253for ac_file in conftest.exe conftest conftest.*; do
2254  test -f "$ac_file" || continue
2255  case $ac_file in
2256    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2257    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258          export ac_cv_exeext
2259          break;;
2260    * ) break;;
2261  esac
2262done
2263else
2264  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2265See \`config.log' for more details." >&5
2266echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2267See \`config.log' for more details." >&2;}
2268   { (exit 1); exit 1; }; }
2269fi
2270
2271rm -f conftest$ac_cv_exeext
2272echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2273echo "${ECHO_T}$ac_cv_exeext" >&6
2274
2275rm -f conftest.$ac_ext
2276EXEEXT=$ac_cv_exeext
2277ac_exeext=$EXEEXT
2278echo "$as_me:$LINENO: checking for suffix of object files" >&5
2279echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2280if test "${ac_cv_objext+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h.  */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h.  */
2289
2290int
2291main ()
2292{
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298rm -f conftest.o conftest.obj
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; then
2304  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305  case $ac_file in
2306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2308       break;;
2309  esac
2310done
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316See \`config.log' for more details." >&5
2317echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318See \`config.log' for more details." >&2;}
2319   { (exit 1); exit 1; }; }
2320fi
2321
2322rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325echo "${ECHO_T}$ac_cv_objext" >&6
2326OBJEXT=$ac_cv_objext
2327ac_objext=$OBJEXT
2328echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339
2340int
2341main ()
2342{
2343#ifndef __GNUC__
2344       choke me
2345#endif
2346
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351rm -f conftest.$ac_objext
2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353  (eval $ac_compile) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } &&
2360         { ac_try='test -z "$ac_c_werror_flag"
2361                         || test ! -s conftest.err'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; } &&
2367         { ac_try='test -s conftest.$ac_objext'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373  ac_compiler_gnu=yes
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378ac_compiler_gnu=no
2379fi
2380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382
2383fi
2384echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2385echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2386GCC=`test $ac_compiler_gnu = yes && echo yes`
2387ac_test_CFLAGS=${CFLAGS+set}
2388ac_save_CFLAGS=$CFLAGS
2389CFLAGS="-g"
2390echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2391echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2392if test "${ac_cv_prog_cc_g+set}" = set; then
2393  echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395  cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h.  */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h.  */
2401
2402int
2403main ()
2404{
2405
2406  ;
2407  return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext
2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412  (eval $ac_compile) 2>conftest.er1
2413  ac_status=$?
2414  grep -v '^ *+' conftest.er1 >conftest.err
2415  rm -f conftest.er1
2416  cat conftest.err >&5
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); } &&
2419         { ac_try='test -z "$ac_c_werror_flag"
2420                         || test ! -s conftest.err'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; } &&
2426         { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  ac_cv_prog_cc_g=yes
2433else
2434  echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437ac_cv_prog_cc_g=no
2438fi
2439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440fi
2441echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2442echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2443if test "$ac_test_CFLAGS" = set; then
2444  CFLAGS=$ac_save_CFLAGS
2445elif test $ac_cv_prog_cc_g = yes; then
2446  if test "$GCC" = yes; then
2447    CFLAGS="-g -O2"
2448  else
2449    CFLAGS="-g"
2450  fi
2451else
2452  if test "$GCC" = yes; then
2453    CFLAGS="-O2"
2454  else
2455    CFLAGS=
2456  fi
2457fi
2458echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2459echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2460if test "${ac_cv_prog_cc_stdc+set}" = set; then
2461  echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463  ac_cv_prog_cc_stdc=no
2464ac_save_CC=$CC
2465cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h.  */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h.  */
2471#include <stdarg.h>
2472#include <stdio.h>
2473#include <sys/types.h>
2474#include <sys/stat.h>
2475/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2476struct buf { int x; };
2477FILE * (*rcsopen) (struct buf *, struct stat *, int);
2478static char *e (p, i)
2479     char **p;
2480     int i;
2481{
2482  return p[i];
2483}
2484static char *f (char * (*g) (char **, int), char **p, ...)
2485{
2486  char *s;
2487  va_list v;
2488  va_start (v,p);
2489  s = g (p, va_arg (v,int));
2490  va_end (v);
2491  return s;
2492}
2493
2494/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2495   function prototypes and stuff, but not '\xHH' hex character constants.
2496   These don't provoke an error unfortunately, instead are silently treated
2497   as 'x'.  The following induces an error, until -std1 is added to get
2498   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2499   array size at least.  It's necessary to write '\x00'==0 to get something
2500   that's true only with -std1.  */
2501int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2502
2503int test (int i, double x);
2504struct s1 {int (*f) (int a);};
2505struct s2 {int (*f) (double a);};
2506int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2507int argc;
2508char **argv;
2509int
2510main ()
2511{
2512return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2513  ;
2514  return 0;
2515}
2516_ACEOF
2517# Don't try gcc -ansi; that turns off useful extensions and
2518# breaks some systems' header files.
2519# AIX                   -qlanglvl=ansi
2520# Ultrix and OSF/1      -std1
2521# HP-UX 10.20 and later -Ae
2522# HP-UX older versions  -Aa -D_HPUX_SOURCE
2523# SVR4                  -Xc -D__EXTENSIONS__
2524for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2525do
2526  CC="$ac_save_CC $ac_arg"
2527  rm -f conftest.$ac_objext
2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529  (eval $ac_compile) 2>conftest.er1
2530  ac_status=$?
2531  grep -v '^ *+' conftest.er1 >conftest.err
2532  rm -f conftest.er1
2533  cat conftest.err >&5
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); } &&
2536         { ac_try='test -z "$ac_c_werror_flag"
2537                         || test ! -s conftest.err'
2538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539  (eval $ac_try) 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }; } &&
2543         { ac_try='test -s conftest.$ac_objext'
2544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545  (eval $ac_try) 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }; }; then
2549  ac_cv_prog_cc_stdc=$ac_arg
2550break
2551else
2552  echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555fi
2556rm -f conftest.err conftest.$ac_objext
2557done
2558rm -f conftest.$ac_ext conftest.$ac_objext
2559CC=$ac_save_CC
2560
2561fi
2562
2563case "x$ac_cv_prog_cc_stdc" in
2564  x|xno)
2565    echo "$as_me:$LINENO: result: none needed" >&5
2566echo "${ECHO_T}none needed" >&6 ;;
2567  *)
2568    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2569echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2570    CC="$CC $ac_cv_prog_cc_stdc" ;;
2571esac
2572
2573# Some people use a C++ compiler to compile C.  Since we use `exit',
2574# in C++ we need to declare it.  In case someone uses the same compiler
2575# for both compiling C and C++ we need to have the C++ compiler decide
2576# the declaration of exit, since it's the most demanding environment.
2577cat >conftest.$ac_ext <<_ACEOF
2578#ifndef __cplusplus
2579  choke me
2580#endif
2581_ACEOF
2582rm -f conftest.$ac_objext
2583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584  (eval $ac_compile) 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } &&
2591         { ac_try='test -z "$ac_c_werror_flag"
2592                         || test ! -s conftest.err'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; } &&
2598         { ac_try='test -s conftest.$ac_objext'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; }; then
2604  for ac_declaration in \
2605   '' \
2606   'extern "C" void std::exit (int) throw (); using std::exit;' \
2607   'extern "C" void std::exit (int); using std::exit;' \
2608   'extern "C" void exit (int) throw ();' \
2609   'extern "C" void exit (int);' \
2610   'void exit (int);'
2611do
2612  cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h.  */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h.  */
2618$ac_declaration
2619#include <stdlib.h>
2620int
2621main ()
2622{
2623exit (42);
2624  ;
2625  return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -z "$ac_c_werror_flag"
2638                         || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644         { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  :
2651else
2652  echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655continue
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658  cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664$ac_declaration
2665int
2666main ()
2667{
2668exit (42);
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673rm -f conftest.$ac_objext
2674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675  (eval $ac_compile) 2>conftest.er1
2676  ac_status=$?
2677  grep -v '^ *+' conftest.er1 >conftest.err
2678  rm -f conftest.er1
2679  cat conftest.err >&5
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); } &&
2682         { ac_try='test -z "$ac_c_werror_flag"
2683                         || test ! -s conftest.err'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; } &&
2689         { ac_try='test -s conftest.$ac_objext'
2690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691  (eval $ac_try) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }; }; then
2695  break
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702done
2703rm -f conftest*
2704if test -n "$ac_declaration"; then
2705  echo '#ifdef __cplusplus' >>confdefs.h
2706  echo $ac_declaration      >>confdefs.h
2707  echo '#endif'             >>confdefs.h
2708fi
2709
2710else
2711  echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716ac_ext=c
2717ac_cpp='$CPP $CPPFLAGS'
2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721
2722if test -z "$CC" ; then
2723  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2724echo "$as_me: error: Failed to find a C compiler!" >&2;}
2725   { (exit 1); exit 1; }; }
2726fi
2727# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2728case "$CC" in
2729  cl* | */cl* | CL* | */CL* )
2730    if test "$ac_cv_prog_cc_g" = yes ; then
2731      ac_cv_prog_cc_g=no
2732      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2733echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2734    fi ;;
2735esac
2736CFLAGS="$save_cflags"
2737
2738# Check if a project specific CFLAGS variable has been set
2739if test x$COIN_PRJCT != x; then
2740  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2741  if test x$coin_tmp = xset; then
2742    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2743  fi
2744fi
2745
2746if test x"$CFLAGS" = x; then
2747
2748  coin_add_cflags=
2749  coin_opt_cflags=
2750  coin_dbg_cflags=
2751  coin_warn_cflags=
2752
2753  if test "$GCC" = "yes"; then
2754    case "$CC" in
2755      icc* | */icc*)
2756        ;;
2757      *)
2758        coin_opt_cflags="-O3"
2759        coin_add_cflags="-pipe"
2760        coin_dbg_cflags="-g"
2761        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2762        case $build in
2763          *-darwin*)
2764            ;;
2765          *)
2766            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2767            ;;
2768        esac
2769        case $enable_doscompile in
2770          mingw)
2771            CFLAGS="-mno-cygwin"
2772            cat >conftest.$ac_ext <<_ACEOF
2773/* confdefs.h.  */
2774_ACEOF
2775cat confdefs.h >>conftest.$ac_ext
2776cat >>conftest.$ac_ext <<_ACEOF
2777/* end confdefs.h.  */
2778
2779int
2780main ()
2781{
2782int i=0; i++;
2783  ;
2784  return 0;
2785}
2786_ACEOF
2787rm -f conftest.$ac_objext conftest$ac_exeext
2788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2789  (eval $ac_link) 2>conftest.er1
2790  ac_status=$?
2791  grep -v '^ *+' conftest.er1 >conftest.err
2792  rm -f conftest.er1
2793  cat conftest.err >&5
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); } &&
2796         { ac_try='test -z "$ac_c_werror_flag"
2797                         || test ! -s conftest.err'
2798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799  (eval $ac_try) 2>&5
2800  ac_status=$?
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); }; } &&
2803         { ac_try='test -s conftest$ac_exeext'
2804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805  (eval $ac_try) 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); }; }; then
2809  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2810else
2811  echo "$as_me: failed program was:" >&5
2812sed 's/^/| /' conftest.$ac_ext >&5
2813
2814fi
2815rm -f conftest.err conftest.$ac_objext \
2816      conftest$ac_exeext conftest.$ac_ext
2817            CFLAGS=
2818          ;;
2819        esac
2820    esac
2821  fi
2822  if test -z "$coin_opt_cflags"; then
2823    case $build in
2824      *-cygwin* | *-mingw*)
2825        case "$CC" in
2826          cl* | */cl* | CL* | */CL*)
2827            coin_opt_cflags='-MT -O2'
2828            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2829            coin_dbg_cflags='-MTd'
2830            ;;
2831          icl* | */icl* | ICL* | */ICL*)
2832            coin_opt_cflags='-MT -Ox'
2833            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2834            coin_dbg_cflags='-MTd -debug'
2835            ;;
2836        esac
2837        ;;
2838      *-linux-*)
2839        case "$CC" in
2840          icc* | */icc*)
2841            coin_opt_cflags="-O3 -ip -mp1"
2842            coin_add_cflags=""
2843            coin_dbg_cflags="-g"
2844            # Check if -i_dynamic is necessary (for new glibc library)
2845            CFLAGS=
2846            cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h.  */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h.  */
2852
2853int
2854main ()
2855{
2856int i=0; i++;
2857  ;
2858  return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext conftest$ac_exeext
2862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863  (eval $ac_link) 2>conftest.er1
2864  ac_status=$?
2865  grep -v '^ *+' conftest.er1 >conftest.err
2866  rm -f conftest.er1
2867  cat conftest.err >&5
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); } &&
2870         { ac_try='test -z "$ac_c_werror_flag"
2871                         || test ! -s conftest.err'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; } &&
2877         { ac_try='test -s conftest$ac_exeext'
2878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879  (eval $ac_try) 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; }; then
2883  :
2884else
2885  echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888coin_add_cflags="-i_dynamic $coin_add_cflags"
2889fi
2890rm -f conftest.err conftest.$ac_objext \
2891      conftest$ac_exeext conftest.$ac_ext
2892            ;;
2893          pgcc* | */pgcc*)
2894            coin_opt_cflags="-fast"
2895            coin_add_cflags="-Kieee -pc 64"
2896            coin_dbg_cflags="-g"
2897            ;;
2898        esac
2899        ;;
2900      *-ibm-*)
2901        case "$CC" in
2902          xlc* | */xlc* | mpxlc* | */mpxlc*)
2903            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2904            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2905            coin_dbg_cflags="-g"
2906          ;;
2907        esac
2908        ;;
2909      *-hp-*)
2910        coin_opt_cflags="-O"
2911        coin_add_cflags="-Ae"
2912        coin_dbg_cflags="-g"
2913        ;;
2914      *-*-solaris*)
2915        coin_opt_cflags="-xO4"
2916        coin_dbg_cflags="-g"
2917        ;;
2918      *-sgi-*)
2919        coin_opt_cflags="-O -OPT:Olimit=0"
2920        coin_dbg_cflags="-g"
2921        ;;
2922    esac
2923  fi
2924
2925  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2926    coin_dbg_cflags="-g"
2927  fi
2928
2929  if test -z "$coin_opt_cflags"; then
2930    # Try if -O option works if nothing else is set
2931    CFLAGS="-O"
2932    cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938
2939int
2940main ()
2941{
2942int i=0; i++;
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext conftest$ac_exeext
2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949  (eval $ac_link) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956         { ac_try='test -z "$ac_c_werror_flag"
2957                         || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963         { ac_try='test -s conftest$ac_exeext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  coin_opt_cflags="-O"
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974fi
2975rm -f conftest.err conftest.$ac_objext \
2976      conftest$ac_exeext conftest.$ac_ext
2977  fi
2978
2979  # if PM doesn't want the warning messages, take them out
2980  if test x"$coin_skip_warn_cflags" = xyes; then
2981    coin_warn_cflags=
2982  fi
2983
2984  if test x${DBG_CFLAGS+set} != xset; then
2985    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2986  fi
2987  if test x${OPT_CFLAGS+set} != xset; then
2988    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2989  fi
2990
2991  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2992  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2993
2994  if test "$coin_debug_compile" = "true"; then
2995    CFLAGS="$DBG_CFLAGS"
2996  else
2997    CFLAGS="$OPT_CFLAGS"
2998  fi
2999else
3000  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3001  if test x${DBG_CFLAGS+set} != xset; then
3002    DBG_CFLAGS="$CFLAGS"
3003  fi
3004  if test x${OPT_CFLAGS+set} != xset; then
3005    OPT_CFLAGS="$CFLAGS"
3006  fi
3007fi
3008
3009# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3010
3011case "$CFLAGS" in
3012  *-mno-cygwin*)
3013    if test x${CPPFLAGS+set} != xset ; then
3014      CPPFLAGS="-mno-cygwin"
3015    else
3016      case "$CPPFLAGS" in
3017        *-mno-cygwin*)
3018          ;;
3019        *)
3020          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3021          ;;
3022      esac
3023    fi ;;
3024esac
3025
3026# Try if CFLAGS works
3027save_CFLAGS="$CFLAGS"
3028cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h.  */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h.  */
3034
3035int
3036main ()
3037{
3038int i=0; i++;
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext conftest$ac_exeext
3044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3045  (eval $ac_link) 2>conftest.er1
3046  ac_status=$?
3047  grep -v '^ *+' conftest.er1 >conftest.err
3048  rm -f conftest.er1
3049  cat conftest.err >&5
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); } &&
3052         { ac_try='test -z "$ac_c_werror_flag"
3053                         || test ! -s conftest.err'
3054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055  (eval $ac_try) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }; } &&
3059         { ac_try='test -s conftest$ac_exeext'
3060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061  (eval $ac_try) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; }; then
3065  :
3066else
3067  echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070CFLAGS=
3071fi
3072rm -f conftest.err conftest.$ac_objext \
3073      conftest$ac_exeext conftest.$ac_ext
3074if test -z "$CFLAGS"; then
3075  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3076echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3077  CFLAGS='-O'
3078  cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h.  */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088int i=0; i++;
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext conftest$ac_exeext
3094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3095  (eval $ac_link) 2>conftest.er1
3096  ac_status=$?
3097  grep -v '^ *+' conftest.er1 >conftest.err
3098  rm -f conftest.er1
3099  cat conftest.err >&5
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); } &&
3102         { ac_try='test -z "$ac_c_werror_flag"
3103                         || test ! -s conftest.err'
3104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105  (eval $ac_try) 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; } &&
3109         { ac_try='test -s conftest$ac_exeext'
3110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111  (eval $ac_try) 2>&5
3112  ac_status=$?
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); }; }; then
3115  :
3116else
3117  echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120CFLAGS=
3121fi
3122rm -f conftest.err conftest.$ac_objext \
3123      conftest$ac_exeext conftest.$ac_ext
3124  if test -z "$CFLAGS"; then
3125    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3126echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3127  fi
3128fi
3129
3130{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3131echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3132
3133
3134if test x"$MPICC" = x; then :; else
3135  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3136echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3137  CC="$MPICC"
3138fi
3139
3140# Correct ADDLIBS initialization if we are using the MS compiler
3141case "$CC" in
3142  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3143    ADDLIBS=
3144    case $build in
3145  *-mingw*)
3146    if test "${LD+set}" = set; then :; else
3147      LD=link
3148    fi
3149    ;;
3150 esac
3151 case $enable_doscompile in
3152   msvc)
3153     if test "x${LD+set}" = xset; then :; else
3154       LD=link
3155     fi
3156     ;;
3157 esac
3158
3159    ;;
3160esac
3161
3162ac_ext=c
3163ac_cpp='$CPP $CPPFLAGS'
3164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168
3169
3170# Check if pkg-config is available (to setup addlibs file)
3171
3172
3173# Check whether --enable-pkg-config or --disable-pkg-config was given.
3174if test "${enable_pkg_config+set}" = set; then
3175  enableval="$enable_pkg_config"
3176  use_pkgconfig="$enableval"
3177else
3178  use_pkgconfig=yes
3179fi;
3180
3181if test $use_pkgconfig = yes ; then
3182  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3183    if test -n "$ac_tool_prefix"; then
3184  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3185set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3186echo "$as_me:$LINENO: checking for $ac_word" >&5
3187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  case $PKG_CONFIG in
3192  [\\/]* | ?:[\\/]*)
3193  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3194  ;;
3195  *)
3196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209
3210  ;;
3211esac
3212fi
3213PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3214
3215if test -n "$PKG_CONFIG"; then
3216  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3217echo "${ECHO_T}$PKG_CONFIG" >&6
3218else
3219  echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
3221fi
3222
3223fi
3224if test -z "$ac_cv_path_PKG_CONFIG"; then
3225  ac_pt_PKG_CONFIG=$PKG_CONFIG
3226  # Extract the first word of "pkg-config", so it can be a program name with args.
3227set dummy pkg-config; ac_word=$2
3228echo "$as_me:$LINENO: checking for $ac_word" >&5
3229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3230if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233  case $ac_pt_PKG_CONFIG in
3234  [\\/]* | ?:[\\/]*)
3235  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3236  ;;
3237  *)
3238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_exec_ext in '' $ac_executable_extensions; do
3244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250done
3251
3252  ;;
3253esac
3254fi
3255ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3256
3257if test -n "$ac_pt_PKG_CONFIG"; then
3258  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3259echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3260else
3261  echo "$as_me:$LINENO: result: no" >&5
3262echo "${ECHO_T}no" >&6
3263fi
3264
3265  PKG_CONFIG=$ac_pt_PKG_CONFIG
3266else
3267  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3268fi
3269
3270  fi
3271  if test -n "$PKG_CONFIG"; then
3272    _pkg_min_version=0.9.0
3273    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3274echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3275    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3276      echo "$as_me:$LINENO: result: yes" >&5
3277echo "${ECHO_T}yes" >&6
3278    else
3279      echo "$as_me:$LINENO: result: no" >&5
3280echo "${ECHO_T}no" >&6
3281      PKG_CONFIG=""
3282    fi
3283  fi
3284
3285  # check if pkg-config supports the short-errors flag
3286  if test -n "$PKG_CONFIG" && \
3287    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3288    pkg_short_errors=" --short-errors "
3289  else
3290    pkg_short_errors=""
3291  fi
3292fi
3293
3294
3295
3296if test -n "$PKG_CONFIG"; then
3297  COIN_HAS_PKGCONFIG_TRUE=
3298  COIN_HAS_PKGCONFIG_FALSE='#'
3299else
3300  COIN_HAS_PKGCONFIG_TRUE='#'
3301  COIN_HAS_PKGCONFIG_FALSE=
3302fi
3303
3304
3305
3306# assemble pkg-config search path for installed projects
3307COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3308
3309# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
3310# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3311# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3312if test "x${prefix}" = xNONE ; then
3313  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3314else
3315  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3316fi
3317
3318
3319# Check whether --with-coin-instdir or --without-coin-instdir was given.
3320if test "${with_coin_instdir+set}" = set; then
3321  withval="$with_coin_instdir"
3322  if test -d "$withval"; then : ; else
3323     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3324echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3325   { (exit 1); exit 1; }; }
3326   fi
3327   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3328
3329fi;
3330
3331
3332
3333# assemble additional pkg-config search paths for uninstalled projects
3334if test x$coin_projectdir = xyes ; then
3335  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3336  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3337  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3338  # 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)
3339  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3340  if test -e ../coin_subdirs.txt ; then
3341    for i in `cat ../coin_subdirs.txt` ; do
3342      if test -d ../$i ; then
3343        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3344      fi
3345    done
3346  fi
3347
3348  if test -e ../../coin_subdirs.txt ; then
3349    for i in `cat ../../coin_subdirs.txt` ; do
3350      if test -d ../../$i ; then
3351        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3352      fi
3353    done
3354  fi
3355
3356
3357fi
3358
3359
3360
3361# Initialize automake
3362{
3363
3364
3365
3366# START
3367
3368# Test if force_shared has been set
3369if test "x" = xforce_shared; then
3370  if test x$enable_shared = xno; then
3371    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3372echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3373   { (exit 1); exit 1; }; }
3374  fi
3375  enable_shared=yes;
3376else
3377  # On Cygwin and AIX, building DLLs doesn't work
3378  case $build in
3379    *-cygwin*)
3380      coin_disable_shared=yes
3381      platform=Cygwin
3382    ;;
3383    *-aix*)
3384      coin_disable_shared=yes
3385      platform=AIX
3386    ;;
3387    *-mingw*)
3388      coin_disable_shared=yes
3389      platform="Msys"
3390#      case "$CXX" in
3391#        cl*)
3392#          coin_disable_shared=yes
3393#          platform="Msys with cl"
3394#      ;;
3395#      esac
3396    ;;
3397  esac
3398fi
3399if test x"$coin_disable_shared" = xyes; then
3400  if test x"$enable_shared" = xyes; then
3401    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3402echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3403  fi
3404  enable_shared=no
3405fi
3406# By default, we only want the shared objects to be compiled
3407# Check whether --enable-static or --disable-static was given.
3408if test "${enable_static+set}" = set; then
3409  enableval="$enable_static"
3410  p=${PACKAGE-default}
3411    case $enableval in
3412    yes) enable_static=yes ;;
3413    no) enable_static=no ;;
3414    *)
3415     enable_static=no
3416      # Look at the argument we got.  We use all the common list separators.
3417      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3418      for pkg in $enableval; do
3419        IFS="$lt_save_ifs"
3420        if test "X$pkg" = "X$p"; then
3421          enable_static=yes
3422        fi
3423      done
3424      IFS="$lt_save_ifs"
3425      ;;
3426    esac
3427else
3428  enable_static=no
3429fi;
3430
3431
3432
3433
3434# Initialize automake
3435echo "$as_me:$LINENO: checking for egrep" >&5
3436echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3437if test "${ac_cv_prog_egrep+set}" = set; then
3438  echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3441    then ac_cv_prog_egrep='grep -E'
3442    else ac_cv_prog_egrep='egrep'
3443    fi
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3446echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3447 EGREP=$ac_cv_prog_egrep
3448
3449
3450am__api_version="1.9"
3451# Find a good install program.  We prefer a C program (faster),
3452# so one script is as good as another.  But avoid the broken or
3453# incompatible versions:
3454# SysV /etc/install, /usr/sbin/install
3455# SunOS /usr/etc/install
3456# IRIX /sbin/install
3457# AIX /bin/install
3458# AmigaOS /C/install, which installs bootblocks on floppy discs
3459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3462# OS/2's system install, which has a completely different semantic
3463# ./install, which can be erroneously created by make from ./install.sh.
3464echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3465echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3466if test -z "$INSTALL"; then
3467if test "${ac_cv_path_install+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  test -z "$as_dir" && as_dir=.
3475  # Account for people who put trailing slashes in PATH elements.
3476case $as_dir/ in
3477  ./ | .// | /cC/* | \
3478  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3479  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3480  /usr/ucb/* ) ;;
3481  *)
3482    # OSF1 and SCO ODT 3.0 have their own names for install.
3483    # Don't use installbsd from OSF since it installs stuff as root
3484    # by default.
3485    for ac_prog in ginstall scoinst install; do
3486      for ac_exec_ext in '' $ac_executable_extensions; do
3487        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3488          if test $ac_prog = install &&
3489            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3490            # AIX install.  It has an incompatible calling convention.
3491            :
3492          elif test $ac_prog = install &&
3493            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3494            # program-specific install script used by HP pwplus--don't use.
3495            :
3496          else
3497            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3498            break 3
3499          fi
3500        fi
3501      done
3502    done
3503    ;;
3504esac
3505done
3506
3507
3508fi
3509  if test "${ac_cv_path_install+set}" = set; then
3510    INSTALL=$ac_cv_path_install
3511  else
3512    # As a last resort, use the slow shell script.  We don't cache a
3513    # path for INSTALL within a source directory, because that will
3514    # break other packages using the cache if that directory is
3515    # removed, or if the path is relative.
3516    INSTALL=$ac_install_sh
3517  fi
3518fi
3519echo "$as_me:$LINENO: result: $INSTALL" >&5
3520echo "${ECHO_T}$INSTALL" >&6
3521
3522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3523# It thinks the first close brace ends the variable substitution.
3524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3525
3526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3527
3528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3529
3530echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3531echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3532# Just in case
3533sleep 1
3534echo timestamp > conftest.file
3535# Do `set' in a subshell so we don't clobber the current shell's
3536# arguments.  Must try -L first in case configure is actually a
3537# symlink; some systems play weird games with the mod time of symlinks
3538# (eg FreeBSD returns the mod time of the symlink's containing
3539# directory).
3540if (
3541   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3542   if test "$*" = "X"; then
3543      # -L didn't work.
3544      set X `ls -t $srcdir/configure conftest.file`
3545   fi
3546   rm -f conftest.file
3547   if test "$*" != "X $srcdir/configure conftest.file" \
3548      && test "$*" != "X conftest.file $srcdir/configure"; then
3549
3550      # If neither matched, then we have a broken ls.  This can happen
3551      # if, for instance, CONFIG_SHELL is bash and it inherits a
3552      # broken ls alias from the environment.  This has actually
3553      # happened.  Such a system could not be considered "sane".
3554      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3555alias in your environment" >&5
3556echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3557alias in your environment" >&2;}
3558   { (exit 1); exit 1; }; }
3559   fi
3560
3561   test "$2" = conftest.file
3562   )
3563then
3564   # Ok.
3565   :
3566else
3567   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3568Check your system clock" >&5
3569echo "$as_me: error: newly created file is older than distributed files!
3570Check your system clock" >&2;}
3571   { (exit 1); exit 1; }; }
3572fi
3573echo "$as_me:$LINENO: result: yes" >&5
3574echo "${ECHO_T}yes" >&6
3575test "$program_prefix" != NONE &&
3576  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3577# Use a double $ so make ignores it.
3578test "$program_suffix" != NONE &&
3579  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3580# Double any \ or $.  echo might interpret backslashes.
3581# By default was `s,x,x', remove it if useless.
3582cat <<\_ACEOF >conftest.sed
3583s/[\\$]/&&/g;s/;s,x,x,$//
3584_ACEOF
3585program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3586rm conftest.sed
3587
3588# expand $ac_aux_dir to an absolute path
3589am_aux_dir=`cd $ac_aux_dir && pwd`
3590
3591test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3592# Use eval to expand $SHELL
3593if eval "$MISSING --run true"; then
3594  am_missing_run="$MISSING --run "
3595else
3596  am_missing_run=
3597  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3598echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3599fi
3600
3601if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3602  # We used to keeping the `.' as first argument, in order to
3603  # allow $(mkdir_p) to be used without argument.  As in
3604  #   $(mkdir_p) $(somedir)
3605  # where $(somedir) is conditionally defined.  However this is wrong
3606  # for two reasons:
3607  #  1. if the package is installed by a user who cannot write `.'
3608  #     make install will fail,
3609  #  2. the above comment should most certainly read
3610  #     $(mkdir_p) $(DESTDIR)$(somedir)
3611  #     so it does not work when $(somedir) is undefined and
3612  #     $(DESTDIR) is not.
3613  #  To support the latter case, we have to write
3614  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3615  #  so the `.' trick is pointless.
3616  mkdir_p='mkdir -p --'
3617else
3618  # On NextStep and OpenStep, the `mkdir' command does not
3619  # recognize any option.  It will interpret all options as
3620  # directories to create, and then abort because `.' already
3621  # exists.
3622  for d in ./-p ./--version;
3623  do
3624    test -d $d && rmdir $d
3625  done
3626  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3627  if test -f "$ac_aux_dir/mkinstalldirs"; then
3628    mkdir_p='$(mkinstalldirs)'
3629  else
3630    mkdir_p='$(install_sh) -d'
3631  fi
3632fi
3633
3634for ac_prog in gawk mawk nawk awk
3635do
3636  # Extract the first word of "$ac_prog", so it can be a program name with args.
3637set dummy $ac_prog; ac_word=$2
3638echo "$as_me:$LINENO: checking for $ac_word" >&5
3639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3640if test "${ac_cv_prog_AWK+set}" = set; then
3641  echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643  if test -n "$AWK"; then
3644  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  test -z "$as_dir" && as_dir=.
3651  for ac_exec_ext in '' $ac_executable_extensions; do
3652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_AWK="$ac_prog"
3654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658done
3659
3660fi
3661fi
3662AWK=$ac_cv_prog_AWK
3663if test -n "$AWK"; then
3664  echo "$as_me:$LINENO: result: $AWK" >&5
3665echo "${ECHO_T}$AWK" >&6
3666else
3667  echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669fi
3670
3671  test -n "$AWK" && break
3672done
3673
3674echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3675echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3676set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3677if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3678  echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680  cat >conftest.make <<\_ACEOF
3681all:
3682        @echo 'ac_maketemp="$(MAKE)"'
3683_ACEOF
3684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3685eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3686if test -n "$ac_maketemp"; then
3687  eval ac_cv_prog_make_${ac_make}_set=yes
3688else
3689  eval ac_cv_prog_make_${ac_make}_set=no
3690fi
3691rm -f conftest.make
3692fi
3693if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3694  echo "$as_me:$LINENO: result: yes" >&5
3695echo "${ECHO_T}yes" >&6
3696  SET_MAKE=
3697else
3698  echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700  SET_MAKE="MAKE=${MAKE-make}"
3701fi
3702
3703rm -rf .tst 2>/dev/null
3704mkdir .tst 2>/dev/null
3705if test -d .tst; then
3706  am__leading_dot=.
3707else
3708  am__leading_dot=_
3709fi
3710rmdir .tst 2>/dev/null
3711
3712DEPDIR="${am__leading_dot}deps"
3713
3714          ac_config_commands="$ac_config_commands depfiles"
3715
3716
3717am_make=${MAKE-make}
3718cat > confinc << 'END'
3719am__doit:
3720        @echo done
3721.PHONY: am__doit
3722END
3723# If we don't find an include directive, just comment out the code.
3724echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3725echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3726am__include="#"
3727am__quote=
3728_am_result=none
3729# First try GNU make style include.
3730echo "include confinc" > confmf
3731# We grep out `Entering directory' and `Leaving directory'
3732# messages which can occur if `w' ends up in MAKEFLAGS.
3733# In particular we don't look at `^make:' because GNU make might
3734# be invoked under some other name (usually "gmake"), in which
3735# case it prints its new name instead of `make'.
3736if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3737   am__include=include
3738   am__quote=
3739   _am_result=GNU
3740fi
3741# Now try BSD make style include.
3742if test "$am__include" = "#"; then
3743   echo '.include "confinc"' > confmf
3744   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3745      am__include=.include
3746      am__quote="\""
3747      _am_result=BSD
3748   fi
3749fi
3750
3751
3752echo "$as_me:$LINENO: result: $_am_result" >&5
3753echo "${ECHO_T}$_am_result" >&6
3754rm -f confinc confmf
3755
3756# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3757if test "${enable_dependency_tracking+set}" = set; then
3758  enableval="$enable_dependency_tracking"
3759
3760fi;
3761if test "x$enable_dependency_tracking" != xno; then
3762  am_depcomp="$ac_aux_dir/depcomp"
3763  AMDEPBACKSLASH='\'
3764fi
3765
3766
3767if test "x$enable_dependency_tracking" != xno; then
3768  AMDEP_TRUE=
3769  AMDEP_FALSE='#'
3770else
3771  AMDEP_TRUE='#'
3772  AMDEP_FALSE=
3773fi
3774
3775
3776
3777
3778
3779# AC_MSG_NOTICE([Beginning automake initialisation.])
3780# Stuff for automake
3781# test to see if srcdir already configured
3782if test "`cd $srcdir && pwd`" != "`pwd`" &&
3783   test -f $srcdir/config.status; then
3784  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3785echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3786   { (exit 1); exit 1; }; }
3787fi
3788
3789# test whether we have cygpath
3790if test -z "$CYGPATH_W"; then
3791  if (cygpath --version) >/dev/null 2>/dev/null; then
3792    CYGPATH_W='cygpath -w'
3793  else
3794    CYGPATH_W=echo
3795  fi
3796fi
3797
3798
3799# Define the identity of the package.
3800 PACKAGE='thirdpartymetis'
3801 VERSION='trunk'
3802
3803
3804cat >>confdefs.h <<_ACEOF
3805#define PACKAGE "$PACKAGE"
3806_ACEOF
3807
3808
3809cat >>confdefs.h <<_ACEOF
3810#define VERSION "$VERSION"
3811_ACEOF
3812
3813# Some tools Automake needs.
3814
3815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3816
3817
3818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3819
3820
3821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3822
3823
3824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3825
3826
3827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3828
3829install_sh=${install_sh-"$am_aux_dir/install-sh"}
3830
3831# Installed binaries are usually stripped using `strip' when the user
3832# run `make install-strip'.  However `strip' might not be the right
3833# tool to use in cross-compilation environments, therefore Automake
3834# will honor the `STRIP' environment variable to overrule this program.
3835if test "$cross_compiling" != no; then
3836  if test -n "$ac_tool_prefix"; then
3837  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3838set dummy ${ac_tool_prefix}strip; ac_word=$2
3839echo "$as_me:$LINENO: checking for $ac_word" >&5
3840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841if test "${ac_cv_prog_STRIP+set}" = set; then
3842  echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844  if test -n "$STRIP"; then
3845  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850  IFS=$as_save_IFS
3851  test -z "$as_dir" && as_dir=.
3852  for ac_exec_ext in '' $ac_executable_extensions; do
3853  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856    break 2
3857  fi
3858done
3859done
3860
3861fi
3862fi
3863STRIP=$ac_cv_prog_STRIP
3864if test -n "$STRIP"; then
3865  echo "$as_me:$LINENO: result: $STRIP" >&5
3866echo "${ECHO_T}$STRIP" >&6
3867else
3868  echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870fi
3871
3872fi
3873if test -z "$ac_cv_prog_STRIP"; then
3874  ac_ct_STRIP=$STRIP
3875  # Extract the first word of "strip", so it can be a program name with args.
3876set dummy strip; ac_word=$2
3877echo "$as_me:$LINENO: checking for $ac_word" >&5
3878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  if test -n "$ac_ct_STRIP"; then
3883  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888  IFS=$as_save_IFS
3889  test -z "$as_dir" && as_dir=.
3890  for ac_exec_ext in '' $ac_executable_extensions; do
3891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892    ac_cv_prog_ac_ct_STRIP="strip"
3893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894    break 2
3895  fi
3896done
3897done
3898
3899  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3900fi
3901fi
3902ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3903if test -n "$ac_ct_STRIP"; then
3904  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3905echo "${ECHO_T}$ac_ct_STRIP" >&6
3906else
3907  echo "$as_me:$LINENO: result: no" >&5
3908echo "${ECHO_T}no" >&6
3909fi
3910
3911  STRIP=$ac_ct_STRIP
3912else
3913  STRIP="$ac_cv_prog_STRIP"
3914fi
3915
3916fi
3917INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3918
3919# We need awk for the "check" target.  The system "awk" is bad on
3920# some platforms.
3921# Always define AMTAR for backward compatibility.
3922
3923AMTAR=${AMTAR-"${am_missing_run}tar"}
3924
3925am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3926
3927
3928
3929
3930depcc="$CC"   am_compiler_list=
3931
3932echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3933echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3934if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3935  echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3938  # We make a subdir and do the tests there.  Otherwise we can end up
3939  # making bogus files that we don't know about and never remove.  For
3940  # instance it was reported that on HP-UX the gcc test will end up
3941  # making a dummy file named `D' -- because `-MD' means `put the output
3942  # in D'.
3943  mkdir conftest.dir
3944  # Copy depcomp to subdir because otherwise we won't find it if we're
3945  # using a relative directory.
3946  cp "$am_depcomp" conftest.dir
3947  cd conftest.dir
3948  # We will build objects and dependencies in a subdirectory because
3949  # it helps to detect inapplicable dependency modes.  For instance
3950  # both Tru64's cc and ICC support -MD to output dependencies as a
3951  # side effect of compilation, but ICC will put the dependencies in
3952  # the current directory while Tru64 will put them in the object
3953  # directory.
3954  mkdir sub
3955
3956  am_cv_CC_dependencies_compiler_type=none
3957  if test "$am_compiler_list" = ""; then
3958     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3959  fi
3960  for depmode in $am_compiler_list; do
3961    # Setup a source with many dependencies, because some compilers
3962    # like to wrap large dependency lists on column 80 (with \), and
3963    # we should not choose a depcomp mode which is confused by this.
3964    #
3965    # We need to recreate these files for each test, as the compiler may
3966    # overwrite some of them when testing with obscure command lines.
3967    # This happens at least with the AIX C compiler.
3968    : > sub/conftest.c
3969    for i in 1 2 3 4 5 6; do
3970      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3971      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3972      # Solaris 8's {/usr,}/bin/sh.
3973      touch sub/conftst$i.h
3974    done
3975    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3976
3977    case $depmode in
3978    nosideeffect)
3979      # after this tag, mechanisms are not by side-effect, so they'll
3980      # only be used when explicitly requested
3981      if test "x$enable_dependency_tracking" = xyes; then
3982        continue
3983      else
3984        break
3985      fi
3986      ;;
3987    none) break ;;
3988    esac
3989    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990    # mode.  It turns out that the SunPro C++ compiler does not properly
3991    # handle `-M -o', and we need to detect this.
3992    if depmode=$depmode \
3993       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3994       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3996         >/dev/null 2>conftest.err &&
3997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000      # icc doesn't choke on unknown options, it will just issue warnings
4001      # or remarks (even with -Werror).  So we grep stderr for any message
4002      # that says an option was ignored or not supported.
4003      # When given -MP, icc 7.0 and 7.1 complain thusly:
4004      #   icc: Command line warning: ignoring option '-M'; no argument required
4005      # The diagnosis changed in icc 8.0:
4006      #   icc: Command line remark: option '-MP' not supported
4007      if (grep 'ignoring option' conftest.err ||
4008          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009        am_cv_CC_dependencies_compiler_type=$depmode
4010        break
4011      fi
4012    fi
4013  done
4014
4015  cd ..
4016  rm -rf conftest.dir
4017else
4018  am_cv_CC_dependencies_compiler_type=none
4019fi
4020
4021fi
4022echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4023echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4025
4026
4027
4028if
4029  test "x$enable_dependency_tracking" != xno \
4030  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4031  am__fastdepCC_TRUE=
4032  am__fastdepCC_FALSE='#'
4033else
4034  am__fastdepCC_TRUE='#'
4035  am__fastdepCC_FALSE=
4036fi
4037
4038
4039
4040echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4041echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4042    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4043if test "${enable_maintainer_mode+set}" = set; then
4044  enableval="$enable_maintainer_mode"
4045  USE_MAINTAINER_MODE=$enableval
4046else
4047  USE_MAINTAINER_MODE=no
4048fi;
4049  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4050echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4051
4052
4053if test $USE_MAINTAINER_MODE = yes; then
4054  MAINTAINER_MODE_TRUE=
4055  MAINTAINER_MODE_FALSE='#'
4056else
4057  MAINTAINER_MODE_TRUE='#'
4058  MAINTAINER_MODE_FALSE=
4059fi
4060
4061  MAINT=$MAINTAINER_MODE_TRUE
4062
4063
4064
4065coin_have_externals=no
4066if test "$enable_maintainer_mode" = yes; then
4067
4068  # If maintainer mode is chosen, we make sure that the correct versions
4069  # of the tools are used, and that we know where libtool.m4 is (to
4070  # recreate acinclude.m4)
4071
4072
4073  LIBTOOLM4=
4074  # Normally, $HOME
4075  AUTOTOOLS_DFLT=$HOME
4076
4077  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4078echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4079if test "${ac_cv_use_correct_autotools+set}" = set; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082  ac_cv_use_correct_autotools=check
4083fi
4084echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4085echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4086
4087  if test $ac_cv_use_correct_autotools = check; then
4088    ac_cv_use_correct_autotools=yes
4089    # Check if we have autoconf
4090    # Extract the first word of "autoconf", so it can be a program name with args.
4091set dummy autoconf; ac_word=$2
4092echo "$as_me:$LINENO: checking for $ac_word" >&5
4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094if test "${ac_cv_prog_have_autoconf+set}" = set; then
4095  echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097  if test -n "$have_autoconf"; then
4098  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105  for ac_exec_ext in '' $ac_executable_extensions; do
4106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107    ac_cv_prog_have_autoconf="yes"
4108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109    break 2
4110  fi
4111done
4112done
4113
4114  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4115fi
4116fi
4117have_autoconf=$ac_cv_prog_have_autoconf
4118if test -n "$have_autoconf"; then
4119  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4120echo "${ECHO_T}$have_autoconf" >&6
4121else
4122  echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124fi
4125
4126    if test $have_autoconf = no; then
4127      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4128echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4129   { (exit 1); exit 1; }; }
4130    fi
4131
4132    # Check whether autoconf is the correct version
4133    correct_version='2.59'
4134    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4135    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4136echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4137    autoconf --version > confauto.out 2>&1
4138    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4139      echo "$as_me:$LINENO: result: yes" >&5
4140echo "${ECHO_T}yes" >&6
4141    else
4142      rm -f confauto.out
4143      echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4146echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4147   { (exit 1); exit 1; }; }
4148    fi
4149    rm -f confauto.out
4150
4151    # Check if the executable autoconf is picked up from the correct location
4152    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4153echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4154    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4155    autoconf_dir=`cd $autoconf_dir; pwd`
4156    if test x$AUTOTOOLS_DIR = x; then
4157      want_dir=$AUTOTOOLS_DFLT/bin
4158    else
4159      want_dir=$AUTOTOOLS_DIR/bin
4160    fi
4161    if test $autoconf_dir = `cd $want_dir; pwd`; then
4162      echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164    else
4165      rm -f confauto.out
4166      echo "$as_me:$LINENO: result: no" >&5
4167echo "${ECHO_T}no" >&6
4168      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4169echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4170   { (exit 1); exit 1; }; }
4171    fi
4172
4173    # Check if we have automake
4174    # Extract the first word of "automake", so it can be a program name with args.
4175set dummy automake; ac_word=$2
4176echo "$as_me:$LINENO: checking for $ac_word" >&5
4177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178if test "${ac_cv_prog_have_automake+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  if test -n "$have_automake"; then
4182  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189  for ac_exec_ext in '' $ac_executable_extensions; do
4190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_have_automake="yes"
4192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196done
4197
4198  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4199fi
4200fi
4201have_automake=$ac_cv_prog_have_automake
4202if test -n "$have_automake"; then
4203  echo "$as_me:$LINENO: result: $have_automake" >&5
4204echo "${ECHO_T}$have_automake" >&6
4205else
4206  echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208fi
4209
4210    if test $have_automake = no; then
4211      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4212echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4213   { (exit 1); exit 1; }; }
4214    fi
4215
4216    # Check whether automake is the correct version
4217    correct_version='1.9.6'
4218    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4219    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4220echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4221    automake --version > confauto.out 2>&1
4222    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4223      echo "$as_me:$LINENO: result: yes" >&5
4224echo "${ECHO_T}yes" >&6
4225    else
4226      rm -f confauto.out
4227      echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4230echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4231   { (exit 1); exit 1; }; }
4232    fi
4233    rm -f confauto.out
4234
4235    # Check if the executable automake is picked up from the correct location
4236    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4237echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4238    automake_dir=`which automake | sed -e 's=/automake=='`
4239    automake_dir=`cd $automake_dir; pwd`
4240    if test x$AUTOTOOLS_DIR = x; then
4241      want_dir=$AUTOTOOLS_DFLT/bin
4242    else
4243      want_dir=$AUTOTOOLS_DIR/bin
4244    fi
4245    if test $automake_dir = `cd $want_dir; pwd`; then
4246      echo "$as_me:$LINENO: result: yes" >&5
4247echo "${ECHO_T}yes" >&6
4248    else
4249      rm -f confauto.out
4250      echo "$as_me:$LINENO: result: no" >&5
4251echo "${ECHO_T}no" >&6
4252      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4253echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4254   { (exit 1); exit 1; }; }
4255    fi
4256
4257    # Check if this is the correct version of libtool (with escaped dots)
4258    if test x$AUTOTOOLS_DIR = x; then
4259      want_dir=$AUTOTOOLS_DFLT/share
4260    else
4261      want_dir=$AUTOTOOLS_DIR/share
4262    fi
4263    correct_version='1.5.22'
4264    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4265    if test -r $want_dir/libtool/ltmain.sh; then
4266  have_ltmain=yes
4267  :
4268else
4269  have_ltmain=no
4270  :
4271fi
4272
4273    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4274echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4275    if test $have_ltmain = yes; then
4276    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4277        echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279      else
4280        echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4283echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4284   { (exit 1); exit 1; }; }
4285      fi
4286    else
4287      echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4290echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4291   { (exit 1); exit 1; }; }
4292    fi
4293  fi
4294
4295  # Check if we can find the libtool file
4296  if test x$AUTOTOOLS_DIR = x; then
4297    want_dir=$AUTOTOOLS_DFLT/share
4298  else
4299    want_dir=$AUTOTOOLS_DIR/share
4300  fi
4301  if test -r $want_dir/aclocal/libtool.m4; then
4302  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4303  :
4304else
4305  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4306echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4307   { (exit 1); exit 1; }; }
4308  :
4309fi
4310
4311
4312  # Check if we have an Externals file
4313  if test -r $srcdir/Externals; then
4314    coin_have_externals=yes
4315  fi
4316  # Check if subversion is installed and understands https
4317  # Extract the first word of "svn", so it can be a program name with args.
4318set dummy svn; ac_word=$2
4319echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321if test "${ac_cv_prog_have_svn+set}" = set; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  if test -n "$have_svn"; then
4325  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330  IFS=$as_save_IFS
4331  test -z "$as_dir" && as_dir=.
4332  for ac_exec_ext in '' $ac_executable_extensions; do
4333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334    ac_cv_prog_have_svn="yes"
4335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336    break 2
4337  fi
4338done
4339done
4340
4341  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4342fi
4343fi
4344have_svn=$ac_cv_prog_have_svn
4345if test -n "$have_svn"; then
4346  echo "$as_me:$LINENO: result: $have_svn" >&5
4347echo "${ECHO_T}$have_svn" >&6
4348else
4349  echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
4351fi
4352
4353  if test x$have_svn = xyes; then
4354    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4355echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4356if test "${ac_cv_svn_understands_https+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  svn --version > confauto.out 2>&1
4360                    if $EGREP https confauto.out >/dev/null 2>&1; then
4361                      ac_cv_svn_understands_https=yes
4362                    else
4363                      ac_cv_svn_understands_https=no
4364                      have_svn=no
4365                      ac_cv_prog_have_svn=no
4366                    fi
4367                    rm -f confauto.out
4368fi
4369echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4370echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4371  fi
4372
4373  # Find the location of the BuildTools directory
4374  BUILDTOOLSDIR=
4375  if test -r $srcdir/BuildTools/coin.m4; then
4376    BUILDTOOLSDIR=$srcdir/BuildTools
4377  else
4378    if test -r $srcdir/../BuildTools/coin.m4; then
4379      BUILDTOOLSDIR=$srcdir/../BuildTools
4380    else
4381      if test -r $srcdir/../../BuildTools/coin.m4; then
4382        BUILDTOOLSDIR=$srcdir/../../BuildTools
4383      else
4384        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4385echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4386   { (exit 1); exit 1; }; }
4387      fi
4388    fi
4389  fi
4390
4391
4392  # The following variable is set to the name of the directory where
4393  # the autotool scripts are located
4394
4395  AUX_DIR=$ac_aux_dir
4396fi
4397
4398# helpful variable for the base directory of this package
4399abs_source_dir=`cd $srcdir; pwd`
4400
4401
4402# Stuff for example Makefiles
4403if test x$prefix = xNONE; then
4404  full_prefix=$ac_default_prefix
4405else
4406  full_prefix=$prefix
4407fi
4408full_prefix=`cd $full_prefix ; pwd`
4409
4410abs_lib_dir=$full_prefix/lib/coin
4411
4412abs_include_dir=$full_prefix/include
4413
4414abs_bin_dir=$full_prefix/bin
4415
4416
4417
4418if test $coin_have_externals = yes && test x$have_svn = xyes; then
4419  HAVE_EXTERNALS_TRUE=
4420  HAVE_EXTERNALS_FALSE='#'
4421else
4422  HAVE_EXTERNALS_TRUE='#'
4423  HAVE_EXTERNALS_FALSE=
4424fi
4425
4426
4427# AC_MSG_NOTICE([End automake initialisation.])
4428
4429
4430
4431LIBTOOL=
4432if test -r ../libtool; then
4433  coin_config_dir=..
4434  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4435fi
4436if test "x$LIBTOOL" = x; then
4437  if test -r ../../libtool; then
4438    coin_config_dir=../..
4439    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4440  fi
4441fi
4442
4443if test "x$LIBTOOL" = x; then
4444# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4445  # Stuff for libtool
4446  # Check whether --enable-shared or --disable-shared was given.
4447if test "${enable_shared+set}" = set; then
4448  enableval="$enable_shared"
4449  p=${PACKAGE-default}
4450    case $enableval in
4451    yes) enable_shared=yes ;;
4452    no) enable_shared=no ;;
4453    *)
4454      enable_shared=no
4455      # Look at the argument we got.  We use all the common list separators.
4456      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4457      for pkg in $enableval; do
4458        IFS="$lt_save_ifs"
4459        if test "X$pkg" = "X$p"; then
4460          enable_shared=yes
4461        fi
4462      done
4463      IFS="$lt_save_ifs"
4464      ;;
4465    esac
4466else
4467  enable_shared=yes
4468fi;
4469
4470# Check whether --enable-fast-install or --disable-fast-install was given.
4471if test "${enable_fast_install+set}" = set; then
4472  enableval="$enable_fast_install"
4473  p=${PACKAGE-default}
4474    case $enableval in
4475    yes) enable_fast_install=yes ;;
4476    no) enable_fast_install=no ;;
4477    *)
4478      enable_fast_install=no
4479      # Look at the argument we got.  We use all the common list separators.
4480      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4481      for pkg in $enableval; do
4482        IFS="$lt_save_ifs"
4483        if test "X$pkg" = "X$p"; then
4484          enable_fast_install=yes
4485        fi
4486      done
4487      IFS="$lt_save_ifs"
4488      ;;
4489    esac
4490else
4491  enable_fast_install=yes
4492fi;
4493
4494echo "$as_me:$LINENO: checking host system type" >&5
4495echo $ECHO_N "checking host system type... $ECHO_C" >&6
4496if test "${ac_cv_host+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  ac_cv_host_alias=$host_alias
4500test -z "$ac_cv_host_alias" &&
4501  ac_cv_host_alias=$ac_cv_build_alias
4502ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4503  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4504echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4505   { (exit 1); exit 1; }; }
4506
4507fi
4508echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4509echo "${ECHO_T}$ac_cv_host" >&6
4510host=$ac_cv_host
4511host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4512host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4513host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4514
4515
4516echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4517echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4518if test "${lt_cv_path_SED+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  # Loop through the user's path and test for sed and gsed.
4522# Then use that list of sed's as ones to test for truncation.
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526  IFS=$as_save_IFS
4527  test -z "$as_dir" && as_dir=.
4528  for lt_ac_prog in sed gsed; do
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4531        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4532      fi
4533    done
4534  done
4535done
4536lt_ac_max=0
4537lt_ac_count=0
4538# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4539# along with /bin/sed that truncates output.
4540for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4541  test ! -f $lt_ac_sed && continue
4542  cat /dev/null > conftest.in
4543  lt_ac_count=0
4544  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4545  # Check for GNU sed and select it if it is found.
4546  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4547    lt_cv_path_SED=$lt_ac_sed
4548    break
4549  fi
4550  while true; do
4551    cat conftest.in conftest.in >conftest.tmp
4552    mv conftest.tmp conftest.in
4553    cp conftest.in conftest.nl
4554    echo >>conftest.nl
4555    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4556    cmp -s conftest.out conftest.nl || break
4557    # 10000 chars as input seems more than enough
4558    test $lt_ac_count -gt 10 && break
4559    lt_ac_count=`expr $lt_ac_count + 1`
4560    if test $lt_ac_count -gt $lt_ac_max; then
4561      lt_ac_max=$lt_ac_count
4562      lt_cv_path_SED=$lt_ac_sed
4563    fi
4564  done
4565done
4566
4567fi
4568
4569SED=$lt_cv_path_SED
4570echo "$as_me:$LINENO: result: $SED" >&5
4571echo "${ECHO_T}$SED" >&6
4572
4573
4574# Check whether --with-gnu-ld or --without-gnu-ld was given.
4575if test "${with_gnu_ld+set}" = set; then
4576  withval="$with_gnu_ld"
4577  test "$withval" = no || with_gnu_ld=yes
4578else
4579  with_gnu_ld=no
4580fi;
4581ac_prog=ld
4582if test "$GCC" = yes; then
4583  # Check if gcc -print-prog-name=ld gives a path.
4584  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4585echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4586  case $host in
4587  *-*-mingw*)
4588    # gcc leaves a trailing carriage return which upsets mingw
4589    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4590  *)
4591    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4592  esac
4593  case $ac_prog in
4594    # Accept absolute paths.
4595    [\\/]* | ?:[\\/]*)
4596      re_direlt='/[^/][^/]*/\.\./'
4597      # Canonicalize the pathname of ld
4598      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4599      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4600        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4601      done
4602      test -z "$LD" && LD="$ac_prog"
4603      ;;
4604  "")
4605    # If it fails, then pretend we aren't using GCC.
4606    ac_prog=ld
4607    ;;
4608  *)
4609    # If it is relative, then search for the first ld in PATH.
4610    with_gnu_ld=unknown
4611    ;;
4612  esac
4613elif test "$with_gnu_ld" = yes; then
4614  echo "$as_me:$LINENO: checking for GNU ld" >&5
4615echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4616else
4617  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4618echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4619fi
4620if test "${lt_cv_path_LD+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  if test -z "$LD"; then
4624  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4625  for ac_dir in $PATH; do
4626    IFS="$lt_save_ifs"
4627    test -z "$ac_dir" && ac_dir=.
4628    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4629      lt_cv_path_LD="$ac_dir/$ac_prog"
4630      # Check to see if the program is GNU ld.  I'd rather use --version,
4631      # but apparently some variants of GNU ld only accept -v.
4632      # Break only if it was the GNU/non-GNU ld that we prefer.
4633      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4634      *GNU* | *'with BFD'*)
4635        test "$with_gnu_ld" != no && break
4636        ;;
4637      *)
4638        test "$with_gnu_ld" != yes && break
4639        ;;
4640      esac
4641    fi
4642  done
4643  IFS="$lt_save_ifs"
4644else
4645  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4646fi
4647fi
4648
4649LD="$lt_cv_path_LD"
4650if test -n "$LD"; then
4651  echo "$as_me:$LINENO: result: $LD" >&5
4652echo "${ECHO_T}$LD" >&6
4653else
4654  echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656fi
4657test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4658echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4659   { (exit 1); exit 1; }; }
4660echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4661echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4662if test "${lt_cv_prog_gnu_ld+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4666case `$LD -v 2>&1 </dev/null` in
4667*GNU* | *'with BFD'*)
4668  lt_cv_prog_gnu_ld=yes
4669  ;;
4670*)
4671  lt_cv_prog_gnu_ld=no
4672  ;;
4673esac
4674fi
4675echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4676echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4677with_gnu_ld=$lt_cv_prog_gnu_ld
4678
4679
4680echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4681echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4682if test "${lt_cv_ld_reload_flag+set}" = set; then
4683  echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685  lt_cv_ld_reload_flag='-r'
4686fi
4687echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4688echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4689reload_flag=$lt_cv_ld_reload_flag
4690case $reload_flag in
4691"" | " "*) ;;
4692*) reload_flag=" $reload_flag" ;;
4693esac
4694reload_cmds='$LD$reload_flag -o $output$reload_objs'
4695case $host_os in
4696  darwin*)
4697    if test "$GCC" = yes; then
4698      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4699    else
4700      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701    fi
4702    ;;
4703esac
4704
4705echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4706echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4707if test "${lt_cv_path_NM+set}" = set; then
4708  echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710  if test -n "$NM"; then
4711  # Let the user override the test.
4712  lt_cv_path_NM="$NM"
4713else
4714  lt_nm_to_check="${ac_tool_prefix}nm"
4715  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4716    lt_nm_to_check="$lt_nm_to_check nm"
4717  fi
4718  for lt_tmp_nm in $lt_nm_to_check; do
4719    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4720    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4721      IFS="$lt_save_ifs"
4722      test -z "$ac_dir" && ac_dir=.
4723      tmp_nm="$ac_dir/$lt_tmp_nm"
4724      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4725        # Check to see if the nm accepts a BSD-compat flag.
4726        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4727        #   nm: unknown option "B" ignored
4728        # Tru64's nm complains that /dev/null is an invalid object file
4729        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4730        */dev/null* | *'Invalid file or object type'*)
4731          lt_cv_path_NM="$tmp_nm -B"
4732          break
4733          ;;
4734        *)
4735          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4736          */dev/null*)
4737            lt_cv_path_NM="$tmp_nm -p"
4738            break
4739            ;;
4740          *)
4741            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4742            continue # so that we can try to find one that supports BSD flags
4743            ;;
4744          esac
4745          ;;
4746        esac
4747      fi
4748    done
4749    IFS="$lt_save_ifs"
4750  done
4751  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4752fi
4753fi
4754echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4755echo "${ECHO_T}$lt_cv_path_NM" >&6
4756NM="$lt_cv_path_NM"
4757
4758echo "$as_me:$LINENO: checking whether ln -s works" >&5
4759echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4760LN_S=$as_ln_s
4761if test "$LN_S" = "ln -s"; then
4762  echo "$as_me:$LINENO: result: yes" >&5
4763echo "${ECHO_T}yes" >&6
4764else
4765  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4766echo "${ECHO_T}no, using $LN_S" >&6
4767fi
4768
4769echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4770echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4771if test "${lt_cv_deplibs_check_method+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  lt_cv_file_magic_cmd='$MAGIC_CMD'
4775lt_cv_file_magic_test_file=
4776lt_cv_deplibs_check_method='unknown'
4777# Need to set the preceding variable on all platforms that support
4778# interlibrary dependencies.
4779# 'none' -- dependencies not supported.
4780# `unknown' -- same as none, but documents that we really don't know.
4781# 'pass_all' -- all dependencies passed with no checks.
4782# 'test_compile' -- check by making test program.
4783# 'file_magic [[regex]]' -- check by looking for files in library path
4784# which responds to the $file_magic_cmd with a given extended regex.
4785# If you have `file' or equivalent on your system and you're not sure
4786# whether `pass_all' will *always* work, you probably want this one.
4787
4788case $host_os in
4789aix4* | aix5*)
4790  lt_cv_deplibs_check_method=pass_all
4791  ;;
4792
4793beos*)
4794  lt_cv_deplibs_check_method=pass_all
4795  ;;
4796
4797bsdi[45]*)
4798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4799  lt_cv_file_magic_cmd='/usr/bin/file -L'
4800  lt_cv_file_magic_test_file=/shlib/libc.so
4801  ;;
4802
4803cygwin*)
4804  # func_win32_libid is a shell function defined in ltmain.sh
4805  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4806  lt_cv_file_magic_cmd='func_win32_libid'
4807  ;;
4808
4809mingw* | pw32*)
4810  # Base MSYS/MinGW do not provide the 'file' command needed by
4811  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4812  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4813  lt_cv_file_magic_cmd='$OBJDUMP -f'
4814  ;;
4815
4816darwin* | rhapsody*)
4817  lt_cv_deplibs_check_method=pass_all
4818  ;;
4819
4820freebsd* | kfreebsd*-gnu | dragonfly*)
4821  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4822    case $host_cpu in
4823    i*86 )
4824      # Not sure whether the presence of OpenBSD here was a mistake.
4825      # Let's accept both of them until this is cleared up.
4826      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4827      lt_cv_file_magic_cmd=/usr/bin/file
4828      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4829      ;;
4830    esac
4831  else
4832    lt_cv_deplibs_check_method=pass_all
4833  fi
4834  ;;
4835
4836gnu*)
4837  lt_cv_deplibs_check_method=pass_all
4838  ;;
4839
4840hpux10.20* | hpux11*)
4841  lt_cv_file_magic_cmd=/usr/bin/file
4842  case $host_cpu in
4843  ia64*)
4844    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4845    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4846    ;;
4847  hppa*64*)
4848    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]'
4849    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4850    ;;
4851  *)
4852    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4853    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4854    ;;
4855  esac
4856  ;;
4857
4858interix3*)
4859  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4860  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4861  ;;
4862
4863irix5* | irix6* | nonstopux*)
4864  case $LD in
4865  *-32|*"-32 ") libmagic=32-bit;;
4866  *-n32|*"-n32 ") libmagic=N32;;
4867  *-64|*"-64 ") libmagic=64-bit;;
4868  *) libmagic=never-match;;
4869  esac
4870  lt_cv_deplibs_check_method=pass_all
4871  ;;
4872
4873# This must be Linux ELF.
4874linux*)
4875  lt_cv_deplibs_check_method=pass_all
4876  ;;
4877
4878netbsd*)
4879  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4880    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4881  else
4882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4883  fi
4884  ;;
4885
4886newos6*)
4887  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4888  lt_cv_file_magic_cmd=/usr/bin/file
4889  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4890  ;;
4891
4892nto-qnx*)
4893  lt_cv_deplibs_check_method=unknown
4894  ;;
4895
4896openbsd*)
4897  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4899  else
4900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4901  fi
4902  ;;
4903
4904osf3* | osf4* | osf5*)
4905  lt_cv_deplibs_check_method=pass_all
4906  ;;
4907
4908solaris*)
4909  lt_cv_deplibs_check_method=pass_all
4910  ;;
4911
4912sysv4 | sysv4.3*)
4913  case $host_vendor in
4914  motorola)
4915    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]'
4916    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4917    ;;
4918  ncr)
4919    lt_cv_deplibs_check_method=pass_all
4920    ;;
4921  sequent)
4922    lt_cv_file_magic_cmd='/bin/file'
4923    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4924    ;;
4925  sni)
4926    lt_cv_file_magic_cmd='/bin/file'
4927    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4928    lt_cv_file_magic_test_file=/lib/libc.so
4929    ;;
4930  siemens)
4931    lt_cv_deplibs_check_method=pass_all
4932    ;;
4933  pc)
4934    lt_cv_deplibs_check_method=pass_all
4935    ;;
4936  esac
4937  ;;
4938
4939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4940  lt_cv_deplibs_check_method=pass_all
4941  ;;
4942esac
4943
4944fi
4945echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4946echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4947file_magic_cmd=$lt_cv_file_magic_cmd
4948deplibs_check_method=$lt_cv_deplibs_check_method
4949test -z "$deplibs_check_method" && deplibs_check_method=unknown
4950
4951
4952
4953
4954# If no C compiler was specified, use CC.
4955LTCC=${LTCC-"$CC"}
4956
4957# If no C compiler flags were specified, use CFLAGS.
4958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4959
4960# Allow CC to be a program name with arguments.
4961compiler=$CC
4962
4963# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4964if test "${enable_libtool_lock+set}" = set; then
4965  enableval="$enable_libtool_lock"
4966
4967fi;
4968test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4969
4970# Some flags need to be propagated to the compiler or linker for good
4971# libtool support.
4972case $host in
4973ia64-*-hpux*)
4974  # Find out which ABI we are using.
4975  echo 'int i;' > conftest.$ac_ext
4976  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977  (eval $ac_compile) 2>&5
4978  ac_status=$?
4979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); }; then
4981    case `/usr/bin/file conftest.$ac_objext` in
4982    *ELF-32*)
4983      HPUX_IA64_MODE="32"
4984      ;;
4985    *ELF-64*)
4986      HPUX_IA64_MODE="64"
4987      ;;
4988    esac
4989  fi
4990  rm -rf conftest*
4991  ;;
4992*-*-irix6*)
4993  # Find out which ABI we are using.
4994  echo '#line 4994 "configure"' > conftest.$ac_ext
4995  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996  (eval $ac_compile) 2>&5
4997  ac_status=$?
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); }; then
5000   if test "$lt_cv_prog_gnu_ld" = yes; then
5001    case `/usr/bin/file conftest.$ac_objext` in
5002    *32-bit*)
5003      LD="${LD-ld} -melf32bsmip"
5004      ;;
5005    *N32*)
5006      LD="${LD-ld} -melf32bmipn32"
5007      ;;
5008    *64-bit*)
5009      LD="${LD-ld} -melf64bmip"
5010      ;;
5011    esac
5012   else
5013    case `/usr/bin/file conftest.$ac_objext` in
5014    *32-bit*)
5015      LD="${LD-ld} -32"
5016      ;;
5017    *N32*)
5018      LD="${LD-ld} -n32"
5019      ;;
5020    *64-bit*)
5021      LD="${LD-ld} -64"
5022      ;;
5023    esac
5024   fi
5025  fi
5026  rm -rf conftest*
5027  ;;
5028
5029x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5030  # Find out which ABI we are using.
5031  echo 'int i;' > conftest.$ac_ext
5032  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033  (eval $ac_compile) 2>&5
5034  ac_status=$?
5035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036  (exit $ac_status); }; then
5037    case `/usr/bin/file conftest.o` in
5038    *32-bit*)
5039      case $host in
5040        x86_64-*linux*)
5041          LD="${LD-ld} -m elf_i386"
5042          ;;
5043        ppc64-*linux*|powerpc64-*linux*)
5044          LD="${LD-ld} -m elf32ppclinux"
5045          ;;
5046        s390x-*linux*)
5047          LD="${LD-ld} -m elf_s390"
5048          ;;
5049        sparc64-*linux*)
5050          LD="${LD-ld} -m elf32_sparc"
5051          ;;
5052      esac
5053      ;;
5054    *64-bit*)
5055      case $host in
5056        x86_64-*linux*)
5057          LD="${LD-ld} -m elf_x86_64"
5058          ;;
5059        ppc*-*linux*|powerpc*-*linux*)
5060          LD="${LD-ld} -m elf64ppc"
5061          ;;
5062        s390*-*linux*)
5063          LD="${LD-ld} -m elf64_s390"
5064          ;;
5065        sparc*-*linux*)
5066          LD="${LD-ld} -m elf64_sparc"
5067          ;;
5068      esac
5069      ;;
5070    esac
5071  fi
5072  rm -rf conftest*
5073  ;;
5074
5075*-*-sco3.2v5*)
5076  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5077  SAVE_CFLAGS="$CFLAGS"
5078  CFLAGS="$CFLAGS -belf"
5079  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5080echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5081if test "${lt_cv_cc_needs_belf+set}" = set; then
5082  echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084  ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090     cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096
5097int
5098main ()
5099{
5100
5101  ;
5102  return 0;
5103}
5104_ACEOF
5105rm -f conftest.$ac_objext conftest$ac_exeext
5106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107  (eval $ac_link) 2>conftest.er1
5108  ac_status=$?
5109  grep -v '^ *+' conftest.er1 >conftest.err
5110  rm -f conftest.er1
5111  cat conftest.err >&5
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); } &&
5114         { ac_try='test -z "$ac_c_werror_flag"
5115                         || test ! -s conftest.err'
5116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117  (eval $ac_try) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }; } &&
5121         { ac_try='test -s conftest$ac_exeext'
5122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123  (eval $ac_try) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }; }; then
5127  lt_cv_cc_needs_belf=yes
5128else
5129  echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
5132lt_cv_cc_needs_belf=no
5133fi
5134rm -f conftest.err conftest.$ac_objext \
5135      conftest$ac_exeext conftest.$ac_ext
5136     ac_ext=c
5137ac_cpp='$CPP $CPPFLAGS'
5138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141
5142fi
5143echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5144echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5145  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5146    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5147    CFLAGS="$SAVE_CFLAGS"
5148  fi
5149  ;;
5150sparc*-*solaris*)
5151  # Find out which ABI we are using.
5152  echo 'int i;' > conftest.$ac_ext
5153  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154  (eval $ac_compile) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); }; then
5158    case `/usr/bin/file conftest.o` in
5159    *64-bit*)
5160      case $lt_cv_prog_gnu_ld in
5161      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5162      *)    LD="${LD-ld} -64" ;;
5163      esac
5164      ;;
5165    esac
5166  fi
5167  rm -rf conftest*
5168  ;;
5169
5170
5171esac
5172
5173need_locks="$enable_libtool_lock"
5174
5175
5176ac_ext=c
5177ac_cpp='$CPP $CPPFLAGS'
5178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5182echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5183# On Suns, sometimes $CPP names a directory.
5184if test -n "$CPP" && test -d "$CPP"; then
5185  CPP=
5186fi
5187if test -z "$CPP"; then
5188  if test "${ac_cv_prog_CPP+set}" = set; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191      # Double quotes because CPP needs to be expanded
5192    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5193    do
5194      ac_preproc_ok=false
5195for ac_c_preproc_warn_flag in '' yes
5196do
5197  # Use a header file that comes with gcc, so configuring glibc
5198  # with a fresh cross-compiler works.
5199  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200  # <limits.h> exists even on freestanding compilers.
5201  # On the NeXT, cc -E runs the code through the compiler's parser,
5202  # not just through cpp. "Syntax error" is here to catch this case.
5203  cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h.  */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h.  */
5209#ifdef __STDC__
5210# include <limits.h>
5211#else
5212# include <assert.h>
5213#endif
5214                     Syntax error
5215_ACEOF
5216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } >/dev/null; then
5224  if test -s conftest.err; then
5225    ac_cpp_err=$ac_c_preproc_warn_flag
5226    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5227  else
5228    ac_cpp_err=
5229  fi
5230else
5231  ac_cpp_err=yes
5232fi
5233if test -z "$ac_cpp_err"; then
5234  :
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239  # Broken: fails on valid input.
5240continue
5241fi
5242rm -f conftest.err conftest.$ac_ext
5243
5244  # OK, works on sane cases.  Now check whether non-existent headers
5245  # can be detected and how.
5246  cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h.  */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h.  */
5252#include <ac_nonexistent.h>
5253_ACEOF
5254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256  ac_status=$?
5257  grep -v '^ *+' conftest.er1 >conftest.err
5258  rm -f conftest.er1
5259  cat conftest.err >&5
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); } >/dev/null; then
5262  if test -s conftest.err; then
5263    ac_cpp_err=$ac_c_preproc_warn_flag
5264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265  else
5266    ac_cpp_err=
5267  fi
5268else
5269  ac_cpp_err=yes
5270fi
5271if test -z "$ac_cpp_err"; then
5272  # Broken: success on invalid input.
5273continue
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278  # Passes both tests.
5279ac_preproc_ok=:
5280break
5281fi
5282rm -f conftest.err conftest.$ac_ext
5283
5284done
5285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5286rm -f conftest.err conftest.$ac_ext
5287if $ac_preproc_ok; then
5288  break
5289fi
5290
5291    done
5292    ac_cv_prog_CPP=$CPP
5293
5294fi
5295  CPP=$ac_cv_prog_CPP
5296else
5297  ac_cv_prog_CPP=$CPP
5298fi
5299echo "$as_me:$LINENO: result: $CPP" >&5
5300echo "${ECHO_T}$CPP" >&6
5301ac_preproc_ok=false
5302for ac_c_preproc_warn_flag in '' yes
5303do
5304  # Use a header file that comes with gcc, so configuring glibc
5305  # with a fresh cross-compiler works.
5306  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5307  # <limits.h> exists even on freestanding compilers.
5308  # On the NeXT, cc -E runs the code through the compiler's parser,
5309  # not just through cpp. "Syntax error" is here to catch this case.
5310  cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h.  */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h.  */
5316#ifdef __STDC__
5317# include <limits.h>
5318#else
5319# include <assert.h>
5320#endif
5321                     Syntax error
5322_ACEOF
5323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5325  ac_status=$?
5326  grep -v '^ *+' conftest.er1 >conftest.err
5327  rm -f conftest.er1
5328  cat conftest.err >&5
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); } >/dev/null; then
5331  if test -s conftest.err; then
5332    ac_cpp_err=$ac_c_preproc_warn_flag
5333    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5334  else
5335    ac_cpp_err=
5336  fi
5337else
5338  ac_cpp_err=yes
5339fi
5340if test -z "$ac_cpp_err"; then
5341  :
5342else
5343  echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346  # Broken: fails on valid input.
5347continue
5348fi
5349rm -f conftest.err conftest.$ac_ext
5350
5351  # OK, works on sane cases.  Now check whether non-existent headers
5352  # can be detected and how.
5353  cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h.  */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h.  */
5359#include <ac_nonexistent.h>
5360_ACEOF
5361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } >/dev/null; then
5369  if test -s conftest.err; then
5370    ac_cpp_err=$ac_c_preproc_warn_flag
5371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372  else
5373    ac_cpp_err=
5374  fi
5375else
5376  ac_cpp_err=yes
5377fi
5378if test -z "$ac_cpp_err"; then
5379  # Broken: success on invalid input.
5380continue
5381else
5382  echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385  # Passes both tests.
5386ac_preproc_ok=:
5387break
5388fi
5389rm -f conftest.err conftest.$ac_ext
5390
5391done
5392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5393rm -f conftest.err conftest.$ac_ext
5394if $ac_preproc_ok; then
5395  :
5396else
5397  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5398See \`config.log' for more details." >&5
5399echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5400See \`config.log' for more details." >&2;}
5401   { (exit 1); exit 1; }; }
5402fi
5403
5404ac_ext=c
5405ac_cpp='$CPP $CPPFLAGS'
5406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409
5410
5411echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5412echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5413if test "${ac_cv_header_stdc+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422#include <stdlib.h>
5423#include <stdarg.h>
5424#include <string.h>
5425#include <float.h>
5426
5427int
5428main ()
5429{
5430
5431  ;
5432  return 0;
5433}
5434_ACEOF
5435rm -f conftest.$ac_objext
5436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437  (eval $ac_compile) 2>conftest.er1
5438  ac_status=$?
5439  grep -v '^ *+' conftest.er1 >conftest.err
5440  rm -f conftest.er1
5441  cat conftest.err >&5
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); } &&
5444         { ac_try='test -z "$ac_c_werror_flag"
5445                         || test ! -s conftest.err'
5446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447  (eval $ac_try) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; } &&
5451         { ac_try='test -s conftest.$ac_objext'
5452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453  (eval $ac_try) 2>&5
5454  ac_status=$?
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }; }; then
5457  ac_cv_header_stdc=yes
5458else
5459  echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462ac_cv_header_stdc=no
5463fi
5464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466if test $ac_cv_header_stdc = yes; then
5467  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468  cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h.  */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h.  */
5474#include <string.h>
5475
5476_ACEOF
5477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5478  $EGREP "memchr" >/dev/null 2>&1; then
5479  :
5480else
5481  ac_cv_header_stdc=no
5482fi
5483rm -f conftest*
5484
5485fi
5486
5487if test $ac_cv_header_stdc = yes; then
5488  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489  cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495#include <stdlib.h>
5496
5497_ACEOF
5498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5499  $EGREP "free" >/dev/null 2>&1; then
5500  :
5501else
5502  ac_cv_header_stdc=no
5503fi
5504rm -f conftest*
5505
5506fi
5507
5508if test $ac_cv_header_stdc = yes; then
5509  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5510  if test "$cross_compiling" = yes; then
5511  :
5512else
5513  cat >conftest.$ac_ext <<_ACEOF
5514/* confdefs.h.  */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h.  */
5519#include <ctype.h>
5520#if ((' ' & 0x0FF) == 0x020)
5521# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523#else
5524# define ISLOWER(c) \
5525                   (('a' <= (c) && (c) <= 'i') \
5526                     || ('j' <= (c) && (c) <= 'r') \
5527                     || ('s' <= (c) && (c) <= 'z'))
5528# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5529#endif
5530
5531#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5532int
5533main ()
5534{
5535  int i;
5536  for (i = 0; i < 256; i++)
5537    if (XOR (islower (i), ISLOWER (i))
5538        || toupper (i) != TOUPPER (i))
5539      exit(2);
5540  exit (0);
5541}
5542_ACEOF
5543rm -f conftest$ac_exeext
5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545  (eval $ac_link) 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550  (eval $ac_try) 2>&5
5551  ac_status=$?
5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); }; }; then
5554  :
5555else
5556  echo "$as_me: program exited with status $ac_status" >&5
5557echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560( exit $ac_status )
5561ac_cv_header_stdc=no
5562fi
5563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5564fi
5565fi
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5568echo "${ECHO_T}$ac_cv_header_stdc" >&6
5569if test $ac_cv_header_stdc = yes; then
5570
5571cat >>confdefs.h <<\_ACEOF
5572#define STDC_HEADERS 1
5573_ACEOF
5574
5575fi
5576
5577# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5588                  inttypes.h stdint.h unistd.h
5589do
5590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591echo "$as_me:$LINENO: checking for $ac_header" >&5
5592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5593if eval "test \"\${$as_ac_Header+set}\" = set"; then
5594  echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596  cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602$ac_includes_default
5603
5604#include <$ac_header>
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608  (eval $ac_compile) 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } &&
5615         { ac_try='test -z "$ac_c_werror_flag"
5616                         || test ! -s conftest.err'
5617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618  (eval $ac_try) 2>&5
5619  ac_status=$?
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); }; } &&
5622         { ac_try='test -s conftest.$ac_objext'
5623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624  (eval $ac_try) 2>&5
5625  ac_status=$?
5626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); }; }; then
5628  eval "$as_ac_Header=yes"
5629else
5630  echo "$as_me: failed program was:" >&5
5631sed 's/^/| /' conftest.$ac_ext >&5
5632
5633eval "$as_ac_Header=no"
5634fi
5635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5636fi
5637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5639if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640  cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645
5646done
5647
5648
5649
5650for ac_header in dlfcn.h
5651do
5652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5653if eval "test \"\${$as_ac_Header+set}\" = set"; then
5654  echo "$as_me:$LINENO: checking for $ac_header" >&5
5655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5656if eval "test \"\${$as_ac_Header+set}\" = set"; then
5657  echo $ECHO_N "(cached) $ECHO_C" >&6
5658fi
5659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661else
5662  # Is the header compilable?
5663echo "$as_me:$LINENO: checking $ac_header usability" >&5
5664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5665cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h.  */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
5670/* end confdefs.h.  */
5671$ac_includes_default
5672#include <$ac_header>
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676  (eval $ac_compile) 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } &&
5683         { ac_try='test -z "$ac_c_werror_flag"
5684                         || test ! -s conftest.err'
5685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686  (eval $ac_try) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; } &&
5690         { ac_try='test -s conftest.$ac_objext'
5691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692  (eval $ac_try) 2>&5
5693  ac_status=$?
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); }; }; then
5696  ac_header_compiler=yes
5697else
5698  echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701ac_header_compiler=no
5702fi
5703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5705echo "${ECHO_T}$ac_header_compiler" >&6
5706
5707# Is the header present?
5708echo "$as_me:$LINENO: checking $ac_header presence" >&5
5709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5710cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h.  */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h.  */
5716#include <$ac_header>
5717_ACEOF
5718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5719  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5720  ac_status=$?
5721  grep -v '^ *+' conftest.er1 >conftest.err
5722  rm -f conftest.er1
5723  cat conftest.err >&5
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); } >/dev/null; then
5726  if test -s conftest.err; then
5727    ac_cpp_err=$ac_c_preproc_warn_flag
5728    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5729  else
5730    ac_cpp_err=
5731  fi
5732else
5733  ac_cpp_err=yes
5734fi
5735if test -z "$ac_cpp_err"; then
5736  ac_header_preproc=yes
5737else
5738  echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741  ac_header_preproc=no
5742fi
5743rm -f conftest.err conftest.$ac_ext
5744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5745echo "${ECHO_T}$ac_header_preproc" >&6
5746
5747# So?  What about this header?
5748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5749  yes:no: )
5750    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5752    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5754    ac_header_preproc=yes
5755    ;;
5756  no:yes:* )
5757    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5759    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5760echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5761    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5763    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5764echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5767    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5769    (
5770      cat <<\_ASBOX
5771## --------------------------------------------------------------- ##
5772## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5773## --------------------------------------------------------------- ##
5774_ASBOX
5775    ) |
5776      sed "s/^/$as_me: WARNING:     /" >&2
5777    ;;
5778esac
5779echo "$as_me:$LINENO: checking for $ac_header" >&5
5780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5781if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782  echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784  eval "$as_ac_Header=\$ac_header_preproc"
5785fi
5786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788
5789fi
5790if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791  cat >>confdefs.h <<_ACEOF
5792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793_ACEOF
5794
5795fi
5796
5797done
5798
5799ac_ext=cc
5800ac_cpp='$CXXCPP $CPPFLAGS'
5801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5804if test -n "$ac_tool_prefix"; then
5805  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5806  do
5807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5809echo "$as_me:$LINENO: checking for $ac_word" >&5
5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811if test "${ac_cv_prog_CXX+set}" = set; then
5812  echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
5814  if test -n "$CXX"; then
5815  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820  IFS=$as_save_IFS
5821  test -z "$as_dir" && as_dir=.
5822  for ac_exec_ext in '' $ac_executable_extensions; do
5823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826    break 2
5827  fi
5828done
5829done
5830
5831fi
5832fi
5833CXX=$ac_cv_prog_CXX
5834if test -n "$CXX"; then
5835  echo "$as_me:$LINENO: result: $CXX" >&5
5836echo "${ECHO_T}$CXX" >&6
5837else
5838  echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840fi
5841
5842    test -n "$CXX" && break
5843  done
5844fi
5845if test -z "$CXX"; then
5846  ac_ct_CXX=$CXX
5847  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5848do
5849  # Extract the first word of "$ac_prog", so it can be a program name with args.
5850set dummy $ac_prog; ac_word=$2
5851echo "$as_me:$LINENO: checking for $ac_word" >&5
5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5854  echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856  if test -n "$ac_ct_CXX"; then
5857  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864  for ac_exec_ext in '' $ac_executable_extensions; do
5865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866    ac_cv_prog_ac_ct_CXX="$ac_prog"
5867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871done
5872
5873fi
5874fi
5875ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5876if test -n "$ac_ct_CXX"; then
5877  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5878echo "${ECHO_T}$ac_ct_CXX" >&6
5879else
5880  echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882fi
5883
5884  test -n "$ac_ct_CXX" && break
5885done
5886test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5887
5888  CXX=$ac_ct_CXX
5889fi
5890
5891
5892# Provide some information about the compiler.
5893echo "$as_me:$LINENO:" \
5894     "checking for C++ compiler version" >&5
5895ac_compiler=`set X $ac_compile; echo $2`
5896{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5897  (eval $ac_compiler --version </dev/null >&5) 2>&5
5898  ac_status=$?
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); }
5901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5902  (eval $ac_compiler -v </dev/null >&5) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }
5906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5907  (eval $ac_compiler -V </dev/null >&5) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }
5911
5912echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5913echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5914if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923
5924int
5925main ()
5926{
5927#ifndef __GNUC__
5928       choke me
5929#endif
5930
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937  (eval $ac_compile) 2>conftest.er1
5938  ac_status=$?
5939  grep -v '^ *+' conftest.er1 >conftest.err
5940  rm -f conftest.er1
5941  cat conftest.err >&5
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } &&
5944         { ac_try='test -z "$ac_cxx_werror_flag"
5945                         || test ! -s conftest.err'
5946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947  (eval $ac_try) 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); }; } &&
5951         { ac_try='test -s conftest.$ac_objext'
5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953  (eval $ac_try) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); }; }; then
5957  ac_compiler_gnu=yes
5958else
5959  echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962ac_compiler_gnu=no
5963fi
5964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5966
5967fi
5968echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5969echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5970GXX=`test $ac_compiler_gnu = yes && echo yes`
5971ac_test_CXXFLAGS=${CXXFLAGS+set}
5972ac_save_CXXFLAGS=$CXXFLAGS
5973CXXFLAGS="-g"
5974echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5975echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5976if test "${ac_cv_prog_cxx_g+set}" = set; then
5977  echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979  cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h.  */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h.  */
5985
5986int
5987main ()
5988{
5989
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext
5995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996  (eval $ac_compile) 2>conftest.er1
5997  ac_status=$?
5998  grep -v '^ *+' conftest.er1 >conftest.err
5999  rm -f conftest.er1
6000  cat conftest.err >&5
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); } &&
6003         { ac_try='test -z "$ac_cxx_werror_flag"
6004                         || test ! -s conftest.err'
6005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006  (eval $ac_try) 2>&5
6007  ac_status=$?
6008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009  (exit $ac_status); }; } &&
6010         { ac_try='test -s conftest.$ac_objext'
6011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012  (eval $ac_try) 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); }; }; then
6016  ac_cv_prog_cxx_g=yes
6017else
6018  echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021ac_cv_prog_cxx_g=no
6022fi
6023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024fi
6025echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6026echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6027if test "$ac_test_CXXFLAGS" = set; then
6028  CXXFLAGS=$ac_save_CXXFLAGS
6029elif test $ac_cv_prog_cxx_g = yes; then
6030  if test "$GXX" = yes; then
6031    CXXFLAGS="-g -O2"
6032  else
6033    CXXFLAGS="-g"
6034  fi
6035else
6036  if test "$GXX" = yes; then
6037    CXXFLAGS="-O2"
6038  else
6039    CXXFLAGS=
6040  fi
6041fi
6042for ac_declaration in \
6043   '' \
6044   'extern "C" void std::exit (int) throw (); using std::exit;' \
6045   'extern "C" void std::exit (int); using std::exit;' \
6046   'extern "C" void exit (int) throw ();' \
6047   'extern "C" void exit (int);' \
6048   'void exit (int);'
6049do
6050  cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h.  */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h.  */
6056$ac_declaration
6057#include <stdlib.h>
6058int
6059main ()
6060{
6061exit (42);
6062  ;
6063  return 0;
6064}
6065_ACEOF
6066rm -f conftest.$ac_objext
6067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068  (eval $ac_compile) 2>conftest.er1
6069  ac_status=$?
6070  grep -v '^ *+' conftest.er1 >conftest.err
6071  rm -f conftest.er1
6072  cat conftest.err >&5
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); } &&
6075         { ac_try='test -z "$ac_cxx_werror_flag"
6076                         || test ! -s conftest.err'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; } &&
6082         { ac_try='test -s conftest.$ac_objext'
6083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084  (eval $ac_try) 2>&5
6085  ac_status=$?
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); }; }; then
6088  :
6089else
6090  echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093continue
6094fi
6095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096  cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h.  */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h.  */
6102$ac_declaration
6103int
6104main ()
6105{
6106exit (42);
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext
6112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113  (eval $ac_compile) 2>conftest.er1
6114  ac_status=$?
6115  grep -v '^ *+' conftest.er1 >conftest.err
6116  rm -f conftest.er1
6117  cat conftest.err >&5
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); } &&
6120         { ac_try='test -z "$ac_cxx_werror_flag"
6121                         || test ! -s conftest.err'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; } &&
6127         { ac_try='test -s conftest.$ac_objext'
6128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129  (eval $ac_try) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; }; then
6133  break
6134else
6135  echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138fi
6139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6140done
6141rm -f conftest*
6142if test -n "$ac_declaration"; then
6143  echo '#ifdef __cplusplus' >>confdefs.h
6144  echo $ac_declaration      >>confdefs.h
6145  echo '#endif'             >>confdefs.h
6146fi
6147
6148ac_ext=cc
6149ac_cpp='$CXXCPP $CPPFLAGS'
6150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6153
6154depcc="$CXX"  am_compiler_list=
6155
6156echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6157echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6158if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6159  echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6162  # We make a subdir and do the tests there.  Otherwise we can end up
6163  # making bogus files that we don't know about and never remove.  For
6164  # instance it was reported that on HP-UX the gcc test will end up
6165  # making a dummy file named `D' -- because `-MD' means `put the output
6166  # in D'.
6167  mkdir conftest.dir
6168  # Copy depcomp to subdir because otherwise we won't find it if we're
6169  # using a relative directory.
6170  cp "$am_depcomp" conftest.dir
6171  cd conftest.dir
6172  # We will build objects and dependencies in a subdirectory because
6173  # it helps to detect inapplicable dependency modes.  For instance
6174  # both Tru64's cc and ICC support -MD to output dependencies as a
6175  # side effect of compilation, but ICC will put the dependencies in
6176  # the current directory while Tru64 will put them in the object
6177  # directory.
6178  mkdir sub
6179
6180  am_cv_CXX_dependencies_compiler_type=none
6181  if test "$am_compiler_list" = ""; then
6182     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6183  fi
6184  for depmode in $am_compiler_list; do
6185    # Setup a source with many dependencies, because some compilers
6186    # like to wrap large dependency lists on column 80 (with \), and
6187    # we should not choose a depcomp mode which is confused by this.
6188    #
6189    # We need to recreate these files for each test, as the compiler may
6190    # overwrite some of them when testing with obscure command lines.
6191    # This happens at least with the AIX C compiler.
6192    : > sub/conftest.c
6193    for i in 1 2 3 4 5 6; do
6194      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6195      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6196      # Solaris 8's {/usr,}/bin/sh.
6197      touch sub/conftst$i.h
6198    done
6199    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6200
6201    case $depmode in
6202    nosideeffect)
6203      # after this tag, mechanisms are not by side-effect, so they'll
6204      # only be used when explicitly requested
6205      if test "x$enable_dependency_tracking" = xyes; then
6206        continue
6207      else
6208        break
6209      fi
6210      ;;
6211    none) break ;;
6212    esac
6213    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6214    # mode.  It turns out that the SunPro C++ compiler does not properly
6215    # handle `-M -o', and we need to detect this.
6216    if depmode=$depmode \
6217       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6218       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6219       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6220         >/dev/null 2>conftest.err &&
6221       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6222       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6223       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6224      # icc doesn't choke on unknown options, it will just issue warnings
6225      # or remarks (even with -Werror).  So we grep stderr for any message
6226      # that says an option was ignored or not supported.
6227      # When given -MP, icc 7.0 and 7.1 complain thusly:
6228      #   icc: Command line warning: ignoring option '-M'; no argument required
6229      # The diagnosis changed in icc 8.0:
6230      #   icc: Command line remark: option '-MP' not supported
6231      if (grep 'ignoring option' conftest.err ||
6232          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6233        am_cv_CXX_dependencies_compiler_type=$depmode
6234        break
6235      fi
6236    fi
6237  done
6238
6239  cd ..
6240  rm -rf conftest.dir
6241else
6242  am_cv_CXX_dependencies_compiler_type=none
6243fi
6244
6245fi
6246echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6247echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6248CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6249
6250
6251
6252if
6253  test "x$enable_dependency_tracking" != xno \
6254  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6255  am__fastdepCXX_TRUE=
6256  am__fastdepCXX_FALSE='#'
6257else
6258  am__fastdepCXX_TRUE='#'
6259  am__fastdepCXX_FALSE=
6260fi
6261
6262
6263
6264
6265if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6266    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6267    (test "X$CXX" != "Xg++"))) ; then
6268  ac_ext=cc
6269ac_cpp='$CXXCPP $CPPFLAGS'
6270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6273echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6274echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6275if test -z "$CXXCPP"; then
6276  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6277  echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279      # Double quotes because CXXCPP needs to be expanded
6280    for CXXCPP in "$CXX -E" "/lib/cpp"
6281    do
6282      ac_preproc_ok=false
6283for ac_cxx_preproc_warn_flag in '' yes
6284do
6285  # Use a header file that comes with gcc, so configuring glibc
6286  # with a fresh cross-compiler works.
6287  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6288  # <limits.h> exists even on freestanding compilers.
6289  # On the NeXT, cc -E runs the code through the compiler's parser,
6290  # not just through cpp. "Syntax error" is here to catch this case.
6291  cat >conftest.$ac_ext <<_ACEOF
6292/* confdefs.h.  */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h.  */
6297#ifdef __STDC__
6298# include <limits.h>
6299#else
6300# include <assert.h>
6301#endif
6302                     Syntax error
6303_ACEOF
6304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6305  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6306  ac_status=$?
6307  grep -v '^ *+' conftest.er1 >conftest.err
6308  rm -f conftest.er1
6309  cat conftest.err >&5
6310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311  (exit $ac_status); } >/dev/null; then
6312  if test -s conftest.err; then
6313    ac_cpp_err=$ac_cxx_preproc_warn_flag
6314    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6315  else
6316    ac_cpp_err=
6317  fi
6318else
6319  ac_cpp_err=yes
6320fi
6321if test -z "$ac_cpp_err"; then
6322  :
6323else
6324  echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327  # Broken: fails on valid input.
6328continue
6329fi
6330rm -f conftest.err conftest.$ac_ext
6331
6332  # OK, works on sane cases.  Now check whether non-existent headers
6333  # can be detected and how.
6334  cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h.  */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h.  */
6340#include <ac_nonexistent.h>
6341_ACEOF
6342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344  ac_status=$?
6345  grep -v '^ *+' conftest.er1 >conftest.err
6346  rm -f conftest.er1
6347  cat conftest.err >&5
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); } >/dev/null; then
6350  if test -s conftest.err; then
6351    ac_cpp_err=$ac_cxx_preproc_warn_flag
6352    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6353  else
6354    ac_cpp_err=
6355  fi
6356else
6357  ac_cpp_err=yes
6358fi
6359if test -z "$ac_cpp_err"; then
6360  # Broken: success on invalid input.
6361continue
6362else
6363  echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366  # Passes both tests.
6367ac_preproc_ok=:
6368break
6369fi
6370rm -f conftest.err conftest.$ac_ext
6371
6372done
6373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6374rm -f conftest.err conftest.$ac_ext
6375if $ac_preproc_ok; then
6376  break
6377fi
6378
6379    done
6380    ac_cv_prog_CXXCPP=$CXXCPP
6381
6382fi
6383  CXXCPP=$ac_cv_prog_CXXCPP
6384else
6385  ac_cv_prog_CXXCPP=$CXXCPP
6386fi
6387echo "$as_me:$LINENO: result: $CXXCPP" >&5
6388echo "${ECHO_T}$CXXCPP" >&6
6389ac_preproc_ok=false
6390for ac_cxx_preproc_warn_flag in '' yes
6391do
6392  # Use a header file that comes with gcc, so configuring glibc
6393  # with a fresh cross-compiler works.
6394  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6395  # <limits.h> exists even on freestanding compilers.
6396  # On the NeXT, cc -E runs the code through the compiler's parser,
6397  # not just through cpp. "Syntax error" is here to catch this case.
6398  cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h.  */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h.  */
6404#ifdef __STDC__
6405# include <limits.h>
6406#else
6407# include <assert.h>
6408#endif
6409                     Syntax error
6410_ACEOF
6411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6412  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6413  ac_status=$?
6414  grep -v '^ *+' conftest.er1 >conftest.err
6415  rm -f conftest.er1
6416  cat conftest.err >&5
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); } >/dev/null; then
6419  if test -s conftest.err; then
6420    ac_cpp_err=$ac_cxx_preproc_warn_flag
6421    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6422  else
6423    ac_cpp_err=
6424  fi
6425else
6426  ac_cpp_err=yes
6427fi
6428if test -z "$ac_cpp_err"; then
6429  :
6430else
6431  echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434  # Broken: fails on valid input.
6435continue
6436fi
6437rm -f conftest.err conftest.$ac_ext
6438
6439  # OK, works on sane cases.  Now check whether non-existent headers
6440  # can be detected and how.
6441  cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h.  */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h.  */
6447#include <ac_nonexistent.h>
6448_ACEOF
6449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6451  ac_status=$?
6452  grep -v '^ *+' conftest.er1 >conftest.err
6453  rm -f conftest.er1
6454  cat conftest.err >&5
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); } >/dev/null; then
6457  if test -s conftest.err; then
6458    ac_cpp_err=$ac_cxx_preproc_warn_flag
6459    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6460  else
6461    ac_cpp_err=
6462  fi
6463else
6464  ac_cpp_err=yes
6465fi
6466if test -z "$ac_cpp_err"; then
6467  # Broken: success on invalid input.
6468continue
6469else
6470  echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
6473  # Passes both tests.
6474ac_preproc_ok=:
6475break
6476fi
6477rm -f conftest.err conftest.$ac_ext
6478
6479done
6480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6481rm -f conftest.err conftest.$ac_ext
6482if $ac_preproc_ok; then
6483  :
6484else
6485  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6486See \`config.log' for more details." >&5
6487echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6488See \`config.log' for more details." >&2;}
6489   { (exit 1); exit 1; }; }
6490fi
6491
6492ac_ext=cc
6493ac_cpp='$CXXCPP $CPPFLAGS'
6494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6497
6498fi
6499
6500
6501ac_ext=f
6502ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6503ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6505if test -n "$ac_tool_prefix"; then
6506  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6507  do
6508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6510echo "$as_me:$LINENO: checking for $ac_word" >&5
6511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6512if test "${ac_cv_prog_F77+set}" = set; then
6513  echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515  if test -n "$F77"; then
6516  ac_cv_prog_F77="$F77" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521  IFS=$as_save_IFS
6522  test -z "$as_dir" && as_dir=.
6523  for ac_exec_ext in '' $ac_executable_extensions; do
6524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527    break 2
6528  fi
6529done
6530done
6531
6532fi
6533fi
6534F77=$ac_cv_prog_F77
6535if test -n "$F77"; then
6536  echo "$as_me:$LINENO: result: $F77" >&5
6537echo "${ECHO_T}$F77" >&6
6538else
6539  echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541fi
6542
6543    test -n "$F77" && break
6544  done
6545fi
6546if test -z "$F77"; then
6547  ac_ct_F77=$F77
6548  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6549do
6550  # Extract the first word of "$ac_prog", so it can be a program name with args.
6551set dummy $ac_prog; ac_word=$2
6552echo "$as_me:$LINENO: checking for $ac_word" >&5
6553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6554if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557  if test -n "$ac_ct_F77"; then
6558  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6559else
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563  IFS=$as_save_IFS
6564  test -z "$as_dir" && as_dir=.
6565  for ac_exec_ext in '' $ac_executable_extensions; do
6566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567    ac_cv_prog_ac_ct_F77="$ac_prog"
6568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572done
6573
6574fi
6575fi
6576ac_ct_F77=$ac_cv_prog_ac_ct_F77
6577if test -n "$ac_ct_F77"; then
6578  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6579echo "${ECHO_T}$ac_ct_F77" >&6
6580else
6581  echo "$as_me:$LINENO: result: no" >&5
6582echo "${ECHO_T}no" >&6
6583fi
6584
6585  test -n "$ac_ct_F77" && break
6586done
6587
6588  F77=$ac_ct_F77
6589fi
6590
6591
6592# Provide some information about the compiler.
6593echo "$as_me:6593:" \
6594     "checking for Fortran 77 compiler version" >&5
6595ac_compiler=`set X $ac_compile; echo $2`
6596{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6597  (eval $ac_compiler --version </dev/null >&5) 2>&5
6598  ac_status=$?
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); }
6601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6602  (eval $ac_compiler -v </dev/null >&5) 2>&5
6603  ac_status=$?
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); }
6606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6607  (eval $ac_compiler -V </dev/null >&5) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }
6611rm -f a.out
6612
6613# If we don't use `.F' as extension, the preprocessor is not run on the
6614# input file.  (Note that this only needs to work for GNU compilers.)
6615ac_save_ext=$ac_ext
6616ac_ext=F
6617echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6618echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6619if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6620  echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622  cat >conftest.$ac_ext <<_ACEOF
6623      program main
6624#ifndef __GNUC__
6625       choke me
6626#endif
6627
6628      end
6629_ACEOF
6630rm -f conftest.$ac_objext
6631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632  (eval $ac_compile) 2>conftest.er1
6633  ac_status=$?
6634  grep -v '^ *+' conftest.er1 >conftest.err
6635  rm -f conftest.er1
6636  cat conftest.err >&5
6637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); } &&
6639         { ac_try='test -z "$ac_f77_werror_flag"
6640                         || test ! -s conftest.err'
6641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642  (eval $ac_try) 2>&5
6643  ac_status=$?
6644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645  (exit $ac_status); }; } &&
6646         { ac_try='test -s conftest.$ac_objext'
6647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648  (eval $ac_try) 2>&5
6649  ac_status=$?
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); }; }; then
6652  ac_compiler_gnu=yes
6653else
6654  echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657ac_compiler_gnu=no
6658fi
6659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6660ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6661
6662fi
6663echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6664echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6665ac_ext=$ac_save_ext
6666ac_test_FFLAGS=${FFLAGS+set}
6667ac_save_FFLAGS=$FFLAGS
6668FFLAGS=
6669echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6670echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6671if test "${ac_cv_prog_f77_g+set}" = set; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674  FFLAGS=-g
6675cat >conftest.$ac_ext <<_ACEOF
6676      program main
6677
6678      end
6679_ACEOF
6680rm -f conftest.$ac_objext
6681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682  (eval $ac_compile) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689         { ac_try='test -z "$ac_f77_werror_flag"
6690                         || test ! -s conftest.err'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; } &&
6696         { ac_try='test -s conftest.$ac_objext'
6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698  (eval $ac_try) 2>&5
6699  ac_status=$?
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); }; }; then
6702  ac_cv_prog_f77_g=yes
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707ac_cv_prog_f77_g=no
6708fi
6709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710
6711fi
6712echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6713echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6714if test "$ac_test_FFLAGS" = set; then
6715  FFLAGS=$ac_save_FFLAGS
6716elif test $ac_cv_prog_f77_g = yes; then
6717  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6718    FFLAGS="-g -O2"
6719  else
6720    FFLAGS="-g"
6721  fi
6722else
6723  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6724    FFLAGS="-O2"
6725  else
6726    FFLAGS=
6727  fi
6728fi
6729
6730G77=`test $ac_compiler_gnu = yes && echo yes`
6731ac_ext=c
6732ac_cpp='$CPP $CPPFLAGS'
6733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736
6737
6738
6739# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6740
6741# find the maximum length of command line arguments
6742echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6743echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6744if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6745  echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747    i=0
6748  teststring="ABCD"
6749
6750  case $build_os in
6751  msdosdjgpp*)
6752    # On DJGPP, this test can blow up pretty badly due to problems in libc
6753    # (any single argument exceeding 2000 bytes causes a buffer overrun
6754    # during glob expansion).  Even if it were fixed, the result of this
6755    # check would be larger than it should be.
6756    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6757    ;;
6758
6759  gnu*)
6760    # Under GNU Hurd, this test is not required because there is
6761    # no limit to the length of command line arguments.
6762    # Libtool will interpret -1 as no limit whatsoever
6763    lt_cv_sys_max_cmd_len=-1;
6764    ;;
6765
6766  cygwin* | mingw*)
6767    # On Win9x/ME, this test blows up -- it succeeds, but takes
6768    # about 5 minutes as the teststring grows exponentially.
6769    # Worse, since 9x/ME are not pre-emptively multitasking,
6770    # you end up with a "frozen" computer, even though with patience
6771    # the test eventually succeeds (with a max line length of 256k).
6772    # Instead, let's just punt: use the minimum linelength reported by
6773    # all of the supported platforms: 8192 (on NT/2K/XP).
6774    lt_cv_sys_max_cmd_len=8192;
6775    ;;
6776
6777  amigaos*)
6778    # On AmigaOS with pdksh, this test takes hours, literally.
6779    # So we just punt and use a minimum line length of 8192.
6780    lt_cv_sys_max_cmd_len=8192;
6781    ;;
6782
6783  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6784    # This has been around since 386BSD, at least.  Likely further.
6785    if test -x /sbin/sysctl; then
6786      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6787    elif test -x /usr/sbin/sysctl; then
6788      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6789    else
6790      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6791    fi
6792    # And add a safety zone
6793    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6794    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6795    ;;
6796
6797  interix*)
6798    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6799    lt_cv_sys_max_cmd_len=196608
6800    ;;
6801
6802  osf*)
6803    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6804    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6805    # nice to cause kernel panics so lets avoid the loop below.
6806    # First set a reasonable default.
6807    lt_cv_sys_max_cmd_len=16384
6808    #
6809    if test -x /sbin/sysconfig; then
6810      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6811        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6812      esac
6813    fi
6814    ;;
6815  sco3.2v5*)
6816    lt_cv_sys_max_cmd_len=102400
6817    ;;
6818  sysv5* | sco5v6* | sysv4.2uw2*)
6819    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6820    if test -n "$kargmax"; then
6821      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6822    else
6823      lt_cv_sys_max_cmd_len=32768
6824    fi
6825    ;;
6826  *)
6827    # If test is not a shell built-in, we'll probably end up computing a
6828    # maximum length that is only half of the actual maximum length, but
6829    # we can't tell.
6830    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6831    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6832               = "XX$teststring") >/dev/null 2>&1 &&
6833            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6834            lt_cv_sys_max_cmd_len=$new_result &&
6835            test $i != 17 # 1/2 MB should be enough
6836    do
6837      i=`expr $i + 1`
6838      teststring=$teststring$teststring
6839    done
6840    teststring=
6841    # Add a significant safety factor because C++ compilers can tack on massive
6842    # amounts of additional arguments before passing them to the linker.
6843    # It appears as though 1/2 is a usable value.
6844    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6845    ;;
6846  esac
6847
6848fi
6849
6850if test -n $lt_cv_sys_max_cmd_len ; then
6851  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6852echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6853else
6854  echo "$as_me:$LINENO: result: none" >&5
6855echo "${ECHO_T}none" >&6
6856fi
6857
6858
6859
6860
6861# Check for command to grab the raw symbol name followed by C symbol from nm.
6862echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6863echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6864if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6865  echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867
6868# These are sane defaults that work on at least a few old systems.
6869# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6870
6871# Character class describing NM global symbol codes.
6872symcode='[BCDEGRST]'
6873
6874# Regexp to match symbols that can be accessed directly from C.
6875sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6876
6877# Transform an extracted symbol line into a proper C declaration
6878lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6879
6880# Transform an extracted symbol line into symbol name and symbol address
6881lt_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'"
6882
6883# Define system-specific variables.
6884case $host_os in
6885aix*)
6886  symcode='[BCDT]'
6887  ;;
6888cygwin* | mingw* | pw32*)
6889  symcode='[ABCDGISTW]'
6890  ;;
6891hpux*) # Its linker distinguishes data from code symbols
6892  if test "$host_cpu" = ia64; then
6893    symcode='[ABCDEGRST]'
6894  fi
6895  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6896  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'"
6897  ;;
6898linux*)
6899  if test "$host_cpu" = ia64; then
6900    symcode='[ABCDGIRSTW]'
6901    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6902    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'"
6903  fi
6904  ;;
6905irix* | nonstopux*)
6906  symcode='[BCDEGRST]'
6907  ;;
6908osf*)
6909  symcode='[BCDEGQRST]'
6910  ;;
6911solaris*)
6912  symcode='[BDRT]'
6913  ;;
6914sco3.2v5*)
6915  symcode='[DT]'
6916  ;;
6917sysv4.2uw2*)
6918  symcode='[DT]'
6919  ;;
6920sysv5* | sco5v6* | unixware* | OpenUNIX*)
6921  symcode='[ABDT]'
6922  ;;
6923sysv4)
6924  symcode='[DFNSTU]'
6925  ;;
6926esac
6927
6928# Handle CRLF in mingw tool chain
6929opt_cr=
6930case $build_os in
6931mingw*)
6932  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6933  ;;
6934esac
6935
6936# If we're using GNU nm, then use its standard symbol codes.
6937case `$NM -V 2>&1` in
6938*GNU* | *'with BFD'*)
6939  symcode='[ABCDGIRSTW]' ;;
6940esac
6941
6942# Try without a prefix undercore, then with it.
6943for ac_symprfx in "" "_"; do
6944
6945  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6946  symxfrm="\\1 $ac_symprfx\\2 \\2"
6947
6948  # Write the raw and C identifiers.
6949  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6950
6951  # Check to see that the pipe works correctly.
6952  pipe_works=no
6953
6954  rm -f conftest*
6955  cat > conftest.$ac_ext <<EOF
6956#ifdef __cplusplus
6957extern "C" {
6958#endif
6959char nm_test_var;
6960void nm_test_func(){}
6961#ifdef __cplusplus
6962}
6963#endif
6964int main(){nm_test_var='a';nm_test_func();return(0);}
6965EOF
6966
6967  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968  (eval $ac_compile) 2>&5
6969  ac_status=$?
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); }; then
6972    # Now try to grab the symbols.
6973    nlist=conftest.nm
6974    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6975  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6976  ac_status=$?
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); } && test -s "$nlist"; then
6979      # Try sorting and uniquifying the output.
6980      if sort "$nlist" | uniq > "$nlist"T; then
6981        mv -f "$nlist"T "$nlist"
6982      else
6983        rm -f "$nlist"T
6984      fi
6985
6986      # Make sure that we snagged all the symbols we need.
6987      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6988        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6989          cat <<EOF > conftest.$ac_ext
6990#ifdef __cplusplus
6991extern "C" {
6992#endif
6993
6994EOF
6995          # Now generate the symbol file.
6996          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6997
6998          cat <<EOF >> conftest.$ac_ext
6999#if defined (__STDC__) && __STDC__
7000# define lt_ptr_t void *
7001#else
7002# define lt_ptr_t char *
7003# define const
7004#endif
7005
7006/* The mapping between symbol names and symbols. */
7007const struct {
7008  const char *name;
7009  lt_ptr_t address;
7010}
7011lt_preloaded_symbols[] =
7012{
7013EOF
7014          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7015          cat <<\EOF >> conftest.$ac_ext
7016  {0, (lt_ptr_t) 0}
7017};
7018
7019#ifdef __cplusplus
7020}
7021#endif
7022EOF
7023          # Now try linking the two files.
7024          mv conftest.$ac_objext conftstm.$ac_objext
7025          lt_save_LIBS="$LIBS"
7026          lt_save_CFLAGS="$CFLAGS"
7027          LIBS="conftstm.$ac_objext"
7028          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7029          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030  (eval $ac_link) 2>&5
7031  ac_status=$?
7032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7034            pipe_works=yes
7035          fi
7036          LIBS="$lt_save_LIBS"
7037          CFLAGS="$lt_save_CFLAGS"
7038        else
7039          echo "cannot find nm_test_func in $nlist" >&5
7040        fi
7041      else
7042        echo "cannot find nm_test_var in $nlist" >&5
7043      fi
7044    else
7045      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7046    fi
7047  else
7048    echo "$progname: failed program was:" >&5
7049    cat conftest.$ac_ext >&5
7050  fi
7051  rm -f conftest* conftst*
7052
7053  # Do not use the global_symbol_pipe unless it works.
7054  if test "$pipe_works" = yes; then
7055    break
7056  else
7057    lt_cv_sys_global_symbol_pipe=
7058  fi
7059done
7060
7061fi
7062
7063if test -z "$lt_cv_sys_global_symbol_pipe"; then
7064  lt_cv_sys_global_symbol_to_cdecl=
7065fi
7066if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7067  echo "$as_me:$LINENO: result: failed" >&5
7068echo "${ECHO_T}failed" >&6
7069else
7070  echo "$as_me:$LINENO: result: ok" >&5
7071echo "${ECHO_T}ok" >&6
7072fi
7073
7074echo "$as_me:$LINENO: checking for objdir" >&5
7075echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7076if test "${lt_cv_objdir+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  rm -f .libs 2>/dev/null
7080mkdir .libs 2>/dev/null
7081if test -d .libs; then
7082  lt_cv_objdir=.libs
7083else
7084  # MS-DOS does not allow filenames that begin with a dot.
7085  lt_cv_objdir=_libs
7086fi
7087rmdir .libs 2>/dev/null
7088fi
7089echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7090echo "${ECHO_T}$lt_cv_objdir" >&6
7091objdir=$lt_cv_objdir
7092
7093
7094
7095
7096
7097case $host_os in
7098aix3*)
7099  # AIX sometimes has problems with the GCC collect2 program.  For some
7100  # reason, if we set the COLLECT_NAMES environment variable, the problems
7101  # vanish in a puff of smoke.
7102  if test "X${COLLECT_NAMES+set}" != Xset; then
7103    COLLECT_NAMES=
7104    export COLLECT_NAMES
7105  fi
7106  ;;
7107esac
7108
7109# Sed substitution that helps us do robust quoting.  It backslashifies
7110# metacharacters that are still active within double-quoted strings.
7111Xsed='sed -e 1s/^X//'
7112sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7113
7114# Same as above, but do not quote variable references.
7115double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7116
7117# Sed substitution to delay expansion of an escaped shell variable in a
7118# double_quote_subst'ed string.
7119delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7120
7121# Sed substitution to avoid accidental globbing in evaled expressions
7122no_glob_subst='s/\*/\\\*/g'
7123
7124# Constants:
7125rm="rm -f"
7126
7127# Global variables:
7128default_ofile=libtool
7129can_build_shared=yes
7130
7131# All known linkers require a `.a' archive for static linking (except MSVC,
7132# which needs '.lib').
7133libext=a
7134ltmain="$ac_aux_dir/ltmain.sh"
7135ofile="$default_ofile"
7136with_gnu_ld="$lt_cv_prog_gnu_ld"
7137
7138if test -n "$ac_tool_prefix"; then
7139  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7140set dummy ${ac_tool_prefix}ar; ac_word=$2
7141echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7143if test "${ac_cv_prog_AR+set}" = set; then
7144  echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146  if test -n "$AR"; then
7147  ac_cv_prog_AR="$AR" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152  IFS=$as_save_IFS
7153  test -z "$as_dir" && as_dir=.
7154  for ac_exec_ext in '' $ac_executable_extensions; do
7155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156    ac_cv_prog_AR="${ac_tool_prefix}ar"
7157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158    break 2
7159  fi
7160done
7161done
7162
7163fi
7164fi
7165AR=$ac_cv_prog_AR
7166if test -n "$AR"; then
7167  echo "$as_me:$LINENO: result: $AR" >&5
7168echo "${ECHO_T}$AR" >&6
7169else
7170  echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
7172fi
7173
7174fi
7175if test -z "$ac_cv_prog_AR"; then
7176  ac_ct_AR=$AR
7177  # Extract the first word of "ar", so it can be a program name with args.
7178set dummy ar; ac_word=$2
7179echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7181if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7182  echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184  if test -n "$ac_ct_AR"; then
7185  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7186else
7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190  IFS=$as_save_IFS
7191  test -z "$as_dir" && as_dir=.
7192  for ac_exec_ext in '' $ac_executable_extensions; do
7193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7194    ac_cv_prog_ac_ct_AR="ar"
7195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196    break 2
7197  fi
7198done
7199done
7200
7201  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7202fi
7203fi
7204ac_ct_AR=$ac_cv_prog_ac_ct_AR
7205if test -n "$ac_ct_AR"; then
7206  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7207echo "${ECHO_T}$ac_ct_AR" >&6
7208else
7209  echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211fi
7212
7213  AR=$ac_ct_AR
7214else
7215  AR="$ac_cv_prog_AR"
7216fi
7217
7218if test -n "$ac_tool_prefix"; then
7219  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7220set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7221echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223if test "${ac_cv_prog_RANLIB+set}" = set; then
7224  echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226  if test -n "$RANLIB"; then
7227  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232  IFS=$as_save_IFS
7233  test -z "$as_dir" && as_dir=.
7234  for ac_exec_ext in '' $ac_executable_extensions; do
7235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238    break 2
7239  fi
7240done
7241done
7242
7243fi
7244fi
7245RANLIB=$ac_cv_prog_RANLIB
7246if test -n "$RANLIB"; then
7247  echo "$as_me:$LINENO: result: $RANLIB" >&5
7248echo "${ECHO_T}$RANLIB" >&6
7249else
7250  echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252fi
7253
7254fi
7255if test -z "$ac_cv_prog_RANLIB"; then
7256  ac_ct_RANLIB=$RANLIB
7257  # Extract the first word of "ranlib", so it can be a program name with args.
7258set dummy ranlib; ac_word=$2
7259echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7261if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7262  echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264  if test -n "$ac_ct_RANLIB"; then
7265  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270  IFS=$as_save_IFS
7271  test -z "$as_dir" && as_dir=.
7272  for ac_exec_ext in '' $ac_executable_extensions; do
7273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274    ac_cv_prog_ac_ct_RANLIB="ranlib"
7275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276    break 2
7277  fi
7278done
7279done
7280
7281  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7282fi
7283fi
7284ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7285if test -n "$ac_ct_RANLIB"; then
7286  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7287echo "${ECHO_T}$ac_ct_RANLIB" >&6
7288else
7289  echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6
7291fi
7292
7293  RANLIB=$ac_ct_RANLIB
7294else
7295  RANLIB="$ac_cv_prog_RANLIB"
7296fi
7297
7298if test -n "$ac_tool_prefix"; then
7299  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7300set dummy ${ac_tool_prefix}strip; ac_word=$2
7301echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7303if test "${ac_cv_prog_STRIP+set}" = set; then
7304  echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306  if test -n "$STRIP"; then
7307  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  test -z "$as_dir" && as_dir=.
7314  for ac_exec_ext in '' $ac_executable_extensions; do
7315  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318    break 2
7319  fi
7320done
7321done
7322
7323fi
7324fi
7325STRIP=$ac_cv_prog_STRIP
7326if test -n "$STRIP"; then
7327  echo "$as_me:$LINENO: result: $STRIP" >&5
7328echo "${ECHO_T}$STRIP" >&6
7329else
7330  echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6
7332fi
7333
7334fi
7335if test -z "$ac_cv_prog_STRIP"; then
7336  ac_ct_STRIP=$STRIP
7337  # Extract the first word of "strip", so it can be a program name with args.
7338set dummy strip; ac_word=$2
7339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344  if test -n "$ac_ct_STRIP"; then
7345  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352  for ac_exec_ext in '' $ac_executable_extensions; do
7353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_prog_ac_ct_STRIP="strip"
7355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359done
7360
7361  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7362fi
7363fi
7364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7365if test -n "$ac_ct_STRIP"; then
7366  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7367echo "${ECHO_T}$ac_ct_STRIP" >&6
7368else
7369  echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6
7371fi
7372
7373  STRIP=$ac_ct_STRIP
7374else
7375  STRIP="$ac_cv_prog_STRIP"
7376fi
7377
7378
7379old_CC="$CC"
7380old_CFLAGS="$CFLAGS"
7381
7382# Set sane defaults for various variables
7383test -z "$AR" && AR=ar
7384test -z "$AR_FLAGS" && AR_FLAGS=cru
7385test -z "$AS" && AS=as
7386test -z "$CC" && CC=cc
7387test -z "$LTCC" && LTCC=$CC
7388test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7389test -z "$DLLTOOL" && DLLTOOL=dlltool
7390test -z "$LD" && LD=ld
7391test -z "$LN_S" && LN_S="ln -s"
7392test -z "$MAGIC_CMD" && MAGIC_CMD=file
7393test -z "$NM" && NM=nm
7394test -z "$SED" && SED=sed
7395test -z "$OBJDUMP" && OBJDUMP=objdump
7396test -z "$RANLIB" && RANLIB=:
7397test -z "$STRIP" && STRIP=:
7398test -z "$ac_objext" && ac_objext=o
7399
7400# Determine commands to create old-style static archives.
7401old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7402old_postinstall_cmds='chmod 644 $oldlib'
7403old_postuninstall_cmds=
7404
7405if test -n "$RANLIB"; then
7406  case $host_os in
7407  openbsd*)
7408    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7409    ;;
7410  *)
7411    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7412    ;;
7413  esac
7414  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7415fi
7416
7417for cc_temp in $compiler""; do
7418  case $cc_temp in
7419    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7420    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7421    \-*) ;;
7422    *) break;;
7423  esac
7424done
7425cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7426
7427
7428# Only perform the check for file, if the check method requires it
7429case $deplibs_check_method in
7430file_magic*)
7431  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7432    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7433echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7434if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7435  echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437  case $MAGIC_CMD in
7438[\\/*] |  ?:[\\/]*)
7439  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7440  ;;
7441*)
7442  lt_save_MAGIC_CMD="$MAGIC_CMD"
7443  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7444  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7445  for ac_dir in $ac_dummy; do
7446    IFS="$lt_save_ifs"
7447    test -z "$ac_dir" && ac_dir=.
7448    if test -f $ac_dir/${ac_tool_prefix}file; then
7449      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7450      if test -n "$file_magic_test_file"; then
7451        case $deplibs_check_method in
7452        "file_magic "*)
7453          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7454          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7456            $EGREP "$file_magic_regex" > /dev/null; then
7457            :
7458          else
7459            cat <<EOF 1>&2
7460
7461*** Warning: the command libtool uses to detect shared libraries,
7462*** $file_magic_cmd, produces output that libtool cannot recognize.
7463*** The result is that libtool may fail to recognize shared libraries
7464*** as such.  This will affect the creation of libtool libraries that
7465*** depend on shared libraries, but programs linked with such libtool
7466*** libraries will work regardless of this problem.  Nevertheless, you
7467*** may want to report the problem to your system manager and/or to
7468*** bug-libtool@gnu.org
7469
7470EOF
7471          fi ;;
7472        esac
7473      fi
7474      break
7475    fi
7476  done
7477  IFS="$lt_save_ifs"
7478  MAGIC_CMD="$lt_save_MAGIC_CMD"
7479  ;;
7480esac
7481fi
7482
7483MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484if test -n "$MAGIC_CMD"; then
7485  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7486echo "${ECHO_T}$MAGIC_CMD" >&6
7487else
7488  echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6
7490fi
7491
7492if test -z "$lt_cv_path_MAGIC_CMD"; then
7493  if test -n "$ac_tool_prefix"; then
7494    echo "$as_me:$LINENO: checking for file" >&5
7495echo $ECHO_N "checking for file... $ECHO_C" >&6
7496if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7497  echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499  case $MAGIC_CMD in
7500[\\/*] |  ?:[\\/]*)
7501  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7502  ;;
7503*)
7504  lt_save_MAGIC_CMD="$MAGIC_CMD"
7505  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7506  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7507  for ac_dir in $ac_dummy; do
7508    IFS="$lt_save_ifs"
7509    test -z "$ac_dir" && ac_dir=.
7510    if test -f $ac_dir/file; then
7511      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7512      if test -n "$file_magic_test_file"; then
7513        case $deplibs_check_method in
7514        "file_magic "*)
7515          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7516          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7517          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7518            $EGREP "$file_magic_regex" > /dev/null; then
7519            :
7520          else
7521            cat <<EOF 1>&2
7522
7523*** Warning: the command libtool uses to detect shared libraries,
7524*** $file_magic_cmd, produces output that libtool cannot recognize.
7525*** The result is that libtool may fail to recognize shared libraries
7526*** as such.  This will affect the creation of libtool libraries that
7527*** depend on shared libraries, but programs linked with such libtool
7528*** libraries will work regardless of this problem.  Nevertheless, you
7529*** may want to report the problem to your system manager and/or to
7530*** bug-libtool@gnu.org
7531
7532EOF
7533          fi ;;
7534        esac
7535      fi
7536      break
7537    fi
7538  done
7539  IFS="$lt_save_ifs"
7540  MAGIC_CMD="$lt_save_MAGIC_CMD"
7541  ;;
7542esac
7543fi
7544
7545MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7546if test -n "$MAGIC_CMD"; then
7547  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7548echo "${ECHO_T}$MAGIC_CMD" >&6
7549else
7550  echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552fi
7553
7554  else
7555    MAGIC_CMD=:
7556  fi
7557fi
7558
7559  fi
7560  ;;
7561esac
7562
7563enable_dlopen=no
7564enable_win32_dll=no
7565
7566# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7567if test "${enable_libtool_lock+set}" = set; then
7568  enableval="$enable_libtool_lock"
7569
7570fi;
7571test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7572
7573
7574# Check whether --with-pic or --without-pic was given.
7575if test "${with_pic+set}" = set; then
7576  withval="$with_pic"
7577  pic_mode="$withval"
7578else
7579  pic_mode=default
7580fi;
7581test -z "$pic_mode" && pic_mode=default
7582
7583# Use C for the default configuration in the libtool script
7584tagname=
7585lt_save_CC="$CC"
7586ac_ext=c
7587ac_cpp='$CPP $CPPFLAGS'
7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592
7593# Source file extension for C test sources.
7594ac_ext=c
7595
7596# Object file extension for compiled C test sources.
7597objext=o
7598objext=$objext
7599
7600# Code to be used in simple compile tests
7601lt_simple_compile_test_code="int some_variable = 0;\n"
7602
7603# Code to be used in simple link tests
7604lt_simple_link_test_code='int main(){return(0);}\n'
7605
7606
7607# If no C compiler was specified, use CC.
7608LTCC=${LTCC-"$CC"}
7609
7610# If no C compiler flags were specified, use CFLAGS.
7611LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7612
7613# Allow CC to be a program name with arguments.
7614compiler=$CC
7615
7616
7617# save warnings/boilerplate of simple test code
7618ac_outfile=conftest.$ac_objext
7619printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7620eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7621_lt_compiler_boilerplate=`cat conftest.err`
7622$rm conftest*
7623
7624ac_outfile=conftest.$ac_objext
7625printf "$lt_simple_link_test_code" >conftest.$ac_ext
7626eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7627_lt_linker_boilerplate=`cat conftest.err`
7628$rm conftest*
7629
7630
7631## CAVEAT EMPTOR:
7632## There is no encapsulation within the following macros, do not change
7633## the running order or otherwise move them around unless you know exactly
7634## what you are doing...
7635
7636lt_prog_compiler_no_builtin_flag=
7637
7638if test "$GCC" = yes; then
7639  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7640
7641
7642echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7643echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7644if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  lt_cv_prog_compiler_rtti_exceptions=no
7648  ac_outfile=conftest.$ac_objext
7649   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7650   lt_compiler_flag="-fno-rtti -fno-exceptions"
7651   # Insert the option either (1) after the last *FLAGS variable, or
7652   # (2) before a word containing "conftest.", or (3) at the end.
7653   # Note that $ac_compile itself does not contain backslashes and begins
7654   # with a dollar sign (not a hyphen), so the echo should work correctly.
7655   # The option is referenced via a variable to avoid confusing sed.
7656   lt_compile=`echo "$ac_compile" | $SED \
7657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659   -e 's:$: $lt_compiler_flag:'`
7660   (eval echo "\"\$as_me:7660: $lt_compile\"" >&5)
7661   (eval "$lt_compile" 2>conftest.err)
7662   ac_status=$?
7663   cat conftest.err >&5
7664   echo "$as_me:7664: \$? = $ac_status" >&5
7665   if (exit $ac_status) && test -s "$ac_outfile"; then
7666     # The compiler can only warn and ignore the option if not recognized
7667     # So say no if there are warnings other than the usual output.
7668     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7669     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7670     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7671       lt_cv_prog_compiler_rtti_exceptions=yes
7672     fi
7673   fi
7674   $rm conftest*
7675
7676fi
7677echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7678echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7679
7680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7681    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7682else
7683    :
7684fi
7685
7686fi
7687
7688lt_prog_compiler_wl=
7689lt_prog_compiler_pic=
7690lt_prog_compiler_static=
7691
7692echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7693echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7694
7695  if test "$GCC" = yes; then
7696    lt_prog_compiler_wl='-Wl,'
7697    lt_prog_compiler_static='-static'
7698
7699    case $host_os in
7700      aix*)
7701      # All AIX code is PIC.
7702      if test "$host_cpu" = ia64; then
7703        # AIX 5 now supports IA64 processor
7704        lt_prog_compiler_static='-Bstatic'
7705      fi
7706      ;;
7707
7708    amigaos*)
7709      # FIXME: we need at least 68020 code to build shared libraries, but
7710      # adding the `-m68020' flag to GCC prevents building anything better,
7711      # like `-m68040'.
7712      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7713      ;;
7714
7715    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7716      # PIC is the default for these OSes.
7717      ;;
7718
7719    mingw* | pw32* | os2*)
7720      # This hack is so that the source file can tell whether it is being
7721      # built for inclusion in a dll (and should export symbols for example).
7722      lt_prog_compiler_pic='-DDLL_EXPORT'
7723      ;;
7724
7725    darwin* | rhapsody*)
7726      # PIC is the default on this platform
7727      # Common symbols not allowed in MH_DYLIB files
7728      lt_prog_compiler_pic='-fno-common'
7729      ;;
7730
7731    interix3*)
7732      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7733      # Instead, we relocate shared libraries at runtime.
7734      ;;
7735
7736    msdosdjgpp*)
7737      # Just because we use GCC doesn't mean we suddenly get shared libraries
7738      # on systems that don't support them.
7739      lt_prog_compiler_can_build_shared=no
7740      enable_shared=no
7741      ;;
7742
7743    sysv4*MP*)
7744      if test -d /usr/nec; then
7745        lt_prog_compiler_pic=-Kconform_pic
7746      fi
7747      ;;
7748
7749    hpux*)
7750      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7751      # not for PA HP-UX.
7752      case $host_cpu in
7753      hppa*64*|ia64*)
7754        # +Z the default
7755        ;;
7756      *)
7757        lt_prog_compiler_pic='-fPIC'
7758        ;;
7759      esac
7760      ;;
7761
7762    *)
7763      lt_prog_compiler_pic='-fPIC'
7764      ;;
7765    esac
7766  else
7767    # PORTME Check for flag to pass linker flags through the system compiler.
7768    case $host_os in
7769    aix*)
7770      lt_prog_compiler_wl='-Wl,'
7771      if test "$host_cpu" = ia64; then
7772        # AIX 5 now supports IA64 processor
7773        lt_prog_compiler_static='-Bstatic'
7774      else
7775        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7776      fi
7777      ;;
7778      darwin*)
7779        # PIC is the default on this platform
7780        # Common symbols not allowed in MH_DYLIB files
7781       case $cc_basename in
7782         xlc*)
7783         lt_prog_compiler_pic='-qnocommon'
7784         lt_prog_compiler_wl='-Wl,'
7785         ;;
7786       esac
7787       ;;
7788
7789    mingw* | pw32* | os2*)
7790      # This hack is so that the source file can tell whether it is being
7791      # built for inclusion in a dll (and should export symbols for example).
7792      lt_prog_compiler_pic='-DDLL_EXPORT'
7793      ;;
7794
7795    hpux9* | hpux10* | hpux11*)
7796      lt_prog_compiler_wl='-Wl,'
7797      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7798      # not for PA HP-UX.
7799      case $host_cpu in
7800      hppa*64*|ia64*)
7801        # +Z the default
7802        ;;
7803      *)
7804        lt_prog_compiler_pic='+Z'
7805        ;;
7806      esac
7807      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7808      lt_prog_compiler_static='${wl}-a ${wl}archive'
7809      ;;
7810
7811    irix5* | irix6* | nonstopux*)
7812      lt_prog_compiler_wl='-Wl,'
7813      # PIC (with -KPIC) is the default.
7814      lt_prog_compiler_static='-non_shared'
7815      ;;
7816
7817    newsos6)
7818      lt_prog_compiler_pic='-KPIC'
7819      lt_prog_compiler_static='-Bstatic'
7820      ;;
7821
7822    linux*)
7823      case $cc_basename in
7824      icc* | ecc*)
7825        lt_prog_compiler_wl='-Wl,'
7826        lt_prog_compiler_pic='-KPIC'
7827        lt_prog_compiler_static='-static'
7828        ;;
7829      pgcc* | pgf77* | pgf90* | pgf95*)
7830        # Portland Group compilers (*not* the Pentium gcc compiler,
7831        # which looks to be a dead project)
7832        lt_prog_compiler_wl='-Wl,'
7833        lt_prog_compiler_pic='-fpic'
7834        lt_prog_compiler_static='-Bstatic'
7835        ;;
7836      ccc*)
7837        lt_prog_compiler_wl='-Wl,'
7838        # All Alpha code is PIC.
7839        lt_prog_compiler_static='-non_shared'
7840        ;;
7841      esac
7842      ;;
7843
7844    osf3* | osf4* | osf5*)
7845      lt_prog_compiler_wl='-Wl,'
7846      # All OSF/1 code is PIC.
7847      lt_prog_compiler_static='-non_shared'
7848      ;;
7849
7850    solaris*)
7851      lt_prog_compiler_pic='-KPIC'
7852      lt_prog_compiler_static='-Bstatic'
7853      case $cc_basename in
7854      f77* | f90* | f95*)
7855        lt_prog_compiler_wl='-Qoption ld ';;
7856      *)
7857        lt_prog_compiler_wl='-Wl,';;
7858      esac
7859      ;;
7860
7861    sunos4*)
7862      lt_prog_compiler_wl='-Qoption ld '
7863      lt_prog_compiler_pic='-PIC'
7864      lt_prog_compiler_static='-Bstatic'
7865      ;;
7866
7867    sysv4 | sysv4.2uw2* | sysv4.3*)
7868      lt_prog_compiler_wl='-Wl,'
7869      lt_prog_compiler_pic='-KPIC'
7870      lt_prog_compiler_static='-Bstatic'
7871      ;;
7872
7873    sysv4*MP*)
7874      if test -d /usr/nec ;then
7875        lt_prog_compiler_pic='-Kconform_pic'
7876        lt_prog_compiler_static='-Bstatic'
7877      fi
7878      ;;
7879
7880    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7881      lt_prog_compiler_wl='-Wl,'
7882      lt_prog_compiler_pic='-KPIC'
7883      lt_prog_compiler_static='-Bstatic'
7884      ;;
7885
7886    unicos*)
7887      lt_prog_compiler_wl='-Wl,'
7888      lt_prog_compiler_can_build_shared=no
7889      ;;
7890
7891    uts4*)
7892      lt_prog_compiler_pic='-pic'
7893      lt_prog_compiler_static='-Bstatic'
7894      ;;
7895
7896    *)
7897      lt_prog_compiler_can_build_shared=no
7898      ;;
7899    esac
7900  fi
7901
7902echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7903echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7904
7905#
7906# Check to make sure the PIC flag actually works.
7907#
7908if test -n "$lt_prog_compiler_pic"; then
7909
7910echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7911echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7912if test "${lt_prog_compiler_pic_works+set}" = set; then
7913  echo $ECHO_N "(cached) $ECHO_C" >&6
7914else
7915  lt_prog_compiler_pic_works=no
7916  ac_outfile=conftest.$ac_objext
7917   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7918   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7919   # Insert the option either (1) after the last *FLAGS variable, or
7920   # (2) before a word containing "conftest.", or (3) at the end.
7921   # Note that $ac_compile itself does not contain backslashes and begins
7922   # with a dollar sign (not a hyphen), so the echo should work correctly.
7923   # The option is referenced via a variable to avoid confusing sed.
7924   lt_compile=`echo "$ac_compile" | $SED \
7925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7927   -e 's:$: $lt_compiler_flag:'`
7928   (eval echo "\"\$as_me:7928: $lt_compile\"" >&5)
7929   (eval "$lt_compile" 2>conftest.err)
7930   ac_status=$?
7931   cat conftest.err >&5
7932   echo "$as_me:7932: \$? = $ac_status" >&5
7933   if (exit $ac_status) && test -s "$ac_outfile"; then
7934     # The compiler can only warn and ignore the option if not recognized
7935     # So say no if there are warnings other than the usual output.
7936     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7937     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7939       lt_prog_compiler_pic_works=yes
7940     fi
7941   fi
7942   $rm conftest*
7943
7944fi
7945echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7946echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7947
7948if test x"$lt_prog_compiler_pic_works" = xyes; then
7949    case $lt_prog_compiler_pic in
7950     "" | " "*) ;;
7951     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7952     esac
7953else
7954    lt_prog_compiler_pic=
7955     lt_prog_compiler_can_build_shared=no
7956fi
7957
7958fi
7959case $host_os in
7960  # For platforms which do not support PIC, -DPIC is meaningless:
7961  *djgpp*)
7962    lt_prog_compiler_pic=
7963    ;;
7964  *)
7965    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7966    ;;
7967esac
7968
7969#
7970# Check to make sure the static flag actually works.
7971#
7972wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7973echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7974echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7975if test "${lt_prog_compiler_static_works+set}" = set; then
7976  echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978  lt_prog_compiler_static_works=no
7979   save_LDFLAGS="$LDFLAGS"
7980   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7981   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7982   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7983     # The linker can only warn and ignore the option if not recognized
7984     # So say no if there are warnings
7985     if test -s conftest.err; then
7986       # Append any errors to the config.log.
7987       cat conftest.err 1>&5
7988       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7989       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7990       if diff conftest.exp conftest.er2 >/dev/null; then
7991         lt_prog_compiler_static_works=yes
7992       fi
7993     else
7994       lt_prog_compiler_static_works=yes
7995     fi
7996   fi
7997   $rm conftest*
7998   LDFLAGS="$save_LDFLAGS"
7999
8000fi
8001echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8002echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8003
8004if test x"$lt_prog_compiler_static_works" = xyes; then
8005    :
8006else
8007    lt_prog_compiler_static=
8008fi
8009
8010
8011echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8012echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8013if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8014  echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016  lt_cv_prog_compiler_c_o=no
8017   $rm -r conftest 2>/dev/null
8018   mkdir conftest
8019   cd conftest
8020   mkdir out
8021   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8022
8023   lt_compiler_flag="-o out/conftest2.$ac_objext"
8024   # Insert the option either (1) after the last *FLAGS variable, or
8025   # (2) before a word containing "conftest.", or (3) at the end.
8026   # Note that $ac_compile itself does not contain backslashes and begins
8027   # with a dollar sign (not a hyphen), so the echo should work correctly.
8028   lt_compile=`echo "$ac_compile" | $SED \
8029   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8031   -e 's:$: $lt_compiler_flag:'`
8032   (eval echo "\"\$as_me:8032: $lt_compile\"" >&5)
8033   (eval "$lt_compile" 2>out/conftest.err)
8034   ac_status=$?
8035   cat out/conftest.err >&5
8036   echo "$as_me:8036: \$? = $ac_status" >&5
8037   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8038   then
8039     # The compiler can only warn and ignore the option if not recognized
8040     # So say no if there are warnings
8041     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8042     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8043     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8044       lt_cv_prog_compiler_c_o=yes
8045     fi
8046   fi
8047   chmod u+w . 2>&5
8048   $rm conftest*
8049   # SGI C++ compiler will create directory out/ii_files/ for
8050   # template instantiation
8051   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8052   $rm out/* && rmdir out
8053   cd ..
8054   rmdir conftest
8055   $rm conftest*
8056
8057fi
8058echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8059echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8060
8061
8062hard_links="nottested"
8063if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8064  # do not overwrite the value of need_locks provided by the user
8065  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8066echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8067  hard_links=yes
8068  $rm conftest*
8069  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8070  touch conftest.a
8071  ln conftest.a conftest.b 2>&5 || hard_links=no
8072  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8073  echo "$as_me:$LINENO: result: $hard_links" >&5
8074echo "${ECHO_T}$hard_links" >&6
8075  if test "$hard_links" = no; then
8076    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8077echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8078    need_locks=warn
8079  fi
8080else
8081  need_locks=no
8082fi
8083
8084echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8085echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8086
8087  runpath_var=
8088  allow_undefined_flag=
8089  enable_shared_with_static_runtimes=no
8090  archive_cmds=
8091  archive_expsym_cmds=
8092  old_archive_From_new_cmds=
8093  old_archive_from_expsyms_cmds=
8094  export_dynamic_flag_spec=
8095  whole_archive_flag_spec=
8096  thread_safe_flag_spec=
8097  hardcode_libdir_flag_spec=
8098  hardcode_libdir_flag_spec_ld=
8099  hardcode_libdir_separator=
8100  hardcode_direct=no
8101  hardcode_minus_L=no
8102  hardcode_shlibpath_var=unsupported
8103  link_all_deplibs=unknown
8104  hardcode_automatic=no
8105  module_cmds=
8106  module_expsym_cmds=
8107  always_export_symbols=no
8108  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8109  # include_expsyms should be a list of space-separated symbols to be *always*
8110  # included in the symbol list
8111  include_expsyms=
8112  # exclude_expsyms can be an extended regexp of symbols to exclude
8113  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8114  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8115  # as well as any symbol that contains `d'.
8116  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8117  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8118  # platforms (ab)use it in PIC code, but their linkers get confused if
8119  # the symbol is explicitly referenced.  Since portable code cannot
8120  # rely on this symbol name, it's probably fine to never include it in
8121  # preloaded symbol tables.
8122  extract_expsyms_cmds=
8123  # Just being paranoid about ensuring that cc_basename is set.
8124  for cc_temp in $compiler""; do
8125  case $cc_temp in
8126    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8127    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8128    \-*) ;;
8129    *) break;;
8130  esac
8131done
8132cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8133
8134  case $host_os in
8135  cygwin* | mingw* | pw32*)
8136    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8137    # When not using gcc, we currently assume that we are using
8138    # Microsoft Visual C++.
8139    if test "$GCC" != yes; then
8140      with_gnu_ld=no
8141    fi
8142    ;;
8143  interix*)
8144    # we just hope/assume this is gcc and not c89 (= MSVC++)
8145    with_gnu_ld=yes
8146    ;;
8147  openbsd*)
8148    with_gnu_ld=no
8149    ;;
8150  esac
8151
8152  ld_shlibs=yes
8153  if test "$with_gnu_ld" = yes; then
8154    # If archive_cmds runs LD, not CC, wlarc should be empty
8155    wlarc='${wl}'
8156
8157    # Set some defaults for GNU ld with shared library support. These
8158    # are reset later if shared libraries are not supported. Putting them
8159    # here allows them to be overridden if necessary.
8160    runpath_var=LD_RUN_PATH
8161    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8162    export_dynamic_flag_spec='${wl}--export-dynamic'
8163    # ancient GNU ld didn't support --whole-archive et. al.
8164    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8165        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8166      else
8167        whole_archive_flag_spec=
8168    fi
8169    supports_anon_versioning=no
8170    case `$LD -v 2>/dev/null` in
8171      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174      *\ 2.11.*) ;; # other 2.11 versions
8175      *) supports_anon_versioning=yes ;;
8176    esac
8177
8178    # See if GNU ld supports shared libraries.
8179    case $host_os in
8180    aix3* | aix4* | aix5*)
8181      # On AIX/PPC, the GNU linker is very broken
8182      if test "$host_cpu" != ia64; then
8183        ld_shlibs=no
8184        cat <<EOF 1>&2
8185
8186*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8187*** to be unable to reliably create shared libraries on AIX.
8188*** Therefore, libtool is disabling shared libraries support.  If you
8189*** really care for shared libraries, you may want to modify your PATH
8190*** so that a non-GNU linker is found, and then restart.
8191
8192EOF
8193      fi
8194      ;;
8195
8196    amigaos*)
8197      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)'
8198      hardcode_libdir_flag_spec='-L$libdir'
8199      hardcode_minus_L=yes
8200
8201      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8202      # that the semantics of dynamic libraries on AmigaOS, at least up
8203      # to version 4, is to share data among multiple programs linked
8204      # with the same dynamic library.  Since this doesn't match the
8205      # behavior of shared libraries on other platforms, we can't use
8206      # them.
8207      ld_shlibs=no
8208      ;;
8209
8210    beos*)
8211      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212        allow_undefined_flag=unsupported
8213        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214        # support --undefined.  This deserves some investigation.  FIXME
8215        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216      else
8217        ld_shlibs=no
8218      fi
8219      ;;
8220
8221    cygwin* | mingw* | pw32*)
8222      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223      # as there is no search path for DLLs.
8224      hardcode_libdir_flag_spec='-L$libdir'
8225      allow_undefined_flag=unsupported
8226      always_export_symbols=no
8227      enable_shared_with_static_runtimes=yes
8228      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8229
8230      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8231        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8232        # If the export-symbols file already is a .def file (1st line
8233        # is EXPORTS), use it as is; otherwise, prepend...
8234        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8235          cp $export_symbols $output_objdir/$soname.def;
8236        else
8237          echo EXPORTS > $output_objdir/$soname.def;
8238          cat $export_symbols >> $output_objdir/$soname.def;
8239        fi~
8240        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8241      else
8242        ld_shlibs=no
8243      fi
8244      ;;
8245
8246    interix3*)
8247      hardcode_direct=no
8248      hardcode_shlibpath_var=no
8249      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8250      export_dynamic_flag_spec='${wl}-E'
8251      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8252      # Instead, shared libraries are loaded at an image base (0x10000000 by
8253      # default) and relocated if they conflict, which is a slow very memory
8254      # consuming and fragmenting process.  To avoid this, we pick a random,
8255      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8256      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8257      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8258      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'
8259      ;;
8260
8261    linux*)
8262      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8263        tmp_addflag=
8264        case $cc_basename,$host_cpu in
8265        pgcc*)                          # Portland Group C compiler
8266          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8267          tmp_addflag=' $pic_flag'
8268          ;;
8269        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8270          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'
8271          tmp_addflag=' $pic_flag -Mnomain' ;;
8272        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8273          tmp_addflag=' -i_dynamic' ;;
8274        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8275          tmp_addflag=' -i_dynamic -nofor_main' ;;
8276        ifc* | ifort*)                  # Intel Fortran compiler
8277          tmp_addflag=' -nofor_main' ;;
8278        esac
8279        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280
8281        if test $supports_anon_versioning = yes; then
8282          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8283  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8284  $echo "local: *; };" >> $output_objdir/$libname.ver~
8285          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8286        fi
8287      else
8288        ld_shlibs=no
8289      fi
8290      ;;
8291
8292    netbsd*)
8293      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8294        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8295        wlarc=
8296      else
8297        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299      fi
8300      ;;
8301
8302    solaris*)
8303      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8304        ld_shlibs=no
8305        cat <<EOF 1>&2
8306
8307*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8308*** create shared libraries on Solaris systems.  Therefore, libtool
8309*** is disabling shared libraries support.  We urge you to upgrade GNU
8310*** binutils to release 2.9.1 or newer.  Another option is to modify
8311*** your PATH or compiler configuration so that the native linker is
8312*** used, and then restart.
8313
8314EOF
8315      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318      else
8319        ld_shlibs=no
8320      fi
8321      ;;
8322
8323    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8324      case `$LD -v 2>&1` in
8325        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8326        ld_shlibs=no
8327        cat <<_LT_EOF 1>&2
8328
8329*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8330*** reliably create shared libraries on SCO systems.  Therefore, libtool
8331*** is disabling shared libraries support.  We urge you to upgrade GNU
8332*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8333*** your PATH or compiler configuration so that the native linker is
8334*** used, and then restart.
8335
8336_LT_EOF
8337        ;;
8338        *)
8339          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8340            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8341            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8342            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8343          else
8344            ld_shlibs=no
8345          fi
8346        ;;
8347      esac
8348      ;;
8349
8350    sunos4*)
8351      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8352      wlarc=
8353      hardcode_direct=yes
8354      hardcode_shlibpath_var=no
8355      ;;
8356
8357    *)
8358      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8359        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8361      else
8362        ld_shlibs=no
8363      fi
8364      ;;
8365    esac
8366
8367    if test "$ld_shlibs" = no; then
8368      runpath_var=
8369      hardcode_libdir_flag_spec=
8370      export_dynamic_flag_spec=
8371      whole_archive_flag_spec=
8372    fi
8373  else
8374    # PORTME fill in a description of your system's linker (not GNU ld)
8375    case $host_os in
8376    aix3*)
8377      allow_undefined_flag=unsupported
8378      always_export_symbols=yes
8379      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'
8380      # Note: this linker hardcodes the directories in LIBPATH if there
8381      # are no directories specified by -L.
8382      hardcode_minus_L=yes
8383      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8384        # Neither direct hardcoding nor static linking is supported with a
8385        # broken collect2.
8386        hardcode_direct=unsupported
8387      fi
8388      ;;
8389
8390    aix4* | aix5*)
8391      if test "$host_cpu" = ia64; then
8392        # On IA64, the linker does run time linking by default, so we don't
8393        # have to do anything special.
8394        aix_use_runtimelinking=no
8395        exp_sym_flag='-Bexport'
8396        no_entry_flag=""
8397      else
8398        # If we're using GNU nm, then we don't want the "-C" option.
8399        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8400        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8401          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'
8402        else
8403          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'
8404        fi
8405        aix_use_runtimelinking=no
8406
8407        # Test if we are trying to use run time linking or normal
8408        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8409        # need to do runtime linking.
8410        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8411          for ld_flag in $LDFLAGS; do
8412          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8413            aix_use_runtimelinking=yes
8414            break
8415          fi
8416          done
8417          ;;
8418        esac
8419
8420        exp_sym_flag='-bexport'
8421        no_entry_flag='-bnoentry'
8422      fi
8423
8424      # When large executables or shared objects are built, AIX ld can
8425      # have problems creating the table of contents.  If linking a library
8426      # or program results in "error TOC overflow" add -mminimal-toc to
8427      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8428      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8429
8430      archive_cmds=''
8431      hardcode_direct=yes
8432      hardcode_libdir_separator=':'
8433      link_all_deplibs=yes
8434
8435      if test "$GCC" = yes; then
8436        case $host_os in aix4.[012]|aix4.[012].*)
8437        # We only want to do this on AIX 4.2 and lower, the check
8438        # below for broken collect2 doesn't work under 4.3+
8439          collect2name=`${CC} -print-prog-name=collect2`
8440          if test -f "$collect2name" && \
8441           strings "$collect2name" | grep resolve_lib_name >/dev/null
8442          then
8443          # We have reworked collect2
8444          hardcode_direct=yes
8445          else
8446          # We have old collect2
8447          hardcode_direct=unsupported
8448          # It fails to find uninstalled libraries when the uninstalled
8449          # path is not listed in the libpath.  Setting hardcode_minus_L
8450          # to unsupported forces relinking
8451          hardcode_minus_L=yes
8452          hardcode_libdir_flag_spec='-L$libdir'
8453          hardcode_libdir_separator=
8454          fi
8455          ;;
8456        esac
8457        shared_flag='-shared'
8458        if test "$aix_use_runtimelinking" = yes; then
8459          shared_flag="$shared_flag "'${wl}-G'
8460        fi
8461      else
8462        # not using gcc
8463        if test "$host_cpu" = ia64; then
8464        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8465        # chokes on -Wl,-G. The following line is correct:
8466          shared_flag='-G'
8467        else
8468          if test "$aix_use_runtimelinking" = yes; then
8469            shared_flag='${wl}-G'
8470          else
8471            shared_flag='${wl}-bM:SRE'
8472          fi
8473        fi
8474      fi
8475
8476      # It seems that -bexpall does not export symbols beginning with
8477      # underscore (_), so it is better to generate a list of symbols to export.
8478      always_export_symbols=yes
8479      if test "$aix_use_runtimelinking" = yes; then
8480        # Warning - without using the other runtime loading flags (-brtl),
8481        # -berok will link without error, but may produce a broken library.
8482        allow_undefined_flag='-berok'
8483       # Determine the default libpath from the value encoded in an empty executable.
8484       cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h.  */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h.  */
8490
8491int
8492main ()
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501  (eval $ac_link) 2>conftest.er1
8502  ac_status=$?
8503  grep -v '^ *+' conftest.er1 >conftest.err
8504  rm -f conftest.er1
8505  cat conftest.err >&5
8506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507  (exit $ac_status); } &&
8508         { ac_try='test -z "$ac_c_werror_flag"
8509                         || test ! -s conftest.err'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; } &&
8515         { ac_try='test -s conftest$ac_exeext'
8516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517  (eval $ac_try) 2>&5
8518  ac_status=$?
8519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520  (exit $ac_status); }; }; then
8521
8522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8523}'`
8524# Check for a 64-bit object if we didn't find anything.
8525if 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; }
8526}'`; fi
8527else
8528  echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531fi
8532rm -f conftest.err conftest.$ac_objext \
8533      conftest$ac_exeext conftest.$ac_ext
8534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8535
8536       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8537        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"
8538       else
8539        if test "$host_cpu" = ia64; then
8540          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8541          allow_undefined_flag="-z nodefs"
8542          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"
8543        else
8544         # Determine the default libpath from the value encoded in an empty executable.
8545         cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h.  */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h.  */
8551
8552int
8553main ()
8554{
8555
8556  ;
8557  return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext conftest$ac_exeext
8561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562  (eval $ac_link) 2>conftest.er1
8563  ac_status=$?
8564  grep -v '^ *+' conftest.er1 >conftest.err
8565  rm -f conftest.er1
8566  cat conftest.err >&5
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); } &&
8569         { ac_try='test -z "$ac_c_werror_flag"
8570                         || test ! -s conftest.err'
8571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572  (eval $ac_try) 2>&5
8573  ac_status=$?
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); }; } &&
8576         { ac_try='test -s conftest$ac_exeext'
8577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578  (eval $ac_try) 2>&5
8579  ac_status=$?
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); }; }; then
8582
8583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8584}'`
8585# Check for a 64-bit object if we didn't find anything.
8586if 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; }
8587}'`; fi
8588else
8589  echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592fi
8593rm -f conftest.err conftest.$ac_objext \
8594      conftest$ac_exeext conftest.$ac_ext
8595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8596
8597         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8598          # Warning - without using the other run time loading flags,
8599          # -berok will link without error, but may produce a broken library.
8600          no_undefined_flag=' ${wl}-bernotok'
8601          allow_undefined_flag=' ${wl}-berok'
8602          # Exported symbols can be pulled into shared objects from archives
8603          whole_archive_flag_spec='$convenience'
8604          archive_cmds_need_lc=yes
8605          # This is similar to how AIX traditionally builds its shared libraries.
8606          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'
8607        fi
8608      fi
8609      ;;
8610
8611    amigaos*)
8612      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)'
8613      hardcode_libdir_flag_spec='-L$libdir'
8614      hardcode_minus_L=yes
8615      # see comment about different semantics on the GNU ld section
8616      ld_shlibs=no
8617      ;;
8618
8619    bsdi[45]*)
8620      export_dynamic_flag_spec=-rdynamic
8621      ;;
8622
8623    cygwin* | mingw* | pw32*)
8624      # When not using gcc, we currently assume that we are using
8625      # Microsoft Visual C++.
8626      # hardcode_libdir_flag_spec is actually meaningless, as there is
8627      # no search path for DLLs.
8628      hardcode_libdir_flag_spec=' '
8629      allow_undefined_flag=unsupported
8630      # Tell ltmain to make .lib files, not .a files.
8631      libext=lib
8632      # Tell ltmain to make .dll files, not .so files.
8633      shrext_cmds=".dll"
8634      # FIXME: Setting linknames here is a bad hack.
8635      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8636      # The linker will automatically build a .lib file if we build a DLL.
8637      old_archive_From_new_cmds='true'
8638      # FIXME: Should let the user specify the lib program.
8639      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8640      fix_srcfile_path='`cygpath -w "$srcfile"`'
8641      enable_shared_with_static_runtimes=yes
8642      ;;
8643
8644    darwin* | rhapsody*)
8645      case $host_os in
8646        rhapsody* | darwin1.[012])
8647         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8648         ;;
8649       *) # Darwin 1.3 on
8650         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8651           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8652         else
8653           case ${MACOSX_DEPLOYMENT_TARGET} in
8654             10.[012])
8655               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8656               ;;
8657             10.*)
8658               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8659               ;;
8660           esac
8661         fi
8662         ;;
8663      esac
8664      archive_cmds_need_lc=no
8665      hardcode_direct=no
8666      hardcode_automatic=yes
8667      hardcode_shlibpath_var=unsupported
8668      whole_archive_flag_spec=''
8669      link_all_deplibs=yes
8670    if test "$GCC" = yes ; then
8671        output_verbose_link_cmd='echo'
8672        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8673      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8674      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8675      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}'
8676      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}'
8677    else
8678      case $cc_basename in
8679        xlc*)
8680         output_verbose_link_cmd='echo'
8681         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8682         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8683          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8684         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}'
8685          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}'
8686          ;;
8687       *)
8688         ld_shlibs=no
8689          ;;
8690      esac
8691    fi
8692      ;;
8693
8694    dgux*)
8695      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696      hardcode_libdir_flag_spec='-L$libdir'
8697      hardcode_shlibpath_var=no
8698      ;;
8699
8700    freebsd1*)
8701      ld_shlibs=no
8702      ;;
8703
8704    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8705    # support.  Future versions do this automatically, but an explicit c++rt0.o
8706    # does not break anything, and helps significantly (at the cost of a little
8707    # extra space).
8708    freebsd2.2*)
8709      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8710      hardcode_libdir_flag_spec='-R$libdir'
8711      hardcode_direct=yes
8712      hardcode_shlibpath_var=no
8713      ;;
8714
8715    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8716    freebsd2*)
8717      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8718      hardcode_direct=yes
8719      hardcode_minus_L=yes
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8724    freebsd* | kfreebsd*-gnu | dragonfly*)
8725      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8726      hardcode_libdir_flag_spec='-R$libdir'
8727      hardcode_direct=yes
8728      hardcode_shlibpath_var=no
8729      ;;
8730
8731    hpux9*)
8732      if test "$GCC" = yes; then
8733        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'
8734      else
8735        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'
8736      fi
8737      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8738      hardcode_libdir_separator=:
8739      hardcode_direct=yes
8740
8741      # hardcode_minus_L: Not really in the search PATH,
8742      # but as the default location of the library.
8743      hardcode_minus_L=yes
8744      export_dynamic_flag_spec='${wl}-E'
8745      ;;
8746
8747    hpux10*)
8748      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8749        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8750      else
8751        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8752      fi
8753      if test "$with_gnu_ld" = no; then
8754        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755        hardcode_libdir_separator=:
8756
8757        hardcode_direct=yes
8758        export_dynamic_flag_spec='${wl}-E'
8759
8760        # hardcode_minus_L: Not really in the search PATH,
8761        # but as the default location of the library.
8762        hardcode_minus_L=yes
8763      fi
8764      ;;
8765
8766    hpux11*)
8767      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8768        case $host_cpu in
8769        hppa*64*)
8770          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8771          ;;
8772        ia64*)
8773          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8774          ;;
8775        *)
8776          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8777          ;;
8778        esac
8779      else
8780        case $host_cpu in
8781        hppa*64*)
8782          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783          ;;
8784        ia64*)
8785          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8786          ;;
8787        *)
8788          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8789          ;;
8790        esac
8791      fi
8792      if test "$with_gnu_ld" = no; then
8793        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8794        hardcode_libdir_separator=:
8795
8796        case $host_cpu in
8797        hppa*64*|ia64*)
8798          hardcode_libdir_flag_spec_ld='+b $libdir'
8799          hardcode_direct=no
8800          hardcode_shlibpath_var=no
8801          ;;
8802        *)
8803          hardcode_direct=yes
8804          export_dynamic_flag_spec='${wl}-E'
8805
8806          # hardcode_minus_L: Not really in the search PATH,
8807          # but as the default location of the library.
8808          hardcode_minus_L=yes
8809          ;;
8810        esac
8811      fi
8812      ;;
8813
8814    irix5* | irix6* | nonstopux*)
8815      if test "$GCC" = yes; then
8816        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'
8817      else
8818        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'
8819        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8820      fi
8821      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822      hardcode_libdir_separator=:
8823      link_all_deplibs=yes
8824      ;;
8825
8826    netbsd*)
8827      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8828        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8829      else
8830        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8831      fi
8832      hardcode_libdir_flag_spec='-R$libdir'
8833      hardcode_direct=yes
8834      hardcode_shlibpath_var=no
8835      ;;
8836
8837    newsos6)
8838      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839      hardcode_direct=yes
8840      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841      hardcode_libdir_separator=:
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    openbsd*)
8846      hardcode_direct=yes
8847      hardcode_shlibpath_var=no
8848      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8849        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8850        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8851        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8852        export_dynamic_flag_spec='${wl}-E'
8853      else
8854       case $host_os in
8855         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8856           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8857           hardcode_libdir_flag_spec='-R$libdir'
8858           ;;
8859         *)
8860           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8861           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8862           ;;
8863       esac
8864      fi
8865      ;;
8866
8867    os2*)
8868      hardcode_libdir_flag_spec='-L$libdir'
8869      hardcode_minus_L=yes
8870      allow_undefined_flag=unsupported
8871      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'
8872      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8873      ;;
8874
8875    osf3*)
8876      if test "$GCC" = yes; then
8877        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8878        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'
8879      else
8880        allow_undefined_flag=' -expect_unresolved \*'
8881        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'
8882      fi
8883      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8884      hardcode_libdir_separator=:
8885      ;;
8886
8887    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8888      if test "$GCC" = yes; then
8889        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8890        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'
8891        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892      else
8893        allow_undefined_flag=' -expect_unresolved \*'
8894        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'
8895        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8896        $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'
8897
8898        # Both c and cxx compiler support -rpath directly
8899        hardcode_libdir_flag_spec='-rpath $libdir'
8900      fi
8901      hardcode_libdir_separator=:
8902      ;;
8903
8904    solaris*)
8905      no_undefined_flag=' -z text'
8906      if test "$GCC" = yes; then
8907        wlarc='${wl}'
8908        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8909        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8910          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8911      else
8912        wlarc=''
8913        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8915        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8916      fi
8917      hardcode_libdir_flag_spec='-R$libdir'
8918      hardcode_shlibpath_var=no
8919      case $host_os in
8920      solaris2.[0-5] | solaris2.[0-5].*) ;;
8921      *)
8922        # The compiler driver will combine linker options so we
8923        # cannot just pass the convience library names through
8924        # without $wl, iff we do not link with $LD.
8925        # Luckily, gcc supports the same syntax we need for Sun Studio.
8926        # Supported since Solaris 2.6 (maybe 2.5.1?)
8927        case $wlarc in
8928        '')
8929          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8930        *)
8931          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' ;;
8932        esac ;;
8933      esac
8934      link_all_deplibs=yes
8935      ;;
8936
8937    sunos4*)
8938      if test "x$host_vendor" = xsequent; then
8939        # Use $CC to link under sequent, because it throws in some extra .o
8940        # files that make .init and .fini sections work.
8941        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8942      else
8943        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8944      fi
8945      hardcode_libdir_flag_spec='-L$libdir'
8946      hardcode_direct=yes
8947      hardcode_minus_L=yes
8948      hardcode_shlibpath_var=no
8949      ;;
8950
8951    sysv4)
8952      case $host_vendor in
8953        sni)
8954          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955          hardcode_direct=yes # is this really true???
8956        ;;
8957        siemens)
8958          ## LD is ld it makes a PLAMLIB
8959          ## CC just makes a GrossModule.
8960          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8961          reload_cmds='$CC -r -o $output$reload_objs'
8962          hardcode_direct=no
8963        ;;
8964        motorola)
8965          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8967        ;;
8968      esac
8969      runpath_var='LD_RUN_PATH'
8970      hardcode_shlibpath_var=no
8971      ;;
8972
8973    sysv4.3*)
8974      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975      hardcode_shlibpath_var=no
8976      export_dynamic_flag_spec='-Bexport'
8977      ;;
8978
8979    sysv4*MP*)
8980      if test -d /usr/nec; then
8981        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982        hardcode_shlibpath_var=no
8983        runpath_var=LD_RUN_PATH
8984        hardcode_runpath_var=yes
8985        ld_shlibs=yes
8986      fi
8987      ;;
8988
8989    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8990      no_undefined_flag='${wl}-z,text'
8991      archive_cmds_need_lc=no
8992      hardcode_shlibpath_var=no
8993      runpath_var='LD_RUN_PATH'
8994
8995      if test "$GCC" = yes; then
8996        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8997        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8998      else
8999        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9000        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9001      fi
9002      ;;
9003
9004    sysv5* | sco3.2v5* | sco5v6*)
9005      # Note: We can NOT use -z defs as we might desire, because we do not
9006      # link with -lc, and that would cause any symbols used from libc to
9007      # always be unresolved, which means just about no library would
9008      # ever link correctly.  If we're not using GNU ld we use -z text
9009      # though, which does catch some bad symbols but isn't as heavy-handed
9010      # as -z defs.
9011      no_undefined_flag='${wl}-z,text'
9012      allow_undefined_flag='${wl}-z,nodefs'
9013      archive_cmds_need_lc=no
9014      hardcode_shlibpath_var=no
9015      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9016      hardcode_libdir_separator=':'
9017      link_all_deplibs=yes
9018      export_dynamic_flag_spec='${wl}-Bexport'
9019      runpath_var='LD_RUN_PATH'
9020
9021      if test "$GCC" = yes; then
9022        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024      else
9025        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9026        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9027      fi
9028      ;;
9029
9030    uts4*)
9031      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032      hardcode_libdir_flag_spec='-L$libdir'
9033      hardcode_shlibpath_var=no
9034      ;;
9035
9036    *)
9037      ld_shlibs=no
9038      ;;
9039    esac
9040  fi
9041
9042echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9043echo "${ECHO_T}$ld_shlibs" >&6
9044test "$ld_shlibs" = no && can_build_shared=no
9045
9046#
9047# Do we need to explicitly link libc?
9048#
9049case "x$archive_cmds_need_lc" in
9050x|xyes)
9051  # Assume -lc should be added
9052  archive_cmds_need_lc=yes
9053
9054  if test "$enable_shared" = yes && test "$GCC" = yes; then
9055    case $archive_cmds in
9056    *'~'*)
9057      # FIXME: we may have to deal with multi-command sequences.
9058      ;;
9059    '$CC '*)
9060      # Test whether the compiler implicitly links with -lc since on some
9061      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9062      # to ld, don't add -lc before -lgcc.
9063      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9064echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9065      $rm conftest*
9066      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9067
9068      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069  (eval $ac_compile) 2>&5
9070  ac_status=$?
9071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); } 2>conftest.err; then
9073        soname=conftest
9074        lib=conftest
9075        libobjs=conftest.$ac_objext
9076        deplibs=
9077        wl=$lt_prog_compiler_wl
9078        pic_flag=$lt_prog_compiler_pic
9079        compiler_flags=-v
9080        linker_flags=-v
9081        verstring=
9082        output_objdir=.
9083        libname=conftest
9084        lt_save_allow_undefined_flag=$allow_undefined_flag
9085        allow_undefined_flag=
9086        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9087  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9088  ac_status=$?
9089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090  (exit $ac_status); }
9091        then
9092          archive_cmds_need_lc=no
9093        else
9094          archive_cmds_need_lc=yes
9095        fi
9096        allow_undefined_flag=$lt_save_allow_undefined_flag
9097      else
9098        cat conftest.err 1>&5
9099      fi
9100      $rm conftest*
9101      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9102echo "${ECHO_T}$archive_cmds_need_lc" >&6
9103      ;;
9104    esac
9105  fi
9106  ;;
9107esac
9108
9109echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9110echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9111library_names_spec=
9112libname_spec='lib$name'
9113soname_spec=
9114shrext_cmds=".so"
9115postinstall_cmds=
9116postuninstall_cmds=
9117finish_cmds=
9118finish_eval=
9119shlibpath_var=
9120shlibpath_overrides_runpath=unknown
9121version_type=none
9122dynamic_linker="$host_os ld.so"
9123sys_lib_dlsearch_path_spec="/lib /usr/lib"
9124if test "$GCC" = yes; then
9125  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9126  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9127    # if the path contains ";" then we assume it to be the separator
9128    # otherwise default to the standard path separator (i.e. ":") - it is
9129    # assumed that no part of a normal pathname contains ";" but that should
9130    # okay in the real world where ";" in dirpaths is itself problematic.
9131    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9132  else
9133    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9134  fi
9135else
9136  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9137fi
9138need_lib_prefix=unknown
9139hardcode_into_libs=no
9140
9141# when you set need_version to no, make sure it does not cause -set_version
9142# flags to be left without arguments
9143need_version=unknown
9144
9145case $host_os in
9146aix3*)
9147  version_type=linux
9148  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9149  shlibpath_var=LIBPATH
9150
9151  # AIX 3 has no versioning support, so we append a major version to the name.
9152  soname_spec='${libname}${release}${shared_ext}$major'
9153  ;;
9154
9155aix4* | aix5*)
9156  version_type=linux
9157  need_lib_prefix=no
9158  need_version=no
9159  hardcode_into_libs=yes
9160  if test "$host_cpu" = ia64; then
9161    # AIX 5 supports IA64
9162    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9163    shlibpath_var=LD_LIBRARY_PATH
9164  else
9165    # With GCC up to 2.95.x, collect2 would create an import file
9166    # for dependence libraries.  The import file would start with
9167    # the line `#! .'.  This would cause the generated library to
9168    # depend on `.', always an invalid library.  This was fixed in
9169    # development snapshots of GCC prior to 3.0.
9170    case $host_os in
9171      aix4 | aix4.[01] | aix4.[01].*)
9172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9173           echo ' yes '
9174           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9175        :
9176      else
9177        can_build_shared=no
9178      fi
9179      ;;
9180    esac
9181    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9182    # soname into executable. Probably we can add versioning support to
9183    # collect2, so additional links can be useful in future.
9184    if test "$aix_use_runtimelinking" = yes; then
9185      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9186      # instead of lib<name>.a to let people know that these are not
9187      # typical AIX shared libraries.
9188      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189    else
9190      # We preserve .a as extension for shared libraries through AIX4.2
9191      # and later when we are not doing run time linking.
9192      library_names_spec='${libname}${release}.a $libname.a'
9193      soname_spec='${libname}${release}${shared_ext}$major'
9194    fi
9195    shlibpath_var=LIBPATH
9196  fi
9197  ;;
9198
9199amigaos*)
9200  library_names_spec='$libname.ixlibrary $libname.a'
9201  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9202  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'
9203  ;;
9204
9205beos*)
9206  library_names_spec='${libname}${shared_ext}'
9207  dynamic_linker="$host_os ld.so"
9208  shlibpath_var=LIBRARY_PATH
9209  ;;
9210
9211bsdi[45]*)
9212  version_type=linux
9213  need_version=no
9214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215  soname_spec='${libname}${release}${shared_ext}$major'
9216  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9217  shlibpath_var=LD_LIBRARY_PATH
9218  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9219  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9220  # the default ld.so.conf also contains /usr/contrib/lib and
9221  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9222  # libtool to hard-code these into programs
9223  ;;
9224
9225cygwin* | mingw* | pw32*)
9226  version_type=windows
9227  shrext_cmds=".dll"
9228  need_version=no
9229  need_lib_prefix=no
9230
9231  case $GCC,$host_os in
9232  yes,cygwin* | yes,mingw* | yes,pw32*)
9233    library_names_spec='$libname.dll.a'
9234    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9235    postinstall_cmds='base_file=`basename \${file}`~
9236      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9237      dldir=$destdir/`dirname \$dlpath`~
9238      test -d \$dldir || mkdir -p \$dldir~
9239      $install_prog $dir/$dlname \$dldir/$dlname~
9240      chmod a+x \$dldir/$dlname'
9241    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9242      dlpath=$dir/\$dldll~
9243       $rm \$dlpath'
9244    shlibpath_overrides_runpath=yes
9245
9246    case $host_os in
9247    cygwin*)
9248      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9249      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9250      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9251      ;;
9252    mingw*)
9253      # MinGW DLLs use traditional 'lib' prefix
9254      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9255      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9257        # It is most probably a Windows format PATH printed by
9258        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9259        # path with ; separators, and with drive letters. We can handle the
9260        # drive letters (cygwin fileutils understands them), so leave them,
9261        # especially as we might pass files found there to a mingw objdump,
9262        # which wouldn't understand a cygwinified path. Ahh.
9263        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9264      else
9265        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9266      fi
9267      ;;
9268    pw32*)
9269      # pw32 DLLs use 'pw' prefix rather than 'lib'
9270      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271      ;;
9272    esac
9273    ;;
9274
9275  *)
9276    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9277    ;;
9278  esac
9279  dynamic_linker='Win32 ld.exe'
9280  # FIXME: first we should search . and the directory the executable is in
9281  shlibpath_var=PATH
9282  ;;
9283
9284darwin* | rhapsody*)
9285  dynamic_linker="$host_os dyld"
9286  version_type=darwin
9287  need_lib_prefix=no
9288  need_version=no
9289  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9290  soname_spec='${libname}${release}${major}$shared_ext'
9291  shlibpath_overrides_runpath=yes
9292  shlibpath_var=DYLD_LIBRARY_PATH
9293  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9294  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9295  if test "$GCC" = yes; then
9296    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"`
9297  else
9298    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9299  fi
9300  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9301  ;;
9302
9303dgux*)
9304  version_type=linux
9305  need_lib_prefix=no
9306  need_version=no
9307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9308  soname_spec='${libname}${release}${shared_ext}$major'
9309  shlibpath_var=LD_LIBRARY_PATH
9310  ;;
9311
9312freebsd1*)
9313  dynamic_linker=no
9314  ;;
9315
9316kfreebsd*-gnu)
9317  version_type=linux
9318  need_lib_prefix=no
9319  need_version=no
9320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9321  soname_spec='${libname}${release}${shared_ext}$major'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  shlibpath_overrides_runpath=no
9324  hardcode_into_libs=yes
9325  dynamic_linker='GNU ld.so'
9326  ;;
9327
9328freebsd* | dragonfly*)
9329  # DragonFly does not have aout.  When/if they implement a new
9330  # versioning mechanism, adjust this.
9331  if test -x /usr/bin/objformat; then
9332    objformat=`/usr/bin/objformat`
9333  else
9334    case $host_os in
9335    freebsd[123]*) objformat=aout ;;
9336    *) objformat=elf ;;
9337    esac
9338  fi
9339  version_type=freebsd-$objformat
9340  case $version_type in
9341    freebsd-elf*)
9342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9343      need_version=no
9344      need_lib_prefix=no
9345      ;;
9346    freebsd-*)
9347      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9348      need_version=yes
9349      ;;
9350  esac
9351  shlibpath_var=LD_LIBRARY_PATH
9352  case $host_os in
9353  freebsd2*)
9354    shlibpath_overrides_runpath=yes
9355    ;;
9356  freebsd3.[01]* | freebsdelf3.[01]*)
9357    shlibpath_overrides_runpath=yes
9358    hardcode_into_libs=yes
9359    ;;
9360  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9361  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9362    shlibpath_overrides_runpath=no
9363    hardcode_into_libs=yes
9364    ;;
9365  freebsd*) # from 4.6 on
9366    shlibpath_overrides_runpath=yes
9367    hardcode_into_libs=yes
9368    ;;
9369  esac
9370  ;;
9371
9372gnu*)
9373  version_type=linux
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  shlibpath_var=LD_LIBRARY_PATH
9379  hardcode_into_libs=yes
9380  ;;
9381
9382hpux9* | hpux10* | hpux11*)
9383  # Give a soname corresponding to the major version so that dld.sl refuses to
9384  # link against other versions.
9385  version_type=sunos
9386  need_lib_prefix=no
9387  need_version=no
9388  case $host_cpu in
9389  ia64*)
9390    shrext_cmds='.so'
9391    hardcode_into_libs=yes
9392    dynamic_linker="$host_os dld.so"
9393    shlibpath_var=LD_LIBRARY_PATH
9394    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9395    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396    soname_spec='${libname}${release}${shared_ext}$major'
9397    if test "X$HPUX_IA64_MODE" = X32; then
9398      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9399    else
9400      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9401    fi
9402    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403    ;;
9404   hppa*64*)
9405     shrext_cmds='.sl'
9406     hardcode_into_libs=yes
9407     dynamic_linker="$host_os dld.sl"
9408     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9409     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411     soname_spec='${libname}${release}${shared_ext}$major'
9412     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9413     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9414     ;;
9415   *)
9416    shrext_cmds='.sl'
9417    dynamic_linker="$host_os dld.sl"
9418    shlibpath_var=SHLIB_PATH
9419    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9420    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421    soname_spec='${libname}${release}${shared_ext}$major'
9422    ;;
9423  esac
9424  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9425  postinstall_cmds='chmod 555 $lib'
9426  ;;
9427
9428interix3*)
9429  version_type=linux
9430  need_lib_prefix=no
9431  need_version=no
9432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433  soname_spec='${libname}${release}${shared_ext}$major'
9434  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=no
9437  hardcode_into_libs=yes
9438  ;;
9439
9440irix5* | irix6* | nonstopux*)
9441  case $host_os in
9442    nonstopux*) version_type=nonstopux ;;
9443    *)
9444        if test "$lt_cv_prog_gnu_ld" = yes; then
9445                version_type=linux
9446        else
9447                version_type=irix
9448        fi ;;
9449  esac
9450  need_lib_prefix=no
9451  need_version=no
9452  soname_spec='${libname}${release}${shared_ext}$major'
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9454  case $host_os in
9455  irix5* | nonstopux*)
9456    libsuff= shlibsuff=
9457    ;;
9458  *)
9459    case $LD in # libtool.m4 will add one of these switches to LD
9460    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9461      libsuff= shlibsuff= libmagic=32-bit;;
9462    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9463      libsuff=32 shlibsuff=N32 libmagic=N32;;
9464    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9465      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9466    *) libsuff= shlibsuff= libmagic=never-match;;
9467    esac
9468    ;;
9469  esac
9470  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9471  shlibpath_overrides_runpath=no
9472  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9473  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9474  hardcode_into_libs=yes
9475  ;;
9476
9477# No shared lib support for Linux oldld, aout, or coff.
9478linux*oldld* | linux*aout* | linux*coff*)
9479  dynamic_linker=no
9480  ;;
9481
9482# This must be Linux ELF.
9483linux*)
9484  version_type=linux
9485  need_lib_prefix=no
9486  need_version=no
9487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488  soname_spec='${libname}${release}${shared_ext}$major'
9489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9490  shlibpath_var=LD_LIBRARY_PATH
9491  shlibpath_overrides_runpath=no
9492  # This implies no fast_install, which is unacceptable.
9493  # Some rework will be needed to allow for fast_install
9494  # before this can be enabled.
9495  hardcode_into_libs=yes
9496
9497  # Append ld.so.conf contents to the search path
9498  if test -f /etc/ld.so.conf; then
9499    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' ' '`
9500    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9501  fi
9502
9503  # We used to test for /lib/ld.so.1 and disable shared libraries on
9504  # powerpc, because MkLinux only supported shared libraries with the
9505  # GNU dynamic linker.  Since this was broken with cross compilers,
9506  # most powerpc-linux boxes support dynamic linking these days and
9507  # people can always --disable-shared, the test was removed, and we
9508  # assume the GNU/Linux dynamic linker is in use.
9509  dynamic_linker='GNU/Linux ld.so'
9510  ;;
9511
9512knetbsd*-gnu)
9513  version_type=linux
9514  need_lib_prefix=no
9515  need_version=no
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  shlibpath_overrides_runpath=no
9520  hardcode_into_libs=yes
9521  dynamic_linker='GNU ld.so'
9522  ;;
9523
9524netbsd*)
9525  version_type=sunos
9526  need_lib_prefix=no
9527  need_version=no
9528  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9529    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531    dynamic_linker='NetBSD (a.out) ld.so'
9532  else
9533    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9534    soname_spec='${libname}${release}${shared_ext}$major'
9535    dynamic_linker='NetBSD ld.elf_so'
9536  fi
9537  shlibpath_var=LD_LIBRARY_PATH
9538  shlibpath_overrides_runpath=yes
9539  hardcode_into_libs=yes
9540  ;;
9541
9542newsos6)
9543  version_type=linux
9544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545  shlibpath_var=LD_LIBRARY_PATH
9546  shlibpath_overrides_runpath=yes
9547  ;;
9548
9549nto-qnx*)
9550  version_type=linux
9551  need_lib_prefix=no
9552  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
9556  shlibpath_overrides_runpath=yes
9557  ;;
9558
9559openbsd*)
9560  version_type=sunos
9561  sys_lib_dlsearch_path_spec="/usr/lib"
9562  need_lib_prefix=no
9563  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9564  case $host_os in
9565    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9566    *)                         need_version=no  ;;
9567  esac
9568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9569  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9570  shlibpath_var=LD_LIBRARY_PATH
9571  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9572    case $host_os in
9573      openbsd2.[89] | openbsd2.[89].*)
9574        shlibpath_overrides_runpath=no
9575        ;;
9576      *)
9577        shlibpath_overrides_runpath=yes
9578        ;;
9579      esac
9580  else
9581    shlibpath_overrides_runpath=yes
9582  fi
9583  ;;
9584
9585os2*)
9586  libname_spec='$name'
9587  shrext_cmds=".dll"
9588  need_lib_prefix=no
9589  library_names_spec='$libname${shared_ext} $libname.a'
9590  dynamic_linker='OS/2 ld.exe'
9591  shlibpath_var=LIBPATH
9592  ;;
9593
9594osf3* | osf4* | osf5*)
9595  version_type=osf
9596  need_lib_prefix=no
9597  need_version=no
9598  soname_spec='${libname}${release}${shared_ext}$major'
9599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600  shlibpath_var=LD_LIBRARY_PATH
9601  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9602  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9603  ;;
9604
9605solaris*)
9606  version_type=linux
9607  need_lib_prefix=no
9608  need_version=no
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610  soname_spec='${libname}${release}${shared_ext}$major'
9611  shlibpath_var=LD_LIBRARY_PATH
9612  shlibpath_overrides_runpath=yes
9613  hardcode_into_libs=yes
9614  # ldd complains unless libraries are executable
9615  postinstall_cmds='chmod +x $lib'
9616  ;;
9617
9618sunos4*)
9619  version_type=sunos
9620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9621  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  shlibpath_overrides_runpath=yes
9624  if test "$with_gnu_ld" = yes; then
9625    need_lib_prefix=no
9626  fi
9627  need_version=yes
9628  ;;
9629
9630sysv4 | sysv4.3*)
9631  version_type=linux
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633  soname_spec='${libname}${release}${shared_ext}$major'
9634  shlibpath_var=LD_LIBRARY_PATH
9635  case $host_vendor in
9636    sni)
9637      shlibpath_overrides_runpath=no
9638      need_lib_prefix=no
9639      export_dynamic_flag_spec='${wl}-Blargedynsym'
9640      runpath_var=LD_RUN_PATH
9641      ;;
9642    siemens)
9643      need_lib_prefix=no
9644      ;;
9645    motorola)
9646      need_lib_prefix=no
9647      need_version=no
9648      shlibpath_overrides_runpath=no
9649      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9650      ;;
9651  esac
9652  ;;
9653
9654sysv4*MP*)
9655  if test -d /usr/nec ;then
9656    version_type=linux
9657    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9658    soname_spec='$libname${shared_ext}.$major'
9659    shlibpath_var=LD_LIBRARY_PATH
9660  fi
9661  ;;
9662
9663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9664  version_type=freebsd-elf
9665  need_lib_prefix=no
9666  need_version=no
9667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9668  soname_spec='${libname}${release}${shared_ext}$major'
9669  shlibpath_var=LD_LIBRARY_PATH
9670  hardcode_into_libs=yes
9671  if test "$with_gnu_ld" = yes; then
9672    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9673    shlibpath_overrides_runpath=no
9674  else
9675    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9676    shlibpath_overrides_runpath=yes
9677    case $host_os in
9678      sco3.2v5*)
9679        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9680        ;;
9681    esac
9682  fi
9683  sys_lib_dlsearch_path_spec='/usr/lib'
9684  ;;
9685
9686uts4*)
9687  version_type=linux
9688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689  soname_spec='${libname}${release}${shared_ext}$major'
9690  shlibpath_var=LD_LIBRARY_PATH
9691  ;;
9692
9693*)
9694  dynamic_linker=no
9695  ;;
9696esac
9697echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9698echo "${ECHO_T}$dynamic_linker" >&6
9699test "$dynamic_linker" = no && can_build_shared=no
9700
9701variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9702if test "$GCC" = yes; then
9703  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9704fi
9705
9706echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9707echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9708hardcode_action=
9709if test -n "$hardcode_libdir_flag_spec" || \
9710   test -n "$runpath_var" || \
9711   test "X$hardcode_automatic" = "Xyes" ; then
9712
9713  # We can hardcode non-existant directories.
9714  if test "$hardcode_direct" != no &&
9715     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9716     # have to relink, otherwise we might link with an installed library
9717     # when we should be linking with a yet-to-be-installed one
9718     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9719     test "$hardcode_minus_L" != no; then
9720    # Linking always hardcodes the temporary library directory.
9721    hardcode_action=relink
9722  else
9723    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9724    hardcode_action=immediate
9725  fi
9726else
9727  # We cannot hardcode anything, or else we can only hardcode existing
9728  # directories.
9729  hardcode_action=unsupported
9730fi
9731echo "$as_me:$LINENO: result: $hardcode_action" >&5
9732echo "${ECHO_T}$hardcode_action" >&6
9733
9734if test "$hardcode_action" = relink; then
9735  # Fast installation is not supported
9736  enable_fast_install=no
9737elif test "$shlibpath_overrides_runpath" = yes ||
9738     test "$enable_shared" = no; then
9739  # Fast installation is not necessary
9740  enable_fast_install=needless
9741fi
9742
9743striplib=
9744old_striplib=
9745echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9746echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9747if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9748  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9749  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9750  echo "$as_me:$LINENO: result: yes" >&5
9751echo "${ECHO_T}yes" >&6
9752else
9753# FIXME - insert some real tests, host_os isn't really good enough
9754  case $host_os in
9755   darwin*)
9756       if test -n "$STRIP" ; then
9757         striplib="$STRIP -x"
9758         echo "$as_me:$LINENO: result: yes" >&5
9759echo "${ECHO_T}yes" >&6
9760       else
9761  echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
9763fi
9764       ;;
9765   *)
9766  echo "$as_me:$LINENO: result: no" >&5
9767echo "${ECHO_T}no" >&6
9768    ;;
9769  esac
9770fi
9771
9772if test "x$enable_dlopen" != xyes; then
9773  enable_dlopen=unknown
9774  enable_dlopen_self=unknown
9775  enable_dlopen_self_static=unknown
9776else
9777  lt_cv_dlopen=no
9778  lt_cv_dlopen_libs=
9779
9780  case $host_os in
9781  beos*)
9782    lt_cv_dlopen="load_add_on"
9783    lt_cv_dlopen_libs=
9784    lt_cv_dlopen_self=yes
9785    ;;
9786
9787  mingw* | pw32*)
9788    lt_cv_dlopen="LoadLibrary"
9789    lt_cv_dlopen_libs=
9790   ;;
9791
9792  cygwin*)
9793    lt_cv_dlopen="dlopen"
9794    lt_cv_dlopen_libs=
9795   ;;
9796
9797  darwin*)
9798  # if libdl is installed we need to link against it
9799    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9800echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9801if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9802  echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804  ac_check_lib_save_LIBS=$LIBS
9805LIBS="-ldl  $LIBS"
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h.  */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h.  */
9812
9813/* Override any gcc2 internal prototype to avoid an error.  */
9814#ifdef __cplusplus
9815extern "C"
9816#endif
9817/* We use char because int might match the return type of a gcc2
9818   builtin and then its argument prototype would still apply.  */
9819char dlopen ();
9820int
9821main ()
9822{
9823dlopen ();
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830  (eval $ac_link) 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } &&
9837         { ac_try='test -z "$ac_c_werror_flag"
9838                         || test ! -s conftest.err'
9839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840  (eval $ac_try) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); }; } &&
9844         { ac_try='test -s conftest$ac_exeext'
9845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846  (eval $ac_try) 2>&5
9847  ac_status=$?
9848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); }; }; then
9850  ac_cv_lib_dl_dlopen=yes
9851else
9852  echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855ac_cv_lib_dl_dlopen=no
9856fi
9857rm -f conftest.err conftest.$ac_objext \
9858      conftest$ac_exeext conftest.$ac_ext
9859LIBS=$ac_check_lib_save_LIBS
9860fi
9861echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9862echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9863if test $ac_cv_lib_dl_dlopen = yes; then
9864  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9865else
9866
9867    lt_cv_dlopen="dyld"
9868    lt_cv_dlopen_libs=
9869    lt_cv_dlopen_self=yes
9870
9871fi
9872
9873   ;;
9874
9875  *)
9876    echo "$as_me:$LINENO: checking for shl_load" >&5
9877echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9878if test "${ac_cv_func_shl_load+set}" = set; then
9879  echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881  cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h.  */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h.  */
9887/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9889#define shl_load innocuous_shl_load
9890
9891/* System header to define __stub macros and hopefully few prototypes,
9892    which can conflict with char shl_load (); below.
9893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9894    <limits.h> exists even on freestanding compilers.  */
9895
9896#ifdef __STDC__
9897# include <limits.h>
9898#else
9899# include <assert.h>
9900#endif
9901
9902#undef shl_load
9903
9904/* Override any gcc2 internal prototype to avoid an error.  */
9905#ifdef __cplusplus
9906extern "C"
9907{
9908#endif
9909/* We use char because int might match the return type of a gcc2
9910   builtin and then its argument prototype would still apply.  */
9911char shl_load ();
9912/* The GNU C library defines this for functions which it implements
9913    to always fail with ENOSYS.  Some functions are actually named
9914    something starting with __ and the normal name is an alias.  */
9915#if defined (__stub_shl_load) || defined (__stub___shl_load)
9916choke me
9917#else
9918char (*f) () = shl_load;
9919#endif
9920#ifdef __cplusplus
9921}
9922#endif
9923
9924int
9925main ()
9926{
9927return f != shl_load;
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934  (eval $ac_link) 2>conftest.er1
9935  ac_status=$?
9936  grep -v '^ *+' conftest.er1 >conftest.err
9937  rm -f conftest.er1
9938  cat conftest.err >&5
9939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940  (exit $ac_status); } &&
9941         { ac_try='test -z "$ac_c_werror_flag"
9942                         || test ! -s conftest.err'
9943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944  (eval $ac_try) 2>&5
9945  ac_status=$?
9946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947  (exit $ac_status); }; } &&
9948         { ac_try='test -s conftest$ac_exeext'
9949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950  (eval $ac_try) 2>&5
9951  ac_status=$?
9952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953  (exit $ac_status); }; }; then
9954  ac_cv_func_shl_load=yes
9955else
9956  echo "$as_me: failed program was:" >&5
9957sed 's/^/| /' conftest.$ac_ext >&5
9958
9959ac_cv_func_shl_load=no
9960fi
9961rm -f conftest.err conftest.$ac_objext \
9962      conftest$ac_exeext conftest.$ac_ext
9963fi
9964echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9965echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9966if test $ac_cv_func_shl_load = yes; then
9967  lt_cv_dlopen="shl_load"
9968else
9969  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9970echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9971if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9972  echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974  ac_check_lib_save_LIBS=$LIBS
9975LIBS="-ldld  $LIBS"
9976cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h.  */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
9981/* end confdefs.h.  */
9982
9983/* Override any gcc2 internal prototype to avoid an error.  */
9984#ifdef __cplusplus
9985extern "C"
9986#endif
9987/* We use char because int might match the return type of a gcc2
9988   builtin and then its argument prototype would still apply.  */
9989char shl_load ();
9990int
9991main ()
9992{
9993shl_load ();
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext conftest$ac_exeext
9999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000  (eval $ac_link) 2>conftest.er1
10001  ac_status=$?
10002  grep -v '^ *+' conftest.er1 >conftest.err
10003  rm -f conftest.er1
10004  cat conftest.err >&5
10005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); } &&
10007         { ac_try='test -z "$ac_c_werror_flag"
10008                         || test ! -s conftest.err'
10009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010  (eval $ac_try) 2>&5
10011  ac_status=$?
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); }; } &&
10014         { ac_try='test -s conftest$ac_exeext'
10015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016  (eval $ac_try) 2>&5
10017  ac_status=$?
10018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019  (exit $ac_status); }; }; then
10020  ac_cv_lib_dld_shl_load=yes
10021else
10022  echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025ac_cv_lib_dld_shl_load=no
10026fi
10027rm -f conftest.err conftest.$ac_objext \
10028      conftest$ac_exeext conftest.$ac_ext
10029LIBS=$ac_check_lib_save_LIBS
10030fi
10031echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10032echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10033if test $ac_cv_lib_dld_shl_load = yes; then
10034  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10035else
10036  echo "$as_me:$LINENO: checking for dlopen" >&5
10037echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10038if test "${ac_cv_func_dlopen+set}" = set; then
10039  echo $ECHO_N "(cached) $ECHO_C" >&6
10040else
10041  cat >conftest.$ac_ext <<_ACEOF
10042/* confdefs.h.  */
10043_ACEOF
10044cat confdefs.h >>conftest.$ac_ext
10045cat >>conftest.$ac_ext <<_ACEOF
10046/* end confdefs.h.  */
10047/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10048   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10049#define dlopen innocuous_dlopen
10050
10051/* System header to define __stub macros and hopefully few prototypes,
10052    which can conflict with char dlopen (); below.
10053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10054    <limits.h> exists even on freestanding compilers.  */
10055
10056#ifdef __STDC__
10057# include <limits.h>
10058#else
10059# include <assert.h>
10060#endif
10061
10062#undef dlopen
10063
10064/* Override any gcc2 internal prototype to avoid an error.  */
10065#ifdef __cplusplus
10066extern "C"
10067{
10068#endif
10069/* We use char because int might match the return type of a gcc2
10070   builtin and then its argument prototype would still apply.  */
10071char dlopen ();
10072/* The GNU C library defines this for functions which it implements
10073    to always fail with ENOSYS.  Some functions are actually named
10074    something starting with __ and the normal name is an alias.  */
10075#if defined (__stub_dlopen) || defined (__stub___dlopen)
10076choke me
10077#else
10078char (*f) () = dlopen;
10079#endif
10080#ifdef __cplusplus
10081}
10082#endif
10083
10084int
10085main ()
10086{
10087return f != dlopen;
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094  (eval $ac_link) 2>conftest.er1
10095  ac_status=$?
10096  grep -v '^ *+' conftest.er1 >conftest.err
10097  rm -f conftest.er1
10098  cat conftest.err >&5
10099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100  (exit $ac_status); } &&
10101         { ac_try='test -z "$ac_c_werror_flag"
10102                         || test ! -s conftest.err'
10103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104  (eval $ac_try) 2>&5
10105  ac_status=$?
10106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); }; } &&
10108         { ac_try='test -s conftest$ac_exeext'
10109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110  (eval $ac_try) 2>&5
10111  ac_status=$?
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); }; }; then
10114  ac_cv_func_dlopen=yes
10115else
10116  echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119ac_cv_func_dlopen=no
10120fi
10121rm -f conftest.err conftest.$ac_objext \
10122      conftest$ac_exeext conftest.$ac_ext
10123fi
10124echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10125echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10126if test $ac_cv_func_dlopen = yes; then
10127  lt_cv_dlopen="dlopen"
10128else
10129  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10130echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10131if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10132  echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134  ac_check_lib_save_LIBS=$LIBS
10135LIBS="-ldl  $LIBS"
10136cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h.  */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h.  */
10142
10143/* Override any gcc2 internal prototype to avoid an error.  */
10144#ifdef __cplusplus
10145extern "C"
10146#endif
10147/* We use char because int might match the return type of a gcc2
10148   builtin and then its argument prototype would still apply.  */
10149char dlopen ();
10150int
10151main ()
10152{
10153dlopen ();
10154  ;
10155  return 0;
10156}
10157_ACEOF
10158rm -f conftest.$ac_objext conftest$ac_exeext
10159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160  (eval $ac_link) 2>conftest.er1
10161  ac_status=$?
10162  grep -v '^ *+' conftest.er1 >conftest.err
10163  rm -f conftest.er1
10164  cat conftest.err >&5
10165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166  (exit $ac_status); } &&
10167         { ac_try='test -z "$ac_c_werror_flag"
10168                         || test ! -s conftest.err'
10169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170  (eval $ac_try) 2>&5
10171  ac_status=$?
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); }; } &&
10174         { ac_try='test -s conftest$ac_exeext'
10175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176  (eval $ac_try) 2>&5
10177  ac_status=$?
10178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179  (exit $ac_status); }; }; then
10180  ac_cv_lib_dl_dlopen=yes
10181else
10182  echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185ac_cv_lib_dl_dlopen=no
10186fi
10187rm -f conftest.err conftest.$ac_objext \
10188      conftest$ac_exeext conftest.$ac_ext
10189LIBS=$ac_check_lib_save_LIBS
10190fi
10191echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10192echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10193if test $ac_cv_lib_dl_dlopen = yes; then
10194  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10195else
10196  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10197echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10198if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10199  echo $ECHO_N "(cached) $ECHO_C" >&6
10200else
10201  ac_check_lib_save_LIBS=$LIBS
10202LIBS="-lsvld  $LIBS"
10203cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h.  */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h.  */
10209
10210/* Override any gcc2 internal prototype to avoid an error.  */
10211#ifdef __cplusplus
10212extern "C"
10213#endif
10214/* We use char because int might match the return type of a gcc2
10215   builtin and then its argument prototype would still apply.  */
10216char dlopen ();
10217int
10218main ()
10219{
10220dlopen ();
10221  ;
10222  return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
10226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227  (eval $ac_link) 2>conftest.er1
10228  ac_status=$?
10229  grep -v '^ *+' conftest.er1 >conftest.err
10230  rm -f conftest.er1
10231  cat conftest.err >&5
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); } &&
10234         { ac_try='test -z "$ac_c_werror_flag"
10235                         || test ! -s conftest.err'
10236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237  (eval $ac_try) 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); }; } &&
10241         { ac_try='test -s conftest$ac_exeext'
10242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243  (eval $ac_try) 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; }; then
10247  ac_cv_lib_svld_dlopen=yes
10248else
10249  echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252ac_cv_lib_svld_dlopen=no
10253fi
10254rm -f conftest.err conftest.$ac_objext \
10255      conftest$ac_exeext conftest.$ac_ext
10256LIBS=$ac_check_lib_save_LIBS
10257fi
10258echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10259echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10260if test $ac_cv_lib_svld_dlopen = yes; then
10261  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10262else
10263  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10264echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10265if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10266  echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268  ac_check_lib_save_LIBS=$LIBS
10269LIBS="-ldld  $LIBS"
10270cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h.  */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h.  */
10276
10277/* Override any gcc2 internal prototype to avoid an error.  */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281/* We use char because int might match the return type of a gcc2
10282   builtin and then its argument prototype would still apply.  */
10283char dld_link ();
10284int
10285main ()
10286{
10287dld_link ();
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292rm -f conftest.$ac_objext conftest$ac_exeext
10293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294  (eval $ac_link) 2>conftest.er1
10295  ac_status=$?
10296  grep -v '^ *+' conftest.er1 >conftest.err
10297  rm -f conftest.er1
10298  cat conftest.err >&5
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); } &&
10301         { ac_try='test -z "$ac_c_werror_flag"
10302                         || test ! -s conftest.err'
10303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304  (eval $ac_try) 2>&5
10305  ac_status=$?
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); }; } &&
10308         { ac_try='test -s conftest$ac_exeext'
10309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310  (eval $ac_try) 2>&5
10311  ac_status=$?
10312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313  (exit $ac_status); }; }; then
10314  ac_cv_lib_dld_dld_link=yes
10315else
10316  echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
10319ac_cv_lib_dld_dld_link=no
10320fi
10321rm -f conftest.err conftest.$ac_objext \
10322      conftest$ac_exeext conftest.$ac_ext
10323LIBS=$ac_check_lib_save_LIBS
10324fi
10325echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10326echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10327if test $ac_cv_lib_dld_dld_link = yes; then
10328  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10329fi
10330
10331
10332fi
10333
10334
10335fi
10336
10337
10338fi
10339
10340
10341fi
10342
10343
10344fi
10345
10346    ;;
10347  esac
10348
10349  if test "x$lt_cv_dlopen" != xno; then
10350    enable_dlopen=yes
10351  else
10352    enable_dlopen=no
10353  fi
10354
10355  case $lt_cv_dlopen in
10356  dlopen)
10357    save_CPPFLAGS="$CPPFLAGS"
10358    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10359
10360    save_LDFLAGS="$LDFLAGS"
10361    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10362
10363    save_LIBS="$LIBS"
10364    LIBS="$lt_cv_dlopen_libs $LIBS"
10365
10366    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10367echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10368if test "${lt_cv_dlopen_self+set}" = set; then
10369  echo $ECHO_N "(cached) $ECHO_C" >&6
10370else
10371          if test "$cross_compiling" = yes; then :
10372  lt_cv_dlopen_self=cross
10373else
10374  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10375  lt_status=$lt_dlunknown
10376  cat > conftest.$ac_ext <<EOF
10377#line 10377 "configure"
10378#include "confdefs.h"
10379
10380#if HAVE_DLFCN_H
10381#include <dlfcn.h>
10382#endif
10383
10384#include <stdio.h>
10385
10386#ifdef RTLD_GLOBAL
10387#  define LT_DLGLOBAL           RTLD_GLOBAL
10388#else
10389#  ifdef DL_GLOBAL
10390#    define LT_DLGLOBAL         DL_GLOBAL
10391#  else
10392#    define LT_DLGLOBAL         0
10393#  endif
10394#endif
10395
10396/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10397   find out it does not work in some platform. */
10398#ifndef LT_DLLAZY_OR_NOW
10399#  ifdef RTLD_LAZY
10400#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10401#  else
10402#    ifdef DL_LAZY
10403#      define LT_DLLAZY_OR_NOW          DL_LAZY
10404#    else
10405#      ifdef RTLD_NOW
10406#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10407#      else
10408#        ifdef DL_NOW
10409#          define LT_DLLAZY_OR_NOW      DL_NOW
10410#        else
10411#          define LT_DLLAZY_OR_NOW      0
10412#        endif
10413#      endif
10414#    endif
10415#  endif
10416#endif
10417
10418#ifdef __cplusplus
10419extern "C" void exit (int);
10420#endif
10421
10422void fnord() { int i=42;}
10423int main ()
10424{
10425  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10426  int status = $lt_dlunknown;
10427
10428  if (self)
10429    {
10430      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10431      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432      /* dlclose (self); */
10433    }
10434  else
10435    puts (dlerror ());
10436
10437    exit (status);
10438}
10439EOF
10440  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441  (eval $ac_link) 2>&5
10442  ac_status=$?
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10445    (./conftest; exit; ) >&5 2>/dev/null
10446    lt_status=$?
10447    case x$lt_status in
10448      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10449      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10450      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10451    esac
10452  else :
10453    # compilation failed
10454    lt_cv_dlopen_self=no
10455  fi
10456fi
10457rm -fr conftest*
10458
10459
10460fi
10461echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10462echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10463
10464    if test "x$lt_cv_dlopen_self" = xyes; then
10465      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10466      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10467echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10468if test "${lt_cv_dlopen_self_static+set}" = set; then
10469  echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471          if test "$cross_compiling" = yes; then :
10472  lt_cv_dlopen_self_static=cross
10473else
10474  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10475  lt_status=$lt_dlunknown
10476  cat > conftest.$ac_ext <<EOF
10477#line 10477 "configure"
10478#include "confdefs.h"
10479
10480#if HAVE_DLFCN_H
10481#include <dlfcn.h>
10482#endif
10483
10484#include <stdio.h>
10485
10486#ifdef RTLD_GLOBAL
10487#  define LT_DLGLOBAL           RTLD_GLOBAL
10488#else
10489#  ifdef DL_GLOBAL
10490#    define LT_DLGLOBAL         DL_GLOBAL
10491#  else
10492#    define LT_DLGLOBAL         0
10493#  endif
10494#endif
10495
10496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10497   find out it does not work in some platform. */
10498#ifndef LT_DLLAZY_OR_NOW
10499#  ifdef RTLD_LAZY
10500#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10501#  else
10502#    ifdef DL_LAZY
10503#      define LT_DLLAZY_OR_NOW          DL_LAZY
10504#    else
10505#      ifdef RTLD_NOW
10506#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10507#      else
10508#        ifdef DL_NOW
10509#          define LT_DLLAZY_OR_NOW      DL_NOW
10510#        else
10511#          define LT_DLLAZY_OR_NOW      0
10512#        endif
10513#      endif
10514#    endif
10515#  endif
10516#endif
10517
10518#ifdef __cplusplus
10519extern "C" void exit (int);
10520#endif
10521
10522void fnord() { int i=42;}
10523int main ()
10524{
10525  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10526  int status = $lt_dlunknown;
10527
10528  if (self)
10529    {
10530      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10531      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10532      /* dlclose (self); */
10533    }
10534  else
10535    puts (dlerror ());
10536
10537    exit (status);
10538}
10539EOF
10540  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541  (eval $ac_link) 2>&5
10542  ac_status=$?
10543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10545    (./conftest; exit; ) >&5 2>/dev/null
10546    lt_status=$?
10547    case x$lt_status in
10548      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10549      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10550      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10551    esac
10552  else :
10553    # compilation failed
10554    lt_cv_dlopen_self_static=no
10555  fi
10556fi
10557rm -fr conftest*
10558
10559
10560fi
10561echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10562echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10563    fi
10564
10565    CPPFLAGS="$save_CPPFLAGS"
10566    LDFLAGS="$save_LDFLAGS"
10567    LIBS="$save_LIBS"
10568    ;;
10569  esac
10570
10571  case $lt_cv_dlopen_self in
10572  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10573  *) enable_dlopen_self=unknown ;;
10574  esac
10575
10576  case $lt_cv_dlopen_self_static in
10577  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10578  *) enable_dlopen_self_static=unknown ;;
10579  esac
10580fi
10581
10582
10583# Report which library types will actually be built
10584echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10585echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10586echo "$as_me:$LINENO: result: $can_build_shared" >&5
10587echo "${ECHO_T}$can_build_shared" >&6
10588
10589echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10590echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10591test "$can_build_shared" = "no" && enable_shared=no
10592
10593# On AIX, shared libraries and static libraries use the same namespace, and
10594# are all built from PIC.
10595case $host_os in
10596aix3*)
10597  test "$enable_shared" = yes && enable_static=no
10598  if test -n "$RANLIB"; then
10599    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10600    postinstall_cmds='$RANLIB $lib'
10601  fi
10602  ;;
10603
10604aix4* | aix5*)
10605  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10606    test "$enable_shared" = yes && enable_static=no
10607  fi
10608    ;;
10609esac
10610echo "$as_me:$LINENO: result: $enable_shared" >&5
10611echo "${ECHO_T}$enable_shared" >&6
10612
10613echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10614echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10615# Make sure either enable_shared or enable_static is yes.
10616test "$enable_shared" = yes || enable_static=yes
10617echo "$as_me:$LINENO: result: $enable_static" >&5
10618echo "${ECHO_T}$enable_static" >&6
10619
10620# The else clause should only fire when bootstrapping the
10621# libtool distribution, otherwise you forgot to ship ltmain.sh
10622# with your package, and you will get complaints that there are
10623# no rules to generate ltmain.sh.
10624if test -f "$ltmain"; then
10625  # See if we are running on zsh, and set the options which allow our commands through
10626  # without removal of \ escapes.
10627  if test -n "${ZSH_VERSION+set}" ; then
10628    setopt NO_GLOB_SUBST
10629  fi
10630  # Now quote all the things that may contain metacharacters while being
10631  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10632  # variables and quote the copies for generation of the libtool script.
10633  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10634    SED SHELL STRIP \
10635    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10636    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10637    deplibs_check_method reload_flag reload_cmds need_locks \
10638    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10639    lt_cv_sys_global_symbol_to_c_name_address \
10640    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10641    old_postinstall_cmds old_postuninstall_cmds \
10642    compiler \
10643    CC \
10644    LD \
10645    lt_prog_compiler_wl \
10646    lt_prog_compiler_pic \
10647    lt_prog_compiler_static \
10648    lt_prog_compiler_no_builtin_flag \
10649    export_dynamic_flag_spec \
10650    thread_safe_flag_spec \
10651    whole_archive_flag_spec \
10652    enable_shared_with_static_runtimes \
10653    old_archive_cmds \
10654    old_archive_from_new_cmds \
10655    predep_objects \
10656    postdep_objects \
10657    predeps \
10658    postdeps \
10659    compiler_lib_search_path \
10660    archive_cmds \
10661    archive_expsym_cmds \
10662    postinstall_cmds \
10663    postuninstall_cmds \
10664    old_archive_from_expsyms_cmds \
10665    allow_undefined_flag \
10666    no_undefined_flag \
10667    export_symbols_cmds \
10668    hardcode_libdir_flag_spec \
10669    hardcode_libdir_flag_spec_ld \
10670    hardcode_libdir_separator \
10671    hardcode_automatic \
10672    module_cmds \
10673    module_expsym_cmds \
10674    lt_cv_prog_compiler_c_o \
10675    exclude_expsyms \
10676    include_expsyms; do
10677
10678    case $var in
10679    old_archive_cmds | \
10680    old_archive_from_new_cmds | \
10681    archive_cmds | \
10682    archive_expsym_cmds | \
10683    module_cmds | \
10684    module_expsym_cmds | \
10685    old_archive_from_expsyms_cmds | \
10686    export_symbols_cmds | \
10687    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10688    postinstall_cmds | postuninstall_cmds | \
10689    old_postinstall_cmds | old_postuninstall_cmds | \
10690    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10691      # Double-quote double-evaled strings.
10692      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10693      ;;
10694    *)
10695      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10696      ;;
10697    esac
10698  done
10699
10700  case $lt_echo in
10701  *'\$0 --fallback-echo"')
10702    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10703    ;;
10704  esac
10705
10706cfgfile="${ofile}T"
10707  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10708  $rm -f "$cfgfile"
10709  { echo "$as_me:$LINENO: creating $ofile" >&5
10710echo "$as_me: creating $ofile" >&6;}
10711
10712  cat <<__EOF__ >> "$cfgfile"
10713#! $SHELL
10714
10715# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10716# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10717# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10718#
10719# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10720# Free Software Foundation, Inc.
10721#
10722# This file is part of GNU Libtool:
10723# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10724#
10725# This program is free software; you can redistribute it and/or modify
10726# it under the terms of the GNU General Public License as published by
10727# the Free Software Foundation; either version 2 of the License, or
10728# (at your option) any later version.
10729#
10730# This program is distributed in the hope that it will be useful, but
10731# WITHOUT ANY WARRANTY; without even the implied warranty of
10732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10733# General Public License for more details.
10734#
10735# You should have received a copy of the GNU General Public License
10736# along with this program; if not, write to the Free Software
10737# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10738#
10739# As a special exception to the GNU General Public License, if you
10740# distribute this file as part of a program that contains a
10741# configuration script generated by Autoconf, you may include it under
10742# the same distribution terms that you use for the rest of that program.
10743
10744# A sed program that does not truncate output.
10745SED=$lt_SED
10746
10747# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10748Xsed="$SED -e 1s/^X//"
10749
10750# The HP-UX ksh and POSIX shell print the target directory to stdout
10751# if CDPATH is set.
10752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10753
10754# The names of the tagged configurations supported by this script.
10755available_tags=
10756
10757# ### BEGIN LIBTOOL CONFIG
10758
10759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10760
10761# Shell to use when invoking shell scripts.
10762SHELL=$lt_SHELL
10763
10764# Whether or not to build shared libraries.
10765build_libtool_libs=$enable_shared
10766
10767# Whether or not to build static libraries.
10768build_old_libs=$enable_static
10769
10770# Whether or not to add -lc for building shared libraries.
10771build_libtool_need_lc=$archive_cmds_need_lc
10772
10773# Whether or not to disallow shared libs when runtime libs are static
10774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10775
10776# Whether or not to optimize for fast installation.
10777fast_install=$enable_fast_install
10778
10779# The host system.
10780host_alias=$host_alias
10781host=$host
10782