source: ThirdParty/Metis/stable/1.1/configure @ 2408

Last change on this file since 2408 was 2408, checked in by stefan, 10 years ago

temporarily committing release candidate

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