source: ThirdParty/Glpk/stable/1.9/configure @ 3166

Last change on this file since 3166 was 3166, checked in by tkr, 7 years ago

restoring BuildTools/ThirdParty/Glpk?/stable/1.9

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