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

Last change on this file since 2727 was 2727, checked in by stefan, 7 years ago

temporarily committing release candidate

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