source: ThirdParty/Glpk/trunk/configure

Last change on this file was 3996, checked in by stefan, 2 months ago

rerun autotools

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