source: ThirdParty/Metis/stable/1.2/configure @ 2411

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

temporarily committing release candidate

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