source: ThirdParty/Glpk/trunk/configure @ 439

Last change on this file since 439 was 439, checked in by stefan, 13 years ago

rerun autotools after coin.m4 change

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